@import "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,400,0,0";@layer tokens{:root{--font-family-sans:"Manrope", "Nunito Sans", "Avenir Next", sans-serif;--color-accent-green:#693;--color-accent-green-dark:#527d28;--color-accent-gold:#ccb566;--color-bg:#f5f6f2;--color-surface:#fff;--color-surface-soft:#eef2ea;--color-surface-muted:#f8faf5;--color-surface-muted-strong:#f9fbf6;--color-surface-raised:#fcfdfb;--color-surface-disabled:#f5f7f2;--color-surface-success:#eef7e6;--color-surface-warning:#f8f0dd;--color-surface-danger:#f9eaea;--color-surface-danger-soft:#fff6f6;--color-surface-muted-soft:#eff2ea;--color-overlay:#141e1073;--color-border:#d5dbcc;--color-border-strong:#b8c2ad;--color-border-subtle:#e5e9df;--color-border-muted:#cfd8c3;--color-border-accent:#98b77b;--color-border-success:#bfd6a7;--color-border-warning:#dfcf9e;--color-border-danger:#e2b4b4;--color-border-muted-soft:#d3dac8;--color-border-disabled:#d6decc;--color-text:#1d2718;--color-text-muted:#5f6958;--color-text-soft:#7c8577;--color-text-success:#2f5b12;--color-text-warning:#7a661f;--color-text-danger:#873333;--color-text-danger-strong:#7e3131;--color-text-danger-contrast:#7e3434;--color-text-success-soft:#3f6420;--color-text-muted-strong:#55624c;--color-text-on-accent:#fff;--color-danger:#b04a4a;--shadow-soft:0 10px 24px #1c281614;--shadow-sm:0 4px 16px #1823110d;--shadow-md:0 8px 22px #1d27180d;--shadow-lg:0 24px 52px #10180c42;--radius-card:16px;--radius-card-lg:22px;--radius-panel:18px;--radius-ui:12px;--radius-control:10px;--radius-soft:8px;--radius-pill:999px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:40px;--focus-ring:2px solid #66993359;--focus-ring-soft:2px solid #66993347;--focus-ring-offset:2px;--motion-fast:.15s;--motion-base:.18s;--motion-slow:.24s;--z-popover:1000;--z-modal:1100}}@layer reset{*{box-sizing:border-box}[hidden]{display:none!important}html,body{min-height:100%;margin:0}}@layer base{.material-symbols-outlined{letter-spacing:normal;text-transform:none;white-space:nowrap;-webkit-font-smoothing:antialiased;font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;direction:ltr;font-family:Material Symbols Outlined;font-size:20px;font-style:normal;font-weight:400;line-height:1;display:inline-block}body{font-family:var(--font-family-sans);background:radial-gradient(circle at 10% 5%, #6699331f, transparent 30%), radial-gradient(circle at 95% 0%, #ccb5662e, transparent 35%), var(--color-bg);color:var(--color-text)}a{color:inherit;text-decoration:none}}@layer layout{.app{grid-template-columns:248px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{border-right:1px solid var(--color-border);padding:var(--space-6) var(--space-4);gap:var(--space-6);background:linear-gradient(#f9faf7 0%,#eef2e9 100%);flex-direction:column;align-self:start;height:100vh;display:flex;position:sticky;top:0;overflow-y:auto}.brand{justify-content:center;align-items:center;gap:var(--space-3);display:flex}.brand-logo{width:100%;max-width:176px;height:auto;display:block}.brand-mark{border-radius:var(--radius-control);background:conic-gradient(from 220deg, var(--color-accent-green), var(--color-accent-gold), var(--color-accent-green));width:36px;height:36px;box-shadow:inset 0 0 0 2px #fffc}.brand-name{letter-spacing:-.02em;font-size:1.4rem;font-weight:700}.nav{gap:var(--space-2);display:grid}.nav-item{align-items:center;gap:var(--space-3);border-radius:var(--radius-ui);color:var(--color-text-muted);transition:all var(--motion-base) ease;padding:12px;font-weight:600;display:flex}.nav-item:hover{color:var(--color-text);background:#6699331a}.nav-item.active{background:var(--color-accent-green);color:#fff;box-shadow:var(--shadow-soft)}.nav-dot{opacity:.7;background:currentColor;border-radius:50%;width:8px;height:8px}.sidebar-footer{padding-top:var(--space-4);border-top:1px solid var(--color-border);color:var(--color-text-muted);text-align:center;margin-top:auto;font-size:.88rem}.main{padding:var(--space-5) clamp(16px, 2.5vw, 36px)}.topbar{justify-content:space-between;align-items:center;gap:var(--space-4);margin-bottom:var(--space-5);display:flex}.search-wrap{align-items:center;gap:var(--space-2);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-pill);max-width:560px;box-shadow:var(--shadow-sm);flex:1;padding:0 14px;display:flex}.search-wrap input{width:100%;font:inherit;color:var(--color-text);background:0 0;border:0;outline:0;padding:12px 4px}.search-wrap input::placeholder{color:var(--color-text-soft)}.search-wrap .topbar-search-icon{color:var(--color-text-soft);font-size:18px}.top-actions{align-items:center;gap:var(--space-3);display:flex}.top-action-toggle{border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text-muted);border-radius:var(--radius-pill);min-height:40px;font:inherit;letter-spacing:.01em;cursor:pointer;transition:border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;padding:0 14px;font-size:.82rem;font-weight:700}.top-action-toggle:hover{border-color:var(--color-border-strong)}.top-action-toggle:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.top-action-toggle.is-active{border-color:var(--color-border-accent);color:var(--color-text-success);background:#eef6e5}.icon-btn{border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text);border-radius:var(--radius-pill);justify-content:center;align-items:center;width:40px;height:40px;display:inline-flex}.icon-btn:hover{border-color:var(--color-border-strong)}.icon-btn-symbol{font-size:18px}.topbar-notifications,.icon-btn-with-badge{position:relative}.icon-btn-badge{border-radius:var(--radius-pill);min-width:18px;height:18px;color:var(--color-text-on-accent);text-align:center;box-shadow:0 0 0 2px var(--color-surface);background:#b04a4a;padding:0 5px;font-size:.68rem;font-weight:800;line-height:18px;position:absolute;top:-4px;right:-4px}.page-header{justify-content:space-between;align-items:center;gap:var(--space-4);margin-bottom:var(--space-5);display:flex}.page-header h1{letter-spacing:-.02em;margin:0;font-size:clamp(1.5rem,2.8vw,2.25rem)}.page-header-actions{justify-content:flex-end;align-items:center;gap:var(--space-3);margin-left:auto;display:inline-flex}.page-header-note{text-align:right;max-width:min(44ch,100%);margin:0}@media (width<=960px){.app{grid-template-columns:88px minmax(0,1fr)}.brand-name,.nav-item span,.sidebar-footer{display:none}.nav-item{justify-content:center}}@media (width<=640px){.app{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--color-border);padding:var(--space-4);gap:var(--space-4);height:auto;position:static;overflow-y:visible}.brand-name,.nav-item span,.sidebar-footer{display:block}.nav{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-item{justify-content:flex-start}.main{padding:var(--space-4)}.topbar,.page-header{flex-direction:column;align-items:stretch}.search-wrap,.page-header .btn-primary,.page-header .btn-secondary{width:100%;max-width:none}.page-header-actions{flex-direction:column;align-items:stretch;width:100%}.page-header-note{max-width:none}}}@layer components{.topbar-panel{z-index:40;background:linear-gradient(#fffffffa,#f8faf4fa);border:1px solid #66993324;border-radius:22px;width:min(420px,100vw - 48px);max-height:min(70vh,560px);padding:16px;position:absolute;top:calc(100% + 12px);right:0;overflow:auto;box-shadow:0 24px 48px #1823112e}.topbar-popover-head{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;display:flex}.topbar-popover-action,.topbar-notification-action{border:1px solid var(--color-border);border-radius:var(--radius-pill);color:var(--color-text);font:inherit;cursor:pointer;background:#f9fbf6;padding:8px 12px;font-size:.8rem;font-weight:700}.topbar-popover-action:hover,.topbar-notification-action:hover{border-color:var(--color-border-accent);color:#2c4c17;background:#f1f7ea}.topbar-popover-state{padding:8px 2px 2px}.topbar-notification-list{gap:12px;display:grid}.topbar-notification-item{background:#fffffff0;border:1px solid #6699331f;border-radius:18px;gap:10px;padding:14px 16px;display:grid}.topbar-notification-item.is-danger{background:#fcf3f3f0;border-color:#b04a4a33}.topbar-notification-item.is-warning{background:#fcf8eff0;border-color:#ccb56633}.topbar-notification-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.topbar-notification-meta,.topbar-notification-body{color:var(--color-text-muted);margin:0;line-height:1.45}.topbar-notification-severity{border-radius:var(--radius-pill);letter-spacing:.06em;text-transform:uppercase;align-items:center;min-height:26px;padding:0 10px;font-size:.75rem;font-weight:800;display:inline-flex}.topbar-notification-severity.is-danger{color:var(--color-text-danger);background:#fbeeee}.topbar-notification-severity.is-warning{color:var(--color-text-warning);background:#fbf4df}.topbar-notification-severity.is-muted{color:#566551;background:#eef3ea}.topbar-notification-actions{flex-wrap:wrap;gap:8px;display:flex}.avatar{border-radius:var(--radius-pill);background:linear-gradient(130deg,#cbbf8f,#98b579);border:2px solid #fff;width:40px;height:40px;box-shadow:0 2px 8px #1f291d33}.page-header{justify-content:space-between;align-items:center;gap:var(--space-4);margin-bottom:var(--space-5);display:flex}.page-header h1{letter-spacing:-.02em;margin:0;font-size:clamp(1.5rem,2.8vw,2.25rem)}.page-header-actions{justify-content:flex-end;align-items:center;gap:var(--space-3);margin-left:auto;display:inline-flex}.page-header-note{text-align:right;max-width:min(44ch,100%);margin:0}.btn-primary{border-radius:var(--radius-pill);background:var(--color-accent-green);color:var(--color-text-on-accent);font:inherit;cursor:pointer;transition:background var(--motion-fast) ease;border:0;padding:12px 20px;font-weight:700}.btn-primary:hover{background:var(--color-accent-green-dark)}.btn-secondary{border:1px solid var(--color-border);border-radius:var(--radius-pill);background:var(--color-surface-muted-strong);color:var(--color-text);font:inherit;transition:border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;justify-content:center;align-items:center;padding:11px 18px;font-weight:700;display:inline-flex}.btn-secondary:hover{border-color:var(--color-border-accent);color:#2c4c17;background:#f1f7ea}.btn-primary:focus-visible,.btn-secondary:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.content-stack{gap:var(--space-5);display:grid}.card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);box-shadow:var(--shadow-md)}.section{padding:clamp(16px,2vw,24px)}.section h2{margin:0 0 var(--space-4);letter-spacing:-.02em;font-size:1.55rem}.list{gap:var(--space-3);margin:0;padding:0;list-style:none;display:grid}.list-item{border:1px solid var(--color-border);border-radius:var(--radius-ui);padding:var(--space-3) var(--space-4);justify-content:space-between;align-items:center;gap:var(--space-3);background:#fafcf8;display:flex}.list-item strong{margin-bottom:2px;font-size:.98rem;display:block}.list-item span{color:var(--color-text-muted);font-size:.88rem}.badge{border-radius:var(--radius-pill);letter-spacing:.04em;text-transform:uppercase;padding:4px 10px;font-size:.76rem;font-weight:700}.badge-warning{color:var(--color-text-warning);background:#ccb5663d}.badge-danger{color:var(--color-text-danger);background:#b04a4a33}.badge-success{color:var(--color-text-success-soft);background:#6933}.tag{border-radius:var(--radius-pill);border:1px solid #0000;align-items:center;padding:4px 10px;font-size:.78rem;font-weight:700;display:inline-flex}.tag-draft{color:#4f5f47;background:#edf1e8;border-color:#cfd8c3}.tag-sent{color:#735e1c;background:#f4edd8;border-color:#dfcf9e}.tag-paid{color:var(--color-text-success);background:#e4efd8;border-color:#b8d19f}.tag-overdue{color:#7c2f2f;background:#f5e2e2;border-color:#e2b4b4}.small-note{color:var(--color-text-muted);font-size:.88rem}@media (width<=640px){.topbar-popover-head,.topbar-notification-head{flex-direction:column;align-items:stretch}}.company-form,.create-invoice-form{display:grid}.company-form{gap:var(--space-4)}.create-invoice-form{gap:18px}.company-form,.create-invoice-form,.toolbar-field,.settings-card,.settings-company-search-row{--field-min-height:42px;--field-radius:var(--radius-control);--field-shadow:inset 0 1px 0 #ffffffb8}.settings-card,.settings-company-search-row{--field-min-height:44px;--field-radius:var(--radius-ui);--field-shadow:inset 0 1px 0 #ffffffb8, 0 1px 2px #1823110a}.form-alert{border-radius:var(--radius-ui);color:var(--color-text-danger-strong);background:#b04a4a14;border:1px solid #b04a4a59;padding:12px 14px}.form-alert p{margin:0 0 8px;font-weight:700}.form-alert ul{margin:0;padding-left:22px}.form-alert li{margin:0}.form-section-grid{gap:var(--space-4);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.form-panel{border:1px solid var(--color-border);border-radius:var(--radius-ui);background:linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-muted) 100%);padding:var(--space-4);gap:var(--space-3);align-content:start;display:grid}.form-panel h2{letter-spacing:-.01em;margin:0;font-size:1.08rem}.form-field{gap:6px;display:grid}.user-form-password-action{gap:8px;padding-top:2px;display:grid}.user-form-password-action .btn-secondary{width:fit-content}.form-row{gap:var(--space-3);display:grid}.form-row.two-col,.form-row.two-col-tight{grid-template-columns:repeat(2,minmax(0,1fr))}.vat-label-row{justify-content:space-between;align-items:baseline;gap:var(--space-2);display:flex}.vat-lookup-row{gap:var(--space-2);grid-template-columns:minmax(0,1fr) auto;align-items:center;display:grid}.vat-lookup-button{border-radius:var(--radius-control);white-space:nowrap;min-height:42px;padding:10px 14px}.vat-lookup-status{text-align:right;min-height:1.2em;margin:0}.vat-lookup-status.is-error{color:var(--color-danger)}.vat-lookup-status.is-success{color:var(--color-accent-green)}.vat-lookup-status.is-warning{color:var(--color-text-warning)}body.modal-open{overflow:hidden}.modal-overlay{z-index:var(--z-modal);background:var(--color-overlay);padding:var(--space-4);place-items:center;display:grid;position:fixed;inset:0}.modal-overlay[hidden]{display:none}.modal-dialog{border-radius:var(--radius-card);border:1px solid var(--color-border);background:var(--color-surface);width:min(920px,100%);max-height:calc(100vh - 32px);box-shadow:var(--shadow-lg);padding:var(--space-4);gap:var(--space-3);display:grid;overflow:auto}.modal-header{justify-content:space-between;align-items:center;gap:var(--space-3);display:flex}.modal-header h2{margin:0;font-size:1.2rem}.modal-close{border:1px solid var(--color-border);background:var(--color-surface-muted);border-radius:var(--radius-pill);min-width:36px;height:36px;font:inherit;cursor:pointer;font-size:1rem;line-height:1}.modal-close:hover{border-color:var(--color-border-accent)}.vat-lookup-modal-warning{color:#665018;border-radius:var(--radius-soft);background:#ccb5661f;border-left:3px solid #d0b35e;margin:0;padding:10px 12px}.company-confirm-modal,.confirmation-modal{width:min(560px,100%)}.invoice-payment-sync-modal{width:min(620px,100%)}.modal-copy{margin:0}.modal-warning{color:var(--color-text-danger-contrast);border-radius:var(--radius-soft);background:#b04a4a1f;border-left:3px solid #c56f6f;margin:0;padding:10px 12px}.vat-lookup-modal-table-wrap{overflow-x:auto}.vat-lookup-modal-table{border-collapse:collapse;width:100%;min-width:680px}.vat-lookup-modal-table th,.vat-lookup-modal-table td{text-align:left;vertical-align:top;border-bottom:1px solid #e7ebdf;padding:10px 8px}.vat-lookup-modal-table th{color:var(--color-text-muted);letter-spacing:.04em;text-transform:uppercase;font-size:.78rem;font-weight:700}.vat-lookup-modal-current{color:var(--color-text-muted);font-size:.9rem}.vat-lookup-modal-current.empty{font-style:italic}.vat-lookup-modal-row.is-different td:first-child{font-weight:700}.vat-lookup-modal-input{border:1px solid var(--color-border);border-radius:var(--radius-soft);background:var(--color-surface);width:100%;min-height:38px;color:var(--color-text);font:inherit;padding:8px 10px}.vat-lookup-modal-input:focus{outline:var(--focus-ring-soft);border-color:var(--color-border-accent)}.modal-actions{justify-content:flex-end;align-items:center;gap:var(--space-3);display:flex}.company-form label,.create-invoice-form label,.toolbar-field label{font-size:.9rem;font-weight:700}.settings-card label,.settings-company-search label{color:#223119;letter-spacing:-.01em;font-size:.88rem;font-weight:700}.company-form :is(input[type=text],input[type=number],input[type=email],input[type=password],input[type=date],select,textarea),.create-invoice-form :is(input[type=text],input[type=number],input[type=date],select,textarea),.settings-card :is(input[type=text],input[type=number],input[type=email],input[type=date],select,textarea),.settings-company-search-row input,.toolbar-field select{width:100%;min-height:var(--field-min-height);border:1px solid var(--color-border);border-radius:var(--field-radius);background:var(--color-surface);color:var(--color-text);font:inherit;box-shadow:var(--field-shadow);transition:border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;padding:10px 12px}.company-form :is(input[type=text],input[type=number],input[type=email],input[type=password],input[type=date],select,textarea):focus,.create-invoice-form :is(input[type=text],input[type=number],input[type=date],select,textarea):focus,.settings-card :is(input[type=text],input[type=number],input[type=email],input[type=date],select,textarea):focus,.settings-company-search-row input:focus,.toolbar-field select:focus{outline:var(--focus-ring-soft);border-color:var(--color-border-accent)}.create-invoice-form select,.settings-card select{appearance:none;background-image:linear-gradient(45deg,#0000 50%,#647159 50%),linear-gradient(135deg,#647159 50%,#0000 50%);background-position:calc(100% - 18px) calc(50% - 3px),calc(100% - 12px) calc(50% - 3px);background-repeat:no-repeat;background-size:6px 6px,6px 6px;padding-right:42px}.create-invoice-form textarea,.settings-card textarea{resize:vertical;min-height:92px}.company-form :is(input,select,textarea):disabled,.create-invoice-form :is(input,select,textarea):disabled,.settings-card :is(input,select,textarea):disabled{background:var(--color-surface-disabled);color:#76846d;border-color:var(--color-border-disabled);box-shadow:none}.create-invoice-form input[readonly],.settings-card input[readonly]{background:var(--color-surface-disabled);color:#566551;font-weight:600}.company-form .is-invalid{border-color:var(--color-danger);background:#fff8f8}.form-field-hint{color:var(--color-text-muted);margin:0;font-size:.82rem}.form-field-error{color:var(--color-danger);margin:0;font-size:.82rem;font-weight:700}.form-switch-wrap{gap:6px;display:grid}.form-switch{cursor:pointer;align-items:center;gap:10px;width:fit-content;display:inline-flex;position:relative}.form-switch input{opacity:0;pointer-events:none;position:absolute}.form-switch-track{border-radius:var(--radius-pill);width:46px;height:26px;transition:background var(--motion-fast) ease;background:#cbd3bf;position:relative}.form-switch-track:after{content:"";background:var(--color-surface);width:20px;height:20px;transition:transform var(--motion-fast) ease;border-radius:50%;position:absolute;top:3px;left:3px;box-shadow:0 1px 4px #0e170a38}.form-switch input:checked+.form-switch-track{background:var(--color-accent-green)}.form-switch input:checked+.form-switch-track:after{transform:translate(20px)}.form-switch input:focus-visible+.form-switch-track{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.form-switch-label{font-weight:700}.form-actions{justify-content:flex-end;align-items:center;gap:var(--space-3);display:flex}.form-actions.sticky{padding-top:var(--space-3);margin-top:var(--space-2);background:linear-gradient(180deg, #fff0, var(--color-surface) 45%);position:sticky;bottom:0}.toolbar-filters{gap:var(--space-3);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.toolbar-field{gap:6px;display:grid}@media (width<=960px){.form-section-grid,.toolbar-filters{grid-template-columns:1fr}}@media (width<=640px){.form-row.two-col,.form-row.two-col-tight{grid-template-columns:1fr}.inline-form{flex-direction:column;align-items:stretch}.inline-form :is(input[type=text],input[type=number],input[type=date],select,.btn-secondary){width:100%}.vat-lookup-row{grid-template-columns:1fr}.vat-lookup-button{width:100%}.modal-dialog{padding:var(--space-3)}.modal-actions,.form-actions{flex-direction:column-reverse;align-items:stretch}}.table-wrap{overflow-x:auto}.table{border-collapse:collapse;width:100%;min-width:860px}.table th,.table td{text-align:left;border-bottom:1px solid #e5e9df;padding:14px 8px}.table th{color:var(--color-text-muted);letter-spacing:.06em;text-transform:uppercase;font-size:.82rem}.table td.amount{font-weight:700}.invoice-status-cell{white-space:nowrap}.table th.invoice-billit-column{text-align:center}.invoice-billit-cell{text-align:center;white-space:nowrap;width:1%;padding-left:6px;padding-right:6px}.invoice-billit-controls{align-items:center;gap:6px;display:inline-flex}.invoice-billit-status{border-radius:var(--radius-pill);cursor:help;border:1px solid #0000;justify-content:center;align-items:center;width:30px;height:30px;display:inline-flex}.invoice-billit-status-icon{font-size:18px;display:block}.invoice-billit-status.is-success{color:var(--color-text-success);background:#eef7e6;border-color:#bfd6a7}.invoice-billit-status.is-warning{color:#735e1c;background:#f8f0dd;border-color:#dfcf9e}.invoice-billit-status.is-danger{color:#7c2f2f;background:#f9eaea;border-color:#e2b4b4}.invoice-billit-status.is-muted{color:#55624c;background:#eff2ea;border-color:#d3dac8}.invoice-billit-sync-button{width:28px;height:28px}.invoice-payment-sync-details{gap:10px;display:grid}.invoice-payment-sync-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;display:grid}.invoice-payment-sync-detail{border:1px solid var(--color-border);border-radius:var(--radius-ui);background:#f9fbf6;padding:12px}.invoice-payment-sync-detail-label{color:var(--color-text-muted);letter-spacing:.02em;text-transform:uppercase;margin:0 0 4px;font-size:.76rem;font-weight:700}.invoice-payment-sync-detail-value{color:var(--color-text);word-break:break-word;margin:0;font-weight:600}.invoice-payment-sync-detail-value.is-muted{color:var(--color-text-muted);font-weight:500}.invoice-amounts-obscured .table td.amount{filter:blur(5px);user-select:none}.invoice-amounts-obscured .kpi-value.amount{filter:blur(8px);user-select:none}.invoice-amounts-obscured .company-summary-row-value.is-private{filter:blur(5px);user-select:none}.invoice-amounts-obscured .company-summary-inline-private{filter:blur(5px);user-select:none;display:inline-block}.table-actions-cell{white-space:nowrap}.table-action-link{color:var(--color-accent-gold)}.table-action-link:hover{color:#24480e}.company-name-cell-content{align-items:center;gap:8px;min-width:0;display:inline-flex}.company-name-text{min-width:0}.company-billit-indicator{color:var(--color-text-success);flex:none;font-size:18px;line-height:1}.table-actions{align-items:center;gap:8px;display:inline-flex}.table-actions-text{flex-wrap:wrap}.table-inline-action{border-radius:var(--radius-pill);color:#34561c;min-height:34px;font:inherit;cursor:pointer;background:#f8fbf4;border:1px solid #cfd8c3;justify-content:center;align-items:center;padding:0 12px;font-size:.84rem;font-weight:700;text-decoration:none;display:inline-flex}.table-inline-action:hover{border-color:var(--color-border-accent);background:#edf5e4}.table-inline-action.is-danger{color:#913c3c;background:#fff7f7;border-color:#e2bcbc}.user-toolbar-filters{align-items:end}.user-table .badge{white-space:nowrap}.table-action-icon{border-radius:var(--radius-pill);border:1px solid var(--color-border);color:#395f1f;background:#f9fbf6;justify-content:center;align-items:center;width:30px;height:30px;transition:border-color .15s,background .15s,color .15s;display:inline-flex}.table-action-icon:hover:not(:disabled){border-color:var(--color-border-accent);color:#2c4c17;background:#f1f7ea}.table-action-icon.is-danger{color:#8a3535;background:#fff6f6;border-color:#b04a4a59}.table-action-icon.is-danger:hover:not(:disabled){color:#732727;background:#ffecec;border-color:#b04a4a8c}.table-action-icon:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.table-action-icon:disabled{opacity:.34;cursor:not-allowed;color:#9aa58f;box-shadow:none;background:#f6f8f3;border-color:#d6decf}.table-action-icon-symbol{font-size:18px;display:block}}@layer pages{.kpi-grid{gap:var(--space-4);grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.kpi-card{padding:var(--space-4);border-radius:var(--radius-ui);border:1px solid var(--color-border);gap:var(--space-2);background:linear-gradient(#fff,#f8faf5);display:grid}.kpi-label{color:var(--color-text-muted);font-size:.92rem}.kpi-value{letter-spacing:-.02em;font-size:clamp(1.4rem,2vw,1.95rem);font-weight:800}.kpi-accent{color:var(--color-accent-gold);text-transform:uppercase;letter-spacing:.08em;font-size:.82rem;font-weight:700}.split{gap:var(--space-4);grid-template-columns:1.1fr 1fr;display:grid}.split.is-single-column{grid-template-columns:1fr}.list{gap:var(--space-3);margin:0;padding:0;list-style:none;display:grid}.list-item{border:1px solid var(--color-border);border-radius:var(--radius-ui);padding:var(--space-3) var(--space-4);justify-content:space-between;align-items:center;gap:var(--space-3);background:#fafcf8;display:flex}.list-item strong{margin-bottom:2px;font-size:.98rem;display:block}.list-item span{color:var(--color-text-muted);font-size:.88rem}.activity-list{gap:var(--space-3)}.activity-item{--activity-accent:#6f7b4b;--activity-accent-soft:#6f7b4b24;--activity-accent-text:#58623f;border-radius:calc(var(--radius-ui) + 6px);background:linear-gradient(135deg,#fffffffa 0%,#f8faf2fa 100%);border:1px solid #d7dec9;position:relative;overflow:hidden;box-shadow:0 14px 30px #3443220d}.activity-item:before{content:"";background:var(--activity-accent);width:5px;position:absolute;inset:0 auto 0 0}.activity-item-link{padding:var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + 8px);color:inherit;gap:10px;text-decoration:none;display:grid}a.activity-item-link{transition:background-color .16s,border-color .16s,transform .16s}a.activity-item-link:hover,a.activity-item-link:focus-visible{background:linear-gradient(135deg,#fff 0%,#f1f6e8eb 100%);transform:translateY(-1px)}.activity-item-title-row{flex-wrap:wrap;align-items:center;gap:10px 12px;display:flex}.activity-item-kind{border-radius:var(--radius-pill);background:var(--activity-accent-soft);min-height:1.6rem;color:var(--activity-accent-text);letter-spacing:.08em;text-transform:uppercase;align-items:center;padding:.12rem .6rem;font-size:.72rem;font-weight:700;display:inline-flex}.activity-item-title{font-size:1rem;line-height:1.35;display:block}.activity-item-meta{color:var(--color-text-muted);flex-wrap:wrap;gap:6px 16px;margin:0;font-size:.88rem;display:flex}.activity-item-meta-part{align-items:center;line-height:1.35;display:inline-flex}.activity-item-meta-part+.activity-item-meta-part:before{content:"";background:#4f584359;border-radius:50%;width:4px;height:4px;margin-right:12px}.activity-item-meta-part.is-detail{color:var(--color-text);font-weight:600}.activity-item.tone-billing{--activity-accent:#6f7b4b;--activity-accent-soft:#6f7b4b24;--activity-accent-text:#58623f}.activity-item.tone-billit{--activity-accent:#4c7f9a;--activity-accent-soft:#4c7f9a26;--activity-accent-text:#355d73}.activity-item.tone-payment{--activity-accent:#3e8b5f;--activity-accent-soft:#3e8b5f26;--activity-accent-text:#2d6847}.activity-item.tone-invoice{--activity-accent:#7d6b2f;--activity-accent-soft:#7d6b2f26;--activity-accent-text:#665626}.activity-item.tone-reminder{--activity-accent:#b3752f;--activity-accent-soft:#b3752f29;--activity-accent-text:#87561f}.activity-item.tone-draft{--activity-accent:#9b5d43;--activity-accent-soft:#9b5d4324;--activity-accent-text:#784330}.activity-item.tone-recurring{--activity-accent:#2f7d78;--activity-accent-soft:#2f7d7826;--activity-accent-text:#255f5b}.activity-item.is-warning{background:linear-gradient(135deg,#fffbf3fa 0%,#fdf6e5fa 100%);border-color:#e0c287}.activity-item.is-warning:before{background:#c18930}.activity-item.is-warning .activity-item-kind{color:#885c1f;background:#c1893026}.activity-item.is-error{background:linear-gradient(135deg,#fff9f9fc 0%,#fbefeffc 100%);border-color:#e1b9b9}.activity-item.is-error:before{background:#b65757}.activity-item.is-error .activity-item-kind{color:#8c3e3e;background:#b6575724}.activity-empty{padding:var(--space-3) var(--space-4);color:var(--color-text-muted);font-size:.9rem}.activity-empty:before{display:none}@media (width<=960px){.split{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.kpi-grid{grid-template-columns:1fr}}.company-detail-stack{gap:var(--space-4)}.company-summary-card{background:radial-gradient(circle at 100% 0,#ccb56629,#0000 34%),linear-gradient(135deg,#fbfcf7 0%,#f1f6ea 58%,#fff8ea 100%);border-color:#cfd8c3;position:relative;overflow:hidden}.company-summary-card>*{position:relative}.company-summary-head{justify-content:space-between;align-items:flex-start;gap:var(--space-3);margin-bottom:var(--space-4);display:flex}.company-summary-head h2{color:#2a3e1f;letter-spacing:-.01em;margin:0;font-size:clamp(1.2rem,2vw,1.45rem)}.company-summary-integrations{justify-content:flex-end;align-items:center;gap:var(--space-2);min-width:0;display:flex}.company-integration-badge{color:#55624c;align-items:center;gap:6px;min-width:0;max-width:100%;padding:2px 0;display:inline-flex}.company-integration-badge-icon{font-size:18px}.company-integration-badge-text{text-overflow:ellipsis;white-space:nowrap;letter-spacing:.02em;min-width:0;max-width:min(280px,52vw);font-size:.82rem;font-weight:700;display:block;overflow:hidden}.company-integration-badge.is-success{color:var(--color-text-success)}.company-integration-badge.is-warning{color:var(--color-text-warning)}.company-integration-badge.is-danger{color:var(--color-text-danger)}.company-integration-badge.is-muted,.company-integration-badge.is-loading{color:#55624c}.company-summary-panels{gap:var(--space-4);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.company-summary-panel{border-radius:var(--radius-ui);padding:var(--space-4);gap:var(--space-3);background:#ffffff8f;border:1px solid #a7b49c8c;align-content:start;display:grid}.company-summary-panel h3{color:#334628;letter-spacing:-.01em;margin:0;font-size:1.02rem}.company-summary-panel-list{gap:10px;display:grid}.company-summary-row{gap:var(--space-3);grid-template-columns:128px minmax(0,1fr);align-items:baseline;display:grid}.company-summary-row-label{color:#6a775f;letter-spacing:.09em;text-transform:uppercase;font-size:.73rem;font-weight:700}.company-summary-row-value{color:#223119;word-break:break-word;font-size:.98rem;font-weight:700;line-height:1.35}.company-summary-row-value.is-muted{color:#586551}.company-detail-section-head{justify-content:space-between;align-items:baseline;gap:var(--space-3);margin-bottom:var(--space-3);display:flex}.company-detail-section-head h2{margin:0}.company-detail-list{gap:var(--space-3);display:grid}.company-item{border:1px solid var(--color-border);border-radius:var(--radius-ui);padding:var(--space-3);gap:var(--space-3);background:#fbfdf9;display:grid}.inline-form{align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.inline-form-stack{align-items:stretch;display:grid}.company-license-template-form{gap:12px}.license-template-create-primary{align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.license-template-create-schedule,.license-template-schedule-grid{grid-template-columns:repeat(auto-fit,minmax(132px,1fr));align-items:end;gap:10px 12px;display:grid}.license-template-create-schedule.is-disabled,.license-template-schedule-grid.is-disabled{opacity:.72}.license-template-create-schedule.is-disabled .license-template-compact-field,.license-template-schedule-grid.is-disabled .license-template-compact-field{display:none}.license-template-compact-field{color:var(--color-text-muted);gap:6px;font-size:.8rem;display:grid}.license-template-compact-field span{color:#223119;letter-spacing:-.01em;font-weight:700}.license-template-compact-field.is-small{max-width:120px}.license-template-compact-field.is-wide{min-width:180px}.inline-form input[type=text],.inline-form input[type=number],.inline-form input[type=date],.inline-form select{border:1px solid var(--color-border);min-height:38px;color:var(--color-text);font:inherit;background:#fff;border-radius:8px;padding:8px 10px}.inline-form input[type=text]{min-width:220px}.inline-form input[type=number]{width:120px}.inline-checkbox{color:var(--color-text-muted);align-items:center;gap:6px;font-size:.84rem;display:inline-flex}.company-item textarea,.company-detail-subtable textarea{border:1px solid var(--color-border);width:100%;color:var(--color-text);font:inherit;resize:vertical;background:#fff;border-radius:8px;padding:8px 10px}.company-detail-subtable{min-width:760px}.company-detail-subtable td{padding:10px 8px}.company-detail-subtable input[type=text],.company-detail-subtable input[type=number],.company-detail-subtable input[type=date],.company-detail-subtable input[type=datetime-local],.company-detail-subtable select{border:1px solid var(--color-border);width:100%;min-height:34px;color:var(--color-text);font:inherit;background:#fff;border-radius:8px;padding:6px 8px}.company-detail-subtable textarea{min-height:72px}.company-detail-project-table{min-width:920px}.company-detail-project-table .table-actions-cell,.company-detail-project-table th:last-child{text-align:right}.company-detail-contact-table{min-width:700px}.company-detail-contact-table .table-actions-cell,.company-detail-contact-table th:last-child{text-align:right}.company-detail-license-table{min-width:920px}.company-detail-license-table .table-actions-cell,.company-detail-license-table th:last-child{text-align:right}.company-detail-drafts-table{min-width:760px}.company-detail-drafts-table .table-actions-cell,.company-detail-drafts-table th:last-child{text-align:right}@media (width<=960px){.company-summary-panels{grid-template-columns:1fr}}.project-quote-row td{background:#fbfdf9}.project-quote-row:not(.is-editing) td{font-weight:700}.license-template-row td{background:#fbfdf9}.license-template-row:not(.is-editing) td{font-weight:700}.project-row-item{align-items:center;gap:var(--space-2);display:flex}.project-row-item input[type=text]{flex:240px}.project-quote-toggle{border:1px solid var(--color-border);border-radius:var(--radius-pill);color:#395f1f;width:28px;height:28px;font:inherit;cursor:pointer;background:#f9fbf6;justify-content:center;align-items:center;padding:0;font-weight:700;line-height:1;display:inline-flex}.project-quote-toggle-icon{font-size:18px;line-height:1;display:block}.project-quote-toggle.is-expanded .project-quote-toggle-icon{transform:rotate(180deg)}.project-quote-toggle-icon.is-animating-expand{animation:.22s cubic-bezier(.2,.7,.1,1) project-quote-toggle-expand}.project-quote-toggle-icon.is-animating-collapse{animation:.22s cubic-bezier(.2,.7,.1,1) project-quote-toggle-collapse}@keyframes project-quote-toggle-expand{0%{transform:rotate(0)}to{transform:rotate(180deg)}}@keyframes project-quote-toggle-collapse{0%{transform:rotate(180deg)}to{transform:rotate(0)}}@media (prefers-reduced-motion:reduce){.project-quote-toggle-icon.is-animating-expand,.project-quote-toggle-icon.is-animating-collapse{animation:none}}.project-quote-toggle:hover{border-color:var(--color-border-accent);color:#2c4c17;background:#f1f7ea}.project-quote-toggle:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.project-quote-title{font-weight:700}.project-quote-module-count{border-radius:var(--radius-pill);min-width:32px;min-height:32px;color:var(--color-text-success);background:#eef6e5;justify-content:center;align-items:center;padding:0 10px;font-size:.85rem;font-weight:700;display:inline-flex}.license-template-summary{gap:10px;font-weight:400;display:grid}.license-template-schedule-summary,.license-template-schedule-copy,.license-template-schedule-readonly{gap:6px;display:grid}.license-template-schedule-heading{color:#223119;font-weight:700}.license-template-meta{flex-wrap:wrap;align-items:center;gap:8px;font-weight:400;display:inline-flex}.license-template-note{color:var(--color-text-muted);font-size:.84rem;font-weight:400;line-height:1.45}.license-template-schedule-error{color:var(--color-text-danger)}.license-template-edit-details{gap:12px;display:grid}.license-template-pricing,.license-line-pricing{gap:4px;font-weight:400;display:grid}.license-template-pricing strong,.license-line-pricing strong{font-size:1rem;font-weight:700}.license-template-edit-notes{min-height:72px}.project-module-row td,.project-module-create-row td,.project-module-empty-row td,.license-template-line-row td,.license-template-line-create-row td,.license-template-line-empty-row td{background:#f7faf3}.project-module-sort-header,.project-module-sort-cell{text-align:center;width:92px}.project-module-row td:first-child,.project-module-empty-row td,.project-module-create-row td,.license-template-line-row td:first-child,.license-template-line-empty-row td,.license-template-line-create-row td{padding-left:24px}.project-module-label{color:#4f6f31;vertical-align:text-bottom;justify-content:center;align-items:center;width:18px;min-width:18px;margin-right:8px;line-height:1;display:inline-flex}.project-module-label.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 500, "GRAD" 0, "opsz" 20;font-size:16px}.project-module-meta{flex-wrap:wrap;align-items:center;gap:8px;font-size:.84rem;display:inline-flex}.project-module-status{border-radius:var(--radius-pill);letter-spacing:.01em;border:1px solid #0000;align-items:center;min-height:26px;padding:0 10px;font-weight:600;display:inline-flex}.project-module-status.is-positive{color:#2e5f14;background:#eef6e8;border-color:#cbe1be}.project-module-status.is-negative{color:#8a3d44;background:#fbeeee;border-color:#efcfd1}.project-module-edit-details{align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.license-template-line-empty-row td{color:var(--color-text-muted)}.license-line-meta{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.license-line-pricing{align-items:start}.license-line-pricing-formula{color:var(--color-text-muted);font-size:.84rem;line-height:1.45}.license-line-edit-details{align-items:flex-end;gap:var(--space-2);flex-wrap:wrap;display:flex}.license-line-pricing-editor{grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:12px;display:grid}.license-line-pricing-field{gap:6px;display:grid}.project-module-empty-row td{color:var(--color-text-muted)}.project-module-sort-controls{justify-content:center;align-items:center;gap:6px;display:inline-flex}.project-module-sort-button{color:#47642c;background:linear-gradient(#fff 0%,#f0f5ea 100%);border-color:#d0d9c3;width:28px;height:28px}.project-module-sort-button:hover:not(:disabled){background:linear-gradient(#fefefe 0%,#e7f0dc 100%);border-color:#a7bb8e}.project-module-sort-button:disabled{opacity:.36;cursor:not-allowed;box-shadow:none}.project-module-create-form{display:block}.project-module-create-inline{background:linear-gradient(#fbfdf9 0%,#f2f6ec 100%);border:1px solid #d8decf;border-radius:18px;grid-template-columns:minmax(320px,2fr) 140px auto auto;align-items:end;gap:14px;padding:14px 16px;display:grid;box-shadow:inset 0 1px #ffffffb8}.project-module-create-field{gap:6px;display:grid}.project-module-create-label{color:var(--color-text-muted);letter-spacing:.08em;text-transform:uppercase;font-size:.74rem;font-weight:800}.project-module-create-inline input[type=text],.project-module-create-inline input[type=number]{border-radius:var(--radius-ui);background:#fff;border:1px solid #cfd8c3;min-height:42px;padding:10px 12px}.project-module-create-inline input[type=text]:focus,.project-module-create-inline input[type=number]:focus{border-color:var(--color-border-accent);outline:2px solid #66993338}.project-module-create-options{border-radius:var(--radius-pill);background:#ffffffb8;border:1px solid #d8decf;flex-wrap:wrap;align-items:center;gap:10px;min-height:42px;padding:4px 6px;display:flex}.project-module-create-options .inline-checkbox{border-radius:var(--radius-pill);color:#4f5f47;background:#f6f8f2;min-height:32px;padding:0 10px;font-weight:700}.project-module-create-actions{justify-content:flex-end;align-items:center;gap:10px;display:flex}.project-module-create-actions .btn-primary,.project-module-create-actions .btn-secondary{white-space:nowrap;min-height:42px}.license-line-create-form{display:block}.license-line-create-inline{grid-template-columns:minmax(240px,2fr) minmax(160px,1.1fr) minmax(140px,1fr) minmax(120px,.8fr) auto auto;align-items:end;gap:12px;padding:12px 0;display:grid}.license-line-create-field,.license-line-pricing-field{gap:6px;display:grid}.license-line-create-inline input[type=text],.license-line-create-inline input[type=number],.license-line-create-inline select,.license-line-pricing-editor input[type=number],.license-line-pricing-editor select{border-radius:var(--radius-control);background:#fff;border:1px solid #cfd8c3;min-height:42px;padding:10px 12px}.license-line-create-inline input[type=text]:focus,.license-line-create-inline input[type=number]:focus,.license-line-create-inline select:focus,.license-line-pricing-editor input[type=number]:focus,.license-line-pricing-editor select:focus{border-color:var(--color-border-accent);outline:2px solid #66993338}.license-line-create-options{flex-wrap:wrap;align-items:center;gap:8px;min-height:42px;padding:0;display:flex}.license-line-create-options .inline-checkbox{min-height:32px;color:var(--color-text);background:0 0;padding:0;font-weight:700}.license-line-create-actions{justify-content:flex-end;align-items:center;gap:10px;display:flex}.license-line-create-actions .btn-primary,.license-line-create-actions .btn-secondary{white-space:nowrap;min-height:42px}@media (width<=640px){.license-template-create-primary,.license-template-create-schedule,.license-template-schedule-grid{grid-template-columns:1fr}.company-detail-section-head{flex-direction:column;align-items:flex-start}.company-summary-panel{padding:14px}.company-summary-row{grid-template-columns:1fr;gap:4px}.project-module-create-inline,.license-line-create-inline{grid-template-columns:1fr;padding:12px}.project-module-create-options,.license-line-create-options{border-radius:var(--radius-card);justify-content:flex-start}.project-module-create-actions,.license-line-create-actions{flex-direction:column-reverse;align-items:stretch}.project-module-create-actions .btn-primary,.project-module-create-actions .btn-secondary,.license-line-create-actions .btn-primary,.license-line-create-actions .btn-secondary{width:100%}}.settings-domain-head,.settings-card-head,.settings-company-editor-head{justify-content:space-between;align-items:flex-start;gap:var(--space-3);display:flex}.nav-subnav{border-left:1px solid #6699332e;gap:6px;margin:-2px 0 8px 18px;padding:4px 0 4px 16px;display:grid}.nav-subitem{border-radius:var(--radius-ui);min-height:34px;color:var(--color-text-muted);align-items:center;gap:10px;padding:0 12px;font-size:.88rem;font-weight:600;transition:background .16s,color .16s,transform .16s;display:flex;position:relative}.nav-subitem:before{content:"";border-radius:var(--radius-pill);opacity:.5;background:currentColor;width:6px;height:6px}.nav-subitem:hover{color:var(--color-text);background:#66993314;transform:translate(1px)}.nav-subitem.is-active{color:var(--color-text-success);background:#6699331f;box-shadow:inset 0 0 0 1px #66993324}.settings-card-grid{gap:var(--space-4);grid-template-columns:repeat(auto-fit,minmax(280px,1fr));align-items:start;display:grid}.settings-card-grid.is-masonry{grid-auto-flow:dense;grid-auto-rows:8px}.settings-card-grid.is-masonry>.settings-card{height:max-content}.settings-card-grid-3{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.settings-domain-panel{gap:var(--space-4);display:grid}.settings-card{gap:var(--space-3);background:linear-gradient(#fffffff5,#f6f9f3f2);border:1px solid #6699331f;border-radius:22px;align-content:start;min-width:0;padding:clamp(16px,2vw,22px);display:grid;box-shadow:0 18px 36px #1823110d}.settings-subcard{background:linear-gradient(#fffffffa,#fbfcf9fa);box-shadow:inset 0 1px #fff9}.settings-card h3,.settings-card h4{margin:0}.settings-card h4{margin-bottom:var(--space-2)}.settings-card form{gap:var(--space-3);margin-top:0;display:grid}.settings-card-note{margin:0}.settings-domain-head>div{max-width:70ch}.settings-domain-head .small-note,.settings-card .small-note,.settings-company-sidebar .small-note{margin:0;line-height:1.5}.settings-card .form-row{gap:14px 18px}.settings-domain-panel .form-actions{margin-top:var(--space-2)}.settings-inline-checkbox-field{align-self:stretch}.settings-inline-checkbox{border-radius:var(--radius-ui);min-height:44px;color:var(--color-text-muted);background:#f8faf5;border:1px solid #6699331f;align-items:center;gap:10px;padding:10px 12px;font-weight:600;display:inline-flex}.settings-inline-checkbox input[type=checkbox]{width:18px;height:18px;accent-color:var(--color-accent-green);margin:0}.settings-card .badge{letter-spacing:.04em;align-self:flex-start;padding:8px 12px;font-size:.8rem;line-height:1.15}.settings-card-head{margin-bottom:2px}.settings-domain-panel[data-section=app] .settings-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-company-layout{gap:var(--space-4);grid-template-columns:minmax(250px,320px) minmax(0,1fr);align-items:start;display:grid}.settings-company-sidebar{align-content:start;gap:var(--space-3);display:grid}.settings-company-search{gap:10px;display:grid}.settings-company-search label{font-size:.88rem;font-weight:700}.settings-company-search-row{gap:10px;display:flex}.settings-company-search-row input{flex:1;min-width:0}.settings-company-list{gap:10px;display:grid}.settings-company-row{text-align:left;cursor:pointer;background:#ffffffeb;border:1px solid #6699331f;border-radius:18px;gap:6px;padding:14px;transition:border-color .16s,transform .16s,box-shadow .16s;display:grid}.settings-company-row:hover{border-color:#66993361;transform:translateY(-1px);box-shadow:0 14px 30px #18231112}.settings-company-row.is-active{background:linear-gradient(#eef6e5fa,#fffffff5);border-color:#315b1266}.settings-company-row-title{letter-spacing:-.01em;font-weight:800}.settings-company-row-meta,.settings-company-row-summary{color:var(--color-text-muted);font-size:.88rem}.settings-company-editor{min-width:0}.settings-company-editor-card{gap:var(--space-4);display:grid}.settings-inline-actions{flex-wrap:wrap;gap:10px;display:flex}.settings-summary-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;display:grid}.settings-summary-card{background:#f4f8efe6;border:1px solid #6699331f;border-radius:18px;gap:8px;padding:14px 16px;display:grid}.settings-summary-label{color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.06em;font-size:.82rem;font-weight:700}.settings-updated-note{margin:0}.settings-preferences-card{max-width:880px}#settings-page-note.ui-tone-warning,#settings-page-note.ui-tone-error{background:#ccb5661f;border:1px solid #ccb56647;border-radius:16px;padding:10px 14px}.settings-health-grid{gap:var(--space-4);display:grid}.settings-health-stack{gap:var(--space-3);display:grid}.settings-health-toolbar{justify-content:space-between;align-items:center;gap:var(--space-4);background:#ffffffdb;border:1px solid #6699331f;border-radius:18px;padding:16px 18px;display:flex;box-shadow:0 10px 24px #18231108}.settings-health-toolbar-copy{gap:4px;display:grid}.settings-health-summary{letter-spacing:-.02em;margin:0;font-size:1rem;font-weight:800}.settings-health-toolbar-meta,.settings-health-note,.settings-health-meta-list,.settings-health-feedback{color:var(--color-text-muted);margin:0;line-height:1.5}.settings-health-feedback{padding:0 2px}.settings-health-list,.settings-runtime-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;display:grid}.settings-runtime-card{align-content:start}.settings-runtime-stat-grid{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;display:grid}.settings-runtime-stat{background:#f4f8efe6;border:1px solid #6699331a;border-radius:14px;gap:4px;padding:12px 14px;display:grid}.settings-runtime-stat-label,.settings-runtime-stat-meta,.settings-runtime-incident-meta,.topbar-popover-note{color:var(--color-text-muted);font-size:.8rem;line-height:1.45}.settings-runtime-stat-label{text-transform:uppercase;letter-spacing:.05em;font-weight:700}.settings-runtime-stat-value{letter-spacing:-.02em;font-size:1.08rem}.settings-runtime-list-card{gap:var(--space-3);display:grid}.settings-runtime-list{gap:12px;display:grid}.settings-runtime-incident{background:#fffffff0;border:1px solid #6699331f;border-radius:18px;gap:10px;padding:14px 16px;display:grid}.settings-runtime-incident-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.settings-runtime-incident-title,.topbar-notification-title,.topbar-popover-title{letter-spacing:-.01em;margin:0;font-weight:800}.settings-runtime-incident-meta,.topbar-popover-note{margin:0}.settings-health-item{background:#ffffffeb;border:1px solid #6699331f;border-radius:18px;gap:12px;padding:16px 18px;display:grid}.settings-health-item.is-warning{background:#fcf8efeb;border-color:#ccb56633}.settings-health-item.is-danger{background:#fcf3f3eb;border-color:#b04a4a33}.settings-health-item-main{align-items:flex-start;gap:12px;min-width:0;display:flex}.settings-health-item-copy{flex:1;gap:6px;min-width:0;display:grid}.settings-health-item-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.settings-health-item-head h3{letter-spacing:-.01em;margin:0;font-size:1rem}.settings-health-light{border-radius:var(--radius-pill);background:#7a8473;flex:none;width:10px;height:10px;margin-top:6px;box-shadow:0 0 0 4px #7a84731f}.settings-health-light.is-success{background:#693;box-shadow:0 0 0 4px #6699331f}.settings-health-light.is-warning{background:#ccb566;box-shadow:0 0 0 4px #ccb5661f}.settings-health-light.is-danger{background:#b04a4a;box-shadow:0 0 0 4px #b04a4a1f}.settings-health-status{letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;color:#55624c;font-size:.78rem;font-weight:800}.settings-health-status.is-success{color:var(--color-text-success)}.settings-health-status.is-warning{color:var(--color-text-warning)}.settings-health-status.is-danger{color:var(--color-text-danger)}.settings-empty-card{text-align:center;place-items:center;min-height:140px;display:grid}@media (width<=1440px){.settings-domain-panel[data-section=app] .settings-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=960px){.settings-domain-panel[data-section=app] .settings-card-grid{grid-template-columns:1fr}.settings-health-toolbar,.settings-health-item-head{flex-direction:column;align-items:stretch}.settings-health-toolbar .btn-secondary{width:100%}.settings-company-layout{grid-template-columns:1fr}.settings-company-search-row{flex-direction:column}.settings-company-search-row .btn-secondary{width:100%}.settings-domain-head,.settings-card-head,.settings-company-editor-head{flex-direction:column;align-items:stretch}.nav-subnav{margin-left:12px;padding-left:12px}}@media (width<=640px){.settings-health-list,.settings-runtime-grid{grid-template-columns:1fr}.settings-runtime-incident-head{flex-direction:column;align-items:stretch}}.prep-actions-row{align-items:center;gap:var(--space-2);display:flex}.invoice-step-fieldset{border:0;gap:16px;margin:0;padding:0;display:grid}.invoice-step-fieldset:disabled{opacity:1}.invoice-inline-fieldset{min-width:0}.create-invoice-drafts-section{padding-block:clamp(14px,1.8vw,20px)}.create-invoice-drafts-head,.create-invoice-workspace-head{justify-content:space-between;align-items:flex-start;gap:var(--space-3);display:flex}.create-invoice-drafts-head h2,.create-invoice-workspace-head h2{margin:0}.create-invoice-drafts-head p,.create-invoice-workspace-intro{margin:6px 0 0}.create-invoice-workspace-card{background:radial-gradient(circle at 100% 0,#ccb56614,#0000 24%),linear-gradient(#fff 0%,#fcfdfb 100%);border-color:#d5deca}.create-invoice-workspace-status-strip{margin:0 0 var(--space-4);border-bottom:1px solid #e7ede0;flex-wrap:wrap;align-items:center;gap:12px 14px;padding:12px 0 18px;display:flex}.create-invoice-status-pill{border-radius:var(--radius-pill);color:#516148;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;background:#f5f8f0;border:1px solid #d8e1cc;align-items:center;min-height:32px;padding:0 12px;font-size:.8rem;font-weight:800;display:inline-flex}#create-invoice-total-chip{margin-inline-start:auto}.invoice-phase-state{border-radius:var(--radius-pill);color:#516148;background:#f5f8f0;border:1px solid #d8e1cc;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;padding:0;display:inline-flex}.invoice-phase-state-icon{font-size:18px;line-height:1}.create-invoice-status-pill.is-strong{color:#fff;background:#23351a;border-color:#23351a}.create-invoice-status-pill.is-success,.invoice-phase-state.is-success{color:#3f6420;background:#6699331f;border-color:#66993338}.create-invoice-status-pill.is-warning,.invoice-phase-state.is-warning{color:var(--color-text-warning);background:#ccb56629;border-color:#ccb56673}.create-invoice-status-pill.is-muted,.invoice-phase-state.is-muted{color:#6d7b64;background:#f7f9f4;border-color:#d8e1cc}.create-invoice-drafts-toggle{gap:8px}.create-invoice-drafts-toggle-icon{font-size:20px;transition:transform .15s}.create-invoice-drafts-toggle[aria-expanded=false] .create-invoice-drafts-toggle-icon{transform:rotate(-90deg)}.create-invoice-drafts-summary{color:#5d6b54;background:#fbfcf8;border:1px solid #dde5d4;border-radius:14px;margin:0;padding:12px 14px}.invoice-phase{border-top:1px solid #e6ece0;gap:14px;padding:16px 0;display:grid}.invoice-phase:first-of-type{border-top:0;padding-top:0}.invoice-phase.is-active,.invoice-phase.is-persistent-open{background:radial-gradient(circle at 0 0,#66993305,#0000 28%),linear-gradient(#fff 0%,#fcfdfb 100%);border:1px solid #dbe3d1;border-radius:20px;margin-inline:-6px;padding:18px 18px 20px;box-shadow:0 10px 20px #16220e0a}.invoice-phase.is-persistent-open:not(.is-active){box-shadow:0 8px 18px #16220e08}.invoice-phase.is-locked{opacity:.9}.invoice-phase-head{border-radius:18px;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:14px;margin:-6px -10px 0;padding:6px 10px;transition:background .15s,box-shadow .15s;display:grid}.invoice-phase-head.is-clickable{cursor:pointer}.invoice-phase-head.is-clickable:hover{background:#f6faf0}.invoice-phase-head.is-clickable:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.invoice-phase-head.is-clickable:hover .invoice-phase-toggle,.invoice-phase-head.is-clickable:focus-visible .invoice-phase-toggle{border-color:var(--color-border-accent);color:#2c4c17;background:#f1f7ea}.invoice-phase-marker{border-right:1px solid #e1e8d7;grid-template-columns:auto auto;align-items:center;gap:10px;min-width:88px;padding-right:14px;display:inline-grid}.invoice-phase-number{border-radius:var(--radius-pill);color:#4f6940;background:#f4f8ee;border:1px solid #d7e2ca;justify-content:center;align-items:center;width:32px;height:32px;font-size:.92rem;font-weight:800;display:inline-flex}.invoice-phase-icon{color:#47602f;justify-content:center;align-items:center;font-size:21px;display:inline-flex}.invoice-phase-copy{gap:6px;min-width:0;display:grid}.invoice-phase-title-row{flex-wrap:wrap;align-items:center;gap:10px 12px;display:flex}.invoice-phase-title-row h3{color:#213019;letter-spacing:-.01em;margin:0;font-size:1.04rem}.invoice-phase-summary,.invoice-phase-inline-note,.invoice-inline-summary{margin:0}.invoice-phase-toggle{border-radius:var(--radius-pill);color:#7a8870;background:#f7faf4;border:1px solid #dde5d4;flex-shrink:0;justify-content:center;align-self:center;align-items:center;width:40px;height:40px;transition:border-color .15s,background .15s,color .15s;display:inline-flex}.invoice-phase-toggle-icon{font-size:19px;line-height:1}.invoice-phase-body{gap:16px;padding-left:102px;display:grid}.invoice-phase.is-active .invoice-phase-body,.invoice-phase.is-persistent-open .invoice-phase-body{border-top:1px solid #e8eee1;padding-top:16px}.invoice-phase-inline-note{color:#5d6b54;background:#fbfcf8;border:1px solid #e1e8d7;border-radius:14px;padding:12px 14px}.invoice-source-choice-group{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.invoice-source-choice{background:#fcfdfb;border:1px solid #dbe3d1;border-radius:14px;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:10px;min-height:64px;padding:10px 12px;transition:border-color .15s,background .15s,box-shadow .15s;display:grid}.invoice-source-choice:hover{background:#fbfdf8;border-color:#c7d7b9}.invoice-source-choice:has(input:checked){background:#f7fbf2;border-color:#bfd0ad;box-shadow:inset 0 0 0 1px #e4eed8}.invoice-source-choice input{accent-color:var(--color-accent-green);margin:0}.invoice-source-choice-icon{color:#4e6932;background:#f3f7ed;border-radius:9px;justify-content:center;align-items:center;width:32px;height:32px;font-size:18px;display:inline-flex}.invoice-source-choice-copy{gap:1px;display:grid}.invoice-source-choice-copy strong{color:#223119;font-size:.9rem;line-height:1.2}.invoice-source-choice-copy small{color:var(--color-text-muted);font-size:.74rem;line-height:1.2}.invoice-source-choice input:checked~.invoice-source-choice-icon{color:#35551d;background:#e8f2dd}.invoice-source-choice input:checked~.invoice-source-choice-copy strong{color:#35551d}.invoice-source-choice input:focus-visible~.invoice-source-choice-icon{outline-offset:var(--focus-ring-offset);outline:2px solid #66993347}.create-invoice-source-grid.is-single-column{grid-template-columns:minmax(0,1fr)}.create-invoice-source-grid.is-license-layout{grid-template-columns:repeat(2,minmax(0,1fr))}.create-invoice-drafts-table{min-width:760px}.create-invoice-drafts-table .is-current-draft td{background:#f4f8ee}.create-invoice-lines-table{min-width:1040px}.create-invoice-lines-table th:first-child,.create-invoice-lines-table td:first-child{width:88px}.create-invoice-lines-table th:nth-child(3),.create-invoice-lines-table td:nth-child(3){width:104px}.create-invoice-lines-table th:nth-child(4),.create-invoice-lines-table td:nth-child(4){width:120px}.create-invoice-lines-table th:nth-child(5),.create-invoice-lines-table td:nth-child(5){width:180px}.create-invoice-lines-table th:nth-child(6),.create-invoice-lines-table td:nth-child(6){width:160px}.create-invoice-lines-table th:nth-child(7),.create-invoice-lines-table td:nth-child(7){width:148px}.create-invoice-lines-table input[type=text],.create-invoice-lines-table input[type=number],.create-invoice-lines-table textarea{border-radius:var(--radius-control);width:100%;min-height:38px;color:var(--color-text);font:inherit;background:#fff;border:1px solid #d4dcc9;padding:8px 10px}.create-invoice-lines-table textarea{resize:vertical;min-height:88px}.create-invoice-lines-table .create-invoice-line-qty{max-width:104px}.create-invoice-lines-table .create-invoice-line-unit-code{text-transform:uppercase;max-width:96px}.create-invoice-lines-table input[type=text]:focus,.create-invoice-lines-table input[type=number]:focus,.create-invoice-lines-table textarea:focus{border-color:var(--color-border-accent);outline:2px solid #66993338}.create-invoice-line-amount{font-weight:700}.create-invoice-lines-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.create-invoice-lines-toolbar-stats{flex-wrap:wrap;gap:10px;display:flex}.create-invoice-workspace-card .form-alert{margin-bottom:4px}.create-invoice-workspace-card .form-actions.sticky{background:linear-gradient(180deg, #fff0, var(--color-surface) 40%);margin-top:0;padding-top:18px}.invoice-review-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.invoice-review-card{background:#fff;border:1px solid #dbe3d1;border-radius:18px;padding:16px}.invoice-review-card h4{color:#45573a;letter-spacing:.08em;text-transform:uppercase;margin:0 0 10px;font-size:.8rem;font-weight:800}.invoice-review-copy{color:var(--color-text);line-height:1.65}.year-pager{align-items:center;gap:var(--space-3);width:fit-content;margin:0 auto var(--space-3);display:flex}.year-pager-label{text-align:center;letter-spacing:.02em;min-width:4ch;font-weight:700}.year-pager-btn{border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text);border-radius:var(--radius-pill);font:inherit;cursor:pointer;padding:7px 14px;font-weight:600}.year-pager-btn:hover{border-color:#b8c2ad}.year-pager-btn:disabled{opacity:.58;cursor:not-allowed}@media (width<=960px){.invoice-source-choice-group{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.invoice-source-choice-group,.invoice-review-grid{grid-template-columns:1fr}.create-invoice-drafts-head,.create-invoice-workspace-head{flex-direction:column;align-items:stretch}.create-invoice-drafts-toggle,.create-invoice-lines-toolbar .btn-secondary,.create-invoice-workspace-status-strip,.create-invoice-lines-toolbar-stats{width:100%}.invoice-phase{padding:14px 0}.invoice-phase.is-active,.invoice-phase.is-persistent-open{margin-inline:0;padding:14px}.invoice-phase-head{grid-template-columns:1fr}.invoice-phase-marker{border-right:0;width:fit-content;min-width:0;padding-right:0}.invoice-phase-body,.invoice-phase.is-active .invoice-phase-body,.invoice-phase.is-persistent-open .invoice-phase-body{padding-left:0}.invoice-source-choice{min-height:0}.create-invoice-source-grid.is-license-layout{grid-template-columns:1fr}.year-pager{justify-content:center;width:100%}}.auth-page{justify-content:center;align-items:center;gap:var(--space-4);min-height:100vh;padding:var(--space-4);flex-direction:column;display:flex}.auth-shell{border:1px solid var(--color-border);background:linear-gradient(120deg, #6699331f, #ccb56624), var(--color-surface-soft);width:100%;max-width:1120px;min-height:680px;box-shadow:var(--shadow-soft);border-radius:24px;grid-template-columns:minmax(320px,460px) 1fr;display:grid;overflow:hidden}.auth-panel{--auth-panel-padding:clamp(24px, 4vw, 44px);padding:var(--auth-panel-padding);gap:var(--space-5);background:#ffffffe6;flex-direction:column;display:flex}.auth-panel-body{gap:var(--space-4);flex:auto;align-content:center;display:grid}.auth-hero{--auth-hero-image:url(../img/hero-branch.jpg);--auth-hero-position:center center;isolation:isolate;background:#798f47;position:relative;overflow:hidden}.auth-hero:before{content:"";background-image:var(--auth-hero-image);background-size:cover;background-position:var(--auth-hero-position);transform-origin:50%;will-change:transform;background-repeat:no-repeat;animation:24s ease-in-out infinite alternate auth-hero-drift;position:absolute;inset:-4%;transform:scale(1.04)translate(0,0)}.auth-hero:after{content:"";background:linear-gradient(135deg,#6933,#ccb56633);position:absolute;inset:0}.auth-brand{align-items:center;gap:var(--space-3);display:flex}.auth-panel h1{letter-spacing:-.02em;margin:0}.auth-subtitle{color:var(--color-text-muted);margin:0}.auth-logo-wrap{justify-content:center;margin-bottom:clamp(22px,3vw,36px);display:flex}.auth-logo{width:min(250px,100%);height:auto;display:block}.auth-logo-mobile{display:none}@keyframes auth-hero-drift{0%{transform:scale(1.04)translate(0,0)}45%{transform:scale(1.07)translate(-1.2%,1%)}to{transform:scale(1.09)translate(1.4%,-.8%)}}@media (prefers-reduced-motion:reduce){.auth-hero:before{animation:none;transform:scale(1.04)translate(0,0)}}.auth-form,.auth-form-fields{gap:var(--space-3);display:grid}.auth-label{font-size:.9rem;font-weight:700}.auth-input{border:1px solid var(--color-border);border-radius:var(--radius-control);background:var(--color-surface);width:100%;color:var(--color-text);font:inherit;padding:12px 14px}.auth-input:focus{outline:var(--focus-ring-soft);border-color:var(--color-border-accent)}.auth-row{justify-content:space-between;align-items:center;gap:var(--space-3);display:flex}.auth-check{color:var(--color-text-muted);align-items:flex-start;gap:8px;font-size:.9rem;display:inline-flex}.auth-check input{accent-color:var(--color-accent-green);margin-top:2px}.auth-check-copy{gap:2px;display:grid}.auth-check-hint{color:var(--color-text-muted);font-size:.78rem;line-height:1.35}.auth-link{color:#4f7a28;font-size:.9rem;font-weight:700}.auth-link:hover{color:var(--color-text-success)}.auth-link-strong{font-size:.95rem}.auth-helper{color:var(--color-text-muted);margin:0;font-size:.86rem}.auth-checklist{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:0;padding:0;list-style:none;display:grid}.auth-checklist-item{min-width:0;color:var(--color-text-muted);align-items:center;gap:8px;font-size:.82rem;line-height:1.35;display:flex}.auth-checklist-item .material-symbols-outlined{color:#94a08e;flex:none;font-size:18px}.auth-checklist-item.is-met{color:#456a1f}.auth-checklist-item.is-met .material-symbols-outlined{color:var(--color-accent-green)}.auth-footer-row{justify-content:space-between;align-items:center;gap:var(--space-3);flex-wrap:wrap;display:flex}.auth-page-footer{width:min(100%,1120px);color:var(--color-text-muted);text-align:center;font-size:.88rem}.auth-page-footer p{max-width:24rem;margin:0 auto;line-height:1.5}.auth-page-footer a{color:var(--color-accent-green)}.auth-inline-note{color:var(--color-text-muted);align-items:flex-start;gap:8px;margin:0;font-size:.82rem;display:inline-flex}.auth-inline-note .material-symbols-outlined{color:var(--color-text-soft);margin-top:1px;font-size:18px}.auth-submit{margin-top:var(--space-2);width:100%;min-height:44px}.auth-note{color:var(--color-text-muted);margin:0;font-size:.82rem}.auth-note-prominent{font-size:1rem;line-height:1.5}@media (width<=960px){.auth-shell{grid-template-columns:1fr;min-height:0}.auth-hero{display:none}.auth-page-login .auth-logo-wrap{--auth-hero-image:url(../img/hero-branch.jpg);--auth-hero-position:center center;min-height:182px;margin:calc(var(--auth-panel-padding) * -1) calc(var(--auth-panel-padding) * -1) clamp(22px, 3vw, 36px);background-color:#798f47;background-image:linear-gradient(#00000057, #00000057), var(--auth-hero-image);background-position:center center, var(--auth-hero-position);background-repeat:no-repeat,no-repeat;background-size:cover,cover;border-radius:24px 24px 0 0;align-items:center;padding:40px 24px}.auth-page-login .auth-logo-default{display:none}.auth-page-login .auth-logo-mobile{display:block}}@media (width<=640px){.auth-page{padding:var(--space-3)}.auth-row{flex-direction:column;align-items:flex-start}.auth-checklist{grid-template-columns:1fr}.auth-footer-row{flex-direction:column;align-items:flex-start}}}@layer utilities{.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.ui-tone-muted{color:var(--color-text-muted)}.ui-tone-error{color:var(--color-danger)}.ui-tone-success{color:var(--color-accent-green)}.ui-tone-warning{color:var(--color-text-warning)}[data-ui-busy=true]{opacity:.7}a[data-ui-busy=true],button[data-ui-busy=true]{pointer-events:none}}
