.expandable-action-rail>.action-rail-toggle{display:none}.expandable-action-rail>.action-rail-items{display:contents}@media (width<=760px){.hosted-shell .expandable-action-rail.expandable-action-rail.expandable-action-rail{padding:0 8px calc(8px + env(safe-area-inset-bottom,0px));height:calc(88px + env(safe-area-inset-bottom,0px));flex-flow:column;justify-content:flex-start;align-items:stretch;gap:0;transition:height .18s;display:flex;overflow:visible}.hosted-shell .expandable-action-rail.expandable-action-rail.is-expanded{height:calc(var(--action-rows-height,44px) + 42px + env(safe-area-inset-bottom,0px));max-height:80dvh}.hosted-shell .expandable-action-rail.expandable-action-rail.expandable-action-rail.action-rail-static{height:calc(58px + env(safe-area-inset-bottom,0px));padding-top:4px}.hosted-shell .expandable-action-rail>.action-rail-toggle{width:72px;min-width:72px;height:32px;min-height:32px;color:var(--color-text-muted);background:0 0;border:0;border-radius:12px;flex:0 0 32px;justify-content:center;align-self:center;align-items:center;margin:0 auto;padding:0;display:flex}.hosted-shell .expandable-action-rail .action-rail-toggle>.action-rail-chevron{border-top:2px solid;border-left:2px solid;width:11px;height:11px;transition:transform .18s;display:block;transform:translateY(3px)rotate(45deg)}.hosted-shell .expandable-action-rail.is-expanded .action-rail-toggle>.action-rail-chevron{display:block;transform:translateY(-3px)rotate(225deg)}.hosted-shell .expandable-action-rail>.action-rail-items{overscroll-behavior:contain;flex:1;justify-content:space-evenly;align-items:center;gap:8px;min-height:0;display:flex;overflow:auto}.hosted-shell .expandable-action-rail.is-expanded>.action-rail-items{height:auto;max-height:calc(80dvh - 42px - env(safe-area-inset-bottom,0px));flex:none;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;align-items:stretch;gap:8px;display:grid}.hosted-shell .expandable-action-rail.is-expanded .action-rail-items>button{text-align:left;white-space:normal;overflow-wrap:anywhere;flex-direction:row;flex:auto;justify-content:flex-start;align-items:center;gap:10px;width:100%;min-width:0;height:auto;min-height:44px;padding:10px;display:flex}.hosted-shell .expandable-action-rail.is-expanded .action-rail-items>button>span{min-width:0;display:inline}.hosted-shell .expandable-action-rail .action-rail-items svg{flex-shrink:0}.hosted-shell .content:has(.expandable-action-rail.expandable-action-rail){padding-bottom:calc(var(--mobile-action-height,88px) + 16px);scroll-padding-bottom:calc(var(--mobile-action-height,88px) + 16px)}}@media (prefers-reduced-motion:reduce){.hosted-shell .expandable-action-rail.expandable-action-rail.expandable-action-rail,.action-rail-chevron{transition:none}}.list-controls .list-status-filter{border:1px solid var(--color-border-strong);border-radius:var(--radius-md);background:var(--color-surface);color:var(--color-text);font-size:var(--text-sm);align-items:center;gap:10px;min-height:40px;padding:9px 13px;display:inline-flex;position:relative}.list-status-filter svg{flex-shrink:0}.list-status-filter select{opacity:0;cursor:pointer;width:100%;height:100%;min-height:0;position:absolute;inset:0}.list-status-filter:focus-within{outline:3px solid var(--color-focus);outline-offset:3px}.list-controls .list-search__clear{width:24px;height:24px;min-height:24px;color:var(--color-text-muted);background:0 0;border:0;flex:0 0 24px;justify-content:center;align-items:center;padding:0;font-size:22px;line-height:1;display:inline-flex}.mobile-record-list{display:none}@media (width<=760px){.list-controls .list-status-filter{min-height:44px}.list-controls .list-search__clear{flex-basis:44px;width:44px;height:44px;min-height:44px}.hosted-shell .pinned-actions{z-index:30;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));border:1px solid var(--color-border);background:var(--color-surface);border-radius:16px 16px 0 0;flex-flow:row;justify-content:center;align-items:center;gap:8px;margin:0;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -4px 18px #0002}.list-new-action .btn{border-radius:11px;height:44px;min-height:44px}.hosted-shell .record-actions{justify-content:space-evenly}.hosted-shell .record-actions button{background:var(--color-surface-2);width:44px;height:44px;min-height:44px;color:var(--color-text);border-radius:11px;flex:0 0 44px;justify-content:center;align-items:center;padding:0;display:flex}.record-actions .record-action-label{display:none}.hosted-shell .content:has(.pinned-actions){padding-bottom:calc(var(--list-action-height,80px) + 16px);scroll-padding-bottom:calc(var(--list-action-height,80px) + 16px)}.hosted-shell.menu-open .pinned-actions{visibility:hidden}.hosted-customers .customer-list-table,.hosted-products .product-list-table,.hosted-invoices .invoice-table{display:none}.mobile-record-list{gap:10px;padding:12px;display:grid}.mobile-list-card{border:1px solid var(--color-border);background:var(--color-surface);border-radius:12px;min-width:0;position:relative;overflow:hidden}.mobile-list-card__open{text-align:left;width:100%;color:var(--color-text);overflow-wrap:anywhere;background:0 0;border:0;border-radius:12px;flex-direction:column;gap:10px;padding:16px;display:flex}.mobile-list-card__status{justify-content:flex-end;align-self:stretch;display:flex}.mobile-list-card__content{flex-direction:column;gap:8px;min-width:0;display:flex}.mobile-list-card:has(.mobile-list-card__edit) .mobile-list-card__open{padding-bottom:60px}.mobile-list-card__edit{background:var(--color-surface-2);width:44px;height:44px;min-height:44px;color:var(--color-text);border:1px solid var(--color-border);border-radius:8px;justify-content:center;align-items:center;padding:0;display:flex;position:absolute;bottom:8px;right:8px}}.mobile-list-card__open:focus-visible{outline-offset:-3px}.record-actions:not(.rail-card){gap:8px;display:flex}.list-date-filter{position:relative}.list-date-filter__fields{align-items:center;gap:12px;display:flex}.list-controls .list-date-filter__trigger{display:none}@media (width<=760px){.list-controls .list-date-filter__trigger{border:1px solid var(--color-border-strong);border-radius:var(--radius-md);background:var(--color-surface);width:44px;height:44px;min-height:44px;color:var(--color-text);justify-content:center;align-items:center;padding:0;display:flex}.list-controls .list-date-filter__trigger.is-active{background:var(--color-accent-soft);color:var(--color-accent)}.list-date-filter__fields{z-index:35;border:1px solid var(--color-border);background:var(--color-surface);width:min(280px,100vw - 48px);box-shadow:var(--shadow-sm);border-radius:12px;padding:16px;display:none;position:absolute;top:calc(100% + 8px);right:0}.list-date-filter__fields.is-open{flex-direction:column;align-items:stretch;display:flex}.list-date-filter__fields label{justify-content:space-between;display:flex}.list-date-filter__fields input{width:190px;min-width:0;max-width:80%;min-height:44px}}.list-date-filter{align-items:center;gap:4px;display:flex}.list-controls .list-date-filter__clear{min-height:0;color:var(--color-accent);font-size:var(--text-sm);background:0 0;border:0;padding:0;text-decoration:underline;position:absolute;bottom:100%;right:0}.date-clear-mobile{display:none}@media (width<=760px){.list-controls .list-date-filter__clear{width:44px;height:44px;min-height:44px;color:var(--color-text-muted);flex:0 0 44px;justify-content:center;align-items:center;padding:0;font-size:22px;text-decoration:none;display:flex;position:static}.date-clear-mobile{display:inline}.date-clear-desktop{display:none}}.mobile-list-card__edit--accent{color:var(--color-accent);border-color:var(--color-accent-soft)}.business-detail.settings-surface{background:0 0;border:0;padding:0}.hosted-settings{outline:none;min-width:0}.hosted-settings form{margin:0;display:block}.hosted-settings fieldset{border:0;min-width:0;margin:0;padding:0}.hosted-settings .page-header__title{letter-spacing:normal}.hosted-settings .field__label{display:inline-block}.hosted-settings .input,.hosted-settings .select,.hosted-settings .textarea{min-width:0}.hosted-settings .checkbox{align-items:center;gap:8px;min-height:44px;display:flex}.hosted-settings .checkbox input{width:18px;height:18px;min-height:18px}.hosted-settings .number-preview{background:var(--color-surface-2);font-family:var(--font-mono);overflow-wrap:anywhere}.hosted-settings .settings-message{margin-bottom:var(--space-4)}.hosted-shell .sidebar__sublink{text-align:left;background:0 0;min-height:44px}.hosted-shell .sidebar__sublink.is-active{background:#c95c2e2e}@media (width<=760px){.hosted-settings .form-grid{grid-template-columns:minmax(0,1fr)}.hosted-settings .col-span-2{grid-column:auto}.hosted-settings .input,.hosted-settings .select,.hosted-settings .textarea{min-height:44px}.hosted-settings .page-header{flex-wrap:wrap;gap:12px}.hosted-settings .card__body{padding:16px}}.hosted-messages{min-width:0}.mail-settings{margin-bottom:var(--space-4)}.mail-history{margin-top:var(--space-4);min-width:0}.mail-history-list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.mail-history-list li{border:1px solid var(--color-border);border-radius:var(--radius-sm);overflow-wrap:anywhere;padding:12px}.mail-history .row{flex-wrap:wrap}.hosted-messages .tpl-nav{margin:0}.hosted-messages .tpl-item{min-height:0;line-height:normal}.hosted-messages .tpl-item__desc{line-height:1.5}.message-editor{flex-direction:column;gap:8px;min-width:0;display:flex}.message-toolbar{flex-wrap:wrap;gap:6px;display:flex}.message-toolbar .btn{min-height:34px;padding:6px 10px}.message-editable{white-space:pre-wrap;outline:none;min-height:180px;max-height:340px;line-height:1.6;overflow:auto}.message-editable p,.message-render p{margin:0 0 1em;line-height:1.6}.message-editable p:last-child,.message-render p:last-child{margin-bottom:0}.message-editable ol,.message-editable ul,.message-render ol,.message-render ul{margin:0 0 1em;padding-left:24px}.message-editable a,.message-render a{overflow-wrap:anywhere;text-decoration:underline}.message-variables{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.message-variables button{text-align:center;cursor:pointer;border:0;justify-content:center;align-items:center;min-height:22px;padding:2px 10px;line-height:18px;display:inline-flex}.message-render{background:var(--color-surface-2);border:1px solid var(--color-border);border-radius:var(--radius-sm);overflow-wrap:anywhere;white-space:pre-wrap;padding:12px}.message-link{flex-wrap:wrap}.message-link .input{flex:1;min-width:180px}.customer-dialog.message-composer{width:min(680px,100vw - 32px);max-height:90dvh}.message-composer .banner{margin-top:0}.message-composer .modal__footer{flex-wrap:wrap}.message-tabs{gap:8px;margin-bottom:16px;display:flex}.message-tabs [aria-selected=true]{background:var(--color-accent-soft);border-color:var(--color-accent);color:var(--color-accent)}.message-composer .input{min-height:0}.message-composer .field__label{display:inline-block}.message-attachment{overflow-wrap:anywhere;flex-wrap:wrap}.message-hint{margin:-8px 0 0}.whatsapp-confirm{border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:12px}.whatsapp-confirm .banner{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.whatsapp-confirm .row{flex-wrap:wrap}@media (width<=760px){.hosted-messages .template-actions .action-rail-items>.tpl-item{flex:0 0 44px;justify-content:center;width:44px;min-height:44px;padding:0}.hosted-messages .template-actions:not(.is-expanded) .tpl-item__text{display:none}.hosted-messages .template-actions.is-expanded .action-rail-items>.tpl-item{padding:4px 10px}.hosted-shell .template-actions .action-rail-items>.tpl-item>.tpl-item__icon{flex:0 0 32px;justify-content:center;align-items:center;display:flex}.hosted-messages .template-actions .tpl-item__desc{display:none}.hosted-messages .template-actions .tpl-item--active .tpl-item__icon{background:var(--color-accent-soft);color:var(--color-accent)}.message-toolbar .btn,.message-composer .input{min-height:44px}.message-composer .modal__body{padding:16px}.message-composer .modal__footer{gap:8px;padding:12px}.hosted-messages .tpl-nav{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.hosted-messages .tpl-item{padding:10px}.hosted-messages .tpl-item__desc{display:none}}.business-detail.customer-surface{background:0 0;border:0;padding:0}.hosted-customers{outline:none;min-width:0}.hosted-customers .page-header__title,.hosted-customers .detail-head__title{letter-spacing:normal}.hosted-customers .table-wrap{max-width:100%;overflow-x:auto}.hosted-customers .table{min-width:640px}.hosted-customers .table th,.hosted-customers .table td{white-space:nowrap;overflow-wrap:normal}.hosted-customers td a{color:inherit;text-decoration:none}.hosted-customers td a:focus-visible{outline:2px solid var(--color-accent);outline-offset:3px}.hosted-customers .detail-row__v{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.hosted-customers .detail-panel{min-width:0}.hosted-customers .detail-card{margin-top:var(--space-4)}.customer-policy-note{padding:0 var(--space-4) var(--space-3)}.customer-dialog{color:var(--color-text);border:1px solid var(--color-border);width:min(600px,100vw - 32px);max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow-y:auto}.customer-dialog::backdrop{background:#0008}.customer-dialog form{margin:0;display:block}.customer-dialog .modal__footer{background:var(--color-surface);z-index:1;position:sticky;bottom:0}.customer-dialog .banner{margin-top:var(--space-4)}.customer-dialog .field__label{display:inline-block}.customer-dialog .input,.customer-dialog .select,.customer-dialog .textarea,.hosted-customers .list-tab,.hosted-customers .list-pager__step,.hosted-customers .rail-action{min-height:44px}@media (width<=760px){.hosted-customers .detail-with-rail{gap:var(--space-4);flex-direction:column-reverse;display:flex}.hosted-customers .detail-with-rail__rail{width:100%;position:static}.hosted-customers .rail-actions{flex-wrap:wrap;display:flex}.hosted-customers .rail-action{flex:1}.hosted-customers .detail-row{grid-template-columns:minmax(100px,35%) minmax(0,1fr);gap:12px;display:grid}.hosted-customers .list-controls,.hosted-customers .list-pager,.hosted-customers .list-pager__controls{flex-wrap:wrap}.hosted-customers .list-search{width:100%;min-width:0}.hosted-customers .list-tabs{flex-wrap:wrap}.customer-dialog .form-grid{grid-template-columns:minmax(0,1fr)}.customer-dialog .col-span-2{grid-column:auto}.customer-dialog .modal__body{padding:16px}}.customer-history{margin-top:var(--space-4)}.hosted-customers .customer-history .doc-section{margin-top:0}.hosted-customers .customer-history h2{letter-spacing:normal;font-size:15px}.customer-activity-row{justify-content:space-between;align-items:baseline;gap:16px}.customer-activity-row>span{overflow-wrap:anywhere;min-width:0}.customer-activity-row time{flex-shrink:0}.hosted-customers .doc-section__more .link-button{min-height:0;color:var(--color-accent);font:inherit;cursor:pointer;background:0 0;border:0;padding:0}@media (width<=760px){.customer-activity-row{flex-wrap:wrap;gap:4px}.hosted-customers .doc-section__more .link-button{min-height:44px}}.branding-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.branding-grid{gap:var(--space-5);margin-top:var(--space-4);grid-template-columns:minmax(0,1fr) minmax(0,1fr);display:grid}.branding-grid>*{min-width:0}.hosted-branding fieldset.stack{gap:var(--space-4);flex-direction:column;display:flex}.branding-logo{border:1px solid var(--color-border);background:#fff;border-radius:6px;max-width:160px;max-height:70px;padding:4px}.hosted-branding input[type=file]{width:100%;min-width:0;font-size:14px}.hosted-branding .branding-colour-picker{flex:none;width:44px;height:44px;padding:3px}.hosted-branding .branding-colour-text{flex:none;width:120px}.branding-live{align-self:start}.hosted-branding .settings-swatch{aspect-ratio:1;flex:0 0 28px;width:28px;min-width:28px;height:28px;min-height:28px;padding:0}.branding-preview-stage,.branding-pdf{position:relative}.branding-pdf,.branding-pdf-placeholder{background:var(--color-surface-2);border:1px solid var(--color-border);border-radius:var(--radius-md);margin:8px 0 12px;padding:8px}.branding-pdf-pages:empty:before,.branding-pdf-placeholder:before{content:"";aspect-ratio:210/297;background:#fff;display:block}.branding-pdf canvas{background:#fff;width:100%;height:auto;display:block}.branding-pdf canvas+canvas{margin-top:8px}.branding-preview-status{background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-border);border-radius:4px;margin:0;padding:8px;position:absolute;top:8px;left:8px;right:8px}.branding-preview-actions{flex-wrap:wrap;align-items:center;gap:8px;min-height:44px;display:flex}.branding-preview-actions>.btn{box-sizing:border-box;height:44px;min-height:44px}.branding-dialog{width:min(1000px,100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);color:var(--color-text);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);padding:20px;overflow:auto}.branding-dialog::backdrop{background:#0009}.branding-dialog .branding-heading{margin-bottom:12px}.branding-dialog h2{margin:0}@media (width<=1000px){.branding-grid{grid-template-columns:minmax(0,1fr)}}@media (width<=760px){.hosted-branding .segmented{flex-wrap:wrap;display:flex}.hosted-branding .segmented__option{min-height:44px;padding:8px 12px}.hosted-branding .settings-swatch{flex-basis:44px;width:44px;min-width:44px;height:44px;min-height:44px}.hosted-branding .toggle{min-height:44px}.branding-dialog{padding:12px}}.hosted-reminders{outline:none;min-width:0}.reminder-offsets{border:0;flex-direction:column;gap:8px;margin:0;padding:0;display:flex}.reminder-offset{flex-wrap:wrap;align-items:center}.reminder-offset .input{flex:none;width:110px}.reminder-offset__label{flex:1;min-width:140px}.reminder-preview-table td,.reminder-preview-table th{white-space:nowrap}.reminder-preview-table td:nth-child(3){white-space:normal;overflow-wrap:anywhere}.reminder-exclusions summary{cursor:pointer}.hosted-reminders .mono{font-family:var(--font-mono)}@media (width<=760px){.reminder-offset .input,.reminder-offset .btn{min-height:44px}}.hosted-reminders-page{outline:none;min-width:0}.hosted-reminders-page .reminder-table table{min-width:1080px}.reminder-state{white-space:nowrap}.reminder-state--scheduled,.reminder-state--pending{background:var(--color-accent-soft);color:var(--color-accent)}.reminder-state--paused,.reminder-state--off,.reminder-state--no-email,.reminder-state--unavailable{background:var(--color-neutral-soft);color:var(--color-text)}.reminder-state--manual-whatsapp{background:var(--color-success-soft,var(--color-neutral-soft));color:var(--color-success,var(--color-text))}.reminder-detail-title{flex-wrap:wrap;gap:11px}.hosted-reminders-page .doc-section{min-width:0}@media (width<=760px){.hosted-reminders-page .reminder-table{display:none}}.hosted-reminders-page .reminder-table td,.hosted-reminders-page .reminder-table th{white-space:nowrap}.hosted-reminders-page .reminder-table td:nth-child(2){white-space:normal;min-width:160px}.reminder-send.btn{padding-left:12px;padding-right:12px}.payment-surface{background:0 0!important;border:0!important;padding:0!important}.payment-surface>h3,.payment-surface>.role-label{display:none}.hosted-payments{outline:none;min-width:0}.hosted-payments .page-header__title{letter-spacing:normal}.payment-table{max-width:100%;overflow-x:auto}.hosted-payments .payment-table table{min-width:720px}.payment-reference{overflow-wrap:anywhere;max-width:240px}.payment-method{text-transform:uppercase}.payment-cards .pill{background:var(--color-neutral-soft);color:var(--color-text)}.payment-invoice{font:inherit;font-family:var(--font-mono);min-height:0;color:var(--color-text);text-align:left;background:0 0;padding:0}.payment-empty{padding:32px}.payment-mobile-sort{display:none}.invoice-payments.doc-section{min-width:0;margin-top:0}.invoice-payments .payment-table table{min-width:580px}.payment-composer-hook{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:16px;display:flex}.payment-dialog.customer-dialog{width:min(440px,100vw - 32px);max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:hidden}.payment-dialog .modal__header,.payment-dialog .modal__footer{flex-shrink:0}.payment-dialog .modal__body{min-height:0;overflow-y:auto}.payment-dialog .modal__footer{position:static}.payment-dialog .payment-fields{border:0;min-width:0;margin:0;padding:0}.payment-dialog .input,.payment-dialog .select{min-height:0}.payment-dialog .textarea{min-height:72px}.payment-dialog .field__label{display:block}.payment-dialog .btn,.payment-dialog .modal__close{min-height:0}.payment-dialog .modal__close{padding:2px 6px}.payment-dialog .banner{margin:0 0 16px}.payment-dialog fieldset:disabled{opacity:.7}.payment-history-card{overflow-wrap:anywhere;flex-direction:column;gap:8px;padding:16px;display:flex}.payment-row-actions{justify-content:flex-end;gap:8px;display:flex}.payment-row-actions button{background:var(--color-surface-2);width:44px;height:44px;min-height:44px;color:var(--color-text);border:1px solid var(--color-border);border-radius:11px;justify-content:center;align-items:center;padding:0;display:flex}@media (width<=760px){.hosted-payments .payment-table,.invoice-payments .payment-table{display:none}.hosted-payments .list-search{width:100%;min-width:0}.payment-mobile-sort{font-size:var(--text-sm);align-items:center;gap:12px;margin-bottom:16px;display:flex}.payment-mobile-sort select{flex:1;min-width:0;min-height:44px}.hosted-payments .list-pager__step,.invoice-payments .list-pager__step{width:44px;min-width:44px;height:44px;min-height:44px;padding:0}.hosted-payments .list-pager__controls,.invoice-payments .list-pager__controls{gap:8px}.invoice-payments.doc-section{padding:16px}.invoice-payments .payment-cards{padding:0}.invoice-payments.doc-section>.list-pager{margin:16px -16px -16px;padding-left:16px;padding-right:16px}.payment-dialog .input,.payment-dialog .select,.payment-dialog .btn,.payment-dialog .modal__close{min-height:44px}.payment-dialog .input,.payment-dialog .select,.payment-dialog .textarea{font-size:16px}.payment-dialog .modal__header,.payment-dialog .modal__body,.payment-dialog .modal__footer{padding:16px}.payment-dialog .modal__footer{padding-bottom:max(16px,env(safe-area-inset-bottom,0px))}.payment-dialog .modal__close{flex:0 0 44px;width:44px;padding:0}.payment-dialog .modal__footer .btn{white-space:normal;max-width:100%}}.hosted-imports{min-width:0}.import-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.import-steps{flex-wrap:wrap;gap:8px;margin:0}.import-source{flex-wrap:wrap;align-items:center;gap:16px}.import-source__icon{font-size:1.6rem}.import-source__text{flex:1;min-width:200px}.import-source__text .form-section-title,.import-source__text p{margin:0}.import-resume{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}.import-file-button{cursor:pointer;position:relative;overflow:hidden}.import-file-button input[type=file]{opacity:0;cursor:pointer;position:absolute;inset:0}.link-button{font:inherit;color:var(--color-accent);cursor:pointer;background:0 0;border:0;min-height:0;padding:0;text-decoration:underline}.import-saved{flex-wrap:wrap;align-items:flex-end;gap:12px}.import-saved .field{flex:1;min-width:220px}.import-badges{flex-wrap:wrap;gap:8px;margin:12px 0}.hosted-imports .import-table table{min-width:960px}.hosted-imports .import-table td .input{min-width:150px}.hosted-imports .import-lines table{min-width:640px}.import-status-col{min-width:200px}.import-group{min-width:0}.import-group__title{flex-wrap:wrap;align-items:center;gap:8px 10px}.import-group__title .form-section-title{margin:0}.hosted-imports .import-group__title input[type=checkbox],.hosted-imports .import-table input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--color-accent);cursor:pointer;flex:0 0 18px;margin:0;padding:0}.hosted-imports .import-table input[type=checkbox]{display:block}.hosted-imports .is-inactive td{opacity:.6}.hosted-imports .table--cells-top td{vertical-align:top}.import-done-actions{flex-wrap:wrap;justify-content:center;gap:12px}.customer-dialog.import-help{width:min(720px,100vw - 32px);max-height:90dvh}.import-help section p{margin:8px 0 0;line-height:1.6}.text-xs{font-size:var(--text-xs)}@media (width<=760px){.hosted-imports .import-table,.hosted-imports .import-lines{display:block}.hosted-imports .import-file-button{min-height:44px}.hosted-imports .form-grid{grid-template-columns:1fr}}.import-files{gap:6px;margin:12px 0 0;padding:0;list-style:none;display:grid}.import-files li{flex-wrap:wrap;align-items:baseline;gap:6px 12px;display:flex}.import-files__name{overflow-wrap:anywhere;font-weight:600}.import-progress{margin:12px 0 0}.import-queue{flex-wrap:wrap;gap:6px}.import-queue .import-queue__item{cursor:pointer;font:inherit;font-size:var(--text-xs);border:0;border-radius:50%;flex:0 0 30px;justify-content:center;align-items:center;width:30px;min-width:30px;height:30px;min-height:0;padding:0;line-height:1;display:inline-flex}@media (width<=760px){.import-queue .import-queue__item{flex-basis:44px;width:44px;min-width:44px;height:44px;min-height:44px}}.import-queue .import-queue__item.is-current{outline:2px solid var(--color-text);outline-offset:1px;font-weight:700}.import-pane{flex-wrap:wrap;align-items:flex-start;gap:16px}.import-pane__page{flex:360px;min-width:min(320px,100%);max-width:560px}.import-pane__fields{flex:360px;min-width:min(320px,100%)}.import-page{max-height:70vh;overflow:auto}.import-page canvas{border:1px solid var(--color-border);max-width:100%;height:auto;display:block}.import-flags{margin:0;padding-left:1.2em}.import-nav{flex-wrap:wrap;justify-content:space-between;gap:12px}.import-nav .row{flex-wrap:wrap;gap:8px}@media (width<=760px){.hosted-imports .import-pane__page,.hosted-imports .import-pane__fields{flex-basis:100%;max-width:none}.hosted-imports .import-page{max-height:50vh}}.data-tabs{margin-bottom:var(--space-4);flex-wrap:wrap}.hosted-exports{min-width:0}.export-datasets{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin-top:16px;display:grid}.hosted-exports .checkbox{min-width:0;font-weight:400}.hosted-exports .checkbox input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--color-accent);flex:0 0 18px;margin:0;padding:0}.export-job{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.export-job>div:first-child{flex:1;min-width:min(240px,100%)}.export-job p{margin:6px 0}.export-actions{flex-wrap:wrap;gap:8px}@media (width<=760px){.export-datasets{grid-template-columns:minmax(0,1fr)}.hosted-exports .export-actions{width:100%}}.business-detail.reports-surface{background:0 0;border:0;min-width:0;padding:0}.hosted-reports{min-width:0}.hosted-reports .dash-head__date{line-height:normal}.hosted-reports .toolbar label{font-weight:400}.hosted-reports .toolbar .input,.hosted-reports .toolbar .select{max-width:100%;height:38px;min-height:0}.hosted-reports .toolbar .select[aria-label=Customer]{max-width:280px}.hosted-reports .dash-panel,.hosted-reports .rep-row>*{min-width:0}.hosted-reports .rep-kpi__value{overflow-wrap:anywhere}.hosted-reports .rep-row--split{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}.hosted-reports .rep-row--even{grid-template-columns:repeat(2,minmax(0,1fr))}.hosted-reports .table-wrap{overflow-x:auto}.hosted-reports .rep-panel__head{flex-wrap:wrap}.hosted-reports .report-month-pages{font-size:var(--text-sm);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:12px;display:flex}@media (width<=900px){.hosted-reports .rep-row--split,.hosted-reports .rep-row--even{grid-template-columns:minmax(0,1fr)}}@media (width<=760px){.hosted-reports .toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);display:grid}.hosted-reports .toolbar label{flex-direction:column;align-items:stretch;gap:6px;display:flex}.hosted-reports .toolbar .input,.hosted-reports .toolbar .select{width:100%;min-width:0;max-width:100%;height:44px;min-height:44px}.hosted-reports .toolbar .select[aria-label=Customer]{max-width:100%}.hosted-reports .rep-item__top,.hosted-reports .rep-age__label{flex-wrap:wrap;gap:4px}.hosted-reports .rep-item__name{white-space:normal;overflow-wrap:anywhere}.hosted-reports .rep-legend{flex-wrap:wrap}}.business-detail.dashboard-surface{background:0 0;border:0;padding:0}.hosted-dashboard{min-width:0}.hosted-dashboard .dash-head__date{line-height:normal}.hosted-dashboard .dash-recent__row{text-align:left;width:100%;color:var(--color-text);border:0;border-top:1px solid var(--color-border);background:0 0;border-radius:0;padding:13px 22px}.hosted-dashboard .dash-recent__row:hover{background:var(--color-surface-2)}.hosted-dashboard .dash-recent__row:focus-visible{outline-offset:-3px}.hosted-dashboard .dash-recent__viewall{min-height:0;padding:2px 6px}.hosted-dashboard .quick-action:disabled{cursor:not-allowed}.hosted-dashboard .quick-action:disabled:hover{background:var(--color-surface-2);border-color:var(--color-border)}.hosted-dashboard .dash-kpi__value,.hosted-products .stat-card__value{overflow-wrap:anywhere}.hosted-dashboard .dash-recent__cols,.hosted-dashboard .dash-recent__row{column-gap:8px}.hosted-customers .detail-card.customer-account{margin-top:0}.product-credit-summary{font-size:var(--text-sm);color:var(--color-text-muted);margin:0 0 18px}@media (width<=760px){.hosted-dashboard .dash-recent__viewall{min-height:44px}.hosted-dashboard .dash-mid{grid-template-columns:minmax(0,1fr)}.hosted-dashboard .dash-recent__cols{display:none}.hosted-dashboard .dash-recent__row{grid-template-columns:minmax(0,1fr) auto;row-gap:8px;padding:14px 16px}.hosted-dashboard .dash-recent__num,.hosted-dashboard .dash-recent__date{display:none}.hosted-dashboard .dash-recent__status{grid-area:1/1/auto/-1;justify-self:end}.hosted-dashboard .dash-recent__cust{grid-area:2/1}.hosted-dashboard .dash-recent__amount{grid-area:2/2}.hosted-dashboard .dash-recent__head{gap:12px;padding:14px 16px}}.dashboard-surface>h3,.dashboard-surface>.role-label{display:none}.document-pdf-dialog{width:min(900px,100vw - 32px);height:92dvh;max-height:calc(100dvh - 24px)}.document-pdf-dialog .modal__body{flex:1;min-height:0;padding:0 12px}.document-pdf-dialog .modal__header,.document-pdf-dialog .modal__footer{flex-shrink:0}.document-pdf-dialog .modal__footer{flex-wrap:wrap}.document-pdf-dialog .modal__header{flex-wrap:wrap;gap:12px}@media (width<=760px){.document-pdf-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px)}.document-pdf-dialog .modal__header,.document-pdf-dialog .modal__footer{padding:12px}.document-pdf-dialog .modal__body{padding:0 6px}}.hosted-statements{min-width:0}.hosted-statements .page-header__title{letter-spacing:normal}.hosted-statements .input,.hosted-statements .select,.statement-range-dialog .input{min-height:0}.hosted-statements .field__label{display:inline-block}.statement-detail{margin-top:var(--space-5)}.hosted-statements .table-wrap{max-width:100%;overflow-x:auto}.hosted-statements .statement-ledger{min-width:520px}.hosted-statements .statement-ledger td{overflow-wrap:anywhere}.hosted-statements .list-pager,.hosted-statements .list-pager__controls{flex-wrap:wrap}.hosted-statements .doc-paper__issuer,.hosted-statements .doc-paper__party{overflow-wrap:anywhere}.statement-range-dialog{width:min(440px,100vw - 32px)}.statement-range-dialog .checkbox input{flex:0 0 16px;width:16px;height:16px;min-height:0;padding:0}@media (width<=1100px){.hosted-statements .doc-detail{grid-template-columns:minmax(0,1fr)}.hosted-statements .doc-detail__rail{position:static}}@media (width<=760px){.hosted-statements .form-grid{grid-template-columns:minmax(0,1fr)}.hosted-statements .col-span-2{grid-column:auto}.hosted-statements .input,.hosted-statements .select,.statement-range-dialog .input{min-height:44px;font-size:16px}.hosted-statements .doc-paper__band,.hosted-statements .doc-paper__body{padding:16px}.hosted-statements .doc-paper__band{flex-wrap:wrap;gap:12px}.hosted-statements .statement-actions{z-index:30;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));border-radius:16px 16px 0 0;flex-flow:row;justify-content:space-evenly;align-items:center;gap:12px;display:flex;position:fixed;inset:auto 0 0;overflow-x:auto}.hosted-statements .statement-actions button{flex:0 0 44px;justify-content:center;width:44px;height:44px;min-height:44px;padding:0}.hosted-statements .statement-actions button span{display:none}.hosted-shell .content:has(.statement-actions){padding-bottom:calc(var(--list-action-height,80px) + 16px);scroll-padding-bottom:calc(var(--list-action-height,80px) + 16px)}.hosted-shell.menu-open .statement-actions{visibility:hidden}}.business-detail.product-surface{background:0 0;border:0;padding:0}.hosted-products{outline:none;min-width:0}.hosted-products .page-header__title,.hosted-products .detail-head__title{letter-spacing:normal}.hosted-products .detail-head__title,.hosted-products .detail-head__sub{overflow-wrap:anywhere}.hosted-products .detail-avatar{flex-shrink:0}.hosted-products .table-wrap{max-width:100%;overflow-x:auto}.hosted-products .table{min-width:640px}.hosted-products .table th,.hosted-products .table td{white-space:nowrap;overflow-wrap:normal}.hosted-products td a{color:inherit;text-decoration:none}.hosted-products td a:focus-visible{outline:2px solid var(--color-accent);outline-offset:3px}.hosted-products .detail-row__v,.product-description{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.hosted-products .detail-body>*{min-width:0}@media (width<=760px){.hosted-products .page-header{flex-direction:column}.hosted-products .page-header>.row{flex-wrap:wrap}.hosted-products .detail-body{grid-template-columns:minmax(0,1fr);display:grid}.hosted-products .detail-row{grid-template-columns:minmax(100px,35%) minmax(0,1fr);gap:12px;display:grid}.hosted-products .list-controls,.hosted-products .list-pager,.hosted-products .list-pager__controls{flex-wrap:wrap}.hosted-products .list-search{width:100%;min-width:0}.hosted-products .list-tab{min-height:44px}}.hosted-products .product-detail__cards{flex-direction:column;gap:18px;min-width:0;display:flex}.hosted-products .product-detail--read-only{grid-template-columns:minmax(0,1fr)}.hosted-products .product-detail .rail-action{min-height:44px}@media (width<=760px){.hosted-products .product-detail{display:block}.hosted-products .product-detail .detail-with-rail__rail{width:100%;position:static}}.customer-dialog.erasure-dialog{width:min(440px,100vw - 32px);max-width:calc(100vw - 32px);overflow:hidden}.erasure-dialog .modal__header,.erasure-dialog .modal__footer{flex-shrink:0}.erasure-dialog .modal__body{min-height:0;overflow-y:auto}.erasure-dialog .modal__footer{flex-wrap:wrap;position:static}.erasure-dialog .btn,.erasure-dialog .modal__close{min-height:0}.erasure-dialog .modal__close{padding:2px 6px}.erasure-dialog .erasure-copy{margin:0;line-height:normal}.erasure-list{margin:0;padding-left:1.2em}.erasure-error{margin-top:12px}@media (width<=760px){.erasure-dialog .btn,.erasure-dialog .modal__close{min-height:44px}.erasure-dialog .modal__close{flex:0 0 44px;width:44px;padding:0}.erasure-dialog .modal__header,.erasure-dialog .modal__body,.erasure-dialog .modal__footer{padding:16px}.erasure-dialog .modal__footer{padding-bottom:max(16px,env(safe-area-inset-bottom,0px))}.erasure-dialog .btn{white-space:normal;max-width:100%}}.invoice-surface{background:0 0!important;border:0!important;padding:0!important}.invoice-surface>h3,.invoice-surface>.role-label{display:none}.hosted-invoices .list-controls{flex-wrap:wrap;gap:16px;margin-bottom:18px;display:flex}.hosted-invoices .invoice-search{flex:1;min-width:200px}.invoice-dates{gap:12px;display:flex}.hosted-invoices .tabs{flex-wrap:wrap;flex-basis:100%;gap:4px;display:flex}.hosted-invoices .tab{min-height:40px}.hosted-invoices .tab--active{background:var(--color-accent);color:#fff}.hosted-invoices .invoice-number{color:var(--color-text);font:inherit;font-family:var(--font-mono);text-align:left;background:0 0;border:0;align-items:center;padding:0;display:flex}.hosted-invoices .invoice-empty{padding:32px}.invoice-mobile-list{display:none}.hosted-invoices .rail-fact__v{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.hosted-invoices .doc-paper__issuer,.hosted-invoices .doc-paper__party{overflow-wrap:anywhere}.hosted-invoices .doc-paper__lines td:first-child{white-space:pre-wrap;overflow-wrap:anywhere;min-width:160px}.hosted-invoices .doc-paper__lines{min-width:620px}.hosted-invoices .invoice-tools{gap:12px;margin:12px 0;display:flex}.invoice-pdf-preview{border:0;width:100%;height:65vh}@media (width<=1100px){.hosted-invoices .doc-detail{grid-template-columns:minmax(0,1fr)}.hosted-invoices .doc-detail__rail{grid-row:1;position:static}.hosted-invoices .rail-actions{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));display:grid}}@media (width<=640px){.hosted-invoices .invoice-table{display:none}.invoice-mobile-list{gap:10px;padding:12px;display:grid}.invoice-mobile-card{text-align:left;border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text);overflow-wrap:anywhere;border-radius:12px;flex-wrap:wrap;gap:10px;min-width:0;padding:16px;display:flex}.invoice-mobile-card>span:not(.badge){flex-basis:100%}.invoice-dates{flex-wrap:wrap;width:100%}.invoice-dates label{flex:1;min-width:125px}.hosted-invoices .doc-paper__body,.hosted-invoices .doc-paper__band{padding:18px}.hosted-invoices .doc-paper__meta{grid-template-columns:1fr}.hosted-invoices .doc-paper__dates{text-align:left}.hosted-invoices .doc-paper__date-row{justify-content:flex-start}}.invoice-activity{padding:0;list-style:none}.invoice-activity li{flex-wrap:wrap;justify-content:space-between;gap:12px;padding:8px 0;display:flex}.invoice-activity time{color:var(--color-text-muted);font-size:var(--text-sm)}.hosted-invoices{outline:none;min-width:0}.hosted-invoices .list-tabs,.hosted-invoices .list-controls__extra{flex-wrap:wrap}.hosted-invoices .list-tab,.hosted-invoices .list-pager__step{min-height:44px}.hosted-invoices .list-pager,.hosted-invoices .list-pager__controls{flex-wrap:wrap}.hosted-invoices .invoice-table{max-width:100%;overflow-x:auto}.hosted-invoices .invoice-table table{min-width:760px}@media (width<=640px){.hosted-invoices .list-search{width:100%;min-width:0}.hosted-invoices .list-controls__extra{margin-left:auto}.hosted-invoices .list-controls__extra label{flex-wrap:nowrap}.hosted-invoices .list-controls__extra input{max-width:100%}}.hosted-invoice-editor .invoice-fields{border:0;gap:18px;min-width:0;margin:0;padding:0;display:grid}.hosted-invoice-editor .doc-editor__head{flex-wrap:wrap}.hosted-invoice-editor .doc-editor__form,.hosted-invoice-editor .doc-section{min-width:0}.hosted-invoice-editor .invoice-editor-table{max-width:100%;overflow:auto}.hosted-invoice-editor .invoice-editor-table table{min-width:0}.hosted-invoice-editor .invoice-editor-table th:first-child{width:230px}.hosted-invoice-editor .invoice-editor-table input,.hosted-invoice-editor .invoice-discount{min-width:0}.hosted-invoice-editor .invoice-discount select{flex-shrink:0;width:92px}.hosted-invoice-editor .doc-preview__party,.hosted-invoice-editor .doc-preview__issuer{overflow-wrap:anywhere}.invoice-editor-dock{display:none}@media (width<=760px){.hosted-invoice-editor .doc-editor__actions{display:none}.hosted-invoice-editor .doc-editor__head{gap:10px}.hosted-invoice-editor .doc-editor__heading{flex-basis:100%}.hosted-invoice-editor .form-grid{grid-template-columns:minmax(0,1fr)}.hosted-invoice-editor .col-span-2{grid-column:auto}.hosted-invoice-editor .doc-section{padding:16px}.hosted-invoice-editor .invoice-editor-table table{min-width:0;display:block}.hosted-invoice-editor .invoice-editor-table thead{display:none}.hosted-invoice-editor .invoice-editor-table tbody{gap:16px;display:grid}.hosted-invoice-editor .invoice-editor-table tr{border:1px solid var(--color-border);border-radius:8px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:12px;display:grid}.hosted-invoice-editor .invoice-editor-table td{border:0;min-width:0;padding:0;display:block}.hosted-invoice-editor .invoice-editor-table td:first-child{grid-column:1/-1;min-width:0;max-width:none}.hosted-invoice-editor .invoice-editor-table td:before{content:attr(data-label);color:var(--color-text-muted);margin-bottom:4px;font-size:12px;display:block}.hosted-invoice-editor .invoice-editor-table input{width:100%;min-width:0}.hosted-invoice-editor .invoice-discount{min-width:0}.hosted-invoice-editor .invoice-editor-table td.table__num{text-align:left}.hosted-invoice-editor .invoice-editor-table button,.hosted-invoice-editor input,.hosted-invoice-editor select{min-height:44px}.hosted-invoice-editor .invoice-editor-dock{z-index:30;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));border:1px solid var(--color-border);background:var(--color-surface);border-radius:16px 16px 0 0;flex-flow:row;justify-content:space-evenly;align-items:center;gap:12px;display:flex;position:fixed;bottom:0;left:0;right:0;overflow-x:auto;box-shadow:0 -4px 18px #0002}.hosted-invoice-editor .invoice-editor-dock button{flex:0 0 44px;justify-content:center;align-items:center;width:44px;height:44px;min-height:44px;padding:0;display:flex}.hosted-shell .content:has(.hosted-invoice-editor){padding-bottom:calc(var(--document-actions-height,80px) + 16px);scroll-padding-bottom:calc(var(--document-actions-height,80px) + 16px)}.hosted-shell.menu-open .invoice-editor-dock{visibility:hidden}}.hosted-invoice-editor .input,.hosted-invoice-editor .select,.hosted-invoice-editor .btn,.hosted-invoice-editor .doc-back{min-height:0}.hosted-invoice-editor .field__label{display:block}.hosted-invoice-editor .modal__close{min-height:0;padding:2px 6px}.hosted-invoice-editor .invoice-editor-total{justify-content:space-between}.hosted-invoice-editor .invoice-discount>div{min-width:0}.hosted-invoice-editor .invoice-editor-table th:nth-child(2),.hosted-invoice-editor .invoice-editor-table th:nth-child(3),.hosted-invoice-editor .invoice-editor-table th:nth-child(5),.hosted-invoice-editor .invoice-editor-table th:nth-child(6){text-align:right}.hosted-invoice-editor .invoice-editor-table td:nth-child(2){width:80px}.hosted-invoice-editor .invoice-editor-table td:nth-child(3){width:130px}.hosted-invoice-editor .invoice-editor-table td:nth-child(4){width:180px}.hosted-invoice-editor .invoice-editor-table td[data-label="VAT %"]{width:70px}.hosted-invoice-editor .invoice-editor-dock .rail-action{background:var(--color-surface-2);color:var(--color-text)}.hosted-invoice-editor .invoice-editor-dock .rail-action--primary{background:var(--color-accent);color:#faf1e5}.hosted-invoice-editor .invoice-due-warning{flex-direction:row;justify-content:flex-start;align-items:center;gap:8px;display:inline-flex}.hosted-invoice-editor .invoice-due-warning input{flex:0 0 16px;width:16px;min-width:16px;max-width:16px;height:16px;min-height:16px;max-height:16px;margin:0;padding:0}@media (width<=760px){.hosted-invoice-editor .input,.hosted-invoice-editor .select,.hosted-invoice-editor .btn,.hosted-invoice-editor .doc-back,.hosted-invoice-editor .modal__close{min-height:44px}.hosted-invoice-editor .invoice-editor-table td:nth-child(n){width:auto}.hosted-invoice-editor .invoice-discount{flex-wrap:wrap}.hosted-invoice-editor .invoice-discount>div{flex:65px}}.hosted-quotes .quote-customer-filter{width:200px;max-width:100%}.hosted-quotes .quote-customer-filter .select{min-height:0}.hosted-quotes .customer-dialog .field__label{display:block}.hosted-quotes .customer-dialog .input,.hosted-quotes .customer-dialog .textarea,.hosted-quotes .customer-dialog .btn{min-height:0}.hosted-quotes .quote-checkbox{align-items:center;gap:8px;font-weight:400;display:flex}.hosted-quotes .quote-checkbox input{flex:0 0 16px;width:16px;height:16px;min-height:16px;margin:0;padding:0}@media (width<=760px){.hosted-quotes .customer-dialog .input,.hosted-quotes .customer-dialog .btn,.hosted-quotes .quote-customer-filter .select{min-height:44px}}.hosted-quotes .list-controls{gap:var(--space-3);margin-bottom:var(--space-4)}.hosted-quotes .list-controls .input,.hosted-quotes .list-controls .select,.hosted-quotes .btn,.hosted-quotes .list-pager__step,.hosted-quotes .table__sort,.hosted-quotes .invoice-number{min-height:0}.hosted-quotes .list-controls__extra label{font-weight:400}@media (width<=760px){.hosted-quotes .list-controls .input,.hosted-quotes .list-controls .select,.hosted-quotes .btn,.hosted-quotes .list-pager__step,.hosted-quotes .table__sort{min-height:44px}}.hosted-credits .credit-usage{margin:18px 0}.hosted-credits .credit-usage .kv:last-child .kv__v{font-weight:700}.hosted-credits .credit-ledger{margin-top:20px}.hosted-credits .credit-ledger h3{margin:0 0 12px;font-size:14px}.credit-dialog .invoice-fields{border:0;min-width:0;margin:16px 0 0;padding:0}.credit-dialog .modal__footer{flex-wrap:wrap}.hosted-credits .doc-editor--single{grid-template-columns:minmax(0,860px);justify-content:center}.hosted-credits .credit-ledger td{overflow-wrap:anywhere}.hosted-credits .credit-ledger .modal__close{min-width:44px;min-height:44px}@media (width<=760px){.hosted-credits .input,.hosted-credits .select,.hosted-credits textarea,.credit-dialog .input,.credit-dialog .select,.credit-dialog textarea{font-size:16px}.hosted-credits .doc-editor--single{grid-template-columns:minmax(0,1fr)}.hosted-credits .credit-ledger table{min-width:0}.hosted-credits .credit-ledger th,.hosted-credits .credit-ledger td{padding:8px 4px;font-size:12px}.hosted-credits .credit-ledger .link{white-space:normal;text-align:left;min-height:44px}}.hosted-credits .credit-dialog .textarea{min-height:72px}.credit-ledger-pager{flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.credit-ledger-pager>span{margin-right:auto}:root{color:#173b32;font-synthesis:none;background:#f5f3ec;font-family:system-ui,sans-serif}body{margin:0}main{width:min(100% - 32px,560px);margin:0 auto;padding:32px 0}.brand{letter-spacing:-1px;font-size:29px;font-weight:750}.brand-dot{color:#ba603b}section{background:#fff;border:1px solid #dce4dd;border-radius:16px;margin-top:36px;padding:clamp(24px,5vw,44px);box-shadow:0 12px 40px #173b3208}.eyebrow{color:#65756b;letter-spacing:1.4px;font-size:11px;font-weight:650}h1{letter-spacing:-1px;overflow-wrap:anywhere;font-size:clamp(28px,5vw,36px);line-height:1.2}p{overflow-wrap:anywhere;line-height:1.6}form{gap:18px;margin-top:24px;display:grid}label{gap:8px;font-size:14px;font-weight:600;display:grid}input{width:100%;font:inherit;border:1px solid #a9b8af;border-radius:7px;min-height:46px;padding:12px;font-size:16px}button{font:inherit;cursor:pointer;color:#fff;background:#173b32;border:0;border-radius:7px;min-height:44px;padding:10px 18px}button:focus-visible,input:focus-visible{outline-offset:3px;outline:3px solid #ba603b}button:disabled{cursor:wait;opacity:.65}.primary{width:100%;margin-top:4px}nav{flex-wrap:wrap;column-gap:14px;margin-top:18px;display:flex}.link{color:#245b48;text-underline-offset:3px;background:0 0;padding:8px 0;font-size:14px;text-decoration:underline}.footnote{color:#65756b;border-top:1px solid #e6ebe7;margin-top:28px;padding-top:20px;font-size:12px}.notice,.error{border-radius:7px;padding:12px 14px;font-size:14px}.notice{color:#205339;background:#edf5ef}.error{color:#8c3023;background:#fff0ec}@media (width<=480px){section{margin-top:24px}main{padding-top:18px}}.business-workspace{border-top:1px solid #dce4dd;margin-top:28px;padding-top:16px}.business-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.business-heading h2{font-size:22px}select,textarea{width:100%;font:inherit;min-height:46px;color:inherit;background:#fff;border:1px solid #a9b8af;border-radius:7px;padding:12px;font-size:16px}textarea{resize:vertical;min-height:90px}select:focus-visible,textarea:focus-visible{outline-offset:3px;outline:3px solid #ba603b}.allowance,.hint{color:#65756b;font-size:12px;font-weight:400;line-height:1.5}.business-detail{margin-top:24px}.business-detail h3{overflow-wrap:anywhere;font-size:22px}.role-label{color:#65756b;font-size:13px}.checkbox-label{align-items:center;gap:10px;display:flex}.checkbox-label input{accent-color:#173b32;width:20px;min-height:20px}dt{color:#65756b;margin-top:16px;font-size:13px}dd{overflow-wrap:anywhere;white-space:pre-wrap;margin:4px 0 0}.customer-workspace{border-top:1px solid #dce4dd;margin-top:32px;padding-top:12px}.customer-list{padding:0;list-style:none}.customer-list li{overflow-wrap:anywhere;border-bottom:1px solid #e6ebe7;padding:16px 0}.customer-list p{margin:4px 0;font-size:14px}.customer-address{white-space:pre-wrap}.invoice-workspace{border-top:1px solid #dce4dd;margin-top:32px;padding-top:12px}.invoice-fields{border:0;gap:18px;min-width:0;margin:0;padding:0;display:grid}.invoice-line{border:1px solid #dce4dd;border-radius:8px;gap:14px;min-width:0;margin:0;padding:16px;display:grid}.invoice-line legend{padding:0 6px;font-weight:650}.invoice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.invoice-grid input{min-width:0}.invoice-list{gap:12px;padding:0;list-style:none;display:grid}.invoice-card{text-align:left;color:#173b32;overflow-wrap:anywhere;background:#f4f7f3;border:1px solid #dce4dd;gap:6px;width:100%;display:grid}.invoice-card span{font-size:14px}.invoice-totals{background:#f4f7f3;border-radius:8px;padding:14px}.invoice-totals>div{justify-content:space-between;gap:10px;padding:6px 0;display:flex}.invoice-totals dt,.invoice-totals dd{margin:0;font-size:13px}.invoice-total{border-top:1px solid #dce4dd;font-weight:700}.invoice-total dt,.invoice-total dd{color:#173b32;font-size:16px}.invoice-detail>button{margin-right:16px}.invoice-saved-lines{overflow-wrap:anywhere;padding-left:20px}.preserve-lines{white-space:pre-wrap}.secondary{color:#173b32;background:#edf5ef;border:1px solid #a9b8af}.operator-secret{overflow-wrap:anywhere;background:#edf5ef;padding:12px;display:block}.support-workspace{border-top:1px solid #dce4dd;margin-top:32px;padding-top:12px}.support-actions{flex-wrap:wrap;gap:10px;display:flex}.support-record{background:#f4f7f3;border-radius:8px;margin-top:20px;padding:16px}.support-record pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.operator-codes{overflow-wrap:anywhere;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-left:20px;display:grid}@media (width<=480px){.invoice-grid{grid-template-columns:minmax(0,1fr)}}.staff-workspace{--staff-bg:#fff;--staff-card:#f4f7f3;--staff-text:#173b32;--staff-muted:#596b60;--staff-border:#bccdc1;border:1px solid var(--staff-border);background:var(--staff-bg);color:var(--staff-text);border-radius:10px;margin-top:24px;padding:18px}.staff-workspace h4{overflow-wrap:anywhere;font-size:18px}.staff-members{padding:0;list-style:none}.staff-members li{border-bottom:1px solid var(--staff-border);flex-wrap:wrap;justify-content:space-between;gap:12px;padding:16px 0;display:flex}.staff-members li>div{overflow-wrap:anywhere;gap:5px;min-width:0;display:grid}.staff-members span{font-size:13px}.staff-fields{border:0;min-width:0;margin:0;padding:0}.staff-group{border:1px solid var(--staff-border);border-radius:8px;min-width:0;margin:18px 0;padding:12px}.staff-group legend{padding:0 6px;font-weight:650}.staff-permission{cursor:pointer;align-items:flex-start;gap:10px;min-height:44px;padding:12px 0;display:flex}.staff-permission input{accent-color:#245b48;flex:0 0 22px;width:22px;min-height:22px;margin:2px 0}.staff-permission>span{overflow-wrap:anywhere;gap:5px;min-width:0;display:grid}.staff-permission span span{font-size:13px;font-weight:400;line-height:1.5}.staff-permission small{border:1px solid var(--staff-border);border-radius:4px;width:fit-content;padding:2px 6px;font-size:11px;font-weight:400}.staff-workspace .hint{color:var(--staff-muted)}.staff-actions{flex-wrap:wrap;gap:12px;display:flex}.staff-workspace .secondary{color:var(--staff-text);background:var(--staff-card);border-color:var(--staff-border)}.staff-workspace .link{color:var(--staff-text)}.staff-remove{color:#fff;background:#8c3023}.staff-confirm{border:2px solid #b46146;border-radius:8px;padding:16px}.staff-history{border-top:1px solid var(--staff-border);margin-top:24px;padding-top:16px}.staff-history summary{cursor:pointer;min-height:44px}.staff-history ol{padding-left:20px}.staff-history li{overflow-wrap:anywhere;padding:12px 0}.staff-history p{font-size:13px}.staff-workspace :focus-visible{outline-offset:3px;outline:3px solid #ba603b}.staff-workspace button:disabled{cursor:not-allowed}@media (prefers-color-scheme:dark){.staff-workspace{--staff-bg:#162720;--staff-card:#223b2f;--staff-text:#e6eee8;--staff-muted:#b1c4b6;--staff-border:#587362;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.staff-workspace .notice{color:#dcf0e1;background:#244735}.staff-workspace .error{color:#ffe5dc;background:#532f28}}@media (width<=480px){.staff-workspace{padding:12px}.staff-actions>button{flex:100%}}@font-face{font-family:Poppins;font-style:normal;font-weight:300;font-display:swap;src:url(/fonts/poppins-latin-300-normal.woff2)format("woff2")}@font-face{font-family:Poppins;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/poppins-latin-400-normal.woff2)format("woff2")}@font-face{font-family:Poppins;font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/poppins-latin-500-normal.woff2)format("woff2")}@font-face{font-family:Poppins;font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/poppins-latin-600-normal.woff2)format("woff2")}@font-face{font-family:Poppins;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/poppins-latin-700-normal.woff2)format("woff2")}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/jetbrains-mono-latin-400-normal.woff2)format("woff2")}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/jetbrains-mono-latin-500-normal.woff2)format("woff2")}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/jetbrains-mono-latin-700-normal.woff2)format("woff2")}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--color-accent:var(--lightningcss-light,#c95c2e)var(--lightningcss-dark,#e27a48);--color-accent-hover:var(--lightningcss-light,#a5471f)var(--lightningcss-dark,#f08c5c);--color-accent-soft:var(--lightningcss-light,#f7e7dc)var(--lightningcss-dark,#3a271c);--color-focus:var(--lightningcss-light,#6c8f5e)var(--lightningcss-dark,#8cb37c);--color-focus-hover:var(--lightningcss-light,#587a4b)var(--lightningcss-dark,#9dc08e);--color-focus-soft:var(--lightningcss-light,#e3ecdd)var(--lightningcss-dark,#2a3b25);--color-forest:#16352c;--color-copper:var(--lightningcss-light,#b9783f)var(--lightningcss-dark,#cf9160);--color-bg:var(--lightningcss-light,#faf1e5)var(--lightningcss-dark,#0e211a);--color-surface:var(--lightningcss-light,#fffcf7)var(--lightningcss-dark,#17362d);--color-surface-2:var(--lightningcss-light,#faf4ea)var(--lightningcss-dark,#1f4236);--color-border:var(--lightningcss-light,#eae0d2)var(--lightningcss-dark,#2c4c40);--color-border-strong:var(--lightningcss-light,#d9ccb8)var(--lightningcss-dark,#3c5c4e);--color-text:var(--lightningcss-light,#16352c)var(--lightningcss-dark,#f5ecdd);--color-text-muted:var(--lightningcss-light,#5a665e)var(--lightningcss-dark,#a9b6ab);--color-text-subtle:var(--lightningcss-light,#8a938a)var(--lightningcss-dark,#7d8a80);--color-success:var(--lightningcss-light,#4f7343)var(--lightningcss-dark,#9ec489);--color-success-soft:var(--lightningcss-light,#e6efe0)var(--lightningcss-dark,#22331b);--color-warning:var(--lightningcss-light,#b06000)var(--lightningcss-dark,#e0a86a);--color-warning-soft:var(--lightningcss-light,#f7e7dc)var(--lightningcss-dark,#3a2a17);--color-danger:var(--lightningcss-light,#b23b2e)var(--lightningcss-dark,#f0917f);--color-danger-soft:var(--lightningcss-light,#f6e2dd)var(--lightningcss-dark,#3a211c);--color-info:var(--lightningcss-light,#16352c)var(--lightningcss-dark,#cfe0d7);--color-info-soft:var(--lightningcss-light,#e4ede8)var(--lightningcss-dark,#1f3a30);--color-neutral-soft:var(--lightningcss-light,#efe7d9)var(--lightningcss-dark,#24382f);--color-positive:var(--lightningcss-light,#6c8f5e)var(--lightningcss-dark,#8fb47c);--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;--radius-sm:6px;--radius-md:10px;--radius-lg:14px;--shadow-sm:0 1px 2px #0000001a;--shadow-md:0 4px 12px #00000024;--font-sans:"Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;--font-mono:"JetBrains Mono", "Cascadia Code", "Consolas", ui-monospace, monospace;--text-xs:12px;--text-sm:13px;--text-base:14px;--text-lg:16px;--text-xl:20px;--text-2xl:26px;--sidebar-width:266px;--topbar-height:70px}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}:root[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--font-sans);font-size:var(--text-base);color:var(--color-text);background:var(--color-bg);-webkit-font-smoothing:antialiased}a{color:var(--color-accent);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3{margin:0;font-weight:600}.app-shell{grid-template-columns:var(--sidebar-width) 1fr;height:100vh;display:grid;overflow:hidden}.sidebar{background:var(--color-forest);color:#cad6cd;padding:var(--space-4) var(--space-3);flex-direction:column;gap:2px;display:flex}.sidebar__brand{align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-2) var(--space-5);display:flex}.sidebar__brand-mark{background:var(--color-accent);color:#faf1e5;letter-spacing:.3px;border-radius:50%;flex-shrink:0;place-items:center;width:38px;height:38px;font-size:15px;font-weight:700;display:grid}.sidebar__brand-text{flex-direction:column;line-height:1.25;display:flex}.sidebar__brand-name{font-size:var(--text-lg);color:#fdf6ec;font-weight:600}.sidebar__brand-tagline{font-size:var(--text-xs);color:#9cb2a5;font-weight:400}.nav-link{align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);color:#c3d0c6;font-size:var(--text-sm);font-weight:500;display:flex}.nav-link:hover{color:#fff;background:#ffffff0f;text-decoration:none}.nav-link.is-active{color:#f0a985;background:#c95c2e2e}.nav-link__icon{width:20px;height:20px;color:inherit;place-items:center;display:inline-grid}.nav-link--button{cursor:pointer;width:100%;font:inherit;text-align:left;background:0 0;border:none}.nav-link__caret{flex-shrink:0;margin-left:auto;transition:transform .2s}.nav-link__caret.is-open{transform:rotate(90deg)}.sidebar__subnav{border-left:1.5px solid #ffffff1f;flex-direction:column;gap:2px;margin:4px 0 4px 22px;padding-left:12px;display:flex}.sidebar__sublink{padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);color:#b4c3b7;font-size:var(--text-sm);font-weight:500}.sidebar__sublink:hover{color:#fff;background:#ffffff0f;text-decoration:none}.sidebar__sublink.is-active{color:#f0a985;background:#c95c2e2e}.sidebar__footer{padding:var(--space-3) var(--space-2);font-size:var(--text-xs);color:#7f948a;margin-top:auto}.main{flex-direction:column;display:flex;overflow:hidden}.topbar{height:var(--topbar-height);background:var(--color-surface);border-bottom:1px solid var(--color-border);padding:0 var(--space-5);flex-shrink:0;justify-content:space-between;align-items:center;display:flex}.topbar__title{font-size:var(--text-lg);font-weight:600}.summary-strip{grid-template-columns:repeat(var(--strip-cols,3), minmax(0, 1fr));gap:var(--space-4);margin-bottom:var(--space-5);display:grid}.stat-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);min-width:0;padding:16px 18px}.stat-card__label{font-size:var(--text-sm);color:var(--color-text-muted);font-weight:500}.stat-card__value{font-size:var(--text-xl);letter-spacing:-.02em;font-variant-numeric:tabular-nums;margin-top:6px;font-weight:700}.stat-card__value--positive{color:var(--color-success)}.stat-card__value--danger{color:var(--color-danger)}@media (width<=640px){.summary-strip{grid-template-columns:1fr 1fr}}.dash-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px;display:flex}.dash-head__greeting{letter-spacing:-.02em;margin:0;font-size:26px;font-weight:700}.dash-head__date{color:var(--color-text-muted);font-size:var(--text-sm);margin:6px 0 0}.dash-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px;display:grid}.dash-kpi{background:linear-gradient(160deg, var(--color-surface), var(--color-surface-2));border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);min-width:0;padding:20px}.dash-kpi--accent{background:linear-gradient(150deg, var(--color-accent), var(--color-accent-hover));color:#fdf3ec;box-shadow:0 14px 30px -14px var(--color-accent);border-color:#0000}.dash-kpi__top{align-items:center;gap:10px;margin-bottom:16px;display:flex}.dash-kpi__icon{border-radius:11px;flex-shrink:0;place-items:center;width:38px;height:38px;display:grid}.dash-kpi__icon--info{background:var(--color-info-soft);color:var(--color-info)}.dash-kpi__icon--success{background:var(--color-success-soft);color:var(--color-success)}.dash-kpi__icon--danger{background:var(--color-danger-soft);color:var(--color-danger)}.dash-kpi__icon--on-accent{color:#fdf3ec;background:#fff3}.dash-kpi__label{font-size:var(--text-sm);color:var(--color-text-muted);font-weight:500}.dash-kpi--accent .dash-kpi__label{color:#fdf3ec;opacity:.92}.dash-kpi__value{letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:27px;font-weight:700}.dash-kpi__value--danger{color:var(--color-danger)}.dash-kpi__sub{font-size:var(--text-xs);color:var(--color-text-muted);margin-top:10px;font-weight:500}.dash-kpi--accent .dash-kpi__sub{color:#fdf3ec;opacity:.9}.dash-trend{font-size:var(--text-xs);border-radius:999px;align-items:center;gap:4px;margin-top:10px;padding:3px 9px;font-weight:600;display:inline-flex}.dash-trend--up{background:var(--color-success-soft);color:var(--color-success)}.dash-trend--down{background:var(--color-danger-soft);color:var(--color-danger)}.dash-mid{grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px;display:grid}.dash-panel{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:20px}.dash-panel__title{margin-bottom:14px;font-size:15px;font-weight:600}.quick-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}.quick-action{border-radius:var(--radius-md);background:var(--color-surface-2);border:1px solid var(--color-border);cursor:pointer;text-align:left;font:inherit;color:inherit;flex-direction:column;gap:8px;padding:14px;transition:background .15s,border-color .15s;display:flex}.quick-action:hover{background:var(--color-accent-soft);border-color:var(--color-accent)}.quick-action__label{font-size:12.5px;font-weight:500}.quick-action--invoice{color:var(--color-accent)}.quick-action--quote{color:var(--color-copper)}.quick-action--customer{color:var(--color-info)}.quick-action--reports{color:var(--color-success)}.this-month__rows{flex-direction:column;gap:13px;display:flex}.tm-row{justify-content:space-between;align-items:center;display:flex}.tm-row__label{font-size:var(--text-sm);color:var(--color-text-muted)}.tm-row__value{font-variant-numeric:tabular-nums;font-weight:600}.tm-divider{background:var(--color-border);height:1px}.dash-recent{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden}.dash-recent__head{justify-content:space-between;align-items:center;padding:20px 22px 14px;display:flex}.dash-recent__title{font-size:16px;font-weight:600}.dash-recent__viewall{font-size:var(--text-sm);color:var(--color-accent);cursor:pointer;background:0 0;border:none;font-family:inherit;font-weight:600}.dash-recent__viewall:hover{text-decoration:underline}.dash-recent__cols,.dash-recent__row{grid-template-columns:2fr 1fr 1fr 1fr auto;align-items:center;display:grid}.dash-recent__cols{letter-spacing:.06em;text-transform:uppercase;color:var(--color-text-subtle,var(--color-text-muted));padding:0 22px 8px;font-size:11px;font-weight:600}.dash-recent__row{border-top:1px solid var(--color-border);cursor:pointer;padding:13px 22px}.dash-recent__row:hover{background:var(--color-surface-2)}.dash-recent__cust{align-items:center;gap:11px;min-width:0;display:flex}.dash-recent__avatar{background:var(--color-surface-2);border:1px solid var(--color-border);width:34px;height:34px;color:var(--color-text-muted);border-radius:10px;flex-shrink:0;place-items:center;font-size:12px;font-weight:600;display:grid}.dash-recent__name{font-size:var(--text-sm);text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.dash-recent__num{color:var(--color-text-muted);font-size:13px;font-family:var(--font-mono)}.dash-recent__date{color:var(--color-text-muted);font-size:13px}.dash-recent__amount{font-size:var(--text-sm);text-align:right;font-variant-numeric:tabular-nums;font-weight:600}.dash-recent__status{justify-content:flex-end;display:flex}.dash-recent__empty{color:var(--color-text-muted);font-size:var(--text-sm);border-top:1px solid var(--color-border);padding:18px 22px 26px}@media (width<=900px){.dash-kpis{grid-template-columns:1fr 1fr}}@media (width<=760px){.dash-mid{grid-template-columns:1fr}}@media (width<=620px){.dash-recent__cols{display:none}.dash-recent__row{grid-template-columns:1fr auto;row-gap:4px}.dash-recent__num,.dash-recent__date{display:none}}@media (width<=480px){.dash-kpis{grid-template-columns:1fr}}.rep-kpi__label{font-size:var(--text-sm);color:var(--color-text-muted);margin-bottom:10px;font-weight:500}.rep-kpi__value{letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:25px;font-weight:700}.rep-kpi__sub{font-size:var(--text-xs);color:var(--color-text-subtle,var(--color-text-muted));margin-top:9px}.rep-row{gap:16px;margin-bottom:16px;display:grid}.rep-row--split{grid-template-columns:1.7fr 1fr}.rep-row--even{grid-template-columns:1fr 1fr}.rep-panel__head{justify-content:space-between;align-items:flex-start;gap:var(--space-4);display:flex}.rep-panel__title{font-size:16px;font-weight:600}.rep-panel__subtitle{color:var(--color-text-muted);margin:2px 0 18px;font-size:12.5px}.rep-donut{flex-wrap:wrap;align-items:center;gap:20px;display:flex}.rep-donut__ring{border-radius:50%;flex-shrink:0;width:132px;height:132px;position:relative}.rep-donut__hole{background:var(--color-surface);text-align:center;border-radius:50%;place-items:center;display:grid;position:absolute;inset:24px}.rep-donut__total{font-variant-numeric:tabular-nums;font-size:18px;font-weight:700}.rep-donut__totallabel{color:var(--color-text-subtle,var(--color-text-muted));font-size:10.5px}.rep-donut__legend{flex-direction:column;flex:1;gap:11px;min-width:140px;display:flex}.rep-legend{align-items:center;gap:9px;display:flex}.rep-legend__dot{border-radius:3px;flex-shrink:0;width:10px;height:10px}.rep-legend__label{color:var(--color-text-muted);flex:1;font-size:12.5px}.rep-legend__value{font-variant-numeric:tabular-nums;font-size:12.5px;font-weight:600}.rep-list{flex-direction:column;gap:16px;display:flex}.rep-item{align-items:center;gap:12px;display:flex}.rep-item__avatar{background:var(--color-accent-soft);width:34px;height:34px;color:var(--color-accent);border-radius:10px;flex-shrink:0;place-items:center;font-size:12px;font-weight:600;display:grid}.rep-item__body{flex:1;min-width:0}.rep-item__top{justify-content:space-between;gap:10px;margin-bottom:6px;display:flex}.rep-item__name{text-overflow:ellipsis;white-space:nowrap;font-size:13.5px;font-weight:500;overflow:hidden}.rep-item__amount{font-variant-numeric:tabular-nums;flex-shrink:0;font-size:13px;font-weight:600}.rep-track{background:var(--color-surface-2);border-radius:999px;height:6px;overflow:hidden}.rep-track--tall{height:9px}.rep-track__fill{background:linear-gradient(90deg, var(--color-accent), var(--color-copper));border-radius:999px;height:100%}.rep-age__label{justify-content:space-between;margin-bottom:6px;font-size:13px;display:flex}.rep-age__label span:first-child{color:var(--color-text-muted)}.rep-age__label span:last-child{font-variant-numeric:tabular-nums;font-weight:600}@media (width<=900px){.rep-row--split,.rep-row--even{grid-template-columns:1fr}}.quick-new{position:relative}.quick-new__trigger{border-radius:var(--radius-sm);background:var(--color-accent);color:#faf1e5;font-size:var(--text-sm);cursor:pointer;border:none;align-items:center;gap:6px;padding:8px 14px;font-weight:600;display:inline-flex}.quick-new__trigger:hover{background:var(--color-accent-hover)}.quick-new__menu{z-index:30;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);min-width:208px;box-shadow:var(--shadow-md);padding:6px;position:absolute;top:calc(100% + 8px);right:0}.quick-new__item{border-radius:var(--radius-sm);width:100%;color:var(--color-text);font-size:var(--text-sm);text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:11px;padding:9px 11px;font-weight:500;display:flex}.quick-new__item:hover{background:var(--color-accent-soft)}.quick-new__item-icon{color:var(--color-accent);place-items:center;display:inline-grid}.theme-toggle{border-radius:var(--radius-sm);border:1px solid var(--color-border);background:var(--color-surface);width:34px;height:34px;color:var(--color-text-muted);cursor:pointer;place-items:center;transition:background .12s,color .12s,border-color .12s;display:inline-grid}.theme-toggle:hover{background:var(--color-surface-2);color:var(--color-accent);border-color:var(--color-border-strong)}.theme-toggle:focus-visible{box-shadow:0 0 0 3px var(--color-focus-soft);outline:none}.content{padding:var(--space-5);flex:1;overflow-y:auto}.content__inner{max-width:1180px;margin-inline:auto}.page-header{margin-bottom:var(--space-5);justify-content:space-between;align-items:flex-start;gap:var(--space-4);display:flex}.page-header__title{font-size:var(--text-2xl)}.page-header__subtitle{color:var(--color-text-muted);margin-top:var(--space-1);font-size:var(--text-sm)}.settings-content{min-width:0}.segmented{gap:6px;display:inline-flex}.segmented__option{padding:var(--space-2) var(--space-4);border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);color:var(--color-text-muted);font-size:var(--text-sm);cursor:pointer;font-weight:600}.segmented__option:hover{background:var(--color-surface-2)}.segmented__option.is-active{background:var(--color-accent-soft);border-color:var(--color-accent);color:var(--color-accent)}.settings-swatches{flex-wrap:wrap;gap:10px;display:flex}.settings-swatch{cursor:pointer;border:1px solid #0000001f;border-radius:8px;width:28px;height:28px;padding:0}.settings-swatch.is-active{outline:2px solid var(--color-accent);outline-offset:2px}.card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow-sm)}.card__body{padding:var(--space-5)}.card-grid{gap:var(--space-4);grid-template-columns:repeat(auto-fill,minmax(220px,1fr));display:grid}.btn{align-items:center;gap:var(--space-2);border-radius:var(--radius-sm);padding:var(--space-2) var(--space-4);font-size:var(--text-sm);cursor:pointer;border:1px solid #0000;font-family:inherit;font-weight:600;transition:background .12s,border-color .12s;display:inline-flex}.btn:disabled{opacity:.55;cursor:not-allowed}.btn--primary{background:var(--color-accent);color:#fff}.btn--primary:hover:not(:disabled){background:var(--color-accent-hover)}.btn--secondary{background:var(--color-surface);border-color:var(--color-border-strong);color:var(--color-text)}.btn--secondary:hover:not(:disabled){background:var(--color-surface-2)}.btn--ghost{color:var(--color-text-muted);background:0 0}.btn--ghost:hover:not(:disabled){background:var(--color-neutral-soft)}.btn--danger{background:var(--color-danger);color:#fff}.badge{align-items:center;gap:var(--space-1);padding:2px var(--space-2);font-size:var(--text-xs);border-radius:999px;font-weight:600;line-height:1.6;display:inline-flex}.badge--draft{background:var(--color-neutral-soft);color:var(--color-text-muted)}.badge--unpaid{background:var(--color-info-soft);color:var(--color-info)}.badge--partially_paid{background:var(--color-warning-soft);color:var(--color-warning)}.badge--paid{background:var(--color-success-soft);color:var(--color-success)}.badge--overdue{background:var(--color-danger-soft);color:var(--color-danger)}.badge--cancelled{background:var(--color-neutral-soft);color:var(--color-text-subtle)}.badge--saved{background:var(--color-focus-soft);color:var(--color-focus)}.badge--sent{background:var(--color-info-soft);color:var(--color-info)}.badge--accepted{background:var(--color-success-soft);color:var(--color-success)}.badge--declined{background:var(--color-danger-soft);color:var(--color-danger)}.badge--expired{background:var(--color-warning-soft);color:var(--color-warning)}.badge--converted{background:var(--color-neutral-soft);color:var(--color-text-muted)}.badge--issued{background:var(--color-success-soft);color:var(--color-success)}.badge--imported{background:var(--color-neutral-soft);color:var(--color-text-muted)}.state{text-align:center;padding:var(--space-7) var(--space-5);color:var(--color-text-muted)}.state__icon{margin-bottom:var(--space-3);font-size:34px}.state__title{font-size:var(--text-lg);color:var(--color-text);margin-bottom:var(--space-2)}.spinner{border:3px solid var(--color-border);border-top-color:var(--color-accent);border-radius:50%;width:22px;height:22px;margin:0 auto;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.banner{border-radius:var(--radius-sm);padding:var(--space-3) var(--space-4);font-size:var(--text-sm)}.banner--info{background:var(--color-info-soft);color:var(--color-info)}.banner--warning{background:var(--color-warning-soft);color:var(--color-warning)}.banner--success{background:var(--color-success-soft);color:var(--color-success)}.link-button{font:inherit;color:var(--color-accent);cursor:pointer;background:0 0;border:none;padding:0;text-decoration:underline}.stack{gap:var(--space-4);flex-direction:column;display:flex}.row{align-items:center;gap:var(--space-3);display:flex}.muted{color:var(--color-text-muted)}.text-sm{font-size:var(--text-sm)}.spacer{flex:1}.mt-4{margin-top:var(--space-4)}.mt-5{margin-top:var(--space-5)}.form-grid{gap:var(--space-4);grid-template-columns:repeat(2,1fr);display:grid}.col-span-2{grid-column:1/-1}.field{flex-direction:column;gap:6px;display:flex}.field__label{font-size:var(--text-sm);color:var(--color-text);font-weight:600}.field__label .req{color:var(--color-danger);margin-left:2px}.field__hint{font-size:var(--text-xs);color:var(--color-text-subtle)}.field__error{font-size:var(--text-xs);color:var(--color-danger)}.field__warning{font-size:var(--text-xs);color:var(--color-warning);font-weight:600}.input,.textarea,.select{width:100%;font:inherit;font-size:var(--text-sm);border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);background:var(--color-surface);color:var(--color-text);padding:8px 10px}.input:focus,.textarea:focus,.select:focus{border-color:var(--color-focus);box-shadow:0 0 0 3px var(--color-focus-soft);outline:none}.input--invalid,.textarea--invalid,.select--invalid{border-color:var(--color-danger)}.textarea{resize:vertical;min-height:72px}.input-affix{position:relative}.input-affix__label{color:var(--color-text-muted);font-size:var(--text-sm);pointer-events:none;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.input-affix .input{padding-left:28px}.form-section-title{font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-subtle);margin:var(--space-3) 0 0;font-weight:700}.checkbox{cursor:pointer;font-size:var(--text-sm);color:var(--color-text);align-items:center;gap:8px;display:inline-flex}.checkbox input{width:16px;height:16px;accent-color:var(--color-accent);cursor:pointer;flex-shrink:0}.checkbox input:focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}.toggle{cursor:pointer;align-items:center;gap:10px;display:inline-flex}.toggle input{opacity:0;width:0;height:0;position:absolute}.toggle__track{background:var(--color-border-strong);border-radius:999px;flex-shrink:0;width:38px;height:22px;transition:background .15s;position:relative}.toggle__thumb{width:18px;height:18px;box-shadow:var(--shadow-sm);background:#fff;border-radius:50%;transition:left .15s;position:absolute;top:2px;left:2px}.toggle input:checked+.toggle__track{background:var(--color-accent)}.toggle input:checked+.toggle__track .toggle__thumb{left:18px}.toggle input:focus-visible+.toggle__track{box-shadow:0 0 0 3px var(--color-focus-soft)}.table-wrap{overflow-x:auto}.table{border-collapse:collapse;width:100%;font-size:var(--text-sm)}.table th{text-align:left;color:var(--color-text-muted);border-bottom:1px solid var(--color-border);white-space:nowrap;padding:10px 12px;font-weight:600}.table td{border-bottom:1px solid var(--color-border);padding:10px 12px}.table tbody tr:hover{background:var(--color-surface-2)}.table tbody tr.is-inactive td{color:var(--color-text-subtle)}.table__num{text-align:right;font-variant-numeric:tabular-nums}.table th.table__num{text-align:right}.table--cells-top td{vertical-align:top}.row-link{cursor:pointer}.toolbar{gap:var(--space-3);margin-bottom:var(--space-4);flex-wrap:wrap;align-items:center;display:flex}.toolbar .input,.toolbar .select{width:auto}.search{min-width:240px}.list-controls{align-items:center;gap:var(--space-3);margin-bottom:var(--space-4);flex-wrap:wrap;display:flex}.list-search{background:var(--color-surface);border:1px solid var(--color-border-strong);border-radius:var(--radius-md);align-items:center;gap:9px;width:260px;max-width:100%;padding:9px 13px;display:flex}.list-search:focus-within{border-color:var(--color-focus);box-shadow:0 0 0 3px var(--color-focus-soft)}.list-search__icon{color:var(--color-text-subtle);flex-shrink:0}.list-search__input{color:var(--color-text);font:inherit;font-size:var(--text-sm);background:0 0;border:0;outline:none;width:100%;min-width:0}.list-search__input::placeholder{color:var(--color-text-subtle)}.list-search__input::-webkit-search-decoration{-webkit-appearance:none}.list-search__input::-webkit-search-cancel-button{-webkit-appearance:none}.list-tabs{background:var(--color-surface-2);border:1px solid var(--color-border);border-radius:var(--radius-md);gap:2px;padding:4px;display:flex}.list-tab{cursor:pointer;font:inherit;font-size:var(--text-sm);color:var(--color-text-muted);border-radius:var(--radius-sm);white-space:nowrap;background:0 0;border:0;padding:6px 13px;font-weight:500}.list-tab:hover{color:var(--color-text)}.list-tab--active{background:var(--color-surface);box-shadow:var(--shadow-sm);color:var(--color-text);font-weight:600}.list-tab:focus-visible{outline:2px solid var(--color-focus);outline-offset:1px}.list-controls__extra{align-items:center;gap:var(--space-3);flex-wrap:wrap;margin-left:auto;display:flex}.list-controls__extra .input,.list-controls__extra .select{width:auto}.list-controls__customer{width:auto;max-width:220px}.table th.table__sortable{padding:0}.table__sort{cursor:pointer;width:100%;font:inherit;color:inherit;text-align:inherit;background:0 0;border:0;align-items:center;gap:4px;padding:10px 12px;font-weight:600;display:inline-flex}.table th.table__num .table__sort{justify-content:flex-end}.table__sort:hover,.table__sort--active{color:var(--color-text)}.table__sort:focus-visible{outline:2px solid var(--color-focus);outline-offset:-2px;border-radius:var(--radius-sm)}.list-pager{justify-content:space-between;align-items:center;gap:var(--space-4);border-top:1px solid var(--color-border);font-size:var(--text-sm);color:var(--color-text-muted);flex-wrap:wrap;padding:12px 16px;display:flex}.list-pager__controls{align-items:center;gap:var(--space-4);flex-wrap:wrap;display:flex}.list-pager__size{align-items:center;gap:var(--space-2);display:flex}.list-pager__size .select{width:auto;padding-top:4px;padding-bottom:4px}.list-pager__nav{align-items:center;gap:var(--space-2);display:flex}.list-pager__page{font-variant-numeric:tabular-nums;white-space:nowrap}.list-pager__step{border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);background:var(--color-surface);width:30px;height:30px;color:var(--color-text);cursor:pointer;place-items:center;display:grid}.list-pager__step:hover:not(:disabled){background:var(--color-surface-2)}.list-pager__step:disabled{opacity:.4;cursor:default}.list-pager__step:focus-visible{outline:2px solid var(--color-focus);outline-offset:1px}@media (width<=640px){.list-controls__extra{margin-left:0}.list-search{width:100%}}.pill{font-size:var(--text-xs);border-radius:999px;padding:2px 8px;font-weight:600;display:inline-flex}.pill--active{background:var(--color-success-soft);color:var(--color-success)}.pill--inactive{background:var(--color-neutral-soft);color:var(--color-text-subtle)}.modal-overlay{padding:var(--space-5);z-index:50;background:#10182873;place-items:center;display:grid;position:fixed;inset:0}.modal{background:var(--color-surface);border-radius:var(--radius-lg);flex-direction:column;width:100%;max-width:680px;max-height:90vh;display:flex;box-shadow:0 12px 40px #10182833}.modal--sm{max-width:440px}.modal--lg{max-width:880px}.modal__header{padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;display:flex}.modal__title{font-size:var(--text-lg);font-weight:600}.modal__body{padding:var(--space-5);overflow-y:auto}.modal__footer{padding:var(--space-4) var(--space-5);border-top:1px solid var(--color-border);justify-content:flex-end;gap:var(--space-3);display:flex}.modal__close{cursor:pointer;color:var(--color-text-muted);background:0 0;border:none;font-size:20px;line-height:1}.help-trigger{align-items:center;gap:var(--space-2);font:inherit;cursor:pointer;color:var(--color-text-muted);background:0 0;border:none;padding:0;display:inline-flex}.help-trigger:hover{color:var(--color-text)}.help-doc{gap:var(--space-5);flex-direction:column;display:flex}.help-doc__toc{gap:var(--space-2) var(--space-4);padding-bottom:var(--space-4);border-bottom:1px solid var(--color-border);font-size:var(--text-sm);flex-wrap:wrap;display:flex}.help-doc__section{scroll-margin-top:var(--space-2)}.help-doc h3{font-size:var(--text-lg);margin:0 0 var(--space-3);font-weight:600}.help-doc p{margin:0 0 var(--space-3);line-height:1.55}.help-doc ul{margin:0 0 var(--space-3);padding-left:1.2em;line-height:1.55}.help-doc li+li{margin-top:var(--space-2)}.help-doc .banner{margin:0 0 var(--space-3)}.help-doc>section>:last-child{margin-bottom:0}.doc-detail__head{margin-bottom:var(--space-5);flex-wrap:wrap;align-items:center;gap:14px;display:flex}.doc-back{border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text-muted);font:inherit;font-size:var(--text-sm);cursor:pointer;border-radius:11px;align-items:center;gap:6px;padding:8px 13px;font-weight:500;display:inline-flex}.doc-back:hover{background:var(--color-surface-2)}.doc-back__label{text-overflow:ellipsis;white-space:nowrap;max-width:22ch;overflow:hidden}.doc-detail__heading{min-width:0}.doc-detail__title{letter-spacing:-.02em;font-size:23px;font-weight:700;font-family:var(--font-mono)}.doc-detail__sub{color:var(--color-text-muted);font-size:var(--text-sm);margin:5px 0 0}.doc-detail{grid-template-columns:1fr 316px;align-items:start;gap:20px;display:grid}.doc-detail__main{flex-direction:column;gap:18px;min-width:0;display:flex}.doc-detail__rail{flex-direction:column;gap:16px;display:flex;position:sticky;top:0}.rail-card{background:var(--color-surface);border:1px solid var(--color-border);box-shadow:var(--shadow-sm);border-radius:18px}.rail-status{padding:18px 20px}.rail-status__hint{font-size:var(--text-xs);color:var(--color-text-muted)}.rail-status__value{letter-spacing:-.02em;font-variant-numeric:tabular-nums;margin:6px 0 12px;font-size:25px;font-weight:700}.rail-actions{flex-direction:column;gap:8px;padding:13px;display:flex}.rail-action{background:var(--color-surface-2);width:100%;color:var(--color-text);font:inherit;font-size:var(--text-sm);text-align:left;cursor:pointer;border:1px solid #0000;border-radius:11px;align-items:center;gap:11px;padding:10px 13px;font-weight:600;transition:background .12s;display:flex}.rail-action:hover:not(:disabled){background:var(--color-neutral-soft)}.rail-action:disabled{opacity:.5;cursor:not-allowed}.rail-action--primary{background:var(--color-accent);color:#faf1e5}.rail-action--primary:hover:not(:disabled){background:var(--color-accent-hover)}.rail-action--go{background:var(--color-focus);color:#f4f8f1}.rail-action--go:hover:not(:disabled){background:var(--color-focus-hover)}.rail-action--danger{color:var(--color-danger)}.rail-action--danger:hover:not(:disabled){background:var(--color-danger-soft)}.rail-facts{padding:8px 18px}.rail-fact{font-size:var(--text-sm);border-bottom:1px solid var(--color-border);justify-content:space-between;gap:12px;padding:9px 0;display:flex}.rail-fact:last-child{border-bottom:none}.rail-fact__k{color:var(--color-text-muted)}.rail-fact__v{text-align:right;font-weight:500}.doc-paper{background:var(--color-surface);border:1px solid var(--color-border);box-shadow:var(--shadow-sm);border-radius:20px;overflow:hidden}.doc-paper__band{color:#fff;justify-content:space-between;align-items:flex-start;padding:26px 30px;display:flex}.doc-paper__issuer{letter-spacing:-.01em;font-size:19px;font-weight:700}.doc-paper__issuer-meta{font-size:var(--text-xs);opacity:.85;margin-top:3px}.doc-paper__band-right{text-align:right}.doc-paper__doclabel{font-size:var(--text-xs);letter-spacing:.16em;text-transform:uppercase;opacity:.9;font-weight:600}.doc-paper__docnumber{font-size:15px;font-weight:700;font-family:var(--font-mono);margin-top:5px}.doc-paper__body{padding:26px 30px}.doc-paper__meta{grid-template-columns:1fr 1fr;gap:22px;margin-bottom:26px;display:grid}.doc-paper__meta-label{text-transform:uppercase;letter-spacing:.08em;color:var(--color-text-subtle);margin-bottom:7px;font-size:11px;font-weight:600}.doc-paper__party{font-size:var(--text-base);font-weight:600}.doc-paper__party-detail{color:var(--color-text-muted);margin-top:3px;font-size:12.5px;line-height:1.55}.doc-paper__dates{text-align:right}.doc-paper__date-row{justify-content:flex-end;gap:30px;display:flex}.doc-paper__date-row .doc-paper__meta-label{margin-bottom:5px}.doc-paper__date-value{font-size:var(--text-sm);font-weight:500}.doc-paper__reason{margin-top:16px}.doc-paper__reason-text{color:var(--color-text-muted);max-width:230px;margin-left:auto;font-size:12.5px;line-height:1.5}.doc-paper__totals{flex-direction:column;gap:10px;max-width:300px;margin-top:18px;margin-left:auto;display:flex}.doc-paper__total-row{font-size:var(--text-sm);justify-content:space-between;gap:12px;display:flex}.doc-section{background:var(--color-surface);border:1px solid var(--color-border);box-shadow:var(--shadow-sm);border-radius:20px;padding:22px 24px}.doc-section__title{margin-bottom:12px;font-size:15px;font-weight:600}.doc-section__head{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.doc-section__head .doc-section__title{margin-bottom:0}.doc-section__more{border-top:1px solid var(--color-border);justify-content:center;margin-top:14px;padding-top:12px;display:flex}.doc-section>.list-pager{margin:0 -24px -22px;padding-left:24px;padding-right:24px}.doc-editor__head{margin-bottom:var(--space-5);flex-wrap:wrap;align-items:center;gap:14px;display:flex}.doc-editor__heading{min-width:0}.doc-editor__title{letter-spacing:-.02em;font-size:23px;font-weight:700}.doc-editor__sub{color:var(--color-text-muted);font-size:var(--text-sm);margin:5px 0 0}.doc-editor__actions{flex-wrap:wrap;gap:10px;margin-left:auto;display:flex}.doc-editor{grid-template-columns:1fr 430px;align-items:start;gap:22px;display:grid}.doc-editor--single{grid-template-columns:minmax(0,860px);justify-content:center}.doc-editor__form{flex-direction:column;gap:18px;min-width:0;display:flex}.doc-editor__preview{min-width:0;position:sticky;top:0}.doc-editor__preview-label{text-transform:uppercase;letter-spacing:.08em;color:var(--color-text-subtle);align-items:center;gap:6px;margin-bottom:10px;font-size:11px;font-weight:600;display:flex}.doc-preview{background:var(--color-surface);border:1px solid var(--color-border);box-shadow:var(--shadow-sm);border-radius:16px;overflow:hidden}.doc-preview__band{color:#fff;justify-content:space-between;align-items:flex-start;padding:16px 20px;display:flex}.doc-preview__issuer{font-size:15px;font-weight:700}.doc-preview__issuer-meta{opacity:.85;margin-top:2px;font-size:10.5px}.doc-preview__band-right{text-align:right}.doc-preview__doclabel{letter-spacing:.14em;text-transform:uppercase;opacity:.9;font-size:10.5px;font-weight:600}.doc-preview__docnumber{font-size:12.5px;font-weight:700;font-family:var(--font-mono);margin-top:3px}.doc-preview__body{padding:20px 22px}.doc-preview__meta{justify-content:space-between;gap:16px;margin-bottom:18px;display:flex}.doc-preview__meta-right{text-align:right;flex-shrink:0}.doc-preview__meta-label{text-transform:uppercase;letter-spacing:.07em;color:var(--color-text-subtle);margin-bottom:4px;font-size:10px;font-weight:600}.doc-preview__party{text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:600;overflow:hidden}.doc-preview__issue{font-size:12px;font-family:var(--font-mono)}.doc-preview__lines-head,.doc-preview__line{grid-template-columns:1fr 40px 92px;gap:8px;display:grid}.doc-preview__lines-head{border-bottom:1px solid var(--color-border);text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-subtle);padding-bottom:7px;font-size:10px;font-weight:600}.doc-preview__line{border-bottom:1px solid var(--color-border);align-items:baseline;padding:9px 0}.doc-preview__line-name{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;overflow:hidden}.doc-preview__line-qty{color:var(--color-text-muted);font-size:11.5px}.doc-preview__line-amount{font-size:11.5px;font-weight:600}.doc-preview__totals{flex-direction:column;gap:7px;margin-top:14px;display:flex}.doc-preview__total-row{justify-content:space-between;gap:12px;font-size:12px;display:flex}@media (width<=1100px){.doc-editor{grid-template-columns:1fr}.doc-editor__preview{position:static}}@media (width<=900px){.doc-detail{grid-template-columns:1fr}.doc-detail__rail{position:static}}.detail-head{flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:24px;display:flex}.detail-head__id{align-items:center;gap:14px;min-width:0;display:flex}.detail-avatar{background:var(--color-accent-soft);width:52px;height:52px;color:var(--color-accent);border-radius:15px;flex-shrink:0;place-items:center;font-size:17px;font-weight:600;display:grid}.detail-head__title{letter-spacing:-.02em;margin:0;font-size:23px;font-weight:700}.detail-head__sub{color:var(--color-text-muted);font-size:var(--text-sm);flex-wrap:wrap;align-items:center;gap:9px;margin:4px 0 0;display:flex}.detail-head__actions{flex-wrap:wrap;gap:10px;margin-left:auto;display:flex}.detail-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px;display:grid}.detail-stats .stat-card{background:linear-gradient(160deg, var(--color-surface), var(--color-surface-2))}.detail-body{grid-template-columns:1fr 1.6fr;align-items:start;gap:18px;display:grid}.detail-body--even{grid-template-columns:1fr 1fr}.detail-panel{background:var(--color-surface);border:1px solid var(--color-border);box-shadow:var(--shadow-sm);border-radius:18px;padding:8px 22px}.detail-row{font-size:var(--text-sm);border-bottom:1px solid var(--color-border);justify-content:space-between;gap:16px;padding:11px 0;display:flex}.detail-row:last-child{border-bottom:none}.detail-row__k{color:var(--color-text-muted);flex-shrink:0}.detail-row__v{text-align:right;font-weight:500}.detail-with-rail{grid-template-columns:1fr 316px;align-items:start;gap:20px;display:grid}.detail-with-rail__main{flex-direction:column;gap:18px;min-width:0;display:flex}.detail-with-rail__rail{flex-direction:column;gap:16px;display:flex;position:sticky;top:0}@media (width<=900px){.detail-with-rail{grid-template-columns:1fr}.detail-with-rail__rail{position:static}}.detail-card__rows{padding:2px 22px 14px}.detail-card{background:var(--color-surface);border:1px solid var(--color-border);box-shadow:var(--shadow-sm);border-radius:18px;overflow:hidden}.detail-card__title{padding:20px 22px 6px;font-size:15px;font-weight:600}.detail-card__body{padding:22px 24px}.detail-card__body p{font-size:var(--text-sm);color:var(--color-text-muted);margin:0;line-height:1.65}@media (width<=900px){.detail-body,.detail-body--even{grid-template-columns:1fr}}@media (width<=640px){.detail-stats{grid-template-columns:1fr 1fr}}.statement-ledger__credit{color:var(--color-success)}.reminder-preview__label{font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-subtle);margin-bottom:5px;font-weight:600}.reminder-preview__subject{font-size:var(--text-sm);margin-bottom:16px;font-weight:500}.reminder-preview__body{font-size:var(--text-sm);white-space:pre-wrap;color:var(--color-text);line-height:1.7}.kv{margin-bottom:var(--space-3);flex-direction:column;gap:2px;display:flex}.kv__k{font-size:var(--text-xs);color:var(--color-text-subtle);text-transform:uppercase;letter-spacing:.03em}.kv__v{font-size:var(--text-sm);white-space:pre-wrap}.form-actions{justify-content:flex-end;gap:var(--space-3);margin-top:var(--space-5);display:flex}.tpl-layout{gap:var(--space-4);grid-template-columns:290px minmax(0,1fr);align-items:start;display:grid}.tpl-nav{flex-direction:column;gap:10px;display:flex}.tpl-item{border-radius:var(--radius-lg);text-align:left;cursor:pointer;color:inherit;font:inherit;background:0 0;border:1px solid #0000;align-items:center;gap:12px;padding:11px 13px;display:flex}.tpl-item:hover{background:var(--color-surface-2)}.tpl-item--active{background:var(--color-surface);border-color:var(--color-border-strong);box-shadow:var(--shadow-sm)}.tpl-item__icon{border-radius:var(--radius-md);background:var(--color-surface-2);width:34px;height:34px;color:var(--color-text-muted);flex-shrink:0;place-items:center;display:grid}.tpl-item--active .tpl-item__icon{background:var(--color-accent-soft);color:var(--color-accent)}.tpl-item__text{flex-direction:column;min-width:0;display:flex}.tpl-item__label{font-size:var(--text-sm);font-weight:600}.tpl-item__desc{font-size:var(--text-xs);color:var(--color-text-muted)}@media (width<=900px){.tpl-layout{grid-template-columns:1fr}}.page-back{margin-bottom:var(--space-3)}@media (width<=760px){.hosted-shell .content:has(.doc-detail-layout--actions){padding-bottom:calc(var(--document-actions-height,80px) + 16px);scroll-padding-bottom:calc(var(--document-actions-height,80px) + 16px)}.hosted-shell .doc-detail-layout .rail-actions{z-index:30;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));border-radius:16px 16px 0 0;flex-flow:row;justify-content:space-evenly;align-items:center;gap:4px;margin:0;display:flex;position:fixed;inset:auto 0 0;overflow-x:auto;box-shadow:0 -4px 18px #0002}.hosted-shell .doc-detail-layout .rail-action{flex:0 0 44px;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px}.hosted-shell .doc-detail-layout .rail-action__label{display:none}.hosted-shell.menu-open .doc-detail-layout .rail-actions{visibility:hidden}.hosted-shell .list-controls .list-controls__extra{flex-wrap:wrap;justify-content:flex-end;align-items:flex-end;max-width:100%;margin-left:auto}.hosted-shell .list-controls__extra>label{flex-wrap:nowrap;justify-content:flex-end;max-width:100%;margin-left:auto;display:flex}.hosted-shell .list-controls__extra input[type=date]{width:160px;min-width:0;max-width:100%}}:root{font-family:var(--font-sans);color:var(--color-text);background:var(--color-bg)}main.auth-page{width:min(100% - 32px,560px);margin:auto;padding:32px 0}section{background:var(--color-surface);border-color:var(--color-border)}button{background:var(--color-accent);color:var(--color-surface)}input,select,textarea{background:var(--color-surface);color:var(--color-text);border-color:var(--color-border-strong)}.link{color:var(--color-accent);background:0 0}.secondary{background:var(--color-surface-2);color:var(--color-text);border-color:var(--color-border-strong)}:is(button,input,select,textarea,a):focus-visible{outline:3px solid var(--color-focus);outline-offset:3px}.notice{background:var(--color-success-soft);color:var(--color-success)}.error{background:var(--color-danger-soft);color:var(--color-danger)}.hint,.allowance,.role-label,.footnote,.eyebrow,dt{color:var(--color-text-muted)}.invoice-card,.invoice-totals,.support-record{background:var(--color-surface-2);color:var(--color-text)}.invoice-total dt,.invoice-total dd{color:var(--color-text)}.staff-workspace{--staff-bg:var(--color-surface);--staff-card:var(--color-surface-2);--staff-text:var(--color-text);--staff-muted:var(--color-text-muted);--staff-border:var(--color-border-strong)}.hosted-shell .sidebar{flex-wrap:nowrap;margin:0;overflow-y:auto}.hosted-shell .nav-link{flex-shrink:0;min-height:44px;text-decoration:none}.hosted-shell .main{min-width:0}.hosted-shell .topbar{min-height:var(--topbar-height);gap:12px;height:auto;padding-block:10px}.hosted-shell .workspace-title{margin:0 0 var(--space-4);letter-spacing:normal;font-size:var(--text-xl);overflow-wrap:normal}.hosted-shell main.content{width:100%;padding:var(--space-5);min-width:0;margin:0}.hosted-shell .content__inner{width:100%}.shell-actions{flex-wrap:nowrap;align-items:center;gap:12px;margin-left:auto;display:flex}.hosted-shell .theme-toggle,.hosted-shell .mobile-menu{flex:0 0 44px;justify-content:center;align-items:center;width:44px;min-width:44px;height:44px;padding:0}.hosted-shell .theme-toggle{display:inline-flex}.hosted-shell .theme-toggle svg,.hosted-shell .mobile-menu svg{flex-shrink:0;display:block}.account-name{font-size:var(--text-sm);overflow-wrap:anywhere;max-width:180px}.business-workspace{border:0;margin:0;padding:0}.business-workspace>label{max-width:520px}.business-detail{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:var(--space-5)}.business-detail>form{max-width:720px}.business-detail>nav{margin-bottom:24px}.business-workspace h2{margin-top:0}.mobile-menu{display:none}.skip-link{z-index:100;background:var(--color-surface);padding:12px;position:fixed;top:-100px;left:16px}.skip-link:focus{top:10px}.discard-dialog{border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-surface);max-width:min(480px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--color-text);box-shadow:var(--shadow-sm);padding:24px}.discard-dialog::backdrop{background:#0009}.discard-dialog h2{margin-top:0}.session-alert{margin:0}@media (width<=760px){.hosted-shell{grid-template-columns:minmax(0,1fr);height:100dvh;position:relative}.hosted-shell .sidebar{z-index:20;grid-area:2/1/3;width:min(300px,90vw);display:none;position:absolute;top:0;bottom:0;left:0;box-shadow:8px 0 24px #0005}.hosted-shell.menu-open .sidebar{display:flex}.hosted-shell{grid-template-rows:auto minmax(0,1fr)}.hosted-shell .main{display:contents}.hosted-shell .content{grid-row:2}.mobile-menu{display:inline-flex}.hosted-shell .topbar{flex-wrap:nowrap;grid-row:1;gap:8px;padding:8px 12px;display:flex}.shell-actions{justify-content:flex-end;gap:8px}.account-name{display:none}.hosted-shell main.content,.business-detail{padding:16px}.business-detail h3{font-size:20px}.staff-workspace{padding:12px}}.hosted-shell .list-controls .list-search__input{min-height:0;padding:1px 2px}.hosted-shell .list-controls .list-tab{min-height:0}.hosted-shell .list-pager .list-pager__step{flex:0 0 30px;place-items:center;width:30px;min-width:30px;height:30px;min-height:0;padding:0;display:grid}.hosted-shell .list-pager__step svg{display:block}.hosted-shell .list-pager .list-pager__size .select{height:30px;min-height:0;padding-block:4px;line-height:20px}@media (width<=760px){.hosted-shell .list-pager .list-pager__step{flex-basis:44px;width:44px;min-width:44px;height:44px;min-height:44px}.hosted-shell .list-pager .list-pager__size .select{height:44px;min-height:44px;font-size:16px}.hosted-shell .list-controls .list-search{padding-top:4px;padding-bottom:4px}.hosted-shell .list-controls .list-search__input,.hosted-shell .list-controls .list-tab{min-height:44px}}
