/* Payday green theme (matches the Render build). Loaded after styles.css. */
:root { --g: #15803d; --g-dark: #0f6b32; --g-deep: #064e2b; --line: #dde3ee; --muted: #5b6b82; }
body { background: #f1f4f9; color: #1c2a3f; }
a { color: var(--g); }
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, var(--g) 0%, var(--g-deep) 100%); color: #fff; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.sidebar .brand { padding: 4px 6px 14px; min-width: 0; }
.payday-chip { display: block; background: #fff; border-radius: 10px; padding: 8px 10px; line-height: 0; width: 100%; max-width: 210px; }
.payday-wordmark { display: block; width: 100%; height: auto; }
.by-agency { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6b7280; line-height: normal; }
.sig-line { justify-content: center; margin-top: 6px; }
.by-agency .sig { height: 26px; width: auto; display: block; }
.nav-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #a8dfbd; margin: 14px 8px 4px; }
.nav a, .nav button.navlink { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; color: #e8faef; text-decoration: none; padding: 8px 10px; border-radius: 8px; background: transparent; border: 0; font-size: 14px; cursor: pointer; font-family: inherit; }
.nav a:hover, .nav button.navlink:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav a.active { background: #fff; color: var(--g-dark); font-weight: 700; }
.nav .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .7; flex: none; }
.side-foot { margin-top: auto; padding: 10px 8px 2px; font-size: 12px; color: #d3f2df; border-top: 1px solid rgba(255,255,255,.18); }
.side-foot b { color: #fff; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.topbar h1 { font-size: 18px; margin: 0; }
.topbar .addr { color: var(--muted); font-size: 12px; }
.topbar .sp { flex: 1; }
.clock { font-variant-numeric: tabular-nums; color: var(--g-dark); font-weight: 600; font-size: 13px; white-space: nowrap; }
.content { padding: 18px 22px 36px; max-width: 1280px; }
.card { border-radius: 12px; border-color: var(--line); }
section.card { scroll-margin-top: 12px; }
button, .btn { background: var(--g); border-radius: 8px; }
button:hover, .btn:hover { background: var(--g-dark); }
.btn2 { background: #475569; } .btn2:hover { background: #334155; }
button[aria-pressed="true"], button[aria-pressed="true"]:hover { background: var(--g-deep); }
.nav button.navlink:hover { background: rgba(255,255,255,.12); }
tr.total td, tr.total th { border-top-color: var(--g-deep); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #6fcf97; outline-offset: 2px; }
/* Sign-in */
.login-bg { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--g) 0%, var(--g-deep) 100%); padding: 16px; margin: 0; max-width: none; }
.login-wrap { background: #fff; border-radius: 16px; padding: 26px; width: 100%; max-width: 380px; margin: 0; }
.login-wrap .card { border: 0; box-shadow: none; padding: 0; margin: 0; background: transparent; }
.login-wrap button[type=submit] { width: 100%; margin-top: 10px; }
.login-wrap .row-actions { display: block; }
.login-brand { text-align: center; margin-bottom: 10px; }
.login-logo { display: block; width: 100%; height: auto; margin: 4px 0 6px; }
.login-brand .sig { height: 30px; }
.muted.center { text-align: center; margin: 8px 0 4px; }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar .brand { flex: 0 0 100%; }
  .side-foot { margin-top: 0; border: 0; }
  .content { padding: 14px 12px 28px; }
}
/* Menu alignment fix: everything sits inside the menu with 16px each side */
.sidebar, .sidebar *, .sidebar *::before, .sidebar *::after { box-sizing: border-box; }
.sidebar { padding: 16px; overflow-x: hidden; }
.sidebar .brand { padding: 0 0 14px; width: 100%; display: flex; justify-content: center; }
.payday-chip { width: 100%; max-width: 100%; margin: 0 auto; }
.payday-chip .sig-line { display: flex; justify-content: center; width: 100%; }
.nav { width: 100%; }
.nav-h { margin: 14px 0 4px; padding: 0 10px; }
.nav a, .nav button.navlink { width: 100%; max-width: 100%; margin: 0; }
.side-foot { padding: 10px 10px 2px; }
@media (max-width: 760px) { .sidebar .nav { flex: 0 0 100%; } }
.main-col { min-width: 0; }
@media (max-width: 760px) { .shell { grid-template-columns: minmax(0, 1fr); } .sidebar { width: 100%; } .content { overflow-x: hidden; } .table-wrap { overflow-x: auto; } }
/* Staff portal + Referrers */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.grid2 label, #ref-form > label { display: block; margin-bottom: 8px; }
#ref-form input, #ref-form select, #ref-form textarea, #pw-form input { width: 100%; box-sizing: border-box; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.st-submitted { background: #e0ecff; color: #1e40af; } .st-approved { background: #fef3c7; color: #92400e; }
.st-paid { background: #dcfce7; color: #166534; } .st-declined { background: #f1f5f9; color: #475569; }
.status-key { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.ny-cap { background: #fff7ed; border: 1px solid #f59e0b; border-radius: 10px; padding: 8px 12px; }
.rr-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 8px; }
.fee-in { width: 78px; } .lic { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; }
.rates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; align-items: end; }
.rates-grid input { width: 100%; box-sizing: border-box; }
.card { border-radius: 12px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
