/* Unified workspace spacing, typography and semantic colors. */
#workspace{--space:8px;--success-bg:#e9f4ed;--success-ink:#256443;--warning-bg:#fff3d8;--warning-ink:#865d15;--danger-bg:#fcecea;--danger-ink:#aa463e;--neutral-bg:#edf0f2;--neutral-ink:#596770;--muted:#63756b;font-size:13px;line-height:1.65}
#workspace .admin-title h1{font-size:30px;letter-spacing:-.8px;margin:0 0 6px;line-height:1.25}#workspace .admin-title{margin-bottom:24px}#workspace .admin-title .eyebrow{margin-bottom:8px}#workspace #page-subtitle{margin:0;max-width:700px;font-size:13px;color:#66766d}
#workspace .admin-topbar{height:76px;flex-shrink:0}#workspace .admin-body,#workspace .admin-main,#workspace #content{min-width:0;max-width:100%}#workspace .sidebar{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#6f9583 transparent}#workspace .sidebar nav a{min-height:44px;font-size:13px;line-height:1.45}#workspace .sidebar nav a.active{background:#ebca7526;color:#ffdf91;box-shadow:inset 4px 0 #ebca75}#workspace .sidebar nav a:focus-visible{outline:2px solid #ebca75;outline-offset:-2px}#workspace .sidebar-group summary{cursor:pointer;min-height:40px;display:flex;align-items:center;gap:10px;list-style:none}#workspace .sidebar-group summary:after{content:'⌄';margin-left:auto;font-size:16px;transition:transform .15s}#workspace .sidebar-group:not([open]) summary:after{transform:rotate(-90deg)}#workspace .sidebar-group summary::-webkit-details-marker{display:none}
#workspace .panel,#workspace .metric{border-radius:16px;border:1px solid #e0e7e2;box-shadow:0 2px 8px #203e3404}#workspace .panel{padding:24px;margin-bottom:24px}#workspace .panel-head{gap:16px;align-items:center;margin-bottom:20px}#workspace .panel h2{font-size:20px;line-height:1.4;margin-bottom:16px}#workspace .panel-head h2{margin-bottom:0}#workspace .panel p{line-height:1.8}#workspace .metric{padding:24px}#workspace .metric-value{font-variant-numeric:tabular-nums;font-size:32px}#workspace .metric>p{font-size:11px}
#workspace .button,body:has(#workspace:not([hidden])) dialog .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;font-size:12px;font-weight:500;line-height:1.5;min-height:42px;padding:10px 16px;white-space:normal}#workspace .button.small{min-height:36px;padding:8px 12px;font-size:11px}#workspace .button:disabled{transform:none;box-shadow:none}#workspace .button:focus-visible,body:has(#workspace:not([hidden])) dialog .button:focus-visible{outline:2px solid #bc8e36;outline-offset:3px}#workspace .button.danger{background:var(--danger-bg);color:var(--danger-ink);border-color:#ebc8c3}
#workspace .pill,body:has(#workspace:not([hidden])) dialog .pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:7px;font-size:11px;line-height:1.5;font-weight:500;text-transform:capitalize}#workspace .pill[data-tone]:before,body:has(#workspace:not([hidden])) dialog .pill[data-tone]:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}#workspace .pill[data-tone=success],body:has(#workspace:not([hidden])) dialog .pill[data-tone=success]{background:#e9f4ed;color:#256443}#workspace .pill[data-tone=warning],body:has(#workspace:not([hidden])) dialog .pill[data-tone=warning]{background:#fff3d8;color:#865d15}#workspace .pill[data-tone=danger],body:has(#workspace:not([hidden])) dialog .pill[data-tone=danger]{background:#fcecea;color:#aa463e}#workspace .pill[data-tone=neutral],body:has(#workspace:not([hidden])) dialog .pill[data-tone=neutral]{background:#edf0f2;color:#596770}
#workspace label,body:has(#workspace:not([hidden])) dialog label{font-size:13px;line-height:1.5}#workspace .settings-form,.admin-main form,body:has(#workspace:not([hidden])) dialog form{gap:20px}#workspace input:not([type=checkbox]):not([type=radio]),#workspace select,#workspace textarea,body:has(#workspace:not([hidden])) dialog input:not([type=checkbox]):not([type=radio]),body:has(#workspace:not([hidden])) dialog select,body:has(#workspace:not([hidden])) dialog textarea{font-size:13px;min-height:46px;border-radius:10px;line-height:1.6}#workspace input::placeholder,#workspace textarea::placeholder{color:#85948b}#workspace input:focus,#workspace textarea:focus,body:has(#workspace:not([hidden])) dialog input:focus,body:has(#workspace:not([hidden])) dialog textarea:focus{border-color:#65987d;outline:2px solid #65987d20;outline-offset:1px}#workspace input[type=checkbox],body:has(#workspace:not([hidden])) dialog input[type=checkbox]{accent-color:#174b3d}
.workspace-field-error{display:block;color:#aa463e;font-size:12px;line-height:1.6;margin-top:6px}.field-invalid input,.field-invalid textarea,.field-invalid .select2-selection{border-color:#bf6258!important}.workspace-list-tools{display:flex;align-items:center;gap:12px;margin:0 0 20px;flex-wrap:wrap}.workspace-list-tools input{flex:1;min-width:160px!important}.workspace-list-tools select{max-width:220px}.workspace-list-tools>.select2-container{width:220px!important;max-width:100%}.workspace-list-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:center;padding-top:20px;border-top:1px solid #e8eee9;margin-top:16px}.workspace-list-footer .muted{font-size:12px}.workspace-filter-empty{padding:24px;background:#f6f8f5;border-radius:10px}
#workspace .table-wrap{overflow:auto;overscroll-behavior:contain;max-width:100%;border-radius:12px}#workspace table{min-width:540px}#workspace th{font-size:11px;padding:14px 16px;white-space:nowrap;background:#f3f7f3;position:sticky;top:0}#workspace td{font-size:13px;padding:16px;vertical-align:middle;line-height:1.7}#workspace td small{font-size:12px;margin-top:3px;color:#6c7c72}#workspace td .row{gap:8px;flex-wrap:wrap}#workspace .table-card{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 0}#workspace .table-card>div:first-child{min-width:0;flex:1}#workspace .table-card strong{display:block;font-size:14px;line-height:1.55;overflow-wrap:anywhere}#workspace .table-card small{display:block;font-size:12px;line-height:1.75;margin-top:4px}#workspace .table-card>.row{flex-wrap:wrap;justify-content:flex-end;max-width:55%}#workspace .table-card:last-child{border-bottom:0}
#workspace .workspace-hero{padding:24px 28px;margin-bottom:24px}#workspace .workspace-hero h2{font-size:25px}#workspace .workspace-hero p{margin:0;max-width:560px}#workspace .workspace-quick-links a{min-height:40px;display:inline-flex;align-items:center;gap:7px}.service-priorities{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin:24px 0}.priority-card{background:white;border:1px solid #e0e7e2;border-radius:16px;padding:22px;min-width:0}.priority-card .priority-heading{display:flex;gap:10px;align-items:center;margin-bottom:12px;font-weight:500}.priority-card .priority-value{font-size:28px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums}.priority-card p{color:#63756b;font-size:12px;margin:8px 0 14px;line-height:1.8}.attention-list{display:grid;gap:12px}.attention-row{padding:16px;border:1px solid #e7ece7;border-radius:12px;display:flex;justify-content:space-between;align-items:center;gap:16px}.attention-row strong{display:block;font-size:13px}.attention-row small{display:block;font-size:12px;color:#63756b;margin-top:4px}.attention-number{font-size:24px;font-weight:600;color:#865d15;flex-shrink:0}.plan-breakdown{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.plan-breakdown>span{padding:10px 14px;background:#f3f7f3;border-radius:10px;font-size:12px}.kitchen-table-label{font-size:16px;font-weight:600;margin:14px 0 0}#workspace .kitchen-ticket strong{font-size:15px}#workspace .kitchen-ticket li{font-size:15px;line-height:1.9}#workspace .kitchen-clock{font-size:15px;font-weight:500}#workspace .kitchen-ticket .button{min-height:48px;font-size:14px}
@media(max-width:960px){#workspace .admin-main{padding:28px 24px 50px}.service-priorities{grid-template-columns:repeat(2,minmax(0,1fr))}#workspace .admin-topbar{padding-inline:24px}}
@media(max-width:680px){#workspace .admin-title h1{font-size:27px}#workspace .admin-main{padding:24px 16px 40px}#workspace .admin-topbar{height:70px;min-height:70px;padding:12px 16px;gap:10px}#workspace .admin-topbar .button{font-size:11px;padding:8px 10px;min-height:36px}#workspace .panel{padding:18px;border-radius:14px;margin-bottom:20px}#workspace .panel-head{align-items:flex-start;flex-wrap:wrap}#workspace .panel h2{font-size:18px}#workspace .metric{padding:18px}#workspace .metric-value{font-size:27px}#workspace .grid{gap:12px}.service-priorities{grid-template-columns:1fr;gap:12px}.priority-card{padding:20px}#workspace .workspace-hero{padding:22px;flex-direction:column;align-items:flex-start}#workspace .workspace-hero h2{font-size:23px}#workspace .table-card{align-items:flex-start;flex-direction:column;gap:12px}#workspace .table-card>.row{max-width:100%;justify-content:flex-start}#workspace .table-card .button{min-height:40px}.workspace-list-tools{display:grid;grid-template-columns:1fr}.workspace-list-tools input{width:100%;min-width:0!important}.workspace-list-tools>.select2-container{width:100%!important}.workspace-list-tools select{max-width:100%}#workspace .workspace-list-footer{gap:12px}#workspace input:not([type=checkbox]):not([type=radio]),#workspace textarea,body:has(#workspace:not([hidden])) dialog input:not([type=checkbox]):not([type=radio]),body:has(#workspace:not([hidden])) dialog textarea{font-size:16px}#workspace .attention-row{align-items:flex-start;flex-wrap:wrap}#workspace .recent-order-row{flex-wrap:wrap}#workspace .recent-order-row .recent-info{flex-basis:100%}#workspace .select2-hidden-accessible,body:has(#workspace:not([hidden])) dialog .select2-hidden-accessible{min-height:0!important;min-width:0!important}}
@media(prefers-reduced-motion:reduce){#workspace .button,#workspace .sidebar nav a,#workspace .sidebar-group summary:after{transition:none;transform:none!important}}
#workspace .select2-container .select2-selection--single,body:has(#workspace:not([hidden])) dialog .select2-container .select2-selection--single{min-height:46px;height:46px;border-radius:10px;font-size:13px}#workspace .select2-container .select2-selection__rendered,body:has(#workspace:not([hidden])) dialog .select2-container .select2-selection__rendered{line-height:44px;padding-left:13px}#workspace .select2-container .select2-selection__arrow,body:has(#workspace:not([hidden])) dialog .select2-container .select2-selection__arrow{height:44px}.workspace-list-footer .row{flex-wrap:wrap}
#workspace .sidebar-group[open] summary:after{transform:rotate(0deg)}
.modifier-editor-group{border:1px solid #dce5dd;border-radius:12px;padding:18px;margin-top:18px;display:grid;gap:16px}.modifier-editor-options{display:grid;gap:12px}.item-modifiers-editor{padding:18px 0;border-top:1px solid #dce5dd}.service-modifiers fieldset{border:1px solid #dce5dd;padding:14px;border-radius:10px;margin:12px 0}.service-modifiers input{width:18px!important;min-height:18px!important}.modifier-editor-group .extra-editor-row{min-width:0}
.dynamic-extra-row{display:flex;gap:16px;flex-wrap:wrap;align-items:center}.dynamic-extra-row>label{flex:1;min-width:180px}.attached-extra-preview{display:flex;align-items:center;gap:10px}.attached-extra-preview img{width:56px;height:56px;object-fit:cover;border-radius:8px}.attached-extra-preview small{display:block}

.item-extras-editor .dynamic-extra-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:18px;background:#fff;border:1px solid #e2e9e4;border-radius:12px;margin-top:12px}.dynamic-extra-row>label{grid-column:1 / -1;min-width:0;display:grid;gap:8px}.dynamic-extra-row .attached-extra-preview{min-width:0}.attached-extra-preview strong{display:block;font-size:13px;overflow-wrap:anywhere}.attached-extra-preview small{font-size:12px;color:#718078;margin-top:3px}.dynamic-extra-row>.button{align-self:center}.item-extras-editor{border-radius:14px}.select2-results__options{overscroll-behavior:contain;touch-action:pan-y}.select2-dropdown{border-radius:10px;overflow:hidden}

/* Kitchen stages retain their colors even when tickets become overdue. */
#workspace .kitchen-stage[data-stage=pending]{--stage-bg:#fff7df;--stage-accent:#ba891a;--stage-ink:#77570e;--stage-badge:#f7e8b6}
#workspace .kitchen-stage[data-stage=confirmed]{--stage-bg:#edf5ff;--stage-accent:#4d86bd;--stage-ink:#315d87;--stage-badge:#dceafa}
#workspace .kitchen-stage[data-stage=preparing]{--stage-bg:#fff0e7;--stage-accent:#ce7847;--stage-ink:#96512d;--stage-badge:#f9ddcb}
#workspace .kitchen-stage[data-stage=ready]{--stage-bg:#edf7ed;--stage-accent:#579063;--stage-ink:#346240;--stage-badge:#d9ecd9}
#workspace .kitchen-stage[data-stage]{background:var(--stage-bg);border-top:4px solid var(--stage-accent);border-radius:14px;padding:16px;min-width:0}
#workspace .kitchen-stage[data-stage]>h3{color:var(--stage-ink);font-weight:500;padding-bottom:14px;border-bottom:1px solid var(--stage-badge);margin-bottom:16px;gap:10px}
#workspace .kitchen-stage[data-stage]>h3 .pill{background:var(--stage-badge);color:var(--stage-ink)}
#workspace .kitchen-stage[data-stage] .kitchen-ticket{background:#fff;border-top:3px solid var(--stage-accent);box-shadow:0 3px 12px #173e3208}
#workspace .kitchen-stage[data-stage] .kitchen-ticket.overdue{background:#fff;border-top-color:var(--stage-accent)}
#workspace .kitchen-stage .kitchen-ticket.overdue .kitchen-clock{color:#a54432;background:#fff0e9;border-radius:8px;padding:7px 10px;font-size:13px}
#workspace .kitchen-stage[data-stage] .kitchen-ticket>.button{background:var(--stage-accent);border-color:var(--stage-accent);color:#fff}

.team-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.team-summary>div{padding:20px 24px;background:#fff;border:1px solid #e2e9e4;border-radius:14px;border-top:3px solid #6c967c}.team-summary>div:nth-child(2){border-top-color:#69a186}.team-summary>div:nth-child(3){border-top-color:#bfa04a}.team-summary>div:nth-child(4){border-top-color:#7295ba}.team-summary span{display:block;font-size:12px;color:#75857a}.team-summary strong{font-size:28px;display:block;margin-top:8px;font-weight:500}#workspace .team-member{padding:20px 0;gap:24px;align-items:center}.team-identity{display:flex;align-items:center;gap:14px;min-width:0;flex:1}.team-avatar{width:46px;height:46px;flex:none;display:grid;place-items:center;background:#eaf3ed;color:#316548;border-radius:14px;font-size:15px;font-weight:500}.team-member[data-member-role=manager] .team-avatar{background:#fff4da;color:#876827}.team-member[data-member-role=kitchen] .team-avatar{background:#e9f1fc;color:#426d9a}.team-identity>div{min-width:0}.team-identity strong{display:block;font-size:14px}.team-identity small{display:block;overflow-wrap:anywhere;margin-top:4px}.team-badges{display:flex;gap:8px;align-items:center;margin-top:8px;flex-wrap:wrap}.team-role-badge{font-size:11px;color:#64776c;background:#f1f5f1;padding:4px 8px;border-radius:6px}.team-owner-note{font-size:11px;color:#87948a}#workspace .team-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;max-width:470px}#workspace .team-actions>.select2-container{width:140px!important;flex:0 0 140px}#workspace .team-actions .button{min-height:36px;font-size:11px;padding:8px 12px}.team-panel .panel-head p{margin:8px 0 0;font-size:12px}.team-panel .workspace-list-tools{margin-bottom:4px}@media(max-width:1100px){#workspace .team-member{align-items:flex-start;flex-direction:column}#workspace .team-actions{justify-content:flex-start;max-width:100%}}@media(max-width:680px){.team-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.team-summary>div{padding:16px}.team-summary strong{font-size:24px}}
.activity-panel>p{font-size:12px;line-height:1.8;max-width:750px}.activity-panel .activity-entry{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(180px,1fr);gap:20px;padding:20px 18px;margin:10px 0;background:#f7faf6;border:1px solid #e6ede5;border-left:3px solid #7ba68b;border-radius:12px;align-items:start}.activity-entry strong{font-size:13px}.activity-entry small{display:block;margin-top:6px;font-size:11px;line-height:1.7;overflow-wrap:anywhere}.activity-panel .workspace-list-tools{margin:20px 0}.activity-entry>div:last-child>strong{display:inline-block;background:#e9f2eb;color:#4e765c;padding:5px 10px;border-radius:7px;font-size:11px}@media(max-width:680px){.activity-panel .activity-entry{grid-template-columns:1fr;gap:10px;padding:16px}}
#workspace .activity-panel .activity-entry{display:flex!important;background:transparent;border:0;border-bottom:1px solid #edf1ed;border-radius:0;margin:0;padding:20px 0;gap:24px;align-items:center}
#workspace .activity-entry .team-identity{flex:1;min-width:0}
#workspace .activity-entry .team-identity>div{min-width:0}
#workspace .activity-entry .activity-action{flex:0 1 45%;min-width:0;text-align:right}
#workspace .activity-entry .activity-action>strong{display:inline-flex;width:auto;line-height:1.5;padding:5px 9px;border-radius:7px;font-size:11px}
#workspace .activity-entry .activity-action small{line-height:1.7;margin-top:8px;font-size:11px}
#workspace .activity-panel .workspace-list-tools{margin:16px 0 4px}
#workspace .activity-panel>p{color:#819086;font-size:11px;margin-bottom:16px}
@media(max-width:680px){#workspace .activity-panel .activity-entry{flex-direction:column;align-items:flex-start;gap:12px}#workspace .activity-entry .activity-action{flex:auto;text-align:left;margin-left:60px;max-width:calc(100% - 60px)}}
#workspace .order-filter-bar{display:flex;align-items:center;justify-content:flex-start;gap:14px;background:#fff;border:1px solid #e2e9e4;border-radius:14px;padding:18px;margin-bottom:20px}
#workspace .order-filter-bar>input{flex:1;min-width:180px;max-width:none}
#workspace .order-filter-bar>.select2-container{width:190px!important;flex:0 0 190px}
#workspace .order-filter-bar .order-cancelled-toggle{display:inline-flex;align-items:center;justify-content:flex-start;gap:9px;flex:none;font-size:12px;white-space:nowrap;margin:0}
#workspace .order-filter-bar .order-cancelled-toggle input{flex:none;width:16px!important;height:16px;min-height:16px!important;margin:0}
.order-results-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:#597362;margin-bottom:16px}.order-results-caption small{font-size:11px;color:#8a988e}
#workspace .order-board-scroll .board{grid-auto-columns:300px;gap:16px}
#workspace .order-board-scroll .board-column{width:300px;min-width:300px;padding:14px;border-radius:14px}
#workspace .order-board-scroll .board-column>h3{font-size:14px;font-weight:500;display:flex;justify-content:space-between;align-items:center;padding:2px 2px 14px;margin-bottom:0;gap:10px}
#workspace .board-pending{--order-accent:#b88b22;--order-pill:#faeac0}#workspace .board-confirmed{--order-accent:#5789b6;--order-pill:#dcebf9}#workspace .board-preparing{--order-accent:#c6794d;--order-pill:#f9dfce}#workspace .board-ready{--order-accent:#668f55;--order-pill:#dcecd4}#workspace .board-completed{--order-accent:#5d9586;--order-pill:#d9eae4}#workspace .board-cancelled{--order-accent:#b56a65;--order-pill:#f5dedc}
#workspace .board-column>h3 .pill{background:var(--order-pill);color:var(--order-accent)}
#workspace .order-board-scroll .order-card{padding:16px;border-radius:12px;background:#fff;border:1px solid #e1e9e2;box-shadow:0 3px 10px #173e3205;margin-bottom:12px}
#workspace .order-board-scroll .order-card>.row:first-child{gap:8px;flex-wrap:nowrap}
#workspace .order-board-scroll .order-code{text-decoration:none;font-size:13px;font-weight:500}
#workspace .order-board-scroll .order-card ul{font-size:12px;line-height:1.7;margin:12px 0;padding-left:17px;overflow-wrap:anywhere}
#workspace .order-board-scroll .order-card>.row.gap-top{padding-top:12px;border-top:1px solid #eef1eb;margin-top:12px}
#workspace .order-board-scroll .order-card>.row.gap-top>.button:not(.secondary){background:var(--order-accent);border-color:var(--order-accent);color:#fff}
#workspace .order-board-scroll .order-card small{font-size:10px;color:#8a988f;line-height:1.7}
#workspace .order-board-scroll .order-card .button{font-size:10px;min-height:34px;padding:8px 10px}
@media(max-width:680px){#workspace .order-filter-bar{flex-wrap:wrap;padding:14px;gap:12px}#workspace .order-filter-bar>input{flex-basis:100%}#workspace .order-filter-bar>.select2-container{width:160px!important;flex:1 0 150px}.order-results-caption{align-items:flex-start;flex-direction:column}#workspace .order-board-scroll .board{grid-auto-columns:280px}#workspace .order-board-scroll .board-column{width:280px;min-width:280px}}
