/* Shared control rhythm; SaaS administration and tenant work keep distinct identities.
   Deliberately scoped: POS, kiosks, public pages and printer output keep their layouts. */
:where(.saas-control-plane,#workspace,.record-dialog,.settings-dialog){
  --control-space-1:4px;--control-space-2:8px;--control-space-3:12px;
  --control-space-4:16px;--control-space-6:24px;--control-space-8:32px;
  --control-height:var(--ds-control-height);--control-radius:var(--ds-control-radius);--control-panel-radius:var(--ds-card-radius);
}
body.saas-control-plane{
  --admin-primary:#0f766e;--admin-primary-hover:#115e59;
  --admin-sidebar-bg:#102b32;--admin-sidebar-active:#99f6e4;
  --admin-sidebar-active-bg:#ffffff12;--admin-sidebar-text:#b9cdd2;
  color:var(--admin-text);background:var(--admin-bg);
}
.saas-control-plane .admin-brand-icon{background:#0f766e;color:#fff;border:1px solid #ffffff24;box-shadow:none}
.saas-control-plane .admin-nav-heading{color:#a9c3c9;font-size:11px;margin:20px 14px 8px}
.saas-control-plane .admin-nav{gap:4px;padding-inline:12px}
.saas-control-plane .admin-nav-item{min-height:var(--control-height);border-radius:var(--control-radius);padding:12px 14px;text-align:start;line-height:1.6}
.saas-control-plane .admin-nav-item .nav-icon:empty{display:none}
.saas-control-plane .admin-nav-item.active{box-shadow:inset -3px 0 0 #5eead4}
html[dir=ltr] .saas-control-plane .admin-nav-item.active{box-shadow:inset 3px 0 0 #5eead4}
.saas-control-plane .admin-header{height:auto;min-height:104px;padding:16px 24px;gap:16px;align-items:center}
.saas-control-plane .admin-header-title{min-width:0;flex:1}
.saas-control-plane .admin-header-title h2{line-height:1.5;margin:4px 0}
.saas-control-plane .admin-header-title small{display:block;line-height:1.75}
.saas-control-plane .admin-header-actions{flex-wrap:wrap;gap:8px}
.saas-control-plane .admin-control-context{font-size:12px;line-height:1.8;margin:4px 0 0;color:var(--admin-text-muted);overflow-wrap:anywhere}
.saas-control-plane .admin-content{padding:var(--control-space-6);display:grid;gap:var(--control-space-6)}
.saas-control-plane .admin-panel-card{border-radius:var(--control-panel-radius);overflow:visible;margin-block-end:var(--control-space-6)}
.saas-control-plane .panel-card-head{padding:16px 24px;min-height:72px;gap:12px;line-height:1.7;border-start-start-radius:var(--control-panel-radius);border-start-end-radius:var(--control-panel-radius)}
.saas-control-plane .panel-card-body{padding:var(--control-space-6)}
.saas-control-plane .admin-tenant-context{background:color-mix(in srgb,var(--admin-primary) 6%,var(--admin-surface));align-items:center}
.saas-control-plane .admin-selected-context{flex-basis:100%;margin:0;font-size:13px;line-height:1.8;overflow-wrap:anywhere;color:var(--admin-text)}
.saas-control-plane .admin-selected-context[data-state=error]{color:var(--danger,#b91c1c)}
.saas-control-plane .admin-ownership-note{padding:16px 20px;background:var(--admin-surface);border-radius:var(--control-radius)}
.saas-control-plane .admin-ownership-note p{max-width:85ch}
.saas-control-plane .admin-tenant-sections{padding:6px;gap:8px;border:1px solid var(--admin-border);border-radius:14px;background:var(--admin-bg)}
.saas-control-plane .admin-tenant-sections>.btn{flex:1;min-width:0;white-space:normal;line-height:1.7}
.saas-control-plane .tenant-identity-grid{gap:var(--control-space-4);align-items:start;margin-block-end:var(--control-space-6)}
.saas-control-plane .tenant-identity-grid .panel-card-body{padding:var(--control-space-4)}
.saas-control-plane .admin-task-disclosure{margin-block-end:16px;border:1px solid var(--admin-border);border-radius:var(--control-radius);background:var(--admin-surface)}
.saas-control-plane .admin-task-disclosure>summary{padding:12px 16px;min-height:var(--control-height);font-weight:700;cursor:pointer;line-height:1.7;color:var(--admin-primary)}
.saas-control-plane .admin-task-disclosure[open]>summary{border-block-end:1px solid var(--admin-border)}
.saas-control-plane .admin-assistance-form{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:16px}
.saas-control-plane .admin-assistance-form>label{display:grid;gap:8px;font-size:13px;font-weight:650;min-width:0}
.saas-control-plane .admin-assistance-form small{font-size:12px;color:var(--admin-text-muted);line-height:1.75;font-weight:400}
.saas-control-plane .admin-permission-picker{border:1px solid var(--admin-border);padding:12px;border-radius:var(--control-radius)}
.saas-control-plane .admin-permission-picker>summary{min-height:32px;cursor:pointer;font-size:13px;font-weight:700;line-height:1.7}
.saas-control-plane :is(.form-grid-2,.auth-form){gap:var(--control-space-4)}
.saas-control-plane .form-group{min-width:0;margin-block-end:0}
.saas-control-plane .form-group>label{margin-block-end:8px;line-height:1.65}

/* Align normal text controls. Checkboxes, radios, ranges, colors and hidden fields
   are excluded so their native behavior and specialist widgets are preserved. */
.saas-control-plane :is(.admin-content,.admin-auth-card,.admin-header) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]),select,textarea),
#viewContent :is(.settings-form,.settings-inline-form,.appearance-form,.tenant-role-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]),select,textarea),
.record-dialog .record-fields :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]),select,textarea){
  box-sizing:border-box;min-width:0;max-width:100%;min-height:var(--control-height);
  padding:var(--field-padding-block,10px) 12px!important;border-radius:var(--control-radius)!important;font:inherit;line-height:1.5;
}
.saas-control-plane :is(.admin-content,.admin-auth-card) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]),select,textarea){
  width:100%;border:1px solid var(--admin-border);background:var(--admin-surface);color:var(--admin-text);
}
.saas-control-plane :is(input[type=checkbox],input[type=radio]){accent-color:var(--admin-primary);width:18px;min-height:18px;padding:0;flex-shrink:0}
.saas-control-plane select[multiple]{min-height:132px;height:auto}
.saas-control-plane :is(textarea){min-height:112px;resize:vertical}
.saas-control-plane .btn,
#workspace .workspace-actions :is(.primary-action,.secondary,.quick-add-trigger),
#viewContent :is(.settings-form,.settings-inline-form,.settings-card,.tenant-role-form) button,
.record-dialog form>footer>button{
  box-sizing:border-box;min-height:var(--control-height);padding:10px 16px!important;border-radius:var(--control-radius)!important;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-size:13px;font-weight:700;line-height:1.6;
}
.saas-control-plane .btn{white-space:normal;text-decoration:none}
.saas-control-plane .btn:disabled{opacity:.55;cursor:not-allowed;transform:none}
.saas-control-plane .btn-primary{background:var(--admin-primary);color:#fff;box-shadow:0 3px 8px #0f766e18}
.saas-control-plane .btn-primary:hover:not(:disabled){background:var(--admin-primary-hover)}
.saas-control-plane .btn-secondary{background:var(--admin-surface);border-color:var(--admin-border);color:var(--admin-text)}
.saas-control-plane .admin-tenant-sections [aria-pressed=true]{background:var(--admin-primary);border-color:var(--admin-primary);color:#fff}
.saas-control-plane :is(button,input,select,textarea,summary,a.btn):focus-visible{outline:3px solid #5eead4;outline-offset:3px;box-shadow:none}
.saas-control-plane .admin-table :is(th,td){padding:14px 16px;line-height:1.7;vertical-align:middle}
.saas-control-plane .admin-table td:last-child .btn{margin:4px}

/* Subscriber identity stays in its existing sticky header, including branch switches. */
#workspace .workspace-control-context{font-size:12px;line-height:1.75;color:var(--text-muted);margin:6px 0 0;overflow-wrap:anywhere}
#workspace .workspace-identity{padding-block:4px}
#workspace .workspace-header{height:auto!important;min-height:88px;flex-shrink:0;padding-block:12px!important}
#viewContent .settings-hero{padding:24px;border-inline-start-width:4px;box-shadow:none}
#viewContent .settings-hero h3{font-size:22px;line-height:1.55;margin:8px 0}
#viewContent .settings-hero .hint{max-width:85ch;line-height:1.85}
#viewContent .settings-control-areas{margin:0;padding:6px;gap:8px;background:var(--surface-subtle)}
#viewContent .settings-area-button{border-radius:var(--control-radius);min-height:48px;font-size:14px}
#viewContent .settings-area-button[aria-pressed=true]{background:var(--accent);color:#fff;box-shadow:0 3px 8px #4f46e51a}
#viewContent .settings-area-description{margin:0;color:var(--text-muted);font-size:13px;line-height:1.8}
#viewContent .settings-tools{gap:16px;align-items:end;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--control-panel-radius)}
#viewContent .settings-tools>.hint{margin:0;font-size:12px}
#viewContent .settings-search input{border-radius:var(--control-radius);min-height:var(--control-height);padding:10px 12px}
#viewContent .settings-layout{gap:24px}
#viewContent .settings-panels{gap:16px}
#viewContent .settings-section{padding:24px}
#viewContent .settings-section>header{margin-block-end:16px}
#viewContent .settings-section>header :is(h3,p){margin:0}
#viewContent .settings-section>header p{margin-block-start:8px;line-height:1.8}
#viewContent .settings-card{padding:20px;gap:12px;box-shadow:none;display:flex;flex-direction:column;min-width:0}
#viewContent .settings-card :is(h4,p){margin:0;line-height:1.8}
#viewContent .settings-card>button{margin-block-start:auto;align-self:start}
#viewContent .settings-form{gap:16px}
#viewContent .settings-inline-disclosure>summary{padding:16px 20px}
#viewContent .settings-inline-content>.settings-section{padding:20px}
.record-dialog .record-fields{gap:16px}
.record-dialog form>footer{gap:12px;padding:16px 24px;flex-wrap:wrap}
@media(max-width:900px){
  .saas-control-plane .admin-header{padding:16px;align-items:start;flex-wrap:wrap}
  .saas-control-plane .admin-header-title{flex-basis:100%}
  .saas-control-plane .admin-content{padding:16px}
  .saas-control-plane .panel-card-head,.saas-control-plane .panel-card-body{padding:16px}
}
@media(max-width:640px){
  .saas-control-plane .admin-nav-heading{display:none}
  .saas-control-plane .admin-nav{flex-direction:row;min-width:0;padding:8px;gap:6px}
  .saas-control-plane .admin-nav-item{padding:10px 12px;white-space:nowrap}
  .saas-control-plane .admin-header{top:74px;gap:10px}
  .saas-control-plane .admin-header-title h2{font-size:17px}
  .saas-control-plane .admin-header-title>small{display:none}
  .saas-control-plane .admin-control-context{font-size:11px}
  .saas-control-plane .admin-header-actions{width:100%}
  .saas-control-plane .admin-header-actions .health-badge{flex-basis:100%;justify-content:start}
  .saas-control-plane .admin-tenant-sections{display:grid;grid-template-columns:minmax(0,1fr)}
  .saas-control-plane .admin-content{padding:12px}
  .saas-control-plane .tenant-management-controls{align-items:stretch;flex-direction:column}
  #viewContent .settings-hero,#viewContent .settings-section{padding:16px}
  #viewContent .settings-hero h3{font-size:19px}
  #viewContent .settings-card{padding:16px}
  #viewContent .settings-layout{gap:16px}
  #viewContent .settings-tools{padding:12px}
  #viewContent .settings-inline-content>.settings-section{padding:16px}
  .record-dialog form>footer{padding:16px;gap:8px}
  .record-dialog form>footer>button{flex:1}
}
@media(prefers-reduced-motion:reduce){
  .saas-control-plane :is(button,.btn),#viewContent .settings-card{transition:none;transform:none!important}
}

/* Component contract: one rhythm for normal SaaS/subscriber workspaces.
   Keep specialty POS, spreadsheet cells and printed documents in their owners. */
:where(#workspace,.saas-control-plane,.record-dialog,.record-detail-dialog,.settings-dialog,.sheet-dialog){
 --control-height:40px;--control-radius:8px;--control-panel-radius:14px;
 --ui-control-height:var(--control-height);--ui-radius:var(--control-radius);--ui-panel-radius:var(--control-panel-radius);
}
#workspace{--pattern-line:var(--border);--pattern-muted:var(--text-muted);--control-height:40px;--control-radius:8px;--control-panel-radius:14px}
/* One scrolling content area and one independent navigation area. Tables own
   horizontal overflow only; do not clip focus rings or dropdowns to hide bugs. */
#workspace .erp-main{min-width:0;min-height:0}
#workspace #viewContent{padding:20px;min-width:0;overflow-y:auto;overflow-x:clip;scrollbar-gutter:stable;overscroll-behavior-y:contain}
#workspace :is(#moduleNav,#viewContent),.record-dialog .record-fields,.settings-dialog,.saas-control-plane .admin-content{scrollbar-width:thin;scrollbar-color:var(--border,#cbd5e1) transparent}
#workspace :is(#moduleNav,#viewContent)::-webkit-scrollbar,.record-dialog .record-fields::-webkit-scrollbar{width:8px;height:8px}
#workspace :is(#moduleNav,#viewContent)::-webkit-scrollbar-thumb,.record-dialog .record-fields::-webkit-scrollbar-thumb{background:var(--border);border:2px solid transparent;background-clip:padding-box;border-radius:8px}
/* The header has a stable action row; search can use a second row at medium widths. */
#workspace .workspace-header{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,.8fr) auto;gap:12px;min-height:80px;padding:12px 20px!important;align-items:center}
#workspace .workspace-identity{min-width:0;padding-block:0}
#workspace .workspace-identity h2{font-size:18px;margin:2px 0;line-height:1.5}
#workspace .workspace-control-context{margin:2px 0 0;font-size:11px;line-height:1.6}
#workspace .workspace-actions{display:flex!important;flex-wrap:nowrap;gap:8px;justify-content:flex-end;min-width:0}
#workspace .workspace-actions>*,#workspace .workspace-actions button{flex-shrink:0}
#workspace .workspace-actions>:is(button,.quick-add-trigger),#workspace .workspace-actions>.quick-add-wrap>.quick-add-trigger{min-height:40px;height:40px;border-radius:var(--ds-control-radius);padding:8px 12px!important;font-size:12px;line-height:1.5;box-shadow:none!important}
#workspace #quickAdd{background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--border)!important}
#workspace #refreshView{width:40px;min-width:40px;padding:0!important;display:inline-grid;place-items:center;background:var(--surface);color:var(--text-muted);border:1px solid var(--border)}
#workspace .global-search{min-width:0;width:100%;margin:0}
#workspace .global-search input{min-width:0;width:100%;height:40px;min-height:40px}
@media(min-width:761px) and (max-width:1280px){
 #workspace .workspace-header{grid-template-columns:minmax(0,1fr) auto}
 #workspace .workspace-identity{grid-column:1;grid-row:1}
 #workspace .workspace-actions{grid-column:2;grid-row:1}
 #workspace .global-search{grid-column:1/-1;grid-row:2;max-width:none;height:36px}
 #workspace .global-search input{height:36px;min-height:36px}
}
/* Navigation controls do not consume the entire short desktop viewport. */
#workspace .erp-sidebar{padding:12px 12px 10px;gap:0}
#workspace .tenant-mark{min-height:48px;height:auto;padding:0 8px 10px;gap:10px}
#workspace .tenant-mark img{width:34px;height:34px}
#workspace .tenant-context{margin:8px 0;padding:7px 10px;border-radius:8px;min-height:32px}
#workspace .sidebar-user{margin:0 0 8px;padding:7px 10px;min-height:40px;border-radius:8px}
#workspace .sidebar-health{padding:5px 10px;min-height:28px;height:auto;border-radius:8px}
#workspace .logout-button{min-height:36px;height:36px;padding:6px 10px;margin:6px 0 0;border-radius:8px;font-size:12px;box-shadow:none}
#workspace #moduleNav{padding:0 4px 12px;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable}
#workspace #moduleNav .nav-tools{padding:4px 0 8px;margin:0;gap:8px}
#workspace .nav-app-label{gap:4px;font-size:11px}
#workspace :is(.nav-app-switch,.nav-search){min-height:36px;height:36px;border-radius:8px;padding:6px 10px;font-size:12px}
#workspace .nav-section-label{min-height:36px;padding:8px;font-size:12px}
#workspace .nav-button{min-height:38px;padding:8px 10px;margin-block:2px;border-radius:8px;box-shadow:none!important;font-size:12px;line-height:1.6}
#workspace .nav-item-row{grid-template-columns:minmax(0,1fr) 28px;gap:4px}
#workspace .nav-favorite-toggle{min-height:36px;min-width:28px;font-size:16px}
/* List pages are one card, not a stack of bordered cards with added margins. */
#viewContent .workspace-record-list{display:block;padding:0!important;border:1px solid var(--border);border-radius:var(--ds-card-radius);overflow:visible;box-shadow:none}
#viewContent .workspace-record-list>.workspace-report-context{border:0;border-bottom:1px solid var(--border);border-radius:var(--ds-card-radius) var(--ds-card-radius) 0 0;padding:10px 20px;margin:0;gap:6px 16px;min-height:0;background:var(--surface-subtle);font-size:12px}
#viewContent .workspace-record-list>.workspace-report-context>small{flex-basis:auto;margin-inline-start:auto;font-size:11px;line-height:1.6}
#viewContent .workspace-record-list>.panel-heading{padding:14px 20px!important;margin:0;gap:12px;align-items:center;min-height:0;border-bottom:1px solid var(--border)}
#viewContent .workspace-record-list>.panel-heading h3{font-size:18px;margin:0 0 3px;line-height:1.5}
#viewContent .workspace-record-list>.panel-heading small{font-size:12px;line-height:1.6;color:var(--text-muted)}
#viewContent .workspace-record-list>.panel-heading>button{order:3;flex:0 0 auto}
#viewContent .workspace-record-list>.empty-state{margin:0;padding:28px 20px}
#viewContent .workspace-record-list>p.hint{margin:0;padding:12px 20px;border-bottom:1px solid var(--border);font-size:12px;line-height:1.8}
#viewContent .workspace-record-list .table-filter-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}
#viewContent .workspace-record-list .table-filter-actions input:not([type=checkbox]):not([type=radio]){width:260px;min-width:min(220px,100%);height:40px;flex:1 1 220px}
#viewContent .workspace-record-list>.portal-data-container{border:0;border-radius:0;background:var(--surface);box-shadow:none;overflow:visible}
#viewContent .table-filter-bar{padding:12px 20px!important;margin:0!important;gap:10px;border-bottom:1px solid var(--border);flex-wrap:wrap}
#viewContent .table-filter-bar>input[type=search]{flex:1 1 220px;max-width:360px!important;min-height:40px;height:40px}
#viewContent .table-filter-bar .table-presentation-tools{gap:8px;flex-wrap:wrap;align-items:center}
#viewContent .table-filter-bar :is(button,select,summary){min-height:36px;line-height:1.5}
#viewContent .workspace-list-panel{padding:0 20px!important;border-block-end:1px solid var(--border);background:var(--surface);min-width:0}
#viewContent .workspace-list-options>summary{cursor:pointer;min-height:36px;padding:8px 0;font-size:12px;color:var(--text-muted);line-height:1.6}
#viewContent .workspace-list-options[open]>summary{color:var(--accent)}
#viewContent .workspace-list-options>.workspace-list-tools{padding-block:4px 12px}
#viewContent .workspace-list-options>.workspace-list-scope{margin:0 0 12px;font-size:11px}
#viewContent .workspace-list-chips:empty{display:none}
#viewContent .workspace-list-chips:not(:empty){margin:0;padding-block:6px 10px}
#viewContent .workspace-record-list .data-wrap{border:0;border-radius:0;overflow-x:auto;overflow-y:visible;max-width:100%;box-shadow:none}
#viewContent .workspace-record-list .erp-table :is(th,td){padding:11px 14px;line-height:1.6}
#viewContent .workspace-record-list .erp-table th{font-size:12px;background:var(--surface-subtle)}
#viewContent .workspace-record-list .pagination-bar{padding:10px 20px!important;border-top:1px solid var(--border);border-radius:0 0 var(--ds-card-radius) var(--ds-card-radius);gap:10px!important;flex-wrap:wrap;font-size:12px}
/* Borders and focus use a single ring. No parent ring around another input ring. */
#workspace .global-search:focus-within{outline:none!important;border-color:var(--accent);box-shadow:0 0 0 2px var(--focus-ring)}
#workspace .global-search input:focus{outline:none!important;box-shadow:none!important}
#viewContent :is(.table-filter-actions,.table-filter-bar):focus-within{outline:none!important;box-shadow:none!important}
#viewContent :is(.table-filter-actions,.table-filter-bar) input:focus{outline:2px solid var(--focus-ring)!important;outline-offset:1px;box-shadow:none!important;border-color:var(--accent)!important}
#viewContent :is(.erp-panel,.settings-section,.settings-card,.report-panel,.vertical-panel,.quality-card){border-color:var(--border);box-shadow:none}
#viewContent :is(.settings-card,.report-panel,.quality-card)>p{line-height:1.8;word-break:normal;overflow-wrap:break-word}
#viewContent :is(.settings-card,.report-panel,.quality-card)>:is(h3,h4){line-height:1.6}
#viewContent .settings-center{gap:16px}
#viewContent .settings-hero{padding:18px 20px;border-radius:var(--ds-card-radius);background:var(--surface)}
#viewContent .settings-hero h3{font-size:20px;margin:4px 0}
#viewContent .settings-hero .hint{font-size:13px;line-height:1.8}
#viewContent .settings-control-areas{border-radius:10px;padding:4px;gap:4px}
#viewContent .settings-area-button{min-height:40px;padding:8px 12px;box-shadow:none!important;font-size:13px}
#viewContent .settings-tools{padding:14px 16px;border-radius:14px;gap:12px}
#viewContent .settings-section{padding:20px;border-radius:14px}
#viewContent .settings-card{padding:16px;gap:10px;border-radius:10px}
/* Shared normal buttons: stable heights, restrained borders, semantic variants. */
#viewContent :is(.workspace-record-list,.settings-center,.fleet-page,.quality-page,.cons-page,.vertical-page,.hr-links-page,.studio-page,.vertical-operations) button:not(.nav-button),
.record-dialog :is(.record-fields,footer) button,.saas-control-plane .btn{min-height:40px;border-radius:8px;padding:8px 12px;line-height:1.5;box-shadow:none}
#viewContent :is(.workspace-record-list,.settings-center,.fleet-page,.quality-page,.hr-links-page,.studio-page,.vertical-operations) button:disabled{box-shadow:none;transform:none}
#viewContent .workspace-record-list .record-more-actions>summary{border-radius:8px;min-height:34px}
/* The field body owns vertical scrolling; header, errors and footer remain visible. */
#recordDialog{width:min(800px,calc(100vw - 40px));max-height:calc(100dvh - 40px);border:1px solid var(--border);border-radius:14px}
#recordDialog>form,.restaurant-dialog>form.record-form{display:flex;flex-direction:column;max-height:calc(100dvh - 40px);min-height:0;overflow:hidden}
#recordDialog>form>header{padding:14px 20px;min-height:72px;box-sizing:border-box;border-bottom:1px solid var(--border);flex-shrink:0}
#recordDialog>form>header h2{font-size:19px;margin:2px 0;line-height:1.5}
#recordDialog .record-fields,.restaurant-dialog>form.record-form>.record-fields{padding:20px;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;flex:1 1 auto;gap:16px 20px;align-content:start}
#recordDialog .record-form-section{padding:10px 0;margin:0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none}
#recordDialog .record-form-section :is(h3,p){margin:0;line-height:1.7}
#recordDialog .record-form-section h3{font-size:14px}
#recordDialog .record-form-section p{margin-top:4px;font-size:12px}
#recordDialog footer,.restaurant-dialog>form.record-form>footer{flex-shrink:0;padding:12px 20px;min-height:64px;background:var(--surface-subtle);border-top:1px solid var(--border);gap:8px}
#recordDialog :is(.dialog-message,.form-error):empty,.restaurant-dialog>form.record-form>.form-error:empty{display:none}
#recordDialog .dialog-message:not(:empty),.restaurant-dialog>form.record-form>.form-error:not(:empty){margin:0;padding:10px 20px;max-height:100px;overflow-y:auto;flex-shrink:0}
.restaurant-dialog>form.record-form>h3{padding:16px 20px;margin:0;border-bottom:1px solid var(--border);font-size:19px;line-height:1.5;flex-shrink:0}
/* SaaS reuses the rhythm while retaining its own color and control ownership. */
.saas-control-plane .admin-content{gap:20px;padding:20px}
.saas-control-plane .admin-panel-card{border:1px solid var(--admin-border);border-radius:14px;box-shadow:none;margin-block-end:20px}
.saas-control-plane .panel-card-head{padding:14px 20px;min-height:60px}
.saas-control-plane .panel-card-body{padding:20px}
.saas-control-plane :is(.admin-ownership-note,.admin-task-disclosure,.admin-permission-picker,.admin-plugin-card){border-radius:10px;box-shadow:none}
.saas-control-plane #pluginAdmin{gap:16px}
.saas-control-plane #pluginAdmin .admin-plugin-card{padding:16px;border:1px solid var(--admin-border);background:var(--admin-surface);min-width:0}
.saas-control-plane #pluginAdmin .admin-plugin-card :is(p,small){line-height:1.8;overflow-wrap:break-word;word-break:normal}
@media(max-width:760px){
 :where(#workspace,.record-dialog,.record-detail-dialog,.settings-dialog,.sheet-dialog){--control-height:44px}
 #workspace #viewContent{padding:12px}
 #workspace .workspace-header{grid-template-columns:minmax(0,1fr);gap:8px;padding:10px 12px!important}
 #workspace .workspace-actions{flex-wrap:wrap;justify-content:flex-start}
 #workspace .workspace-header .global-search{width:100%}
 #workspace .workspace-actions>:is(button,.quick-add-trigger),#workspace .workspace-actions>.quick-add-wrap>.quick-add-trigger{min-height:44px;height:auto}
 #viewContent .workspace-record-list>.panel-heading{padding:12px!important;align-items:stretch}
 #viewContent .workspace-record-list .table-filter-actions{width:100%}
 #viewContent .workspace-record-list .table-filter-actions input:not([type=checkbox]):not([type=radio]){width:100%;min-width:0}
 #viewContent .table-filter-bar{padding:12px!important}
 #viewContent .workspace-list-panel{padding-inline:12px!important}
 #viewContent .workspace-record-list>.workspace-report-context{padding:10px 12px}
 #viewContent .workspace-record-list>.workspace-report-context>small{flex-basis:100%;margin-inline-start:0}
 #viewContent .workspace-record-list .pagination-bar{padding:10px 12px!important}
 #recordDialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
 #recordDialog>form,.restaurant-dialog>form.record-form{max-height:calc(100dvh - 20px)}
 #recordDialog .record-fields{grid-template-columns:minmax(0,1fr);padding:16px}
 #recordDialog footer{padding:12px 16px}
 .saas-control-plane .admin-content,.saas-control-plane .panel-card-body{padding:14px}
}
@media(prefers-reduced-motion:reduce){#workspace .workspace-actions button{transition:none!important}}
#workspace .sidebar-session-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;flex-shrink:0}
#workspace .sidebar-session-actions .logout-button{width:100%;min-width:0;padding:6px;font-size:11px;white-space:normal}
@media(max-width:760px){#workspace{--control-height:44px}}

#viewContent .workspace-record-list>.panel-heading>div:first-child{flex:1;order:1}
#viewContent .workspace-record-list>.panel-heading>.table-filter-actions{order:2;flex:0 1 330px}
#viewContent .workspace-record-list>.panel-heading>div:nth-child(2){order:3;flex:0 0 auto}
#viewContent .workspace-record-list>.panel-heading>.table-filter-actions input:not([type=checkbox]):not([type=radio]){width:100%;min-width:0}
#viewContent .table-filter-bar .export-csv-btn{border:1px solid var(--border)!important;border-radius:8px!important;background:var(--surface)!important;color:var(--text)!important;font-size:12px;min-height:40px;padding:8px 12px!important}
#viewContent .workspace-record-list .data-wrap{scrollbar-width:thin;scrollbar-color:var(--border) transparent;overscroll-behavior-inline:contain}
#viewContent .workspace-record-list .data-wrap:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}
@media(max-width:760px){#viewContent .workspace-record-list>.panel-heading>.table-filter-actions{flex-basis:100%;order:3}#viewContent .workspace-record-list>.panel-heading>div:nth-child(2){order:2}}
.record-dialog .record-fields :is(input:not([type=checkbox],[type=radio],[type=file],[type=color],[type=range],[type=hidden]),select){box-sizing:border-box;height:var(--control-height)!important;min-height:var(--control-height)!important;padding-block:8px!important;line-height:1.5}
body.saas-control-plane:has(#adminAppShell:not([hidden])){overflow:hidden}
.saas-control-plane .admin-main{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.saas-control-plane .admin-header{position:relative;top:auto;flex-shrink:0;min-height:92px;padding:14px 20px;gap:12px}
.saas-control-plane .admin-header-title h2{font-size:18px;line-height:1.5;margin:2px 0}
.saas-control-plane .admin-header-title>small{display:none}
.saas-control-plane .admin-control-context{font-size:12px;line-height:1.6;margin:2px 0}
.saas-control-plane .admin-content{min-height:0;flex:1;overflow:auto;scrollbar-gutter:stable;overscroll-behavior-y:contain;align-content:start}
@media(max-width:640px){.saas-control-plane .admin-main{height:calc(100dvh - 74px)}.saas-control-plane .admin-header{min-height:0;padding:12px;gap:8px}.saas-control-plane .admin-header-actions{width:auto}.saas-control-plane .admin-header-actions .health-badge{display:none}}
@media(max-width:760px){
 #workspace .workspace-header{grid-template-areas:none!important;grid-template-columns:44px minmax(0,1fr)!important}
 #workspace .workspace-header .sidebar-open{grid-area:auto!important;grid-column:1!important;grid-row:1!important}
 #workspace .workspace-header .workspace-identity{grid-area:auto!important;grid-column:2!important;grid-row:1!important}
 #workspace .workspace-header .workspace-actions{grid-area:auto!important;grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%;max-width:100%;gap:8px}
 #workspace .workspace-actions>*{grid-column:auto!important;min-width:0;max-width:100%;width:100%!important}
 #workspace .workspace-actions>#newRecord{grid-column:span 2!important}
 #workspace .workspace-actions #refreshView{grid-column:auto!important;width:100%!important}
 #workspace .workspace-actions>:is(button,.quick-add-trigger),#workspace .workspace-actions>.quick-add-wrap>.quick-add-trigger{width:100%;min-width:0;padding:8px!important;font-size:11px!important;white-space:normal}
}
.saas-control-plane :is(.admin-content>.admin-view,.admin-kpi-grid){min-width:0;max-width:100%}
.saas-control-plane .admin-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:16px}
@media(max-width:640px){

 .saas-control-plane .admin-kpi-grid{grid-template-columns:minmax(0,1fr)}
 .saas-control-plane .admin-header{align-items:stretch;min-width:0}
 .saas-control-plane .admin-header-actions{display:flex;justify-content:flex-start;flex-wrap:wrap;max-width:100%;min-width:0}
 .saas-control-plane .admin-header-actions select{width:auto;min-width:0;max-width:100%;flex:1 1 100px}
}
.saas-control-plane .panel-card-body:has(>.admin-table){min-width:0;max-width:100%;overflow-x:auto;padding:0!important;scrollbar-width:thin;overscroll-behavior-inline:contain}

.saas-control-plane .admin-content{grid-template-columns:minmax(0,1fr)}
.saas-control-plane .admin-content>.admin-tab-pane{min-width:0;max-width:100%;width:100%}
@media(max-width:760px){#workspace .workspace-actions #refreshView{position:static!important;inset:auto!important}}
@media(max-width:640px){
 .saas-control-plane .admin-header{flex-direction:column!important;align-items:stretch}
 .saas-control-plane .admin-header-title{flex:none;width:100%;max-width:100%}
 .saas-control-plane .admin-header-actions{flex:none;width:100%!important;max-width:100%}
}
#viewContent{overflow-wrap:break-word}
#viewContent .settings-center :is(input:not([type=checkbox],[type=radio],[type=file],[type=color],[type=range],[type=hidden]),select:not([multiple])),
.saas-control-plane :is(.admin-content,.admin-header) :is(input:not([type=checkbox],[type=radio],[type=file],[type=color],[type=range],[type=hidden]),select:not([multiple])){box-sizing:border-box;height:var(--control-height)!important;min-height:var(--control-height)!important;padding-block:8px!important;line-height:1.5}
@media(max-width:640px){.saas-control-plane{--control-height:44px}}
:is(.record-detail-dialog,.settings-dialog,.sheet-dialog){border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);scrollbar-width:thin}
.record-detail-dialog>header{padding:16px 20px;background:var(--surface-subtle);border-bottom:1px solid var(--border)}
.record-detail-dialog>footer{padding:12px 20px;border-top:1px solid var(--border);background:var(--surface-subtle)}
.record-detail-dialog>footer button{min-height:var(--control-height);border-radius:8px;padding:8px 12px;box-shadow:none}
.saas-control-plane .admin-kpi-card{padding:20px;border:1px solid var(--admin-border);border-radius:14px;box-shadow:none}
.saas-control-plane .admin-kpi-grid{margin-block-end:20px}

/* Specialized pages share their layout even when the Fleet bundle was never opened. */
#viewContent .fleet-page{display:grid;gap:16px;align-content:start;min-width:0}
#viewContent .fleet-page>.report-panel{min-height:0;height:auto;padding:20px;border-radius:14px;background:var(--surface)}
#viewContent .fleet-page .form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0}
#viewContent .fleet-page>:is(h3,p),#viewContent .fleet-page .report-panel>:is(h4,p){margin:0;line-height:1.8}
#viewContent .fleet-page .report-panel>h4{font-size:15px;margin-block-end:6px}
#viewContent .workspace-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;min-height:40px}
#viewContent .workspace-page-heading h3{margin:0;font-size:18px;line-height:1.6}
#viewContent .fleet-page>.workspace-report-context,#viewContent .report-page>.workspace-report-context{padding:10px 16px;margin:0;gap:6px 16px;min-height:0;font-size:12px;border-radius:10px}
#viewContent :is(.fleet-page,.report-page)>.workspace-report-context>small{flex-basis:auto;margin-inline-start:auto;font-size:11px}
#viewContent .bank-sync-page{padding:20px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
#viewContent .bank-sync-page>.hint{font-size:13px;color:var(--text-muted);line-height:1.8}
#viewContent .bank-sync-page>.empty-state{min-height:100px;padding:20px;border:1px dashed var(--border);border-radius:10px;background:var(--surface-subtle);font-size:13px;line-height:1.8}
#viewContent .bank-sync-page>.empty-state::before{content:none}
#viewContent .bank-sync-page>.workspace-message{margin:0;padding:12px 16px;font-size:13px;line-height:1.8;border-radius:10px;text-align:start}
/* Reports: results first, one date toolbar, then searchable grouped destinations. */
#viewContent .report-page{gap:16px;min-width:0}
#viewContent .report-hero{padding:16px 20px;gap:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:none;align-items:center}
#viewContent .report-hero h3{font-size:20px;margin:2px 0;line-height:1.5}
#viewContent .report-hero .hint{font-size:13px;line-height:1.7}
#viewContent .report-eyebrow{color:var(--accent);letter-spacing:normal}
#viewContent .report-filter-bar{display:flex;align-items:flex-end;flex-wrap:wrap;width:100%;gap:12px;padding:16px;margin:0;border:1px solid var(--border);border-radius:12px;background:var(--surface);backdrop-filter:none;box-sizing:border-box}
#viewContent .report-filter-field{display:grid;gap:6px;flex:1 1 180px;max-width:260px;min-width:0;margin:0;font-size:13px;font-weight:600;color:var(--text)}
#viewContent .report-filter-bar>button{width:auto!important;flex:0 1 auto;padding-inline:18px;white-space:normal}
#viewContent .report-hero>.report-filter-bar{flex-basis:100%;max-width:100%}
#viewContent .report-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
#viewContent .report-navigation>button{min-height:var(--control-height);padding:8px 16px;border-radius:8px;white-space:normal}
#viewContent>.workspace-record-list{border:1px solid var(--border);border-radius:var(--ds-card-radius);background:var(--surface);box-shadow:none;min-width:0}
#viewContent .workspace-record-list .table-toolbar{border-start-start-radius:14px;border-start-end-radius:14px}
#viewContent .row-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;min-width:max-content}
#viewContent .row-actions>button{flex-shrink:0;min-height:36px;border-radius:8px;padding:7px 12px;font-size:12px;line-height:1.6;text-decoration:none;white-space:nowrap}
#viewContent .row-actions>.record-details-action{border:1px solid var(--border);background:var(--surface);color:var(--accent);box-shadow:none}
#viewContent .row-actions>.record-details-action:hover{border-color:var(--accent);background:var(--surface-alt,var(--surface))}
@media(max-width:600px){#viewContent .report-filter-bar{padding:14px;gap:12px}#viewContent .report-filter-field{flex:1 1 140px;max-width:none}#viewContent .report-filter-bar>button{flex:1 1 140px}#viewContent .report-navigation>button{flex:1 1 140px}}
#viewContent .report-filter-bar :is(input,button){min-width:0;width:100%;height:var(--control-height);min-height:var(--control-height);border-radius:8px;box-shadow:none;font-size:12px}
#viewContent .report-filter-bar input{border:1px solid var(--border);padding:8px 12px;background:var(--surface);color:var(--text)}
#viewContent .report-kpis{gap:12px}
#viewContent .report-kpi{padding:16px;border-radius:14px;box-shadow:none}
#viewContent .report-kpi strong{font-size:22px}
#viewContent .fleet-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));gap:12px;min-width:0}
#viewContent .fleet-kpi{display:grid;align-content:start;gap:6px;min-width:0;padding:14px;border:1px solid var(--border);border-inline-start:3px solid var(--accent);border-radius:12px;background:var(--surface)}
#viewContent .fleet-kpi small{color:var(--text-muted);line-height:1.6}
#viewContent .fleet-kpi strong{color:var(--text);font-size:18px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#viewContent .report-grid{gap:16px;min-width:0}
#viewContent .report-grid>.report-panel{padding:16px;min-width:0;min-height:0;border-radius:14px}
#viewContent .report-library{margin:0;gap:16px;padding:20px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
#viewContent .report-library-head{align-items:center;gap:16px}
#viewContent .report-library-head h3{font-size:18px;margin:2px 0;line-height:1.6}
#viewContent .report-library-head .hint{font-size:13px;line-height:1.7;margin:4px 0 0}
#viewContent .report-library-search{height:var(--control-height);min-height:var(--control-height);border-radius:8px;min-width:0}
#viewContent :is(.report-library-search,.report-filter-bar input):focus{outline:2px solid var(--focus-ring)!important;outline-offset:1px;box-shadow:none!important;border-color:var(--accent)!important}
#viewContent .report-library-groups{gap:10px;min-width:0}
#viewContent .report-library-group{padding:0;border:1px solid var(--border);border-radius:10px;background:var(--surface);min-width:0}
#viewContent .report-library-group>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:12px 16px;font-size:14px;font-weight:700;line-height:1.7}
#viewContent .report-library-group>summary::-webkit-details-marker{display:none}
#viewContent .report-library-group>summary::before{content:'‹';font-size:20px;color:var(--text-muted)}
#viewContent .report-library-group[open]>summary::before{content:'⌄'}
#viewContent .report-library-group>summary small{margin-inline-start:auto;font-size:11px;color:var(--text-muted);font-weight:400}
#viewContent .report-library-grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:0;padding:0 16px 12px}
#viewContent .report-library-card{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;align-items:center;min-height:56px;padding:10px 12px;border:0;border-block-start:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none;text-align:start;gap:8px}
#viewContent .report-library-card b{font-size:13px;line-height:1.8;white-space:normal}
#viewContent .report-library-card:hover{transform:none;background:var(--surface-subtle);box-shadow:none}
/* Operations share one compact disclosure rather than a separate page-wide toolbar. */
#viewContent .workspace-action-menu{position:relative;order:4;flex:0 0 auto;width:max-content;max-width:100%;align-self:center;margin:0;z-index:20}
#viewContent>.workspace-action-menu{justify-self:end;align-self:flex-start;margin-block-end:12px}
#viewContent .workspace-action-menu>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;min-height:var(--control-height);box-sizing:border-box;padding:8px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:12px;font-weight:700;line-height:1.5}
#viewContent .workspace-action-menu>summary::-webkit-details-marker{display:none}
#viewContent .workspace-action-menu>summary::after{content:'⌄';font-size:15px;color:var(--text-muted)}
#viewContent .workspace-action-menu[open]>summary{border-color:var(--accent);color:var(--accent);background:var(--surface-subtle)}
#viewContent .workspace-action-menu-items{position:absolute;inset-inline-end:0;top:calc(100% + 8px);display:grid;grid-template-columns:minmax(0,1fr);gap:4px;width:260px;max-width:calc(100vw - 40px);max-height:min(360px,55dvh);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;padding:8px;margin:0;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:0 12px 30px #0f172a14;scrollbar-width:thin}
#viewContent details.workspace-action-menu>.workspace-action-menu-items>button{width:100%;min-height:40px;height:auto;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:var(--text);font-size:13px;text-align:start;justify-content:flex-start;white-space:normal;line-height:1.6;box-shadow:none}
#viewContent details.workspace-action-menu>.workspace-action-menu-items>button:hover{background:var(--surface-subtle);color:var(--accent);transform:none;box-shadow:none}
#viewContent .workspace-action-menu>summary:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
/* Stock, payment and return dialogs follow the same bounded form pattern. */
dialog.record-dialog{border-radius:14px;box-shadow:0 24px 60px #0f172a33}
#workspace :is(button.primary,button.primary-action,button[type=submit],a.primary-action),dialog.record-dialog :is(button.primary,button.primary-action,footer button[type=submit]){min-height:var(--control-height);border-radius:8px;border:1px solid var(--accent)!important;background:var(--accent)!important;color:var(--accent-text,#fff)!important;box-shadow:none;line-height:1.5;transform:none}
#workspace :is(button.primary,button.primary-action,button[type=submit],a.primary-action):hover,dialog.record-dialog :is(button.primary,button.primary-action,footer button[type=submit]):hover{background:var(--accent-hover,var(--accent))!important;box-shadow:none;transform:none}
dialog.record-dialog.transaction-dialog{width:min(900px,calc(100vw - 40px));max-height:calc(100dvh - 40px);border:1px solid var(--border);border-radius:14px;overflow:hidden}
dialog.record-dialog.transaction-dialog>form{max-height:calc(100dvh - 40px);min-height:0;overflow:hidden}
.transaction-dialog>form>header{flex-shrink:0;padding:14px 20px;min-height:72px;box-sizing:border-box}
.transaction-dialog>form>header h2{margin:2px 0;font-size:19px;line-height:1.5}
.transaction-dialog>form>.record-fields{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:20px;gap:16px;scrollbar-gutter:stable}
.transaction-dialog>form>footer{flex-shrink:0;min-height:64px;box-sizing:border-box;padding:12px 20px;border-top:1px solid var(--border);background:var(--surface-subtle);gap:8px}
.transaction-dialog>form>footer button{min-height:var(--control-height);border-radius:8px;padding:8px 12px;box-shadow:none;font-size:13px;line-height:1.5}
dialog.record-dialog.transaction-dialog>form>footer>button{box-sizing:border-box;block-size:var(--control-height);padding-block:0;font-size:13px;line-height:1.5}
.record-dialog .record-fields :is(input,select,textarea):focus{outline:2px solid var(--focus-ring);outline-offset:1px;border-color:var(--accent);box-shadow:none!important}
.transaction-dialog .transaction-head{gap:16px!important}
.transaction-dialog :is(input:not([type=checkbox],[type=radio],[type=hidden]),select){box-sizing:border-box;min-height:var(--control-height)!important;height:var(--control-height)!important;padding:8px 12px;line-height:1.5;border-radius:8px}
.transaction-dialog .line-editor{box-shadow:none;border-radius:10px}
.transaction-dialog .operation-empty-state{margin:0;padding:16px;border-radius:10px;line-height:1.8;box-shadow:none}
.transaction-dialog .dialog-message:not(:empty){flex-shrink:0;margin:0;padding:10px 20px;max-height:90px;overflow-y:auto}
#viewContent .settings-hero{padding:16px 20px}
#viewContent .settings-hero .settings-eyebrow{display:none}
#viewContent .settings-hero h3{font-size:18px;margin:0 0 6px}
#viewContent .settings-hero .hint{margin:0;font-size:13px;line-height:1.7}
#viewContent .settings-tools{padding:12px 16px}
#viewContent .settings-tools .hint{margin:0;font-size:12px;line-height:1.7}
#viewContent .settings-context{margin:0;font-size:12px;line-height:1.7}
@media(max-width:760px){
 #viewContent .bank-sync-page,#viewContent .report-library{padding:14px}
 #viewContent .report-hero{padding:14px;align-items:stretch}
 #viewContent .report-filter-bar{width:100%}
 #viewContent .report-library-grid{grid-template-columns:minmax(0,1fr)}
 #viewContent .workspace-page-heading{align-items:stretch;flex-direction:column;gap:10px}
 #viewContent :is(.fleet-page,.report-page)>.workspace-report-context>small{flex-basis:100%;margin:0}
 #viewContent .workspace-action-menu{align-self:flex-start}
 #viewContent .workspace-action-menu-items{width:min(280px,calc(100vw - 48px));inset-inline-start:0;inset-inline-end:auto}
 #viewContent .workspace-record-list>.panel-heading{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center!important;gap:8px}
 #viewContent .workspace-record-list>.panel-heading>div:first-child{grid-column:1;grid-row:1;min-width:0}
 #viewContent .workspace-record-list>.panel-heading>div:nth-child(2){grid-column:2;grid-row:1}
 #viewContent .workspace-record-list>.panel-heading>.workspace-action-menu{grid-column:3;grid-row:1;align-self:center}
 #viewContent .workspace-record-list>.panel-heading>.table-filter-actions{grid-column:1/-1;grid-row:2}
 #viewContent .workspace-record-list>.panel-heading .workspace-action-menu-items{inset-inline-start:auto;inset-inline-end:0}
 #viewContent .workspace-record-list>.panel-heading h3{font-size:16px}
 dialog.record-dialog.transaction-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
 dialog.record-dialog.transaction-dialog>form{max-height:calc(100dvh - 20px)}
 .transaction-dialog>form>.record-fields{padding:16px}
}

/* Specialized business lists: one card rhythm and wrapping action rows. */
#viewContent :is(.fleet-page,.quality-page,.cons-page,.desk-page,.clean-page){min-width:0;gap:16px;align-content:start}
#viewContent .quality-page{display:grid}
#viewContent :is(.fleet-page,.quality-page)>.panel-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0;padding:16px 20px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:none}
#viewContent :is(.fleet-page,.quality-page)>.panel-heading :is(h3,p){margin:0;line-height:1.7}
#viewContent :is(.fleet-page,.quality-page)>.panel-heading p{font-size:13px;color:var(--text-muted)}
#viewContent :is(.fleet-page,.quality-page)>.panel-heading button{margin:0;white-space:normal}
#viewContent .workspace-operation-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;min-width:0}
#viewContent .workspace-operation-actions>button{flex:0 1 auto;margin:0;max-width:100%;white-space:normal;overflow-wrap:break-word;text-align:start}
#viewContent :is(.fleet-page,.quality-page,.cons-page,.desk-page,.clean-page) :is(.workspace-operation-card,.report-panel),
#viewContent .fleet-page>.erp-panel{min-width:0;height:auto;min-height:0;margin:0;padding:16px 20px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:none;overflow-wrap:break-word}
#viewContent :is(.fleet-page,.quality-page,.cons-page,.desk-page,.clean-page) :is(.report-panel,.erp-panel)>h4{font-size:15px;margin:0 0 8px;line-height:1.7}
#viewContent :is(.fleet-page,.quality-page,.cons-page,.desk-page,.clean-page) :is(.report-panel,.erp-panel)>p{font-size:13px;line-height:1.8;margin:0 0 12px;color:var(--text-muted)}
#viewContent .workspace-operation-card>.workspace-operation-actions{margin-block-start:12px}
#viewContent .workspace-operation-section>.workspace-operation-records{display:grid;gap:12px;margin-block:12px 0;min-width:0}
#viewContent .workspace-operation-section>.workspace-operation-pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-block:12px 0;font-size:12px;color:var(--text-muted)}
#viewContent .workspace-operation-section .workspace-operation-card{padding:14px 16px;border-radius:10px;background:var(--surface-subtle)}
#viewContent :is(.fleet-page,.quality-page,.cons-page,.desk-page,.clean-page) .empty-state{min-height:0;margin:0;padding:20px 16px;border:1px dashed var(--border);border-radius:10px;background:var(--surface-subtle);font-size:13px;line-height:1.8;box-shadow:none}
#viewContent :is(.fleet-page,.quality-page,.cons-page,.desk-page,.clean-page) .empty-state::before{content:none}
/* These filters are also used before the optional Fleet stylesheet is loaded. */
#viewContent .fleet-page .fleet-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));align-items:end;gap:12px;padding:16px;margin:0;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
#viewContent .fleet-page .fleet-filters .record-field{display:grid;gap:6px;min-width:0;margin:0;font-size:13px}
#viewContent .fleet-page .fleet-filters :is(input:not([type=checkbox],[type=radio],[type=hidden]),select){height:var(--control-height);min-height:var(--control-height);width:100%;min-width:0;border-radius:8px;padding:8px 12px;line-height:1.5;background:var(--surface);color:var(--text);border:1px solid var(--border)}
#viewContent .fleet-page .fleet-filters>button{justify-self:start;align-self:end;min-height:var(--control-height);margin:0}
#viewContent .fleet-page>button{justify-self:start;max-width:100%;white-space:normal}
#viewContent :is(.desk-stations,.desk-visits,.clean-comparison){min-width:0}
#viewContent :is(.desk-stations,.desk-visits,.clean-comparison)>*{min-width:0}
#viewContent .desk-page .desk-inside{border-inline-start:4px solid var(--success,#10a587)}
#viewContent .desk-page .desk-expected{border-inline-start:4px solid var(--accent,#7361eb)}
#viewContent :is(.quality-page,.cons-page,.desk-page,.clean-page)>:is(h3,p){margin:0;line-height:1.8}
#viewContent :is(.quality-page,.cons-page,.desk-page,.clean-page)>h3{font-size:18px}
#viewContent :is(.quality-page,.cons-page,.desk-page,.clean-page)>p.hint{font-size:13px;color:var(--text-muted)}
#viewContent .hr-links-page{padding:20px;border-radius:14px;box-shadow:none}
#viewContent .hr-links-page>h3{font-size:18px;margin-block:16px 8px;line-height:1.7}
#viewContent .hr-links-page>p.hint{font-size:13px;line-height:1.8;margin-block:0 16px}
#viewContent .hr-links-form{padding:16px;gap:16px;border-radius:10px}
#viewContent .hr-links-form>label{font-size:13px;line-height:1.6}
#viewContent .hr-links-form :is(select,button){box-sizing:border-box;height:var(--control-height);min-height:var(--control-height);padding:8px 12px;border-radius:var(--ds-control-radius);line-height:1.5}
/* Read-only histories use a section, not the editable form's fields scroll area. */
dialog.record-dialog:has(>section.record-form){padding:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
dialog.record-dialog>section.record-form{display:grid;gap:12px;min-width:0;padding:20px}
dialog.record-dialog>section.record-form>h3{position:sticky;inset-block-start:0;z-index:1;margin:-20px -20px 0;padding:14px 20px;font-size:18px;line-height:1.7;background:var(--surface);border-bottom:1px solid var(--border)}
dialog.record-dialog>section.record-form>p{margin:0;line-height:1.8;font-size:13px;overflow-wrap:anywhere}
dialog.record-dialog>section.record-form>*{min-width:0;max-width:100%}
dialog.record-dialog>section.record-form>h3{max-width:none}
dialog.record-dialog .workspace-operation-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
dialog.record-dialog>section.record-form>.workspace-operation-actions:last-child{position:sticky;inset-block-end:0;z-index:1;margin:0 -20px -20px;padding:12px 20px;max-width:none;background:var(--surface);border-top:1px solid var(--border)}
dialog.record-dialog>section.record-form>.workspace-operation-actions>button{margin:0;min-height:var(--control-height);border-radius:var(--ds-control-radius);padding:8px 12px;white-space:normal;box-shadow:none}
dialog.restaurant-dialog.gym-access-dialog{width:min(640px,calc(100% - 24px))}
#viewContent :is(.fleet-page,.quality-page)>.panel-heading button[aria-current="page"]{
 background:var(--surface-subtle);border-color:var(--accent);color:var(--accent);font-weight:700
}
#viewContent :is(.gym-page,.salon-page) .vertical-record-grid{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr));gap:12px;align-items:stretch;min-width:0
}
#viewContent :is(.gym-page,.salon-page) .vertical-record-grid>.empty-state{grid-column:1/-1}
#viewContent :is(.gym-page,.salon-page) .vertical-record-grid>.workspace-operation-card{
 display:flex;flex-direction:column;gap:10px;padding:16px
}
#viewContent :is(.gym-page,.salon-page) .vertical-record-grid>.workspace-operation-card>:is(h4,p){margin:0}
#viewContent :is(.gym-page,.salon-page) .vertical-record-grid>.workspace-operation-card>p:empty{display:none}
#viewContent :is(.gym-page,.salon-page) .vertical-record-grid>.workspace-operation-card>.workspace-operation-actions{margin-top:auto;padding-top:6px}
#viewContent :is(.gym-page,.salon-page) .vertical-record-facts,dialog .vertical-form-summary .vertical-record-facts{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(126px,100%),1fr));gap:8px;margin:0
}
#viewContent :is(.gym-page,.salon-page) .vertical-record-facts>div,dialog .vertical-form-summary .vertical-record-facts>div{
 min-width:0;display:grid;gap:3px;padding:7px 10px;background:var(--surface-subtle);border-radius:8px
}
#viewContent :is(.gym-page,.salon-page) .vertical-record-facts dt,dialog .vertical-form-summary dt{font-size:12px;color:var(--text-muted)}
#viewContent :is(.gym-page,.salon-page) .vertical-record-facts dd,dialog .vertical-form-summary dd{margin:0;font-size:13px;font-weight:700;overflow-wrap:anywhere}
dialog .vertical-form-summary h4{margin:0 0 10px}
#viewContent .gym-page>.vertical-search{grid-template-columns:minmax(0,1fr) auto}
#viewContent .gym-page>.vertical-pagination{margin:0;justify-content:flex-end;gap:8px;flex-wrap:wrap}
dialog.restaurant-dialog .vertical-form-cards{display:grid;gap:10px;min-width:0}
dialog.restaurant-dialog .vertical-form-cards:empty{display:none}
dialog.restaurant-dialog .vertical-form-cards>:is(.vertical-form-card,.workspace-operation-card){display:grid;gap:10px;min-width:0;min-height:0;margin:0}
dialog.restaurant-dialog .vertical-form-cards :is(h4,p){margin:0}
dialog.restaurant-dialog .vertical-form-cards p:empty{display:none}
dialog.gym-access-dialog .record-field{display:grid;gap:6px;min-width:0}
dialog.gym-access-dialog p[role="status"]:empty{display:none}
dialog.restaurant-dialog .vertical-form-card>.workspace-operation-actions{margin-top:4px}
@media(max-width:560px){
 #viewContent .gym-page>.vertical-search{grid-template-columns:minmax(0,1fr)}
 #viewContent .gym-page>.vertical-search>button{justify-self:stretch}
 #viewContent :is(.gym-page,.salon-page) .vertical-record-grid>.workspace-operation-card{padding:14px}
}
@media(max-width:760px){
 #viewContent :is(.fleet-page,.quality-page)>.panel-heading,
 #viewContent :is(.fleet-page,.quality-page,.cons-page,.desk-page,.clean-page) :is(.workspace-operation-card,.report-panel),
 #viewContent .fleet-page>.erp-panel{padding:14px}
 #viewContent :is(.fleet-page,.quality-page,.cons-page,.vertical-page) .workspace-operation-actions>button{min-height:44px;flex:0 1 auto}
 #viewContent .fleet-page .fleet-filters{padding:14px;grid-template-columns:minmax(0,1fr)}
 #viewContent .fleet-page .fleet-filters>button{justify-self:stretch}
 #viewContent .hr-links-page{padding:14px}
 #viewContent .hr-links-form{padding:14px}
 dialog.record-dialog>section.record-form>.workspace-operation-actions>button{min-height:44px}
}
/* Native select text needs room for the Arabic font's ascenders and descenders. */
#viewContent select:not([multiple]),dialog.record-dialog select:not([multiple]){--field-padding-block:4px;padding-block:4px!important}
#viewContent .vertical-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;min-width:0}
#viewContent .vertical-toolbar>button{margin:0;max-width:100%;white-space:normal}
#viewContent :is(.vertical-page,.cons-page)>.cons-card{display:grid;gap:12px;min-width:0;padding:16px 20px;border:1px solid var(--border);border-radius:var(--ds-card-radius);background:var(--surface)}
#viewContent :is(.vertical-page,.cons-page)>.cons-card>:is(h3,p){margin:0;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:760px){#viewContent .vertical-toolbar>button{min-height:44px}#viewContent :is(.vertical-page,.cons-page)>.cons-card{padding:var(--ds-space-4)}}

/* Date values need a full row on narrow report headers. */
@media(max-width:380px){#viewContent .report-filter-bar input[type=date]{grid-column:1/-1;min-width:0;width:100%;box-sizing:border-box}#viewContent .report-filter-bar button{white-space:normal;height:auto;min-height:44px;line-height:1.6}}

/* The staged analysis belongs to the complete report, not one balance-sheet column. */
#viewContent .report-grid>.report-balance-check{grid-column:1/-1;margin:0;padding:12px 16px;min-width:0;border:1px solid var(--border,#e2e8f0);border-radius:12px;background:var(--card,#fff);line-height:1.9}
#viewContent .report-grid>.report-structured-summary{grid-column:1/-1;display:grid;gap:24px;min-width:0;padding:20px}
#viewContent .report-structured-summary h4{margin:0;font-size:16px;line-height:1.9;overflow-wrap:anywhere}
#viewContent .report-structured-summary>.hint{margin:0;line-height:2;overflow-wrap:anywhere}
#viewContent .report-analysis-block{display:grid;gap:12px;min-width:0;padding-top:20px;border-top:1px solid var(--border,#e2e8f0)}
#viewContent .report-analysis-block .portal-data-container{max-width:100%;min-width:0}
@media(max-width:600px){#viewContent .report-grid>.report-structured-summary{padding:16px;gap:18px}#viewContent .report-analysis-block{padding-top:16px}}

/* Each financial statement owns the available page width. */
#viewContent .report-grid.report-single-column{grid-template-columns:minmax(0,1fr);width:100%;min-width:0}

/* Kitchen tickets keep identifiers, names, quantities and prices in distinct bidi contexts. */
#viewContent .kitchen-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:20px;align-items:start}
#viewContent .kitchen-ticket{min-width:0;padding:20px}
#viewContent .kitchen-ticket-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
#viewContent .kitchen-reference{font-weight:700;overflow-wrap:anywhere;min-width:0}
#viewContent .kitchen-ticket-items{list-style:none;padding:0;margin:20px 0 0;display:grid;gap:0}
#viewContent .kitchen-ticket-items>li{padding:16px 0;border-top:1px solid var(--border,#e2e8f0);min-width:0}
#viewContent .kitchen-item-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
#viewContent .kitchen-item-name{min-width:0;line-height:1.8;overflow-wrap:anywhere;text-align:start}
#viewContent .kitchen-item-name>bdi{display:block;unicode-bidi:plaintext}
#viewContent .kitchen-item-quantity{display:grid;gap:4px;text-align:center;flex:none;min-width:58px;padding:6px 10px;border-radius:10px;background:var(--card,#fff);font-size:12px}
#viewContent .kitchen-item-quantity>bdi{font-size:16px;font-weight:700}
#viewContent .kitchen-item-price{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
#viewContent .kitchen-preparation{margin:8px 0 0;padding:8px 12px;border-inline-start:3px solid #f59e0b;background:var(--card,#fff);border-radius:6px;line-height:1.8;overflow-wrap:anywhere;unicode-bidi:plaintext}
#viewContent .kitchen-source{overflow-wrap:anywhere;unicode-bidi:plaintext;border-top:1px solid var(--border,#e2e8f0);padding-top:12px;line-height:1.8}
@media(max-width:600px){#viewContent .kitchen-ticket{padding:16px}#viewContent .kitchen-item-heading{gap:10px}}

/* Compact kitchen reading order: dish, facts, choices, preparation. */
#viewContent .kitchen-board{gap:16px}
#viewContent .kitchen-ticket{background:var(--card,#fff);border:1px solid var(--border,#e2e8f0);border-top:3px solid #818cf8;border-radius:var(--ds-card-radius);padding:18px;box-shadow:0 2px 8px #0f172a06}
#viewContent .kitchen-ticket.status-served{border-top-color:#94a3b8}
#viewContent .kitchen-ticket.status-ready{border-top-color:#10b981}
#viewContent .kitchen-ticket-meta{justify-content:flex-start;gap:12px;margin-top:12px;line-height:1.7}
#viewContent .kitchen-ticket-items{margin-top:12px}
#viewContent .kitchen-ticket-items>li{padding:16px 0}
#viewContent .kitchen-item-heading{display:block}
#viewContent .kitchen-item-name{display:block;font-size:15px;line-height:1.65}
#viewContent .kitchen-item-name>bdi+ bdi{font-size:13px;font-weight:500;color:var(--muted,#64748b);margin-top:3px}
#viewContent .kitchen-item-facts{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:10px}
#viewContent .kitchen-item-quantity{display:inline-flex;align-items:center;gap:8px;min-width:0;padding:5px 10px;background:#eef2ff;color:#3730a3;line-height:1.6}
#viewContent .kitchen-item-quantity>bdi{font-size:14px}
#viewContent .kitchen-item-price{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:12px}
#viewContent .kitchen-choices{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
#viewContent .kitchen-choice{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:center;padding:4px 10px;border:1px solid #c7d2fe;border-radius:6px;background:#f5f3ff;color:#4338ca;font-size:12px;line-height:1.7}
#viewContent .kitchen-preparation{background:#fffbeb;color:#78350f;border-inline-start:2px solid #f59e0b;padding:7px 10px;font-size:13px;margin-top:8px;line-height:1.7}
#viewContent .kitchen-source{font-size:11px;margin:4px 0 0;padding-top:10px;color:var(--muted,#64748b)}
@media(max-width:600px){#viewContent .kitchen-ticket{padding:var(--ds-space-4)}#viewContent .kitchen-reference{font-size:12px}#viewContent .kitchen-item-name{font-size:var(--ds-card-radius)}}
#viewContent .kitchen-item-name>bdi{text-align:match-parent}
#viewContent .kitchen-item-name>bdi{text-align:right}html[dir=ltr] #viewContent .kitchen-item-name>bdi{text-align:left}

/* Shared restaurant pages follow the compact kitchen spacing and readable bidi blocks. */
#viewContent .restaurant-operations .vertical-hero{min-height:0;padding:20px 24px}
#viewContent .restaurant-operations .vertical-stats{gap:12px}
#viewContent .restaurant-operations .vertical-stat{padding:16px 20px;min-height:0}
#viewContent .restaurant-operations .vertical-panel-head{gap:16px;flex-wrap:wrap}
#viewContent .restaurant-operations .vertical-panel-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-width:0}
#viewContent .restaurant-operations button{min-height:var(--ds-control-height);line-height:1.6;white-space:normal;max-width:100%}
#viewContent .restaurant-bills-board{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
#viewContent .restaurant-bill,#viewContent .restaurant-modifier-group,#viewContent .restaurant-table{background:var(--card,#fff);padding:20px;border:1px solid var(--border,#e2e8f0);border-radius:14px;min-width:0}
#viewContent .restaurant-bill-title{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 12px;line-height:1.7}
#viewContent .restaurant-bill .hint{line-height:1.9;overflow-wrap:anywhere}
#viewContent .restaurant-bill-lines,#viewContent .restaurant-option-list{list-style:none;padding:0;margin:16px 0}
#viewContent .restaurant-bill-lines>li,#viewContent .restaurant-option-list>li{padding:12px 0;border-top:1px solid var(--border,#e2e8f0);min-width:0}
#viewContent .restaurant-line-name>bdi{display:block;overflow-wrap:anywhere;text-align:right;line-height:1.8}
#viewContent .restaurant-line-name>bdi+ bdi{font-size:13px;color:var(--muted,#64748b)}
#viewContent .restaurant-line-facts,#viewContent .restaurant-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px}
#viewContent .restaurant-line-facts{font-size:13px}.restaurant-line-facts>bdi{font-weight:600}
#viewContent .restaurant-card-actions{padding-top:14px;border-top:1px solid var(--border,#e2e8f0)}
#viewContent .restaurant-option-list>li{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
#viewContent .restaurant-option-list>li>p{flex-basis:100%;margin:0}
#viewContent .restaurant-option-price{margin-inline-start:auto;background:#eef2ff;color:#3730a3;padding:4px 10px;border-radius:6px}
#viewContent .restaurant-table-grid{gap:16px}.restaurant-table select{max-width:100%;min-height:var(--ds-control-height)}
.restaurant-dialog{max-height:calc(100dvh - 32px);width:min(760px,calc(100vw - 24px));padding:0;overflow:hidden}
.restaurant-dialog>.record-form{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);min-height:0;padding:20px}
.restaurant-dialog .record-fields{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 2px 12px;gap:16px}
.restaurant-dialog .record-fields fieldset{min-width:0;display:grid;gap:12px;padding:16px}
.restaurant-dialog .record-field{min-width:0;line-height:1.8}.restaurant-dialog input,.restaurant-dialog select{max-width:100%;min-width:0}
.restaurant-dialog .form-actions{flex:none;display:flex;flex-wrap:wrap;gap:10px;padding-top:16px;margin:0;background:var(--card,#fff)}
@media(max-width:600px){#viewContent .restaurant-operations .vertical-hero{padding:16px}#viewContent .restaurant-bill,#viewContent .restaurant-modifier-group,#viewContent .restaurant-table{padding:16px}#viewContent .restaurant-card-actions>button{flex:1 1 140px}.restaurant-dialog>.record-form{padding:16px}.restaurant-dialog .record-fields{grid-template-columns:minmax(0,1fr)}}
html[dir=ltr] #viewContent .restaurant-line-name>bdi{text-align:left}

/* Invoice cards use their full width; shared panel flex rules must not center the content. */
#viewContent .restaurant-bills-board{grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));align-items:start}
#viewContent .restaurant-bill{display:block;padding:18px}
#viewContent .restaurant-bill-title{font-size:14px;margin:0 0 8px;justify-content:space-between}
#viewContent .restaurant-bill-lines{width:100%;margin:12px 0}
#viewContent .restaurant-bill-lines>li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:12px 0}
#viewContent .restaurant-line-name{min-width:0;font-weight:600}
#viewContent .restaurant-line-facts{display:grid;grid-template-columns:auto auto;gap:4px 12px;margin:0;padding:8px 12px;border-radius:8px;background:var(--bg,#f8fafc);font-size:12px}
#viewContent .restaurant-line-facts>bdi{font-size:14px;text-align:end;color:var(--text,#0f172a)}
#viewContent .restaurant-card-actions{width:100%;margin:0;padding-top:12px;justify-content:flex-end}
@media(max-width:600px){#viewContent .restaurant-bill{padding:14px}#viewContent .restaurant-bill-lines>li{gap:10px}#viewContent .restaurant-line-facts{padding:6px 8px;gap:4px 8px}#viewContent .restaurant-line-name>bdi{font-size:14px}#viewContent .restaurant-line-name>bdi+bdi{font-size:12px}}
