/* Offinz 90.1: shared, scoped release tokens. Document paper stays white. */
body{--ui-surface:#fff;--ui-soft:#f3f5f9;--ui-text:#182238;--ui-muted:#536278;--ui-line:#d5dce8;--ui-accent:#5145b5}
body.dark-mode{--ui-surface:#19212d;--ui-soft:#222d3c;--ui-text:#f1f5fb;--ui-muted:#bcc8da;--ui-line:#44526a;--ui-accent:#c4b5fd;color-scheme:dark}
body.dark-mode #statisticsView .stats-client-row:hover{background:var(--ui-soft)!important;border-color:var(--ui-line)!important}
body .offinz-mobile-menu{width:44px!important;min-width:44px!important;height:44px!important;flex:0 0 44px!important;display:inline-flex;align-items:center;justify-content:center;padding:10px!important;background:var(--ui-soft)!important;color:var(--ui-text)!important;border:1px solid var(--ui-line)!important}
body .offinz-mobile-menu i{color:inherit!important;font-size:19px!important}
/* Keep navigation symbols independent of icon fonts and legacy white-on-white header rules. */
html body #mainHeader>div:first-child>button.offinz-mobile-menu,
html body.dark-mode #mainHeader>div:first-child>button.offinz-mobile-menu{background:var(--ui-soft)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}
body #mainHeader .offinz-mobile-menu svg.offinz-menu-icon{display:block!important;width:20px!important;height:20px!important;flex:0 0 20px!important;color:inherit!important;opacity:1!important}
body .offinz-control-icon{display:inline-block;vertical-align:-.15em;width:18px;height:18px;flex:0 0 18px;color:inherit}
body :is(#clientsView,#suppliersView) .client-view-switch button{background:transparent!important;color:var(--ui-muted)!important}
body :is(#clientsView,#suppliersView) .client-view-switch button.is-active{background:var(--ui-text)!important;color:var(--ui-surface)!important}
@media(min-width:768px){body .offinz-mobile-menu{display:none!important}}
body :where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #8871ed!important;outline-offset:3px!important}
body .client-search{display:flex;gap:10px;align-items:center;flex:1 1 240px;max-width:450px;min-width:0;border:1px solid var(--ui-line);border-radius:14px;padding:10px 14px;background:var(--ui-surface);color:var(--ui-muted)}
html body :is(#clientsView,#suppliersView) .client-search input{width:100%;min-width:0;background:transparent!important;border:0!important;color:var(--ui-text)!important;padding:0!important;box-shadow:none!important}
body #saveInvoiceNumberBtn{display:none!important}
body .offinz-editor-note{font-size:12px;line-height:1.5;color:var(--ui-muted);margin-top:6px}
body.dark-mode :is(#dashboardView,#officeView,#documentsView,#trashView) :is(.bg-white,.bg-white\/80,.bg-white\/90,.bg-zinc-50,.bg-zinc-100){background:var(--ui-surface)!important;border-color:var(--ui-line)!important}
body.dark-mode :is(#dashboardView,#officeView,#documentsView,#trashView) :is(.bg-emerald-100,.bg-green-100,.bg-emerald-50){background:#143f33!important;color:#a7f3d0!important}
body.dark-mode :is(#dashboardView,#officeView,#documentsView,#trashView) :is(.bg-violet-100,.bg-purple-100,.bg-brand-50,.bg-violet-50){background:#382b55!important;color:#e3d9ff!important}
body.dark-mode :is(#dashboardView,#officeView,#documentsView,#trashView) :is(.bg-rose-100,.bg-red-100,.bg-rose-50){background:#4d2535!important;color:#ffbdce!important}
body.dark-mode :is(#dashboardView,#officeView,#documentsView,#trashView) :is(.bg-amber-100,.bg-amber-50){background:#47381f!important;color:#ffe0a4!important}
body.dark-mode :is(#dashboardView,#officeView,#documentsView,#trashView) :is(.bg-blue-100,.bg-blue-50,.bg-sky-100){background:#1c3957!important;color:#bbdfff!important}
body.dark-mode :is(#documentsView,#financeView,#statisticsView,#timeView,#trashView) thead th{color:#c5d0e1!important}
/* 90.7.1: keep foreground and surface paired. Legacy design rules otherwise
   lighten the text while leaving white buttons, badges and form gradients. */
html body.dark-mode #dashboardView #dashboardCustomizer .dashboard-customizer-reset{background:var(--ui-soft)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;box-shadow:none!important}
html body.dark-mode #dashboardView #dashboardCustomizer .dashboard-customizer-done{background:#5145b5!important;color:#fff!important;border-color:#a89beb!important}
html body.dark-mode #dashboardView #dashboardCustomizer .dashboard-customizer-reset:hover{background:#344259!important;color:#fff!important}
html body.dark-mode #dashboardView #dashboardCustomizer .dashboard-customizer-reset :is(i,svg){color:inherit!important}
html body.dark-mode #timeView :is(.bg-blue-50,.bg-blue-100){background:#1c3957!important;color:#bbdfff!important;border-color:#527aa0!important}
html body.dark-mode #timeView :is(.bg-amber-50,.bg-amber-100){background:#47381f!important;color:#ffe0a4!important;border-color:#96763f!important}
html body.dark-mode #timeView :is(.bg-emerald-50,.bg-emerald-100){background:#143f33!important;color:#a7f3d0!important;border-color:#478a70!important}
html body.dark-mode #timeView :is(.bg-blue-50,.bg-blue-100,.bg-amber-50,.bg-amber-100,.bg-emerald-50,.bg-emerald-100) i{color:inherit!important}
html body.dark-mode input[type="file"]::file-selector-button{background:var(--ui-soft)!important;color:var(--ui-text)!important;-webkit-text-fill-color:var(--ui-text)!important;border:1px solid var(--ui-line)!important;border-radius:10px;padding:8px 12px;margin-right:12px;font:inherit;font-weight:700;cursor:pointer}
html body.dark-mode input[type="file"]::file-selector-button:hover{background:#344259!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body.dark-mode #settingsView :is(.bg-violet-50,.bg-violet-100){background:#382b55!important;color:#e3d9ff!important;border-color:#73618e!important}
html body.dark-mode :is(#settingsView,#jobsView) .bg-brand-50{background:#382b55!important;color:#e3d9ff!important;border-color:#73618e!important}
html body.dark-mode #jobsView .bg-blue-50{background:#1c3957!important;color:#bbdfff!important;border-color:#527aa0!important}
html body.dark-mode #ownProfileModal :is(.bg-violet-50\/50,.bg-violet-100){background:#382b55!important;color:#e3d9ff!important;border-color:#73618e!important}
html body.dark-mode #settingsView :is(.bg-amber-50,.bg-amber-100){background:#47381f!important;color:#ffe0a4!important;border-color:#96763f!important}
html body.dark-mode #settingsView .bg-amber-50.text-amber-950 :is(p,strong){color:inherit!important}
html body.dark-mode #userManagementSection .bg-gradient-to-b{background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}
html body.dark-mode #officeView .office-row:not(.offinz-list-row){background:var(--ui-soft)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}
body .offinz-datetime-widget{display:flex;align-items:center;gap:18px;min-width:0}
body .offinz-calendar-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:18px;background:var(--ui-soft);width:84px;min-width:84px;height:100px;overflow:hidden}
body .offinz-calendar-tile span{font-size:12px;font-weight:800;letter-spacing:.1em;color:var(--ui-accent)}
body .offinz-calendar-tile strong{font-size:40px;line-height:1.2;color:var(--ui-text)}
body .offinz-clock-copy{min-width:0}.offinz-clock-time{display:block;font-size:36px;font-variant-numeric:tabular-nums;font-weight:800;letter-spacing:-.04em;color:var(--ui-text)}
body .offinz-clock-date{font-size:12px;color:var(--ui-muted);margin:4px 0}.offinz-clock-zone{color:var(--ui-muted);font-size:11px}
body #dashboardAbsencePulse .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.design-apple #dashboardWidgetBoard.is-editing .dashboard-widget{position:relative!important;padding-top:72px!important}
body.design-apple #dashboardWidgetBoard.is-editing .widget-grip{position:absolute!important;top:16px!important;left:16px!important;right:auto!important;transform:none!important}
body.design-apple #dashboardWidgetBoard.is-editing .widget-quick-tools{position:static!important;transform:none!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:8px!important;margin-top:16px!important;width:auto!important;max-width:100%!important}
body.dark-mode #documentModal{background:var(--ui-surface)!important;color:var(--ui-text)!important}
body.dark-mode #documentModal :is(.document-editor-pane,.h-16,.px-4.md\:px-6.py-4){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}
body.dark-mode #documentModal :is(.document-editor-pane,.h-16,.px-4.md\:px-6.py-4) *{color:var(--ui-text)!important}
body.dark-mode #documentModal .document-editor-pane :is(input,select,textarea,.bg-zinc-50,.bg-zinc-100,.bg-white,.bg-violet-50,.bg-amber-50,.bg-amber-50\/70){background:var(--ui-soft)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}
body.dark-mode #documentModal .document-editor-pane :is(label,p,small){color:var(--ui-muted)!important}
html body.dark-mode #documentModal #docForm :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:var(--ui-soft)!important;color:var(--ui-text)!important;-webkit-text-fill-color:var(--ui-text)!important;border-color:var(--ui-line)!important;color-scheme:dark}
html body.dark-mode #documentModal #docForm :is(label,p,small,span){color:var(--ui-muted)!important;-webkit-text-fill-color:var(--ui-muted)!important}
html body.dark-mode #documentModal .h-16 :is(h1,h2,h3,button),html body.dark-mode #documentModal>div:last-child button{color:var(--ui-text)!important;-webkit-text-fill-color:var(--ui-text)!important}
body.dark-mode #documentModal .document-preview-pane{background:#283242!important}
body.dark-mode #documentModal button{border-color:var(--ui-line)!important}
body.dark-mode #documentModal .document-editor-pane :is(.bg-brand-600,.bg-emerald-600){background:#5145b5!important;color:white!important}
/* The sidebar and browser zoom reduce the hero's usable width before mobile
   viewport rules apply. Wrap the actions before they can squeeze the greeting.
   Exclude the customizer: it is a separate panel inside the same hero. */
html body.design-apple #dashboardView .dashboard-hero{container:offinz-dashboard-hero / inline-size}
html body.design-apple #dashboardView .dashboard-hero>.relative:not(#dashboardCustomizer){display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:18px 24px!important;min-height:0!important}
html body.design-apple #dashboardView .dashboard-hero>.relative:not(#dashboardCustomizer)>.flex.items-center.gap-4.min-w-0{display:flex!important;flex:1 1 28rem!important;width:auto!important;min-width:0!important;max-width:100%!important;align-items:center!important;gap:16px!important}
html body.design-apple #dashboardView .dashboard-hero>.relative:not(#dashboardCustomizer)>.flex.items-center.gap-4.min-w-0>div:last-child{flex:1 1 auto!important;min-width:0!important;max-width:100%!important}
html body.design-apple #dashboardView .dashboard-hero #dashboardGreeting{font-size:clamp(1.75rem,3.5vw,2.8rem)!important;font-size:clamp(1.75rem,4cqi,2.8rem)!important;line-height:1.1!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;hyphens:none!important}
html body.design-apple #dashboardView .dashboard-hero #dashboardGreetingKicker{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
html body.design-apple #dashboardView .dashboard-hero #dashboardGreetingSub{white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;line-height:1.45!important}
html body.design-apple #dashboardView .dashboard-hero #dashboardHeroAvatar{flex-shrink:0!important}
html body.design-apple #dashboardView .dashboard-hero>.relative:not(#dashboardCustomizer)>.dashboard-hero-actions{display:flex!important;flex:0 1 auto!important;flex-wrap:wrap!important;align-items:center!important;align-self:auto!important;justify-content:flex-end!important;gap:10px!important;width:auto!important;min-width:0!important;max-width:100%!important}
html body.design-apple #dashboardView .dashboard-hero>.relative:not(#dashboardCustomizer)>.dashboard-hero-actions>button{min-width:0!important;max-width:100%!important;margin:0!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;line-height:1.3!important}
@container offinz-dashboard-hero (max-width:52rem){
 html body.design-apple #dashboardView .dashboard-hero>.relative:not(#dashboardCustomizer)>.flex.items-center.gap-4.min-w-0{flex-basis:100%!important}
 html body.design-apple #dashboardView .dashboard-hero>.relative:not(#dashboardCustomizer)>.dashboard-hero-actions{flex:1 1 100%!important;justify-content:flex-start!important}
}
@container offinz-dashboard-hero (max-width:30rem){
 html body.design-apple #dashboardView .dashboard-hero>.relative:not(#dashboardCustomizer)>.dashboard-hero-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 html body.design-apple #dashboardView .dashboard-hero>.relative:not(#dashboardCustomizer)>.dashboard-hero-actions>button{width:100%!important;justify-content:center!important}
}
@container offinz-dashboard-hero (max-width:19rem){
 html body.design-apple #dashboardView .dashboard-hero>.relative:not(#dashboardCustomizer)>.flex.items-center.gap-4.min-w-0{flex-direction:column!important;align-items:flex-start!important;gap:12px!important}
}
@media(min-width:768px) and (max-width:1180px){
 html body.design-apple #mainHeader #currentDateDisplay,
 html body.design-apple #mainHeader .offinz-brand-chip{display:none!important}
 html body.design-apple #mainHeader .header-tools{gap:8px!important;min-width:0!important}
 html body.design-apple #mainHeader .header-user{flex-shrink:0!important}
}
@media(min-width:768px) and (max-width:900px){
 html body.design-apple #mainHeader .header-user>button>div.flex.flex-col{display:none!important}
}
@media(max-width:767px){
 body .app-header{gap:8px!important;padding:12px!important;min-height:72px!important;height:auto!important;flex-wrap:wrap!important}
 body.design-apple #mainHeader{gap:8px!important;padding:12px!important;min-height:72px!important;height:auto!important;flex-wrap:wrap!important}
 body.design-apple #mainHeader #pageTitle{max-width:none!important;font-size:20px!important;line-height:1.2;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
 body.design-apple #mainHeader .offinz-brand-chip{display:none!important}
 body.design-apple #mainHeader .header-year{display:flex!important}
 body .offinz-header-wordmark,body .header-product-logo,body .offinz-header-brand{display:none!important}
 body .clients-toolbar{align-items:stretch!important;gap:12px!important}
 body .client-view-controls{width:100%;justify-content:space-between;flex-wrap:wrap;gap:10px}
 body .client-search{max-width:none;flex-basis:100%}
 body .client-list-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px 12px!important;padding:18px!important}
 body .client-list-number{grid-column:1;grid-row:1;font-size:12px!important}
 body .client-list-main{grid-column:1/-1;grid-row:2;min-width:0}
 body .client-list-contact{grid-column:1/-1;grid-row:3;min-width:0}
 body .client-list-contact a,body .client-list-contact span{overflow-wrap:anywhere!important;min-width:0;max-width:100%}
 body .client-list-location{grid-column:1/-1;grid-row:4}
 body .client-list-state{grid-column:2;grid-row:1;justify-self:end}
 body .client-list-actions{grid-column:1/-1;grid-row:5;justify-content:flex-end!important;padding-top:10px;border-top:1px solid var(--ui-line)}
 body .client-card-action{min-height:44px;min-width:44px}
}
@media(prefers-reduced-motion:reduce){body *,body *::before,body *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* 90.7.9: mobile feedback, task controls and backup actions use paired theme tokens.
   Explicit scope wins over legacy inline design-apple surface overrides. */
html body.design-apple #messageBox{background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;max-width:calc(100vw - 32px)!important;gap:12px!important;bottom:calc(24px + env(safe-area-inset-bottom,0px))!important;pointer-events:none}
html body.design-apple #messageBox #messageText{color:var(--ui-text)!important;-webkit-text-fill-color:var(--ui-text)!important;min-width:0;overflow-wrap:anywhere;line-height:1.5;padding-right:0!important}
html body.design-apple #messageBox #messageIconBg{flex:0 0 40px}
html body.dark-mode.design-apple #messageBox #messageIconBg.bg-emerald-100{background:#143f33!important;color:#a7f3d0!important}
html body.dark-mode.design-apple #messageBox #messageIconBg.bg-red-100{background:#4d2535!important;color:#ffbdce!important}
html body.dark-mode.design-apple #messageBox #messageIconBg.bg-brand-100{background:#382b55!important;color:#e3d9ff!important}
html body.design-apple #messageBox #messageIconBg i{color:inherit!important}
html body.design-apple #dashboardView #widget-tasks :is(.offinz-task-widget-open,.offinz-task-widget-open strong,.offinz-task-widget-open small,.offinz-task-check,.offinz-task-link){background:transparent!important;background-image:none!important;box-shadow:none!important}
html body.design-apple #dashboardView #widget-tasks .offinz-task-widget-open{border-radius:4px!important;color:var(--ui-text)!important}
html body.design-apple #dashboardView #widget-tasks .offinz-task-widget-open strong{color:var(--ui-text)!important}
html body.design-apple #dashboardView #widget-tasks .offinz-task-widget-open small{color:var(--ui-muted)!important}
html body.design-apple #dashboardView #widget-tasks .offinz-task-check{padding:8px!important;flex:0 0 44px!important;width:44px!important;min-height:44px!important}
html body.design-apple #dashboardView #widget-tasks .offinz-task-link{color:var(--ui-text)!important;padding:10px 0!important;white-space:normal!important}
html body.design-apple #dashboardView #widget-tasks :is(.offinz-task-widget-open,.offinz-task-link):hover{background:var(--ui-soft)!important}
html body.design-apple #settingsView .offinz-backup-actions{display:flex!important;flex-wrap:wrap!important;gap:12px!important;min-width:0}
html body.design-apple #settingsView .offinz-backup-actions> *{flex:1 1 220px;min-width:0;max-width:100%}
html body.design-apple #settingsView .offinz-backup-actions button{display:flex!important;justify-content:center;align-items:center;gap:10px!important;width:100%;min-width:0;min-height:48px;padding:12px 16px!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.5!important;background:var(--ui-soft)!important;color:var(--ui-text)!important;border:1px solid var(--ui-line)!important;box-shadow:none!important}
html body.design-apple #settingsView .offinz-backup-actions>button{background:#5145b5!important;color:#fff!important;border-color:#5145b5!important}
html body.design-apple #settingsView .offinz-backup-actions button i{color:inherit!important;flex:0 0 auto}
html body.design-apple #settingsView .offinz-backup-actions input:focus-visible+button{outline:3px solid #8871ed!important;outline-offset:3px!important}
html body.design-apple #settingsView .offinz-backup-actions input{z-index:1}
@media(max-width:640px){
 html body.design-apple #messageBox{left:16px!important;right:16px!important;width:auto!important}
 html body.design-apple #settingsView .offinz-backup-actions{flex-direction:column!important}
 html body.design-apple #settingsView .offinz-backup-actions> *{flex:auto;width:100%}
 html body.design-apple #widget-team>div.flex>button{flex-shrink:0;white-space:normal;word-break:normal;overflow-wrap:normal}
}

html body.design-apple #dashboardView #widget-tasks .offinz-task-widget-open small.is-overdue{color:#a32b43!important}
html body.dark-mode.design-apple #dashboardView #widget-tasks .offinz-task-widget-open small.is-overdue{color:#ffbdce!important}

/* The isolated demo has its own fixed notice, outside the product viewport. */
html body.design-apple:has(.offinz-demo-banner) #messageBox{bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
/* Administrator's edition-aware main navigation switches. */
.offinz-navigation-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:10px}
.offinz-navigation-choice{display:flex;align-items:center;gap:12px;min-width:0;min-height:50px;padding:12px 14px;border:1px solid #dce3eb;border-radius:14px;background:#f8fafc;color:#1e293b;cursor:pointer;font-size:14px;font-weight:700;line-height:1.3}
.offinz-navigation-choice input{flex:none;width:18px;height:18px;margin:0;accent-color:#5445ff}
.offinz-navigation-choice span{min-width:0;overflow-wrap:anywhere}
.offinz-navigation-choice:focus-within{outline:2px solid #5445ff;outline-offset:2px}
.dark-mode #offinzNavigationSettings{background:#151c26!important;border-color:#344054!important}
.dark-mode #offinzNavigationSettings h3{color:#e7edf6!important}
.dark-mode #offinzNavigationHelp,.dark-mode #offinzNavigationStatus{color:#bdc8d8!important}
.dark-mode .offinz-navigation-choice{background:#202b3a;color:#e7edf6;border-color:#42516a}
/* 90.7.27: search belongs to the dashboard greeting, results stay in normal flow. */
html body #dashboardView .dashboard-search{position:relative;margin-top:22px;max-width:100%;min-width:0}
.dashboard-search>label{display:block;font-size:.8rem;font-weight:700;margin-bottom:7px;color:#475569}
.dashboard-search-field{display:flex;align-items:center;gap:12px;padding:0 16px;border:1px solid #d7e1ee;border-radius:14px;background:#fff;min-height:50px;color:#64748b;box-shadow:0 2px 8px #0f172a05}
.dashboard-search-field:focus-within{outline:3px solid #c6d9fb;outline-offset:2px;border-color:#597ce2}
html body #dashboardSearchInput{flex:1;min-width:0;width:100%;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:13px 0!important;font:inherit;color:#1e293b;border-radius:0!important}
#dashboardSearchClear{background:transparent;border:0;width:32px;min-width:32px;height:36px;font-size:24px;color:inherit}
#dashboardSearchClear[hidden],#dashboardSearchResults[hidden]{display:none!important}
#dashboardSearchStatus{font-size:.82rem;color:#64748b;line-height:1.45;margin:8px 0 0}
#dashboardSearchStatus:empty{display:none}
#dashboardSearchResults{display:grid;gap:6px;margin-top:12px;max-height:360px;overflow:auto;padding:4px}
html body .dashboard-search-result{display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;padding:12px 14px;border:1px solid #dbe3ee;border-radius:12px;background:#fff;color:#1e293b;min-width:0;width:100%;font:inherit}
.dashboard-search-result>span:first-child{min-width:0;overflow-wrap:anywhere}
.dashboard-search-result strong,.dashboard-search-result small{display:block}
.dashboard-search-result strong{font-size:.9rem}.dashboard-search-result small{font-size:.78rem;color:#64748b;margin-top:3px}
.dashboard-search-result>span:last-child{font-size:.72rem;font-weight:700;color:#5852a5;background:#f1efff;padding:4px 8px;border-radius:6px;flex-shrink:0}
.dashboard-search-result:focus-visible{outline:3px solid #8b85ef;outline-offset:1px}
html body.dark-mode .dashboard-search-field,html body.dark-mode .dashboard-search-result{background:#182433;color:#e4ecf8;border-color:#46536b}
html body.dark-mode #dashboardSearchInput{color:#e4ecf8!important}
.dark-mode .dashboard-search>label,.dark-mode #dashboardSearchStatus,.dark-mode .dashboard-search-result small{color:#aebdd1}
@media(max-width:600px){html body #dashboardView .dashboard-hero-actions{gap:10px!important;width:100%}.dashboard-hero-actions>button{flex:1 1 150px;white-space:normal!important;min-height:44px}.dashboard-search-field{padding:0 12px;gap:8px}.dashboard-search-result{align-items:flex-start!important;flex-direction:column;gap:7px!important}.dashboard-search-field input{font-size:16px!important}}
.reminder-template-link{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;background:#fff;border:1px solid #dce3ed;border-radius:14px;margin-bottom:18px;color:#1e293b}
.reminder-template-link p{font-size:.8rem;line-height:1.5;margin-top:4px;color:#64748b}.reminder-template-link button{border:1px solid #cdd7e7;border-radius:10px;padding:10px 14px;font-size:.85rem;font-weight:700;min-height:44px;flex-shrink:0}
.dark-mode .reminder-template-link{background:#182433;border-color:#46536b;color:#e4ecf8}.dark-mode .reminder-template-link p{color:#afbed2}
@media(max-width:600px){.reminder-template-link{flex-direction:column;align-items:stretch}}

/* A single clear action across browsers. */
#dashboardSearchInput::-webkit-search-cancel-button{display:none}

/* 90.7.28: consistent field tracks, optional accents and discoverable tax defaults. */
#officeTab-onboarding .offinz-flow-fields{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(125px,1fr)) auto;gap:14px;align-items:end}
#officeTab-onboarding .offinz-flow-fields>label{display:grid;grid-template-rows:minmax(2.6em,auto) 46px;align-items:end;width:auto;min-width:0}
#officeTab-onboarding .offinz-flow-fields input,#officeTab-onboarding .offinz-flow-fields select,#officeTab-onboarding #flowStart{box-sizing:border-box;width:100%;min-width:0;height:46px;margin:0}
#officeTab-onboarding .offinz-flow-help{font-size:.8rem;color:var(--text-muted,#71717a);margin:12px 0 0;line-height:1.5}
#officeTab-onboarding .offinz-flow-fields:not(:has(#flowMaterials)){grid-template-columns:minmax(180px,2fr) repeat(2,minmax(125px,1fr)) auto}
body #sidebar button.nav-btn[data-nav-accent="1"]{background:var(--offinz-nav-accent)!important;color:var(--offinz-nav-ink)!important;border-color:var(--offinz-nav-accent)!important}
body #sidebar button.nav-btn[data-nav-accent="1"]>i{opacity:1}
body #sidebar button.nav-btn[data-nav-accent="1"].bg-brand-600{box-shadow:inset 4px 0 0 var(--offinz-nav-ink),inset 0 0 0 2px var(--offinz-nav-ink)!important}
body #sidebar button.nav-btn[data-nav-accent="1"]:focus-visible{outline:3px solid white;outline-offset:3px}
#offinzNavigationChoices .offinz-nav-row{grid-template-columns:minmax(150px,1.5fr) minmax(125px,1fr) minmax(140px,1fr) auto}
.offinz-nav-accent-controls{display:flex;gap:8px;align-items:center;min-width:0}.offinz-nav-accent-controls select{min-width:0;flex:1}.offinz-nav-accent-controls input[type=color]{width:42px!important;min-width:42px;height:42px;padding:4px}
.offinz-staff-template{display:grid;grid-template-columns:minmax(140px,1fr) minmax(170px,2fr) auto;gap:12px;align-items:center;margin:0 0 22px;padding:16px;border:1px solid var(--border-color,#dbe3ee);border-radius:14px}.offinz-staff-template[hidden]{display:none}.offinz-staff-template small{grid-column:1/-1;font-size:.8rem;color:var(--text-muted,#71717a);line-height:1.5}
.offinz-staff-template select,.offinz-staff-template button,.offinz-vat-settings input:not([type=checkbox]),.offinz-vat-settings select,.offinz-vat-settings button{box-sizing:border-box;min-width:0;min-height:44px;border:1px solid #d7e0ec;border-radius:10px;padding:10px 12px;background:#fff;color:#25334c;font:inherit}
.offinz-vat-settings #vatSettingsPanel{display:grid;gap:12px;max-width:760px;margin:18px 0}.offinz-vat-settings #vatRatesList{display:grid;gap:8px}.offinz-vat-toggle{display:flex;gap:12px;align-items:flex-start;margin-top:22px;font-weight:700}.offinz-vat-toggle input{width:18px;height:18px;flex-shrink:0;margin-top:3px}.offinz-vat-help{font-size:.85rem;line-height:1.6;color:#64748b;margin:14px 0}.offinz-vat-help a{text-decoration:underline}.offinz-vat-settings #saveVatSettings{background:#4f46e5;color:white}.offinz-vat-settings input[type=number]{width:100%}
body.dark-mode .offinz-staff-template,body.dark-mode .offinz-staff-template select,body.dark-mode .offinz-staff-template button,body.dark-mode .offinz-vat-settings input:not([type=checkbox]),body.dark-mode .offinz-vat-settings select,body.dark-mode .offinz-vat-settings button{background:#182231;color:#f1f5f9;border-color:#39485e}body.dark-mode .offinz-vat-help,body.dark-mode .offinz-staff-template small{color:#b7c4d7}
@media(max-width:1100px){#officeTab-onboarding .offinz-flow-fields,#officeTab-onboarding .offinz-flow-fields:not(:has(#flowMaterials)){grid-template-columns:repeat(2,minmax(0,1fr))}#officeTab-onboarding #flowStart{grid-column:1/-1;width:auto;justify-self:start}#offinzNavigationChoices .offinz-nav-row{grid-template-columns:minmax(140px,1fr) minmax(140px,1fr) auto}#offinzNavigationChoices .offinz-nav-accent-controls{grid-column:2;grid-row:2}.offinz-staff-template{grid-template-columns:1fr 1fr}.offinz-staff-template>label{grid-column:1/-1}}
@media(max-width:600px){#officeTab-onboarding .offinz-flow-fields,#officeTab-onboarding .offinz-flow-fields:not(:has(#flowMaterials)){grid-template-columns:1fr}#officeTab-onboarding .offinz-flow-fields>label{grid-template-rows:auto 46px;gap:6px}#officeTab-onboarding #flowStart{width:100%}.offinz-staff-template{grid-template-columns:1fr}#offinzNavigationChoices .offinz-nav-row{grid-template-columns:minmax(0,1fr) auto}#offinzNavigationChoices .offinz-nav-row>label{grid-column:1/-1}#offinzNavigationChoices .offinz-nav-accent-controls{grid-column:1;grid-row:auto}.offinz-vat-settings #vatRatesList>div{grid-template-columns:minmax(0,1fr) 85px 38px}}

.offinz-personal-fields>label{display:flex;flex-direction:column;min-width:0}.offinz-personal-fields .offinz-field-caption{display:block;min-height:2.6em}.offinz-personal-fields input,.offinz-personal-fields select{box-sizing:border-box;min-height:44px}
body.dark-mode .offinz-vat-settings #vatRatesList button{background:#202735!important;color:#e2e8f0!important;border:1px solid #39465b}
/* 90.7.29: compact domain forms, reports and full-height desktop embedding. */
.offinz-workflow-card{box-sizing:border-box;min-width:0;padding:22px;margin:0 0 22px;border:1px solid var(--ui-border,#dce3ed);border-radius:16px;background:var(--ui-card,#fff);color:var(--ui-text,#243047)}
.offinz-workflow-card header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.offinz-workflow-card h3,.offinz-workflow-card legend{font-size:1.15rem;font-weight:750}.offinz-workflow-card h4{font-weight:700;margin:14px 0 8px}.offinz-workflow-card p{margin:10px 0;color:var(--ui-muted,#56647b);line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.offinz-workflow-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:16px;margin:18px 0}.offinz-workflow-form label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:.875rem;font-weight:650}.offinz-workflow-form :is(input:not([type=checkbox]),select,textarea){width:100%;min-width:0;box-sizing:border-box;min-height:46px;border:1px solid var(--ui-border,#d6dfeb);border-radius:10px;background:var(--ui-soft,#f8fafc);color:inherit;padding:10px 12px;font:inherit}.offinz-workflow-form :is(.is-wide,.offinz-workflow-actions){grid-column:1/-1}.offinz-workflow-form input[type=checkbox]{width:20px;height:20px;accent-color:#6557e8}.offinz-workflow-form[hidden],.offinz-workflow-card[hidden],.offinz-workflow-button[hidden],.offinz-receipt-remove[hidden],#mailTemplateTabDelivery{display:none!important}
.offinz-workflow-actions{display:flex;flex-wrap:wrap;gap:10px}.offinz-workflow-button,.offinz-color-reset{min-height:44px;padding:10px 16px;border:1px solid #6557e8;border-radius:10px;background:#6557e8;color:#fff;font:inherit;font-weight:650;cursor:pointer}.offinz-workflow-button.is-secondary,.offinz-color-reset{background:var(--ui-soft,#f8fafc);border-color:var(--ui-border,#d6dfeb);color:var(--ui-text,#243047)}.offinz-workflow-button:disabled{opacity:.55;cursor:wait}.offinz-workflow-button:focus-visible,.offinz-workflow-form :is(input,select,textarea):focus-visible{outline:3px solid #9d91fa;outline-offset:2px}.offinz-workflow-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.offinz-workflow-list article,#offinzReportArchive article{min-width:0;padding:16px;background:var(--ui-soft,#f8fafc);border:1px solid var(--ui-border,#d6dfeb);border-radius:12px}#offinzReportArchive{display:grid;gap:10px}#offinzBankAccounts [name=showPrimaryBank]{margin:8px;width:20px;height:20px}#salesView{max-width:1152px;margin-inline:auto}
body.dark-mode .offinz-workflow-card{background:#151c26;color:#e7edf6;border-color:#344054}body.dark-mode .offinz-workflow-card p{color:#bdc8d8}body.dark-mode .offinz-workflow-form :is(input,select,textarea),body.dark-mode .offinz-workflow-list article,body.dark-mode #offinzReportArchive article{background:#202a38;color:#e7edf6;border-color:#455269}body.dark-mode .offinz-workflow-button.is-secondary{background:#202a38;color:#e7edf6;border-color:#455269}
body.offinz-time-window #sidebar,body.offinz-time-window #mainHeader{display:none!important}body.offinz-time-window main{margin:0!important;width:100%!important}body.offinz-time-window #timeModal{background:var(--ui-soft,#f4f6f8)!important;padding:16px!important;align-items:flex-start!important}body.offinz-time-window #timeModal>div{max-height:calc(100dvh - 32px)!important;overflow-y:auto!important;width:100%!important;max-width:600px!important}
@media(max-width:700px){.offinz-workflow-form,.offinz-workflow-list{grid-template-columns:minmax(0,1fr)}.offinz-workflow-card{padding:16px}.offinz-workflow-actions>*{flex:1 1 140px}}

#offinzBankAccounts,#offinzBankAccounts legend,#offinzBankAccounts label{text-align:left}#offinzBankAccounts legend{padding:0 8px}#offinzBankAccounts>label{display:flex;align-items:center;justify-content:flex-start;gap:12px}#offinzBankAccounts input[type=checkbox]{flex:0 0 20px;width:20px;height:20px}
/* Detached stopwatch: same controls and inputs, only presentation is collapsed. */
body #offinzTimeCompact{margin-left:auto;margin-right:12px;flex-shrink:0;min-height:40px;padding:8px 12px;border-radius:10px;border:1px solid #d7dfeb;background:#eef2ff;color:#5145b7;font:inherit;font-size:13px;font-weight:700}
body #mainHeader #offinzTimerIndicator{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border:1px solid #60d2a0;border-radius:12px;background:#d9fbe9;color:#14533b;font-size:13px;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap}
body #mainHeader #offinzTimerIndicator[hidden]{display:none!important}
body.dark-mode #offinzTimeCompact{background:#242c44;border-color:#485575;color:#d2ceff}
body.offinz-time-compact #timeModal{padding:8px!important;align-items:flex-start!important}
body.offinz-time-compact #timeModal>div{max-height:calc(100dvh - 16px)!important;border-radius:16px!important}
body.offinz-time-compact #timeModalHeader{padding:8px 12px!important;min-height:48px;gap:8px}
body.offinz-time-compact #timeModalTitle{font-size:13px!important}
body.offinz-time-compact #offinzTimeCompact{margin-right:0;padding:6px 10px;min-height:34px}
body.offinz-time-compact #timeModalHeader>button:last-child{display:none!important}
body.offinz-time-compact #timerArea{padding:16px 12px!important;min-height:90px!important}
body.offinz-time-compact #timerArea>div:nth-child(2),body.offinz-time-compact #timerStatus,body.offinz-time-compact #timeModal>div>div:last-child{display:none!important}
body.offinz-time-compact #timerDisplay{font-size:36px!important;line-height:1.15!important;letter-spacing:-1px!important}
body.offinz-time-compact #timerBtn{width:44px!important;height:44px!important;min-width:44px!important;font-size:18px!important;animation:none!important}
body.offinz-time-compact .offinz-timer-controls{flex-wrap:nowrap!important;gap:18px!important}
body #offinzTimeCompact:focus-visible,body #offinzTimerIndicator:focus-visible{outline:3px solid #9990f5;outline-offset:3px}
@media(max-width:420px){body #offinzTimeCompact{font-size:12px;padding:6px 8px;margin-right:6px}body #timeModalTitle{font-size:16px}}

/* Search refinement: compact controls remain in the normal document flow. */
.dashboard-search-options{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;color:#64748b;font-size:.8rem}
.dashboard-search-options label{font-weight:700}.dashboard-search-options select{width:auto!important;max-width:100%;min-height:40px;border:1px solid #d7e1ee;border-radius:10px;background:#fff;color:#334155;padding:6px 32px 6px 12px;font:inherit}
.dashboard-search-more{display:block;margin:10px auto 0;padding:10px 16px;min-height:44px;border:1px solid #d7e1ee;border-radius:10px;background:#fff;color:#334155;font:inherit;font-weight:700}
#dashboardSearchMore[hidden]{display:none!important}.dark-mode .dashboard-search-options{color:#afbed2}.dark-mode .dashboard-search-options select,.dark-mode .dashboard-search-more{background:#182433;color:#e4ecf8;border-color:#46536b}

/* Document totals use ordinary amount size and black ink, including dark UI previews. */
body #documentModal #documentPreview table td.document-total{color:#000!important;-webkit-text-fill-color:#000!important;font-size:14px!important}

body.dark-mode #documentModal #docReadonlyNotice{background:#273449!important;color:#e2e8f0!important;-webkit-text-fill-color:#e2e8f0!important;border-color:#52617a!important}

/* Personnel visibility is a checkbox with readable explanatory copy. */
.offinz-personal-fields>label.offinz-calendar-visibility{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:10px;padding:12px;border:1px solid var(--ui-border,#dbe3ef);border-radius:12px;align-self:start;font-size:13px;line-height:1.5;cursor:pointer}
.offinz-calendar-visibility>input[type=checkbox]{flex:0 0 18px;width:18px!important;height:18px!important;min-height:18px!important;margin:2px 0 0!important;accent-color:#6554ff}
.offinz-calendar-visibility>span{min-width:0;font-weight:700}.offinz-calendar-visibility small{display:block;margin-top:4px;font-size:12px;font-weight:400;line-height:1.5;color:var(--ui-muted,#64748b)}
body.dark-mode .offinz-calendar-visibility small{color:#b4c0d2}
.offinz-calendar-visibility>span{hyphens:auto;word-break:normal;overflow-wrap:normal}
@media(max-width:640px){.offinz-personal-fields>label.offinz-calendar-visibility{padding:10px;gap:8px}}
