/*!
 * Copyright (c) 2023 D2ArmorPicker by Mijago.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

.mat-slide-toggle.mat-disabled {
  opacity: 1;
}

.stat-part-title {
  margin-top: 10px;
  margin-bottom: 5px;
}

.modTable {
  width: 100%;
}

.mat-header-row,
.mat-row {
  height: 30px;
}

.mat-column-mobility,
.mat-column-resilience,
.mat-column-recovery,
.mat-column-discipline,
.mat-column-intellect,
.mat-column-strength,
.mat-column-cost {
  min-width: 40px;
  text-align: center;
}

.mat-row:hover {
  background-color: #494949;
}

.mat-column-mobility,
.mat-column-recovery,
.mat-column-intellect {
  background-color: #464646;
}

.mat-column-name {
  padding-right: 4px;
  border-right: 1px solid currentColor;
  min-width: 150px;

  app-item-icon {
    float: left;
    margin-right: 5px;
  }
}

.mat-row {
  cursor: pointer;
}

th.mat-header-cell:last-of-type,
td.mat-cell:last-of-type,
td.mat-footer-cell:last-of-type {
  padding-right: 0;
}

.mat-cell:last-of-type,
.mat-header-cell:last-of-type,
.mat-footer-cell:last-of-type {
  padding-right: 0;
}

.stat-negative,
.stat-positive {
  margin-right: 3px;
}

.stat-negative {
  color: lightcoral;
}

.stat-positive {
  color: #b6cbfc;
}

.stat-display {
  width: 60px;
  float: left;
  align-content: end;
  text-align: right;
}

.mat-row:hover,
.mat-row:hover .mat-cell {
  background-color: #494949;
}

.mat-row.selected:hover,
.mat-row.selected:hover .mat-cell {
  background-color: rgba(137, 178, 255, 0.19);
}

.selected,
.selected .mat-column-mobility,
.selected .mat-column-recovery,
.selected .mat-column-intellect {
  background-color: rgba(137, 178, 255, 0.11);
}

.mat-column-name {
  min-width: 190px;
}

.element-icon {
  width: 22px;
}

#clear-container {
  padding-top: 10px;
}

#retrofit-table {
  .rft-icon-container {
    width: 22px;
    display: inline-block;
    > span {
      position: relative;
    }
    app-stat-icon {
      position: absolute;
      top: -22px;
      left: -10px;
    }
  }
}
