:root {
  color-scheme: light;
  --canvas: #f2f7f6;
  --paper: #ffffff;
  --ink: #203b40;
  --muted: #708183;
  --line: #e0e9e7;
  --teal: #197b78;
  --teal-dark: #133f43;
  --teal-light: #e5f3ef;
  --coral: #dc8d77;
  --shadow: 0 8px 30px rgba(25, 66, 65, .035);
  font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, input, select, textarea, a { outline-offset: 3px; }
:focus-visible { outline: 3px solid #63bcb5; }
a { color: var(--teal); }
svg { display: inline-block; flex-shrink: 0; vertical-align: middle; }
[hidden] { display: none !important; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex: 0 0 240px; position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column; padding: 34px 22px 25px;
  color: #e5eeec; background: var(--teal-dark); z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; margin: 0 2px 43px; }
.brand-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; background: #bcdacf; color: #183f42; border-radius: 13px; }
.brand-icon svg { width: 25px; height: 25px; }
.brand-name { color: #fff; font-size: 18px; font-weight: 650; line-height: 1.25; letter-spacing: -.45px; }
.brand-subtitle { margin-top: 4px; color: #abc8c7; font-size: 10px; font-weight: 650; letter-spacing: 1.7px; text-transform: uppercase; }
.nav { display: grid; gap: 8px; }
.nav-btn { width: 100%; display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 0; border-radius: 9px; background: transparent; color: #bfd1d0; font-size: 13px; font-weight: 550; text-align: left; transition: color .15s, background .15s; }
.nav-btn svg { width: 18px; height: 18px; opacity: .9; }
.nav-btn:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-btn[aria-current="page"] { background: #2d5657; color: #fff; box-shadow: inset 3px 0 #add5c3; }
.sidebar-footer { margin-top: auto; padding: 23px 9px 0; border-top: 1px solid rgba(255,255,255,.11); color: #acc5c4; font-size: 11px; }
.sidebar-footer > :first-child { display: flex; align-items: center; gap: 8px; color: #dce9e5; font-size: 12px; font-weight: 550; }
.sidebar-footer p { margin: 8px 0 0; line-height: 1.7; }
.storage-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 100%; background: #a4cead; box-shadow: 0 0 0 3px rgba(164,206,173,.1); }

.main { width: calc(100% - 240px); max-width: 1440px; min-width: 0; margin-left: 240px; padding: 40px 44px 30px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.eyebrow { color: #7b8f8e; font-size: 10px; font-weight: 700; letter-spacing: 1.65px; text-transform: uppercase; margin-bottom: 6px; }
.page-title { font-size: clamp(25px, 2.25vw, 33px); font-weight: 650; letter-spacing: -1.1px; line-height: 1.25; margin: 0; }
.page-subtitle { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.top-actions { display: flex; align-items: center; flex-shrink: 0; gap: 10px; }
.btn { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px; white-space: nowrap; font-weight: 600; font-size: 12px; line-height: 1.35; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn svg { width: 16px; height: 16px; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn.primary { color: #fff; background: var(--teal); box-shadow: 0 3px 5px rgba(25,123,120,.1); }
.btn.primary:hover { background: #126964; }
.btn.secondary { color: #3e5d5e; background: #fff; border-color: #d5e2df; }
.btn.secondary:hover { background: #f9fcfb; border-color: #9dbbb5; }
.btn.ghost { color: #607674; background: transparent; border-color: transparent; }
.btn.ghost:hover { background: #e6efec; }
.btn.danger { color: #b75349; background: #fff4f1; border-color: #f3d3ca; }
.btn.danger:hover { background: #ffe9e3; }
.btn.small { min-height: 32px; padding: 7px 11px; font-size: 11px; }
.btn.icon { padding: 8px; min-width: 34px; min-height: 34px; }

.local-banner { display: flex; align-items: center; gap: 13px; padding: 16px 19px; border: 1px solid #d8e8df; border-radius: 10px; background: #eaf3ed; margin-bottom: 25px; }
.banner-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: #638972; background: #dcece0; border-radius: 9px; }
.banner-icon svg { width: 18px; height: 18px; }
.banner-title { color: #456b57; font-weight: 650; font-size: 12px; }
.banner-copy { color: #6c8174; font-size: 11px; margin-top: 3px; line-height: 1.5; }
.banner-action { margin-left: auto; color: #557d65; white-space: nowrap; font-size: 11px; font-weight: 650; }
.demo-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid #dcc6a9; border-radius: 20px; color: #94714b; background: #faf2e7; font-size: 10px; font-weight: 650; line-height: 1.4; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 27px; }
.stat-card { position: relative; padding: 21px 23px 19px; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); overflow: hidden; }
.stat-card.accent { background: #e7f0ec; border-color: #d2e2da; }
.stat-card > svg { position: absolute; width: 18px; height: 18px; right: 20px; top: 22px; color: #8eaaa4; }
.stat-label { color: #718582; font-size: 11px; font-weight: 550; }
.stat-value { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 4px; font-size: 29px; font-weight: 650; letter-spacing: -.9px; line-height: 1.2; color: #244c4c; }
.stat-value small { font-weight: 500; font-size: 14px; color: #73908a; letter-spacing: 0; }
.stat-detail { color: #82928b; font-size: 11px; }
.stat-card.accent .stat-detail { color: #6f8c7b; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.panel + .panel { margin-top: 22px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid #edf2f0; }
.panel-title { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.panel-subtitle { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 24px; border-bottom: 1px solid #eaf0ee; }
.period-nav { display: flex; align-items: center; gap: 10px; }
.period-nav .btn.icon { min-width: 28px; min-height: 28px; padding: 5px; color: #688782; border-color: #e2ebe8; }
.period-label { min-width: 190px; font-size: 12px; font-weight: 650; text-align: center; white-space: nowrap; }
.filters { display: flex; align-items: center; gap: 8px; }
.search-input, .select { border: 1px solid #dce6e3; background: #fff; border-radius: 7px; min-height: 36px; padding: 8px 11px; color: #4e6965; font-size: 12px; }
.search-input { width: 190px; }
.search-input::placeholder { color: #99a8a3; }
.search-input:focus, .select:focus, .input:focus, .textarea:focus { border-color: #5f9f98; box-shadow: 0 0 0 3px rgba(83,160,150,.1); }
.table-wrap { overflow-x: auto; scrollbar-width: thin; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { color: #73877c; font-size: 11px; font-weight: 650; letter-spacing: .65px; text-transform: uppercase; padding: 14px 16px; background: #fafcfb; border-bottom: 1px solid #e8efeb; white-space: nowrap; }
.data-table td { border-bottom: 1px solid #edf2ef; padding: 18px 16px; font-size: 12px; color: #526b67; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table th:first-child, .data-table td:first-child { padding-left: 24px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 24px; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: #fbfdfc; }
.date-cell { font-weight: 650; color: #344f4b; white-space: nowrap; }
.weekday { display: block; margin-top: 4px; color: #869a8b; font-size: 11px; font-weight: 400; }
.client-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 90px; }
.chip { display: inline-flex; align-items: center; max-width: 200px; gap: 4px; padding: 4px 8px; border-radius: 5px; color: #5d7b6b; background: #edf3eb; font-size: 11px; line-height: 1.4; font-weight: 550; overflow-wrap: anywhere; }
.chip.teal { color: #4b7e79; background: #e8f1ef; }
.chip.coral { color: #a77765; background: #f9eee7; }
.chip.muted { color: #8a9690; background: #f1f4f0; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid transparent; border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; }
.status.complete { color: #5b8e6b; background: #ecf4ec; }
.status.draft { color: #b28c58; background: #fbf4e8; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.row-actions .btn { min-height: 28px; padding: 5px 7px; color: #6f8e87; font-size: 10px; }
.row-actions .btn.icon { min-width: 27px; }
.row-actions .btn svg { width: 14px; height: 14px; }
.empty-state { text-align: center; padding: 60px 24px 65px; color: #7c928a; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 17px; border-radius: 17px; background: #eef5f0; color: #83a795; }
.empty-icon svg { width: 27px; height: 27px; }
.empty-title { font-weight: 650; color: #456456; font-size: 16px; margin-bottom: 7px; }
.empty-state p { max-width: 320px; margin: 0 auto 19px; font-size: 12px; }
.muted { color: var(--muted); }
.text-right { text-align: right !important; }
.small-text { font-size: 12px; }
.footer-note { margin: 18px 0 0; font-size: 10px; color: #9aa8a1; text-align: center; }
.summary-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 24px; background: #fbfdfb; border-top: 1px solid #eaf0ea; font-size: 10px; color: #8c9d93; }
.summary-strip strong { color: #577666; font-weight: 600; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; padding: 2px 6px; background: #edf3ef; color: #709081; border-radius: 5px; font-size: 10px; font-weight: 650; }
.link-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--teal); padding: 0; font-size: 11px; font-weight: 600; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
.tabs { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding: 0 24px; }
.tab { border: 0; border-bottom: 2px solid transparent; padding: 17px 0 14px; font-size: 12px; font-weight: 550; color: #8ba095; background: transparent; }
.tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.metric { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: #899c90; }
.metric strong { font-size: 21px; font-weight: 650; color: #335c4a; }

.config-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.client-card { padding: 22px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.client-card > header, .client-card-header { display: flex; gap: 11px; align-items: center; margin-bottom: 16px; }
.client-avatar { display: flex; align-items: center; justify-content: center; width: 39px; height: 39px; flex: 0 0 39px; background: #e5efea; color: #6f9780; border-radius: 12px; font-weight: 600; font-size: 13px; }
.client-card:nth-child(3n + 2) .client-avatar { color: #aa8a75; background: #f4ebe4; }
.client-card:nth-child(3n) .client-avatar { color: #7d919d; background: #eaf0f3; }
.client-name { margin: 0; color: #345247; font-weight: 650; font-size: 14px; }
.client-reference { margin-top: 3px; color: #899c8d; font-size: 11px; }
.service-tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 10px 0 18px; }
.service-tags .chip { font-size: 11px; }
.settings-form { padding: 26px; max-width: 820px; }
.field { min-width: 0; margin-bottom: 18px; }
.field-label { display: block; margin-bottom: 7px; color: #4b685a; font-size: 12px; font-weight: 650; }
.field-label .required { color: #c9866b; }
.field-hint { color: #7d9485; font-size: 11px; line-height: 1.6; margin: 6px 0 0; }
.field-error { color: #b95f4c; font-size: 11px; margin-top: 5px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.input, .textarea, .field select { width: 100%; min-height: 41px; padding: 10px 12px; background: #fff; border: 1px solid #dbe5dd; border-radius: 7px; color: #3f5a4b; font-size: 13px; line-height: 1.45; transition: border-color .15s, box-shadow .15s; }
.input::placeholder, .textarea::placeholder { color: #a5b3a8; }
.input[readonly] { background: #f5f8f4; color: #8b9e90; }
.textarea { resize: vertical; min-height: 95px; overflow-wrap: anywhere; white-space: pre-wrap; }
.checkbox-line { display: flex; align-items: flex-start; gap: 9px; color: #5e7866; font-size: 12px; margin: 10px 0; cursor: pointer; }
.checkbox-line input { accent-color: var(--teal); width: 15px; height: 15px; margin: 2px 0 0; flex: 0 0 15px; }
.toggle { width: 34px; height: 20px; appearance: none; border-radius: 15px; background: #d9e4db; border: 1px solid #cedad0; cursor: pointer; position: relative; transition: background .15s; }
.toggle::before { content: ""; width: 14px; height: 14px; top: 2px; left: 2px; background: white; border-radius: 50%; position: absolute; box-shadow: 0 1px 3px #9cafa4; transition: transform .15s; }
.toggle:checked { background: var(--teal); border-color: var(--teal); }
.toggle:checked::before { transform: translateX(14px); }
.divider { height: 1px; border: 0; background: #e8eee8; margin: 24px 0; }
.section-label { font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; color: #8a9d8e; margin: 22px 0 12px; }
.notice, .alert { display: block; padding: 13px 15px; border-radius: 7px; font-size: 12px; line-height: 1.65; background: #f1f6ef; color: #688160; border: 1px solid #e0ebdc; margin: 15px 0; overflow-wrap: anywhere; }
.notice.warning, .alert { background: #fcf6e9; color: #9d8156; border-color: #f0e3c5; }
.notice.info { background: #edf4f3; color: #638782; border-color: #dae9e5; }
.notice.success { background: #edf6eb; color: #648c5d; border-color: #dcedd5; }
.notice p, .alert p { margin: 0; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(17, 43, 39, .35); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 25px; }
.modal { display: flex; flex-direction: column; width: min(560px, 100%); max-height: calc(100dvh - 50px); background: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 15px; box-shadow: 0 30px 100px rgba(14,48,35,.2); overflow: hidden; }
.modal.wide { width: min(800px, 100%); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex: 0 0 auto; padding: 25px 28px 21px; border-bottom: 1px solid #eaf0e8; }
.modal-title { margin: 0; color: #294b3c; font-size: 21px; font-weight: 650; line-height: 1.25; letter-spacing: -.55px; }
.modal-header p { margin: 6px 0 0; color: #8b9d90; font-size: 11px; }
.modal-body { overflow: auto; overscroll-behavior: contain; min-height: 0; padding: 23px 28px 10px; scrollbar-width: thin; }
.modal-footer { display: flex; flex: 0 0 auto; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 9px; padding: 18px 28px; border-top: 1px solid #eaf0e8; background: #fcfdfb; }
.modal-footer .btn.danger { margin-right: auto; }
.close-btn { width: 29px; height: 29px; display: grid; place-items: center; padding: 3px; border: 0; border-radius: 7px; color: #94a69a; background: #f3f7f1; font-size: 21px; line-height: 1; }
.close-btn:hover { color: #557660; background: #e8efe4; }
.close-btn svg { width: 16px; height: 16px; }
.form-section + .form-section { border-top: 1px solid #e8efe5; margin-top: 19px; padding-top: 20px; }
.section-heading { font-size: 13px; font-weight: 650; color: #41644e; margin: 0 0 12px; }
.client-selector { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 7px; }
.client-option { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #dfe9dd; border-radius: 7px; background: #fff; color: #8c9c8d; font-size: 11px; font-weight: 550; }
.client-option:hover { border-color: #9dba9b; background: #fbfdf9; }
.client-option.selected { color: #4f7859; border-color: #91b38d; background: #eff6e9; }
.client-option input { accent-color: var(--teal); margin: 0; }
.client-billing-card { padding: 17px; background: #f8fbf5; border: 1px solid #e3ebde; border-radius: 9px; margin-top: 12px; }
.billing-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: #50754f; font-size: 12px; font-weight: 650; }
.billing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 13px; }
.billing-grid .field { margin-bottom: 0; }
.allocation-actions { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.allocation-totals { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: #849b7c; font-size: 10px; margin-top: 14px; }
.allocation-totals strong { color: #5b7e54; font-weight: 600; }
.toast { position: fixed; right: 28px; bottom: 28px; z-index: 200; display: flex; align-items: center; gap: 10px; max-width: min(440px, calc(100vw - 40px)); padding: 14px 20px; border-radius: 9px; color: #fff; background: #2c6554; box-shadow: 0 7px 30px rgba(24,58,41,.22); font-size: 12px; animation: toast-in .2s ease-out; }
.toast.error { background: #ad5c49; }
.mobile-cards { display: none; }

/* Layout details used by the working shift, configuration and billing screens. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.modal-open { overflow: hidden; }
.brand-dot { color: #bedcc4; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; color: #96afa1; line-height: 1; }
.stat-icon svg { width: 21px; height: 21px; }
.unit { color: #819c88; font-size: 15px; font-weight: 450; letter-spacing: 0; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; padding-left: 1px; padding-right: 1px; }
.sidebar-footer > :first-child { display: grid; place-items: center; }
.profile-mark { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; border: 1px solid #60827b; background: #355a52; color: #d3e6d8; border-radius: 50%; font-size: 12px; font-weight: 550; }
.sidebar-footer strong { display: block; color: #e2ece4; font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.sidebar-footer .small-text { color: #a1bfb0; font-size: 9px; white-space: nowrap; }
.sidebar-footer .storage-dot { width: 5px; height: 5px; margin-right: 3px; vertical-align: 1px; box-shadow: none; }
.version-label { margin-left: auto; align-self: flex-end; color: #84a497; font-size: 9px; }
.filters .search-input { width: 285px; min-height: 37px; font-size: 12px; padding: 8px 11px; }
.filters .select { min-height: 37px; }
.date-jump { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; flex: 0 0 auto; color: #86998c; font-size: 11px; white-space: nowrap; }
.date-jump .input { width: 143px; min-height: 37px; padding: 7px 9px; font-size: 12px; color: #5f7b65; }
.service-cell { min-width: 175px; max-width: 250px; line-height: 1.55; }
.service-cell > div + div { margin-top: 4px; }
.date-cell strong { color: #3e5e49; font-weight: 650; }
.client-chips + .small-text { margin-top: 5px; font-size: 10px; }
.data-table td:nth-child(4) { white-space: nowrap; }
button.status::before { display: none; }
button.status:hover { filter: brightness(.96); }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 24px; border-top: 1px solid #eaf0e9; background: #fcfdfa; color: #91a18f; font-size: 11px; }
.config-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -4px 0 21px; }
.config-toolbar p { margin: 0; font-size: 12px; }
.config-toolbar .checkbox-line { flex: 0 0 auto; margin: 0; font-size: 12px; }
.client-card { display: flex; flex-direction: column; }
.client-card-heading { display: flex; align-items: center; gap: 11px; }
.client-card-heading > .chip { margin-left: auto; }
.client-card .section-label { font-size: 10px; margin: 22px 0 11px; }
.client-card .service-tags { margin-top: 0; min-height: 56px; }
.client-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; border-top: 1px solid #edf2e9; padding-top: 16px; }
.client-card-footer .small-text { font-size: 11px; }
.code-label { display: inline-block; font-family: "Cascadia Code", Consolas, monospace; color: #57765a; font-size: 12px; letter-spacing: .25px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.settings-grid > .panel { margin-top: 0; }
.settings-panel { padding: 25px; }
.settings-panel > .panel-subtitle { line-height: 1.7; font-size: 12px; }
.settings-panel .settings-form { max-width: none; padding: 24px 0 0; }
.settings-panel h3 { color: #54714f; font-size: 13px; font-weight: 650; margin: 0 0 8px; }
.settings-panel p { line-height: 1.75; }
.backup-box { margin-top: 23px; border: 1px dashed #d6e3cd; background: #f8fbf4; text-align: center; border-radius: 9px; padding: 25px 18px; }
.backup-icon { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 13px; border-radius: 10px; color: #6b9560; background: #ebf3e2; }
.backup-icon svg { width: 19px; height: 19px; }
.backup-box h3 { margin: 0 0 6px; }
.backup-box p { max-width: 290px; margin: 0 auto 17px; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; margin: 0; }
.file-button:focus-within { outline: 3px solid #63bcb5; outline-offset: 3px; }
.sync-panel { display: flex; align-items: flex-start; gap: 17px; margin-top: 23px; }
.sync-panel .banner-icon { width: 37px; height: 37px; flex-basis: 37px; }
.sync-panel p { font-size: 12px; margin: 9px 0 0; }
.sync-panel .small-text { font-size: 11px; }
.fortnight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 23px; }
.fortnight-grid > .panel { margin: 0; }
.fortnight-card { padding: 22px; }
.fortnight-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.fortnight-card-top .eyebrow { margin-bottom: 0; font-size: 9px; }
.fortnight-card-top .chip { font-size: 9px; }
.fortnight-card h2 { margin: 0 0 3px; font-size: 18px; font-weight: 600; letter-spacing: -.45px; color: #3a603f; }
.fortnight-card .summary-strip { margin: 20px -1px 17px; padding: 15px 0; border-top: 1px solid #edf2e8; border-bottom: 1px solid #edf2e8; background: none; }
.summary-strip > div { flex: 1; }
.summary-strip > div > strong { display: block; font-size: 21px; font-weight: 650; line-height: 1.3; margin-bottom: 4px; letter-spacing: -.5px; }
.summary-strip > div > span { display: block; font-size: 11px; color: #8d9f89; }
.fortnight-card .top-actions { display: flex; gap: 7px; }
.fortnight-card .top-actions .btn { flex: 1; min-height: 35px; padding-left: 9px; padding-right: 9px; font-size: 11px; }
.modal-body > .summary-strip { margin: 20px 0 23px; padding: 17px 20px; border: 1px solid #e3eddd; border-radius: 8px; }
.period-export-label { color: #64835b; font-size: 14px; margin: 0; font-weight: 600; }
.service-checklist { max-height: 340px; overflow: auto; margin-top: 15px; border: 1px solid #e1eadd; border-radius: 8px; scrollbar-width: thin; }
.service-check { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; border-bottom: 1px solid #e9f0e3; cursor: pointer; color: #5e7b56; transition: background .15s; }
.service-check:last-child { border-bottom: 0; }
.service-check:hover { background: #f7fbf1; }
.service-check:has(input:checked) { background: #f0f7e8; }
.service-check input { accent-color: var(--teal); width: 15px; height: 15px; flex: 0 0 15px; margin: 4px 0 0; }
.service-check strong { display: block; font-size: 12px; font-weight: 550; line-height: 1.5; }
.service-check .small-text { display: block; margin-top: 3px; font-size: 11px; }
.billing-section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.billing-section-header .section-heading { margin-bottom: 0; }
.billing-section-header .btn { flex-shrink: 0; font-size: 10px; }
.time-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -7px 0 0; }
.time-summary .checkbox-line { margin: 0; font-size: 12px; }
.time-summary .chip { flex-shrink: 0; }
.form-errors:empty { display: none; }
.form-errors .notice { margin: 0 0 18px; }
.complete-checkbox { padding: 14px 16px; border: 1px solid #dde8d3; border-radius: 8px; background: #f7fbf1; gap: 11px; margin-bottom: 14px; }
.complete-checkbox strong { display: block; font-size: 12px; font-weight: 600; color: #527443; }
.complete-checkbox .field-hint { display: block; margin-top: 3px; }
.form-section > .field-hint { margin-top: -5px; margin-bottom: 14px; }
.client-billing-card > .form-row:last-child .field { margin-bottom: 0; }
.allocation-totals { display: block; margin-top: 5px; font-size: 11px; line-height: 1.75; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1700px) {
  .main { padding-left: 56px; padding-right: 56px; }
}
@media (max-width: 1250px) {
  .sidebar { width: 214px; flex-basis: 214px; padding-left: 17px; padding-right: 17px; }
  .main { margin-left: 214px; width: calc(100% - 214px); padding: 32px 28px 24px; }
  .brand { gap: 9px; }
  .brand-name { font-size: 16px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 18px; }
  .toolbar { flex-wrap: wrap; }
  .filters { margin-left: auto; }
  .data-table th, .data-table td { padding-left: 12px; padding-right: 12px; }
  .config-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .search-input { width: 240px; }
  .date-jump { margin-left: auto; }
  .fortnight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .sidebar { width: 190px; flex-basis: 190px; padding-left: 14px; padding-right: 14px; }
  .main { margin-left: 190px; width: calc(100% - 190px); padding: 27px 22px 24px; }
  .brand-icon { width: 35px; height: 35px; flex-basis: 35px; border-radius: 10px; }
  .brand-name { font-size: 15px; }
  .brand-subtitle { font-size: 8px; letter-spacing: 1.2px; }
  .nav-btn { padding: 12px 11px; gap: 10px; font-size: 12px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { gap: 16px; align-items: flex-start; }
  .top-actions { flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
  .top-actions .btn { padding: 9px 12px; min-height: 37px; font-size: 11px; }
  .local-banner { align-items: flex-start; }
  .banner-action { align-self: center; }
  .filters { flex: 1 1 auto; }
  .search-input { flex: 1; min-width: 90px; width: 150px; }
  .data-table { min-width: 770px; }
  .period-nav { width: 100%; justify-content: space-between; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-panel { padding: 22px; }
  .billing-section-header { flex-direction: column; gap: 13px; }
  .billing-section-header .btn { font-size: 11px; }
  .sidebar-footer { gap: 7px; }
  .profile-mark { width: 28px; height: 28px; flex-basis: 28px; }
  .sidebar-footer .small-text { font-size: 8px; }
  .version-label { display: none; }
  .panel-header .period-nav { width: auto; }
  .filters .search-input { width: 240px; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .app-shell { display: block; }
  .sidebar { position: sticky; top: 0; width: 100%; height: auto; padding: 13px 19px 0; z-index: 40; box-shadow: 0 3px 13px rgba(20,60,40,.08); }
  .brand { margin: 0 0 12px; gap: 9px; }
  .brand-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; }
  .brand-icon svg { width: 20px; height: 20px; }
  .brand-name { font-size: 15px; }
  .brand-subtitle { font-size: 8px; margin-top: 2px; }
  .nav { display: flex; gap: 2px; overflow-x: auto; margin: 0 -8px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-btn { width: auto; flex: 1 0 auto; justify-content: center; gap: 7px; padding: 12px 10px; font-size: 11px; border-radius: 7px 7px 0 0; }
  .nav-btn svg { width: 15px; height: 15px; }
  .nav-btn[aria-current="page"] { box-shadow: inset 0 -3px #add5c3; }
  .sidebar-footer { display: none; }
  .main { width: 100%; margin-left: 0; padding: 25px 18px; }
  .topbar { flex-wrap: wrap; margin-bottom: 21px; gap: 18px; }
  .page-title { font-size: 27px; }
  .page-subtitle { font-size: 12px; margin-top: 7px; }
  .top-actions { width: 100%; justify-content: flex-start; }
  .top-actions .btn { min-height: 40px; font-size: 12px; }
  .local-banner { padding: 13px; margin-bottom: 19px; gap: 10px; }
  .banner-icon { flex-basis: 29px; width: 29px; height: 29px; }
  .banner-title { font-size: 11px; }
  .banner-copy { font-size: 10px; }
  .banner-action { display: none; }
  .stats-grid { margin-bottom: 20px; gap: 10px; }
  .stat-card { padding: 17px 16px 15px; }
  .stat-card > svg { right: 15px; top: 18px; width: 15px; height: 15px; }
  .stat-label { font-size: 10px; }
  .stat-value { font-size: 25px; margin-top: 10px; }
  .stat-detail { font-size: 10px; }
  .panel { border-radius: 10px; }
  .panel-header { padding: 18px 16px; gap: 10px; align-items: flex-start; }
  .panel-title { font-size: 14px; }
  .panel-subtitle { font-size: 10px; }
  .panel-header .btn { font-size: 10px; min-height: 32px; padding: 7px 9px; }
  .toolbar { padding: 15px 16px; gap: 13px; }
  .period-label { min-width: 0; font-size: 11px; }
  .period-nav { gap: 5px; }
  .filters { width: 100%; flex-wrap: wrap; margin-left: 0; gap: 7px; }
  .search-input, .select, .filters .search-input { font-size: 16px; min-height: 41px; padding: 8px 9px; }
  .search-input { width: 100%; min-width: 100%; }
  .select { flex: 1; min-width: 0; font-size: 16px; }
  .data-table th:first-child, .data-table td:first-child { padding-left: 16px; }
  .data-table th:last-child, .data-table td:last-child { padding-right: 16px; }
  .data-table th { font-size: 11px; }
  .data-table td { font-size: 12px; padding-top: 15px; padding-bottom: 15px; }
  .summary-strip { padding: 12px 16px; font-size: 9px; flex-wrap: wrap; }
  .footer-note { font-size: 9px; }
  .config-grid { grid-template-columns: 1fr; gap: 12px; }
  .client-card { padding: 19px; }
  .settings-form { padding: 21px 17px; }
  .input, .textarea, .field select { font-size: 16px; min-height: 45px; padding: 10px 11px; }
  .field-label { font-size: 12px; }
  .field-hint { font-size: 11px; }
  .form-row { gap: 13px; }
  .form-row.three { grid-template-columns: 1fr; gap: 0; }
  .checkbox-line { font-size: 13px; }
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal, .modal.wide { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .modal-header { padding: 21px 20px 18px; }
  .modal-title { font-size: 22px; }
  .modal-body { padding: 21px 20px 10px; }
  .modal-footer { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); gap: 8px; }
  .modal-footer .btn { min-height: 42px; padding: 10px 13px; font-size: 12px; }
  .modal-footer .btn.danger { padding: 10px; }
  .section-heading { font-size: 13px; }
  .client-option { font-size: 12px; min-height: 39px; }
  .billing-grid { grid-template-columns: 1fr; gap: 13px; }
  .client-billing-card { padding: 15px; }
  .toast { left: 18px; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); max-width: none; font-size: 12px; padding: 14px 16px; }
  .tabs { padding: 0 16px; gap: 18px; }
  .stat-icon svg { width: 18px; height: 18px; }
  .stat-value .unit { font-size: 13px; }
  .filters .search-input { width: 100%; }
  .date-jump { width: 100%; justify-content: space-between; margin-left: 0; padding-top: 2px; font-size: 12px; }
  .date-jump .input { width: auto; min-width: 160px; min-height: 41px; font-size: 16px; }
  .panel-header .period-nav { gap: 5px; flex-wrap: nowrap; }
  .panel-header .period-nav .btn.small { max-width: 88px; white-space: normal; font-size: 10px; padding: 5px 7px; }
  .table-footer { font-size: 10px; padding: 13px 16px; align-items: flex-start; }
  .table-footer span:last-child { max-width: 170px; text-align: right; }
  .config-toolbar { flex-wrap: wrap; gap: 13px; margin-top: 0; }
  .settings-grid { gap: 16px; }
  .settings-panel { padding: 21px 18px; }
  .settings-panel .settings-form { padding-top: 22px; }
  .sync-panel { gap: 12px; }
  .sync-panel .banner-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .fortnight-grid { grid-template-columns: 1fr; gap: 13px; }
  .fortnight-card { padding: 20px; }
  .fortnight-card .top-actions { flex-wrap: nowrap; }
  .fortnight-card .top-actions .btn { min-height: 40px; font-size: 12px; }
  .fortnight-card-top .eyebrow { font-size: 10px; }
  .summary-strip > div > span { font-size: 11px; }
  .time-summary { flex-wrap: wrap; margin-top: -4px; gap: 10px; }
  .time-summary .checkbox-line { font-size: 12px; }
  .time-summary .chip { margin-left: auto; }
  .service-checklist { max-height: 340px; }
  .service-check { padding: 13px; }
  .service-check input { width: 17px; height: 17px; flex-basis: 17px; }
  .service-check strong { font-size: 13px; }
  .service-check .small-text { font-size: 12px; }
  .billing-section-header .btn { font-size: 11px; min-height: 38px; }
  .client-billing-card .form-row, .client-billing-card .form-row.three { grid-template-columns: 1fr; gap: 0; }
  .client-billing-card > .form-row:last-child .field { margin-bottom: 17px; }
  .client-billing-card > .form-row:last-child .field:last-child { margin-bottom: 0; }
}
@media (max-width: 380px) {
  .main { padding-left: 13px; padding-right: 13px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .stat-card { padding: 15px 12px; }
  .stat-card > svg { display: none; }
  .modal-body, .modal-header { padding-left: 17px; padding-right: 17px; }
  .modal-footer { padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  .sidebar, .top-actions, .local-banner, .toolbar, .row-actions, .modal-backdrop, .toast, .footer-note { display: none !important; }
  .main { width: 100%; margin: 0; padding: 0; max-width: none; }
  body { background: #fff; }
  .panel, .stat-card { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; }
  .data-table { min-width: 0; }
}
