@font-face {
  font-family: Manrope;
  src: url('/manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  font-family: Manrope, 'Segoe UI', system-ui, sans-serif;
  --ink: #172d25;
  --muted: #55665d;
  --navy: #17362a;
  --navy-deep: #132c25;
  --accent: #225a43;
  --violet-deep: #164331;
  --mint: #d8f4ad;
  --lilac: #eaf3e8;
  --canvas: #f3f5ef;
  --line: #dbe3d8;
  --radius: 20px;
  --shadow: 0 8px 30px #243c2a08;
}

.priority-board { margin-block: 14px; }
.priority-board > h2 { margin-bottom: 12px; }
.audit-site-settings { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.audit-site-settings legend { padding-inline: 7px; font-weight: 800; }
.audit-clock { padding: .4rem .65rem; border-radius: 8px; background: var(--lilac); color: var(--accent); font-size: .84rem; font-weight: 760; }
.finding-evidence { margin-top: 12px; padding: 12px; border-radius: 10px; background: #edf4ea; }
.draft-conflict { min-width: 0; }
.draft-conflict h2, .draft-diff-group h3, .draft-diff-field h4 { margin: 0; }
.draft-diff-group { border-top: 1px solid var(--line); padding-top: 12px; }
.draft-diff-field { margin-top: 10px; }
.draft-diff-field dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0 0; }
.draft-diff-field dl > div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbf7; }
.draft-diff-field dt { font-size: .84rem; font-weight: 760; color: var(--muted); }
.draft-diff-field dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mobile-shift-plan { display: none; }
.mobile-shift-card .shift-items { margin-top: 8px; }
.final-report-copy { margin-block: 15px; }
.final-report-copy li + li { margin-top: 6px; }
.final-report-copy h3 { break-after: avoid; }

@media (max-width: 700px) {
  .draft-diff-field dl { grid-template-columns: minmax(0, 1fr); }
  .desktop-shift-plan { display: none; }
  .mobile-shift-plan { display: flex; }
}

@media print {
  body.print-audit { background: #fff; color: #000; }
  .print-audit :is(.shell, .main, .final-report-section, .final-report-copy) { display: block; width: auto; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .print-audit .sidebar, .print-audit .main > :not(.final-report-section), .print-audit .final-report-section > :not(.print-selected),
  .print-audit .print-selected > :not(.final-report-copy) { display: none !important; }
  .print-audit .print-selected { background: #fff; border: 0; padding: 0; }
  .print-audit .final-report-copy > * { margin-block: 0 12px; }
  .print-audit .final-report-copy li { break-inside: avoid; }
}

body { font-size: .94rem; }
h1, h2, h3 { color: var(--ink); }
h1 { font-weight: 800; }
button, .button { border-radius: 11px; }
.launch-loader { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }

.denetcim-wordmark { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: inherit; font-size: 1.5rem; letter-spacing: -.062em; line-height: 1; }
.denetcim-mark { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--navy-deep); }
.denetcim-mark svg { width: 25px; height: 25px; }
.denetcim-wordmark strong { font-weight: 800; }

.denetcim-login { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(320px, .95fr); gap: 16px; max-width: 1630px; min-height: 100svh; margin-inline: auto; padding: 16px; }
.signin-panel { display: grid; grid-template-rows: auto 1fr auto; justify-items: start; gap: 30px; padding: clamp(20px, 4vw, 64px); }
.signin-content { align-self: center; width: min(100%, 450px); margin-inline: auto; }
.signin-content h1 { max-width: 13ch; font-size: clamp(2.45rem, 4.2vw, 3.8rem); line-height: 1.04; text-wrap: balance; }
.signin-content > p { margin-block: 15px 28px; }
.signin-content form { gap: 16px; }
.signin-content .field input:is([name='username'], [name='password']) { min-height: 52px; background: #fff; }
.signin-content form > button.primary { justify-content: space-between; min-height: 52px; margin-top: 6px; }
.signin-workspace, .workspace-member { display: flex; align-items: center; min-width: 0; gap: 10px; }
.signin-workspace :is(small,strong), .workspace-member :is(small,strong) { display: block; line-height: 1.36; overflow-wrap: anywhere; }
.signin-workspace small { color: var(--muted); font-size: .72rem; }
.member-avatar { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 10px; color: #23533c; background: #e4eddf; }
.member-avatar svg { width: 18px; height: 18px; }
.signin-art { position: relative; display: flex; align-items: end; isolation: isolate; overflow: hidden; min-height: 100%; padding: clamp(26px, 4.7vw, 74px); border-radius: 25px; color: #f6fff4; background: #173c2d url('/denetcim-operations.jpg') center 50%/cover no-repeat; }
.signin-art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #10291d12 35%, #0d281c 100%); }
.signin-art p { margin-bottom: 12px; color: #e6f5cc; font-size: .77rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
.signin-art h2 { max-width: 15ch; color: #fff; font-size: clamp(2rem, 3.6vw, 4.15rem); line-height: 1.05; }

.shell { grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { gap: 25px; height: 100dvh; padding: 25px 15px 17px; background: #132c25; border-right: 1px solid #284337; color: #f9fff5; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; padding-inline: 8px; }
.sidebar button.mobile-menu { display: none; }
.sidebar .nav { display: grid; align-content: start; gap: 21px; }
.nav-group { display: grid; min-width: 0; gap: 3px; }
.sidebar .nav-label { margin: 0 11px 5px; color: #b1c5b9; font-size: .65rem; letter-spacing: .13em; }
.sidebar .nav :is(a, button, .nav-item), .sidebar .sidebar-footer .button { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 41px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; box-shadow: none; color: #dcebe1; font-size: .83rem; font-weight: 680; text-align: left; }
.sidebar .nav :is(a, button, .nav-item):hover, .sidebar .sidebar-footer .button:hover { background: #ffffff12; color: #fff; }
.sidebar .nav .nav-group button.nav-item[aria-current='page'] { background: #294639; border-color: #42604e; color: #edffd8; box-shadow: inset 2px 0 var(--mint); }
.sidebar :is(a, button):focus-visible { outline-color: var(--mint); }
.sidebar-footer { padding: 11px 2px 0; border-color: #3b564a; }
.workspace-member { margin: 0 3px 6px; padding: 9px; border: 1px solid #365548; border-radius: 12px; background: #1b372d; }
.workspace-member .member-avatar { color: #e9f8d0; background: #2c4b3c; }
.workspace-member small { color: #bbcfc0; font-size: .65rem; }
.workspace-member strong { color: #f6fff5; font-size: .85rem; }
.sidebar .sidebar-footer .button { min-height: 39px; margin-top: 0; }
.recipe-nav-count { margin-left: .3em; }

.main { padding: 20px clamp(17px, 2.9vw, 45px) 45px; }
.topbar { min-height: 55px; margin-bottom: 20px; padding: 0 0 13px; color: var(--muted); }
.topbar-path { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; min-width: 0; overflow-wrap: anywhere; font-size: .84rem; }
.topbar-path strong { color: var(--ink); }
.role-indicator { border: 1px solid var(--line); border-radius: 999px; padding: .33rem .72rem; background: #fff; color: #324c3f; font-size: .72rem; font-weight: 760; }

.hero, .overview-hero { border-color: #d7e2d4; background: radial-gradient(ellipse at right top, #d8e8d6, transparent 68%), #fcfdf9; }
.hero::after, .overview-hero::after { background: repeating-linear-gradient(90deg, #c5d9c4 0 1px, transparent 1px 16px); opacity: .32; }
.overview-hero::before { background: var(--accent); }
.hero :is(p, .muted) { color: var(--muted); }
.overview-period { border-color: var(--line); background: #ffffffed; color: var(--ink); }
.hero .badge:not(.success, .pending, .warning, .critical, .danger) { background: #e3efdf; color: #214c38; }
:is(.button, button).secondary:not(.nav-item), .hero :is(.button, button).secondary { border-color: #d3ded1; color: #254637; background: #fff; }
:is(.button, button).secondary:not(.nav-item):hover, .hero :is(.button, button).secondary:hover { border-color: #9eb7a5; background: #edf4ea; }
.card-header > .field { font-size: .76rem; }
.card-header input { min-height: 42px; }
.card .empty { border-color: var(--line); background: #f4f7f1; }

.center-masthead { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; grid-template-columns: minmax(0, 1.55fr) minmax(130px, .8fr); gap: 20px; min-height: 265px; padding: clamp(23px, 4vw, 51px); border-radius: 25px; color: #f5fff3; background: radial-gradient(ellipse at right, #315642 0, transparent 55%), #17392d; }
.center-masthead h1 { margin-top: 12px; color: #fff; font-size: clamp(2.05rem, 4.2vw, 4.5rem); line-height: 1.02; }
.masthead-content { z-index: 1; }
.masthead-content > p:not(.masthead-period) { max-width: 47ch; margin-top: 12px; color: #dbece0; }
.masthead-period { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid #6e8a74; border-radius: 999px; color: #edffe3; font-size: .72rem; font-weight: 740; }
.masthead-period svg { width: 14px; height: 14px; }
.center-masthead .button.primary { gap: 10px; min-height: 45px; margin-top: 19px; border-color: var(--mint); background: var(--mint); color: #203725; }
.center-masthead .button.primary:hover { border-color: #eefbd7; background: #eefbd7; color: #203725; }
.center-masthead .button:focus-visible { outline-color: #fff; }
.masthead-art { position: absolute; inset: 0 0 0 auto; display: grid; place-items: center; width: 45%; pointer-events: none; }
.masthead-art::before { content: ''; position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(#7c9c822b 1px, transparent 1px), linear-gradient(90deg, #7c9c822b 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 68%); }
.masthead-art > span, .masthead-art > div { grid-area: 1/1; display: grid; place-items: center; width: clamp(90px, 16vw, 194px); aspect-ratio: 1; border-radius: 28%; }
.masthead-art > span:first-child { border: 1px solid #8caf8a; opacity: .48; transform: rotate(-17deg) scale(1.15); }
.masthead-art > span:nth-child(2) { border: 1px solid #b1cda2; opacity: .8; transform: rotate(13deg) scale(1.04); }
.masthead-art > div { position: relative; transform: rotate(-7deg) scale(.8); border: 1px solid #bdd2ad; background: linear-gradient(145deg, #daf1c5, #9cbf9e); color: #244934; box-shadow: 0 16px 37px #0d241d85; }
.masthead-art svg { width: 57%; height: 57%; stroke-width: 1.25; }
.overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-block: 16px; }
.overview-metrics .stat { padding: 16px 17px; }
.overview-metrics .stat-value { font-size: clamp(1.65rem, 4vw, 2.65rem); }
.overview-metrics .stat-caption { font-size: .76rem; }
.coverage-card, .branch-portal-brief { border-color: var(--line); background: linear-gradient(115deg, #fff 24%, #f0f6ed); }
.coverage-segment, .coverage-legend > span:not(:has(.coverage-segment))::before { border-color: #cbd9cc; background: #e4ece0; }
.coverage-segment.is-complete, .coverage-legend > span:nth-child(1):not(:has(.coverage-segment))::before { border-color: #437c64; background: #4d9775; }
.coverage-segment.is-draft, .coverage-legend > span:nth-child(2):not(:has(.coverage-segment))::before { border-color: #8b754f; background: #af9562; }
.check, .work-item, .audit-review, .audit-dock, .team-result > div, .shift-item, .personnel-question, .recipe-pages a { border-color: var(--line); background: #f9fbf7; }
.work-index, .branch-avatar, .audit-steps .step-index, .team-result strong { color: var(--accent); }
.audit-steps .step-index { border-color: var(--line); }
.audit-steps :is(button,a).audit-step { border-color: var(--line); }
.audit-steps :is(button,a).audit-step:hover { border-color: #93ab95; background: #edf4ea; }
.audit-steps .audit-step:is(.active,[aria-current='step']) .step-index { background: #e0edcc; color: #264a34; border-color: #b7caae; }
.audit-steps .audit-step:is(.active,[aria-current='step']) :is(small,[data-step-count]) { color: #e7f5df; }
.report-callout:not(.warning), .cashier-transcript li.customer { border-color: #c7ddcb; background: #edf5ea; color: #284b37; }
.report-callout:not(.warning) { border-inline-start-color: var(--accent); }
.report-callout:not(.warning) :is(h2,h3,.eyebrow), .recipe-pages a { color: var(--accent); }
.cashier-transcript li.cashier { border-color: var(--line); background: #f4f5f0; }
.personnel-question label:has(input:checked), .recipe-pages a:hover, tbody tr:hover { background: #edf4ea; }
.personnel-question input, .sales-replace input[type='checkbox'] { accent-color: var(--accent); }
.recipe-notices article, .sales-insights .check { border-inline-start-color: #7da88b; }
#branch-account-editor form { margin-block-start: 1rem; }
.branch-account-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.branch-account-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .6rem 1rem; }
.branch-account-summary { overflow-wrap: anywhere; }
.branch-account-summary > .badge { margin-inline-start: .5rem; }
.branch-account-summary p { margin-block-end: 0; }
.branch-account-row .branch-account-actions { justify-content: flex-end; }
.branch-account-secret { grid-column: 1 / -1; padding-block-start: .65rem; border-top: 1px solid var(--line); }
.branch-account-secret code { user-select: all; overflow-wrap: anywhere; }
.branch-account-secret p:empty { display: none; }
@media (max-width: 570px) {
  .branch-account-row { grid-template-columns: minmax(0, 1fr); }
  .branch-account-row .branch-account-actions { justify-content: flex-start; }
}
.recipe-nav-count { background: #d7efbf; color: #193a28; }
.shift-table thead th { background: #254337; }
.shift-table thead small { color: #d5ead9; }
.shift-table td[data-shift-kind='leave'], th { background: #ebf1e8; color: #344f3e; }
.progress, progress { background: #e4ece1; }
.progress > * { background: #467d5d; }
progress::-webkit-progress-bar { background: #e4ece1; }
progress::-webkit-progress-value { background: #467d5d; }
progress::-moz-progress-bar { background: #467d5d; }
.score-chart .score-row, .issue-row { border-color: var(--line); background: #f8faf6; }
.score-chart .score-row:hover { border-color: #abc0ac; background: #edf4ea; }
meter.score-track::-webkit-meter-bar { background: #e1ede0; }
meter.score-track::-webkit-meter-optimum-value, meter.score-track::-webkit-meter-suboptimum-value, meter.score-track::-webkit-meter-even-less-good-value { background: linear-gradient(90deg,#316947,#82ab78); }
meter.score-track::-moz-meter-bar { background: linear-gradient(90deg,#316947,#82ab78); }
.sales-chart svg text, .sales-legend { fill: var(--muted); color: var(--muted); }
.sales-chart svg line { stroke: var(--line); }
.sales-chart .amount { color: #2e7255; }
.sales-legend span::before { border-top-color: #2e7255; }
.branch-quick-actions { margin-block: 18px; }
.branch-quick-actions > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 10px; }
.branch-quick-actions button.quick-action { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 9px; align-items: center; min-width: 0; min-height: 66px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-align: left; }
.branch-quick-actions button.quick-action:hover { background: #edf4ea; border-color: #a9bea9; }
.quick-action :is(strong,small) { display: block; overflow-wrap: anywhere; }
.quick-action small { color: var(--muted); font-size: .74rem; }
.quick-action-icon, .report-empty > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: #e6f0e2; color: var(--accent); }
.quick-action-icon svg, .report-empty svg { width: 19px; height: 19px; }
.report-empty { display: flex; align-items: center; gap: 12px; padding: 17px; border-radius: 14px; background: #f1f5ee; }
.report-empty > span { flex: 0 0 35px; }
.report-empty p { color: var(--muted); font-size: .86rem; }

@media (max-width: 1080px) {
  .branch-quick-actions > div { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; overflow: visible; gap: 10px; padding: 10px 14px; border-right: 0; }
  .sidebar-heading { padding: 0; }
  .sidebar .denetcim-mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 9px; }
  .sidebar .denetcim-mark svg { width: 21px; height: 21px; }
  .sidebar .denetcim-wordmark { font-size: 1.3rem; }
  .sidebar button.mobile-menu { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 11px; border: 1px solid #536e5f; background: #203d32; color: #efffed; font-size: .82rem; }
  .sidebar button.mobile-menu:hover { background: #294639; border-color: #7a9a84; }
  .sidebar:not(.nav-open) :is(.nav, .sidebar-footer) { display: none; }
  .sidebar .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 9px; }
  .sidebar .nav-label { display: block; }
  .sidebar .nav .nav-item { min-height: 44px; padding: 6px 5px; gap: 6px; }
  .sidebar-footer { margin: 0; }
  .sidebar .sidebar-footer .button { min-height: 44px; }
  .main { padding: 12px 13px 35px; }
  .topbar { min-height: 37px; margin-bottom: 13px; padding-bottom: 8px; gap: 5px 10px; }
  .topbar-path { gap: 6px; font-size: .77rem; }
  .center-masthead { min-height: 215px; border-radius: 19px; gap: 0; grid-template-columns: minmax(0, 1fr); }
  .masthead-content { width: min(100%, 39ch); }
  .masthead-art { width: 35%; opacity: .57; }
  .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .overview-metrics .stat { padding: 10px 11px; }
  .overview-metrics .stat-label { font-size: .77rem; }
  .overview-metrics .stat-caption { font-size: .72rem; }
  .denetcim-login { grid-template-columns: 1fr; min-height: 100svh; padding: 10px; gap: 0; }
  .signin-panel { gap: 28px; padding: 17px 12px 24px; }
  .signin-content { margin-block: 4px; }
  .signin-content h1 { font-size: clamp(2.16rem, 9.5vw, 3.1rem); }
  .signin-content .field input:is([name='username'], [name='password']) { font-size: 16px; }
  .signin-art { min-height: 245px; padding: 23px; border-radius: 17px; background-position: center 43%; }
}

@media (max-width: 440px) {
  .masthead-art { opacity: .25; width: 38%; }
  .masthead-content > p:not(.masthead-period) { font-size: .83rem; }
  .topbar-path { flex: 1 1 175px; }
}

@media (max-width: 580px) {
  .empty-roster table { min-width: 0; }
  .empty-roster tr > :is(:nth-child(2), :nth-child(4), :nth-child(5)) { display: none; }
  .empty-roster tr > :is(td, th) { padding-inline: 5px; }
  .empty-roster td .badge { white-space: normal; }
  .empty-roster td .button { min-height: 40px; padding-inline: 8px; }
}
