/* Condominium fees: one stylesheet, no build step (same look as the payroll app). */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap");

:root {
  --ground: #F3F5F7; --surface: #FFFFFF; --border: #DDE2E8; --border-strong: #CBD3DC;
  --ink: #17202A; --ink-2: #2C3846; --muted: #4E5B69;
  --accent: #1D5C8C; --accent-dark: #154A72; --accent-soft: #E6EFF6;
  --warn: #8A4209; --warn-soft: #FDF0E3; --error: #8A2C0B;
  --radius: 12px; --brand: #14324A;
  --on-accent: #FFFFFF; --accent-fill: #1D5C8C; --surface-2: #F8F9FB; --surface-3: #EEF1F4;
  --border-soft: #EDF0F3; --line-mid: #8A96A3; --warn-ink: #6B3407; --error-soft: #FBE9E4;
  --info-soft: #FFF6E5; --info-ink: #6B4A00; --info-line: #D9A400; --over-soft: #FCE9D6; --over-line: #D9822B;
  --shadow: rgba(23, 32, 42, 0.08);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink);
  font: 15px/1.5 "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; }
a { color: var(--accent); } a:hover { color: var(--accent-dark); }
h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.muted { color: var(--muted); } .small { font-size: 13px; } .strong { font-weight: 600; }
.warn { color: var(--warn); } .mt { margin-top: 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Layout */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.sidebar { flex: 1 1 220px; max-width: 100%; background: var(--surface); border-right: 1px solid var(--border);
  padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; }
.content { flex: 999 1 560px; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; }
.employer { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.employer-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.logo-placeholder { width: 44px; height: 44px; border: 1.5px dashed var(--line-mid); border-radius: 10px; display: flex;
  align-items: center; justify-content: center; font-size: 11px; color: var(--muted); flex: none; }
.employer-text { display: flex; flex-direction: column; min-width: 0; }
.employer-name { font-weight: 600; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a, .nav-soon { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav-soon { color: var(--muted); } .nav-soon em, .tab-soon em { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 99px; background: var(--surface-3); }
.sidebar-user { margin-top: auto; padding: 12px; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 2px; }
.link-button { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 32px; text-align: left; }

/* Page pieces */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.eyebrow-muted { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 14px; font-weight: 500; color: var(--muted); }
.stat-value { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.notice { padding: 14px 18px; border-radius: 10px; background: var(--warn-soft); color: var(--warn-ink); }
.error-notice { background: var(--error-soft); color: var(--error); }
.note { margin: 12px 0; padding: 12px 14px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
.messages { display: flex; flex-direction: column; gap: 8px; }
.message { margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); }
.message.error { background: var(--error-soft); color: var(--error); }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { text-decoration: none; font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover { background: var(--accent-dark); color: var(--on-accent); }
.btn.block { width: 100%; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.form-actions.sticky { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--ground) 30%); }

/* Forms */
label { font-size: 14px; font-weight: 500; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time],
input[type=search], input[type=password], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; }
textarea { min-height: 88px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.help { font-size: 13px; color: var(--muted); }
.error { font-size: 13px; color: var(--error); font-weight: 500; }
.pills { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills legend { width: 100%; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.pills > div { display: contents; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--border-strong);
  border-radius: 8px; background: var(--surface); cursor: pointer; font-weight: 500; }
.pill:has(input:checked) { border: 2px solid var(--accent); padding: 0 13px; background: var(--surface-2); font-weight: 600; }
.pill input, .toggle input { margin: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface-2); cursor: pointer; margin-top: 8px; }
.field.check { grid-column: 1 / -1; }
.field.check .toggle { margin-top: 0; }
[hidden] { display: none !important; }

/* Tabs, toolbar, tables */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); }
.tabs a, .tab-soon { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; margin-bottom: -1px;
  border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-weight: 500; }
.tabs a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); font-weight: 600; }
.tab-soon { color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
.toolbar input[type=search] { flex: 1 1 260px; width: auto; }
.toolbar select { width: auto; }
.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--border-soft); }
.card > .table-wrap { margin: 0 -24px -22px; }
.num { text-align: right; }
.chip { padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.chip.active { background: var(--accent-soft); color: var(--accent-dark); }
.chip.inactive { background: var(--surface-3); color: var(--ink-2); }

/* Settings */
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > * { flex: 1 1 320px; min-width: 0; }
.split .grid, .split.wide-left > :first-child { flex: 2 1 420px; }
.logo-box { display: flex; flex-direction: column; gap: 10px; }
.logo-preview { max-width: 220px; max-height: 120px; object-fit: contain; border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: var(--surface); }
.logo-drop { height: 110px; border: 1.5px dashed var(--line-mid); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--muted); background: var(--surface-2); }

/* Employee profile */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.profile-title { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; flex: none; }
.section-links { display: flex; flex-wrap: wrap; gap: 8px; }
.section-links a { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--border-strong);
  border-radius: 99px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 560px) { .sections { grid-template-columns: 1fr; } .content { padding: 20px 16px 40px; } }

/* Sign-in pages (colors come from the firm's branding in config/branding.py) */
body.auth { background: #FFFFFF; --brand: #095344; --brand-accent: #00B46C; --brand-soft: #EAF7F0; }
body.auth a { color: var(--brand); }
body.auth :focus-visible { outline-color: var(--brand-accent); }
.auth-layout { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-brand { flex: 1 1 420px; padding: 40px 48px; background: #FFFFFF; color: var(--brand); display: flex; flex-direction: column; gap: 28px;
  border-right: 1px solid #D7EBE0; }
.firm-logo { width: 100%; max-width: 340px; height: auto; align-self: flex-start; }
.firm { display: flex; flex-direction: column; gap: 2px; }
.firm-name { font-size: 22px; font-weight: 700; color: var(--brand); }
.firm-subtitle { font-size: 15px; font-weight: 600; color: #2E6B5A; letter-spacing: 0.02em; }
.auth-pitch h1 { font-size: 34px; line-height: 1.15; margin-bottom: 12px; color: var(--brand); }
.auth-pitch p { margin: 0; font-size: 17px; color: #2F4A42; max-width: 460px; }
.auth-contact { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.auth-contact a, .auth-contact span:not(.eyebrow) { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 600; text-decoration: none; }
.auth-contact svg, .auth-foot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #3F7A69; }
.auth-copy { margin-top: auto; font-size: 13px; color: #4C6B62; }
.auth-main { flex: 1.3 1 480px; padding: 48px 24px; background: var(--brand-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 36px; background: #FFFFFF; border: 1px solid #CFE6DA; border-radius: 16px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 1px 2px rgba(9, 83, 68, 0.06); }
.auth-card h2 { margin: 0; font-size: 26px; color: var(--brand); }
.auth-card p { margin: 0; }
.auth-card form { display: flex; flex-direction: column; gap: 10px; }
.auth-card input:focus { outline: 2px solid var(--brand-accent); outline-offset: 1px; border-color: var(--brand-accent); }
.auth-card .btn.primary { background: var(--brand); border-color: var(--brand); margin-top: 8px; min-height: 50px; font-size: 16px; }
.auth-card .btn.primary:hover { background: #06402F; border-color: #06402F; }
.auth-card .btn:not(.primary) { border-color: #B9D9C8; color: var(--brand); }
.auth-card .btn:not(.primary):hover { background: var(--brand-soft); }
.auth-card .link-button { color: var(--brand); }
.code-input { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 28px !important; letter-spacing: 0.4em; text-align: center; min-height: 60px !important; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.row-between a { text-decoration: none; }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13px; color: #2F5C50; }
.auth-foot span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) { .auth-brand { padding: 28px 24px; border-right: 0; border-bottom: 1px solid #D7EBE0; } .auth-pitch h1 { font-size: 28px; } }

/* Users and account pages */
.narrow-card { max-width: 720px; width: 100%; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.pills.stacked { flex-direction: column; align-items: stretch; }
.pills.stacked .pill { min-height: 52px; padding: 10px 14px; align-items: flex-start; }
.pills.stacked .pill:has(input:checked) { padding: 9px 13px; }
.pills.stacked .pill input { margin-top: 2px; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.role-grid p { margin: 4px 0 0; }

/* Payroll screens */
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.head-actions form { margin: 0; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.tabular { font-variant-numeric: tabular-nums; }
.chip.draft { background: var(--warn-soft); color: var(--warn); }
.chip.calculated { background: var(--info-soft); color: var(--info-ink); }
.chip.approved { background: var(--accent-soft); color: var(--accent-dark); }
tr.current-row td { background: var(--surface-2); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.steps li > a, .steps .step-static { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.steps li > a > span, .steps .step-static > span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-mid); display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px; }
.steps li.done > a { color: var(--ink); }
.steps li.done > a > span { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.steps li.current > a { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); font-weight: 600; }
.steps li.current > a > span { background: var(--surface); border-color: var(--on-accent); color: var(--accent); }
.steps em { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 99px; background: var(--surface-3); }

.toolbar form { margin: 0; }
.hours-grid { min-width: max-content; }
.hours-grid th, .hours-grid td { padding: 6px 4px; }
.hours-grid th.day { text-align: center; font-size: 12px; line-height: 1.25; min-width: 58px; }
.hours-grid th.weekend { background: var(--surface-3); }
.hours-grid .sticky-col { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; min-width: 200px;
  padding-left: 16px; border-right: 1px solid var(--border-soft); }
.hours-grid thead .sticky-col, .hours-grid tfoot .sticky-col { background: var(--surface-2); }
.hours-grid tbody th.sticky-col { font-weight: 400; }
.hours-grid tbody th.sticky-col .muted { display: block; }
.hours-grid tfoot td, .hours-grid tfoot th { background: var(--surface-2); font-weight: 600; }
.hour-input { width: 54px; min-height: 40px !important; padding: 4px !important; text-align: center; }
.hour-input.over { border-color: var(--over-line); background: var(--over-soft); font-weight: 600; }
.hour-input.leave { background: var(--surface-2); }
.hour-input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.legend { display: flex; align-items: center; gap: 8px; margin: 0; }
.legend-box { width: 14px; height: 14px; flex: none; border-radius: 4px; background: var(--over-soft); border: 1px solid var(--over-line); }
.action-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  position: sticky; bottom: 12px; z-index: 2; box-shadow: 0 2px 10px var(--shadow); }

.stat-value.accent { color: var(--accent); }
.warnings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.warnings li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; }
.badge { flex: none; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--accent-soft); color: var(--accent-dark); }
.review-table tr.selected td { background: var(--accent-soft); }
.detail h2 { margin-bottom: 2px; }
.detail h3 { margin: 18px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; }
.detail-row.total { border-top: 1px solid var(--border-soft); margin-top: 4px; padding-top: 8px; font-weight: 600; }
.net-box { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 18px; }
.empty-state { text-align: center; padding: 40px 24px; }
.empty-state form { margin-top: 16px; }
.policy-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.policy-form select { width: auto; }
.policy-form .muted { flex: 1 1 320px; }
.dash-payroll { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.dash-payroll p { margin: 0; }
.steps li.current > .step-static { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Christmas bonus */
.bonus-grid { min-width: max-content; }
.bonus-grid th, .bonus-grid td { padding: 6px 6px; vertical-align: middle; }
.bonus-grid .sticky-col { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; min-width: 200px; font-weight: 400; }
.bonus-grid thead .sticky-col { background: var(--surface-2); }
.bonus-grid tbody th.sticky-col .muted { display: block; }
.bonus-grid tr.excluded td, .bonus-grid tr.excluded th { opacity: 0.55; }
.amount-input { width: 110px; min-height: 40px !important; padding: 4px 8px !important; text-align: right; }
.amount-input.short { width: 80px; } .amount-input.tiny { width: 56px; }
.amount-input.over { border-color: var(--over-line); background: var(--over-soft); font-weight: 600; }
.amount-input[readonly], .note-input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.note-input { width: 220px; min-height: 40px !important; padding: 4px 8px !important; }
.bonus-start { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.bonus-start .field { flex: 0 1 200px; }

/* Reports */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.report-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.report-card:hover { border-color: var(--accent); }
.report-card h2 { margin: 0; color: var(--accent); }
.report-card p { margin: 0; }
.report-table tr.section-row th { background: var(--surface-2); text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.report-table.wide th { white-space: normal; min-width: 96px; }
.toolbar label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.toolbar label input, .toolbar label select { width: auto; }
.column-picker { margin: 16px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.column-picker legend { width: 100%; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.check-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 99px; font-size: 14px; cursor: pointer; }
.check-chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check-chip input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.note.info-note { background: var(--info-soft); color: var(--info-ink); border-left: 4px solid var(--info-line); }
.hour-input.meal { display: block; margin-top: 4px; min-height: 30px !important; font-size: 12px; background: var(--info-soft); border-color: var(--info-line); }
.hour-input.meal::placeholder { color: var(--info-line); }
.message.warning { background: var(--info-soft); color: var(--info-ink); }
.rates-table td, .rates-table th { white-space: nowrap; }
.bracket-table input { width: 140px; }
.confirm-box { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--info-line); background: var(--info-soft); border-radius: 10px; }
.history-table td { vertical-align: top; }
.nowrap { white-space: nowrap; }
.change-list { margin: 0; padding-left: 16px; font-size: 13px; }
.change-list del { color: var(--muted); }
.item-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 16px; }
.item-form .field { flex: 1 1 160px; }
.item-form .field:nth-child(4) { flex: 2 1 240px; }

/* Time clock */
.quick-punch { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 8px; }
.quick-punch label { font-weight: 600; color: var(--brand, #095344); }
.quick-punch-row { display: flex; gap: 8px; }
.quick-punch-row input { flex: 1 1 auto; min-width: 0; letter-spacing: 0.2em; }
.hour-input.punched { border-color: #7FB8A2; }
.punch-flag { color: var(--warn); font-weight: 600; }
.punch-voided td { text-decoration: line-through; color: var(--muted); }

/* Tax filings */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 28px; margin: 0; }
.facts dt { color: var(--muted, #5B6470); }
.facts dd { margin: 0; font-weight: 600; }
.day-grid td { vertical-align: top; min-width: 84px; }
.btn.disabled { opacity: .5; pointer-events: none; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 8px; } }

/* New-hire forms on the employee page */
.hire-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hire-links li { border-top: 1px solid var(--border-soft); padding-top: 12px; }
.hire-links li:first-child { border-top: 0; padding-top: 0; }
.hire-links p { margin: 4px 0 0; }
.hire-links .badge { margin-left: 6px; }

/* Companies */
.company-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -4px 0 18px; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.company-card { display: block; text-align: left; width: 100%; cursor: pointer; border: 1px solid var(--border); }
.company-card.current { border-color: var(--brand, #095344); box-shadow: 0 0 0 2px var(--accent-soft); }
.company-card .code { font-variant-numeric: tabular-nums; font-weight: 600; }

/* destructive actions */
.btn.danger { background: #B42318; border-color: #B42318; color: var(--on-accent); font-weight: 600; }
.btn.danger:hover { background: #912018; color: var(--on-accent); }

/* PR income tax set by hand (review screen) */
.tax-edit { margin: 12px 0 4px; padding: 12px; border: 1px dashed var(--border-strong); border-radius: 10px; display: grid; gap: 8px; }


/* Dark mode: chosen in the sidebar (Appearance), or following the device when set to Automatic.
   Only the colors change; printing always uses the light colors. */
@media screen {
  :root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0E141A; --surface: #161E27; --border: #2A3542; --border-strong: #3A4757;
  --ink: #E6EBF0; --ink-2: #C9D2DB; --muted: #9AA7B4;
  --accent: #6FAEE0; --accent-dark: #93C4EA; --accent-soft: #1B3247; --accent-fill: #2A6EA6; --on-accent: #FFFFFF;
  --warn: #F0A867; --warn-soft: #3A2615; --warn-ink: #F3C79E; --error: #F59A85; --error-soft: #3B1E18;
  --surface-2: #1B242E; --surface-3: #222C37; --border-soft: #232D38; --line-mid: #5C6A79;
  --info-soft: #33290F; --info-ink: #F0D58A; --info-line: #9C7B1E; --over-soft: #3D2713; --over-line: #C77A2E;
  --shadow: rgba(0, 0, 0, 0.45); --brand: #9CC3E4;
  }
}
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --ground: #0E141A; --surface: #161E27; --border: #2A3542; --border-strong: #3A4757;
  --ink: #E6EBF0; --ink-2: #C9D2DB; --muted: #9AA7B4;
  --accent: #6FAEE0; --accent-dark: #93C4EA; --accent-soft: #1B3247; --accent-fill: #2A6EA6; --on-accent: #FFFFFF;
  --warn: #F0A867; --warn-soft: #3A2615; --warn-ink: #F3C79E; --error: #F59A85; --error-soft: #3B1E18;
  --surface-2: #1B242E; --surface-3: #222C37; --border-soft: #232D38; --line-mid: #5C6A79;
  --info-soft: #33290F; --info-ink: #F0D58A; --info-line: #9C7B1E; --over-soft: #3D2713; --over-line: #C77A2E;
  --shadow: rgba(0, 0, 0, 0.45); --brand: #9CC3E4;
  }
}
@media screen {
  :root[data-theme="dark"] img.employer-logo, :root[data-theme="dark"] .logo-preview { background: #FFFFFF; border-radius: 8px; }
}
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.employer-logo, :root:not([data-theme="light"]) .logo-preview { background: #FFFFFF; border-radius: 8px; }
}
/* The sign-in and time clock pages keep the firm's light branding. */
body.auth { color-scheme: light; --ground: #F3F5F7; --surface: #FFFFFF; --border: #DDE2E8; --border-strong: #CBD3DC;
  --ink: #17202A; --ink-2: #2C3846; --muted: #4E5B69; --accent: #1D5C8C; --accent-dark: #154A72; --accent-soft: #E6EFF6;
  --accent-fill: #1D5C8C; --surface-2: #F8F9FB; --surface-3: #EEF1F4; --border-soft: #EDF0F3; --line-mid: #8A96A3;
  --warn: #8A4209; --warn-soft: #FDF0E3; --warn-ink: #6B3407; --error: #8A2C0B; --error-soft: #FBE9E4;
  --info-soft: #FFF6E5; --info-ink: #6B4A00; --info-line: #D9A400; --over-soft: #FCE9D6; --over-line: #D9822B; }
.theme-select { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.theme-select select { width: auto; min-height: 32px; padding: 2px 8px; font-size: 13px; }

/* Condominium fees */
.lang-switch { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; align-self: flex-start; }
.lang-switch button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; padding: 6px 12px; cursor: pointer; min-height: 32px; }
.lang-switch button[aria-pressed="true"] { background: var(--accent-fill); color: var(--on-accent); font-weight: 600; }
.auth-main .lang-switch { align-self: flex-end; margin-bottom: 12px; background: #FFFFFF; }
.setup-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.setup-list li.done, .setup-list li.done a { color: var(--muted); text-decoration: line-through; }
.owner-block { border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin: 0 0 14px; }
.owner-block legend { padding: 0 6px; font-weight: 600; }
.stack-col { display: flex; flex-direction: column; gap: 20px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.placeholder-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.placeholder-list dt code { font-family: "IBM Plex Mono", monospace; font-size: 12px; background: var(--surface-3); padding: 1px 6px; border-radius: 5px; }
.placeholder-list dd { margin: 0; color: var(--muted); }
.inline-form { display: inline; margin: 0; }
.stat-value.warn { color: var(--warn); }
tfoot th, tfoot td { background: var(--surface-2); font-weight: 600; }
.notice.small { font-size: 13px; }
textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
