/* NAROX: shared brand tokens; status colours retain their meaning. */
:root{
 --nx-bg:#f7faf8;--nx-surface:#fff;--nx-sidebar:#0c211d;--nx-sidebar-active:#1b4034;
 --nx-text:#10231f;--nx-muted:#5f7169;--nx-primary:#176b4c;--nx-primary-hover:#11563d;
 --nx-mint:#8ce5b7;--nx-border:#d9e5de;--nx-success-bg:#e6f7ec;--nx-danger:#bd4141;
 --nx-radius:12px;--nx-radius-lg:16px;--nx-shadow:0 3px 16px rgba(12,33,29,.06);
 --accent:var(--nx-primary);
}
:root{font-family:"Segoe UI",Arial,sans-serif;color:var(--nx-text);background:var(--nx-bg);font-synthesis:none;-webkit-font-smoothing:antialiased;color-scheme:light}
.workspace{max-width:1120px;margin:0 auto;padding:0 24px 60px;min-height:calc(100vh - 140px)}.workspace-nav{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-bottom:1px solid var(--nx-border)}.workspace-nav a{color:var(--nx-primary);font-size:14px;font-weight:600}.workspace-nav button{background:none;color:var(--nx-muted);padding:10px}.connections{max-width:560px;margin:48px auto 0}.connections h1{font-size:40px;letter-spacing:-1.4px}.connection-card{padding:30px;background:white;border:1px solid var(--nx-border);border-radius:24px}.connection-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.connection-heading span{font-size:11px;color:var(--nx-muted)}.field-hint{font-size:11px;line-height:1.5;color:var(--nx-muted);margin:-3px 0 18px}.connection-note{font-size:12px;line-height:1.6;color:var(--nx-muted);margin:22px 0 0}.submit-button:disabled{opacity:.6;cursor:wait}@media(max-width:640px){.connection-card{padding:23px}.connections{margin-top:32px}.connections h1{font-size:34px}.connection-heading{flex-wrap:wrap}}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button{border:0}button:focus-visible,a:focus-visible{outline:3px solid var(--nx-primary);outline-offset:5px}[hidden]{display:none!important}
@keyframes narox-credential-autofill{from{opacity:1}to{opacity:1}}#login-form input:-webkit-autofill{animation-name:narox-credential-autofill;animation-duration:.01s}
.header{height:76px;max-width:1120px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--nx-border);padding:0 8px}.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:650;letter-spacing:-1px}.brand svg{width:29px;height:29px}.brand-description{font-size:12px;letter-spacing:0;font-weight:400;color:var(--nx-muted);margin-left:13px;padding-left:22px;border-left:1px solid var(--nx-border)}.help-link{background:none;font-size:12px;color:var(--nx-muted);padding:12px 0 12px 12px}.help-link span{margin-left:9px}
.welcome{text-align:center;padding:53px 20px 0}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2.5px;color:var(--nx-muted);margin:0 0 16px}h1{font-size:clamp(36px,4.2vw,56px);line-height:1.1;letter-spacing:-2.2px;font-weight:650;margin:0}h1 span{color:var(--nx-muted)}.intro{color:var(--nx-muted);font-size:16px;line-height:1.6;margin:20px 0 31px}.mobile-break{display:none}
.login-card{width:430px;max-width:100%;margin:auto;background:#fff;border:1px solid var(--nx-border);border-radius:26px;padding:30px 39px 0;box-shadow:0 10px 35px #00000004,0 2px 5px #00000002}.app-icon{width:58px;height:58px;border-radius:17px;background:linear-gradient(150deg,#8ce5b7,var(--nx-primary));box-shadow:0 5px 12px #176b4c24,inset 0 1px 1px #ffffff70;color:white;margin:0 auto 20px;display:grid;place-items:center}.app-icon svg{width:37px;height:37px}h2{font-size:25px;letter-spacing:-.8px;font-weight:600;margin:0}.card-description{font-size:13px;color:var(--nx-muted);margin:9px 0 25px}.field{position:relative;margin-bottom:12px;text-align:left}.field input{width:100%;height:57px;border:1px solid #b5c8bd;border-radius:11px;background:#fff;padding:23px 15px 7px;color:var(--nx-text);outline:none;transition:border-color .15s,box-shadow .15s}.field label{position:absolute;left:16px;top:18px;color:var(--nx-muted);font-size:15px;pointer-events:none;transition:all .15s}.field input:focus{border-color:var(--nx-primary);box-shadow:0 0 0 3px #176b4c25}.field input:focus+label,.field input:not(:placeholder-shown)+label{top:7px;font-size:10px}.password-field input{padding-right:51px}.password-toggle{position:absolute;right:6px;top:6px;width:44px;height:44px;background:transparent;color:var(--nx-muted);border-radius:8px;display:grid;place-items:center}.password-toggle svg{width:20px;height:20px}.eye-slash{display:none}.password-toggle[aria-pressed=true] .eye-slash{display:block}.submit-button{width:100%;height:49px;background:var(--nx-primary);color:white;border-radius:11px;font-size:15px;font-weight:500;margin-top:6px;transition:background .15s,transform .15s}.submit-button span{margin-left:8px;font-size:19px}.submit-button:hover{background:var(--nx-primary-hover)}.submit-button:active{transform:scale(.99)}.forgot-password{font-size:12px;color:var(--nx-primary);background:none;margin:20px 0 24px;padding:4px}.forgot-password span{margin-left:4px;font-size:16px}.card-footer{border-top:1px solid #eeeef0;display:flex;align-items:center;justify-content:center;gap:6px;color:var(--nx-muted);font-size:10px;padding:17px 0}.card-footer svg{width:13px;height:13px}.form-message{font-size:12px;color:var(--nx-muted);line-height:1.5;text-align:left;padding:12px;background:var(--nx-bg);border-radius:8px;margin:12px 0 0}
.features{max-width:910px;margin:49px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:30px;padding:0 20px}.features article+article{border-left:1px solid var(--nx-border);padding-left:32px}.feature-heading{display:flex;align-items:center;gap:10px}.feature-heading svg{width:21px;height:21px;stroke:var(--nx-muted);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h3{font-size:13px;font-weight:600;letter-spacing:-.15px;margin:0}.features p{font-size:12px;line-height:1.7;color:var(--nx-muted);margin:10px 0 0}.roadmap-note{text-align:center;color:var(--nx-muted);font-size:10px;margin:24px 20px 32px}.footer{max-width:1120px;margin:0 auto;padding:19px 8px 23px;border-top:1px solid var(--nx-border);display:flex;justify-content:space-between;color:var(--nx-muted);font-size:10px}
dialog{border:1px solid var(--nx-border);border-radius:24px;padding:38px;max-width:420px;width:calc(100% - 32px);color:var(--nx-text);box-shadow:0 25px 100px #0002}dialog::backdrop{background:#16162055;backdrop-filter:blur(5px)}dialog h2{font-size:23px}dialog p{font-size:14px;line-height:1.6;color:var(--nx-muted)}.close-dialog{position:absolute;right:12px;top:12px;background:var(--nx-bg);border-radius:50%;width:32px;height:32px;font-size:23px;color:var(--nx-muted)}.help-symbol{font-size:28px;color:var(--nx-primary);margin-bottom:20px}.help-note{background:var(--nx-bg);padding:12px;border-radius:10px}
@media(min-width:1500px){.welcome{padding-top:72px}.features{margin-top:62px}.footer{margin-top:38px}}@media(max-width:1180px){.header,.footer{margin-left:32px;margin-right:32px}}@media(max-width:640px){.header{height:65px;margin:0 22px;padding:0}.brand-description{display:none}.brand{font-size:22px}.welcome{padding:38px 20px 0}h1{font-size:36px;letter-spacing:-1.6px}.eyebrow{font-size:9px;letter-spacing:2px}.intro{font-size:14px;margin:17px 0 25px}.mobile-break{display:block}.login-card{padding:27px 25px 0;border-radius:23px}.features{grid-template-columns:1fr;gap:21px;max-width:370px;margin-top:35px;padding:0 25px}.features article+article{border-left:0;border-top:1px solid var(--nx-border);padding:21px 0 0}.features p{margin-left:31px}.features p br{display:none}.roadmap-note{max-width:280px;margin:24px auto}.footer{margin:0 22px;gap:15px;flex-wrap:wrap;font-size:9px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.nav-links{display:flex;gap:28px;align-items:center}.workspace-nav a:not([aria-current]){color:var(--nx-muted);font-weight:400}.sales-plans{margin:48px auto 0}.sales-plans h1{font-size:40px;letter-spacing:-1.4px}.plans-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:end;margin:28px 0 20px}.period-fields{display:flex;gap:12px}.period-fields label{display:grid;gap:7px;font-size:12px;color:var(--nx-muted)}.period-fields select{font:inherit;font-size:14px;color:var(--nx-text);background:white;border:1px solid var(--nx-border);border-radius:10px;padding:12px;min-width:115px}.secondary-button{background:white;border:1px solid var(--nx-border);border-radius:10px;color:var(--nx-primary);padding:12px 18px;font-size:13px}.plans-summary{display:flex;justify-content:space-between;gap:16px;margin:25px 0 15px;font-size:13px;color:var(--nx-muted)}.plans-summary strong{font-size:19px;color:var(--nx-text);margin-left:8px}.table-scroll{overflow-x:auto;border:1px solid #e0e0e5;border-radius:18px;background:white}.plans-table{border-collapse:collapse;width:100%;min-width:900px;font-size:13px}.plans-table caption{text-align:left;padding:20px;font-size:16px;font-weight:600;border-bottom:1px solid #eee}.plans-table th,.plans-table td{padding:15px 10px;border-bottom:1px solid #eee;text-align:right}.plans-table thead th{background:var(--nx-bg);color:var(--nx-muted);font-size:12px;font-weight:500}.plans-table th:first-child{padding-left:20px;text-align:left;min-width:210px;width:25%}.plans-table tbody th{font-weight:500}.plans-table th small{display:block;font-size:10px;color:var(--nx-muted);margin-top:5px;font-weight:400}.plans-table td:last-child,.plans-table th:last-child{padding-right:20px;min-width:135px}.plans-table input{width:100%;min-width:105px;border:1px solid var(--nx-border);padding:11px 8px;border-radius:8px;font-size:13px;text-align:right;font-variant-numeric:tabular-nums;color:var(--nx-text)}.plans-table input:focus{outline:2px solid var(--nx-primary);outline-offset:1px}.plans-table input:invalid{border-color:#c23934}.plans-table input::placeholder{color:#a0a0a5;font-size:11px}.row-total,.plans-table tfoot{font-variant-numeric:tabular-nums;font-weight:600}.plans-table tfoot{background:var(--nx-bg)}.plans-table tfoot td,.plans-table tfoot th{border:0}.plans-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px}.plans-actions p{font-size:12px;color:var(--nx-muted);line-height:1.5}.plans-actions .submit-button{width:auto;min-width:180px;padding:0 20px;margin:0}.plans-empty{background:#fff;padding:40px 25px;border:1px solid var(--nx-border);border-radius:18px;color:var(--nx-muted);font-size:14px;line-height:1.7;margin-top:24px}button:disabled,select:disabled{cursor:wait;opacity:.6}@media(max-width:640px){.nav-links{gap:17px}.workspace-nav a{font-size:12px}.sales-plans{margin-top:32px}.sales-plans h1{font-size:34px}.plans-toolbar{align-items:stretch;flex-direction:column}.plans-summary{flex-direction:column}.plans-actions{align-items:stretch;flex-direction:column}.plans-actions .submit-button{width:100%}.period-fields select{min-width:120px}}
.activity-button{display:block;margin-top:9px;padding:5px 0;background:transparent;color:var(--nx-primary);font-size:12px;text-align:left}.activity-button:hover{text-decoration:underline}.hidden-departments{margin-top:28px;padding:22px;border:1px solid var(--nx-border);border-radius:18px;background:#fff}.hidden-departments summary{cursor:pointer;font-size:14px;font-weight:600}.hidden-departments summary span{color:var(--nx-muted);font-weight:400}.hidden-department-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:15px 0;border-bottom:1px solid #eee;font-size:13px}.hidden-department-row:last-child{border:0;padding-bottom:0}.hidden-department-row .activity-button{margin:0;flex-shrink:0}
.history-card{margin-top:24px}.history-metrics{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.history-metrics dt{font-size:11px;color:var(--nx-muted);margin-bottom:6px}.history-metrics dd{margin:0;font-size:15px;font-weight:500;overflow-wrap:anywhere}.history-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.history-card .form-message{line-height:1.7}@media(max-width:640px){.history-metrics{grid-template-columns:1fr}.history-buttons button{width:100%}}
.header-actions{display:flex;align-items:center;gap:16px}#language{font:inherit;font-size:12px;border:1px solid var(--nx-border);border-radius:8px;background:transparent;padding:8px;color:var(--nx-muted)}.uploads{max-width:900px;margin:48px auto}.uploads h1{font-size:40px;letter-spacing:-1.4px}.uploads h2{font-size:22px}.uploads .card-description{line-height:1.7}.upload-controls{display:flex;flex-wrap:wrap;align-items:center;gap:15px;margin:24px 0 15px}.file-label{width:100%;font-size:13px;font-weight:500}#mapping-file{max-width:100%;font-size:13px}#mapping-file::file-selector-button{border:1px solid var(--nx-border);border-radius:10px;padding:12px;background:var(--nx-bg);color:var(--nx-text);margin-right:12px;cursor:pointer}.mapping-example{padding:15px;background:var(--nx-bg);border-radius:12px;font-size:14px;color:var(--nx-muted)}.sheet-label{display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:13px;margin:20px 0}.sheet-label select{font:inherit;padding:9px;border:1px solid var(--nx-border);border-radius:8px;max-width:100%}.mapping-table{width:100%;border-collapse:collapse;font-size:13px;min-width:360px}.mapping-table th,.mapping-table td{padding:14px 18px;text-align:left;border-bottom:1px solid #eee}.mapping-table th{font-weight:500;background:var(--nx-bg);color:var(--nx-muted)}.mapping-errors{font-size:12px;line-height:1.8;color:#9d302a;padding-left:20px}.replace-label{display:flex;gap:10px;align-items:flex-start;margin:20px 0;font-size:13px;line-height:1.6}.saved-mappings{margin-top:24px}#mapping-preview{margin-top:25px}#mapping-preview-note,#mapping-last-import{margin-top:14px}.nav-links{flex-wrap:wrap}@media(max-width:640px){.header-actions{gap:7px}.header .help-link{font-size:11px}.workspace-nav{align-items:flex-start;gap:10px}.nav-links{gap:12px 16px}.uploads{margin-top:32px}.uploads h1{font-size:34px}.uploads h2{font-size:20px}.upload-controls{align-items:flex-start;flex-direction:column}.mapping-example{font-size:12px;line-height:1.8}}
.daily-scroll{overflow-x:auto;margin-bottom:32px}#daily-department{max-width:100%;padding:10px}#daily-period{padding:10px}#daily-result h2{margin-top:32px}
.mapping-table .column-toggle{width:100%;min-width:0;padding:3px 8px;min-height:0;height:26px;font-size:16px;line-height:18px;border-radius:6px}
.workspace{max-width:1400px;display:grid;grid-template-columns:210px minmax(0,1fr);column-gap:28px;align-content:start}.workspace>.workspace-nav,.workspace>section{grid-column:2;min-width:0;width:100%}.workspace>.sidebar{grid-column:1;grid-row:1 / span 2;align-self:start;padding-top:96px;display:flex;flex-direction:column;gap:10px}.sidebar a{display:block;padding:15px 16px;border-radius:12px;font-size:14px;line-height:1.5;color:var(--nx-muted)}.sidebar a span{display:block;font-size:11px;margin-top:3px}.sidebar a[aria-current]{background:var(--nx-success-bg);color:var(--nx-primary)}.sidebar a:hover{background:#ececf0}@media(max-width:800px){.workspace{grid-template-columns:minmax(0,1fr);padding:0 18px 40px}.workspace>.sidebar{grid-column:1;grid-row:auto;padding-top:18px;flex-direction:row;flex-wrap:wrap;gap:4px}.sidebar a{padding:10px;font-size:12px;flex:1;min-width:100px}.workspace>.workspace-nav,.workspace>section{grid-column:1}.nav-links{gap:12px}}
.header-actions{flex-wrap:wrap;justify-content:flex-end}#refresh-data{padding:8px 12px;font-size:12px;border-radius:8px}#refresh-data-status{font-size:12px;max-width:220px;color:var(--nx-muted)}
#dish-groups .daily-scroll{overflow:visible}#dish-groups .mapping-table{table-layout:fixed}#dish-groups td{vertical-align:top}.group-dropdown{position:relative;width:100%;min-width:0}.group-dropdown summary{display:block;cursor:pointer;border:1px solid var(--nx-border);border-radius:8px;background:#fff;padding:10px 30px 10px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;list-style:none}.group-dropdown summary::-webkit-details-marker{display:none}.group-dropdown summary:after{content:'⌄';position:absolute;right:12px}.group-dropdown summary:focus-visible{outline:2px solid var(--nx-primary);outline-offset:2px}.group-dropdown[open]{z-index:10}.group-dropdown-panel{position:absolute;top:calc(100% + 5px);left:0;width:100%;min-width:220px;max-height:300px;overflow:auto;padding:12px;background:#fff;border:1px solid var(--nx-border);border-radius:10px;box-shadow:0 8px 24px #0002;box-sizing:border-box}.group-dropdown-panel label{cursor:pointer;line-height:1.4}.group-dropdown-panel input{flex-shrink:0;accent-color:var(--nx-primary)}.group-dropdown-panel strong{display:block;margin-top:8px}@media(max-width:640px){#dish-groups .mapping-table th,#dish-groups .mapping-table td{padding:10px 5px}.group-dropdown-panel{min-width:180px;left:auto;right:0}}

/* Shared styling for all native dropdowns, including dynamically added fields. */
body select,body #language,body .period-fields select,body .sheet-label select{
 appearance:none;-webkit-appearance:none;box-sizing:border-box;max-width:100%;
 font:inherit;font-size:13px;line-height:20px;color:var(--nx-text);
 border:1px solid var(--nx-border);border-radius:8px;background-color:#fff;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23515157' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 12px center;
 padding:10px 36px 10px 12px;min-height:42px;cursor:pointer;text-overflow:ellipsis;
}
body select:hover:not(:disabled){border-color:#a1a1a6}
body select:focus-visible{outline:2px solid var(--nx-primary);outline-offset:2px}
body select:disabled{opacity:.55;cursor:not-allowed}
#dish-groups-rows>tr>td:nth-child(2)>select{display:block;width:100%;min-width:0}
.group-dropdown summary{font-size:13px;line-height:20px;min-height:42px;box-sizing:border-box}
body select[multiple]{background-image:none;padding-right:12px}
#output-settings-menu{position:relative;font-size:14px;color:var(--nx-muted)}#output-settings-menu>summary{cursor:pointer;padding:10px 0;list-style:none}#output-settings-menu>summary::after{content:'\2304';margin-left:10px}#output-settings-menu.current>summary{color:var(--nx-primary);font-weight:500}.output-settings-links{position:absolute;z-index:20;top:100%;left:0;width:340px;max-width:80vw;padding:8px;background:#fff;border:1px solid var(--nx-border);border-radius:12px;box-shadow:0 8px 24px #0002}.output-settings-links a{display:block;padding:10px 12px;border-radius:8px;line-height:1.5}.output-settings-links a:hover,.output-settings-links a[aria-current]{background:var(--nx-success-bg)}#output-settings-menu>summary:focus-visible{outline:2px solid var(--nx-primary);border-radius:6px}@media(max-width:640px){.output-settings-links{position:static;box-shadow:none;width:auto;margin-top:6px}}
/* Productivity settings are nested below Metrics in the sidebar. */
.sidebar #output-settings-menu{margin:0 0 8px 12px;min-width:0;border-left:1px solid var(--nx-border);padding-left:8px}.sidebar #output-settings-menu>summary{padding:10px 8px;font-size:13px;line-height:1.5}.sidebar .output-settings-links{position:static;width:auto;max-width:none;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}.sidebar .output-settings-links a{padding:9px 10px;font-size:12px;min-width:0;overflow-wrap:anywhere}.sidebar #output-settings-menu.current>summary{color:var(--nx-primary)}@media(max-width:800px){.sidebar #output-settings-menu{margin-left:12px}.sidebar .output-settings-links{display:flex;flex-wrap:wrap;gap:4px}.sidebar .output-settings-links a{flex:1 1 180px}}
.sidebar a#output-settings-menu{display:block;margin:0 0 8px 16px;padding:12px 14px;border-left:0;font-size:13px;line-height:1.5;border-radius:10px}.sidebar a#output-settings-menu[hidden]{display:none}.sidebar a#output-settings-menu[aria-current]{background:var(--nx-success-bg);color:var(--nx-primary)}
/* Month pickers match the shared dropdown controls. */
body input[type="month"]{box-sizing:border-box;max-width:100%;min-height:42px;padding:10px 12px;font:inherit;font-size:13px;line-height:20px;color:var(--nx-text);background:#fff;border:1px solid var(--nx-border);border-radius:8px;color-scheme:light;cursor:pointer;transition:border-color .15s ease}
body input[type="month"]:hover:not(:disabled){border-color:#a1a1a6}
body input[type="month"]:focus-visible{outline:2px solid var(--nx-primary);outline-offset:2px}
body input[type="month"]:disabled{opacity:.55;cursor:not-allowed}
body input[type="month"]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.65;margin-left:10px}
body input[type="month"]::-webkit-datetime-edit{padding:0}
.mapping-table .kitchen-section-heading{background:#fff;text-align:center;font-weight:600;color:var(--nx-text);padding:12px 18px;}
.mapping-table .section-divider{border-left:2px solid var(--nx-border);}
.minimum-staff-input{box-sizing:border-box;width:100%;max-width:180px;padding:12px 14px;border:1px solid var(--nx-border);border-radius:8px;background:#fff;color:var(--nx-text);font:inherit;text-align:center;}
.minimum-staff-input:focus{outline:2px solid var(--nx-primary);outline-offset:2px;}
.nav-links.output-tabs{flex:1;min-width:0;flex-wrap:nowrap;gap:20px;overflow-x:auto;padding:4px 0;align-items:center;}
.nav-links.output-tabs a{flex:1 0 auto;font-size:13px;line-height:1.5;}
.output-tab-line{display:block;white-space:nowrap;}
.workspace-nav:has(.output-tabs){gap:16px;}
@media(max-width:640px){.nav-links.output-tabs{gap:16px;}.nav-links.output-tabs a{font-size:12px;}}
#minimum-staff .mapping-table th:not(:first-child){text-align:center;}
.staff-editor{margin:24px 0;padding:24px;border:1px solid var(--nx-border);border-radius:16px;background:#fff;}
.staff-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.staff-fields label,#role-form label{display:flex;flex-direction:column;gap:8px;font-size:14px;}
.staff-fields input,#role-form input{box-sizing:border-box;width:100%;padding:12px 14px;border:1px solid var(--nx-border);border-radius:8px;background:#fff;color:var(--nx-text);font:inherit;}
.staff-fields input:focus,#role-form input:focus{outline:2px solid var(--nx-primary);outline-offset:2px;}
.staff-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
#employees .daily-scroll,#roles .daily-scroll{margin-top:24px;}
#permissions-rows input{width:18px;height:18px;accent-color:var(--nx-primary);cursor:pointer;}
#permissions-rows label{cursor:pointer;}
#permissions-rows .permission-group th{font-size:20px;font-weight:600;color:var(--nx-text);background:#fff;padding-top:22px;padding-bottom:18px;}
#permissions-rows .permission-subgroup th{font-size:16px;font-weight:600;color:#515154;padding-left:30px;}
#permissions-rows .permission-page td:first-child{padding-left:30px;}
#permissions-rows .permission-page-nested td:first-child{padding-left:44px;}
@media(max-width:640px){.staff-fields{grid-template-columns:1fr}.staff-editor{padding:16px;}}
.employee-departments { border:1px solid var(--nx-border); border-radius:14px; padding:18px; margin:20px 0; }
.employee-departments legend { padding:0 8px; font-weight:600; }
#employee-departments-list { display:grid; grid-template-columns:1fr; gap:4px; margin-top:10px; }
#employee-departments-list label { display:flex; align-items:center; gap:10px; padding:8px; }
#employee-departments-list input { width:18px; height:18px; accent-color:var(--nx-primary); flex-shrink:0; }
#productivity-title > span,.nav-links [data-page="productivity"] > span{display:block;color:inherit;}
#productivity .mapping-table th,#productivity .mapping-table td{text-align:center;vertical-align:middle;}
#work-schedules .upload-controls label{display:flex;flex-direction:column;gap:8px;}
#work-schedules input[type="date"],#guest-registration input[type="date"],#guest-orders-form input[type="date"]{box-sizing:border-box;min-height:44px;max-width:100%;border:1px solid var(--nx-border);border-radius:10px;padding:12px 14px;background:#fff;color:var(--nx-text);font:inherit;font-size:14px;color-scheme:light;}
#work-schedules input[type="date"]:focus-visible,#guest-registration input[type="date"]:focus-visible,#guest-orders-form input[type="date"]:focus-visible{outline:2px solid var(--nx-primary);outline-offset:2px;}
#work-schedules input[type="date"]::-webkit-calendar-picker-indicator,#guest-registration input[type="date"]::-webkit-calendar-picker-indicator,#guest-orders-form input[type="date"]::-webkit-calendar-picker-indicator{cursor:pointer;}
#schedule-rows input{box-sizing:border-box;min-width:110px;width:100%;border:1px solid var(--nx-border);border-radius:8px;padding:10px;background:#fff;color:inherit;font:inherit;}
#schedule-rows td:first-child input{min-width:180px;}
.workspace:has(>#work-schedules:not([hidden])){max-width:none;}
#work-schedules{max-width:none;}
#work-schedules .schedule-matrix-scroll{max-height:85vh;overflow:auto;}
#work-schedules .schedule-matrix{border-collapse:separate;border-spacing:0;}
#work-schedules .schedule-matrix th{position:sticky;top:0;z-index:2;white-space:nowrap;}
#work-schedules .schedule-matrix th,#work-schedules .schedule-matrix td{padding:10px;border-right:1px solid var(--nx-border);text-align:center;vertical-align:middle;}
#work-schedules .schedule-matrix :is(th,td):nth-child(1){position:sticky;left:0;min-width:110px;max-width:110px;box-sizing:border-box;background:var(--nx-bg);z-index:3;}
#work-schedules .schedule-matrix :is(th,td):nth-child(2){position:sticky;left:110px;min-width:200px;max-width:200px;background:var(--nx-bg);z-index:3;box-sizing:border-box;}
#work-schedules .schedule-matrix :is(th,td):nth-child(3){position:sticky;left:310px;min-width:160px;max-width:160px;background:var(--nx-bg);z-index:3;box-sizing:border-box;}
#work-schedules .schedule-matrix th:nth-child(-n+3){z-index:4;}
#work-schedules .schedule-matrix th:first-child{white-space:normal;}
#schedule-rows .schedule-shift{min-width:132px;width:132px;text-align:center;}
#work-schedules .schedule-matrix select{text-align:center;}
#schedule-rows .schedule-shift[aria-invalid=true]{border-color:#c33;}
#schedule-employee{max-width:380px;}
@media(max-width:700px){#work-schedules .schedule-matrix :is(th,td):nth-child(-n+3){position:static;}#work-schedules .schedule-matrix th:nth-child(-n+3){position:sticky;left:auto;}}
.schedule-matrix .schedule-empty-row td{height:56px;background:#fff;}
.schedule-matrix .schedule-empty-row select{width:100%;min-width:0;max-width:180px;}
#work-schedules .schedule-matrix{border-top:1px solid var(--nx-border);border-left:1px solid var(--nx-border);}
#work-schedules .schedule-matrix td{border-bottom:1px solid var(--nx-border);}
#schedule-person-picker{position:fixed;inset:auto;margin:0;padding:12px;border:1px solid var(--nx-border);border-radius:12px;background:#fff;box-shadow:0 12px 35px #0002;box-sizing:border-box;overflow:hidden;color:var(--nx-text);}
#schedule-person-picker:popover-open{display:flex;flex-direction:column;gap:8px;}
#schedule-person-picker>input{width:100%;box-sizing:border-box;flex-shrink:0;padding:10px;border:1px solid var(--nx-border);border-radius:8px;font:inherit;}
.schedule-picker-results{overflow:auto;min-height:0;}
.schedule-picker-results button{display:block;width:100%;text-align:left;background:#fff;color:var(--nx-text);padding:10px;border-radius:6px;font:inherit;}
.schedule-picker-results button:hover,.schedule-picker-results button:focus-visible{background:var(--nx-success-bg);color:var(--nx-primary);outline:2px solid var(--nx-primary);outline-offset:-2px;}
#schedule-export{background:var(--nx-primary);border-color:var(--nx-primary);color:#fff;}
#work-schedules .schedule-matrix .schedule-total-row th{position:sticky;left:auto;min-width:0;max-width:none;height:40px;box-sizing:border-box;z-index:4;}
#work-schedules .schedule-matrix .schedule-total-row th:first-child{left:0;z-index:5;}
#work-schedules .schedule-matrix .schedule-total-row:nth-child(2) th{top:40px;}
#work-schedules .schedule-matrix .schedule-date-row th{top:80px;}
#work-schedules .schedule-weekday{margin-bottom:4px;font-weight:600;text-align:center;text-transform:capitalize;}
.output-detail-trigger{font:inherit;color:inherit;background:transparent;border:0;padding:6px;cursor:pointer;text-decoration:none;}
.output-detail-trigger:hover{color:var(--nx-primary);background:var(--nx-success-bg);}
.output-detail-trigger:focus-visible{outline:2px solid var(--nx-primary);outline-offset:2px;}
#output-detail-dialog{position:fixed;inset:0 0 0 auto;margin:0;box-sizing:border-box;width:min(560px,45vw);height:100dvh;max-width:100vw;max-height:100dvh;overflow:auto;border:0;border-left:1px solid var(--nx-border);border-radius:0;padding:24px;background:#fff;color:var(--nx-text);box-shadow:-16px 0 60px #0003;}
#output-detail-dialog[open]{animation:output-detail-slide-in .22s ease-out;}
#output-detail-dialog::backdrop{background:#0004;backdrop-filter:none;}
@keyframes output-detail-slide-in{from{transform:translateX(100%);}to{transform:translateX(0);}}
@media(prefers-reduced-motion:reduce){#output-detail-dialog[open]{animation:none;}}
.output-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.output-detail-heading h2{margin:0;font-size:24px;}
.output-detail-heading button{min-width:44px;min-height:44px;font-size:24px;}
.output-detail-scroll{overflow:auto;max-width:100%;}
.output-detail-scroll td{white-space:pre-line;min-width:100px;}
.output-detail-note{color:#81520c;}
.output-detail-summary{font-weight:600;}
@media(max-width:600px){
 #output-detail-dialog{width:100vw;padding:12px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));border:0;overscroll-behavior:contain;}
 .output-detail-heading{position:sticky;top:-12px;background:#fff;z-index:2;padding:8px 0;gap:8px;}
 .output-detail-heading h2{font-size:20px;line-height:1.25;}
 .output-detail-heading button{flex-shrink:0;padding:8px;}
 #output-detail-dialog>p{font-size:12px;overflow-wrap:anywhere;}
 .output-detail-scroll .mapping-table{min-width:0;table-layout:fixed;font-size:12px;line-height:1.4;}
 .output-detail-scroll .mapping-table th,.output-detail-scroll .mapping-table td{min-width:0;padding:10px 5px;vertical-align:top;overflow-wrap:anywhere;}
 .output-detail-trigger{min-height:44px;min-width:44px;}
}
#schedule-excel{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent;border-color:#b5c8bd;color:var(--nx-primary)}
#schedule-excel .excel-icon{flex-shrink:0}
#schedule-excel:hover:not(:disabled){background:transparent;border-color:#217346;}
.schedule-remove-person{margin-left:10px;padding:4px 9px;border:1px solid var(--nx-border);border-radius:8px;background:#fff;color:#c23934;font-size:18px;line-height:1;}
#schedule-time-picker{position:fixed;margin:0;padding:18px;box-sizing:border-box;max-height:80vh;overflow:auto;border:1px solid var(--nx-border);border-radius:14px;background:#fff;color:var(--nx-text);box-shadow:0 8px 28px #0002;}
.time-picker-row,.time-picker-actions{display:flex;align-items:end;gap:10px;margin-top:16px;flex-wrap:wrap;}
.time-picker-row label{display:grid;gap:8px;font-size:13px;}
.time-picker-row select{padding:10px;border:1px solid var(--nx-border);border-radius:10px;background:#fff;color:var(--nx-text);font:inherit;}
.sidebar a#schedule-settings-menu,.sidebar a#payroll-settings-menu,.sidebar a#sales-settings-menu,.sidebar a#guest-settings-menu{display:block;margin:0 0 8px 16px;padding:12px 14px;font-size:13px;line-height:1.5;border-radius:10px;}
.sidebar a#schedule-settings-menu[hidden],.sidebar a#payroll-settings-menu[hidden],.sidebar a#sales-settings-menu[hidden],.sidebar a#guest-settings-menu[hidden]{display:none;}
.sidebar a#schedule-settings-menu[aria-current],.sidebar a#payroll-settings-menu[aria-current],.sidebar a#sales-settings-menu[aria-current],.sidebar a#guest-settings-menu[aria-current]{background:var(--nx-success-bg);color:var(--nx-primary);}
.enterprise-hours td>input{box-sizing:border-box;width:150px;border:1px solid var(--nx-border);border-radius:10px;padding:12px;background:#fff;color:var(--nx-text);font:inherit;}
.enterprise-hours td>label{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:12px;color:var(--nx-muted);}
.enterprise-hours td>input:focus-visible{outline:2px solid var(--nx-primary);outline-offset:2px;}
.enterprise-hours th:first-child{min-width:180px;}
#schedule-export:hover:not(:disabled){background:var(--nx-primary);border-color:var(--nx-primary);}
.schedule-person-trigger{width:100%;text-align:left;}
.schedule-section{margin:28px 0 36px;}
#work-schedules .schedule-section h2{font-size:24px;margin-bottom:16px;}
.schedule-section td:last-child select{display:block;min-width:180px;margin-bottom:8px;}

/* Phone layouts: controls stay readable, large matrices scroll in their own area. */
@media(max-width:640px){
 .header{height:auto;min-height:65px;margin:0 16px;padding:12px 0;gap:12px;flex-wrap:wrap;}
 .header-actions{flex:1 1 180px;min-width:0;gap:8px;}
 .header .brand{flex-shrink:0;}
 .workspace{padding-left:12px;padding-right:12px;}
 .workspace h1{font-size:30px;line-height:1.15;letter-spacing:-.8px;overflow-wrap:anywhere;}
 .workspace-nav{flex-wrap:wrap;}
 .workspace-nav .nav-links{flex-basis:100%;min-width:0;}
 .sidebar a{min-height:44px;}
 .upload-controls{align-items:stretch;}
 .upload-controls>*{max-width:100%;min-width:0;}
 .upload-controls label{width:100%;}
 .upload-controls select{max-width:100%;min-width:0;}
 body input:not([type=checkbox]):not([type=radio]),body select,body textarea,#work-schedules input[type=date],#language{font-size:16px;}
 button.secondary-button,.schedule-remove-person{min-height:44px;}
 .schedule-remove-person{min-width:44px;}
 #work-schedules .schedule-matrix-scroll{max-width:100%;max-height:70dvh;}
 #work-schedules .schedule-matrix .schedule-total-row th:first-child{left:auto;}
 #schedule-time-picker{max-height:calc(100dvh - 24px);padding:12px;}
 .time-picker-row{align-items:stretch;}
 .time-picker-row label{flex:1 1 110px;min-width:0;}
 .time-picker-row select{width:100%;min-width:0;}
 .time-picker-actions button{flex:1 1 110px;}
 #dish-groups .mapping-table{min-width:0;}
 #dish-groups .mapping-table thead{display:none;}
 #dish-groups .mapping-table tbody,#dish-groups .mapping-table tr,#dish-groups .mapping-table td{display:block;width:100%;}
 #dish-groups .mapping-table tr{margin-bottom:20px;border:1px solid var(--nx-border);border-radius:12px;padding:10px;}
 #dish-groups .mapping-table td{border:0;}
 #dish-groups .group-dropdown-panel{left:0;right:0;min-width:0;width:100%;}
}
/* Compact mobile navigation: sections open below the left menu button. */
.sidebar a.instructions-submenu{margin-left:16px;padding:10px 14px;border-left:2px solid var(--nx-border);border-radius:0 10px 10px 0;font-size:13px;}
.sidebar a.instructions-submenu[hidden]{display:none;}
.mobile-menu-toggle{display:none;}
@media(max-width:800px){
 .workspace{position:relative;}
 .mobile-menu-toggle{display:inline-flex;align-items:center;gap:8px;grid-column:1;justify-self:start;margin:12px 0 0;min-height:44px;}
 .workspace>.sidebar{display:none;position:absolute;left:12px;top:62px;width:min(320px,calc(100% - 24px));max-height:65dvh;overflow-y:auto;z-index:50;padding:12px;background:#fff;border:1px solid var(--nx-border);border-radius:14px;box-shadow:0 12px 35px #0002;flex-direction:column;flex-wrap:nowrap;}
 .workspace.mobile-menu-open>.sidebar{display:flex;}
 .workspace>.sidebar a{flex:none;min-height:44px;}
 .workspace>.workspace-nav{padding:10px 0;gap:8px;flex-wrap:nowrap;align-items:center;}
 .workspace-nav .nav-links{flex:1 1 0;flex-basis:0;min-width:0;flex-wrap:nowrap;overflow-x:auto;gap:8px;}
 .workspace-nav .nav-links a{flex:0 0 auto;max-width:230px;padding:10px 12px;min-height:44px;border-radius:10px;font-size:12px;}
 .workspace-nav .nav-links a[aria-current]{background:var(--nx-success-bg);}
 .workspace-nav #logout{flex:none;font-size:12px;min-height:44px;padding:8px;}
 .workspace>section{margin-top:20px;}
}
.usage-guide{max-width:1000px;}.guide-block{margin:20px 0;padding:22px;background:#fff;border:1px solid var(--nx-border);border-radius:16px;line-height:1.7;}.guide-block summary{cursor:pointer;font-size:20px;font-weight:600;min-height:44px;}.guide-block li{margin:12px 0;}.guide-block p{color:var(--nx-muted);}.guide-block ol{padding-left:24px;}@media(max-width:640px){.guide-block{padding:16px;}.guide-block summary{font-size:18px;}}
#payroll-instructions .guide-block>summary{display:none;}
.workspace-nav .guide-tab{color:var(--nx-muted);font-size:14px;text-align:left;line-height:1.5;border-radius:10px;min-height:44px;padding:10px 12px;}
.workspace-nav .guide-tab[aria-pressed=true]{color:var(--nx-primary);background:var(--nx-success-bg);font-weight:600;}
@media(max-width:800px){.workspace-nav .guide-tab{flex:0 0 220px;font-size:12px;}}
.guide-screenshot{margin:20px 0;}.guide-screenshot img{display:block;width:100%;height:auto;border:1px solid var(--nx-border);border-radius:12px;}.guide-screenshot figcaption{font-size:13px;color:var(--nx-muted);margin-top:10px;}.guide-phone{max-width:360px;}
.guide-columns{margin:16px 0;display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;}.guide-columns img{width:auto;max-width:100%;height:auto;border:1px solid var(--nx-border);border-radius:8px;}.guide-columns a{max-width:100%;}.guide-columns figcaption{flex-basis:100%;font-size:12px;color:var(--nx-muted);}
#schedule-instructions .guide-block>summary{display:none;}
/* Match header controls and avoid accidental text selection in navigation. */
.header #logout{min-height:44px;padding:10px 16px;font-size:13px;white-space:nowrap;}
.sidebar a,.workspace-nav a,.header button,.mobile-menu-toggle{-webkit-user-select:none;user-select:none;}
.workspace h1[tabindex="-1"]:focus,.workspace h2[tabindex="-1"]:focus{outline:none;}

#employee-rates .mapping-table{min-width:680px}#employee-rates input{width:100%;min-width:90px;max-width:160px;text-align:center}#employee-rates td:not(:first-child),#employee-rates th:not(:first-child){text-align:center}

.guest-orders-table{min-width:720px}.guest-orders-table td:last-child,.guest-orders-table th:last-child{text-align:right;white-space:nowrap}[data-guest-kind][aria-pressed=true]{background:var(--nx-success-bg);color:var(--nx-primary)}#guest-orders-form{margin-bottom:16px}

.guest-survey-block{margin-top:24px;padding-top:16px;border-top:1px solid var(--nx-border)}.guest-survey-block h3{margin:0 0 16px;font-size:20px}
.guest-order-row{cursor:pointer}.guest-order-row:hover,.guest-order-row:focus-visible{background:var(--nx-success-bg)}.guest-order-row:focus-visible{outline:2px solid var(--nx-primary);outline-offset:-2px}
#guest-order-dialog{position:fixed;inset:0 0 0 auto;margin:0;box-sizing:border-box;width:min(560px,45vw);height:100dvh;max-width:100vw;max-height:100dvh;overflow:auto;border:0;border-radius:0;padding:24px;background:white;box-shadow:-16px 0 60px #0003}
#guest-order-dialog::backdrop{background:#0004;backdrop-filter:none}#guest-order-dialog[open]{animation:output-detail-slide-in .22s ease-out}.guest-detail-header{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:-24px;background:white;padding:12px 0}.guest-detail-header button{min-width:44px;min-height:44px;font-size:24px}#guest-order-dialog dl{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}#guest-order-dialog dt{color:var(--nx-muted)}#guest-order-dialog dd{margin:0;overflow-wrap:anywhere}#guest-order-dialog table{width:100%;table-layout:fixed}#guest-order-dialog td{overflow-wrap:anywhere}#guest-order-dialog th:last-child,#guest-order-dialog td:last-child{width:100px;text-align:center}
@media(max-width:600px){#guest-order-dialog{width:100vw;padding:16px}.guest-detail-header{top:-16px}#guest-order-dialog dl{font-size:14px}}
@media(prefers-reduced-motion:reduce){#guest-order-dialog[open]{animation:none}}

.guest-survey-actions{display:flex;justify-content:flex-end;margin:12px 0 20px}.guest-survey-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none}
.guest-survey-actions .secondary-button{background:var(--nx-primary);color:#fff;border-color:var(--nx-primary)}

.guest-surveyed-table{min-width:720px}.guest-surveyed-table td:last-child,.guest-surveyed-table th:last-child{text-align:right;white-space:nowrap}

#guest-order-dialog table{min-width:0}#guest-order-dialog dl{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#guest-order-dialog dt{overflow-wrap:anywhere}

.guest-order-type{display:block;width:fit-content;margin-top:6px;padding:3px 8px;border-radius:6px;background:var(--nx-success-bg);color:var(--nx-primary);font-size:12px;white-space:nowrap}
.guest-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start;margin-bottom:24px}.guest-overview-controls{min-width:0}.guest-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-top:8px}.guest-stat-card{box-sizing:border-box;min-width:0;min-height:190px;padding:24px;border:1px solid var(--nx-border);border-bottom:4px solid var(--nx-primary);border-radius:14px;background:#fff}.guest-stat-title{margin:0 0 20px;color:var(--nx-muted);font-size:14px;font-weight:500;line-height:1.5;text-transform:uppercase;letter-spacing:.04em}.guest-stat-card strong{display:block;font-size:clamp(32px,3vw,48px);line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(max-width:1100px){.guest-overview{grid-template-columns:1fr}.guest-summary{padding-top:0}}
@media(max-width:600px){.guest-summary{gap:12px}.guest-stat-card{padding:16px;min-height:160px}.guest-stat-title{font-size:12px;letter-spacing:0}}
.guest-summary{gap:14px;width:100%;max-width:580px;justify-self:end}.guest-stat-card{min-height:142px;padding:16px 18px;border-bottom-width:3px;border-radius:12px}.guest-stat-title{margin-bottom:12px;font-size:12px;line-height:1.4;letter-spacing:.02em}.guest-stat-card strong{font-size:34px}.guest-stat-value{display:flex;align-items:center;justify-content:space-between;gap:10px}.guest-survey-ring{--progress:0%;width:64px;height:64px;flex:0 0 64px;border-radius:50%;background:conic-gradient(var(--nx-primary) var(--progress),var(--nx-success-bg) 0);display:grid;place-items:center}.guest-survey-ring span{display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:#fff;color:var(--nx-primary);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
@media(max-width:1100px){.guest-summary{justify-self:start}}
@media(max-width:600px){.guest-stat-card{padding:12px;min-height:132px}.guest-stat-card strong{font-size:28px}.guest-survey-ring{width:54px;height:54px;flex-basis:54px}.guest-survey-ring span{width:42px;height:42px;font-size:11px}}
.guest-overview{align-items:end;margin-bottom:0}.guest-overview-controls>.upload-controls:last-child{margin-bottom:0}.guest-summary{padding-top:0;row-gap:12px}.guest-stat-card{display:grid;grid-template-rows:subgrid;grid-row:span 2;row-gap:12px}.guest-stat-title{margin:0}.guest-stat-value{min-height:64px}
@media(max-width:600px){.guest-stat-value{min-height:54px}}
.guest-stat-card{cursor:pointer}.guest-stat-card:hover{border-color:var(--nx-primary)}.guest-stat-card:focus-visible{outline:2px solid var(--nx-primary);outline-offset:3px}.guest-stat-card:disabled{cursor:default}
.guest-breakdown{display:grid;gap:12px;margin-top:16px}.guest-breakdown-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;padding:16px;border-radius:16px;background:var(--nx-bg);font-size:14px}.guest-breakdown-item>strong{overflow-wrap:anywhere}.guest-breakdown-values{display:grid;gap:4px;text-align:right;font-variant-numeric:tabular-nums}.guest-breakdown-values span{color:var(--nx-primary);font-weight:600}.guest-breakdown-track{grid-column:1/-1;height:12px;overflow:hidden;border-radius:999px;background:#e2e7ee}.guest-breakdown-fill{height:100%;border-radius:inherit;animation:guest-bar-fill .35s ease-out;transform-origin:left}.guest-breakdown-total{text-align:right;font-weight:600}
@keyframes guest-bar-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.guest-breakdown-fill{animation:none}}

.guest-breakdown{gap:8px;margin-top:10px}.guest-breakdown-item{padding:10px 14px;gap:7px 12px;border-radius:12px}.guest-breakdown-values{display:flex;align-items:baseline;gap:12px}.guest-breakdown-track{height:8px}.guest-breakdown-heading{margin:22px 0 0;font-size:16px}.guest-breakdown-total{margin:10px 0 18px;font-size:13px}
.guest-survey-ring{--ring-color:#8b8b93;--ring-track:#eeeef2;--ring-text:var(--nx-muted);background:conic-gradient(var(--ring-color) var(--progress),var(--ring-track) 0)}.guest-survey-ring span{color:var(--ring-text)}
.guest-survey-ring[data-level=low]{--ring-color:#d96868;--ring-track:#f9eaea;--ring-text:#b33f46}
.guest-survey-ring[data-level=medium]{--ring-color:#e4b63f;--ring-track:#faf3dc;--ring-text:#896600}
.guest-survey-ring[data-level=high]{--ring-color:#65a97c;--ring-track:#e9f3ec;--ring-text:#36764b}
.guest-summary{grid-template-columns:repeat(3,minmax(0,1fr));max-width:900px}.guest-overview{grid-template-columns:minmax(0,1fr)}
.guest-activity-card{order:3;grid-row:span 2;display:flex;flex-direction:column;gap:8px;min-width:0}.guest-activity-card .guest-stat-card{display:flex;flex-direction:column;justify-content:space-between;width:100%;flex:1;order:-1}.guest-activity-card label{font-size:12px;color:var(--nx-muted)}.guest-activity-card input{box-sizing:border-box;width:100%;min-width:0;padding:8px;border:1px solid var(--nx-border);border-radius:10px;background:#fff;font:inherit}.guest-activity-card [role=status]:empty{display:none}
@media(max-width:600px){.guest-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.guest-activity-card{grid-column:1/-1}}
.guest-overview{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:20px}.guest-summary{max-width:620px;gap:10px;align-items:stretch}.guest-stat-card{display:flex;flex-direction:column;justify-content:space-between;min-height:120px;padding:12px;gap:8px;grid-row:auto}.guest-stat-title{font-size:11px;line-height:1.4;min-height:46px}.guest-stat-card strong{font-size:28px}.guest-stat-value{min-height:46px;gap:6px}.guest-survey-ring{width:46px;height:46px;flex-basis:46px}.guest-survey-ring span{width:36px;height:36px;font-size:10px}.guest-activity-card{grid-row:auto}.guest-activity-card .guest-stat-card{flex:1}
@media(max-width:1100px){.guest-overview{grid-template-columns:1fr}.guest-summary{justify-self:end}}@media(max-width:600px){.guest-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.guest-activity-card{grid-column:auto}.guest-stat-card{padding:8px;min-height:122px}.guest-stat-title{font-size:10px}.guest-stat-card strong{font-size:24px}.guest-survey-ring{width:34px;height:34px;flex-basis:34px}.guest-survey-ring span{width:26px;height:26px;font-size:9px}}
.guest-summary .guest-stat-card{min-height:96px;padding:10px 12px;gap:4px}.guest-summary .guest-stat-title{min-height:31px}.guest-summary .guest-stat-value{min-height:38px}.guest-summary .guest-survey-ring{width:38px;height:38px;flex-basis:38px}.guest-summary .guest-survey-ring span{width:30px;height:30px;font-size:10px}
@media(max-width:600px){.guest-summary .guest-stat-card{padding:8px;min-height:96px}.guest-summary .guest-survey-ring{width:32px;height:32px;flex-basis:32px}.guest-summary .guest-survey-ring span{width:24px;height:24px;font-size:9px}}
.registration-summary{grid-template-columns:repeat(2,minmax(0,1fr));max-width:460px;justify-self:start}.registration-summary .guest-stat-card{cursor:default}.registration-summary .guest-stat-card:hover{border-color:var(--nx-border);border-bottom-color:var(--nx-primary)}
.registration-summary #registration-progress{width:58px;height:58px;flex-basis:58px}.registration-summary #registration-progress span{width:46px;height:46px;font-size:12px}
.registration-summary #registration-details{cursor:pointer}.registration-summary #registration-details:hover{border-color:var(--nx-primary)}.registration-employee{padding:14px;border-radius:12px;background:var(--nx-bg)}.registration-employee>strong{overflow-wrap:anywhere}.registration-employee dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:12px 0 0;font-size:14px}.registration-employee dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}.registration-attribution-note{padding:14px;background:#faf3dc;border-radius:12px;font-size:14px}
.registration-employee-track{margin-top:12px}
button.guest-stat-card{text-align:left;font:inherit;color:inherit}button.guest-stat-card:disabled{opacity:.65}

.registration-employee{padding:10px 12px}.registration-employee dl{gap:3px;margin:6px 0 0;font-size:13px}.registration-employee-track{margin-top:7px;height:6px}.registration-table-scroll{overflow-x:auto}#registration-orders{margin-top:24px}#registration-orders h2{margin-top:28px}.registration-order-link{background:none;border:0;padding:0;color:var(--accent,var(--nx-primary));font:inherit;cursor:pointer}#registration-orders .guest-order-row{cursor:pointer}#registration-orders .guest-order-row:hover{background:var(--nx-bg)}


[data-registration-filter][aria-pressed=true]{background:var(--nx-success-bg);color:var(--nx-primary)}.registration-order-filters{margin-top:18px;gap:12px;flex-wrap:wrap}


#guest-order-dialog .registration-employee{padding:8px 12px}#guest-order-dialog .registration-employee>strong{font-size:14px;line-height:18px}#guest-order-dialog .registration-employee dl{grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;margin:4px 0 0;font-size:12px;line-height:16px}#guest-order-dialog .registration-employee-track{margin-top:5px;height:6px}


#guest-order-dialog .registration-employee dl{display:flex;align-items:baseline;justify-content:space-between;gap:4px 10px;flex-wrap:wrap;margin-top:3px}#guest-order-dialog .registration-employee dl>div{display:flex;align-items:baseline;gap:5px}#guest-order-dialog .registration-employee .registration-percent-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#guest-order-dialog .registration-employee{padding:7px 12px}#guest-order-dialog .registration-employee-track{height:5px;margin-top:5px}


.mobile-menu-close,.mobile-menu-backdrop{display:none}
@media(max-width:800px){
 body:has(#workspace:not([hidden])){padding-top:52px}
 .workspace>.mobile-menu-toggle{position:fixed;top:0;left:0;right:0;width:100%;height:52px;margin:0;padding:0 18px;border:0;border-bottom:1px solid var(--nx-border);border-radius:0;background:#fff;z-index:80;justify-content:flex-start;font-size:23px;color:var(--nx-text);box-shadow:0 1px 6px #00000008}
 .mobile-menu-toggle span{font-size:0}.mobile-menu-toggle span::after{content:'NAROX';font-size:17px;font-weight:650;letter-spacing:.5px;margin-left:10px}
 .workspace>.sidebar{position:fixed;inset:0 auto 0 0;width:min(310px,85vw);height:100dvh;max-height:100dvh;box-sizing:border-box;padding:12px 12px max(20px,env(safe-area-inset-bottom));border:0;border-radius:0;z-index:100;box-shadow:12px 0 40px #0002;overscroll-behavior:contain}
 .workspace.mobile-menu-open>.sidebar{animation:mobile-navigation-in .2s ease-out}
 .mobile-menu-close{display:block;align-self:flex-end;min-width:44px;min-height:44px;font-size:26px;padding:0;margin-bottom:4px}
 .mobile-menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#0005;z-index:90;touch-action:none}
 body.mobile-navigation-open{overflow:hidden}
 @keyframes mobile-navigation-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}
}
@media(prefers-reduced-motion:reduce){.workspace.mobile-menu-open>.sidebar{animation:none}}

.tracking-table-header{position:relative;z-index:6;background:var(--nx-bg)}.tracking-table-header>tr{background:var(--nx-bg)}.tracking-table-header>tr>:is(th,td){background:var(--nx-bg)}#work-schedules .tracking-table-header th{top:auto}@media print{.tracking-table-header{transform:none!important;position:static}}

#guest-phone-search,#retention-phone-search{box-sizing:border-box;min-width:150px;width:210px;max-width:100%;height:44px;padding:10px 12px;border:1px solid var(--nx-border);border-radius:10px;background:white;font:inherit;font-size:13px}#guest-phone-search:focus,#retention-phone-search:focus{outline:2px solid var(--nx-primary);outline-offset:2px}

.guest-survey-actions{gap:8px;flex-wrap:wrap}.guest-survey-actions [data-contact-status]{background:white;color:var(--nx-primary);border-color:var(--nx-border)}.guest-survey-actions [data-contact-status][aria-pressed=true]{background:var(--nx-success-bg)}

#guest-service .guest-summary{grid-column:1/-1;max-width:none;grid-template-columns:repeat(3,minmax(0,1fr))}#guest-service .guest-summary [data-guest-category]{order:4}#guest-service .guest-summary [data-guest-category=unreachable]{order:5}.guest-category-filters{margin-top:24px;gap:8px;flex-wrap:wrap}[data-guest-category][aria-pressed=true]{background:var(--nx-success-bg);color:var(--nx-primary)}@media(max-width:800px){#guest-service .guest-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:480px){#guest-service .guest-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

#guest-service .guest-overview-controls{grid-column:1/-1}.guest-filter-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.guest-filter-toolbar>.upload-controls{margin:0;gap:10px;flex-wrap:wrap}.guest-filter-toolbar .guest-category-filters{margin-left:auto}@media(max-width:800px){.guest-filter-toolbar .guest-category-filters{margin-left:0}}

.guest-survey-actions [data-contact-status=declined]{background:#f9eaea;color:#a6333e;border-color:#e6a7ad}
.guest-survey-actions [data-contact-status=declined][aria-pressed=true]{background:#d96868;color:#fff;border-color:#d96868}
.guest-survey-actions [data-contact-status=unreachable]{background:#faf3dc;color:#765900;border-color:#e4c875}
.guest-survey-actions [data-contact-status=unreachable][aria-pressed=true]{background:#e4b63f;color:#493700;border-color:#e4b63f}

#guest-service #guest-survey-progress{width:64px;height:64px;flex-basis:64px}#guest-service #guest-survey-progress span{width:50px;height:50px;font-size:13px}@media(max-width:480px){#guest-service #guest-survey-progress{width:54px;height:54px;flex-basis:54px}#guest-service #guest-survey-progress span{width:42px;height:42px;font-size:12px}}

#guest-service #guest-survey-progress{width:88px;height:88px;flex-basis:88px}#guest-service #guest-survey-progress span{width:70px;height:70px;font-size:16px}@media(max-width:480px){#guest-service #guest-survey-progress{width:68px;height:68px;flex-basis:68px}#guest-service #guest-survey-progress span{width:54px;height:54px;font-size:13px}}

/* Brand shell. Keep the existing page IDs, layout containers and interactions. */
body{background:var(--nx-surface);color:var(--nx-text)}
.header{max-width:none;margin:0;padding:0 32px;background:var(--nx-surface);border-color:var(--nx-border);gap:16px}
.brand{letter-spacing:.04em;flex-shrink:0}
.narox-symbol{display:block;object-fit:contain;aspect-ratio:1;width:40px;height:40px;flex:none;background:transparent}
.app-icon{background:none;box-shadow:none;border-radius:0;width:72px;height:72px}
.app-icon .narox-symbol{width:72px;height:72px}
.welcome{background:radial-gradient(ellipse at top,#e6f7ec66,transparent 65%)}
.welcome h1{font-weight:650}.welcome h1 span{color:var(--nx-primary)}
.login-card,.connection-card{border-radius:var(--nx-radius-lg);box-shadow:var(--nx-shadow)}
.workspace{max-width:none;grid-template-columns:244px minmax(0,1fr);gap:0 32px;padding:0 32px 48px 0}
.workspace>.sidebar{position:sticky;top:0;height:100dvh;min-height:100dvh;max-height:100dvh;overflow-y:auto;padding:24px 14px;gap:6px;background:var(--nx-sidebar);color:#e7f4ec;scrollbar-color:#426457 var(--nx-sidebar)}
.sidebar-brand{display:flex;align-items:center;gap:10px;padding:0 12px 22px;font-size:23px;font-weight:650;letter-spacing:.08em;color:#f1faf5}
.sidebar a{color:#c2d4cb;border-radius:10px;padding:12px 14px;line-height:1.45}
.sidebar a span{color:#b5cfc0}
.sidebar a:hover{background:#15352c;color:#fff}
.sidebar a[aria-current]{background:var(--nx-sidebar-active);color:#b5f3d0;box-shadow:inset 3px 0 var(--nx-mint)}
.sidebar a.instructions-submenu{border-color:#426457}
.sidebar :is(a,button):focus-visible{outline:3px solid var(--nx-mint);outline-offset:2px}
.workspace>.workspace-nav{padding:18px 0;min-height:72px;border-color:var(--nx-border)}
.workspace-nav .nav-links{gap:8px 16px}
.workspace-nav a{padding:10px 12px;border-radius:10px;line-height:1.4}
.workspace-nav a[aria-current]{background:var(--nx-success-bg);color:var(--nx-primary)}
.workspace>section{margin-top:30px}
.workspace h1{font-size:clamp(28px,3vw,38px);letter-spacing:-1px;line-height:1.2}
:is(input,select,textarea){accent-color:var(--nx-primary)}
:is(input,select,textarea):focus-visible{outline:2px solid var(--nx-primary);outline-offset:2px}
:is(button,a,summary):focus-visible{outline:3px solid var(--nx-primary);outline-offset:3px}
.secondary-button{border-color:#b5c8bd;transition:background .15s,border-color .15s}
.secondary-button:hover:not(:disabled){background:var(--nx-success-bg);border-color:var(--nx-primary)}
.submit-button:hover:not(:disabled){background:var(--nx-primary-hover)}
button:disabled{cursor:not-allowed}
.table-scroll{border-radius:var(--nx-radius);box-shadow:var(--nx-shadow)}
table{font-variant-numeric:tabular-nums}
tbody tr:hover{background:#f2f8f4}
.tracking-table-header,.tracking-table-header>tr,.tracking-table-header>tr>:is(th,td){background:var(--nx-bg)}
.guest-stat-card{box-shadow:var(--nx-shadow);border-radius:var(--nx-radius-lg)}
.registration-employee{background:var(--nx-bg)}
.guest-breakdown-track{background:#e5eee8}
dialog{border-radius:var(--nx-radius-lg);border-color:var(--nx-border)}
dialog::backdrop{background:#0c211d66}
.footer{max-width:none;padding:22px 32px;margin:0;border-color:var(--nx-border)}
@media(max-width:1024px) and (min-width:801px){
 .workspace{grid-template-columns:220px minmax(0,1fr);gap:0 22px;padding-right:22px}
 .brand-description{display:none}
}
@media(max-width:800px){
 .header{padding:12px 18px;height:auto;min-height:65px;flex-wrap:wrap}
 .workspace{grid-template-columns:minmax(0,1fr);padding:0 16px 36px;gap:0}
 .workspace>.sidebar{padding:16px 12px max(20px,env(safe-area-inset-bottom));min-height:100dvh;background:var(--nx-sidebar);top:0}
 .workspace>.mobile-menu-toggle{background:var(--nx-surface);color:var(--nx-text);border-color:var(--nx-border)}
 .mobile-menu-toggle .narox-symbol{width:32px;height:32px;margin-left:4px}
 .mobile-menu-toggle span::after{margin-left:0}
 .sidebar-brand{padding-bottom:18px}
 .mobile-menu-close{background:transparent;color:#e7f4ec;border-color:#426457}
 .workspace>.workspace-nav{min-height:60px;padding:10px 0}
 .workspace>section{margin-top:22px}
 .header-actions{gap:8px;max-width:100%}
 .footer{padding:18px}
}
@media(max-width:480px){
 .header .brand-description{display:none}
 .header .brand{font-size:19px}.header .narox-symbol{width:32px;height:32px}
 .header-actions{flex:1 1 auto}
 .header-actions #refresh-data-status{max-width:100%;flex-basis:100%}
 .workspace{padding-inline:12px}
 .welcome{padding-inline:16px}.welcome h1{font-size:32px;letter-spacing:-1px}
 .login-card{padding:24px 20px 0}
 .period-fields{flex-wrap:wrap}
 .guest-filter-toolbar>*{min-width:0;max-width:100%}
 .guest-category-filters{gap:8px}
 .guest-category-filters button{padding:10px 12px;min-height:44px}
}
@media print{
 .sidebar,.mobile-menu-toggle{display:none!important}
 .workspace{display:block;padding:0}
}

#section-menu a#output-settings-menu{color:#c2d4cb}
#section-menu a#output-settings-menu[aria-current]{background:var(--nx-sidebar-active);color:#b5f3d0;box-shadow:inset 3px 0 var(--nx-mint)}
@media(max-width:800px){body:has(#workspace:not([hidden]))>.header>.brand{display:none}body:has(#workspace:not([hidden]))>.header{min-height:0;padding-block:10px}}

/* Continue the desktop navigation rail through workspace padding and footer. */
@media screen and (min-width:801px){
 body:has(#workspace:not([hidden])){background:linear-gradient(to right,var(--nx-sidebar) 0 244px,var(--nx-surface) 244px 100%);background-attachment:fixed}
 body:has(#workspace:not([hidden]))>.footer{margin-left:244px}
}
@media screen and (min-width:801px) and (max-width:1024px){
 body:has(#workspace:not([hidden])){background:linear-gradient(to right,var(--nx-sidebar) 0 220px,var(--nx-surface) 220px 100%)}
 body:has(#workspace:not([hidden]))>.footer{margin-left:220px}
}

/* Keep the date and weekday beside the horizontally scrolled productivity data. */
.date-columns-pinned .pinned-date-cell{position:sticky;left:0;z-index:2;background:var(--nx-surface)}
.date-columns-pinned .pinned-weekday-cell{left:var(--date-column-width,132px)}
.date-columns-pinned .pinned-date-edge{box-shadow:2px 0 0 var(--nx-border)}
.date-columns-pinned thead .pinned-date-cell{z-index:3;background:var(--nx-bg)}
@media print{.date-columns-pinned .pinned-date-cell{position:static;box-shadow:none}}

/* Align all guest summary numbers with the centre of the progress ring. */
#guest-service .guest-summary .guest-stat-value{display:flex;align-items:center;min-height:88px}
@media(max-width:480px){#guest-service .guest-summary .guest-stat-value{min-height:68px}}

/* Mobile drawer must override the desktop sticky sidebar positioning. */
@media screen and (max-width:800px){
 .workspace>.sidebar{position:fixed;inset:0 auto 0 0;top:0;height:100dvh;min-height:100dvh;max-height:100dvh;margin:0;z-index:100;overflow-y:auto}
}

.guest-settings-card{margin-top:24px;max-width:680px}.guest-settings-card .card-description{margin-bottom:0}

/* Google Business account connections and enterprise mappings. */
#guest-settings .guest-settings-card{max-width:1100px}
.google-actions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}
.google-accounts{list-style:none;padding:0;display:grid;gap:12px}
.google-accounts li{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px;border:1px solid #d5e3dc;border-radius:14px}
.google-accounts strong{overflow-wrap:anywhere}
.google-department{margin:20px 0;padding:18px;border:1px solid #d5e3dc;border-radius:14px;min-width:0}
.google-department legend{font-weight:600;padding:0 8px}
.google-department label{display:flex;gap:10px;align-items:center;margin:12px 0;overflow-wrap:anywhere}
.google-department input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;accent-color:#176b50}
.google-department small{color:#775b12}
@media(max-width:600px){.google-department label{align-items:flex-start;flex-wrap:wrap}.google-accounts li{align-items:flex-start;flex-direction:column}}

#session-identity{font-size:12px;max-width:240px;overflow-wrap:anywhere;color:var(--nx-muted)}
@media(max-width:640px){.header-actions{flex-wrap:wrap}#session-identity{max-width:160px;font-size:11px}}

.ratings-filters{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin:24px 0}.ratings-filters label{display:grid;gap:8px}.ratings-filters input,.ratings-filters select{padding:10px;border:1px solid var(--nx-border);border-radius:10px;font:inherit;background:var(--nx-surface);color:var(--nx-text)}.ratings-card{margin:20px 0}.ratings-card h3{margin-top:24px}.ratings-card small{color:var(--nx-muted)}@media(max-width:640px){.ratings-filters label,.ratings-filters button{width:100%;min-width:0}.ratings-filters select{max-width:100%}}

.ratings-summary{justify-self:start;max-width:580px;margin:24px 0}.ratings-summary [data-rating-card=score] strong{font-size:28px}

.ratings-table-wrap{max-width:100%;overflow-x:auto;margin-top:24px}.ratings-orders{width:100%;border-collapse:collapse;min-width:680px;font-size:13px}.ratings-orders th,.ratings-orders td{padding:16px 20px;border-bottom:1px solid var(--nx-border);text-align:left}.ratings-orders th{background:#f5f9f7;color:var(--nx-muted);font-weight:500}.ratings-orders td:nth-child(n+4),.ratings-orders th:nth-child(n+4){text-align:right;white-space:nowrap}.ratings-orders tfoot{background:#f5f9f7}

.ratings-presets{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px}@media(max-width:640px){.ratings-presets{display:grid;grid-template-columns:1fr 1fr}.ratings-presets button{min-width:0;white-space:normal}}

.ratings-filters .ratings-presets{margin:0;align-items:center;gap:8px}.ratings-filters{column-gap:12px}.ratings-filters .ratings-presets button{min-height:42px}@media(max-width:640px){.ratings-filters .ratings-presets{width:100%}}

#ratings-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(520px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;box-sizing:border-box;border:0;border-radius:18px 0 0 18px;padding:24px;overflow:auto;color:var(--nx-text)}#ratings-drawer::backdrop{background:#0c211d66}.ratings-breakdown-row{display:flex;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid var(--nx-border)}#ratings-drawer h2{font-size:23px}#ratings-drawer h3{margin-top:24px}.ratings-summary button{text-align:left;cursor:pointer}

/* Compact expandable rating cards, matching the registration breakdown. */
#ratings-drawer>details{margin:18px 0}
#ratings-drawer>details>summary{list-style:none;cursor:pointer;font-size:13px;margin-bottom:10px}
#ratings-drawer summary::-webkit-details-marker{display:none}
#ratings-drawer .ratings-group-card{background:#f5f9f7;border:0;border-radius:13px;margin:8px 0;overflow:hidden}
#ratings-drawer .ratings-group-summary{display:block;list-style:none;padding:10px 12px 8px;cursor:pointer}
#ratings-drawer .ratings-group-summary>strong{display:block;font-size:14px;line-height:20px}
#ratings-drawer .ratings-group-metrics{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;line-height:17px;margin-top:3px;color:var(--nx-muted)}
#ratings-drawer .ratings-group-metrics strong{color:var(--nx-text);white-space:nowrap;font-weight:500}
#ratings-drawer .ratings-group-track{height:5px;background:#e2eee7;border-radius:5px;overflow:hidden;margin-top:5px}
#ratings-drawer .ratings-group-track span{display:block;height:100%;border-radius:inherit}
#ratings-drawer .ratings-group-child{margin:0 12px 8px;background:#fff}
#ratings-drawer .ratings-group-child .ratings-group-summary{cursor:default}
#ratings-drawer details.ratings-group-card[open]>.ratings-group-summary{margin-bottom:8px;border-bottom:1px solid #dce9e1}
#ratings-drawer summary:focus-visible{outline:2px solid #176b50;outline-offset:-2px;border-radius:12px}

.ratings-stars{display:flex;gap:5px;margin-top:10px;line-height:1}
.ratings-star{position:relative;display:inline-block;color:#dce5df;font-family:"Segoe UI",Arial,sans-serif;font-size:28px}
.ratings-star>span{position:absolute;inset:0 auto 0 0;overflow:hidden;white-space:nowrap;color:#e5b632}
/* Compact rating summary with aligned values and a restrained gold accent. */
#guest-ratings .ratings-summary .guest-stat-card{display:grid;grid-template-rows:30px 32px 20px;align-content:start;justify-content:stretch;min-height:0;padding:10px 12px;gap:3px}
#guest-ratings .ratings-summary .guest-stat-title{min-height:0}
#guest-ratings .ratings-summary .guest-stat-value{min-height:0;align-items:center}
#guest-ratings .ratings-stars{margin-top:0;gap:4px;align-items:center}
#guest-ratings .ratings-star{font-size:22px}
#guest-ratings .ratings-star>span{color:#c7a448}

.ratings-list-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.ratings-list-tabs [aria-pressed=true]{background:var(--nx-success-bg);color:var(--nx-primary);border-color:var(--nx-primary)}
.ratings-source-summary{display:flex;justify-content:space-between;align-items:center;background:#f5f9f7;border-radius:12px;padding:14px;margin:16px 0 5px}
.ratings-source-summary strong{font-size:24px}
.ratings-review-text{white-space:pre-wrap;overflow-wrap:anywhere}
.ratings-google-table tbody tr[tabindex]{cursor:pointer}
.ratings-google-table tbody tr[tabindex]:hover{background:#f5f9f7}
.ratings-google-table tbody tr:focus-visible{outline:2px solid var(--nx-primary);outline-offset:-2px}
.ratings-google-table td:last-child{white-space:normal;text-align:left;max-width:380px}

.rating-settings-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end}.rating-settings-form label{display:grid;gap:8px;font-size:14px}.rating-settings-form input{min-width:0;width:100%;box-sizing:border-box;padding:10px;border:1px solid var(--nx-border);border-radius:10px;font:inherit}.rating-settings-form button{justify-self:start}.rating-settings-form [role=status]{grid-column:1/-1;margin:0}@media(max-width:640px){.rating-settings-form{grid-template-columns:1fr}}

#rating-settings .guest-settings-card{max-width:900px;padding:24px;margin-top:16px}
#rating-settings .guest-settings-card h2{font-size:22px;line-height:1.3;margin:0 0 20px}
#rating-settings .rating-settings-form{gap:16px 20px;align-items:start}
#rating-settings .rating-settings-form label{font-size:13px;color:var(--nx-muted);line-height:20px}
#rating-settings .rating-setting-input{position:relative;display:block}
#rating-settings .rating-setting-input input{height:46px;padding:10px 14px;color:var(--nx-text);font-size:16px;background:var(--nx-surface)}
#rating-settings .rating-setting-input:has(>span) input{padding-right:44px}
#rating-settings .rating-setting-input>span{position:absolute;right:14px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--nx-muted)}
#rating-settings .rating-settings-form button{grid-column:1/-1;min-width:130px}
#rating-settings .rating-settings-form [role=status]:empty{display:none}
@media(max-width:640px){#rating-settings .guest-settings-card{padding:20px}#rating-settings .rating-settings-form{gap:14px}#rating-settings .rating-settings-form button{width:100%}}

#ratings-drawer .ratings-count-row{padding:12px;margin:8px 0;border-radius:12px;background:#f5f9f7}
.ratings-count-heading{display:flex;justify-content:space-between;align-items:baseline;gap:16px;font-size:14px}
.ratings-count-heading strong{font-variant-numeric:tabular-nums}
.ratings-count-track{height:5px;margin-top:9px;border-radius:5px;background:#e2eee7;overflow:hidden}
.ratings-count-track>span{display:block;height:100%;background:#60ad7b;border-radius:inherit}

#ratings-drawer details.ratings-group-child>.ratings-group-summary{cursor:pointer}#ratings-drawer .ratings-category{margin:6px 12px;background:#f5f9f7}

#guest-ratings .ratings-top{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
#guest-ratings .ratings-top h1{margin:0}
#guest-ratings .ratings-summary-host{margin-left:auto;width:390px;max-width:100%}
#guest-ratings .ratings-summary{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:none;margin:0}
#guest-ratings .ratings-filters{margin-top:28px}
@media(max-width:640px){#guest-ratings .ratings-top{align-items:flex-start}#guest-ratings .ratings-summary-host{width:100%}#guest-ratings .ratings-filters{margin-top:20px}}

#guest-ratings .ratings-top{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:24px;align-items:end;margin-top:36px}
#guest-ratings .ratings-controls{min-width:0}
#guest-ratings .ratings-top .ratings-filters{margin:0;gap:12px}
#guest-ratings .ratings-top .ratings-list-tabs{margin:20px 0 0}
#guest-ratings .ratings-summary-host{width:100%;margin:0}
#guest-ratings [role=status]:empty{display:none}
@media(max-width:1200px){#guest-ratings .ratings-top{grid-template-columns:1fr}#guest-ratings .ratings-summary-host{width:390px;max-width:100%;justify-self:end}}
@media(max-width:640px){#guest-ratings .ratings-top{margin-top:24px;gap:20px}#guest-ratings .ratings-summary-host{width:100%}}

.ratings-survey-order{cursor:pointer}.ratings-survey-order:hover{background:#f5f9f7}.ratings-survey-order:focus-visible{outline:2px solid var(--nx-primary);outline-offset:-2px}

.ratings-order-category{margin:14px 0;padding:16px;border:1px solid #e0ebe5;border-radius:16px;background:#f6faf8}
.ratings-category-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:15px;font-weight:500}
.ratings-category-heading strong{font-size:24px;font-variant-numeric:tabular-nums}
.ratings-order-category .ratings-stars{margin:8px 0 14px;gap:5px}
.ratings-order-category .ratings-star{font-size:23px}
.ratings-order-category .ratings-star>span{color:#c7a448}
.ratings-order-comment{border-top:1px solid #dfe9e3;padding-top:12px}
.ratings-order-comment>span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--nx-muted)}
.ratings-order-comment .ratings-review-text{margin:6px 0 0;font-size:14px;line-height:1.65;color:var(--nx-text)}
.ratings-order-comment .ratings-comment-empty{font-size:13px;color:var(--nx-muted)}

#ratings-drawer .ratings-source-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px}#ratings-drawer .ratings-source-summary .ratings-stars{grid-column:1/-1;margin:0}#ratings-drawer .ratings-source-summary .ratings-star{font-size:22px}#ratings-drawer .ratings-source-summary .ratings-star>span{color:#c7a448}

.ratings-coverage-metrics{display:flex;justify-content:space-between;gap:12px;color:var(--nx-muted);font-size:12px;margin-top:7px}

.sales-demo-note{display:inline-block;margin:0 0 24px;padding:9px 14px;border-radius:10px;background:#eaf5ef;color:#507365;font-size:13px}
.sales-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:20px}
.sales-kpi{display:flex;flex-direction:column;justify-content:space-between;gap:18px;min-height:108px;padding:18px 14px;background:#fff;border:1px solid var(--nx-border);border-bottom:3px solid var(--nx-primary);border-radius:16px;box-shadow:var(--nx-shadow)}
.sales-kpi>span{font-size:11px;line-height:1.5;text-transform:uppercase;color:var(--nx-muted);letter-spacing:.03em}
.sales-kpi strong{font-size:27px;font-variant-numeric:tabular-nums;white-space:nowrap}
.sales-kpi small{font-size:12px;font-weight:400;color:var(--nx-muted)}
.sales-demo-panel{padding:24px;border:1px solid var(--nx-border);border-radius:18px;background:#fff;min-width:0}
.sales-demo-panel h2{font-size:19px;margin:0 0 18px;letter-spacing:-.3px}
.sales-demo-muted{color:var(--nx-muted);font-size:13px}
.sales-plan-demo{margin-bottom:20px}
.sales-demo-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.sales-demo-wide{grid-column:1/-1}
.sales-demo-bar{margin:14px 0}
.sales-demo-bar>div:first-child{display:flex;justify-content:space-between;gap:16px;font-size:13px;margin-bottom:8px}
.sales-demo-bar strong{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}
.sales-demo-track{height:7px;background:#e6efe9;border-radius:10px;overflow:hidden}
.sales-demo-track span{display:block;height:100%;background:#368464;border-radius:inherit}
.sales-demo-bar:nth-of-type(2n) .sales-demo-track span{background:#72b594}
.sales-cost-layout{display:grid;grid-template-columns:150px 1fr;gap:24px;align-items:center}
.sales-demo-ring{width:140px;height:140px;background:conic-gradient(#c5a34b var(--share),#e9f1ec 0);border-radius:50%;display:grid;place-items:center}
.sales-demo-ring strong{width:116px;height:116px;background:white;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:28px}
.sales-demo-ring small{font-size:11px;color:var(--nx-muted);margin-top:6px;font-weight:400}
.sales-day-chart,.sales-hour-chart{display:flex;gap:16px;align-items:end;overflow-x:auto;padding-top:24px}
.sales-day-chart>div,.sales-hour-chart>div{flex:1;min-width:48px;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:10px;font-size:11px;color:var(--nx-muted)}
.sales-day-chart i,.sales-hour-chart i{display:block;width:100%;background:#5fa682;border-radius:6px 6px 0 0}
.sales-hour-chart i{max-width:56px;background:#27775b}
@media(max-width:1200px){.sales-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.sales-cost-layout{grid-template-columns:1fr}.sales-demo-ring{margin:auto}}
@media(max-width:700px){.sales-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-demo-grid{grid-template-columns:1fr}.sales-demo-panel{padding:18px}.sales-kpi{padding:14px;min-height:100px}.sales-kpi strong{font-size:25px}}

.guest-coverage-metrics{grid-column:1/-1;font-size:12px;color:var(--nx-muted)}

.ratings-order-info{margin:20px 0 24px;padding:18px;border:1px solid var(--nx-border);border-radius:16px;background:#fff}#ratings-drawer .ratings-order-info h3{margin:0 0 14px;font-size:16px}.ratings-order-info dl{margin:0}.ratings-order-info dl>div{display:grid;grid-template-columns:1fr 1.15fr;gap:16px;padding:9px 0;border-bottom:1px solid #edf2ef}.ratings-order-info dl>div:last-child{border:0}.ratings-order-info dt{font-size:12px;color:var(--nx-muted)}.ratings-order-info dd{margin:0;font-size:13px;font-weight:500;text-align:right;overflow-wrap:anywhere}

.ratings-phone-filter{display:flex;flex-direction:column;gap:8px;min-width:170px;max-width:240px}.ratings-phone-filter[hidden]{display:none}.ratings-phone-filter input{width:100%;min-width:0}

.sales-period-buttons{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;margin:14px 0 20px}.sales-financial-period{display:flex;flex-direction:column;justify-content:center;gap:2px}.sales-period-buttons button{min-height:48px}
.period-picker{display:flex!important;flex-direction:column;gap:8px;flex:0 1 260px;width:260px;min-width:0;max-width:100%;align-self:end;font-size:14px;color:inherit}.period-picker .nx-select-trigger{height:46px!important;min-height:46px!important;max-height:46px!important;min-width:0;padding:12px 34px 12px 12px!important;line-height:20px;flex:0 0 46px;background:#fff}.period-picker select,.period-picker .nx-select-trigger{width:100%;box-sizing:border-box;min-height:46px}.period-picker~button[data-period-original],button[data-period-original]{display:none!important}.purchase-period-buttons:has(.period-picker){grid-template-columns:minmax(150px,170px) minmax(150px,170px) minmax(220px,260px);align-items:end;justify-content:start;overflow:visible}.purchase-period-buttons .period-picker .nx-select-trigger{height:46px;min-width:0;text-align:left;font-size:14px}@media(max-width:600px){.purchase-period-buttons:has(.period-picker){grid-template-columns:1fr 1fr}.purchase-period-buttons .period-picker{grid-column:1/-1}.period-picker{min-width:0;width:100%}}

.sales-performance-layout{display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center;gap:40px}.sales-performance-summary{display:flex;flex-direction:column;align-items:center;gap:10px;font-size:12px;color:var(--muted,#647b75)}.sales-performance-ring{--fill:0%;--ring-color:#dce7e2;width:116px;height:116px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--ring-color) var(--fill),#e6efea 0);position:relative}.sales-performance-ring:before{content:"";position:absolute;inset:10px;border-radius:50%;background:white}.sales-performance-ring strong{position:relative;font-size:24px;color:#102e2b}.sales-performance-bars [data-sales-bar=plan]{background:#70b596}.sales-performance-bars [data-sales-bar=actual]{background:#348767}@media(max-width:600px){.sales-performance-layout{grid-template-columns:minmax(0,1fr) 110px;gap:16px}.sales-performance-ring{width:90px;height:90px}.sales-performance-ring strong{font-size:20px}.sales-performance-summary{text-align:center}}
.sales-plan-deviation{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--nx-border);margin-top:18px;padding-top:14px;font-size:14px}.sales-plan-deviation strong{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.sales-plan-deviation[data-direction=shortfall] strong{color:var(--nx-danger)}.sales-plan-deviation[data-direction=over] strong{color:var(--nx-primary)}.sales-breakdown-drawer .sales-plan-deviation{margin-top:12px;padding-top:10px}.sales-breakdown-drawer .sales-plan-deviation strong{font-size:16px}

.product-percent-stack{display:flex;flex-direction:column;align-items:center;gap:18px}.product-percent-stack .sales-demo-ring{flex-shrink:0}

[data-product-costs]{align-self:start;padding:22px 24px}.product-cost-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.product-cost-header h2{margin-bottom:10px}.product-cost-header p{margin:0}.product-cost-header .product-percent-stack{flex-direction:row;gap:12px}.product-cost-header .sales-demo-ring{width:100px;height:100px;margin:0}.product-cost-header .sales-demo-ring strong{width:86px;height:86px;font-size:22px}.product-cost-header .sales-demo-ring small{font-size:9px}.product-cost-bars{width:100%}.product-cost-bars .sales-demo-bar:last-child{margin-bottom:0}@media(max-width:600px){.product-cost-header{flex-wrap:wrap}.product-cost-header .product-percent-stack{margin-left:auto}.product-cost-header .sales-demo-ring{width:86px;height:86px}.product-cost-header .sales-demo-ring strong{width:74px;height:74px;font-size:20px}[data-product-costs]{padding:18px}}

.guest-brand-history{margin:20px 0;padding:16px;background:#f4f8f6;border-radius:14px}.guest-brand-history h3{margin:0 0 10px}.guest-brand-history p{font-size:12px;color:#647b75}.guest-brand-counts{display:grid;grid-template-columns:1fr auto;gap:10px}.guest-brand-counts dd{font-weight:700;margin:0}

#guest-service .guest-filter-toolbar{display:flex;flex-wrap:nowrap;gap:12px;align-items:center;overflow-x:auto;padding:3px 2px 8px}#guest-service .guest-filter-toolbar>.upload-controls{display:flex;flex-wrap:nowrap;flex-shrink:0;gap:8px;max-width:none;margin:0}#guest-service .guest-filter-toolbar button{white-space:nowrap;padding:10px 12px}#guest-service #guest-phone-search{margin-left:auto;flex:0 0 210px;max-width:none}#guest-service [data-guest-category][aria-pressed=false]{background:var(--nx-success-bg);color:var(--nx-primary)}#guest-service [data-guest-category][aria-pressed=true]{background:#fff;color:var(--nx-primary);border-color:var(--nx-primary)}

#guest-service .guest-search-row{display:flex;justify-content:flex-end;margin:0 0 12px;min-width:0}#guest-service .guest-search-row #guest-phone-search{flex:0 1 280px;width:280px;max-width:100%;margin:0}#guest-service .guest-filter-toolbar{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;overflow:visible;max-width:100%;padding:0;margin-bottom:16px}#guest-service .guest-filter-toolbar>.upload-controls{display:contents}#guest-service .guest-filter-toolbar button{width:100%;min-width:0;max-width:100%;padding:9px 5px;min-height:44px;font-size:clamp(10px,.85vw,13px);line-height:1.25;white-space:normal;overflow-wrap:anywhere}

#guest-service .guest-filter-toolbar [data-guest-kind],#guest-service .guest-filter-toolbar [data-guest-category]{background:#fff;border-color:var(--nx-border);color:var(--nx-primary)}
#guest-service .guest-filter-toolbar [data-guest-category][aria-pressed=true],#guest-service .guest-filter-toolbar [data-guest-kind]:not([data-guest-kind=all])[aria-pressed=true]{background:var(--nx-primary);border-color:var(--nx-primary);color:#fff}
#guest-service .guest-filter-toolbar [data-guest-kind=all]{background:#fff;border-color:var(--nx-border);color:var(--nx-primary)}

/* Consistent action height on guest survey page; statistic cards retain their layout. */
#guest-service button.secondary-button,#guest-service button.submit-button{box-sizing:border-box;height:52px;min-height:52px;display:inline-flex;align-items:center;justify-content:center;line-height:1.2;padding-top:6px;padding-bottom:6px}
#guest-service .guest-filter-toolbar button{height:52px;min-height:52px;align-self:stretch}

#guest-service .guest-filter-toolbar [data-guest-category]{background:var(--nx-primary);border-color:var(--nx-primary);color:#fff}
#guest-service .guest-filter-toolbar [data-guest-category][aria-pressed=true]{background:var(--nx-primary);border-color:var(--nx-primary);color:#fff;box-shadow:inset 0 0 0 2px #fff; font-weight:600}

#guest-service .guest-filter-toolbar [data-guest-category][aria-pressed=true],#guest-service .guest-filter-toolbar [data-guest-kind][aria-pressed=true]{box-shadow:none;outline:3px solid var(--nx-primary);outline-offset:3px}
#guest-service .guest-filter-toolbar{padding:6px;gap:10px}

#guest-service .guest-filter-toolbar [data-guest-kind],#guest-service .guest-filter-toolbar [data-guest-kind][aria-pressed=true],#guest-service .guest-filter-toolbar [data-guest-kind]:hover{background:#fff;color:var(--nx-primary);border-color:var(--nx-border)}
#guest-service .guest-filter-toolbar [data-guest-kind][aria-pressed=true]{outline:3px solid var(--nx-primary);outline-offset:3px;box-shadow:none}

#guest-service .guest-filter-toolbar button[data-guest-kind]:not([data-guest-kind=all])[aria-pressed=true]{background:#fff;color:var(--nx-primary);border-color:var(--nx-border)}

/* Keep survey filters readable and touch-friendly on phones. */
@media(max-width:800px){
 #guest-service .guest-filter-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:20px;padding:6px;width:100%;box-sizing:border-box}
 #guest-service .guest-filter-toolbar>.upload-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;min-width:0;max-width:100%;margin:0}
 #guest-service .guest-filter-toolbar>.guest-category-filters{padding-top:18px;border-top:1px solid var(--nx-border)}
 #guest-service .guest-filter-toolbar button{width:100%;min-width:0;height:auto;min-height:52px;padding:12px 14px;font-size:14px;line-height:1.4;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none;text-align:center}
 #guest-service .guest-category-filters button:last-child:nth-child(odd){grid-column:1/-1}
}

/* Product cost percentages: captions below the rings. */
.product-percent-item{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}.product-percent-label{font-size:11px;color:var(--muted,#627773);text-align:center;line-height:1.3}

.sales-plan-demo[role=button]{cursor:pointer}.sales-plan-demo[role=button]:focus-visible{outline:3px solid #196f52;outline-offset:3px}
.sales-breakdown-drawer{box-sizing:border-box;position:fixed;inset:0 0 0 auto;margin:0;width:min(760px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:20px 0 0 20px;padding:24px;overflow-y:auto;background:white;color:inherit}.sales-breakdown-drawer::backdrop{background:#102d244d}.sales-breakdown-drawer .sales-plan-demo{margin:18px 0;cursor:default}.sales-breakdown-drawer .guest-detail-header{display:flex;justify-content:space-between;align-items:center;gap:16px}

[data-product-costs][role=button]{cursor:pointer}[data-product-costs][role=button]:focus-visible{outline:3px solid #196f52;outline-offset:3px}.sales-breakdown-drawer [data-product-costs]{margin:18px 0;cursor:default}

[data-payment-types][role=button]{cursor:pointer}[data-payment-types][role=button]:focus-visible{outline:3px solid #196f52;outline-offset:3px}.sales-breakdown-drawer [data-payment-types]{margin:18px 0;cursor:default}

[data-dish-sales][role=button]{cursor:pointer}[data-dish-sales][role=button]:focus-visible{outline:3px solid #196f52;outline-offset:3px}.sales-breakdown-drawer [data-dish-sales]{margin:18px 0;cursor:default}

[data-order-types][role=button]{cursor:pointer}[data-order-types][role=button]:focus-visible{outline:3px solid #196f52;outline-offset:3px}.sales-breakdown-drawer [data-order-types]{margin:18px 0;cursor:default}

.sales-kpi[role=button]{cursor:pointer}.sales-kpi[role=button]:focus-visible,.sales-metric-row:focus-visible{outline:2px solid #348767;outline-offset:3px}.sales-metric-row{display:block;width:100%;text-align:left;background:white;color:inherit;border:1px solid #dce7e2;border-radius:12px;padding:16px;margin:10px 0;font:inherit}.sales-metric-row .sales-demo-track{display:block;margin-top:10px}.sales-metric-line{display:flex;justify-content:space-between;gap:16px;overflow-wrap:anywhere}.sales-metric-line strong{white-space:nowrap}.sales-metric-row small{display:block;margin-top:8px;color:#687b74}

.sales-year-comparison{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}.sales-year-comparison small{flex:1 1 100%;font-size:12px}.sales-year-change{display:inline-block;padding:4px 8px;border-radius:6px;font-size:13px;font-weight:600;background:#f0f3f2;color:#64736c}.sales-year-change.positive{background:#dcfce7;color:#15803d}.sales-year-change.negative{background:#fee2e2;color:#b91c1c}

/* Sales details share the registration drawer size and soft cards. */
.sales-breakdown-drawer{width:min(560px,45vw);height:100dvh;border-radius:0;box-shadow:-16px 0 60px #0003}
.sales-breakdown-drawer .guest-detail-header{z-index:1}
.sales-breakdown-drawer h3{font-size:14px;font-weight:600;margin:22px 0 10px}
.sales-breakdown-drawer .sales-metric-row{box-sizing:border-box;background:var(--nx-bg);border:0;border-radius:12px;box-shadow:none;padding:10px 12px;margin:8px 0;font-size:14px}
.sales-breakdown-drawer button.sales-metric-row:hover{background:#eef5f0}
.sales-breakdown-drawer .sales-metric-line>span{font-weight:600}
.sales-breakdown-drawer .sales-metric-line strong{font-size:14px;font-weight:500}
.sales-breakdown-drawer .sales-demo-track{height:5px;margin-top:7px;background:#e5eee8}
.sales-breakdown-drawer .sales-demo-track span{background:#60ac80}
.sales-breakdown-drawer .sales-demo-panel{background:var(--nx-bg);border:0;box-shadow:none;border-radius:12px;padding:12px 14px;margin:10px 0}
.sales-breakdown-drawer .sales-demo-panel h2{font-size:16px;margin:0 0 12px}
@media(max-width:600px){.sales-breakdown-drawer{width:100vw;padding:16px}}

.sales-metric-chart{margin-top:28px;border-top:1px solid #e5eee8;padding-top:12px}
.sales-chart-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.sales-chart-heading h2,.sales-chart-heading h3{margin:0}
.sales-metric-chart svg,.sales-chart-modal svg{display:block;width:100%;height:auto}
.sales-chart-legend{display:flex;justify-content:center;gap:22px;font-size:13px;font-weight:600}
.sales-chart-modal{box-sizing:border-box;width:min(1100px,94vw);max-width:94vw;max-height:92dvh;margin:auto;padding:24px;border:1px solid #dce7e2;border-radius:18px;background:white;color:inherit;overflow:auto;box-shadow:0 20px 80px #102d2433}
.sales-chart-modal::backdrop{background:#102d2466}
.sales-chart-controls{display:flex;align-items:end;flex-wrap:wrap;gap:16px;margin:22px 0}
.sales-chart-controls label{display:grid;gap:6px;flex:1;min-width:160px;font-size:13px}
.sales-chart-controls select{width:100%;max-width:100%}
.sales-chart-years{display:flex;gap:8px;flex-wrap:wrap}
.sales-chart-years [aria-pressed=true]{background:#e5f2e9;border-color:#60ac80;color:#14532d}
.sales-chart-heading button{flex-shrink:0}
@media(max-width:600px){.sales-chart-modal{padding:16px}.sales-chart-heading{flex-wrap:wrap}.sales-chart-heading h2{font-size:18px}}

.registration-summary{grid-template-columns:repeat(3,minmax(0,1fr));max-width:720px}.registration-summary #birthday-progress{width:58px;height:58px;flex-basis:58px}.registration-summary #birthday-progress span{width:46px;height:46px;font-size:12px}.registration-summary #birthday-details{cursor:pointer}@media(max-width:600px){.registration-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.sales-period-comparison{margin-bottom:24px}.sales-period-comparison>p{font-size:12px;color:var(--nx-muted)}.sales-comparison-values{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;flex-wrap:wrap}.sales-comparison-values>div{display:grid;gap:4px}.sales-comparison-values small{margin:0}.sales-comparison-values>div>span{font-size:14px;font-variant-numeric:tabular-nums}

.birthday-load-status{display:block;font-size:11px;line-height:1.4;font-weight:400;color:var(--nx-muted);text-transform:none}

.sales-type-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:20px 0}.sales-type-groups fieldset{border:1px solid var(--nx-border);border-radius:12px;padding:16px;background:var(--nx-bg)}.sales-type-groups legend{padding:0 6px;font-weight:600}.sales-type-groups label{display:flex;align-items:center;gap:10px;margin:10px 0;font-size:14px}.sales-type-groups input{flex:none}#sales-type-settings select{min-width:180px;max-width:100%}

#sales-type-settings .daily-scroll{overflow:visible}#sales-type-settings .mapping-table{table-layout:fixed;width:100%}#sales-type-settings td{vertical-align:top}#sales-type-settings .group-dropdown-panel label{display:flex;gap:8px;align-items:center;margin:8px 0}#sales-type-settings .group-dropdown-panel input{flex-shrink:0}@media(max-width:640px){#sales-type-settings .mapping-table th,#sales-type-settings .mapping-table td{padding:10px 5px}#sales-type-settings .group-dropdown-panel{min-width:150px}}

/* Payroll uses shared sales KPI cards and standard filters. */
#payroll .payroll-kpis{grid-template-columns:repeat(2,minmax(0,1fr));max-width:680px}
#payroll .payroll-filters input,#payroll .payroll-filters select,#payroll-refresh{box-sizing:border-box;min-height:52px}
#payroll .payroll-filters select{min-width:210px}

@media(max-width:420px){#payroll .payroll-kpis{grid-template-columns:1fr}#payroll .payroll-filters select{min-width:0;width:100%}}

/* Employee rates: shared form controls and restrained helper text. */
#employee-rates .employee-rates-filters select,#employee-rates-save{box-sizing:border-box;min-height:52px}
#employee-rates .employee-rates-filters select{min-width:210px}
#employee-rates-mode{max-width:100%}
#employee-rates-save{min-width:140px}
#employee-rates .mapping-table input{box-sizing:border-box;border:1px solid var(--nx-border);border-radius:10px;background:var(--nx-surface);color:var(--nx-text);padding:12px;font:inherit;min-height:46px;font-variant-numeric:tabular-nums}
#employee-rates .mapping-table input:focus{outline:2px solid var(--nx-primary);outline-offset:2px}
#employee-rates-message:empty{display:none}
@media(max-width:640px){#employee-rates .employee-rates-filters select{min-width:0;width:100%}#employee-rates-save{width:100%}}

#payroll .sales-kpi{text-align:left;cursor:pointer;color:inherit;font:inherit}.payroll-detail-row{display:flex;justify-content:space-between;gap:16px;padding:14px;border-radius:14px;background:#f4f8f6;margin:8px 0}.payroll-detail-group>summary{cursor:pointer}.payroll-detail-group>div{margin-left:16px}.payroll-detail-row span{white-space:nowrap}

.guest-brand-toggle{font:inherit;color:inherit;background:transparent;border:0;padding:0;cursor:pointer;text-align:left}.guest-brand-toggle:focus-visible{outline:2px solid #65a97c;outline-offset:4px}

.guest-brand-data-toggle{cursor:pointer}.guest-brand-data-toggle:hover{background:#edf5f0}.guest-brand-data-toggle:focus-visible{outline:2px solid #65a97c;outline-offset:2px}

.sync-picker{border:1px solid #cbded4;border-radius:20px;padding:24px;max-width:420px}.sync-picker label{display:block;margin:18px 0}.sync-picker button{margin:8px}.sync-picker::backdrop{background:#0005}

.payroll-detail-group>summary{display:block;list-style:none}
.payroll-detail-group>summary::-webkit-details-marker{display:none}
.payroll-detail-group>summary::marker{content:""}
.payroll-detail-row{flex-wrap:wrap;align-items:center;gap:8px 16px}
.payroll-share-track{flex-basis:100%;height:6px;border-radius:8px;background:#e3eee8;overflow:hidden}
.payroll-share-fill{height:100%;border-radius:inherit;background:#65a97c}
.payroll-detail-group>summary:focus-visible{outline:2px solid #65a97c;outline-offset:2px;border-radius:14px}
@media(max-width:480px){.payroll-detail-row span{white-space:normal}}

#payroll .payroll-kpis{max-width:none;grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1100px){#payroll .payroll-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){#payroll .payroll-kpis{grid-template-columns:1fr}}

#section-menu a.metrics-settings-submenu{display:block;box-sizing:border-box;margin:0 0 8px;padding:12px 10px;min-height:44px;border:0;border-radius:10px;font-size:12px;font-weight:400;line-height:1.5;letter-spacing:-.15px;white-space:normal;overflow-wrap:anywhere;color:#c2d4cb}
#section-menu a.metrics-settings-submenu[hidden]{display:none}
#section-menu a.metrics-settings-submenu[aria-current]{background:var(--nx-sidebar-active);color:#b5f3d0;box-shadow:inset 3px 0 var(--nx-mint)}

.motivation-table{margin:24px 0}.motivation-table select{width:100%;min-width:240px}.motivation-table input{max-width:240px;margin-right:12px}.motivation-table td{vertical-align:middle}

/* Motivation uses the same controls as employee rates and other settings. */
#motivation-form .motivation-table :is(input,select){box-sizing:border-box;min-height:46px;padding:12px;border:1px solid var(--nx-border);border-radius:10px;background:var(--nx-surface);color:var(--nx-text);font:inherit;font-variant-numeric:tabular-nums}
#motivation-form .motivation-table input{width:100%;max-width:240px;min-width:100px}
#motivation-form .motivation-table td:nth-child(2){white-space:nowrap}
#motivation-form .motivation-table :is(input,select):focus-visible{outline:2px solid var(--nx-primary);outline-offset:2px}
#motivation-form .motivation-table input:disabled{background:var(--nx-bg);color:var(--nx-muted);opacity:.65;cursor:not-allowed}
#motivation-form .motivation-table .secondary-button{min-height:46px;min-width:46px}
@media(max-width:640px){#motivation-form .motivation-table input{max-width:150px}#motivation-form .motivation-table select{min-width:200px}}

input:is([type=date],[type=month]){box-sizing:border-box;min-height:46px;padding:12px;border:1px solid var(--nx-border);border-radius:10px;background:var(--nx-surface);color:var(--nx-text);font:inherit}
.nx-calendar{width:340px;max-width:calc(100vw - 32px);box-sizing:border-box;border:1px solid var(--nx-border);border-radius:18px;padding:18px;background:var(--nx-surface);color:var(--nx-text);box-shadow:var(--nx-shadow)}
.nx-calendar::backdrop{background:#0c211d66}.nx-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.nx-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}.nx-calendar-months{grid-template-columns:repeat(3,minmax(0,1fr))}.nx-calendar-grid button{padding:8px 2px;min-height:40px}.nx-calendar-grid span{font-size:12px;color:var(--nx-muted)}.nx-calendar button[aria-pressed=true]{background:var(--nx-success-bg);border-color:var(--nx-primary)}.nx-calendar button:disabled{opacity:.35}.nx-calendar-actions{display:flex;justify-content:flex-end;margin-top:16px}

.google-location-dropdown{margin:10px 0 16px}.google-location-dropdown .group-dropdown-panel{position:static;max-height:320px;margin-top:8px;min-width:0}.google-location-dropdown .group-dropdown-panel label{display:flex;align-items:flex-start;gap:10px;padding:10px;margin:0;border-radius:8px}.google-location-dropdown .group-dropdown-panel label:hover{background:var(--nx-bg)}.google-location-dropdown summary{min-height:46px;box-sizing:border-box;padding:12px 36px 12px 14px}.google-location-dropdown input{margin-top:3px;accent-color:var(--nx-primary)}

#employee-syrve-dropdown .group-dropdown-panel{max-height:360px;min-width:0}#employee-syrve-dropdown input{width:100%;box-sizing:border-box;margin-bottom:8px}#employee-syrve-results button{display:block;width:100%;text-align:left;border:0;background:transparent;color:inherit;padding:10px 12px;border-radius:8px;font:inherit;cursor:pointer}#employee-syrve-results button:hover,#employee-syrve-results button:focus-visible,#employee-syrve-results button[aria-pressed="true"]{background:var(--nx-bg);outline:1px solid var(--nx-border)}#employee-syrve-dropdown summary[aria-disabled="true"]{opacity:.6;cursor:default}

#motivation .card{padding:22px;margin-bottom:18px}#motivation .motivation-periods{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}#motivation .motivation-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}#motivation .motivation-stats strong{display:block;font-size:26px;margin-top:15px}#motivation .motivation-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}#motivation .motivation-person{display:block;width:100%;text-align:left;border:1px solid var(--nx-border);border-radius:12px;background:#fff;color:inherit;padding:16px;margin:10px 0;font:inherit;cursor:pointer}#motivation .motivation-person small{display:block;margin:8px 0;color:#657c75}#motivation .motivation-person[aria-pressed=true]{background:#f1f8f4;border-color:var(--nx-primary)}#motivation .motivation-progress{height:8px;background:#e5eeea;border-radius:8px;overflow:hidden;margin-top:12px}#motivation .motivation-progress>div{height:100%;background:#dbac39}#motivation .motivation-progress .complete{background:#61ad80}#motivation .motivation-metric{padding:16px 0;border-bottom:1px solid var(--nx-border)}#motivation .motivation-alerts p{padding:12px 0;border-bottom:1px solid var(--nx-border)}@media(max-width:1000px){#motivation .motivation-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#motivation .motivation-layout{grid-template-columns:1fr}}@media(max-width:480px){#motivation .motivation-stats{grid-template-columns:1fr}#motivation .card{padding:14px}}

#motivation .motivation-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}#motivation .motivation-values>div{background:#f4f8f6;border-radius:9px;padding:12px}#motivation .motivation-values b,#motivation .motivation-values small{display:block}#motivation .motivation-chart td{min-width:130px}@media(max-width:570px){#motivation .motivation-values{grid-template-columns:1fr}}

.motivation-chart-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.motivation-chart-card{display:block;text-align:left;min-width:0;width:100%;padding:18px;background:#fff;border:1px solid #d3e2db;border-radius:20px;color:inherit;cursor:pointer}
.motivation-chart-card h3{margin:0 0 12px}.motivation-chart-card svg,.motivation-large-plot svg{display:block;width:100%;height:auto}
.motivation-chart-legend{display:flex;gap:20px;font-weight:600;font-size:14px}
dialog.motivation-chart-modal{box-sizing:border-box;width:min(1100px,calc(100vw - 48px));max-width:1100px;height:auto;max-height:calc(100dvh - 56px);margin:auto;padding:24px;border:1px solid #d3e2db;border-radius:18px;overflow:auto;background:white;color:#102d2a;box-shadow:0 24px 80px #102d2a26}
.motivation-chart-modal::backdrop{background:#193d3580;backdrop-filter:blur(5px)}.motivation-chart-modal label{display:flex;flex-direction:column;gap:10px;max-width:380px}.motivation-chart-modal select{padding:14px;border:1px solid #cbded4;border-radius:12px;background:white;color:inherit}
.motivation-large-plot{max-width:1050px;margin:28px auto 12px}.motivation-chart-modal .guest-detail-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.motivation-chart-modal h2{font-size:23px;margin:0}.motivation-chart-modal .guest-detail-header button{flex:0 0 46px;width:46px;height:46px;padding:0;border-radius:12px}.motivation-chart-modal label{max-width:440px;font-size:13px;gap:6px}.motivation-chart-modal select{min-height:44px;padding:10px 12px;border-radius:8px}.motivation-chart-period{font-size:14px;color:#6c807b;margin:24px 0 0}
@media(max-width:700px){.motivation-chart-grid{grid-template-columns:1fr}dialog.motivation-chart-modal{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:18px}.motivation-chart-modal h2{font-size:20px}}

.motivation-pay-cards,.motivation-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.motivation-pay-cards[hidden]{display:none}@media(max-width:700px){.motivation-pay-cards,.motivation-overview{grid-template-columns:1fr}}

.motivation-pay-card{color:inherit;text-align:left;cursor:pointer;width:100%;font:inherit}.motivation-pay-card:focus-visible{outline:2px solid #197653;outline-offset:3px}

#motivation .motivation-layout{align-items:stretch}
#motivation .motivation-people .mapping-table{font-size:16px;line-height:1.5}
#motivation .motivation-people .mapping-table td{padding:30px 18px;height:122px;box-sizing:border-box;vertical-align:middle}
#motivation .motivation-people .mapping-table th{padding:18px;font-size:14px}
#motivation .motivation-people .mapping-table td:first-child{font-weight:600}
.motivation-detail-drawer .motivation-metric{padding:20px 0;border-bottom:1px solid var(--nx-border)}
.motivation-detail-drawer .motivation-detail-table{font-size:16px;line-height:1.5;min-width:0;width:100%;table-layout:fixed}
.motivation-detail-drawer .motivation-detail-table th{font-size:14px}
.motivation-detail-drawer .motivation-detail-table td,.motivation-detail-drawer .motivation-detail-table th{padding:16px 12px;overflow-wrap:anywhere}
.motivation-detail-drawer .motivation-progress{height:8px;background:#e5eeea;border-radius:8px;overflow:hidden;margin-top:12px}
.motivation-detail-drawer .motivation-progress>div{height:100%;background:#dbac39}
.motivation-detail-drawer .motivation-progress .complete{background:#61ad80}
@media(max-width:700px){#motivation .motivation-people .mapping-table{font-size:14px}#motivation .motivation-people .mapping-table td{padding:18px 10px;height:auto}.motivation-detail-drawer .motivation-detail-table{font-size:14px}}

#motivation .motivation-pay-cards,#motivation .motivation-overview{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px}
#motivation .motivation-stats .sales-kpi{box-sizing:border-box;min-width:0;min-height:140px;padding:22px;align-items:stretch}
#motivation .motivation-stats .sales-kpi strong{margin-top:0;font-size:27px}
@media(max-width:700px){#motivation .motivation-pay-cards,#motivation .motivation-overview{grid-template-columns:1fr}}

.motivation-detail-drawer .motivation-employee-row{background:#f4f8f6;border-radius:16px;padding:16px;margin:10px 0}
.motivation-detail-drawer .motivation-employee-row small{display:block;color:var(--nx-muted);font-size:13px;line-height:1.5;margin-top:7px}
.motivation-detail-drawer .motivation-employee-row .motivation-progress{margin-top:8px;height:7px}
.motivation-detail-drawer .motivation-employee-row .motivation-progress>div{background:#61ad80;border-radius:8px}
@media(max-width:480px){.motivation-detail-drawer .motivation-employee-row .sales-metric-line{flex-wrap:wrap;gap:6px 12px}}

#motivation .motivation-overview-item{padding:14px 22px;background:transparent;border:0;box-shadow:none;text-align:left;min-width:0}#motivation .motivation-overview-item>span{font-size:16px;color:var(--nx-text)}#motivation .motivation-overview-item>strong{display:block;margin-top:18px;font-size:27px;font-variant-numeric:tabular-nums}

.motivation-detail-drawer .motivation-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.motivation-detail-drawer .motivation-values>div{background:#f4f8f6;border-radius:9px;padding:12px;min-width:0;overflow-wrap:anywhere}.motivation-detail-drawer .motivation-values small,.motivation-detail-drawer .motivation-values b{display:block}@media(max-width:480px){.motivation-detail-drawer .motivation-values{gap:6px}.motivation-detail-drawer .motivation-values>div{padding:9px}}

/* Keep expanded motivation charts inside the viewport. */
dialog.motivation-chart-modal{height:calc(100dvh - 56px);overflow:hidden}dialog.motivation-chart-modal[open]{display:flex;flex-direction:column;gap:12px}.motivation-chart-modal .guest-detail-header{flex-shrink:0;margin-bottom:0}.motivation-chart-modal>label{flex-shrink:0;width:100%;box-sizing:border-box}.motivation-chart-modal .motivation-chart-period{flex-shrink:0;margin:0}.motivation-chart-modal .motivation-large-plot{flex:1;min-height:0;width:100%;max-width:none;margin:0}.motivation-large-plot>div{height:100%;min-height:0;display:flex;flex-direction:column;gap:8px}.motivation-large-plot .motivation-chart-legend{flex-shrink:0}.motivation-large-plot svg{flex:1;min-height:0;height:100%;width:100%}@media(max-width:700px){dialog.motivation-chart-modal{height:calc(100dvh - 24px)}}@media(max-height:500px){dialog.motivation-chart-modal{padding:12px;gap:6px;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.motivation-chart-modal .guest-detail-header button{height:32px}.motivation-chart-modal select{min-height:32px;padding:5px 10px}}

#payroll .fot-periods,#payroll .fot-switch{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}#payroll .fot-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}#payroll .fot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}#payroll .card{padding:22px;border:1px solid var(--nx-border);border-radius:18px;min-width:0}#payroll h2{font-size:22px;margin:0 0 18px}#payroll .fot-efficiency{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#payroll .sales-kpi{min-width:0;padding:20px;align-items:stretch}#payroll .sales-kpi strong{font-size:26px;overflow-wrap:anywhere}#payroll .fot-chart svg{width:100%;display:block}#payroll .fot-plan-form{display:flex;gap:10px;align-items:end;margin:14px 0}#payroll .fot-plan-form label{display:grid;gap:7px;flex:1;min-width:0}#payroll .fot-plan-form input{width:100%;box-sizing:border-box}#payroll .fot-breakdown-row{display:grid;width:100%;text-align:left;border:0;border-bottom:1px solid var(--nx-border);background:transparent;padding:16px 0;gap:8px;color:inherit}#payroll [aria-pressed=true]{background:#e5f5ec}#payroll .motivation-chart-legend span:first-child{color:#59a980}#payroll .motivation-chart-legend span:last-child{color:#b38525}@media(max-width:1050px){#payroll .fot-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#payroll .fot-grid{grid-template-columns:1fr}}@media(max-width:550px){#payroll .fot-efficiency{grid-template-columns:1fr}#payroll .sales-kpi{padding:12px}#payroll .sales-kpi strong{font-size:21px}#payroll .fot-plan-form{flex-wrap:wrap}}

#payroll .sales-kpi strong{white-space:normal;overflow-wrap:anywhere}#payroll .fot-plan-form input{min-width:0}

#payroll-plans .fot-month-plan{display:grid;grid-template-columns:minmax(180px,1fr) repeat(2,minmax(140px,1fr)) auto;gap:18px;align-items:end;border-bottom:1px solid var(--nx-border);padding:20px 0}#payroll-plans label{display:grid;gap:8px}#payroll-plans input{min-width:0;border:1px solid var(--nx-border);border-radius:12px;padding:13px;font:inherit}#payroll-plans h2{font-size:19px}#payroll-plans form p{grid-column:1/-1;margin:0}#payroll .fot-grid>.card:first-child{grid-column:1/-1}@media(max-width:700px){#payroll-plans .fot-month-plan{grid-template-columns:1fr}#payroll-plans form p{grid-column:auto}}

#payroll .fot-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:20px 0}#payroll .fot-toolbar .payroll-filters{display:flex;flex-wrap:wrap;gap:12px;margin:0;align-items:flex-end}#payroll .fot-toolbar .fot-periods{margin:0;gap:8px;align-items:center}#payroll .fot-toolbar .payroll-filters label{margin:0;min-width:0}#payroll .fot-toolbar select{width:210px;min-width:0}#payroll .fot-toolbar input[type=date]{width:155px;min-width:0;box-sizing:border-box}#payroll .fot-toolbar .fot-periods button{padding:12px 14px;white-space:nowrap;min-height:52px}@media(max-width:550px){#payroll .fot-toolbar .payroll-filters{width:100%}#payroll .fot-toolbar .payroll-filters label:first-child{width:100%}#payroll .fot-toolbar select{width:100%}#payroll .fot-toolbar .fot-periods{flex-wrap:wrap}}

.sales-week-comparison{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}.sales-week-comparison small{display:block;width:100%}.sales-week-comparison .sales-year-change{display:inline-block}

.sales-comparison-buttons{display:flex;flex-wrap:wrap;gap:13px;margin:18px 0}.sales-comparison-buttons .secondary-button{min-height:64px;padding:18px 23px;border:1px solid #b5cfc2;border-radius:13px;background:#fff;color:var(--nx-primary);font:inherit;line-height:1.4}.sales-comparison-buttons .secondary-button[aria-pressed=true]{background:var(--nx-success-bg);border-color:var(--nx-primary)}

.sales-comparison-buttons{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.4fr);gap:8px}.sales-comparison-buttons .secondary-button{width:100%;min-width:0;min-height:64px;padding:12px 8px;font-size:14px;white-space:normal;overflow-wrap:normal;text-align:center}@media(max-width:420px){.sales-comparison-buttons{gap:6px}.sales-comparison-buttons .secondary-button{padding:10px 5px;font-size:12px}}

.sales-heatmap-modes{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.sales-heatmap-modes [aria-pressed=true]{background:var(--nx-success-bg);border-color:var(--nx-primary)}.sales-heatmap-table{width:100%;border-spacing:4px;border-collapse:separate;table-layout:fixed}.sales-heatmap-table td,.sales-heatmap-table th{text-align:center;padding:8px 4px;font-size:13px;border:0;border-radius:5px;white-space:normal}.sales-heatmap-table th{font-weight:500}.sales-heatmap-table th:first-child{width:65px}.sales-heatmap small{display:block;margin-top:12px;color:var(--nx-muted)}@media(max-width:550px){.sales-heatmap-table{border-spacing:2px}.sales-heatmap-table td,.sales-heatmap-table th{font-size:10px;padding:7px 1px}.sales-heatmap-table th:first-child{width:40px}}

.sales-comparison-buttons .secondary-button{min-height:42px;padding:8px 10px;border-radius:10px;font-size:13px;line-height:1.3}@media(max-width:420px){.sales-comparison-buttons .secondary-button{min-height:40px;padding:7px 5px;font-size:11px}}

.payout-html-frame{display:block;width:100%;min-height:400px;border:0;background:#f4f6fa}.payout-upload-form{display:flex;align-items:end;flex-wrap:wrap;gap:16px;margin:24px 0}.payout-upload-form label{display:grid;gap:10px}.payout-file-info{margin:16px 0}#remuneration-payout .payout-view-status:empty{display:none}#remuneration-payout .payout-file-view:empty{display:none}

.payout-html-frame{background:#fff}

#remuneration-payout-settings .payout-upload-form label{min-width:0;max-width:100%}#remuneration-payout-settings input[type=file]{max-width:100%;font:inherit;color:var(--nx-muted);padding:0;border:0;background:transparent}#remuneration-payout-settings input[type=file]::file-selector-button{font:inherit;min-height:52px;padding:12px 22px;margin-right:14px;border:1px solid #b5cfc2;border-radius:12px;background:#fff;color:var(--nx-primary);cursor:pointer;transition:background .15s,border-color .15s}#remuneration-payout-settings input[type=file]::file-selector-button:hover{background:var(--nx-success-bg);border-color:var(--nx-primary)}#remuneration-payout-settings input[type=file]:focus-visible{outline:2px solid var(--nx-primary);outline-offset:4px;border-radius:12px}

.sidebar a[data-section="metrics"]{padding-left:10px;padding-right:10px}

@media(max-width:700px){#schedule-person-picker>input{font-size:16px;}.schedule-picker-results button{min-height:44px;}}
/* Organization and tasks: shared NAROX controls, responsive forms and dialogs. */
.tasks-content{display:grid;gap:20px;min-width:0;}
.task-inbox-toolbar{display:flex;justify-content:flex-end;align-items:center}.task-inbox-toolbar .task-new-button{width:auto;min-height:46px;padding:12px 24px}.task-definition-card .task-status-badge{white-space:normal;text-align:center;max-width:260px}#tasks .task-filters{grid-template-columns:repeat(3,minmax(110px,1fr)) minmax(170px,1.4fr) auto}#tasks .task-filters>button{min-height:46px;padding:12px 20px}@media(max-width:1000px){#tasks .task-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){#tasks .task-filters{grid-template-columns:minmax(0,1fr)}.task-inbox-toolbar .task-new-button{width:100%}.task-definition-card .task-status-badge{max-width:100%}}
.task-card{padding:20px;border:1px solid var(--nx-border,#d1e1da);border-radius:16px;min-width:0;overflow-wrap:anywhere;}
.task-form,.task-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;align-items:end;}
.task-form label,.task-filters label{display:flex;flex-direction:column;gap:7px;min-width:0;}
.task-form input,.task-form select,.task-form textarea,.task-filters input,.task-filters select,.task-dialog textarea{box-sizing:border-box;width:100%;font:inherit;padding:12px;border:1px solid var(--nx-border,#d1e1da);border-radius:12px;background:white;color:inherit;min-width:0;}
.task-form textarea,.task-dialog textarea{min-height:90px;resize:vertical;}
.task-form .task-check,.task-dialog .task-check{display:flex;flex-direction:row;align-items:center;gap:9px;}
.task-check input{width:22px;height:22px;flex-shrink:0;}
.task-policy,.task-weekdays,.task-checklist-editor,.task-form>.task-actions{grid-column:1/-1;}
.task-policy,.task-edit-list,.task-execution-list{border:1px solid var(--nx-border,#d1e1da);border-radius:12px;padding:16px;margin:12px 0;min-width:0;}
.task-policy{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;}
.task-weekdays{display:flex;gap:14px;flex-wrap:wrap;}
.task-weekdays label{flex-direction:row;align-items:center;}
.task-weekdays input{width:auto;}
.task-edit-item,.task-execution-item{padding:14px 0;border-bottom:1px solid var(--nx-border,#d1e1da);display:grid;gap:10px;}
.task-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.task-dialog{box-sizing:border-box;width:min(1150px,96vw);max-width:96vw;max-height:94dvh;overflow:auto;padding:24px;border:1px solid var(--nx-border,#d1e1da);border-radius:20px;color:var(--nx-text,#102d26);background:white;}
.task-dialog::backdrop{background:#0c211d88;backdrop-filter:blur(5px);}
.task-editor-dialog{width:min(640px,96vw);}
.task-editor-dialog .task-form{display:flex;flex-direction:column;align-items:stretch;gap:20px;}
.task-form-section{display:flex;flex-direction:column;gap:16px;min-width:0;margin:0;padding:18px;border:1px solid var(--nx-border,#d1e1da);border-radius:14px;}
.task-form-section>legend{padding:0 6px;font-weight:600;}
.task-editor-dialog .task-policy{grid-template-columns:minmax(0,1fr);margin:0;}
.task-editor-dialog .task-checklist-editor{min-width:0;}
.task-editor-dialog .task-edit-item{display:flex;flex-direction:column;gap:12px;}
.task-editor-dialog .task-weekdays{display:flex;flex-wrap:wrap;gap:12px;margin:0;}
.task-editor-dialog .task-weekdays label{flex-direction:row;align-items:center;}
.task-editor-dialog input[type=checkbox]{width:auto;flex-shrink:0;}
.task-editor-dialog [hidden]{display:none!important;}
.task-editor-dialog small{line-height:1.5;}
.task-editor-dialog .task-form-section>p{margin:0;font-size:.875em;}
.task-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;position:sticky;top:-24px;background:white;padding:12px 0;z-index:2;}
.task-dialog .card{margin:16px 0;}
.task-dialog p,.task-route p,.task-tree small{white-space:pre-wrap;overflow-wrap:anywhere;}

.task-inbox{display:grid;gap:12px;margin:20px 0}.task-inbox-card{position:relative;cursor:pointer;padding:8px 18px;border:1px solid var(--nx-border);border-left:4px solid var(--nx-primary);border-radius:16px;background:#fff;box-shadow:0 3px 14px #102d2406}.task-inbox-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.task-inbox-title{background:none;border:0;padding:0;margin:0;min-height:0;text-align:left;color:var(--nx-text);font-size:18px;font-weight:650;line-height:1.4;min-width:0;overflow-wrap:anywhere;cursor:pointer}.task-inbox-card:hover{border-color:var(--nx-primary);background:#fbfdfc}.task-inbox-card:focus-within{outline:2px solid var(--nx-primary);outline-offset:2px}.task-inbox-title:hover{color:var(--nx-primary);text-decoration:underline}.task-inbox-description{margin:4px 0;color:var(--nx-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5}.task-inbox-meta{display:flex;flex-wrap:wrap;gap:4px 20px;margin-top:4px;line-height:1.4;font-size:13px;color:var(--nx-muted)}.task-inbox-deadline{margin-left:auto}.task-inbox-deadline.is-late{color:#b73232}.task-status-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 11px;border-radius:20px;background:#edf3f1;color:#42615a;font-size:12px;line-height:1.4;font-weight:600;white-space:nowrap}.task-status-badge[data-status=open]{background:#e5f4ee;color:#176b50}.task-status-badge[data-status=submitted]{background:#eaf1ff;color:#315e9c}.task-status-badge[data-status=approved]{background:#dff4e4;color:#286b3c}.task-status-badge[data-status=late],.task-status-badge[data-status=rework]{background:#fff0e8;color:#a84a24}
.task-reader-dialog{box-sizing:border-box;width:min(1080px,96vw);max-width:1080px;max-height:94dvh;padding:28px}.task-reader-dialog .task-dialog-head{top:-28px;z-index:3;padding-bottom:20px;border-bottom:1px solid var(--nx-border)}.task-reader-dialog .task-dialog-head h2{font-size:26px;line-height:1.35;overflow-wrap:anywhere}.task-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:28px;margin-top:24px}.task-detail-main{min-width:0}.task-detail-description{line-height:1.65}.task-detail-sidebar{align-self:start;background:#f4f8f6;border:1px solid var(--nx-border);border-radius:16px;padding:20px;min-width:0}.task-detail-sidebar h3{font-size:15px;margin:18px 0}.task-detail-sidebar dt{font-size:12px;color:var(--nx-muted);margin-top:18px}.task-detail-sidebar dd{font-size:14px;line-height:1.5;margin:5px 0 0;overflow-wrap:anywhere}.task-detail-main>.task-card{margin:20px 0;padding:20px;box-shadow:none}.task-detail-main .task-timeline{margin-top:28px}.task-approval-details,.task-history-details{border-top:1px solid var(--nx-border);padding:20px 0}.task-approval-details>summary,.task-history-details>summary{cursor:pointer;font-weight:600}.task-detail-main .task-execution-list{border-radius:12px}.task-detail-main .task-check{font-size:15px;line-height:1.5}.task-detail-main .task-check input{width:20px;height:20px;flex-shrink:0;accent-color:var(--nx-primary)}
.task-scope-field{display:flex;flex-direction:column;gap:8px;min-width:0}.task-scope-picker{border:1px solid var(--nx-border);border-radius:12px;background:#fff;min-width:0}.task-scope-picker>summary{padding:13px 16px;cursor:pointer;line-height:1.5;overflow-wrap:anywhere;min-height:24px}.task-scope-picker>summary[aria-disabled=true]{cursor:default;color:var(--nx-muted)}.task-scope-picker>input[type=search]{box-sizing:border-box;width:calc(100% - 24px);margin:0 12px 12px;font-size:16px}.task-scope-options{max-height:260px;overflow-y:auto;padding:0 12px 12px}.task-scope-options .task-scope-option{display:flex;flex-direction:row;align-items:center;gap:12px;padding:12px 4px;min-height:24px;cursor:pointer;line-height:1.5}.task-scope-option input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;accent-color:var(--nx-primary)}.task-create-button{min-height:48px}
@media(max-width:700px){.task-reader-dialog{padding:16px;width:96vw}.task-reader-dialog .task-dialog-head{top:-16px}.task-reader-dialog .task-dialog-head h2{font-size:21px}.task-detail-layout{grid-template-columns:minmax(0,1fr);gap:18px;margin-top:18px}.task-detail-sidebar{grid-row:1;padding:16px}.task-detail-sidebar dl{display:grid;grid-template-columns:1fr 1fr;gap:6px 16px}.task-detail-sidebar dt{margin-top:10px}.task-detail-sidebar dd{margin-top:10px}.task-detail-main>.task-card{padding:14px}.task-inbox-card{padding:10px 12px}.task-inbox-heading{flex-wrap:wrap;gap:6px 12px}.task-inbox-title{font-size:17px}.task-inbox-meta{flex-direction:column;gap:4px}.task-inbox-deadline{margin-left:0}.task-scope-options{max-height:240px}}
.task-tree small{display:block;margin:4px 0 12px;}
.task-tree ul{padding-left:24px;}
.task-table td{vertical-align:top;white-space:normal;overflow-wrap:anywhere;}
.task-status{min-height:24px;}
.task-evidence{display:grid;gap:10px;margin:10px 0;}
.task-evidence video{width:min(100%,480px);max-height:45dvh;border-radius:12px;}
.task-evidence input[type=file]::file-selector-button{font:inherit;padding:10px;border:1px solid var(--nx-border,#d1e1da);border-radius:10px;background:white;color:inherit;}
@media(max-width:700px){.task-dialog{width:96vw;padding:16px;}.task-dialog-head{top:-16px;}.task-form,.task-filters,.task-policy{grid-template-columns:minmax(0,1fr);}.task-form input,.task-form textarea,.task-form select,.task-dialog textarea{font-size:16px;}.task-card{padding:14px;}.task-tree ul{padding-left:16px;}.task-actions button{min-height:44px;}}
#role-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:16px;}
.role-organization-fields:not([hidden]){display:contents;}
#role-form label{min-width:0;}
#role-form input:not([type=checkbox]),#role-form select{width:100%;box-sizing:border-box;}
#role-form .role-organization-check{display:flex;flex-direction:row;gap:10px;align-items:center;min-height:48px;}
#role-form .role-organization-check input{width:22px;height:22px;flex-shrink:0;}
@media(max-width:700px){#role-form{grid-template-columns:minmax(0,1fr);}#role-form input,#role-form select{font-size:16px;}}

.restaurant-group-filter{display:flex;flex-direction:column;gap:8px;max-width:360px;margin:16px 0}.restaurant-group-filter select{width:100%;min-width:0}

.sales-heatmap-filters{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.sales-heatmap-select{position:relative;min-width:230px}.sales-heatmap-select summary{cursor:pointer;border:1px solid #b4cdc0;border-radius:12px;padding:14px 18px}.sales-heatmap-options{position:absolute;z-index:20;top:100%;left:0;min-width:100%;max-height:320px;overflow:auto;padding:12px;background:white;border:1px solid #b4cdc0;border-radius:12px;box-shadow:0 8px 24px #153d3122}.sales-heatmap-options label{display:flex;align-items:center;gap:10px;padding:8px;white-space:nowrap}.sales-heatmap-options input{width:18px;height:18px;margin:0;flex:none}@media(max-width:550px){.sales-heatmap-select{width:100%}.sales-heatmap-options{max-width:100%;box-sizing:border-box}.sales-heatmap-options label{white-space:normal}}
.mobile-notification-inbox{width:min(94vw,640px);max-height:85vh;overflow:auto;border:1px solid #b5cfc2;border-radius:16px;padding:20px}.mobile-notification-row{display:block;width:100%;text-align:left;margin:10px 0}.mobile-notification-bell{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;min-height:44px;color:var(--nx-primary)}.mobile-notification-bell svg{display:block;flex-shrink:0}.mobile-notification-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;box-sizing:border-box;padding:0 5px;border-radius:10px;background:var(--nx-primary);color:#fff;font-size:11px;line-height:1;font-weight:600}

.task-duration-control{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,.65fr);gap:12px;align-items:end;min-width:0}

.task-execution-summary{margin:0 0 24px;color:var(--nx-text);font-variant-numeric:tabular-nums}
.task-execution-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:18px;border-bottom:1px solid var(--nx-border)}
.task-execution-summary-head h3{margin:0;font-size:18px;font-weight:650;line-height:1.4;letter-spacing:-.02em}
.task-execution-summary-head .task-execution-summary-scheduled{margin:5px 0 0;color:var(--nx-muted);font-size:13px;line-height:1.5}
.task-execution-summary-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:50%}
.task-execution-summary-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin:18px 0 0}
.task-execution-summary-row{min-width:0}.task-execution-summary-row dt{margin:0 0 5px;font-size:12px;font-weight:500;line-height:1.5;color:var(--nx-muted)}
.task-execution-summary-row dd{margin:0;font-size:14px;line-height:1.5;font-weight:600}.task-execution-summary-row time{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;overflow-wrap:anywhere}
.task-summary-time{font-weight:450;color:var(--nx-muted)}.task-execution-summary-row.is-late .task-summary-date,.task-execution-summary-row.is-late .task-summary-time{color:#a84a24}
@media(max-width:550px){.task-execution-summary-head{flex-direction:column;gap:12px}.task-execution-summary-badges{justify-content:flex-start;max-width:100%}.task-execution-summary-dates{grid-template-columns:minmax(0,1fr);gap:14px}.task-execution-summary-row dd{font-size:15px}}

.task-approval-details>h3{margin:0 0 12px;font-size:16px;line-height:1.4;font-weight:600}
.task-approver-names{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;margin:0;padding:0;font-size:15px;font-weight:500;line-height:1.6;overflow-wrap:anywhere}
.task-approver-empty{margin:0;font-size:14px;line-height:1.5;color:var(--nx-muted)}.task-approval-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;align-items:center}.task-approval-actions>p,.task-approval-actions>label{flex-basis:100%;margin:0}.task-approval-actions textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px}

.task-detail-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:18px 0 22px}
.task-detail-controls>button{justify-self:start;max-width:100%;white-space:normal;line-height:1.45}
.task-detail-controls>label{display:flex;flex-direction:column;gap:7px;min-width:0;color:var(--nx-muted);font-size:13px;line-height:1.5}
.task-detail-controls select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:46px;padding:11px 12px;border:1px solid var(--nx-border);border-radius:12px;background:#fff;color:var(--nx-text);font:inherit;font-size:15px}
.task-detail-sidebar dl>div{min-width:0}.task-detail-sidebar dl>div:first-child dt{margin-top:0}
.task-execution-comments{margin-top:22px}.task-execution-comments>h4{margin:0 0 12px}.task-execution-comments>label{display:flex;flex-direction:column;gap:7px}.task-execution-comments>button{margin-top:10px}
@media(max-width:700px){
 .task-reader-dialog{font-size:14px;line-height:1.55;padding:16px;border-radius:20px;max-height:94dvh}
 .task-reader-dialog .task-dialog-head{gap:12px;padding:10px 0 14px;align-items:flex-start}
 .task-reader-dialog .task-dialog-head h2{margin:4px 0 0;font-size:22px;font-weight:650;line-height:1.3;letter-spacing:-.02em;min-width:0}
 .task-reader-dialog .task-dialog-head>button{flex-shrink:0;min-height:44px;padding:10px 14px;font-size:14px;line-height:1.4}
 .task-reader-dialog .task-detail-layout{gap:20px;margin-top:18px}
 .task-reader-dialog .task-detail-sidebar{padding:14px;border-radius:14px}
 .task-reader-dialog .task-detail-sidebar h3{font-size:14px;margin:12px 0}
 .task-reader-dialog .task-detail-sidebar dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;margin:14px 0}
 .task-reader-dialog .task-detail-sidebar dt{margin:0 0 4px;font-size:12px;line-height:1.4}
 .task-reader-dialog .task-detail-sidebar dd{margin:0;font-size:13px;font-weight:500;line-height:1.5}
 .task-reader-dialog .task-detail-sidebar>button{min-height:44px;font-size:14px;padding:10px 14px}
 .task-reader-dialog .task-detail-main>h3{font-size:15px;line-height:1.4;margin:0 0 8px}
 .task-reader-dialog .task-detail-description{font-size:14px;line-height:1.6;margin:0 0 16px;overflow-wrap:anywhere}
 .task-reader-dialog .task-detail-main>p[role=status]:empty{display:none}
 .task-reader-dialog .task-detail-controls{gap:14px;margin:18px 0}
 .task-reader-dialog .task-detail-controls>button{width:100%;justify-self:stretch;min-height:46px;padding:11px 14px;font-size:14px}
 .task-reader-dialog .task-detail-controls select{font-size:16px;min-height:48px}
 .task-reader-dialog .task-detail-main>.task-card{margin:18px 0;padding:14px;border-radius:14px}
 .task-reader-dialog .task-execution-summary-head h3{font-size:17px;line-height:1.4}
 .task-reader-dialog .task-execution-summary-scheduled{font-size:13px}
 .task-reader-dialog .task-execution-summary-row dd{font-size:14px;line-height:1.5}
 .task-reader-dialog .task-execution-progress,.task-reader-dialog .task-execution-comments>h4{font-size:15px;font-weight:600;line-height:1.4}
 .task-reader-dialog .task-execution-comments>label{font-size:13px;color:var(--nx-muted)}
 .task-reader-dialog textarea{font-size:16px;line-height:1.5;min-height:96px}
 .task-reader-dialog .task-history-details,.task-reader-dialog .task-approval-details{padding:16px 0}
 .task-reader-dialog .task-history-details>summary,.task-reader-dialog .task-approval-details>h3{font-size:15px;line-height:1.5}
 .task-reader-dialog .task-history-details p{font-size:13px;line-height:1.65;overflow-wrap:anywhere}
 .task-reader-dialog .task-approver-names{font-size:14px;gap:6px 14px}
}
@media(max-width:360px){.task-reader-dialog .task-detail-sidebar dl{grid-template-columns:minmax(0,1fr)}.task-reader-dialog .task-detail-controls select{font-size:14px}}

.task-review-assignment{cursor:pointer}.task-inbox-card:active,.task-review-assignment:active{background:#f1f8f4}

dialog.task-camera-dialog{box-sizing:border-box;position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#101815;color:#fff;overflow:hidden}
dialog.task-camera-dialog[open]{display:flex;flex-direction:column;gap:0}.task-camera-dialog::backdrop{background:#101815}
.task-camera-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:calc(14px + env(safe-area-inset-top)) 18px 14px}.task-camera-head h2{margin:0;font-size:18px;line-height:1.4;font-weight:600;letter-spacing:0;color:#fff}.task-camera-head button{flex-shrink:0}
.task-camera-stage{flex:1;min-height:0;display:grid;place-items:center;overflow:hidden;background:#000}.task-camera-stage>video,.task-camera-preview,.task-camera-preview>img,.task-camera-preview>video{width:100%;height:100%;max-width:none;max-height:none;min-height:0;object-fit:contain}.task-camera-preview{display:grid;place-items:center;overflow:hidden}
.task-camera-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;padding:16px 18px calc(18px + env(safe-area-inset-bottom))}.task-camera-dialog button{min-height:48px;padding:12px 18px;border:1px solid #72877c;border-radius:12px;background:#213c30;color:#fff;font:inherit;font-size:15px;line-height:1.4;white-space:normal;cursor:pointer}.task-camera-actions button{flex:1;max-width:300px}.task-camera-actions button:last-child{background:#176b4c;border-color:#6fc89a}.task-camera-dialog button:disabled{opacity:.55;cursor:wait}.task-camera-notice{margin:0;padding:0 18px;font-size:14px;line-height:1.5;color:#f3d5af}.task-camera-notice:empty{display:none}

.task-camera-preview>canvas{width:100%;height:100%;max-width:none;max-height:none;min-height:0;object-fit:contain}
/* Keep task completion beside Close in the sticky reader header. */
.task-reader-dialog .task-dialog-head-actions{display:flex;align-items:stretch;gap:10px;flex-shrink:0}
.task-reader-dialog .task-dialog-head-actions button{min-height:46px;padding:11px 16px;font-size:14px;line-height:1.35;margin:0}
.task-reader-dialog .task-dialog-head-actions .task-done-button{background:#146b50;color:#fff;border:1px solid #146b50}
.task-reader-dialog .task-dialog-head-actions .task-close-button{background:#fff;color:#146b50;border:1px solid #adc8be}
.task-reader-dialog .task-dialog-head-actions button:disabled{opacity:.65;cursor:not-allowed}
@media(max-width:700px){.task-reader-dialog .task-dialog-head{flex-wrap:wrap}.task-reader-dialog .task-dialog-head h2{flex-basis:100%}.task-reader-dialog .task-dialog-head-actions{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto}.task-reader-dialog .task-dialog-head-actions button{padding:10px 12px;white-space:normal}}

/* Distinguish approval from returning a task for rework. */
.task-approval-actions .task-decision-approve{background:#146b50;color:#fff;border-color:#146b50}
.task-approval-actions .task-decision-approve:hover:not(:disabled){background:#10563f;border-color:#10563f}
.task-approval-actions .task-decision-reject{background:#b73232;color:#fff;border-color:#b73232}
.task-approval-actions .task-decision-reject:hover:not(:disabled){background:#982929;border-color:#982929}

.task-overview-row{cursor:pointer}.task-overview-row:hover,.task-overview-row:active{background:#f1f8f4}.task-overview-row:focus-visible{outline:2px solid #146b50;outline-offset:-2px}

.retention-file-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid #e1e9e5}.retention-file-row strong{flex:1 1 220px;overflow-wrap:anywhere}.retention-file-row span{color:#687b74;font-size:14px}#retention-files-content form{display:flex;align-items:end;gap:16px;flex-wrap:wrap}#retention-files-content label{display:grid;gap:8px;min-width:0;max-width:100%}#retention-files-content input{max-width:100%}
#retention-files-content input[type=file]{font:inherit;color:var(--nx-muted);padding:0;border:0;background:transparent;width:100%;min-height:54px}#retention-files-content input[type=file]::file-selector-button{font:inherit;min-height:54px;padding:12px 22px;margin-right:14px;border:1px solid #b5cfc2;border-radius:12px;background:#fff;color:var(--nx-primary);cursor:pointer;transition:background .15s,border-color .15s}#retention-files-content input[type=file]::file-selector-button:hover{background:var(--nx-success-bg);border-color:var(--nx-primary)}#retention-files-content input[type=file]:focus-visible{outline:2px solid var(--nx-primary);outline-offset:4px;border-radius:12px}#retention-files-content button{min-height:54px}#retention-files-content button:disabled,#retention-files-content input:disabled{opacity:.6;cursor:wait}@media(max-width:640px){#retention-files-content form{align-items:stretch}#retention-files-content form>label,#retention-files-content form>button{width:100%}}

.retention-call{min-width:280px;padding:10px 0;border-bottom:1px solid #e1e9e5}.retention-call p{margin:0 0 8px;font-size:13px}.retention-call audio{display:block;width:280px;max-width:100%;margin-bottom:8px}.retention-call small{display:block}#guest-calls-archive{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}

.guest-employee-badge{display:inline-flex;align-items:center;padding:5px 11px;border:1px solid #f0c6c2;border-radius:999px;background:#fce9e7;color:#a53934;font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap}

.retention-category-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 12px}.retention-category-tabs button{min-height:44px}.retention-category-tabs button[aria-pressed="true"]{background:#176c51;color:#fff;border-color:#176c51}.retention-category-tabs button[data-retention-category="lost"][aria-pressed="true"]{background:#a9443e;border-color:#a9443e}.retention-category-tabs button[data-retention-category="unreachable"][aria-pressed="true"]{background:#946416;border-color:#946416}
.retention-guest-panel{position:fixed;inset:0 0 0 auto;margin:0;width:min(560px,100%);max-width:100%;height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--nx-border);padding:24px;color:var(--nx-text);background:#fff;overflow-y:auto}.retention-guest-panel::backdrop{background:#0c241c55}.retention-panel-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.retention-panel-header h2{overflow-wrap:anywhere}.retention-outcome-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.retention-phone-button{font:inherit;color:var(--nx-primary);background:transparent;text-decoration:underline;text-underline-offset:3px;padding:6px 0}.retention-guest-panel audio{max-width:100%}

.retention-recording-download{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;color:#176d53;text-decoration:none}.retention-recording-download:hover{background:#e6f4ed}.retention-recording-download:focus-visible{outline:2px solid #176d53;outline-offset:2px}

.retention-guest-row{cursor:pointer}.retention-guest-row:hover{background:#f0f7f3}.retention-guest-row:focus-visible{outline:2px solid var(--nx-primary);outline-offset:-2px}

#guest-retention-export{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}

.retention-toolbar{display:grid;grid-template-columns:minmax(0,1fr) clamp(180px,14vw,220px);gap:12px;align-items:start;margin:20px 0 12px}.retention-toolbar .retention-category-tabs{margin:0;flex-wrap:nowrap;gap:6px}.retention-toolbar .retention-category-tabs .secondary-button{min-width:0;min-height:44px;padding:10px;font-size:12px;line-height:1.3;white-space:nowrap;flex:0 0 auto}.retention-phone-search{min-width:0}.retention-phone-search #retention-phone-search{width:100%;min-width:0}.retention-phone-search .field-hint{margin:8px 0 0}
@media(max-width:1279px){.retention-toolbar{grid-template-columns:minmax(0,1fr)}.retention-phone-search{grid-row:1;width:100%}.retention-toolbar .retention-category-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.retention-toolbar .retention-category-tabs .secondary-button{white-space:normal;min-height:48px;text-align:center;padding:12px}}
@media(max-width:600px){.retention-toolbar .retention-category-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.retention-toolbar [data-retention-category="declined"]{grid-column:1/-1}.retention-toolbar .retention-category-tabs .secondary-button{font-size:13px}}


.retention-call-player{display:flex;align-items:center;gap:8px;min-width:0}.retention-call-player audio{flex:1 1 240px;min-width:0;width:280px;margin:0}.retention-call-player .retention-recording-download{flex:0 0 40px}.retention-guest-details{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,1.25fr);gap:12px 18px;margin:24px 0}.retention-guest-details dt{color:var(--nx-muted)}.retention-guest-details dd{margin:0;overflow-wrap:anywhere}.retention-panel-calls .retention-call{min-width:0}.retention-panel-calls .retention-call p{line-height:1.5;color:var(--nx-muted)}
@media(max-width:420px){.retention-guest-details{grid-template-columns:minmax(0,1fr);gap:4px}.retention-guest-details dd{margin-bottom:10px}}

.retention-category-tabs button[data-retention-category="declined"][aria-pressed="true"]{background:#775e70;border-color:#775e70;color:#fff}

.retention-category-tabs button[data-retention-category="declined"][aria-pressed="true"]{background:#73616b;border-color:#73616b}

#guest-calls-form #guest-retention-export{gap:8px;min-height:44px;box-sizing:border-box}#guest-retention-export svg{flex:none}@media(max-width:600px){#guest-calls-form>a{width:100%;box-sizing:border-box;text-align:center}}

#guest-calls-form #guest-calls-archive,#guest-calls-form #guest-retention-export{display:inline-flex;align-items:center;justify-content:center;gap:10px}#guest-calls-form>a svg{flex:0 0 22px}

.retention-guest-orders {margin-block:24px;min-width:0}.retention-order-card {padding-block:16px;border-top:1px solid var(--border,#d1e1da);overflow-x:auto}.retention-guest-orders table {font-size:13px;width:100%}
.telegram-recipients{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;margin:18px 0}.telegram-recipient,.telegram-stream{border:1px solid var(--border,#c7d8d1);border-radius:18px;padding:20px;min-width:0}.telegram-field{display:grid;gap:7px;margin:12px 0}.telegram-field input,.telegram-add-recipient select{width:100%;min-width:0;padding:12px;border:1px solid #b8cfc6;border-radius:10px;background:white;color:inherit;font:inherit}.telegram-check{display:flex;align-items:flex-start;gap:10px;margin:12px 0}.telegram-check input{flex:none;width:18px;height:18px;margin:2px 0;accent-color:#176c53}.telegram-check span{overflow-wrap:anywhere}.telegram-add-recipient{display:grid;grid-template-columns:180px minmax(180px,1fr) auto;gap:12px;align-items:center}.telegram-streams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}.telegram-stream h3{margin-top:0}.telegram-stream-recipients{margin-top:18px}.telegram-recipient summary{cursor:pointer}.telegram-recipient .history-buttons{justify-content:space-between}.telegram-recipient strong{overflow-wrap:anywhere;min-width:0}@media(max-width:700px){.telegram-add-recipient,.telegram-streams{grid-template-columns:1fr}.telegram-recipient,.telegram-stream{padding:15px}.telegram-add-recipient button{width:100%}}
.telegram-options{display:grid;gap:4px;max-height:340px;overflow:auto;margin-top:18px;padding:6px 0}.telegram-options .telegram-check{padding:8px 0;margin:0}.telegram-stream .telegram-field{margin:18px 0}.telegram-stream h2{margin-top:0}.telegram-options p{font-size:.9em;color:#60766c}
.telegram-choice-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:6px 0}.telegram-choice-row>.telegram-check,.telegram-choice-row>span{flex:1 1 160px;min-width:0;overflow-wrap:anywhere}.telegram-remove-recipient{font-size:.85em;padding:9px 12px;min-height:38px}.telegram-options h3{margin:18px 0 4px}@media(max-width:500px){.telegram-remove-recipient{width:100%}}
.telegram-recipient-dropdown{margin:18px 0}.telegram-recipient-dropdown summary{font:inherit;padding:12px 36px 12px 14px;min-height:46px}.telegram-recipient-dropdown .telegram-options{display:block;margin:0;padding:12px;min-width:0;width:100%;max-height:280px}.telegram-recipient-dropdown .telegram-check{display:flex;padding:10px 6px}.telegram-recipient-dropdown .telegram-check:hover{background:#f0f7f3;border-radius:8px}.telegram-saved-recipients{margin-top:20px}.telegram-saved-recipients h3{margin:0 0 10px}.telegram-recipient-pending{opacity:.55}.telegram-stream:has(.telegram-recipient-dropdown[open]){overflow:visible}

.registration-report-preview{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.6;margin-top:20px}#registration-mailings .telegram-streams{grid-template-columns:1fr}#registration-mailings input[type="time"],#registration-mailings input[type="date"]{display:block;max-width:100%;margin:10px 0 20px}

#registration-mailings > [data-registration-mailings-content] > .connection-card{margin-top:20px}#registration-mailings input[type="time"]{box-sizing:border-box;min-height:46px;padding:12px 14px;border:1px solid var(--nx-border);border-radius:10px;background:var(--nx-surface);color:var(--nx-text);font:inherit}#registration-mailings .telegram-check{margin-bottom:20px}

/* Telegram report pickers use the same vector chevron as standard selects. */
:is(#telegram-mailings,#registration-mailings,#additional-mailings) .telegram-recipient-dropdown summary::after{content:"";position:absolute;right:14px;top:50%;width:12px;height:12px;background:center/12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23515157' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");transform:translateY(-50%);transition:transform .15s ease;pointer-events:none}
:is(#telegram-mailings,#registration-mailings,#additional-mailings) .telegram-recipient-dropdown[open] summary::after{transform:translateY(-50%) rotate(180deg)}
@media(prefers-reduced-motion:reduce){:is(#telegram-mailings,#registration-mailings,#additional-mailings) .telegram-recipient-dropdown summary::after{transition:none}}

#additional-mailings .telegram-streams{grid-template-columns:1fr;margin-bottom:0}#additional-mailings [data-additional-mailing]{margin-bottom:32px;padding-bottom:28px;border-bottom:1px solid var(--nx-border)}#additional-mailings input[type="time"]{box-sizing:border-box;min-height:46px;padding:12px 14px;border:1px solid var(--nx-border);border-radius:10px;background:var(--nx-surface);color:var(--nx-text);font:inherit;display:block;margin:10px 0 20px}#additional-mailings [data-additional-mailing]>.connection-card{margin-top:16px}#additional-mailings .telegram-check{margin-bottom:20px}

.workspace-nav .nav-links.telegram-tabs{flex:1;min-width:0;flex-wrap:wrap;gap:8px;align-items:stretch}
.workspace-nav .nav-links.telegram-tabs a{display:flex;align-items:center;box-sizing:border-box;flex:0 1 260px;max-width:260px;min-width:0;min-height:56px;padding:10px 12px;white-space:normal;overflow-wrap:break-word;line-height:1.45}
.workspace-nav .nav-links.telegram-tabs a[hidden]{display:none}
@media(max-width:640px){.workspace-nav .nav-links.telegram-tabs a{flex:1 1 160px;max-width:none;font-size:12px}}

/* Supplied food-cost prototype: isolate its complete document from application styles. */
.foodcost-margin-page{min-width:0;width:100%;}
.foodcost-page-title{font-size:40px;letter-spacing:-1.4px;margin:48px 0 0;font-weight:600}.foodcost-demo-note{font-size:13px;color:var(--nx-muted);margin:12px 0 0}@media(max-width:640px){.foodcost-page-title{font-size:34px;margin-top:32px}}
.foodcost-prototype{display:block;width:100%;height:1000px;border:0;background:#fff;}

.restaurant-picker-row{display:flex;flex-wrap:wrap;gap:16px;margin:18px 0;align-items:end}.restaurant-picker-row>label,.restaurant-group-filter{min-width:170px;max-width:100%;}.restaurant-picker-row label{display:grid;gap:8px}.restaurant-picker-row select,.restaurant-group-filter select{width:100%;min-height:44px}.task-scope-picker>.restaurant-group-filter,.sales-heatmap-select>.restaurant-group-filter{margin:10px} @media(max-width:600px){.restaurant-picker-row>label{flex:1 1 140px}.restaurant-group-filter{min-width:140px}}

/* Keep brand, restaurant and date controls on a common baseline. */
.restaurant-group-filter{margin:0}
.ratings-filters>label{align-self:end;margin-block:0}
.ratings-filters>label>select,.ratings-filters>label>input{box-sizing:border-box;height:48px;min-height:48px}

.foodcost-ranking-dialog{width:min(1400px,96vw);max-width:96vw;height:min(850px,90dvh);max-height:90dvh;padding:0;border:1px solid var(--nx-border);border-radius:18px;color:var(--nx-text);background:#fff;overflow:hidden}.foodcost-ranking-dialog::backdrop{background:#0c211d66}.foodcost-ranking-dialog[open]{display:flex;flex-direction:column}.foodcost-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px;border-bottom:1px solid var(--nx-border);flex:none}.foodcost-dialog-header h2{font-size:22px;letter-spacing:-.4px}.foodcost-dialog-header button{flex:none}.foodcost-dialog-scroll{flex:1;min-height:0;overflow:auto}.foodcost-ranking-dialog table{width:100%;border-collapse:collapse;table-layout:fixed}.foodcost-ranking-dialog th{position:sticky;top:0;background:var(--nx-bg);z-index:1;text-align:left;font-size:13px;font-weight:500}.foodcost-ranking-dialog th,.foodcost-ranking-dialog td{padding:16px 12px;border-bottom:1px solid var(--nx-border);overflow-wrap:anywhere}.foodcost-ranking-dialog th:first-child{width:6%}.foodcost-ranking-dialog th:nth-child(2){width:28%}.foodcost-ranking-dialog th:nth-child(n+3){width:16.5%}.foodcost-ranking-dialog td{font-size:14px}.foodcost-ranking-dialog .numeric{text-align:right;font-variant-numeric:tabular-nums}.foodcost-ranking-dialog small{display:block;color:var(--nx-muted);margin-top:6px}.foodcost-column-sort{border:0;background:transparent;color:inherit;text-align:inherit;font:inherit;padding:0;cursor:pointer}@media(max-width:600px){.foodcost-dialog-header{padding:14px}.foodcost-dialog-header h2{font-size:18px}.foodcost-ranking-dialog th,.foodcost-ranking-dialog td{padding:12px 4px;font-size:11px}}

.foodcost-dish-link{background:none;border:0;padding:0;text-align:left;color:var(--nx-text);font:inherit;font-weight:600;cursor:pointer}.foodcost-dish-link:hover{color:var(--nx-primary);text-decoration:underline}.foodcost-breakdown-dialog th:first-child{width:28%}.foodcost-breakdown-dialog th:nth-child(n+2){width:14.4%}

/* Product details use the same right-side drawer pattern as other analytics. */
.foodcost-breakdown-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(1050px,94vw);max-width:100vw;height:100dvh;max-height:100dvh;border-radius:18px 0 0 18px;border:0;border-left:1px solid var(--nx-border);box-shadow:-12px 0 40px #0c211d22}.foodcost-breakdown-dialog .foodcost-dialog-header{padding:24px}.foodcost-breakdown-dialog .foodcost-dialog-scroll{padding:0 12px}.foodcost-breakdown-dialog::backdrop{background:#0c211d55}@media(max-width:600px){.foodcost-breakdown-dialog{width:100vw;border-radius:0}.foodcost-breakdown-dialog .foodcost-dialog-header{padding:16px}.foodcost-breakdown-dialog .foodcost-dialog-scroll{padding:0 4px}}

.foodcost-recipe-history .recipe-history-content{padding:20px 24px 32px}.recipe-history-content>p{color:var(--nx-muted);line-height:1.6;margin-top:0}.recipe-history-summary{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0 24px}.recipe-history-summary>div{display:grid;gap:12px;padding:20px;border:1px solid var(--nx-border);border-radius:14px}.recipe-history-summary span{color:var(--nx-muted);font-size:13px}.recipe-history-summary strong{font-size:24px;font-weight:600}.recipe-history-empty{padding:20px;background:var(--nx-bg);border-radius:14px}.recipe-history-event{padding:22px;border:1px solid var(--nx-border);border-radius:16px;margin:18px 0}.recipe-history-event h3{font-size:18px;margin:0 0 12px}.recipe-history-event h4{font-size:15px;color:var(--nx-primary);margin:22px 0 10px}.recipe-history-event p{color:var(--nx-muted);font-size:13px;line-height:1.5}.recipe-history-event ul{list-style:none;padding:0;margin:0}.recipe-history-event li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:14px 0;border-bottom:1px solid var(--nx-border);font-size:14px}.recipe-history-event li:last-child{border-bottom:0}.recipe-history-event li strong{font-weight:500}.recipe-history-event li span{font-variant-numeric:tabular-nums}.recipe-history-event li small{grid-column:1/-1;margin:0}@media(max-width:600px){.foodcost-recipe-history .recipe-history-content{padding:16px}.recipe-history-summary{grid-template-columns:1fr}.recipe-history-event{padding:16px}.recipe-history-event li{grid-template-columns:1fr}}

.foodcost-venue-costs{margin:20px 0 24px;padding:18px;border:1px solid var(--nx-border);border-radius:14px;background:var(--nx-bg)}.foodcost-dialog-scroll>.foodcost-venue-costs{margin:18px 10px 24px}.foodcost-venue-costs h3{font-size:18px;font-weight:600;margin:0 0 16px}.foodcost-venue-costs table{width:100%;table-layout:fixed;border-collapse:collapse}.foodcost-venue-costs th{position:static;background:transparent;font-size:12px;color:var(--nx-muted)}.foodcost-venue-costs th,.foodcost-venue-costs td{padding:14px 8px;overflow-wrap:anywhere;border-bottom:1px solid var(--nx-border)}.foodcost-venue-costs th:first-child{width:28%}.foodcost-venue-costs th:nth-child(n+2){width:24%}.foodcost-venue-costs tr:last-child td{border-bottom:0}.foodcost-cost-link{background:none;border:0;padding:4px 0;text-align:left;color:var(--nx-primary);font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.foodcost-venue-costs .cost-increase{color:var(--nx-danger)}.foodcost-venue-costs .cost-decrease{color:var(--nx-primary)}.recipe-history-summary{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
/* Pin the whole heading row so all sortable labels share one top edge. */
.foodcost-dialog-scroll>table{border-collapse:separate;border-spacing:0}
.foodcost-dialog-scroll>table>thead{position:sticky;top:0;z-index:3;background:var(--nx-bg)}
.foodcost-dialog-scroll>table>thead>tr>th{position:static;background:var(--nx-bg)}
.recipe-baseline-form{display:grid;gap:12px;padding:18px;margin-bottom:22px;border:1px solid var(--nx-border);border-radius:14px;background:var(--nx-bg)}
.recipe-baseline-form label{display:grid;gap:6px;font-size:13px}.recipe-baseline-form input{min-width:0;width:100%;box-sizing:border-box;padding:10px;border:1px solid var(--nx-border);border-radius:8px;background:#fff;color:var(--nx-text)}
.recipe-baseline-form .submit-button{width:auto;justify-self:start;padding:12px 18px}

/* Shared branded filter dropdowns. */
.nx-select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;clip-path:inset(50%);overflow:hidden;opacity:0;pointer-events:none}
.nx-select-trigger,.filters input[type="date"],#sales [data-sales-filters] input[type="date"]{position:relative;display:block;width:100%;min-width:0;min-height:46px;border:1px solid var(--nx-border);border-radius:10px;background:#fff;color:var(--nx-text);padding:12px 34px 12px 12px;font:inherit;font-size:14px;font-weight:400;line-height:20px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.nx-select-trigger::after{content:'';position:absolute;right:14px;top:calc(50% - 4px);width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.nx-select-trigger:hover{border-color:#a1b9ad}.nx-select-trigger:focus-visible,.nx-select-trigger[aria-expanded=true]{outline:2px solid var(--nx-primary);outline-offset:2px}.nx-select-trigger:disabled{opacity:.55;cursor:not-allowed}
.nx-select-popup{position:fixed;inset:auto;margin:0;padding:6px;box-sizing:border-box;overflow:auto;border:1px solid var(--nx-border);border-radius:12px;background:var(--nx-surface);color:var(--nx-text);box-shadow:var(--nx-shadow);z-index:50}
.nx-select-popup button{display:block;width:100%;min-height:38px;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:var(--nx-text);font:inherit;font-size:14px;font-weight:400;text-align:left;cursor:pointer}
.nx-select-popup button:hover,.nx-select-popup button:focus-visible,.nx-select-popup button[aria-selected=true]{outline:none;background:var(--nx-success-bg);color:var(--nx-primary)}.nx-select-popup button:disabled{opacity:.4;cursor:not-allowed}

.purchase-history-drawer{margin:0 0 0 auto;inset:0 0 0 auto;width:min(800px,96vw);max-width:96vw;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid var(--nx-border);border-radius:20px 0 0 20px;background:var(--nx-surface);color:var(--nx-text);box-shadow:-12px 0 48px #0c211d26;overflow:hidden}
.purchase-history-drawer::backdrop{background:#0c211d66;backdrop-filter:blur(3px)}.purchase-history-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:25px 28px;border-bottom:1px solid var(--nx-border);height:auto}.purchase-history-header small{color:var(--nx-muted);font-size:12px}.purchase-history-header h2{font-size:26px;margin:7px 0;letter-spacing:-.6px;overflow-wrap:anywhere}.purchase-history-header p{font-size:13px;color:var(--nx-muted);margin:0;line-height:1.5}.purchase-history-header button{flex-shrink:0}.purchase-history-content{height:calc(100% - 136px);overflow:auto;padding:22px 28px 40px;outline:none}.purchase-history-demo{margin:0 0 20px;padding:12px 14px;background:var(--nx-success-bg);border-radius:10px;color:var(--nx-primary);font-size:12px;line-height:1.6}.purchase-history-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px}.purchase-history-summary>div{border:1px solid var(--nx-border);border-radius:14px;padding:18px;display:grid;gap:12px}.purchase-history-summary span{font-size:12px;color:var(--nx-muted)}.purchase-history-summary strong{font-size:22px;font-weight:600;overflow-wrap:anywhere}.purchase-history-tools{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:24px 0 18px}.purchase-history-tools>p{font-size:13px;color:var(--nx-muted);margin:0}.purchase-history-tabs{display:flex;flex-wrap:wrap;gap:7px}.purchase-history-tabs button{font-size:12px;padding:10px 12px}.purchase-history-tabs button[aria-pressed=true]{background:var(--nx-primary);color:white;border-color:var(--nx-primary)}.purchase-history-period{border:1px solid var(--nx-border);border-radius:14px;margin-bottom:16px;overflow:hidden}.purchase-history-period-head{background:var(--nx-bg);padding:16px 18px;border-bottom:1px solid var(--nx-border)}.purchase-history-period-head h3{font-size:16px;font-weight:600;margin:0 0 5px}.purchase-history-period-head p{font-size:12px;color:var(--nx-muted);margin:0}.purchase-history-table{overflow:auto}.purchase-history-table table{width:100%;border-collapse:collapse;font-size:12px}.purchase-history-table th,.purchase-history-table td{padding:13px 12px;text-align:left;border-bottom:1px solid var(--nx-border);vertical-align:top;line-height:1.5}.purchase-history-table th{font-size:11px;color:var(--nx-muted);font-weight:500}.purchase-history-table tbody tr:last-child td{border-bottom:0}.purchase-history-table td strong{font-weight:500;display:block}.purchase-history-table td small{display:block;color:var(--nx-muted);font-size:11px;margin-top:4px}.purchase-history-table td.numeric{text-align:right;white-space:nowrap}.purchase-history-table td:last-child{color:var(--nx-primary);font-weight:600}@media(max-width:600px){.purchase-history-drawer{width:100vw;max-width:100vw;border-radius:0}.purchase-history-header{padding:18px 16px}.purchase-history-header h2{font-size:22px}.purchase-history-content{padding:16px 14px 32px}.purchase-history-summary>div{padding:14px}.purchase-history-summary strong{font-size:18px}.purchase-history-table table{min-width:580px}.purchase-history-tools{align-items:flex-start}.purchase-history-tabs{width:100%}.purchase-history-tabs button{flex:1}.purchase-history-period-head{padding:14px}}

.purchase-history-drawer[open]{display:flex;flex-direction:column}.purchase-history-header{flex-shrink:0}.purchase-history-content{height:auto;flex:1;min-height:0}

@media(max-width:600px){.purchase-history-table table,.purchase-history-table tbody{display:block;min-width:0}.purchase-history-table thead{display:none}.purchase-history-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:14px;gap:14px;border-bottom:1px solid var(--nx-border)}.purchase-history-table tbody tr:last-child{border-bottom:0}.purchase-history-table td{display:block;border:0;padding:0;text-align:left;overflow-wrap:anywhere}.purchase-history-table td::before{content:attr(data-label);display:block;font-size:11px;font-weight:400;color:var(--nx-muted);margin-bottom:5px}.purchase-history-table td:nth-child(3){grid-column:1/-1}.purchase-history-table td.numeric{text-align:left}.purchase-history-table td:last-child{text-align:right}}

.purchase-history-table td.purchase-price-down{color:var(--nx-primary)}.purchase-history-table td.purchase-price-up{color:var(--nx-danger)}.purchase-history-table td.purchase-price-same{color:var(--nx-text)}

/* Receipt history: price movement first, compact document details. */
.purchase-history-period-head{padding:12px 16px}.purchase-history-period-head h3{margin-bottom:0}.purchase-history-period-head p{margin-top:5px}.purchase-receipt{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px 18px;border-bottom:1px solid var(--nx-border)}.purchase-receipt:last-child{border-bottom:0}.purchase-receipt-info{min-width:0}.purchase-receipt-supplier{font-size:14px;font-weight:600;display:block;overflow-wrap:anywhere}.purchase-receipt-info p{font-size:12px;color:var(--nx-muted);margin:7px 0 5px;line-height:1.5}.purchase-receipt-info>small{font-size:11px;color:var(--nx-muted);line-height:1.5;display:block}.purchase-receipt-prices{flex-shrink:0;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:7px}.purchase-receipt-prices>strong{font-size:25px;font-weight:650;line-height:1.2;color:var(--purchase-trend,var(--nx-text));font-variant-numeric:tabular-nums;letter-spacing:-.5px}.purchase-receipt-prices>small{font-size:11px;color:var(--nx-muted)}.purchase-trend-down{--purchase-trend:var(--nx-primary);--purchase-tint:#e6f7ec}.purchase-trend-up{--purchase-trend:var(--nx-danger);--purchase-tint:#fff0ed}.purchase-trend-same{--purchase-trend:var(--nx-text);--purchase-tint:#f0f4f2}.purchase-price-change{padding:5px 8px;border-radius:7px;background:var(--purchase-tint);color:var(--purchase-trend);font-size:12px;font-weight:500;white-space:nowrap}.purchase-price-chart{margin:28px 0 0;padding:20px 18px;border:1px solid var(--nx-border);border-radius:16px;background:white}.purchase-chart-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.purchase-chart-heading h3{font-size:19px;font-weight:600;margin:0 0 7px;letter-spacing:-.4px}.purchase-chart-heading p{font-size:12px;color:var(--nx-muted);margin:0}.purchase-chart-total{padding:7px 9px;border-radius:8px;background:var(--purchase-tint);color:var(--purchase-trend);font-size:13px;font-weight:600}.purchase-price-chart svg{display:block;width:100%;height:auto;margin-top:20px;overflow:visible}.purchase-chart-grid{stroke:var(--nx-border);stroke-width:1}.purchase-chart-label{font-size:11px;fill:var(--nx-muted);font-family:inherit}.purchase-chart-line{stroke-width:3;stroke-linecap:round}.purchase-chart-up{stroke:var(--nx-danger)}.purchase-chart-down{stroke:var(--nx-primary)}.purchase-chart-same{stroke:var(--nx-text)}.purchase-chart-point{fill:white;stroke:var(--nx-text);stroke-width:2;cursor:pointer}.purchase-chart-point:focus,.purchase-chart-point:hover{fill:var(--nx-mint);stroke-width:3;outline:none}.purchase-chart-detail{padding:12px 14px;background:var(--nx-bg);border-radius:10px;display:grid;gap:5px;font-size:13px}.purchase-chart-detail strong{font-weight:600}.purchase-chart-detail span{font-size:12px;color:var(--nx-muted)}.purchase-chart-legend{display:flex;gap:15px;flex-wrap:wrap;font-size:11px;margin:16px 0 10px}.purchase-chart-legend span{display:flex;align-items:center;gap:6px;color:var(--nx-muted)}.purchase-chart-legend span::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--purchase-trend)}.purchase-price-chart>p{font-size:11px;color:var(--nx-muted);line-height:1.5;margin-bottom:0}@media(max-width:600px){.purchase-receipt{padding:15px 13px;align-items:flex-start;gap:10px;flex-wrap:wrap}.purchase-receipt-info{flex:1 1 130px}.purchase-receipt-prices>strong{font-size:23px}.purchase-receipt-prices{max-width:100%}.purchase-price-change{font-size:11px}.purchase-price-chart{padding:17px 12px}.purchase-chart-heading h3{font-size:18px}.purchase-chart-label{font-size:14px}}

.purchase-receipt-review{padding:16px;border:1px solid var(--nx-border);border-radius:14px;margin-bottom:18px;display:grid;gap:14px}.purchase-review-check{display:flex;align-items:center;gap:10px;cursor:pointer}.purchase-review-check input{width:18px;height:18px;min-height:18px;accent-color:var(--nx-primary)}.purchase-receipt-review textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:90px;padding:12px;font:inherit;border:1px solid var(--nx-border);border-radius:10px;color:var(--nx-text);background:white}.purchase-receipt-review>small{color:var(--nx-muted);line-height:1.5}

.purchase-voice-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.purchase-voice-controls small{flex:1 1 190px;color:var(--nx-muted)}.purchase-voice-controls audio{width:100%;max-width:420px}.purchase-voice-controls [role=alert]{color:var(--nx-danger);width:100%}

.sync-picker .field-hint{display:block;margin:6px 0 0 20px;line-height:1.5}

#writeoff-control .writeoff-sticky-toolbar{position:sticky;top:0;z-index:15;display:flex;justify-content:flex-end;padding:10px 0 12px;background:var(--nx-surface);border-bottom:1px solid var(--nx-border);margin-bottom:16px}
#writeoff-reset{min-height:44px;padding:10px 16px;border:1px solid var(--nx-primary);border-radius:10px;background:var(--nx-primary);color:#fff;font:inherit;cursor:pointer}
#writeoff-reset:hover{background:var(--nx-primary-hover)}
@media(max-width:700px){#writeoff-control .writeoff-sticky-toolbar{top:52px}}

/* Writeoff review shares the purchase drawer, with one editor and full history. */
#writeoff-review-drawer{width:min(1000px,96vw);padding:0;gap:0}
#writeoff-review-drawer .purchase-history-content{overflow:auto}
#writeoff-review-drawer .writeoff-review-context{margin:0;font-size:13px;color:var(--nx-muted);overflow-wrap:anywhere}
#writeoff-review-drawer textarea{width:100%;min-height:110px;font:inherit;padding:14px;border:1px solid var(--nx-border);border-radius:12px;resize:vertical}
#writeoff-review-drawer .writeoff-voice-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
#writeoff-review-drawer .writeoff-voice-controls small{color:var(--nx-muted);flex:1;min-width:180px}
#writeoff-review-drawer audio{max-width:100%}
#writeoff-review-drawer .is-current{background:var(--nx-success-bg,#e4f5ed)}
#writeoff-review-drawer .writeoff-review-footer{flex-shrink:0;padding:16px 28px;border-top:1px solid var(--nx-border);background:var(--nx-surface)}
#writeoff-review-drawer .writeoff-review-footer .submit-button{margin:0}
#writeoff-review-drawer .writeoff-review-footer p{margin:8px 0 0;font-size:12px;color:var(--nx-muted)}
#writeoff-review-drawer .writeoff-review-footer p:empty{display:none}
@media(max-width:600px){#writeoff-review-drawer{width:100vw;max-width:100vw}#writeoff-review-drawer .writeoff-review-footer{padding:12px 14px;padding-bottom:max(12px,env(safe-area-inset-bottom))}#writeoff-review-drawer .purchase-history-table td:nth-child(3){grid-column:auto}#writeoff-review-drawer .purchase-history-table td:last-child{grid-column:1/-1}#writeoff-review-drawer .purchase-history-table button{min-height:44px;width:100%}}

.purchase-receipt-review-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.purchase-receipt-review-head .purchase-review-check{margin:0}.purchase-receipt-review-head .purchase-approve-receipt{width:auto;margin:0;flex:none;padding:12px 18px}@media(max-width:500px){.purchase-receipt-review-head .purchase-approve-receipt{width:100%}}

.staff-meal-tablewrap{overflow:auto}.staff-meal-tablewrap table{border-collapse:collapse;width:100%;min-width:900px}.staff-meal-tablewrap th,.staff-meal-tablewrap td{padding:14px 12px;border-bottom:1px solid var(--nx-border);text-align:left;vertical-align:middle}.staff-meal-tablewrap th{background:var(--nx-bg);font-size:12px;font-weight:500;color:var(--nx-muted)}.staff-meal-tablewrap select{width:100%;min-width:200px}.staff-meal-tablewrap small{display:block;color:var(--nx-muted);font-size:11px;margin-top:5px}.staff-meal-tablewrap td:nth-child(3){width:35%}

.staff-meal-settings{margin-top:32px}.staff-meal-settings>h2{margin-bottom:20px}

#motivation .motivation-pay-cards{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1100px){#motivation .motivation-pay-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){#motivation .motivation-pay-cards{grid-template-columns:1fr}}

.management-dashboard-frame{width:100%;height:calc(100vh - 220px);min-height:700px;border:0;display:block;background:white}@media(max-width:700px){.management-dashboard-frame{height:calc(100dvh - 150px);min-height:650px}}

#break-even-settings .break-even-table{min-width:0;width:100%;table-layout:fixed}#break-even-settings .break-even-table th,#break-even-settings .break-even-table td{width:33.333%;white-space:normal;overflow-wrap:anywhere}#break-even-settings .break-even-table input{min-width:0;width:100%;box-sizing:border-box;border:1px solid var(--nx-border,#d3e2dc);border-radius:10px;padding:12px;color:#183b2e;background:white;font:inherit}#break-even-settings .break-even-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:20px}@media(max-width:650px){#break-even-settings .break-even-table th,#break-even-settings .break-even-table td{font-size:11px;padding:10px 5px}#break-even-settings .break-even-table input{font-size:13px;padding:10px 6px}#break-even-settings h1{font-size:26px}}

/* Accounting mailing: one full-width settings card. */
#accounting-mailings{width:100%;max-width:none}
#accounting-mailings [data-accounting-mailings-content]{width:100%;min-width:0}
#accounting-mailings .telegram-streams{grid-template-columns:minmax(0,1fr);margin:24px 0 20px}
#accounting-mailings .telegram-stream{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;padding:28px;box-shadow:none}
#accounting-mailings .telegram-stream>h2,#accounting-mailings .telegram-stream>p,#accounting-mailings .telegram-stream>.telegram-check,#accounting-mailings .telegram-recipient-dropdown,#accounting-mailings .telegram-saved-recipients{grid-column:1/-1}
#accounting-mailings .telegram-stream>h2{margin:0 0 10px;font-size:24px}
#accounting-mailings .telegram-stream>p{margin:0 0 12px;line-height:1.6;color:var(--nx-muted)}
#accounting-mailings .telegram-stream>.telegram-field{margin:16px 0 0}
#accounting-mailings .telegram-recipient-dropdown{margin:20px 0 0}
#accounting-mailings [data-accounting-mailings-content]>.connection-card{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding:22px 28px;box-shadow:none}
#accounting-mailings input[type=time]{display:block;width:140px;margin-top:8px;cursor:default}
#accounting-mailings [data-accounting-mailings-content]>.submit-button{width:auto;min-width:180px;margin-top:20px;padding:14px 28px}
@media(max-width:700px){#accounting-mailings .telegram-stream{grid-template-columns:minmax(0,1fr);padding:20px}#accounting-mailings [data-accounting-mailings-content]>.connection-card{padding:20px;align-items:flex-start}#accounting-mailings [data-accounting-mailings-content]>.submit-button{width:100%}}

/* Shared Narox recipient search and editable daily schedule. */
.telegram-picker-search{display:block;padding:12px 12px 0;margin:0!important}.telegram-picker-search input[type=search]{box-sizing:border-box;width:100%;min-height:44px;padding:11px 14px;border:1px solid var(--nx-border,#d3e2dc);border-radius:10px;background:#fff;color:var(--nx-text,#263440);font:inherit;font-size:14px;outline:none}.telegram-picker-search input:focus{border-color:#348767;box-shadow:0 0 0 3px #34876715}.telegram-options .telegram-check[hidden],.telegram-options .telegram-search-empty[hidden]{display:none!important}.telegram-search-empty{padding:10px 6px;margin:0}.telegram-schedule{display:flex;align-items:center;gap:16px 32px;flex-wrap:wrap}.telegram-schedule .telegram-check{margin:0;flex:1 1 280px}.telegram-schedule .telegram-time-field{margin:0;display:grid;gap:8px;color:var(--nx-muted,#70837b);font-size:13px}.telegram-schedule input[type=time],#accounting-mailings .telegram-schedule input[type=time]{box-sizing:border-box;display:block;width:172px;min-height:46px;margin:0;padding:10px 14px;border:1px solid var(--nx-border,#d3e2dc);border-radius:10px;background:#fff;color:var(--nx-text,#263440);font:inherit;font-size:16px;cursor:text}.telegram-schedule input[type=time]:focus{outline:2px solid #348767;outline-offset:2px}@media(max-width:600px){.telegram-schedule .telegram-time-field{width:100%}.telegram-schedule input[type=time],#accounting-mailings .telegram-schedule input[type=time]{width:100%}}

.telegram-recipient-dropdown .telegram-recipient-panel{padding:0;max-height:none;overflow:hidden;min-width:0}.telegram-recipient-dropdown .telegram-options{overflow:auto;max-height:260px}.telegram-picker-search{background:white}

/* Website reviews use the shared Narox typography and controls. */
.website-review-summary{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:16px 0;color:#4b5964}.website-review-summary strong{font-weight:600}.website-review-card{background:#f5f9f7;border:1px solid #d4e4df;border-radius:12px;padding:14px 16px;margin:10px 0;max-width:980px;color:#4b5964}.website-review-heading{display:flex;justify-content:space-between;gap:16px}.website-review-heading strong{font-weight:600}.website-review-card p{font-size:13px;line-height:1.5;margin:8px 0}.website-review-comment{white-space:pre-wrap;overflow-wrap:anywhere}.website-review-settings{max-width:980px}.website-review-settings .connection-card{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0}.website-review-settings .connection-card h2,.website-review-settings .connection-card p{grid-column:1/-1}.website-review-settings label{display:flex;flex-direction:column;gap:6px}.website-review-settings input,.website-review-settings select{width:100%;min-height:44px;border:1px solid #cbded7;border-radius:10px;padding:10px;font:inherit;box-sizing:border-box}.website-review-settings .form-actions{display:flex;gap:10px;flex-wrap:wrap}@media(max-width:650px){.website-review-settings .connection-card{grid-template-columns:1fr}.website-review-heading{flex-wrap:wrap}.website-review-card{padding:12px}.website-review-summary{gap:10px}}

#website-review-drawer{width:min(560px,calc(100vw - 32px));max-height:90vh;border:1px solid #cbded7;border-radius:12px;padding:24px;color:#4b5964;font-family:"Segoe UI",Arial,sans-serif}#website-review-drawer::backdrop{background:rgba(0,0,0,.25)}
