/* VillageWheels STAGING v1: ChatGPT-like system typography + unified Operations + optional dark mode. */
:root{--vw-ui-font:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
html,body,button,input,select,textarea{font-family:var(--vw-ui-font)!important;font-kerning:normal}
.vw-theme-toggle{white-space:nowrap;flex-shrink:0}
.vw-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* Staff compact board removes duplicate KPI/hero sections but keeps every ticket action. */
.kitchen-pos .vw-staff-compact{padding-top:24px!important}
.kitchen-pos .vw-staff-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 19px}
.kitchen-pos .vw-staff-heading h1{margin:0;font-size:clamp(22px,2.5vw,30px);color:#153858;letter-spacing:-.5px}
.kitchen-pos .vw-staff-heading p{color:#71859b;font-size:13px;margin:5px 0 0}
.kitchen-pos .kpos-restaurant strong{display:block;overflow-wrap:anywhere}
.kitchen-pos .vw-team-rest-id{display:block;color:#bed4ef;font-size:12px;margin-top:7px;font-weight:600}
.kitchen-pos .kpos-board-section{padding:0!important}
.kitchen-pos .kpos-board>.kpos-lane{min-height:235px}
.kitchen-pos .kpos-blank{min-height:140px;padding:16px}
/* One operational tab; section headings retain original order action buttons and pagination. */
.op-unified-panel{padding:20px 24px 26px!important}
.vw-unified-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:10px}
.vw-unified-heading h2{font-size:23px;margin:0;color:var(--ink)}
.vw-unified-heading p{font-size:13px;color:var(--muted);margin:5px 0}
.vw-unified-counts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.vw-unified-counts span{border:1px solid var(--line);background:#f5f8fc;color:#47617d;border-radius:999px;padding:7px 11px;font-size:12px;white-space:nowrap}
.vw-unified-counts b{margin-left:4px;color:#16365e}
.vw-unified-group{margin-top:20px;background:#fff;border:1px solid #e1e8f3;border-radius:15px;padding:18px;min-width:0}
.vw-unified-group .op-panel-head{margin-bottom:15px}
.vw-unified-group .op-panel-head h2{font-size:18px;margin:0;color:var(--ink)}
.vw-unified-group .op-panel-head p{font-size:12px;margin:4px 0 0}
.vw-unified-group .op-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;align-items:start}
.vw-unified-group .panel.order{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px;box-shadow:none}
.vw-unified-group .empty{grid-column:1/-1;padding:17px 18px;border:1px dashed #dce4ef;border-radius:10px;background:#f9fbfd;font-size:12px}
.vw-unified-group .empty strong{font-size:14px;margin:0}
.vw-unified-group .pager{margin-top:12px}
.vw-section-count{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:1px 7px;margin-left:6px;border-radius:999px;background:#edf3fd;color:#2155a0;font-size:12px;vertical-align:middle}
.vw-unified-group .op-active-tables{padding-top:12px;margin-top:14px}
@media(max-width:750px){.vw-unified-heading{align-items:flex-start}.vw-unified-counts{width:100%}.op-unified-panel{padding:12px!important}.vw-unified-group{padding:13px;margin-top:12px}.vw-unified-group .op-cards{grid-template-columns:1fr}.kitchen-pos .vw-staff-heading{align-items:flex-start}.kitchen-pos .kpos-topbar{flex-wrap:wrap}.kitchen-pos .kpos-actions{gap:5px;flex-wrap:wrap}}


/* v2 — flat, full-width tabs rather than nested card panels. */
body:not(.auth-page) #screen .op-shell,
body:not(.auth-page) #screen .op-panel{background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
body:not(.auth-page) #screen .op-shell{max-width:none!important;width:100%!important}
body:not(.auth-page) #screen .op-tabs{display:flex!important;gap:4px!important;background:transparent!important;border:0!important;border-bottom:1px solid #dedede!important;padding:0!important;margin-bottom:16px!important;border-radius:0!important;overflow-x:auto}
body:not(.auth-page) #screen .op-tabs button{border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:#666!important;min-height:48px!important;padding:12px 16px!important;font-size:14px!important;font-weight:600!important;box-shadow:none!important;filter:none!important}
body:not(.auth-page) #screen .op-tabs button.active{color:#171717!important;border-bottom-color:#171717!important;background:transparent!important}
body:not(.auth-page) #screen .op-tabs button span,
body:not(.auth-page) #screen .vw-order-subtabs span{border-radius:999px!important;padding:2px 7px!important;background:#ededed!important;color:#353535!important;font-size:11px!important}
body:not(.auth-page) #screen .op-panel{padding:4px 0 22px!important;min-height:0!important}
body:not(.auth-page) #screen .vw-unified-heading{margin:4px 0 12px!important;display:flex!important;justify-content:flex-start!important}
body:not(.auth-page) #screen .vw-unified-heading h2{font-size:21px!important;letter-spacing:-.3px!important;color:#202020!important;margin:0!important}
body:not(.auth-page) #screen .vw-order-subtabs{display:flex;gap:6px;align-items:center;overflow-x:auto;scrollbar-width:thin;border-bottom:1px solid #dedede;padding:0 0 10px;margin:0 0 16px}
body:not(.auth-page) #screen .vw-order-subtabs button{border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:#626262!important;font-size:13px!important;font-weight:600!important;white-space:nowrap;padding:10px 15px;display:inline-flex;align-items:center;gap:8px;min-height:40px}
body:not(.auth-page) #screen .vw-order-subtabs button.active{border-color:#e0e0e0!important;background:#ececec!important;color:#202020!important}
body:not(.auth-page) #screen .vw-unified-group{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;box-shadow:none!important;min-width:0}
body:not(.auth-page) #screen .vw-unified-group[hidden]{display:none!important}
body:not(.auth-page) #screen .vw-unified-group .op-panel-head{padding:0!important;margin:0 0 14px!important;border:0!important}
body:not(.auth-page) #screen .vw-unified-group .op-panel-head h2{color:#252525!important;font-size:17px!important;font-weight:650!important}
body:not(.auth-page) #screen .vw-unified-group .op-panel-head p{color:#777!important;font-size:13px!important}
body:not(.auth-page) #screen .vw-unified-group .empty{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-height:125px!important;margin:0!important;padding:26px 12px!important;color:#787878!important}
body:not(.auth-page) #screen .vw-unified-group .empty strong{color:#333!important;font-size:15px!important}
body:not(.auth-page) #screen .vw-unified-group .op-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px}
body:not(.auth-page) #screen .op-team-panel .op-panel-head{margin:6px 0 16px!important}
body:not(.auth-page) #screen .op-team-panel .op-frame-target{background:transparent!important;border:0!important;padding:0!important;overflow:visible!important}
body:not(.auth-page) #screen .op-team-panel #vw-team-frame{border:0!important;background:transparent!important;width:100%!important}
@media(max-width:730px){body:not(.auth-page) #screen .op-tabs button{font-size:12px!important;padding:9px 10px!important}body:not(.auth-page) #screen .vw-order-subtabs button{font-size:12px!important;padding:9px 10px!important}body:not(.auth-page) #screen .op-panel{padding:2px 0 16px!important}body:not(.auth-page) #screen .vw-unified-group .op-cards{grid-template-columns:1fr}}


/* v2 — accessible charcoal/black/white palette, not navy/blue. */
html[data-vw-theme="dark"]{
 color-scheme:dark;--ink:#f5f5f5;--muted:#b1b1b1;--line:#414141;--glass:#262626;
 --blue:#ebebeb;--pos-blue:#ebebeb;--pos-royal:#ebebeb;--pos-text:#f2f2f2;--pos-muted:#b1b1b1;
 --pos-surface:#212121;--pos-line:#414141;--pos-border:#414141;--pos-navy:#f5f5f5;
}
html[data-vw-theme="dark"],html[data-vw-theme="dark"] body{background:#212121!important;background-image:none!important;color:#f2f2f2!important}
html[data-vw-theme="dark"] body:not(.auth-page):not(.login) main,
html[data-vw-theme="dark"] body:not(.auth-page):not(.login) article,
html[data-vw-theme="dark"] body .kpos-content,
html[data-vw-theme="dark"] body .kpos-main{background:#212121!important;background-image:none!important;color:#f2f2f2!important}
html[data-vw-theme="dark"] body:not(.auth-page):not(.login) aside,
html[data-vw-theme="dark"] body .kpos-sidebar{background:#171717!important;background-image:none!important;border-color:#343434!important;color:#eaeaea!important;box-shadow:none!important}
html[data-vw-theme="dark"] body:not(.auth-page):not(.login) header,
html[data-vw-theme="dark"] body .kpos-topbar{background:#212121!important;background-image:none!important;border-color:#414141!important;color:#eaeaea!important;box-shadow:none!important}
html[data-vw-theme="dark"] body:not(.auth-page):not(.login) main>header>span,
html[data-vw-theme="dark"] body .kpos-breadcrumb{color:#c1c1c1!important}
html[data-vw-theme="dark"] body:not(.auth-page):not(.login) main>header>span b,
html[data-vw-theme="dark"] body .kpos-breadcrumb strong{color:#fafafa!important}
html[data-vw-theme="dark"] body aside nav button,
html[data-vw-theme="dark"] body .kpos-nav-item{color:#d0d0d0!important;background:transparent!important;border-color:transparent!important}
html[data-vw-theme="dark"] body aside nav button.active,
html[data-vw-theme="dark"] body .kpos-nav-item[aria-current="page"]{background:#303030!important;border-color:#303030!important;color:#fff!important;box-shadow:none!important}
html[data-vw-theme="dark"] body .store,
html[data-vw-theme="dark"] body .kpos-restaurant{background:#262626!important;color:#f3f3f3!important;border:1px solid #454545!important;box-shadow:none!important}
html[data-vw-theme="dark"] body .store small,
html[data-vw-theme="dark"] body .kpos-restaurant small{color:#bcbcbc!important}
html[data-vw-theme="dark"] body:not(.auth-page) #screen .op-shell,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .op-panel,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .vw-unified-group,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .op-team-panel .op-frame-target{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important}
html[data-vw-theme="dark"] body:not(.auth-page) #screen .op-tabs,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .vw-order-subtabs{background:transparent!important;border-bottom-color:#454545!important}
html[data-vw-theme="dark"] body:not(.auth-page) #screen .op-tabs button,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .vw-order-subtabs button{background:transparent!important;color:#bdbdbd!important;border-color:transparent!important}
html[data-vw-theme="dark"] body:not(.auth-page) #screen .op-tabs button.active{background:transparent!important;color:#fff!important;border-bottom:2px solid #fff!important}
html[data-vw-theme="dark"] body:not(.auth-page) #screen .vw-order-subtabs button.active{background:#353535!important;color:#fff!important;border:1px solid #535353!important}
html[data-vw-theme="dark"] body:not(.auth-page) #screen .op-tabs button span,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .vw-order-subtabs span,
html[data-vw-theme="dark"] body .vw-section-count{background:#424242!important;color:#f4f4f4!important;border-color:#555!important}
html[data-vw-theme="dark"] body:not(.auth-page) #screen .vw-unified-heading h2,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .vw-unified-group .op-panel-head h2,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .op-panel-head h2,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .vw-unified-group .empty strong{color:#f4f4f4!important}
html[data-vw-theme="dark"] body:not(.auth-page) #screen .op-panel-head p,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .vw-unified-group .op-panel-head p,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .vw-unified-group .empty{color:#b5b5b5!important}
html[data-vw-theme="dark"] body:not(.auth-page) #screen .panel,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .stat,
html[data-vw-theme="dark"] body .kpos-ticket,
html[data-vw-theme="dark"] body .kpos-board>.kpos-lane,
html[data-vw-theme="dark"] body .kpos-blank,
html[data-vw-theme="dark"] body .op-reserved-table,
html[data-vw-theme="dark"] body .op-active-tables,
html[data-vw-theme="dark"] body .pro-invoice-filter,
html[data-vw-theme="dark"] body .pro-invoice-data,
html[data-vw-theme="dark"] body .pro-admin-screen,
html[data-vw-theme="dark"] body .pos-settings-content,
html[data-vw-theme="dark"] body .op-admin-panel,
html[data-vw-theme="dark"] body .op-admin-page,
html[data-vw-theme="dark"] body .op-admin-login,
html[data-vw-theme="dark"] body .pro-invoice-toolbar,
html[data-vw-theme="dark"] body .pro-invoice-footer,
html[data-vw-theme="dark"] body .pro-invoice-table,
html[data-vw-theme="dark"] body .pro-table-scroll,
html[data-vw-theme="dark"] body .toolbar,
html[data-vw-theme="dark"] body .menu-card,
html[data-vw-theme="dark"] body .dish-body,
html[data-vw-theme="dark"] body .panel-head{background:#292929!important;background-image:none!important;color:#f1f1f1!important;border-color:#424242!important;box-shadow:none!important}
html[data-vw-theme="dark"] body .kpos-lane-title,
html[data-vw-theme="dark"] body .kpos-ticket-head,
html[data-vw-theme="dark"] body .kpos-ticket-summary{border-color:#454545!important;color:#efefef!important}
html[data-vw-theme="dark"] body .kpos-lane-title h2,
html[data-vw-theme="dark"] body .kpos-ticket-head strong,
html[data-vw-theme="dark"] body .kpos-blank strong,
html[data-vw-theme="dark"] body .vw-staff-heading h1{color:#f3f3f3!important}
html[data-vw-theme="dark"] body .kpos-ticket-meta,
html[data-vw-theme="dark"] body .kpos-blank p,
html[data-vw-theme="dark"] body .vw-staff-heading p{color:#bcbcbc!important}
html[data-vw-theme="dark"] body:not(.auth-page) #screen .menu-card .dish-body,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .menu-card .dish-body h3,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .menu-card .dish-price strong,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .menu-card .dish-price del{background:#292929!important;color:#f4f4f4!important}
html[data-vw-theme="dark"] body:not(.auth-page) #screen .menu-card .dish-body p{color:#bcbcbc!important}
html[data-vw-theme="dark"] body .panel h2,
html[data-vw-theme="dark"] body .panel h3,
html[data-vw-theme="dark"] body .stat strong,
html[data-vw-theme="dark"] body .order h3,
html[data-vw-theme="dark"] body .order-total strong,
html[data-vw-theme="dark"] body .pro-invoice-toolbar strong,
html[data-vw-theme="dark"] body .pro-admin-screen h3,
html[data-vw-theme="dark"] body .pro-admin-screen h2,
html[data-vw-theme="dark"] body .op-admin-login h3,
html[data-vw-theme="dark"] body .pro-invoice-filter label,
html[data-vw-theme="dark"] body .pro-admin-screen label,
html[data-vw-theme="dark"] body h1,
html[data-vw-theme="dark"] body h2,
html[data-vw-theme="dark"] body h3{color:#f5f5f5!important}
html[data-vw-theme="dark"] body p,
html[data-vw-theme="dark"] body small,
html[data-vw-theme="dark"] body .stat small,
html[data-vw-theme="dark"] body .op-admin-login p,
html[data-vw-theme="dark"] body .pro-invoice-count,
html[data-vw-theme="dark"] body .pro-invoice-toolbar .pro-toolbar-title{color:#bcbcbc!important}
html[data-vw-theme="dark"] body input,
html[data-vw-theme="dark"] body select,
html[data-vw-theme="dark"] body textarea{background:#303030!important;color:#f5f5f5!important;border:1px solid #5b5b5b!important;box-shadow:none!important}
html[data-vw-theme="dark"] body input::placeholder,
html[data-vw-theme="dark"] body textarea::placeholder{color:#b3b3b3!important}
html[data-vw-theme="dark"] body label{color:#e8e8e8!important}
html[data-vw-theme="dark"] body button.outline,
html[data-vw-theme="dark"] body button.secondary,
html[data-vw-theme="dark"] body .kpos-soft-action,
html[data-vw-theme="dark"] body .kpos-dialog-close,
html[data-vw-theme="dark"] body .vw-kitchen-login-link,
html[data-vw-theme="dark"] body #vw-theme-toggle{background:#303030!important;color:#f2f2f2!important;border:1px solid #575757!important;box-shadow:none!important}
html[data-vw-theme="dark"] body button.primary,
html[data-vw-theme="dark"] body button.kpos-refresh,
html[data-vw-theme="dark"] body .primary{background:#ececec!important;background-image:none!important;color:#181818!important;border:1px solid #ececec!important;box-shadow:none!important}
html[data-vw-theme="dark"] body button.danger{background:#3a2828!important;color:#ffd7d7!important;border:1px solid #644040!important}
html[data-vw-theme="dark"] body .order-actions button:not(.primary):not(.danger){background:#373737!important;color:#f0f0f0!important}
html[data-vw-theme="dark"] body .tile{background:#303030!important;color:#f5f5f5!important;border:1px solid #555!important}
html[data-vw-theme="dark"] body .tile.occupied{background:#37332d!important;border:1px solid #666053!important}
html[data-vw-theme="dark"] body .tile b,
html[data-vw-theme="dark"] body .tile.occupied b{color:#f4f4f4!important}
html[data-vw-theme="dark"] body .table-icon{background:#212121!important;color:#f4f4f4!important;border-color:#888!important}
html[data-vw-theme="dark"] body .empty,
html[data-vw-theme="dark"] body .pro-table-empty,
html[data-vw-theme="dark"] body .op-cards>.empty{background:transparent!important;border:1px dashed #515151!important;color:#b8b8b8!important}
html[data-vw-theme="dark"] body:not(.auth-page) #screen .vw-unified-group .empty{background:transparent!important;border:0!important;color:#b8b8b8!important}
html[data-vw-theme="dark"] body .empty strong{color:#f3f3f3!important}
html[data-vw-theme="dark"] body .pro-invoice-table thead,
html[data-vw-theme="dark"] body .pro-invoice-table th{background:#353535!important;color:#efefef!important;border-color:#555!important}
html[data-vw-theme="dark"] body .pro-invoice-table tbody tr td,
html[data-vw-theme="dark"] body .pro-invoice-table td{background:#292929!important;color:#f1f1f1!important;border-color:#484848!important}
html[data-vw-theme="dark"] body .pro-invoice-table tbody tr:nth-child(even) td{background:#323232!important;color:#f1f1f1!important}
html[data-vw-theme="dark"] body .pro-invoice-table tbody tr:hover td{background:#3b3b3b!important}
html[data-vw-theme="dark"] body .pro-invoice-link,
html[data-vw-theme="dark"] body .op-link-text,
html[data-vw-theme="dark"] body a{color:#e5e5e5!important;text-decoration:underline;text-underline-offset:2px}
html[data-vw-theme="dark"] body .pro-invoice-footer{background:#292929!important}
html[data-vw-theme="dark"] body .badge,
html[data-vw-theme="dark"] body .vw-section-count,
html[data-vw-theme="dark"] body .kpos-count,
html[data-vw-theme="dark"] body .kpos-active-count{background:#414141!important;color:#ededed!important;border-color:#565656!important}
html[data-vw-theme="dark"] body dialog,
html[data-vw-theme="dark"] body .dialog-head,
html[data-vw-theme="dark"] body .kpos-dialog,
html[data-vw-theme="dark"] body .kpos-dialog-top,
html[data-vw-theme="dark"] body .kpos-dialog-bottom,
html[data-vw-theme="dark"] body .vw-modal-actions,
html[data-vw-theme="dark"] body .vw-order-menu,
html[data-vw-theme="dark"] body .vw-order-menu-tools,
html[data-vw-theme="dark"] body .vw-menu-load,
html[data-vw-theme="dark"] body .vw-order-menu-list,
html[data-vw-theme="dark"] body .table-dish,
html[data-vw-theme="dark"] body .selection{background:#292929!important;color:#f2f2f2!important;border-color:#4a4a4a!important}
html[data-vw-theme="dark"] body .kpos-ticket-status{background:#393939!important;color:#f1f1f1!important}
html[data-vw-theme="dark"] body .pro-admin-screen #vw-admin-frame{background:#292929!important;border:0!important}
html[data-vw-theme="dark"] body .pro-admin-screen #vw-admin-body{background:#292929!important;color:#f2f2f2!important}
html[data-vw-theme="dark"] body .op-admin-login,
html[data-vw-theme="dark"] body .pro-admin-screen .op-admin-login{background:#303030!important;border:1px solid #505050!important;box-shadow:none!important}
html[data-vw-theme="dark"] body.auth-page,
html[data-vw-theme="dark"] body.kitchen-login{background:#212121!important;background-image:none!important;color:#f1f1f1!important}
html[data-vw-theme="dark"] body .auth-card,
html[data-vw-theme="dark"] body .pro-login-right,
html[data-vw-theme="dark"] body .pro-login-form,
html[data-vw-theme="dark"] body .klogin-form-side,
html[data-vw-theme="dark"] body .klogin-form-panel{background:#292929!important;color:#f4f4f4!important;border-color:#444!important}
html[data-vw-theme="dark"] body .klogin-form-panel h1,
html[data-vw-theme="dark"] body .pro-login-right h1{color:#f5f5f5!important}
html[data-vw-theme="dark"] body .vw-login-theme-toggle{background:#353535!important;color:#f1f1f1!important;border:1px solid #555!important}
html[data-vw-theme="dark"] body .kpos-board-section{background:transparent!important;border:0!important;box-shadow:none!important}
html[data-vw-theme="dark"] body .kpos-lane{background:#292929!important;border:1px solid #454545!important}
@media(prefers-reduced-motion:reduce){.vw-theme-toggle{transition:none!important}}


/* v3 — resolve the last legacy light-on-dark conflicts in Operations and table-order dialogs. */
html[data-vw-theme="dark"] body:not(.auth-page) #screen .op-team-panel .op-panel-head h2,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .op-panel-head h2,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .op-panel-head strong {color:#f3f3f3!important}
html[data-vw-theme="dark"] body:not(.auth-page) #screen .op-team-panel .op-panel-head p{color:#bcbcbc!important}
html[data-vw-theme="dark"] body:not(.auth-page) #screen .op-team-panel .op-frame-target,
html[data-vw-theme="dark"] body:not(.auth-page) #screen .op-frame-target,
html[data-vw-theme="dark"] body:not(.auth-page) #screen #vw-team-frame{background:#212121!important;color:#f3f3f3!important;border-color:#414141!important}
html[data-vw-theme="dark"] body:not(.auth-page) #screen .vw-kitchen-login-link {background:#303030!important;color:#f3f3f3!important;border-color:#595959!important}
html[data-vw-theme="dark"] body #dialog,
html[data-vw-theme="dark"] body dialog#dialog,
html[data-vw-theme="dark"] body dialog#dialog #dialog-body,
html[data-vw-theme="dark"] body dialog#dialog .dialog-head,
html[data-vw-theme="dark"] body dialog#dialog .vw-order-menu,
html[data-vw-theme="dark"] body dialog#dialog .vw-order-menu-list,
html[data-vw-theme="dark"] body dialog#dialog .vw-order-menu-tools,
html[data-vw-theme="dark"] body dialog#dialog .vw-modal-actions{background:#292929!important;background-image:none!important;color:#f4f4f4!important;border-color:#484848!important}
html[data-vw-theme="dark"] body dialog#dialog label,
html[data-vw-theme="dark"] body dialog#dialog h2,
html[data-vw-theme="dark"] body dialog#dialog .vw-order-menu label {color:#f0f0f0!important}
html[data-vw-theme="dark"] body dialog#dialog .table-dish,
html[data-vw-theme="dark"] body dialog#dialog .selection {background:#2d2d2d!important;color:#f0f0f0!important;border-color:#515151!important}
html[data-vw-theme="dark"] body dialog#dialog .vw-order-menu-tools span,
html[data-vw-theme="dark"] body dialog#dialog .vw-modal-actions p{color:#bdbdbd!important}
/* Admin PIN: error messages and support link are never low-contrast. */
#vw-pin-error{font-size:13px;font-weight:650;line-height:1.55;padding:10px 12px;border-radius:10px;margin:10px 0!important;color:#a52436!important;background:#fff0f2;border:1px solid #f0bbc5}
#vw-pin-error[hidden]{display:none!important}
.vw-admin-help{font-size:13px!important;line-height:1.55;margin:14px 0 0!important;color:var(--muted)!important}
.vw-admin-help a{text-decoration:underline;text-underline-offset:3px}
html[data-vw-theme="dark"] body #vw-pin-error{color:#ffd9df!important;background:#43262c!important;border:1px solid #94515b!important}
html[data-vw-theme="dark"] body .vw-admin-help{color:#cecece!important}
html[data-vw-theme="dark"] body .vw-admin-help a{color:#fff!important}
/* Kitchen sign-in: don't inherit the generic grid login body's extra margins/height. */
html:has(body.kitchen-login){margin:0!important;padding:0!important;overflow-x:hidden}
body.kitchen-login{display:block!important;margin:0!important;padding:0!important;width:100%!important;min-height:0!important;overflow-x:hidden!important}
body.kitchen-login .klogin-shell{margin:0!important;padding:0!important;max-width:none!important;width:100%!important;height:100dvh!important;min-height:0!important;overflow:hidden!important;align-items:stretch!important}
body.kitchen-login .klogin-shell > section{margin:0!important}
body.kitchen-login .klogin-brand,
body.kitchen-login .klogin-form-side{min-height:0!important;height:100%!important;box-sizing:border-box}
body.kitchen-login .klogin-form-side{padding:16px clamp(18px,3vw,40px)!important;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
body.kitchen-login .klogin-form-panel{width:min(100%,490px)!important;margin:0 auto!important;padding:10px 7px!important;box-shadow:none!important}
body.kitchen-login .klogin-form-panel h1{margin:8px 0 6px!important;font-size:clamp(28px,2.5vw,38px)!important}
body.kitchen-login .klogin-intro{margin:0 0 15px!important}
body.kitchen-login .klogin-form label{margin:10px 0!important}
body.kitchen-login .klogin-form input{min-height:46px!important;margin-top:6px!important;padding:10px 13px!important}
body.kitchen-login .klogin-form .klogin-submit{display:flex!important;justify-content:center!important;align-items:center!important;gap:0!important;text-align:center!important;margin-top:15px!important;padding:11px 18px!important;min-height:47px!important}
body.kitchen-login .klogin-help{margin-top:14px!important;padding:12px 0 0!important}
body.kitchen-login .klogin-help p{margin-top:3px!important}
body.kitchen-login #vw-theme-toggle{z-index:35!important;top:12px!important;right:12px!important}
/* Keep vertical scroll available when a small/mobile screen cannot fit the form. */
@media(max-width:850px){
 body.kitchen-login{overflow-y:auto!important}
 body.kitchen-login .klogin-shell{height:auto!important;min-height:100dvh!important;grid-template-columns:1fr!important;overflow:visible!important}
 body.kitchen-login .klogin-brand{height:auto!important;min-height:0!important;padding:18px 24px!important}
 body.kitchen-login .klogin-form-side{height:auto!important;min-height:0!important;overflow:visible!important;padding:22px 18px!important}
}
@media(min-width:851px) and (max-height:690px){body.kitchen-login .klogin-brand{padding:22px!important}body.kitchen-login .klogin-brand-copy h2{font-size:35px!important}body.kitchen-login .klogin-brand-copy p{font-size:13px!important;margin-bottom:12px!important}}
/* Dark kitchen workspace logout should be neutral and match sidebar. */
html[data-vw-theme="dark"] body.kitchen-pos .kpos-logout{background:#303030!important;color:#f6f6f6!important;border:1px solid #555!important;box-shadow:none!important}
/* Login brand and CTAs follow the charcoal theme; VillageWheels logo retains its original colors. */
html[data-vw-theme="dark"] body.kitchen-login .klogin-brand,
html[data-vw-theme="dark"] body.auth-page .pro-login-brand{background:#171717!important;background-image:none!important;color:#f4f4f4!important;border-color:#383838!important}
html[data-vw-theme="dark"] body.kitchen-login .klogin-brand:after{display:none!important}
html[data-vw-theme="dark"] body.kitchen-login .klogin-brand-label,
html[data-vw-theme="dark"] body.kitchen-login .klogin-brand-copy p,
html[data-vw-theme="dark"] body.kitchen-login .klogin-brand-foot,
html[data-vw-theme="dark"] body.auth-page .pro-login-hero p,
html[data-vw-theme="dark"] body.auth-page .pro-login-foot{color:#c4c4c4!important}
html[data-vw-theme="dark"] body.kitchen-login .klogin-steps span,
html[data-vw-theme="dark"] body.auth-page .pro-hero-points span{background:#292929!important;border:1px solid #515151!important;color:#eee!important}
html[data-vw-theme="dark"] body.kitchen-login .klogin-submit,
html[data-vw-theme="dark"] body.auth-page .pro-email-signin{background:#ececec!important;color:#171717!important;border:1px solid #ececec!important;box-shadow:none!important}
html[data-vw-theme="dark"] body.kitchen-login .klogin-help strong{color:#f3f3f3!important}
html[data-vw-theme="dark"] body.kitchen-login .klogin-visibility{color:#eeeeee!important}


