:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; }
.app { --bg: #f5f7fa; --surface: #fff; --text: #172b3a; --muted: #637785; --line: #dce4ea; --field: #fff; --accent: #146b58; min-height: 100vh; background: var(--bg); color: var(--text); }
.app.dark { color-scheme: dark; --bg: #101b23; --surface: #182731; --text: #edf4f7; --muted: #a5b6c0; --line: #344854; --field: #13222c; --accent: #6bd6b5; }
.topbar { min-height: 80px; padding: 18px max(24px, calc((100vw - 1360px) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; font-weight: 750; font-size: 21px; white-space: nowrap; letter-spacing: -.5px; display: flex; align-items: center; gap: 10px; }
.brand-icon { background: #146b58; color: white; border-radius: 11px; width: 36px; height: 36px; display: grid; place-items: center; font-size: 28px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.account { color: var(--muted); font-size: 13px; }
main { max-width: 1360px; margin: auto; padding: 42px 24px 20px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 750; letter-spacing: -1.5px; margin-bottom: 10px; }
h2 { font-size: 20px; letter-spacing: -.5px; margin-bottom: 8px; }
p { line-height: 1.6; }
.eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: 1.8px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.muted { color: var(--muted); font-size: 14px; }
.panel { padding: 26px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); }
.button { padding: 11px 17px; border-radius: 8px; border: 1px solid transparent; font-weight: 650; font-size: 13px; white-space: nowrap; min-height: 42px; }
.button.primary { background: #146b58; color: #fff; }
.button.primary:hover { background: #105b4b; }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.button.danger { color: #b34242; background: transparent; border-color: var(--line); }
.button.compact { min-height: 38px; padding: 8px 12px; }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .day-button:focus-visible { outline: 3px solid #5fbdb0; outline-offset: 3px; }
.login { max-width: 460px; margin: 6vh auto 10vh; padding: 36px; }
.login h1 { font-size: 35px; }
.login form { margin-top: 28px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 650; margin-bottom: 18px; }
input, select, textarea { color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 7px; padding: 10px 11px; width: 100%; min-height: 42px; }
textarea { resize: vertical; }
.checkbox { flex-direction: row; align-items: flex-start; line-height: 1.5; }
.checkbox input { min-height: 0; width: auto; margin-top: 3px; accent-color: #146b58; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.65; margin: 17px 0 0; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 26px; }
.page-heading p:last-child { margin-bottom: 0; }
.month-picker { display: flex; gap: 10px; align-items: flex-end; }
.month-picker label { margin-bottom: 0; }
.status-line { display: flex; gap: 12px; align-items: center; margin: 20px 0; flex-wrap: wrap; }
.status-line .muted { font-size: 12px; }
.pill { font-size: 11px; font-weight: 700; border-radius: 30px; padding: 6px 11px; }
.pill.open { background: #e3f4ec; color: #12614e; }
.pill.closed { background: #e5eaf5; color: #334d8b; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.metric { border-radius: 13px; padding: 23px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 13px; }
.metric > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.metric strong { font-size: clamp(23px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.9px; font-variant-numeric: tabular-nums; }
.metric small { font-size: 11px; color: var(--muted); }
.metric.accent { background: #146b58; border-color: #146b58; color: #fff; }
.metric.accent span, .metric.accent small { color: #cbe7de; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(290px, 1fr); gap: 24px; align-items: start; }
.section-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.section-heading p { font-size: 12px; margin-bottom: 0; }
.count { color: var(--muted); font-size: 11px; white-space: nowrap; padding-top: 6px; }
.table-wrap { overflow-x: auto; max-height: 680px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
thead { background: var(--surface); position: sticky; top: 0; z-index: 1; }
thead th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .6px; padding: 12px 9px; border-bottom: 1px solid var(--line); }
tbody td, tbody th { border-bottom: 1px solid var(--line); padding: 8px 9px; height: 52px; }
tbody tr.selected { background: color-mix(in srgb, var(--accent) 9%, transparent); }
tbody tr.weekend:not(.selected) { color: var(--muted); }
.day-button { padding: 4px 0; color: inherit; background: transparent; border: 0; display: flex; align-items: baseline; gap: 7px; width: 100%; text-align: left; }
.day-button b { min-width: 20px; font-size: 14px; }
.day-button span { font-size: 10px; color: var(--muted); font-weight: 400; }
.time-range { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.editor h2 { margin-bottom: 25px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row > label { min-width: 0; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; }
.closing { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.closing h2 { font-size: 16px; }
.closing p { margin-bottom: 0; font-size: 12px; }
.notice { padding: 15px 18px; border-radius: 10px; font-size: 13px; margin-bottom: 20px; line-height: 1.6; }
.notice.error { background: #fce7e7; color: #832929; border: 1px solid #edc5c5; }
.notice.warning { background: #fff3d7; color: #775819; border: 1px solid #e9dbb1; }
.loading { font-size: 12px; color: var(--accent); margin-bottom: 12px; }
.empty-state { max-width: 720px; margin-top: 24px; }
footer { color: var(--muted); font-size: 11px; text-align: center; padding: 35px 0 10px; }
.initial { padding: 40px; color: #637785; font-family: system-ui, sans-serif; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; width: 100%; padding: 18px; background: #fce7e7; color: #832929; z-index: 100; font-family: system-ui, sans-serif; }
@media (max-width: 1000px) { .metrics { grid-template-columns: repeat(2, 1fr); } .workspace { grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); gap: 16px; } .panel { padding: 21px; } .account { display: none; } }
@media (max-width: 760px) { main { padding: 28px 16px 16px; } .topbar { padding: 16px; align-items: flex-start; } .brand { font-size: 18px; } .brand-icon { display: none; } .topbar-actions { gap: 7px; } .button.compact { font-size: 11px; padding: 8px; } .page-heading { align-items: flex-start; flex-direction: column; } .workspace { grid-template-columns: 1fr; } .editor { order: -1; } .metrics { gap: 10px; } .metric { padding: 17px; } .metric small { line-height: 1.6; } .closing { align-items: flex-start; flex-direction: column; } .login { margin-top: 24px; padding: 25px; } .table-wrap { max-height: 520px; } }
