/* Template 2 is opt-in per rendered account. Template 1 keeps its existing assets/rules. */
.cabinet-shell[data-cabinet-template="template-2"] {
  --workspace-sidebar:250px; --workspace-header:64px;
  --cabinet-page:#f6f8f8; --cabinet-panel:#fff; --cabinet-ink:#303e49; --cabinet-muted:#687d85;
  --cabinet-line:#e2e8e9; --cabinet-sidebar:#17262b; --cabinet-sidebar-dark:#17262b;
  --cabinet-teal:#087f8c; --cabinet-teal-dark:#066775;
  display:block; min-height:100vh; background:var(--cabinet-page); color:var(--cabinet-ink);
  font-family:var(--appearance-body-font,"Nunito",Arial,sans-serif);
}
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-sidebar {
  position:fixed; inset:0 auto 0 0; width:var(--workspace-sidebar); min-height:0; height:100dvh;
  max-height:100dvh; overflow:auto; background:var(--cabinet-sidebar); z-index:40;
  scrollbar-width:thin; scrollbar-color:#526970 transparent; transition:width .22s ease,transform .22s ease;
}
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-brand {
  position:sticky; top:0; z-index:2; display:flex; justify-content:flex-start; gap:10px;
  width:100%; height:64px; min-height:64px; flex:0 0 64px; padding:0 20px;
  background:var(--cabinet-sidebar); border-bottom:1px solid #ffffff0d; text-decoration:none;
}
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-brand img { width:34px; height:42px; max-width:34px; max-height:42px; object-fit:contain; filter:none; flex-shrink:0; }
.cabinet-shell[data-cabinet-template="template-2"] .workspace-wordmark { font:800 22px/1.2 "Nunito",Arial,sans-serif; color:#fff; white-space:nowrap; }
.cabinet-shell[data-cabinet-template="template-2"] .workspace-wordmark>span { font:inherit; color:#58c6cf; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-nav { padding:18px 12px 24px; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-nav :is(a,summary) {
  min-height:42px; margin:3px 0; padding:10px 12px; gap:11px; border-radius:6px; border:0;
  font-size:15px; line-height:22px; font-weight:600; color:var(--appearance-on-sidebar,#b6c6cb);
  background:transparent; transition:background .16s,color .16s;
}
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-nav :is(a,summary):hover { color:#fff; background:#ffffff0a; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-nav :is(a.is-active,.is-active>summary) { color:#dcfcff; background:#0b87952e; box-shadow:inset 2px 0 #39beca; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-nav-mark { width:20px; height:20px; flex:0 0 20px; margin:0; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-nav-light { width:20px; height:20px; flex-basis:20px; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-nav-children { padding:2px 0 6px 18px; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-nav-children a { min-height:36px; margin:2px 0; padding:8px 12px 8px 26px; font-size:14px; font-weight:500; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-workspace { display:block; min-width:0; margin-left:var(--workspace-sidebar); padding-top:var(--workspace-header); transition:margin-left .22s ease; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-topbar {
  position:fixed; inset:0 0 auto var(--workspace-sidebar); z-index:35; box-sizing:border-box;
  height:auto; min-height:64px; padding:0 24px; gap:16px;
  background:var(--appearance-header,var(--cabinet-panel)); color:var(--appearance-on-header,var(--cabinet-ink));
  border-bottom:1px solid var(--cabinet-line); box-shadow:0 1px 2px #21323802; transition:left .22s ease;
}
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-top-actions { flex:1; min-width:0; gap:8px; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-topbar :is(.cabinet-icon-button,.cabinet-bell,.cabinet-search-toggle,.fixtech-language-toggle,.cabinet-assistant-toggle) {
  width:36px; height:36px; min-width:36px; min-height:36px; flex:0 0 36px; padding:8px; border:0; border-radius:50%;
  background:var(--appearance-soft,#eef3f4); color:var(--cabinet-teal); box-shadow:none;
}
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-topbar .cabinet-ui-icon { width:20px; height:20px; flex:0 0 20px; background:currentColor; border-radius:0; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-bell-count { border:0; line-height:19px; }
.cabinet-shell[data-cabinet-template="template-2"] .fixtech-language-icon { width:20px; height:20px; flex:0 0 20px; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-user { padding:4px 10px 4px 5px; min-height:40px; gap:8px; background:var(--appearance-soft,#f4f7f7); color:var(--cabinet-ink); border:1px solid var(--cabinet-line); border-radius:24px; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-user>span:first-child { width:30px; height:30px; flex:0 0 30px; font-size:15px; background:#def0f1; color:#087e8c; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-user strong { font-size:14px; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-logout { width:36px; min-width:36px; height:36px; padding:8px; border-radius:50%; background:var(--appearance-soft,#eef3f4); color:var(--cabinet-teal); display:inline-flex; align-items:center; justify-content:center; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-logout>.cabinet-ui-icon { display:block; width:20px; height:20px; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-logout>span:not(.cabinet-ui-icon) { display:none; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-create { border-radius:24px; padding:9px 14px; font-size:14px; background:#078b98; color:#fff; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-global-search { order:-1; margin-right:auto; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-topbar .cabinet-search-toggle { display:flex; align-items:center; gap:9px; width:220px; padding:8px 12px; border-radius:24px; border:1px solid var(--cabinet-line); }
.cabinet-shell[data-cabinet-template="template-2"] .workspace-search-label { font-size:14px; font-weight:600; color:var(--cabinet-muted); white-space:nowrap; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-search-panel { left:0; right:auto; top:calc(100% + 14px); }
.cabinet-shell[data-cabinet-template="template-2"] :is(.cabinet-search-panel,.cabinet-notifications-panel) { border:1px solid var(--cabinet-line); border-radius:8px; box-shadow:0 12px 32px #10232d1a; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-content { padding:24px; gap:22px; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-page-head { gap:16px; margin:0; padding:0 0 4px; align-items:center; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-page-head p { margin:0 0 7px; font-size:12px; line-height:18px; font-weight:700; color:var(--cabinet-muted); letter-spacing:.04em; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-page-head h1 { margin:0; font-size:var(--appearance-h1,28px); line-height:1.25; font-weight:800; color:var(--cabinet-ink); }
.cabinet-shell[data-cabinet-template="template-2"] :is(.cabinet-panel,.cabinet-data-panel,.cabinet-metric,.cabinet-mini-card,.cabinet-profile-card,.cabinet-subscription-card) { border:1px solid var(--cabinet-line); border-radius:6px; background:var(--cabinet-panel); box-shadow:0 2px 4px #21323804; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-panel { padding:22px; }
.cabinet-shell[data-cabinet-template="template-2"] :is(.cabinet-panel h2,.cabinet-menu-panel-head h2) { font-size:var(--appearance-h2,20px); line-height:1.4; font-weight:800; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-menu-panel-head { gap:16px; margin-bottom:20px; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-menu-panel-head>div>span { font-size:var(--appearance-small,14px); color:var(--cabinet-muted); }
.cabinet-shell[data-cabinet-template="template-2"] :is(.cabinet-menu-table,.cabinet-table) { font-size:var(--appearance-body,14px); }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-menu-table th { background:var(--appearance-soft,#f4f7f7); padding:14px; font-size:12px; font-weight:800; color:var(--cabinet-muted); border-color:var(--cabinet-line); }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-menu-table td { padding:14px; border-color:var(--cabinet-line); }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-menu-table tbody tr:hover { background:var(--appearance-soft,#f8fafa); }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-section-tabs { gap:8px; padding:0; }
/* Tabs keep their individual states without an outer frame. */
.cabinet-shell[data-cabinet-template="template-2"] :is(.cabinet-section-tabs,.restaurant-settings-secondary-tabs,.printing-page-nav,.cabinet-segments,.work-week-tabs,[role="tablist"]) { border:0; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-section-tabs a { padding:9px 14px; min-height:38px; border:1px solid var(--cabinet-line); border-radius:6px; font-size:14px; background:var(--cabinet-panel); color:var(--cabinet-muted); }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-section-tabs a.is-active { color:var(--appearance-on-primary,#fff); background:var(--cabinet-teal); border-color:var(--cabinet-teal); }
.cabinet-shell[data-cabinet-template="template-2"] :is(.cabinet-field input,.cabinet-field select,.cabinet-field textarea,.cabinet-table-search input) { border-radius:6px; border-color:var(--cabinet-line); }
.cabinet-shell[data-cabinet-template="template-2"] :is(.cabinet-primary-button,.cabinet-secondary-button,.cabinet-action-link) { border-radius:6px; font-size:var(--appearance-control,15px); }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-dialog { border:1px solid var(--cabinet-line); border-radius:12px; box-shadow:0 22px 80px #10232d33; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-dialog::backdrop { background:#10232d66; }
.cabinet-shell[data-cabinet-template="template-2"] :is(.staff-table-card,.kitchen-order-card,.staff-menu-category-card,.staff-menu-product-card) { border-radius:8px; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-shift-control button { min-height:38px; padding:8px 16px; font-size:14px; border-radius:24px; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-shift-timer { padding:8px 12px; font-size:14px; border-radius:24px; color:var(--cabinet-ink); background:var(--appearance-soft,#eef3f4); }
@media(min-width:861px) {
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-collapsed { --workspace-sidebar:84px; }
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-collapsed:not(.is-sidebar-preview) .cabinet-brand { justify-content:center; padding:0; }
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-collapsed:not(.is-sidebar-preview) .workspace-wordmark { display:none; }
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-collapsed:not(.is-sidebar-preview) .cabinet-nav summary>.cabinet-branch-title { overflow:hidden; white-space:nowrap; overflow-wrap:normal; }
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-collapsed:not(.is-sidebar-preview) .cabinet-nav :is(a,summary) { justify-content:center; padding:10px 0; gap:0; }
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-preview .cabinet-sidebar { width:250px; box-shadow:8px 0 24px #10232d25; }
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-preview .cabinet-nav :is(a,summary) { justify-content:flex-start; gap:11px; padding:10px 12px; }
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-preview .cabinet-nav :is(a,summary)>span:last-child { max-width:none; opacity:1; }
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-preview .cabinet-nav-mark { margin:0; }
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-preview .cabinet-nav summary::after { width:12px; height:12px; content:""; opacity:1; margin-left:auto; }
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-preview .cabinet-nav-children { max-height:none; opacity:1; padding:2px 0 6px 18px; }
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-preview .cabinet-nav-children a { padding-left:26px; }
}
@media(max-width:1200px) { .cabinet-shell[data-cabinet-template="template-2"] .cabinet-topbar { gap:12px; padding:0 18px; } .cabinet-shell[data-cabinet-template="template-2"] .cabinet-topbar .cabinet-search-toggle { width:36px; padding:8px; } .cabinet-shell[data-cabinet-template="template-2"] .workspace-search-label { display:none; } }
@media(max-width:860px) {
 .cabinet-shell[data-cabinet-template="template-2"],.cabinet-shell[data-cabinet-template="template-2"].is-sidebar-collapsed { --workspace-sidebar:0px; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-sidebar { width:min(280px,85vw); max-width:280px; z-index:45; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-brand,.cabinet-shell[data-cabinet-template="template-2"].is-sidebar-collapsed .cabinet-brand { padding:0 20px; height:64px; min-height:64px; flex:0 0 64px; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-brand img,.cabinet-shell[data-cabinet-template="template-2"].is-sidebar-collapsed .cabinet-brand img { width:34px; height:42px; max-width:34px; max-height:42px; }
 .cabinet-shell[data-cabinet-template="template-2"]:not(.is-sidebar-collapsed)::before { opacity:1; pointer-events:auto; z-index:40; }
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-collapsed .cabinet-nav :is(a,summary) { justify-content:flex-start; gap:11px; padding:10px 12px; }
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-collapsed .cabinet-nav :is(a,summary)>span:last-child { max-width:none; opacity:1; }
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-collapsed .cabinet-nav summary::after { width:12px; height:12px; content:""; opacity:1; }
 .cabinet-shell[data-cabinet-template="template-2"].is-sidebar-collapsed .cabinet-nav-children { max-height:none; opacity:1; padding:2px 0 6px 18px; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-topbar { padding:0 14px; gap:8px; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-top-actions { gap:6px; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-content { padding:18px 14px; gap:18px; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-panel { padding:18px; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-page-head h1 { font-size:min(var(--appearance-h1,26px),36px); }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-user { padding:3px; min-height:36px; border:0; background:transparent; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-user strong { display:none; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-search-panel { position:fixed; left:12px; right:12px; top:76px; width:auto; max-width:none; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-topbar .fixtech-language-toggle { width:32px; height:32px; min-width:32px; min-height:32px; flex-basis:32px; padding:6px; }
}
@media(max-width:480px) {
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-create { padding:8px 10px; font-size:12px; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-topbar :is(.cabinet-icon-button,.cabinet-bell,.cabinet-search-toggle,.cabinet-logout) { width:32px; height:32px; min-width:32px; min-height:32px; flex-basis:32px; padding:6px; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-top-actions { gap:4px; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-topbar { gap:6px; padding:0 10px; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-shift-control button { font-size:12px; padding:8px 10px; }
}
/* The same credentials, PIN tabs and forms receive the new presentation. */
.auth-page[data-cabinet-template="template-2"] { background:#f6f8f8; color:#303e49; font-family:"Nunito",Arial,sans-serif; }
.auth-page[data-cabinet-template="template-2"] .auth-brand-pane { background:linear-gradient(145deg,#102d38,#054759); }
.auth-page[data-cabinet-template="template-2"] .auth-brand-content { padding:44px; background-image:linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px); background-size:28px 28px; }
.auth-page[data-cabinet-template="template-2"] .auth-brand img { filter:brightness(0) invert(1); }
.auth-page[data-cabinet-template="template-2"] .auth-form-pane { background:#f6f8f8; }
.auth-page[data-cabinet-template="template-2"] .auth-form-wrap { background:#fff; border:1px solid #e2e8e9; border-radius:10px; padding:36px; box-shadow:0 4px 24px #10232d06; }
.auth-page[data-cabinet-template="template-2"] .auth-form-wrap h1 { font-size:32px; font-weight:800; color:#203943; }
.auth-page[data-cabinet-template="template-2"] .auth-form :is(input:not([type="checkbox"]),select) { border-color:#dce5e8; border-radius:6px; }
.auth-page[data-cabinet-template="template-2"] :is(.auth-primary,.auth-secondary) { border-radius:6px; }
.auth-page[data-cabinet-template="template-2"] .auth-primary { background:#087f8c; }
.auth-page[data-cabinet-template="template-2"] .auth-method-switch { border-radius:7px; background:#eef3f4; padding:4px; }
.auth-page[data-cabinet-template="template-2"] .auth-method-tab { border-radius:5px; }
@media(max-width:700px) { .auth-page[data-cabinet-template="template-2"] .auth-form-wrap { padding:24px 20px; } .auth-page[data-cabinet-template="template-2"] .auth-brand-content { padding:24px; } }
@media(prefers-reduced-motion:reduce) { .cabinet-shell[data-cabinet-template="template-2"],.cabinet-shell[data-cabinet-template="template-2"] * { transition:none!important; animation:none!important; scroll-behavior:auto!important; } }
/* Account selector is shared by both templates, without changing either shell. */
.workspace-template-form { margin-bottom:22px; }
.workspace-template-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.workspace-template-option { position:relative; display:flex; align-items:flex-start; gap:12px; padding:16px; border:1px solid var(--cabinet-line); border-radius:10px; cursor:pointer; background:var(--cabinet-panel); }
.workspace-template-option:has(:checked) { border-color:var(--cabinet-teal); box-shadow:0 0 0 1px var(--cabinet-teal); }
.workspace-template-option input { width:18px; height:18px; flex:0 0 18px; margin-top:3px; accent-color:var(--cabinet-teal); }
.workspace-template-option-body { display:grid; gap:8px; min-width:0; flex:1; }
.workspace-template-option-body strong { font-size:17px; }
.workspace-template-option-body small { font-size:14px; line-height:1.5; color:var(--cabinet-muted); }
.workspace-template-preview { display:grid; grid-template-columns:24% repeat(3,1fr); grid-template-rows:20px 55px; gap:5px; padding:6px; background:#f1f5f5; border:1px solid #e1e9e9; border-radius:6px; }
.workspace-template-preview i { grid-row:1 / 3; background:#17262b; border-radius:3px; }
.workspace-template-preview b { grid-column:2 / 5; background:#fff; border-radius:3px; }
.workspace-template-preview em { background:#fff; border-radius:3px; border-top:3px solid #d5e8ea; }
.workspace-template-preview.is-template-1 { grid-template-columns:30% repeat(3,1fr); }
.workspace-template-preview.is-template-1 b { background:#033e55; }
.workspace-template-preview.is-template-1 i { background:#2f3f4b; }
.workspace-template-note { margin:18px 0 0; color:var(--cabinet-muted); font-size:14px; }
@media(max-width:950px) { .workspace-template-options { grid-template-columns:minmax(0,1fr); } .workspace-template-preview { max-width:230px; } }

/* Header height follows its real controls, including a second shift row on phones. */
@media(max-width:860px) {
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-topbar { padding-top:10px; padding-bottom:10px; }
 .cabinet-shell[data-cabinet-template="template-2"]:not(.cabinet-staff-shell):not(.kitchen-shell) .cabinet-topbar { display:flex; flex-wrap:nowrap; }
 .cabinet-shell[data-cabinet-template="template-2"]:not(.cabinet-staff-shell):not(.kitchen-shell) .cabinet-top-actions { display:flex; flex-wrap:nowrap; justify-content:flex-end; }
 .cabinet-shell[data-cabinet-template="template-2"]:not(.cabinet-staff-shell):not(.kitchen-shell) .cabinet-create { width:auto; min-height:32px; padding:8px 7px; font-size:11px; white-space:nowrap; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-topbar .cabinet-assistant-toggle { width:32px; min-width:32px; height:32px; min-height:32px; flex-basis:32px; padding:6px; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-user { width:32px; height:32px; min-height:32px; flex:0 0 32px; padding:0; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-global-search { margin-right:0; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-topbar .cabinet-search-panel { top:calc(var(--workspace-header) + 12px); }
}
@media(max-width:480px) {
 .cabinet-shell[data-cabinet-template="template-2"]:not(.cabinet-staff-shell):not(.kitchen-shell) .cabinet-topbar { padding-left:8px; padding-right:8px; gap:4px; }
 .cabinet-shell[data-cabinet-template="template-2"]:not(.cabinet-staff-shell):not(.kitchen-shell) .cabinet-top-actions { gap:3px; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-topbar .cabinet-assistant-control { width:32px; min-width:32px; height:32px; flex:0 0 32px; display:flex; align-items:center; }
 .cabinet-shell[data-cabinet-template="template-2"] .cabinet-topbar .cabinet-user { min-width:32px; max-width:32px; box-sizing:border-box; }
 .cabinet-shell[data-cabinet-template="template-2"]:not(.cabinet-staff-shell):not(.kitchen-shell) .cabinet-create { min-width:54px; flex:0 0 auto; padding:8px 5px; }
}
.cabinet-shell[data-cabinet-template="template-2"] :is(.cabinet-filter-control,.cabinet-dashboard-date-range,.cabinet-segments) { border-radius:6px; box-shadow:none; border-color:var(--cabinet-line); }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-segments :is(a,button) { border-radius:4px; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-assistant-control { display:flex; align-items:center; }
.auth-page[data-cabinet-template="template-2"] .auth-brand-content p { color:#d6e8ec; }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-shift-timer>span { color:var(--cabinet-muted); }
.cabinet-shell[data-cabinet-template="template-2"] .cabinet-create.is-shift-finish { background:#dc5364; color:#fff; }

body.workspace-auth-modern { margin:0; }

.cabinet-shell[data-cabinet-template="template-2"] .cabinet-user-role { color:var(--cabinet-muted); }

/* Shared modern header: compact tools and profile navigation. */
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-topbar .cabinet-search-toggle { width:40px; height:40px; min-width:40px; min-height:40px; flex-basis:40px; padding:10px; justify-content:center; border:0; border-radius:50%; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-search-label { display:none; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-theme-form { margin:0; position:relative; flex:none; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-header-tools { display:flex; align-items:center; flex:none; gap:6px; padding:5px; border:1px solid var(--cabinet-line); border-radius:40px; background:var(--cabinet-panel); box-shadow:0 2px 5px #132c3210; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-topbar :is(.workspace-theme-button,.workspace-fullscreen-button,.workspace-header-tools .fixtech-language-toggle,.workspace-header-tools .cabinet-assistant-toggle,.workspace-header-tools .cabinet-bell) { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; min-width:40px; min-height:40px; flex:0 0 40px; padding:10px; border:0; border-radius:50%; cursor:pointer; transition:filter .15s,transform .15s; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-topbar :is(.workspace-theme-button,.workspace-header-tools button):hover { filter:brightness(.96); }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-topbar .workspace-theme-button { background:#fdf1de; color:#ae750e; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-theme-button:disabled { opacity:.6; cursor:wait; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-theme-icon { --cabinet-ui-icon:url('/vendor/fontawesome/light/sun-bright.svg'); }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header])[data-color-mode="dark"] .workspace-theme-icon { --cabinet-ui-icon:url('/vendor/fontawesome/light/moon.svg'); }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-topbar .workspace-fullscreen-button { background:#ebeeeb; color:#62706a; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-fullscreen-icon { --cabinet-ui-icon:url('/vendor/fontawesome/light/expand.svg'); }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-fullscreen-button[aria-pressed="true"] .workspace-fullscreen-icon { --cabinet-ui-icon:url('/vendor/fontawesome/light/compress.svg'); }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-topbar .workspace-fullscreen-button[hidden] { display:none; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-topbar .workspace-header-tools .fixtech-language-toggle { background:#e5eef7; color:#286b9c; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-header-tools .fixtech-language-icon { -webkit-mask-image:url('/vendor/fontawesome/light/language.svg'); mask-image:url('/vendor/fontawesome/light/language.svg'); }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-topbar .workspace-header-tools .cabinet-assistant-toggle { background:#f5efdf; color:#a47a12; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-assistant-toggle [data-icon="comments"] { --cabinet-ui-icon:url('/vendor/fontawesome/light/comments.svg'); }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-topbar .workspace-header-tools .cabinet-bell { background:#fbe6e8; color:#c63e4b; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile { flex:none; position:relative; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-toggle { display:flex; align-items:center; gap:10px; max-width:220px; padding:4px 0 4px 8px; border:0; background:none; color:inherit; cursor:pointer; font-family:inherit; font-size:15px; font-weight:700; line-height:1.3; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:120px; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-avatar { display:flex; align-items:center; justify-content:center; flex:none; width:40px; height:40px; border-radius:50%; background:#e1f1ef; color:#087f8c; font-size:18px; font-weight:800; box-shadow:0 0 0 3px var(--cabinet-panel),0 0 0 4px var(--cabinet-line); }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-toggle>.cabinet-ui-icon { width:12px; height:12px; flex-basis:12px; color:var(--cabinet-muted); transition:transform .18s; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-toggle[aria-expanded="true"]>.cabinet-ui-icon { transform:rotate(180deg); }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-panel { position:absolute; top:calc(100% + 12px); right:0; z-index:40; width:min(360px,calc(100vw - 24px)); max-height:calc(100dvh - var(--workspace-header) - 24px); overflow:auto; border:1px solid var(--cabinet-line); border-radius:10px; background:var(--cabinet-panel); color:var(--cabinet-ink); box-shadow:0 12px 36px #10232d24; transform-origin:top right; animation:workspace-profile-in .16s ease-out; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-panel[hidden] { display:none; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-head { display:flex; align-items:center; gap:16px; padding:24px 20px; background:radial-gradient(circle at 105% -20%,#ffffff18 0,transparent 55%),linear-gradient(125deg,#0b696d,#103f47 80%); color:#fff; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-head .workspace-profile-avatar { width:52px; height:52px; font-size:24px; box-shadow:0 0 0 3px #ffffff30; background:#daf3ed; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-details { min-width:0; flex:1; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-title { display:flex; align-items:center; gap:8px; flex-wrap:nowrap; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-title>strong { min-width:0; flex:1; font-size:18px; line-height:1.35; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-subscription { display:inline-flex; align-items:center; justify-content:center; flex:none; gap:6px; padding:4px 9px; border-radius:20px; background:#ffffff26; color:#fff; font-size:12px; line-height:18px; font-weight:800; text-align:center; text-decoration:none; white-space:nowrap; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-topbar .workspace-profile-subscription .cabinet-ui-icon { width:13px; height:13px; flex-basis:13px; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-crown-icon { --cabinet-ui-icon:url('/vendor/fontawesome/light/crown.svg'); }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-email { display:block; margin-top:8px; color:#b8dadc; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-links { display:grid; padding:12px; gap:4px; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-links>a { display:flex; align-items:center; gap:14px; min-height:56px; padding:8px; border-radius:7px; color:var(--cabinet-ink); font-size:16px; line-height:1.4; font-weight:600; text-decoration:none; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-links>a:hover { background:var(--appearance-soft,#f4f8f8); }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-link-icon { display:flex; align-items:center; justify-content:center; width:38px; height:38px; flex:0 0 38px; border-radius:7px; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-link-icon.is-profile { background:#e4f2ee; color:#168872; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-person-icon { --cabinet-ui-icon:url('/vendor/fontawesome/light/user.svg'); }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-link-icon.is-settings { background:#ecefed; color:#64716a; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-link-icon [data-icon="gear"] { --cabinet-ui-icon:url('/vendor/fontawesome/light/gear.svg'); }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-link-icon.is-help { background:#e4eef7; color:#286e9e; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-help-icon { --cabinet-ui-icon:url('/vendor/fontawesome/light/book-open.svg'); }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-link-icon.is-logout { background:#fbe8e8; color:#ca3945; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-links>a.workspace-profile-logout { margin-top:8px; padding-top:16px; border-top:1px solid var(--cabinet-line); border-radius:0; color:#cb3c49; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-topbar :is(button,a):focus-visible { outline:2px solid var(--cabinet-teal); outline-offset:3px; }
.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-head a:focus-visible { outline-color:#fff; }
@keyframes workspace-profile-in { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:1100px) {
 .cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-name,.cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-toggle>.cabinet-ui-icon { display:none; }
 .cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-toggle { padding:4px; }
}
@media(max-width:480px) {
 .cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-topbar .cabinet-search-toggle { width:32px; height:32px; min-width:32px; min-height:32px; flex-basis:32px; padding:6px; }
 .cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-header-tools { gap:4px; padding:4px; }
 .cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-topbar :is(.workspace-theme-button,.workspace-fullscreen-button,.workspace-header-tools .fixtech-language-toggle,.workspace-header-tools .cabinet-assistant-toggle,.workspace-header-tools .cabinet-bell) { width:34px; height:34px; min-width:34px; min-height:34px; flex-basis:34px; padding:7px; }
 .cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-avatar { width:32px; height:32px; font-size:16px; }
 .cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-panel { position:fixed; top:calc(var(--workspace-header) + 8px); right:12px; }
}
@media(max-width:360px) {
 .cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-topbar { padding:0 6px; gap:4px; }
 .cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-header-tools { gap:2px; padding:3px; }
 .cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .cabinet-topbar :is(.workspace-theme-button,.workspace-fullscreen-button,.workspace-header-tools .fixtech-language-toggle,.workspace-header-tools .cabinet-assistant-toggle,.workspace-header-tools .cabinet-bell) { width:30px; height:30px; min-width:30px; min-height:30px; flex-basis:30px; padding:5px; }
}
@media(prefers-reduced-motion:reduce) { .cabinet-shell:is([data-workspace-owner-header],[data-workspace-employee-header]) .workspace-profile-panel { animation:none; } }

/* Employee shift controls and responsive profile navigation. */
.cabinet-shell[data-workspace-employee-header] .cabinet-topbar { display:flex; align-items:center; flex-wrap:nowrap; }
.cabinet-shell[data-workspace-employee-header] .cabinet-top-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:nowrap; gap:14px; }
.cabinet-shell[data-workspace-employee-header] .workspace-shift-actions { display:flex; align-items:center; flex:none; gap:10px; }
.cabinet-shell[data-workspace-employee-header] .workspace-shift-actions:empty { display:none; }
.cabinet-shell[data-workspace-employee-header] .workspace-shift-actions .cabinet-shift-control { margin:0; }
.cabinet-shell[data-workspace-employee-header] .workspace-shift-actions .cabinet-create { display:inline-flex; align-items:center; justify-content:center; min-height:40px; white-space:nowrap; }
.cabinet-shell[data-workspace-employee-header] .workspace-shift-actions .cabinet-shift-timer { display:inline-flex; align-items:center; flex:none; width:auto; min-width:0; gap:8px; min-height:40px; white-space:nowrap; }
.cabinet-shell[data-workspace-employee-header] .cabinet-shift-timer span { display:inline; font-size:11px; }
.cabinet-shell[data-workspace-employee-header] .cabinet-shift-timer strong { font-size:16px; font-variant-numeric:tabular-nums; }
.cabinet-shell[data-workspace-employee-header] .cabinet-notifications-panel { position:fixed; top:calc(var(--workspace-header) + 8px); right:24px; left:auto; width:min(380px,calc(100vw - 24px)); max-height:calc(100dvh - var(--workspace-header) - 24px); overflow:auto; }
.cabinet-shell[data-workspace-employee-header] .workspace-profile-subscription { max-width:145px; white-space:normal; overflow-wrap:anywhere; }
@media(max-width:1100px) {
 .cabinet-shell[data-workspace-employee-header] .cabinet-top-actions { gap:10px; }
 .cabinet-shell[data-workspace-employee-header] .workspace-shift-actions { gap:8px; }
}
@media(max-width:680px), (min-width:861px) and (max-width:1100px) {
 .cabinet-shell[data-workspace-employee-header] .cabinet-topbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:10px 12px; }
 .cabinet-shell[data-workspace-employee-header] .cabinet-top-actions { display:contents; }
 .cabinet-shell[data-workspace-employee-header] .workspace-header-tools { order:1; margin-left:auto; }
 .cabinet-shell[data-workspace-employee-header] .workspace-profile { order:2; }
 .cabinet-shell[data-workspace-employee-header] .workspace-shift-actions { order:3; flex-basis:100%; justify-content:space-between; }
 .cabinet-shell[data-workspace-employee-header] .workspace-shift-actions .cabinet-create { padding:8px 12px; font-size:13px; }
 .cabinet-shell[data-workspace-employee-header] .cabinet-shift-timer { padding:8px 10px; gap:6px; }
 .cabinet-shell[data-workspace-employee-header] .cabinet-shift-timer span { font-size:10px; }
 .cabinet-shell[data-workspace-employee-header] .cabinet-shift-timer strong { font-size:14px; }
 .cabinet-shell[data-workspace-employee-header] .workspace-profile-panel { position:fixed; top:calc(var(--workspace-header) + 8px); right:12px; }
 .cabinet-shell[data-workspace-employee-header] .cabinet-notifications-panel { position:fixed; top:calc(var(--workspace-header) + 8px); right:12px; left:auto; width:min(380px,calc(100vw - 24px)); max-height:calc(100dvh - var(--workspace-header) - 24px); overflow:auto; }
}

@media(max-width:860px) {
 .cabinet-shell[data-workspace-employee-header] .cabinet-topbar { flex-wrap:nowrap; gap:8px; padding:10px 12px; }
 .cabinet-shell[data-workspace-employee-header] .cabinet-top-actions { display:flex; flex:1; min-width:0; gap:8px; }
 .cabinet-shell[data-workspace-employee-header] .workspace-shift-actions { order:0; flex:1; min-width:0; justify-content:space-between; gap:8px; }
 .cabinet-shell[data-workspace-employee-header] .workspace-profile { order:1; }
 .cabinet-shell[data-workspace-employee-header] .workspace-shift-actions .cabinet-create { padding:8px 10px; font-size:13px; }
 .cabinet-shell[data-workspace-employee-header] .workspace-shift-actions .cabinet-shift-timer { padding:8px; gap:0; }
 .cabinet-shell[data-workspace-employee-header] .cabinet-shift-timer>span { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 .cabinet-shell[data-workspace-employee-header] .cabinet-shift-timer strong { font-size:14px; }
 .cabinet-shell[data-workspace-employee-header] .workspace-profile-panel { position:fixed; top:calc(var(--workspace-header) + 8px); right:12px; }
 .cabinet-shell[data-workspace-employee-header] .workspace-profile-panel .workspace-header-tools { flex-wrap:wrap; justify-content:center; gap:12px; margin:0; padding:16px 12px; border:0; border-bottom:1px solid var(--cabinet-line); border-radius:0; box-shadow:none; }
 .cabinet-shell[data-workspace-employee-header] .cabinet-topbar .workspace-profile-panel .workspace-header-tools :is(.workspace-fullscreen-button,.fixtech-language-toggle,.cabinet-bell) { width:44px; height:44px; min-width:44px; min-height:44px; flex-basis:44px; padding:10px; }
 .cabinet-shell[data-workspace-employee-header] .workspace-profile-panel .cabinet-notifications { display:contents; }
 .cabinet-shell[data-workspace-employee-header] .workspace-profile-panel .cabinet-notifications:not(.is-open) .cabinet-notifications-panel { display:none; }
 .cabinet-shell[data-workspace-employee-header] .workspace-profile-panel .cabinet-notifications-panel { position:static; order:1; flex-basis:100%; width:100%; min-width:0; max-height:45dvh; margin-top:4px; box-shadow:none; }
}
@media(max-width:360px) {
 .cabinet-shell[data-workspace-employee-header] .cabinet-topbar { gap:5px; padding:10px 8px; }
 .cabinet-shell[data-workspace-employee-header] .cabinet-top-actions,.cabinet-shell[data-workspace-employee-header] .workspace-shift-actions { gap:5px; }
 .cabinet-shell[data-workspace-employee-header] .workspace-shift-actions .cabinet-create { padding:8px; font-size:12px; }
 .cabinet-shell[data-workspace-employee-header] .workspace-shift-actions .cabinet-shift-timer { padding:8px 6px; }
 .cabinet-shell[data-workspace-employee-header] .cabinet-shift-timer strong { font-size:12px; }
}
