/* Tjener control panel. Shared primitives live in styles.css; this file owns
   the application shell, operational views, settings and their breakpoints. */
@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #f7f6f2;
  --white: #fff;
  --ink: #252e2a;
  --muted: #667069;
  --line: #e1e4dd;
  --green: #255340;
  --navy: #233e32;
  --orange: #b66835;
  --peach: #fbefdf;
  --shadow: none;
  --ease: cubic-bezier(.2,.7,.2,1);
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
::selection { background: #dce9dc; color: #173e2b; }
button, input, select, textarea { font-family: inherit; }
button { transition: background-color 140ms, color 140ms, border-color 140ms, box-shadow 140ms; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #59816c;
  outline-offset: 3px;
}
a { text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); }
h1 { font-size: 30px; line-height: 1.25; letter-spacing: -1.1px; font-weight: 750; }
h2 { font-size: 18px; line-height: 1.4; letter-spacing: -.45px; font-weight: 750; }
h3 { font-size: 15px; font-weight: 700; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 650; }

/* Navigation has a quiet background; only the current destination is accented. */
.shell { grid-template-columns: 224px minmax(0,1fr); }
.sidebar { padding: 28px 16px 18px; background: #f0f1eb; border-color: #dfe2d9; }
.brand { padding-left: 12px; font-size: 29px; font-weight: 800; letter-spacing: -1.5px; gap: 9px; }
.brand-symbol { background: var(--green); width: 33px; height: 33px; border-radius: 9px; font-size: 31px; }
.restaurant-select { margin: 32px 0 26px; padding: 12px 9px; border-color: #daddd3; background: #fafbf7; border-radius: 8px; gap: 8px; }
.restaurant-select strong { font-size: 12px; overflow-wrap: anywhere; }
.restaurant-select small { font-size: 11px; color: var(--muted); }
.restaurant-icon { width: 30px; height: 30px; flex-shrink: 0; background: transparent; color: #5d6c5e; }
.nav-label, .nav-group-label { color: #70776d; font-size: 10px; letter-spacing: 1.1px; font-weight: 650; }
.nav-label { padding-left: 12px; margin-bottom: 10px; }
.nav-group-label { display: block; padding: 25px 12px 8px; }
.nav { gap: 4px; }
.nav-button { padding: 11px 12px; min-height: 44px; border-radius: 7px; font-size: 13px; font-weight: 550; color: #58645a; gap: 11px; }
.nav-button .icon { width: 18px; height: 18px; }
.nav-button.active { background: #dfe8dd; color: #204c35; font-weight: 750; box-shadow: inset 3px 0 #2e6145; }
.nav-button:hover:not(.active) { background: #e7eae1; color: #243f2c; }
.nav-count { color: #34553b; background: #d5dfd0; min-width: 22px; height: 22px; font-size: 11px; border-radius: 5px; }
.sidebar-help { display: flex; align-items: center; gap: 9px; padding: 16px 11px; margin-top: 22px; font-size: 12px; color: #626e60; width: 100%; text-align: left; }
.sidebar-help .icon { width: 16px; height: 16px; }
.sidebar-help .icon:last-child { width: 13px; margin-left: auto; }
.profile { border-color: #daddd3; padding: 17px 5px 0; gap: 9px; }
.profile strong { font-size: 12px; }
.profile small { font-size: 11px; }
.avatar { background: #e5e6d9; color: #62674f; font-size: 11px; font-weight: 750; flex-shrink: 0; }
.topbar { height: 68px; padding: 0 36px; background: #fcfcf9; border-color: var(--line); }
.breadcrumb { font-size: 12px; color: #747d72; gap: 11px; }
.breadcrumb strong { font-weight: 650; color: #364537; }
.demo-label { font-size: 9px; color: #7b6538; background: #efe8d9; font-weight: 700; }
.top-tools { gap: 15px; }
.top-tools .search { display: flex; }
.search { width: 255px; padding: 9px 11px; background: #f6f7f2; border-color: #e0e4d9; border-radius: 7px; }
.search input { font-size: 12px; color: var(--ink); }
.search input::placeholder { color: #737c6c; }
.search:focus-within { border-color: #77937b; box-shadow: 0 0 0 3px #3258400c; }
.shortcut { font-family: inherit; font-size: 10px; color: #78816e; background: #fcfcf9; }
.icon-button { width: 36px; height: 36px; color: #687261; border-radius: 7px; }
.icon-button:hover { background: #e9eee4; }
.top-avatar { width: 30px; height: 30px; }
.content { max-width: 1496px; padding: 38px 40px 24px; }
.page-heading { margin-bottom: 28px; gap: 24px; align-items: center; }
.page-heading p { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 9px; }
.heading-actions { gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.btn { min-height: 40px; padding: 10px 14px; border-radius: 7px; border-color: #d9dfd3; background: #fff; font-size: 13px; color: #344d39; font-weight: 700; box-shadow: 0 1px 2px #27372805; }
.btn .icon { width: 16px; height: 16px; }
.btn:hover { background: #f0f3eb; border-color: #b9c5b4; }
.btn.primary { background: var(--green); border-color: var(--green); color: white; }
.btn.primary:hover { background: #193f2d; border-color: #193f2d; box-shadow: 0 2px 5px #213d2d20; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.danger { color: #a14b38; border-color: #e1c7bf; }
.text-link { color: #3e6448; font-size: 12px; font-weight: 650; min-height: 32px; gap: 8px; }
.text-link:hover { color: #152f1c; }
.text-link .icon { width: 15px; height: 15px; transition: transform 140ms var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.section-heading { margin-bottom: 16px; gap: 16px; }
.section-title { gap: 10px; }
.count-bubble { background: #e8ebdf; color: #536341; min-width: 24px; height: 24px; font-size: 12px; border-radius: 6px; font-weight: 650; }
.section-caption { color: var(--muted); font-size: 12px; }

/* A compact, actionable service strip replaces the promotional assistant card. */
.operations-bar { display: grid; grid-template-columns: minmax(260px,1.2fr) minmax(250px,1fr) auto; align-items: center; border: 1px solid #dce2d5; background: #eef2e8; border-radius: 9px; margin-bottom: 34px; padding: 18px 22px; gap: 24px; }
.operations-bar strong { font-size: 13px; font-weight: 750; display: block; }
.operations-bar small { font-size: 11px; color: #62715a; display: block; margin-top: 4px; }
.operation-assistant, .operation-pickup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.operation-assistant .switch { margin-left: auto; }
.operation-icon { color: #4e6e48; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d6dfcc; border-radius: 50%; flex-shrink: 0; }
.operation-icon .icon { width: 17px; height: 17px; }
.status-text { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: #75705e; margin-left: 5px; }
.status-text::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-text.enabled { color: #417138; }
.operation-pickup { justify-content: space-between; padding-left: 24px; border-left: 1px solid #d7dfcc; }
.operation-test { display: flex; flex-direction: column; align-items: center; padding-left: 24px; border-left: 1px solid #d7dfcc; gap: 2px; }
.operation-test .btn { min-height: 36px; font-size: 11px; padding: 8px 12px; }
.operation-test .text-link { font-size: 10px; min-height: 22px; }
.switch { width: 36px; height: 22px; padding: 3px; background: #a6afa0; }
.switch span { width: 16px; height: 16px; }
.switch.on { background: #2e6143; }
.switch.on span { transform: translateX(14px); }
.stepper { display: flex; align-items: center; gap: 0; padding: 3px; border: 1px solid #d5dfca; border-radius: 7px; background: #fafcf6; }
.stepper button { width: 28px; height: 32px; color: #42663c; border: 0; display: grid; place-items: center; }
.stepper button:hover { background: #e5ecdd; }
.stepper .icon { width: 14px; height: 14px; }
.stepper .pickup-number { display: flex; align-items: baseline; justify-content: center; min-width: 62px; font-size: 20px; font-weight: 750; letter-spacing: -.6px; gap: 4px; margin: 0; }
.stepper .pickup-number small { font-size: 11px; font-weight: 500; letter-spacing: 0; margin: 0; }

/* Operational rows. Native details/summary provides keyboard disclosure. */
.order-list { background: #fff; border: 1px solid var(--line); border-radius: 9px; overflow: clip; }
.order-list-head, .order-row > summary { display: grid; grid-template-columns: minmax(120px,.9fr) minmax(210px,2fr) minmax(125px,.85fr) 112px 85px 18px; gap: 20px; align-items: center; padding: 19px 22px; }
.order-list-head { background: #fcfcf9; padding-top: 12px; padding-bottom: 12px; font-size: 10px; color: #687363; border-bottom: 1px solid var(--line); }
.order-list-head > :nth-child(5) { text-align: right; }
.order-row + .order-row { border-top: 1px solid #e7eae2; }
.order-row > summary { cursor: pointer; list-style: none; min-height: 98px; transition: background-color 140ms; }
.order-row > summary::-webkit-details-marker { display: none; }
.order-row > summary:hover { background: #f8faf5; }
.order-row > summary:focus-visible { outline-offset: -4px; border-radius: 6px; }
.order-row[open] > summary { background: #f5f8f0; }
.row-identity strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.4px; }
.row-identity small { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.row-items { display: flex; flex-direction: column; gap: 5px; font-size: 14px; min-width: 0; }
.row-items > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-items b { font-weight: 600; color: #798270; margin-right: 4px; }
.row-items small { font-size: 11px; color: #687462; }
.row-items > span small { margin-left: 7px; }
.row-time strong { font-size: 15px; font-weight: 750; }
.row-time small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.row-status { display: flex; gap: 5px; flex-wrap: wrap; border-radius: 5px; }
.badge { font-size: 10px; padding: 4px 7px; border-radius: 5px; font-weight: 650; gap: 5px; }
.badge.orange { color: #975021; background: #fcf0df; }
.badge.blue { color: #3f6783; background: #ebf1f6; }
.badge.green { color: #3c6b39; background: #eaf3e5; }
.badge.gray { color: #66715f; background: #eff1eb; }
.badge.red { color: #a04a38; background: #faece5; }
.row-price { text-align: right; font-size: 13px; font-weight: 750; white-space: nowrap; }
.row-chevron { color: #85927a; display: grid; place-items: center; }
.row-chevron .icon { width: 16px; height: 16px; transition: transform 180ms var(--ease); }
.order-row[open] .row-chevron .icon { transform: rotate(180deg); }
.row-detail { border-top: 1px solid #e2e8da; padding: 8px 24px 24px; background: #fafcf7; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 40px; animation: detail-in 200ms var(--ease); }
.row-detail-line { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid #e7ecdf; font-size: 13px; align-items: flex-start; }
.row-detail-line strong { font-size: 14px; font-weight: 650; }
.row-detail-line small { display: block; font-size: 12px; color: #627355; margin-top: 3px; }
.row-detail-line > span:last-child { margin-left: auto; white-space: nowrap; }
.qty { min-width: 24px; background: #eaf0e2; border-radius: 4px; text-align: center; color: #536e42; font-size: 11px; padding: 2px 3px; flex-shrink: 0; }
.row-detail-total { display: flex; justify-content: space-between; padding-top: 16px; font-size: 13px; color: var(--ink); }
.row-detail-aside { padding-top: 16px; }
.row-detail-aside p { font-size: 12px; color: #65735a; line-height: 1.7; }
.row-detail-aside .customer-line { color: var(--ink); margin-bottom: 3px; }
.row-detail-aside .notice { margin: 12px 0; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.row-actions .btn { font-size: 11px; min-height: 36px; padding: 8px 11px; }
.filters { gap: 4px; padding-bottom: 12px; border-bottom: 1px solid #dfe4d8; margin-bottom: 20px; }
.filter { font-size: 12px; padding: 9px 12px; border-radius: 6px; color: #65755a; }
.filter:hover { background: #edf1e7; }
.filter.active { background: #e5ecde; color: #2e5637; border-color: transparent; font-weight: 750; }
.filter span { font-size: 10px; color: #687d5b; margin-left: 7px; }
.filters [data-filter=test] { margin-left: auto; border-left: 1px solid #dfe4d8; border-radius: 0 6px 6px 0; }
.test-list-notice { font-size: 12px; color: #7d6848; padding: 12px 15px; margin-bottom: 16px; border-radius: 6px; background: #f5f0e3; }
.test-order-notice { font-size: 12px; line-height: 1.6; }
.daily-summary { margin-top: 32px; }
.summary-strip { gap: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; margin-bottom: 0; }
.summary-strip .metric { padding: 18px 22px; border: 0; border-radius: 0; background: transparent; }
.summary-strip .metric + .metric { border-left: 1px solid var(--line); }
.summary-strip .metric-top { font-size: 12px; color: #68735f; }
.summary-strip .metric-value { font-size: 27px; font-weight: 750; margin-top: 7px; line-height: 1.3; letter-spacing: -.8px; }
.summary-strip .metric-value span { font-size: 12px; color: #6d775f; }
.summary-strip .metric-icon, .summary-strip .metric-foot, .summary-strip .metric-spark { display: none; }
.call-section { margin-top: 32px; }
.table-card { border-color: var(--line); border-radius: 9px; }
th { font-size: 11px; color: #687560; font-weight: 550; padding: 12px 20px; background: #fcfcf9; }
td { font-size: 13px; color: #5f6e56; padding: 16px 20px; border-color: #e9ece3; }
tbody tr:hover { background: #f7faf2; }
.phone-cell { color: #394e32; font-size: 13px; font-weight: 600; }
.call-icon { width: 27px; height: 27px; color: #7d9365; background: #f0f5e8; }
.table-foot { font-size: 11px; color: #6b795e; padding: 12px 20px; }
.mini-action { min-width: 28px; min-height: 28px; color: #5e794c; }
.footer { margin-top: 30px; padding-top: 18px; font-size: 10px; color: #707a66; border-color: var(--line); gap: 16px; flex-wrap: wrap; }
.footer .dot { color: #69835b; width: 5px; height: 5px; }
.footer .sync-error { color: #9c5835; }
.footer .sync-error .dot { color: inherit; }

/* Focused settings: sections share one form and one aligned save area. */
.settings-layout { display: grid; grid-template-columns: 205px minmax(0,760px); gap: 32px; align-items: start; justify-content: start; }
.settings-index { display: flex; flex-direction: column; gap: 5px; padding-top: 4px; }
.settings-index button { text-align: left; display: flex; align-items: center; gap: 10px; padding: 12px 13px; font-size: 12px; font-weight: 600; color: #66765a; border-radius: 7px; }
.settings-index button .icon { width: 17px; height: 17px; }
.settings-index button:hover { background: #edf1e6; }
.settings-index button.active { background: #e6ecdf; color: #305b36; font-weight: 750; }
.settings-sections { min-width: 0; }
.settings-sections > .panel { padding: 30px; margin: 0; animation: detail-in 180ms var(--ease); }
.panel { border-radius: 9px; border-color: var(--line); padding: 26px; }
.panel-heading { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 24px; margin-bottom: 4px; border-bottom: 1px solid #e7ebdf; }
.panel-heading h2 { font-size: 20px; }
.panel-heading p { font-size: 12px; color: #65765a; line-height: 1.8; margin-top: 7px; }
.panel-icon { display: none; }
.toggle-row { padding: 24px 0; margin: 0; border-color: #e7ebdf; gap: 25px; align-items: center; cursor: pointer; }
.toggle-row strong { display: block; font-size: 14px; font-weight: 700; color: #354f2f; }
.toggle-row p { font-size: 13px; color: #67785b; line-height: 1.8; margin-top: 6px; max-width: 470px; }
.toggle-row input[role=switch] { appearance: none; width: 40px; height: 24px; border: 1px solid #a2ae97; background: #aeb9a3; border-radius: 20px; position: relative; flex-shrink: 0; margin: 0; cursor: pointer; transition: background-color 140ms; }
.toggle-row input[role=switch]::before { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #0002; transition: transform 160ms var(--ease); }
.toggle-row input[role=switch]:checked { background: #2f6340; border-color: #2f6340; }
.toggle-row input[role=switch]:checked::before { transform: translateX(16px); }
.setting-example { padding: 17px 20px; border-left: 3px solid #b9c9a5; background: #f4f7ee; margin: 4px 0; border-radius: 0 6px 6px 0; }
.setting-example .eyebrow { font-size: 11px; color: #647c4f; }
.setting-example p { font-size: 14px; line-height: 1.8; color: #425b33; margin: 8px 0; }
.setting-example small { display: block; font-size: 11px; color: #6e805b; line-height: 1.8; }
.setting-note { font-size: 11px; color: #687d55; line-height: 1.8; margin-top: 18px; }
.field { margin-bottom: 22px; gap: 8px; }
.panel-heading + .field { margin-top: 24px; }
.field > span { font-size: 12px; font-weight: 650; color: #435d36; }
.field input, .field select, .field textarea, .input { min-height: 42px; padding: 10px 12px; border: 1px solid #d5dfca; border-radius: 6px; font-size: 14px; color: #354c2c; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #779761; }
.field small { font-size: 11px; color: #647c51; line-height: 1.7; }
.field-row { gap: 20px; }
.hours-row { display: grid; grid-template-columns: minmax(70px,1fr) 103px 10px 103px 72px; gap: 12px; padding: 13px 0; align-items: center; border-color: #e8eddf; }
.hours-row > span { width: auto; font-size: 12px; color: #516a41; }
.hours-row input[type=time] { width: 103px; padding: 8px; font-size: 12px; color: #466035; background: #fff; border: 1px solid #dce4d2; border-radius: 6px; }
.hours-row label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6d8259; }
.hours-row input[type=checkbox] { accent-color: #315d3e; }
.advanced-settings summary { display: flex; align-items: center; justify-content: space-between; list-style: none; font-size: 12px; color: #4e7039; cursor: pointer; padding-top: 24px; gap: 12px; }
.advanced-settings summary::-webkit-details-marker { display: none; }
.advanced-settings summary .icon { width: 16px; height: 16px; transition: transform 160ms; }
.advanced-settings[open] summary .icon { transform: rotate(180deg); }
.advanced-settings > div { padding-top: 24px; }
#budget-settings .field { margin-top: 24px; }
.save-bar { position: sticky; bottom: 16px; z-index: 5; width: min(760px,calc(100% - 237px)); margin: 18px 0 0 237px; padding: 14px 18px; border: 1px solid #cedbc2; border-radius: 8px; background: #fcfef8f5; backdrop-filter: blur(8px); box-shadow: 0 5px 25px #263d2310; display: flex; align-items: center; justify-content: space-between; gap: 12px; animation: save-in 180ms var(--ease); }
.save-bar strong { font-size: 12px; color: #465f36; }
.save-actions { display: flex; gap: 8px; flex-shrink: 0; }
.save-actions .btn { min-height: 36px; font-size: 11px; padding: 9px 12px; }
.save-bar .form-error { display: block; font-size: 11px; margin-top: 4px; }
.save-bar .form-error:empty { display: none; }
.settings-feedback { font-size: 11px; color: #627b4c; margin: 18px 0 0 237px; }
.settings-feedback:empty { display: none; }

/* Secondary workflows use the same type scale and surfaces. */
.notice { border-radius: 7px; background: #faf3e5; color: #846538; font-size: 12px; line-height: 1.8; }
.notice.green { background: #eff5e7; color: #536f3c; }
.empty-state { border: 1px solid var(--line); border-radius: 9px; padding: 32px 22px; background: #fff; }
.empty-state .icon { color: #80966b; width: 25px; height: 25px; margin-bottom: 12px; }
.empty-state h3 { font-size: 15px; color: #425b34; }
.empty-state p { color: #687e56; font-size: 12px; max-width: 380px; margin: 8px auto 0; line-height: 1.8; }
.menu-layout { grid-template-columns: 170px minmax(0,1fr); gap: 26px; }
.menu-category { padding: 24px; border-radius: 9px; border-color: var(--line); }
.menu-category-heading h2 { font-size: 19px; }
.menu-category-heading span, .category-variants { font-size: 11px; color: #6c805a; }
.menu-row h3 { font-size: 14px; }
.menu-row p { font-size: 12px; color: #6c805a; }
.menu-row small { font-size: 11px; color: #70865c; }
.menu-row-end strong { font-size: 13px; }
.menu-row-end strong small { color: #70865c; }
.menu-category-heading .category-edit { opacity: 1; }
.menu-options-bar { font-size: 12px; color: #647b50; }
.menu-reset { margin-left: auto; color: #94644c; font-size: 11px; }
.menu-index .filter { font-size: 12px; }
.analytics-top .metric { border-color: var(--line); border-radius: 9px; padding: 22px; }
.metric-top { font-size: 12px; color: #66795a; }
.metric-value { color: #2a4224; font-weight: 700; }
.metric-foot { color: #6b815b; font-size: 11px; }
.detail-line { font-size: 13px; line-height: 1.7; padding: 15px 0; }
.detail-line small { font-size: 12px; color: #6a8157; line-height: 1.7; }
.detail-value { font-size: 14px; line-height: 1.8; }
.detail-section h3 { font-size: 11px; color: #688051; letter-spacing: .4px; }
.detail-total { font-size: 20px; }
.transcript-message { font-size: 13px; line-height: 1.8; color: #415a31; }
.transcript-message small { font-size: 11px; }
.transcript-message.assistant { background: #f0f5e8; }
.drawer { background: #fdfef9; border-left: 1px solid #dce4d1; animation: drawer-in 220ms var(--ease); }
.drawer-head { padding: 24px 28px; }
.drawer-head h2 { font-size: 22px; }
.drawer-body { padding: 24px 28px; }
.drawer-foot { padding: 18px 28px; background: #f5f8ee; border-color: #dce5d1; }
.drawer-foot .btn { white-space: normal; }
.overlay-backdrop { background: #1b2b244f; backdrop-filter: blur(2px); }
.quote-readback { font-size: 16px; line-height: 1.8; background: #eff5e7; color: #3c5c2c; }
#toast { font-size: 13px; line-height: 1.7; background: #244c32; border-radius: 8px; box-shadow: 0 6px 22px #1b302528; }
.login .panel { box-shadow: 0 10px 45px #24382a0c; }

/* Kitchen cards remain spacious for reading at a distance. */
.order-card { border: 1px solid #dbe3d1; border-top: 3px solid #b7c5a7; border-radius: 9px; }
.order-card[data-status=new] { border-top-color: #c68b56; }
.order-card[data-status=preparing] { border-top-color: #7e99b1; }
.order-card[data-status=ready] { border-top-color: #6f9257; }
.order-head { padding: 20px 20px 14px; }
.order-number { font-size: 22px; font-weight: 750; }
.order-body { padding: 0 20px 18px; }
.customer-line { font-size: 13px; color: #5f7650; }
.order-phone { font-size: 12px; color: #6e825d; margin-bottom: 16px; }
.order-item { font-size: 16px; color: #344f28; gap: 9px; line-height: 1.6; margin: 12px 0; }
.order-item small { font-size: 12px; color: #607d4d; }
.item-variant { display: block; margin-top: 2px; }
.item-variant + br { display: none; }
.order-total { font-size: 12px; border-top-style: solid; border-color: #e7ecdf; color: #647f50; }
.order-total strong { font-size: 16px; color: #3a5d2a; }
.order-bottom { font-size: 12px; color: #65814f; padding: 12px 20px; background: #f8fbf2; }
.order-bottom .mini-action { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.kitchen-mode .shell { grid-template-columns: 1fr; }
.kitchen-mode .content { padding: 30px; max-width: 1800px; }
.kitchen-mode .order-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.kitchen-mode .order-card > .btn { margin: 14px 20px 20px; min-height: 48px; font-size: 14px; }

@keyframes drawer-in { from { opacity: .5; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes detail-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes save-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1600px) {
  .content { padding-top: 44px; }
  .row-items, .row-price { font-size: 14px; }
  .row-identity small, .row-time small { font-size: 12px; }
  .row-items small { font-size: 11px; }
  .order-row > summary { min-height: 105px; }
}
@media (max-width: 1250px) {
  .shell { grid-template-columns: 204px minmax(0,1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .content { padding: 30px 26px 22px; }
  .topbar { padding: 0 26px; }
  .operations-bar { gap: 18px; padding: 16px; grid-template-columns: minmax(220px,1fr) minmax(210px,1fr); }
  .operation-test { grid-column: 1/-1; flex-direction: row; justify-content: flex-end; border-left: 0; border-top: 1px solid #d7dfcc; padding: 12px 0 0; gap: 16px; }
  .order-list-head, .order-row > summary { grid-template-columns: minmax(100px,.85fr) minmax(150px,1.7fr) 105px 98px 75px 16px; gap: 12px; padding-left: 18px; padding-right: 18px; }
  .order-list-head { font-size: 9px; }
  .settings-layout { grid-template-columns: 175px minmax(0,1fr); gap: 22px; }
  .settings-index button { font-size: 11px; padding: 12px 8px; }
  .settings-sections > .panel { padding: 24px; }
  .save-bar { margin-left: 197px; width: calc(100% - 197px); }
  .settings-feedback { margin-left: 197px; }
  .hours-row { grid-template-columns: minmax(60px,1fr) 95px 10px 95px 65px; gap: 8px; }
  .hours-row input[type=time] { width: 95px; }
  .save-bar { flex-wrap: wrap; }
  .save-actions { margin-left: auto; }
}
@media (max-width: 1050px) {
  .shell { grid-template-columns: 184px minmax(0,1fr); }
  .nav-button { font-size: 12px; padding-left: 10px; gap: 9px; }
  .brand { font-size: 27px; padding-left: 8px; }
  .restaurant-icon { display: none; }
  .content { padding: 28px 22px 22px; }
  .topbar { padding: 0 22px; }
  .page-heading { align-items: flex-start; }
  h1 { font-size: 27px; }
  .search { width: 215px; }
  .order-list-head, .order-row > summary { grid-template-columns: 100px minmax(140px,1fr) 85px 92px 16px; }
  .row-price, .order-list-head > :nth-child(5) { display: none; }
  .row-detail { gap: 24px; padding-left: 18px; padding-right: 18px; }
  .row-actions { flex-direction: column; align-items: flex-start; }
  .settings-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .settings-index { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .settings-index button { font-size: 12px; padding: 9px 11px; }
  .settings-index button .icon { width: 15px; height: 15px; }
  .save-bar { width: 100%; margin-left: 0; }
  .settings-feedback { margin-left: 0; }
  .menu-layout { grid-template-columns: 140px minmax(0,1fr); gap: 18px; }
  .menu-index .filter { font-size: 11px; }
  .kitchen-mode .order-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0,1fr); }
  .sidebar { display: none; }
  .mobile-menu { display: flex; }
  .mobile-menu .icon { width: 19px; height: 19px; }
  .topbar { padding: 0 18px; height: 60px; }
  .top-tools { gap: 8px; }
  .search { width: 205px; }
  .top-avatar, .divider { display: none; }
  .breadcrumb { gap: 7px; font-size: 11px; }
  .breadcrumb > .icon, .demo-label { display: none; }
  .content { padding: 26px 20px 20px; }
  .page-heading { gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
  .page-heading p { font-size: 12px; }
  .heading-actions { justify-content: flex-start; }
  .operations-bar { grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
  .operation-icon { display: none; }
  .operation-assistant { gap: 8px; }
  .operation-pickup { padding-left: 16px; }
  .status-text { display: flex; margin-left: 0; margin-top: 4px; }
  .operations-bar strong { font-size: 11px; }
  .operations-bar small { font-size: 10px; }
  .stepper button { width: 25px; }
  .stepper .pickup-number { min-width: 52px; font-size: 18px; }
  .order-list-head, .order-row > summary { grid-template-columns: 95px minmax(120px,1fr) 85px 90px 16px; gap: 10px; padding-left: 15px; padding-right: 15px; }
  .summary-strip .metric { padding: 16px; }
  .summary-strip .metric-top { font-size: 11px; }
  .summary-strip .metric-value { font-size: 24px; }
  .section-heading h2 { font-size: 17px; }
  .filters [data-filter=test] { margin-left: 0; }
  .menu-layout { grid-template-columns: 1fr; }
  .menu-index { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .menu-index .filter { width: auto; white-space: nowrap; flex-shrink: 0; }
  .menu-options-bar { flex-wrap: wrap; }
  .menu-reset { margin-left: 0; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 20px; padding-right: 20px; }
  .footer { gap: 8px; }
}
@media (max-width: 580px) {
  .content { padding: 24px 16px 20px; }
  .topbar { padding: 0 12px; }
  .top-tools { gap: 4px; }
  .search { width: 148px; padding: 9px; }
  .search input { font-size: 11px; }
  .shortcut { display: none; }
  .breadcrumb { font-size: 0; gap: 3px; }
  .breadcrumb strong { font-size: 11px; }
  h1 { font-size: 25px; }
  .operations-bar { grid-template-columns: 1fr; padding: 16px; gap: 15px; }
  .operation-icon { display: grid; }
  .operations-bar strong { font-size: 13px; }
  .operations-bar small { font-size: 11px; }
  .status-text { display: inline-flex; margin: 0 0 0 5px; }
  .operation-pickup { border-left: 0; border-top: 1px solid #d7dfcc; padding: 15px 0 0; }
  .operation-test { justify-content: flex-start; flex-wrap: wrap; }
  .order-list-head { display: none; }
  .order-row > summary { grid-template-columns: minmax(0,1fr) auto 18px; gap: 10px 12px; padding: 17px 16px; min-height: 130px; }
  .row-identity { grid-column: 1; grid-row: 1; }
  .row-status { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .row-chevron { grid-column: 3; grid-row: 1/3; }
  .row-items { grid-column: 1; grid-row: 2; font-size: 12px; }
  .row-items > span { white-space: normal; }
  .row-items > span small { display: block; margin-left: 23px; }
  .row-time { grid-column: 2; grid-row: 2; text-align: right; }
  .row-time strong { font-size: 14px; }
  .row-time small { font-size: 10px; }
  .row-identity strong { font-size: 16px; }
  .row-detail { grid-template-columns: 1fr; gap: 0; padding: 4px 16px 20px; }
  .row-actions { flex-direction: row; }
  .row-actions .btn { min-height: 40px; }
  .summary-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .summary-strip .metric:nth-child(3) { border-left: 0; }
  .summary-strip .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-caption { font-size: 10px; }
  .section-heading { gap: 10px; }
  .section-heading .text-link { font-size: 11px; }
  .section-title { gap: 7px; }
  .filters { gap: 3px; }
  .filter { padding: 9px 10px; font-size: 11px; }
  .settings-index { gap: 3px; }
  .settings-index button { font-size: 11px; padding: 9px; gap: 6px; }
  .settings-sections > .panel { padding: 20px; }
  .panel-heading h2 { font-size: 19px; }
  .toggle-row { gap: 18px; padding: 22px 0; }
  .toggle-row p { font-size: 11px; }
  .setting-example { padding: 14px 15px; }
  .setting-example p { font-size: 13px; }
  .save-bar { padding: 12px; bottom: 10px; gap: 10px; }
  .save-actions { width: 100%; }
  .save-actions .btn { flex: 1; padding: 9px 8px; }
  .field-row { grid-template-columns: minmax(0,1fr); gap: 0; }
  .hours-row { grid-template-columns: minmax(60px,1fr) 84px 10px 84px; gap: 6px; }
  .hours-row input[type=time] { width: 84px; padding: 8px 4px; font-size: 11px; }
  .hours-row label { grid-column: 2/5; margin-top: 2px; }
  .hours-row > span { font-size: 11px; }
  .panel { padding: 20px; }
  .menu-category { padding: 18px; }
  .menu-category-heading h2 { font-size: 17px; }
  .menu-row h3 { font-size: 13px; }
  .menu-row p { font-size: 11px; }
  .compact-calls table { white-space: normal; }
  .compact-calls th, .compact-calls td { padding: 13px 12px; }
  .compact-calls th:nth-child(n+3), .compact-calls td:nth-child(n+3) { display: none; }
  .compact-calls th:last-child, .compact-calls td:last-child { display: table-cell; width: 36px; padding-left: 0; padding-right: 8px; }
  .compact-calls .phone-cell { font-size: 12px; gap: 7px; }
  .compact-calls td:nth-child(2) { font-size: 11px; }
  .table-foot { gap: 10px; font-size: 10px; }
  .kitchen-mode .content { padding: 22px 16px; }
  .kitchen-mode .order-grid { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  .drawer-head h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
