/* One header for the company, everyday work, and the signed-in person. */
.batch-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}
.pdf-preview{width:100%;height:58vh;border:1px solid var(--line);border-radius:6px;margin-top:18px}
.item-line.with-vat:has([name=itemTaxBasis]){grid-template-columns:minmax(140px,2fr) minmax(70px,.6fr) minmax(100px,1fr) minmax(100px,1fr) 30px}
.item-line.with-vat [name=itemTaxBasis]{min-width:0}
@media(max-width:600px){.batch-controls{padding:14px;gap:9px}.batch-controls .btn{font-size:11px}.pdf-preview{height:48vh}.item-line.with-vat:has([name=itemTaxBasis]){grid-template-columns:1fr 1fr}}
.app-shell.horizontal-shell{padding-left:0}
.workspace-header{position:sticky;top:0;z-index:40;background:#111a25;border-bottom:1px solid #283544;box-shadow:0 3px 16px #10223809;color:#fff}
.header-inner{position:relative;max-width:1420px;min-height:76px;margin:0 auto;padding:0 42px;display:grid;grid-template-columns:auto minmax(0,1fr) 218px;align-items:center;gap:32px}
.header-wordmark{display:inline-flex;align-items:center;justify-content:flex-start;min-height:44px;width:104px;padding:0;border:0;border-radius:5px;background:transparent;flex:none}
.header-brand-logo{display:block;width:104px;height:42px;overflow:hidden}
.header-brand-logo svg{width:100%;height:100%;mix-blend-mode:screen;filter:contrast(1.35) saturate(1.05)}
.header-wordmark:hover .header-brand-logo{opacity:.86}
.header-navigation{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0}
.header-nav-item{position:relative;border:1px solid transparent;border-radius:8px;background:transparent;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 13px;color:#a5b4c5;font-weight:700;font-size:15px;white-space:nowrap}
.header-nav-item svg{width:18px;height:18px;color:#7893ad}
.header-nav-item:hover{color:#fff;background:#ffffff08}
.header-nav-item.active{background:#0d83f1;border-color:#1894ff;color:#fff;box-shadow:0 4px 13px #0078ee1c}
.header-nav-item.active svg{color:#e0f2ff}
.header-nav-item.nav-more{padding-left:15px;padding-right:11px;gap:10px}
.nav-more>svg{width:13px;height:13px}
.nav-more[aria-expanded=true]{border-color:#4c6a87;background:#26384b;color:#fff}
.user-trigger{min-width:0;width:100%;min-height:52px;display:flex;align-items:center;gap:12px;border:1px solid #ffffff16;border-radius:9px;background:#ffffff04;padding:7px 12px;text-align:left;color:#fff}
.user-trigger:hover,.user-trigger[aria-expanded=true]{background:#ffffff0a;border-color:#ffffff35}
.header-avatar{position:relative;display:block;flex:none}
.header-avatar .avatar{height:34px;width:34px;background:#233d55;color:#b7dcff;font-size:11px;overflow:visible}
.header-avatar .avatar:has(img){overflow:hidden}
.user-label{display:block;min-width:0;flex:1}
.user-label b{display:block;font-size:12px;font-weight:800;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-label small{display:block;font-size:11px;line-height:1.55;color:#8fb0cf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-trigger>svg{width:13px;height:13px;color:#7c9ab5;flex:none}
.user-alert-count{position:absolute;right:-4px;top:-4px;display:flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 3px;border:2px solid #111a25;border-radius:12px;background:#efa64b;color:#1c2936;font-size:8px;line-height:1;font-weight:800}
.mobile-nav-toggle{display:none}
.horizontal-shell>.content{max-width:1420px;padding:36px 42px 24px}
#header-dropdown{position:absolute;top:calc(100% + 9px);right:42px;z-index:65}
.header-popover{width:298px;padding:9px;background:#fff;color:var(--ink);border:1px solid #e1e8ef;border-radius:12px;box-shadow:0 14px 45px #0e263b22,0 2px 8px #12253908;max-height:calc(100dvh - 110px);overflow:auto;text-align:left}
.header-popover nav{display:grid;gap:2px}
.popover-identity{display:flex;align-items:center;gap:12px;padding:13px 12px 17px;margin:0 0 6px;border-bottom:1px solid var(--line)}
.popover-identity>.avatar{width:36px;height:36px;background:#edf5fc;color:#39749e}
.popover-identity>div{min-width:0}
.popover-identity b{display:block;font-size:12px;overflow-wrap:anywhere}
.popover-identity small{display:block;font-size:11px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.popover-link{display:flex;align-items:center;width:100%;min-height:43px;gap:12px;padding:10px 12px;border:0;border-radius:7px;background:transparent;color:#52687b;text-align:left;font-size:12px;font-weight:600}
.popover-link>svg{width:17px;height:17px;color:#91a6b8}
.popover-link>span:first-of-type{flex:1;min-width:0}
.popover-link>.badge{font-size:9px}
.popover-link>svg:last-child:not(:first-child){width:13px;height:13px;color:#b1c0cb}
.popover-link:hover,.popover-link.current{background:#f0f7ff;color:#1179d1}
.popover-link:hover>svg,.popover-link.current>svg{color:#2388dd}
.popover-link.logout-link{color:#8c98a4}
.popover-divider{border-top:1px solid var(--line);margin:8px 3px}
.more-popover{width:215px}
.popover-caption{font-size:9px;letter-spacing:1.25px;font-weight:800;color:#a0adba;padding:9px 12px}
.mobile-popover{display:none}
.header-popover button:focus-visible{outline-offset:-2px}
@media(max-width:1200px){
  .header-inner{padding:0 28px;grid-template-columns:auto minmax(0,1fr) 204px;gap:28px;min-height:76px}
  .header-wordmark,.header-brand-logo{width:96px}
  .header-navigation{gap:2px}.header-nav-item{padding:10px 11px;font-size:14px;gap:7px}
  .header-nav-item svg{width:17px;height:17px}.user-trigger{gap:10px;padding:8px 10px}.user-label b{font-size:11px}
  .horizontal-shell>.content{padding:31px 28px 24px}#header-dropdown{right:28px}
}
@media(min-width:901px) and (max-width:1050px){
  .header-inner{padding:0 20px;gap:24px;grid-template-columns:auto minmax(0,1fr) 192px}
  .header-nav-item{padding:10px 10px}.header-nav-item>svg{display:none}.header-nav-item.nav-more>svg{display:block}
  .user-trigger{gap:9px}.header-avatar .avatar{width:31px;height:31px}.user-label b{font-size:11px}.user-label small{font-size:10px}
}
@media(max-width:900px){
  .header-inner{display:flex;min-height:72px;gap:15px;padding:0 22px}
  .header-navigation{display:none}
  .user-trigger{margin-left:auto;width:215px;flex:none}
  .mobile-nav-toggle{display:flex;align-items:center;justify-content:center;flex:none;border:1px solid #ffffff1d;border-radius:7px;background:transparent;color:#c7d8e8;width:36px;height:36px;padding:0}
  .mobile-nav-toggle:hover,.mobile-nav-toggle[aria-expanded=true]{background:#ffffff0b;border-color:#ffffff40}
  .mobile-nav-toggle svg{width:20px;height:20px}
  #header-dropdown{left:22px;right:22px;top:calc(100% + 8px)}
  .personal-popover{margin-left:auto}.mobile-popover{display:block;width:100%;max-width:370px}
  .mobile-nav-item{display:flex;align-items:center;width:100%;min-height:45px;padding:10px 13px;gap:12px;border:0;border-radius:7px;color:#5b7185;background:transparent;font-size:12px;font-weight:700;text-align:left}
  .mobile-nav-item>svg{width:18px;height:18px;color:#8ba5bb}
  .mobile-nav-item:hover{background:#f5f9fc}.mobile-nav-item.active{background:#ecf6ff;color:#0878d9}.mobile-nav-item.active svg{color:#0878d9}
  .horizontal-shell>.content{padding-top:28px}
}
@media(max-width:600px){
  .header-inner{min-height:64px;padding:0 13px;gap:11px}
  .header-wordmark{display:none}
  .user-trigger{width:auto;max-width:200px;flex:1;gap:9px;padding:7px 8px;min-height:49px;border-color:transparent;background:transparent}
  .header-avatar .avatar{height:30px;width:30px;font-size:10px}.user-label b{font-size:10px;line-height:1.7}.user-label small{font-size:10px}
  .user-trigger>svg{width:11px;height:11px}.user-alert-count{font-size:7px;min-width:15px;height:15px;right:-3px}
  .mobile-nav-toggle{width:31px;height:34px;border-color:transparent}
  #header-dropdown{left:13px;right:13px}.header-popover{max-width:100%;max-height:calc(100dvh - 98px)}
  .horizontal-shell>.content{padding:25px 19px 22px}
  .horizontal-shell .app-footer{flex-direction:column;align-items:flex-start;gap:12px;font-size:9px}.horizontal-shell .footer-links{justify-content:flex-start;gap:18px}.horizontal-shell .app-footer .text-btn{font-size:9px}
}
@media(max-width:370px){
  .header-inner{padding:0 10px;gap:7px}
  .user-trigger{gap:7px;padding:6px 4px}.header-avatar .avatar{width:27px;height:27px;font-size:9px}.user-label b{font-size:9px}.user-label small{font-size:9px}.user-trigger>svg{display:none}
  .horizontal-shell>.content{padding:22px 13px}
}
@media print{.workspace-header{display:none!important}}

/* Optional document details keep the daily forms short. */
.tax-toggle{margin:22px 0 16px;line-height:1.5}
.settings-subheading{font-size:13px;margin:26px 0 15px}
.document-party{min-width:0;overflow-wrap:anywhere}.document-party p{line-height:1.7;margin-top:4px}.document-party .registry-note{margin-top:8px;color:var(--muted)}
.document-kind{font-size:11px;color:var(--muted);margin-bottom:6px}
.document-items .document-item-name{white-space:normal;min-width:130px}
.document-items .data-table th{white-space:normal;line-height:1.5}.document-items .data-table td{padding:13px 10px}
.document-totals{margin:20px 0 0;display:grid;gap:10px;font-size:12px}.document-totals>div{display:flex;justify-content:space-between;gap:15px}.document-totals dd{font-weight:700;white-space:nowrap;margin:0}
@media print{.document-items,.tax-breakdown .data-wrap{overflow:visible}.document-items .data-table{min-width:0;width:100%}.document-party,.document-totals{break-inside:avoid}.modal.wide{width:100%}.data-table tr{break-inside:avoid}.detail-status{display:none}}
.tax-toggle input{flex:none}
#vat-preferences{padding-top:5px}
.list-more{display:flex;justify-content:center;padding:0 20px 22px}
.table-footer{flex-wrap:wrap;gap:10px}
.item-line.with-vat{grid-template-columns:minmax(110px,1fr) 60px 90px 110px 28px;align-items:end}
.with-vat .field select{padding:10px 7px;width:100%;min-width:0}
.tax-breakdown{padding:12px 0;margin-top:8px;border-top:1px solid var(--line)}
.tax-breakdown p{font-size:11px;line-height:1.8;color:var(--muted);padding:0 12px}
.tax-breakdown b{color:var(--ink)}
.expense-vat-row{display:grid;grid-template-columns:1fr 120px 1fr;gap:12px;padding:15px 0;align-items:end}
.expense-vat-row>.btn{grid-column:1/-1;justify-self:end}
.vat-overview{display:flex;align-items:center;text-align:left;width:100%;gap:16px;margin-bottom:22px;color:var(--ink);border:1px solid #dce7f0;cursor:pointer}
.vat-overview>span:nth-child(2){flex:1;min-width:0}.vat-overview b{font-size:12px}.vat-overview small{display:block;color:var(--muted);font-size:10px;line-height:1.7;margin-top:3px}.vat-overview strong{font-size:23px;white-space:nowrap}.vat-overview>svg{width:18px;height:18px;color:#8ba2b8;flex:none}.vat-overview:hover{border-color:#8bbef0}
.vat-overview.compact{margin-bottom:0;padding:17px 18px;gap:12px;background:#fbfcfe}.vat-overview.compact .tag-icon{width:32px;height:32px}.vat-overview.compact b{font-size:11px}.vat-overview.compact small{font-size:9px;line-height:1.55}.vat-overview.compact strong{font-size:17px;letter-spacing:-.3px}
.vat-totals p{display:flex;gap:20px;justify-content:space-between;font-size:12px;padding:15px 0;border-bottom:1px solid var(--line)}.vat-totals b{white-space:nowrap}
@media(max-width:1200px){.item-line.with-vat{grid-template-columns:minmax(100px,1fr) 55px 82px 100px 25px}}
@media(max-width:720px){.item-line.with-vat{grid-template-columns:1fr 1fr 1fr 28px;padding-bottom:16px;border-bottom:1px solid var(--line)}.item-line.with-vat>.field:first-child{grid-column:1/-1}.with-vat .field select{font-size:16px;min-height:42px}.with-vat .field>span{font-size:10px}.expense-vat-row{grid-template-columns:1fr 1fr}.expense-vat-row>.field:last-of-type{grid-column:1/-1}.vat-overview{gap:12px;flex-wrap:wrap}.vat-overview>.tag-icon{display:none}.vat-overview strong{font-size:20px}.vat-overview>span:nth-child(2){flex-basis:65%}}
@media(max-width:600px){.header-inner{min-height:64px}.user-trigger{max-width:none;flex:0 1 auto;margin-left:auto;gap:11px}.user-label b{font-size:12px}.user-label small{font-size:11px}.header-avatar .avatar{height:32px;width:32px}.header-popover{max-height:calc(100dvh - 86px)}}
@media(max-width:720px){.vat-overview{display:grid;grid-template-columns:1fr auto;gap:12px}.vat-overview>span:nth-child(2){grid-column:1/-1}.vat-overview strong{grid-column:1}.vat-overview>svg{grid-column:2;width:16px}.head-actions:has([data-action="export-expenses"]){flex-wrap:wrap;justify-content:flex-end}}
