:root{--ink:#192522;--ink-soft:#51615c;--muted:#899590;--line:#e9ede9;--canvas:#f5f7f4;--white:#fff;--green:#1b5e4b;--green-dark:#144b3c;--mint:#e7f2ec;--serif:"Montserrat",sans-serif;--sans:"Montserrat",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font-family:var(--sans);font-size:15px;-webkit-font-smoothing:antialiased}.app-shell{min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);width:248px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:25px 17px 16px;z-index:5}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);padding:0 9px 26px}.brand-mark{height:35px;width:35px;border-radius:11px;background:transparent;display:grid;place-items:center;box-shadow:0 4px 10px #164e3e25}.brand-mark{overflow:hidden}.brand-mark img{display:block;width:100%;height:100%;object-fit:cover}.brand-mark svg{width:28px;height:28px;fill:#e6c780}.brand-name{font:800 17px var(--serif);letter-spacing:.6px;line-height:1.05}.brand-name span{display:block;font:700 9px var(--sans);letter-spacing:2.1px;color:#8c9b94;margin-top:4px}.workspace-switch{display:flex;align-items:center;gap:10px;padding:10px 9px;background:#f7f8f6;border:1px solid #eff1ee;border-radius:11px;margin-bottom:30px}.workspace-avatar{height:33px;width:33px;display:grid;place-items:center;border-radius:9px;background:#e5eee9;color:var(--green);font:700 15px var(--serif)}.workspace-info{display:grid;gap:3px;flex:1}.workspace-info b,.profile b{font-size:12.5px;font-weight:700}.workspace-info small,.profile small{font-size:11.5px;color:var(--muted)}.chevron{font-size:16px;color:#929c97}.nav-label{font-size:10.5px;letter-spacing:1.15px;font-weight:700;color:#a2aaa6;padding:0 10px;margin-bottom:9px}.nav-label-second{margin-top:29px}.nav-menu{display:grid;gap:3px}.nav-item{height:39px;display:flex;align-items:center;gap:11px;padding:0 10px;border-radius:8px;text-decoration:none;color:#75817b;font-size:13.5px;font-weight:500;position:relative}.nav-item:hover{background:#f6f8f5;color:var(--ink)}.nav-item.active{background:#eaf2ed;color:var(--green);font-weight:700}.nav-icon{width:17px;font-size:17px;text-align:center;color:#89958f;line-height:1}.active .nav-icon{color:var(--green)}.nav-count{margin-left:auto;font-size:11.5px;background:#d9e9df;color:var(--green);padding:3px 7px;border-radius:20px;font-weight:700}.sidebar-bottom{margin-top:auto}.connection-card{padding:11px 9px;margin-bottom:12px;background:#f8faf8;border:1px solid #edf1ed;border-radius:9px;display:flex;align-items:center;gap:8px}.connection-dot{width:7px;height:7px;flex:none;border-radius:50%;background:#d6a347;box-shadow:0 0 0 3px #f8efd9}.connection-card span:nth-child(2){display:grid;gap:4px;flex:1}.connection-card b{font-size:11.5px}.connection-card small{font-size:10.5px;color:#9aa39e}.arrow{color:#9ca7a1}.sidebar-bottom>.nav-item{margin-bottom:12px}.profile{border-top:1px solid var(--line);padding:17px 3px 0;display:flex;align-items:center;gap:9px}.profile-avatar{width:31px;height:31px;display:grid;place-items:center;background:#eee7d9;color:#76603a;border-radius:50%;font-size:13.5px;font-weight:700}.profile div:nth-child(2){display:grid;gap:4px;flex:1}.more{font-weight:700;color:#8c9690}.main-content{margin-left:248px;min-height:100vh}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 47px}.breadcrumb{display:flex;gap:10px;align-items:center;color:#99a29d;font-size:12.5px}.breadcrumb b{font-weight:600;color:#46534e}.crumb-slash{color:#c2cac5}.top-actions{display:flex;align-items:center;gap:16px}.icon-button{border:0;background:transparent;font-size:19px;color:#64716a;position:relative;cursor:pointer}.icon-button i{position:absolute;width:5px;height:5px;border-radius:50%;background:#c48b3d;top:1px;right:1px;border:1px solid white}.top-divider{height:19px;width:1px;background:var(--line)}.today{font-size:11.5px;color:#89948e}.page-content{max-width:1400px;margin:auto;padding:37px 47px 24px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:25px}.eyebrow{display:flex;align-items:center;gap:8px;color:#8d9a93;font-size:10.5px;letter-spacing:1.35px;font-weight:700}.eyebrow-line{height:1px;width:15px;background:#b4985f}h1,h2,p{margin:0}.page-heading h1{font:700 30px var(--serif);letter-spacing:-1.1px;margin:9px 0 4px}.subtitle{font-size:13.5px;color:#87928c}.button{height:39px;border-radius:8px;border:1px solid transparent;padding:0 15px;font:600 12.5px var(--sans);cursor:pointer;transition:.15s ease;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.button-primary{background:var(--green);color:#fff;box-shadow:0 3px 7px #164e3e20}.button-primary:hover{background:var(--green-dark);transform:translateY(-1px)}.button-secondary{background:#fff;border-color:#e4e9e5;color:#53615a}.button-danger{background:#fff5f3;border-color:#f2d7d2;color:#a34234}.button-danger:hover{background:#ffebe7}.plus{font-size:17px;font-weight:400}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:25px}.stat-card{position:relative;overflow:hidden;min-height:142px;border-radius:11px;background:#fff;border:1px solid #edf0ec;padding:16px 17px 13px;box-shadow:0 3px 12px #19252204}.stat-card-sage{background:#f1f6f1}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#78847e;font-size:11.5px}.stat-icon{width:23px;height:23px;border-radius:7px;display:grid;place-items:center;font-size:12.5px}.green-icon{background:#e8f3ec;color:#4d8a68}.amber-icon{background:#faf1df;color:#bd8b37}.blue-icon{background:#edf2fa;color:#6684bd}.sage-icon{background:#e2ede5;color:#47715a}.stat-value{font:700 21px var(--serif);letter-spacing:-.6px;margin-top:10px}.stat-foot{display:flex;gap:6px;align-items:center;margin-top:5px;color:#a1aaa5;font-size:10.5px}.trend{color:#4c9169;font-weight:700}.muted-strong{color:#63716a;font-weight:600}.sparkline{height:30px;position:absolute;bottom:5px;left:17px;right:0;opacity:.85}.sparkline svg{width:100%;height:100%;overflow:visible}.sparkline path{fill:none;stroke:#78a88a;stroke-width:1.5}.stat-progress{height:4px;background:#f0f2ee;border-radius:9px;margin-top:15px;overflow:hidden}.stat-progress span{display:block;height:100%;background:#d8aa53;border-radius:9px}.progress-caption{display:flex;justify-content:space-between;margin-top:6px;color:#a0a9a3;font-size:9px}.mini-bars{position:absolute;bottom:0;right:16px;height:45px;display:flex;align-items:flex-end;gap:4px}.mini-bars i{width:8px;border-radius:3px 3px 0 0;background:#dce9e0}.mini-bars i:nth-last-child(-n+4){background:#b9d3c1}.avatar-stack{display:flex;align-items:center;margin-top:12px}.avatar-stack span{height:20px;width:20px;border-radius:50%;border:2px solid #f1f6f1;background:#e4ebe6;color:#4a6655;font-size:8px;display:grid;place-items:center;margin-right:-5px;font-weight:700}.avatar-stack span:nth-child(2){background:#f0e4d7;color:#997749}.avatar-stack span:nth-child(3){background:#e4e8f1;color:#627393}.avatar-stack span:nth-child(4){background:#dce9df;color:#447359;width:26px}.avatar-stack small{margin-left:10px;color:#89968e;font-size:9px}.work-panel{border-radius:11px;background:#fff;border:1px solid #edf0ec;box-shadow:0 3px 12px #19252204}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:19px 21px 15px}.panel-heading h2{font:700 16px var(--serif);letter-spacing:-.2px}.panel-heading p{font-size:11.5px;color:#929c96;margin-top:5px}.text-button{background:none;border:0;color:var(--green);font:600 11.5px var(--sans);cursor:pointer}.text-button span{font-size:16px;margin-left:4px}.filter-row{display:flex;gap:8px;padding:0 21px 14px}.search-box{height:34px;border:1px solid #e8ece8;border-radius:7px;display:flex;align-items:center;gap:7px;padding:0 10px;flex:1;max-width:350px}.search-icon{font-size:19px;color:#9aa49e;transform:rotate(-20deg)}.search-box input{min-width:0;width:100%;border:0;outline:0;color:#415048;font:11.5px var(--sans);background:transparent}.search-box input::placeholder{color:#a9b1ac}.filter-button{height:34px;display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid #e8ece8;border-radius:7px;background:white;color:#68756e;font:11.5px var(--sans);cursor:pointer}.filter-symbol{font-size:14.5px;color:#89968f}.filter-button .chevron{font-size:13.5px;margin-left:3px}.icon-filter{width:35px;justify-content:center;font-size:17px;color:#76847b;padding:0}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:710px}thead{background:#fafbfa}th{height:35px;color:#9ca6a0;font-size:9px;letter-spacing:.8px;font-weight:700;text-align:left;white-space:nowrap}th:first-child,td:first-child{padding-left:21px;width:42px}th:last-child,td:last-child{padding-right:19px;width:42px}td{height:59px;border-top:1px solid #f0f2ef;color:#5f6c65;font-size:11.5px;white-space:nowrap}tbody tr:hover{background:#fbfcfb}.check-col input,.row-check{appearance:none;width:14px;height:14px;border:1px solid #d7ded9;border-radius:4px;background:#fff;cursor:pointer;vertical-align:middle;position:relative}.check-col input:checked,.row-check:checked{background:var(--green);border-color:var(--green)}.check-col input:checked:after,.row-check:checked:after{content:"✓";font-size:11.5px;color:#fff;position:absolute;top:-1px;left:2px}.client-cell{display:flex;align-items:center;gap:10px}.client-logo{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;color:#526a5b;background:#e9efe9;font:700 10.5px var(--serif);flex:none}.client-logo.gold{background:#f3ecdd;color:#907441}.client-logo.blue{background:#e9edf5;color:#697a9d}.client-logo.rose{background:#f5e9e4;color:#a36957}.client-logo.violet{background:#eee9f4;color:#80699a}.client-name{display:grid;gap:4px}.client-name b{font-size:11.5px;font-weight:600;color:#36443d}.client-name small{font-size:9px;color:#a1aaa5}.service-cell{display:grid;gap:4px}.service-cell b{font-size:10.5px;color:#53615a;font-weight:500}.service-cell small{font-size:9px;color:#a2aaa5}.amount{font-weight:700;color:#35443c;font-size:11.5px}.status-pill{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:20px;font-size:9px;font-weight:600}.status-pill:before{content:"";height:5px;width:5px;background:currentColor;border-radius:50%}.status-paid{background:#edf5ef;color:#548263}.status-pending{background:#fbf3e3;color:#b18743}.status-draft{background:#f0f2f1;color:#7e8983}.row-menu{border:0;background:transparent;color:#9aa49d;font-size:17px;cursor:pointer;padding:3px}.empty-state{text-align:center;padding:30px;color:#929c96;font-size:12.5px}.hidden{display:none!important}.table-footer{height:54px;border-top:1px solid #eef1ee;display:flex;align-items:center;justify-content:space-between;padding:0 20px;color:#9aa49e;font-size:10.5px}.pagination{display:flex;align-items:center;gap:4px}.pagination button{height:25px;min-width:25px;border:1px solid transparent;background:transparent;border-radius:5px;color:#75817a;font:11.5px var(--sans);cursor:pointer}.pagination button:disabled{color:#c2c9c4}.pagination .active-page{background:#eaf2ed;color:var(--green);font-weight:700}.pagination span{padding:0 3px}.page-footer{display:flex;justify-content:space-between;color:#a5ada8;font-size:10.5px;padding:17px 2px}.footer-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#78a987;margin-right:4px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#20362d;color:#fff;padding:11px 15px;border-radius:9px;display:flex;align-items:center;gap:9px;font-size:12.5px;box-shadow:0 8px 30px #15271f33;opacity:0;pointer-events:none;transition:.22s;z-index:30}.toast.show{opacity:1;transform:translate(-50%,0)}.toast-check{height:18px;width:18px;display:grid;place-items:center;border-radius:50%;background:#39785b;color:#fff;font-size:11.5px}.modal-backdrop{position:fixed;inset:0;background:#17251f66;backdrop-filter:blur(3px);display:grid;place-items:center;padding:20px;z-index:20}.invoice-modal{position:relative;width:min(100%,430px);background:#fff;border-radius:16px;padding:30px;box-shadow:0 20px 80px #14221b38;animation:modalIn .18s ease-out}@keyframes modalIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.modal-close{position:absolute;right:17px;top:14px;border:0;background:transparent;color:#85918a;font-size:24px;cursor:pointer}.modal-icon{height:38px;width:38px;display:grid;place-items:center;border-radius:11px;background:#eaf2ed;color:var(--green);font-size:17px;margin-bottom:18px}.invoice-modal h2{font:700 22px var(--serif);letter-spacing:-.5px;margin-top:10px}.modal-description{font-size:12.5px;line-height:1.6;color:#849089;margin-top:7px}.modal-summary{margin-top:22px;border:1px solid #edf0ed;border-radius:10px;padding:0 13px}.modal-summary div{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-bottom:1px solid #f0f2ef;font-size:11.5px;color:#85918a}.modal-summary div:last-child{border:0}.modal-summary b{color:#394840;font-size:12.5px}.modal-summary div:last-child b{font-size:15px;color:var(--green)}.modal-note{display:flex;gap:9px;align-items:flex-start;background:#f7f8f4;border-radius:8px;padding:10px;margin-top:13px;color:#818c85;font-size:10.5px;line-height:1.55}.modal-note>span:first-child{height:14px;width:14px;flex:none;border-radius:50%;display:grid;place-items:center;background:#e5ebe6;color:#668171;font-size:10.5px;font-weight:700}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.modal-actions .button{height:37px}.modal-actions .button-primary{padding:0 13px}@media(max-width:1120px){.sidebar{width:215px}.main-content{margin-left:215px}.page-content{padding:30px 27px 20px}.topbar{padding:0 27px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.sidebar{width:65px;padding:20px 9px 12px;align-items:center}.brand{padding:0 0 25px}.brand-name,.workspace-switch,.nav-label,.nav-item:not(.active),.nav-item.active{font-size:0}.nav-item{width:44px;justify-content:center;padding:0}.nav-icon{font-size:17px}.nav-count,.connection-card,.profile div:nth-child(2),.more{display:none}.nav-menu{width:100%;justify-items:center}.nav-label-second{display:none}.sidebar-bottom{width:100%;display:grid;justify-items:center}.sidebar-bottom>.nav-item{display:flex;font-size:0}.profile{width:100%;justify-content:center}.main-content{margin-left:65px}.topbar{height:56px;padding:0 16px}.today{display:none}.page-content{padding:24px 15px}.page-heading{align-items:flex-start;gap:15px}.page-heading h1{font-size:25px}.subtitle{font-size:11.5px;max-width:210px;line-height:1.5}.page-heading>.button{font-size:0;width:39px;justify-content:center;padding:0}.page-heading .plus{font-size:18px}.stats-grid{gap:8px;margin-bottom:15px}.stat-card{min-height:128px;padding:13px 12px}.stat-top{font-size:10.5px}.stat-value{font-size:17px}.stat-foot{font-size:9px;flex-wrap:wrap}.panel-heading{padding:16px 14px 13px}.panel-heading h2{font-size:14.5px}.panel-heading p{max-width:230px;line-height:1.5}.filter-row{padding:0 13px 12px;gap:5px;flex-wrap:wrap}.search-box{max-width:none;flex-basis:100%}.filter-button{font-size:10.5px;padding:0 7px;gap:5px}.status-filter{flex:1;justify-content:space-between}.table-footer{padding:0 12px}.pagination{gap:0}.pagination button{min-width:22px}.page-footer{font-size:9px}.avatar-stack small{display:none}}@media(max-width:390px){.stats-grid{grid-template-columns:1fr 1fr}.stat-card{min-height:120px}.filter-button{flex:1}.icon-filter{flex:none}}

/* QAZYNA theme and directory styling */
:root{--canvas:#f3f6f2;--ink:#1b2822;--ink-soft:#52645a;--muted:#8b9991;--line:#e1e9e2;--white:#fff;--green:#14563f;--green-dark:#0e4633;--mint:#e5f0e7}
.theme-toggle{height:32px;padding:0 10px;display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink-soft);font:600 11.5px var(--sans);cursor:pointer}.theme-icon{font-size:16px;color:#a17c3c}
.demo-notice,.import-banner{display:flex;align-items:center;gap:10px;margin:0 0 19px;padding:11px 13px;border:1px solid #dce8dd;border-radius:9px;background:#edf5ed;color:#4e6255;font-size:11.5px;line-height:1.5}.notice-icon,.import-banner-icon{flex:none;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#d9e9d9;color:#3e7453;font-weight:700}.notice-link{margin-left:auto;border:0;background:transparent;color:var(--green);font:700 11.5px var(--sans);cursor:pointer;white-space:nowrap}.import-banner>div{display:grid;gap:3px;flex:1}.import-banner small{color:#77857c;font-size:10.5px}.local-tag{margin-left:auto;padding:5px 7px;border:1px solid #d6e3d8;border-radius:20px;color:#587760;font-size:9px;letter-spacing:.5px;white-space:nowrap}.type-filter-label{display:flex;align-items:center;gap:8px;padding-left:6px;color:#849088;font-size:11.5px}.type-filter{height:34px;min-width:90px;padding:0 9px;border:1px solid #e8ece8;border-radius:7px;background:var(--white);color:var(--ink-soft);font:11.5px var(--sans)}.tax-id{font-size:11.5px;color:var(--ink-soft);font-variant-numeric:tabular-nums}.type-pill{display:inline-flex;padding:4px 7px;border-radius:20px;background:#e9f1ea;color:#38684c;font-size:10.5px;font-weight:700}.counterparty-state{font-size:10.5px;color:#939d96}.counterparty-state.is-added{color:#37734e;font-weight:700}.table-footnote{color:#9aa49d;font-size:10.5px}.counterparty-table{min-width:760px}.counterparty-table td{padding-top:10px;padding-bottom:10px}
[data-theme="dark"]{--canvas:#0d211a;--ink:#eff5ef;--ink-soft:#c1d0c5;--muted:#91a699;--line:#294439;--white:#142d23;--green:#a8cfaa;--green-dark:#b9dbb9;--mint:#1d3b2d;color-scheme:dark}
[data-theme="dark"] body{background:var(--canvas);color:var(--ink)}[data-theme="dark"] .sidebar,[data-theme="dark"] .topbar{background:#10271e;border-color:#294439}[data-theme="dark"] .brand{color:#f2f6ef}[data-theme="dark"] .brand-mark{background:transparent;box-shadow:none}[data-theme="dark"] .brand-mark img{filter:brightness(0) invert(1)}[data-theme="dark"] .brand-mark svg{fill:#174c38}[data-theme="dark"] .workspace-switch,[data-theme="dark"] .connection-card{background:#183429;border-color:#294439}[data-theme="dark"] .workspace-avatar{background:#244635;color:#d0e6cf}[data-theme="dark"] .nav-item{color:#a6b8aa}[data-theme="dark"] .nav-item:hover,[data-theme="dark"] .nav-item.active{background:#234433;color:#e6f2e5}[data-theme="dark"] .nav-icon,[data-theme="dark"] .active .nav-icon{color:#b9d8ba}[data-theme="dark"] .nav-count{background:#355941;color:#ddeddb}[data-theme="dark"] .breadcrumb{color:#9bad9f}[data-theme="dark"] .breadcrumb b{color:#ecf4ed}[data-theme="dark"] .button-secondary,[data-theme="dark"] .filter-button,[data-theme="dark"] .search-box,[data-theme="dark"] .type-filter,[data-theme="dark"] .theme-toggle{background:#183429;border-color:#355344;color:#d8e5d9}[data-theme="dark"] .stat-card,[data-theme="dark"] .work-panel,[data-theme="dark"] .invoice-modal{background:#142d23;border-color:#294439;box-shadow:0 8px 24px #06140e44}[data-theme="dark"] .stat-card-sage{background:#19382a}[data-theme="dark"] .stat-top,[data-theme="dark"] .panel-heading p,[data-theme="dark"] .subtitle,[data-theme="dark"] .today{color:#a2b5a7}[data-theme="dark"] .stat-value,[data-theme="dark"] .panel-heading h2,[data-theme="dark"] .page-heading h1{color:#f2f6f1}[data-theme="dark"] .stat-foot,[data-theme="dark"] .progress-caption,[data-theme="dark"] .page-footer{color:#91a497}[data-theme="dark"] .table-wrap thead{background:#19362a}[data-theme="dark"] th{color:#a3b6a8;border-color:#2a4638}[data-theme="dark"] td{border-color:#263f33}[data-theme="dark"] tbody tr:hover{background:#19352a}[data-theme="dark"] .client-name b,[data-theme="dark"] .service-cell b,[data-theme="dark"] .amount{color:#e4eee5}[data-theme="dark"] .client-name small,[data-theme="dark"] .service-cell small{color:#9caf9f}[data-theme="dark"] .search-box input{color:#e4eee5}[data-theme="dark"] .demo-notice,[data-theme="dark"] .import-banner{background:#1b3a2b;border-color:#345541;color:#d0e1d1}[data-theme="dark"] .import-banner small,[data-theme="dark"] .local-tag{color:#a6c3a8}[data-theme="dark"] .local-tag{border-color:#41624a}[data-theme="dark"] .type-pill{background:#294a34;color:#cee6cd}[data-theme="dark"] .counterparty-state.is-added{color:#a9d5ae}[data-theme="dark"] .modal-summary,[data-theme="dark"] .modal-summary div{border-color:#2a4638}[data-theme="dark"] .modal-summary div,[data-theme="dark"] .modal-description,[data-theme="dark"] .modal-note{color:#a4b6a8}[data-theme="dark"] .modal-summary b{color:#e6efe6}[data-theme="dark"] .modal-note{background:#1b382b}[data-theme="dark"] .modal-backdrop{background:#020c08bd}[data-theme="dark"] .theme-icon{color:#e1c875}[data-theme="dark"] .pagination button{color:#b7c8ba}[data-theme="dark"] .pagination .active-page{background:#294a34;color:#d6ecd4}[data-theme="dark"] .status-draft{background:#2b3a32;color:#b4c2b8}[data-theme="dark"] .status-paid{background:#203d2b;color:#a8d2ad}[data-theme="dark"] .status-pending{background:#473b25;color:#e3c17d}
@media(max-width:760px){.theme-label{display:none}.theme-toggle{width:33px;justify-content:center;padding:0}.demo-notice{align-items:flex-start;flex-wrap:wrap}.notice-link{margin-left:30px}.local-tag{display:none}.type-filter-label{flex:1}.counterparty-table{min-width:700px}}.brand-name{letter-spacing:.9px}.brand-name span{letter-spacing:2.3px;color:#71857a}[data-theme="dark"] .brand-mark svg path,[data-theme="dark"] .brand-mark svg circle{stroke:#174c38}
[data-theme="dark"] .main-content,[data-theme="dark"] .page-content{background:var(--canvas)}[data-theme="dark"] .profile b,[data-theme="dark"] .profile small,[data-theme="dark"] .workspace-info b{color:#e6efe6}[data-theme="dark"] .connection-card b{color:#e6efe6}[data-theme="dark"] .connection-card small{color:#a4b6a8}

/* Authentication screen */
.auth-screen{min-height:100vh;display:grid;grid-template-columns:minmax(380px,1fr) minmax(430px,.92fr);background:#fff;color:#183027;font-family:var(--sans)}.auth-art{position:relative;overflow:hidden;min-height:100vh;padding:44px clamp(36px,7vw,110px);display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(ellipse at 75% 22%,#215b43 0,transparent 42%),linear-gradient(145deg,#123c2d,#09271d 72%);color:#f5f7f1}.auth-art:before,.auth-art:after{content:"";position:absolute;border:1px solid #bbd2b333;border-radius:50%;width:620px;height:620px;right:-210px;top:18%;pointer-events:none}.auth-art:after{width:450px;height:450px;right:-120px;top:27%;border-color:#bbd2b322}.auth-art-brand{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:800;letter-spacing:1.4px;z-index:1}.auth-art-brand>span:last-child{display:grid;gap:4px}.auth-art-brand small{font-size:10.5px;letter-spacing:3px;color:#a7c2aa}.auth-emblem{width:42px;height:42px;display:block;object-fit:contain;padding:2px;border:1px solid #96b89b77;border-radius:13px;background:#e4efe51c;color:#d9e7d7;font:700 24px var(--serif)}.auth-art-brand .auth-emblem{filter:brightness(0) invert(1);border:0;background:transparent}.auth-art-copy{position:relative;z-index:1;max-width:480px;margin-top:auto;margin-bottom:auto}.auth-kicker{font-size:10.5px;font-weight:700;letter-spacing:1.8px;color:#829c88}.auth-art-copy h1{font:600 clamp(38px,4.6vw,62px)/1.12 var(--serif);letter-spacing:-2px;margin:20px 0 17px}.auth-art-copy p{max-width:370px;color:#b8c9bb;font-size:15px;line-height:1.8}.auth-art-footer{position:relative;z-index:1;color:#799180;font-size:10.5px;letter-spacing:1.6px}.auth-panel{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:55px 36px 24px;position:relative}.auth-form-wrap{width:min(100%,370px)}.auth-form-wrap>.auth-kicker{display:block;margin-bottom:12px}.auth-form-wrap h2{font:700 31px var(--serif);letter-spacing:-1px;color:#1a2c23}.auth-intro{margin-top:8px;color:#839087;font-size:13.5px;line-height:1.65}.auth-form{display:grid;gap:17px;margin-top:30px}.auth-field{display:grid;gap:8px;color:#394b40;font-size:11.5px;font-weight:700}.auth-field>input,.auth-password-wrap input{height:44px;width:100%;padding:0 12px;border:1px solid #dfe7e0;border-radius:8px;outline:0;background:#fff;color:#25372d;font:13.5px var(--sans);transition:border-color .15s,box-shadow .15s}.auth-field>input:focus,.auth-password-wrap input:focus{border-color:#58886b;box-shadow:0 0 0 3px #e3eee5}.auth-field input::placeholder{color:#a9b3ab}.auth-password-wrap{position:relative;display:block}.auth-password-wrap input{padding-right:72px}.auth-password-wrap button{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#517760;font:600 10.5px var(--sans);cursor:pointer}.auth-submit{height:45px;justify-content:center;margin-top:3px;font-size:13.5px}.auth-submit:disabled{opacity:.7;cursor:wait}.auth-error{padding:10px 11px;border-radius:7px;background:#fff0ed;color:#a2463b;font-size:11.5px;line-height:1.5}.auth-footnote{margin-top:24px;text-align:center;color:#98a39b;font-size:11.5px}.auth-server-note{margin-top:10px;text-align:center;color:#9c7562;font-size:11.5px;line-height:1.5}.auth-copyright{margin-top:auto;color:#a0aaa2;font-size:10.5px}.auth-mobile-brand{display:none}.logout-button{border:0;width:100%;background:transparent;text-align:left;font-family:inherit;cursor:pointer}.logout-button:hover{background:#f6f8f5}
[data-theme="dark"] .auth-screen{background:#10271e;color:#edf4ed}[data-theme="dark"] .auth-panel{background:#10271e}[data-theme="dark"] .auth-form-wrap h2{color:#edf4ed}[data-theme="dark"] .auth-intro,[data-theme="dark"] .auth-copyright{color:#a2b5a7}[data-theme="dark"] .auth-field{color:#d5e2d7}[data-theme="dark"] .auth-field>input,[data-theme="dark"] .auth-password-wrap input{background:#183429;border-color:#355344;color:#f1f5ef}[data-theme="dark"] .auth-field>input:focus,[data-theme="dark"] .auth-password-wrap input:focus{box-shadow:0 0 0 3px #234433}[data-theme="dark"] .logout-button:hover{background:#234433}
@media(max-width:780px){.auth-screen{grid-template-columns:1fr;min-height:100vh}.auth-art{display:none}.auth-panel{min-height:100vh;padding:32px 24px}.auth-mobile-brand{display:flex;align-items:center;gap:9px;margin-bottom:46px;font-size:15px;font-weight:800;letter-spacing:1px;color:#183c2d}.auth-mobile-brand .auth-emblem{height:34px;width:34px;background:transparent;color:#164a36;border:0;border-radius:0;padding:0;filter:none;font-size:20px}.auth-mobile-brand small{align-self:flex-end;margin:0 0 2px -6px;font-size:8px;letter-spacing:2px;color:#7c9182}.auth-copyright{margin-top:55px}}
[data-theme="dark"] .logout-button:hover{background:#234433}

/* Functional workspace pages */
.workspace-switch{width:100%;text-align:left;cursor:pointer;color:inherit;font:inherit}.organization-menu{position:absolute;z-index:30;top:145px;left:17px;width:196px;background:var(--panel,#153329);border:1px solid var(--line,#28473b);border-radius:12px;padding:7px;box-shadow:0 18px 38px #00130e66}.org-option{display:flex;width:100%;flex-direction:column;gap:4px;text-align:left;background:transparent;border:0;border-radius:8px;padding:10px;color:var(--text,#e7efe9);cursor:pointer}.org-option:hover,.org-option.selected{background:#24503e}.org-option small{color:var(--muted,#9fb2a8);font-size:12.5px}.org-option.add-org{border-top:1px solid var(--line,#28473b);margin-top:5px;color:#c6d7a2}
.chart-container{padding:20px 22px 6px;min-height:245px}.chart-container svg{display:block;width:100%;height:auto;overflow:visible}.chart-gridline{stroke:var(--line,#29463a);stroke-width:1}.chart-bar{fill:#bbcc91}.chart-bar-paid{fill:#5f9c7c}.chart-label{fill:var(--muted,#9fb2a8);font:12.5px var(--sans)}.chart-legend{display:flex;justify-content:center;gap:22px;padding:4px 0 16px;color:var(--muted,#9fb2a8);font-size:13.5px}.chart-legend span{display:flex;align-items:center;gap:7px}.chart-legend i{display:inline-block;width:9px;height:9px;border-radius:3px;background:#bbcc91}.chart-legend .paid-legend i{background:#5f9c7c}
.service-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:16px}.service-card{background:var(--panel,#153329);border:1px solid var(--line,#29463a);border-radius:16px;padding:22px}.service-card-top{display:flex;justify-content:space-between;align-items:center}.service-mark{width:36px;height:36px;display:grid;place-items:center;background:#274d3d;border-radius:11px;color:#c6d7a2;font-size:20px}.service-period{font-size:12.5px;color:var(--muted,#9fb2a8)}.service-code{margin:-3px 0 9px;color:var(--muted,#9fb2a8);font-size:12.5px;font-variant-numeric:tabular-nums}.service-card h2{font-size:17px;margin:22px 0 10px}.service-price{font-size:25px;font-weight:700}.service-price small{font-size:13.5px;color:var(--muted,#9fb2a8);font-weight:400}.service-actions{display:flex;justify-content:space-between;border-top:1px solid var(--line,#29463a);margin-top:18px;padding-top:14px}.settings-panel{margin-bottom:20px}.settings-panel .editor-form{padding:0 20px 22px}.settings-panel .panel-heading{padding-bottom:4px}.editor-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:15px}.editor-form label,.auth-field{display:flex;flex-direction:column;gap:7px;color:var(--muted,#9fb2a8);font-size:13.5px}.editor-form input,.editor-form select{width:100%;height:42px;padding:0 12px;border:1px solid var(--line,#355347);border-radius:9px;background:#10271f;color:var(--text,#e7efe9);font:inherit;font-size:14.5px}.editor-form input:focus,.editor-form select:focus{outline:2px solid #7fa58b}.wide-field{grid-column:1/-1}.form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;margin-top:6px}.editor-modal{width:min(640px,calc(100vw - 34px));max-height:90vh;overflow:auto}.editor-modal .editor-form{margin-top:22px}.organization-menu.hidden{display:none}.invoice-choice-list{max-height:300px;overflow:auto;margin:18px 0}.invoice-choice{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line,#29463a);padding:12px 2px;cursor:pointer}.invoice-choice>span{flex:1;display:flex;flex-direction:column;gap:4px}.invoice-choice small,.empty-inline{font-size:12.5px;color:var(--muted,#9fb2a8)}.invoice-choice strong{font-size:13.5px}.empty-inline{padding:14px}.document-groups{display:flex;flex-direction:column;gap:10px;padding:0 20px 20px}.document-group{background:#10271f;border:1px solid var(--line,#29463a);border-radius:11px;padding:0 14px}.document-group summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;padding:15px 0;color:var(--text,#e7efe9)}.document-group summary span{font-size:13.5px;color:var(--muted,#9fb2a8)}.document-item{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line,#29463a);padding:12px 0}.document-item>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:4px;font-size:13.5px}.document-item small,.table-subtext{color:var(--muted,#9fb2a8)}.document-icon{color:#bed394;font-size:20px}.empty-state{padding:34px 20px;text-align:center;color:var(--muted,#9fb2a8)}.empty-state.hidden{display:none}.type-filter{min-width:150px;padding:10px 12px;border:1px solid var(--line,#355347);border-radius:9px;background:#10271f;color:var(--text,#e7efe9)}.table-subtext{display:block;font-size:12.5px;margin-top:4px}.row-actions{white-space:nowrap}.danger-action{color:#d98576!important}.status-toggle{border:0;border-radius:20px;padding:7px 10px;cursor:pointer;font:inherit;font-size:12.5px}.status-toggle.pending{background:#55452a;color:#f0c879}.status-toggle.paid{background:#214b37;color:#a8d5ad}.invoice-choice-list{color:var(--text,#e7efe9)}
[data-theme="light"] .service-card,[data-theme="light"] .document-group{background:#fff;color:#183027;border-color:#e0e8e1}[data-theme="light"] .editor-form input,[data-theme="light"] .editor-form select,[data-theme="light"] .type-filter{background:#fff;color:#183027;border-color:#dbe4dc}[data-theme="light"] .org-option{color:#e7efe9}
@media(max-width:760px){.editor-form{grid-template-columns:1fr}.wide-field,.form-actions{grid-column:auto}.document-item{align-items:flex-start;flex-wrap:wrap}.chart-container{padding:14px 4px}.chart-label{font-size:10.5px}}
.auth-mode-toggle{display:block;margin:17px auto 0;border:0;background:transparent;color:#35694d;font:600 13.5px var(--sans);cursor:pointer}.auth-mode-toggle:hover{text-decoration:underline}[data-theme="dark"] .auth-mode-toggle{color:#b5d0b4}

.heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.heading-actions>.button{white-space:nowrap}@media(max-width:720px){#counterpartyPage .page-heading{flex-direction:column;align-items:stretch}#counterpartyPage .heading-actions{width:100%}#counterpartyPage .heading-actions>.button{flex:1;justify-content:center}}

.taxid-check-row{display:flex;align-items:center;gap:8px}.taxid-check-row input{min-width:0;flex:1}.taxid-check-row .button{flex:none;min-height:42px;padding:0 13px}.taxpayer-check-result{display:block;min-height:16px;margin-top:6px;color:var(--muted);font-size:12.5px}.taxpayer-check-result[data-state=success]{color:#26724d}.taxpayer-check-result[data-state=error]{color:#b24636}.taxpayer-check-result[data-state=loading]{color:#9a7430}.kgd-doc-link{text-decoration:none;white-space:nowrap}@media(max-width:560px){.taxid-check-row{align-items:stretch;flex-direction:column}.taxid-check-row .button{width:100%}}
.warehouse-summary{align-self:center;color:#75817b;font-size:11.5px;margin-left:auto;padding-right:3px}.warehouse-table{min-width:760px}.warehouse-table td:nth-child(2){font-weight:600;color:var(--ink)}.stock-quantity{display:inline-flex;min-width:48px;justify-content:flex-end;padding:5px 8px;border-radius:6px;background:#f1f6f1;color:var(--green);font-weight:700;font-variant-numeric:tabular-nums}.warehouse-table td:nth-child(5){white-space:normal;min-width:150px;max-width:260px}.warehouse-table .row-actions{white-space:nowrap}@media(max-width:760px){.warehouse-summary{margin-left:0;font-size:10.5px}}
/* Warehouse table layout refinement */
.warehouse-table{width:100%;min-width:850px;table-layout:fixed}.warehouse-table th,.warehouse-table td{padding-left:16px;padding-right:12px}.warehouse-table th:first-child,.warehouse-table td:first-child{width:15%;padding-left:20px}.warehouse-table th:nth-child(2),.warehouse-table td:nth-child(2){width:23%}.warehouse-table th:nth-child(3),.warehouse-table td:nth-child(3){width:15%}.warehouse-table th:nth-child(4),.warehouse-table td:nth-child(4){width:16%}.warehouse-table th:nth-child(5),.warehouse-table td:nth-child(5){width:21%;min-width:0;max-width:none}.warehouse-table th:last-child,.warehouse-table td:last-child{width:10%;padding-right:18px}.warehouse-table td:first-child{font-variant-numeric:tabular-nums;color:var(--muted);font-size:11.5px}.warehouse-table td:nth-child(2){white-space:normal;overflow-wrap:anywhere}.warehouse-table td:nth-child(3){font-variant-numeric:tabular-nums}.warehouse-table td:nth-child(4),.warehouse-table td:nth-child(5){color:var(--ink-soft)}.stock-quantity{min-width:0;display:inline-block;padding:3px 0;background:transparent;color:var(--green);font-weight:700;text-align:left}.warehouse-table td.row-actions{white-space:nowrap}.warehouse-table td.row-actions .row-menu{margin-left:4px}
[data-theme="dark"] .warehouse-summary{color:#a2b5a7}[data-theme="dark"] .warehouse-table td:first-child{color:#91a497}[data-theme="dark"] .warehouse-table td:nth-child(2){color:#e4eee5}[data-theme="dark"] .warehouse-table td:nth-child(4),[data-theme="dark"] .warehouse-table td:nth-child(5){color:#aabbb0}[data-theme="dark"] .stock-quantity{color:#b8dcb9}
@media(max-width:760px){.warehouse-table{min-width:850px}.warehouse-table th,.warehouse-table td{padding-left:11px;padding-right:8px}}
.danger-zone{border-color:#e8c9c3}.danger-zone .panel-heading{align-items:flex-start;padding:20px 20px 14px}.danger-zone .panel-heading h2{color:#a94438}.danger-zone .panel-heading p{max-width:650px;line-height:1.6}.danger-zone-icon{width:27px;height:27px;display:grid;place-items:center;flex:none;border-radius:50%;background:#fff0ed;color:#b34d40;font-weight:800}.danger-zone-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 20px 19px;border-top:1px solid #f1e3e0;color:var(--muted,#9fb2a8);font-size:12.5px}.danger-zone-actions .button{flex:none}[data-theme="dark"] .danger-zone{border-color:#67423a}[data-theme="dark"] .danger-zone .panel-heading h2{color:#efaaa0}[data-theme="dark"] .danger-zone-icon{background:#50352f;color:#f0aaa0}[data-theme="dark"] .danger-zone-actions{border-color:#4a342f}@media(max-width:560px){.danger-zone-actions{align-items:stretch;flex-direction:column}.danger-zone-actions .button{justify-content:center}}
/* Product invoices and warehouse unit prices */
.warehouse-table th:first-child,.warehouse-table td:first-child{width:14%}.warehouse-table th:nth-child(2),.warehouse-table td:nth-child(2){width:22%}.warehouse-table th:nth-child(3),.warehouse-table td:nth-child(3){width:14%}.warehouse-table th:nth-child(4),.warehouse-table td:nth-child(4){width:15%}.warehouse-table th:nth-child(5),.warehouse-table td:nth-child(5){width:15%}.warehouse-table th:nth-child(6),.warehouse-table td:nth-child(6){width:12%}.warehouse-table th:last-child,.warehouse-table td:last-child{width:8%}.invoice-product-fields{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(110px,.7fr);gap:12px;margin:16px 0 8px;padding:14px;border:1px solid var(--line,#355347);border-radius:10px;background:var(--panel,#142d23)}.invoice-modal .auth-field>select,.invoice-modal .auth-field>input{width:100%;height:42px;padding:0 12px;border:1px solid var(--line,#355347);border-radius:8px;background:var(--panel,#142d23);color:var(--text,#e7efe9);font:inherit;font-size:13.5px}.invoice-product-info{grid-column:1/-1;color:var(--muted,#9fb2a8);font-size:12.5px;line-height:1.5}.invoice-type-field{margin:16px 0 0}.invoice-choice-list{max-height:270px;overflow-y:auto}.invoice-choice strong{white-space:nowrap}@media(max-width:560px){.invoice-product-fields{grid-template-columns:1fr}.invoice-product-info{grid-column:auto}}

/* Multi-line invoice entry and invoice detail card */
.invoice-product-fields{grid-template-columns:1fr;align-items:start}
.invoice-product-lines{display:grid;gap:9px;grid-column:1/-1}
.invoice-product-line{display:grid;grid-template-columns:minmax(0,1fr) 120px 36px;gap:9px;align-items:center}
.invoice-product-line select,.invoice-product-line input{height:40px;min-width:0;padding:0 10px;border:1px solid var(--line,#355347);border-radius:8px;background:var(--panel,#142d23);color:var(--text,#e7efe9);font:inherit;font-size:13.5px}
.invoice-product-line input{text-align:right}
.add-product-line{justify-self:start}
.invoice-number-link{padding:0;border:0;background:transparent;color:var(--green,#1b6247);font-family:inherit;font-size:13.5px;font-weight:700;cursor:pointer;text-align:left}
.invoice-number-link:hover{text-decoration:underline}
.invoice-details-modal{width:min(850px,calc(100vw - 34px));max-height:90vh;overflow:auto}
.invoice-detail-meta{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px;margin:20px 0;padding:14px;border:1px solid var(--line,#355347);border-radius:10px;background:var(--panel,#142d23)}
.invoice-detail-meta span{display:grid;gap:5px;min-width:0}
.invoice-detail-meta small{color:var(--muted,#9fb2a8);font-size:11.5px}
.invoice-detail-meta b{overflow-wrap:anywhere;font-size:13.5px}
.invoice-detail-table-wrap{overflow:auto;border:1px solid var(--line,#355347);border-radius:9px}
.invoice-detail-table{width:100%;min-width:620px;border-collapse:collapse}
.invoice-detail-table th,.invoice-detail-table td{padding:11px 10px;border-bottom:1px solid var(--line,#355347);text-align:left;font-size:12.5px}
.invoice-detail-table th{color:var(--muted,#9fb2a8);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase}
.invoice-detail-table td:nth-child(3),.invoice-detail-table td:nth-child(5),.invoice-detail-table td:nth-child(6){text-align:right;font-variant-numeric:tabular-nums}
.invoice-detail-total{display:flex;justify-content:flex-end;gap:30px;padding:16px 8px;font-size:14.5px}
.invoice-detail-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:4px 0 12px}
.realization-note{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:10px 14px;border:1px solid var(--line,#355347);border-radius:10px;background:var(--panel,#142d23);font-size:13.5px}
[data-theme="light"] .realization-note{background:#f5f8f5;border-color:#e0e8e1}
[data-theme="light"] .invoice-product-line select,[data-theme="light"] .invoice-product-line input{background:#fff;color:#183027;border-color:#dbe4dc}
[data-theme="light"] .invoice-detail-meta{background:#f5f8f5;border-color:#e0e8e1}
[data-theme="light"] .invoice-detail-table th,[data-theme="light"] .invoice-detail-table td{border-color:#e0e8e1}
[data-theme="light"] .invoice-number-link{color:#176044}
@media(max-width:650px){.invoice-detail-meta{grid-template-columns:1fr 1fr}.invoice-product-line{grid-template-columns:minmax(0,1fr) 85px 32px}.invoice-product-line select,.invoice-product-line input{font-size:12.5px;padding:0 7px}}
.chart-bar,.chart-bar-paid{cursor:pointer}.chart-bar:focus,.chart-bar-paid:focus{outline:none;stroke:#e4edcc;stroke-width:2}

.stat-card-link{cursor:pointer;transition:transform .16s ease,border-color .16s ease}.stat-card-link:hover,.stat-card-link:focus-visible{transform:translateY(-2px);border-color:#86ad91;outline:none}.report-panel{margin-top:20px}.report-panel .panel-heading{align-items:flex-start}.report-table{min-width:790px}.report-table th:not(:first-child),.report-table td:not(:first-child){text-align:right;white-space:nowrap}.report-table tfoot{background:rgba(124,160,132,.12);font-weight:700}.report-table tfoot th{height:46px;color:var(--text,#e7efe9);font-size:11.5px;border-top:1px solid var(--line,#29463a)}.osv-table{min-width:980px}.report-disclaimer{margin:12px 4px 20px;color:var(--muted,#9fb2a8);font-size:13.5px;line-height:1.5}
.report-tabs{display:flex;gap:8px;overflow:auto;margin:0 0 4px;padding:2px 0 6px;border-bottom:1px solid var(--line,#29463a)}.report-tab{flex:none;padding:10px 16px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted,#9fb2a8);font:inherit;font-size:14.5px;cursor:pointer;white-space:nowrap}.report-tab:hover,.report-tab:focus-visible{border-color:var(--line,#29463a);outline:none;color:var(--text,#e7efe9)}.report-tab.active{background:#234635;color:#e7efe9;border-color:#355b46;font-weight:700}[data-theme="light"] .report-tab.active{background:#e3eee2;color:#183027;border-color:#c4d7c5}.report-tabs~[hidden]{display:none!important}.report-panel[hidden]{display:none!important}
.status-toggle.cancelled{display:inline-block;background:#58332f;color:#f1aaa0;cursor:default}.invoice-cancelled td{color:var(--muted,#9fb2a8)}.invoice-cancelled .invoice-number-link{text-decoration:line-through;color:var(--muted,#9fb2a8)}

/* Report tables: keep column headings and figures visually distinct. */
.report-panel .table-wrap{overflow-x:auto}
.report-table{width:100%;min-width:900px;table-layout:fixed;border-collapse:separate;border-spacing:0}
.report-table th,.report-table td{padding:12px 16px}
.report-table th:first-child,.report-table td:first-child{width:36%;text-align:left;white-space:normal}
.report-table th:not(:first-child),.report-table td:not(:first-child){font-variant-numeric:tabular-nums}
.osv-table{min-width:1120px}
.osv-table th:first-child,.osv-table td:first-child{width:34%}
.osv-table th:not(:first-child),.osv-table td:not(:first-child){width:13.2%;padding-left:12px;padding-right:12px}
@media(max-width:760px){.report-table th,.report-table td{padding:11px 12px}.report-table{min-width:850px}.osv-table{min-width:1050px}}
#reportSubcontoPanel .report-table{width:100%;min-width:0;table-layout:fixed}
#reportSubcontoPanel .report-table th:first-child,#reportSubcontoPanel .report-table td:first-child{width:34%}
#reportSubcontoPanel .report-table th:nth-child(2),#reportSubcontoPanel .report-table td:nth-child(2){width:10%}
#reportSubcontoPanel .report-table th:nth-child(n+3),#reportSubcontoPanel .report-table td:nth-child(n+3){width:18.66%}
@media(max-width:760px){#reportSubcontoPanel .report-table{min-width:720px}}

/* Invoice composer: room for line items and customer selection. */
.invoice-modal{width:min(900px,calc(100vw - 40px));max-height:calc(100vh - 40px);overflow-y:auto;padding:34px 38px}
.invoice-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:26px;max-height:280px}
.invoice-product-line{grid-template-columns:minmax(0,1fr) 110px 180px 36px}
.invoice-product-line [data-product-price]{text-align:right}
@media(max-width:650px){.invoice-modal{width:calc(100vw - 28px);max-height:calc(100vh - 28px);padding:26px 18px}.invoice-choice-list{grid-template-columns:1fr;column-gap:0}.invoice-product-line{grid-template-columns:minmax(0,1fr) 34px}.invoice-product-line select{grid-column:1;grid-row:1}.invoice-product-line [data-remove-product]{grid-column:2;grid-row:1}.invoice-product-line [data-product-quantity]{grid-column:1;grid-row:2}.invoice-product-line [data-product-price]{grid-column:1;grid-row:3;text-align:left}}

.team-content{padding:4px 20px 20px}.team-content>.subscription-status{margin:10px 0 15px}.team-content .editor-form{margin-top:14px;padding:0}.team-seat-request{border-top:1px solid var(--line,#355347);padding-top:15px!important;margin-top:20px!important}.team-help{font-size:12.5px;line-height:1.6;color:var(--muted,#9fb2a8)}.team-price{padding:12px 14px;border:1px solid var(--line,#355347);border-radius:9px;color:var(--text,#e7efe9);font-weight:700;background:var(--panel-soft,#10271f)}.team-list{display:grid;gap:8px}.team-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line,#355347);border-radius:10px;padding:11px 13px}.team-row>span{display:grid;gap:4px;min-width:0}.team-row b{font-size:13.5px;overflow-wrap:anywhere}.team-row small,.team-empty{font-size:11.5px;color:var(--muted,#9fb2a8)}.team-remove{color:#c47a6e}.team-empty{padding:12px 2px}

@media(max-width:760px){.team-content{padding:4px 14px 16px}.team-content .editor-form{grid-template-columns:1fr}.team-seat-request{gap:12px}.team-price{font-size:13.5px}}

.user-seat-open{width:100%;min-height:74px;display:flex;align-items:center;gap:13px;padding:14px 17px;border:1px solid var(--line,#355347);border-radius:13px;background:linear-gradient(125deg,#f8fbf8,#eef4ef);color:var(--text,#21382d);text-align:left;cursor:pointer;transition:border-color .16s,transform .16s,box-shadow .16s}.user-seat-open:hover{border-color:#8db39b;box-shadow:0 7px 20px #142c1e14;transform:translateY(-1px)}.user-seat-open-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#dcebe0;color:#176847;font-size:23px;flex:none}.user-seat-open-copy{display:grid;gap:5px;flex:1}.user-seat-open-copy b{font-size:13.5px}.user-seat-open-copy small{font-size:11.5px;color:var(--muted,#8b9990)}.user-seat-open-arrow{font-size:23px;color:#778c7e}.user-seat-modal .user-seat-request{margin-top:19px;padding:0!important;border:0!important}.user-seat-modal .team-price{grid-column:1/-1}.user-seat-modal .form-actions{margin-top:8px}.user-seat-modal .checkbox-label{line-height:1.55}
@media(max-width:760px){.user-seat-modal .user-seat-request{grid-template-columns:1fr}.user-seat-modal .user-seat-request .wide-field{grid-column:1}}

[data-theme="dark"] #appShell .user-seat-open{background:linear-gradient(125deg,#1d392c,#172f24);border-color:#355344;color:#e4eee5}[data-theme="dark"] #appShell .user-seat-open-icon{background:#294b38;color:#a9d6b6}[data-theme="dark"] #appShell .user-seat-open-copy small,[data-theme="dark"] #appShell .user-seat-open-arrow{color:#9eb2a2}
