/* DET CRM mobile workspace. Assets are served locally; motion explains state. */
:root{--muted:#66758a;--line:#e1e8ef;--radius:18px;--det-blue:#00a7cf;--det-gold:#d3aa40;--touch:44px;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
html{scroll-padding-top:88px}body{overflow-wrap:anywhere}img{max-width:100%}.main,.content,.topbar-heading,.header-actions,.panel,.page-header>div{min-width:0}
.det-logo{background:#000;border-radius:8px}.crm-hero .crm-hero-logo{background:#000;border-radius:16px}.login-mobile-brand .det-logo{border-radius:12px}.loading img{background:#000;border-radius:12px}
.btn{min-height:var(--touch);font-size:13px}.btn.sm,.btn.ghost{min-height:var(--touch)}.icon-button{width:var(--touch);height:var(--touch);flex-shrink:0}.btn:disabled{transform:none}
.sidebar{overflow-y:auto;overscroll-behavior:contain;padding-top:24px}.sidebar .brand{gap:12px;margin-bottom:27px;padding:0 6px}.det-logo{width:52px;height:42px;object-fit:contain;flex-shrink:0}.brand-copy{min-width:0}.brand-title{font-size:20px}.brand small{font-size:9px;letter-spacing:1.4px}.sidebar-footer{padding-top:22px}.sidebar .user>div:not(.avatar){min-width:0}.user strong{overflow-wrap:anywhere}.nav a{min-height:46px}.nav a.active{background:#1a464e;color:#9aece4;box-shadow:inset 3px 0 var(--det-blue)}.nav a.active .icon{stroke-width:2.2}
.topbar-heading{display:flex;align-items:center;gap:10px}.mobile-brand,.mobile-navigation,.nav-backdrop,.drawer-close,.login-mobile-brand{display:none}.help-trigger{gap:7px}.help-trigger .icon{width:17px;height:17px}.topbar{min-height:77px;height:auto}.content{padding-top:28px}.page-header p{font-size:13px}.panel-head p,.notice,.small{font-size:12px}.field label{font-size:12px;font-weight:600}.field small{color:var(--muted);font-size:12px}.footer{flex-wrap:wrap;gap:8px}
.connection-message{display:flex;align-items:center;gap:10px;padding:12px 24px;background:#fff3d9;color:#815a0a;font-size:13px;line-height:1.5;border-bottom:1px solid #e7d096}
.parasut-logo img{object-fit:contain;width:38px;height:30px}.parasut-logo{background:#fff1ee}.connection-hero{flex-wrap:wrap}.connection-hero>div:last-child{min-width:0}.connection-hero small{white-space:normal}.connection-hero strong{line-height:1.4}
.toast{display:flex;align-items:flex-start;gap:11px;font-size:13px}.toast-symbol{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;border-radius:50%;background:#ffffff14;color:#86ecd6}.toast.error .toast-symbol{color:#fff}.toast-symbol .icon{width:17px;height:17px}
.btn.is-saving{gap:9px}.btn.is-saving:before{content:'';width:16px;height:16px;flex:0 0 16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:det-save-spin .8s linear infinite}.btn.is-saving>.icon{display:none}
.loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:23px;min-height:100dvh;background:#f6fafb;font-size:14px}.loading img{object-fit:contain}.loading:after{content:'';width:24px;height:24px;border:2px solid #bfd8dc;border-top-color:#00a7cf;border-radius:50%;animation:det-save-spin 1s linear infinite}
@keyframes det-save-spin{to{transform:rotate(360deg)}}
.login-art .brand{gap:17px}.login-art .det-logo{width:80px;height:64px}.login-art h1{font-size:clamp(36px,3.5vw,52px)}.login-card h2{line-height:1.25}.login-card p{font-size:14px}.login-card input{min-height:48px;font-size:16px}.login-card .btn{min-height:50px;font-size:15px}.login-foot{font-size:12px}.login-mobile-brand{align-items:center;gap:18px}.login-mobile-brand span{font-size:12px;color:var(--muted);font-weight:600}
#modal{max-width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overscroll-behavior:contain}#modal .form-error{line-height:1.6}.form-error:empty{display:none}#modal .form-actions{position:sticky;bottom:-26px;padding-top:14px;padding-bottom:14px;background:#fff;z-index:3;border-top:1px solid var(--line);margin-top:22px}.modal-head .icon-button{margin:-6px -8px 0 8px}.field input,.field select,.field textarea{min-height:46px}.field textarea{line-height:1.6}.check{min-height:44px;align-items:center}.check input[type=checkbox]{width:20px;height:20px;min-height:20px;flex-shrink:0;accent-color:var(--green)}
@media(max-width:1050px){.band-numbers{min-width:0}.band-numbers .val{font-size:22px}.summary-band h3{line-height:1.5}.summary-band p{font-size:12px}.detail-info dd{overflow-wrap:anywhere}}
@media(max-width:740px){
 html{scroll-padding-top:80px}.main{margin-left:0}.topbar{position:sticky;top:0;z-index:25;min-height:68px;padding:8px 14px;gap:10px;background:#fffffff2;backdrop-filter:blur(12px);padding-top:max(8px,env(safe-area-inset-top))}.topbar-heading{gap:8px;flex:1}.mobile-toggle{display:none}.mobile-brand{display:flex;align-items:center;min-height:44px;flex-shrink:0}.mobile-brand .det-logo{width:44px;height:36px}.crumb{font-size:12px;line-height:1.4;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.crumb b{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:13px}.crumb .icon{display:none}.header-actions{gap:5px;flex-shrink:0}.header-password{display:none}.help-trigger{width:44px;height:44px;padding:0}.help-trigger span{display:none}.help-trigger .icon{width:21px;height:21px}.currency-select{font-size:13px;min-height:44px;padding:8px 5px;max-width:70px}
 .content{padding:22px 16px calc(104px + env(safe-area-inset-bottom));max-width:100%}.page-header{margin-bottom:20px}.page-header h1{font-size:25px;line-height:1.24;letter-spacing:-.75px}.eyebrow{letter-spacing:1.1px;font-size:10px}.page-header p{font-size:13px;line-height:1.65}.page-header .actions{gap:8px;margin-top:14px}.page-header .actions>.btn{flex:1;white-space:normal;min-width:0}.actions{gap:8px}.btn{padding:11px 13px;min-height:46px;font-size:13px;white-space:normal;text-align:center}.btn.sm{min-height:44px;font-size:12px}.btn .icon{flex-shrink:0}.icon-button{min-width:44px;min-height:44px}.stats{gap:10px}.stat{padding:16px 13px}.stat-value{font-size:clamp(16px,5.25vw,23px);white-space:normal;overflow-wrap:anywhere;line-height:1.35}.stat-label{font-size:11px;line-height:1.45}.stat-sub{font-size:11px;line-height:1.5}.stat-sub .icon{display:none}.stat-value .unit{font-size:14px}.summary-band{padding:21px}.band-numbers{gap:10px;flex-wrap:wrap}.band-numbers .val{font-size:20px;overflow-wrap:anywhere}.band-numbers .label{font-size:10px}.legend{flex-wrap:wrap}.panel-head{align-items:flex-start;flex-wrap:wrap;padding:18px 16px 14px}.panel-head h2,.panel-head h3{font-size:14px;line-height:1.4}.panel-body{padding:17px 16px}.notice{line-height:1.65;align-items:flex-start;padding:13px 14px}.notice .icon{flex-shrink:0;margin-top:1px}.footer{font-size:11px;line-height:1.6;margin-top:28px}.detail-info{grid-template-columns:1fr}.detail-total{flex-wrap:wrap;gap:12px}.detail-total .amount{font-size:22px;overflow-wrap:anywhere}.filters{gap:8px}.filter-search{min-width:0;width:100%;flex-basis:100%;font-size:16px}.filter-search input{width:100%;min-width:0;font-size:16px;min-height:44px}.filters select,.filters input[type=date]{font-size:16px;min-height:46px;min-width:0;max-width:100%;flex-basis:calc(50% - 4px)}.field input,.field select,.field textarea,.design-fields input,.design-fields select,.design-preview-tools select{font-size:16px;min-height:48px}.field textarea{min-height:118px}.form-grid{gap:17px}.form-actions{flex-wrap:wrap;gap:9px}.form-actions .btn{flex:1;min-width:0}.tabs button{min-height:46px}.panel-foot{font-size:11px;line-height:1.6;align-items:flex-start}
 .sidebar{width:min(310px,calc(100vw - 48px));max-height:100dvh;transform:translateX(-100%);padding:18px 16px calc(20px + env(safe-area-inset-bottom));transition:transform .22s cubic-bezier(.2,.8,.2,1);box-shadow:none;z-index:60}.nav-open{overflow:hidden}.nav-open .sidebar{transform:translateX(0);box-shadow:8px 0 40px #10203530}.drawer-close{display:flex;align-self:flex-end;color:#d1dcec;margin-bottom:5px}.sidebar .brand{margin-bottom:18px}.sidebar .brand .det-logo{width:57px;height:46px}.nav-backdrop{display:block;position:fixed;inset:0;z-index:59;background:#10203580;border:0;backdrop-filter:blur(3px)}.sidebar .user{padding-left:4px;padding-right:0}.sidebar .user strong{font-size:13px}.sidebar .user small{font-size:11px}.nav a{min-height:48px;font-size:14px}.sidebar .nav-section{font-size:11px}.sidebar-footer{margin-top:22px}
 .mobile-navigation{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;align-items:stretch;background:#fff;border-top:1px solid #dce6ee;box-shadow:0 -5px 24px #15314308;padding:6px 9px calc(6px + env(safe-area-inset-bottom));gap:4px}.mobile-navigation a,.mobile-navigation button{display:flex;flex:1;min-width:0;min-height:56px;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:5px 2px;color:#64768a;background:transparent;border-radius:12px;font-size:11px;font-weight:600;line-height:1.3}.mobile-navigation .icon{width:22px;height:22px}.mobile-navigation [aria-current=page]{color:#007a66;background:#eaf8f5}.mobile-navigation [aria-current=page] .icon{stroke-width:2.2}.mobile-navigation [aria-expanded=true]{color:#007a66}.mobile-navigation a:active,.mobile-navigation button:active{background:#eaf4f4}.mobile-navigation span{overflow-wrap:normal;white-space:nowrap}
 #toasts{bottom:calc(86px + env(safe-area-inset-bottom));left:12px;right:12px;max-width:none}.toast{padding:13px 15px;border-radius:14px}body:has(#modal[open]) #toasts{bottom:calc(18px + env(safe-area-inset-bottom))}
 #modal{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:0;border-radius:20px;margin:auto}.modal-head{padding:19px 17px 16px;gap:8px}.modal-head h2{font-size:21px;line-height:1.3}.modal-head p{font-size:12px;line-height:1.55}.modal-body{padding:18px 17px 22px}.modal-body .stats{grid-template-columns:1fr}.modal-body .form-actions{bottom:-22px;padding-bottom:max(14px,env(safe-area-inset-bottom));margin-left:-17px;margin-right:-17px;padding-left:17px;padding-right:17px}.connection-message{padding:12px 16px;font-size:12px}
 .login-shell{min-height:100dvh;background:linear-gradient(155deg,#f2f9fa,#fff 48%,#f1f7f5)}.login-card{max-width:460px;padding:28px 24px calc(30px + env(safe-area-inset-bottom));justify-content:center}.login-mobile-brand{display:flex;margin-bottom:34px;padding-bottom:23px;border-bottom:1px solid var(--line)}.login-mobile-brand .det-logo{width:82px;height:66px}.login-card .eyebrow{font-size:11px}.login-card h2{font-size:28px}.login-card p{font-size:14px;margin-bottom:24px}.login-foot{font-size:12px;line-height:1.75}
 .table-wrap:has(>.mobile-records){overflow:visible;padding:0 14px 14px}.mobile-records{display:block;min-width:0!important;width:100%;border-collapse:separate}.mobile-records thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.mobile-records tbody{display:grid;gap:12px}.mobile-records tbody tr{display:grid;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}.mobile-records tbody tr:hover{background:#fff}.mobile-records td{display:grid;grid-template-columns:minmax(76px,.36fr) minmax(0,1fr);align-items:start;gap:8px;min-width:0;max-width:100%;padding:11px 13px;white-space:normal;border-bottom:1px solid #edf1f5;text-align:left;font-size:13px;line-height:1.6}.mobile-records td:before{content:attr(data-label);color:var(--muted);font-size:11px;font-weight:600;line-height:1.6;padding-top:2px}.mobile-records td:last-child{border-bottom:0}.mobile-records td>*{min-width:0}.mobile-records .actions{grid-column:2;display:flex;flex-wrap:wrap}.mobile-records .actions .btn{flex:1}.mobile-records .table-label{min-width:0}.mobile-records .amount{white-space:normal}.mobile-records .table-label small{font-size:11px;line-height:1.6}.mobile-records td .btn{min-height:44px}.mobile-records .icon-button{min-width:44px}
 .design-gallery{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:10px}.design-workspace{min-width:0}.design-controls{max-height:none;overflow:visible}.design-controls summary{min-height:48px;font-size:14px}.design-preview-wrap{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.design-preview-tools .actions{width:100%}.design-preview-tools .btn{flex:1;white-space:normal}.design-preview-tools select{max-width:100%}.design-preview-foot .actions{width:100%}.design-preview-foot .btn{flex:1}.mail-filters .filter-search{min-width:0}.mail-envelope{grid-template-columns:1fr;gap:7px}.mail-envelope dd{margin:0 0 12px;overflow-wrap:anywhere}.mail-row{flex-wrap:wrap;gap:10px}.mail-row-content{flex-basis:70%}.mail-row-date{margin-left:auto}.mail-row .icon-button{margin-left:auto}.mail-attachment{min-width:0;max-width:100%;overflow-wrap:anywhere}.q-line-field input,.q-line-field select{font-size:16px;min-height:46px}.q-price-source{min-width:0}.q-actions{flex-wrap:wrap}.q-actions .btn{flex:1}.q-summary{min-width:0}.q-preview-wrap{max-width:100%;overflow-x:auto}.q-pricing-grid,.q-pricing-options{padding-left:16px;padding-right:16px;gap:13px}.q-item-tools{gap:6px}.q-item-tools button{width:44px;height:44px;min-width:44px}.quote-save-bar{bottom:calc(76px + env(safe-area-inset-bottom));padding:13px 14px;flex-wrap:wrap}.quote-save-bar .actions{width:100%}.quote-save-bar .btn{flex:1}.quote-detail-band{padding:20px 18px;flex-wrap:wrap;gap:17px}.quote-sticky-summary{position:static}
}
@media(max-width:360px){.content{padding-left:12px;padding-right:12px}.topbar{padding-left:12px;padding-right:12px}.topbar-heading{gap:6px}.mobile-brand .det-logo{width:37px;height:30px}.crumb{font-size:10px}.crumb b{font-size:12px}.page-header h1{font-size:23px}.stat{padding:14px 11px}.mobile-navigation a,.mobile-navigation button{font-size:10px}.login-card{padding-left:21px;padding-right:21px}.mobile-records td{grid-template-columns:76px minmax(0,1fr);padding-left:10px;padding-right:10px}.modal-body{padding-left:14px;padding-right:14px}}
@media(max-width:1050px){.page-header{flex-direction:column;align-items:stretch}.page-header .actions{max-width:100%;gap:9px}.page-header .actions .btn{max-width:100%;white-space:normal}.page-header>div{max-width:100%}}
@media(max-width:740px){#crm-employee,.crm-staff-select select,.q-item input,.q-item select{font-size:16px;min-height:48px}.btn.ghost,.quote-number,.quote-project-link,.quote-revisions button{min-height:44px;min-width:44px}.quote-number,.quote-project-link{display:inline-flex;align-items:center;white-space:normal;text-align:left}.design-checks label,.mail-check{min-height:44px;display:flex;align-items:center;gap:10px}.design-checks input,.mail-check input{width:20px;height:20px;flex-shrink:0;accent-color:var(--green)}}
@media(max-width:740px){.mail-filters .filter-search{flex:1 1 100%;width:100%;min-width:0;max-width:100%}.filter-search input,.mail-filters .filter-search input{flex:1;min-width:0;width:0;font-size:16px}.filter-search>.btn,.mail-filters .filter-search>.btn{flex-shrink:0;min-width:54px;min-height:44px;white-space:nowrap;font-size:13px}.mail-filters select{flex:1 1 calc(50% - 4px);min-width:0;max-width:100%}}
@media(max-width:740px){.record-cell-content{min-width:0;overflow-wrap:anywhere}.record-cell-content .actions{display:flex;flex-wrap:wrap}.record-cell-content .btn{max-width:100%}body:has(input:focus,textarea:focus,select:focus) .mobile-navigation{display:none}body:has(input:focus,textarea:focus,select:focus) .quote-save-bar{bottom:0}body:has(input:focus,textarea:focus,select:focus) #toasts{bottom:calc(16px + env(safe-area-inset-bottom))}}
@media(pointer:coarse){button,input,select,textarea{touch-action:manipulation}.field input,.field select,.field textarea{font-size:16px}}
@media(max-width:360px){.filters #quote-currency-filter,.filters #quote-status-filter{flex:1 1 100%;width:100%}}
@media(prefers-reduced-motion:reduce){.btn.is-saving:before{animation:none;border-right-color:currentColor}.sidebar,.toast,.mobile-navigation a{animation:none;transition:none}html{scroll-behavior:auto}}

/* Quote history is opt-in; the whole label is a touch target. */
.filters .quote-revision-filter{display:flex;align-items:center;gap:9px;min-height:44px;max-width:100%;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:13px;cursor:pointer}
.filters .quote-revision-filter input[type=checkbox]{width:20px;height:20px;min-width:20px;min-height:20px;flex:none;margin:0;accent-color:var(--green)}
.filters .quote-revision-filter span{line-height:1.45}
.filters .quote-revision-filter:focus-within{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:740px){.filters .quote-revision-filter{flex:1 1 100%;font-size:14px;min-height:46px;padding:0 12px}}

/* Purchase products keep quantity, tax and project assignments together. */
.invoice-allocation-tabs{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 16px}.invoice-allocation-tabs .btn{flex:1;min-width:0}.product-allocation-fieldset{border:0;padding:0;margin:0;min-width:0}.product-line-card{border:1px solid var(--line);border-radius:14px;padding:17px;margin-bottom:15px;background:#fff;min-width:0}.product-line-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.product-line-heading>div{min-width:0}.product-line-eyebrow{display:block;color:var(--muted);font-size:10px;letter-spacing:.65px;margin-bottom:5px}.product-line-heading h4{font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere}.product-line-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}.product-line-fields>.field:first-child{grid-column:1/-1}.product-line-fields>.field>span,.product-project-row>.field>span{font-size:12px;line-height:1.5;color:#556478;font-weight:600}.product-line-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-bottom:15px;margin-bottom:16px;border-bottom:1px solid var(--line)}.product-line-facts small,.product-line-total small{display:block;font-size:11px;color:var(--muted);margin-bottom:5px;line-height:1.5}.product-line-facts strong,.product-line-total strong{font-size:13px;line-height:1.5;font-variant-numeric:tabular-nums}.product-line-total{align-self:center}.product-project-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,.7fr) 44px;gap:10px;align-items:end;margin-bottom:13px}.product-project-row>.field{min-width:0}.product-project-row .icon-button{margin-bottom:1px}.product-line-status{font-size:12px;line-height:1.65;color:#9b6c24;background:#fff8eb;padding:9px 11px;border-radius:8px;margin-top:12px}.product-line-status:empty{display:none}.product-line-status.is-complete{background:#edf8f4;color:#187d69}.product-invoice-target{display:flex;flex-wrap:wrap;gap:9px 16px;font-size:12px;background:#f4f7fb;padding:13px 15px;border-radius:11px;margin-top:18px;line-height:1.6}.product-invoice-target>strong{flex-basis:100%}.product-allocation-summary{background:#f4faf8;border:1px solid #d9eae3;border-radius:12px;padding:14px 15px;margin-top:13px;font-size:12px;line-height:1.65}.product-summary-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap}.product-summary-heading .tag{white-space:normal;font-size:10px;line-height:1.4}.product-share-list{margin-top:12px}.product-share-list>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 10px;border-top:1px solid #d9eae3;padding:12px 0;font-size:12px;line-height:1.6}.product-share-list>div>strong{grid-column:1/-1}.product-share-list>div>span{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.product-allocation-summary>.help-text:last-child{margin-bottom:0}.product-no-lines{padding:0 2px}.product-allocation-fieldset:disabled input,.product-allocation-fieldset:disabled select{opacity:1;color:#526177;background:#f6f8fa}
@media(max-width:740px){.invoice-allocation-tabs .btn{font-size:12px;padding-left:8px;padding-right:8px}.product-line-card{padding:14px 12px;border-radius:12px}.product-line-fields{grid-template-columns:1fr;gap:13px}.product-line-fields>.field:first-child{grid-column:auto}.product-line-facts{gap:13px 10px}.product-line-facts strong{font-size:13px}.product-project-row{grid-template-columns:minmax(0,1fr) 44px;gap:9px;padding:12px 10px;border:1px solid #e2e9ef;background:#f9fbfc;border-radius:11px}.product-project-row>.field:first-child{grid-column:1/-1}.product-project-row .icon-button{background:#fff;border:1px solid var(--line);border-radius:9px}.product-project-row input,.product-project-row select,.product-line-fields input{font-size:16px;min-height:48px;max-width:100%}.product-line-card>.btn{width:100%}.product-allocation-summary{padding:13px 12px}.product-share-list>div{grid-template-columns:1fr;gap:3px}.product-share-list>div>strong{grid-column:auto}.product-summary-heading strong{font-size:12px}.product-invoice-target{gap:7px 13px;font-size:12px;padding:12px}.product-line-status{font-size:12px}.product-allocation-fieldset{max-width:100%}}
@media(max-width:360px){#modal .modal-body .form-actions{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}}

/* Invoice work queue and project costs share the server's exact monetary ledger. */
.invoice-list-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:-2px 0 18px;padding:14px;border:1px solid var(--line);border-radius:13px;background:#fff}.invoice-sort{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);min-width:0}.invoice-sort select{min-height:48px;min-width:160px;border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;color:var(--ink);font:inherit}.invoice-complete-filter{display:flex;align-items:center;gap:11px;min-height:48px;padding:2px 8px;cursor:pointer;color:var(--ink);font-size:13px;line-height:1.5}.invoice-complete-filter input{width:22px;height:22px;min-width:22px;margin:0;accent-color:var(--green)}.invoice-complete-filter small{display:block;color:var(--muted);font-size:11px}.invoice-list-count{margin-left:auto;color:var(--muted);font-size:12px;line-height:1.5}.invoice-complete-filter:focus-within,.invoice-sort:focus-within{outline:2px solid var(--green);outline-offset:4px;border-radius:5px}
.invoice-content-panel{border:1px solid var(--line);border-radius:13px;padding:15px;margin:16px 0 24px;background:#f8fafc;min-width:0}.invoice-content-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-bottom:12px}.invoice-content-heading h3{font-size:14px;line-height:1.5;margin:0}.invoice-content-panel .notice{margin-bottom:10px}.invoice-content-panel .help-text{margin-bottom:0;font-size:12px;line-height:1.6}.invoice-content-scroll{max-height:350px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:10px;background:#fff}.invoice-content-table{font-size:12px}.invoice-content-table th{position:sticky;top:0;z-index:1}.invoice-content-table td{padding:12px 10px}.invoice-content-table td:not(:first-child){font-variant-numeric:tabular-nums}.invoice-content-table td:first-child{white-space:normal;min-width:140px}.invoice-content-table .cell-main{font-size:12px;line-height:1.55}.invoice-source-action{display:flex;margin-top:13px}.invoice-source-action .btn{min-height:48px}.project-cost-panel{margin:0 0 21px}.project-cost-table .cell-sub{line-height:1.6}.project-cost-table .tag{white-space:normal;line-height:1.45}.project-cost-table .btn{min-height:48px}.project-cost-table td:first-child{max-width:310px;white-space:normal}.project-cost-table td:nth-child(3){max-width:260px;white-space:normal}
.allocation-conflict{padding:15px;margin:0 0 20px;border:1px solid #dfb56d;border-radius:12px;background:#fff8e9;line-height:1.65;font-size:13px;color:#704e14}.allocation-conflict p{margin:8px 0 12px}.allocation-conflict .btn{min-height:48px;max-width:100%}.allocation-conflict-preview{padding-top:15px;margin-top:15px;border-top:1px solid #e1c68f}.allocation-conflict-preview h4{font-size:14px;margin:0}.allocation-conflict-preview .invoice-content-panel{background:#fffdf7;margin-bottom:12px}.allocation-conflict-preview .invoice-content-heading h3{font-size:13px}
@media(max-width:740px){.invoice-list-tools{padding:12px;gap:10px}.invoice-sort{width:100%;align-items:stretch;flex-direction:column;gap:5px}.invoice-sort select{width:100%;max-width:100%;font-size:16px;min-height:48px}.invoice-complete-filter{padding:0;min-height:52px;width:100%;font-size:13px}.invoice-complete-filter small{font-size:11px}.invoice-list-count{margin-left:0;font-size:12px}.invoice-content-panel{padding:12px;margin-bottom:21px}.invoice-content-scroll{max-height:320px}.invoice-content-scroll .table-wrap:has(>.mobile-records){padding:9px}.invoice-content-table.mobile-records td:first-child{min-width:0}.invoice-content-table.mobile-records td{padding:8px 9px;font-size:12px}.invoice-content-table.mobile-records tbody{gap:9px}.invoice-content-table.mobile-records th{position:absolute}.invoice-source-action .btn{width:100%;font-size:12px}.project-cost-table.mobile-records td:first-child,.project-cost-table.mobile-records td:nth-child(3){max-width:100%}.allocation-conflict{padding:12px;font-size:12px}.allocation-conflict .btn{width:100%;font-size:12px}.invoice-content-heading .tag{font-size:10px}.allocation-conflict-preview p{font-size:12px}}
@media(max-width:740px){.allocation-row{grid-template-columns:minmax(0,1fr) 80px 44px;gap:8px}.allocation-row input,.allocation-row select{font-size:16px;min-height:48px;max-width:100%;min-width:0}.allocation-row .icon-button{min-height:48px}}
@media(max-width:740px){#modal:has(#invoice-distribution)>.modal-body>.detail-info{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}#modal:has(#invoice-distribution)>.modal-body>.detail-info strong{font-size:12px;line-height:1.65}#modal:has(#invoice-distribution)>.modal-body>.detail-info small{font-size:10px;line-height:1.6}}
