/* 工资计算器页面样式 */
#salaryMain { padding: 18px 20px 48px; max-width: 1240px; margin: 0 auto; }
.salary-grid { display: grid; grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); gap: 14px; align-items: start; }
.salary-left, .salary-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.field-gross { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.field-gross input {
  font-size: 22px; font-weight: 800; color: var(--accent);
  width: 160px; padding: 8px 12px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--panel2); color: var(--text);
}
.field-gross input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field-city { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.field-city select { min-width: 140px; }

.switch-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 0; }
.switch-row.sub { padding-left: 4px; border-top: 1px dashed var(--line); }
.switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; font-weight: 600; }
.switch input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.switch-row input[type="number"], .ded-row input[type="number"] {
  width: 110px; padding: 5px 8px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--panel2); color: var(--text); text-align: right;
}
.switch-row input[type="number"]:focus, .ded-row input[type="number"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.switch-row input[type="range"] { accent-color: var(--accent); width: 140px; }

.ded-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.ded-row:last-of-type { border-bottom: none; }
.ded-row > span:first-child { min-width: 128px; font-size: 13.5px; font-weight: 600; }
.ded-row.sub > span:first-child { min-width: 0; }
.ded-sum { margin: 8px 0 0; }

.result-hero { text-align: center; padding: 22px 16px; }
.result-num b { display: block; font-size: 44px; font-variant-numeric: tabular-nums; color: var(--accent); line-height: 1.15; }
.result-num small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.result-num span { font-size: 13px; color: var(--muted); }
.result-sub { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.result-sub > div {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; background: var(--panel2);
  display: flex; flex-direction: column; min-width: 96px;
}
.result-sub span { font-size: 11px; color: var(--muted); }
.result-sub b { font-size: 16px; font-variant-numeric: tabular-nums; }

.salary-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.salary-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.salary-table td:first-child { color: var(--muted); }
.salary-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.salary-table td.note { text-align: left; font-size: 11.5px; color: var(--muted); opacity: .8; }
.salary-table tr.total td { border-top: 2px solid var(--line); border-bottom: none; font-weight: 800; color: var(--accent); }
.salary-table tr.total td.num { font-size: 15px; }

.kv-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.kv-row b { font-variant-numeric: tabular-nums; }
.foot { margin: 4px 0 0; line-height: 1.7; }

@media (max-width: 900px) {
  .salary-grid { grid-template-columns: 1fr; }
  .result-num b { font-size: 36px; }
}

.month-table { min-width: 640px; }
.month-table th, .month-table td { white-space: nowrap; }
.month-table thead th {
  position: sticky; top: 0; text-align: right; font-weight: 650;
  color: var(--muted); border-bottom: 1.5px solid var(--line); padding: 7px 8px;
  background: var(--panel);
}
.month-table td:first-child, .month-table thead th:first-child { text-align: left; }
.month-table td.take { color: var(--ok); font-weight: 750; }
.month-table tfoot td { border-top: 2px solid var(--line); font-weight: 800; color: var(--accent); }
.month-table tfoot td.take { color: var(--ok); }
.month-table td.note { padding: 8px; font-size: 12px; color: var(--muted); }
