/* neenPayroll additions on top of the shared app.css */
.brand-mark.peso { font-weight: 800; font-size: 1rem; }
.brand small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: 0; line-height: 1.1; }
.brand > span:not(.brand-mark) { line-height: 1.15; }

/* Sidebar "coming soon" items */
.side nav .soon { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--muted); opacity: .55; font-weight: 500; font-size: .94rem; cursor: default; }
.side nav .soon em { margin-left: auto; font-style: normal; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; }
.bell { position: relative; color: var(--text); display: inline-flex; padding: 6px; }
.bell .count { position: absolute; top: 0; right: -2px; font-size: .66rem; background: var(--danger); color: #fff; border-radius: 999px; padding: 0 5px; font-weight: 700; }

.narrow { max-width: 760px; }
.small code, code { font-size: .82em; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; padding: 0 5px; }

/* Setup journey */
.journey { margin-bottom: 22px; }
.journey-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.progress { width: 220px; max-width: 100%; height: 8px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-top: 1px solid var(--border); }
.steps li:first-child { border-top: 0; }
.steps .num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 700; border: 2px solid var(--border); color: var(--muted); }
.steps li.done .num { background: var(--success); border-color: var(--success); color: #fff; }
.steps li.done strong { color: var(--muted); }
.steps li.current .num { border-color: var(--brand); color: var(--brand); }
.steps li.current { background: var(--brand-soft); border-radius: 10px; padding-left: 10px; padding-right: 10px; }
.steps li.soon { opacity: .6; }
.steps .btn { flex: none; }

.roadmap { margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.roadmap li { padding: 6px 0 6px 26px; position: relative; color: var(--muted); }
.roadmap li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border); }
.roadmap li.on { color: var(--text); font-weight: 600; }
.roadmap li.on::before { background: var(--success); border-color: var(--success); }

dl.kv.tight { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
dl.kv.tight dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Radio / checkbox cards */
.choice-list { display: grid; gap: 8px; margin-bottom: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--surface); }
.choice:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { width: auto; margin-top: 4px; accent-color: var(--brand); }
.choice > span { display: flex; flex-direction: column; gap: 1px; }

/* Premium rates */
.rate-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.rate-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 12px; border-top: 1px solid var(--border); font-size: .92rem; margin: 0; font-weight: 400; }
.rate-row:first-child { border-top: 0; }
.rate-row input { width: 90px; flex: none; }
input.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Statutory */
.verify-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.stat-tables .card-head { margin-bottom: 8px; }
.tax-tables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .tax-tables { grid-template-columns: minmax(0, 1fr); } }
table.compact th, table.compact td { padding: 7px 10px; }
table.compact caption { text-align: left; font-weight: 700; padding: 10px 10px 6px; }
table.compact tr.total td { font-weight: 700; border-bottom: 0; }
table.edit input { padding: 6px 8px; min-width: 0; }
.unit-input { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.unit-input span { padding: 0 12px; color: var(--muted); background: var(--bg-soft); align-self: stretch; display: grid; place-items: center; }
.unit-input input { border: 0; border-radius: 0; box-shadow: none; }

/* Lists */
.edit-list { list-style: none; margin: 0 0 12px; padding: 0; }
.edit-list li { border-top: 1px solid var(--border); }
.edit-list li:first-child { border-top: 0; }
.edit-list li.off input { color: var(--muted); text-decoration: line-through; }
.edit-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.edit-row input { border-color: transparent; background: transparent; padding: 6px 8px; min-width: 0; flex: 1; }
.edit-row input:hover, .edit-row input:focus { border-color: var(--border); background: var(--surface); }
.add-row { display: flex; gap: 8px; }
.add-row input { min-width: 0; flex: 1; }
.link-btn.danger { color: var(--danger); }

tr.off td { opacity: .55; }
.item.unread { background: var(--brand-soft); }
.audit-val { max-width: 340px; word-break: break-word; }
.outbox .item { padding: 10px 14px; }

@media (max-width: 620px) {
  .steps li { flex-wrap: wrap; }
  .steps .grow { flex: 1 1 calc(100% - 42px); min-width: 0; }
  .steps .btn, .steps .badge { margin-left: 42px; }
  .rate-row { font-size: .86rem; }
}

/* Lists page: columns wrap instead of squeezing */
.grid.lists { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.edit-row .link-btn, .edit-row .badge { font-size: .8rem; flex: none; }
.edit-row .badge { min-width: 62px; justify-content: center; }
.add-row { flex-wrap: wrap; }
.add-row input { flex: 1 1 160px; }

/* ---------- Stage 2+ pages ---------- */
.warn-text { color: var(--warn); }
.neg { color: var(--danger); }
.flush { padding: 0; overflow: hidden; }
.flush > table th:first-child, .flush > table td:first-child { padding-left: 18px; }
.card-head.pad { padding: 16px 18px 6px; margin: 0; }
.tight-list { margin: 6px 0 0; padding-left: 18px; }
.tight-list li { margin: 3px 0; }
tr.bad-row td { background: color-mix(in srgb, var(--danger) 6%, transparent); }
tr.nonwork td { background: var(--bg-soft); }
.list.plain { border: 0; background: none; border-radius: 0; }
.list.plain .item { padding: 9px 0; }

.missing-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; margin-bottom: 16px; }
.chip { display: inline-block; font-size: .8rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.chip:hover { text-decoration: none; border-color: var(--brand); }
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* Employee record */
.emp-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; gap: 18px; }
.section-card details > summary, .card details > summary.card-head { list-style: none; cursor: pointer; }
.section-card details > summary::-webkit-details-marker, .card details > summary.card-head::-webkit-details-marker { display: none; }
.section-card details[open] + .facts { display: none; }
.edit-form { margin: 4px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.facts.one { grid-template-columns: minmax(0, 1fr); }
.facts.one div { padding: 7px 0; font-size: .9rem; gap: 12px; }
.facts.one dd { text-align: right; word-break: break-word; }
.day-picks { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.day-picks label { display: inline-flex; gap: 4px; align-items: center; font-weight: 500; margin: 0; font-size: .88rem; }
.day-picks input { width: auto; }
.ledger { padding: 10px 0; border-top: 1px solid var(--border); display: grid; gap: 2px; }
.ledger:first-of-type { border-top: 0; }
.item.off { opacity: .55; }
details > summary.link-btn { list-style: none; cursor: pointer; display: inline-block; }
details > summary.link-btn::-webkit-details-marker { display: none; }

/* Timesheets */
.days td { vertical-align: top; }
details.fix { position: relative; }
details.fix[open] > summary { font-weight: 700; }
.fix-form { position: absolute; right: 0; z-index: 5; width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; display: grid; gap: 8px; text-align: left; }
.fix-form input[type=time] { width: 110px; }
.fix-form label { font-weight: 500; margin: 0; display: flex; gap: 6px; align-items: center; }
.fix-form input[type=checkbox] { width: auto; }
.approve-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.approve-bar label { font-weight: 500; margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.approve-bar input[type=checkbox] { width: auto; }

/* Leave */
.leave-card .decide { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.leave-card .decide input { width: 220px; }
.btn.danger { color: var(--danger); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); margin-bottom: 10px; }
.cal-h { padding: 8px; font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.cal-d { min-height: 92px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-d:nth-child(7n) { border-right: 0; }
.cal-d.empty-d { background: var(--bg-soft); }
.cal-d.hol { background: var(--brand-soft); }
.cal-d .n { font-size: .8rem; font-weight: 700; }
.cal-d .hol-name { font-size: .68rem; color: var(--brand); font-weight: 600; }
.cal-d .pill { font-size: .7rem; background: var(--success-soft); color: var(--success); border-radius: 6px; padding: 1px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-d .pill.wait { background: repeating-linear-gradient(45deg, var(--warn-soft), var(--warn-soft) 4px, transparent 4px, transparent 8px); color: var(--warn); }
.type-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 14px 16px; }
.type-row .field { margin: 0; }
.type-row .grow { flex: 1 1 200px; }
.type-row.off { opacity: .6; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-bottom: 8px; }
.checks label { display: inline-flex; gap: 5px; align-items: center; font-weight: 500; margin: 0; }
.checks input { width: auto; }

/* Advances */
.decide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin-top: 12px; }
.decide-grid .field { margin: 0; }
@media (max-width: 900px) { .decide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pay runs */
.next-run { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; background: var(--brand-soft); border-color: transparent; }
.run-steps { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.run-steps li { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; border: 1px solid var(--border); font-size: .86rem; color: var(--muted); background: var(--surface); }
.run-steps .num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .74rem; font-weight: 700; border: 2px solid var(--border); }
.run-steps li.done { color: var(--text); }
.run-steps li.done .num { background: var(--success); border-color: var(--success); color: #fff; }
.run-steps li.current { border-color: var(--brand); color: var(--text); font-weight: 600; background: var(--brand-soft); }
.run-steps li.current .num { border-color: var(--brand); color: var(--brand); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.checklist li { padding: 8px 12px; border-radius: 8px; background: var(--bg-soft); }
.checklist li.bad { background: var(--danger-soft); color: var(--danger); }
.checklist li.warn { background: var(--warn-soft); }
form.row label { margin: 0; display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
form.row input[type=checkbox] { width: auto; }
.run-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 18px; }
.link-btn.xs { font-size: .74rem; }

/* Payslip on screen */
.payslip { max-width: 820px; }
.ps-head { display: flex; justify-content: space-between; gap: 14px; border-bottom: 3px solid var(--brand); padding-bottom: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ps-head h2 { margin: 0; font-size: 1.2rem; }
.ps-head .right { text-align: right; }
.ps-info { margin-bottom: 16px; }
.ps-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ps-cols h4 { margin: 0 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ps-net { display: flex; justify-content: space-between; align-items: center; background: var(--brand); color: var(--brand-ink); padding: 14px 18px; border-radius: 10px; margin: 18px 0 12px; }
.ps-net strong { font-size: 1.4rem; }
@media (max-width: 700px) { .ps-cols { grid-template-columns: minmax(0, 1fr); } .ps-head .right { text-align: left; } }

/* Reports */
.report-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.report-card { color: inherit; transition: border-color .15s; }
.report-card:hover { text-decoration: none; border-color: var(--brand); }
.report-card h3 { margin-bottom: 4px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.bar { width: 100%; max-width: 38px; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-col span { font-size: .7rem; color: var(--muted); }

/* Self-service */
.me-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.big-num { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
details.onb { border-top: 1px solid var(--border); padding: 12px 4px; }
details.onb > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 12px; align-items: center; }
details.onb > summary::-webkit-details-marker { display: none; }
details.onb > summary .muted { grid-column: 2; }
details.onb .num { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 700; border: 2px solid var(--border); color: var(--muted); }
details.onb .num.ok { background: var(--success); border-color: var(--success); color: #fff; }
details.onb form { margin: 14px 0 4px 42px; }
@media (max-width: 620px) { details.onb form { margin-left: 0; } .cal-d { min-height: 64px; } .cal-d .pill { font-size: .6rem; } .fix-form { right: auto; left: -180px; } }
.todo .item { padding: 10px 0; gap: 10px; }
.todo .item:hover { text-decoration: none; color: var(--brand); }
