/* LaGe: original wordmark/arrow, navy from the existing Faktura banner, emerald accent. */
.app-loading-status{display:none}
body.app-loading .app-shell{visibility:hidden;pointer-events:none}
body.app-loading .app-loading-status{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.pdf-preview-open{overflow:hidden}
.pdf-preview-dialog{position:fixed;inset:0;margin:0;width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100dvh;padding:0;border:0;background:#edf2f7;color:#15283e;overscroll-behavior:contain}
.pdf-preview-dialog::backdrop{background:#edf2f7}
.pdf-preview-layout{height:100%;display:flex;flex-direction:column;min-height:0}
.pdf-preview-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:8px;padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));flex:0 0 auto;background:#fff;border-bottom:1px solid #c8d5df}
.pdf-preview-toolbar .btn{min-height:48px;min-width:0;width:100%;padding:8px;white-space:normal;overflow-wrap:anywhere}
@media(min-width:761px){
  .pdf-preview-toolbar{grid-template-columns:max-content max-content;justify-content:center}
  .pdf-preview-toolbar .btn{width:auto;padding-inline:18px}
}
.pdf-preview-status{margin:0;padding:8px 12px;color:#009875;font-size:16px;flex:0 0 auto}
.pdf-preview-status[role=alert]{color:#b42318}
.pdf-page-viewport{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 12px max(8px,env(safe-area-inset-bottom));background:#dbe1e6;-webkit-overflow-scrolling:touch}
.pdf-scroll-page{position:relative;margin:0 auto 12px;background:#fff;box-shadow:0 1px 5px #15283e33;flex:none}
.pdf-page-canvas{display:block;margin:0;background:#fff;max-width:none}
.pdf-page-viewport{touch-action:pan-x pan-y pinch-zoom}
.pdf-preview-dialog [hidden]{display:none!important}
:root{--brand:#007c62;--brand-dark:#00614e;--ink:#15283e;--muted:#4b6073;--line:#c8d5df;--soft:#f1f6fa;--white:#fff;--shadow:0 8px 28px rgb(14 40 67 / 8%)}
html,body{background:#edf2f7;color:var(--ink)}
body{font-family:"Segoe UI",Arial,sans-serif;font-size:18px;line-height:1.55}
.page{width:min(1280px,calc(100% - 64px));margin:28px auto 64px}
.topbar,body.customer-app-view .topbar{display:flex;min-height:86px;height:auto;background:#fff;border-bottom:1px solid #c8d5df;padding:12px max(32px,calc((100vw - 1280px)/2));gap:20px;box-shadow:0 3px 14px rgb(15 37 60 / 5%)}
.brand{gap:18px;min-width:0}.brand .brand-logo{width:138px;height:57px;max-width:none;object-fit:contain}
.brand-product{display:flex;flex-direction:column;border-left:2px solid #d8e5e2;padding-left:18px;gap:2px}
.brand-product strong{font-size:21px;letter-spacing:.12em;color:#142a44;line-height:1.2}.brand .brand-product>span{font-size:13px;color:#4b6073;white-space:nowrap}
.top-actions{min-width:0;justify-content:flex-end}.save-state,.top-email,.top-link{font-size:15px}.top-link{min-height:40px}
h1{font-size:34px;line-height:1.2;font-weight:750;letter-spacing:-.025em;color:#152b45}
h2,.section-title{font-size:25px;line-height:1.3;font-weight:750}.eyebrow{font-size:14px;letter-spacing:.09em;font-weight:800}
.muted{color:#4b6073}.compact-note,.field-note,.inline-note,.step-count{font-size:16px;line-height:1.55}
label,.field-label-row label,.service-location legend{font-size:16px;line-height:1.45}
input,select,textarea{font-size:18px;line-height:1.5;min-height:50px;border:1px solid #aebfce;border-radius:10px;padding:12px 14px}
input:focus,select:focus,textarea:focus{outline:3px solid #007c62;outline-offset:2px}
input[type=checkbox],input[type=radio]{min-height:0}
.btn{font-size:16px;min-height:48px;border-radius:10px;padding:10px 18px;font-weight:750}
.btn-small{font-size:15px;min-height:42px}.btn-primary{background:#007c62;color:#fff;border-color:#007c62}.btn-primary:hover{background:#00614e}
.btn-secondary{background:#f0f5f9;color:#203951;border:1px solid #bdcddd}.btn-secondary:hover{background:#e1edf5;border-color:#7e9ab4}.btn-ghost{color:#3c556c}
.wizard,.hero,.list-card,.auth-card,.card,.assistant-card,.dialog-card,.service-group{border:1px solid #c5d3df;border-radius:16px;box-shadow:var(--shadow)!important}
.wizard-head,.wizard-body{padding:28px 32px}.wizard-foot{padding:20px 32px;background:#f7fafd}.form-section-title strong,.list-title strong{font-size:20px}
.list-card{padding:24px}.inline-note{background:#eaf5f0;border-left:4px solid #007c62;color:#24483c}.error,.required-missing-note{font-size:16px}
.assistant-card{padding:18px 22px;background:#f7fbff;border-color:#bed0df;border-left:4px solid #007c62;box-shadow:none!important}
.assistant-head strong{font-size:17px;color:#1b3752}.assistant-message{font-size:16px;line-height:1.55;margin:8px 0 12px;color:#334e65}
.assistant-answer strong,.assistant-answer p{font-size:16px}.assistant-source{font-size:13px}.assistant-voice-status:empty{display:none}
.assistant-ask input{min-height:46px;font-size:16px}.assistant-ask .btn,button.assistant-send{font-size:16px;min-height:46px;border-radius:10px}
.dashboard{gap:24px}.dashboard-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1fr;gap:24px;padding:34px 38px;color:#fff;min-height:240px;border:0;border-radius:20px;background:#071b37;background-image:linear-gradient(90deg,#071b37 0%,rgb(7 27 55 / 98%) 42%,rgb(7 27 55 / 40%) 100%),url('/static/lage-faktura-banner.png');background-size:cover,auto 150%;background-position:center,right center;background-repeat:no-repeat;box-shadow:0 14px 32px rgb(7 27 55 / 16%)!important}
.dashboard-hero .eyebrow{color:#6de2bc;font-size:14px;margin-bottom:12px}.dashboard-hero h1{color:#fff;font-size:40px;letter-spacing:-.025em;margin:0}.dashboard-hero .hero-company{font-size:19px;color:#d5e6f1;margin:8px 0 0;font-weight:550}
.dashboard-hero .quick-actions{gap:12px;align-items:stretch}.dashboard-hero .btn{font-size:17px;min-height:50px;border-radius:11px}
.dashboard-hero .btn-primary{background:#007c62;border:1px solid #37bb99}.dashboard-hero .btn-primary:hover{background:#00775e}
.dashboard-hero .btn-secondary{background:#fff;color:#183853;border-color:#d0e1ef}.dashboard-hero .btn-secondary:hover{background:#e3f0fa}.dashboard-hero .lage-transfer-button{background:#d3f4e8;color:#064f3c;margin-left:auto}
.quick-actions .function-icon{width:20px;height:20px;vertical-align:middle;margin-right:6px}
.dashboard-navigation>.list-title{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:2px 0 18px;background:none;border:0}
:root .dashboard-navigation h2{font-size:26px;line-height:1.3;margin:0 0 4px}.dashboard-navigation .compact-note{margin:0;font-size:15px}
.dashboard-navigation .cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.dashboard-tile{--tile-accent:#007c62;--tile-wash:#e2f3ec;position:relative;min-height:258px;background:#fff;padding:24px;overflow:hidden;border:1px solid #c5d3df;border-top:4px solid var(--tile-accent);border-radius:16px;transition:border-color .18s,box-shadow .18s,transform .18s}
.dashboard-tile:hover,.dashboard-tile:focus-within{border-color:#8aa9bf;border-top-color:var(--tile-accent);box-shadow:0 10px 28px rgb(15 43 69 / 12%)!important}
.dashboard-tile[data-dashboard-tile=services],.dashboard-tile[data-dashboard-tile=time]{--tile-accent:#2164a3;--tile-wash:#e4eef9}
.dashboard-tile[data-dashboard-tile=drafts],.dashboard-tile[data-dashboard-tile=account]{--tile-accent:#6b4d9b;--tile-wash:#eee8f7}
.dashboard-tile[data-dashboard-tile=journal]{--tile-accent:#203e60;--tile-wash:#e6edf5}
.dashboard-tile[data-dashboard-tile=terms]{--tile-accent:#946014;--tile-wash:#fbf0d9}
.tile-heading{display:flex;align-items:center;gap:16px;margin-bottom:16px;min-height:60px}.tile-icon{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border-radius:16px;background:var(--tile-wash);color:var(--tile-accent)}
.function-icon{width:30px;height:30px;display:inline-block;flex-shrink:0}.dashboard-tile h3{font-size:23px;font-weight:750;line-height:1.25;margin:0;color:#172f48;overflow-wrap:normal}
.tile-subtitle{display:block;font-size:14px;line-height:1.35;font-weight:500;color:#52677c;margin-top:5px}.dashboard-tile p{font-size:17px;line-height:1.55;margin:0 0 20px;color:#435a70}
.dashboard-tile>.tile-open{display:flex;justify-content:space-between;align-items:center;align-self:stretch;gap:12px;background:#f3f7fb;border:1px solid #c4d4e3;color:#173d5b;border-radius:10px;min-height:46px;font-size:16px;font-weight:750;padding:10px 14px;margin-top:auto}.tile-open .function-icon{width:21px;height:21px}.tile-open:hover{background:#e4eff8}
.tile-sort-controls{display:none;padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid #dae4ed}.is-reordering .tile-sort-controls{display:flex}
.is-reordering .dashboard-tile{border-style:dashed;border-top-style:solid}.tile-handle,.tile-move{font-size:20px;background:#f1f6fb;border-color:#b8cbdb;color:#274d6e;min-height:40px;min-width:40px}
.dashboard-order-toggle{font-size:15px;white-space:nowrap;display:flex;align-items:center;gap:8px}.dashboard-order-toggle .function-icon{width:19px;height:19px}.dashboard-order-toggle[aria-pressed=true]{background:#d7eee5;border-color:#007c62;color:#065640}
#tileOrderStatus{margin-top:14px;font-size:14px;color:#52677c}
button:focus-visible,a:focus-visible{outline:3px solid #007c62;outline-offset:3px}
@media(min-width:901px){.service-location.full{grid-column:1/-1}.service-location .location-address{grid-template-columns:repeat(3,minmax(0,1fr))}.translation-grid textarea{min-height:140px}}
@media(max-width:1000px){.dashboard-navigation .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.page{width:calc(100% - 36px)}.topbar,body.customer-app-view .topbar{padding:10px 18px}.brand .brand-product>span{display:none}.dashboard-hero{padding:28px}.dashboard-hero .lage-transfer-button{margin-left:0}}
@media(max-width:600px){body{font-size:17px}.page{width:calc(100% - 24px);margin-top:16px}.topbar,body.customer-app-view .topbar{min-height:72px;flex-wrap:wrap;gap:6px 14px;padding:8px 14px}.brand{gap:10px}.brand .brand-logo{width:98px;height:43px}.brand-product{padding-left:10px}.brand-product strong{font-size:17px}.top-actions{flex:1;gap:8px}.top-email{max-width:130px;overflow:hidden;text-overflow:ellipsis}.top-link,.save-state{font-size:13px}.dashboard-hero{padding:26px 22px;min-height:0;background-size:cover,auto 115%}.dashboard-hero h1{font-size:32px}.dashboard-hero .hero-company{font-size:17px}.dashboard-hero .quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dashboard-hero .btn{font-size:15px;padding:10px;min-height:48px}.dashboard-hero .lage-transfer-button{grid-column:1/-1}.dashboard-navigation>.list-title{align-items:flex-start;flex-direction:column}.dashboard-navigation .cards{grid-template-columns:1fr;gap:16px}:root .dashboard-navigation h2{font-size:24px}.dashboard-tile{min-height:232px;padding:22px}.dashboard-tile h3{font-size:22px}.dashboard-tile p{font-size:17px}.wizard-head,.wizard-body,.wizard-foot{padding-left:20px;padding-right:20px}h1{font-size:29px}.grid,.grid.three{grid-template-columns:1fr}.assistant-card{padding:16px}.assistant-ask{flex-wrap:wrap}.assistant-ask input{flex:1 1 100%;min-width:0}.assistant-ask button{flex:1}.field-note,.inline-note{font-size:15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Keep the action bar independent of the old dashboard grid rules. */
.dashboard-hero .quick-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;width:100%;min-width:0}.dashboard-hero .quick-actions .btn{flex:0 1 auto;max-width:100%;white-space:normal;display:inline-flex;align-items:center;justify-content:center}.dashboard-hero .quick-actions .btn:first-child{grid-column:auto}
.tile-icon .function-icon{color:var(--tile-accent);stroke:var(--tile-accent)}
@media(max-width:600px){.dashboard-hero .quick-actions{display:grid;grid-template-columns:1fr 1fr}.dashboard-hero .quick-actions .lage-transfer-button{grid-column:1/-1}}

/* 0.90.5: clear account navigation, readable actions and a compact start page. */
.topbar,body.customer-app-view .topbar{min-height:82px;gap:24px}
.top-actions{margin-left:auto;gap:16px}.save-state{gap:12px;flex-wrap:wrap;justify-content:flex-end}
.top-actions .top-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:50px;padding:10px 20px;border:1px solid #b9cbd9;border-radius:10px;font-size:18px;font-weight:750;background:#f2f7fb;color:#183b58;text-decoration:none}
.top-actions .account-top-button{background:#e5f3ed;border-color:#90c7b6;color:#075b45}.top-actions .top-link:hover{background:#dcebf5}.top-actions .function-icon{width:24px;height:24px}
.top-actions .sync-state{font-size:16px;min-height:44px;padding:8px 14px;white-space:normal;max-width:280px}
.page.dashboard{margin-top:22px;gap:18px}.dashboard-hero{min-height:0;padding:24px 30px;gap:18px;background-size:cover,auto 150%}.dashboard-hero h1{font-size:34px}.dashboard-hero .eyebrow{margin-bottom:6px}.dashboard-hero .hero-company{font-size:19px;margin-top:4px}
.dashboard-hero .quick-actions{gap:12px}.dashboard-hero .quick-actions .btn{min-height:58px;font-size:20px;padding:12px 20px}.dashboard-hero .quick-actions .function-icon{width:23px;height:23px}
.dashboard-help{background:#fff;border:1px solid #bdcddd;border-left:4px solid #007c62;border-radius:12px;overflow:hidden}
.dashboard-help>summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:58px;padding:12px 20px;font-size:18px;font-weight:750;color:#173d58;list-style:none}
.dashboard-help>summary::-webkit-details-marker{display:none}.dashboard-help>summary>span:first-child{display:flex;align-items:center;gap:10px}.dashboard-help .function-icon{width:24px;height:24px}.help-summary-action{font-size:16px;font-weight:600;color:#00614e}.help-summary-action::after{content:' ＋'}.dashboard-help[open] .help-summary-action{font-size:0}.dashboard-help[open] .help-summary-action::after{content:'Zwiń pomoc −';font-size:16px}.dashboard-help>summary:focus-visible{outline:3px solid #007c62;outline-offset:-4px}.dashboard-help .assistant-card{border:0;border-top:1px solid #d5e1e9;border-radius:0;background:#f7fbff}
.dashboard-navigation>.list-title{padding-bottom:14px}.dashboard-navigation .compact-note{font-size:17px}.dashboard-navigation .cards{gap:18px}
.dashboard-tile{min-height:224px;padding:22px}.tile-heading{margin-bottom:12px;gap:14px;min-height:56px}.tile-icon{flex-basis:54px;width:54px;height:54px;border-radius:14px}.dashboard-tile h3{font-size:26px}.tile-subtitle{font-size:16px}.dashboard-tile p{font-size:19px;line-height:1.5;margin-bottom:16px}.dashboard-tile>.tile-open{font-size:18px;min-height:48px;padding:10px 14px}.dashboard-order-toggle{font-size:17px;min-height:48px}
@media(max-width:1000px){.topbar,body.customer-app-view .topbar{flex-wrap:wrap}.dashboard-hero .quick-actions .lage-transfer-button{margin-left:0}}
@media(max-width:600px){.topbar,body.customer-app-view .topbar{gap:10px;min-height:76px}.top-actions{flex-basis:100%;justify-content:space-between;margin-left:0}.save-state{margin-left:auto}.top-actions .top-link{font-size:16px;padding:9px 14px;min-height:46px}.top-actions .sync-state{font-size:14px;max-width:150px}.page.dashboard{gap:16px}.dashboard-hero{padding:22px 18px;background-image:linear-gradient(90deg,#071b37,rgb(7 27 55 / 92%)),url('/static/lage-faktura-banner.png')}.dashboard-hero h1{font-size:30px}.dashboard-hero .quick-actions .btn{font-size:17px;padding:12px 10px;min-height:54px}.dashboard-help>summary{padding:12px 14px;font-size:17px}.help-summary-action{font-size:15px}.dashboard-tile{min-height:220px}.dashboard-tile h3{font-size:25px}.dashboard-tile p{font-size:18px}}

/* 0.90.6: consistent working proportions on all follow-up pages. */
.page.workspace{margin-top:18px;margin-bottom:36px;gap:14px}
.workspace .hero.compact{padding:8px 0 12px;min-height:0;border:0;border-radius:0;background:transparent;box-shadow:none!important;gap:16px;align-items:center}
.workspace .hero.compact>div:first-child{min-width:0;flex:1}.workspace .hero.compact .eyebrow{display:none}
.workspace .hero.compact h1{font-size:30px;line-height:1.25;margin:0}.workspace .hero.compact p{font-size:17px;line-height:1.45;margin:6px 0 0;max-width:76ch}
.workspace .hero.compact>.actions{flex:0 1 auto}.workspace .hero.compact>.btn{flex-shrink:0}.workspace .hero.compact .btn{min-height:44px;white-space:nowrap}
.workspace .workspace-help{border-radius:10px;box-shadow:none!important}.workspace .workspace-help>summary{min-height:44px;font-size:16px;padding:8px 14px}.workspace .workspace-help .help-summary-action{font-size:15px}.workspace .workspace-help .assistant-card{padding:14px 18px}.workspace .workspace-help .assistant-head{display:none}.workspace .workspace-help .assistant-message{margin-top:0}
.workspace .list-card{padding:16px 18px;border-radius:12px;box-shadow:none!important}.workspace .list-card>.list-title{padding:0 0 12px;margin-bottom:12px;background:transparent}.workspace .list-title strong{font-size:20px}.workspace .list-title h2{font-size:23px;margin:0}
.workspace .list-card>.list-title:last-child{margin-bottom:0}.workspace .list-card p{margin-top:0;margin-bottom:10px}.workspace .list-card .admin-row{padding:12px 0;gap:14px}.workspace .admin-row strong{font-size:18px}.workspace .admin-row small,.workspace .journal-row small{font-size:16px;line-height:1.45}
.workspace .empty-state,.workspace .empty-state.compact{padding:24px 16px;gap:12px}.workspace .empty-state strong{font-size:20px}.workspace .empty-state .btn{justify-self:center}
.workspace .workspace-toolbar{padding:0 0 14px}.workspace .workspace-toolbar>.field{max-width:680px}.workspace .draft-workspace .workspace-toolbar{border-bottom:1px solid #d5e1e9;margin-bottom:8px}
.workspace .customer-search-bar{padding:0 0 14px;margin-bottom:10px;background:transparent}.workspace .customer-search-bar .field{max-width:680px}
.workspace .wizard{border-radius:12px;box-shadow:none!important}.workspace .wizard-head{padding:18px 22px;gap:16px}.workspace .wizard-head h1{font-size:29px;line-height:1.25}.workspace .wizard-head .eyebrow{font-size:14px;margin-bottom:5px}.workspace .wizard-body{padding:20px 22px;min-height:0}.workspace .wizard-foot{padding:14px 22px;gap:12px}
.workspace .wizard-body>.list-title{padding:0 0 12px;margin-bottom:14px;background:transparent}.workspace .wizard-body>.workspace-help{margin-top:16px}
.workspace .grid{gap:16px}.workspace .form-section{padding:16px;border-radius:12px}.workspace .form-section-title{margin-bottom:12px}.workspace .form-section-title span{font-size:15px}
.workspace .field{gap:6px}.workspace input,.workspace select{min-height:46px;padding:9px 12px;font-size:18px}.workspace textarea{font-size:18px;padding:10px 12px;min-height:110px}.workspace .btn{min-height:44px}.workspace .btn-small{font-size:16px;min-height:44px}
.workspace .compact-cards{gap:14px}.workspace .compact-cards>.card{min-height:0;padding:16px 18px;border-radius:12px;box-shadow:none!important}.workspace .compact-cards>.card strong{font-size:22px;margin-bottom:5px}.workspace .compact-cards>.card p{font-size:16px;margin:0 0 6px}
.workspace .workspace-filters{border:1px solid #c8d5df;border-radius:9px;background:#f7fafd;padding:0 12px}.workspace .workspace-filters>summary{min-height:42px;padding:9px 0;font-size:16px;font-weight:700;cursor:pointer}.workspace .workspace-filters[open]>summary{margin-bottom:10px}.workspace .workspace-filters>.grid{padding-bottom:14px}
.workspace .workspace-disclosure{padding:0}.workspace .workspace-disclosure>summary{padding:12px 18px;min-height:48px;font-size:18px;font-weight:750;cursor:pointer}.workspace .disclosure-body{padding:4px 18px 16px}.workspace .report-export-card .list-title{display:none}
.workspace .archive-filters{grid-template-columns:1fr auto;gap:10px 16px}.workspace .archive-filters>.field.full{grid-column:1;grid-row:1}.workspace .archive-filters>.actions{grid-column:2;grid-row:1;align-self:end}.workspace .archive-filters>.workspace-filters{grid-column:1/-1;grid-row:2}
.workspace .status-screen{padding:24px 16px;min-height:0}.workspace .preview-box{padding:16px}
@media(max-width:900px){.workspace .hero.compact{flex-wrap:wrap}.workspace .hero.compact>div:first-child{flex-basis:100%}.workspace .hero.compact>.actions{justify-content:flex-start}.workspace .workspace-filters>.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.page.workspace{margin-top:12px;gap:12px}.workspace .hero.compact{gap:12px;padding-top:4px}.workspace .hero.compact h1{font-size:27px}.workspace .hero.compact p{font-size:16px}.workspace .hero.compact .actions{width:100%}.workspace .hero.compact .btn{white-space:normal}.workspace .list-card{padding:14px}.workspace .wizard-head,.workspace .wizard-body,.workspace .wizard-foot{padding:16px}.workspace .wizard-head h1{font-size:26px}.workspace .wizard-head{flex-wrap:wrap;gap:8px}.workspace .step-count{padding-top:0}.workspace .workspace-filters>.grid{grid-template-columns:1fr}.workspace .archive-filters{grid-template-columns:1fr}.workspace .archive-filters>.field.full{grid-column:1;grid-row:1}.workspace .archive-filters>.actions{grid-column:1;grid-row:2;justify-content:flex-start}.workspace .archive-filters>.workspace-filters{grid-column:1;grid-row:3}.workspace .workspace-disclosure{padding:0}.workspace .disclosure-body{padding:4px 14px 14px}.workspace .empty-state{padding:20px 10px}}
.workspace .list-card.workspace-toolbar{padding:14px 18px}
@media(max-width:600px){.workspace .list-card.workspace-toolbar{padding:14px}}
.workspace .archive-filters{padding:0}

/* 0.90.7: one branded header and compact, selectable mobile functions. */
body.customer-dashboard-view .topbar{display:none!important}.customer-dashboard-view .page.start-page{margin-top:12px}
.dashboard-hero{gap:12px;padding:20px 28px;min-height:0;background-position:center,right center}
.dashboard-brand-row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:0}
.banner-brand{display:flex;align-items:center;gap:16px}.banner-brand img{width:112px;height:46px;object-fit:contain}.banner-brand>span{font-size:22px;letter-spacing:.12em;font-weight:800;color:#fff;border-left:1px solid #547187;padding-left:16px}
.dashboard-hero h1.dashboard-company{font-size:23px;line-height:1.3;margin:0;color:#e1edf6;letter-spacing:0;font-weight:650}.dashboard-hero .quick-actions .btn{font-size:18px;min-height:50px;padding:10px 17px}
#dashboardAccountActions .top-actions{margin:0;gap:10px}#dashboardAccountActions .save-state{gap:10px}#dashboardAccountActions .top-link{background:#f0f6fb;color:#153b57;border-color:#b6d0de;font-size:17px;min-height:46px;padding:9px 15px}#dashboardAccountActions .account-top-button{background:#d7f2e7;color:#07543f;border-color:#91cdb9}#dashboardAccountActions .sync-state{background:#fff;color:#8b300e;border-color:#edbb91;max-width:240px}
.dashboard-view-controls{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;align-items:center}.dashboard-visibility-toggle{font-size:17px;min-height:48px}.dashboard-navigation>.list-title{gap:16px}
.function-picker{max-width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #b8ccd9;border-radius:16px}.function-picker .dialog-card{box-shadow:none!important;padding:22px;max-width:100%}.function-picker h2{font-size:25px;margin:0 0 10px}.function-picker p{font-size:16px;line-height:1.5}
.function-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.function-choices label{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px;background:#f2f7fb;border:1px solid #c7d8e4;border-radius:9px;cursor:pointer;font-size:17px}.function-choices input[type=checkbox]{flex:0 0 22px;width:22px;height:22px;min-height:22px;margin:0;padding:0;accent-color:#007c62}
.dashboard-empty{border:1px dashed #91acbf;border-radius:12px;background:#fff}.dashboard-empty .btn{justify-self:center}.workspace .offline-option .disclosure-body p{font-size:17px;line-height:1.5}
@media(max-width:1000px){.dashboard-brand-row{flex-wrap:wrap;gap:12px}.dashboard-navigation>.list-title{flex-wrap:wrap}.dashboard-view-controls{justify-content:flex-start}}
@media(max-width:600px){
 .customer-dashboard-view .page.start-page{margin-top:8px;gap:12px}.dashboard-hero{padding:16px;gap:10px;border-radius:14px}.dashboard-brand-row{flex-wrap:nowrap;align-items:center;gap:10px}.banner-brand{display:block;flex:0 0 90px}.banner-brand img{width:90px;height:37px}.banner-brand>span{display:block;border:0;padding:0;font-size:12px;letter-spacing:.16em;text-align:center}
 #dashboardAccountActions{min-width:0}#dashboardAccountActions .top-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px}#dashboardAccountActions .save-state{flex-wrap:nowrap;gap:6px}#dashboardAccountActions .top-link{font-size:15px;min-height:44px;padding:8px 10px;gap:5px}#dashboardAccountActions .top-link .function-icon{width:19px;height:19px}#dashboardAccountActions .sync-state{font-size:14px;max-width:165px;min-height:40px}
 .dashboard-hero h1.dashboard-company{font-size:19px}.dashboard-hero .quick-actions{gap:8px}.dashboard-hero .quick-actions .btn{font-size:15px;min-height:44px;padding:9px 8px}.dashboard-hero .quick-actions .function-icon{width:18px;height:18px;margin-right:3px}.start-page .dashboard-help>summary{min-height:44px;padding:8px 12px;font-size:16px}.start-page .help-summary-action{font-size:14px}
 .dashboard-navigation>.list-title{padding-bottom:10px;gap:10px}:root .dashboard-navigation h2{font-size:22px;margin:0}.dashboard-view-controls{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.dashboard-view-controls .btn{font-size:14px;min-height:44px;padding:8px;white-space:normal;justify-content:center}
 .dashboard-navigation .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-tile{min-height:104px;padding:12px;border-top-width:3px;border-radius:12px;box-shadow:none!important}.tile-heading{gap:8px;min-height:0;margin:0;align-items:flex-start}.tile-heading>div{min-width:0}.tile-icon{width:32px;height:32px;flex-basis:32px;border-radius:9px}.tile-icon .function-icon{width:23px;height:23px}.dashboard-tile h3{font-size:18px;line-height:1.2;overflow-wrap:anywhere}.tile-subtitle{font-size:13px;line-height:1.25;margin-top:4px;overflow-wrap:anywhere}.dashboard-tile p{display:none}
 .dashboard-navigation:not(.is-reordering) .dashboard-tile>.tile-open{position:absolute;inset:0;min-height:44px;margin:0;padding:0;border:0;border-radius:10px;background:transparent;box-shadow:none;color:transparent}.dashboard-navigation:not(.is-reordering) .tile-open span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.dashboard-navigation:not(.is-reordering) .tile-open .function-icon{position:absolute;right:8px;bottom:7px;width:16px;height:16px;color:#315a73}.dashboard-navigation:not(.is-reordering) .tile-open:focus-visible{outline:3px solid #007c62;outline-offset:-4px;background:rgb(0 124 98 / 5%)}
 .is-reordering .dashboard-tile{min-height:184px}.is-reordering .tile-sort-controls{padding-bottom:8px;margin-bottom:10px}.is-reordering .tile-open{font-size:14px;margin-top:12px;min-height:44px;padding:8px}.tile-move,.tile-handle{min-width:36px;min-height:44px}#tileOrderStatus{font-size:13px;margin-top:10px}
 .function-choices{grid-template-columns:1fr}.function-picker .dialog-card{padding:16px}.function-picker .actions{position:sticky;bottom:0;background:#fff;padding:10px 0 0}
 .workspace .hero.compact>.actions{display:flex;gap:8px}.workspace .hero.compact>.actions .btn{flex:1 1 auto;font-size:16px}.workspace .admin-row,.workspace .service-group-head{flex-wrap:wrap;gap:10px}.workspace .admin-row>.actions{width:100%;gap:8px;display:flex;flex-wrap:wrap}.workspace .admin-row>.actions .btn{flex:1 1 auto}.workspace .report-export-grid{grid-template-columns:1fr 1fr}.workspace .report-export-actions{grid-column:1/-1;flex-wrap:wrap}
}

/* 0.90.8: the navy of the original start artwork, one logo and a separate vector motif. */
.dashboard-hero{background:#000c31;background-image:none;background-repeat:no-repeat;gap:12px}
.dashboard-brand-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px}
.dashboard-motif{display:block;width:min(340px,100%);height:62px;object-fit:contain;justify-self:start;margin-left:12px;pointer-events:none}
.dashboard-create{min-width:0;border:0;margin:0;padding:0}.dashboard-create>summary{display:none}
.dashboard-hero .quick-actions #newInvoice{font-size:20px;font-weight:800;background:#007c62;border:2px solid #71dbb9;padding:10px 22px;box-shadow:0 0 0 2px rgb(113 219 185 / 12%)}
.dashboard-tile p{font-size:20px;color:#354f66}.tile-subtitle{font-size:17px;color:#415e75}.tile-label-compact{display:none}
@media(max-width:1000px){.dashboard-brand-row{grid-template-columns:auto minmax(0,1fr) auto;gap:12px}.dashboard-motif{margin-left:0;width:100%;height:52px}}
@media(max-width:800px){.dashboard-brand-row{grid-template-columns:auto auto;justify-content:space-between}.dashboard-motif{display:none}}
@media(max-width:600px){
 .dashboard-hero{background:#000c31;background-image:none;padding:14px 16px;gap:10px}.dashboard-brand-row{gap:10px}
 .dashboard-create>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;min-height:46px;padding:10px 12px;border:1px solid #4fcba6;border-radius:9px;background:#007c62;color:#fff;font-size:16px;font-weight:750;cursor:pointer}
 .dashboard-create>summary::-webkit-details-marker{display:none}.dashboard-create>summary>span:first-child{display:flex;align-items:center;gap:7px}.dashboard-create>summary .function-icon{width:20px;height:20px}.dashboard-create>summary:focus-visible{outline:3px solid #a6f5d9;outline-offset:3px}.create-disclosure-state::after{content:'⌄';font-size:20px;line-height:1}.dashboard-create[open] .create-disclosure-state::after{content:'⌃'}
 .dashboard-create .quick-actions{margin-top:10px}.dashboard-hero .quick-actions #newInvoice{grid-column:1/-1;min-height:46px;font-size:17px;padding:10px 12px}.dashboard-hero .quick-actions .btn{font-size:16px;min-height:46px}
 .dashboard-tile{padding:12px 10px;min-height:100px}.tile-heading{gap:8px}.tile-icon{width:28px;height:32px;flex-basis:28px}.dashboard-tile h3{font-size:18px;line-height:1.25;overflow-wrap:normal;hyphens:auto}.tile-subtitle{font-size:14px;line-height:1.3;overflow-wrap:normal;hyphens:auto}.tile-label-full{display:none}.tile-label-compact{display:inline}
 .workspace .compact-note,.workspace .field-note{font-size:16px}.workspace .list-title small{font-size:16px;line-height:1.45}
}

/* 0.90.9: original artwork's dark-to-luminous blue range, not a flat swatch. */
.dashboard-hero{
 background-color:#000b2f;
 background-image:radial-gradient(ellipse at 58% 70%,rgb(0 63 182 / 36%) 0%,rgb(0 23 82 / 35%) 43%,transparent 76%),linear-gradient(112deg,#000b2f 0%,#001752 56%,#000e38 100%);
 border:1px solid #183d78;box-shadow:0 9px 24px rgb(0 12 49 / 16%)!important
}
.dashboard-motif{width:min(420px,100%);height:72px;margin-left:8px}
.dashboard-navigation .cards{gap:16px}
article.dashboard-tile[data-dashboard-tile]{--tile-accent:#007c62;--tile-wash:#e4f3ec;min-height:126px;padding:22px;border:1px solid #c5d6df;border-top:3px solid var(--tile-accent);border-radius:14px;box-shadow:0 3px 12px rgb(15 43 69 / 4%)!important}
article.dashboard-tile[data-dashboard-tile=services],article.dashboard-tile[data-dashboard-tile=time],article.dashboard-tile[data-dashboard-tile=journal]{--tile-accent:#246aa8;--tile-wash:#e7f0fa}
.dashboard-tile .tile-heading{position:relative;z-index:2;pointer-events:none;margin:0;min-height:66px;align-items:center;gap:17px}
.dashboard-tile .tile-heading>div{min-width:0}.dashboard-tile h3{font-size:26px;line-height:1.25;margin:0;color:#172f48}.dashboard-tile .tile-subtitle{font-size:17px;line-height:1.4;color:#425c72;margin-top:5px}
article.dashboard-tile>button.tile-open.tile-hit{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;min-height:44px;margin:0;padding:0;border:0;border-radius:12px;background:transparent;box-shadow:none;cursor:pointer}
article.dashboard-tile>button.tile-hit:hover{background:rgb(0 124 98 / 4%)}article.dashboard-tile>button.tile-hit:focus-visible{outline:3px solid #007c62;outline-offset:-4px;background:rgb(0 124 98 / 6%)}article.dashboard-tile:focus-within{border-color:#007c62;box-shadow:0 4px 16px rgb(0 124 98 / 10%)!important}
.dashboard-tile .tile-sort-controls{position:relative;z-index:3}.is-reordering article.dashboard-tile{min-height:194px}.is-reordering .tile-heading{margin-top:8px}
.dashboard-view-controls .btn{font-size:15px;min-height:44px;padding:9px 13px;background:transparent;border:1px solid #c2d2df;color:#36546c}.dashboard-view-controls .btn:hover{background:#fff}.dashboard-view-controls .btn[aria-pressed=true]{background:#e0f1e9;border-color:#007c62;color:#07543f}
.start-page>.dashboard-help{justify-self:start;width:min(100%,520px);border:0;background:transparent;border-radius:8px}.start-page>.dashboard-help>summary{min-height:44px;padding:8px 4px;font-size:16px;color:#425e74}.start-page>.dashboard-help .help-summary-action{font-size:14px;color:#425e74}.start-page>.dashboard-help[open]{width:100%;background:#fff;border:1px solid #c5d6df}.start-page>.dashboard-help[open]>summary{padding-left:14px;padding-right:14px}
@media(max-width:1000px){.dashboard-motif{height:62px;margin-left:0}}
@media(max-width:600px){
 .dashboard-hero{background-color:#000b2f;background-image:radial-gradient(ellipse at 70% 35%,rgb(0 54 150 / 45%),transparent 80%),linear-gradient(115deg,#000b2f,#001752 65%,#000e38);padding:14px 16px}
 .dashboard-navigation .cards{gap:10px}article.dashboard-tile[data-dashboard-tile]{min-height:100px;padding:14px 10px;border-radius:12px}.dashboard-tile .tile-heading{gap:9px;min-height:58px;align-items:center}.dashboard-tile h3{font-size:19px;line-height:1.25}.dashboard-tile .tile-subtitle{font-size:14px;line-height:1.35;margin-top:4px}
 .dashboard-tile .tile-icon{width:30px;height:34px;flex-basis:30px}.dashboard-tile .tile-icon .function-icon{width:24px;height:24px}.is-reordering article.dashboard-tile[data-dashboard-tile]{min-height:182px}.is-reordering .tile-heading{min-height:58px}.dashboard-view-controls .btn{font-size:14px;padding:8px;min-height:44px}.start-page>.dashboard-help{width:100%}
}

/* 0.90.10: shared typography and a clear mobile creation hierarchy. */
:root{--ui-font:"Segoe UI",Arial,sans-serif}
body,button,input,select,textarea,summary{font-family:var(--ui-font)}
.dashboard-hero,.dashboard-hero h1,.dashboard-hero button,.dashboard-hero summary,.dashboard-tile h3,.dashboard-tile .tile-subtitle{font-family:var(--ui-font)}
.dashboard-motif{width:min(480px,100%);height:88px;margin-left:0}
.dashboard-brand-row{gap:24px}
@media(min-width:801px) and (max-width:1000px){.dashboard-motif{height:76px}.dashboard-brand-row{gap:12px}}
@media(max-width:800px){.dashboard-motif{display:none}}
@media(max-width:600px){
 .dashboard-brand-row{gap:8px}
 .dashboard-create>summary{background:rgba(255,255,255,0.06);color:#edf4ff;border:1px solid #7898c1;font-weight:600}
 .dashboard-create>summary:hover{background:rgba(255,255,255,0.12)}
 .dashboard-create>summary:focus-visible{outline:3px solid #b8d9ff;outline-offset:3px}
 .dashboard-create .quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
 .dashboard-hero .quick-actions #newInvoice{grid-column:1 / -1;min-height:56px;padding:12px 14px;background:#007c62;color:#fff;border:2px solid #71dbb9;font-size:19px;font-weight:800;box-shadow:0 3px 10px rgb(0 0 0 / 18%)!important}
 .dashboard-hero .quick-actions #newInvoice:hover{background:#00614e}
 .dashboard-hero .quick-actions #newInvoice:focus-visible{outline:3px solid #fff;outline-offset:3px}
 .dashboard-hero .quick-actions .btn-secondary{background:#edf3fb;color:#183853;border-color:#bbcee5;font-size:16px;min-height:48px;white-space:normal;overflow-wrap:anywhere;padding:10px 8px}
 .dashboard-hero .quick-actions .lage-transfer-button{grid-column:1 / -1;margin-left:0;width:100%}
 #dashboardAccountActions .save-state{flex-wrap:wrap;justify-content:flex-end}
}

/* Follow-up layouts wrap without changing the approved banner proportions. */
@media(max-width:600px){.page.workspace .hero.compact>.actions,.page.workspace .wizard-foot{flex-wrap:wrap}}
/* The same compact LaGe banner on every customer follow-up page. */
.workspace-brand-motif{display:none}
body.customer-app-view:not(.customer-dashboard-view) .topbar{
 width:min(1280px,calc(100% - 64px));margin:12px auto 0;min-height:104px;padding:18px 28px;box-sizing:border-box;border:1px solid #183d78;border-radius:20px;color:#fff;
 background-color:#000b2f;background-image:radial-gradient(ellipse at 58% 70%,rgba(0,63,182,.36) 0%,rgba(0,23,82,.35) 43%,transparent 76%),linear-gradient(112deg,#000b2f 0%,#001752 56%,#000e38 100%);box-shadow:0 9px 24px rgba(0,12,49,.16)
}
body.customer-app-view:not(.customer-dashboard-view) .topbar .brand{flex:1;gap:16px}
body.customer-app-view:not(.customer-dashboard-view) .topbar .brand-product{border-color:#547187}
body.customer-app-view:not(.customer-dashboard-view) .topbar .brand-product strong{color:#fff}
body.customer-app-view:not(.customer-dashboard-view) .topbar .brand-product>span{display:none}
body.customer-app-view:not(.customer-dashboard-view) .topbar .workspace-brand-motif{display:block;width:min(340px,35vw);height:72px;object-fit:contain;margin-left:14px;pointer-events:none}
body.customer-app-view:not(.customer-dashboard-view) .topbar .top-actions{flex:0 1 auto;margin-left:auto}
body.customer-app-view:not(.customer-dashboard-view) .topbar .save-state{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;color:#fff}
body.customer-app-view:not(.customer-dashboard-view) .topbar .top-link{background:#edf3fb;color:#183853;border:1px solid #bbcee5;padding:10px 14px;white-space:normal;line-height:1.3}
body.customer-app-view:not(.customer-dashboard-view) .topbar .account-top-button{background:#d3f4e8;color:#064f3c;border-color:#5ac7a6}
body.customer-app-view:not(.customer-dashboard-view) .topbar .top-link:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:1000px){
 body.customer-app-view:not(.customer-dashboard-view) .topbar{width:calc(100% - 36px);gap:12px;padding:16px 20px}
 body.customer-app-view:not(.customer-dashboard-view) .topbar .workspace-brand-motif{display:none}
}
@media(max-width:600px){
 body.customer-app-view:not(.customer-dashboard-view) .topbar{width:calc(100% - 24px);padding:14px;min-height:0;border-radius:14px;gap:12px;flex-wrap:wrap}
 body.customer-app-view:not(.customer-dashboard-view) .topbar .brand{gap:10px}
 body.customer-app-view:not(.customer-dashboard-view) .topbar .brand-logo{width:90px;height:37px}
 body.customer-app-view:not(.customer-dashboard-view) .topbar .brand-product{padding-left:10px}
 body.customer-app-view:not(.customer-dashboard-view) .topbar .brand-product strong{font-size:16px}
 body.customer-app-view:not(.customer-dashboard-view) .topbar .top-actions{flex:1 1 100%;justify-content:flex-end;min-width:0}
 body.customer-app-view:not(.customer-dashboard-view) .topbar .top-link{font-size:17px;min-height:46px;padding:8px 12px}
}


/* 0.90.11: banner only. Preserve page backgrounds, tiles and workspace type. */
.dashboard-brand-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px;min-height:64px}
.dashboard-brand-row>.banner-brand{grid-column:2;justify-self:center;display:flex;align-items:center;justify-content:center;gap:14px;min-width:0}
.dashboard-brand-row>#dashboardAccountActions{grid-column:3;justify-self:end;min-width:0}
.dashboard-brand-row .banner-brand img{width:120px;height:50px;object-fit:contain}
.dashboard-brand-row .banner-brand>span{display:block;border:0;padding:0;font-family:Arial,Helvetica,sans-serif;font-size:28px;font-weight:600;letter-spacing:.025em;line-height:1;color:#fff;text-align:left}
.dashboard-brand-row #dashboardAccountActions .top-actions{flex-wrap:wrap;justify-content:flex-end}
body.customer-app-view:not(.customer-dashboard-view) .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px}
body.customer-app-view:not(.customer-dashboard-view) .topbar>.brand{grid-column:2;justify-self:center;display:flex;align-items:center;justify-content:center;gap:14px;min-width:0}
body.customer-app-view:not(.customer-dashboard-view) .topbar>.top-actions{grid-column:3;justify-self:end;min-width:0;margin-left:0}
body.customer-app-view:not(.customer-dashboard-view) .topbar .brand-logo{width:120px;height:50px;object-fit:contain}
body.customer-app-view:not(.customer-dashboard-view) .topbar .brand-product{display:block;border:0;padding:0}
body.customer-app-view:not(.customer-dashboard-view) .topbar .brand-product strong{font-family:Arial,Helvetica,sans-serif;font-size:28px;font-weight:600;letter-spacing:.025em;line-height:1;color:#fff}
body.customer-app-view:not(.customer-dashboard-view) .topbar .brand-product>span{display:none}
@media(max-width:800px){
 .dashboard-brand-row{grid-template-columns:minmax(0,1fr);gap:12px}
 .dashboard-brand-row>.banner-brand{grid-column:1;grid-row:1}
 .dashboard-brand-row>#dashboardAccountActions{grid-column:1;grid-row:2;justify-self:end;width:100%}
 .dashboard-brand-row #dashboardAccountActions .top-actions{flex-basis:auto;justify-content:flex-end}
 body.customer-app-view:not(.customer-dashboard-view) .topbar{grid-template-columns:minmax(0,1fr);gap:12px}
 body.customer-app-view:not(.customer-dashboard-view) .topbar>.brand{grid-column:1;grid-row:1}
 body.customer-app-view:not(.customer-dashboard-view) .topbar>.top-actions{grid-column:1;grid-row:2;justify-self:end;justify-content:flex-end;width:100%}
}
@media(max-width:600px){
 .dashboard-brand-row .banner-brand img,body.customer-app-view:not(.customer-dashboard-view) .topbar .brand-logo{width:108px;height:45px}
 .dashboard-brand-row .banner-brand>span,body.customer-app-view:not(.customer-dashboard-view) .topbar .brand-product strong{font-size:25px;letter-spacing:.025em}
 .dashboard-brand-row>.banner-brand,body.customer-app-view:not(.customer-dashboard-view) .topbar>.brand{gap:12px}
}


/* 0.90.12: complete banner composition; backgrounds and tiles stay unchanged. */
.dashboard-brand-row{min-height:76px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:18px;align-items:center}
.dashboard-hero .dashboard-brand-row>.dashboard-company{grid-column:1;grid-row:1;justify-self:start;max-width:100%;font-family:Arial,Helvetica,sans-serif;font-size:21px;font-weight:500;line-height:1.35;margin:0;color:#edf4ff;overflow-wrap:anywhere;text-align:left}
.dashboard-brand-row>.banner-brand{grid-column:2;grid-row:1;gap:0}
.dashboard-brand-row .banner-brand img{width:310px;height:62px;max-width:100%;object-fit:contain}
.dashboard-brand-row>#dashboardAccountActions{grid-column:3;grid-row:1;align-self:center}
.dashboard-hero{gap:18px;padding-top:18px;padding-bottom:22px}
.dashboard-hero .dashboard-create .quick-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:10px;margin-top:0}
.dashboard-hero .dashboard-create .quick-actions .btn{min-height:50px;margin:0;padding:11px 16px;font-family:Arial,Helvetica,sans-serif;font-size:18px;line-height:1.3;white-space:normal}
.dashboard-hero .dashboard-create .quick-actions #newInvoice{font-size:18px;padding:11px 18px}
body.customer-app-view:not(.customer-dashboard-view) .topbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:18px;padding-top:18px;padding-bottom:18px}
body.customer-app-view:not(.customer-dashboard-view) .topbar>.brand{grid-column:2;grid-row:1;gap:0}
body.customer-app-view:not(.customer-dashboard-view) .topbar .brand-wordmark{width:310px;height:62px;max-width:100%;object-fit:contain}
body.customer-app-view:not(.customer-dashboard-view) .topbar>.top-actions{grid-column:3;grid-row:1;align-self:center}
@media(max-width:900px){
 .dashboard-brand-row{grid-template-columns:minmax(0,1fr) auto;gap:10px 14px}
 .dashboard-brand-row>.banner-brand{grid-column:1/-1;grid-row:1}
 .dashboard-hero .dashboard-brand-row>.dashboard-company{grid-column:1;grid-row:2}
 .dashboard-brand-row>#dashboardAccountActions{grid-column:2;grid-row:2;width:auto}
 body.customer-app-view:not(.customer-dashboard-view) .topbar{grid-template-columns:minmax(0,1fr) auto;gap:10px 14px}
 body.customer-app-view:not(.customer-dashboard-view) .topbar>.brand{grid-column:1/-1;grid-row:1}
 body.customer-app-view:not(.customer-dashboard-view) .topbar>.top-actions{grid-column:2;grid-row:2;width:auto}
}
@media(max-width:600px){
 .dashboard-hero{gap:14px;padding:14px 16px}
 .dashboard-brand-row .banner-brand img{width:250px;height:50px}
 .dashboard-hero .dashboard-brand-row>.dashboard-company{font-size:16px;line-height:1.4}
 .dashboard-brand-row>#dashboardAccountActions .top-link{font-family:Arial,Helvetica,sans-serif;font-size:14px;padding:8px;min-height:44px}
 .dashboard-brand-row #dashboardAccountActions .save-state{gap:6px}
 .dashboard-hero .dashboard-create .quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
 .dashboard-hero .dashboard-create .quick-actions .btn{min-height:48px;padding:10px 8px;font-size:16px}
 .dashboard-hero .dashboard-create .quick-actions #newInvoice{grid-column:1/-1;min-height:56px;font-size:19px;padding:12px 14px}
 .dashboard-hero .dashboard-create .quick-actions .lage-transfer-button{grid-column:1/-1;width:100%}
 body.customer-app-view:not(.customer-dashboard-view) .topbar .brand-wordmark{width:250px;height:50px}
 body.customer-app-view:not(.customer-dashboard-view) .topbar .top-link{font-family:Arial,Helvetica,sans-serif;font-size:14px;padding:8px;min-height:44px}
 body.customer-app-view:not(.customer-dashboard-view) .topbar .save-state{gap:6px}
}

.dashboard-hero .dashboard-create>summary{font-family:Arial,Helvetica,sans-serif}


/* 0.90.13: compact actions left; LaGe transfer aligned below account actions. */
.dashboard-hero .dashboard-create .quick-actions{justify-content:flex-start;gap:8px}
.dashboard-hero .dashboard-create .quick-actions .btn{min-height:42px;padding:8px 12px;font-size:16px;line-height:1.3;border-radius:9px;flex:0 0 auto}
.dashboard-hero .dashboard-create .quick-actions #newInvoice{min-height:42px;padding:8px 12px;font-size:16px}
.dashboard-hero .dashboard-create .quick-actions .function-icon{width:18px;height:18px}
.dashboard-hero .dashboard-create .quick-actions .lage-transfer-button{margin-left:auto}
@media(max-width:600px){
 .dashboard-hero .dashboard-create .quick-actions{justify-content:stretch}
 .dashboard-hero .dashboard-create .quick-actions .btn{min-height:44px;padding:9px 8px;font-size:16px}
 .dashboard-hero .dashboard-create .quick-actions #newInvoice{min-height:48px;padding:10px 12px;font-size:17px}
 .dashboard-hero .dashboard-create .quick-actions .lage-transfer-button{grid-column:1/-1;justify-self:end;width:auto;margin-left:0}
}


/* 0.90.14: one alignment edge for wordmark and capture group; readable view/help controls. */
.dashboard-hero .dashboard-create .dashboard-actions-main{display:flex;justify-content:space-between;align-items:stretch;gap:8px;width:calc(50% + 155px);min-width:0}
.dashboard-hero .dashboard-create .dashboard-actions-main>.btn{flex:0 1 auto;min-width:0}
.dashboard-navigation .dashboard-view-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:calc((100% - 32px)/3);flex:0 0 auto;min-width:0;align-items:stretch}
.dashboard-navigation .dashboard-view-controls .btn{font-size:16px;line-height:1.35;min-height:48px;padding:10px 12px;white-space:normal;justify-content:center}
.dashboard-order-status{font-size:16px;line-height:1.5;margin:10px 0 0}.dashboard-order-status:empty{display:none}
.start-page>.dashboard-help>summary{min-height:48px;padding:10px 12px;font-size:18px;line-height:1.4;gap:16px}
.start-page>.dashboard-help .help-summary-action{font-size:17px;font-weight:650;line-height:1.4;white-space:normal}
.start-page>.dashboard-help>summary .function-icon{width:24px;height:24px}
@media(max-width:1000px){
 .dashboard-hero .dashboard-create .quick-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
 .dashboard-hero .dashboard-create .dashboard-actions-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}
 .dashboard-hero .dashboard-create .quick-actions .lage-transfer-button{margin-left:0;justify-self:end}
 .dashboard-navigation .dashboard-view-controls{width:calc((100% - 16px)/2)}
}
@media(max-width:600px){
 .dashboard-hero .dashboard-create .quick-actions{grid-template-columns:minmax(0,1fr)}
 .dashboard-hero .dashboard-create .dashboard-actions-main{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-hero .dashboard-create .quick-actions .lage-transfer-button{grid-column:1;justify-self:end;width:auto}
 .dashboard-navigation .dashboard-view-controls{width:100%;gap:10px}
 .dashboard-navigation .dashboard-view-controls .btn{font-size:16px;min-height:48px;padding:10px 8px}
 .start-page>.dashboard-help>summary{font-size:17px;min-height:48px;gap:10px;padding:10px 4px}
 .start-page>.dashboard-help .help-summary-action{font-size:16px}
}


/* 0.90.15: equal capture and LaGe-transfer widths inside the existing alignment. */
.dashboard-hero .dashboard-create .dashboard-actions-main{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.dashboard-hero .dashboard-create .dashboard-actions-main>.btn{width:100%;justify-content:center;min-width:0}
.dashboard-hero .dashboard-create .quick-actions .lage-transfer-button{width:calc((50% + 131px)/4);min-width:0;justify-content:center;align-self:stretch}
.dashboard-hero .dashboard-create .quick-actions[data-creation-count="3"] .dashboard-actions-main{grid-template-columns:repeat(3,minmax(0,1fr))}
.dashboard-hero .dashboard-create .quick-actions[data-creation-count="3"] .lage-transfer-button{width:calc((50% + 139px)/3)}
.dashboard-hero .dashboard-create .quick-actions[data-creation-count="2"] .dashboard-actions-main{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-hero .dashboard-create .quick-actions[data-creation-count="2"] .lage-transfer-button{width:calc((50% + 147px)/2)}
@media(max-width:1000px){
 .dashboard-hero .dashboard-create .quick-actions{grid-template-columns:minmax(0,1fr) calc((100% - 16px)/3);gap:8px}
 .dashboard-hero .dashboard-create .quick-actions[data-creation-count] .dashboard-actions-main{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-hero .dashboard-create .quick-actions[data-creation-count] .lage-transfer-button{width:100%;align-self:end}
}
@media(max-width:600px){
 .dashboard-hero .dashboard-create .quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-hero .dashboard-create .quick-actions[data-creation-count] .dashboard-actions-main{display:contents}
 .dashboard-hero .dashboard-create .quick-actions #newInvoice{grid-column:1/-1}
 .dashboard-hero .dashboard-create .quick-actions[data-creation-count] .lage-transfer-button{grid-column:2;width:100%;justify-self:stretch;align-self:stretch}
}


/* 0.90.16: account navigation, honest help disclosure and centered mobile creation. */
.dashboard-help .help-summary-action::after,.dashboard-help[open] .help-summary-action::after{content:none}
.dashboard-help[open] .help-summary-action{font-size:inherit}
.help-collapse-label{display:none}.dashboard-help[open] .help-expand-label{display:none}.dashboard-help[open] .help-collapse-label{display:inline}
.account-help-topics{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}.account-help-topics .btn{min-height:44px;white-space:normal}
.account-help-scope{margin-top:0}
.account-page .hero.compact{padding-bottom:0}.account-page .list-card>p{max-width:80ch}
@media(max-width:600px){
 .dashboard-create>summary{position:relative;justify-content:center;text-align:center;padding-left:38px;padding-right:38px}
 .dashboard-create>summary>span:first-child{justify-content:center;min-width:0}
 .dashboard-create>summary .create-disclosure-state{position:absolute;right:12px;top:50%;transform:translateY(-50%)}
 .account-help-topics{display:grid;grid-template-columns:minmax(0,1fr)}
 .account-help-topics .btn{width:100%;justify-content:flex-start;text-align:left}
}


/* Local function reference works without an AI service or a network connection. */
.function-reference{margin:0 0 14px;border:1px solid #c5d6df;border-radius:10px;background:#fff}
.function-reference>summary{min-height:46px;padding:10px 14px;font-size:18px;font-weight:700;cursor:pointer;line-height:1.4}
.function-reference-topics{padding:0 14px 12px}.function-reference-topics>details{border-top:1px solid #dbe5ed}
.function-reference-topics>details>summary{min-height:44px;padding:10px 0;font-size:17px;font-weight:650;cursor:pointer;line-height:1.4}
.function-reference-topics p{font-size:17px;line-height:1.55;margin:0 0 14px;white-space:pre-line}
.static-function-help{margin-top:16px;background:#fff;color:#203951}.static-function-help>.function-reference{margin:0 12px 12px}
@media(max-width:600px){.function-reference>summary,.function-reference-topics>details>summary,.function-reference-topics p{font-size:16px}.static-function-help>summary{min-height:48px}}

/* 0.90.17: one semantic type scale throughout forms, lists, help and dialogs.
   The existing banner and dashboard tiles keep their approved proportions. */
:root{--ui-body:16px;--ui-control:16px;--ui-meta:14px;--ui-title:26px;--ui-section:20px;--ui-subtitle:20px}
body{font-size:var(--ui-body);line-height:1.5}
.page.workspace,.auth-card,.status-screen,.dialog-card{font-size:var(--ui-body);line-height:1.5}
.page.workspace h1,.auth-card h1,.status-screen h1{font-size:var(--ui-title)!important;line-height:1.2}
.page.workspace h2,.auth-card h2,.dialog-card h2{font-size:var(--ui-section)!important;line-height:1.25}
.page.workspace h3,.auth-card h3,.dialog-card h3{font-size:var(--ui-subtitle)!important;line-height:1.3}
.page.workspace p,.page.workspace td,.page.workspace th,.page.workspace label,.page.workspace legend,.page.workspace .choice span,.page.workspace .admin-row strong,.page.workspace .customer-row strong,.page.workspace .journal-row strong,.page.workspace .journal-main,.page.workspace .summary-row,.page.workspace .list-title,.dialog-card p,.dialog-card td,.dialog-card th,.dialog-card label,.dialog-card legend,.dialog-card .admin-row strong,.auth-card p,.auth-card label{font-size:var(--ui-body)!important}
.page.workspace .btn,.page.workspace .btn-small,.page.workspace .top-link,.page.workspace .segmented-btn,.page.workspace input,.page.workspace select,.page.workspace textarea,.dialog-card .btn,.dialog-card .btn-small,.dialog-card input,.dialog-card select,.dialog-card textarea,.auth-card .btn,.auth-card input,.auth-card select,.auth-card textarea{font-size:var(--ui-control)!important;line-height:1.4}
.page.workspace .btn,.dialog-card .btn,.auth-card .btn{min-height:44px;padding:10px 16px}
.page.workspace small,.page.workspace .field-note,.page.workspace .muted,.page.workspace .compact-note,.page.workspace .inline-note,.page.workspace .required-missing-note,.page.workspace .step-count,.page.workspace .tag,.page.workspace .journal-meta,.page.workspace .journal-lage,.page.workspace .assistant-source,.page.workspace .assistant-answer strong,.page.workspace .assistant-voice-status,.dialog-card small,.dialog-card .field-note,.dialog-card .muted,.auth-card small,.auth-card .muted{font-size:var(--ui-meta)!important;line-height:1.5}
.page.workspace .error,.dialog-card .error,.auth-card .error{font-size:var(--ui-body)!important}
.page.workspace .workspace-help>summary,.page.workspace .workspace-disclosure>summary,.page.workspace .workspace-filters>summary,.page.workspace .help-summary-action,.page.workspace .function-reference summary,.page.workspace .function-reference p,.dialog-card .function-reference summary,.dialog-card .function-reference p{font-size:var(--ui-body)!important}
.field-label-row{flex-wrap:wrap;gap:10px;align-items:center}
.page.workspace .customer-add-action{font-weight:700;border:1px solid var(--brand);white-space:normal;text-align:center}
.mfa-security-card .admin-row>div:first-child{flex:1;min-width:0}
.mfa-security-card .admin-row>.actions{flex:0 0 auto;max-width:100%;flex-wrap:wrap}
.mfa-security-card .admin-row .btn{white-space:normal;word-break:normal;overflow-wrap:normal;min-width:12ch;max-width:100%}
.mfa-security-card .admin-row{flex-wrap:wrap;align-items:flex-start}
.mfa-security-card #mfaSetup{white-space:nowrap}
@media(max-width:760px){
 .page.workspace .btn,.dialog-card .btn,.auth-card .btn{min-height:48px}
 .mfa-security-card .admin-row>.actions{width:100%;flex-basis:100%}
 .mfa-security-card #mfaSetup{width:100%;white-space:normal}
}

.page.workspace .list-title strong,.page.workspace .form-section-title strong,.page.workspace .empty-state strong,.page.workspace .section-title,.dialog-card .list-title strong{font-size:var(--ui-subtitle)!important;line-height:1.3}
.page.workspace .eyebrow,.dialog-card .eyebrow{font-size:var(--ui-meta)!important}
.page.workspace .field-label-row label{font-size:var(--ui-body)!important}
.page.workspace input,.page.workspace select,.page.workspace textarea,.dialog-card input,.dialog-card select,.dialog-card textarea{min-width:0}
.page.workspace .btn,.dialog-card .btn{overflow-wrap:normal;word-break:normal;white-space:normal}
.page.workspace .mfa-security-card #mfaSetup{white-space:nowrap}
@media(max-width:760px){.page.workspace .mfa-security-card #mfaSetup{white-space:normal}}
/* Auxiliary components follow the same roles instead of legacy 11–14 px sizes. */
.page.workspace .customer-picker-option,.page.workspace .customer-picker-option strong,.page.workspace .details-card>summary strong,.page.workspace .position-summary strong,.page.workspace .time-duration-preview,.page.workspace .assistant-head strong,.page.workspace .admin-account-title strong,.dialog-card .assistant-head strong{font-size:var(--ui-body)!important;line-height:1.5}
.page.workspace .customer-picker-option small,.page.workspace .selected-customer,.page.workspace .delivery-mini,.page.workspace .time-summary span,.page.workspace .file-verification-status,.page.workspace .form-section-title span,.page.workspace .position-number,.page.workspace .position-summary small,.page.workspace .payroll-preflight-summary span,.page.workspace .sync-state,.page.workspace .stats span,.page.workspace .status-pill,.page.workspace .capture-guard-status,.page.workspace .admin-account-username,.page.workspace .admin-warning,.page.workspace .admin-secondary>summary span,.dialog-card .tag,.dialog-card .step-count,.dialog-card .assistant-voice-status{font-size:var(--ui-meta)!important;line-height:1.5}
.page.workspace .subcard h3,.page.workspace .admin-settings-block h3,.page.workspace .stats strong{font-size:var(--ui-subtitle)!important;line-height:1.3}
.page.workspace .inline-warning,.page.workspace .inline-success,.dialog-card .inline-warning,.dialog-card .inline-success{font-size:var(--ui-body)!important}

/* 0.90.18: distinguish the reference heading from expandable help topics. */
.page.workspace .function-reference>summary,.dialog-card .function-reference>summary{font-size:var(--ui-subtitle)!important;font-weight:750;background:#e6f1f6;color:#173e58;border-radius:9px;padding:14px 16px;border-bottom:2px solid #a8c3d2}
.page.workspace .function-reference-topics>details>summary,.dialog-card .function-reference-topics>details>summary{font-weight:500;color:#126287;padding-left:12px;text-decoration:underline;text-underline-offset:3px}
.partial-invoice-choice{display:flex;align-items:flex-start;gap:12px;padding:14px 8px;border-bottom:1px solid #dbe5ed;cursor:pointer}.partial-invoice-choice input{width:22px;height:22px;flex-shrink:0}.partial-invoice-choice small{display:block;margin-top:5px}.partial-invoice-choice:has(input:disabled){opacity:.65;cursor:default}.linked-payment{border-left:4px solid #009875}

/* Shared live contains search and closed, scrollable selection. */
[hidden]{display:none!important}
.search-select{display:flex;position:relative;align-items:stretch;width:100%;min-width:0;border:1px solid #a8bac7;border-radius:10px;background:#fff}
.page.workspace .search-select>input,.dialog-card .search-select>input{flex:1;width:0;min-width:0;border:0;border-radius:10px;background:transparent;padding-right:8px}
.search-select:focus-within{outline:2px solid #009875;outline-offset:2px}
.search-select>button{flex:0 0 44px;min-width:44px;min-height:44px;border:0;border-left:1px solid #dbe5ed;background:transparent;color:#173e58;border-radius:0;cursor:pointer;font-size:24px}
.search-select>button:last-of-type{border-radius:0 9px 9px 0}.search-select>button:disabled{opacity:.4;cursor:default}
.search-results,.search-results.customer-picker-list{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:70;max-height:min(300px,40vh);overflow-y:auto;overscroll-behavior:contain;display:grid;gap:3px;padding:5px;background:#fff;border:1px solid #a8bac7;border-radius:10px;box-shadow:0 10px 28px #173e5833}
.search-results.search-above{top:auto;bottom:calc(100% + 4px)}
.search-results .search-option{white-space:normal;overflow-wrap:anywhere}.search-results .search-option small{font-size:var(--ui-meta)!important;line-height:1.4}
.search-results .search-option.search-active,.search-results .search-option:hover{background:#e6f4ef;border-color:#009875}
.search-empty{padding:14px;font-size:var(--ui-body);color:#526575}

/* Customer readiness and final-invoice assignment */
.customer-address{display:grid;gap:.25rem;padding:1rem;border:1px solid var(--border,#d0d9de);border-radius:.7rem;background:var(--surface,#fff);font-style:normal;overflow-wrap:anywhere}
.customer-incomplete{border:2px solid #b42318!important;background:#fff1f0!important;color:#a01912!important}
.customer-incomplete strong,.customer-incomplete small{color:#a01912!important}
.final-invoice-dialog{width:min(900px,calc(100vw - 24px));max-width:900px}
.final-invoice-list{max-height:52vh;overflow-y:auto;display:grid;gap:.65rem}
.final-invoice-row{display:flex;align-items:center;gap:.75rem;border:1px solid #d2dce3;border-radius:.6rem;padding:.7rem}
.final-invoice-row .partial-invoice-choice{flex:1;min-width:0;margin:0;border:0;background:transparent;padding:0}
.partial-suggested{border-left:5px solid #177459;background:#effaf5}
.final-invoice-row:has(input:checked){outline:2px solid #005e94}
.wizard-foot .actions{flex-wrap:wrap}
@media(max-width:600px){.final-invoice-row{align-items:stretch;flex-direction:column}.wizard-foot{flex-wrap:wrap;gap:.6rem}.customer-address{padding:.75rem}}

/* Scrollable selections stay inside the visual viewport, including the mobile keyboard. */
.search-results,.search-results.customer-picker-list{position:fixed;display:flex;flex-direction:column;align-items:stretch;overflow-x:hidden;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;z-index:1000;min-height:0;box-sizing:border-box;margin:0}
.search-results .search-option,.search-results .search-empty{flex:0 0 auto;min-height:58px}
.position-suggestions{align-items:flex-start}.position-suggestions>textarea{flex:1;min-width:0;border:0;width:0}.position-suggestions .search-option small{white-space:pre-wrap}
.tax-case-explanation{color:#009875!important;font-size:var(--ui-meta,16px);line-height:1.5;margin:6px 0 0}
.payment-schedule-preview{border-left:3px solid #009875;background:#f2faf7;padding:10px 12px;font-size:var(--ui-meta,16px);line-height:1.5}
.service-period-fields,.service-mode-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start;min-width:0}
.service-mode-layout>.field-note{margin-top:0}.service-period-fields input{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.copy-source-action{margin-bottom:14px}.copy-source-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #cbd8df;border-radius:10px;padding:12px}.copy-source-row small{display:block}
.copy-journal-dialog{width:min(1100px,calc(100vw - 24px));max-width:1100px;max-height:calc(100dvh - 24px);padding:0;overflow:hidden}
.copy-journal-dialog>.dialog-card{max-height:calc(100dvh - 28px);overflow-y:auto;padding:20px}
.copy-journal-filters{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:12px}
.copy-journal-list{display:grid;gap:10px;max-height:48dvh;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;min-height:120px}
.copy-journal-list .copy-source-row>div:first-child{min-width:0;overflow-wrap:anywhere}
.copy-journal-list .actions{flex-wrap:wrap;flex-shrink:0}
.purchase-receipt-dialog{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto}
.purchase-summary{flex-basis:100%;max-width:460px}
@media(max-width:600px){.copy-journal-filters{grid-template-columns:1fr}.copy-journal-dialog>.dialog-card{padding:14px}.copy-journal-list{max-height:44dvh}.copy-journal-list .actions{display:grid;grid-template-columns:1fr}.copy-journal-list .copy-source-row{align-items:stretch}}
@media(max-width:600px){.service-period-fields,.service-mode-layout{grid-template-columns:minmax(0,1fr)}.service-mode-layout>.field-note{margin-top:0}.copy-source-row{flex-direction:column;align-items:stretch}.search-results .search-option{min-height:64px}.position-suggestions>textarea{min-height:120px}}

/* All explanatory UI text uses the requested LaGe green. Document output is separate. */
:root{--explanation-color:#009875}
#app p,dialog p,#app .field-note,dialog .field-note,#app .inline-note,dialog .inline-note,
#app .muted,dialog .muted,#app .assistant-message,#app .assistant-answer,dialog .assistant-answer,
#app .assistant-voice-status,#app .form-section-title>span,#app .payment-schedule-preview,
#app .tax-case-explanation,#app .account-help-scope,#app .empty-state>span,
dialog .function-reference-topics p,#app .function-reference-topics p{color:var(--explanation-color)!important}
#app .inline-note strong,dialog .inline-note strong,#app .field-note strong,dialog .field-note strong{color:inherit!important}
#app .error,dialog .error,#app .field-note-error,dialog .field-note-error,#app .customer-incomplete,#app .customer-incomplete small,#app .customer-incomplete strong{color:#a01912!important}
.capture-section{margin:0}.capture-section>.capture-section-heading{display:flex;gap:12px;align-items:start;margin:0;padding:14px 16px;font-size:var(--ui-subtitle,20px);font-weight:750;line-height:1.4}
.capture-section-heading>span:first-child{display:grid;gap:6px}.capture-section-heading small{font-size:var(--ui-meta,16px);font-weight:400;color:var(--explanation-color)}
.capture-section>.details-body{display:grid!important;padding:16px}.capture-section-heading .details-chevron{display:none}
.position-heading{cursor:default!important}.correction-reference{display:grid;gap:6px;overflow-wrap:anywhere;padding:12px;background:#f2faf7;border:1px solid #b6d7cc;border-radius:10px}
.correction-source-actions{display:flex;flex-wrap:wrap;gap:10px}.correction-journal-list{max-height:55dvh;overflow-y:auto;display:grid;gap:10px;overscroll-behavior:contain;touch-action:pan-y}
.correction-journal-row{border:1px solid #cbd8df;border-radius:10px;padding:12px;display:flex;gap:14px;align-items:center;justify-content:space-between}.correction-journal-row>div:first-child{min-width:0;overflow-wrap:anywhere}.correction-journal-row small{display:block;margin-top:5px}.correction-journal-row .actions{flex-shrink:0;flex-wrap:wrap}
@media(max-width:600px){.correction-journal-row{flex-direction:column;align-items:stretch}.correction-journal-row .actions{display:grid;grid-template-columns:1fr 1fr}.correction-source-actions{display:grid;grid-template-columns:1fr}.capture-section>.details-body{padding:14px}}

#app .guidance-danger,dialog .guidance-danger{color:var(--explanation-color)!important}

/* Payment controls: automatic terms stay visible, manual overrides are explicit. */
[data-payment-manual][hidden]{display:none!important}
.cost-split-label{color:#009875!important}
.payment-settings .section-title{margin-bottom:16px}
@media(min-width:760px){.payment-settings>.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Draft rows open directly; only preview and delete remain below the title. */
.draft-row{display:flex;flex-direction:column;gap:10px;padding:16px 0;border-bottom:1px solid var(--line)}
.draft-open{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;border:0;background:transparent;color:var(--ink);font:inherit;text-align:left;padding:8px;cursor:pointer;border-radius:6px}
.draft-open:hover{background:#f1f6fa}.draft-open:focus-visible{outline:3px solid #009875;outline-offset:2px}.draft-open small{color:var(--muted)}
.draft-row-actions{padding:0 8px}.invoice-issues{color:#b42318}.invoice-issues h2{font-size:1.1rem;margin:0 0 10px}
.invoice-issue-link{display:block;width:100%;font:inherit;text-align:left;color:#b42318;background:#fff7f5;border:1px solid #e9b6ac;border-radius:6px;padding:12px;margin:8px 0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.invoice-issue-link:focus-visible{outline:3px solid #009875;outline-offset:2px}.wizard-head:has([data-invoice-review]),.wizard-head:has([data-company-return-invoice]){flex-wrap:wrap;gap:12px}
@media(max-width:820px){.pdf-page-viewport{padding:0}.pdf-scroll-page{margin-bottom:8px;box-shadow:none}}

/* Common type roles and readable document columns on every screen size. */
:root{--ui-family:"Segoe UI",system-ui,Arial,sans-serif}
body,button,input,select,textarea{font-family:var(--ui-family)}
.start-page .dashboard-hero h1,.start-page .dashboard-company{font-size:var(--ui-title)}
.start-page .dashboard-tile h3,.start-page .dashboard-navigation h2{font-size:var(--ui-section)}
.start-page .dashboard-tile p,.start-page .dashboard-hero .quick-actions .btn,.start-page .tile-open,.start-page .dashboard-order-toggle,.start-page .dashboard-help>summary{font-size:var(--ui-body)}
.start-page .tile-subtitle,.start-page .compact-note,.start-page .help-summary-action,.top-actions .save-state{font-size:var(--ui-meta)}
.page.workspace .admin-row,.page.workspace .time-mobile-card{gap:12px 16px;flex-wrap:wrap}
.page.workspace .admin-row>div,.page.workspace .time-mobile-card>div{min-width:0;overflow-wrap:anywhere}
.page.workspace :is(.admin-row,.time-mobile-card)>.actions{max-width:100%;flex-wrap:wrap}
.initial-password-card{width:min(100%,500px);margin-inline:auto}
.documents-journal .journal-head,.documents-journal .journal-row{
  display:grid;grid-template-columns:24px minmax(5rem,0.7fr) minmax(0,2fr) minmax(8rem,1fr) 6.5rem 8rem;
  align-items:center;gap:8px 12px;padding:8px
}
.documents-journal .journal-head{font-size:var(--ui-meta);text-transform:none;letter-spacing:0}
.documents-journal .journal-main{display:contents}
.documents-journal .journal-main>*{min-width:0;overflow-wrap:anywhere}
.journal-type{font-size:var(--ui-meta)}
.journal-date,.journal-amount{font-variant-numeric:tabular-nums;white-space:nowrap}
.journal-amount{text-align:right}
.documents-journal .journal-head>span:first-child{grid-column:2}.documents-journal .journal-head>span:last-child{text-align:right}
.journal-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.journal-toolbar .btn{min-height:44px;border:1px solid #00765e;background:#fff;color:#005a47}
.journal-toolbar .btn-primary{background:#00765e;color:#fff}
.journal-toolbar .btn:not(:disabled):hover{background:#005a47;color:#fff}
.journal-toolbar .btn:disabled{color:#657688;background:#edf2f5;border-color:#c5d0db;cursor:default}
.documents-journal .journal-row{border-bottom:1px solid var(--line);cursor:pointer}
.documents-journal .journal-row:hover,.documents-journal .journal-row:has(input:checked){background:#e7f5ef}
.documents-journal .journal-row:focus-within{outline:2px solid #00765e;outline-offset:-2px}
.documents-journal .journal-row input{width:20px;height:20px;min-height:0;margin:0;accent-color:#00765e;cursor:pointer}
.delivery-attachments{padding-inline-start:20px;overflow-wrap:anywhere}
.delivery-attachments li+li{margin-top:8px}
.delivery-attachments input{width:20px;height:20px;min-height:0;vertical-align:middle;accent-color:#00765e}
.save-state:has(.main-panel-button){flex-wrap:wrap}
.journal-mobile-label{display:none;color:var(--muted);font-size:var(--ui-meta)}
/* The transfer border also applies over the more specific mobile quick-action palette. */
.dashboard-hero .dashboard-create .quick-actions #lageBtn{border:2px solid #009875}
@media (max-width:760px), (hover:none) and (pointer:coarse){
  .dashboard-hero .dashboard-create .quick-actions #lageBtn{
    background:#e0f9ee;color:#064f3c;
  }
  .dashboard-hero .dashboard-create .quick-actions #lageBtn:active{background:#c4f1de}
}
.journal-net-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px .35em;padding:8px 10px;margin-bottom:10px;background:#eaf5ef;border-radius:6px}
.journal-net-summary small{flex-basis:100%}
.journal-net-summary strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.lage-list-tabs,.lage-date-filter{margin-bottom:12px}
.lage-list-tabs .btn[aria-pressed="true"]{background:#d3f4e8;color:#064f3c;border-color:#009875}
.lage-date-filter:not([hidden]){display:grid;grid-template-columns:minmax(0,10rem) minmax(0,10rem) auto;gap:8px;align-items:end;justify-content:start;margin-top:12px}
.lage-date-filter input{width:100%;min-width:0;box-sizing:border-box}
.lage-selection-toolbar,.lage-send-actions{margin-block:10px}
#lageSelectionCount{margin-inline-start:auto}
.lage-send-button{border:2px solid #009875}
.lage-document-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center;border-top:1px solid var(--line)}
.lage-document-line{display:grid;grid-template-columns:24px minmax(5rem,7rem) minmax(0,1fr);gap:8px 12px;align-items:center;padding:8px 4px;min-height:44px;cursor:pointer}
.lage-sent-row .lage-document-line{grid-template-columns:24px minmax(5rem,7rem) minmax(0,1fr) minmax(10rem,auto)}
.lage-document-line:has(input:checked){background:#e7f5ef}
.lage-document-line :is(.lage-document-number,.lage-document-customer){min-width:0;overflow-wrap:anywhere}
.lage-sent-at{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:var(--ui-meta)}
.lage-document-line input{width:20px;height:20px;min-height:0;margin:0;padding:0;accent-color:var(--brand);cursor:pointer}
.lage-protocol{grid-column:1/-1;padding:4px 8px 12px 36px;overflow-wrap:anywhere}
.lage-protocol-entry{padding:8px 0;border-top:1px solid var(--line);font-size:var(--ui-meta)}
.lage-protocol-entry dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;margin:6px 0 0}
.lage-protocol-entry dd{margin:0}
.lage-protocol-entry small{display:block}
.lage-protocol-body{white-space:pre-wrap}
@media(max-width:680px){
  .lage-document-row{grid-template-columns:minmax(0,1fr) auto}
  .lage-document-line,.lage-sent-row .lage-document-line{grid-column:1/-1;grid-template-columns:20px minmax(4rem,auto) minmax(0,1fr);gap:4px 8px}
  .lage-sent-at{grid-column:2/-1}
  .lage-document-row>button{grid-column:1/-1;justify-self:start;margin:0 0 8px 28px;max-width:calc(100% - 28px)}
  .lage-date-filter:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}
  .lage-date-filter button{justify-self:start}
  .lage-protocol-entry dl{grid-template-columns:minmax(0,1fr)}
  .lage-protocol-entry dd{margin-bottom:5px}
}
@media(max-width:940px){
  .journal-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .journal-toolbar .btn{white-space:normal}
  .journal-toolbar .btn:last-child{grid-column:1/-1}
}
@media(max-width:680px){
  .documents-journal .journal-head{display:none}
  .documents-journal .journal-row{grid-template-columns:minmax(0,1fr) auto auto;gap:5px 8px;padding:8px 4px}
  .documents-journal .journal-row input{align-self:start}
  .documents-journal .journal-main{display:grid;grid-column:1/-1;grid-template-columns:20px minmax(4rem,auto) minmax(0,1fr);gap:2px 8px}
  .documents-journal .journal-type{overflow-wrap:anywhere}
  .documents-journal :is(.journal-date,.journal-amount){font-size:var(--ui-meta)}
  .page.workspace.documents-journal .journal-amount strong{font-size:var(--ui-meta)!important}
}

.documents-journal .journal-filters-grid,.documents-journal .journal-date-range{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px
}
.documents-journal .journal-date-range{grid-column:1/-1}
.documents-journal .journal-date-range>.field,.documents-journal .journal-date-range input{min-width:0}
.documents-journal .journal-date-range input{box-sizing:border-box;width:100%}
@media(max-width:600px){
  .documents-journal .journal-filters-grid{grid-template-columns:minmax(0,1fr)}
  .documents-journal .journal-date-range{gap:8px}
}

/* Keep each workspace column within the viewport, even with long values. */
.dashboard.workspace{grid-template-columns:minmax(0,1fr)}
.workspace :is(.service-group-head>div,.service-card-main,.service-history-row>div){min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){
  .auth-card{min-width:0;max-width:100%;overflow-wrap:anywhere}
  .workspace,.workspace :is(.grid,.field,.wizard-head,.wizard-head>div,.form-section,.list-title,.actions,.service-group,.segmented),
  .dialog-card,.dialog-card :is(.grid,.field,.actions){min-width:0}
  .workspace :is(h1,h2,h3,summary,.field-note),.dialog-card :is(h2,h3,summary){overflow-wrap:anywhere}
  .workspace :is(.wizard-head,.wizard-foot,.form-section-title,.list-title){flex-wrap:wrap;gap:8px 12px}
  .workspace .wizard-head .step-count{padding-top:0}
  .workspace .wizard-foot>.actions{flex:1 1 100%}
  .workspace .wizard-foot>.btn{width:100%}
  .workspace .wizard-foot>.actions>.btn{flex:1 1 9rem}
  .workspace .hero.compact>.actions{max-width:100%}
  .workspace :is(.btn,.segmented-btn),.dialog-card .btn{max-width:100%;overflow-wrap:anywhere}
  .workspace :is(input[type=date],input[type=month],input[type=time]),
  .dialog-card :is(input[type=date],input[type=month],input[type=time]){min-inline-size:0;max-inline-size:100%}
  .workspace :is(.list-card,.wizard-head,.wizard-body,.wizard-foot,.preview-box){padding-inline:clamp(12px,3.5vw,20px)}
  .workspace :is(.form-section,.service-location,.line-card){padding-inline:clamp(10px,3vw,16px)}
  .workspace .service-group.embedded{margin-inline:0}
  .workspace .service-group-head{padding:12px;align-items:stretch}
  .workspace .service-group-head>.actions,
  .workspace :is(.service-mobile-card,.service-history-row,.time-mobile-card)>.actions{
    width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px
  }
  .workspace .service-mobile-card{grid-template-columns:44px minmax(0,1fr);padding:12px;gap:8px}
  .workspace .service-mobile-card>.journal-select{display:grid;place-items:center;min-height:44px;cursor:pointer}
  .workspace .service-mobile-card>.journal-select input{width:20px;min-height:0;margin:0;transform:none;accent-color:var(--brand)}
  .workspace .service-mobile-card>.actions{grid-column:1/-1}
  .workspace :is(.service-mobile-card,.service-history-row,.time-mobile-card)>.actions>.btn:only-child{grid-column:1/-1}
  .workspace .segmented{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workspace .segmented-btn{min-height:44px;padding-inline:6px;line-height:1.3}
  .workspace .service-history-row>div:first-child{width:100%}
  .workspace .search-select{min-width:0}
  .workspace .position-summary strong{white-space:normal;overflow-wrap:anywhere}
  .workspace .time-mobile-card{grid-template-columns:minmax(0,1fr)}
  .workspace .summary-row{gap:8px 12px;flex-wrap:wrap}
  .app-dialog{max-height:calc(100dvh - 20px);overflow-y:auto}
  .dialog-card .actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
  .workspace .service-group-head>.actions{grid-template-columns:minmax(0,1fr)}
  .workspace .journal-date-range input{padding-inline:6px}
  .workspace .wizard-head{gap:8px}
}

/* At compact widths the page heading and its controls occupy separate rows. */
@media(max-width:900px){
  .workspace .hero.compact{
    display:grid;grid-template-columns:minmax(0,1fr);align-items:start;justify-content:normal
  }
  .workspace .hero.compact>*{min-width:0;max-width:100%}
  .workspace .hero.compact>.actions{width:auto;justify-content:flex-start}
  .workspace .hero.compact>.btn{justify-self:start;white-space:normal}
  .workspace :is(.grid,.location-address,.time-summary) label{overflow-wrap:anywhere}
}
.workspace :is(.customer-row-main,.draft-open,.time-summary,.time-summary span){
  min-width:0;overflow-wrap:anywhere
}
.workspace :is(.customer-row-main>*,.draft-open>*,.time-summary span){min-width:0;max-width:100%}
.workspace .hero.compact,.workspace .journal-amount{overflow-wrap:anywhere}
.workspace .journal-amount{white-space:normal}
@media(min-width:901px){
  .workspace .hero.compact>.actions{max-width:68%;min-width:0}
}

/* Shared field alignment and visible action boundaries. */
body button { border-width: 1.5px; border-style: solid; border-color: #536d83; }
body :is(.btn,.top-link,.segmented-btn,.search-toggle) {
  border: 1.5px solid #536d83;
  box-shadow: 0 1px 2px #0b294524;
}
body .btn-primary { border-color: #005948; }
body .btn-danger { border-color: #8f1912; }
body :is(.btn,.top-link,.segmented-btn):focus-visible {
  outline: 3px solid #1263a0; outline-offset: 2px;
}
.page.workspace .grid > .full { grid-column: 1 / -1; }
.page.workspace .order-descriptions { grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
body .field > label:not(.switch-row), body .field-label-row > label {
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-height: 1.4em;
}
body .field > label > span { overflow: hidden; text-overflow: ellipsis; }
.position-language-flag { flex: 0 0 18px; border: 1px solid #9ba9b4; }
.entry-exit-actions { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); }
.entry-exit-actions > [data-entry-choice="save"] { grid-column: 1 / -1; width: 100%; }
.page.workspace .order-hour-fields { grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start; }
.order-hours-control { display: flex; align-items: center; gap: 4px; position: relative; }
.order-hours-control input { min-width: 0; }
.order-hours-control.is-overridden input { border-right: 5px solid #b36b00; background: #fff8e9; }
.order-hours-control .btn { min-height: 32px; padding: 0 6px; }
.page.workspace .order-hour-fields { position: relative; }
.order-original-value { position: absolute; right: 0; top: 100%; z-index: 20; color: #805000;
  background: #fff8e9; padding: 5px 9px; border: 1px solid #b36b00; border-radius: 6px; font-weight: 600; }
.invoice-source-tag { background: #e4eefb; border: 1px solid #708eab; }
.invoice-source-return { margin-bottom: 12px; padding: 10px; border: 1px solid #708eab; border-radius: 8px; }
@media(max-width:760px) {
  .page.workspace .order-descriptions { grid-template-columns: minmax(0,1fr); }
  .page.workspace .order-hour-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* A small shared type scale, with the current function above its editing step. */
:root{--ui-body:16px;--ui-control:16px;--ui-meta:14px;--ui-title:22px;--ui-section:18px;--ui-subtitle:18px}
.page.workspace .wizard-head .screen-context{font-size:var(--ui-title)!important;font-weight:750;line-height:1.3;margin:0;color:#132f4b;letter-spacing:0;text-transform:none}
.page.workspace .wizard-head .screen-step{font-size:var(--ui-body)!important;font-weight:600;line-height:1.5;margin:4px 0 0;color:#496171;letter-spacing:0}
.page.workspace .wizard-head .step-count{font-size:var(--ui-meta);color:#496171;white-space:nowrap;align-self:center}
.page.workspace .hero.compact h1,.auth-card h1{font-size:var(--ui-title)!important;line-height:1.3}
.page.workspace :is(h2,h3,.section-title,.form-section-title strong,.list-title strong),.dialog-card :is(h2,h3){font-size:var(--ui-section)!important;font-weight:700;line-height:1.4}
.page.workspace :is(.eyebrow,.tag,.step-count,small,.field-note,.inline-note),.dialog-card :is(small,.field-note,.inline-note){font-size:var(--ui-meta)!important;line-height:1.5}
.page.workspace :is(input,select,textarea,.btn),.dialog-card :is(input,select,textarea,.btn){font-size:var(--ui-body)!important}
.position-language-flag{flex:0 0 auto;width:auto;height:15px;box-sizing:content-box;border:0;border-radius:2px;overflow:hidden;box-shadow:0 0 0 1px #52677955,0 1px 2px #18385324;margin-left:3px;vertical-align:middle}
.move-services-dialog{width:min(640px,calc(100vw - 24px));max-width:640px;padding:0;box-sizing:border-box;border:1px solid #8da5b5;border-radius:12px}
.move-services-dialog .dialog-card{padding:20px;box-sizing:border-box}
.move-services-dialog h2{margin:0 0 8px}
.move-services-list{border:0;padding:0;margin:16px 0 8px;min-width:0;max-height:45dvh;overflow:auto;display:grid;gap:8px}
.move-services-list legend{font-size:var(--ui-body);font-weight:600;margin-bottom:8px}
.move-services-dialog .move-service-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:12px;align-items:center;margin:0;padding:12px;border:1.5px solid #a4b6c4;border-radius:8px;cursor:pointer;min-height:48px;box-sizing:border-box}
.move-service-row:has(input:checked){background:#edf3f9;border-color:#a4b6c4}
.move-services-dialog .move-service-row input{appearance:auto;width:20px;height:20px;min-height:0;min-width:0;margin:0;accent-color:#275f91}
.move-service-description{overflow-wrap:anywhere;font-weight:600;min-width:0}
.move-service-quantity{white-space:nowrap;font-variant-numeric:tabular-nums;color:#496171}
.move-services-dialog .actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:10px;margin-top:16px}
.move-services-dialog .actions .btn{width:100%;min-height:44px}
.order-billing-issues{grid-column:1/-1;padding:12px 16px;border:1px solid #b42318;border-radius:8px;margin-bottom:12px}
.order-billing-issues ul{margin:6px 0 12px;padding-left:20px}
.order-transfer-result{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.pdf-preview-with-action .pdf-preview-toolbar{grid-template-columns:max-content max-content minmax(0,1fr)}
.pdf-preview-with-action [data-pdf-issue]{justify-self:end;min-height:44px}
@media(max-width:760px){
  .pdf-preview-with-action .pdf-preview-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pdf-preview-with-action [data-pdf-issue]{grid-column:1/-1;justify-self:stretch;width:100%}
}
@media(max-width:420px){
  .move-services-dialog .dialog-card{padding:16px}
  .move-services-dialog .move-service-row{grid-template-columns:22px minmax(0,1fr);gap:4px 10px}
  .move-service-quantity{grid-column:2}
  .move-services-dialog .actions{grid-template-columns:minmax(0,1fr)}
}

/* The position editor keeps its action row visible at every screen height. */
.invoice-position-dialog{width:min(1060px,calc(100vw - 24px));max-width:1060px;max-height:calc(100dvh - 24px);overflow:hidden;padding:0;border:1px solid #a4b6c4;border-radius:12px}
.invoice-position-dialog>.dialog-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 26px);padding:14px 18px;box-sizing:border-box}
.invoice-position-dialog h2{margin:0 0 6px}
.invoice-position-dialog [data-position-scroll]{overflow:auto;min-height:0;overscroll-behavior:contain;padding:2px 4px}
.invoice-position-dialog [data-position-error]{white-space:pre-line;margin-top:10px}
.invoice-position-footer{justify-content:flex-end;margin-top:10px;padding-top:8px;border-top:1px solid #d5e1e7}
.invoice-position-dialog .line-card-body{padding:0;border:0}
.invoice-position-dialog .form-gap{margin-top:8px}
.invoice-position-dialog .grid{gap:6px 10px}
.invoice-position-dialog .translation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
.invoice-position-dialog .translate-arrow{display:none}
.invoice-position-dialog .translation-grid textarea{min-height:64px;height:64px;resize:vertical}
.invoice-position-dialog .service-location{padding:6px 10px 8px;margin:0}
.invoice-position-dialog .location-address{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:5px}
.invoice-position-dialog .line-card-body>.grid:last-child{grid-template-columns:repeat(5,minmax(0,1fr))}
.invoice-position-dialog .line-card-body>.grid>.full{grid-column:1/-1}
.invoice-position-dialog .search-select{min-width:0}
.invoice-position-dialog .field :is(input,select){min-height:34px;padding:5px 8px}
.invoice-position-dialog .search-select>button{min-height:34px}
.invoice-position-dialog .static-function-help{margin-top:8px}
.invoice-position-dialog .position-editor-instruction{margin:0 0 8px}
.invoice-positions .position-instruction{margin:0 0 10px}
.invoice-review-frame{border:2px solid #009875;border-radius:10px;padding:4px;display:inline-flex}
.invoice-positions .invoice-position-scroll{display:block;overflow-x:auto;margin:12px 0 8px;border:1px solid #a4b6c4;border-radius:8px}
.invoice-position-table{width:max(100%,calc(686px + var(--description-width,180px)));min-width:866px;table-layout:fixed;border-collapse:collapse;font-size:var(--ui-body)}
.invoice-position-table :is(th,td){text-align:left;padding:8px;border-bottom:1px solid #d5e1e7;font-size:var(--ui-body)}
.invoice-position-table th{background:#edf3f9;line-height:1.25;color:#183853}
.invoice-position-table td{vertical-align:middle}
.invoice-position-table .position-col-index{width:40px}.invoice-position-table .position-col-quantity{width:70px}.invoice-position-table .position-col-unit{width:84px}.invoice-position-table .position-col-price{width:102px}.invoice-position-table .position-col-vat{width:74px}.invoice-position-table .position-col-total{width:112px}.invoice-position-table .position-col-actions{width:204px}
.invoice-position-table .position-project{display:table-row;background:#f0f4f8;color:#29445c}
.invoice-position-table .position-project strong{margin-right:6px}
.invoice-position-description{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--ui-body)}
.position-number-cell{text-align:right!important;white-space:nowrap;font-variant-numeric:tabular-nums}
.invoice-position-actions{justify-content:flex-end;gap:4px;flex-wrap:wrap}
.page.workspace .invoice-position-actions .btn{min-height:32px;padding:4px 7px}
.position-description-heading{position:relative;padding-right:36px!important}
.position-column-resize{position:absolute;right:3px;top:3px;bottom:3px;width:28px;border:1px solid #819aac;border-radius:5px;background:#fff;color:#29445c;cursor:col-resize;touch-action:none}
.position-column-resize:focus-visible{outline:2px solid #009875;outline-offset:1px}
.invoice-position-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}
.invoice-position-totals>div{padding:10px 12px;background:#f0f4f8;border:1px solid #c4d2db;border-radius:7px}
.invoice-position-totals>div:last-child{background:#e6f4ef;border-color:#009875}
.invoice-position-totals dt{font-weight:650}.invoice-position-totals dd{margin:4px 0 0;font-weight:700;font-variant-numeric:tabular-nums}
@media(min-width:761px){
  .invoice-position-dialog .location-address>.field:has([data-location-field="street"]){grid-column:span 2}
}
.invoice-position-row[data-position-editable]{cursor:pointer}
.invoice-position-dialog .position-cost-row>.field{grid-column:1/span 1}
@media(max-width:760px){
  .invoice-position-dialog>.dialog-card{padding:12px}
  .invoice-position-dialog .line-card-body>.grid:last-child,.invoice-position-dialog .location-address{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page.workspace .invoice-position-actions .btn{min-height:44px}
}
@media(max-width:520px){
  .invoice-position-dialog .translation-grid,.invoice-position-totals{grid-template-columns:minmax(0,1fr)}
  .invoice-position-totals>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
  .invoice-position-totals dd{margin:0;white-space:nowrap}
}

/* Document delivery acknowledges SMTP acceptance before returning to drafts. */
.page.workspace.delivery-confirmation{
  display:grid;place-items:center;min-height:max(320px,calc(100svh - 180px))
}
.page.workspace .delivery-confirmation-card{
  display:grid;justify-items:center;gap:12px;width:min(100%,460px);
  padding:clamp(22px,5vw,36px);text-align:center
}
.delivery-confirmation-card h1{font-size:var(--ui-title);line-height:1.3;color:#132f4b}
.page.workspace .delivery-confirmation-card p{margin:0}
.delivery-confirmation-mark{
  display:grid;place-items:center;width:48px;height:48px;border-radius:50%;
  background:#e6f4ef;color:#00664f;font-size:25px;font-weight:750
}
.mobile-position-label{display:none}

@media(max-width:900px){
  .invoice-positions .position-toolbar{display:grid;gap:10px;justify-content:stretch}
  .invoice-positions .position-toolbar>.actions{justify-content:flex-start}
  .invoice-position-scroll{overflow:visible;border:0;border-radius:0}
  .invoice-position-table{
    display:block;width:100%;min-width:0;position:relative;border-collapse:separate
  }
  .invoice-position-table colgroup,.invoice-position-table .position-column-resize{display:none}
  .invoice-position-table thead{
    position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap
  }
  .invoice-position-table tbody{display:grid;gap:8px}
  .invoice-position-table tr{display:block}
  .invoice-position-table tr.position-project{display:block;border-radius:7px}
  .invoice-position-table .position-project td{display:block;padding:8px 10px;overflow-wrap:anywhere}
  .invoice-position-table .invoice-position-row{
    position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px 10px;padding:8px 10px;border:1px solid #a4b6c4;border-radius:8px;background:#fff
  }
  .invoice-position-table .invoice-position-row td{display:block;min-width:0;padding:0;border:0}
  .invoice-position-table .invoice-position-row td[data-position-unused]{display:none}
  .invoice-position-table .invoice-position-row .position-number-cell{text-align:left!important;white-space:normal;overflow-wrap:anywhere}
  .invoice-position-index{
    position:absolute;top:8px;left:10px;width:26px;border-radius:5px;
    background:#e6f4ef;color:#064f3c;text-align:center;font-variant-numeric:tabular-nums
  }
  .invoice-position-table .invoice-position-row .invoice-position-title{
    grid-column:1/-1;min-height:26px;padding-left:36px
  }
  .invoice-position-description{white-space:normal;overflow-wrap:anywhere}
  .mobile-position-label{display:block;color:#496171;font-size:var(--ui-meta);line-height:1.3}
  .invoice-position-table:not(.offer-position-table,.invoice-payment-table) .invoice-position-row{
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .invoice-position-row .position-vat-cell{grid-column:1}
  .invoice-position-table .invoice-position-row .invoice-position-value{grid-column:2/-1;font-weight:650}
  .invoice-position-table .invoice-position-row .invoice-position-controls{
    grid-column:1/-1;padding-top:4px;border-top:1px solid #d5e1e7
  }
  .invoice-position-actions{justify-content:flex-start;gap:6px}
  .page.workspace .invoice-position-actions .btn{min-height:44px;min-width:44px;padding:6px 9px}
}

@media(max-width:760px){
  /* Keep tap targets large and wrap action groups before breaking their labels. */
  .page.workspace :is(.btn,.segmented-btn),.dialog-card .btn{
    min-height:44px;line-height:1.25;padding:8px 10px;
    white-space:normal;overflow-wrap:break-word;text-wrap:balance
  }
  .page.workspace :is(.hero.compact>.actions,.wizard-foot>.actions,.list-title>.actions,
    .admin-row>.actions,.service-group-head>.actions,.service-mobile-card>.actions,
    .service-history-row>.actions,.time-mobile-card>.actions,.customer-row>.actions,
    .draft-row-actions,.journal-toolbar,.position-toolbar>.actions,.offer-actions),
  .dialog-card :is(.actions,.entry-exit-actions){
    display:flex!important;flex-wrap:wrap;align-items:stretch;gap:8px;min-width:0
  }
  .page.workspace :is(.hero.compact>.actions,.wizard-foot>.actions,.list-title>.actions,
    .admin-row>.actions,.service-group-head>.actions,.service-mobile-card>.actions,
    .service-history-row>.actions,.time-mobile-card>.actions,.customer-row>.actions,
    .draft-row-actions,.journal-toolbar,.position-toolbar>.actions,.offer-actions)>.btn,
  .dialog-card .actions>.btn{flex:1 0 auto;inline-size:auto;max-inline-size:100%}
  .page.workspace .wizard-foot{gap:8px}
  .page.workspace .wizard-foot>.btn,
  .page.workspace .wizard-head>[data-invoice-review],
  .page.workspace .invoice-review-frame,.page.workspace .invoice-review-frame>.btn,
  .dialog-card .entry-exit-actions>[data-entry-choice="save"]{width:100%}
  .page.workspace .invoice-review-frame{padding:3px}
  .page.workspace :is(.field > label,.field-label-row > label):not(.switch-row),
  .dialog-card :is(.field > label,.field-label-row > label):not(.switch-row){
    white-space:normal;overflow:visible;overflow-wrap:break-word
  }
  .page.workspace :is(input,select,textarea),.dialog-card :is(input,select,textarea){min-width:0}
  .page.workspace .translation-grid{grid-template-columns:minmax(0,1fr)}
  .page.workspace .translation-grid>.translate-arrow{display:none}
  .page.workspace .dashboard-help>summary,.dialog-card .dashboard-help>summary{
    gap:8px;padding:8px 10px;min-height:44px
  }
  .page.workspace .dashboard-help>summary :is(span,.help-summary-action),
  .dialog-card .dashboard-help>summary :is(span,.help-summary-action){font-size:14px!important}
  .dashboard-help>summary .function-icon{width:18px;height:18px;flex:none}
  .invoice-position-dialog .field :is(input,select),.invoice-position-dialog .search-select>button{min-height:44px}
  .invoice-position-dialog .translation-grid textarea{min-height:86px}
  .pdf-preview-toolbar{gap:6px}
  .pdf-preview-toolbar .btn{min-height:44px;padding:6px 10px;line-height:1.25;white-space:normal}
  .pdf-preview-with-action .pdf-preview-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pdf-preview-with-action [data-pdf-issue]{grid-column:1/-1}
}

@media(max-width:600px){
  body.customer-app-view:not(.customer-dashboard-view) .topbar .top-link{
    font-size:14px;min-height:44px;padding:7px 9px;white-space:nowrap
  }
  body.customer-app-view:not(.customer-dashboard-view) .topbar .save-state{
    gap:6px;justify-content:center
  }
  body.customer-app-view:not(.customer-dashboard-view) .topbar .top-link .function-icon{
    width:17px;height:17px
  }
  .dashboard-hero .dashboard-create .quick-actions{
    display:flex;flex-wrap:wrap;align-items:stretch
  }
  .dashboard-hero .dashboard-create .quick-actions>.btn{
    flex:1 0 auto;max-width:100%;min-height:44px;
    white-space:normal;overflow-wrap:break-word;text-wrap:balance
  }
  .dashboard-hero .dashboard-create .quick-actions #newInvoice{flex-basis:100%}
}

@media(max-width:520px){
  .invoice-position-dialog .location-address{align-items:end}
  .invoice-position-dialog .location-address>.field:has(:is(
    [data-location-field="name"],[data-location-field="street"],[data-location-field="city"],
    [data-location-field="extra"],[data-location-field="country_code"])){grid-column:1/-1}
}

@media(max-width:350px){
  body.customer-app-view:not(.customer-dashboard-view) .topbar{
    grid-template-columns:minmax(0,1fr);gap:8px;padding:12px
  }
  body.customer-app-view:not(.customer-dashboard-view) .topbar>.top-actions{
    grid-column:1;justify-self:center;width:100%;justify-content:center;flex-wrap:wrap
  }
  body.customer-app-view:not(.customer-dashboard-view) .topbar .sync-state:not(.hidden){
    flex-basis:100%;max-width:100%
  }
  body.customer-app-view:not(.customer-dashboard-view) .topbar .top-link{padding-inline:7px}
  body.customer-app-view:not(.customer-dashboard-view) .topbar .top-link .function-icon{display:none}
  .page.workspace .wizard-head .screen-context{font-size:20px!important}
}

.invoice-payment-table{width:100%;min-width:520px}
.invoice-payment-table th:first-child{width:3.4rem}
.invoice-payment-table th:nth-child(3){width:8rem}
.invoice-payment-table th:nth-child(4){width:8rem}
.invoice-payment-table th:last-child{width:10rem}
.invoice-payment-table :is(th,td):nth-child(4){text-align:right}
@media(max-width:760px){.invoice-payment-table{min-width:0}.invoice-payment-table td:nth-child(4){text-align:left}}

/* Keep the position fields and translation feedback at a stable height while typing. */
.invoice-position-dialog .translation-status,.order-descriptions .translation-status{block-size:4.5em;overflow:auto;margin-block:4px 0}
.position-suggestions .search-removable{display:flex;align-items:center;gap:4px}
.position-suggestions .search-removable>.search-option{flex:1 1 auto;min-width:0}
.position-suggestions .search-remove{flex:0 0 auto}

label[for="invoice-invoiceType"],
.service-mode-layout label[for="invoice-serviceMode"],
.invoice-position-empty{color:#b42318;font-weight:700}
.draft-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 0}
.draft-open{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1.2fr) 12ch 19ch 10ch;align-items:center;gap:10px}
.draft-total,.draft-date{font-variant-numeric:tabular-nums;white-space:nowrap}
.draft-total{display:grid;grid-template-columns:minmax(0,1fr) 3.5ch;column-gap:.4em}
.draft-total-value{justify-self:end}
.draft-origin{justify-self:start;white-space:nowrap}
.draft-row-actions{flex-wrap:nowrap;padding:0}
.invoice-customer-warning p{margin:4px 0 8px}
.entry-exit-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.entry-exit-title h2{margin:0}
.dialog-card .entry-exit-discard{border-color:#b42318;color:#9f1e15;background:#fff}
.dialog-card .entry-exit-discard:hover{border-color:#9f1e15;background:#fff4f2}
.entry-exit-close{min-height:36px;font-size:1.25rem;line-height:1}
.dialog-card .entry-exit-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px}
.dialog-card .entry-exit-actions>[data-entry-choice="save"]{grid-column:auto}
@media(max-width:760px){.page.workspace .draft-row-actions>.btn{flex:0 1 auto}}
@media(min-width:761px){
  .draft-open strong,.draft-document-type{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .toast.toast-centered{position:fixed;top:50%;left:50%;width:max-content;max-width:calc(100vw - 32px);transform:translate(-50%,-50%);text-align:center;padding:18px 26px;font-weight:700}
}
@media(max-width:760px){
  .draft-row{gap:4px;grid-template-columns:minmax(0,1fr)}
  .draft-open{grid-template-columns:24% 39% minmax(0,1fr);gap:3px 8px;padding:4px 0}
  .draft-open strong,.draft-document-type{grid-column:1/-1}
  .draft-open .invoice-source-tag{padding-inline:5px;font-size:var(--ui-meta)}
  .draft-row-actions{justify-content:flex-start;flex-wrap:wrap}
}

body .btn.red-outline-action{border-color:#b42318;color:#000}
body .btn.red-outline-action:hover{border-color:#8f1912;color:#000}

.draft-completion-warning,.pdf-preview-status[role="alert"],
.page.workspace .invoice-issues h2,.page.workspace .invoice-issue-link,
.page.workspace .invoice-customer-warning{color:#9f1e15;font-weight:650}
.draft-open .draft-completion-warning{grid-column:1/-1;color:#9f1e15}
.pdf-preview-issues{max-width:48rem;margin:0 auto;padding:12px}
.offer-list-nav{margin-bottom:8px}
.offer-list-nav [aria-pressed="true"]{background:#e6f4ef;border-color:#00765e;color:#064f3c}
:where(.app-shell,.app-dialog) :is(input,select,textarea):not(:disabled){
  color:#122334;
}
@media(max-width:900px){
  :where(.app-shell,.app-dialog) :is(input,select,textarea):not(:disabled){-webkit-text-fill-color:currentColor}
  .order-position>strong{flex-basis:100%}
  .order-position:has(>.order-position-select)>strong{flex:1 1 calc(100% - 36px)}
  .order-position>button{min-height:44px}
}

dialog .pdf-preview-status[role="alert"],#app .invoice-customer-warning p{color:#9f1e15!important}

body .delete-outline-action{
  border:1px solid #b42318!important;color:#000!important;background:#fff!important
}
body .delete-outline-action:not(:disabled):hover{background:#fff4f2!important}
.page.workspace .draft-row-actions .draft-completion-warning{color:#9f1e15;font-weight:700}
.journal-toolbar[hidden]{display:none}
@media(max-width:900px){
  .journal-toolbar-home,.documents-journal #archiveSelection{display:none}
  #archiveResults>.journal-toolbar{margin:8px 0 4px;padding-top:8px;border-top:3px solid #476780}
}
body:has(#app>.drafts-screen) .app-shell{
  height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden
}
body:has(#app>.drafts-screen) #app{
  flex:1;min-height:0;display:flex;flex-direction:column
}
.page.drafts-screen{flex:1;min-height:0;display:flex;flex-direction:column}
.drafts-screen .draft-workspace{flex:1;min-height:0;display:flex;flex-direction:column}
.drafts-screen #draftResults{min-height:0;overflow:auto;overscroll-behavior:contain}
.documents-journal #archiveResults{
  max-block-size:65dvh;overflow-y:auto;scrollbar-gutter:stable
}
@media(max-width:900px){
  .documents-journal .journal-documents{overflow:clip}
  .documents-journal #archiveResults{max-block-size:none;overflow:visible;scrollbar-gutter:auto}
  .documents-journal .journal-net-summary{
    position:sticky;top:var(--journal-banner-height,0px);z-index:2;
    scroll-margin-block-start:var(--journal-banner-height,0px);
    box-shadow:0 4px 0 #fff
  }
  .documents-journal .journal-row{
    scroll-margin-block-start:calc(var(--journal-banner-height,0px) + 5rem)
  }
}
