/* MCC's copy-owned PHP design system. Semantic tokens inspired by shadcn/ui. */
:root {
  color-scheme: light;
  --brand:#183e32; --brand-hover:#102f25; --brand-weak:#edf4ef;
  --text:#202d28; --muted:#64726b; --border:#e1e5df;
  --bg:#f8f9f5; --card:#fff; --gold:#dbbd70;
  --danger:#a72c29; --danger-bg:#fff0ee; --warning:#805f16;
  --radius:12px; --sidebar:252px; --shadow:0 2px 5px #182c2004;
}
*,*::before,*::after { box-sizing:border-box; }
body { margin:0; color:var(--text); background:var(--bg); font:15px/1.6 "Segoe UI",system-ui,-apple-system,sans-serif; -webkit-font-smoothing:antialiased; }
a { color:var(--brand); text-underline-offset:3px; }
a:hover { color:#396b50; }
button,input,textarea,select { font:inherit; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid #52795e; outline-offset:4px; }
.ui-icon { width:20px; height:20px; flex:0 0 20px; vertical-align:middle; }
.skip-link { position:fixed; top:-100px; left:16px; z-index:100; padding:12px 20px; background:#fff; border:2px solid var(--brand); border-radius:8px; }
.skip-link:focus { top:16px; }
.app-head { position:fixed; inset:0 auto 0 0; width:var(--sidebar); background:var(--brand); color:#fff; display:flex; flex-direction:column; z-index:20; padding:32px 18px 18px; }
.app-brand { display:flex; gap:12px; align-items:center; color:#fff; text-decoration:none; padding:0 8px 30px; }
.app-brand:hover { color:#fff; }
.brand-mark { display:grid; place-items:center; width:40px; height:44px; flex-shrink:0; color:var(--gold); border:1px solid #ffffff38; border-radius:12px; background:#ffffff08; }
.brand-mark .ui-icon { width:24px; height:24px; }
.brand-copy { min-width:0; }
.brand-copy strong { display:block; font-size:21px; letter-spacing:-.5px; font-weight:650; }
.brand-copy > span { display:block; max-width:150px; font-size:10px; line-height:1.5; color:#d3dfd7; }
.nav-disclosure { display:flex; flex:1; min-height:0; }
.nav-disclosure > summary { display:none; }
.nav-disclosure::details-content { display:contents; }
.nav-disclosure > .nav-panel { display:flex; flex-direction:column; flex:1; min-height:0; width:100%; }
.nav-caption { text-transform:uppercase; letter-spacing:1.8px; font-size:10px; color:#bed0c3; margin:14px; }
.app-nav { display:flex; flex-direction:column; gap:5px; overflow-y:auto; }
.app-nav a { display:flex; align-items:center; gap:12px; color:#e0e9e3; text-decoration:none; padding:11px 14px; min-height:46px; border:1px solid transparent; border-radius:8px; font-size:14px; }
.app-nav a:hover { background:#ffffff0d; color:#fff; }
.app-nav a.active { background:#ffffff12; border-color:#ffffff15; color:#f3d58c; }
.app-nav a.active::after { content:''; margin-left:auto; width:5px; height:5px; border-radius:50%; background:var(--gold); }
.app-out { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:auto; padding:20px 6px 0; border-top:1px solid #ffffff20; }
.user-avatar { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#ffffff15; color:var(--gold); font-weight:600; }
.user-copy { flex:1; min-width:0; }
.user-copy strong { display:block; font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.user-copy > span { display:block; color:#c5d2c8; font-size:10px; }
.app-out button.link { color:#e0e9e3; background:transparent; border:none; display:flex; gap:10px; width:100%; align-items:center; padding:8px; min-height:44px; box-shadow:none; font-size:12px; text-align:left; justify-content:flex-start; }
.app-out button.link:hover { background:#ffffff10; }
.app-head :focus-visible { outline-color:var(--gold); }
.sidebar-toggle { position:absolute; top:4px; right:4px; display:flex; align-items:center; justify-content:center; width:44px; min-height:44px; margin:0; padding:12px; border:0; border-radius:6px; background:transparent; color:#bed0c3; cursor:pointer; box-shadow:none; }
.sidebar-toggle .ui-icon { width:16px; height:16px; flex-basis:16px; }
.sidebar-toggle > span { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.sidebar-toggle:hover { background:#ffffff0d; color:#fff; }
.sidebar-toggle[hidden] { display:none; }
.app-main { margin-left:var(--sidebar); padding:30px clamp(24px,4vw,64px) 24px; min-width:0; max-width:1600px; }
.page-context { display:flex; flex-wrap:wrap; gap:14px; color:var(--muted); font-size:11px; margin-bottom:32px; padding-bottom:20px; border-bottom:1px solid var(--border); }
.context-current { color:var(--brand); }
.context-current::before { content:'/'; color:#a4ada6; margin-right:14px; }
h1 { font-size:clamp(25px,2.8vw,34px); font-weight:650; line-height:1.25; letter-spacing:-1px; margin:0 0 12px; overflow-wrap:anywhere; }
h2 { font-size:18px; font-weight:620; letter-spacing:-.3px; margin:32px 0 14px; line-height:1.4; }
h3 { font-size:16px; margin:0 0 8px; font-weight:600; }
p { margin:0 0 16px; }
.page-description { color:var(--muted); margin:0 0 28px; max-width:65ch; font-size:14px; }
.muted { color:var(--muted); }
.small { font-size:12px; }
.card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:26px; margin-bottom:24px; box-shadow:var(--shadow); }
.card > h2:first-child,.card > h3:first-child { margin-top:0; }
.card > :last-child { margin-bottom:0; }
.notice,.error { border:1px solid #cbded0; background:var(--brand-weak); color:var(--brand); padding:16px 20px; border-radius:10px; margin:16px 0 24px; overflow-wrap:anywhere; }
.error { background:var(--danger-bg); border-color:#f0cfca; color:var(--danger); }
.notice input { max-width:100%; }
label { display:block; font-size:13px; font-weight:600; margin:0 0 20px; }
label.inline { display:inline-flex; gap:9px; align-items:center; font-weight:400; margin:8px 16px 8px 0; }
input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea { display:block; width:100%; max-width:38rem; min-width:0; margin-top:8px; padding:10px 12px; min-height:44px; border:1px solid #87958b; border-radius:7px; font-size:16px; font-weight:400; background:#fff; color:var(--text); box-shadow:0 1px 2px #102b1603; }
input::placeholder,textarea::placeholder { color:var(--muted); opacity:1; }
textarea { min-height:110px; resize:vertical; }
input[type=checkbox],input[type=radio] { width:18px; height:18px; accent-color:var(--brand); flex-shrink:0; }
fieldset { border:1px solid var(--border); border-radius:8px; padding:18px; margin:8px 0 24px; max-width:42rem; min-width:0; }
legend { padding:0 8px; font-size:13px; font-weight:600; }
button,.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--brand); color:#fff; border:1px solid var(--brand); border-radius:7px; padding:10px 16px; font-size:13px; font-weight:550; line-height:1.5; min-height:44px; cursor:pointer; text-decoration:none; box-shadow:0 1px 2px #13291b0a; transition:background .15s,border-color .15s; }
button:hover,.button:hover { background:var(--brand-hover); color:#fff; }
.button.secondary,button.secondary { background:#fff; color:var(--text); border-color:#cfd6cf; }
.button.secondary:hover,button.secondary:hover { background:#f1f4ef; border-color:#aebdaf; }
button.danger { background:#fff; color:var(--danger); border-color:#edcfca; }
button.danger:hover { background:var(--danger-bg); }
button:disabled { opacity:.55; cursor:not-allowed; }
form.inline { display:inline; }
.actions { display:flex; align-items:center; gap:10px; margin-top:24px; flex-wrap:wrap; }
.table-wrap { position:relative; overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius); background:var(--card); margin:16px 0 24px; box-shadow:var(--shadow); }
table { width:100%; border-collapse:collapse; background:var(--card); font-size:13px; }
th,td { text-align:left; padding:17px 18px; border-bottom:1px solid var(--border); vertical-align:middle; }
th { font-size:10px; text-transform:uppercase; letter-spacing:.9px; font-weight:650; color:var(--muted); background:#fafbf8; white-space:nowrap; }
tr:last-child td { border-bottom:0; }
td { overflow-wrap:anywhere; }
td:first-child { font-weight:550; }
td[colspan] { text-align:center; padding:44px 24px; color:var(--muted); font-weight:400; }
td > .small { margin-top:3px; }
td button,td .button { padding:7px 10px; font-size:11px; min-height:44px; }
.row-actions { min-width:210px; }
.row-actions > * { margin:3px 5px 3px 0; }
tr.row-inactive { color:var(--muted); background:#fafbf9; }
/* Keep the ten-column timesheet readable inside its horizontal scroll container. */
.timesheets-table th,.timesheets-table td { padding:14px 12px; }
.timesheets-table td { overflow-wrap:break-word; vertical-align:top; }
.timesheets-table td:nth-child(1),.timesheets-table td:nth-child(4),.timesheets-table button { white-space:nowrap; }
.timesheets-table td:nth-child(2),.timesheets-table td:nth-child(3) { min-width:10rem; max-width:14rem; }
.timesheets-table td:nth-child(9) { min-width:12rem; max-width:18rem; }
.badge { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; font-size:10px; font-weight:600; padding:4px 9px; border-radius:6px; border:1px solid #dce2dc; background:#f3f5f1; color:#5a675e; }
.badge > span { width:5px; height:5px; background:currentColor; border-radius:50%; }
.badge-success { background:#edf5ef; color:#2b6541; border-color:#d3e6d8; }
.badge-warning { background:#fbf5e7; color:var(--warning); border-color:#eaddbc; }
.stats-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:26px 0; }
.stat-card { margin:0; padding:22px; }
.stat-label { color:var(--muted); font-size:12px; }
.stat-value { display:block; font-size:30px; line-height:1.3; font-weight:650; letter-spacing:-1px; margin-top:12px; }
.stat-footnote { font-size:11px; color:var(--muted); display:block; margin-top:8px; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:28px; }
.section-heading h2 { margin:0; }
.toolbar { display:flex; align-items:end; gap:20px; flex-wrap:wrap; }
.toolbar label { flex:1; min-width:180px; margin:0; }
.toolbar > button { align-self:end; }
.rollcall th,.rollcall td { text-align:center; }
.rollcall th:first-child,.rollcall td:first-child { text-align:left; }
.rollcall td.mark { padding:0; }
.rollcall td.mark label { display:flex; justify-content:center; align-items:center; margin:0; padding:18px 10px; cursor:pointer; min-height:60px; }
.rollcall td.mark input[type=radio] { width:22px; height:22px; cursor:pointer; }
.rollcall td.mark:has(input:checked) { background:var(--brand-weak); }
.rollcall tr.unmarked:not(:has(input:checked)) td { background:var(--danger-bg); }
.roll-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.app-footer { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; border-top:1px solid var(--border); margin-top:60px; padding-top:20px; color:var(--muted); font-size:10px; }
.app-footer > span { color:#6b796f; }
.signed-out { background:radial-gradient(ellipse at top,#e6eee5 0,var(--bg) 65%); min-height:100vh; }
.signed-out .app-head { position:static; width:auto; background:transparent; color:var(--brand); align-items:center; padding:48px 20px 0; }
.signed-out .app-brand { color:var(--brand); padding:0; }
.signed-out .brand-mark { border-color:#c7d5c7; background:#fff; color:var(--brand); }
.signed-out .brand-copy > span { color:var(--muted); max-width:none; }
.signed-out .app-main { margin:0 auto; padding:32px 20px; max-width:600px; }
.login { max-width:420px; margin:0 auto; padding:36px; }
.login h1 { font-size:25px; margin-bottom:20px; letter-spacing:-.6px; }
.login button[type=submit] { width:100%; }
.login .small { line-height:1.7; margin-top:20px; }
.signed-out .app-footer { margin-top:28px; justify-content:center; text-align:center; }
.signed-out .app-footer span { width:100%; }
@media (max-width:1100px) { :root { --sidebar:224px; } .app-main { padding-right:28px; padding-left:28px; } th,td { padding:14px 12px; } }
@media (min-width:761px) {
  .nav-disclosure:not([open]) > .nav-panel { display:flex; content-visibility:visible; }
  .sidebar-collapsed { --sidebar:80px; }
  .sidebar-collapsed .app-head { padding-right:12px; padding-left:12px; }
  .sidebar-collapsed .app-brand { justify-content:center; padding-right:0; padding-left:0; }
  .sidebar-collapsed .brand-copy,.sidebar-collapsed .nav-caption,.sidebar-collapsed .app-nav a > span,.sidebar-collapsed .user-copy,.sidebar-collapsed .app-out button > span { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
  .sidebar-collapsed .sidebar-toggle { position:static; align-self:center; margin:-16px 0 8px; flex-shrink:0; }
  .sidebar-collapsed .sidebar-toggle .ui-icon { transform:rotate(180deg); }
  .sidebar-collapsed .app-nav a { position:relative; justify-content:center; padding-right:0; padding-left:0; }
  .sidebar-collapsed .app-nav a.active::after { position:absolute; right:4px; }
  .sidebar-collapsed .app-out { justify-content:center; padding-right:0; padding-left:0; }
  .sidebar-collapsed .app-out button.link { justify-content:center; }
}
@media (max-width:760px) {
  .sidebar-toggle { display:none; }
  .app-head { position:sticky; top:0; width:100%; padding:14px 18px; display:block; }
  .app-brand { padding:0; width:calc(100% - 80px); gap:10px; }
  .brand-mark { height:36px; width:36px; border-radius:9px; }
  .brand-copy strong { font-size:18px; }
  .brand-copy > span { font-size:9px; max-width:220px; }
  .nav-disclosure { display:block; }
  .nav-disclosure > summary { display:flex; position:absolute; right:14px; top:16px; cursor:pointer; padding:6px 10px; min-height:44px; border:1px solid #ffffff30; border-radius:7px; list-style:none; font-size:12px; }
  .nav-disclosure > summary::-webkit-details-marker { display:none; }
  .nav-disclosure > summary > span { display:flex; gap:6px; align-items:center; }
  .nav-disclosure::details-content { display:block; }
  .nav-disclosure:not([open]) > .nav-panel { display:none; }
  .nav-panel { max-height:calc(100dvh - 90px); overflow-y:auto; padding-top:14px; }
  .app-nav { overflow:visible; display:grid; grid-template-columns:1fr 1fr; gap:6px; }
  .app-nav a { padding:10px; }
  .app-out { margin:20px 0 0; padding-top:16px; }
  .app-out button.link { width:auto; }
  .app-main { margin:0; padding:22px 20px; }
  .page-context { margin-bottom:25px; padding-bottom:14px; }
  .page-description { margin-bottom:24px; font-size:13px; }
  .card { padding:22px; }
  .stats-grid { gap:10px; }
  .stat-card { padding:16px; }
  .stat-label { font-size:11px; }
  .stat-value { font-size:25px; }
  .stat-footnote { font-size:10px; }
  .table-wrap { max-width:100%; }
  table:not(.rollcall) { min-width:0; }
  table:not(.rollcall) th,table:not(.rollcall) td { min-width:7rem; padding:14px 12px; overflow-wrap:break-word; }
  table:not(.rollcall) .row-actions { min-width:210px; }
  .table-wrap a { display:inline-flex; align-items:center; min-height:44px; padding:6px 4px; }
  .card > p a { display:inline-flex; align-items:center; min-height:44px; }
  .app-footer { margin-top:40px; }
  .rollcall { display:block; padding:8px; }
  .rollcall tbody { display:block; }
  .rollcall tr:first-child { display:none; }
  .rollcall tr { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:8px 0 16px; border:1px solid var(--border); border-radius:8px; overflow:hidden; }
  .rollcall td:first-child { grid-column:1 / -1; padding:14px; border-bottom:1px solid var(--border); background:#fafbf8; }
  .rollcall td.mark { border:0; }
  .rollcall td.mark label { padding:12px 4px; flex-direction:column; gap:8px; }
  .roll-status { position:static; width:auto; height:auto; clip-path:none; font-size:10px; font-weight:500; }
  .actions > button,.actions > .button { flex-grow:1; }
  .signed-out .app-head { padding-top:32px; position:static; }
  .signed-out .app-brand { width:auto; }
  .signed-out .app-main { padding-top:28px; }
}
@media (max-width:420px) { .stats-grid { grid-template-columns:1fr; } .stat-card { display:grid; grid-template-columns:1fr auto; gap:0 12px; } .stat-value { grid-column:2; grid-row:1 / 3; margin:0; align-self:center; } .stat-footnote { margin-top:3px; } .login { padding:26px 22px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; scroll-behavior:auto !important; } }
@media print { .app-head,.page-context,.app-footer,.skip-link { display:none; } .app-main { margin:0; padding:0; } body { background:#fff; } .table-wrap { overflow:visible; box-shadow:none; } }
