/* Personel Ücret Kartları — approved premium redesign (2026-08-26) */

.sal-premium-page,
.sal-card-premium {
  --sal-bg: #080a08;
  --sal-panel: #0e110e;
  --sal-panel-soft: #111411;
  --sal-panel-raised: #151711;
  --sal-line: #292d28;
  --sal-line-soft: #20231f;
  --sal-text: #f2f3ee;
  --sal-muted: #8e958d;
  --sal-gold: #d8b94c;
  --sal-gold-bright: #f1d367;
  --sal-gold-soft: rgba(216, 185, 76, .1);
  --sal-green: #70ca8b;
  --sal-red: #e88b8b;
  color: var(--sal-text);
}

.sal-premium-page {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 12px;
  padding: 2px 0 18px;
}

.sal-list-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 17px 3px;
}

.sal-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--sal-gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.sal-list-hero h2,
.sal-card-premium .sal-card-page-title {
  margin: 0;
  color: var(--sal-text);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 760;
  letter-spacing: -.025em;
}

.sal-list-hero p {
  margin: 5px 0 0;
  color: var(--sal-muted);
  font-size: 11px;
  line-height: 1.45;
}

.sal-primary-cta,
.sal-card-premium .sal-card-page-actions .primary,
.modal-card:has(.sal-premium-modal) .primary,
.modal-card:has(.sal-dialog-composer) .primary,
.modal-card:has(.sal-dialog-composer) .ok {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #dfc04e !important;
  border-radius: 9px !important;
  color: #171407 !important;
  background: linear-gradient(180deg, #ebce63, #cfad39) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .3), 0 7px 22px rgba(202, 165, 45, .12) !important;
  font-size: 11px;
  font-weight: 800;
}

.sal-primary-cta:hover,
.sal-card-premium .sal-card-page-actions .primary:hover,
.modal-card:has(.sal-premium-modal) .primary:hover,
.modal-card:has(.sal-dialog-composer) .primary:hover,
.modal-card:has(.sal-dialog-composer) .ok:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.sal-list-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sal-list-metric {
  position: relative;
  min-width: 0;
  min-height: 84px;
  padding: 13px 15px;
  overflow: hidden;
  border: 1px solid var(--sal-line);
  border-radius: 11px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .025), transparent 58%), var(--sal-panel);
}

.sal-list-metric::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: #343832;
  content: '';
}

.sal-list-metric.is-active::after { background: #4fa16a; }
.sal-list-metric.is-warning::after { background: var(--sal-gold); }
.sal-list-metric.is-complete::after { background: var(--sal-green); }

.sal-list-metric > span {
  display: block;
  color: var(--sal-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.sal-list-metric > strong {
  display: block;
  margin-top: 3px;
  color: var(--sal-text);
  font-size: 24px;
  font-weight: 760;
  line-height: 1.1;
}

.sal-list-metric.is-warning > strong { color: var(--sal-gold-bright); }
.sal-list-metric > small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #727971;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sal-missing-alert {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 55px;
  padding: 8px 13px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(216, 185, 76, .3);
  border-radius: 10px;
  color: var(--sal-text);
  background: linear-gradient(90deg, rgba(216, 185, 76, .09), rgba(216, 185, 76, .025));
  text-align: left;
}

.sal-missing-alert:hover { border-color: rgba(216, 185, 76, .55); }

.sal-missing-alert-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(216, 185, 76, .38);
  border-radius: 50%;
  color: var(--sal-gold-bright);
  background: rgba(216, 185, 76, .1);
  font-size: 13px;
  font-weight: 800;
}

.sal-missing-alert strong,
.sal-missing-alert small { display: block; }
.sal-missing-alert strong { font-size: 10.5px; }
.sal-missing-alert small { margin-top: 3px; color: var(--sal-muted); font-size: 9.5px; }
.sal-missing-alert-link { color: var(--sal-gold-bright); font-size: 10px; font-weight: 750; white-space: nowrap; }

.sal-filter-panel {
  padding: 8px;
  border: 1px solid var(--sal-line);
  border-radius: 11px;
  background: var(--sal-panel);
}

.sal-filter-main,
.sal-filter-advanced {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.sal-filter-advanced {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--sal-line-soft);
}

.sal-filter-advanced[hidden] { display: none !important; }

.sal-filter-panel .sal-flt-ctl,
.sal-search-field {
  min-width: 0;
  height: 34px;
  border: 1px solid #30342f;
  border-radius: 8px;
  color: #c9cdc7;
  background: #0b0e0b;
  font-size: 10px;
}

.sal-filter-panel .sal-flt-ctl {
  width: min(190px, 22vw);
  padding: 0 28px 0 10px;
}

.sal-search-field {
  display: flex;
  flex: 1 1 260px;
  min-width: 170px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
}

.sal-search-field > span { color: #6f766f; font-size: 17px; line-height: 1; transform: rotate(-15deg); }
.sal-search-field input {
  width: 100%;
  height: 30px;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--sal-text);
  background: transparent;
  font-size: 10px;
}

.sal-search-field input::placeholder { color: #686f68; }

.sal-filter-toggle,
.sal-filter-clear {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #343832;
  border-radius: 8px;
  color: #b4b9b2;
  background: #111411;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

.sal-filter-toggle.is-open { border-color: #806f32; color: var(--sal-gold-bright); background: var(--sal-gold-soft); }
.sal-filter-clear { margin-left: auto; color: #979d96; background: transparent; }

.sal-list-table-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sal-line);
  border-radius: 12px;
  background: var(--sal-panel);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .16);
}

.sal-table-heading {
  display: flex;
  min-height: 50px;
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--sal-line);
}

.sal-table-heading h3 { margin: 0; color: var(--sal-text); font-size: 12px; font-weight: 750; }
.sal-table-heading span { display: block; margin-top: 2px; color: #747b74; font-size: 9px; }
.sal-table-heading > strong { color: var(--sal-muted); font-size: 9.5px; font-weight: 650; }

.sal-table-scroll { width: 100%; min-width: 0; overflow: auto; }
.sal-premium-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; background: transparent; }
.sal-premium-table th {
  height: 34px;
  padding: 0 13px;
  border-bottom: 1px solid #2a2e29;
  color: #757d75;
  background: #0a0d0a;
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .075em;
  text-align: left;
  text-transform: uppercase;
}

.sal-premium-table th:nth-child(1) { width: 30%; }
.sal-premium-table th:nth-child(2) { width: 22%; }
.sal-premium-table th:nth-child(3) { width: 20%; }
.sal-premium-table th:nth-child(4) { width: 12%; }
.sal-premium-table th:nth-child(5) { width: 16%; text-align: right; }

.sal-premium-table td {
  height: 62px;
  padding: 9px 13px;
  border-bottom: 1px solid #20231f;
  color: #d7dad5;
  background: transparent;
  font-size: 10px;
  vertical-align: middle;
}

.sal-premium-table tbody tr:last-child td { border-bottom: 0; }
.sal-premium-table tbody tr:hover td { background: rgba(216, 185, 76, .035); }
.sal-premium-table tbody tr.is-missing td { background: rgba(216, 185, 76, .015); }

.sal-person-cell { display: flex; min-width: 0; align-items: center; gap: 10px; }
.sal-employee-photo,
.sal-picker-photo,
.sal-card-person-photo,
.sal-avatar-fallback {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #73652f;
  border-radius: 50%;
  color: #211b08;
  background: linear-gradient(145deg, #e7ca5c, #b9962e);
  font-size: 10px;
  font-weight: 800;
}

.sal-person-cell .hr-employee-avatar img,
.sal-picker-photo img,
.sal-card-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.sal-person-cell > div { min-width: 0; }
.sal-person-cell .sal-name { display: block; overflow: hidden; color: #f2f3ee; font-size: 10.5px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.sal-person-cell span { display: block; margin-top: 3px; overflow: hidden; color: #777e77; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.sal-pay-structure { display: grid; gap: 5px; justify-items: start; }
.sal-pay-structure .sal-profile-chip,
.sal-plan-cell,
.sal-premium-table .sal-badge,
.sal-premium-table .sal-badge-empty {
  display: inline-flex;
  max-width: 100%;
  min-height: 21px;
  padding: 3px 7px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #343832;
  border-radius: 6px;
  color: #b6bbb4;
  background: #121512;
  font-size: 8.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sal-pay-structure .sal-net-amt { color: var(--sal-gold-bright); font-size: 10.5px; font-weight: 750; }
.sal-pay-structure .sal-net-undef,
.sal-plan-cell .sal-bonus-none { color: #707770; font-size: 9px; }
.sal-premium-table .sal-badge.is-active { border-color: rgba(75, 164, 105, .36); color: var(--sal-green); background: rgba(75, 164, 105, .09); }
.sal-premium-table .sal-badge.is-passive,
.sal-premium-table .sal-badge.is-cancelled { border-color: rgba(201, 96, 96, .32); color: var(--sal-red); background: rgba(201, 96, 96, .08); }

.sal-action-cell { text-align: right; }
.sal-table-action {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid #3a3e38;
  border-radius: 7px;
  color: #d6d9d3;
  background: #101310;
  font-size: 9px;
  font-weight: 720;
  white-space: nowrap;
}

.sal-table-action:hover { border-color: #806f32; color: var(--sal-gold-bright); }
.sal-table-action.is-create { border-color: #75652f; color: var(--sal-gold-bright); background: rgba(216, 185, 76, .07); }
.sal-empty-state { padding: 28px; color: var(--sal-muted); text-align: center; }

/* Card page */
.pro-page.sal-card-page.sal-card-premium {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 11px;
  padding: 0 0 16px;
  background: transparent;
}

.sal-card-premium .sal-card-page-top {
  display: flex;
  min-height: 72px;
  padding: 4px 2px 8px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  background: transparent;
}

.sal-card-premium .sal-card-page-head { min-width: 0; text-align: left; }
.sal-card-premium .sal-card-back {
  display: block;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  color: #8f968e;
  background: transparent;
  font-size: 9.5px;
  font-weight: 650;
}
.sal-card-premium .sal-card-back:hover { color: var(--sal-gold-bright); }
.sal-card-premium .sal-card-page-sub { margin: 4px 0 0; color: var(--sal-muted); font-size: 10px; }
.sal-card-premium .sal-card-page-actions { display: flex; margin: 0; align-items: center; gap: 7px; }
.sal-card-premium .sal-card-page-actions .sal-act-btn {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 9px !important;
  font-size: 9.5px;
  font-weight: 750;
}
.sal-card-premium .sal-card-page-actions .ghost {
  border: 1px solid #363a35 !important;
  color: #c3c7c0 !important;
  background: #0e110e !important;
}
.sal-card-premium .sal-card-page-actions .ghost:hover { border-color: #696f65 !important; color: #f1f2ed !important; }
.sal-card-premium .sal-card-page-actions .sal-save-close { color: #d8c477 !important; }

.sal-card-premium .sal-card-page-shell {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--sal-line);
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(216, 185, 76, .018), transparent 36%), var(--sal-bg);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .16);
}

.sal-card-identity-band {
  display: grid;
  grid-template-columns: minmax(250px, 1.45fr) repeat(4, minmax(110px, .8fr));
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sal-line);
  border-radius: 10px;
  background: var(--sal-panel);
}

.sal-card-person {
  display: flex;
  min-width: 0;
  min-height: 67px;
  padding: 10px 13px;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--sal-line);
}

.sal-card-person-photo { width: 38px; height: 38px; }
.sal-card-person-copy { display: grid; min-width: 0; gap: 2px; }
.sal-card-kicker { color: #777e77; font-size: 7.5px; font-weight: 800; letter-spacing: .1em; }
.sal-card-person-copy > strong { overflow: hidden; color: #f4f5f0; font-size: 13px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.sal-card-person-copy > span:last-child { overflow: hidden; color: #858c84; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.sal-card-inline-status { display: inline; white-space: nowrap; }
.sal-card-inline-status b { color: inherit; font-size: inherit; font-weight: 500; }
.sal-card-status-dot { display: inline-block; width: 6px; height: 6px; margin: 0 4px 0 6px; border-radius: 50%; background: #7b4c4c; }
.sal-card-status-dot.is-active { background: #55b874; box-shadow: 0 0 0 3px rgba(85, 184, 116, .09); }

.sal-card-identity-stat {
  display: flex;
  min-width: 0;
  min-height: 67px;
  padding: 10px 12px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid var(--sal-line);
}
.sal-card-identity-stat:last-child { border-right: 0; }
.sal-card-identity-stat span { color: #737a73; font-size: 8px; font-weight: 700; }
.sal-card-identity-stat strong { overflow: hidden; color: #e9ebe6; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.sal-card-identity-stat:nth-of-type(3) strong { color: var(--sal-gold-bright); }

.sal-card-premium .sal-card-page-shell > .sal-tabs {
  display: flex;
  min-height: 43px;
  margin: 0;
  padding: 4px;
  overflow-x: auto;
  gap: 3px;
  border: 1px solid var(--sal-line);
  border-radius: 9px;
  background: var(--sal-panel);
}
.sal-card-premium .sal-tabs .sal-tab {
  flex: 0 0 auto;
  min-width: 96px;
  min-height: 33px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: #8b928a;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
}
.sal-card-premium .sal-tabs .sal-tab:hover { color: #d9ddd7; }
.sal-card-premium .sal-tabs .sal-tab.is-active { color: var(--sal-gold-bright); background: rgba(216, 185, 76, .105); box-shadow: inset 0 0 0 1px rgba(216, 185, 76, .08); }

.sal-card-premium .sal-card-page-body { min-width: 0; min-height: 0; overflow: visible; }
.sal-card-premium .sal-section.card {
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--sal-line);
  border-radius: 10px;
  color: var(--sal-text);
  background: var(--sal-panel);
  box-shadow: none;
}
.sal-card-premium .sal-section-head {
  margin: 0;
  color: #e8eae5;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .01em;
}
.sal-section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sal-section-title-row > span { color: #717870; font-size: 8px; }

.sal-card-premium .sal-net-premium-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 9px;
}
.sal-net-primary-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .9fr); gap: 9px; }
.sal-net-main-column { display: grid; min-width: 0; align-content: start; gap: 9px; }
.sal-net-payment-column { min-width: 0; }
.sal-net-secondary-grid { display: grid; grid-template-columns: minmax(260px, 1.25fr) minmax(150px, .55fr) minmax(260px, 1fr); gap: 9px; }

.sal-card-premium .sal-net-section { padding: 13px !important; }
.sal-card-premium .sal-net-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 10px;
  padding: 13px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(100deg, rgba(216, 185, 76, .105), rgba(216, 185, 76, .025));
}
.sal-card-premium .sal-net-hero-lab { display: block; color: #858c84; font-size: 8px; }
.sal-card-premium .sal-net-hero-amt { display: block; margin-top: 4px; color: var(--sal-gold-bright); font-size: 23px; font-weight: 760; letter-spacing: -.025em; }
.sal-card-premium .sal-net-actions { grid-column: 2; grid-row: 1 / span 2; }
.sal-card-premium .sal-net-hero .sal-salary-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #7b6a2f !important;
  border-radius: 8px !important;
  color: var(--sal-gold-bright) !important;
  background: rgba(216, 185, 76, .065) !important;
  font-size: 9px;
}

.sal-card-premium .sal-net-kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}
.sal-card-premium .sal-net-kpi-item {
  min-width: 0;
  padding: 9px;
  border: 1px solid #282c27;
  border-radius: 8px;
  background: #0b0e0b;
}
.sal-card-premium .sal-net-kpi-item span { display: block; color: #777e76; font-size: 7.5px; }
.sal-card-premium .sal-net-kpi-item strong { display: block; margin-top: 5px; overflow: hidden; color: #e5e7e2; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.sal-card-premium .sal-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 11px;
}
.sal-card-premium .sal-profile-grid label,
.sal-card-premium .sal-composer-field { display: grid; min-width: 0; gap: 5px; color: #8f968e; font-size: 8.5px; font-weight: 650; }
.sal-card-premium .sal-profile-grid input,
.sal-card-premium .sal-profile-grid select,
.sal-card-premium .sal-composer-field input,
.sal-card-premium .sal-composer-field select,
.sal-card-premium .sal-composer-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #333732;
  border-radius: 7px;
  outline: 0;
  color: #e1e4de;
  background: #0b0e0b;
  font-size: 9px;
}
.sal-card-premium .sal-composer-field textarea { padding-top: 8px; resize: vertical; }
.sal-card-premium .sal-profile-grid input:focus,
.sal-card-premium .sal-profile-grid select:focus,
.sal-card-premium .sal-composer-field input:focus,
.sal-card-premium .sal-composer-field select:focus,
.sal-card-premium .sal-composer-field textarea:focus { border-color: #887735; box-shadow: 0 0 0 2px rgba(216, 185, 76, .08); }

.sal-card-premium .sal-pay-section { height: 100%; padding: 13px !important; }
.sal-card-premium .sal-pay-head { display: flex; margin-bottom: 9px; align-items: center; justify-content: space-between; gap: 8px; }
.sal-card-premium .sal-pay-period { display: flex; gap: 5px; }
.sal-card-premium .sal-pay-period-ctl { width: auto; min-height: 31px; padding: 0 24px 0 8px; border: 1px solid #333732; border-radius: 7px; color: #d5d9d2; background: #0b0e0b; font-size: 8px; }
.sal-card-premium .sal-pay-receipt-lines { display: grid; }
.sal-card-premium .sal-pay-row { display: flex; min-height: 30px; padding: 6px 0; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #292d28; color: #929990; font-size: 9px; }
.sal-card-premium .sal-pay-val { color: #e1e4de; font-weight: 720; text-align: right; }
.sal-card-premium .sal-pay-total-hero { display: flex; min-height: 49px; margin: 8px 0 3px; padding: 9px 10px; align-items: center; justify-content: space-between; gap: 12px; border-radius: 8px; background: rgba(216, 185, 76, .09); }
.sal-card-premium .sal-pay-total-lbl { color: #d0bd72; font-size: 8px; font-weight: 760; }
.sal-card-premium .sal-pay-total-amt { color: var(--sal-gold-bright); font-size: 18px; font-weight: 780; }
.sal-card-premium .sal-pay-bank-split .sal-pay-row:last-child { border-bottom: 0; }

.sal-card-premium .sal-notes { width: 100%; min-height: 52px; margin-top: 9px; padding: 9px; border: 1px solid #333732; border-radius: 7px; color: #d7dad4; background: #0b0e0b; font-size: 9px; resize: vertical; }
.sal-card-premium .sal-status-section { display: flex; flex-direction: column; justify-content: space-between; }
.sal-card-premium .sal-status-toggle { display: flex; margin-top: 10px; align-items: center; justify-content: space-between; gap: 10px; }
.sal-card-premium .sal-toggle-state { color: #9da39c; font-size: 9px; }
.sal-card-premium .sal-toggle-state.is-on { color: var(--sal-green); }
.sal-card-premium .sal-system-grid { display: grid; gap: 0; margin-top: 7px; }
.sal-card-premium .sal-system-row { display: flex; min-height: 25px; padding: 5px 0; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #282c27; }
.sal-card-premium .sal-system-row:last-child { border-bottom: 0; }
.sal-card-premium .sal-system-row span { color: #7c837b; font-size: 8px; }
.sal-card-premium .sal-system-row strong { overflow: hidden; color: #d9dcd6; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }

/* Other salary tabs */
.sal-card-premium .sal-split-tab,
.sal-card-premium .sal-ded-stack { display: grid; grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.1fr); gap: 9px; }
.sal-card-premium .sal-ded-stack { grid-template-columns: 1fr; }
.sal-card-premium .sal-sym-summary,
.sal-card-premium .sal-ded-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.sal-card-premium .sal-ded-kpi { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sal-card-premium .sal-sym-summary-item,
.sal-card-premium .sal-ded-kpi-item { min-width: 0; padding: 8px 9px; border: 1px solid #2c302b; border-radius: 8px; background: #0b0e0b; }
.sal-card-premium .sal-sym-summary-item span,
.sal-card-premium .sal-ded-kpi-item span { display: block; color: #747b74; font-size: 7.5px; }
.sal-card-premium .sal-sym-summary-item strong,
.sal-card-premium .sal-ded-kpi-item strong { display: block; margin-top: 4px; overflow: hidden; color: #e0e3dd; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sal-card-premium .sal-sym-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sal-card-premium .sal-sym-col { display: grid; align-content: start; gap: 8px; padding: 10px; border: 1px solid #292d28; border-radius: 8px; background: #0b0e0b; }
.sal-card-premium .sal-sym-col-title { color: var(--sal-gold); font-size: 8px; font-weight: 760; text-transform: uppercase; }
.sal-card-premium .sal-sym-col label { display: grid; gap: 5px; color: #858c84; font-size: 8px; }
.sal-card-premium .sal-sym-col input,
.sal-card-premium .sal-sym-col select,
.sal-card-premium .sal-sym-col textarea { width: 100%; min-width: 0; min-height: 33px; padding: 0 8px; border: 1px solid #333732; border-radius: 7px; color: #e0e3dd; background: #0e110e; font-size: 8.5px; }
.sal-card-premium .sal-sym-col textarea { padding-top: 8px; resize: vertical; }
.sal-card-premium .sal-sym-actions { margin-top: 9px; }
.sal-card-premium .sal-sym-actions .primary { min-height: 34px; border-radius: 8px; font-size: 8.5px; }
.sal-card-premium .sal-split-table-wrap,
.sal-card-premium .sal-ded-table-wrap { max-width: 100%; overflow: auto; }
.sal-card-premium .sal-split-table-wrap table,
.sal-card-premium .sal-ded-table-wrap table { min-width: 680px; background: transparent; }
.sal-card-premium .sal-split-table-wrap th,
.sal-card-premium .sal-ded-table-wrap th { padding: 8px; color: #777e77; background: #0a0d0a; font-size: 7.5px; }
.sal-card-premium .sal-split-table-wrap td,
.sal-card-premium .sal-ded-table-wrap td { padding: 8px; border-color: #252925; color: #cdd1cb; background: transparent; font-size: 8.5px; }
.sal-card-premium .sal-ded-toolbar { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.sal-card-premium .sal-ded-toolbar .sal-flt-ctl { min-height: 32px; border: 1px solid #333732; border-radius: 7px; color: #d8dcd6; background: #0b0e0b; font-size: 8.5px; }
.sal-card-premium .sal-ded-subtabs { width: fit-content; margin: 0 0 8px; }
.sal-card-premium .bonus-tab-root { color: var(--sal-text); }

/* Premium salary modal family */
.modal-card.modal-fit:has(.sal-premium-modal),
.modal-card.modal-fit:has(.sal-dialog-composer) {
  width: min(640px, 94vw) !important;
  max-width: 640px !important;
  max-height: min(92vh, 760px);
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #373b35 !important;
  border-radius: 13px !important;
  color: #eff1ec !important;
  background: #101310 !important;
  box-shadow: 0 28px 78px rgba(0, 0, 0, .62), inset 0 1px rgba(255, 255, 255, .025) !important;
}

.modal-card.modal-fit:has(.sal-define-modal) { width: min(690px, 94vw) !important; max-width: 690px !important; }
.modal-card.modal-fit:has(.sal-picker-modal) { width: min(590px, 94vw) !important; max-width: 590px !important; }

.modal-card.modal-fit:has(.sal-premium-modal)::before,
.modal-card.modal-fit:has(.sal-dialog-composer)::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a93d 45%, #f0d267 55%, transparent);
  content: '';
}

.modal-card.modal-fit:has(.sal-premium-modal) > h2,
.modal-card.modal-fit:has(.sal-dialog-composer) > h2 {
  min-height: 55px;
  margin: 0 !important;
  padding: 18px 54px 10px 17px !important;
  border-bottom: 1px solid #292d28;
  color: #f0f2ed !important;
  font-size: 14px !important;
  font-weight: 760 !important;
  letter-spacing: -.015em !important;
}

.modal-card.modal-fit:has(.sal-premium-modal) > .modal-x,
.modal-card.modal-fit:has(.sal-dialog-composer) > .modal-x {
  top: 12px !important;
  right: 13px !important;
  width: 31px !important;
  height: 31px !important;
  border: 1px solid #353a34 !important;
  border-radius: 8px !important;
  color: #a8aea6 !important;
  background: #151815 !important;
  font-size: 16px !important;
}

.modal-card.modal-fit:has(.sal-premium-modal) > #mb,
.modal-card.modal-fit:has(.sal-dialog-composer) > #mb {
  display: flex !important;
  min-height: 0;
  flex-direction: column;
  overflow: auto !important;
}

.sal-premium-modal { min-width: 0; padding: 14px 17px 0; }
.sal-modal-lead { margin: 0 0 11px; color: #818981; font-size: 9.5px; line-height: 1.45; }

.sal-picker-search {
  display: flex;
  height: 36px;
  margin-bottom: 9px;
  padding: 0 10px;
  align-items: center;
  gap: 8px;
  border: 1px solid #343833;
  border-radius: 8px;
  background: #0b0e0b;
}
.sal-picker-search > span { color: #6f766f; font-size: 17px; }
.sal-picker-search input { width: 100%; height: 32px; padding: 0; border: 0; outline: 0; color: #eef0eb; background: transparent; font-size: 9.5px; }
.sal-pick-list { display: grid; max-height: 330px; gap: 6px; overflow: auto; }
.sal-pick-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  align-items: center;
  gap: 10px;
  border: 1px solid #2e322d;
  border-radius: 9px;
  color: #e7e9e4;
  background: #0d100d;
  text-align: left;
}
.sal-pick-row:hover { border-color: #62572d; background: rgba(216, 185, 76, .035); }
.sal-pick-row.is-selected { border-color: #8a7732; background: rgba(216, 185, 76, .075); box-shadow: inset 3px 0 #d8b94c; }
.sal-pick-copy { display: grid; min-width: 0; gap: 3px; }
.sal-pick-copy strong { overflow: hidden; color: #eef0eb; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.sal-pick-copy small { overflow: hidden; color: #7d857d; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.sal-pick-state { display: inline-flex; align-items: center; gap: 5px; color: #a99a5b; font-size: 8px; font-weight: 700; white-space: nowrap; }
.sal-pick-state i { width: 6px; height: 6px; border-radius: 50%; background: #b79932; }
.sal-picker-footer {
  display: flex;
  min-height: 58px;
  margin: 13px -17px 0;
  padding: 10px 17px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #292d28;
  background: #0d100d;
}
.sal-picker-footer > span { color: #747b74; font-size: 8.5px; }
.sal-picker-footer .actions { margin: 0; }

.sal-define-emp {
  display: flex;
  min-height: 36px;
  margin-bottom: 9px;
  padding: 7px 10px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #2e322d;
  border-radius: 8px;
  background: #0d100d;
}
.sal-define-emp span { color: #777f77; font-size: 8px; text-transform: uppercase; }
.sal-define-emp strong { color: #e7eae4; font-size: 9.5px; }

.sal-modal-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin-bottom: 10px;
  padding: 10px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(216, 185, 76, .2);
  border-radius: 9px;
  background: linear-gradient(100deg, rgba(216, 185, 76, .07), rgba(216, 185, 76, .02));
}
.sal-modal-compare div { min-width: 0; }
.sal-modal-compare span { display: block; color: #858c84; font-size: 8px; }
.sal-modal-compare strong { display: block; margin-top: 4px; overflow: hidden; color: #e9ece6; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.sal-modal-compare div:last-child strong { color: var(--sal-gold-bright, #f1d367); }
.sal-modal-compare-arrow { color: #8d7932 !important; font-size: 16px !important; }

.modal-card:has(.sal-define-modal) .sal-define-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
}
.modal-card:has(.sal-define-modal) .sal-define-form > label,
.modal-card:has(.sal-define-modal) .sal-meal-custom-field { display: grid; min-width: 0; gap: 5px; color: #969d95; font-size: 8.5px; font-weight: 650; }
.modal-card:has(.sal-define-modal) .sal-define-form input,
.modal-card:has(.sal-define-modal) .sal-define-form textarea,
.modal-card:has(.sal-define-modal) .sal-define-form .moneyField input { width: 100%; min-width: 0; min-height: 35px; padding: 0 9px; border: 1px solid #343833; border-radius: 8px; color: #edf0ea; background: #0b0e0b; font-size: 9px; }
.modal-card:has(.sal-define-modal) .sal-define-form textarea { min-height: 58px; padding-top: 8px; resize: vertical; }
.modal-card:has(.sal-define-modal) .sal-define-form .hintline { color: #6f766f; font-size: 7.5px; }
.modal-card:has(.sal-define-modal) .sal-meal-type-block { grid-column: 1 / -1; }
.modal-card:has(.sal-define-modal) .sal-meal-type-radios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.modal-card:has(.sal-define-modal) .sal-meal-opt { min-width: 0; }
.modal-card:has(.sal-define-modal) .sal-meal-opt-body { min-height: 42px; border: 1px solid #30342f; border-radius: 8px; background: #0b0e0b; }
.modal-card:has(.sal-define-modal) .sal-meal-opt input:checked + .sal-meal-opt-body { border-color: #8b7832; background: rgba(216, 185, 76, .07); }
.modal-card:has(.sal-define-modal) .sal-define-actions,
.modal-card:has(.sal-premium-modal) > #mb > .actions.sal-define-actions {
  min-height: 59px;
  margin: 13px 0 0 !important;
  padding: 10px 17px !important;
  border-top: 1px solid #292d28;
  background: #0d100d;
}

.sal-ded-edit-modal .bonus-manual-meta,
.sal-cancel-modal .bonus-manual-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.sal-ded-edit-modal .bonus-manual-meta > div,
.sal-cancel-modal .bonus-manual-meta > div { min-width: 0; padding: 9px; border: 1px solid #2e322d; border-radius: 8px; background: #0b0e0b; }
.sal-ded-edit-modal .bonus-manual-meta span,
.sal-cancel-modal .bonus-manual-meta span { display: block; color: #777f77; font-size: 7.5px; }
.sal-ded-edit-modal .bonus-manual-meta strong,
.sal-cancel-modal .bonus-manual-meta strong { display: block; margin-top: 4px; overflow: hidden; color: #e3e6e0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sal-ded-edit-modal .bonus-manual-form,
.sal-cancel-modal .bonus-manual-form { display: grid; gap: 9px; margin-top: 10px; }
.sal-ded-edit-modal .bonus-manual-form label,
.sal-cancel-modal .bonus-manual-form label { display: grid; gap: 5px; color: #929991; font-size: 8.5px; }
.sal-ded-edit-modal .bonus-manual-form input,
.sal-ded-edit-modal .bonus-manual-form textarea,
.sal-cancel-modal .bonus-manual-form textarea { width: 100%; min-height: 35px; padding: 8px 9px; border: 1px solid #343833; border-radius: 8px; color: #edf0ea; background: #0b0e0b; font-size: 9px; }
.sal-ded-edit-modal .bonus-plan-actions-bar,
.sal-cancel-modal .bonus-plan-actions-bar { min-height: 58px; margin: 13px -17px 0 !important; padding: 10px 17px; border-top: 1px solid #292d28; background: #0d100d; }

/* Salary confirmation / result dialog */
.modal-card.modal-fit:has(.sal-dialog-composer) { width: min(620px, 94vw) !important; max-width: 620px !important; }
.modal-card:has(.sal-dialog-composer) .sal-dialog-composer { padding: 0 16px 14px; }
.modal-card:has(.sal-dialog-composer) .uz-sym-composer-body { padding: 13px 0 0; border: 0; background: transparent; box-shadow: none; }
.modal-card:has(.sal-dialog-composer) .bonus-emp-panel { gap: 9px; }
.modal-card:has(.sal-dialog-composer) .uz-sym-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.modal-card:has(.sal-dialog-composer) .bonus-emp-summary-item.uz-sym-chip {
  display: grid;
  min-width: 0;
  min-height: 54px;
  padding: 9px 10px;
  align-content: center;
  gap: 5px;
  border: 1px solid #2f332e;
  border-radius: 8px;
  background: #0b0e0b;
}
.modal-card:has(.sal-dialog-composer) .bonus-emp-summary-item.uz-sym-chip span { color: #7c847b; font-size: 7.5px; }
.modal-card:has(.sal-dialog-composer) .bonus-emp-summary-item.uz-sym-chip strong { max-width: 100%; color: #eef0eb; font-size: 10px; }
.modal-card:has(.sal-dialog-composer) .uz-sym-rules { border: 1px solid rgba(216, 185, 76, .17); border-radius: 9px; background: rgba(216, 185, 76, .035); }
.modal-card:has(.sal-dialog-composer) .bonus-emp-info-grid { display: grid; grid-template-columns: 1fr; }
.modal-card:has(.sal-dialog-composer) .bonus-emp-info-section { padding: 10px 12px; }
.modal-card:has(.sal-dialog-composer) .bonus-emp-info-section + .bonus-emp-info-section { border-top: 1px solid rgba(216, 185, 76, .1); border-left: 0; }
.modal-card:has(.sal-dialog-composer) .bonus-emp-info-title { color: #bba75e; font-size: 8px; }
.modal-card:has(.sal-dialog-composer) .bonus-emp-info-section ul { margin: 4px 0 0; color: #a1a7a0; font-size: 9px; line-height: 1.55; }
.modal-card:has(.sal-dialog-composer) .uz-sym-note { padding: 9px 10px; border: 1px solid #343832; border-radius: 8px; color: #c9cfc7; background: #0b0e0b; font-size: 9px; text-align: left; }
.modal-card:has(.sal-dialog-composer) .uz-sym-actions {
  min-height: 57px;
  margin: 12px -16px -14px !important;
  padding: 10px 16px;
  border-top: 1px solid #292d28;
  background: #0d100d;
}
.modal-card:has(.sal-dialog-composer) .uz-sym-actions .ghost,
.modal-card:has(.sal-premium-modal) .ghost { min-height: 36px; padding: 0 13px; border: 1px solid #373b36 !important; border-radius: 8px !important; color: #c0c5be !important; background: #131613 !important; font-size: 9px; }
.modal-card:has(.sal-dialog-composer) .uz-sym-actions .danger,
.modal-card:has(.sal-premium-modal) .danger { min-height: 36px; padding: 0 13px; border: 1px solid rgba(220, 103, 103, .46) !important; border-radius: 8px !important; color: #f0a0a0 !important; background: rgba(180, 64, 64, .13) !important; font-size: 9px; }

/* Light theme parity */
html[data-theme="white-page"] .sal-premium-page,
html[data-theme="white-page"] .sal-card-premium {
  --sal-bg: #f5f5f1;
  --sal-panel: #ffffff;
  --sal-panel-soft: #f8f8f4;
  --sal-panel-raised: #ffffff;
  --sal-line: #deded6;
  --sal-line-soft: #e8e8e2;
  --sal-text: #20231f;
  --sal-muted: #737a72;
  --sal-gold-soft: rgba(167, 132, 29, .09);
}
html[data-theme="white-page"] .sal-premium-page :is(.sal-filter-panel,.sal-list-table-card,.sal-list-metric),
html[data-theme="white-page"] .sal-card-premium :is(.sal-card-page-shell,.sal-card-identity-band,.sal-section.card,.sal-tabs) { box-shadow: 0 10px 30px rgba(24, 28, 22, .05); }

@media (max-width: 1120px) {
  .sal-card-identity-band { grid-template-columns: minmax(230px, 1.35fr) repeat(4, minmax(95px, .72fr)); }
  .sal-net-primary-grid { grid-template-columns: minmax(0, 1.15fr) minmax(290px, .9fr); }
  .sal-net-secondary-grid { grid-template-columns: 1fr 170px; }
  .sal-net-secondary-grid .sal-system-section { grid-column: 1 / -1; }
  .sal-card-premium .sal-ded-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .sal-list-hero { align-items: flex-start; }
  .sal-filter-main { flex-wrap: wrap; }
  .sal-filter-panel .sal-flt-ctl { flex: 1 1 160px; width: auto; }
  .sal-filter-clear { margin-left: 0; }
  .sal-card-premium .sal-card-page-top { align-items: flex-start; flex-direction: column; }
  .sal-card-premium .sal-card-page-actions { width: 100%; flex-wrap: wrap; }
  .sal-card-premium .sal-card-page-actions .primary { margin-left: auto; }
  .sal-card-identity-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sal-card-person { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--sal-line); }
  .sal-card-identity-stat { min-height: 54px; border-bottom: 1px solid var(--sal-line); }
  .sal-card-identity-stat:nth-child(3),
  .sal-card-identity-stat:nth-child(5) { border-right: 0; }
  .sal-net-primary-grid,
  .sal-net-secondary-grid,
  .sal-card-premium .sal-split-tab { grid-template-columns: 1fr; }
  .sal-net-secondary-grid .sal-system-section { grid-column: auto; }
}

@media (max-width: 720px) {
  .sal-premium-page { padding-bottom: 12px; }
  .sal-list-hero { padding: 8px 4px 0; flex-direction: column; gap: 12px; }
  .sal-primary-cta { width: 100%; }
  .sal-list-metrics { grid-template-columns: 1fr; }
  .sal-list-metric { min-height: 75px; }
  .sal-missing-alert { grid-template-columns: 30px minmax(0, 1fr); }
  .sal-missing-alert-link { display: none; }
  .sal-filter-main,
  .sal-filter-advanced { display: grid; grid-template-columns: 1fr; }
  .sal-search-field,
  .sal-filter-panel .sal-flt-ctl,
  .sal-filter-toggle,
  .sal-filter-clear { width: 100%; min-width: 0; }
  .sal-premium-table { min-width: 0; }
  .sal-premium-table thead { display: none; }
  .sal-premium-table,
  .sal-premium-table tbody,
  .sal-premium-table tr,
  .sal-premium-table td { display: block; width: 100%; }
  .sal-premium-table tbody { padding: 8px; }
  .sal-premium-table tr { margin-bottom: 8px; overflow: hidden; border: 1px solid var(--sal-line); border-radius: 10px; background: #0b0e0b; }
  .sal-premium-table tr:last-child { margin-bottom: 0; }
  .sal-premium-table td { display: flex; height: auto; min-height: 42px; padding: 8px 10px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--sal-line-soft); text-align: right; }
  .sal-premium-table td::before { flex: 0 0 88px; color: #737a73; content: attr(data-label); font-size: 8px; font-weight: 700; text-align: left; text-transform: uppercase; }
  .sal-premium-table td:first-child { min-height: 60px; }
  .sal-premium-table td:first-child::before { display: none; }
  .sal-premium-table td:last-child { border-bottom: 0; }
  .sal-person-cell { width: 100%; text-align: left; }
  .sal-pay-structure { margin-left: auto; justify-items: end; }
  .sal-action-cell { text-align: right; }
  .sal-table-action { width: 100%; }
  .sal-card-premium .sal-card-page-actions .sal-act-btn { flex: 1 1 135px; }
  .sal-card-premium .sal-card-page-actions .primary { margin-left: 0; flex-basis: 100%; }
  .sal-card-identity-band { grid-template-columns: 1fr 1fr; }
  .sal-card-premium .sal-card-page-shell { padding: 8px; }
  .sal-card-premium .sal-card-page-shell > .sal-tabs { flex-wrap: nowrap; }
  .sal-card-premium .sal-profile-grid,
  .sal-card-premium .sal-sym-cols,
  .sal-card-premium .sal-sym-summary,
  .sal-card-premium .sal-ded-kpi { grid-template-columns: 1fr; }
  .sal-card-premium .sal-net-kpi { grid-template-columns: 1fr 1fr; }
  .sal-card-premium .sal-net-kpi-item:first-child { grid-column: 1 / -1; }
  .sal-card-premium .sal-net-hero { grid-template-columns: 1fr; }
  .sal-card-premium .sal-net-actions { grid-column: 1; grid-row: auto; }
  .sal-card-premium .sal-net-actions .sal-salary-btn { width: 100%; }
  .modal-card.modal-fit:has(.sal-premium-modal),
  .modal-card.modal-fit:has(.sal-dialog-composer) { width: min(96vw, 640px) !important; max-height: 94vh; }
  .modal-card:has(.sal-define-modal) .sal-define-form,
  .modal-card:has(.sal-define-modal) .sal-meal-type-radios,
  .sal-ded-edit-modal .bonus-manual-meta,
  .sal-cancel-modal .bonus-manual-meta,
  .modal-card:has(.sal-dialog-composer) .uz-sym-chips { grid-template-columns: 1fr; }
  .sal-modal-compare { grid-template-columns: 1fr; }
  .sal-modal-compare-arrow { transform: rotate(90deg); }
  .sal-picker-footer { align-items: stretch; flex-direction: column; }
  .sal-picker-footer .actions { width: 100%; }
  .sal-picker-footer .actions button { flex: 1; }
  .sal-pick-state { display: none; }
  .sal-pick-row { grid-template-columns: 34px minmax(0, 1fr); }
}

/* Readable fixed-screen salary workspace — 2026-08-26 */
#app.theme-dashboard-pro.view-hr #content:has(.sal-premium-page),
#app.theme-dashboard-pro.view-hr #content:has(.sal-card-premium) {
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

.sal-premium-page,
.pro-page.sal-card-page.sal-card-premium {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

#app.theme-dashboard-pro.view-hr .pro-page.sal-card-page.sal-card-fullpage.sal-card-premium {
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}

/* Salary card list: compact command header + fixed data workspace */
.sal-premium-page {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(500px, auto);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  grid-template-areas:
    "title summary"
    "alert alert"
    "filters filters"
    "table table";
  gap: 9px 12px;
  padding: 0;
}

.sal-premium-page .sal-list-hero {
  grid-area: title;
  min-height: 68px;
  padding: 8px 4px;
  align-items: center;
}
.sal-premium-page .sal-list-hero > div { min-width: 0; }
.sal-premium-page .sal-eyebrow,
.sal-card-premium .sal-eyebrow { display: none; }
.sal-premium-page .sal-list-hero h2 {
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -.02em;
}
.sal-premium-page .sal-list-hero p {
  margin-top: 4px;
  color: #a8aea7;
  font-size: 13px;
  line-height: 1.35;
}
.sal-premium-page .sal-primary-cta {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 12.5px;
}

.sal-premium-page .sal-list-metrics {
  grid-area: summary;
  grid-template-columns: repeat(3, minmax(145px, 1fr));
  align-self: center;
  gap: 7px;
}
.sal-premium-page .sal-list-metric {
  min-height: 60px;
  padding: 10px 12px;
  border-radius: 9px;
}
.sal-premium-page .sal-list-metric > span { font-size: 10.5px; letter-spacing: .045em; }
.sal-premium-page .sal-list-metric > strong { margin-top: 4px; font-size: 22px; }
.sal-premium-page .sal-list-metric > small { display: none; }
.sal-premium-page .sal-missing-alert { grid-area: alert; min-height: 48px; }
.sal-premium-page .sal-missing-alert strong { font-size: 12px; }
.sal-premium-page .sal-missing-alert small,
.sal-premium-page .sal-missing-alert-link { font-size: 11.5px; }

.sal-premium-page .sal-filter-panel {
  grid-area: filters;
  padding: 7px;
}
.sal-premium-page .sal-filter-panel .sal-flt-ctl,
.sal-premium-page .sal-search-field {
  height: 39px;
  font-size: 12px;
}
.sal-premium-page .sal-search-field input { height: 35px; font-size: 12.5px; }
.sal-premium-page .sal-filter-toggle,
.sal-premium-page .sal-filter-clear { min-height: 39px; font-size: 12px; }

.sal-premium-page .sal-list-table-card {
  grid-area: table;
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-radius: 10px;
}
.sal-premium-page .sal-table-heading { min-height: 46px; padding: 8px 14px; }
.sal-premium-page .sal-table-heading h3 { font-size: 14px; }
.sal-premium-page .sal-table-heading span,
.sal-premium-page .sal-table-heading > strong { font-size: 11.5px; }
.sal-premium-page .sal-table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.sal-premium-page .sal-premium-table thead { position: sticky; top: 0; z-index: 2; }
.sal-premium-page .sal-premium-table th {
  height: 38px;
  font-size: 10.5px;
  letter-spacing: .055em;
}
.sal-premium-page .sal-premium-table td { height: 65px; font-size: 12px; }
.sal-premium-page .sal-employee-photo { width: 38px; height: 38px; }
.sal-premium-page .sal-person-cell .sal-name { font-size: 13px; }
.sal-premium-page .sal-person-cell span { margin-top: 4px; color: #9aa19a; font-size: 11.5px; }
.sal-premium-page .sal-pay-structure .sal-profile-chip,
.sal-premium-page .sal-plan-cell,
.sal-premium-page .sal-premium-table .sal-badge,
.sal-premium-page .sal-premium-table .sal-badge-empty { min-height: 25px; padding: 4px 8px; font-size: 11px; }
.sal-premium-page .sal-pay-structure .sal-net-amt { font-size: 13px; }
.sal-premium-page .sal-table-action { min-height: 35px; padding-inline: 12px; font-size: 12px; }

/* Salary card: fixed outer page, readable controls and one-screen tabs */
.pro-page.sal-card-page.sal-card-premium {
  display: flex;
  gap: 8px;
  padding: 0;
}
.sal-card-premium .sal-card-page-top {
  flex: 0 0 64px;
  min-height: 64px;
  padding: 3px 2px 7px;
  align-items: center;
}
.sal-card-premium .sal-card-back { margin-bottom: 4px; font-size: 12px; }
.sal-card-premium .sal-card-page-title { font-size: 23px; }
.sal-card-premium .sal-card-page-sub { display: none; }
.sal-card-premium .sal-card-page-actions .sal-act-btn {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 12px;
}
.sal-card-premium .sal-card-page-shell {
  min-height: 0;
  height: auto;
  padding: 9px;
  gap: 8px;
  overflow: hidden;
}
.sal-card-premium .sal-card-identity-band { flex: 0 0 66px; }
.sal-card-premium .sal-card-person,
.sal-card-premium .sal-card-identity-stat { min-height: 64px; padding: 9px 12px; }
.sal-card-premium .sal-card-person-photo { width: 42px; height: 42px; }
.sal-card-premium .sal-card-kicker { font-size: 9.5px; letter-spacing: .075em; }
.sal-card-premium .sal-card-person-copy > strong { font-size: 15px; }
.sal-card-premium .sal-card-person-copy > span:last-child { color: #a0a69f; font-size: 11px; }
.sal-card-premium .sal-card-identity-stat span { color: #969d95; font-size: 11px; }
.sal-card-premium .sal-card-identity-stat strong { font-size: 13px; }

.sal-card-premium .sal-card-page-shell > .sal-tabs {
  flex: 0 0 45px;
  min-height: 45px;
  overflow: hidden;
}
.sal-card-premium .sal-tabs .sal-tab {
  min-width: 112px;
  min-height: 35px;
  color: #aab0a9;
  font-size: 12.5px;
}
.sal-card-premium .sal-card-page-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden !important;
}
.sal-card-premium .sal-section.card { padding: 11px; }
.sal-card-premium .sal-section-head,
.sal-card-premium .bonus-section-head { font-size: 12.5px; }
.sal-card-premium .sal-section-title-row > span { color: #9ba19a; font-size: 11px; }

/* Net salary: three-zone workspace; secondary information is a fixed side rail */
.sal-card-premium .sal-net-premium-layout {
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 3.2fr) minmax(270px, .92fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 9px;
  overflow: hidden;
}
.sal-card-premium .sal-net-primary-grid {
  min-height: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
  gap: 9px;
}
.sal-card-premium .sal-net-main-column,
.sal-card-premium .sal-net-payment-column { min-height: 0; }
.sal-card-premium .sal-net-secondary-grid {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  align-content: start;
  gap: 9px;
}
.sal-card-premium .sal-net-secondary-grid .sal-system-section { grid-column: auto; }
.sal-card-premium .sal-net-section { padding: 11px !important; }
.sal-card-premium .sal-net-hero { margin-top: 8px; padding: 10px 12px; }
.sal-card-premium .sal-net-hero-lab { color: #a0a69f; font-size: 11px; }
.sal-card-premium .sal-net-hero-amt { font-size: 25px; }
.sal-card-premium .sal-net-hero .sal-salary-btn { min-height: 36px; font-size: 11.5px; }
.sal-card-premium .sal-net-kpi-item { padding: 8px; }
.sal-card-premium .sal-net-kpi-item span { color: #979d96; font-size: 10px; }
.sal-card-premium .sal-net-kpi-item strong { margin-top: 4px; font-size: 12px; }
.sal-card-premium .sal-profile-grid { gap: 8px; margin-top: 9px; }
.sal-card-premium .sal-profile-grid label,
.sal-card-premium .sal-composer-field { color: #a4aaa3; font-size: 11.5px; }
.sal-card-premium .sal-profile-grid input,
.sal-card-premium .sal-profile-grid select,
.sal-card-premium .sal-composer-field input,
.sal-card-premium .sal-composer-field select,
.sal-card-premium .sal-composer-field textarea {
  min-height: 38px;
  font-size: 12.5px;
}
.sal-card-premium .sal-pay-section { height: 100%; min-height: 0; padding: 11px !important; overflow: hidden; }
.sal-card-premium .sal-pay-head { margin-bottom: 6px; }
.sal-card-premium .sal-pay-period-ctl { min-height: 34px; font-size: 11.5px; }
.sal-card-premium .sal-pay-row { min-height: 24px; padding: 3px 0; color: #afb5ae; font-size: 12px; }
.sal-card-premium .sal-pay-total-hero { min-height: 44px; margin: 6px 0 2px; padding: 7px 9px; }
.sal-card-premium .sal-pay-total-lbl { font-size: 10.5px; }
.sal-card-premium .sal-pay-total-amt { font-size: 20px; }
.sal-card-premium .sal-notes { min-height: 68px; margin-top: 8px; font-size: 12px; resize: none; }
.sal-card-premium .sal-status-toggle { margin-top: 8px; }
.sal-card-premium .sal-toggle-state { font-size: 12px; }
.sal-card-premium .sal-system-row { min-height: 29px; }
.sal-card-premium .sal-system-row span { color: #999f98; font-size: 10.5px; }
.sal-card-premium .sal-system-row strong { font-size: 11px; }

/* Prim, avans, mesai and kesinti: fixed tab body; only record tables scroll */
.sal-card-premium .sal-split-tab,
.sal-card-premium .bonus-tab-root,
.sal-card-premium .bonus-tab-layout,
.sal-card-premium .sal-ded-tab {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  overflow: hidden;
}
.sal-card-premium .bonus-tab-layout.bonus-tab-split { min-height: 0; }
.sal-card-premium .sal-sym-panel,
.sal-card-premium .sal-split-list,
.sal-card-premium .bonus-summary-panel,
.sal-card-premium .bonus-hist-panel,
.sal-card-premium .sal-ded-list-card {
  min-height: 0;
  overflow: hidden;
}
.sal-card-premium .sal-sym-panel,
.sal-card-premium .sal-split-list,
.sal-card-premium .sal-ded-list-card { display: flex; flex-direction: column; }
.sal-card-premium .sal-split-table-wrap,
.sal-card-premium .sal-ded-table-wrap,
.sal-card-premium #bonusHistWrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.sal-card-premium .sal-sym-summary-item,
.sal-card-premium .sal-ded-kpi-item { padding: 9px 10px; }
.sal-card-premium .sal-sym-summary-item span,
.sal-card-premium .sal-ded-kpi-item span { color: #979d96; font-size: 10px; }
.sal-card-premium .sal-sym-summary-item strong,
.sal-card-premium .sal-ded-kpi-item strong { font-size: 12px; }
.sal-card-premium .sal-sym-col-title { font-size: 11px; }
.sal-card-premium .sal-sym-col label { color: #a5aba4; font-size: 11.5px; }
.sal-card-premium .sal-sym-col input,
.sal-card-premium .sal-sym-col select,
.sal-card-premium .sal-sym-col textarea { min-height: 38px; font-size: 12.5px; }
.sal-card-premium .sal-sym-note,
.sal-card-premium .sal-sym-meta,
.sal-card-premium .bonus-hint,
.sal-card-premium .bonus-hist-empty { font-size: 11.5px; }
.sal-card-premium .sal-sym-actions .primary { min-height: 37px; font-size: 11.5px; }
.sal-card-premium .sal-split-table-wrap th,
.sal-card-premium .sal-ded-table-wrap th { font-size: 10px; }
.sal-card-premium .sal-split-table-wrap td,
.sal-card-premium .sal-ded-table-wrap td { font-size: 11.5px; }
.sal-card-premium .sal-ded-tab { display: flex; flex-direction: column; }
.sal-card-premium .sal-ded-stack--sub {
  display: grid !important;
  grid-template-columns: minmax(620px, 1.45fr) minmax(300px, .7fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  flex: 1 1 auto;
  min-height: 0;
  gap: 9px;
  overflow: hidden;
}
.sal-card-premium .sal-ded-stack--sub:has(.sal-ded-auto) { grid-template-columns: minmax(0, 1fr) !important; }
.sal-card-premium .sal-ded-stack--sub .sal-section-head { font-size: 12.5px !important; }
.sal-card-premium .sal-ded-tab .sal-ded-kpi-item span,
.sal-card-premium .sal-ded-tab .sal-composer-lab { color: #9fa59e !important; font-size: 10.5px !important; }
.sal-card-premium .sal-ded-tab .sal-ded-kpi-item strong { font-size: 12.5px !important; }
.sal-card-premium .sal-ded-tab .sal-composer-field { font-size: 11.5px !important; }
.sal-card-premium .sal-ded-panel .sal-composer-chips,
.sal-card-premium .sal-ded-panel .sal-sym-meta { display: none; }
.sal-card-premium .sal-ded-panel .sal-composer-body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}
.sal-card-premium .sal-ded-panel .sal-sym-cols { flex: 1 1 auto; min-height: 0; }
.sal-card-premium .sal-ded-toolbar .sal-flt-ctl { min-height: 35px; font-size: 11.5px; }
.sal-card-premium .sal-ded-toolbar-hint { font-size: 11.5px; }
.sal-card-premium .sal-ded-subtabs { flex: 0 0 auto; }
.sal-card-premium .bonus-section-head,
.sal-card-premium .bonus-summary-lbl,
.sal-card-premium .bonus-plan-summary-item span { font-size: 11px; }
.sal-card-premium .bonus-summary-val { font-size: 18px; }
.sal-card-premium .bonus-plan-summary-item strong,
.sal-card-premium .bonus-hist-table .table th,
.sal-card-premium .bonus-hist-table .table td { font-size: 12px; }

@media (min-width: 721px) {
  .sal-premium-page .sal-premium-table th,
  .sal-premium-page .sal-premium-table td { padding-inline: 16px; }

  .sal-premium-page .sal-premium-table th:nth-child(1),
  .sal-premium-page .sal-premium-table td:nth-child(1) { width: 30% !important; }
  .sal-premium-page .sal-premium-table th:nth-child(2),
  .sal-premium-page .sal-premium-table td:nth-child(2) { width: 20% !important; }
  .sal-premium-page .sal-premium-table th:nth-child(3),
  .sal-premium-page .sal-premium-table td:nth-child(3) { width: 24% !important; }
  .sal-premium-page .sal-premium-table th:nth-child(4),
  .sal-premium-page .sal-premium-table td:nth-child(4) { width: 13% !important; text-align: center !important; }
  .sal-premium-page .sal-premium-table th:nth-child(5),
  .sal-premium-page .sal-premium-table td:nth-child(5) { width: 13% !important; text-align: center !important; }

  .sal-premium-page .sal-premium-table td:nth-child(4) .sal-badge,
  .sal-premium-page .sal-premium-table td:nth-child(4) .sal-badge-empty {
    min-width: 60px;
    justify-content: center;
  }
  .sal-premium-page .sal-table-action {
    position: relative;
    display: inline-flex;
    width: 118px;
    padding: 0 28px 0 12px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .sal-premium-page .sal-table-action > span {
    position: absolute;
    right: 11px;
  }
}

@media (max-width: 1200px) {
  .sal-premium-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    grid-template-areas: "title" "summary" "alert" "filters" "table";
  }
  .sal-premium-page .sal-list-hero { min-height: 58px; }
  .sal-card-premium .sal-card-page-body { overflow: auto !important; overscroll-behavior: contain; }
  .sal-card-premium .sal-net-premium-layout { height: auto; grid-template-columns: 1fr; overflow: visible; }
  .sal-card-premium .sal-net-secondary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sal-card-premium .sal-split-tab,
  .sal-card-premium .bonus-tab-layout.bonus-tab-split { height: auto; min-height: 100% !important; }
}

@media (max-width: 860px) {
  .sal-premium-page { display: flex; height: 100%; overflow: hidden; }
  .sal-premium-page .sal-list-hero { flex: 0 0 auto; flex-direction: row; align-items: center; }
  .sal-premium-page .sal-list-metrics { flex: 0 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sal-premium-page .sal-filter-panel { flex: 0 0 auto; }
  .sal-premium-page .sal-list-table-card { flex: 1 1 auto; }
  .sal-card-premium .sal-card-page-top { flex-basis: auto; align-items: stretch; }
  .sal-card-premium .sal-card-identity-band { flex-basis: auto; }
}

@media (max-width: 720px) {
  .sal-premium-page .sal-list-hero { flex-direction: column; align-items: stretch; }
  .sal-premium-page .sal-list-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sal-premium-page .sal-list-metric { min-height: 54px; padding: 8px; }
  .sal-premium-page .sal-list-metric > span { font-size: 9px; }
  .sal-premium-page .sal-list-metric > strong { font-size: 19px; }
  .sal-card-premium .sal-card-page-body { overflow: auto !important; }
  .sal-card-premium .sal-net-primary-grid,
  .sal-card-premium .sal-net-secondary-grid { grid-template-columns: 1fr; }
}
