:root{--navy:#0f2a43;--navy-700:#143655;--navy-900:#0a1d30;--accent:#2f80ed;--accent-600:#2567c4;--ok:#2e9e6b;--warn:#d98324;--danger:#d24b4b;--bg:#f4f6f9;--surface:#fff;--border:#e2e7ee;--text:#1d2733;--text-muted:#687587;--radius:14px;--radius-sm:10px;--shadow:0 1px 3px rgba(16,32,53,.08),0 6px 20px rgba(16,32,53,.06);--tap:48px;--sidebar-w:248px;--topbar-h:60px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}*{box-sizing:border-box}html,body{background:var(--bg);height:100%;color:var(--text);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:17px;line-height:1.45}a{color:var(--accent);text-decoration:none}.app-shell{flex-direction:column;min-height:100%;display:flex}.app-topbar{z-index:30;height:calc(var(--topbar-h) + var(--safe-top));padding-top:var(--safe-top);background:var(--navy);color:#fff;box-shadow:var(--shadow);align-items:center;gap:12px;padding-left:14px;padding-right:14px;display:flex;position:-webkit-sticky;position:sticky;top:0}.app-topbar__logo{flex-shrink:0;width:auto;height:28px;display:block}.app-topbar__spacer{flex:1}.app-topbar__user{align-items:center;gap:12px;display:flex}.app-topbar__email{color:#cdd9e6;font-size:.95rem}.app-body{flex:1;min-height:0;display:flex}.app-sidebar{top:calc(var(--topbar-h) + var(--safe-top));width:var(--sidebar-w);background:var(--navy-900);padding:12px 10px calc(12px + var(--safe-bottom));z-index:25;flex-direction:column;transition:transform .22s;display:flex;position:fixed;bottom:0;left:0;overflow-y:auto;transform:translate(-100%)}.app-sidebar.is-open{transform:translate(0)}.app-sidebar__footer{border-top:1px solid rgba(255,255,255,.08);flex-direction:column;gap:3px;margin-top:auto;padding-top:12px;padding-left:14px;display:flex}.sidebar-build__version{color:rgba(255,255,255,.45);letter-spacing:.03em;font-size:.7rem;font-weight:600}.sidebar-build__meta{color:rgba(255,255,255,.25);font-family:monospace;font-size:.65rem}.nav-link{min-height:var(--tap);border-radius:var(--radius-sm);color:#c6d3e2;align-items:center;gap:14px;margin-bottom:4px;padding:0 14px;font-weight:500;display:flex}.nav-link:hover{color:#fff;background:rgba(255,255,255,.06)}.nav-link.is-active{background:var(--accent);color:#fff}.nav-ico{text-align:center;opacity:.95;width:22px;font-size:1.05rem}.nav-label{white-space:nowrap}.nav-divider{background:rgba(255,255,255,.08);height:1px;margin:10px 8px}.app-content{min-width:0;padding:18px 16px calc(18px + var(--safe-bottom));flex:1}.auth-shell{background:linear-gradient(160deg,var(--navy)0%,var(--navy-900)100%);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.auth-card{background:var(--surface);border-radius:var(--radius);width:100%;max-width:380px;box-shadow:var(--shadow);padding:28px 24px}.auth-logo{width:auto;height:40px;margin-bottom:6px;display:block}.auth-tagline{color:var(--text-muted);margin:4px 0 22px}.auth-form{flex-direction:column;gap:14px;display:flex}.auth-hint{color:var(--text-muted);text-align:center;margin:6px 0 0;font-size:.85rem}.auth-hint code{background:var(--bg);border-radius:6px;padding:2px 6px}.page{max-width:1280px;margin:0 auto}.page__header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;display:flex}.page__title{margin:0;font-size:1.6rem;font-weight:700}.page__subtitle{color:var(--text-muted);margin:2px 0 0}.page__actions{gap:10px;display:flex}.back-link{color:var(--text-muted);margin-bottom:6px;font-size:.9rem;display:inline-block}.btn{min-height:var(--tap);border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);cursor:pointer;justify-content:center;align-items:center;padding:0 18px;font-size:1rem;font-weight:600;transition:background .15s,transform 50ms;display:inline-flex}.btn.add-location{margin-top:10px}.btn:active{transform:translateY(1px)}.btn--primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn--primary:hover{background:var(--accent-600)}.btn--ghost{color:inherit;background:0 0;border-color:transparent}.btn--danger{color:#fff;background:#c0392b;border-color:#c0392b}.btn--danger:hover{background:#a93226;border-color:#a93226}.modal-overlay{z-index:2000;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background:rgba(15,24,33,.5);justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.modal-card{background:var(--surface);width:100%;max-width:460px;color:var(--text);border-radius:var(--radius);padding:24px 24px 18px;animation:.14s ease-out modal-pop;box-shadow:0 24px 64px rgba(15,24,33,.35)}.modal-card__title{margin:0 0 10px;font-size:1.2rem;font-weight:700}.modal-card__message{color:var(--text-muted);margin:0 0 22px;line-height:1.55}.modal-card__actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}@keyframes modal-pop{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:none}}.btn[disabled],.btn[disabled]:hover{cursor:not-allowed;opacity:.5;-webkit-filter:saturate(.6);filter:saturate(.6);pointer-events:none}.app-topbar .btn--ghost{color:#cdd9e6}.btn--lg{min-height:54px;padding:0 22px;font-size:1.05rem}.btn--block{width:100%}.icon-btn{width:var(--tap);height:var(--tap);color:#fff;cursor:pointer;background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;font-size:1.4rem;display:inline-flex}.card-grid{grid-template-columns:1fr;gap:14px;margin-bottom:18px;display:grid}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);color:var(--text);border-left:5px solid var(--accent);padding:20px;display:block}.stat-card--accent{border-left-color:var(--accent)}.stat-card--warn{border-left-color:var(--warn)}.stat-card--ok{border-left-color:var(--ok)}.stat-card__value{font-size:2.4rem;font-weight:800;line-height:1}.stat-card__label{color:var(--text-muted);margin-top:8px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:16px;padding:18px}.panel__header{justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:12px;display:flex}.panel__title{margin:0;font-size:1.15rem;font-weight:700}.panel__hint{color:var(--text-muted);font-size:.85rem}.panel__footer{border-top:1px solid var(--border);margin-top:14px;padding-top:12px}.progress{background:var(--bg);border-radius:999px;height:14px;overflow:hidden}.progress__bar{background:linear-gradient(90deg,var(--ok),var(--accent));height:100%}.progress__caption{color:var(--text-muted);margin-top:8px;font-size:.9rem}.board{-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;gap:14px;padding-bottom:8px;display:flex;overflow-x:auto}.board__column{scroll-snap-align:start;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;flex:0 0 270px;max-height:78vh;display:flex}.board__column-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:14px 16px;font-weight:700;display:flex}.board__cards{flex-direction:column;gap:10px;padding:12px;display:flex;overflow-y:auto}.board__empty{color:var(--text-muted);text-align:center;padding:18px 0;font-size:.9rem}.dispatch-card{border:1px solid var(--border);border-radius:var(--radius-sm);background:#fcfdfe;padding:12px}.dispatch-card__top{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.dispatch-card__number{font-weight:700}.dispatch-card__row{font-size:.95rem}.dispatch-card__muted{color:var(--text-muted);font-size:.85rem}.dispatch-card__actions{gap:8px;margin-top:10px;display:flex}.pill{background:var(--bg);color:var(--text-muted);text-transform:capitalize;border-radius:999px;padding:3px 10px;font-size:.78rem;font-weight:700;display:inline-block}.pill--lg{padding:6px 14px;font-size:.9rem}.pill--draft{color:#6b7686;background:#eef1f5}.pill--scheduled,.pill--submitted,.pill--queued{color:var(--accent-600);background:#e7f0fd}.pill--dispatched,.pill--extracting,.pill--processing{color:var(--warn);background:#fff1df}.pill--inProgress,.pill--needsReview,.pill--active{color:#a4631a;background:#fde9c8}.pill--completed,.pill--approved,.pill--paid,.pill--accepted{color:var(--ok);background:#def0e6}.pill--cancelled,.pill--rejected,.pill--failed,.pill--void{color:var(--danger);background:#fbe1e1}.pill--invoiced,.pill--issued,.pill--exported{color:#4f4fb0;background:#e7eafd}.badge{background:var(--bg);color:var(--text-muted);border-radius:999px;padding:1px 9px;font-size:.8rem}.list-row{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:14px 6px;display:flex}.list-row:last-child{border-bottom:0}.list-row__main{flex:1;font-weight:600}.list-row__meta{color:var(--text-muted);font-size:.9rem}.list-row__amount{font-variant-numeric:tabular-nums;font-weight:600}.responsive-table{border-collapse:collapse;width:100%}.responsive-table th{text-align:left;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;border-bottom:2px solid var(--border);padding:8px 10px;font-size:.8rem}.responsive-table td{border-bottom:1px solid var(--border);padding:14px 10px}.responsive-table__action{text-align:right}.kv{border-bottom:1px solid var(--border);justify-content:space-between;gap:12px;padding:10px 0;display:flex}.kv:last-child{border-bottom:0}.kv__k{color:var(--text-muted)}.kv__v{text-align:right;word-break:break-word;font-weight:600}.kv-block{margin-top:8px}.doc-row{border-bottom:1px solid var(--border);justify-content:space-between;padding:10px 0;display:flex}.doc-row__name{font-weight:600}.doc-row__meta{color:var(--text-muted);font-size:.85rem}.detail-grid{grid-template-columns:1fr;gap:16px;display:grid}.field{flex-direction:column;gap:6px;display:flex}.field__label{color:var(--text-muted);font-size:.85rem;font-weight:600}.input{min-height:var(--tap);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);background:#fff;padding:0 14px;font-size:1rem}.input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px rgba(47,128,237,.15)}.alert{border-radius:var(--radius-sm);padding:12px 14px;font-size:.95rem}.alert--error{color:var(--danger);background:#fbe1e1}.empty-state{color:var(--text-muted);text-align:center;padding:32px 16px}.empty-state--sm{padding:16px;font-size:.9rem}.empty-state--centered{flex-direction:column;align-items:center;gap:12px;display:flex}.empty-state__big{color:var(--navy);font-size:3.5rem;font-weight:800}.action-bar{z-index:10;padding:12px 0 calc(12px + var(--safe-bottom));background:linear-gradient(180deg,rgba(244,246,249,0) 0%,var(--bg)40%);justify-content:flex-end;gap:10px;display:flex;position:-webkit-sticky;position:sticky;bottom:0}.toast{border-radius:var(--radius-sm);background:var(--navy);color:#fff;margin-top:12px;padding:12px 14px;font-size:.95rem}@media (min-width:720px){.card-grid{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:1fr 1fr}}@media (min-width:1024px){.app-topbar__menu{display:none}.app-sidebar{transform:translate(0)}.app-content{margin-left:var(--sidebar-w)}.card-grid{grid-template-columns:repeat(4,1fr)}}@media (max-width:719px){.responsive-table,.responsive-table thead,.responsive-table tbody,.responsive-table th,.responsive-table td,.responsive-table tr{display:block}.responsive-table thead{display:none}.responsive-table tr{border:1px solid var(--border);border-radius:var(--radius-sm);margin-bottom:10px;padding:6px 10px}.responsive-table td{border:0;justify-content:space-between;gap:12px;padding:8px 0;display:flex}.responsive-table td:before{content:attr(data-label);color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;font-size:.8rem}.responsive-table__action{justify-content:flex-end}}.wiz-overlay{z-index:100;background:rgba(10,20,35,.55);justify-content:center;align-items:stretch;padding:0;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.wiz-modal{background:var(--surface);flex-direction:column;width:100%;max-width:880px;display:flex;overflow:hidden}@media (min-width:720px){.wiz-overlay{align-items:center;padding:24px}.wiz-modal{border-radius:var(--radius);box-shadow:var(--shadow);max-height:calc(100vh - 48px)}}.wiz-topbar{background:var(--navy);color:#fff;align-items:center;gap:12px;padding:12px 14px;display:flex;position:relative}.wiz-close{color:#fff;cursor:pointer;background:0 0;border:0;border-radius:8px;width:40px;height:40px;font-size:1.6rem}.wiz-title{flex:1;line-height:1.1}.wiz-title__main{font-size:1.1rem;font-weight:700}.wiz-title__sub{color:#cdd9e6;margin-top:2px;font-size:.85rem}.wiz-progress{background:rgba(255,255,255,.12);height:3px;position:absolute;bottom:0;left:0;right:0}.wiz-progress__bar{background:var(--accent);height:100%;transition:width .2s}.wiz-body{padding:18px 18px calc(18px + var(--safe-bottom));flex:1;overflow-y:auto}.wiz-step{flex-direction:column;gap:14px;max-width:720px;margin:0 auto;display:flex}.wiz-step__title{margin:4px 0 0;font-size:1.3rem;font-weight:700}.wiz-step__hint{color:var(--text-muted);margin:0}.wiz-row{flex-wrap:wrap;gap:12px;display:flex}.wiz-row>.field{flex:200px}.wiz-row__grow{flex:2 240px}.wiz-fieldset{border:1px solid var(--border);border-radius:var(--radius-sm);margin:8px 0;padding:12px 14px}.wiz-fieldset__legend{color:var(--text);padding:0 6px;font-size:.85rem;font-weight:700}.wiz-fieldset__hint{color:var(--text-muted);margin:4px 0 10px;font-size:.85rem}.wiz-textarea{resize:vertical;min-height:64px;padding:10px 14px}.wiz-choice-grid{grid-template-columns:1fr;gap:10px;display:grid}@media (min-width:600px){.wiz-choice-grid{grid-template-columns:repeat(2,1fr)}}.wiz-choice{border:2px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;background:var(--surface);flex-direction:column;gap:2px;min-height:70px;padding:14px;display:flex}.wiz-choice.is-active{border-color:var(--accent);background:#f1f7ff}.wiz-choice__title{font-weight:700}.wiz-choice__hint{color:var(--text-muted);font-size:.88rem}.wiz-choice input{opacity:0;pointer-events:none;position:absolute}.wiz-check-grid{grid-template-columns:1fr;gap:10px;display:grid}@media (min-width:600px){.wiz-check-grid{grid-template-columns:repeat(2,1fr)}}.wiz-check{border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;background:var(--surface);flex-direction:column;gap:4px;padding:12px 14px;display:flex}.wiz-check__title{font-weight:600}.wiz-check__hint{color:var(--text-muted);font-size:.85rem}.wiz-check input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px;margin-right:6px}.wiz-callout{color:var(--accent-600);border-radius:var(--radius-sm);background:#f1f7ff;border:1px solid #cfe1fa;padding:10px 14px;font-size:.92rem}.wiz-footer{border-top:1px solid var(--border);background:#fbfcfd;align-items:center;gap:8px;padding:12px 14px;display:flex}.wiz-footer__spacer{flex:1}.wiz-error{border-top:1px solid var(--border);color:var(--danger);background:#fbe1e1;padding:10px 14px}.wiz-hint{border-top:1px solid var(--border);color:#8a5a00;background:#fff7e6;padding:10px 14px;font-size:.92rem;transition:opacity .3s}.wiz-hint--ghost{opacity:0;visibility:hidden;pointer-events:none}.wiz-review{flex-direction:column;display:flex}.wiz-review__h{text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin:16px 0 6px;font-size:.85rem}.wiz-actions{flex-wrap:wrap;gap:8px;margin-top:16px;display:flex}.board__cards--row{flex-flow:wrap;padding:0}.order-card{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);flex:220px;max-width:320px;padding:12px 14px}.order-card__top{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.order-card__customer{font-weight:700}.order-card__row{font-size:.95rem}.order-card__muted{color:var(--text-muted);margin-top:2px;font-size:.88rem}.pill--pending{color:var(--accent-600);background:#e7f0fd}.pill--assigning{color:#a4631a;background:#fde9c8}.customer-list{border-top:1px solid var(--border);flex-direction:column;display:flex}.customer-row{border-bottom:1px solid var(--border);color:inherit;min-height:var(--tap);align-items:flex-start;gap:16px;padding:14px 4px;text-decoration:none;display:flex}.customer-row:hover{background:#f7faff}.customer-row:active{background:#eef4ff}.customer-row--archived{opacity:.6}.customer-row__main{flex:220px}.customer-row__name{font-size:1.05rem;font-weight:700}.customer-row__badge{margin-left:8px;font-size:.75rem}.customer-row__meta{color:var(--text-muted);margin-top:2px;font-size:.9rem}.customer-row__detail{flex:2 360px;grid-template-columns:repeat(3,minmax(0,1fr));align-content:center;gap:4px 16px;min-width:0;display:grid}.customer-row__detail-line{flex-direction:column;min-width:0;display:flex}.customer-row__detail-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;font-size:.75rem}.customer-row__detail-value{text-overflow:ellipsis;white-space:nowrap;font-size:.95rem;overflow:hidden}@media (max-width:720px){.customer-row{flex-direction:column}.customer-row__detail{grid-template-columns:repeat(2,minmax(0,1fr))}}.customer-form{flex-direction:column;gap:14px;display:flex}.customer-form__footer{border-top:1px solid var(--border);justify-content:flex-end;gap:10px;margin-top:4px;padding-top:12px;display:flex}.repeater{flex-direction:column;gap:10px;display:flex}.repeater-row{border:1px solid var(--border);border-radius:var(--radius-sm);background:#fbfcfd;flex-wrap:wrap;align-items:flex-end;gap:10px;padding:10px;display:flex}.repeater-row--block{flex-direction:column;align-items:stretch}.repeater-row__primary{color:var(--text-muted);min-height:var(--tap);align-items:center;gap:6px;font-size:.9rem;display:inline-flex}.repeater-row__primary input[type=radio]{width:18px;height:18px;accent-color:var(--accent)}.repeater-row__primary input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}.repeater-row__remove{color:var(--danger)}.quote-wiz{flex-direction:column;gap:0;min-height:calc(100vh - 16px);display:flex}.quote-wiz__topbar{border-bottom:1px solid var(--border);background:var(--surface);z-index:1;flex-direction:column;gap:6px;padding:12px 4px 8px;display:flex;position:-webkit-sticky;position:sticky;top:0}.quote-wiz__title{line-height:1.1}.quote-wiz__title-main{font-size:1.2rem;font-weight:700}.quote-wiz__title-sub{color:var(--text-muted);margin-top:2px;font-size:.9rem}.quote-wiz__progress{background:var(--border);border-radius:2px;height:4px;overflow:hidden}.quote-wiz__progress-bar{background:var(--accent);height:100%;transition:width .2s}.quote-wiz__steps{flex-wrap:wrap;gap:6px;padding:8px 4px 0;display:flex}.quote-wiz__step-tab{border:1px solid var(--border);background:var(--surface);min-height:40px;color:var(--text-muted);cursor:pointer;border-radius:999px;align-items:center;gap:8px;padding:8px 12px;font-size:.9rem;display:inline-flex}.quote-wiz__step-tab:disabled{opacity:.45;cursor:default}.quote-wiz__step-tab-n{background:var(--border);width:22px;height:22px;color:var(--text);border-radius:50%;justify-content:center;align-items:center;font-size:.8rem;font-weight:700;display:inline-flex}.quote-wiz__step-tab--on{border-color:var(--accent);color:var(--text);font-weight:700}.quote-wiz__step-tab--on .quote-wiz__step-tab-n{background:var(--accent);color:#fff}.quote-wiz__step-tab--done{color:var(--text)}.quote-wiz__step-tab--done .quote-wiz__step-tab-n{background:var(--accent);color:#fff}.quote-wiz__hint--warn{color:#7a3b00;background:#fdeede}.quote-wiz__body{flex:1;padding:14px 4px;overflow-y:auto}.quote-wiz__step{flex-direction:column;gap:14px;max-width:none;display:flex}.quote-wiz__step-title{margin:4px 0 0;font-size:1.3rem;font-weight:700}.quote-wiz__step-hint{color:var(--text-muted);margin:0}.quote-wiz__row{flex-wrap:wrap;gap:12px;display:flex}.quote-wiz__row>.field{flex:200px}.quote-wiz__row-grow{flex:2 240px}.quote-wiz__row-end{justify-content:flex-end}.quote-wiz__fieldset{border:1px solid var(--border);border-radius:var(--radius-sm);margin:4px 0 0;padding:12px}.quote-wiz__fieldset-legend{color:var(--text);padding:0 6px;font-size:.85rem;font-weight:700}.quote-wiz__fieldset-hint{color:var(--text-muted);margin:4px 0 10px;font-size:.85rem}.location-map{border:1px solid var(--border);border-radius:var(--radius-sm);height:320px;margin-top:10px;overflow:hidden}.location-map--hidden{display:none}.map-legend{flex-wrap:wrap;gap:8px 16px;margin:0 0 4px;padding:0;list-style:none;display:flex}.map-legend__item{align-items:center;gap:8px;font-size:.92rem;display:flex}.map-legend__dot{border:1px solid rgba(0,0,0,.35);border-radius:50%;flex:none;width:14px;height:14px}.map-legend__label{font-weight:600}.map-legend__type{color:var(--text-muted);font-size:.85rem}.pin-banner{border-radius:var(--radius-sm);color:#1e3a8a;background:#dbeafe;border:1px solid #93c5fd;margin:0 0 10px;padding:8px 12px;font-size:.92rem}.pin-banner .fa-location-dot{margin-right:6px}.places-autocomplete-host{width:100%}.places-autocomplete-host gmp-place-autocomplete{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;width:100%}.pac-container,.gmpx-place-autocomplete,gmp-place-autocomplete{z-index:100000}.quote-wiz__textarea{resize:vertical;min-height:64px;padding:10px 14px}.quote-wiz__footer{border-top:1px solid var(--border);background:var(--surface);align-items:center;gap:8px;padding:12px 4px;display:flex;position:-webkit-sticky;position:sticky;bottom:0}.quote-wiz__footer-spacer{flex:1}.quote-wiz__hint{color:#6b4f00;border-radius:var(--radius-sm);background:#fff7e0;margin:0 4px;padding:8px 12px}.quote-wiz__error{color:#8a1f1f;border-radius:var(--radius-sm);background:#fde7e7;margin:4px;padding:10px 12px}.chip-group{flex-wrap:wrap;gap:8px;display:flex}.chip-group--filter{margin:4px 0 14px}.list-search{max-width:460px;margin:4px 0 6px}.list-toolbar,.customer-toolbar{flex-wrap:wrap;align-items:flex-end;gap:16px;margin-bottom:14px;display:flex}.list-toolbar .list-search{margin-bottom:0}.list-toolbar__search,.customer-toolbar__search{flex:260px}.list-toolbar__toggle,.customer-toolbar__toggle{color:var(--text-muted);min-height:var(--tap);align-items:center;gap:8px;font-weight:600;display:inline-flex}.list-toolbar__toggle input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}.customer-toolbar__toggle input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}.list-row--archived{opacity:.55}.chip{border:1px solid var(--border,#d5d8de);color:var(--text,#1a1a1a);cursor:pointer;background:#fff;border-radius:999px;align-items:center;gap:8px;min-height:44px;padding:10px 14px;font-size:.95rem;transition:background .12s,border-color .12s;display:inline-flex}.chip:hover{border-color:var(--accent,#0f62fe)}.chip--on{background:var(--accent,#0f62fe);color:#fff;border-color:var(--accent,#0f62fe)}.chip__main{font-weight:600}.chip__meta{opacity:.8;font-size:.85rem}.ledger-group{display:block}.ledger-group--customer,.ledger-group--job,.ledger-group--assignee{margin-left:14px}.ledger-head{cursor:pointer;text-align:left;width:100%;color:var(--text);min-height:var(--tap);border-radius:var(--radius-sm);background:0 0;border:0;align-items:center;gap:10px;padding:8px 10px;display:flex}.ledger-head:hover{background:#f4f7fb}.ledger-caret{width:14px;color:var(--text-muted);flex:none;font-size:.8rem}.ledger-head__label{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;font-weight:600;overflow:hidden}.ledger-head__count{color:var(--text-muted);background:var(--bg);border-radius:999px;flex:none;padding:1px 9px;font-size:.85rem}.ledger-head--date{background:var(--navy);color:#fff;border-radius:var(--radius-sm);margin-top:10px}.ledger-head--date:hover{background:var(--navy-700)}.ledger-head--date .ledger-caret{color:#cdd9e6}.ledger-head--date .ledger-head__count{color:#fff;background:rgba(255,255,255,.15)}.ledger-head--customer{font-size:1.02rem}.ledger-head--job .ledger-head__label{color:var(--text);font-weight:600}.ledger-head--assignee .ledger-head__label{color:var(--text-muted);font-weight:500}.ledger-row{border-bottom:1px solid var(--border);color:inherit;min-height:var(--tap);align-items:center;gap:12px;margin-left:42px;padding:10px 12px;text-decoration:none;display:flex}.ledger-row:hover{background:#f7faff}.ledger-row--archived{opacity:.55}.ledger-row--drop{outline:2px dashed var(--accent);outline-offset:-2px;background:#eef4ff}.ledger-row--uploading{opacity:.6;pointer-events:none}.ledger-row__slip{font-variant-numeric:tabular-nums;flex:none;font-weight:700}.ledger-row__invoiced{flex:auto;font-size:.9rem;font-weight:600}.ledger-row__invoiced.is-invoiced{color:var(--ok)}.ledger-row__invoiced.is-not{color:var(--text-muted)}.ledger-row__time{color:var(--text-muted);flex:none;font-size:.85rem}.slip-context{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px 24px;margin-bottom:16px;display:grid}.slip-topbar{flex-wrap:wrap;align-items:flex-start;gap:10px 28px;margin-bottom:16px;display:flex}.slip-topbar__cell{flex-direction:column;min-width:120px;display:flex}.slip-topbar__cell--config{min-width:240px}.slip-topbar__k{text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-size:.72rem;font-weight:700}.slip-topbar__v{font-weight:600}.slip-topbar__input{width:100%;max-width:160px;padding:4px 8px;font-weight:600}.slip-topbar2{grid-template-columns:1fr 1fr;align-items:start;gap:10px 32px;margin-bottom:14px;display:grid}@media (max-width:720px){.slip-topbar2{grid-template-columns:1fr}}.slip-notes{flex-direction:column;align-items:stretch;gap:6px;display:flex}.slip-notes textarea.input{resize:vertical;width:100%;min-height:56px}.panel--debug{opacity:.85;background:#fbfbfd;border-style:dashed}.input-affix{display:block;position:relative}.input-affix>.input{width:100%;padding-right:30px}.input-affix--native>.input{padding-right:56px}.suggest{line-height:1;display:inline-flex;position:absolute;top:50%;right:7px;transform:translateY(-50%)}.input-affix--native .suggest{right:34px}.input-affix--textarea .suggest{top:7px;right:7px;transform:none}.suggest__spark{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;cursor:pointer;opacity:.6;background:0 0;border:0;padding:2px;font-size:.95rem;line-height:1}.suggest__spark:hover{opacity:1}.suggest__pop{z-index:30;white-space:nowrap;border:1px solid var(--accent);border-radius:var(--radius-sm);background:#fff;align-items:center;gap:2px;padding:3px 4px;display:none;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 6px 18px rgba(0,0,0,.14)}.suggest:hover .suggest__pop{display:inline-flex}.suggest:focus-within .suggest__pop{display:inline-flex}.suggest__use{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;color:var(--accent);font:inherit;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;max-width:260px;padding:2px 6px;font-size:.8rem;font-weight:600;overflow:hidden}.suggest__use:hover{text-decoration:underline}.suggest__x{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;padding:2px 6px;font-weight:700;line-height:1}.suggest__x:hover{color:var(--danger,#b42318)}.price-palette{flex-wrap:wrap;gap:10px;display:flex}.price-chip{border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;min-height:var(--tap);background:#fff;flex-direction:column;align-items:flex-start;padding:8px 14px;transition:border-color .12s,background .12s;display:inline-flex}.price-chip:hover{border-color:var(--accent);background:#f4f7fb}.price-chip__name{font-weight:600}.price-chip__price{color:var(--text-muted);font-variant-numeric:tabular-nums;font-size:.85rem}.image-versions{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.image-versions .chip{min-height:34px;padding:4px 12px;font-size:.85rem}.slip-image-view{display:block}.slip-image-view img{object-fit:contain;border:1px solid var(--border);border-radius:var(--radius-sm);background:#f4f6f9;width:100%;max-height:70vh}.time-row{flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:8px;display:flex}.time-row .field{flex:90px}.subpanel{border:1px solid var(--border);border-radius:var(--radius-sm);margin-bottom:8px;padding:8px 12px 10px}.subpanel:last-child{margin-bottom:0}.subpanel>.panel__header{margin-top:0;margin-bottom:6px}.detail-grid>section:last-child{flex-direction:column;display:flex}.subpanel--grow{flex-direction:column;flex:1 1 0;min-height:0;display:flex}.subpanel--grow .line-items-box{flex:1 1 0;overflow-y:auto}.line-items-box{flex-direction:column;min-height:84px;display:flex}.line-items-placeholder{flex-direction:column;flex:1;justify-content:center;gap:5px;padding:4px 0;display:flex}.ghost-row{border:1px dashed var(--border);border-radius:var(--radius-sm);background:var(--surface-muted,#f4f6f9);opacity:.55;height:24px}.line-items-placeholder__hint{text-align:center;color:var(--text-muted);margin:3px 0 0;font-size:.82rem}.detail-fields{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));align-items:start;gap:8px 16px;display:grid}.detail-fields .field{flex-direction:column;gap:3px;min-width:0;display:flex}.detail-fields .field--wide{grid-column:1/-1}.detail-fields .field--check{min-height:var(--tap);flex-direction:row;align-items:center;gap:10px}.detail-fields .field--check input[type=checkbox]{width:22px;height:22px}.detail-fields .field__label--inline{margin:0;font-weight:600}.detail-fields textarea.input{resize:vertical;min-height:44px}.line-item{border-bottom:1px solid var(--border);align-items:center;gap:8px;padding:4px 0;display:flex}.line-item__name{text-overflow:ellipsis;white-space:nowrap;flex:140px;min-width:0;font-weight:600;overflow:hidden}.line-item__name.input{flex:140px}.line-item__qty{flex:none;width:80px}.line-item__unit{width:64px;color:var(--text-muted);flex:none}.line-item__unit.input{width:72px}.line-item__price{text-align:right;font-variant-numeric:tabular-nums;flex:none;width:90px}.line-item__price.input{text-align:right;width:90px}.line-item__total{text-align:right;font-variant-numeric:tabular-nums;flex:none;width:90px;font-weight:700}.line-item__addrow{align-items:center;gap:12px;margin-top:8px;display:flex}.line-item__grand{font-variant-numeric:tabular-nums;margin-left:auto;font-weight:800}.hourly-toggle{cursor:pointer;align-items:center;gap:8px;min-height:28px;margin-bottom:6px;font-weight:600;display:flex}.hourly-toggle input[type=checkbox]{width:20px;height:20px}.hourly-toggle__rate{color:var(--text-muted);font-size:.85rem;font-weight:600}.line-item--hourly{background:#f7f9fc}.line-item__auto{text-transform:uppercase;letter-spacing:.05em;color:var(--accent);border:1px dashed var(--accent);border-radius:999px;flex:none;padding:1px 7px;font-size:.62rem;font-weight:700}.panel__header-action{flex:none}.slip-summary{color:var(--text-muted);margin:4px 0 10px;font-style:italic;line-height:1.5}.action-bar--summary{flex-direction:column;align-items:stretch;gap:0;padding-top:8px}.action-bar__btns{justify-content:flex-end;gap:10px;display:flex}.slip-finbar{border-bottom:1px solid var(--border);align-items:flex-start;margin-bottom:6px;padding:6px 0 10px;display:flex}.slip-finbar__col{border-right:1px solid var(--border);flex-direction:column;flex:1;gap:2px;min-width:0;padding:0 14px;display:flex}.slip-finbar__col:first-child{padding-left:0}.slip-finbar__col:last-of-type{border-right:none}.slip-finbar__k{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);white-space:nowrap;font-size:.7rem;font-weight:600}.slip-finbar__v{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:1rem;font-weight:700}.slip-finbar__badge{text-transform:uppercase;color:var(--accent);border:1px dashed var(--accent);border-radius:999px;align-self:flex-start;padding:1px 5px;font-size:.62rem;font-weight:700}.slip-finbar__margin{color:var(--text-muted);font-size:.8rem;font-weight:500}.slip-finbar__saving{color:var(--text-muted);white-space:nowrap;align-self:center;padding-left:14px;font-size:.8rem}.slip-finbar__col.is-profit .slip-finbar__v{color:var(--success,#1a7f37)}.slip-finbar__col.is-loss .slip-finbar__v{color:var(--danger,#b42318)}.slip-finbar__col.is-breakeven .slip-finbar__v{color:var(--text-muted)}.line-item{padding:6px 0;transition:background .1s}.line-item:hover{background:#f7f9fc}.line-item--hourly:hover{background:#f0f4f9}.line-item[data-source=quote]{background:#f3f7fe;border-radius:3px;padding:6px 4px}.line-item[data-source=quote]:hover{background:#eaf1fd}[data-action=remove-line],[data-action=remove-vendor-line]{opacity:.45;transition:opacity .15s,color .15s}[data-action=remove-line]:hover,[data-action=remove-vendor-line]:hover{opacity:1;color:var(--danger,#b42318)}@media (max-width:480px){.slip-finbar__col{padding:0 8px}.slip-finbar__k{font-size:.65rem}.slip-finbar__v{font-size:.88rem}}@media (max-width:360px){.slip-finbar{flex-wrap:wrap}.slip-finbar__col{border-right:none;border-bottom:1px solid var(--border);flex:0 0 50%;padding:4px 4px 4px 0}.slip-finbar__col:last-of-type{border-bottom:none;flex:0 0 100%;padding:6px 0 0}}@media (max-width:520px){.line-item__qty{width:60px}.line-item__unit:not(.input){display:none}.line-item__unit.input{width:54px}.line-item__price,.line-item__price.input{width:75px}}.legs{flex-direction:column;gap:14px;display:flex}.leg-card{border:1px solid var(--border,#d5d8de);border-radius:var(--radius-md,10px);background:#fff;flex-direction:column;gap:10px;padding:14px;display:flex}.leg-card__header{border-bottom:1px solid var(--border,#eef0f3);justify-content:space-between;align-items:center;padding-bottom:8px;display:flex}.leg-card__direction{color:var(--text,#1a1a1a);font-size:.95rem;font-weight:700}.btn--sm{min-height:32px;padding:6px 10px;font-size:.85rem}.leg-card--compact{gap:8px;padding:10px 12px}.leg-card--compact .field{gap:3px}.leg-card--compact .quote-wiz__row{gap:10px}.leg-card__header-actions{align-items:center;gap:14px;display:flex}.loc-primary{color:var(--text-muted);white-space:nowrap;align-items:center;gap:6px;font-size:.85rem;font-weight:600;display:flex}.quote-wiz__row--coords{align-items:flex-end}.quote-wiz__row--coords>.field{flex:0 150px}.quote-wiz__row--coords>.btn{flex:none}.quote-wiz__row--coords>.input{flex:200px;min-width:160px}.leg-card__pricing{border-radius:var(--radius-sm,6px);background:#f5f7fa;flex-direction:column;gap:4px;padding:8px 12px;font-size:.9rem;display:flex}.estimator-matrix{overflow-x:auto}.estimator-table{border-collapse:collapse;border:1px solid var(--border,#d5d8de);border-radius:var(--radius-md,10px);background:#fff;width:100%;overflow:hidden}.estimator-table th,.estimator-table td{text-align:left;vertical-align:top;border-bottom:1px solid var(--border,#eef0f3);padding:10px 12px}.estimator-table thead th{background:#f5f7fa;font-weight:700}.estimator-table tbody th[scope=row]{background:#fafbfc;width:220px;font-weight:600}.estimator-cell{flex-direction:column;gap:4px;min-width:160px;display:flex}.estimator-cell__cycle{font-size:1rem}.estimator-cell__meta{color:var(--text-muted);font-size:.85rem}.estimator-cell__status{color:var(--text);background:#eef0f3;border-radius:999px;align-self:flex-start;padding:2px 8px;font-size:.8rem;font-weight:600}.estimator-cell__status--ok{color:#1f5a1f;background:#d6f5d6}.estimator-cell__status--no-route,.estimator-cell__status--not-configured,.estimator-cell__status--no-supplier,.estimator-cell__status--no-supplier-endpoint,.estimator-cell__status--no-fill-site,.estimator-cell__status--no-fill-site-endpoint,.estimator-cell__status--no-job-site-endpoint,.estimator-cell__status--supplier-not-found,.estimator-cell__status--fill-site-not-found,.estimator-cell__status--leg-missing,.estimator-cell__status--unknown-direction{color:#7a3a00;background:#fde7d6}.estimator-cell__status--no-endpoints,.estimator-cell__status--no-shift-window{color:#38404d;background:#e3e6ec}.estimator-cell__status--na{color:#6b7280;background:#eceef1}.qbo-panel__head{align-items:center;gap:10px;margin-bottom:8px;display:flex}.qbo-badge{color:#38404d;background:#e3e6ec;border-radius:999px;padding:2px 9px;font-size:.8rem;font-weight:600}.qbo-badge--on{color:#1f5a1f;background:#d6f5d6}.qbo-badge--sm{vertical-align:middle;padding:1px 6px;font-size:.68rem}.estimator-cell__loads{font-size:1.05rem}.estimator-cell__loads strong{font-size:1.4rem}.estimator-schedule-panel{border:1px solid var(--border,#e3e6ec);border-radius:8px;margin-top:12px;overflow:hidden}.estimator-schedule-panel__head{background:var(--surface-2,#f6f7f9);border-bottom:1px solid var(--border,#e3e6ec);color:var(--text);justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;font-weight:700;display:flex}.estimator-schedule-panel__avg{color:var(--text-muted);font-weight:500}.estimator-cell__route{align-self:flex-start;font-size:.85rem}.estimator-seg__raw{color:var(--text-muted);font-size:.92em}.dte-mapwrap{border:1px solid var(--border,#e3e6ec);background:#fff;border-radius:10px;overflow:hidden}.dte-tabs{border-bottom:1px solid var(--border,#e3e6ec);background:var(--surface-2,#f6f7f9);flex-wrap:wrap;gap:6px;padding:8px;display:flex}.dte-tab{border:1px solid var(--border,#d5d8de);color:var(--text);cursor:pointer;background:#fff;border-radius:999px;align-items:center;gap:6px;padding:6px 12px;font-size:.9rem;font-weight:600;display:inline-flex}.dte-tab--on{border-color:var(--accent,#2f6fed);box-shadow:inset 0 0 0 1px var(--accent,#2f6fed)}.dte-tab__dot{border-radius:50%;width:11px;height:11px;display:inline-block}.dte-map{width:100%;height:420px}.dte-map--hidden{display:none}.dte-loc{border-top:1px solid var(--border,#e3e6ec);flex-direction:column;gap:3px;padding:10px 12px;display:flex}.dte-loc--hint{color:var(--text-muted)}.dte-loc__title{align-items:center;gap:7px;font-weight:700;display:flex}.dte-loc__dot{border-radius:50%;width:12px;height:12px;display:inline-block}.dte-loc__meta{color:var(--text-muted);font-size:.9rem}.estimator-days{-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;gap:10px;max-height:70vh;padding:10px;font-size:.85rem;display:flex;overflow:auto}.estimator-day{scroll-snap-align:start;flex:0 0 168px;width:168px}.estimator-day__head{z-index:1;background:var(--surface,#fff);border-bottom:2px solid var(--border,#e3e6ec);flex-direction:column;margin-bottom:4px;padding:6px 8px;display:flex;position:-webkit-sticky;position:sticky;top:-10px}.estimator-day__date{color:var(--text);font-weight:700}.estimator-day__sub{color:var(--text-muted);font-size:.78rem}.estimator-round{font-variant-numeric:tabular-nums;background:var(--surface-2,#f6f7f9);border:1px solid var(--border,#e3e6ec);border-radius:6px;margin-bottom:6px;padding:6px 8px}.estimator-round--oneway{border-style:dashed}.estimator-round__head{color:var(--text);margin-bottom:3px;font-weight:700}.estimator-round__toggle{text-align:left;cursor:pointer;width:100%;font:inherit;color:var(--text);background:0 0;border:none;padding:0;font-weight:700;display:block}.estimator-seg{color:var(--text-muted);justify-content:space-between;gap:8px;line-height:1.5;display:flex}.estimator-seg__v{color:var(--text)}.estimator-seg--total{border-top:1px solid var(--border,#e3e6ec);margin-top:3px;padding-top:3px;font-weight:700}.estimator-seg--total .estimator-seg__k,.estimator-seg--total .estimator-seg__v{color:var(--text)}.summary-table tbody td{vertical-align:top}.summary-table .summary-qty{white-space:nowrap;color:var(--text);font-weight:600}.summary-cell{flex-direction:column;gap:2px;min-width:200px;display:flex}.summary-cell__line{font-size:.9rem}.summary-cell__label{color:var(--text-muted)}.summary-cell__hr{background:var(--border,#eef0f3);height:1px;margin:6px 0}.summary-cell__line--margin{font-size:1rem}.summary-cell .estimator-cell__status{align-self:flex-start;margin-top:6px}.estimator-cell__status--no-markup,.estimator-cell__status--no-qty,.estimator-cell__status--no-cost,.estimator-cell__status--no-capacity{color:#6b4f00;background:#fff7e0}.estimator-cell__status--pending-cycle,.estimator-cell__status--on-site{color:#38404d;background:#e3e6ec}.estimator-cell__status--on-site-rate-tbd,.estimator-cell__status--outbound-rate-tbd{color:#7a3a00;background:#fde7d6}.field__value{color:var(--text);padding:10px 0;font-weight:600;display:inline-block}select.input{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;cursor:pointer;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23687587' d='M1.41 0L6 4.59 10.59 0 12 1.42 6 7.42 0 1.42z'/%3E%3C/svg%3E");background-position:right 14px center;background-repeat:no-repeat;padding-right:40px}select.input::-ms-expand{display:none}select.input:disabled{cursor:not-allowed;opacity:.5}.dropzone{border:2px dashed var(--border);text-align:center;background:var(--bg);border-radius:12px;margin-bottom:16px;padding:24px;transition:border-color .15s,background .15s}.dropzone--active{border-color:var(--accent);background:#eef4fe}.dropzone__input{display:none}.dropzone__label{margin:0 0 4px;font-size:1rem}.dropzone__hint{color:var(--text-muted);margin:0;font-size:.85rem}.slip-upload__status{color:var(--accent-600);margin-bottom:8px;font-size:.9rem}.form-error{color:var(--danger);margin-bottom:12px;font-size:.9rem}.slip-doc{border-top:1px solid var(--border);padding:12px 0}.slip-doc__head{justify-content:space-between;align-items:center;gap:8px;display:flex}.slip-doc__meta{color:var(--text-muted);flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px;font-size:.85rem;display:flex}.slip-doc__conf{font-variant-numeric:tabular-nums}.slip-doc__strategy{font-style:italic}.slip-doc__warnings{color:var(--warn);margin:8px 0 0;padding-left:18px;font-size:.85rem}.slip-doc__actions{gap:8px;margin-top:10px;display:flex}.slip-doc__previews{flex-wrap:wrap;gap:12px;margin-top:10px;display:flex}.slip-thumb{color:var(--text-muted);flex-direction:column;align-items:center;gap:4px;font-size:.75rem;display:flex}.slip-thumb img{object-fit:cover;border:1px solid var(--border);background:#fff;border-radius:8px;width:120px;height:120px}.pill--none{color:#6b7686;background:#eef1f5}.pill--succeeded{color:var(--ok);background:#def0e6}.pill--needs_review{color:#a4631a;background:#fde9c8}.badge--warn{color:#a4631a;background:#fbe6cf}.ba-stats{grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:16px;display:grid}.ba-stats .stat-card{text-decoration:none}.stat-card--danger{border-left-color:var(--danger)}.ba-new-badge{background:var(--accent);color:#fff;vertical-align:middle;border-radius:999px;margin-left:10px;padding:2px 9px;font-size:.75rem;font-weight:700;display:inline-block}.ba-loading-dot{color:var(--accent);margin-left:6px;animation:1s ease-in-out infinite ba-pulse}@keyframes ba-pulse{0%,to{opacity:.3}50%{opacity:1}}.ba-chip-row{flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 8px;display:flex}.ba-chip-label{color:var(--text-muted);min-width:52px;font-size:.82rem;font-weight:600}.ba-sort-hint{color:var(--text-muted);margin:0 0 8px;font-size:.82rem;font-style:italic}.ba-table-wrap{margin-top:4px;overflow-x:auto}.ba-table{border-collapse:collapse;width:100%;min-width:900px;font-size:.85rem}.ba-table th{text-align:left;background:var(--surface-2,#f4f6f9);border-bottom:2px solid var(--border);white-space:nowrap;color:var(--text-muted);padding:8px 10px;font-weight:600}.ba-table td{border-bottom:1px solid var(--border);vertical-align:middle;padding:8px 10px}.ba-row{cursor:pointer}.ba-row:hover td{background:#f7f9fb}.ba-row--expanded td{background:#f0f5ff}.ba-row--mismatch td{background:#fff5f5}.ba-row--engine-error td{background:#fffbf0}.ba-row--detail td{cursor:default;background:#fafbfc}.ba-row--detail:hover td{background:#fafbfc}.ba-col--expand{width:28px;color:var(--text-muted)}.ba-col--time{white-space:nowrap;width:110px;color:var(--text-muted);font-size:.8rem}.ba-col--slip,.ba-col--order,.ba-col--status{width:110px}.ba-col--money{text-align:right;font-variant-numeric:tabular-nums;width:88px}.ba-col--delta{text-align:right;font-variant-numeric:tabular-nums;width:70px}.ba-col--ok{text-align:center;width:36px}.ba-col--diag{text-align:center;width:50px}.ba-mono{font-family:ui-monospace,SFMono-Regular,monospace;font-size:.82rem}.ba-delta--nonzero{color:var(--danger);font-weight:700}.chip--match{color:#1d7a4a;white-space:nowrap;background:#e6f7ef;border:1px solid #a8dfc0;border-radius:4px;padding:2px 7px;font-size:.8rem}.chip--mismatch{color:#c0392b;white-space:nowrap;background:#fce8e8;border:1px solid #f5b7b1;border-radius:4px;padding:2px 7px;font-size:.8rem}.chip--engine_error{color:#b7770d;white-space:nowrap;background:#fef9e7;border:1px solid #f9e4a4;border-radius:4px;padding:2px 7px;font-size:.8rem}.ba-detail{padding:10px 14px;font-size:.85rem}.ba-detail__meta{flex-wrap:wrap;align-items:baseline;gap:20px;margin-bottom:10px;display:flex}.ba-detail__kv{align-items:baseline;gap:7px;display:flex}.ba-detail__label{color:var(--text-muted);font-weight:600}.ba-detail__hash{color:var(--text-muted);word-break:break-all;max-width:360px}.ba-detail__json-wrap{align-items:flex-start;gap:10px;display:flex}.ba-detail__json{background:var(--surface-2,#f4f6f9);border:1px solid var(--border);border-radius:var(--radius-sm,6px);white-space:pre;flex:1;max-height:200px;margin:0;padding:8px 12px;font-family:ui-monospace,SFMono-Regular,monospace;font-size:.8rem;line-height:1.5;overflow:auto}.ba-copy-btn{border:1px solid var(--border);color:var(--text-muted);cursor:pointer;background:#fff;border-radius:4px;align-items:center;gap:4px;padding:2px 8px;font-size:.78rem;transition:background .1s,color .1s;display:inline-flex}.ba-copy-btn:hover{background:var(--accent);color:#fff;border-color:var(--accent)}@media (max-width:900px){.ba-stats{grid-template-columns:repeat(3,1fr)}}.chip--needsReview{color:#856404;background:#fff3cd;border-color:#ffe69c}.chip--uploaded{color:#084298;background:#cfe2ff;border-color:#b6d4fe}.chip--extracted,.chip--imported,.chip--ready{color:#0a3622;background:#d1e7dd;border-color:#a3cfbb}.chip--failed{color:#842029;background:#f8d7da;border-color:#f5c2c7}.chip--uploading{color:#084298;background:#cfe2ff;border-color:#b6d4fe}.chip--extracting{color:#432874;background:#e2d9f3;border-color:#c5b3e6}.chip--open{color:#084298;background:#cfe2ff;border-color:#b6d4fe}.chip--review{color:#856404;background:#fff3cd;border-color:#ffe69c}.chip--closed,.chip--paid{color:#0a3622;background:#d1e7dd;border-color:#a3cfbb}.chip--void{color:#6c757d;background:#f8f9fa;border-color:#dee2e6}.form-grid{gap:14px;display:grid}.form-grid--2col{grid-template-columns:1fr 1fr}.form-grid--3col{grid-template-columns:1fr 1fr 1fr}.form-grid--span2{grid-column:span 2}.vps-create-form{border:2px dashed var(--border);border-radius:10px;margin-bottom:20px}.vps-create-form__title{color:var(--text-muted);margin:0 0 16px;font-size:1rem;font-weight:600}.vps-create-form__actions{border-top:1px solid var(--border);justify-content:flex-end;gap:8px;margin-top:16px;padding-top:14px;display:flex}.vps-meta-panel{padding:14px 18px}.vps-meta-grid{flex-wrap:wrap;gap:8px 24px;display:flex}.vps-meta__kv{color:var(--text-muted);font-size:.85rem}.vps-meta__kv--full{flex-basis:100%}.vps-section-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;margin-bottom:4px;padding-bottom:12px;display:flex}.vps-section-title{margin:0;font-size:1rem;font-weight:600}.vps-row-count{color:var(--text-muted);font-size:.85rem;font-weight:400}.vps-add-row-form{background:var(--bg-subtle,#f9f9f9);border:1px solid var(--border);border-radius:8px;margin:12px 0;padding:14px}.vps-add-row-form__actions{justify-content:flex-end;gap:8px;margin-top:10px;display:flex}.vps-table-wrap{margin-top:8px;overflow-x:auto}.vps-table{border-collapse:collapse;width:100%;font-size:.85rem}.vps-table th,.vps-table td{border-bottom:1px solid var(--border);text-align:left;vertical-align:middle;white-space:nowrap;padding:8px 10px}.vps-table th{background:var(--bg-subtle,#f5f5f5);color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;font-size:.78rem;font-weight:600}.vps-table tbody tr:last-child td{border-bottom:none}.vps-col--expand{width:28px}.vps-col--name,.vps-col--product{min-width:160px}.vps-col--unit{width:80px}.vps-col--price{text-align:right;width:90px}.vps-col--status{width:100px}.vps-col--select{text-align:center;width:60px}.vps-col--actions{text-align:center;width:48px}.vps-row--unmatched td{background:#fff8f8}.vps-row--imported td{opacity:.7}.vps-row--ignored td{opacity:.55}.vps-row--expanded td{background:var(--bg-subtle,#f7f7f7)}.vps-row{cursor:pointer}.vps-row--detail{cursor:default}.vps-row--detail td{background:var(--bg-subtle,#f5f5f5)!important}.vps-matched-product{color:var(--text);font-weight:500}.vps-unmatched{color:var(--text-muted);font-style:italic}.vps-select-check{cursor:pointer;width:18px;height:18px}.vps-imported-icon{color:var(--success,#198754);font-size:1rem}.vps-row-edit{padding:12px 14px}.vps-row-edit__actions{justify-content:flex-end;margin-top:10px;display:flex}.vps-surcharge-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;font-size:.9rem;display:flex}.vps-surcharge-row:last-child{border-bottom:none}.vps-surcharge-row--imported{opacity:.7}.vps-surcharge-row__main{flex-wrap:wrap;align-items:baseline;gap:4px 16px;display:flex}.vps-surcharge-row__name{font-weight:600}.vps-surcharge-row__meta{color:var(--text-muted);font-size:.82rem}.vps-meta-note{font-style:italic}.vps-extract-actions{flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px;display:flex}.vps-col--depot{white-space:nowrap;color:var(--text-muted);font-size:.85rem}.vps-row-edit__hint{color:var(--text-muted);margin-top:8px;font-size:.82rem}.vps-surcharge-row__kind{align-items:center;gap:6px;display:inline-flex}.vps-surcharge-row__kind select{width:auto;min-width:140px;padding:2px 8px;font-size:.85rem}.vps-surcharge-row__match{align-items:center;gap:8px;margin-top:6px;display:flex}.vps-surcharge-row__match .dsel{min-width:240px}.vle-tabs{border-bottom:2px solid var(--border);flex-wrap:wrap;gap:2px;margin-bottom:16px;display:flex}.vle-tab-btn{min-height:var(--tap);color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-bottom:3px solid transparent;margin-bottom:-2px;padding:0 18px;font-size:1rem;font-weight:600}.vle-tab-btn:hover{color:var(--text)}.vle-tab-btn--on{color:var(--accent);border-bottom-color:var(--accent)}.vle-tab{display:none}.vle-tab--on{display:block}.vendor-charge-row{align-items:center;gap:8px;margin-bottom:8px;display:flex}.vendor-charge-row .input--narrow{flex:none;max-width:120px}.vendor-charge-card{border:1px solid var(--border,#e3e6ec);border-radius:8px;margin-bottom:8px;padding:8px}.vendor-charge-card .vendor-charge-row{margin-bottom:0}.vendor-charge-taxes{border-top:1px dashed var(--border,#e3e6ec);margin-top:6px;padding-top:6px}.vendor-charge-taxes .field__label{margin-bottom:4px;display:block}.vendor-charge-row>input[data-vc-field=name]{flex:auto}.charge-badge{letter-spacing:.02em;color:#3949ab;vertical-align:middle;background:#eef2ff;border-radius:999px;margin-left:6px;padding:1px 7px;font-size:.7rem;font-weight:700;display:inline-block}.vle-active{border:1px solid var(--border);color:var(--text);cursor:pointer;background:#f5f8ff;border-radius:8px;align-items:center;gap:12px;margin:0 0 18px;padding:12px 14px;font-size:1.05rem;font-weight:700;display:flex}.vle-active input[type=checkbox]{width:26px;height:26px;accent-color:var(--accent);cursor:pointer;flex:none}.modal-card--wide{width:92vw;max-width:560px}.picker-list{border:1px solid var(--border);border-radius:8px;max-height:50vh;margin:12px 0 4px;overflow-y:auto}.picker-row{border-bottom:1px solid var(--border);cursor:pointer;min-height:var(--tap);align-items:center;gap:12px;padding:10px 14px;display:flex}.picker-row:last-child{border-bottom:none}.picker-row:hover{background:#f8fafc}.picker-row input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent);flex:none}.picker-row__name{font-weight:600}.picker-row__meta{color:var(--text-muted);margin-left:auto;font-size:.85rem}.vle-cards{flex-direction:column;gap:10px;margin:8px 0;display:flex}.vle-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px}.vle-card__head{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;gap:10px;padding:10px 12px;display:flex}.vle-card__head:hover{background:#f8fafc;border-radius:8px}.vle-card__chev{color:#64748b;text-align:center;width:14px}.vle-card__title{font-weight:600}.vle-card__summary{color:#64748b;text-align:right;flex:1;margin-right:8px;font-size:.85rem}.vle-card__body{border-top:1px solid #eef2f7;padding:6px 12px 12px}.btn--icon{padding:4px 8px;line-height:1}.vle-section__head{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vle-section__head i{color:#64748b;width:14px}.vle-section__toolbar{flex-wrap:wrap;align-items:center;gap:10px;margin:8px 0 4px;display:flex}.vle-section__search{flex:1;min-width:180px;max-width:320px}.vle-section__add{width:auto}.vle-section__count{color:#94a3b8;font-weight:400}.vps-row-edit__hint i{color:#1a7f37}.vps-select-all{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;gap:6px;display:inline-flex}.vps-select-all input[disabled]{cursor:not-allowed}.vps-surcharge-row__controls{flex-shrink:0;align-items:center;gap:10px;display:flex}.vps-check-label{cursor:pointer;align-items:center;gap:6px;font-size:.85rem;display:flex}.vps-status-chip{margin-left:8px;font-size:.75rem}.page__back{margin-bottom:4px;font-size:.85rem}.page__back a{color:var(--text-muted);text-decoration:none}.page__back a:hover{color:var(--accent)}@media (max-width:768px){.vps-col--product,.vps-col--unit{display:none}.form-grid--2col,.form-grid--3col{grid-template-columns:1fr}.form-grid--span2{grid-column:span 1}}.vs-generate-form,.vs-void-form{margin-bottom:20px}.vs-generate-form__title,.vs-void-form__title{margin:0 0 10px;font-size:1.1rem;font-weight:600}.vs-void-form__warning{color:var(--text-muted,#6c757d);margin-bottom:12px;font-size:.9rem}.vs-form-actions{justify-content:flex-end;gap:10px;margin-top:14px;display:flex}.vs-net{font-variant-numeric:tabular-nums;font-weight:600}.vs-lines-table .vs-col--slip{width:96px}.vs-lines-table .vs-col--date{white-space:nowrap;width:110px}.vs-lines-table .vs-col--component{width:90px}.vs-lines-table .vs-col--source{width:72px}.vs-lines-table .vs-col--name{min-width:120px}.vs-lines-table .vs-col--unit{text-align:center;width:56px}.vs-lines-table .vs-col--qty{text-align:right;width:54px}.vs-lines-table .vs-col--rate{text-align:right;width:90px}.vs-lines-table .vs-col--net{text-align:right;width:90px;font-weight:600}.vs-tfoot{background:var(--surface-muted,#f8f9fa)}.vs-tfoot__label{text-align:right;color:var(--text-muted,#6c757d);padding-right:8px;font-size:.9rem;font-weight:600}.vs-tfoot__total{text-align:right;font-size:1.05rem;font-weight:700}@media (max-width:768px){.vs-lines-table .vs-col--component,.vs-lines-table .vs-col--source,.vs-lines-table .vs-col--unit{display:none}}.btn--xs{min-height:28px;padding:2px 8px;font-size:.78rem}.panel--muted{opacity:.8}.panel__empty{color:var(--text-muted);text-align:center;padding:12px 0;font-size:.9rem}.page__sticky-actions{z-index:10;background:var(--surface);border-top:1px solid var(--border);padding:12px 16px;padding-bottom:calc(12px + var(--safe-bottom));flex-wrap:wrap;align-items:center;gap:8px;display:flex;position:-webkit-sticky;position:sticky;bottom:0;box-shadow:0 -2px 8px rgba(0,0,0,.06)}.badge--channel{font-weight:600}.badge--soft{background:var(--bg);color:var(--text-muted);border:1px solid var(--border);border-radius:6px;padding:1px 7px;font-size:.78rem}.badge--ready{color:var(--ok);background:#e6f6ee}.badge--off{background:var(--bg);color:var(--text-muted);opacity:.55}.input--sm{height:36px;padding:6px 8px;font-size:.85rem}.slot-list{flex-direction:column;gap:10px;padding-top:4px;display:flex}.slot-row{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);align-items:flex-start;gap:10px;padding:12px 14px;transition:background .15s;display:flex}.slot-row:focus-within{border-color:var(--accent);background:#fff}.slot-row__num{min-height:var(--tap);flex:0 0 40px;justify-content:center;align-items:center;display:flex}.slot-row__num-label{background:var(--navy);color:#fff;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:.8rem;font-weight:700;display:flex}.slot-row__fields{flex-wrap:wrap;flex:1 1 0;align-items:flex-start;gap:8px;display:flex}.slot-row__vendor{flex:220px;min-width:180px}.slot-row__depot{flex:180px;min-width:150px}.slot-row__material{flex:160px;min-width:140px}.slot-row__notes{flex:100%}.slot-row__time{white-space:nowrap;flex:none;align-items:center;gap:6px;display:flex}.slot-row__time-label{color:var(--text-muted);font-size:.78rem;font-weight:600}.slot-row__time .input--sm{height:36px;padding:6px 8px;font-size:.82rem}.slot-row__clear{opacity:.5;flex:none;align-self:flex-start;margin-top:6px;padding:4px 8px;font-size:.8rem;transition:opacity .15s}.slot-row:hover .slot-row__clear{opacity:1}.assignment-card{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);margin-bottom:8px;padding:12px 14px}.assignment-card__top{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px;display:flex}.assignment-card__name{font-weight:700}.assignment-card__row{padding:2px 0;font-size:.88rem}.assignment-card__muted{color:var(--text-muted);font-size:.85rem}.assignment-card__deliveries{border-top:1px solid var(--border);margin-top:8px;padding-top:8px}.assignment-card__actions{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.assignment-card__events{margin-top:8px;font-size:.82rem}.assignment-card__events-label{color:var(--text-muted);margin-bottom:4px;font-weight:600;display:block}.delivery-row{flex-wrap:wrap;align-items:center;gap:6px;padding:4px 0;font-size:.85rem;display:flex}.delivery-row__status{color:var(--text-muted)}.delivery-row__dest{color:var(--text-muted);font-family:monospace;font-size:.8rem}.delivery-row__msgid{color:var(--text-muted);font-family:monospace;font-size:.75rem}.delivery-row__reason{color:var(--danger);font-size:.82rem}.event-row{flex-wrap:wrap;align-items:center;gap:6px;padding:3px 0;display:flex}.event-row__source,.event-row__channel{color:var(--text-muted);font-size:.82rem}.event-row__time{color:var(--text-muted);margin-left:auto;font-size:.78rem}.event-row__text{color:var(--text-muted);font-style:italic}.event-row__reason{color:var(--danger)}.page__status{color:var(--ok);font-size:.88rem;font-weight:600}.page__error{font-size:.88rem}.badge--inbound-reply{color:#0a66b7;background:#e6f4ff;border:1px solid #b8d9f8}:root{--custom-dialog-font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;--custom-dialog-backdrop:rgba(0,0,0,.5);--custom-dialog-background:#fff;--custom-dialog-text:#172033;--custom-dialog-muted-text:#667085;--custom-dialog-border:#e4e7ec;--custom-dialog-border-radius:14px;--custom-dialog-shadow:0 24px 70px rgba(0,0,0,.25);--custom-dialog-primary:#2563eb;--custom-dialog-primary-text:#fff;--custom-dialog-danger:#dc2626;--custom-dialog-warning:#d97706;--custom-dialog-success:#15803d;--custom-dialog-info:#2563eb;--custom-dialog-focus-ring:#3b82f6;--custom-dialog-max-width:32rem;--custom-dialog-z-index:10000;--custom-dialog-padding:1.5rem;--custom-dialog-gap:.75rem;--custom-dialog-btn-radius:9px;--custom-dialog-input-bg:#fff;--custom-dialog-input-border:#cbd2dc;--custom-dialog-error-text:#b42318;--custom-dialog-neutral-btn-bg:#f2f4f7;--custom-dialog-neutral-btn-text:#344054;--custom-dialog-anim-duration:.16s}@media (prefers-color-scheme:dark){:root{--custom-dialog-backdrop:rgba(0,0,0,.65);--custom-dialog-background:#1d2433;--custom-dialog-text:#f3f6fb;--custom-dialog-muted-text:#98a2b3;--custom-dialog-border:#344054;--custom-dialog-shadow:0 24px 70px rgba(0,0,0,.55);--custom-dialog-input-bg:#141a26;--custom-dialog-input-border:#475467;--custom-dialog-neutral-btn-bg:#2a3344;--custom-dialog-neutral-btn-text:#e4e7ec;--custom-dialog-error-text:#fda29b}}[data-cd-theme=light]{--custom-dialog-background:#fff;--custom-dialog-text:#172033;--custom-dialog-muted-text:#667085;--custom-dialog-border:#e4e7ec;--custom-dialog-input-bg:#fff;--custom-dialog-input-border:#cbd2dc;--custom-dialog-neutral-btn-bg:#f2f4f7;--custom-dialog-neutral-btn-text:#344054;--custom-dialog-error-text:#b42318}[data-cd-theme=dark]{--custom-dialog-backdrop:rgba(0,0,0,.65);--custom-dialog-background:#1d2433;--custom-dialog-text:#f3f6fb;--custom-dialog-muted-text:#98a2b3;--custom-dialog-border:#344054;--custom-dialog-shadow:0 24px 70px rgba(0,0,0,.55);--custom-dialog-input-bg:#141a26;--custom-dialog-input-border:#475467;--custom-dialog-neutral-btn-bg:#2a3344;--custom-dialog-neutral-btn-text:#e4e7ec;--custom-dialog-error-text:#fda29b}.cd-root{z-index:var(--custom-dialog-z-index);font-family:var(--custom-dialog-font-family);position:fixed;top:0;bottom:0;left:0;right:0}.cd-root[hidden]{display:none}.cd-backdrop{background:var(--custom-dialog-backdrop);animation:cd-fade var(--custom-dialog-anim-duration)ease-out;position:fixed;top:0;bottom:0;left:0;right:0}.cd-viewport{padding:max(1rem,env(safe-area-inset-top))max(1rem,env(safe-area-inset-right))max(1rem,env(safe-area-inset-bottom))max(1rem,env(safe-area-inset-left));justify-content:center;align-items:center;display:flex;position:fixed;top:0;bottom:0;left:0;right:0;overflow-y:auto}.cd-dialog{width:100%;max-width:var(--custom-dialog-max-width);padding:var(--custom-dialog-padding);background:var(--custom-dialog-background);color:var(--custom-dialog-text);border-radius:var(--custom-dialog-border-radius);box-shadow:var(--custom-dialog-shadow);box-sizing:border-box;animation:cd-pop var(--custom-dialog-anim-duration)cubic-bezier(.16,1,.3,1);grid-template-columns:auto 1fr;gap:0 1rem;margin:auto;display:grid;position:relative}.cd-dialog:focus{outline:none}.cd-icon{width:2.5rem;height:2.5rem;color:var(--custom-dialog-info);border-radius:999px;justify-content:center;align-items:flex-start;display:flex}.cd-icon>svg{width:1.75rem;height:1.75rem}.cd-variant-success .cd-icon{color:var(--custom-dialog-success)}.cd-variant-warning .cd-icon{color:var(--custom-dialog-warning)}.cd-variant-danger .cd-icon{color:var(--custom-dialog-danger)}.cd-variant-info .cd-icon{color:var(--custom-dialog-info)}.cd-dialog>.cd-content:first-child,.cd-dialog>.cd-content:first-child:last-of-type{grid-column:1/-1}.cd-dialog:not(:has(.cd-icon)) .cd-content{grid-column:1/-1}.cd-content{grid-column:2;min-width:0}.cd-title{color:var(--custom-dialog-text);overflow-wrap:anywhere;margin:0 0 .35rem;font-size:1.125rem;font-weight:650;line-height:1.3}.cd-message{color:var(--custom-dialog-muted-text);overflow-wrap:anywhere;margin:0;font-size:.95rem;line-height:1.5}.cd-message p{margin:0 0 .5rem}.cd-message p:last-child{margin-bottom:0}.cd-field{margin-top:1rem}.cd-input-label{color:var(--custom-dialog-text);margin-bottom:.35rem;font-size:.85rem;font-weight:550;display:block}.cd-input{box-sizing:border-box;width:100%;font:inherit;color:var(--custom-dialog-text);background:var(--custom-dialog-input-bg);border:1px solid var(--custom-dialog-input-border);border-radius:var(--custom-dialog-btn-radius);padding:.6rem .7rem;font-size:1rem}.cd-input:focus-visible{outline:2px solid var(--custom-dialog-focus-ring);outline-offset:1px;border-color:var(--custom-dialog-focus-ring)}.cd-error{color:var(--custom-dialog-error-text);overflow-wrap:anywhere;margin-top:.75rem;font-size:.85rem;line-height:1.4}.cd-error[hidden]{display:none}.cd-close{width:2rem;height:2rem;color:var(--custom-dialog-muted-text);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;top:.6rem;right:.6rem}.cd-close:hover{background:var(--custom-dialog-neutral-btn-bg)}.cd-close:focus-visible{outline:2px solid var(--custom-dialog-focus-ring);outline-offset:1px}.cd-close[disabled]{opacity:.5;cursor:default}.cd-footer{justify-content:flex-end;gap:var(--custom-dialog-gap);flex-wrap:wrap;grid-column:1/-1;margin-top:1.5rem;display:flex}.cd-btn{min-width:5.5rem;font:inherit;border-radius:var(--custom-dialog-btn-radius);cursor:pointer;transition:filter var(--custom-dialog-anim-duration)ease,background-color var(--custom-dialog-anim-duration)ease;border:1px solid transparent;justify-content:center;align-items:center;gap:.5rem;padding:.6rem 1.1rem;font-size:.95rem;font-weight:600;line-height:1.2;display:inline-flex}.cd-btn:focus-visible{outline:2px solid var(--custom-dialog-focus-ring);outline-offset:2px}.cd-btn[disabled]{cursor:default;opacity:.7}.cd-btn-cancel{background:var(--custom-dialog-neutral-btn-bg);color:var(--custom-dialog-neutral-btn-text)}.cd-btn-cancel:not([disabled]):hover{-webkit-filter:brightness(.96);filter:brightness(.96)}.cd-btn-confirm{color:var(--custom-dialog-primary-text)}.cd-btn-confirm:not([disabled]):hover{-webkit-filter:brightness(1.06);filter:brightness(1.06)}.cd-btn-info,.cd-btn-confirm{background:var(--custom-dialog-primary)}.cd-btn-success{background:var(--custom-dialog-success)}.cd-btn-warning{background:var(--custom-dialog-warning)}.cd-btn-danger{background:var(--custom-dialog-danger)}.cd-btn-primary{color:var(--custom-dialog-primary-text);background:var(--custom-dialog-primary)}.cd-btn-primary:not([disabled]):hover{-webkit-filter:brightness(1.06);filter:brightness(1.06)}.cd-btn-danger{color:var(--custom-dialog-primary-text)}.cd-btn-danger:not([disabled]):hover{-webkit-filter:brightness(1.06);filter:brightness(1.06)}.cd-btn-neutral,.cd-btn-secondary{background:var(--custom-dialog-neutral-btn-bg);color:var(--custom-dialog-neutral-btn-text)}.cd-btn-neutral:not([disabled]):hover,.cd-btn-secondary:not([disabled]):hover{-webkit-filter:brightness(.96);filter:brightness(.96)}.cd-spinner{animation:.7s linear infinite cd-spin}.cd-spinner circle{stroke:currentColor;stroke-dasharray:42;stroke-dashoffset:14px;stroke-linecap:round;opacity:.85}.cd-is-loading{cursor:progress}.cd-visually-hidden{clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}@keyframes cd-fade{0%{opacity:0}to{opacity:1}}@keyframes cd-pop{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes cd-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.cd-backdrop,.cd-dialog,.cd-spinner{animation:none!important}.cd-btn{transition:none}}@media (forced-colors:active){.cd-dialog{border:1px solid canvastext}.cd-btn{border:1px solid buttontext}.cd-btn:focus-visible{outline:2px solid highlight}.cd-input:focus-visible{outline:2px solid highlight}.cd-close:focus-visible{outline:2px solid highlight}}@media (max-width:480px){.cd-viewport{align-items:flex-end}.cd-dialog{border-bottom-right-radius:0;border-bottom-left-radius:0;max-width:100%}.cd-footer{flex-direction:column-reverse}.cd-btn{width:100%}}:root{--custom-toast-width:22rem;--custom-toast-max-width:calc(100vw - 2rem);--custom-toast-gap:.75rem;--custom-toast-edge-offset:1rem;--custom-toast-padding:1rem;--custom-toast-border-radius:12px;--custom-toast-background:var(--custom-dialog-background);--custom-toast-text:var(--custom-dialog-text);--custom-toast-muted-text:var(--custom-dialog-muted-text);--custom-toast-border:var(--custom-dialog-border);--custom-toast-shadow:var(--custom-dialog-shadow);--custom-toast-z-index:11000;--custom-toast-close-size:2rem;--custom-toast-animation-duration:.22s;--custom-toast-progress-height:3px;--custom-toast-error-text:var(--custom-dialog-error-text)}.ct-container{z-index:var(--custom-toast-z-index);box-sizing:border-box;width:min(var(--custom-toast-width),var(--custom-toast-max-width));max-width:var(--custom-toast-max-width);pointer-events:none;font-family:var(--custom-dialog-font-family);flex-direction:column;display:flex;position:fixed}.ct-pos-top-left{top:calc(env(safe-area-inset-top) + var(--custom-toast-edge-offset));left:calc(env(safe-area-inset-left) + var(--custom-toast-edge-offset));align-items:flex-start}.ct-pos-top-right{top:calc(env(safe-area-inset-top) + var(--custom-toast-edge-offset));right:calc(env(safe-area-inset-right) + var(--custom-toast-edge-offset));align-items:flex-end}.ct-pos-top-center{top:calc(env(safe-area-inset-top) + var(--custom-toast-edge-offset));align-items:center;left:50%;transform:translate(-50%)}.ct-pos-bottom-left{bottom:calc(env(safe-area-inset-bottom) + var(--custom-toast-edge-offset));left:calc(env(safe-area-inset-left) + var(--custom-toast-edge-offset));align-items:flex-start}.ct-pos-bottom-right{bottom:calc(env(safe-area-inset-bottom) + var(--custom-toast-edge-offset));right:calc(env(safe-area-inset-right) + var(--custom-toast-edge-offset));align-items:flex-end}.ct-pos-bottom-center{bottom:calc(env(safe-area-inset-bottom) + var(--custom-toast-edge-offset));align-items:center;left:50%;transform:translate(-50%)}.ct-toast{pointer-events:auto;box-sizing:border-box;width:100%;max-height:min(100vh - 2rem,80vh);margin-bottom:var(--custom-toast-gap);padding:var(--custom-toast-padding);background:var(--custom-toast-background);color:var(--custom-toast-text);border:1px solid var(--custom-toast-border);border-left:4px solid var(--ct-accent,var(--custom-dialog-primary));border-radius:var(--custom-toast-border-radius);box-shadow:var(--custom-toast-shadow);transition:transform var(--custom-toast-animation-duration)cubic-bezier(.16,1,.3,1),opacity var(--custom-toast-animation-duration)ease,max-height var(--custom-toast-animation-duration)ease,margin var(--custom-toast-animation-duration)ease;will-change:transform,opacity;touch-action:pan-y;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;column-gap:.75rem;display:grid;position:relative}.ct-variant-info{--ct-accent:var(--custom-dialog-info,var(--custom-dialog-primary))}.ct-variant-success{--ct-accent:var(--custom-dialog-success)}.ct-variant-warning{--ct-accent:var(--custom-dialog-warning)}.ct-variant-danger{--ct-accent:var(--custom-dialog-danger)}.ct-variant-neutral{--ct-accent:var(--custom-toast-muted-text)}.ct-icon{color:var(--ct-accent,var(--custom-dialog-primary));display:flex}.ct-icon>svg{width:1.4rem;height:1.4rem}.ct-content{grid-column:2;min-width:0;overflow-y:auto}.ct-title{color:var(--custom-toast-text);overflow-wrap:anywhere;font-size:.95rem;font-weight:650;line-height:1.35}.ct-title[hidden]{display:none}.ct-message{color:var(--custom-toast-muted-text);overflow-wrap:anywhere;font-size:.9rem;line-height:1.45}.ct-message[hidden]{display:none}.ct-title+.ct-message{margin-top:.15rem}.ct-error{color:var(--custom-toast-error-text);overflow-wrap:anywhere;margin-top:.4rem;font-size:.82rem;line-height:1.4}.ct-error[hidden]{display:none}.ct-actions{gap:.5rem;margin-top:.6rem;display:flex}.ct-actions[hidden]{display:none}.ct-action{font:inherit;color:var(--ct-accent,var(--custom-dialog-primary));cursor:pointer;background:0 0;border:1px solid;border-radius:8px;align-items:center;gap:.4rem;min-height:2rem;padding:.4rem .8rem;font-size:.85rem;font-weight:600;display:inline-flex}.ct-action:not([disabled]):hover{-webkit-filter:brightness(1.1);filter:brightness(1.1);background:color-mix(in srgb,var(--ct-accent)10%,transparent)}.ct-action[disabled]{opacity:.7;cursor:default}.ct-action:focus-visible{outline:2px solid var(--custom-dialog-focus-ring);outline-offset:2px}.ct-close{width:1.9rem;min-width:1.9rem;height:1.9rem;color:var(--custom-toast-muted-text);cursor:pointer;background:0 0;border:none;border-radius:7px;grid-area:1/3;justify-content:center;align-items:center;margin:-.25rem -.25rem 0 0;padding:0;display:inline-flex}.ct-close[hidden]{display:none}.ct-close:hover{background:color-mix(in srgb,var(--custom-toast-muted-text)15%,transparent)}.ct-close:focus-visible{outline:2px solid var(--custom-dialog-focus-ring);outline-offset:1px}.ct-close[disabled]{opacity:.5;cursor:default}.ct-progress{height:var(--custom-toast-progress-height);border-bottom-left-radius:var(--custom-toast-border-radius);border-bottom-right-radius:var(--custom-toast-border-radius);pointer-events:none;position:absolute;bottom:0;left:0;right:0;overflow:hidden}.ct-progress[hidden]{display:none}.ct-progress-bar{background:var(--ct-accent,var(--custom-dialog-primary));transform-origin:0;width:100%;height:100%;transform:scaleX(1)}.ct-action .cd-spinner circle{stroke:currentColor;stroke-dasharray:42;stroke-dashoffset:14px;stroke-linecap:round}.ct-from-slide-down{opacity:0;transform:translateY(-24px)}.ct-from-slide-up{opacity:0;transform:translateY(24px)}.ct-from-slide-left{opacity:0;transform:translate(24px)}.ct-from-slide-right{opacity:0;transform:translate(-24px)}.ct-from-fade{opacity:0}.ct-from-scale{opacity:0;transform:scale(.9)}.ct-leaving{overflow:hidden}.ct-out-slide-up{opacity:0!important;transform:translateY(-24px)!important}.ct-out-slide-down{opacity:0!important;transform:translateY(24px)!important}.ct-out-slide-left{opacity:0!important;transform:translate(-110%)!important}.ct-out-slide-right{opacity:0!important;transform:translate(110%)!important}.ct-out-fade{opacity:0!important}.ct-out-scale{opacity:0!important;transform:scale(.9)!important}.ct-toast.ct-swiping{cursor:grabbing;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:none}.ct-toast.ct-snap-back{transition:transform .18s,opacity .18s}@media (prefers-reduced-motion:reduce){.ct-toast{transition:opacity 1ms linear,max-height 1ms linear,margin 1ms linear!important}.ct-from-slide-down,.ct-from-slide-up,.ct-from-slide-left,.ct-from-slide-right,.ct-out-slide-up,.ct-out-slide-down,.ct-out-slide-left,.ct-out-slide-right,.ct-from-scale,.ct-out-scale{transform:none!important}.ct-progress-bar{transition:none!important}.ct-toast.ct-snap-back{transition:none}}@media (forced-colors:active){.ct-toast{border:1px solid canvastext}.ct-action,.ct-close{border:1px solid buttontext}.ct-action:focus-visible{outline:2px solid highlight}.ct-close:focus-visible{outline:2px solid highlight}.ct-progress-bar{background:highlight}}@media (max-width:480px){.ct-container{align-items:stretch;width:auto;max-width:none;left:calc(env(safe-area-inset-left) + .5rem)!important;right:calc(env(safe-area-inset-right) + .5rem)!important;transform:none!important}.ct-toast{max-height:min(100vh - 1.5rem,70vh)}}.liveselect{--liveselect-font:inherit;--liveselect-text:#0f1821;--liveselect-text-muted:#6b7785;--liveselect-bg:#fff;--liveselect-surface:#fff;--liveselect-hover:#f1f4f7;--liveselect-border:#cdd5de;--liveselect-border-focus:#3b82f6;--liveselect-accent:#2563eb;--liveselect-danger:#dc2626;--liveselect-radius:8px;--liveselect-radius-sm:6px;--liveselect-shadow:0 8px 28px rgba(15,24,33,.14);--liveselect-input-pad:10px 12px;--liveselect-menu-z:1500;font-family:var(--liveselect-font);color:var(--liveselect-text);flex-direction:column;gap:6px;display:flex;position:relative}.liveselect--disabled{opacity:.6;pointer-events:none}.liveselect__label{color:var(--liveselect-text-muted);font-size:.85rem;font-weight:600}.liveselect__req{color:var(--liveselect-danger)}.liveselect__control{position:relative}.liveselect__input{box-sizing:border-box;width:100%;padding:var(--liveselect-input-pad);font:inherit;color:var(--liveselect-text);background:var(--liveselect-bg);border:1px solid var(--liveselect-border);border-radius:var(--liveselect-radius);outline:none;padding-right:38px;font-size:1rem;transition:border-color .12s,box-shadow .12s}.liveselect__input::-webkit-input-placeholder{color:var(--liveselect-text-muted)}.liveselect__input::-ms-input-placeholder{color:var(--liveselect-text-muted)}.liveselect__input::placeholder{color:var(--liveselect-text-muted)}.liveselect__input:focus{border-color:var(--liveselect-border-focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--liveselect-border-focus)22%,transparent)}.liveselect__clear{width:26px;height:26px;color:var(--liveselect-text-muted);cursor:pointer;border-radius:var(--liveselect-radius-sm);background:0 0;border:0;justify-content:center;align-items:center;font-size:1.35rem;line-height:1;display:inline-flex;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.liveselect__clear:hover{background:var(--liveselect-hover);color:var(--liveselect-text)}.liveselect__clear[hidden]{display:none}.liveselect__tags{display:contents}.liveselect__tags[hidden]{display:none}.liveselect--multi .liveselect__control{background:var(--liveselect-bg);border:1px solid var(--liveselect-border);border-radius:var(--liveselect-radius);flex-wrap:wrap;align-items:center;gap:6px;padding:6px 38px 6px 8px;transition:border-color .12s,box-shadow .12s;display:flex}.liveselect--multi .liveselect__control:focus-within{border-color:var(--liveselect-border-focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--liveselect-border-focus)22%,transparent)}.liveselect--multi .liveselect__input{width:auto;min-width:80px;box-shadow:none;background:0 0;border:0;flex:80px;padding:4px 2px}.liveselect--multi .liveselect__input:focus{box-shadow:none;border:0}.liveselect__tag{background:var(--liveselect-hover);border:1px solid var(--liveselect-border);border-radius:999px;align-items:center;gap:4px;max-width:100%;padding:2px 4px 2px 9px;font-size:.86rem;line-height:1.4;display:inline-flex}.liveselect__tag-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.liveselect__tag-remove{width:18px;height:18px;color:var(--liveselect-text-muted);cursor:pointer;background:0 0;border:0;border-radius:50%;flex:none;justify-content:center;align-items:center;font-size:1.05rem;line-height:1;display:inline-flex}.liveselect__tag-remove:hover{background:var(--liveselect-border);color:var(--liveselect-text)}.liveselect__menu{z-index:var(--liveselect-menu-z);-webkit-overflow-scrolling:touch;background:var(--liveselect-surface);border:1px solid var(--liveselect-border);border-radius:var(--liveselect-radius-sm);max-height:320px;box-shadow:var(--liveselect-shadow);padding:6px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto}.liveselect__menu[hidden]{display:none}.liveselect__opt{text-align:left;width:100%;min-height:42px;color:var(--liveselect-text);cursor:pointer;border-radius:var(--liveselect-radius-sm);font:inherit;background:0 0;border:0;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 12px;font-size:1rem;display:flex}.liveselect__opt:hover,.liveselect__opt--active{background:var(--liveselect-hover)}.liveselect__opt--create{color:var(--liveselect-accent);flex-direction:row;align-items:center;gap:8px;font-weight:600}.liveselect__opt--disabled{opacity:.5;cursor:not-allowed}.liveselect__opt--disabled:hover{background:0 0}.liveselect__opt--chosen{color:var(--liveselect-accent)}.liveselect__opt--chosen:after{content:"✓";color:var(--liveselect-accent);font-weight:700;position:absolute;right:12px}.liveselect--multi .liveselect__opt{padding-right:30px;position:relative}.liveselect__opt-label{font-weight:600}.liveselect__opt-sub{color:var(--liveselect-text-muted);font-size:.82rem}.liveselect__mark{background:var(--liveselect-mark,#fde68a);color:inherit;border-radius:2px;padding:0 1px}.liveselect__more{text-align:center;color:var(--liveselect-text-muted);padding:6px 12px;font-size:.8rem}.liveselect__group{background:var(--liveselect-surface);color:var(--liveselect-text-muted);letter-spacing:.04em;text-transform:uppercase;padding:8px 12px 4px;font-size:.72rem;font-weight:700;position:-webkit-sticky;position:sticky;top:-6px}.liveselect__msg{color:var(--liveselect-text-muted);padding:10px 12px;font-size:.92rem}.liveselect__error{color:var(--liveselect-danger);font-size:.82rem}.liveselect__error[hidden]{display:none}.liveselect--dark{--liveselect-text:#e6edf3;--liveselect-text-muted:#8b98a5;--liveselect-bg:#0f1821;--liveselect-surface:#16212c;--liveselect-hover:#1f2c39;--liveselect-border:#2b3947;--liveselect-shadow:0 8px 28px rgba(0,0,0,.5);--liveselect-mark:#7c5b00}.liveselect--dark .liveselect__mark{color:#ffe9a8}