/* nominas.css */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tab { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid transparent; color: var(--muted); border-radius: 10px 10px 0 0; padding: 8px 14px; }
.tab.active { background: var(--panel); color: var(--text); font-weight: 700; border-color: var(--line); border-bottom-color: transparent; }
.tab .x { background: none; border: 0; color: var(--muted); padding: 0 2px; font-size: 12px; }
.tab.active .x { color: var(--red); }
.tab-add { display: flex; gap: 6px; flex: 0 0 auto; }
.tab-add input { width: 90px; padding: 6px 8px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.chip { flex: 0 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--muted); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #0d1117; font-weight: 700; }

.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.totals.t4 { grid-template-columns: repeat(2, 1fr); }

.shifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.shift { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; cursor: pointer; text-align: left; width: 100%; }
.shift:hover { border-color: var(--blue); }
.shift .l1 { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.shift .l2 { color: var(--muted); font-size: 14px; margin: 2px 0 8px; }
.shift .nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 6px; font-size: 13px; }
.nums b { display: block; font-size: 15px; }
.nums .lbl { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.net { color: var(--blue); }
.tax { color: var(--red); }
.plus { color: var(--lime); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.role { font-size: 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--muted); }

.fab { position: fixed; right: 18px; bottom: calc(86px + var(--safe-b)); z-index: 25; width: 56px; height: 56px; border-radius: 50%; background: var(--green); border: 0; font-size: 30px; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
@media (min-width: 701px) { .fab { bottom: 24px; } }

.tbl-wrap { display: none; }
@media (min-width: 900px) {
  .totals.t4 { grid-template-columns: repeat(4, 1fr); }
  .shifts { display: none; }
  .tbl-wrap { display: block; overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
  .tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
  .tbl th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; user-select: none; }
  .tbl th:hover { color: var(--text); }
  .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .tbl td.c { text-align: center; }
  .tbl tbody tr { cursor: pointer; }
  .tbl tbody tr:hover { background: var(--panel2); }
  .tbl tfoot td { font-weight: 700; background: var(--panel2); border-bottom: 0; }
}