@import url('./fonts/montserrat.css');
/* V0: phone-first, scoped so V1/V2/V3 retain their own workspace. */
.v0-shell{--v0-ink:#082032;--v0-accent:#e7b94b;--v0-border:#dce5ed;background:#f6f8fa;min-height:100dvh;color:var(--v0-ink);padding:0!important;font-size:16px}
.v0-layout{min-height:100dvh;padding-bottom:calc(88px + env(safe-area-inset-bottom));font-family:Inter,system-ui,sans-serif}
.v0-shell *{box-sizing:border-box;min-width:0}
.v0-shell>.subscription-banner{padding:8px 16px;display:flex;gap:12px;align-items:center;font-size:12px;line-height:1.5}
.v0-shell>.subscription-banner>span{flex:1}
.v0-shell>.subscription-banner button{min-width:44px;min-height:44px;font-size:24px;padding:3px}
.v0-shell~#notice{bottom:calc(95px + env(safe-area-inset-bottom));max-width:calc(100vw - 24px)}
.v0-shell [hidden]{display:none!important}
.v0-top{background:#082032;color:#fff;display:flex;align-items:center;gap:16px;padding:14px max(18px,env(safe-area-inset-left));border-bottom:3px solid #e7b94b}
.v0-top img{width:142px;height:45px;object-fit:contain;flex-shrink:0}
.v0-account{display:flex;flex-direction:column;gap:4px;flex:1;overflow-wrap:anywhere;font-size:14px}
.v0-account span{font-size:12px;color:#c7d6e2}
.v0-top .v0-button{background:transparent;border-color:#587080;color:white}
.v0-main{max-width:1120px;padding:24px 16px 32px;margin:0 auto}
.v0-title{display:flex;align-items:center;gap:12px;margin-bottom:24px}
.v0-title h1{font-size:clamp(25px,4vw,36px);line-height:1.18;letter-spacing:-.8px;margin:0;color:#082032}
.v0-title p{font-size:15px;line-height:1.5;color:#536a7b;margin:8px 0 0}
.v0-shell svg{width:24px;height:24px;flex-shrink:0}
.v0-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:11px 16px;border:1px solid var(--v0-border);border-radius:12px;background:white;color:#082032;font:600 14px/1.35 Inter,system-ui;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-shadow:none;text-decoration:none}
.v0-button.v0-icon{width:48px;min-width:48px;padding:11px}
.v0-button:disabled{opacity:.5;cursor:not-allowed}
.v0-button.v0-primary{background:#e7b94b;border-color:#e7b94b;color:#082032;font-weight:750}
.v0-danger{color:#b73232!important;background:#fff4f2!important}
.v0-button:active:not(:disabled),.v0-task:active{transform:translateY(1px);background:#edf1f5}
.v0-shell :is(button,input,select,summary,a):focus-visible{outline:3px solid #315775;outline-offset:3px}
.v0-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;display:flex;justify-content:center;background:white;border-top:1px solid var(--v0-border);padding:8px 12px calc(8px + env(safe-area-inset-bottom));gap:8px;box-shadow:0 -3px 14px #08203207}
.v0-nav .v0-button{flex:1;max-width:190px;flex-direction:column;gap:3px;border:0;font-size:11px;background:transparent;min-height:58px;padding:5px}
.v0-nav .v0-button:hover{background:#f8f0dc}
.v0-nav .v0-button[aria-current=page]{background:#fcf3dc;color:#082032}
.v0-tasks{display:grid;grid-template-columns:1fr;gap:14px}
.v0-task{--task-ink:#936513;--task-soft:#fbf2df;--task-border:#d4b76d;display:flex;align-items:center;gap:16px;text-align:left;border:1px solid var(--v0-border);border-radius:18px;background:white;box-shadow:0 2px 4px #08203208;padding:22px 18px;cursor:pointer;touch-action:manipulation;color:#082032;min-height:112px}
.v0-task>span:nth-child(2){flex:1}.v0-task strong{display:block;font-size:17px;line-height:1.35;font-weight:700}.v0-task small{display:block;margin-top:6px;color:#576c7d;line-height:1.5;font-size:13px;font-weight:400}
.v0-task>svg{width:18px;color:#718596}.v0-task-icon{display:grid;place-items:center;min-width:48px;height:48px;border-radius:14px;background:var(--task-soft);color:var(--task-ink)}
.v0-tone-credit{--task-ink:#7452a3;--task-soft:#f1eaf9;--task-border:#b4a0cf}
.v0-tone-receipt{--task-ink:#187555;--task-soft:#e3f3eb;--task-border:#87b6a0}
.v0-tone-status{--task-ink:#34658e;--task-soft:#e8f0f8;--task-border:#93afc9}
.v0-tone-cancel{--task-ink:#b3323f;--task-soft:#fbe9eb;--task-border:#d5949d}
.v0-tone-settings,.v0-tone-shield,.v0-tone-mail,.v0-tone-print,.v0-tone-help{--task-ink:#506577;--task-soft:#edf1f5;--task-border:#a1b0bd}
.v0-panel{background:#fff;border:1px solid var(--v0-border);border-radius:18px;padding:20px;margin-bottom:18px;box-shadow:0 2px 4px #08203205}
.v0-panel h2{font-size:18px;margin:0 0 20px}.v0-panel p{line-height:1.55}
.v0-shell :is(input:not([type=checkbox]),select){display:block;width:100%;min-height:48px;border:1px solid #ccd8e2;border-radius:10px;padding:10px 12px;background:white;color:#082032;font:400 16px/1.45 Inter,system-ui}
.v0-shell input[type=checkbox]{width:24px;height:24px;accent-color:#082032;flex-shrink:0}
.v0-shell label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;color:#324d60}
.v0-shell .v0-check{display:flex;flex-direction:row;align-items:center;min-height:48px;font-size:14px;line-height:1.5;margin:12px 0}
.v0-grid{display:grid;grid-template-columns:1fr;gap:18px;margin-bottom:16px}.v0-grid:last-child{margin-bottom:0}
.v0-customer-search{display:grid;grid-template-columns:100px 1fr 48px;align-items:end;gap:8px}.v0-customer-search label{font-size:12px}
.v0-customer-search select{padding:10px 6px}.v0-customer-search input{padding:10px 8px}
.v0-muted{color:#526c7d;font-size:13px;line-height:1.5}.v0-error{font-size:14px;color:#b12828;line-height:1.55;overflow-wrap:anywhere}.v0-error:empty{display:none}
.v0-lines{display:grid;gap:18px}.v0-line{border:1px solid var(--v0-border);background:#fbfcfd;border-radius:14px;padding:16px}.v0-line-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:13px;color:#637687}.v0-line-header .v0-button{background:transparent;border:0}
.v0-item-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.v0-quantity{grid-column:1/-1;display:grid;grid-template-columns:1fr 48px 48px;align-items:end;gap:8px}
.v0-line-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.v0-line-bottom details{font-size:12px;flex:1}.v0-line-total{font-size:18px;font-variant-numeric:tabular-nums}.v0-line-bottom summary{padding:10px 0;color:#536b7c;cursor:pointer}
.v0-add{width:100%;margin-top:16px;border-style:dashed;background:#fff}
.v0-checkout{position:sticky;bottom:calc(82px + env(safe-area-inset-bottom));z-index:10;display:flex;gap:12px;justify-content:space-between;align-items:center;border:1px solid var(--v0-border);background:#fff;padding:14px 16px;border-radius:16px;box-shadow:0 4px 20px #08203214;margin-top:24px}
.v0-checkout>div small{display:block;color:#556a7c;font-size:11px;margin:4px 0}.v0-checkout .v0-primary{min-height:52px;max-width:55%;padding:12px}.v0-checkout .v0-primary svg{width:20px}
.v0-total{display:flex;flex-direction:column;gap:4px}.v0-total small{color:#556a7c;font-size:12px}.v0-total strong{font-size:27px;font-variant-numeric:tabular-nums;letter-spacing:-.7px}
.v0-credit{padding-top:18px;border-top:1px solid var(--v0-border)}.v0-schedule summary{cursor:pointer;padding:12px;background:#f3f6fa;border-radius:10px}.v0-schedule ol{max-height:240px;overflow:auto}.v0-schedule li{padding:8px;font-size:13px}
.v0-document-list{display:grid;gap:16px}.v0-document{background:#fff;border:1px solid var(--v0-border);border-radius:16px;padding:20px;margin-bottom:14px}.v0-document-list .v0-document{margin:0}.v0-document-top,.v0-document-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.v0-document-top small{font-size:12px;color:#526c7d}.v0-document h2{font-size:18px;margin:18px 0;overflow-wrap:anywhere}.v0-document-bottom>strong{font-size:18px}
.v0-actions{display:flex;gap:10px;flex-wrap:wrap}.v0-actions>*{flex:0 1 auto}.v0-pill{display:inline-block;background:#eff3f6;color:#476276;border-radius:7px;padding:6px 8px;font-size:11px;font-weight:700}.v0-approved{color:#176746;background:#e9f5ee}.v0-error.v0-pill,.v0-rejected{color:#ab3030;background:#fdeeee}.v0-unknown,.v0-pending{color:#805c17;background:#fff5d9}
.v0-preview-lines{list-style:none;margin:18px 0;padding:0}.v0-preview-lines li{display:flex;gap:12px;justify-content:space-between;border-bottom:1px solid var(--v0-border);padding:16px 0;font-size:14px}.v0-preview-lines small{display:block;color:#5d7383;margin-top:7px}.v0-preview-lines li>div{flex:1;overflow-wrap:anywhere}.v0-preview-lines li>strong{white-space:nowrap}.v0-cdc{overflow-wrap:anywhere;font-size:13px}
.v0-empty{padding:36px 20px;text-align:center;background:white;border:1px dashed #ccd8e2;border-radius:16px;color:#5c7283;line-height:1.6}.v0-empty svg{width:36px;height:36px}.v0-tip{padding:16px;margin-bottom:20px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#fcf4de;border:1px solid #ebd99d;border-radius:14px;font-size:14px;line-height:1.5}.v0-tip p{flex:1;min-width:140px;margin:0}.v0-foot{text-align:center;color:#627788;font-size:12px;margin-top:28px}.v0-section-title{font-size:19px;margin:28px 0 18px}
.v0-config-page .fields{grid-template-columns:1fr}.v0-config-page .heading h1{font-size:28px}.v0-config-page .settings-section-tabs{margin-bottom:20px}.v0-config-page .table-wrap{overflow:auto;max-width:100%}.v0-config-page .panel{max-width:100%}
@media (hover:hover){.v0-task:hover{border-color:var(--task-border);box-shadow:0 5px 16px #0820320c}.v0-button:hover:not(:disabled){border-color:#98acba}.v0-button.v0-primary:hover:not(:disabled){background:#eec860}}
@media(min-width:620px){.v0-tasks{grid-template-columns:repeat(2,1fr);gap:20px}.v0-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v0-main{padding:36px 24px}.v0-form{max-width:800px;margin:auto}.v0-customer-search{grid-template-columns:135px 1fr 48px}.v0-item-grid{grid-template-columns:1.35fr 1fr .7fr}.v0-quantity{grid-column:auto}.v0-config-page .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.v0-panel{padding:26px}.v0-top{padding-inline:max(28px,calc((100vw - 1072px)/2))}}
@media(min-width:1000px){.v0-tasks{grid-template-columns:repeat(3,1fr)}.v0-task{min-height:204px;flex-direction:column;align-items:flex-start;gap:16px;padding:24px}.v0-task-icon{width:52px;height:52px}.v0-task>span:nth-child(2){width:100%}.v0-task strong{font-size:19px}.v0-task small{font-size:14px}.v0-task>svg{display:none}.v0-document-list{grid-template-columns:repeat(2,minmax(0,1fr))}.v0-account{margin-left:20px}.v0-nav{position:sticky;bottom:0;max-width:660px;margin:auto;border:1px solid var(--v0-border);border-radius:18px;padding:8px 16px;box-shadow:0 4px 16px #0820320a}.v0-layout{padding-bottom:24px}.v0-checkout{bottom:90px}}
@media(max-width:359px){.v0-top{gap:10px;padding-inline:12px}.v0-top img{width:103px}.v0-account{font-size:12px}.v0-main{padding-inline:12px}.v0-panel{padding:14px}.v0-line{padding:12px}.v0-customer-search{grid-template-columns:80px 1fr 48px;gap:6px}.v0-customer-search input{font-size:16px}.v0-total strong{font-size:23px}.v0-checkout{padding:12px;gap:8px}.v0-checkout .v0-primary{font-size:12px}.v0-checkout .v0-primary svg{display:none}}
/* Approved SYNGPRO sales panel, V0 only. */
.v0-shell{--v0-ink:#14213d;--v0-accent:#168455;background:#f5f5f5;color:#0e1116}
.v0-top{background:#14213d;border-bottom:0}
.v0-shell .v0-button.v0-primary{background:#14213d;border-color:#14213d;color:#fff}
.v0-shell .v0-button.v0-primary:hover:not(:disabled){background:#223657}
.v0-shell input:focus,.v0-shell select:focus,.v0-shell button:focus-visible{outline:2px solid #168455;outline-offset:2px}
.v0-shell ::selection{background:#d7eee4;color:#14213d}
.v0-nav [aria-current=page]{background:#0e1116;color:#fff}
.v0-sales-main{max-width:1480px;padding:18px 24px 24px}
.v0-sales-form{max-width:none;display:grid;gap:14px}
.v0-sales-form .v0-panel{margin:0;padding:18px 20px;background:#fff}
.v0-sales-form .v0-customer-compact{display:grid;grid-template-columns:1.3fr 1fr;gap:12px 16px}
.v0-doc-grid{grid-column:1/-1;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:14px}
.v0-sales-form label{font-size:13px;gap:6px}
.v0-sales-form input,.v0-sales-form select{min-height:42px;padding:10px 12px;font-size:15px}
.v0-sales-form .v0-customer-search{grid-template-columns:140px 1fr 44px;margin:0}
.v0-sales-form .v0-client-name{display:block}
.v0-sales-form .v0-customer-compact>.v0-muted:empty{display:none}
.v0-customer-fiscal,.v0-sales-form .v0-credit{grid-column:1/-1}
.v0-customer-fiscal summary{font-size:12px;color:#596d7c}
.v0-customer-fiscal[open]{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.v0-customer-fiscal[open] summary{grid-column:1/-1}
.v0-sales-form .v0-lines{gap:10px}
.v0-sales-form .v0-sale-line{display:grid;grid-template-columns:90px minmax(180px,1fr) 160px 160px 40px;gap:12px;border:0;padding:0;background:transparent;border-radius:0;align-items:end}
.v0-sale-line [name=price]{text-align:right;font-variant-numeric:tabular-nums}
.v0-row-amount{display:grid;gap:6px;font-size:13px}.v0-row-amount strong{height:42px;display:flex;align-items:center;justify-content:flex-end;padding:10px;border:1px solid #dce5ed;border-radius:9px;font-variant-numeric:tabular-nums}
.v0-item-tax{grid-column:1/-1;font-size:12px;color:#596d7c}
.v0-item-tax[open]{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.v0-item-tax label{max-width:200px}
.v0-products-panel{min-height:340px;display:flex;flex-direction:column;gap:12px}.v0-products-panel h2{font-size:14px;margin:0}.v0-products-panel .v0-add{align-self:flex-start;margin:0}.v0-products-space{flex:1;min-height:170px}
.v0-sales-form .v0-checkout{position:static;margin:0;box-shadow:none}.v0-sales-form>.v0-error:empty,.v0-sales-form>.v0-muted:empty{display:none}
.v0-table-scroll{overflow:auto}.v0-report-result table{width:100%;border-collapse:collapse;font-size:13px}.v0-report-result th,.v0-report-result td{text-align:left;padding:12px;border-bottom:1px solid #dce5ed}
@media(max-width:760px){.v0-doc-grid{grid-template-columns:1fr 1fr}.v0-sales-form .v0-customer-compact{grid-template-columns:1fr}.v0-sales-form .v0-sale-line{grid-template-columns:90px 1fr 40px}.v0-sale-line>label:nth-child(3){grid-column:1}.v0-sale-line>.v0-row-amount{grid-column:2}.v0-sale-line>.v0-button{grid-column:3;grid-row:1/3}.v0-sales-main{padding:12px}.v0-customer-fiscal[open]{grid-template-columns:1fr}.v0-products-space{min-height:120px}.v0-nav .v0-button{padding:8px;font-size:11px}}
@media(prefers-color-scheme:dark){.v0-shell[data-theme=dark] .v0-panel{background:#17212e;color:#f5f5f5}}
/* Reference: user-supplied floating three-item navigation and keyboard lookup. */
.v0-shell .v0-nav{position:fixed;left:50%;right:auto;bottom:16px;transform:translateX(-50%);width:min(440px,calc(100% - 24px));max-width:440px;border-radius:48px;background:#fff;padding:7px;gap:4px;box-shadow:0 12px 40px #14213d16;box-sizing:border-box}
.v0-shell .v0-nav .v0-button{border-radius:40px;min-height:74px;font-size:14px;font-weight:600;color:#586579}
.v0-shell .v0-nav .v0-button[aria-current=page]{background:#0e1116;color:#fff;box-shadow:0 4px 12px #0e111622}
.v0-shell .v0-nav .v0-button:hover:not([aria-current=page]){background:#f1f5f3}
.v0-shell .v0-layout{padding-bottom:115px}
.v0-choices{border:0;margin:0;padding:0;min-width:0;display:flex;gap:6px;flex-wrap:wrap}.v0-choices legend{font-size:12px;font-weight:600;margin-bottom:8px}.v0-choices label{position:relative;flex:1}.v0-choices input{position:absolute;opacity:0;width:1px;height:1px}.v0-choices label span{display:block;border:1px solid #dbe1e8;border-radius:9px;padding:14px 10px;text-align:center;cursor:pointer}.v0-choices input:checked+span{background:#14213d;color:white;border-color:#14213d}.v0-choices input:focus-visible+span{outline:3px solid #168455;outline-offset:3px}
.v0-lookup{width:min(850px,90vw);max-height:80vh;border:1px solid #dce3e9;border-radius:20px;padding:24px;color:#14213d;font-family:Inter,Arial,sans-serif}.v0-lookup::backdrop{background:#14213d66}.v0-lookup header{display:flex;justify-content:space-between;align-items:center}.v0-lookup label{display:grid;gap:8px}.v0-lookup input{padding:12px;border:1px solid #ccd5df;border-radius:8px;font:inherit}.v0-lookup input:focus{outline:2px solid #168455}.v0-lookup-table{max-height:300px;overflow:auto;margin-top:16px}.v0-lookup table{width:100%;border-collapse:collapse}.v0-lookup th,.v0-lookup td{text-align:left;padding:14px;border-bottom:1px solid #e1e6ed}.v0-lookup tr.is-selected{background:#e5f3ed;outline:1px solid #168455;outline-offset:-1px}.v0-lookup tbody tr{cursor:pointer}.v0-lookup .v0-muted{font-size:12px}
.v0-coded-value{display:flex;border:1px solid #dbe1e8;border-radius:9px;background:white;min-height:46px;align-items:center;overflow:hidden}.v0-coded-value input{width:56px!important;min-width:56px;border:0!important;border-right:1px solid #dbe1e8!important;border-radius:0!important;text-align:center;background:#f7f8fa!important}.v0-code-description{padding:8px 12px;font-size:14px}.v0-code-list{display:grid;gap:6px;margin-top:16px}.v0-code-list .v0-button{justify-content:flex-start}.v0-code-list .is-selected{background:#14213d;color:white}.v0-coded>label>span{font-size:12px;font-weight:600;display:block;margin-bottom:8px}
/* Compact keyboard selection dialogs live outside the application shell. */
.v0-lookup .v0-button{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:10px 14px;border:1px solid #dbe1e8;border-radius:8px;background:#fff;color:#14213d;font:inherit;cursor:pointer}
.v0-lookup .v0-button svg{width:20px;height:20px;flex:0 0 20px}
.v0-lookup .v0-icon{width:40px;height:40px;min-height:40px;padding:9px;justify-content:center}
.v0-lookup .v0-code-list{display:flex;flex-direction:column;gap:4px;max-height:45vh;overflow-y:auto}
.v0-lookup .v0-code-list .v0-button{width:100%;min-height:44px;flex:none;justify-content:flex-start;text-align:left}
.v0-lookup .v0-code-list .v0-button>svg{display:none}
.v0-lookup .v0-code-list .is-selected{background:#14213d;color:#fff;border-color:#14213d}
.v0-lookup .v0-button:focus-visible{outline:2px solid #168455;outline-offset:2px}
.v0-sales-form .v0-customer-search{grid-template-columns:minmax(0,1fr) 44px;align-items:end}
.v0-sales-form .v0-client-name{align-self:end}
.v0-sales-form .v0-customer-compact>.v0-muted:empty{display:none}
.v0-sales-form .v0-client-name{margin-bottom:0}
.v0-home-rate{display:flex;align-items:center;justify-content:space-between;gap:16px;background:white;border:1px solid #dbe1e8;border-radius:16px;padding:18px 22px;margin-bottom:20px}.v0-home-rate p{margin:6px 0 0;color:#53657a;font-size:14px}@media(max-width:600px){.v0-home-rate{align-items:flex-start;flex-direction:column}}

/* Compact customer registry, preserving keyboard lookup controls. */
.v0-client-register {width:min(980px,94vw);max-height:90vh;padding:24px;}
.v0-client-register h2{margin:0;font-size:25px;}
.v0-client-register header{margin-bottom:14px;}
.v0-client-register .v0-registration-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px;margin:14px 0;align-items:start;}
.v0-client-register .v0-registration-grid input,.v0-client-register .v0-code-field{min-height:42px;height:42px;}
.v0-client-register .v0-registration-grid [hidden]{display:none;}
.v0-client-register .v0-registration-grid label{margin:0;}
.v0-client-register .v0-registration-grid .v0-choice{margin:0;}
@media(max-width:600px){.v0-client-register .v0-registration-grid{grid-template-columns:1fr;}}

/* Client identification, name and transaction kind share one compact row. */
.v0-sales-form .v0-customer-compact{grid-template-columns:minmax(200px,.7fr) minmax(260px,1.4fr) minmax(220px,.8fr)}
.v0-sales-form .v0-sale-kind{align-self:end}
.v0-sales-form .v0-sale-line{grid-template-columns:80px minmax(180px,1fr) 100px 145px 130px 40px}
.v0-sales-form .v0-sale-line>[hidden]{display:none}
@media(max-width:760px){
.v0-sales-form .v0-customer-compact{grid-template-columns:1fr}
.v0-sales-form .v0-sale-line{grid-template-columns:75px minmax(100px,1fr) 90px}
.v0-sales-form .v0-sale-line>label:nth-child(3){grid-column:auto}
.v0-sales-form .v0-sale-line>.v0-row-amount{grid-column:2}
.v0-sales-form .v0-sale-line>.v0-button{grid-column:3;grid-row:2}
}

.v0-currency-totals{display:flex;flex-wrap:wrap;gap:16px 36px}.v0-currency-totals strong{font-size:24px}.v0-currency-totals>div{min-width:150px}

/* Dialogs sit outside v0-shell: use the same border-box field sizing. */
.v0-client-register,.v0-client-register *{box-sizing:border-box;min-width:0}
.v0-client-register{font-size:14px}
.v0-client-register label{font-size:13px;gap:6px}
.v0-client-register input,.v0-client-register .v0-registration-grid input{height:42px;min-height:42px;padding:10px 12px;font-size:15px;width:100%}
.v0-client-register .v0-coded-value{height:42px;min-height:42px}
.v0-client-register .v0-coded-value input{height:40px;min-height:40px}
.v0-client-register .v0-coded>label>span{margin-bottom:0;font-size:13px;font-weight:400}
.v0-client-register .v0-registration-grid{gap:12px 16px}

.v0-total.v0-currency-totals{flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:0}
.v0-currency-totals>div{padding:0 28px;min-width:170px}
.v0-currency-totals>div:first-child{padding-left:0}
.v0-currency-totals>div+div{border-left:1px solid #dbe1e8}
@media(max-width:600px){.v0-sales-form .v0-checkout{flex-wrap:wrap}.v0-currency-totals>div{min-width:0;padding:0 16px}.v0-sales-form .v0-checkout .v0-primary{max-width:none;width:100%}}

/* Meta palette preview: user-specified colors, existing SYNGPRO structure. */
.v0-shell{--v0-ink:#1C2B33;--v0-border:#dce4ea;--v0-accent:#0064E0;background:#F1F5F8;color:#1C2B33}
.v0-layout,.v0-lookup,.v0-toast-stack{font-family:Inter,Arial,sans-serif}
.v0-shell input,.v0-shell select,.v0-shell button,.v0-lookup input,.v0-lookup button{font-family:inherit}
.v0-shell .v0-top{background:#3B505B;border-bottom:0}
.v0-shell .v0-task,.v0-shell .v0-panel,.v0-shell .v0-home-rate,.v0-shell .v0-checkout,.v0-lookup{background:#fff;color:#1C2B33}
.v0-shell h1,.v0-shell h2,.v0-lookup h2{color:#0064E0}
.v0-shell .v0-primary,.v0-shell .v0-nav .v0-button[aria-current=page],.v0-code-list .is-selected{background:#0064E0;color:white;border-color:#0064E0}
.v0-shell .v0-button:not(.v0-primary):not([aria-current=page]){color:#0064E0}
.v0-shell input:focus,.v0-shell select:focus,.v0-lookup input:focus{outline:2px solid #0082FB;outline-offset:1px;box-shadow:0 0 0 3px #0082fb14}
.v0-shell .v0-task-icon{background:linear-gradient(135deg,#0064E0,#0082FB);color:white}
.v0-shell .v0-tone-receipt .v0-task-icon{background:#e5f5ec;color:#167447}
.v0-shell .v0-tone-cancel .v0-task-icon{background:#fce9eb;color:#bc2639}
.v0-shell .v0-tone-reports .v0-task-icon{background:#f0eafb;color:#7952b3}
.v0-shell .v0-tone-settings .v0-task-icon{background:#edf0f3;color:#586773}
.v0-home-rate strong{display:flex;align-items:center;gap:10px}.v0-home-rate strong svg{width:22px;height:22px}
.v0-home-rate.is-stale{border:1px solid #ce3245;animation:v0-alert-pulse 2.4s ease-in-out infinite}
.v0-home-rate.is-stale strong{color:#b52335}.v0-home-rate.is-stale strong svg{animation:v0-alert-shake 4s ease-in-out infinite}
.v0-shell .v0-home-rate.is-stale .v0-button{background:#bc2639;border-color:#bc2639;color:#fff}
.v0-coded.is-invalid .v0-code-description,.v0-error{color:#bd2638!important}.v0-coded.is-invalid .v0-coded-value{border-color:#bd2638}
.v0-toast-stack{position:fixed;right:20px;top:20px;z-index:10000;display:grid;gap:10px;max-width:min(420px,calc(100vw - 40px))}
.v0-toast{background:#fff;color:#1C2B33;box-shadow:0 10px 35px #1c2b3326;border:1px solid #dce4ea;border-left:5px solid #0064E0;border-radius:12px;padding:14px 16px;display:flex;gap:12px;align-items:center;font-size:14px;animation:v0-toast-in .18s ease-out}
.v0-toast-success{border-left-color:#16834b;background:#edf9f2}.v0-toast-error{border-left-color:#c3293e;background:#fff0f2}
.v0-toast .v0-icon{background:transparent;border:0;padding:4px;color:inherit}.v0-toast svg{width:18px;height:18px}.v0-toast.is-leaving{opacity:0;transform:translateY(-8px);transition:opacity .18s,transform .18s}
@keyframes v0-alert-pulse{50%{box-shadow:0 0 0 4px #ce324518}}
@keyframes v0-alert-shake{0%,12%,100%{transform:rotate(0)}3%,9%{transform:rotate(-9deg)}6%{transform:rotate(9deg)}}
@keyframes v0-toast-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.v0-home-rate.is-stale,.v0-home-rate.is-stale strong svg,.v0-toast{animation:none}.v0-toast.is-leaving{transition:none}}
@media(prefers-color-scheme:dark){
.v0-shell{--v0-ink:#edf2f6;--v0-border:#3a4b56;background:#121C22;color:#edf2f6}
.v0-shell .v0-task,.v0-shell .v0-panel,.v0-shell .v0-home-rate,.v0-shell .v0-checkout,.v0-shell .v0-nav,.v0-lookup{background:#3B505B;color:#edf2f6;border-color:#3a4b56}
.v0-shell input,.v0-shell select,.v0-lookup input,.v0-coded-value{background:#121C22;color:#edf2f6;border-color:#526570}
.v0-coded-value input{background:#243640!important;color:#edf2f6}.v0-code-description{color:inherit}
.v0-shell h1,.v0-shell h2,.v0-lookup h2{color:#68b5ff}
.v0-shell .v0-task strong,.v0-shell label,.v0-shell .v0-total strong{color:#edf2f6}
.v0-shell .v0-task small,.v0-shell small,.v0-shell .v0-title p,.v0-shell .v0-account span,.v0-shell .v0-muted{color:#b7c7d2}
.v0-shell .v0-button:not(.v0-primary):not([aria-current=page]){color:#8ac7ff;background:#243640}
.v0-shell .v0-home-rate.is-stale .v0-button{background:#bc2639;color:#fff}.v0-home-rate.is-stale strong{color:#ff8d9b}
.v0-coded.is-invalid .v0-code-description,.v0-error{color:#ff8d9b!important}
.v0-toast{background:#243640;color:#edf2f6}.v0-toast-success{border-left-color:#55d58f}.v0-toast-error{border-left-color:#ff8d9b}
}

.v0-shell .v0-top .v0-button:not(.v0-primary){color:#fff}

/* Bottom navigation: Meta near-black active item. */
.v0-shell .v0-nav .v0-button[aria-current=page]{background:#3B505B;border-color:#3B505B;color:#fff}
.v0-shell .v0-nav .v0-button:not([aria-current=page]){color:#1C2B33;background:transparent}
@media(prefers-color-scheme:dark){.v0-shell .v0-nav .v0-button[aria-current=page]{background:#0b1116;border-color:#0b1116;color:#fff}.v0-shell .v0-nav .v0-button:not([aria-current=page]){color:#c6d2da}}

/* Consistent action colors and focus treatment for home cards. */
.v0-shell .v0-task{--task-border:#0082FB}
.v0-shell .v0-tone-receipt{--task-border:#16834b}
.v0-shell .v0-tone-cancel{--task-border:#bc2639}
.v0-shell .v0-tone-status{--task-border:#0064E0}
.v0-shell .v0-tone-reports{--task-border:#7952b3}
.v0-shell .v0-tone-settings{--task-border:#667580}
.v0-shell .v0-tone-status .v0-task-icon{background:#e7f1ff;color:#0064E0}
.v0-shell .v0-task-icon svg{width:26px;height:26px;stroke-width:1.8}
.v0-shell button:focus-visible,.v0-lookup .v0-button:focus-visible{outline:2px solid #0082FB;outline-offset:3px}
.v0-shell .v0-button.v0-primary:hover:not(:disabled){background:#0056c2;border-color:#0056c2}
.v0-shell .v0-nav .v0-button:hover:not([aria-current=page]){background:#e9eef2}
@media(prefers-color-scheme:dark){.v0-shell .v0-nav .v0-button:hover:not([aria-current=page]){background:#2c3e49}}

.v0-document-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--v0-border);border-radius:14px;background:#fff}
.v0-document-table{width:100%;border-collapse:collapse;min-width:800px;text-align:left;font-size:13px}
.v0-document-table th{padding:12px 16px;background:#f7f9fb;color:#526570;font-size:12px;font-weight:600}
.v0-document-table td{padding:14px 16px;border-top:1px solid var(--v0-border);vertical-align:middle}
.v0-document-table td small{display:block;margin-top:5px;color:#526570;font-size:12px}
.v0-document-amount{white-space:nowrap;font-weight:700;text-align:right}
.v0-document-table th:nth-child(3){text-align:right}
.v0-document-table .v0-actions{flex-wrap:nowrap;margin:0;justify-content:flex-end}
.v0-document-table .v0-button{min-height:38px;padding:8px 10px;font-size:12px;white-space:nowrap}
.v0-document-table tbody tr:hover{background:#f4f8fc}
@media(prefers-color-scheme:dark){.v0-document-table-wrap{background:#3B505B}.v0-document-table th{background:#243640;color:#c6d2da}.v0-document-table td small{color:#b7c7d2}.v0-document-table tbody tr:hover{background:#243640}}

.v0-document-filters{grid-template-columns:2fr 1fr 1fr}@media(max-width:760px){.v0-document-filters{grid-template-columns:1fr}}

/* Saturated icon tiles matching the supplied reference. */
.v0-shell .v0-task{position:relative}
.v0-shell .v0-task-icon{box-shadow:0 3px 6px #1c2b3324;color:#fff;border-radius:15px}
.v0-shell .v0-tone-invoice .v0-task-icon{background:linear-gradient(135deg,#0082FB,#0064E0);color:#fff}
.v0-shell .v0-tone-receipt .v0-task-icon{background:linear-gradient(135deg,#00bc87,#009d8a);color:#fff}
.v0-shell .v0-tone-cancel .v0-task-icon{background:linear-gradient(135deg,#ff1655,#ed002c);color:#fff}
.v0-shell .v0-tone-status .v0-task-icon{background:linear-gradient(135deg,#00b5ee,#603cff);color:#fff}
.v0-shell .v0-tone-reports .v0-task-icon{background:linear-gradient(135deg,#9950ff,#9024ff);color:#fff}
.v0-shell .v0-tone-settings .v0-task-icon{background:linear-gradient(135deg,#61748e,#344258);color:#fff}
.v0-shortcut{position:absolute;top:22px;right:22px;padding:3px 9px;background:#e8eef4;border:1px solid #d8e1eb;border-radius:7px;color:#526570;font-size:12px;font-weight:400}
@media(prefers-color-scheme:dark){.v0-shortcut{background:#2c3e49;border-color:#526570;color:#d5e1e9}}
/* V0 production boundary: shared billing styles load after this sheet. */
:root{--v0-surface:#fff;--v0-canvas:#F1F5F8;--v0-text:#1C2B33;--v0-muted:#526570;--v0-line:#dce4ea;--v0-soft:#f5f8fa;--v0-heading:#0064E0}
:root[data-theme=dark]{--v0-surface:#3B505B;--v0-canvas:#121C22;--v0-text:#edf2f6;--v0-muted:#b7c7d2;--v0-line:#3a4b56;--v0-soft:#243640;--v0-heading:#68b5ff}
@media(prefers-color-scheme:dark){:root:not([data-theme]){--v0-surface:#3B505B;--v0-canvas:#121C22;--v0-text:#edf2f6;--v0-muted:#b7c7d2;--v0-line:#3a4b56;--v0-soft:#243640;--v0-heading:#68b5ff}}
#app.v0-shell{--v0-ink:var(--v0-text);--v0-border:var(--v0-line);--v0-accent:#0064E0;font-family:Inter,Arial,sans-serif!important}
#app.v0-shell,#app.v0-shell .v0-layout,#app.v0-shell .v0-main{background:var(--v0-canvas)!important;color:var(--v0-text)!important}
#app.v0-shell .v0-main{max-width:1328px!important;width:100%;padding:24px 24px 110px!important;margin:0 auto!important}
#app.v0-shell .v0-sales-main{max-width:1480px!important}
#app.v0-shell .v0-top{background:#3B505B!important;border-bottom:0!important;padding:14px max(24px,calc((100vw - 1280px)/2))!important}
#app.v0-shell .v0-top .v0-account strong{color:#fff!important}
#app.v0-shell .v0-top .v0-account span{color:#c7d6e2!important}
#app.v0-shell :is(.v0-task,.v0-panel,.v0-home-rate,.v0-checkout,.v0-line,.v0-document,.v0-empty,.v0-nav,.v0-document-table-wrap),body dialog.v0-lookup{background:var(--v0-surface)!important;color:var(--v0-text)!important;border-color:var(--v0-line)!important}
#app.v0-shell :is(h1,h2),body dialog.v0-lookup h2{color:var(--v0-heading)!important}
#app.v0-shell :is(strong,label){color:var(--v0-text)!important}
#app.v0-shell :is(.v0-task small,.v0-home-rate p,.v0-title p,.v0-foot,.v0-muted){color:var(--v0-muted)!important}
#app.v0-shell :is(input,select,textarea),body dialog.v0-lookup :is(input,select,textarea){background:var(--v0-surface)!important;color:var(--v0-text)!important;border-color:var(--v0-line)!important;font-family:Inter,Arial,sans-serif!important}
#app.v0-shell .v0-coded-value,body dialog.v0-lookup .v0-coded-value{background:var(--v0-surface)!important;color:var(--v0-text)!important;border-color:var(--v0-line)!important}
#app.v0-shell .v0-coded-value input,body dialog.v0-lookup .v0-coded-value input{background:var(--v0-soft)!important;color:var(--v0-text)!important}
#app.v0-shell :is(input,select,button):focus-visible,body dialog.v0-lookup :is(input,select,button):focus-visible{outline:2px solid #0082FB!important;outline-offset:2px}
#app.v0-shell .v0-button{color:#0064E0!important;background:var(--v0-surface)!important}
#app.v0-shell .v0-button.v0-primary,body .v0-code-list .v0-button.is-selected{background:#0064E0!important;color:#fff!important;border-color:#0064E0!important}
html #app.v0-shell #page .v0-task{padding:24px!important;min-height:178px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:16px!important;border-radius:18px!important}
html #app.v0-shell #page .v0-task strong{font-size:19px!important;color:var(--v0-text)!important}
html #app.v0-shell #page .v0-task small{font-size:14px!important}
html #app.v0-shell #page .v0-task>svg{display:none!important}
html #app.v0-shell #page .v0-task-icon{width:54px!important;height:54px!important;min-width:54px!important;display:grid!important;place-items:center!important;border-radius:16px!important;box-shadow:0 3px 6px #1c2b3324!important;color:#fff!important}
html #app.v0-shell #page .v0-task-icon svg{width:26px!important;height:26px!important;color:#fff!important}
html #app.v0-shell #page .v0-tone-invoice .v0-task-icon{background:linear-gradient(135deg,#0082FB,#0064E0)!important}
html #app.v0-shell #page .v0-tone-receipt .v0-task-icon{background:linear-gradient(135deg,#00bc87,#009d8a)!important}
html #app.v0-shell #page .v0-tone-cancel .v0-task-icon{background:linear-gradient(135deg,#ff1655,#ed002c)!important}
html #app.v0-shell #page .v0-tone-status .v0-task-icon{background:linear-gradient(135deg,#00b5ee,#603cff)!important}
html #app.v0-shell #page .v0-tone-reports .v0-task-icon{background:linear-gradient(135deg,#9950ff,#9024ff)!important}
html #app.v0-shell #page .v0-tone-settings .v0-task-icon{background:linear-gradient(135deg,#61748e,#344258)!important}
html #app.v0-shell #page .v0-tone-currency .v0-task-icon{background:linear-gradient(135deg,#0082fb,#0064e0)!important}
html #app.v0-shell #page .v0-tone-refresh .v0-task-icon{background:linear-gradient(135deg,#00aa91,#007e77)!important}
html #app.v0-shell #page .v0-tone-shield .v0-task-icon{background:linear-gradient(135deg,#3285e9,#2354ba)!important}
html #app.v0-shell #page .v0-tone-print .v0-task-icon{background:linear-gradient(135deg,#61748e,#344258)!important}
html #app.v0-shell #page .v0-tone-mail .v0-task-icon{background:linear-gradient(135deg,#9950ff,#7134c6)!important}
html #app.v0-shell #page .v0-tone-home .v0-task-icon{background:linear-gradient(135deg,#009cc3,#006f95)!important}
html #app.v0-shell #page .v0-tone-help .v0-task-icon{background:linear-gradient(135deg,#5575ae,#354e7b)!important}
#app.v0-shell .v0-shortcut{background:var(--v0-soft)!important;color:var(--v0-muted)!important;border-color:var(--v0-line)!important}
#app.v0-shell .v0-home-rate.is-stale{border-color:#ce3245!important}
#app.v0-shell .v0-home-rate.is-stale strong{color:#ce3245!important}
#app.v0-shell .v0-home-rate.is-stale .v0-button{background:#bc2639!important;border-color:#bc2639!important;color:#fff!important}
#app.v0-shell .v0-nav{width:min(440px,calc(100vw - 24px))!important;max-width:440px!important;padding:7px!important;border-radius:48px!important}
#app.v0-shell .v0-nav .v0-button{min-width:0!important;min-height:74px!important;font-size:14px!important;padding:8px!important;color:var(--v0-text)!important;background:transparent!important}
#app.v0-shell .v0-nav .v0-button[aria-current=page]{background:#3B505B!important;color:white!important}
#app.v0-shell .v0-top :is(.v0-button,.ux-theme-toggle){background:transparent!important;color:#fff!important}
@media(max-width:760px){#app.v0-shell .v0-main{padding:18px 12px 110px!important}html #app.v0-shell #page .v0-task{min-height:154px!important;padding:18px!important}}
html #app.v0-shell #page .v0-task{background:var(--v0-surface)!important;color:var(--v0-text)!important;border-color:var(--v0-line)!important}
html #app.v0-shell #page .v0-task small{color:var(--v0-muted)!important}
html #app.v0-shell #page .v0-task:hover{background:var(--v0-surface)!important;border-color:#0082FB!important}
html[data-theme=dark] #app.v0-shell .v0-nav .v0-button[aria-current=page]{background:#0b1116!important}
html[data-theme=dark] #app.v0-shell .v0-home-rate.is-stale strong{color:#ff8d9b!important}

/* Draft exit: keep the current document unless the user explicitly discards it. */
body dialog.v0-leave-draft{box-sizing:border-box;width:min(560px,calc(100vw - 32px));padding:24px;border-radius:18px;box-shadow:0 24px 80px #121c2233}
body dialog.v0-leave-draft header{align-items:flex-start;gap:20px}
body dialog.v0-leave-draft h2{font-size:21px;line-height:1.35;margin:0;max-width:390px}
body dialog.v0-leave-draft p{font-size:14px;line-height:1.6;margin:18px 0 24px;color:var(--v0-text)}
body dialog.v0-leave-draft .v0-leave-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
body dialog.v0-leave-draft .v0-stay{background:#0064E0!important;border-color:#0064E0!important;color:#fff!important;font-weight:600}
body dialog.v0-leave-draft .v0-discard{background:var(--v0-surface)!important;color:var(--v0-text)!important;border-color:var(--v0-line)!important}
@media(max-width:480px){body dialog.v0-leave-draft .v0-leave-actions{flex-direction:column-reverse}body dialog.v0-leave-draft .v0-leave-actions button{width:100%}}

#app.v0-shell .v0-credit-main{max-width:1480px;margin-inline:auto}
#app.v0-shell .v0-credit-search{padding:22px;margin-bottom:18px}
#app.v0-shell .v0-credit-step{display:flex;gap:12px;align-items:flex-start;margin-bottom:20px}
#app.v0-shell .v0-credit-step>span{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:50%;background:#0064e0;color:#fff;font-weight:700}
#app.v0-shell .v0-credit-step h2{font-size:17px;margin:2px 0 5px}
#app.v0-shell .v0-credit-step p,#app.v0-shell .v0-credit-search-meta p{margin:0;color:var(--v0-muted);font-size:13px;line-height:1.5}
#app.v0-shell .v0-credit-search>label{display:grid;gap:7px}
#app.v0-shell .v0-credit-search-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}
#app.v0-shell .v0-credit-table th{background:var(--v0-soft)!important;color:var(--v0-text)!important;font-size:12px;text-transform:none}
#app.v0-shell .v0-credit-table td{padding:18px 20px}
#app.v0-shell .v0-credit-table td small{color:var(--v0-muted)!important;font-size:12px;margin-top:5px}
#app.v0-shell .v0-credit-table tbody tr.is-current{background:var(--v0-soft)!important;box-shadow:inset 3px 0 #0064e0}
#app.v0-shell .v0-credit-table .v0-credit-select{min-height:40px;white-space:nowrap}
#app.v0-shell .v0-credit-table tr.is-current .v0-credit-select{background:#0064e0!important;border-color:#0064e0!important;color:white!important}

#app.v0-shell .v0-document-selector{margin-bottom:14px}
#app.v0-shell .v0-action-key{padding:3px 6px;border:1px solid #ffffff80;border-radius:5px;background:#ffffff18;color:inherit;font:600 11px/1.2 Montserrat,Arial,sans-serif}
/* Follow the app theme, even when it differs from the operating system. */
#app.v0-shell .v0-document-table th{background:var(--v0-soft)!important;color:var(--v0-text)!important}
#app.v0-shell .v0-document-table td{color:var(--v0-text)}
#app.v0-shell .v0-document-table td small{color:var(--v0-muted)!important}
#app.v0-shell .v0-document-table tbody tr:is(:hover,:focus-within){background:var(--v0-soft)!important;color:var(--v0-text)!important}
#app.v0-shell .v0-document-selector{padding:18px 20px}
#app.v0-shell .v0-sales-form .v0-credit{display:flex;align-items:flex-end;gap:12px 24px;flex-wrap:wrap;padding-top:12px}
#app.v0-shell .v0-credit-fields{display:grid;grid-template-columns:96px 150px 210px;gap:12px;max-width:100%}
#app.v0-shell .v0-credit .v0-schedule:empty{display:none}
#app.v0-shell .v0-credit .v0-schedule{flex:1;min-width:220px;max-width:420px}
#app.v0-shell .v0-customer-compact>.v0-error{grid-column:1/-1;margin:0}
#app.v0-shell .v0-customer-compact>p[role=status]{grid-column:1/-1;margin:0}
@media(max-width:560px){#app.v0-shell .v0-credit-fields{width:100%;grid-template-columns:minmax(70px,1fr) minmax(130px,1.5fr)}#app.v0-shell .v0-credit-fields>label:last-child{grid-column:1/-1;max-width:240px}}
#app.v0-shell .v0-document-workspace [hidden]{display:none!important}
#app.v0-shell .v0-document-alternate>.v0-button{margin-bottom:14px}
#app.v0-shell .v0-remission-fields .v0-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#app.v0-shell .v0-remission-mode .v0-sale-line{grid-template-columns:90px minmax(200px,1fr) 48px}
#app.v0-shell .v0-remission-mode .v0-sale-line>label:nth-child(3),#app.v0-shell .v0-remission-mode .v0-sale-line>label:nth-child(4),#app.v0-shell .v0-remission-mode .v0-row-amount{display:none!important}
#app.v0-shell .v0-remission-mode .v0-sale-line>.v0-button{grid-column:3;grid-row:1}
@media(max-width:600px){#app.v0-shell .v0-remission-fields .v0-grid{grid-template-columns:1fr}}

/* Optional issuer identity on Home. Keep the supplied logo's original colors. */
#app.v0-shell .v0-company-brand{margin:24px 0 20px auto;width:220px;max-width:60vw;padding:12px 16px;border-radius:12px;background:#fff;box-sizing:border-box;border:1px solid var(--v0-line)}
#app.v0-shell .v0-company-brand[hidden]{display:none!important}
#app.v0-shell .v0-company-brand img{display:block;width:100%;max-height:86px;object-fit:contain;filter:none!important;opacity:1!important}
@media(min-width:1100px) and (min-height:850px){#app.v0-shell .v0-home-main .v0-company-brand{position:fixed;right:36px;bottom:122px;margin:0;width:240px}}

#app.v0-shell .v0-document-alternate .v0-form{width:100%;max-width:none;margin-inline:0}
#app.v0-shell .v0-document-alternate .v0-checkout{position:static}
#app.v0-shell .v0-credit-main{max-width:none}
#app.v0-shell .v0-credit-customer{padding:18px 20px}
#app.v0-shell .v0-credit-client-row{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(300px,2fr);gap:16px}
#app.v0-shell .v0-credit-client-row:has([data-credit-reason]){grid-template-columns:minmax(220px,.7fr) minmax(260px,1.4fr) minmax(200px,.8fr)}
#app.v0-shell .v0-search-pair{display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:end;gap:8px}
#app.v0-shell .v0-credit-reference-row{display:flex;align-items:end;gap:20px;border-top:1px solid var(--v0-line);padding-top:12px;margin-top:12px}
#app.v0-shell .v0-credit-reference-row>.v0-search-pair{width:420px;max-width:100%}
#app.v0-shell .v0-credit-customer>p:empty{display:none}
#app.v0-shell .v0-credit-content .v0-products-panel{min-height:300px}
#app.v0-shell .v0-credit-reason .v0-grid{grid-template-columns:240px 240px;gap:16px}
#app.v0-shell .v0-credit-form .v0-credit-line{display:grid;grid-template-columns:minmax(180px,1fr) 180px 210px;align-items:center;gap:16px;border:0;border-bottom:1px solid var(--v0-line);border-radius:0;padding:10px 0}
#app.v0-shell .v0-credit-line .v0-grid{display:block;margin:0}
#app.v0-shell .v0-credit-line .v0-check{margin:0}
#app.v0-shell .v0-credit-line .v0-muted{margin:0}
@media(max-width:760px){#app.v0-shell .v0-credit-client-row{grid-template-columns:1fr}#app.v0-shell .v0-credit-reference-row{flex-wrap:wrap}#app.v0-shell .v0-credit-reason .v0-grid{grid-template-columns:1fr}#app.v0-shell .v0-credit-form .v0-credit-line{grid-template-columns:minmax(0,1fr) 140px}#app.v0-shell .v0-credit-line>.v0-check{grid-column:1/-1}}
@media(max-width:1099px),(max-height:849px){#app.v0-shell .v0-company-brand{margin-bottom:120px}}
@media(max-width:760px){#app.v0-shell .v0-credit-client-row:has([data-credit-reason]){grid-template-columns:1fr}}





/* V1: same compact document structure as the approved V0 reference. */
.v177-shell{--v177-bg:#F1F5F8;--v177-card:#fff;--v177-ink:#1C2B33;--v177-border:#dce5ed;--v177-muted:#526b7a;background:var(--v177-bg)!important;color:var(--v177-ink);font-family:Inter,system-ui,sans-serif}
:root[data-theme=dark] .v177-shell{--v177-bg:#121C22;--v177-card:#3B505B;--v177-ink:#edf2f6;--v177-border:#40535f;--v177-muted:#bacbd6}
.v177-shell .connected-top,.v177-shell .connected-bottom [aria-current=page]{background:#3B505B!important;color:white!important}
.v177-shell h1,.v177-shell h3{color:#0064E0}.v177-shell .primary{background:#0064E0!important;color:#fff!important;border-color:#0064E0!important}
.v177-shell input:focus,.v177-shell select:focus{outline:2px solid #0082FB;outline-offset:1px}
.v177-shell .v177-workspace{max-width:none!important;padding:24px 32px 130px!important}
.v177-shell [hidden]{display:none!important}.v177-shell .v177-heading{display:flex;align-items:center;gap:16px;margin-bottom:20px}.v177-heading h1{margin:0}
.v177-shell .v177-panel{background:var(--v177-card);border:1px solid var(--v177-border);border-radius:18px;padding:20px;margin:0 0 14px;box-shadow:0 2px 4px #1c2b3305}
.v177-shell .v177-document-type{margin-bottom:12px;max-width:none}.v177-document-type>label{max-width:520px;display:block}
.v177-shell .v177-form,.v177-shell .v177-fields{display:block!important;max-width:none!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
.v177-shell .v177-form label,.v177-shell .v177-document-type label{font-size:13px;display:flex;flex-direction:column;gap:8px;min-width:0;color:var(--v177-ink)}
.v177-shell .v177-form input,.v177-shell .v177-form select,.v177-shell .v177-document-type input{min-height:42px;height:42px;border:1px solid var(--v177-border);border-radius:9px;background:var(--v177-card);color:var(--v177-ink);font:inherit;padding:8px 12px;width:100%;box-sizing:border-box}
.v177-shell .v177-form input[type=checkbox]{width:20px;height:20px;min-height:20px;flex:none}
.v177-shell .v177-code{display:flex;align-items:center;border:1px solid var(--v177-border);border-radius:9px;overflow:hidden;min-height:42px}.v177-shell .v177-code input{width:58px;flex:none;border:0;border-right:1px solid var(--v177-border);border-radius:0;text-align:center}.v177-code>span{padding:8px 12px;font-weight:600}
.v177-shell .v177-terms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.v177-shell .v177-credit{display:flex;gap:12px;grid-column:1/-1;flex-wrap:wrap}.v177-credit label{max-width:190px}.v177-credit label:first-child{max-width:100px}.v177-credit:not(:has(label:not([hidden]))){display:none}
.v177-shell .v177-customer{display:grid;grid-template-columns:minmax(230px,1fr) minmax(280px,2fr) minmax(220px,1fr);gap:16px;align-items:start}.v177-customer>label:nth-child(2){grid-column:2}.v177-customer>.error{grid-column:1/-1;margin:0;order:5}.v177-customer>.error:empty{display:none}.v177-customer>label:nth-last-child(1){grid-column:auto}
.v177-shell .v177-identity{display:flex;gap:8px}.v177-identity input{min-width:0}.v177-identity button{width:44px;min-width:44px;color:#0064E0;font-size:24px;padding:0}
.v177-fiscal-options{margin:8px 0 16px;color:var(--v177-muted)}.v177-fiscal-options[open]{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}.v177-fiscal-options summary{grid-column:1/-1;cursor:pointer}
.v177-shell .sale-products{display:block!important;min-width:0}.v177-shell .sale-products h3{margin:0 0 14px}.v177-shell .invoice-item{display:grid!important;grid-template-columns:minmax(240px,3fr) 90px 130px minmax(250px,2fr) 110px 70px!important;gap:12px;align-items:end;border:0;border-bottom:1px solid var(--v177-border);border-radius:0;padding:12px 0;margin:0}
.v177-shell .invoice-item>label:first-child{grid-column:auto!important}.v177-shell .invoice-item .sale-row-prices{display:flex;gap:6px;grid-column:auto}.v177-shell .sale-row-prices label{flex:1}.v177-shell .sale-row-prices button{padding:8px;min-height:42px;font-size:12px}.v177-shell .invoice-item .invoice-tax{grid-column:auto!important}.v177-shell .invoice-item .invoice-stock{color:var(--v177-muted)}
.v177-shell .invoice-add{margin-top:12px}.v177-shell .invoice-add button{width:100%;border:1px dashed var(--v177-border);color:#0064E0;min-height:44px}
.v177-shell .v177-checkout{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}.v177-shell .v177-checkout .invoice-total{display:none}.v177-shell .v177-checkout:has(.related-line) .invoice-total{display:block}.v177-shell .v177-checkout>.invoice-total{display:block}.v177-shell .sale-summary .error{width:100%;margin:0}.v177-shell .sale-summary .error:empty{display:none}
.v177-equivalents{display:flex;gap:28px;align-items:center;flex-wrap:wrap}.v177-equivalents>div{display:flex;flex-direction:column;gap:6px;min-width:150px}.v177-equivalents>div+div{border-left:1px solid var(--v177-border);padding-left:28px}.v177-equivalents strong{font-size:24px}.v177-equivalents small{color:var(--v177-muted)}
.v177-reference{display:grid;grid-template-columns:2fr 1fr;gap:16px}.v177-transport{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.v177-transport h3{grid-column:1/-1}.v177-shell .related-line{display:grid;grid-template-columns:minmax(240px,3fr) 180px 180px;gap:16px;padding:14px 0;border-bottom:1px solid var(--v177-border)}.v177-shell .related-description{display:flex!important;flex-direction:row!important;align-items:center}.v177-shell .related-description small{display:block;color:var(--v177-muted)}.v177-shell .return-lots{grid-column:1/-1}.v177-shell .received-confirm{display:flex!important;flex-direction:row!important;align-items:center;margin:16px 0}
.v177-client-picker,.v177-confirm{background:#fff;color:#1C2B33;border:1px solid #dce5ed;border-radius:18px;padding:24px;max-width:min(820px,92vw);width:100%;font-family:Inter,system-ui,sans-serif}.v177-client-picker header{display:flex;justify-content:space-between}.v177-client-picker>input{width:100%;padding:12px;margin:12px 0}.v177-client-picker>div{display:grid;gap:6px;max-height:50vh;overflow:auto}.v177-client-picker>div>button{text-align:left;padding:12px}.v177-client-picker::backdrop,.v177-confirm::backdrop{background:#1c2b3370}
.v177-shell table tbody tr:hover,.v177-shell table tbody tr:focus-within{background:var(--v177-bg)!important;color:var(--v177-ink)!important}.v177-shell td small,.v177-shell .muted{color:var(--v177-muted)!important}
.v177-shell .v177-preferences{display:flex;gap:16px;align-items:end}.v177-preferences select{min-width:220px}
.v177-shell .v177-home{padding:24px 32px 130px!important}.v177-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:20px}.v177-shell .v177-home-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:14px;background:var(--v177-card)!important;border:1px solid var(--v177-border);border-radius:18px;padding:24px;color:var(--v177-ink);min-height:180px}.v177-home-card strong{font-size:20px}.v177-home-card small{color:var(--v177-muted);font-weight:400}.v177-home-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,#0082FB,#0064E0);color:white;box-shadow:0 3px 6px #1c2b3320}.v177-home-icon svg{width:26px;height:26px}.v177-home-card[data-tone=receipt] .v177-home-icon{background:#00aa88}.v177-home-card[data-tone=cancel] .v177-home-icon{background:#ff0048}.v177-home-card[data-tone=reports] .v177-home-icon{background:#9333ff}.v177-home-card[data-tone=management] .v177-home-icon{background:#52647d}.v177-home-card[data-tone=status] .v177-home-icon{background:linear-gradient(135deg,#00b3ed,#6345ff)}.v177-company-logo{display:block;max-width:220px;max-height:100px;object-fit:contain;margin:36px 0 0 auto}.v177-document-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px;margin-bottom:20px}.v177-shell .menu-hub-icon{color:#fff!important;background:#52647d!important}.v177-shell .menu-hub-card[data-tone=invoice] .menu-hub-icon{background:#0064E0!important}.v177-shell .menu-hub-card[data-tone=receipt] .menu-hub-icon{background:#00aa88!important}.v177-shell .menu-hub-card[data-tone=status] .menu-hub-icon{background:#9333ff!important}
.v177-shell.v177-shell{background:var(--v177-bg)!important}.v177-shell.v177-shell h3{color:#0064E0}.v177-shell .sale-summary>.invoice-total{display:none!important}.v177-shell .invoice-item{grid-template-columns:minmax(220px,3fr) 80px 270px 120px 90px 65px!important}.v177-shell .invoice-tax,.v177-shell .invoice-line-amount{display:flex;flex-direction:column;gap:6px}.v177-shell .v177-customer:not(:has([name=reason])){grid-template-columns:minmax(230px,1fr) minmax(280px,2fr)}
@media(max-width:1100px){.v177-shell .invoice-item{grid-template-columns:minmax(220px,2fr) 80px 130px!important}.v177-shell .v177-customer{grid-template-columns:1fr 2fr}.v177-shell .v177-customer>label:last-child{grid-column:auto}.v177-shell .v177-transport{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.v177-shell .v177-workspace{padding:16px 12px 130px!important}.v177-shell .v177-panel{padding:14px}.v177-shell .v177-terms,.v177-shell .v177-customer,.v177-shell .v177-reference,.v177-shell .v177-transport{grid-template-columns:1fr}.v177-customer>label:nth-child(2){grid-column:auto}.v177-shell .invoice-item{grid-template-columns:1fr 90px!important}.v177-shell .invoice-item>label:first-child,.v177-shell .sale-row-prices{grid-column:1/-1!important}.v177-shell .related-line{grid-template-columns:1fr 1fr}.v177-shell .related-description{grid-column:1/-1}.v177-fiscal-options[open]{grid-template-columns:1fr}.v177-shell .v177-preferences{flex-wrap:wrap}}
@media(max-width:640px){.v177-home-grid,.v177-document-filters{grid-template-columns:1fr}.v177-shell .v177-customer:not(:has([name=reason])){grid-template-columns:1fr}.v177-shell .v177-home{padding:16px 12px 130px!important}}
.v177-shell [hidden][hidden]{display:none!important}.v177-shell .billing-motion-control{display:none!important}
.v177-shell.v177-shell h1,.v177-shell.v177-shell h3{color:#0064E0!important}
/* Reference lock: user's 1.0.77 sales screen. Keep its panels and palette;
   reduce vertical spacing, reserve checkout, scroll only product rows. */
#app.v0-shell .v0-document-workspace .v0-products-space{display:none}
#app.v0-shell .v0-document-workspace .v0-products-panel{min-height:0}
#app.v0-shell .v0-document-workspace .v0-title{margin:0 0 10px;gap:10px}
#app.v0-shell .v0-document-workspace .v0-title h1{font-size:26px!important}
#app.v0-shell .v0-document-workspace .v0-title p{margin:3px 0 0;font-size:12px}
#app.v0-shell .v0-document-workspace .v0-panel{padding:10px 14px;border-radius:14px}
#app.v0-shell .v0-document-workspace .v0-document-selector{margin-bottom:10px}
#app.v0-shell .v0-document-workspace .v0-sales-form{gap:10px}
#app.v0-shell .v0-document-workspace label{gap:4px;font-size:12px}
#app.v0-shell .v0-document-workspace .v0-coded>label>span{margin-bottom:4px}
#app.v0-shell .v0-document-workspace :is(input:not([type=checkbox]),select){height:38px;min-height:38px;padding:7px 10px;font-size:14px}
#app.v0-shell .v0-document-workspace .v0-coded-value{height:40px;min-height:40px}
#app.v0-shell .v0-document-workspace .v0-code-description{padding:6px 10px;font-size:13px}
#app.v0-shell .v0-document-workspace .v0-button{min-height:38px;padding:8px 12px;font-size:13px}
#app.v0-shell .v0-document-workspace .v0-row-amount strong{height:38px}
#app.v0-shell .v0-document-workspace .v0-products-panel{gap:8px}
#app.v0-shell .v0-document-workspace .v0-products-panel h2{margin:0;font-size:13px}
#app.v0-shell .v0-document-workspace .v0-checkout{padding:10px 14px;gap:12px}
#app.v0-shell .v0-document-workspace .v0-total strong{font-size:23px}
#app.v0-shell .v0-document-workspace .v0-checkout .v0-primary{min-height:42px}
@media(min-width:900px) and (min-height:650px){
 #app.v0-shell:has(.v0-document-workspace) .v0-nav .v0-button{min-height:48px!important;font-size:12px!important;padding:5px 12px!important}
 #app.v0-shell .v0-document-workspace:not(:has(.v0-remission-mode:not([hidden]))){display:flex!important;flex-direction:column;overflow:hidden!important;gap:0;padding:10px 6px!important}
 #app.v0-shell .v0-document-workspace>.v0-title,#app.v0-shell .v0-document-workspace>.v0-document-selector{flex:none}
 #app.v0-shell .v0-document-workspace>.v0-sales-form:not([hidden]):not(.v0-remission-mode){display:flex;flex-direction:column;flex:1;min-height:0;margin:0;width:100%}
 #app.v0-shell .v0-document-workspace .v0-sales-form>.v0-panel:not(.v0-products-panel),#app.v0-shell .v0-document-workspace .v0-checkout{flex:none}
 #app.v0-shell .v0-document-workspace .v0-products-panel{flex:1;min-height:0;overflow:hidden}
 #app.v0-shell .v0-document-workspace .v0-products-panel>.v0-lines{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;padding:3px 5px 3px 3px;scrollbar-gutter:stable;overscroll-behavior:contain;scroll-padding:4px}
 #app.v0-shell .v0-document-workspace .v0-products-panel>:not(.v0-lines){flex:none}
 #app.v0-shell .v0-document-alternate:not([hidden]),#app.v0-shell .v0-document-alternate .v0-credit-content,#app.v0-shell .v0-document-alternate .v0-credit-form{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;margin:0}
 #app.v0-shell .v0-document-alternate>.v0-panel{flex:none;margin-bottom:10px}
 #app.v177-shell #page.v177-workspace:has(.sale-products){display:flex!important;flex-direction:column;overflow:hidden!important;padding:10px 12px!important}
 #app.v177-shell .v177-workspace .v177-heading{margin:0 0 8px;gap:10px;flex:none}
 #app.v177-shell .v177-workspace .v177-heading h1{font-size:26px!important}
 #app.v177-shell .v177-workspace .v177-panel{padding:10px 14px;margin-bottom:8px;border-radius:14px}
 #app.v177-shell .v177-workspace>.v177-document-type{flex:none}
 #app.v177-shell .v177-workspace:has(.sale-products)>div:has(>.v177-form),#app.v177-shell .v177-workspace:has(.sale-products) .v177-form,#app.v177-shell .v177-workspace:has(.sale-products) .v177-fields{display:flex!important;flex-direction:column;flex:1;min-height:0;gap:0}
 #app.v177-shell .v177-workspace .v177-fields> :not(.sale-products){flex:none}
 #app.v177-shell .v177-workspace .sale-products{display:flex!important;flex-direction:column;flex:1;min-height:0;overflow:hidden}
 #app.v177-shell .v177-workspace .sale-products>.invoice-items{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;scroll-padding:4px;padding:3px}
 #app.v177-shell .v177-workspace .sale-products>:not(.invoice-items){flex:none}
 #app.v177-shell .v177-workspace .sale-products h3{font-size:13px;margin:0 0 4px}
 #app.v177-shell .v177-workspace .invoice-item{padding:5px 0;gap:8px}
 #app.v177-shell .v177-workspace .invoice-add{margin:4px 0 0}
 #app.v177-shell .v177-workspace .invoice-add button{min-height:32px;padding:5px}
 #app.v177-shell .v177-workspace :is(input:not([type=checkbox]),select){height:36px;min-height:36px;padding:6px 10px}
 #app.v177-shell .v177-workspace .v177-code{min-height:38px;height:38px}
 #app.v177-shell .v177-workspace label{gap:4px;font-size:12px}
 #app.v177-shell .v177-workspace .v177-fiscal-options{margin:0 0 6px;font-size:12px}
 #app.v177-shell .v177-workspace .v177-checkout{margin-bottom:0;gap:10px}
 #app.v177-shell .v177-workspace .v177-checkout .actions{margin:0}
 #app.v177-shell .v177-workspace .v177-equivalents strong{font-size:22px}
 #app.v177-shell:has(.v177-workspace) .connected-bottom button{min-height:44px!important;padding:5px 14px!important;font-size:12px!important}
}
@media(max-width:899px),(max-height:649px){
 #app.v0-shell .v0-document-workspace .v0-products-panel>.v0-lines{max-height:38dvh;overflow:auto;overscroll-behavior:contain;padding:3px}
 #app.v0-shell .v0-document-workspace .v0-checkout{position:sticky;bottom:0;z-index:10}
 #app.v177-shell .v177-workspace .invoice-items{max-height:38dvh;overflow:auto;overscroll-behavior:contain}
 #app.v177-shell .v177-workspace .v177-checkout{position:sticky;bottom:0;z-index:10}
}

@media(min-width:900px) and (min-height:650px){#app.v177-shell .v177-workspace>.connected-location{display:none}}

@media(min-width:900px) and (min-height:650px){
 #app.v0-shell .v0-document-workspace .v0-title>div{display:flex;align-items:baseline;gap:14px}
 #app.v0-shell .v0-document-workspace .v0-title p{margin:0}
 #app.v0-shell .v0-document-workspace .v0-credit{padding-top:6px}
 #app.v0-shell .v0-document-workspace .v0-customer-compact{row-gap:8px}
 #app.v0-shell .v0-document-workspace .v0-checkout small{font-size:10px;line-height:1.2;margin:2px 0}
 #app.v0-shell .v0-document-workspace .v0-checkout{padding:8px 14px}
 #app.v0-shell .v0-document-workspace .v0-total strong{font-size:21px;line-height:1.2}
 #app.v177-shell .v177-workspace .v177-terms:has([name=v177Type]){grid-template-columns:1.6fr repeat(3,minmax(0,1fr));gap:10px}
}
@media(min-width:900px) and (min-height:650px){
 #app.v0-shell .v0-document-workspace .v0-products-panel>.v0-add{height:32px;min-height:32px;padding:5px 10px}
 #app.v0-shell .v0-document-workspace .v0-products-panel{gap:6px}
}

/* Credit notes retain their customer/reference panels and a visible checkout. */
@media(min-width:900px) and (min-height:650px){
 #app.v177-shell #page.v177-workspace:has(.v177-credit-products){display:flex!important;flex-direction:column;overflow:hidden!important;padding:10px 12px!important}
 #app.v177-shell .v177-workspace:has(.v177-credit-products)>div:has(>.v177-form),#app.v177-shell .v177-workspace:has(.v177-credit-products) .v177-form,#app.v177-shell .v177-workspace:has(.v177-credit-products) .v177-fields{display:flex!important;flex-direction:column;flex:1;min-height:0;gap:0}
 #app.v177-shell .v177-workspace .v177-fields>.v177-credit-products{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
 #app.v177-shell .v177-workspace .v177-credit-products>.related-items{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;padding:3px;scroll-padding:4px}
 #app.v177-shell .v177-workspace .v177-credit-products>:not(.related-items){flex:none}
 #app.v177-shell .v177-workspace .v177-credit-products h3{margin:0 0 6px;font-size:13px}
 #app.v177-shell .v177-workspace .related-item{padding:6px 0}
 #app.v177-shell .v177-workspace .v177-checkout>.error:empty{display:none}
 #app.v0-shell .v0-document-workspace .v0-credit-reference-row{padding-top:6px;margin-top:6px}
 #app.v0-shell .v0-document-workspace .v0-credit-line{padding:6px 0;gap:10px}
 #app.v0-shell .v0-document-workspace .v0-credit-line p{margin:0;font-size:12px}
}
@media(max-width:899px),(max-height:649px){
 #app.v177-shell .v177-workspace .v177-credit-products>.related-items{max-height:38dvh;overflow:auto;overscroll-behavior:contain}
}

@media(min-width:900px) and (min-height:650px){
 #app.v0-shell .v0-document-workspace .v0-credit-content,#app.v0-shell .v0-document-workspace .v0-credit-content>.v0-credit-form{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;margin:0}
 #app.v0-shell .v0-document-workspace>.v0-credit-customer{flex:none;margin-bottom:10px}
 #app.v177-shell .v177-workspace .v177-credit-products>.related-items{align-content:start}
 #app.v177-shell .v177-workspace .related-line{padding:6px 0;min-height:0}
}
#app.v0-shell .v0-rate-form{width:min(100%,660px);padding:20px}
#app.v0-shell .v0-rate-date{margin:0 0 16px;color:var(--v0-muted);font-size:13px}
#app.v0-shell .v0-rate-entry{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}
#app.v0-shell .v0-rate-entry>label{width:240px;max-width:100%;gap:6px;font-size:13px}
#app.v0-shell .v0-rate-entry input{height:44px;min-height:44px;padding:10px 12px;font-size:16px}
#app.v0-shell .v0-rate-entry>.v0-button{height:44px;min-height:44px;padding:10px 16px;font-size:14px;white-space:nowrap;margin:0}
#app.v0-shell .v0-rate-form>.v0-error:empty{display:none}
body dialog.v0-delete-draft{box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border-radius:20px;border:1px solid var(--v0-line);font-family:Inter,system-ui,sans-serif;background:var(--v0-surface,#fff);color:var(--v0-text,#1c2b33);box-shadow:0 24px 80px #121c2233}
body dialog.v0-delete-draft::backdrop{background:#121c2270}
body dialog.v0-delete-draft header{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}
body dialog.v0-delete-draft h2{font-size:22px;line-height:1.3;margin:0 0 10px;color:var(--v0-text,#1c2b33)}
body dialog.v0-delete-draft p{font-size:14px;line-height:1.6;margin:0 0 18px}
body dialog.v0-delete-draft .v0-delete-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#fff0f2;color:#c1273e}
body dialog.v0-delete-draft .v0-delete-icon svg{width:24px;height:24px}
body dialog.v0-delete-draft .v0-delete-summary{display:grid;gap:6px;padding:14px 16px;border:1px solid var(--v0-line,#dce5ed);border-radius:12px;font-size:13px;margin:0 0 22px;overflow-wrap:anywhere}
body dialog.v0-delete-draft .v0-delete-summary strong{font-size:14px}
body dialog.v0-delete-draft .v0-delete-actions{display:flex;justify-content:flex-end;gap:10px}
body dialog.v0-delete-draft .v0-button{min-height:42px;padding:10px 12px;font-size:13px;border-radius:10px}
body dialog.v0-delete-draft .v0-delete-confirm{background:#c1273e!important;border-color:#c1273e!important;color:white!important}
body dialog.v0-delete-draft .v0-delete-keep{background:var(--v0-surface,#fff)!important;color:var(--v0-text,#1c2b33)!important;border:1px solid var(--v0-line,#dce5ed)!important}
body dialog.v0-delete-draft .v0-button:focus-visible{outline:2px solid #0082fb;outline-offset:3px}
@media(max-width:480px){body dialog.v0-delete-draft .v0-delete-actions{flex-direction:column}body dialog.v0-delete-draft .v0-delete-actions button{width:100%}#app.v0-shell .v0-rate-entry>label,#app.v0-shell .v0-rate-entry>.v0-button{width:100%}}

#app.v0-shell .v0-cancel-search{max-width:620px;margin-bottom:14px}#app.v0-shell .v0-cancel-form{display:grid;gap:14px;margin-top:18px}#app.v0-shell .v0-cancel-valid{color:#067647;font-weight:600}#app.v0-shell .v0-cancel-blocked{color:#b42338;font-weight:600}#app.v0-shell .v0-cancel-deadline{margin:0;font-size:13px}

#app.v0-shell .v0-report-summary{display:grid;gap:6px;justify-items:start;margin-top:16px}#app.v0-shell .v0-report-summary p{margin:0;font-weight:700}@media(min-width:900px){#app.v0-shell .v0-report-filters{grid-template-columns:1.2fr 1fr 1fr .7fr 1.3fr}#app.v0-shell .v0-report-filters input,#app.v0-shell .v0-report-filters select{height:42px;min-height:42px}}
/* V1: compact product rows, prices inside the picker, settings aligned to V0. */
#app.v177-shell .v177-workspace .v178-simple-item{display:grid!important;grid-template-columns:82px minmax(160px,1fr) 145px 62px!important;align-items:end;gap:10px}
#app.v177-shell .v178-simple-item>.sale-row-prices,#app.v177-shell .v178-simple-item>.invoice-tax,#app.v177-shell .v178-simple-item>.invoice-line-amount{display:none!important}
#app.v177-shell .v178-simple-item>label{grid-column:auto!important;min-width:0}
#app.v177-shell .v178-simple-item>.v178-description{grid-column:2!important}
#app.v177-shell .v178-simple-item>.v178-unit-price{grid-column:3!important}
#app.v177-shell .v178-product-trigger{width:100%;min-height:36px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border:1px solid var(--v177-border);background:var(--v177-card);color:var(--v177-ink);border-radius:9px;padding:7px 11px!important;font-weight:500}
#app.v177-shell .v177-equivalents{gap:18px}
#app.v177-shell .v177-equivalents>div{min-width:105px}
#app.v177-shell .v177-equivalents>div+div{padding-left:18px}
.v178-product-picker{box-sizing:border-box;width:min(850px,94vw);max-height:85dvh;overflow:hidden;padding:22px;border:1px solid #dce5ed;border-radius:18px;background:#fff;color:#1c2b33;font-family:Inter,system-ui,sans-serif}
.v178-product-picker header,.v177-confirm header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.v178-product-picker h2{font-size:21px;color:#0064e0;margin:0}
.v178-product-picker header button,.v177-confirm header button{width:36px;height:36px;border:1px solid #dce5ed;border-radius:9px;background:transparent;color:inherit;font-size:24px}
.v178-product-picker>input{width:100%;box-sizing:border-box;height:42px;padding:9px 12px;border:1px solid #ccd9e3;border-radius:9px;margin-bottom:14px;font:inherit}
.v178-product-results{max-height:55dvh;overflow:auto}
.v178-product-columns,.v178-product-result{display:grid;grid-template-columns:minmax(150px,1fr) repeat(3,120px);gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #e2eaf0}
.v178-product-columns{position:sticky;top:0;background:#f1f5f8;color:#496170;font-size:12px;font-weight:600;padding:9px}
.v178-product-result strong{font-size:14px}.v178-product-result small{display:block;color:#607783;font-size:12px;margin-top:4px}
.v178-product-result button{min-height:40px;border:1px solid #c9dcf2;border-radius:8px;background:#eef5ff;color:#0064e0;font:600 13px Montserrat,system-ui,sans-serif;padding:8px}
.v178-product-result button:disabled{opacity:.45;cursor:not-allowed}
.v178-product-picker::backdrop,.v177-confirm::backdrop{background:#1c2b3370;backdrop-filter:blur(2px)}
.v177-confirm{box-sizing:border-box;width:min(480px,92vw);padding:24px;border-radius:20px}
.v177-confirm h2{font-size:22px;line-height:1.25;margin:0 0 10px;color:#1c2b33}
.v177-confirm p{font-size:14px;line-height:1.6;margin:0 0 24px;color:#526b7b}
.v177-confirm .v178-message-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#eaf2ff;color:#0064e0}
.v177-confirm .v178-message-icon svg{width:25px;height:25px}
.v177-confirm .actions{display:flex;gap:10px;margin:0;justify-content:stretch}
.v177-confirm .actions button{flex:1;min-height:44px;border-radius:10px;font:600 13px Montserrat,system-ui,sans-serif}
.v177-confirm .v178-stay{background:#0064e0!important;color:#fff!important;border:1px solid #0064e0!important}
.v177-confirm .v178-leave{background:#fff5f6!important;color:#b4233c!important;border:1px solid #f0c8ce!important}
.v178-product-picker :focus-visible,.v177-confirm :focus-visible{outline:2px solid #0082fb;outline-offset:3px}
#app.v177-shell .v178-settings{max-width:1250px!important;margin:auto!important}
.v178-settings-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}
.v178-settings-heading h1{font-size:28px;color:#0064e0;margin:0 0 6px}.v178-settings-heading p{font-size:14px;color:#607783;margin:0}
.v178-settings-heading input{max-width:280px;min-height:40px}
.v178-settings-groups{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.v178-settings-groups h2{font-size:13px;font-weight:600;color:#526b7b;margin:0 0 12px}
.v178-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#app.v177-shell .v178-setting-card{display:flex;align-items:center;text-align:left;gap:12px;min-height:112px;padding:16px;border:1px solid var(--v177-border);border-radius:16px;background:var(--v177-card);color:var(--v177-ink);box-shadow:0 2px 4px #1c2b3305;white-space:normal}
.v178-setting-card[hidden],.v178-settings-groups section[hidden]{display:none!important}
.v178-setting-card strong{display:block;font-size:14px;margin-bottom:6px}.v178-setting-card small{display:block;font-weight:400;font-size:12px;line-height:1.5;color:var(--v177-muted)}
.v178-setting-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;color:#fff;background:linear-gradient(140deg,#60738b,#36455a)}
.v178-setting-icon svg{width:23px;height:23px}
#app.v177-shell .v178-setting-card:hover{border-color:#0082fb}
html[data-theme=dark] :is(.v178-product-picker,.v177-confirm){background:#3B505B;color:#f1f5f8;border-color:#41535e}
html[data-theme=dark] .v177-confirm h2{color:#f1f5f8}html[data-theme=dark] .v177-confirm p{color:#bacbd7}
html[data-theme=dark] .v178-product-columns{background:#121c22;color:#bacbd7}
@media(max-width:900px){.v178-settings-groups{grid-template-columns:1fr}.v178-settings-heading{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:640px){.v178-product-columns,.v178-product-result{grid-template-columns:minmax(100px,1fr) repeat(3,minmax(55px,1fr));gap:6px}.v178-product-picker{padding:14px}.v178-product-result button{font-size:11px;padding:6px 2px}#app.v177-shell .v177-workspace .v178-simple-item{grid-template-columns:62px minmax(90px,1fr) 90px!important}#app.v177-shell .v178-simple-item>button{grid-column:3}.v178-settings-grid{grid-template-columns:1fr}.v177-confirm .actions{flex-wrap:wrap}.v177-confirm .actions button{min-width:160px}}

#app.v177-shell .v177-workspace .sale-products>.invoice-items{align-content:start;grid-auto-rows:max-content}
#app.v177-shell .v177-workspace .v178-simple-item{align-self:start}
/* V1: warehouse balances and unified report filters. */
.v180-depot-stock,.v180-currency-hint{grid-column:1/-1}
.v180-depot-stock{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}
.v180-depot-stock>span{padding:5px 9px;background:#eef3f7;border-radius:6px;color:#243b49}
.v180-depot-stock>small:last-child{margin-left:auto}.v180-depot-stock strong{font-size:12px}
.v178-product-result .v180-currency-hint{color:#9a5700;background:#fff5df;padding:8px;border-radius:6px}
.v180-report-filters>.fields{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px!important}
.v180-report-filters label{min-width:0}.v180-report-filters input,.v180-report-filters select{width:100%;min-height:40px}
.v180-report-filters .actions{margin-top:16px;gap:10px}.v180-report-output{margin-top:20px;overflow:auto}
.v180-report-totals{display:flex;flex-direction:column;gap:8px;padding:16px 0}
html[data-theme=dark] .v180-depot-stock>span{background:#243641;color:#edf4f8}
@media(max-width:700px){.v180-report-filters>.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.v180-depot-stock>small:last-child{margin-left:0}}
#app.v177-shell .v180-dnit h1,#app.v177-shell:has(.v180-report-filters) h1{color:#0866ff}
#app.v177-shell .v180-dnit .dnit-navigation{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:20px 0}
#app.v177-shell .v180-dnit .dnit-navigation[hidden]{display:none}
.v180-dnit-group{display:flex;flex-direction:column;gap:12px}.v180-dnit-group>h2{font-size:14px;color:var(--v177-muted);margin:0 0 2px}
#app.v177-shell .v180-dnit-card{display:flex;align-items:center;text-align:left;gap:16px;min-height:96px;padding:18px;border:1px solid var(--v177-border);border-radius:16px;background:var(--v177-card);color:var(--v177-ink)}
.v180-dnit-card strong{display:block;font-size:16px}.v180-dnit-card small{display:block;color:var(--v177-muted);font-size:13px;font-weight:400;margin-top:6px}
.v180-dnit-icon{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:13px;background:linear-gradient(135deg,#00b2ff,#0866ff);color:white}.v180-dnit-icon svg{width:24px;height:24px}
#app.v177-shell .v180-dnit .v180-production{padding:16px 20px;margin-top:24px;border-left:3px solid #0866ff}.v180-production h3{margin:0 0 8px}.v180-production p{margin:6px 0}
#app.v177-shell .v180-dnit-card:hover{border-color:#0866ff;background:#f4f8ff}#app.v177-shell .v180-dnit-card:focus-visible{outline:2px solid #0866ff;outline-offset:2px}
@media(max-width:700px){#app.v177-shell .v180-dnit .dnit-navigation{grid-template-columns:1fr}}
/* Shared Meta-inspired palette for V1, V2 and V3. Status colors remain semantic. */
html[data-syngpro-palette=meta]{--meta-blue:#0866ff;--meta-action:#0064e0;--meta-hover:#0055bd;--meta-cyan:#00b2ff;--meta-bg:#f0f4f8;--meta-surface:#fff;--meta-soft:#eaf3ff;--meta-ink:#1c2b33;--meta-muted:#526b7b;--meta-border:#dce5ed;--meta-focus:#0866ff;--ux-canvas:var(--meta-bg);--ux-surface:var(--meta-surface);--ux-soft:var(--meta-soft);--ux-text:var(--meta-ink);--ux-muted:var(--meta-muted);--ux-border:var(--meta-border);--ux-accent:var(--meta-action);--ux-focus:var(--meta-focus);--v1-gold:var(--meta-action)}
html[data-syngpro-palette=meta][data-theme=dark]{--meta-bg:#101b22;--meta-surface:#3B505B;--meta-soft:#243c50;--meta-ink:#f0f4f8;--meta-muted:#b8cad6;--meta-border:#41535e;--meta-focus:#74b7ff}
html[data-syngpro-palette=meta] #app.connected-shell{background:var(--meta-bg)!important;color:var(--meta-ink);--v177-card:var(--meta-surface);--v177-border:var(--meta-border);--v177-ink:var(--meta-ink);--v177-muted:var(--meta-muted)}
html[data-syngpro-palette=meta] #app .connected-top{background:#3B505B;border-bottom-color:#3B505B}
html[data-syngpro-palette=meta] #app .connected-bottom{background:var(--meta-surface);border-color:var(--meta-border)}
html[data-syngpro-palette=meta] #app .connected-bottom button{color:var(--meta-muted)}
html[data-syngpro-palette=meta] #app .connected-bottom [aria-current=page]{background:var(--meta-action)!important;color:#fff!important}
html[data-syngpro-palette=meta] #app :is(button.primary,.connected-dashboard-aside>button.primary){background:var(--meta-action)!important;border-color:var(--meta-action)!important;color:#fff!important}
html[data-syngpro-palette=meta] #app button.primary:hover{background:var(--meta-hover)!important}
html[data-syngpro-palette=meta] :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--meta-focus)!important;outline-offset:3px}
html[data-syngpro-palette=meta] #app :is(.menu-hub-card-icon,.menu-hub-card-arrow,.reference-settings-icon){background:var(--meta-soft)!important;color:var(--meta-action)!important}
html[data-syngpro-palette=meta] #app :is(.menu-hub-card,.connected-metrics>.panel,.connected-dashboard-aside>button){background:var(--meta-surface);color:var(--meta-ink);border-color:var(--meta-border)}
html[data-syngpro-palette=meta] #app :is(.menu-hub-card,.v180-dnit-card,.v178-setting-card):hover{background:var(--meta-soft)!important;border-color:var(--meta-action)!important}
html[data-syngpro-palette=meta] #app :is(.v178-setting-icon,.v180-dnit-icon){background:linear-gradient(135deg,var(--meta-cyan),var(--meta-blue));color:#fff}
html[data-syngpro-palette=meta] #app .connected-dashboard-aside>button.primary svg{color:#fff;background:#ffffff20}
html[data-syngpro-palette=meta] :is(dialog,.v178-product-picker){--panel:var(--meta-surface);--ink:var(--meta-ink)}
html[data-syngpro-palette=meta] dialog button.primary{background:var(--meta-action)!important;border-color:var(--meta-action)!important;color:#fff!important}
html[data-syngpro-palette=meta] dialog :is(.quick-add,.quick-price-options button[aria-pressed=true]){background:var(--meta-soft)!important;color:var(--meta-ink)!important;border-color:var(--meta-action)!important}
html[data-syngpro-palette=meta][data-theme=dark] #app :is(h1,.v180-dnit h1){color:#74b7ff}
html[data-syngpro-palette=meta][data-theme=dark] #app :is(.menu-hub-card-icon,.menu-hub-card-arrow,.reference-settings-icon){color:#74b7ff!important}
/* Dashboard components inherit the same tokens in every connected plan. */
html[data-syngpro-palette=meta] #app{--billing-navy:var(--meta-action);--billing-ink:var(--meta-ink);--billing-muted:var(--meta-muted);--billing-page:var(--meta-bg);--billing-panel:var(--meta-surface);--billing-line:var(--meta-border);--ux-canvas:var(--meta-bg);--ux-surface:var(--meta-surface);--ux-soft:var(--meta-soft);--ux-text:var(--meta-ink);--ux-muted:var(--meta-muted);--ux-border:var(--meta-border);--ux-accent:var(--meta-action)}
html[data-syngpro-palette=meta] #app .connected-top{background:#3B505B!important}
html[data-syngpro-palette=meta] #app .connected-bottom{background:var(--meta-surface)!important;border-color:var(--meta-border)!important}
html[data-syngpro-palette=meta] #app .connected-bottom button{color:var(--meta-muted)!important}
html[data-syngpro-palette=meta][data-theme] #app .connected-bottom button[aria-current=page]{background:var(--meta-action)!important;color:#fff!important}
html[data-syngpro-palette=meta] #app :is(.billing-search-button,.billing-delivery button.primary){background:var(--meta-action)!important;border-color:var(--meta-action)!important;color:#fff!important}
html[data-syngpro-palette=meta] #app .billing-quick-sale{border-color:var(--meta-action)!important}
html[data-syngpro-palette=meta] #app .billing-sale-fill{background:var(--meta-action)}
html[data-syngpro-palette=meta] #app :is(.menu-hub-icon,.menu-hub-arrow){background:var(--meta-soft)!important;color:var(--meta-action)!important}
html[data-syngpro-palette=meta] #app .billing-metric:not(.billing-positive):not(.billing-negative) .billing-metric-icon{background:var(--meta-soft);color:var(--meta-action)}
html[data-syngpro-palette=meta][data-theme=dark] #app :is(.menu-hub-icon,.menu-hub-arrow){color:#74b7ff!important}
html[data-syngpro-palette=meta][data-theme=dark] #app .billing-metric:not(.billing-positive):not(.billing-negative) .billing-metric-icon{color:#74b7ff!important}

/* Notices follow the selected application theme, not the Windows theme. */
html:not([data-theme=dark]) .v0-toast{background:#fff!important;color:#1c2b33!important;border-color:#dce4ea;border-left-color:#0064e0}
html:not([data-theme=dark]) .v0-toast-success{background:#edf9f2!important;border-left-color:#16834b}
html:not([data-theme=dark]) .v0-toast-error{background:#fff0f2!important;color:#9f2032!important;border-left-color:#bd2638}
html:not([data-theme=dark]) .v0-error,
html:not([data-theme=dark]) .v0-coded.is-invalid .v0-code-description{color:#bd2638!important}
html[data-theme=dark] .v0-toast{background:#243640!important;color:#edf2f6!important;border-color:#526570;border-left-color:#68b5ff}
html[data-theme=dark] .v0-toast-success{border-left-color:#55d58f}
html[data-theme=dark] .v0-toast-error{color:#ffb4be!important;border-left-color:#ff8d9b}
html[data-theme=dark] .v0-error,
html[data-theme=dark] .v0-coded.is-invalid .v0-code-description{color:#ffb4be!important}
html[data-theme] .v0-toast .v0-icon{color:inherit!important;background:transparent!important}
body dialog.v0-lookup .v0-button.v0-primary{background:#0064e0!important;border-color:#0064e0!important;color:#fff!important}
body dialog.v0-lookup .v0-button.v0-primary:hover:not(:disabled){background:#0056c2!important;border-color:#0056c2!important}
body dialog.v0-lookup .v0-button:focus-visible{outline:2px solid #0082fb;outline-offset:2px}

/* V0 home: one navigation reserve, six actions and issuer identity in normal flow. */
/* Emission workspace: 20% narrower than the existing 96% desktop width.
   Keep vertical sizing and product scrolling unchanged across editions. */
@media(min-width:900px){
 html #app.v0-shell #page.v0-document-workspace,
 html #app.connected-shell #page.v177-workspace,
 html #app.connected-shell #page:has(.sale-products,.related-items){width:76.8%!important;max-width:none!important;margin-inline:auto!important}
}
/* Navigation enlarged 50% from 1.0.82, bounded by narrow viewports. */
html #app.v0-shell .v0-layout .v0-nav{width:min(480px,calc(100vw - 24px))!important;max-width:480px!important;padding:6px!important;gap:4.5px;border-radius:42px!important;box-shadow:0 5px 18px #14213d14}
html #app.v0-shell .v0-layout .v0-nav .v0-button{min-height:54px!important;height:54px!important;padding:6px 9px!important;font-size:16.5px!important;line-height:18px!important;gap:3px!important;border-radius:34px!important;flex-direction:column;white-space:nowrap}
html #app.v0-shell .v0-layout .v0-nav .v0-button svg{width:21px!important;height:21px!important}
@media(max-width:520px){html #app.v0-shell .v0-layout .v0-nav .v0-button{font-size:12px!important;padding-inline:4px!important}}
#app.v0-shell .v0-top{padding-inline:24px!important;width:100%;max-width:none}
#app.v0-shell .v0-top .v0-account{margin-left:0}
#app.v0-shell .v0-layout:has(.v0-home-main){padding-bottom:0!important}
#app.v0-shell .v0-home-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}
#app.v0-shell .v0-home-footer .v0-foot{margin:0;flex:1;text-align:center}
#app.v0-shell .v0-home-main .v0-company-brand{position:static;width:190px;max-width:40%;margin:0;padding:8px 12px;flex-shrink:0}
#app.v0-shell .v0-home-main .v0-company-brand img{max-height:58px}
html #app.v0-shell #page .v0-tone-clients .v0-task-icon{background:#0064e0!important}
body dialog.v0-client-register .v0-client-entry{display:flex;gap:8px;color:var(--v0-text)}
body dialog.v0-client-register .v0-client-entry>.v0-button:first-child{flex:1;text-align:left;justify-content:flex-start}
body dialog.v0-client-register .v0-client-entry>.v0-icon{flex:0 0 44px}
body dialog.v0-client-register form{margin-top:14px}
body dialog.v0-client-register details{margin-top:14px}
/* Clients: a searchable catalogue and a separate form, sharing Meta controls. */
body dialog.v0-client-register [hidden]{display:none!important}
body dialog.v0-client-register .v0-client-entry>.v0-icon>svg{display:block}
.v0-client-toolbar{display:flex;align-items:end;gap:16px;margin:16px 0}
.v0-client-toolbar>label{flex:1;margin:0}
.v0-client-toolbar>.v0-button{flex:none}
.v0-clients-table td:nth-child(3){overflow-wrap:anywhere}
.v0-clients-table th:nth-child(3){text-align:left}
.v0-clients-table td:last-child{width:120px}
.v0-clients-table .v0-actions{flex-wrap:nowrap}
@media(max-width:600px){.v0-client-toolbar{flex-wrap:wrap}.v0-client-toolbar>label{flex-basis:100%}.v0-clients-table{min-width:640px}}
@media(min-width:761px) and (max-height:850px){
 #app.v0-shell .v0-home-main{padding:14px 24px 104px!important}
 #app.v0-shell .v0-home-main .v0-home-rate{padding:12px 18px;margin-bottom:14px}
 #app.v0-shell .v0-home-main .v0-tasks{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
 html #app.v0-shell #page.v0-home-main .v0-task{padding:16px!important;min-height:128px!important;gap:10px!important}
 html #app.v0-shell #page.v0-home-main .v0-task-icon{width:40px!important;height:40px!important;min-width:40px!important;border-radius:12px!important}
 html #app.v0-shell #page.v0-home-main .v0-task strong{font-size:17px!important}
 html #app.v0-shell #page.v0-home-main .v0-task small{font-size:13px!important}
 #app.v0-shell .v0-home-footer{margin-top:12px}
}
@media(max-width:760px){
 #app.v0-shell .v0-top{padding-inline:12px!important;gap:10px}
 html #app.v0-shell #page.v0-home-main .v0-task{min-height:100px!important;padding:16px!important;flex-direction:row!important;align-items:center!important}
 #app.v0-shell .v0-home-main .v0-home-rate{padding:14px;margin-bottom:14px}
 #app.v0-shell .v0-home-footer{gap:12px;flex-wrap:wrap}
 #app.v0-shell .v0-home-main .v0-company-brand{width:150px;max-width:45%}
 #app.v0-shell .v0-home-main .v0-shortcut{display:none}
 html #app.v0-shell #page.v0-home-main .v0-task strong{font-size:17px!important;white-space:normal}
}
@media(min-width:761px) and (max-height:680px){
 html #app.v0-shell #page.v0-home-main .v0-task{min-height:100px!important;padding:14px!important;gap:12px!important;flex-direction:row!important;align-items:center!important}
 html #app.v0-shell #page.v0-home-main .v0-task strong{font-size:16px!important}
 #app.v0-shell .v0-home-main .v0-shortcut{top:4px;right:8px;font-size:9px}
 #app.v0-shell .v0-home-main .v0-company-brand{width:170px;padding:6px 10px}
 #app.v0-shell .v0-home-main .v0-company-brand img{max-height:48px}
}

/* Compact invoice result: output actions stay beside the summary. */
html #app.v0-shell #page.v0-result-page{max-width:1060px!important;padding-bottom:112px!important}
html #app.v0-shell .v0-result-card{padding:22px!important}
.v0-result-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}
html #app.v0-shell .v0-result-heading h2{font-size:20px!important;margin:8px 0 4px!important}
.v0-result-heading p{margin:0}.v0-result-heading .v0-total{text-align:right;border:0;padding:0;flex-shrink:0}
html #app.v0-shell .v0-result-heading .v0-total strong{font-size:28px!important}
html #app.v0-shell .v0-result-output{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 14px}
html #app.v0-shell .v0-result-output .v0-button{min-height:48px!important;padding:10px 18px!important;font-size:15px!important}
.v0-result-status{padding:10px 12px;background:var(--v0-soft,#f0f5fb);border-radius:8px;font-size:14px;margin:0 0 16px}
.v0-result-card>details{padding:12px 0;border-top:1px solid var(--v0-border);margin:0}
.v0-result-card>details>summary{font-size:14px;cursor:pointer}
.v0-result-card>.v0-muted{font-size:12px;margin:12px 0}
.v0-result-card .v0-preview-lines{margin:8px 0 0}
.v0-result-card .sifen-alert{margin:12px 0 0}
@media(max-width:520px){.v0-result-heading{align-items:flex-start;flex-direction:column;gap:12px}.v0-result-heading .v0-total{text-align:left}html #app.v0-shell .v0-result-output .v0-button{flex:1}html #app.v0-shell .v0-result-card{padding:16px!important}}

.v0-client-register input[aria-invalid="true"]{border-color:#b42332;outline-color:#b42332}.v0-client-register .v0-identity-message{margin:4px 0 0;font-size:13px;line-height:1.4}html[data-theme="dark"] .v0-client-register input[aria-invalid="true"]{border-color:#ffacb9;outline-color:#ffacb9}

/* V3 users: compact density, matching the existing V0 Meta palette. */
html[data-syngpro-palette="meta"] .v1-users { padding-top:12px; }
html[data-syngpro-palette="meta"] .v1-users .heading { margin:8px 0 12px; }
html[data-syngpro-palette="meta"] .v1-users > input[type="search"] { margin:0 0 12px; width:min(100%,480px); }
html[data-syngpro-palette="meta"] .v1-users td,
html[data-syngpro-palette="meta"] .v1-users th { padding:10px 14px; height:auto; }
html[data-syngpro-palette="meta"] .v1-users .reference-avatar { width:30px;height:30px;background:#e7f1ff;color:#0064e0; }
html[data-syngpro-palette="meta"] .v1-users .badge { background:#e7f1ff;color:#0759b8; }
html[data-syngpro-palette="meta"] .v1-users .reference-secondary-actions { margin-top:12px; }
html[data-syngpro-palette="meta"] .v1-users .actions button { min-width:36px;min-height:36px; }
html[data-theme="dark"][data-syngpro-palette="meta"] .v1-users .badge,
html[data-theme="dark"][data-syngpro-palette="meta"] .v1-users .reference-avatar { background:#183b60;color:#a8d1ff; }
html[data-syngpro-palette="meta"] .v1-users .table-wrap td { height:auto!important;padding:8px 14px!important; }
html[data-syngpro-palette="meta"] .v1-users td .actions { margin:0;gap:6px;align-items:center; }
html[data-syngpro-palette="meta"] .v1-users .page-title { margin:10px 0; }
html[data-syngpro-palette="meta"] .v1-users .page-title h1 { margin-bottom:4px; }
html[data-syngpro-palette="meta"] .v1-users .page-title p { margin:4px 0; }
html[data-syngpro-palette="meta"] :is(.v1-users,.v1-clients) .heading { margin:8px 0 10px;align-items:center; }
html[data-syngpro-palette="meta"] :is(.v1-users,.v1-clients) .heading h1 { margin:0 0 4px; }
html[data-syngpro-palette="meta"] :is(.v1-users,.v1-clients) .heading p { margin:0; }
html[data-syngpro-palette="meta"] .v1-clients > input[type="search"] { margin:0 0 10px;width:min(100%,480px); }
html[data-syngpro-palette="meta"] :is(.v1-users,.v1-clients) .ux-table-tools { margin:6px 0;padding:0;min-height:32px; }
html[data-syngpro-palette="meta"] .v1-clients .table-wrap td { height:auto!important;padding:8px 14px!important; }
html[data-syngpro-palette="meta"] .v1-clients .table-wrap th { padding:10px 14px; }
html[data-syngpro-palette="meta"] .v1-clients td .actions { margin:0;gap:6px; }
html[data-syngpro-palette="meta"] .v1-clients .v1-product-name>svg { width:30px;height:30px;padding:7px;color:#0064e0;background:#e7f1ff; }
html[data-syngpro-palette="meta"] .v1-clients .v1-product-name small:empty { display:none; }
html[data-syngpro-palette="meta"] .orders-page .orders-list td .actions { margin:0; }
html[data-syngpro-palette="meta"] .orders-page .orders-list td { height:auto;padding-top:8px;padding-bottom:8px; }
html[data-syngpro-palette="meta"] .orders-page .heading { margin:8px 0 12px; }
html[data-syngpro-palette="meta"] .order-paid { color:#087344;background:#e1f5ea; }
html[data-syngpro-palette="meta"] .order-credit { color:#0759b8;background:#e7f1ff; }
html[data-syngpro-palette="meta"] .order-unpaid { color:#994b00;background:#fff1dc; }
/* V3: V0 document sequence, compact controls and reusable transport records. */
#dialog.v191-sale[open],#dialog.v191-remission[open],dialog.v191-catalog[open]{box-sizing:border-box;width:min(1180px,calc(100vw - 32px))!important;max-width:1180px!important;max-height:calc(100dvh - 24px)!important;padding:16px!important;border:1px solid var(--meta-border);border-radius:14px;background:var(--meta-surface)!important;color:var(--meta-ink)!important;overflow:auto}
#dialog.v191-sale[open]{height:min(680px,calc(100dvh - 24px));display:flex;flex-direction:column;overflow:hidden}
:is(.v191-sale,.v191-remission,.v191-catalog)>header{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:12px}
:is(.v191-sale,.v191-remission,.v191-catalog) h2{margin:0;font-size:21px;color:var(--meta-ink)}
:is(.v191-sale,.v191-remission,.v191-catalog) h3{margin:0 0 8px;font-size:14px;color:var(--meta-ink)}
:is(.v191-sale,.v191-remission,.v191-catalog)>header p{margin:4px 0 0;font-size:12px}
:is(.v191-sale,.v191-remission,.v191-catalog) label{display:flex;flex-direction:column;min-width:0;gap:4px;font-size:12px;font-weight:600;color:var(--meta-muted)!important}
:is(.v191-sale,.v191-remission,.v191-catalog) :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box;min-width:0;width:100%;height:38px;min-height:38px;padding:7px 10px;border:1px solid var(--meta-border);border-radius:7px;background:var(--meta-surface)!important;color:var(--meta-ink)!important;font-size:14px}
:is(.v191-sale,.v191-remission,.v191-catalog) textarea{height:65px}
:is(.v191-sale,.v191-remission,.v191-catalog) button{min-height:36px;border-radius:7px;font-size:13px}
:is(.v191-sale,.v191-remission,.v191-catalog) button.primary{background:var(--meta-action)!important;color:#fff!important;border-color:var(--meta-action)!important}
:is(.v191-sale,.v191-remission,.v191-catalog) :is(.error:empty,.muted:empty){display:none}
:is(.v191-sale,.v191-remission,.v191-catalog) .muted{color:var(--meta-muted)}
.v191-panel{border:1px solid var(--meta-border);border-radius:9px;padding:12px;background:var(--meta-surface);min-width:0}
#dialog.v191-sale .quick-fields{display:flex;flex-direction:column;flex:1;min-height:0;gap:10px;padding:0;overflow:hidden;scrollbar-gutter:auto}
.v191-sale-options{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:10px;margin-bottom:10px}
.v191-sale-identity{display:grid;grid-template-columns:minmax(200px,1fr) minmax(200px,1.4fr) auto;gap:10px;align-items:end}
#dialog.v191-sale .quick-client-search>button{flex:0 0 38px;width:38px;height:38px;min-height:38px;padding:6px}
#dialog.v191-sale .quick-client-name{margin:0}
#dialog.v191-sale .quick-client-matches{max-height:100px}
#dialog.v191-sale .v191-sale-products{flex:1;min-height:0;display:flex;flex-direction:column}
.v191-sale-products>header{display:flex;align-items:baseline;justify-content:space-between;font-size:12px}
.v191-product-entry{display:grid;grid-template-columns:76px minmax(180px,1fr) 155px 120px 95px;align-items:end;gap:8px}
#dialog.v191-sale .quick-price-options{display:block}
#dialog.v191-sale .quick-add{position:static;min-height:38px;padding:7px;background:var(--meta-soft)!important;color:var(--meta-ink)!important;border-color:var(--meta-border)!important}
.v191-item-total{display:block;min-height:38px;box-sizing:border-box;padding:9px 10px;border-radius:7px;background:var(--meta-soft);color:var(--meta-ink);font-size:14px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
#dialog.v191-sale .quick-stock-status{margin:5px 0;font-size:12px}
#dialog.v191-sale .quick-cart-items{flex:1;min-height:75px;max-height:none;overflow:auto;overscroll-behavior:contain;margin-top:10px;border-top:1px solid var(--meta-border)}
:is(.v191-items-table,.v191-catalog table){width:100%;border-collapse:collapse;font-size:13px;color:var(--meta-ink);background:var(--meta-surface);margin:0}
:is(.v191-items-table,.v191-catalog table) :is(th,td){padding:8px 10px;line-height:1.35;text-align:left;border-bottom:1px solid var(--meta-border);height:auto}
:is(.v191-items-table,.v191-catalog table) th{font-size:11px;color:var(--meta-muted);background:var(--meta-soft);position:sticky;top:0;z-index:1}
:is(.v191-items-table,.v191-catalog table) small{display:block;margin-top:3px;color:var(--meta-muted);font-size:11px}
.v191-items-table :is(th,td):nth-child(n+3){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.v191-items-table .v191-empty{padding:25px 10px;text-align:center;color:var(--meta-muted)}
.v191-sale-checkout{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--meta-border);padding-top:10px;flex-wrap:wrap}
.v191-sale-checkout>.error{flex-basis:100%;margin:0;font-size:13px}
.v191-sale-totals{display:flex;align-items:center;gap:25px;min-width:0;flex:1}
.v191-sale-totals>div>small{display:block;color:var(--meta-muted);font-size:12px}
.v191-sale-totals [data-quick-total]{font-size:27px;white-space:nowrap;font-variant-numeric:tabular-nums}
#dialog.v191-sale .quick-equivalents{margin:0;padding:0;border:0;font-size:12px}
#dialog.v191-sale .quick-equivalent-values{display:flex;gap:20px}
#dialog.v191-sale .quick-equivalent-row{display:flex;flex-direction:column;gap:3px}
.v191-sale-checkout>button{padding:11px 22px;min-height:44px}
#dialog.v191-remission[open]{display:flex;flex-direction:column;overflow:hidden}
#dialog.v191-remission>form{display:flex;flex-direction:column;min-height:0;margin:0}
.v191-remission-fields{display:flex;flex-direction:column;gap:10px;min-height:0;overflow:auto;padding:2px 8px 8px 2px;scrollbar-gutter:stable;overscroll-behavior:contain}
.v191-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.v191-route{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.v191-grid .location-fields{grid-column:1/-1}
.v191-remission .v177-customer{display:grid;grid-template-columns:1fr 1.5fr;gap:10px;padding:12px;border:1px solid var(--meta-border);border-radius:9px}
.v191-remission .v177-customer>.error{grid-column:1/-1;margin:0}
.v191-remission .v177-client-description{padding:10px;background:var(--meta-soft);border-radius:7px;color:var(--meta-ink)}
.v191-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.v191-remission .v191-toolbar{margin-bottom:10px}
.v191-remission .v191-panel>p{margin:6px 0 0;font-size:12px}
.v191-remission details>summary{cursor:pointer;font-size:13px;font-weight:600}
.v191-remission details[open]>summary{margin-bottom:10px}
.v191-remission-footer{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:space-between;padding-top:10px;border-top:1px solid var(--meta-border);background:var(--meta-surface)}
.v191-remission-footer .invoice-total{font-size:13px;margin:0}.v191-remission-footer .actions{margin:0;flex:1;justify-content:flex-end}.v191-remission-footer>.error:not(:empty){flex-basis:100%;margin:0;font-size:13px}
.v191-remission .related-items{max-height:220px;overflow:auto}.v191-remission .related-line{padding:8px 0}
.v191-catalog .v191-toolbar{margin-bottom:12px}.v191-catalog .v191-toolbar>input{flex:1;min-width:190px}
.v191-catalog button[aria-pressed=true]{background:var(--meta-soft);color:var(--meta-ink);border-color:var(--meta-focus)}
.v191-catalog-list{max-height:55dvh;overflow:auto}.v191-catalog .v191-catalog-list .v191-toolbar{margin:0;flex-wrap:nowrap}
.v191-catalog>p{font-size:13px;margin:8px 0 0}.v191-catalog td{max-width:300px;overflow-wrap:anywhere}
.v191-transport-editor .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.v191-transport-editor .actions{margin:16px 0 0}
@media(max-width:800px){.v191-product-entry{grid-template-columns:65px minmax(110px,1fr) 145px}.v191-product-entry>label:first-child{grid-row:1}.v191-product-entry>.quick-price-options{grid-column:3}.v191-product-entry>label:has(output){grid-column:2}.v191-sale-identity{grid-template-columns:1fr 1fr}.v191-sale-identity>.quick-client-link{grid-column:1/-1;justify-self:start}.v191-route{grid-template-columns:1fr}.v191-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#dialog.v191-sale[open],#dialog.v191-remission[open],dialog.v191-catalog[open]{width:calc(100vw - 12px)!important;padding:12px!important;border-radius:10px}#dialog.v191-sale[open]{display:block;height:auto;overflow:auto}#dialog.v191-sale .quick-fields{overflow:visible;display:flex}.v191-sale-options{grid-template-columns:1fr 1fr}.v191-sale-options>label:first-child{grid-column:1/-1}.v191-sale-identity{grid-template-columns:1fr}.v191-product-entry{grid-template-columns:65px minmax(0,1fr)}.v191-product-entry>.quick-price-options{grid-column:1/-1}.v191-product-entry>label:has(output){grid-column:1/-1}.v191-product-entry>button{grid-column:1/-1}.v191-sale-totals{flex-wrap:wrap;gap:8px}.v191-sale-checkout>button{width:100%}#dialog.v191-sale .quick-cart-items{flex:auto;max-height:250px}.v191-items-table{min-width:530px}.v191-grid,.v191-remission .v177-customer,.v191-transport-editor .fields{grid-template-columns:1fr}.v191-remission-footer .actions{flex-basis:100%}.v191-remission-footer button{width:100%}.v191-catalog-list table{min-width:600px}.v191-catalog>header h2{font-size:19px}}
:is(.v191-sale,.v191-remission,.v191-catalog) [hidden]{display:none!important}
.v191-remission .invoice-total:empty{display:none}
.v191-remission .v177-identity{display:flex;gap:8px}.v191-remission .v177-identity>button{flex:none;width:38px}
.v191-remission .location-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
@media(max-width:560px){.v191-remission .location-fields{grid-template-columns:1fr}.v191-product-entry>label:first-child{font-size:11px;white-space:nowrap}}
/* V3: same V0 workspace sequence and V1 picker; order-only business action. */
#app.v177-shell #page.v192-order{box-sizing:border-box;width:min(1580px,100%);max-width:1580px!important;margin:auto!important;padding:12px 16px 110px!important}
#app.v177-shell .v192-order .v177-heading{margin:0 0 10px;gap:12px}
#app.v177-shell .v192-order .v177-heading button{width:42px;height:40px;padding:0;font-size:28px;color:#0866ff}
#app.v177-shell .v192-order .v177-heading h1{font-size:26px!important}
#app.v177-shell .v192-order .v177-panel{border-radius:14px;padding:10px 14px;margin-bottom:10px}
#app.v177-shell .v192-order .v177-terms{display:grid!important;grid-template-columns:1.6fr repeat(3,minmax(0,1fr));gap:12px}
#app.v177-shell .v192-order .credit-fields{grid-column:1/-1}
#app.v177-shell .v192-order .v177-customer{grid-template-columns:minmax(220px,1fr) minmax(250px,2fr) minmax(200px,1fr)!important;gap:12px}
#app.v177-shell .v192-order .v177-form label{font-size:12px;gap:5px}
#app.v177-shell .v192-order .v178-simple-item{grid-template-columns:82px minmax(180px,1fr) 80px 145px 135px 42px!important;gap:10px;padding:5px 0 9px}
#app.v177-shell .v192-order .v178-simple-item>.v178-description{grid-column:2!important}
#app.v177-shell .v192-order .v178-simple-item>.v192-tax{grid-column:3!important}
#app.v177-shell .v192-order .v178-simple-item>.v178-unit-price{grid-column:4!important}
#app.v177-shell .v192-order .v178-simple-item>.v192-line-total{grid-column:5!important}
#app.v177-shell .v192-order .v178-simple-item>button{grid-column:6;min-height:36px;padding:7px}
#app.v177-shell .v192-order .v192-line-total output{display:flex;align-items:center;justify-content:flex-end;height:36px;border:1px solid var(--v177-border);border-radius:9px;padding:6px 10px;font-size:18px;font-weight:700;box-sizing:border-box}
#app.v177-shell .v192-order .v192-line-error{grid-column:1/-1}
#app.v177-shell .v192-order .invoice-items{min-height:170px}
#app.v177-shell .v192-order .sale-products h3{margin:0 0 8px;font-size:13px}
#app.v177-shell .v192-order .v177-equivalents{display:flex;gap:24px;align-items:center;flex-wrap:wrap}
#app.v177-shell .v192-order .v177-equivalents strong{display:block;font-size:22px}
#app.v177-shell .v192-order .v177-equivalents small{font-size:11px;color:var(--v177-muted)}
#app.v177-shell .v192-order .v177-checkout button{min-height:42px}
#app.v177-shell .v192-order>.connected-location,#app.v177-shell .v192-order>.connected-account-actions{display:none}
@media(min-width:900px) and (min-height:650px){
 #app.v177-shell #page.v192-order{height:calc(100dvh - 166px);padding:10px 16px!important;min-height:480px}
 #app.v177-shell .v192-order .invoice-items{min-height:0}
 #app.v177-shell .v192-order .v177-form{overflow:hidden}
 #app.v177-shell .v192-order:has(.credit-fields:not([hidden])){height:auto;min-height:calc(100dvh - 166px)}
 #app.v177-shell .v192-order:has(.credit-fields:not([hidden])) .invoice-items{min-height:140px;max-height:36dvh}
}
@media(max-width:899px){
 #app.v177-shell .v192-order .v177-terms{grid-template-columns:1fr 1fr}
 #app.v177-shell .v192-order .v177-customer{grid-template-columns:1fr 1fr!important}
 #app.v177-shell .v192-order .v177-customer>label:last-of-type{grid-column:1/-1}
 #app.v177-shell .v192-order .v178-simple-item{grid-template-columns:70px minmax(90px,1fr) 90px!important}
 #app.v177-shell .v192-order .v178-simple-item>.v178-description{grid-column:2/4!important}
 #app.v177-shell .v192-order .v178-simple-item>.v192-tax{grid-column:1!important}
 #app.v177-shell .v192-order .v178-simple-item>.v178-unit-price{grid-column:2!important}
 #app.v177-shell .v192-order .v178-simple-item>.v192-line-total{grid-column:3!important}
 #app.v177-shell .v192-order .v178-simple-item>button{grid-column:3}
 #app.v177-shell .v192-order .v177-heading{flex-wrap:wrap}
 #app.v177-shell .v192-order .v177-heading small{flex-basis:100%;margin-left:54px}
 #app.v177-shell .v192-order .v177-checkout{position:static}
 #app.v177-shell .v192-order .v177-equivalents{gap:12px}
 #app.v177-shell .v192-order .v177-checkout .actions{width:100%;margin:0}
 #app.v177-shell .v192-order .v177-checkout button{width:100%}
}
@media(max-width:540px){
 #app.v177-shell .v192-order .v177-customer{grid-template-columns:1fr!important}
 #app.v177-shell .v192-order .v177-customer>label{grid-column:1!important}
 #app.v177-shell .v192-order .v177-code input{width:40px;padding:6px}
 #app.v177-shell .v192-order .v177-code>span{padding:6px;font-size:12px}
 #app.v177-shell .v192-order .v177-equivalents strong{font-size:18px}
}


/* Reference: user's product selector video. Palette inherits the existing Meta system. */
/* Presupuestos reuse the sales workspace; only commercial options add a row. */
#app.v177-shell .v194-quote-extras{flex:none;color:var(--v177-ink)}
#app.v177-shell .v194-quote-extras>summary{font-size:13px;font-weight:600;cursor:pointer;color:var(--meta-action)}
#app.v177-shell .v194-quote-extras .fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#app.v177-shell .v194-quote-extras label:has([name=detail]){grid-column:span 2}
#app.v177-shell .v194-quote-extras .muted{margin:8px 0;font-size:12px}
#app.v177-shell #page.v194-quotation:has(.v194-quote-extras[open]){height:auto;min-height:calc(100dvh - 166px)}
#app.v177-shell .v194-quotation:has(.v194-quote-extras[open]) .invoice-items{min-height:140px;max-height:36dvh}
@media(max-width:700px){#app.v177-shell .v194-quote-extras .fields{grid-template-columns:1fr}#app.v177-shell .v194-quote-extras label:has([name=detail]){grid-column:auto}}
dialog.v178-product-picker.v193-picker{width:min(900px,calc(100vw - 32px));max-width:900px;max-height:calc(100dvh - 32px);padding:24px 26px 26px;box-sizing:border-box;border-radius:14px;border:1px solid var(--meta-border);background:var(--meta-surface);color:var(--meta-ink);box-shadow:0 16px 56px #101b2233;overflow:hidden;font-family:Inter,system-ui,sans-serif}
.v193-picker header{margin:0 0 16px}
.v193-picker h2{color:var(--meta-action);font-size:22px}
.v193-picker header button{border:0;width:30px;height:30px;font-size:24px;color:var(--meta-muted);background:transparent}
.v193-search-row{display:flex;gap:12px;align-items:center;margin-bottom:14px}
.v193-search{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:48px;border:1px solid var(--meta-border);border-radius:11px;padding:0 12px;background:var(--meta-surface)}
.v193-search:focus-within{border-color:var(--meta-blue);box-shadow:0 0 0 3px color-mix(in srgb,var(--meta-blue) 14%,transparent)}
.v193-search svg{width:18px;height:18px;flex:none;color:var(--meta-muted)}
.v193-search input{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:var(--meta-ink);width:100%;min-width:0;height:46px;padding:0;font:inherit;font-size:14px}
html[data-syngpro-palette=meta] .v193-search input:focus-visible{outline:0!important}
.v193-currencies{display:flex;gap:3px;padding:5px;background:var(--meta-bg);border-radius:12px}
.v193-currencies button{min-height:40px;padding:8px 13px;border:0;border-radius:9px;background:transparent;color:var(--meta-muted);font:600 12px Montserrat,system-ui,sans-serif}
.v193-currencies button[aria-pressed=true]{background:var(--meta-blue)!important;color:white!important}
.v193-help{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:11px;line-height:1.5;color:var(--meta-muted);margin-bottom:16px}
.v193-help>span{white-space:nowrap}.v193-help kbd{padding:3px 5px;border:1px solid var(--meta-border);border-radius:4px;background:var(--meta-bg);color:var(--meta-ink);font:11px ui-monospace,monospace}
.v193-count{margin-left:auto;font-variant-numeric:tabular-nums}
.v193-results{max-height:min(58dvh,610px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px 3px 2px 1px;scroll-padding:3px}
.v193-card{display:grid;grid-template-columns:minmax(170px,1fr) repeat(3,130px);gap:14px 9px;align-items:center;padding:18px;margin-bottom:13px;border:1px solid var(--meta-border);border-radius:16px;background:var(--meta-surface);color:var(--meta-ink);outline-offset:1px}
.v193-card:last-of-type{margin-bottom:0}.v193-card.is-active{background:color-mix(in srgb,var(--meta-soft) 45%,var(--meta-surface));border-color:var(--meta-blue);box-shadow:0 0 0 2px color-mix(in srgb,var(--meta-blue) 12%,transparent)}
.v193-product{min-width:0}.v193-product>strong{display:block;font-size:16px;line-height:1.35;overflow-wrap:anywhere}.v193-product>small{display:block;font-size:12px;color:var(--meta-muted);margin-top:5px;overflow-wrap:anywhere}
.v193-currency{background:var(--meta-bg);padding:2px 5px;border-radius:4px;font-weight:600;color:var(--meta-ink)}
.v193-picker .v193-price{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:64px;padding:10px 6px;border:1px solid color-mix(in srgb,var(--meta-blue) 25%,var(--meta-border));border-radius:12px;background:var(--meta-soft);color:var(--meta-ink);font-family:inherit}
.v193-price small{font-size:10px;text-transform:uppercase;font-weight:500;color:inherit}.v193-price strong{font-size:16px;font-variant-numeric:tabular-nums}
.v193-picker .v193-price:not(:disabled):hover{border-color:var(--meta-blue);background:color-mix(in srgb,var(--meta-blue) 17%,var(--meta-surface))}
.v193-picker .v193-price[aria-pressed=true]{background:var(--meta-blue)!important;color:#fff!important;border-color:var(--meta-blue)}
.v193-picker .v193-price[aria-pressed=true] :is(small,strong){color:#fff!important}
.v193-price:disabled{opacity:.48;cursor:not-allowed}
.v193-stock{display:flex;align-items:center;flex-wrap:wrap;gap:7px;grid-column:1/-1;min-width:0;font-size:12px}
.v193-warehouse-icon{display:flex;color:var(--meta-muted)}.v193-warehouse-icon svg{width:16px;height:16px}
.v193-stock-chip{padding:5px 10px;border-radius:20px;background:var(--meta-bg);color:var(--meta-muted)}
.v193-stock-chip.available{background:#d6f7e8;color:#146344}.v193-stock-chip.low{background:#fff0bf;color:#855d00}.v193-stock-chip.empty{background:#ffe2e6;color:#b42338}
.v193-picker .v193-available{display:block;margin-left:auto;color:var(--meta-ink);font-size:12px}.v193-available .positive{color:var(--meta-action)}.v193-available .is-empty{color:#b42338}
.v193-currency-hint{grid-column:1/-1;margin:0;padding:10px 12px;border-radius:10px;background:#fff7e1;color:#855d00;font-size:12px;line-height:1.5}
.v193-message:empty,.v193-message[hidden]{display:none}.v193-no-results{padding:28px 14px;color:var(--meta-muted);text-align:center}.v193-more{display:block;width:100%;margin-top:14px;padding:12px;border:1px solid var(--meta-border);border-radius:10px;background:var(--meta-soft);color:var(--meta-action)}
html[data-theme=dark] .v193-picker h2{color:#74b7ff}
html[data-theme=dark] .v193-stock-chip.available{background:#193f34;color:#9eebcb}html[data-theme=dark] .v193-stock-chip.low{background:#493c1b;color:#f7d37d}html[data-theme=dark] .v193-stock-chip.empty{background:#4b2932;color:#ffb5bf}
html[data-theme=dark] .v193-available .positive{color:#74b7ff}html[data-theme=dark] .v193-available .is-empty{color:#ffb5bf}html[data-theme=dark] .v193-currency-hint{background:#3f341c;color:#f7d37d}
@media(max-width:700px){
 dialog.v178-product-picker.v193-picker{padding:16px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
 .v193-card{grid-template-columns:repeat(3,minmax(0,1fr));padding:13px;gap:10px 7px}
 .v193-product{grid-column:1/-1}.v193-product>strong{font-size:15px}
 .v193-picker .v193-price{min-height:60px;padding:8px 3px}.v193-price strong{font-size:15px}
 .v193-search-row{gap:7px}.v193-currencies button{padding:8px 10px}.v193-search{padding:0 9px;gap:6px}.v193-search input{font-size:13px}
 .v193-help{gap:7px;font-size:10px}.v193-help>span:nth-child(2){display:none}.v193-count{font-size:11px}
 .v193-available{flex-basis:100%;margin-left:0;margin-top:4px}.v193-results{max-height:calc(100dvh - 230px)}
}

/* Respaldo: compact configuration layout using the approved Meta tokens. */
.company-backup-page{max-width:1200px;margin-inline:auto}
.company-backup-page .settings-section-tabs{margin-block:0 12px}
.company-backup-page .backup-main,.company-backup-page .backup-includes{padding:20px;margin-block:14px}
.backup-intro{display:flex;align-items:center;justify-content:space-between;gap:20px}
.backup-intro h2{font-size:18px;margin:0 0 4px}.backup-intro p{margin:0}
.backup-intro>button{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.backup-intro>button svg{width:18px;height:18px}
.backup-counts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;margin:22px 0 14px}
.backup-counts dt{font-size:12px;color:var(--muted)}.backup-counts dd{font-size:24px;font-weight:700;margin:4px 0 0;font-variant-numeric:tabular-nums}
.backup-status:empty,.company-backup-page .error:empty{display:none}.backup-status,.backup-main>.muted{font-size:13px;overflow-wrap:anywhere}
.backup-includes h2{font-size:18px;margin:0 0 16px}.backup-includes ul{display:grid;grid-template-columns:1fr 1fr;gap:20px 28px;list-style:none;margin:0;padding:0}.backup-includes li{display:grid;gap:5px}.backup-includes li span{color:var(--muted);font-size:14px;line-height:1.5}
.backup-note{font-size:13px;line-height:1.6;color:var(--muted);margin:18px 0 12px}.backup-recovery{font-size:13px;line-height:1.6}.backup-recovery summary{cursor:pointer;color:var(--text);font-weight:600}.backup-recovery p{max-width:95ch;color:var(--muted)}
@media(max-width:760px){.backup-intro{align-items:stretch;flex-direction:column;gap:14px}.backup-intro>button{justify-content:center;white-space:normal}.backup-counts{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px}.backup-includes ul{grid-template-columns:1fr;gap:16px}.company-backup-page .backup-main,.company-backup-page .backup-includes{padding:16px}}

/* V3 DNIT: one heading, section navigation and compact forms. */
#app #page.dnit-compact{padding-top:12px}
.dnit-compact .dnit-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.dnit-compact .dnit-heading>.heading{margin:0;gap:10px;align-items:center;justify-content:flex-start}
.dnit-compact .dnit-heading h1{font-size:24px;margin:0 0 4px}
.dnit-compact .dnit-heading p{font-size:13px;margin:0}
.dnit-compact .dnit-heading .settings-section-tabs{margin:0;flex-shrink:0}
.dnit-compact .reference-settings-icon{height:34px;width:34px;border-radius:10px}
.dnit-compact .reference-settings-icon svg{height:20px;width:20px}
#page.dnit-compact .dnit-section-nav{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.dnit-compact .dnit-section-nav button{padding:8px 12px;min-height:36px;font-size:13px}
.dnit-compact .dnit-section-nav button[aria-current=page]{background:#0866ff!important;border-color:#0866ff;color:white!important}
#page.dnit-compact .dnit-save-hint{padding:6px 10px;margin:0 0 10px;font-size:12px;border-color:#0866ff;background:var(--ux-soft,#f5f8fb);color:var(--ux-muted,#52687b)}
#page.dnit-compact .reference-settings-section{padding:14px 16px;margin:0 0 10px}
#page.dnit-compact .reference-settings-section h2{font-size:16px;margin:0 0 12px;gap:6px}
#page.dnit-compact .reference-settings-section h2 svg{height:18px;width:18px;margin-right:4px;color:#0866ff}
#page.dnit-compact .fields{gap:10px 14px}
#page.dnit-compact label{font-size:13px;gap:4px;min-width:0}
#page.dnit-compact input,#page.dnit-compact select{max-width:100%;min-width:0}
#page.dnit-compact .dnit-extra{margin-top:10px;color:var(--ux-muted,#617587)}
#page.dnit-compact .dnit-extra[open]>div{margin-top:10px}
#page.dnit-compact .dnit-pdf-import{display:grid;grid-template-columns:minmax(220px,1fr) minmax(340px,1.2fr);gap:4px 16px;align-items:center;padding:10px 12px;margin:0 0 14px;border-radius:8px;background:var(--ux-soft,#f5f8fb);border-color:var(--ux-border,#dce5ed)}
.dnit-compact .dnit-pdf-copy h3{font-size:13px;margin:0 0 4px}
.dnit-compact .dnit-pdf-copy p{font-size:12px;line-height:1.4;margin:0}
.dnit-pdf-controls{display:flex;align-items:center;gap:8px;min-width:0}
.dnit-pdf-controls input{min-width:0;flex:1}
.dnit-pdf-controls button{flex-shrink:0}
#page.dnit-compact .dnit-pdf-controls :is(input,button){margin:0}
#page.dnit-compact .dnit-pdf-controls input{padding:5px;font-size:12px}
.dnit-compact .dnit-pdf-status{grid-column:1/-1;margin:2px 0 0;font-size:12px;overflow-wrap:anywhere}
.dnit-pdf-status:empty{display:none}
.dnit-compact .dnit-pdf-status.error{color:var(--ux-danger,#b42318)}
#page.dnit-compact form>.actions{margin:12px 0;gap:8px}
.dnit-compact .dnit-save{min-width:210px;min-height:40px;gap:8px}
@media(min-width:1100px){#page.dnit-compact .reference-settings-section>.fields{grid-template-columns:repeat(4,minmax(0,1fr))}#page.dnit-compact label:has(>[name=name]),#page.dnit-compact label:has(>[name=email]){grid-column:span 2}#page.dnit-compact label:has(>[name=address]){grid-column:span 3}#page.dnit-compact label:has(>[name=branchAddress]),#page.dnit-compact .dnit-upload,#page.dnit-compact .dnit-password{grid-column:span 2}#page.dnit-compact .dnit-extra>.fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.dnit-compact .dnit-heading{align-items:flex-start}.dnit-compact .dnit-heading p{max-width:48ch}#page.dnit-compact .dnit-pdf-import{grid-template-columns:1fr;gap:8px}}
@media(max-width:600px){.dnit-compact .dnit-heading{flex-direction:column;gap:8px}.dnit-compact .dnit-heading h1{font-size:21px}.dnit-compact .dnit-heading .settings-section-tabs{order:-1}.dnit-compact .dnit-section-nav button{flex:1 1 145px;white-space:normal}#page.dnit-compact .reference-settings-section{padding:12px}#page.dnit-compact .fields{grid-template-columns:1fr}#page.dnit-compact .location-fields{grid-template-columns:1fr}.dnit-compact .dnit-save{width:100%}}
.dnit-compact .dnit-section-choice{display:none}@media(max-width:600px){#page.dnit-compact .dnit-heading>.heading{flex-direction:row;align-items:flex-start;gap:8px}#page.dnit-compact .dnit-heading .reference-settings-icon{display:none}#page.dnit-compact .dnit-section-nav>button{display:none}#page.dnit-compact .dnit-section-choice{display:grid;width:100%}}

/* One transport form, shared by V0 and V3. */
dialog.transport-form-dialog{width:min(1000px,calc(100vw - 32px));max-width:100%;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--ux-border,#dce5ed);border-radius:16px;background:var(--ux-surface,#fff);color:var(--ux-text,#1c2b33);overflow:auto}
.transport-form-dialog::backdrop{background:#10233088}
.transport-form-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--ux-border,#dce5ed)}
.transport-form-header h2{font-size:21px;margin:0 0 4px}.transport-form-header p{font-size:13px;margin:0;color:var(--ux-muted,#617587)}
.transport-form-header>button{padding:4px 10px;font-size:23px;line-height:1;min-height:32px}
.transport-form{padding:0 20px}.transport-form-section{padding:12px 0;border-bottom:1px solid var(--ux-border,#dce5ed)}
.transport-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.transport-section-heading h3{margin:0;font-size:15px;color:#0866ff}.transport-section-heading select{max-width:55%;width:380px;min-height:34px;padding:6px 10px;font-size:13px}
.transport-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px}.transport-field{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:13px;font-weight:500}.transport-fields .span-2{grid-column:span 2}.transport-fields .span-3{grid-column:span 3}.transport-fields .span-4{grid-column:1/-1}
.transport-field input,.transport-field select{width:100%;max-width:100%;min-width:0;min-height:36px;padding:7px 10px;font-size:14px;border-radius:7px;border:1px solid var(--ux-border,#dce5ed);background:var(--ux-surface,#fff);color:var(--ux-text,#1c2b33)}
.transport-field input[name=plate]{text-transform:uppercase}.transport-shared-note{display:block;margin-top:6px;color:var(--ux-muted,#617587);font-size:12px}.transport-shared-note[hidden]{display:none}
.transport-form-error:empty{display:none}.transport-form-error{font-size:13px;margin:10px 0}
.transport-form-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:12px 0;position:sticky;bottom:0;background:var(--ux-surface,#fff);z-index:1}.transport-form-footer small{margin-right:auto;color:var(--ux-muted,#617587);font-size:12px}.transport-form-footer button{min-height:38px;white-space:nowrap}.transport-form-footer .primary{background:#0866ff!important;color:white!important;border-color:#0866ff!important}
.transport-form-dialog :is(input,select,button):focus-visible{outline:2px solid #0866ff;outline-offset:2px}
@media(max-width:650px){dialog.transport-form-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.transport-form-header{padding:12px}.transport-form{padding:0 12px}.transport-fields{grid-template-columns:1fr 1fr}.transport-fields .span-3,.transport-fields .span-4{grid-column:1/-1}.transport-section-heading{align-items:stretch;flex-direction:column;gap:7px}.transport-section-heading select{max-width:100%;width:100%}.transport-form-footer{flex-wrap:wrap}.transport-form-footer small{width:100%;line-height:1.4}.transport-form-footer button{flex:1}}
@media(max-width:420px){.transport-fields{grid-template-columns:1fr}.transport-fields .span-2{grid-column:1/-1}}

.demo-banner{padding:10px 12px;background:var(--v0-blue-soft,#e8f1ff);color:var(--v0-blue,#0866ff);font-weight:700;border-radius:8px}.demo-document table{width:100%;border-collapse:collapse}.demo-document td,.demo-document th{padding:8px;text-align:left;border-bottom:1px solid var(--v0-border,#dce3eb)}

.export-panel{grid-column:1/-1;padding:14px!important}
.export-heading{display:flex;align-items:flex-end;gap:12px}.export-heading>label{width:320px;max-width:100%;display:grid;gap:5px}.export-status{font-size:12px;color:var(--ux-muted,#617587);margin-bottom:10px}.export-status.export-complete{color:var(--ux-text,#1c2b33)}.export-toggle{margin-left:auto;white-space:nowrap;font-size:12px!important;padding:7px 10px!important}
.export-body[hidden],.export-heading>[hidden]{display:none!important}.export-help,.export-note{font-size:12px;color:var(--ux-muted,#617587);margin:10px 0}.export-note{margin-bottom:0;line-height:1.5}
.export-fields .export-full{grid-column:1/-1}
.export-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px;margin-top:10px}.export-fields label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px}.export-wide{grid-column:span 2}.export-fields input,.export-fields select,.export-fields textarea{width:100%;min-width:0;min-height:36px;font-size:13px!important;padding:7px 9px!important}.export-fields textarea{height:60px;min-height:60px;resize:vertical}.export-panel :is(input,select,textarea,button):focus-visible{outline:2px solid #0866ff;outline-offset:2px}
@media(max-width:850px){.export-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.export-wide{grid-column:1/-1}}
@media(max-width:550px){.export-heading{flex-wrap:wrap;align-items:center}.export-heading>label{width:100%}.export-status{margin:0}.export-fields{grid-template-columns:1fr}.export-toggle{margin-left:auto}}
/* The export form may grow; never squeeze product rows into the fixed desktop viewport. */
#app.v177-shell #page.v177-workspace:has(.export-body:not([hidden])){height:auto!important;max-height:none!important;overflow:visible!important;padding-bottom:110px!important}
#app.v177-shell .v177-workspace:has(.export-body:not([hidden])) :is(.v177-form,.v177-fields){flex:none!important;overflow:visible!important}
#app.v177-shell .v177-workspace:has(.export-body:not([hidden])) .sale-products{flex:none!important;min-height:180px;overflow:visible}
#app.v177-shell .v177-workspace:has(.export-body:not([hidden])) .sale-products>.invoice-items{flex:none;min-height:100px;max-height:35dvh;overflow:auto}

/* V1: keep the supplied logo proportional, above the dock, without a white card. */
.v177-shell .v177-home .v177-company-logo{margin:12px 0 24px auto;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;max-width:210px;max-height:85px;mix-blend-mode:multiply}
html[data-theme=dark] .v177-shell .v177-home .v177-company-logo{mix-blend-mode:screen}
.v198-factory-home{margin-top:24px}.v198-factory-home>h2{font-size:20px;color:var(--v177-ink)}.v198-factory-home .v177-home-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:12px}.v198-factory-home .v177-home-card{min-height:150px!important;padding:18px!important}.v193-card.single-sale-price .v193-price{grid-column:2/-1}
@media(max-width:900px){.v198-factory-home .v177-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.v198-factory-home .v177-home-grid{grid-template-columns:1fr}}

/* Keep the logo in the free home-grid cell and factory shortcuts in view. */
.v177-home-grid>.v177-company-logo{align-self:end;justify-self:end;margin:0 0 12px!important;width:210px;max-width:100%}
html[data-theme=dark] .v177-shell .v177-home .v177-company-logo{filter:invert(1) grayscale(1)}
.v177-shell .v177-home.v198-factory-active{padding-top:16px!important}
.v177-home.v198-factory-active .v177-home-grid{gap:14px;margin-top:14px}
.v177-shell .v198-factory-active .v177-home-card{min-height:132px!important;padding:16px!important;gap:9px}
.v198-factory-active .v177-home-card strong{font-size:17px}.v198-factory-active .v177-home-icon{width:38px;height:38px;border-radius:12px}.v198-factory-active .v177-home-icon svg{width:22px;height:22px}
.v198-factory-active .v198-factory-home{margin-top:18px}
.v177-home>.daily-rates{display:grid!important;grid-template-columns:auto 1fr auto;gap:6px 20px!important;align-items:center}
.v177-home>.daily-rates>h2{grid-column:1}.v177-home>.daily-rates>.daily-rate-date{grid-column:2}.v177-home>.daily-rates>.daily-rate-status{grid-column:1/3;grid-row:2}.v177-home>.daily-rates>.daily-rate-values{grid-column:1/3;grid-row:3}.v177-home>.daily-rates>button{grid-column:3;grid-row:1/4;justify-self:end}
@media(max-width:640px){.v177-home>.daily-rates{grid-template-columns:1fr;gap:8px!important}.v177-home>.daily-rates>*{grid-column:1!important;grid-row:auto!important}.v177-home>.daily-rates>button{justify-self:stretch}.v177-home-grid>.v177-company-logo{justify-self:center}}

.v178-product-columns.single-sale-price,.v178-product-result.single-sale-price{grid-template-columns:minmax(0,1fr) minmax(120px,200px)}

/* V1 management follows its settings cards; shared compact DNIT for cloud V1–V3. */
.v199-management-title{display:flex;align-items:center;gap:12px}
.v199-management-title>button{flex-shrink:0}
#page.dnit-points-compact .dnit-start-guide{font-size:13px;margin:0 0 10px;color:var(--meta-ink,#1c2b33)}
#page.dnit-points-compact .dnit-start-guide>summary{padding:6px 0;cursor:pointer;color:var(--meta-action,#0866ff)}
#page.dnit-points-compact .dnit-guide-content{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:14px 16px;margin:6px 0 12px;background:var(--meta-surface,#fff);border:1px solid var(--meta-border,#dce5ed);border-radius:12px;line-height:1.5}
#page.dnit-points-compact .dnit-guide-content h3{font-size:14px;margin:0 0 8px}
#page.dnit-points-compact .dnit-guide-content p,#page.dnit-points-compact .dnit-guide-content ol{font-size:12px;margin:8px 0}
#page.dnit-points-compact .dnit-guide-content ol{padding-left:18px}
#page.dnit-points-compact .dnit-guide-content li{padding:3px 0}
#page.dnit-points-compact .dnit-checklist{display:grid;gap:4px}
#page.dnit-points-compact .dnit-checklist button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:7px 10px;min-height:34px;font-size:12px}
#page.dnit-points-compact .dnit-checklist small{font-size:11px;color:var(--ux-muted,#52687b);font-weight:400}
@media(max-width:700px){#page.dnit-points-compact .dnit-guide-content{grid-template-columns:1fr;gap:16px}}
#page.dnit-points-compact .dnit-import-details{font-size:12px;color:var(--ux-muted,#52687b);margin:0 0 10px}
#page.dnit-points-compact .dnit-import-details summary{cursor:pointer;padding:4px 0}
#page.dnit-points-compact .dnit-import-details[open]>.dnit-pdf-import{margin:8px 0}
#page.dnit-points-compact .dnit-adjust[hidden]{display:none!important}
#app.v177-shell .v199-management .v178-setting-icon{background:linear-gradient(140deg,#00b5f5,#0866ff);color:#fff}
#app.v177-shell .v199-management .v178-setting-card:focus-visible{outline:2px solid #0866ff;outline-offset:3px}
#page.dnit-points-compact .dnit-scope{display:grid;grid-template-columns:minmax(140px,0.6fr) minmax(260px,1.4fr) auto;gap:12px;align-items:end;margin-bottom:10px;padding:12px 14px;background:var(--meta-surface,#fff);border:1px solid var(--meta-border,#dce5ed);border-radius:12px}
#page.dnit-points-compact .dnit-scope button{min-height:38px;margin:0}
#page.dnit-points-compact .dnit-point-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 14px}
#page.dnit-points-compact .dnit-point-guide{margin:0 0 12px;color:var(--ux-muted,#52687b);font-size:12px;line-height:1.5}
#page.dnit-points-compact .dnit-document-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
#page.dnit-points-compact .dnit-document-types>strong{grid-column:1/-1;font-size:13px;margin:0 0 2px}
#page.dnit-points-compact .dnit-document-types>label{display:flex;align-items:center;gap:8px;min-height:38px;box-sizing:border-box;padding:8px 10px;margin:0;background:var(--ux-soft,#f5f8fb);border:1px solid var(--meta-border,#dce5ed);border-radius:8px;font-size:12px}
#page.dnit-points-compact .dnit-document-types>label:has(input:checked){border-color:#0866ff;background:var(--meta-soft,#e7f0ff);color:var(--meta-ink,#1c2b33)}
#page.dnit-points-compact .dnit-document-types input{width:17px;height:17px!important;min-height:17px!important;padding:0!important;flex:0 0 17px;accent-color:#0866ff;margin:0}
#page.dnit-points-compact .dnit-export-option{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:10px 12px;background:var(--ux-soft,#f5f8fb);border-radius:8px;border-left:3px solid var(--meta-border,#dce5ed);font-size:13px}
#page.dnit-points-compact .dnit-export-option.enabled{border-left-color:#0866ff}
#page.dnit-points-compact .dnit-export-option>small:last-child{grid-column:1/-1;color:var(--ux-muted,#52687b);font-size:12px;line-height:1.5}
#page.dnit-points-compact .dnit-export-status{font-size:12px;font-weight:600;color:var(--meta-ink,#1c2b33)}
#page.dnit-points-compact .dnit-address{margin-top:12px;font-size:13px}
#page.dnit-points-compact .dnit-address summary{cursor:pointer;color:var(--ux-muted,#52687b);padding:6px 0}
#page.dnit-points-compact .dnit-address>.fields{margin-top:10px;grid-template-columns:1fr}
#page.dnit-points-compact .dnit-address label{grid-column:auto}
#page.dnit-points-compact .dnit-number-link{display:flex;justify-content:flex-end;margin-top:10px}
#page.dnit-points-compact .dnit-number-row{padding:12px 14px;border-top:1px solid var(--meta-border,#dce5ed);margin:0}
#page.dnit-points-compact .dnit-number-row>.fields{grid-template-columns:minmax(180px,1fr) minmax(220px,1fr);gap:8px 16px}
#page.dnit-points-compact .dnit-number-row h3,#page.dnit-points-compact .dnit-number-row p{margin:0}
#page.dnit-points-compact .dnit-number-row .actions{margin:10px 0 0}
#page.dnit-points-compact .dnit-number-row .check{display:flex;align-items:center;gap:8px}
@media(max-width:800px){#page.dnit-points-compact .dnit-point-fields{grid-template-columns:repeat(2,minmax(0,1fr))}#page.dnit-points-compact .dnit-document-types{grid-template-columns:repeat(2,minmax(0,1fr))}.v199-management-title{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:600px){#page.dnit-points-compact .dnit-scope{grid-template-columns:1fr 1fr;gap:8px}#page.dnit-points-compact .dnit-scope>label:nth-child(2){grid-column:1/-1;grid-row:2}#page.dnit-points-compact .dnit-document-types,#page.dnit-points-compact .dnit-export-option,#page.dnit-points-compact .dnit-number-row>.fields{grid-template-columns:1fr}#page.dnit-points-compact .dnit-export-status{grid-column:1}#page.dnit-points-compact .dnit-point-fields label{grid-column:auto!important}#page.dnit-points-compact .dnit-number-link button{width:100%;white-space:normal}}

.transport-form-header>.transport-browse-button{margin-left:auto;font-size:12px;padding:8px 10px;line-height:1.2;align-self:center}.transport-form-section:last-of-type{padding-bottom:20px}
.transport-header-actions{display:flex;align-items:center;gap:12px;margin-left:auto;flex-shrink:0}.transport-header-actions button{position:static!important;inset:auto!important;min-height:36px}.transport-header-actions .transport-browse-button{font-size:12px;line-height:1.3;max-width:180px;padding:8px 12px}.transport-header-actions button:last-child{font-size:23px;min-width:36px;padding:4px 8px}
.transport-picker{display:flex;align-items:stretch;gap:6px;width:min(100%,540px)}.transport-picker .transport-code{width:66px;flex:0 0 66px;min-width:0;text-align:center}.transport-selected{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere}.transport-fields[hidden]{display:none!important}
dialog.transport-lookup{width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid var(--ux-border,#dce5ed);border-radius:16px;background:var(--ux-surface,#fff);color:var(--ux-text,#1c2b33)}.transport-lookup::backdrop{background:#10233088}.transport-lookup header,.transport-lookup footer{display:flex;gap:12px;align-items:center;justify-content:space-between}.transport-lookup h2{font-size:20px;margin:0 0 12px}.transport-lookup header button{position:static!important}.transport-lookup>input{width:100%;margin:10px 0}.transport-lookup button{min-height:38px}.transport-options{display:grid;gap:6px;margin-top:12px}.transport-options>button{text-align:left;white-space:normal;overflow-wrap:anywhere}.transport-lookup :is(input,button):focus-visible{outline:2px solid #0866ff;outline-offset:2px}
@media(max-width:650px){.transport-form-header{flex-wrap:wrap}.transport-header-actions{width:100%;justify-content:space-between}.transport-picker{width:100%}.transport-lookup footer{flex-wrap:wrap}}

/* Purchases use the same full-width document flow as sales. */
.purchase-workspace{max-width:1680px;margin:auto;display:flex;flex-direction:column;gap:12px;padding-bottom:20px;color:var(--ux-text,#1c2b33)}
.purchase-title{display:flex;align-items:center;gap:12px}.purchase-title h1{margin:0;color:#0866ff;font-size:26px}.purchase-title p{margin:3px 0 0;font-size:13px}.purchase-title>button:last-child{margin-left:auto}
.purchase-panel{border:1px solid var(--ux-border,#dce5ed);border-radius:14px;background:var(--ux-surface,#fff);padding:14px;min-width:0}.purchase-panel h2{font-size:15px;color:#0866ff;margin:0 0 10px}
.purchase-workspace label{font-size:12px;gap:4px;min-width:0}.purchase-workspace :is(input,select){min-width:0;min-height:38px;padding:8px 10px;width:100%}.purchase-workspace .reference-document-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px 14px}.purchase-workspace .reference-supplier-results{z-index:20}
.purchase-entry{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px;align-items:end}.purchase-entry>h2{grid-column:1/-1;margin:0}.purchase-entry .reference-item-grid{display:grid;grid-template-columns:90px minmax(100px,1fr) 38px;grid-column:1/3;gap:8px;align-items:end}.purchase-entry .purchase-cost-grid{grid-column:3/5;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.purchase-entry .reference-price-title{grid-column:1/-1;margin:0;font-size:12px}.purchase-entry .reference-price-grid{grid-column:1/4;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.purchase-entry .reference-price-grid:has(label[hidden]){grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-entry>.reference-note{grid-column:1/-1;font-size:12px;margin:0}.purchase-entry .reference-tax:empty{display:none}.purchase-entry .reference-extra:has(label:not([hidden])){grid-column:1/-1;display:flex;gap:12px}.purchase-entry .reference-extra:not(:has(label:not([hidden]))){display:none}.purchase-entry .reference-add{grid-column:4;grid-row:auto;background:#0866ff!important;border-color:#0866ff!important;color:#fff!important;min-height:38px;margin:0}.purchase-entry .v178-product-trigger{min-height:38px;width:100%;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 10px}.purchase-entry [hidden]{display:none!important}
.purchase-detail{min-height:190px;flex:1}.purchase-detail>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.purchase-detail h2{margin:0}.purchase-detail header>span{font-size:12px;color:var(--ux-muted,#617587)}.purchase-workspace .reference-purchase-lines{overflow:auto;max-height:36dvh}.purchase-workspace .reference-purchase-lines table{width:100%;min-width:800px}.purchase-workspace td{padding:8px}.purchase-workspace td small{display:block;margin-top:3px;color:var(--ux-muted,#617587)}.purchase-workspace td label{font-size:0}.purchase-workspace td select{font-size:13px}.purchase-empty{color:var(--ux-muted,#617587);font-size:14px;padding:24px 0}.purchase-workspace>.error:empty{display:none}
.purchase-checkout{display:flex;gap:28px;align-items:center;position:sticky;bottom:0;z-index:2}.purchase-checkout>div{display:flex;flex-direction:column;gap:4px}.purchase-checkout strong{font-size:20px}.purchase-checkout small{font-size:12px;color:var(--ux-muted,#617587)}.purchase-checkout>.actions{margin:0 0 0 auto;flex-direction:row}.purchase-checkout .primary{background:#0866ff!important;border-color:#0866ff!important;color:white!important}.purchase-search-results{display:grid;gap:4px;max-height:52dvh;overflow:auto;margin-top:12px}.purchase-search-results button{text-align:left;min-height:44px}.purchase-product-picker header{display:flex;justify-content:space-between;align-items:center}.purchase-workspace button:focus-visible{outline:2px solid #0866ff;outline-offset:2px}
@media(max-width:900px){.purchase-workspace .reference-document-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-entry{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-entry .reference-item-grid,.purchase-entry .purchase-cost-grid,.purchase-entry .reference-price-grid{grid-column:1/-1}.purchase-entry .reference-add{grid-column:2}.purchase-checkout{flex-wrap:wrap;gap:12px}.purchase-checkout>.actions{margin-left:auto}}
@media(max-width:540px){.purchase-workspace .reference-document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-title{flex-wrap:wrap}.purchase-title h1{font-size:22px}.purchase-title>button:last-child{margin-left:0}.purchase-panel{padding:10px}.purchase-entry .reference-item-grid{grid-template-columns:66px minmax(100px,1fr) 36px}.purchase-entry .purchase-cost-grid{grid-template-columns:1fr 1fr}.purchase-entry .purchase-net-cost{grid-column:1/-1}.purchase-entry .reference-price-grid{grid-template-columns:1fr!important}.purchase-checkout{position:static}.purchase-checkout strong{font-size:17px}.purchase-checkout>.actions{width:100%;justify-content:flex-end}.purchase-workspace .reference-purchase-lines{max-width:100%}.purchase-title p{max-width:240px}}
.purchase-entry .reference-price-title{display:none}.purchase-entry .reference-price-grid{grid-column:2/5}.purchase-entry>.reference-note{grid-column:1/4}.purchase-entry .reference-add{grid-column:4;grid-row:auto}.purchase-entry .reference-note:first-of-type{display:none}.purchase-entry .reference-tax{display:none}.purchase-workspace .reference-item-grid label{width:100%}.purchase-workspace .reference-item-grid .reference-scan button{padding:7px}
@media(max-width:900px){.purchase-entry .reference-price-grid{grid-column:1/-1}.purchase-entry>.reference-note{grid-column:1/-1}.purchase-entry .reference-add{grid-column:1/-1}.transport-form-header>.transport-browse-button{max-width:155px}}
.purchase-workspace [hidden]{display:none!important}.purchase-entry .reference-price-grid:not(:has(label[hidden])){grid-column:1/-1}.purchase-workspace td select{min-width:125px}.purchase-workspace .purchase-title h1{color:#0866ff!important}
/* V0's vivid icon tiles shared by the operational menus. Surfaces remain neutral. */
html #app:is(.connected-shell,.v177-shell) #page.v101-menu [data-menu-color]{--menu-start:#0082fb;--menu-end:#0064e0;--menu-accent:#0064e0;--task-ink:var(--menu-accent);--task-border:var(--menu-accent)}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu [data-menu-color=green]{--menu-start:#00a67a;--menu-end:#00826b;--menu-accent:#00826b}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu [data-menu-color=teal]{--menu-start:#009e9e;--menu-end:#007a88;--menu-accent:#007a88}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu [data-menu-color=cyan]{--menu-start:#0095c5;--menu-end:#0072b3;--menu-accent:#0072b3}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu [data-menu-color=indigo]{--menu-start:#5470f4;--menu-end:#4e42d4;--menu-accent:#4e42d4}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu [data-menu-color=violet]{--menu-start:#9950ff;--menu-end:#8424e0;--menu-accent:#8424e0}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu [data-menu-color=orange]{--menu-start:#eb6b14;--menu-end:#c74b06;--menu-accent:#c74b06}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu [data-menu-color=amber]{--menu-start:#c58a00;--menu-end:#a76800;--menu-accent:#a76800}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu [data-menu-color=rose]{--menu-start:#ff1655;--menu-end:#d90047;--menu-accent:#d90047}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu :is(.menu-hub-icon,.v178-setting-icon){display:grid;place-items:center;flex:0 0 48px;width:48px!important;height:48px!important;min-width:48px;border-radius:14px;background:linear-gradient(140deg,var(--menu-start),var(--menu-end))!important;color:#fff!important;box-shadow:0 3px 7px #1c2b3324}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu :is(.menu-hub-icon,.v178-setting-icon) svg{width:25px;height:25px;color:#fff!important;stroke-width:1.8}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu .menu-hub-card{min-height:156px!important;padding:20px!important}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu .menu-hub-card-top{min-height:48px;margin-bottom:14px}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu .menu-hub-card strong{font-size:17px!important;line-height:1.3}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu .menu-hub-arrow{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:color-mix(in srgb,var(--menu-accent) 10%,var(--meta-surface,#fff))!important;color:var(--menu-accent)!important}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu :is(.menu-hub-card,.v178-setting-card):focus-visible{outline:3px solid var(--menu-accent)!important;outline-offset:3px}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu .v178-setting-card[hidden]{display:none!important}
html #app:is(.connected-shell,.v177-shell) #page.v101-menu .menu-hub-card::after{background:var(--menu-accent)!important}
@media(hover:hover){html #app:is(.connected-shell,.v177-shell) #page.v101-menu :is(.menu-hub-card,.v178-setting-card):hover{background:var(--meta-surface,#fff)!important;border-color:var(--menu-accent)!important;box-shadow:0 5px 16px #1c2b3318!important}}
html[data-theme=dark] #app:is(.connected-shell,.v177-shell) #page.v101-menu .menu-hub-arrow{color:color-mix(in srgb,var(--menu-start) 45%,white)!important}
html[data-theme=dark] #app:is(.connected-shell,.v177-shell) #page.v101-menu :is(.menu-hub-card,.v178-setting-card):focus-visible{outline-color:color-mix(in srgb,var(--menu-start) 45%,white)!important}
@media(max-width:620px){html #app:is(.connected-shell,.v177-shell) #page.v101-menu .menu-hub-card{min-height:142px!important;padding:18px!important}}

/* Informes: filtros y descarga manual en PDF o Excel. */
html #app:has(#page.report-download-page){background:var(--ux-canvas)!important}
html #app #page.report-download-page .report-download-filters{max-width:none;padding:24px;margin-top:20px}
html #app #page.report-download-page .report-download-filters .fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 16px}
html #app #page.report-download-page .report-download-filters label{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:13px;font-weight:600}
html #app #page.report-download-page .report-download-filters label[hidden]{display:none!important}
html #app #page.report-download-page .report-period-value{grid-column:span 2}
html #app #page.report-download-page .report-filter-search{grid-column:span 2}
html #app #page.report-download-page .report-download-filters :is(input,select){width:100%;min-width:0;min-height:44px;margin:0;font-size:14px;font-weight:400}
html #app #page.report-download-page .report-download-filters .actions{margin-top:20px;padding-top:16px;border-top:1px solid var(--ux-border,#dfe7ee);justify-content:flex-end;background:transparent!important}
html #app #page.report-download-page .report-download-filters .actions button{min-height:44px;min-width:180px}
.report-download-filters .error:empty{display:none}

@media(max-width:900px){html #app #page.report-download-page .report-download-filters .fields{grid-template-columns:repeat(2,minmax(0,1fr))}html #app #page.report-download-page .report-period-value{grid-column:auto}}
@media(max-width:600px){html #app #page.report-download-page .report-download-filters{padding:16px}html #app #page.report-download-page .report-download-filters .fields{grid-template-columns:minmax(0,1fr);gap:16px}html #app #page.report-download-page .report-filter-search{grid-column:auto}html #app #page.report-download-page .report-download-filters :is(input,select){font-size:16px}html #app #page.report-download-page .report-download-filters .actions{flex-wrap:wrap}html #app #page.report-download-page .report-download-filters .actions button{width:100%}}

/* Keep the floating navigation white in both themes, with the header color for the active item. */
html[data-theme] #app:is(.connected-shell,.v177-shell) .connected-bottom{background:#fff!important;border-color:#dce5ed!important}
html[data-theme] #app:is(.connected-shell,.v177-shell) .connected-bottom button{background:transparent!important;color:#526b7b!important}
html[data-theme] #app:is(.connected-shell,.v177-shell) .connected-bottom button[aria-current=page]{background:#3B505B!important;color:#fff!important;box-shadow:0 2px 6px #1c2b3320}
html[data-theme] #app:is(.connected-shell,.v177-shell) .connected-bottom button svg{color:inherit!important}
@media(hover:hover){html[data-theme] #app:is(.connected-shell,.v177-shell) .connected-bottom button:not([aria-current=page]):hover{background:#f0f4f8!important}}
/* 1.0.103: shared client sheet and finance workspaces. */
dialog.client-form-dialog{width:min(1120px,calc(100vw - 32px))!important;max-width:none!important;max-height:calc(100dvh - 32px);padding:0!important;border-radius:16px;overflow:auto;background:var(--ux-surface,#fff);color:var(--ux-text,#1c2b33)}
.client-form-dialog>header{padding:16px 22px 10px;margin:0}.client-form-dialog>header h2{margin:0;font-size:23px}.client-form-dialog .client-form-help{padding:0 22px;margin:0 0 8px;color:var(--ux-muted,#617587);font-size:13px}
.client-form-dialog>form{padding:0 22px}.client-form-dialog>form>.fields{display:block!important}.client-form-section{padding:12px 0;border-top:1px solid var(--ux-border,#dce5ed)}.client-form-section h3{margin:0 0 10px;color:#0866ff;font-size:16px}
.client-form-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 14px;align-items:start}.client-form-fields>label{margin:0;display:flex;flex-direction:column;gap:5px;min-width:0;font-size:13px}.client-form-fields :is(input,select){min-width:0;width:100%;min-height:38px;padding:8px 10px;font-size:14px}.client-form-fields .client-span-2{grid-column:span 2}.client-form-fields .client-span-4{grid-column:1/-1}
.client-form-fields .location-fields{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.client-form-fields output{display:block;min-height:38px;padding:10px;background:var(--ux-bg,#f0f4f8);border-radius:7px;color:var(--ux-muted,#617587);font-size:13px}.client-form-fields :is([hidden],.location-control[hidden]),.client-form-section[hidden]{display:none!important}
.client-form-fields label:has([name=identity]) button{font-size:12px;min-height:28px;padding:5px 8px;align-self:flex-start}.client-form-fields label:has([name=identity]) p:empty{display:none}.client-form-fields label:has([name=identity]) p{font-size:12px;margin:0}
html[data-theme=dark] .client-form-section h3{color:#80b7ff;border-color:var(--ux-border,#34475a)}
html[data-theme=dark] .client-form-fields output{background:#24364a;color:#dbe7f4}
.client-form-footer{position:sticky;bottom:0;padding:12px 0!important;margin:0!important;background:var(--ux-surface,#fff);z-index:2;border-top:1px solid var(--ux-border,#dce5ed);gap:10px}.client-form-footer small{margin-right:auto;font-size:12px;color:var(--ux-muted,#617587)}.client-form-dialog form>.error:empty{display:none}.client-form-dialog :is(input,select,button):focus-visible{outline:2px solid #0866ff;outline-offset:2px}
.finance-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(120px,1fr)) auto;gap:12px;align-items:end;margin:12px 0;padding:16px}.finance-filters label{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0}.finance-filters :is(input,select){width:100%;min-width:0;min-height:38px;margin:0}.payables-page>.approved-summary:empty{display:none}.payables-page>.muted{margin:10px 0}.payables-page .approved-empty{padding:28px;text-align:center}
.cash-workspace .cash-current{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 16px;padding:18px}.cash-current p{margin:6px 0 0}.cash-current .actions{margin:0;flex-wrap:wrap;gap:8px}.cash-current button:disabled{opacity:.5;cursor:not-allowed}.cash-workspace .register-totals{margin:0 0 12px}.cash-breakdown{display:grid;grid-template-columns:1fr auto;gap:5px 12px;margin:12px 0 0;font-size:12px;color:var(--ux-muted,#617587)}.cash-breakdown dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.cash-workspace .cash-movement-filters{grid-template-columns:minmax(240px,600px);margin-top:16px}.cash-history,.cash-rate{border:1px solid var(--ux-border,#dce5ed);border-radius:12px;background:var(--ux-surface,#fff);padding:12px 16px;margin:12px 0}.cash-history summary,.cash-rate summary{cursor:pointer;font-weight:600;font-size:14px}.cash-history>input{margin:12px 0;width:min(100%,600px)}.cash-rate .exchange-panel{margin:12px 0 0}.cash-workspace .approved-empty{text-align:center;padding:24px;color:var(--ux-muted,#617587)}
dialog.cash-movement-dialog{width:min(800px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px);padding:22px!important}.cash-movement-dialog .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cash-movement-dialog .fields label{min-width:0}.cash-movement-dialog .fields .span{grid-column:1/-1}.cash-movement-dialog [name=amount]{font-size:20px;font-weight:650}.cash-movement-dialog .fields input,.cash-movement-dialog .fields select{width:100%}
@media(max-width:800px){.finance-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-filters>label:first-child{grid-column:1/-1}.cash-workspace .cash-current{align-items:stretch;flex-direction:column;gap:12px}.client-form-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.client-form-fields .location-fields{grid-template-columns:1fr 1fr}.client-district{grid-column:1/-1}}
@media(max-width:520px){dialog.client-form-dialog{width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px);border-radius:12px}.client-form-dialog>header{padding:14px}.client-form-dialog>form{padding:0 14px}.client-form-dialog .client-form-help{padding:0 14px}.client-form-fields{grid-template-columns:1fr}.client-form-fields .client-span-2,.client-form-fields .client-span-4{grid-column:1/-1}.client-form-fields .location-fields{grid-template-columns:1fr}.client-form-footer{flex-wrap:wrap}.client-form-footer small{flex-basis:100%}.client-form-footer button{flex:1}.finance-filters{grid-template-columns:1fr}.cash-workspace .cash-movement-filters{grid-template-columns:1fr}.cash-movement-dialog .fields{grid-template-columns:1fr}.cash-current .actions button{flex:1 1 42%}}

/* Product registration follows the approved customer form. */
dialog.product-form-dialog{width:min(1120px,calc(100vw - 32px))!important;max-width:none!important;max-height:calc(100dvh - 32px);padding:0!important;border-radius:16px;overflow:auto;background:var(--ux-surface,#fff);color:var(--ux-text,#1c2b33)}
.product-form-dialog>header{padding:16px 22px 10px;margin:0}.product-form-dialog>header h2{margin:0;font-size:23px}.product-form-dialog .product-form-help{padding:0 22px;margin:0 0 8px;color:var(--ux-muted,#617587);font-size:13px}
.product-form-dialog>form{padding:0 22px}.product-form-dialog>form>.fields{display:block!important;min-height:0!important}.product-form-section{padding:12px 0;border-top:1px solid var(--ux-border,#dce5ed)}.product-form-section h3{margin:0 0 10px;color:#0866ff;font-size:16px}
.product-form-dialog .product-form-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 14px;align-items:start}.product-form-fields>label{margin:0;display:flex;flex-direction:column;gap:5px;min-width:0;font-size:13px}.product-form-fields :is(input,select){min-width:0;width:100%;min-height:38px;padding:8px 10px;font-size:14px}.product-form-fields .product-span-2{grid-column:span 2}.product-form-fields .product-span-4{grid-column:1/-1}.product-form-fields .product-category-help{order:1;margin:0;font-size:12px;color:var(--ux-muted,#617587)}.product-form-fields .product-field-error:empty{display:none}
.product-form-fields .commerce-photo-field{border:0;padding:0;margin:0;min-height:0}.product-form-fields .commerce-product-photo{width:88px;height:88px;object-fit:contain}.product-form-fields .commerce-photo-field .actions{justify-content:flex-start;margin:0;gap:8px}.product-form-fields .commerce-photo-field button{display:inline-flex;align-items:center;gap:7px;width:auto;height:auto;padding:8px 12px;font-size:13px}.product-form-fields .commerce-photo-field svg{width:18px;height:18px}.product-form-fields [hidden]{display:none!important}
.product-form-footer{position:sticky;bottom:0;padding:12px 0!important;margin:0!important;background:var(--ux-surface,#fff);z-index:2;border-top:1px solid var(--ux-border,#dce5ed);gap:10px}.product-form-footer small{margin-right:auto;font-size:12px;color:var(--ux-muted,#617587)}.product-form-dialog form>.error:empty{display:none}.product-form-dialog :is(input,select,button):focus-visible{outline:2px solid #0866ff;outline-offset:2px}
html[data-theme=dark] .product-form-section h3{color:#80b7ff}
@media(max-width:800px){.product-form-dialog .product-form-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){dialog.product-form-dialog{width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px);border-radius:12px}.product-form-dialog>header{padding:14px}.product-form-dialog>form{padding:0 14px}.product-form-dialog .product-form-help{padding:0 14px}.product-form-dialog .product-form-fields{grid-template-columns:1fr}.product-form-fields .product-span-2,.product-form-fields .product-span-4{grid-column:1/-1}.product-form-footer{flex-wrap:wrap}.product-form-footer small{flex-basis:100%}.product-form-footer button{flex:1}}

/* Orders: load one item above the detail, matching the purchase workflow. */
#app.v177-shell #page.v192-order:has(.order-entry){height:auto;min-height:0;overflow:visible!important;padding:12px 16px 110px!important}
#app.v177-shell .v192-order:has(.order-entry) .v177-form{overflow:visible;flex:none;min-height:0}
#app.v177-shell .v192-order:has(.order-entry) .v177-fields{flex:none;min-height:0;gap:4px}
#app.v177-shell .v192-order .order-entry{display:block!important;flex:none;padding:14px}
#app.v177-shell .v192-order .order-entry h3{margin:0 0 12px;font-size:14px;color:var(--v177-text)}
#app.v177-shell .v192-order .order-entry .invoice-item{border-bottom:0;margin:0;padding:0;min-height:0}
#app.v177-shell .v192-order .order-entry-actions{display:flex;justify-content:flex-end;margin-top:14px}
#app.v177-shell .v192-order .order-entry-actions button{width:min(100%,360px);min-height:42px;background:#0866ff!important;color:#fff!important;border-color:#0866ff!important;font-weight:650}
#app.v177-shell .v192-order .order-detail{flex:none;min-height:160px;overflow:visible}
#app.v177-shell .v192-order .order-detail>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}
#app.v177-shell .v192-order .order-detail h3{font-size:14px;color:var(--v177-text);margin:0}
#app.v177-shell .v192-order .order-item-count{font-size:12px;color:var(--v177-muted)}
#app.v177-shell .v192-order .order-detail>.invoice-items{flex:none;min-height:0;max-height:36dvh;overflow:auto;padding:0 3px}
#app.v177-shell .v192-order .order-detail>.invoice-items:empty{display:none}
#app.v177-shell .v192-order .order-detail .invoice-item{padding:10px 0;background:var(--v177-surface)}
#app.v177-shell .v192-order .order-detail-empty{color:var(--v177-muted);text-align:center;padding:30px 10px;font-size:14px}
#app.v177-shell .v192-order .order-detail-empty[hidden]{display:none}
#app.v177-shell .v192-order:has(.order-entry) .v177-checkout{position:sticky;bottom:0;z-index:5;margin-top:0}
#app.v177-shell .v192-order .order-entry .v178-product-trigger{width:100%}
@media(max-width:640px){#app.v177-shell .v192-order .order-entry-actions button{width:100%}#app.v177-shell .v192-order:has(.order-entry) .v177-checkout{position:static}#app.v177-shell .v192-order .order-detail>.invoice-items{max-height:none}#app.v177-shell .v192-order .order-detail .invoice-item{margin-bottom:8px}}
#dialog.product-form-dialog .product-field-error:empty{display:none;min-height:0}
#app.v177-shell .v192-order:has(.order-entry) .v178-simple-item{grid-template-columns:minmax(180px,1fr) 82px 80px 145px 135px 42px!important}
#app.v177-shell .v192-order:has(.order-entry) .v178-simple-item>.v178-description{grid-column:1!important}
#app.v177-shell .v192-order:has(.order-entry) .v178-simple-item>.order-quantity{grid-column:2!important}
#app.v177-shell .v192-order .order-entry-actions{align-items:center;gap:20px;justify-content:space-between}
#app.v177-shell .v192-order .order-entry-actions small{font-size:12px;color:var(--v177-muted);max-width:600px}
#app.v177-shell .v192-order .v177-customer:has([name=saleDestination]){grid-template-columns:minmax(180px,1fr) minmax(200px,1.35fr) minmax(160px,.85fr) minmax(200px,1fr)!important}
#app.v177-shell .v192-order .export-panel[hidden]{display:none!important}
#app.v177-shell .v192-order .export-heading{align-items:center}
#app.v177-shell .v192-order .export-heading h3{margin:0;font-size:14px}
#app.v177-shell .v192-order .export-status{margin:0}
@media screen and (min-width:900px){#app.connected-shell.v177-shell #page.v192-order:has(.order-entry){display:block!important;height:100%!important;max-height:100%!important;min-height:0!important;overflow:auto!important;padding:12px 16px!important;scroll-padding:14px 14px 90px}}
@media(max-width:1100px){#app.v177-shell .v192-order .v177-customer:has([name=saleDestination]){grid-template-columns:1fr 1fr!important}#app.v177-shell .v192-order .v177-customer:has([name=saleDestination])>label{grid-column:auto!important}}
@media(max-width:520px){#app.v177-shell .v192-order .v177-customer:has([name=saleDestination]){grid-template-columns:1fr!important}#app.v177-shell .v192-order .export-heading{flex-wrap:wrap}#app.v177-shell .v192-order .export-heading h3{width:100%}}
@media(max-width:900px){#app.v177-shell .v192-order:has(.order-entry) .v178-simple-item{grid-template-columns:70px minmax(90px,1fr) 90px!important}#app.v177-shell .v192-order:has(.order-entry) .v178-simple-item>.v178-description{grid-column:1/-1!important}#app.v177-shell .v192-order:has(.order-entry) .v178-simple-item>.order-quantity{grid-column:1!important}#app.v177-shell .v192-order:has(.order-entry) .v178-simple-item>.v192-tax{grid-column:2!important}#app.v177-shell .v192-order:has(.order-entry) .v178-simple-item>.v178-unit-price{grid-column:3!important}#app.v177-shell .v192-order:has(.order-entry) .v178-simple-item>.v192-line-total{grid-column:1/3!important}#app.v177-shell .v192-order .order-entry-actions{flex-wrap:wrap;gap:10px}}

/* V1: retain the invoice panel; search product before entering quantity. */
#app.v177-shell .v177-workspace .v178-simple-item.v106-product-first{grid-template-columns:minmax(160px,1fr) 82px 145px 62px!important}
#app.v177-shell .v178-simple-item.v106-product-first>.v178-description{grid-column:1!important}
#app.v177-shell .v178-simple-item.v106-product-first>.v106-quantity{grid-column:2!important}
@media(max-width:640px){#app.v177-shell .v177-workspace .v178-simple-item.v106-product-first{grid-template-columns:minmax(90px,1fr) 62px 90px!important}}

/* Destination shares the V1 customer row; export details remain below when selected. */
#app.v177-shell .v106-inline-invoice .v177-customer{grid-template-columns:minmax(180px,1fr) minmax(220px,1.4fr) minmax(210px,1fr) minmax(180px,.9fr)!important}
#app.v177-shell .v106-inline-invoice .v177-customer>label{grid-column:auto!important}
#app.v177-shell .v106-inline-invoice .export-panel[hidden]{display:none!important}
#app.v177-shell .v106-inline-invoice .export-heading h3{margin:0;font-size:14px}
#app.v177-shell .v106-inline-invoice .export-status{margin:0}
@media(max-width:1000px){#app.v177-shell .v106-inline-invoice .v177-customer{grid-template-columns:1fr 1fr!important}}
@media(max-width:640px){#app.v177-shell .v106-inline-invoice .v177-customer{grid-template-columns:1fr!important}#app.v177-shell .v106-inline-invoice .export-heading{flex-wrap:wrap}#app.v177-shell .v106-inline-invoice .export-heading h3{width:100%}}

/* The same inline product flow in V0 and the V2/V3 order workspace. */
#app.v0-shell .v0-sales-form .v0-sale-line.v107-product-first{grid-template-columns:minmax(180px,1fr) 80px 100px 145px 130px 40px}
#app.v0-shell .v0-sale-line.v107-product-first>label:first-child{grid-column:1}
#app.v177-shell #page.v107-inline-order{height:auto!important;min-height:0;overflow:auto!important;padding-bottom:110px!important}
#app.v177-shell .v107-inline-order .v177-form{overflow:visible;flex:none;min-height:0}
#app.v177-shell .v107-inline-order .v177-fields{flex:none;min-height:0}
#app.v177-shell .v107-inline-order .order-detail{display:flex;flex-direction:column;min-height:360px;overflow:visible}
#app.v177-shell #page.v107-inline-order .order-detail>.invoice-items{flex:1;max-height:none;overflow:visible;min-height:0}
#app.v177-shell .v107-inline-order .v107-add-line{margin-top:16px;width:100%;min-height:32px;border:1px dashed var(--v177-border);background:var(--v177-surface);color:#0064e0}
#app.v177-shell .v107-inline-order .v178-simple-item{grid-template-columns:minmax(180px,1fr) 82px 80px 145px 135px 42px!important}
#app.v177-shell .v107-inline-order .v178-simple-item>.v178-description{grid-column:1!important}
#app.v177-shell .v107-inline-order .v178-simple-item>.order-quantity{grid-column:2!important}
#app.v177-shell .v107-inline-order .v177-customer:has([name=operationType]){grid-template-columns:minmax(160px,1fr) minmax(180px,1.4fr) minmax(130px,.75fr) minmax(170px,1fr) minmax(160px,.9fr)!important}
#app.v177-shell .v107-inline-order .v177-checkout{position:sticky;bottom:0;z-index:5}
@media screen and (min-width:900px){#app.connected-shell.v177-shell #page.v177-workspace.v192-order.v107-inline-order{display:block!important;height:100%!important;max-height:100%!important;min-height:0!important;overflow:auto!important;padding:12px 16px!important;scroll-padding:14px 14px 90px}}
@media(max-width:1100px){#app.v177-shell .v107-inline-order .v177-customer:has([name=operationType]){grid-template-columns:1fr 1fr!important}#app.v177-shell .v107-inline-order .v177-customer>label{grid-column:auto!important}}
@media(max-width:900px){
 #app.v177-shell .v107-inline-order .v178-simple-item{grid-template-columns:70px minmax(90px,1fr) 90px!important}
 #app.v177-shell .v107-inline-order .v178-simple-item>.v178-description{grid-column:1/-1!important}
 #app.v177-shell .v107-inline-order .v178-simple-item>.order-quantity{grid-column:1!important}
 #app.v177-shell .v107-inline-order .v178-simple-item>.v192-tax{grid-column:2!important}
 #app.v177-shell .v107-inline-order .v178-simple-item>.v178-unit-price{grid-column:3!important}
 #app.v177-shell .v107-inline-order .v178-simple-item>.v192-line-total{grid-column:1/3!important}
}
@media(max-width:760px){
 #app.v0-shell .v0-sales-form .v0-sale-line.v107-product-first{grid-template-columns:75px minmax(100px,1fr) 90px}
 #app.v0-shell .v0-sale-line.v107-product-first>label:first-child{grid-column:1/-1}
 #app.v0-shell .v0-sale-line.v107-product-first>label:nth-child(2){grid-column:1}
 #app.v0-shell .v0-sale-line.v107-product-first>label:nth-child(3){grid-column:2}
 #app.v0-shell .v0-sale-line.v107-product-first>label:nth-child(4){grid-column:3}
 #app.v0-shell .v0-sale-line.v107-product-first>.v0-row-amount{grid-column:1/3}
 #app.v0-shell .v0-sale-line.v107-product-first>.v0-button{grid-column:3;grid-row:auto}
}
@media(max-width:640px){#app.v177-shell .v107-inline-order .v177-checkout{position:static}#app.v177-shell .v107-inline-order .order-detail{min-height:220px}}
@media(max-width:520px){#app.v177-shell .v107-inline-order .v177-customer:has([name=operationType]){grid-template-columns:1fr!important}}
.transport-form-dialog .transport-header-actions button{width:auto!important;height:auto!important;flex-shrink:0}.transport-form-dialog .transport-header-actions .transport-browse-button{width:180px!important;white-space:normal}.transport-form-dialog .transport-header-actions button:last-child{width:36px!important}

/* Shared frame remains identical while the manual-entry adapter is open. */
#app.v0-shell .connected-top .connected-company strong{color:#fff!important}

/* Purchase entry uses the product-first keyboard order of sales. */
.purchase-entry .reference-item-grid{grid-template-columns:minmax(100px,1fr) 38px 90px}
.purchase-keyboard-hint{grid-column:1/-1;margin:0;color:var(--muted,#526b7e);font-size:12px}
@media(max-width:540px){.purchase-entry .reference-item-grid{grid-template-columns:minmax(100px,1fr) 36px 66px}}

/* Same editable product rows and add-item placement as the sales form. */
.purchase-inline-workspace .purchase-detail{min-height:440px;display:flex;flex-direction:column}
.purchase-inline-workspace .purchase-detail h2{color:var(--primary,#0064ed)}
.purchase-inline-workspace .reference-purchase-lines{display:flex;flex-direction:column;flex:1;min-height:0}
.purchase-inline-list{flex:1}
.purchase-inline-main{display:grid;grid-template-columns:minmax(180px,1fr) 90px 140px 105px 110px auto;gap:10px;align-items:end}
.purchase-inline-main>label{min-width:0}
.purchase-inline-main input,.purchase-inline-main select{width:100%;min-width:0}
.purchase-inline-main label>strong{display:block;min-height:36px;padding:8px;text-align:right}
.purchase-inline-item{border-bottom:1px solid var(--border,#dce5ef);padding:8px 0}
.purchase-inline-extra{margin-top:4px;font-size:12px}
.purchase-inline-extra>summary{cursor:pointer;color:var(--muted,#526b7e);width:max-content}
.purchase-inline-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:8px 0}
.purchase-inline-add{width:100%;border:1px dashed var(--border,#dce5ef);color:var(--primary,#0064ed);background:transparent;margin-top:20px}
.purchase-inline-workspace .billing-product-count:empty{display:none}
@media(max-width:800px){.purchase-inline-main{grid-template-columns:minmax(0,1fr) 85px 120px}.purchase-inline-main>label:first-child{grid-column:1/-1}.purchase-inline-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){.purchase-inline-main{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-inline-options{grid-template-columns:1fr}}
/* One description control, with matches floating outside the row flow. */
.purchase-inline-main{grid-template-columns:minmax(190px,1fr) 80px 120px 95px 95px 120px auto}
.purchase-inline-main.purchase-three-prices{grid-template-columns:minmax(190px,1fr) 72px 105px 85px 90px repeat(3,100px) auto}
.purchase-inline-main [hidden]{display:none!important}
.purchase-inline-main .billing-product-search{position:relative}
.purchase-inline-main .billing-product-results{position:absolute;top:100%;left:0;right:0;z-index:50;max-height:280px;overflow:auto;background:var(--surface,#fff);box-shadow:0 8px 24px #08203226}
.purchase-inline-main .billing-product-count{position:absolute;right:4px;top:-20px;font-size:10px;pointer-events:none}
@media(max-width:1100px){.purchase-inline-main,.purchase-inline-main.purchase-three-prices{grid-template-columns:repeat(4,minmax(0,1fr))}.purchase-inline-main>label:first-child{grid-column:1/-1}}
@media(max-width:600px){.purchase-inline-main,.purchase-inline-main.purchase-three-prices{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Working sale drafts: match the existing catalog table and checkout controls. */
#app.v177-shell .sale-draft-checkout > .actions{margin-left:auto!important;justify-content:flex-end;flex:0 0 auto}
#app.v177-shell .sale-draft-checkout > p[role=status]{flex-basis:100%;margin:0}
#app.v177-shell .sale-draft-checkout > p[role=status]:empty{display:none}
dialog.sale-drafts-dialog{width:min(1120px,94vw);max-width:94vw;max-height:88vh;box-sizing:border-box;padding:24px;overflow:auto;border:1px solid var(--border,#dce5ef);border-radius:16px}
.sale-drafts-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:20px}.sale-drafts-dialog h2{margin:0 0 6px}.sale-drafts-dialog header p{margin:0}.sale-drafts-dialog header>button{flex-shrink:0}
.sale-draft-filters{display:grid;grid-template-columns:minmax(240px,1fr) 160px 210px auto;gap:12px;align-items:end}.sale-draft-filters label{display:grid;gap:6px}.sale-draft-filters input,.sale-draft-filters select{width:100%;min-width:0;box-sizing:border-box}.sale-drafts-dialog .table-wrap{width:100%;overflow:auto}.sale-drafts-dialog table{min-width:720px;width:100%}.sale-draft-client{display:grid;gap:5px}.sale-draft-client small{color:var(--muted,#6d8599)}.sale-draft-actions{display:flex;gap:8px;justify-content:flex-end}.sale-draft-actions button{flex-shrink:0}.sale-draft-pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:16px}.sale-draft-pager span{margin-right:auto}.sale-draft-confirm{padding:16px;margin:14px 0;background:var(--surface,#f4f7fa);border:1px solid var(--border,#dce5ef);border-radius:10px}.sale-draft-confirm .danger{color:#be253d;border-color:#e4b5bd}.sale-drafts-dialog [hidden]{display:none!important}
@media(max-width:700px){dialog.sale-drafts-dialog{padding:16px}.sale-draft-filters{grid-template-columns:1fr 1fr}.sale-draft-filters>label:first-child{grid-column:1/-1}#app.v177-shell .sale-draft-checkout>.actions{flex-wrap:wrap;max-width:100%}}
.sale-drafts-dialog>header>button{position:static!important;inset:auto!important;width:auto!important;min-width:80px;max-width:none;height:auto;font-size:14px;line-height:1.4;padding:10px 14px;white-space:nowrap;border:1px solid var(--border,#dce5ef);border-radius:8px}.sale-draft-filters{grid-template-columns:minmax(240px,1fr) 180px 210px auto}@media(max-width:700px){.sale-draft-filters{grid-template-columns:1fr 1fr}}

/* Credit and remission forms share the existing Meta document palette. */
dialog.related-document-dialog{background:var(--meta-surface,#fff);color:var(--meta-ink,#1c2b33);border:1px solid var(--meta-border,#dce5ed);border-radius:16px}
dialog.related-document-dialog :is(h2,h3){color:var(--meta-action,#0064e0)}
dialog.related-document-dialog .hint{background:var(--meta-soft,#eaf3ff);border-left-color:var(--meta-action,#0064e0);color:var(--meta-ink,#1c2b33)}
dialog.related-document-dialog .invoice-total{background:var(--meta-soft,#eaf3ff);border-color:var(--meta-border,#dce5ed);color:var(--meta-ink,#1c2b33)}
dialog.related-document-dialog :is(input,select,textarea){background:var(--meta-surface,#fff);color:var(--meta-ink,#1c2b33);border-color:var(--meta-border,#dce5ed)}
dialog.related-document-dialog button.primary{background:var(--meta-action,#0064e0);border-color:var(--meta-action,#0064e0);color:#fff}

#app.v177-shell .v192-order .sale-draft-checkout > .actions > button.primary{order:10}

/* 1.0.130: approved readable sales typography shared by V1, V2 and V3. */
html[data-syngpro-palette=meta]{--sale-label:#344454;--sale-heading:#345d83;--sale-placeholder:#687888}
html[data-syngpro-palette=meta][data-theme=dark]{--sale-label:#d8e2ec;--sale-heading:#a6c7e7;--sale-placeholder:#a5b5c3}
#app.v177-shell .v177-workspace label,dialog.related-document-dialog label{font-size:14px!important;font-weight:600!important;color:var(--sale-label)!important;line-height:1.4}
#app.v177-shell .v177-workspace :is(input,select,textarea),dialog.related-document-dialog :is(input,select,textarea){font-size:16px!important;font-weight:500!important;color:var(--meta-ink)!important;min-height:38px}
#app.v177-shell .v177-workspace input::placeholder,dialog.related-document-dialog input::placeholder{font-size:15px!important;color:var(--sale-placeholder)!important;opacity:1}
#app.v177-shell .v177-workspace :is(h1,h2,h3),dialog.related-document-dialog :is(h2,h3){color:var(--sale-heading)!important}
#app.v177-shell .v177-workspace .v178-product-trigger{font-size:16px!important;font-weight:500!important;min-height:38px}
#app.v177-shell .v177-workspace .sale-draft-checkout strong{font-size:23px!important;font-weight:700!important;font-variant-numeric:tabular-nums!important}
#app.v177-shell .v177-workspace :is([name=quantity],[name=price],.invoice-line-total,.v192-line-total,.invoice-total strong,.v177-totals strong){font-variant-numeric:tabular-nums!important;font-weight:700!important}

.v178-product-result.is-keyboard-active{background:var(--meta-soft,#eaf3ff);border-radius:8px}
.v178-product-result button.is-keyboard-price{outline:2px solid var(--meta-action,#0064e0);outline-offset:2px}

.v177-confirm .actions{flex-wrap:wrap}.v177-confirm .actions>button:first-child:nth-last-child(3){flex-basis:100%}
.price-policy-dialog{width:min(920px,95vw);max-height:88vh;border:1px solid var(--meta-border);border-radius:16px;padding:24px;background:var(--meta-surface);color:var(--meta-ink);overflow:auto}
.price-policy-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px}.price-policy-dialog h2{color:var(--sale-heading)}
.price-policy-row,.price-policy-request{padding:16px 0;border-bottom:1px solid var(--meta-border)}.price-policy-row fieldset{margin-top:12px;display:flex;gap:16px;flex-wrap:wrap}.price-policy-row fieldset[hidden]{display:none}.price-policy-row fieldset label{display:flex;align-items:center;gap:8px}.price-policy-row input[type=checkbox]{width:18px;height:18px}
.v193-picker .v193-card:not(.single-sale-price){grid-template-columns:minmax(180px,2fr) repeat(6,minmax(72px,1fr))}.v193-picker{width:min(1150px,96vw)!important}
@media(max-width:760px){.v193-picker .v193-card:not(.single-sale-price){grid-template-columns:repeat(3,minmax(0,1fr))}.v193-picker .v193-product{grid-column:1/-1}}
.daily-rates.is-pending{background:#fff1f2!important;border:2px solid #c52b42!important;box-shadow:0 0 0 4px #c52b4214}.daily-rates.is-pending h2,.daily-rates.is-pending .daily-rate-status{color:#9e1730!important;font-weight:700;font-size:16px}.daily-rates.is-pending button{min-height:44px}
html[data-theme=dark] .daily-rates.is-pending{background:#391c27!important;color:#ffe7ec!important}


#app.v177-shell .v192-order .sale-draft-checkout>.actions{flex-wrap:wrap!important;max-width:100%;flex:1 1 100%}
.price-policy-dialog>header>button{position:static!important;inset:auto!important;flex-shrink:0;width:auto!important;min-width:80px;height:auto;padding:10px 14px;font-size:14px;white-space:nowrap;border:1px solid var(--meta-border);border-radius:8px}
.purchase-inline-main.purchase-three-prices:has([name=priceF]){grid-template-columns:repeat(12,minmax(0,1fr))}
.purchase-inline-main:has([name=priceF])>label{grid-column:span 2}
.purchase-inline-main:has([name=priceF])>label:first-child{grid-column:span 4}
.purchase-inline-main:has([name=priceF])>button{grid-column:11 / span 2}
@media(max-width:700px){.purchase-inline-main.purchase-three-prices:has([name=priceF]){grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-inline-main:has([name=priceF])>label{grid-column:span 1}.purchase-inline-main:has([name=priceF])>label:first-child{grid-column:1/-1}.purchase-inline-main:has([name=priceF])>button{grid-column:2}}

.backup-restore{display:grid;gap:16px;margin:20px 0}.backup-restore>button{justify-self:start}.backup-restore input[type=file]{max-width:100%;padding:12px;border:1px solid var(--meta-border);border-radius:8px}.backup-restore-warning{padding:16px;background:#fff5e5;border-left:4px solid #ba7410}.backup-restore [name=restoreRuc]{max-width:320px}.backup-restore details{margin:16px 0}

#app.v177-shell #page.remission-workspace{height:auto;min-height:calc(100dvh - 166px);overflow:visible}
.remission-workspace .v191-remission-fields{overflow:visible}
.remission-code-selectors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}
.remission-code-selectors label>span{display:flex;gap:6px}.remission-code-selectors input{max-width:64px}
.remission-workspace .v191-remission-footer{padding:14px;border-radius:12px;margin-top:12px}
@media(max-width:760px){.remission-code-selectors{grid-template-columns:1fr}}

#page.remission-workspace>.v177-heading{justify-content:flex-start;align-items:center}#page.remission-workspace>.v177-heading h1{margin:0}
/* Finance reuses the common panels and readable numeric tables in every edition. */
.finance-content{margin-top:16px}.finance-content .table-wrap{margin:16px 0}.finance-content td{font-variant-numeric:tabular-nums}.finance-fields{display:flex;gap:16px;flex-wrap:wrap;margin:16px 0}.finance-dialog{width:min(1100px,95vw);max-height:90vh;overflow:auto;border:1px solid #dce5ee;border-radius:16px;padding:24px}.finance-dialog::backdrop{background:rgba(20,33,61,.45)}.finance-dialog form>label{display:block;margin:12px 0}.finance-journal-row{display:grid;grid-template-columns:2fr repeat(5,minmax(100px,1fr)) auto;gap:8px;padding:12px 0;border-bottom:1px solid #dce5ee}.finance-journal-row input,.finance-journal-row select{width:100%;min-width:0}.finance-dialog label{font-weight:600}.finance-dialog input,.finance-dialog select{display:block;margin-top:6px}.finance-dialog input[type=checkbox]{display:inline;margin-right:8px}@media(max-width:800px){.finance-journal-row{grid-template-columns:1fr 1fr}.finance-dialog{padding:16px}}

/* Emisión: contraste y jerarquía según la referencia del cliente. */
#app.v177-shell #page:has(.invoice-contrast){--sale-heading:#102b3d;--sale-label:#203c50;--sale-placeholder:#5b7182}
#app.v177-shell #page .invoice-contrast .v177-panel{border-color:#bfcdd8;border-radius:11px;box-shadow:0 2px 5px #102b3d06;padding:16px 18px;margin-bottom:12px}
#app.v177-shell #page .invoice-contrast :is(input:not([type=checkbox]),select,.v178-product-trigger){border-color:#aebfcd;min-height:44px;border-radius:6px}
#app.v177-shell #page .invoice-contrast .v177-code{border-color:#aebfcd;border-radius:6px;background:#fff;min-height:44px}
#app.v177-shell #page .invoice-contrast .v177-code input{background:#e5efff;color:#0055c8!important;border:0;border-right:1px solid #aebfcd;border-radius:0;font-weight:750!important;width:55px}
#app.v177-shell #page .invoice-contrast .v177-identity button{background:#0866ff;color:#fff;border-color:#0866ff;border-radius:6px;min-height:44px}
#app.v177-shell #page .invoice-contrast .sale-products>h3{background:#eaf2ff;color:#0055c8!important;border-bottom:1px solid #bfcdd8;margin:-16px -18px 12px;padding:13px 18px;font-size:14px;font-weight:750;letter-spacing:.025em;border-radius:10px 10px 0 0}
#app.v177-shell #page .invoice-contrast .sale-products>.invoice-items{flex:0 1 auto;padding:0;min-height:86px}
#app.v177-shell #page .invoice-contrast .invoice-item{gap:12px;padding:6px 0 12px}
#app.v177-shell #page .invoice-contrast .invoice-item>button{min-width:64px;min-height:44px;padding:8px}
#app.v177-shell #page .invoice-contrast .invoice-add{margin-top:10px}
#app.v177-shell #page .invoice-contrast .invoice-add button{border:1px dashed #7ba7f7;background:#f6f9ff;color:#0055c8;min-height:44px;font-weight:650;border-radius:6px}
#app.v177-shell #page .invoice-contrast .v177-checkout{background:#3B505B;border-color:#3B505B;color:#fff;padding:16px 20px;gap:14px;border-radius:10px}
#app.v177-shell #page .invoice-contrast .v177-equivalents strong{color:#fff!important;font-weight:750!important;font-variant-numeric:tabular-nums}
#app.v177-shell #page .invoice-contrast .v177-equivalents small{color:#d1e0eb!important}
#app.v177-shell #page .invoice-contrast .v177-equivalents>div+div{border-color:#49606d}
#app.v177-shell #page .invoice-contrast .v177-equivalents>small{background:#354751;border-radius:20px;padding:7px 12px}
#app.v177-shell #page .invoice-contrast .v177-checkout>.actions>button{background:#354751;color:#fff;border:1px solid #526875;border-radius:7px;min-height:44px;font-weight:650}
#app.v177-shell #page .invoice-contrast .v177-checkout>.actions>button.primary{background:#0866ff;border-color:#0866ff;color:#fff}
#app.v177-shell #page .invoice-contrast .v177-checkout>.actions>button:hover{filter:brightness(1.12)}
#app.v177-shell #page .invoice-contrast .v177-checkout>[role=status]{color:#d1e0eb!important}
#app.v177-shell #page .invoice-contrast .v177-checkout .error{color:#ffb9c4!important}
#app.v177-shell #page .invoice-contrast :is(button,input,select):focus-visible{outline:2px solid #0866ff;outline-offset:3px}
#app.v177-shell #page .invoice-contrast .v177-checkout button:focus-visible{outline-color:#a6ceff}
html[data-theme=dark] #app.v177-shell #page:has(.invoice-contrast){--sale-heading:#edf5ff;--sale-label:#d5e5ef;--sale-placeholder:#b3c6d4}
html[data-theme=dark] #app.v177-shell #page .invoice-contrast :is(.v177-panel,input,select,.v178-product-trigger,.v177-code){border-color:#506978}
html[data-theme=dark] #app.v177-shell #page .invoice-contrast .v177-code{background:#193344}
html[data-theme=dark] #app.v177-shell #page .invoice-contrast .v177-code input{background:#244669;color:#c5dfff!important}
html[data-theme=dark] #app.v177-shell #page .invoice-contrast .sale-products>h3{background:#233e54;color:#c5dfff!important;border-color:#506978}
html[data-theme=dark] #app.v177-shell #page .invoice-contrast .invoice-add button{background:#233e54;color:#c5dfff}
@media(max-width:700px){
 #app.v177-shell #page .invoice-contrast .v177-panel{padding:14px}
 #app.v177-shell #page .invoice-contrast .sale-products>h3{margin:-14px -14px 12px;padding:12px 14px}
 #app.v177-shell #page .invoice-contrast .v177-checkout{padding:16px}
 #app.v177-shell #page .invoice-contrast .v177-checkout>.actions{display:flex;flex-wrap:wrap;width:100%;gap:8px}
 #app.v177-shell #page .invoice-contrast .v177-checkout>.actions>button.primary{flex:1 1 100%}
}

#app.v177-shell #page .invoice-contrast .v177-code input{background:#e5efff!important}
html[data-theme=dark] #app.v177-shell #page .invoice-contrast .v177-code input{background:#244669!important}
html[data-theme=dark] #app.v177-shell #page .invoice-contrast :is(.v178-product-trigger,.invoice-add button){background:#233e54!important;color:#d5e7ff!important}
@media(max-width:700px){#app.v177-shell #page .invoice-contrast .v177-checkout{position:static!important;inset:auto!important;width:auto!important;max-height:none!important;margin-top:14px;transform:none!important}}

/* Escritorio compacto: totales en una fila y detalle con scroll propio. */
@media(min-width:1000px){
 #app.v177-shell #page .invoice-contrast .v177-panel{padding:8px 14px;margin-bottom:8px}
 #app.v177-shell #page .invoice-contrast :is(input:not([type=checkbox]),select,.v178-product-trigger,.v177-code){min-height:36px;height:36px}
 #app.v177-shell #page .invoice-contrast .v177-form label,#app.v177-shell #page .invoice-contrast label{gap:4px}
 #app.v177-shell #page .invoice-contrast .v177-identity button{min-height:36px;height:36px}
 #app.v177-shell #page .invoice-contrast .sale-products>h3{margin:-8px -14px 6px;padding:8px 14px}
 #app.v177-shell #page .invoice-contrast .sale-products>.invoice-items{flex:1 1 0;min-height:0;overflow-y:auto;scrollbar-gutter:stable;overscroll-behavior:contain}
 #app.v177-shell #page .invoice-contrast .invoice-item{gap:8px;padding:3px 0}
 #app.v177-shell #page .invoice-contrast .invoice-item:not(:first-child)>label{font-size:0!important;gap:0}
 #app.v177-shell #page .invoice-contrast .invoice-item>button{min-height:36px;height:36px;padding:6px}
 #app.v177-shell #page .invoice-contrast .invoice-add{margin-top:5px}
 #app.v177-shell #page .invoice-contrast .invoice-add button{min-height:32px;padding:5px}
 #app.v177-shell #page .invoice-contrast .v177-checkout{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:10px 14px;align-items:center}
 #app.v177-shell #page .invoice-contrast .v177-equivalents{flex-wrap:nowrap;gap:10px;min-width:0}
 #app.v177-shell #page .invoice-contrast .v177-equivalents>div{min-width:0;gap:3px;flex-shrink:0}
 #app.v177-shell #page .invoice-contrast .v177-equivalents>div+div{padding-left:10px}
 #app.v177-shell #page .invoice-contrast .v177-equivalents small{font-size:10px;white-space:nowrap}
 #app.v177-shell #page .invoice-contrast .v177-equivalents strong{font-size:19px!important}
 #app.v177-shell #page .invoice-contrast .v177-equivalents>small{padding:5px 8px;white-space:normal;min-width:0}
 #app.v177-shell #page .invoice-contrast .v177-checkout>.actions{width:auto!important;flex:0 0 auto!important;flex-wrap:nowrap!important;margin:0!important;gap:7px}
 #app.v177-shell #page .invoice-contrast .v177-checkout>.actions>button{min-height:38px;padding:8px 10px;font-size:12px;white-space:nowrap}
 #app.v177-shell #page .invoice-contrast .v177-checkout>:is(.error,[role=status]){grid-column:1/-1}
}

@media(min-width:1000px){
 #app.v177-shell #page .invoice-contrast .sale-products>.invoice-items{display:block;max-height:none}
 #app.v177-shell #page .invoice-contrast .invoice-item{padding:2px 0;min-height:0;margin:0}
 #app.v177-shell #page .invoice-contrast .invoice-item :is(input,.v178-product-trigger),#app.v177-shell #page .invoice-contrast .invoice-item>button{height:32px!important;min-height:32px!important;font-size:14px!important;padding:5px 8px}
}

#app.v177-shell #page .invoice-contrast .invoice-item{position:relative;padding-left:32px!important}
#app.v177-shell #page .invoice-contrast .invoice-row-number{position:absolute;left:0;bottom:8px;width:25px;text-align:center;font-size:12px;font-weight:700;color:#526c80;line-height:24px;background:#edf3f9;border-radius:4px}
html[data-theme=dark] #app.v177-shell #page .invoice-contrast .invoice-row-number{background:#294455;color:#dfecf8}
@media(min-width:1000px){#app.v177-shell #page .invoice-contrast .invoice-row-number{bottom:6px}#app.v177-shell #page .invoice-contrast .invoice-item-count{min-width:30px}#app.v177-shell #page .invoice-contrast .v177-equivalents{gap:8px}#app.v177-shell #page .invoice-contrast .v177-equivalents>div+div{padding-left:8px}}

/* Emission validation and actions remain legible in compact rows. */
#app.v177-shell #page .invoice-contrast .invoice-quantity-error{display:block;font-size:12px!important;line-height:1.2;color:#b42318;white-space:normal;min-width:110px}
#app.v177-shell #page .invoice-contrast .invoice-quantity-error[hidden]{display:none}
#app.v177-shell #page .invoice-contrast .sale-rate-action{color:#fff;background:#354952;border:1px solid #68808b;font-size:11px;padding:5px 8px;white-space:nowrap}
#app.v177-shell #page .invoice-contrast .v177-draft-status:empty{display:none}
#app.v177-shell #page.v192-order .invoice-contrast .v177-checkout .actions{flex-wrap:wrap!important}


#app.v177-shell #page .sale-more-actions{position:relative;margin-left:auto;font-size:12px}
#app.v177-shell #page .sale-more-actions summary{cursor:pointer;color:#175da5}
#app.v177-shell #page .sale-more-actions>div{position:absolute;right:0;top:100%;width:240px;z-index:20;display:grid;gap:5px;background:var(--panel,#fff);padding:10px;border:1px solid #bfcdd8;border-radius:8px;box-shadow:0 4px 20px #182d3326}
#app.v177-shell #page .invoice-contrast .v177-checkout>[role=status]:empty{display:none}
/* Presupuestos: misma superficie de trabajo que Emitir documentos. */
#app.v177-shell #page.v194-quotation .order-detail>header{background:#eaf2ff;border-bottom:1px solid #bfcdd8;margin:-8px -14px 8px;padding:8px 14px;flex-shrink:0}
#app.v177-shell #page.v194-quotation .order-detail>header h3{color:#0055c8!important;margin:0;font-size:14px}
#app.v177-shell #page.v194-quotation .v107-add-line{margin-top:5px;border-color:#7ba7f7;background:#f6f9ff;font-weight:650;flex-shrink:0}
#app.v177-shell #page.v194-quotation .order-quantity{white-space:nowrap}
html[data-theme=dark] #app.v177-shell #page.v194-quotation .order-detail>header{background:#233e54;border-color:#506978}
html[data-theme=dark] #app.v177-shell #page.v194-quotation .order-detail>header h3{color:#c5dfff!important}
html[data-theme=dark] #app.v177-shell #page.v194-quotation .v107-add-line{background:#233e54;color:#c5dfff}
@media(min-width:1000px){
 #app.connected-shell.v177-shell #page.v177-workspace.v192-order.v107-inline-order.v194-quotation{display:flex!important;flex-direction:column;overflow:hidden!important;padding-bottom:12px!important}
 #app.v177-shell #page.v194-quotation .v177-form,#app.v177-shell #page.v194-quotation .v177-fields{flex:1 1 0!important;min-height:0;overflow:hidden}
 #app.v177-shell #page.v194-quotation .order-detail{flex:1 1 0!important;min-height:110px;overflow:hidden}
 #app.v177-shell #page.v194-quotation .order-detail>.invoice-items{flex:1 1 0;min-height:0;overflow-y:auto!important;overflow-x:hidden}
 #app.v177-shell #page.v194-quotation .v177-checkout{position:static;flex-shrink:0;margin-bottom:0}
 #app.v177-shell #page.v194-quotation .v194-quote-extras{flex-shrink:0;max-height:34vh;overflow:auto}
}
@media(max-width:999px){#app.v177-shell #page.v194-quotation .order-detail>header{margin:-14px -14px 10px;padding:12px 14px}}
/* Nota de crédito: contraste y jerarquía compartidos con Emisión. */
#app.v177-shell #page .credit-contrast .v177-credit-products>h3{background:#eaf2ff;color:#0055c8!important;border-bottom:1px solid #bfcdd8;margin:-8px -14px 10px;padding:8px 14px;flex-shrink:0}
#app.v177-shell #page .credit-contrast .v177-checkout .invoice-total{color:#fff!important;font-weight:700;font-size:16px;margin:0;background:none}
#app.v177-shell #page .credit-contrast .related-line{position:relative;padding-left:32px!important;gap:10px}
#app.v177-shell #page .credit-row-number{position:absolute;left:0;top:14px;width:25px;line-height:24px;text-align:center;font-size:12px;font-weight:700;color:#526c80;background:#edf3f9;border-radius:4px}
#app.v177-shell #page .credit-contrast .v177-credit-products>label:has([name=detail]){flex-shrink:0;margin-top:8px}
#app.v177-shell #page .credit-contrast [name=detail]{min-height:38px;height:38px;max-height:100px}
html[data-theme=dark] #app.v177-shell #page .credit-contrast .v177-credit-products>h3{background:#233e54;color:#c5dfff!important;border-color:#506978}
html[data-theme=dark] #app.v177-shell #page .credit-row-number{background:#294455;color:#dfecf8}
@media(max-width:999px){#app.v177-shell #page .credit-contrast .v177-credit-products>h3{margin:-14px -14px 10px;padding:12px 14px}}
@media(min-width:1000px){#app.v177-shell #page .credit-contrast .v177-checkout>.invoice-total{grid-column:1!important;grid-row:1}#app.v177-shell #page .credit-contrast .v177-checkout>.actions{grid-column:2;grid-row:1}}

/* Credit terms: aligned controls, compact on notebooks and readable on phones. */
#app.v177-shell #page .v177-terms :is(.v177-credit,.credit-fields):not([hidden]){display:grid;grid-template-columns:110px 170px 210px;align-items:end;gap:8px 12px;grid-column:1/-1;border-top:1px solid #dce5ef;padding-top:8px;max-width:100%}
#app.v177-shell #page .v177-terms :is(.v177-credit,.credit-fields)>label{min-width:0;max-width:none;width:100%;margin:0;display:flex;flex-direction:column;gap:4px;white-space:nowrap;font-size:12px}
#app.v177-shell #page .v177-terms :is(.v177-credit,.credit-fields)>label input{width:100%;min-width:0;min-height:34px;height:34px;margin:0;box-sizing:border-box}
#app.v177-shell #page .v177-terms .v177-credit:not(:has(label:not([hidden]))){display:none}
#app.v177-shell #page .v177-terms .credit-preview{grid-column:1/-1;max-height:160px;overflow:auto}
#app.v177-shell #page .v177-terms .credit-preview:empty{display:none}
html[data-theme=dark] #app.v177-shell #page .v177-terms :is(.v177-credit,.credit-fields){border-color:#506978}
@media(max-width:600px){
 #app.v177-shell #page .v177-terms :is(.v177-credit,.credit-fields):not([hidden]){grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}
 #app.v177-shell #page .v177-terms :is(.v177-credit,.credit-fields)>label:has([name=firstDueDate]){grid-column:1/-1}
}

.receipt-retentions,.receipt-advances{border:1px solid #dce5ef;border-radius:8px;padding:10px;margin:4px 0}.receipt-retentions summary,.receipt-advances summary{font-weight:600;cursor:pointer}.receipt-retention-row{display:grid;grid-template-columns:1fr 1.5fr 1fr 1fr;gap:10px;align-items:end;padding:10px 0}.receipt-advances>div>label{margin:8px 0}.receipt-retention-row label{min-width:0}@media(max-width:700px){.receipt-retention-row{grid-template-columns:1fr 1fr}}

.settlement-customer-results{display:flex;flex-wrap:wrap;gap:6px}.settlement-customer-results:empty,.settlement-party:empty{display:none}.settlement-party{font-weight:600;margin:0}.settlement-invoice-search{width:min(960px,94vw);max-height:90vh;overflow:auto}.settlement-search-tools{display:flex;gap:12px;align-items:end;margin-bottom:12px}.settlement-search-tools>input{flex:1;min-width:0}.settlement-search-list{max-height:50vh;overflow:auto}.receipt-invoice-picker>button{margin-bottom:10px}.receipt-invoice-picker tr[hidden],.receipt-invoice-picker table[hidden]{display:none!important}.receipt-picker-dialog .v177-code{display:flex}.settlement-invoice-search .actions{position:sticky;bottom:0;background:var(--panel,#fff);padding:10px 0}

.receipt-picker-dialog .v177-code{display:flex;align-items:center;border:1px solid #c5d3e3;border-radius:6px;overflow:hidden;min-height:38px}.receipt-picker-dialog .v177-code>input{flex:0 0 55px;width:55px;min-width:0;border:0;border-radius:0;background:#e4efff;color:#005bd8;text-align:center;font-weight:700;margin:0;border-right:1px solid #c5d3e3}.receipt-picker-dialog .v177-code>span{flex:1;padding:0 12px;font-weight:600}.receipt-picker-dialog .fields{gap:12px}.settlement-search-tools label{min-width:130px}
/* Remission: one scroll surface, section hierarchy and reachable final actions. */
#app.connected-shell.v177-shell #page.remission-workspace{display:block!important;height:100%!important;max-height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding-bottom:100px!important;scroll-padding:16px 0 100px;scrollbar-gutter:stable}
#app.v177-shell #page.remission-workspace>div,#app.v177-shell #page.remission-workspace .v177-form{display:block!important;height:auto!important;max-height:none!important;overflow:visible!important}
#app.v177-shell #page.remission-workspace .v191-remission-fields{overflow:visible!important;flex:none;padding:2px;gap:14px}
#app.v177-shell #page.remission-workspace .v191-panel{border:1px solid #bfcedb;border-radius:9px;padding:12px;background:var(--meta-surface);box-shadow:0 2px 4px #17363d08}
#app.v177-shell #page.remission-workspace .v191-panel>h3{margin:-12px -12px 12px;padding:9px 12px;background:#eaf2ff;color:#0055c8!important;border-bottom:1px solid #bfcedb;border-radius:9px 9px 0 0;font-size:14px;font-weight:700}
#app.v177-shell #page.remission-workspace .v191-remission-footer{background:#1b2c34;color:white;border:0;border-radius:9px;padding:12px 14px;gap:12px}
#app.v177-shell #page.remission-workspace .v191-remission-footer .invoice-total{color:white!important;flex:1;font-size:13px}
#app.v177-shell #page.remission-workspace .v191-remission-footer .error{color:#ffd0ce}
html[data-theme=dark] #app.v177-shell #page.remission-workspace .v191-panel{border-color:#506978}
html[data-theme=dark] #app.v177-shell #page.remission-workspace .v191-panel>h3{background:#233e54;color:#c5dfff!important;border-color:#506978}
@media(max-width:900px){#app.v177-shell #page.remission-workspace .v191-route{grid-template-columns:1fr}#app.v177-shell #page.remission-workspace .v191-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#app.v177-shell #page.remission-workspace .v191-grid{grid-template-columns:1fr}}

/* V0 emission: share the established blue sections and dark totals. */
#app.v0-shell .v0-products-panel>h2 {background:#e9f1ff;color:#0061d9;border-bottom:1px solid #ccd9e9;margin:-12px -12px 10px;padding:10px 12px;border-radius:10px 10px 0 0}
#app.v0-shell .v0-checkout {background:#3B505B!important;border-color:#3B505B!important;color:#fff!important}
#app.v0-shell .v0-checkout strong,#app.v0-shell .v0-checkout .v0-total {color:#fff}
#app.v0-shell .v0-checkout small,#app.v0-shell .v0-checkout .v0-muted {color:#d0dfea}
#app.v0-shell .v0-coded-value input {background:#e4efff!important;color:#005dd7!important;font-weight:700}
#app.v0-shell .v0-customer-search .v0-button {background:#0866f5;color:#fff;border-color:#0866f5}
[data-theme=dark] #app.v0-shell .v0-products-panel>h2 {background:#193b58;color:#afd4ff;border-color:#36566c}
#app.v0-shell .v0-checkout :is(strong,b,output,.v0-total) {color:#fff!important}
/* Mobile V0 follows the supplied card, product sheet and pinned total reference. */
.v0-mobile-products,.v0-mobile-product-heading,.v0-mobile-client-heading,.v0-mobile-total,.v0-mobile-select,.v0-mobile-clear{display:none}
.v0-product-sheet{box-sizing:border-box;width:min(560px,100%);max-width:100%;max-height:90dvh;margin:auto auto 0;padding:24px 22px calc(24px + env(safe-area-inset-bottom));border:0;border-radius:24px 24px 0 0;background:#f3f4f7;color:#17212a;overflow:auto;overscroll-behavior:contain}
.v0-product-sheet::backdrop{background:#15212a80}
.v0-product-sheet form{display:grid;gap:18px}.v0-product-sheet header{display:flex;align-items:center;justify-content:space-between}.v0-product-sheet h2{margin:0;font-size:23px}.v0-product-sheet label{display:grid;gap:8px;font-size:14px}.v0-product-sheet :is(input,select){box-sizing:border-box;width:100%;min-width:0;font:inherit;font-size:16px;min-height:52px;border:1px solid #d5dae2;border-radius:16px;background:#eceef2;color:inherit;padding:12px 14px}.v0-product-sheet :is(input,select):focus-visible{outline:3px solid #91b3ff;outline-offset:1px}.v0-sheet-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.v0-sheet-hint{margin:0;color:#52697c}.v0-sheet-error:empty{display:none}.v0-sheet-error{color:#ae2231}.v0-product-sheet button{font:600 16px/1.2 Inter,system-ui;min-height:44px;touch-action:manipulation;cursor:pointer}.v0-sheet-close{border:0;background:transparent;color:#3b5365;padding:8px}.v0-sheet-save{border:0;border-radius:28px;padding:16px;background:#3478f6;color:white}.v0-product-sheet button:active{filter:brightness(.92)}
@media all{
 #app.v0-shell:has(.v0-mobile-ready){height:auto!important;min-height:100dvh;overflow:visible!important}
 #app.v0-shell .v0-mobile-ready{height:auto!important;max-height:none!important;overflow:visible!important;padding:16px 12px calc(110px + env(safe-area-inset-bottom))!important;display:block!important}
 #app.v0-shell:has(.v0-mobile-ready) .connected-bottom{display:none!important}
 body:has(.v0-mobile-ready) .app-version{display:none!important}
 #app.v0-shell .v0-mobile-ready .v0-title{margin-bottom:16px;flex-wrap:wrap;gap:10px}#app.v0-shell .v0-mobile-ready .v0-title h1{font-size:23px!important}#app.v0-shell .v0-mobile-ready .v0-title p{font-size:12px;margin:4px 0}
 #app.v0-shell .v0-mobile-ready .v0-panel{border:0!important;border-radius:24px!important;padding:18px!important;margin:0 0 14px!important;box-shadow:0 1px 3px #182c4010!important}
 #app.v0-shell .v0-mobile-ready .v0-sales-form{display:block!important}
 #app.v0-shell .v0-mobile-ready .v0-doc-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:14px!important}
 #app.v0-shell .v0-mobile-ready .v0-doc-grid>:first-child,#app.v0-shell .v0-mobile-ready .v0-doc-grid>:last-child{grid-column:1/-1}
 #app.v0-shell .v0-mobile-ready .v0-coded-value{display:none!important}
 #app.v0-shell .v0-mobile-ready .v0-mobile-select{display:block!important}
 #app.v0-shell .v0-mobile-ready :is(input:not([type=hidden]),select){font-size:16px!important;min-height:50px!important;border-radius:16px!important;background:#f0f2f5!important;padding:12px!important;width:100%;box-sizing:border-box}
 #app.v0-shell .v0-mobile-ready label{font-size:13px!important;gap:7px!important;min-width:0}
 #app.v0-shell .v0-mobile-ready .v0-customer-compact{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 #app.v0-shell .v0-mobile-ready .v0-client-name{display:grid!important;grid-template-columns:1fr!important;width:100%!important}
 #app.v0-shell .v0-mobile-ready .v0-customer-search{display:grid!important;grid-template-columns:minmax(0,1fr) 50px!important;gap:10px!important;width:100%!important}
 #app.v0-shell .v0-mobile-ready .v0-customer-search .v0-icon{background:#3478f6!important;color:#fff!important;border:0!important;border-radius:50%!important;width:50px!important;height:50px!important}
 #app.v0-shell .v0-mobile-ready .v0-mobile-client-heading{display:block!important;color:#3478f6!important;margin:0!important;font-size:16px!important}
 #app.v0-shell .v0-mobile-ready .v0-products-panel>:is(h2,.v0-lines,.v0-add,.v0-products-space){display:none!important}
 #app.v0-shell .v0-mobile-ready .v0-products-panel{min-height:0!important;height:auto!important;display:block!important}
 .v0-mobile-product-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.v0-mobile-product-heading h2{background:none!important;border:0!important;margin:0!important;padding:0!important;color:#3478f6!important;font-size:16px!important}
 .v0-mobile-products{display:grid;gap:12px}.v0-mobile-product{border:1px solid #dce1e9;border-radius:18px;background:#f7f8fb;padding:12px}.v0-mobile-product-top{display:flex;gap:9px;align-items:flex-start}.v0-mobile-number{background:#e2edff;color:#1964db;border-radius:50%;min-width:28px;height:28px;display:grid;place-items:center;font-size:13px}.v0-mobile-product-copy{flex:1;min-width:0;overflow-wrap:anywhere}.v0-mobile-product-copy strong{font-size:15px}.v0-mobile-product-copy small{display:block;font-size:12px;color:#52697c;margin-top:4px}.v0-mobile-product-actions{display:flex;gap:4px;flex-wrap:wrap;max-width:110px}.v0-mobile-product-actions button{border:0;background:#e3edff;color:#1454b1;border-radius:12px;padding:8px;font-size:12px;min-height:44px}.v0-mobile-product-actions .danger{background:#ffeaed;color:#b62135}.v0-mobile-product-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}.v0-mobile-product-bottom>strong{font-size:16px;overflow-wrap:anywhere}.v0-mobile-stepper{display:flex;align-items:center;gap:12px}.v0-mobile-stepper button{border:0;border-radius:50%;width:44px;height:44px;font-size:23px;background:#e3edff;color:#1454b1}.v0-mobile-stepper button:disabled{opacity:.45}.v0-mobile-add{border:0;border-radius:24px;padding:10px 14px;background:#e3edff;color:#1454b1;font-size:14px;min-height:44px}.v0-mobile-empty{text-align:center;padding:32px 6px}.v0-mobile-empty strong{font-size:19px}.v0-mobile-empty p{color:#52697c;font-size:14px}
 #app.v0-shell .v0-mobile-ready .v0-checkout{position:fixed!important;left:0!important;right:0!important;bottom:0!important;border-radius:0!important;border:0!important;border-top:1px solid #dce1e9!important;z-index:40;background:#fff!important;box-shadow:0 -3px 16px #19263708!important;margin:0!important;padding:12px max(16px,env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom))!important;display:flex!important;flex-wrap:nowrap!important;gap:12px!important}
 #app.v0-shell .v0-mobile-ready .v0-checkout>.v0-currency-totals{display:none!important}.v0-mobile-total{display:grid;gap:4px;min-width:0}.v0-mobile-total small{font-size:11px!important}.v0-mobile-total strong{font-size:23px!important;overflow-wrap:anywhere}
 #app.v0-shell .v0-mobile-ready .v0-checkout .v0-mobile-total strong{color:#17212a!important}#app.v0-shell .v0-mobile-ready .v0-checkout .v0-mobile-total small{color:#56616e!important}
 #app.v0-shell .v0-mobile-ready .v0-checkout>.v0-primary{background:#14b85b!important;color:#fff!important;border:0!important;border-radius:28px!important;padding:14px 18px!important;min-height:50px!important;font-size:14px!important;flex-shrink:0}#app.v0-shell .v0-mobile-ready .v0-checkout kbd{display:none!important}
 .v0-mobile-clear{display:block;margin-left:auto;border:0;background:transparent;color:#bb2434;min-height:44px;font-size:14px}
 .v0-mobile-ready button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.v0-mobile-ready button:active{filter:brightness(.93)}
 html[data-theme=dark] #app.v0-shell .v0-mobile-ready :is(input:not([type=hidden]),select),html[data-theme=dark] .v0-mobile-product{background:#243640!important;color:#edf2f6!important;border-color:#496071!important}
 html[data-theme=dark] #app.v0-shell .v0-mobile-ready .v0-checkout{background:#3B505B!important}html[data-theme=dark] #app.v0-shell .v0-mobile-ready .v0-checkout .v0-mobile-total strong{color:#fff!important}html[data-theme=dark] #app.v0-shell .v0-mobile-ready .v0-checkout .v0-mobile-total small{color:#d0dfea!important}
}
html[data-theme=dark] .v0-product-sheet{background:#3B505B;color:#edf2f6}html[data-theme=dark] .v0-product-sheet :is(input,select){background:#243640;border-color:#496071}html[data-theme=dark] .v0-sheet-hint,html[data-theme=dark] .v0-sheet-close{color:#d0dfea}
@media all{
 #app.v0-shell .v0-mobile-ready .v0-checkout{box-sizing:border-box!important;width:100%!important;align-items:center!important;min-height:0!important;height:auto!important}
 #app.v0-shell .v0-mobile-ready .v0-checkout>.v0-mobile-total{flex:1 1 auto!important;width:auto!important}
 #app.v0-shell .v0-mobile-ready .v0-checkout>.v0-primary{width:auto!important;flex:0 0 auto!important;max-width:48%!important}
 #app.v0-shell .v0-mobile-ready .v0-mobile-product{scroll-margin-bottom:110px}
}

/* The card editor is the V0 interface at every width, not only on phones. */
#app.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready{width:100%!important;max-width:800px!important;margin:0 auto!important;box-sizing:border-box!important;height:auto!important;max-height:none!important;overflow:visible!important;flex:none!important}
#app.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-sales-form{height:auto!important;max-height:none!important;overflow:visible!important;flex:none!important}
#app.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-checkout{left:50%!important;right:auto!important;transform:translateX(-50%);max-width:800px!important}
#app.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-doc-grid .v0-coded-value{display:none!important}
#app.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-title{display:flex!important;align-items:center!important}
#app.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-title>div{flex:1;min-width:0}
#app.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-title p{display:block!important}
@media(min-width:761px){
 #app.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready{padding-top:24px!important}
 #app.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-checkout{border-radius:20px 20px 0 0!important}
}
#app.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready{padding:24px 12px calc(120px + env(safe-area-inset-bottom))!important}
/* V0 credit and remission share the rounded document editor. */
#app.v0-shell #page.v0-main.v0-credit-main{width:100%!important;max-width:800px!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:auto!important;padding:24px 12px 120px!important;box-sizing:border-box}
#app.v0-shell:has(.v0-credit-main){height:auto!important;overflow:visible!important}
#app.v0-shell .v0-credit-main :is(.v0-panel,.v0-credit-line){border-radius:24px!important;padding:18px!important;background:var(--v0-surface)!important;box-shadow:0 1px 3px #182c4010!important}
#app.v0-shell .v0-credit-main :is(.v0-credit-client-row,.v0-credit-reference-row,.v0-grid){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
#app.v0-shell .v0-credit-main :is(input:not([type=checkbox]):not([type=hidden]),select){font-size:16px!important;min-height:50px!important;border-radius:16px!important;box-sizing:border-box;max-width:100%}
#app.v0-shell .v0-credit-main :is(.v0-sales-form,.v0-credit-content,.v0-lines,.v0-products-panel){height:auto!important;max-height:none!important;overflow:visible!important;flex:none!important;min-height:0!important}
#app.v0-shell .v0-credit-main .v0-line{display:block!important;margin:12px 0!important}
#app.v0-shell .v0-credit-main .v0-check{display:flex!important;gap:12px;align-items:center}
#app.v0-shell .v0-credit-main input[type=checkbox]{width:24px;height:24px;flex:none}
#app.v0-shell .v0-credit-main .v0-checkout{position:sticky!important;bottom:0!important;background:var(--v0-surface)!important;border-radius:20px!important;display:flex!important;justify-content:space-between;gap:12px;padding:16px!important;z-index:20}
#app.v0-shell .v0-credit-main .v0-checkout :is(strong,small){color:var(--v0-text)!important}
#app.v0-shell .v0-credit-main .v0-checkout .v0-primary{background:#14b85b!important;border:0!important;border-radius:28px!important;min-height:50px;width:auto!important}
body dialog.v0-related.related-document-dialog{width:min(800px,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important;border:0!important;border-radius:24px!important;padding:20px!important;box-sizing:border-box;overflow:auto!important;background:var(--panel,#f3f4f7)}
body dialog.v0-related.related-document-dialog>header{color:#3478f6;padding-bottom:16px}
body dialog.v0-related.related-document-dialog .fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
body dialog.v0-related.related-document-dialog :is(input:not([type=checkbox]):not([type=hidden]),select,textarea){min-height:50px!important;font-size:16px!important;border-radius:16px!important;width:100%;max-width:100%;box-sizing:border-box}
body dialog.v0-related.related-document-dialog label{min-width:0}
body dialog.v0-related.related-document-dialog .related-line{display:block!important;border:1px solid #dce1e9;border-radius:18px;padding:16px!important;margin:12px 0}
body dialog.v0-related.related-document-dialog input[type=checkbox]{width:24px;height:24px}
body dialog.v0-related.related-document-dialog .actions{position:sticky;bottom:-20px;background:var(--panel,#fff);padding:14px 0;display:flex;flex-wrap:wrap;z-index:20}
body dialog.v0-related.related-document-dialog button[type=submit]{background:#14b85b!important;border:0!important;border-radius:28px!important;min-height:50px;color:white!important}
@media(max-width:600px){body dialog.v0-related.related-document-dialog .fields{grid-template-columns:minmax(0,1fr)!important}body dialog.v0-related.related-document-dialog .fields>*{grid-column:1!important}}
.v0-transport-picker{background:var(--panel,#fff);border:1px solid #dce1e9;border-radius:24px;padding:18px;display:grid;gap:14px}.v0-transport-picker h3{color:#3478f6;margin:0}.v0-transport-picker details>label{display:block;margin-top:14px}.v0-transport-picker summary{cursor:pointer;min-height:44px;padding:12px 0}
/* Center the product editor and keep native mobile text inside its control. */
/* Keep header and save action inside the visible viewport when the keyboard opens. */
body dialog.v0-product-sheet{position:fixed;top:calc(var(--item-top,0px) + 8px)!important;bottom:auto!important;left:0;right:0;margin:0 auto!important;padding:0!important;border-radius:20px!important;width:min(560px,calc(100% - 16px));max-width:calc(100vw - 16px)!important;max-height:calc(var(--item-height,100dvh) - 16px)!important;overflow:hidden!important}
body dialog.v0-product-sheet form{display:flex;flex-direction:column;gap:0;max-height:calc(var(--item-height,100dvh) - 16px);min-height:0}
body dialog.v0-product-sheet header{flex-shrink:0;padding:12px 16px;border-bottom:1px solid #d5dae2;gap:12px}
body dialog.v0-product-sheet h2{font-size:19px;line-height:1.25}
body dialog.v0-product-sheet .v0-sheet-close{flex-shrink:0;width:44px;height:44px;font-size:28px;border-radius:12px}
body dialog.v0-product-sheet .v0-sheet-body{display:grid;gap:12px;padding:16px;overflow-y:auto;min-height:0;overscroll-behavior:contain;scroll-padding:16px}
body dialog.v0-product-sheet .v0-sheet-body label{gap:6px}
body dialog.v0-product-sheet .v0-sheet-hint{font-size:13px;line-height:1.5}
body dialog.v0-product-sheet .v0-sheet-footer{flex-shrink:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #d5dae2;background:inherit}
body dialog.v0-product-sheet .v0-sheet-save{width:100%;min-height:48px;padding:12px;border-radius:14px!important;background:#1764db!important;color:#fff!important;border:0!important}
body dialog.v0-product-sheet .v0-sheet-error{margin:0 0 6px;font-size:13px}
html[data-theme=dark] body dialog.v0-product-sheet :is(header,.v0-sheet-footer){border-color:#496071}
html[data-theme=dark] body dialog.v0-product-sheet .v0-sheet-close{background:#294552;color:#fff}
html[data-theme=dark] body dialog.v0-product-sheet .v0-sheet-error{color:#ffb6c0}
#app.v0-shell .v0-mobile-ready .v0-mobile-empty{padding:12px 6px;text-align:left}
#app.v0-shell .v0-mobile-ready .v0-mobile-empty strong{font-size:16px}
#app.v0-shell .v0-mobile-ready .v0-mobile-empty p{margin:8px 0 0;line-height:1.5}
#app.v0-shell .v0-mobile-ready .v0-products-panel{box-shadow:none!important}
#app.v0-shell .v0-mobile-ready .v0-mobile-add{background:#1764db!important;color:#fff!important;border:0!important}
html[data-theme=dark] #app.v0-shell .v0-mobile-ready :is(.v0-mobile-empty p,.v0-mobile-product-copy small){color:#c5d7e2!important}
html[data-theme=dark] #app.v0-shell .v0-mobile-ready :is(.v0-mobile-stepper button,.v0-mobile-product-actions button){background:#294552!important;color:#f2f7ff!important}
html[data-theme=dark] #app.v0-shell .v0-mobile-ready .v0-mobile-product-actions .danger{background:#512d38!important;color:#ffd3da!important}
#app .v0-catalog-panel{display:grid;gap:16px;padding:20px;max-width:900px;margin-inline:auto}
#app .v0-catalog-panel>h1{font-size:24px;line-height:1.25;margin:0}
#app .v0-catalog-panel>p{margin:0;line-height:1.5}
#app .v0-catalog-panel>button{background:#1764db!important;color:white!important;border:0!important;border-radius:14px;min-height:48px;padding:12px 16px;justify-content:center}
#app .v0-catalog-panel>input{font-size:16px!important;box-sizing:border-box;width:100%;min-width:0;min-height:48px;border-radius:12px}
#app .v0-catalog-status{font-size:14px;color:#52697c}
#app .v0-catalog-list{display:grid;gap:12px}
#app .v0-catalog-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;margin:0;padding:16px;box-shadow:none}
#app .v0-catalog-card>strong{overflow-wrap:anywhere}
#app .v0-catalog-card>p{grid-column:1;margin:0;font-size:14px;line-height:1.5}
#app .v0-catalog-card>button{grid-column:2;grid-row:1/3;align-self:center;min-height:44px}
html[data-theme=dark] #app .v0-catalog-status,html[data-theme=dark] #app .v0-catalog-card>p{color:#c5d7e2!important}
html[data-theme=dark] #app .v0-catalog-card>button{background:#294552!important;color:#fff!important;border-color:#496071!important}
body dialog.v0-catalog-editor .v0-sheet-body{grid-template-columns:1fr 1fr}
body dialog.v0-catalog-editor .v0-sheet-body>label:first-child{grid-column:1/-1}
body dialog.v0-catalog-editor .v0-sheet-close{padding:0!important}
body dialog.v0-product-sheet .v0-description-control{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:8px}
body dialog.v0-product-sheet .v0-catalog-search{width:48px;min-height:48px;border:0!important;border-radius:14px;background:#1764db!important;color:white!important;font-size:30px}
body dialog.v0-product-sheet .v0-catalog-results{display:grid;gap:8px}
body dialog.v0-product-sheet .v0-catalog-result{display:grid;gap:6px;text-align:left;padding:14px;border:1px solid #c7d3e1!important;border-radius:12px;background:#fff!important;color:#17212a!important;overflow-wrap:anywhere}
body dialog.v0-product-sheet .v0-catalog-result small{font-size:13px;line-height:1.5;font-weight:400}
html[data-theme=dark] body dialog.v0-product-sheet .v0-catalog-result{background:#243640!important;border-color:#496071!important;color:#f2f7ff!important}
html[data-theme=dark] body dialog.v0-product-sheet .v0-catalog-result small{color:#c5d7e2}
/* The form is a layout container: only its cards paint a surface. */
html #app.v0-shell #page.v0-mobile-ready .v0-sales-form{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important}
html #app.v0-shell #page.v0-mobile-ready .v0-sales-form>.v0-panel{border-radius:24px!important;box-shadow:none!important}
.v0-products-table{min-width:320px}
.v0-products-table td:nth-child(2){min-width:180px;white-space:normal;overflow-wrap:anywhere}
.v0-products-table td:nth-child(4){white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
#app.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready select.v0-mobile-select{height:52px!important;min-height:52px!important;line-height:normal!important;padding:0 38px 0 14px!important;appearance:auto!important;-webkit-appearance:menulist!important}
body dialog.v0-pdf-preview{width:min(960px,calc(100vw - 20px));height:calc(100dvh - 24px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);padding:0!important;border:0;border-radius:18px;margin:auto;overflow:hidden}
body dialog.v0-pdf-preview[open]{display:flex!important;flex-direction:column}
.v0-pdf-preview>header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;color:#17212a;flex:none;border-bottom:1px solid #dce1e9}
.v0-pdf-preview>header strong{flex:1}.v0-pdf-preview iframe{width:100%;flex:1;min-height:0;border:0}.v0-pdf-preview .v0-pdf-close{display:flex;align-items:center;gap:6px;min-width:44px;min-height:44px;border:0;border-radius:12px;background:#e3edff;color:#1454b1;padding:8px 12px;font-size:16px}.v0-pdf-close>span:first-child{font-size:28px}.v0-pdf-preview::backdrop{background:#15212a99}
#app.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready input[type=checkbox]{width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;flex:none;appearance:auto}
/* V0 uses native touch pickers in forms and customer dialogs. */
.v0-coded:has(.v0-native-choice) .v0-coded-value{display:none!important}
body .v0-coded select.v0-native-choice{display:block!important;box-sizing:border-box;width:100%;height:52px!important;min-height:52px!important;padding:0 36px 0 14px!important;line-height:normal!important;font-size:16px!important;border-radius:14px!important;appearance:auto!important;-webkit-appearance:menulist!important}
.connected-control-icon{display:none;width:22px;height:22px;flex:none}
@media(max-width:760px){
 #app.connected-shell.connected-compact-mobile>.connected-top{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;align-items:center!important;padding:8px 10px!important;min-height:64px!important;box-sizing:border-box}
 #app.connected-compact-mobile>.connected-top>img{width:104px!important;height:auto!important;flex:0 0 104px!important;max-width:104px!important}
 #app.connected-compact-mobile .connected-company{flex:1 1 auto!important;min-width:0!important;width:auto!important}
 #app.connected-compact-mobile .connected-company strong{font-size:11px!important;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #app.connected-compact-mobile .connected-company small{font-size:9px!important;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #app.connected-compact-mobile .connected-actions{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;flex:0 0 auto!important;width:auto!important;margin:0!important}
 #app.connected-compact-mobile .connected-actions button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:10px!important;display:grid!important;place-items:center;border-radius:50%!important}
 #app.connected-compact-mobile .connected-control-label{display:none!important}
 #app.connected-compact-mobile .connected-control-icon{display:block!important}
}

/* Keep the client search within the visible viewport when the phone keyboard opens. */
@media(max-width:760px){
 body dialog.v0-client-register[open]{position:fixed!important;inset:auto!important;top:calc(var(--client-viewport-top,0px) + 8px)!important;left:8px!important;margin:0!important;width:calc(100% - 16px)!important;max-width:none!important;height:calc(var(--client-viewport-height,100dvh) - 16px)!important;max-height:calc(var(--client-viewport-height,100dvh) - 16px)!important;padding:16px!important;display:flex!important;flex-direction:column;overflow:hidden!important}
 body dialog.v0-client-register>header{flex:none;gap:8px;margin:0 0 10px}
 body dialog.v0-client-register>header h2{font-size:20px}
 body dialog.v0-client-register>header button{flex:none;min-width:44px;min-height:44px}
 body dialog.v0-client-register .v0-client-search-view:not([hidden]){display:flex;flex-direction:column;gap:8px;min-height:0;flex:1;overflow:hidden}
 body dialog.v0-client-register .v0-client-search-view>label,body dialog.v0-client-register .v0-client-search-view>button,body dialog.v0-client-register .v0-client-search-view>p{flex:none;margin:0}
 body dialog.v0-client-register .v0-code-list{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}
 body dialog.v0-client-register>form:not([hidden]){min-height:0;overflow-y:auto;overscroll-behavior:contain}
 body dialog.v0-client-register input{font-size:16px!important}
}

/* Render PDF pages without the mobile browser's embedded PDF plugin. */
body dialog.v0-pdf-preview>header{display:flex!important;gap:8px!important;padding:10px!important;background:#fff!important;color:#17212a!important}
body dialog.v0-pdf-preview>header strong{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#17212a!important;font-size:16px!important}
body dialog.v0-pdf-preview>header a{flex:none;color:#1454b1!important;font-size:14px;white-space:nowrap;padding:10px 0}
body dialog.v0-pdf-preview .v0-pdf-close{display:grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;overflow:visible!important;background:#e3edff!important;color:#1454b1!important}
body dialog.v0-pdf-preview .v0-pdf-close span{font-size:28px!important;line-height:1!important}
.v0-pdf-pages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:#e8edf2;color:#17212a;padding:10px}
.v0-pdf-pages canvas{display:block;width:100%;height:auto;margin:0 auto 10px;background:white}

.v0-report-filters,.v0-report-filters>label{min-width:0}
.v0-report-filters input,.v0-report-filters select{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important}
.v0-report-filters input[type=date]{display:block;min-inline-size:0!important;padding-inline:10px!important}
.v0-report-filters input[type=date]::-webkit-date-and-time-value{text-align:left;min-width:0}

#app .billing-home .billing-metrics.billing-metrics-with-rate{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.billing-metrics-with-rate>.connected-rate{margin:0!important;min-width:0;display:flex}
.v0-home-rate{box-sizing:border-box;width:100%;padding:12px;border:1px solid #b8cebf;border-radius:16px;background:#eff8f1;color:#163b26;display:flex;flex-direction:column;gap:7px}
.v0-rate-title{font-size:12px;font-weight:600}.v0-rate-value{font-size:20px;line-height:1.2}.v0-rate-state{font-size:12px;line-height:1.3}
.v0-home-rate button{margin-top:auto;min-height:44px;padding:8px!important;border-radius:10px!important;font-size:12px!important;background:#17633a!important;color:#fff!important;border:1px solid transparent!important;white-space:normal}
.v0-home-rate.is-pending{background:#fff4df;border-color:#dcab4e;color:#684100}
.v0-home-rate.is-pending button{background:#8c5400!important;color:#fff!important}
html[data-theme=dark] .v0-home-rate{background:#183c32;border-color:#477a68;color:#e3f9ed}
html[data-theme=dark] .v0-home-rate button{background:#9be4bd!important;color:#103623!important}
html[data-theme=dark] .v0-home-rate.is-pending{background:#3a3020;border-color:#b88b3d;color:#ffe4ad}
html[data-theme=dark] .v0-home-rate.is-pending button{background:#ffd281!important;color:#3d2804!important}

/* Balanced, compact daily summary. */
#app .billing-metrics-with-rate{align-items:stretch!important}
#app .billing-metrics-with-rate>.billing-metric{min-height:0!important;height:auto!important;padding:12px!important;gap:6px!important;margin:0!important}
#app .billing-metrics-with-rate>.connected-rate{align-self:stretch!important;align-items:stretch!important;margin:0!important;padding:0!important}
#app .billing-metrics-with-rate .v0-home-rate{position:relative;min-height:0!important;height:100%!important;margin:0!important;padding:12px!important;gap:6px!important;box-sizing:border-box}
#app .billing-metrics-with-rate .billing-value{font-size:22px!important;line-height:1.2!important;margin:0!important}
#app .billing-metrics-with-rate .billing-metric-detail{margin-top:auto!important}
#app .v0-home-rate.is-pending::after{content:'';position:absolute;inset:0;border:2px solid #ffcb70;border-radius:inherit;pointer-events:none;animation:v0-rate-pulse 1.8s ease-in-out infinite}
@keyframes v0-rate-pulse{0%,100%{opacity:.15}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){#app .v0-home-rate.is-pending::after{animation:none!important;opacity:.6}}

/* New order fills the desktop workspace; the product list scrolls above totals. */
@media(min-width:1000px) and (min-height:700px){
 #app.connected-shell.v177-shell #page.v177-workspace.v192-order.v107-inline-order:not(.v194-quotation){display:flex!important;flex-direction:column;overflow:hidden!important;padding-bottom:12px!important}
 #app.v177-shell #page.v107-inline-order:not(.v194-quotation) .v177-form,#app.v177-shell #page.v107-inline-order:not(.v194-quotation) .v177-fields{flex:1 1 0!important;min-height:0;overflow:hidden}
 #app.v177-shell #page.v107-inline-order:not(.v194-quotation) .order-detail{flex:1 1 0!important;min-height:110px;overflow:hidden}
 #app.v177-shell #page.v107-inline-order:not(.v194-quotation) .order-detail>.invoice-items{flex:1 1 0;min-height:0;overflow-y:auto!important;overflow-x:hidden}
 #app.v177-shell #page.v107-inline-order:not(.v194-quotation) .v177-checkout{position:static;flex-shrink:0;margin-bottom:0}
}

/* Approved V0 dashboard: desktop table, mobile cards. Scoped to the V0 home. */
#app .v0-home-approved.billing-home{display:block!important;max-width:1480px;margin:0 auto;padding:18px!important;overflow:visible!important}
#app .v0-home-approved .billing-intro{margin-bottom:18px!important}
#app .v0-home-approved .billing-toolbar{display:flex!important;width:100%;max-width:none;margin-bottom:18px!important;gap:14px}
#app .v0-home-approved .billing-search{flex:1;min-width:0}
#app .v0-home-approved .billing-search input{min-width:0;font-size:16px}
#app .v0-home-approved .billing-quick-sale{width:190px;flex:0 0 190px;background:#0064e0!important;color:#fff!important;border:0!important;min-height:48px;justify-content:center;gap:10px}
#app .v0-home-approved .billing-sale-fill,#app .v0-home-approved .billing-quick-sale kbd{display:none}
#app .v0-home-approved .billing-sale-arrow{background:transparent!important;color:#fff!important}
#app .v0-home-approved .billing-metrics.billing-metrics-with-rate{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px;margin-bottom:18px!important}
#app .v0-home-approved .billing-metrics>.billing-metric{padding:20px!important;min-height:142px!important}
#app .v0-home-approved .billing-aside{display:none!important}
#app .v0-home-approved .billing-dashboard-grid{display:block!important;width:100%;height:auto!important;min-height:0}
#app .v0-home-approved .billing-recent{width:100%;height:auto!important;max-height:none!important;padding:18px!important}
#app .v0-home-approved .table-wrap{max-height:none!important;height:auto!important;overflow-x:auto}
#app .v0-home-approved .billing-recent table{width:100%;table-layout:fixed}
#app .v0-home-approved .billing-recent td{overflow-wrap:anywhere;padding:16px 10px!important}
#app .v0-home-approved .billing-recent th:nth-child(2){width:27%}
#app .v0-home-approved .billing-recent th:last-child{width:48px}
#app .v0-home-approved .v0-home-rate{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-content:center;text-align:left!important;padding:20px!important;gap:8px!important;background:#fff!important;color:#1c2b33!important;border:1px solid #dce6ed!important;border-radius:16px}
#app .v0-home-approved .v0-rate-title,#app .v0-home-approved .v0-rate-value,#app .v0-home-approved .v0-rate-state{grid-column:1;overflow-wrap:anywhere}
#app .v0-home-approved .v0-home-rate button{grid-column:2;grid-row:1/4;align-self:center;min-height:46px;background:#0064e0!important;color:#fff!important;border:0!important;padding:12px 18px!important;border-radius:10px}
#app .v0-home-approved .v0-home-rate.is-pending{border:2px solid #dc3654!important}
#app .v0-home-approved .v0-home-rate.is-pending::after{display:none!important;animation:none!important}
#app .v0-home-approved .v0-home-rate.is-pending .v0-rate-state{color:#bd2342!important;font-weight:600}
html[data-theme=dark] #app .v0-home-approved .v0-home-rate{background:#1b3443!important;color:#fff!important;border-color:#334e5e!important}
html[data-theme=dark] #app .v0-home-approved .v0-home-rate.is-pending{border-color:#f04a68!important}
html[data-theme=dark] #app .v0-home-approved .v0-home-rate.is-pending .v0-rate-state{color:#ff8fa3!important}
body:has(.v0-home-approved) #app .connected-bottom .active{background:#0064e0!important;color:#fff!important}
@media(max-width:760px){
 body:has(.v0-home-approved) #app{min-width:0!important;height:auto!important;min-height:100dvh;overflow:visible!important;padding-bottom:calc(90px + env(safe-area-inset-bottom))!important}
 body:has(.v0-home-approved) #app>.page{height:auto!important;overflow:visible!important;padding:0!important;min-width:0}
 #app .v0-home-approved.billing-home{padding:16px!important;max-width:100%;min-width:0}
 #app .v0-home-approved .billing-toolbar{flex-direction:column;gap:10px}
 #app .v0-home-approved .billing-quick-sale{width:100%;flex-basis:auto;min-height:48px}
 #app .v0-home-approved .billing-metrics.billing-metrics-with-rate{grid-template-columns:minmax(0,1fr)!important;gap:12px}
 #app .v0-home-approved .billing-metrics>.billing-metric{min-height:125px!important;padding:16px!important}
 #app .v0-home-approved .v0-home-rate{padding:16px!important;grid-template-columns:minmax(0,1fr)!important}
 #app .v0-home-approved .v0-home-rate button{grid-row:auto;grid-column:1;justify-self:start}
 #app .v0-home-approved .billing-recent{padding:0!important;background:transparent!important;border:0!important;overflow:visible!important}
 #app .v0-home-approved .billing-recent thead{display:none}
 #app .v0-home-approved .billing-recent table,#app .v0-home-approved .billing-recent tbody{display:block;min-width:0!important;width:100%}
 #app .v0-home-approved .table-wrap{border:0!important;overflow:visible!important;min-width:0}
 #app .v0-home-approved .billing-recent tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,.65fr);gap:8px;border:1px solid #dce6ed;border-radius:14px;padding:14px;margin-bottom:12px;background:#fff}
 #app .v0-home-approved .billing-recent td{display:block;border:0!important;padding:0!important;min-width:0;white-space:normal!important}
 #app .v0-home-approved .billing-recent td:nth-child(2){grid-row:1;grid-column:1}
 #app .v0-home-approved .billing-recent td:nth-child(4){grid-row:1;grid-column:2;text-align:right;font-weight:700}
 #app .v0-home-approved .billing-recent td:first-child{grid-row:2;grid-column:1/-1;font-size:12px}
 #app .v0-home-approved .billing-recent td:nth-child(3){grid-row:3;grid-column:1/-1;font-size:12px}
 #app .v0-home-approved .billing-recent td:nth-child(5){grid-row:4;grid-column:1}
 #app .v0-home-approved .billing-recent td:last-child{grid-row:4;grid-column:2;justify-self:end}
 #app .v0-home-approved .billing-open-sale{min-height:44px;min-width:44px}
 html[data-theme=dark] #app .v0-home-approved .billing-recent tr{background:#1b3443;border-color:#334e5e}
 body:has(.v0-home-approved) #app .connected-top{height:auto!important;flex-wrap:wrap;gap:8px!important;padding:10px 16px!important}
 body:has(.v0-home-approved) #app .connected-top button{min-height:44px}
 body:has(.v0-home-approved) #app .connected-bottom{max-width:calc(100vw - 16px)!important;box-sizing:border-box;bottom:calc(8px + env(safe-area-inset-bottom))!important}
 body:has(.v0-home-approved) #app .connected-bottom button{min-width:0!important;padding:8px!important;min-height:48px;font-size:10px!important}
}
@media(max-width:760px){#app .v0-home-approved .billing-toolbar{align-items:stretch!important}#app .v0-home-approved .billing-search{width:100%!important;max-width:none!important;box-sizing:border-box}#app .v0-home-approved .billing-quick-sale{width:100%!important;max-width:none!important;height:48px!important;min-height:48px!important;flex:0 0 48px!important;aspect-ratio:auto!important}#app .v0-home-approved .billing-quick-sale .billing-sale-label{display:block!important}#app .v0-home-approved .billing-quick-sale .billing-sale-arrow{display:none!important}}
/* Center V0 editors inside the visible viewport, including mobile keyboard changes. */
body dialog.v0-product-sheet {
 top:calc(var(--item-top,0px) + var(--item-height,100dvh)/2)!important;
 bottom:auto!important;
 transform:translateY(-50%);
 margin:0 auto!important;
}
body dialog:is(.v0-product-sheet,.v0-lookup,.v0-pdf-preview)::backdrop {
 background:rgba(6,16,24,.72)!important;
 -webkit-backdrop-filter:blur(8px);
 backdrop-filter:blur(8px);
}


/* SYNGPRO NUBE CREDIT ROWS 1: preserve each product's intrinsic height. */
#app.v177-shell .v177-workspace .v177-credit-products>.related-items{
 grid-auto-rows:max-content;
}
#app.v177-shell .v177-workspace .v177-credit-products .related-line{
 min-height:auto;
}

/* SYNGPRO CREDIT SEARCH CSS 1 */
/* Compact credit notes, scoped to their original-invoice rows. */
body .credit-compact-items{display:grid!important;grid-auto-rows:max-content!important;gap:0!important;align-content:start;min-width:0}
body .credit-compact-items .credit-compact-columns,body #app #page .credit-compact-items .related-line,body .credit-compact-items .related-line{display:grid!important;grid-template-columns:28px minmax(0,1fr) 180px!important;gap:8px!important;align-items:center;padding:5px 0!important;min-height:46px!important;border:0!important;border-bottom:1px solid #dce5ed!important;border-radius:0!important;background:transparent}
body .credit-compact-items .credit-compact-columns{min-height:26px!important;font-size:12px;color:#5e7688;position:sticky;top:0;background:#fff;z-index:1}
body .credit-compact-columns>span:first-child{text-align:center}
body #app #page .credit-compact-items .credit-row-number,body .credit-compact-items .credit-row-number{position:static!important;grid-column:1;grid-row:1;align-self:stretch;display:flex;align-items:center;justify-content:center;width:28px!important;line-height:20px!important;border-right:1px solid #dce5ed;border-radius:0;background:transparent!important;font-size:12px;color:#526c80}
body .credit-compact-items .related-description{grid-column:2;grid-row:1;display:flex;gap:10px;min-width:0;padding:0!important;margin:0}
body .credit-compact-items .related-description>span{min-width:0;overflow-wrap:anywhere}
body .credit-compact-items .related-description strong{font-size:13px!important;line-height:1.3}
body .credit-compact-items .related-description small{display:block;font-size:11px!important;line-height:1.3;margin-top:3px!important}
body .credit-compact-items .related-line>label:not(.related-description){grid-column:3;min-width:0;font-size:11px}
body .credit-compact-items.credit-discount .related-line>label:has([name=amount]){font-size:0!important;gap:0!important}
body #app #page .credit-compact-items input:not([type=checkbox]),body .credit-compact-items input:not([type=checkbox]){height:30px!important;min-height:30px!important;font-size:13px!important;padding:4px 8px!important;margin:0!important;width:100%;box-sizing:border-box}
body .credit-compact-items input[type=checkbox]{width:17px!important;height:17px!important;min-height:17px!important;flex-shrink:0;margin:0}
body .credit-compact-items .return-lots{grid-column:2/-1}
body #app #page .credit-compact-total,body .credit-compact-total{display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:center!important;justify-content:flex-start!important;gap:16px!important;padding:8px 0!important;margin:0!important}
body .credit-compact-total>div{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0}
body .credit-compact-total>div+div{border-left:1px solid #72909e;padding-left:16px}
body .credit-compact-total small{font-size:11px!important;line-height:1.2}body .credit-compact-total strong{font-size:20px!important;line-height:1.2;font-variant-numeric:tabular-nums}
body #app.v177-shell #page .credit-contrast .credit-compact-items .related-line{padding:5px 0!important;min-height:46px!important;grid-template-columns:28px minmax(0,1fr) 180px!important;gap:8px!important}
body #app.v177-shell #page .credit-contrast .credit-compact-items.credit-discount .related-line>label:has([name=amount]){font-size:0!important;gap:0!important}
body .credit-compact-total{flex-wrap:nowrap!important}
body .credit-compact-total>div{width:auto!important;flex:0 1 auto!important}
body #app #page .v177-checkout .credit-compact-total strong{color:#fff!important}
body #app #page .v177-checkout .credit-compact-total small{color:#d1e0eb!important}
html[data-theme=dark] .credit-compact-items .credit-compact-columns{background:#1b3444;color:#cbdde8}
html[data-theme=dark] .credit-compact-items .credit-row-number{color:#cbdde8!important}
html[data-theme=dark] .credit-compact-items .related-line,html[data-theme=dark] .credit-compact-items .credit-row-number{border-color:#496170!important}
@media(max-width:640px){body .credit-compact-items .credit-compact-columns,body #app #page .credit-compact-items .related-line,body .credit-compact-items .related-line{grid-template-columns:24px minmax(0,1fr) 96px!important;gap:6px!important}body .credit-compact-items .credit-compact-columns{font-size:10px}body .credit-compact-items .related-description{gap:6px}body .credit-compact-items .related-description strong{font-size:12px!important}body .credit-compact-items .related-description small{font-size:11px!important}body .credit-compact-total{gap:12px!important}}
@media(max-width:640px){body #app.v177-shell #page .credit-contrast .credit-compact-items .related-line{grid-template-columns:24px minmax(0,1fr) 96px!important;gap:6px!important}}
/* Product search: separate row selection from price selection. */
dialog.v178-product-picker:not(.v193-picker) .v178-product-results{padding:4px;scroll-padding-top:44px}
dialog.v178-product-picker:not(.v193-picker) .v178-product-columns{z-index:1;border-radius:6px;margin-bottom:8px}
dialog.v178-product-picker:not(.v193-picker) .v178-product-result{padding:12px;margin:0 0 8px;border:1px solid #dce5ed;border-radius:8px;background:#fff;gap:10px;box-sizing:border-box}
dialog.v178-product-picker:not(.v193-picker) .v178-product-result>div:first-child{min-width:0;overflow-wrap:anywhere}
dialog.v178-product-picker:not(.v193-picker) .v178-product-result.is-keyboard-active{background:#f7faff;border-color:#a5c5ee;box-shadow:inset 3px 0 #0866ff}
dialog.v178-product-picker:not(.v193-picker) .v178-product-result>button{background:#fff;color:#075bc2;border-color:#adc7e5;min-width:0}
dialog.v178-product-picker:not(.v193-picker) .v178-product-result>button.is-keyboard-price{background:#0866ff;color:#fff;border-color:#0866ff;outline:none}
dialog.v178-product-picker:not(.v193-picker) .v178-product-result>button:focus-visible{outline:2px solid #075bc2;outline-offset:2px}
dialog.v178-product-picker:not(.v193-picker) .v180-depot-stock{border-top:1px solid #e2eaf0;padding-top:8px}
html[data-theme=dark] dialog.v178-product-picker:not(.v193-picker) .v178-product-result{background:#3B505B;border-color:#415966}
html[data-theme=dark] dialog.v178-product-picker:not(.v193-picker) .v178-product-result.is-keyboard-active{background:#233944;border-color:#77abeb}
html[data-theme=dark] dialog.v178-product-picker:not(.v193-picker) .v178-product-result small{color:#c0d1dc}
html[data-theme=dark] dialog.v178-product-picker:not(.v193-picker) .v178-product-result>button{background:#20323e;color:#d9eaff;border-color:#63809a}
html[data-theme=dark] dialog.v178-product-picker:not(.v193-picker) .v178-product-result>button.is-keyboard-price{background:#0866ff;color:#fff;border-color:#0866ff}
html[data-theme=dark] dialog.v178-product-picker:not(.v193-picker) .v180-depot-stock{border-color:#415966}
@media(max-width:640px){dialog.v178-product-picker:not(.v193-picker) .single-sale-price{grid-template-columns:minmax(0,1fr) 86px}dialog.v178-product-picker:not(.v193-picker) .v178-product-result{padding:10px;gap:8px}}

.credit-invoice-search{width:100%;min-width:0}.credit-invoice-search p{margin:6px 0}.credit-search-results{max-height:240px;overflow:auto;display:grid;gap:0}.credit-search-results[hidden],.credit-search-pager[hidden]{display:none!important}.credit-search-result{display:flex!important;justify-content:space-between;gap:12px;text-align:left;border:0!important;border-bottom:1px solid var(--line,#dce4ed)!important;border-radius:0!important;background:transparent!important;color:inherit!important;padding:9px!important;min-width:0}.credit-search-result strong{overflow-wrap:anywhere}.credit-search-result small{white-space:nowrap}.credit-search-result:hover,.credit-search-result:focus-visible{background:var(--hover,#e8f1ff)!important}.credit-search-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:6px;font-size:12px}.credit-search-chosen{font-size:12px}.credit-invoice-search input{width:100%}

/* SYNGPRO CREDIT INVOICE MODAL 2 */
dialog.credit-invoice-picker .credit-picker-row.primary strong,dialog.credit-invoice-picker .credit-picker-row.primary small{color:#fff!important}dialog.credit-invoice-picker>input:focus{outline:2px solid #0866ed;outline-offset:2px;border-color:#0866ed;box-shadow:none}
.credit-invoice-trigger{display:flex;gap:8px;align-items:center;width:100%}.credit-invoice-trigger>input{flex:1;min-width:0;cursor:pointer}.credit-invoice-trigger>button{flex:none;width:40px;font-size:24px;padding:0;height:36px}
dialog.credit-invoice-picker{box-sizing:border-box;width:760px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:22px;border:1px solid #dce5ed;border-radius:18px;background:#fff;color:#1c2b33;overflow:auto}
dialog.credit-invoice-picker header{display:flex;justify-content:space-between;align-items:center;gap:12px}dialog.credit-invoice-picker h2{font-size:18px;margin:0}dialog.credit-invoice-picker .credit-picker-customer{font-size:12px;margin:8px 0;color:#526d7e}dialog.credit-invoice-picker>input{width:100%;box-sizing:border-box;margin:12px 0;padding:12px}
dialog.credit-invoice-picker .credit-picker-list{display:grid;gap:6px;max-height:45vh;overflow:auto}dialog.credit-invoice-picker .credit-picker-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:left;border-radius:6px;padding:10px 12px;border:1px solid #dce5ed;background:#fff;color:#1c2b33}dialog.credit-invoice-picker .credit-picker-row small{display:block;margin-top:4px;font-size:12px;color:inherit}dialog.credit-invoice-picker .credit-picker-row.primary{background:#0866ed;color:#fff;border-color:#0866ed}dialog.credit-invoice-picker .credit-picker-row>strong{white-space:nowrap}
dialog.credit-invoice-picker .credit-picker-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;font-size:12px}dialog.credit-invoice-picker::backdrop{background:#1c2b3380;backdrop-filter:blur(4px)}
html[data-theme=dark] dialog.credit-invoice-picker{background:#3B505B;color:#edf5ff;border-color:#415966}html[data-theme=dark] dialog.credit-invoice-picker .credit-picker-customer{color:#bdd0de}html[data-theme=dark] dialog.credit-invoice-picker .credit-picker-row:not(.primary){background:#20323e;color:#edf5ff;border-color:#415966}
@media(max-width:480px){dialog.credit-invoice-picker{padding:16px}.credit-picker-row{font-size:12px}dialog.credit-invoice-picker .credit-picker-pager{flex-wrap:wrap}}

/* SYNGPRO CREDIT TYPOGRAPHY 1 */
dialog.credit-invoice-picker .credit-picker-row strong{font:inherit!important;letter-spacing:inherit}
dialog.credit-invoice-picker .credit-picker-row small{font-family:inherit;font-weight:400}
dialog.credit-invoice-picker .credit-picker-row{font-size:14px}

/* SYNGPRO COMBINED CODE PICKER 1 */
.v177-code.v203-code{display:flex;align-items:center}
.v177-code.v203-code>input{flex:1;min-width:0;width:100%;text-align:left;border:0;border-radius:0;background:transparent!important;color:inherit!important;padding:8px 10px;font:inherit}
.v177-code.v203-code>button{flex:none;border:0;background:transparent;padding:6px 10px}
#app.v177-shell .v177-code.v203-code{display:flex;align-items:center;gap:0;background:#fff}
#app.v177-shell #page .invoice-contrast .v177-code.v203-code input,#app.v177-shell #page .v177-code.v203-code input,#app.v177-shell .v177-code.v203-code input{flex:1;min-width:0;width:100%;text-align:left;border:0;border-radius:0;background:transparent!important;color:inherit!important;padding:8px 10px;font-family:inherit;font-size:inherit;font-weight:400!important}
#app.v177-shell .v177-code.v203-code>button{flex:none;border:0;background:transparent;color:var(--primary,#0064df);padding:6px 10px;margin:0}
dialog.v203-code-picker{width:min(680px,calc(100vw - 32px));max-height:80vh;box-sizing:border-box}
.v203-code-picker .v203-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.v203-code-picker input{width:100%;box-sizing:border-box;margin:10px 0}
.v203-code-picker .v203-options{display:flex;flex-direction:column;gap:6px;max-height:50vh;overflow:auto}
.v203-code-picker .v203-option{text-align:left;width:100%;font-family:inherit;font-size:14px;font-weight:400;white-space:normal}
.v203-code-picker .v203-option.primary{font-weight:600}

/* SYNGPRO RECEIPT WORKSPACE 1 */
.receipt-page-heading{display:flex;align-items:center;gap:12px;max-width:1550px;margin:0 auto 10px}
.receipt-page-heading h1{margin:0}
.receipt-workspace .receipt-client-row>label{grid-column:auto!important}
.receipt-workspace .receipt-client-row>label input{width:100%}
#app.v177-shell #page .receipt-workspace{max-width:1550px;margin:0 auto;padding-bottom:16px}
.receipt-workspace>.fields{display:flex;flex-direction:column;gap:10px}
.receipt-workspace .receipt-client-row,.receipt-workspace .receipt-details{display:grid;grid-template-columns:1fr 2fr;gap:16px;border:1px solid #c8d8e6;background:var(--panel,#fff);border-radius:10px;padding:12px}
.receipt-workspace .receipt-details{grid-template-columns:repeat(4,minmax(0,1fr))}
.receipt-workspace .receipt-client-row label{display:flex;flex-direction:column;gap:4px}
.receipt-workspace .receipt-client-control{display:flex;gap:8px}
.receipt-workspace .receipt-client-control input{flex:1;min-width:0}
.receipt-workspace .receipt-client-control button{flex:none}
.receipt-workspace .receipt-invoice-picker{border:1px solid #c8d8e6;border-radius:10px;background:var(--panel,#fff);padding:12px;overflow:auto;min-height:220px}
.receipt-workspace .receipt-invoice-picker table{width:100%;font-size:13px}
.receipt-workspace .receipt-invoice-picker th,.receipt-workspace .receipt-invoice-picker td{padding:8px;text-align:left;vertical-align:middle}
.receipt-workspace .receipt-invoice-picker small{display:block}
.receipt-workspace .receipt-invoice-picker input[data-invoice]{width:125px;text-align:right}
.receipt-workspace .receipt-invoice-picker tr[hidden],.receipt-workspace .receipt-invoice-picker table[hidden]{display:none!important}
.receipt-workspace .receipt-invoice-picker .credit-invoice-trigger{margin-bottom:12px}
.receipt-workspace .receipt-retentions,.receipt-workspace .receipt-advances{background:var(--panel,#fff);border:1px solid #c8d8e6;border-radius:8px;padding:10px}
.receipt-workspace>.actions{display:flex;align-items:center;justify-content:flex-end;background:#3B505B;color:white;padding:12px;border-radius:9px;gap:10px;flex-wrap:wrap}
.receipt-workspace>.actions .invoice-total{margin:0 auto 0 0;color:white;font-size:14px;max-width:65%}
.receipt-finder .receipt-finder-list{display:flex;flex-direction:column;gap:6px}
.receipt-finder-list>button{display:flex;justify-content:space-between;gap:16px;font:inherit;text-align:left}
.receipt-finder footer{display:flex;justify-content:space-between;gap:8px;margin-top:12px}
@media(max-width:700px){.receipt-workspace .receipt-client-row,.receipt-workspace .receipt-details{grid-template-columns:1fr}.receipt-workspace>.actions .invoice-total{max-width:100%;width:100%}.receipt-finder-list>button{flex-direction:column;gap:4px}}

/* SYNGPRO RECEIPT WORKSPACE 2 */
#app.v177-shell #page .receipt-workspace .receipt-origin{padding:10px 12px;border:1px solid #c8d8e6;background:var(--panel,#fff);border-radius:10px}
.receipt-workspace .receipt-origin>label{display:block;font-weight:600}
.receipt-workspace .receipt-origin .credit-invoice-trigger{max-width:1000px;margin-top:4px}
.receipt-workspace .receipt-origin input{font-weight:400}
.receipt-workspace .receipt-client-control>button,.receipt-workspace .receipt-origin button{background:#0866ed;color:#fff;border-color:#0866ed;width:40px;min-width:40px;padding:0;font-size:24px}
.receipt-workspace .receipt-origin button:disabled{opacity:.55}
.receipt-workspace .receipt-client-control>button,.receipt-workspace .receipt-origin button{position:relative;font-size:0!important}
.receipt-workspace .receipt-client-control>button::before,.receipt-workspace .receipt-origin button::before{content:'';display:block;width:12px;height:12px;border:2px solid currentColor;border-radius:50%;position:absolute;left:13px;top:8px;box-sizing:border-box}
.receipt-workspace .receipt-client-control>button::after,.receipt-workspace .receipt-origin button::after{content:'';position:absolute;width:8px;height:2px;background:currentColor;left:9px;top:22px;transform:rotate(-50deg);transform-origin:right center}
.receipt-workspace .receipt-detail-heading{padding:10px 12px;background:#eaf2ff;color:#0064df;font-size:13px;font-weight:600;border:1px solid #c8d8e6;border-radius:10px 10px 0 0;margin-bottom:-10px}
.receipt-workspace .receipt-invoice-picker{border-top:0;border-radius:0 0 10px 10px;min-height:300px}
dialog.receipt-finder .credit-picker-row{font-size:14px;font-family:inherit;font-weight:400}
dialog.receipt-finder .credit-picker-row strong{font:inherit!important}
dialog.receipt-finder .credit-picker-row.primary{font-weight:600;background:#0866ed;color:white;border-color:#0866ed}
dialog.receipt-finder .credit-picker-row small{display:block;font-weight:400;font-size:12px;margin-top:4px}
dialog.receipt-finder .credit-picker-pager{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:8px}
dialog.receipt-finder .credit-picker-pager p{margin:0;font-size:12px}
dialog.receipt-finder .actions{margin-top:12px}
html[data-theme=dark] .receipt-workspace .receipt-detail-heading{background:#203b52;color:#d1e6ff}

/* SYNGPRO RECEIPT CURRENCY 1 */
.receipt-workspace .receipt-status:empty{display:none!important}
.receipt-workspace .receipt-status{margin:0;padding:0;font-size:13px}

/* SYNGPRO RECEIPT DRAFTS 1 */
#app #page form.receipt-workspace>.actions.receipt-checkout{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important;background:#3B505B!important;color:#fff!important;padding:14px 16px!important;border-radius:10px!important;position:relative!important;bottom:auto!important;width:100%!important;box-sizing:border-box!important}
#app #page .receipt-checkout .receipt-summary{display:flex!important;align-items:center;flex-wrap:wrap;gap:18px;margin:0 auto 0 0!important;color:#fff!important;visibility:visible!important}
#app #page .receipt-summary>div{display:flex;flex-direction:column;gap:4px;padding-right:18px;border-right:1px solid #7693a3}
#app #page .receipt-summary>div:last-child{border:0}
#app #page .receipt-summary span{font-size:12px;color:#e0eaf0}
#app #page .receipt-summary strong{font-size:22px;line-height:1.2;color:#fff}
#app #page .receipt-checkout>button{margin:0;min-height:40px;background:#344b57;border:1px solid #55707d;color:white;font-weight:600}
#app #page .receipt-checkout>button.primary{background:#0063df;border-color:#0063df}
.receipt-draft-row{display:flex;gap:8px;margin:6px 0}.receipt-draft-row>button:first-child{flex:1;text-align:left}
@media(max-width:700px){#app #page .receipt-checkout .receipt-summary{width:100%;gap:10px}#app #page .receipt-checkout>button{flex:1}.receipt-draft-row{flex-wrap:wrap}}

/* SYNGPRO SOFT PETROLEUM 1 */
html #app:is(.connected-shell,.v177-shell) .connected-top,
html #app.v0-shell .v0-top{background:#3B505B!important;border-bottom-color:#3B505B!important}

/* SYNGPRO COMPACT CLIENT 2 */
dialog.client-form-dialog{width:min(880px,calc(100vw - 32px))!important;border:1px solid var(--ux-border,#dce5ed);border-radius:16px!important}
.client-form-dialog>header{padding:22px 28px 8px}.client-form-dialog>header h2{font-size:23px}.client-form-dialog .client-form-help{padding:0 28px;margin-bottom:18px;line-height:1.5}.client-form-dialog>form{padding:0 28px}
.client-form-dialog details.client-form-section{padding:0;border:0;border-top:1px solid var(--ux-border,#dce5ed);border-radius:0;background:transparent;margin:0}
.client-form-section>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:18px 0;font-size:15px;font-weight:650;color:var(--ux-text,#1c2b33)}
.client-form-section>summary::-webkit-details-marker{display:none}.client-form-section>summary::after{content:'⌄';margin-left:0;color:var(--ux-muted,#617587);font-size:18px}.client-form-section[open]>summary::after{transform:rotate(180deg)}
.client-section-summary{margin-left:auto;font-size:12px;font-weight:400;color:var(--ux-muted,#617587);max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.client-form-section[open] .client-section-summary{visibility:hidden}
.client-form-dialog .client-form-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding-bottom:18px}
.client-form-dialog .client-form-fields>label{font-weight:600}.client-form-dialog .client-form-fields :is(input,select){font-weight:400;border-radius:9px;min-height:40px}
.client-form-dialog .client-field-help{font-size:12px;font-weight:400;color:var(--ux-muted,#617587);line-height:1.4}
.client-form-dialog [data-client-section=identity] label:has([name=name]){grid-column:1/span 2}.client-form-dialog [data-client-section=identity] label:has([name=tradeName]){grid-column:1/span 2}
.client-form-dialog [data-client-section=contact] label:has([name=phone]){grid-column:1;grid-row:1}.client-form-dialog [data-client-section=contact] label:has([name=mobile]){grid-column:2;grid-row:1}.client-form-dialog [data-client-section=contact] label:has([name=email]){grid-column:3;grid-row:1}
.client-form-dialog .client-form-fields>.client-same-phone{display:flex;flex-direction:row;align-items:center;gap:7px;grid-column:2;grid-row:2;font-weight:400;font-size:12px;color:var(--ux-muted,#617587);margin-top:-6px}.client-form-dialog .client-same-phone input{width:16px;min-height:16px;height:16px;flex:0 0 16px;margin:0;accent-color:#0064e0}.client-form-dialog input[name=mobile][readonly]{background:var(--ux-soft,#f0f4f8);color:var(--ux-muted,#617587)}
.client-form-dialog .client-form-footer{padding:14px 0!important;display:flex;align-items:center;flex-wrap:wrap}.client-form-dialog .client-form-footer button{min-height:40px;border-radius:9px}
.client-form-dialog summary:focus-visible{outline:2px solid #0866ff;outline-offset:-2px;border-radius:6px}
@media(max-width:600px){dialog.client-form-dialog{width:calc(100vw - 16px)!important}.client-form-dialog>header{padding:18px 16px 8px}.client-form-dialog .client-form-help{padding:0 16px}.client-form-dialog>form{padding:0 16px}.client-form-dialog .client-form-fields{grid-template-columns:1fr}.client-form-dialog .client-form-fields>label,.client-form-dialog [data-client-section] label:has(input),.client-form-dialog [data-client-section=identity] label:has([name=name]),.client-form-dialog [data-client-section=identity] label:has([name=tradeName]){grid-column:1!important;grid-row:auto!important}.client-form-dialog .client-form-fields .location-fields{grid-template-columns:1fr}.client-section-summary{max-width:45%}.client-form-footer small{flex-basis:100%}}
/* SYNGPRO CLIENT DIRECTORY 1 */
.client-directory .client-search-card{background:var(--ux-surface,#fff);border:1px solid var(--ux-border,#dce5ed);border-radius:12px;padding:16px;margin:14px 0}.client-directory .client-search-card>input{width:100%;min-height:44px}.client-directory .client-filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.client-directory .client-filters button{border-radius:24px;font-weight:400}.client-directory .client-filters button.active{background:#3b505b;color:white;border-color:#3b505b}.client-directory .client-rtc-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#fffbeb;border:1px solid #f5d277;border-radius:10px;color:#874600}.client-directory .client-rtc-alert button{background:transparent;color:inherit;border:0;text-decoration:underline}.client-directory .client-name{display:flex;gap:12px;align-items:center}.client-directory .client-initials{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:50%;background:#e7eef3;color:#3b505b;font-weight:650}.client-directory .client-contact{display:flex;flex-direction:column;gap:4px;font-size:13px;overflow-wrap:anywhere}.client-directory .client-rtc{display:inline-block;border-radius:20px;padding:4px 9px;font-size:12px;white-space:nowrap}.client-directory .client-rtc.valid{background:#e7f7ef;color:#126c4a}.client-directory .client-rtc.soon{background:#fff5db;color:#8a5100}.client-directory .client-rtc.expired,.client-directory .client-rtc.missing{background:#fff0f2;color:#ab2143}.client-directory tbody tr{cursor:pointer}.client-directory tbody tr:hover{background:var(--ux-soft,#f5f8fa)}.client-directory th{background:var(--ux-soft,#f5f8fa)!important}.client-directory td{padding-top:16px!important;padding-bottom:16px!important}.client-directory .table-wrap{border-radius:12px}.client-form-section>summary::after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);flex-shrink:0}.client-form-section[open]>summary::after{transform:rotate(225deg)}
.client-form-dialog .client-form-fields label:has([name=identity]) p{display:block!important;min-height:34px;margin:4px 0 0;font-size:12px;line-height:17px}

/* SYNGPRO CLIENT SPACING 1 */
#page.client-directory>.heading{display:flex!important;align-items:center!important;gap:14px;margin:0 0 10px!important;padding:0!important;min-height:38px!important;flex-wrap:wrap}
#page.client-directory>.heading>div{display:flex;align-items:center;gap:12px;flex:1}
#page.client-directory>.heading h1,#page.client-directory>.heading p{margin:0!important}
#page.client-directory>.heading>.menu-back{margin:0!important}
#page.client-directory .client-search-card{display:flex;align-items:center;gap:12px;padding:10px 12px;margin:8px 0!important;flex-wrap:wrap}
#page.client-directory .client-search-card>input{flex:1 1 320px;width:auto;min-width:220px;min-height:38px}
#page.client-directory .client-filters{margin:0;gap:6px}
#page.client-directory .client-filters button{padding:8px 12px;min-height:34px}
#page.client-directory .client-rtc-alert{margin:6px 0;padding:8px 12px}
@media(max-width:720px){#page.client-directory>.heading>div{flex-wrap:wrap;gap:4px 10px}#page.client-directory .client-search-card>input{flex-basis:100%;min-width:0}#page.client-directory .client-filters{flex-wrap:wrap}}

/* SYNGPRO MANAGEMENT COMPACT 1 */
#page.management-directory .management-heading{display:flex;align-items:center;gap:14px;margin:0 0 10px;min-height:38px;flex-wrap:wrap}
#page.management-directory .management-heading h1{margin:0;font-size:24px;line-height:1.2}
#page.management-directory .management-heading>.menu-back{margin:0}
#page.management-directory .management-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
#page.management-directory .management-search{display:flex;align-items:end;gap:10px;padding:10px 12px;margin:8px 0;background:var(--ux-surface,#fff);border:1px solid var(--ux-border,#dce5ed);border-radius:12px;flex-wrap:wrap}
#page.management-directory .management-search-field{flex:1 1 300px;min-width:200px;display:block;margin:0}
#page.management-directory .management-search-field input{width:100%;min-height:38px}
#page.management-directory .management-search>label:not(.management-search-field){flex:0 1 170px;min-width:140px}
#page.management-directory .management-search>select{min-width:150px;width:auto}
#page.management-directory .management-count{margin:4px 0;font-size:12px;color:var(--ux-muted,#617587)}
#page.management-directory .table-wrap{border-radius:12px}
#page.management-directory :is(th,td){padding-top:12px!important;padding-bottom:12px!important}
#page.management-directory .management-state{display:inline-block;padding:4px 9px;border-radius:20px;font-size:12px;white-space:nowrap;background:#eaf0f3;color:#3b505b}
#page.management-directory .management-state.good{background:#e7f7ef;color:#126c4a}#page.management-directory .management-state.pending{background:#fff5db;color:#8a5100}#page.management-directory .management-state.bad{background:#fff0f2;color:#ab2143}#page.management-directory .management-state.info{background:#eaf1ff;color:#215a9b}
#page.management-directory .orders-empty{padding:24px;border:1px solid var(--ux-border,#dce5ed);border-radius:12px;background:var(--ux-surface,#fff);text-align:center;margin-top:12px}
#page.management-directory .orders-empty-icon{display:none}#page.management-directory .orders-empty h2{font-size:18px;margin:0 0 8px}#page.management-directory .orders-empty .actions{justify-content:center}#page.management-directory td.empty{height:auto!important;padding:32px 16px!important}
@media(max-width:720px){#page.management-directory .management-search-field{flex-basis:100%;min-width:0}#page.management-directory .management-heading{gap:10px}#page.management-directory .management-actions{flex-basis:100%;margin-left:0}#page.management-directory .management-search>label:not(.management-search-field){flex:1 1 130px}#page.management-directory .management-heading h1{font-size:21px}}
#page.management-directory .management-contact{display:flex;flex-direction:column;gap:3px;font-size:13px;overflow-wrap:anywhere}
#page.management-directory .management-actions button.primary{background:#0064e0!important;color:#fff!important;border-color:#0064e0!important}#page.management-directory .management-actions button.primary:hover{background:#0056c4!important}

/* SYNGPRO REMISSION COMPACT 2 */
#app.v177-shell #page .remission-compact .v191-remission-fields{gap:8px!important;padding:0!important}
#app.v177-shell #page .remission-compact .v191-panel{padding:10px 12px;margin:0;border:1px solid #c4d3df;border-radius:9px;background:white;min-width:0}
#app.v177-shell #page .remission-compact .v191-panel>h3{margin:-10px -12px 10px;padding:7px 12px;background:#eaf2ff;color:#0055c8;border-bottom:1px solid #c4d3df;font-size:13px}
#app.v177-shell #page .remission-compact .v191-grid{gap:8px 12px}
#app.v177-shell #page .remission-compact .remission-origin .v191-grid{grid-template-columns:minmax(0,2fr) minmax(180px,1fr)}
#app.v177-shell #page .remission-compact .credit-invoice-trigger{display:flex;gap:8px}
#app.v177-shell #page .remission-compact .credit-invoice-trigger input{flex:1;min-width:0}
#app.v177-shell #page .remission-compact .credit-invoice-trigger button,#app.v177-shell #page .remission-compact .v177-identity button{background:#0064e0;color:white;border-color:#0064e0;width:40px}
#app.v177-shell #page .remission-compact .remission-code-selectors{gap:12px;margin:0 0 8px}
#app.v177-shell #page .remission-compact .remission-code-selectors input{max-width:none;width:100%;min-width:0}
#app.v177-shell #page .remission-compact .v203-code{display:flex;width:100%;min-width:0}
#app.v177-shell #page .remission-compact .v203-code input{min-width:0;flex:1}
#app.v177-shell #page .remission-compact .v191-toolbar{margin:4px 0 8px;gap:8px}
#app.v177-shell #page .remission-compact .remission-manual{border-top:1px solid #dbe5ed;padding-top:8px;margin-top:4px}
#app.v177-shell #page .remission-compact summary{cursor:pointer;font-weight:600;font-size:13px}
#app.v177-shell #page .remission-compact .remission-manual[open] summary{margin-bottom:10px}
#app.v177-shell #page .remission-compact .v191-panel>p:empty{display:none}
#app.v177-shell #page .remission-compact .related-items{min-height:140px}
#app.v177-shell #page .remission-compact .related-line{padding:8px 0;gap:12px}
#app.v177-shell #page .remission-compact .v191-remission-footer{background:#3b505b;color:white;display:flex;flex-wrap:wrap;align-items:center;padding:12px 14px;margin-top:8px;gap:16px}
#app.v177-shell #page .remission-compact .remission-count{display:flex;flex-direction:column;min-width:110px;border-right:1px solid #79909d;padding-right:16px}
#app.v177-shell #page .remission-compact .remission-count strong{font-size:22px;color:white}
#app.v177-shell #page .remission-compact .invoice-total{flex:1;font-size:12px;color:white!important;margin:0}
#app.v177-shell #page .remission-compact .v191-remission-footer .actions{margin:0}
#app.v177-shell #page .remission-compact .v191-remission-footer button[type=submit]{background:#0064e0;color:white}
html[data-theme=dark] #app.v177-shell #page .remission-compact .v191-panel{background:#20343e;border-color:#506978}
html[data-theme=dark] #app.v177-shell #page .remission-compact .v191-panel>h3{background:#233e54;color:#c5dfff;border-color:#506978}
@media(max-width:760px){#app.v177-shell #page .remission-compact .remission-origin .v191-grid{grid-template-columns:1fr}#app.v177-shell #page .remission-compact .v191-route{grid-template-columns:1fr}#app.v177-shell #page .remission-compact .v191-remission-footer .actions{width:100%;flex-wrap:wrap}}
/* Purchase follows the same document panels and totals bar. */
#app #page .purchase-inline-workspace .purchase-inline-main{grid-template-columns:minmax(180px,1fr) 112px 72px 108px 90px 90px 110px auto;gap:8px}
#app #page .purchase-inline-workspace .purchase-inline-main.purchase-three-prices{grid-template-columns:minmax(170px,1fr) 105px 105px 65px 95px 85px repeat(3,88px) auto}
#app #page .purchase-inline-workspace .purchase-row-ncm input:disabled{background:#edf2f6;color:#72828d;cursor:not-allowed;border-color:#d9e2e9;opacity:1}
#app #page .purchase-inline-workspace .purchase-title h1{color:#183441}
#app #page .purchase-inline-workspace .purchase-detail>header{background:#eaf2ff;color:#0055c8;border-bottom:1px solid #c4d3df;margin:-12px -12px 10px;padding:8px 12px;border-radius:8px 8px 0 0}
#app #page .purchase-inline-workspace .purchase-checkout{background:#3b505b;color:white;border:0;gap:18px}
#app #page .purchase-inline-workspace .purchase-checkout strong,#app #page .purchase-inline-workspace .purchase-checkout small{color:white!important}
#app #page .purchase-inline-workspace .purchase-checkout button{background:#4b626f;color:white;border-color:#708692}
#app #page .purchase-inline-workspace .purchase-checkout button.primary{background:#0064e0;border-color:#0064e0;color:white}
#app #page .purchase-inline-workspace .purchase-inline-main.purchase-three-prices:has([name=priceF]){grid-template-columns:repeat(12,minmax(0,1fr))}
#app #page .purchase-inline-workspace .purchase-inline-main:has([name=priceF])>.purchase-row-ncm{grid-column:span 2}
@media(max-width:1200px){#app #page .purchase-inline-workspace .purchase-inline-main,#app #page .purchase-inline-workspace .purchase-inline-main.purchase-three-prices{grid-template-columns:repeat(4,minmax(0,1fr))}#app #page .purchase-inline-workspace .purchase-inline-main>label:first-child{grid-column:span 3}#app #page .purchase-inline-workspace .purchase-inline-main>.purchase-row-ncm{grid-column:span 1}}
@media(max-width:600px){#app #page .purchase-inline-workspace .purchase-inline-main,#app #page .purchase-inline-workspace .purchase-inline-main.purchase-three-prices,#app #page .purchase-inline-workspace .purchase-inline-main.purchase-three-prices:has([name=priceF]){grid-template-columns:minmax(0,1fr) 110px}#app #page .purchase-inline-workspace .purchase-inline-main>label,#app #page .purchase-inline-workspace .purchase-inline-main:has([name=priceF])>label:first-child{grid-column:span 1}#app #page .purchase-inline-workspace .purchase-checkout{flex-wrap:wrap}}
#app.v177-shell #page .remission-compact input:not([type=checkbox]),#app.v177-shell #page .remission-compact select,#app.v177-shell #page .remission-compact textarea{border:1px solid #c4d3df;background:#fff;color:#183441;border-radius:5px;min-height:34px}
#app.v177-shell #page .remission-compact .v177-customer{background:#fff;border:1px solid #c4d3df;border-radius:9px;padding:10px 12px}
#app.v177-shell #page .remission-compact .remission-count small{color:white!important}
#app.v177-shell #page .remission-compact .credit-invoice-trigger button{background:#0064e0!important;color:white!important}
#app #page .purchase-inline-workspace .purchase-title h1{color:#183441!important}
@media(min-width:1201px){#app #page .purchase-inline-workspace .purchase-inline-main{grid-template-columns:minmax(180px,1fr) 112px 112px 72px 108px 90px 110px auto}}
html[data-theme=dark] #app.v177-shell #page .remission-compact input:not([type=checkbox]),html[data-theme=dark] #app.v177-shell #page .remission-compact select,html[data-theme=dark] #app.v177-shell #page .remission-compact textarea,html[data-theme=dark] #app.v177-shell #page .remission-compact .v177-customer{background:#20343e;color:#eaf2f8;border-color:#506978}
.remission-compact .v203-code{display:flex;align-items:center;border:1px solid #b5c8d6;border-radius:5px}
.remission-compact .v203-code>button{flex:none;border:0;background:transparent;color:#0064e0;padding:6px 10px}
dialog.v203-code-picker{width:min(680px,calc(100vw - 32px));max-height:80vh;box-sizing:border-box}
.v203-code-picker .v203-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.v203-code-picker input{width:100%;box-sizing:border-box;margin:10px 0}
.v203-code-picker .v203-options{display:flex;flex-direction:column;gap:6px;max-height:50vh;overflow:auto}
.v203-code-picker .v203-option{text-align:left;width:100%;white-space:normal}
dialog.credit-invoice-picker{width:min(760px,calc(100vw - 32px));max-height:85vh}
.credit-invoice-picker .credit-picker-list{display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow:auto}
.credit-invoice-picker .credit-picker-row{display:flex;justify-content:space-between;text-align:left;gap:16px;padding:12px}
.credit-invoice-picker .credit-picker-row small{display:block;margin-top:4px}
.credit-invoice-picker input[type=search]{width:100%;margin:8px 0 12px;box-sizing:border-box}
.credit-invoice-picker .credit-picker-pager{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px}

/* SYNGPRO PURCHASE SUPPLIER ENTER 1 */
.purchase-supplier-control{display:flex;gap:6px;min-width:0}.purchase-supplier-control input{flex:1;min-width:0;width:100%}.purchase-supplier-control button{flex:none;width:36px;padding:4px;background:#0064e0;color:white}
dialog.purchase-supplier-picker{width:min(700px,calc(100vw - 32px));max-height:85vh;box-sizing:border-box}.purchase-supplier-picker header{display:flex;align-items:center;justify-content:space-between;gap:12px}.purchase-supplier-picker input{width:100%;box-sizing:border-box;margin:12px 0}.purchase-supplier-list{display:flex;flex-direction:column;gap:6px;max-height:52vh;overflow:auto}.purchase-supplier-list button{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;padding:12px}.purchase-supplier-list small{color:inherit}

/* SYNGPRO SUPPLIER PICKER STYLE 1 */
dialog.purchase-supplier-picker{width:min(820px,calc(100vw - 32px));max-width:calc(100vw - 32px);padding:24px;overflow-x:hidden;border:1px solid #d7e2eb;border-radius:16px;box-sizing:border-box}
dialog.purchase-supplier-picker::backdrop{background:rgba(28,43,51,.42)}
dialog.purchase-supplier-picker>header{position:static;display:flex;width:auto;min-width:0;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:0;background:transparent;color:inherit}
dialog.purchase-supplier-picker>header h2{font-size:18px;margin:0;min-width:0}
dialog.purchase-supplier-picker>header button{position:static;flex:0 0 32px;width:32px;min-width:32px;height:32px;padding:0;border:0;background:transparent;color:#617c8e}
dialog.purchase-supplier-picker input{max-width:100%;margin:0 0 10px}
dialog.purchase-supplier-picker .purchase-supplier-list{gap:6px;min-width:0}
dialog.purchase-supplier-picker .purchase-supplier-list button{display:block;width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;text-align:left;border:1px solid #dce5ed;border-radius:6px;padding:12px;color:#183441;background:#fff;font-size:14px}
dialog.purchase-supplier-picker .purchase-supplier-list button.primary{background:#0064e0!important;color:#fff!important;border-color:#0064e0;font-weight:600}
dialog.purchase-supplier-picker .purchase-supplier-list button.primary *{color:#fff!important}
dialog.purchase-supplier-picker p{font-size:12px;margin:12px 0 0}
html[data-theme=dark] dialog.purchase-supplier-picker{background:#20343e;color:#eaf2f8}
html[data-theme=dark] dialog.purchase-supplier-picker .purchase-supplier-list button:not(.primary){background:#263e4b;color:#eaf2f8;border-color:#506978}
@media(max-width:600px){dialog.purchase-supplier-picker{padding:16px}}
dialog .purchase-create-product,dialog .purchase-create-supplier{background:#0064e0!important;color:#fff!important;border:1px solid #0064e0!important;font-weight:700!important;padding:12px 18px!important;min-height:42px;border-radius:7px;box-shadow:0 2px 4px #08203220}
dialog .purchase-create-product:focus-visible,dialog .purchase-create-supplier:focus-visible{outline:3px solid #78b4ff;outline-offset:3px}
dialog.purchase-supplier-picker .purchase-create-supplier{margin-top:12px}
dialog.v178-product-picker:has(.purchase-create-product)>.actions{position:sticky;bottom:0;z-index:3;background:var(--surface,#fff);border-top:1px solid #dce5ed;padding:12px 0 0;display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}

/* SYNGPRO PURCHASE VALIDATION 1 */
#app #page .purchase-inline-workspace .purchase-required{color:#c62828!important;font-weight:700}
#app #page .purchase-inline-workspace .purchase-caption{display:block;line-height:20px;margin-bottom:4px}
#app #page .purchase-inline-workspace .purchase-inline-main{align-items:start}
#app #page .purchase-inline-workspace .purchase-inline-main>label:has([name=price]) .purchase-caption{white-space:nowrap;font-size:13px}
#app #page .purchase-inline-workspace .purchase-field-message{display:block;color:#c62828!important;font-size:12px;line-height:1.35;margin-top:5px;white-space:normal}
#app #page .purchase-inline-workspace [aria-invalid=true]{border-color:#c62828!important;box-shadow:0 0 0 1px #c62828!important}
@media(min-width:1201px){#app #page .purchase-inline-workspace .purchase-inline-main{grid-template-columns:minmax(150px,1fr) 112px 112px 72px 140px 90px 110px auto}}
html[data-theme=dark] #app #page .purchase-inline-workspace .purchase-required,html[data-theme=dark] #app #page .purchase-inline-workspace .purchase-field-message{color:#ff9a9a!important}

/* SYNGPRO CATEGORY PICKER 1 */
.category-picker{width:min(640px,calc(100vw - 32px));max-height:85vh;box-sizing:border-box;padding:24px;border:1px solid #d3dfea;border-radius:16px;background:#fff;color:#183441}
.category-picker header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.category-picker h2{margin:0;font-size:20px}
.category-picker input{width:100%;box-sizing:border-box;margin:8px 0 12px;min-height:42px}
.category-picker-list{display:flex;flex-direction:column;gap:6px;max-height:45vh;overflow:auto;margin-bottom:16px}.category-picker-list button{text-align:left;padding:12px}
.category-picker .primary{background:#0064e0!important;color:#fff!important}.category-picker-trigger{width:100%;min-height:42px;text-align:left;border:1px solid #c4d3df;background:#fff;color:#183441}.category-create[hidden],.category-picker [hidden]{display:none!important}
.category-picker::backdrop{background:rgba(25,43,53,.4)}
html[data-theme=dark] .category-picker,html[data-theme=dark] .category-picker-trigger{background:#20343e;color:#eaf2f8}

/* SYNGPRO PRODUCT FIELDS 1 */
.product-description-help{display:block;font-size:13px;line-height:1.4;color:#567083;margin-top:5px;font-weight:400}
html[data-theme=dark] .product-description-help{color:#bdceda}
.product-category-code{display:flex;gap:6px;align-items:center}.product-category-code input{min-width:0;flex:1}.product-category-code .category-picker-trigger{width:42px;flex:none;text-align:center}.product-form-dialog .v177-code{display:flex;align-items:center}.product-form-dialog .v177-code input{min-width:0;flex:1}.product-form-dialog .v177-code button{flex:none}

/* SYNGPRO PURCHASE REMOVE 1 */
#app #page .purchase-inline-workspace .purchase-inline-main>.purchase-remove-item{align-self:start;margin-top:28px;width:42px;min-width:42px;height:44px;min-height:44px;padding:10px;display:inline-flex;align-items:center;justify-content:center;color:#b42332;background:transparent;border:1px solid #d5e0eb;border-radius:8px}
#app #page .purchase-inline-workspace .purchase-remove-item svg{width:18px;height:18px}
#app #page .purchase-inline-workspace .purchase-remove-item:hover{background:#fff0f1;border-color:#e7a0a6}
#app #page .purchase-inline-workspace .purchase-remove-item:focus-visible{outline:2px solid #0064e0;outline-offset:2px}
html[data-theme=dark] #app #page .purchase-inline-workspace .purchase-remove-item{color:#ff9a9a;border-color:#506978}

/* SYNGPRO PURCHASE SYMMETRIC 1 */
#app #page .purchase-inline-workspace .purchase-inline-main{gap:8px;align-items:start}
#app #page .purchase-inline-workspace .purchase-inline-main>label{display:flex;flex-direction:column;gap:0;min-width:0;margin:0}
#app #page .purchase-inline-workspace .purchase-inline-main .purchase-caption{height:24px;line-height:20px;margin:0 0 4px;white-space:nowrap;font-size:13px}
#app #page .purchase-inline-workspace .purchase-inline-main input:not([type=hidden]),#app #page .purchase-inline-workspace .purchase-inline-main select{box-sizing:border-box;height:44px;min-height:44px;max-height:44px;margin:0;width:100%;border-radius:7px;padding:10px 12px}
#app #page .purchase-inline-workspace .purchase-inline-main>label>strong{box-sizing:border-box;height:44px;min-height:44px;display:flex;align-items:center;justify-content:flex-end;padding:10px 12px;border:1px solid #d5e0eb;border-radius:7px;background:#f3f6f9;margin:0}
#app #page .purchase-inline-workspace .purchase-inline-main>.purchase-remove-item{box-sizing:border-box;margin-top:28px;height:44px;min-height:44px;width:44px}
@media(min-width:1201px){#app #page .purchase-inline-workspace .purchase-inline-main{grid-template-columns:minmax(220px,1fr) repeat(6,minmax(136px,136px)) 44px}#app #page .purchase-inline-workspace .purchase-inline-main.purchase-three-prices{grid-template-columns:minmax(220px,1fr) repeat(8,minmax(136px,136px)) 44px;overflow-x:auto}#app #page .purchase-inline-workspace .purchase-inline-main.purchase-three-prices:has([name=priceF]){grid-template-columns:minmax(220px,1fr) repeat(11,minmax(136px,136px)) 44px}}
@media(max-width:1200px){#app #page .purchase-inline-workspace .purchase-inline-main,#app #page .purchase-inline-workspace .purchase-inline-main.purchase-three-prices,#app #page .purchase-inline-workspace .purchase-inline-main.purchase-three-prices:has([name=priceF]){grid-template-columns:repeat(3,minmax(0,1fr))}#app #page .purchase-inline-workspace .purchase-inline-main>label:first-child{grid-column:1/-1}}
@media(max-width:600px){#app #page .purchase-inline-workspace .purchase-inline-main,#app #page .purchase-inline-workspace .purchase-inline-main.purchase-three-prices,#app #page .purchase-inline-workspace .purchase-inline-main.purchase-three-prices:has([name=priceF]){grid-template-columns:repeat(2,minmax(0,1fr))}#app #page .purchase-inline-workspace .purchase-inline-main>label:first-child,#app #page .purchase-inline-workspace .purchase-inline-main:has([name=priceF])>label:first-child{grid-column:1/-1}}
html[data-theme=dark] #app #page .purchase-inline-workspace .purchase-inline-main>label>strong{background:#20343e;border-color:#506978;color:#eaf2f8}
#app #page .purchase-inline-workspace .purchase-inline-main>label:has(>strong){display:grid;grid-template-rows:24px 44px;row-gap:4px}

/* SYNGPRO STOCK BUBBLE 1 */
#app .invoice-stock-field{position:relative;overflow:visible}
#app .invoice-stock-field .invoice-quantity-error{position:absolute!important;z-index:30;top:100%;right:0;width:280px;max-width:calc(100vw - 40px);box-sizing:border-box;margin:8px 0 0!important;padding:12px 14px;border:1px solid #e9b4b8;border-radius:9px;background:#fff6f6;color:#9e2430;box-shadow:0 4px 14px #18344124;font-size:13px;line-height:1.45;font-weight:400;white-space:normal;display:none!important}
#app .invoice-stock-field:focus-within .invoice-quantity-error:not([hidden]),#app .invoice-stock-field:hover .invoice-quantity-error:not([hidden]){display:block!important}
#app .invoice-stock-field .invoice-quantity-error:before{content:'';position:absolute;right:24px;top:-6px;width:10px;height:10px;background:inherit;border-top:1px solid #e9b4b8;border-left:1px solid #e9b4b8;transform:rotate(45deg)}
#app .invoice-stock-field input[aria-invalid=true]{border-color:#c62828!important;box-shadow:0 0 0 1px #c62828}
html[data-theme=dark] #app .invoice-stock-field .invoice-quantity-error{background:#432c34;color:#ffd8dc;border-color:#a56c77}
@media(max-width:600px){#app .invoice-stock-field .invoice-quantity-error{width:210px;right:auto;left:0}#app .invoice-stock-field .invoice-quantity-error:before{right:auto;left:24px}}

/* SYNGPRO MEMO CREDIT 1 */
.credit-limit-field{position:relative}
.credit-limit-bubble{position:absolute;right:0;top:calc(100% + 7px);width:290px;max-width:80vw;padding:12px 14px;background:#fff7f7;color:#b42318;border:1px solid #f4a6ad;border-radius:10px;box-shadow:0 4px 16px #0002;z-index:40;font-size:13px;line-height:1.35;display:none}
.credit-limit-field:focus-within .credit-limit-bubble:not([hidden]),.credit-limit-field:hover .credit-limit-bubble:not([hidden]){display:block}
.credit-limit-field input[aria-invalid=true]{border-color:#d92d20!important}
.personal-memo{padding:16px!important;display:flex;flex-direction:column;gap:8px}
.personal-memo h2,.personal-memo p{margin:0}
.personal-memo textarea{width:100%;min-height:100px;max-height:240px;resize:vertical;box-sizing:border-box}
.clear-branches>.panel{margin-top:16px;padding:20px;max-width:980px}
.clear-branches .branch-settings-row{display:grid;grid-template-columns:minmax(240px,1fr) minmax(220px,auto);gap:24px;align-items:center;width:100%}
.clear-branches .branch-settings-row>label:last-child{display:flex;flex-direction:row;gap:10px;align-items:center}
.clear-branches input[type=radio]{width:18px;height:18px;margin:0}
.clear-branches .fields{display:block}
@media(max-width:600px){.clear-branches .branch-settings-row{grid-template-columns:1fr;gap:12px}}

/* SYNGPRO PURCHASE CODES 1 */
.purchase-inline-workspace .reference-document-grid .v203-code{display:flex;width:100%;min-width:0;gap:0;border:1px solid #cbdbea;border-radius:8px;box-sizing:border-box;background:var(--panel,#fff);height:46px}
.purchase-inline-workspace .reference-document-grid .v203-code:focus-within{outline:2px solid #06f;outline-offset:2px}
.purchase-inline-workspace .reference-document-grid .v203-code input{min-width:0;width:100%;height:44px}
.purchase-inline-workspace .reference-document-grid .v203-code button{height:44px;flex-shrink:0}

/* SYNGPRO PURCHASE PICKER SPACING 1 */
body dialog.purchase-code-picker .v203-options{display:flex;flex-direction:column;gap:8px;margin-top:12px;max-height:45vh;overflow-y:auto}
body dialog.purchase-code-picker .v203-options .v203-option{margin:0;flex-shrink:0;min-height:44px}
body dialog.purchase-code-picker .purchase-picker-footer{display:flex;justify-content:flex-end;align-items:center;margin-top:18px;padding-top:16px;border-top:1px solid #dce5ed;gap:12px}
body dialog.purchase-code-picker .purchase-picker-footer button{margin:0;min-height:42px}
body dialog.purchase-code-picker>p.error:empty{display:none}
body .purchase-inline-workspace .reference-document-grid .v203-code input,
body .purchase-inline-workspace .reference-document-grid .v203-code input:focus{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;margin:0!important}

/* SYNGPRO RECEIPT CHECKBOXES 1 */
body dialog.receipt-finder .receipt-checkbox-row{display:grid!important;grid-template-columns:22px minmax(0,1fr) auto;gap:14px;align-items:center;cursor:pointer;border:1px solid #dce5ed;border-radius:8px;padding:12px 14px;margin:0;background:#fff;color:#173747}
body dialog.receipt-finder .receipt-checkbox-row input[type=checkbox]{display:block!important;appearance:auto!important;position:static!important;opacity:1!important;width:20px!important;height:20px!important;min-height:20px!important;padding:0!important;margin:0!important;accent-color:#06f}
body dialog.receipt-finder .receipt-checkbox-row.receipt-option-selected{background:#edf5ff;border-color:#8cbaff}
body dialog.receipt-finder .receipt-checkbox-row.receipt-option-active{outline:2px solid #06f;outline-offset:-2px}
body dialog.receipt-finder .receipt-checkbox-row small{display:block;margin-top:4px}
body dialog.receipt-finder .receipt-picker-apply{justify-content:space-between;gap:16px;margin-top:14px}
body dialog.receipt-finder .receipt-selected-count{margin:0;font-size:13px}
@media(max-width:600px){body dialog.receipt-finder .receipt-checkbox-row{grid-template-columns:22px minmax(0,1fr)}body dialog.receipt-finder .receipt-checkbox-row>span:last-child{grid-column:2}}

/* SYNGPRO RECEIPT LIMIT 1 */
.receipt-limit-field{display:inline-block;max-width:100%}
.receipt-limit-field input[aria-invalid=true]{border-color:#d92d20!important}
.receipt-limit-bubble{position:fixed;inset:auto;margin:0;box-sizing:border-box;padding:12px 14px;border:1px solid #f4a6ad;border-radius:10px;background:#fff7f7;color:#b42318;box-shadow:0 4px 16px #0002;font:13px/1.4 Arial,sans-serif;overflow-wrap:anywhere}
.receipt-limit-bubble{pointer-events:none}

/* SYNGPRO RECEIPT BUBBLE FIX 1 */
.receipt-limit-bubble[hidden],.receipt-limit-bubble:not(:popover-open),.receipt-limit-bubble:empty{display:none!important}

/* SYNGPRO V0 CDC DESIGN 1.0.239 BEGIN */
/* Approved Consulta CDC palette, scoped to V0. No V1/V2/V3 or login overrides. */
html body #app.v0-cdc-interface{--cdc-navy:#0b1f33;--cdc-gold:#f6cb48;--cdc-bg:#f3f6fa;--cdc-surface:#fff;--cdc-soft:#f5f7fa;--cdc-text:#102b40;--cdc-muted:#617e98;--cdc-line:#d8e3ed;--v0-surface:var(--cdc-surface);--v0-text:var(--cdc-text);--v0-soft:var(--cdc-soft);--v0-line:var(--cdc-line);--v0-ink:var(--cdc-text);--v0-border:var(--cdc-line);background:var(--cdc-bg)!important;color:var(--cdc-text)!important;min-height:100dvh}
html[data-theme=dark] body #app.v0-cdc-interface{--cdc-bg:#0b1825;--cdc-surface:#12283c;--cdc-soft:#193247;--cdc-text:#edf5fc;--cdc-muted:#b1c7da;--cdc-line:#304a60}
html body #app.v0-cdc-interface .connected-top{background:var(--cdc-navy)!important;color:white!important;border-bottom:1px solid #ffffff0d!important;box-shadow:none!important;padding:12px max(24px,calc((100% - 1200px)/2))!important;gap:18px;min-height:72px}
html body #app.v0-cdc-interface .connected-top img{width:142px!important;height:44px!important;object-fit:contain}
html body #app.v0-cdc-interface .connected-company strong{color:#fff!important;font-size:13px!important}
html body #app.v0-cdc-interface .connected-company small{color:#b3cadc!important;font-size:11px!important}
html body #app.v0-cdc-interface .connected-actions button{background:#ffffff07!important;color:#dce9f5!important;border:1px solid #ffffff26!important;min-height:44px;border-radius:10px}
html body #app.v0-cdc-interface :is(button,a,input,select,textarea){touch-action:manipulation;-webkit-tap-highlight-color:transparent}
html body #app.v0-cdc-interface :is(button,a):focus-visible{outline:3px solid #b99a39!important;outline-offset:3px}
html body #app.v0-cdc-interface button:active:not(:disabled){filter:brightness(.95)}
html body #app.v0-cdc-interface .connected-bottom{background:var(--cdc-surface)!important;border-color:var(--cdc-line)!important;border-radius:17px;box-shadow:0 3px 25px #0b1f3315!important}
html body #app.v0-cdc-interface .connected-bottom button{color:var(--cdc-muted)!important;background:transparent!important;border-radius:9px;min-height:48px}
html body #app.v0-cdc-interface .connected-bottom button[aria-current=page]{background:#f6cb481f!important;color:var(--cdc-text)!important;box-shadow:inset 0 3px 0 var(--cdc-gold)!important}
html body #app.v0-cdc-interface #page{background:transparent!important;color:var(--cdc-text)!important}
html body #app.v0-cdc-interface #page :is(h1,h2,h3){color:var(--cdc-text)!important;letter-spacing:-.035em}
html body #app.v0-cdc-interface #page .panel{background:var(--cdc-surface)!important;border:1px solid var(--cdc-line)!important;box-shadow:none!important;border-radius:16px!important}
html body #app.v0-cdc-interface .v0-button.v0-primary{background:var(--cdc-gold)!important;border-color:var(--cdc-gold)!important;color:var(--cdc-navy)!important}
/* Home: keep every metric tied to existing data and preserve every action. */
html body #app.v0-cdc-interface[data-v0-screen=home] #page{max-width:1240px!important;margin:auto!important;padding:26px 24px 110px!important}
html body #app.v0-cdc-interface .billing-intro{background:var(--cdc-navy)!important;border-radius:16px 16px 0 0;padding:24px 24px 10px!important;margin:0!important;background-image:linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px)!important;background-size:40px 40px!important}
html body #app.v0-cdc-interface #page .billing-intro h1{color:#fff!important;font-size:27px!important}
html body #app.v0-cdc-interface .billing-intro p{color:#b2c9dc!important;margin-top:6px!important;font-size:13px!important}
html body #app.v0-cdc-interface .billing-toolbar{background:var(--cdc-navy)!important;border-radius:0 0 16px 16px;padding:12px 24px 24px!important;margin:0 0 20px!important;gap:12px}
html body #app.v0-cdc-interface .billing-search{background:var(--cdc-surface)!important;border:1px solid var(--cdc-line)!important;box-shadow:none!important;min-height:48px}
html body #app.v0-cdc-interface .billing-search input{color:var(--cdc-text)!important;background:transparent!important}
html body #app.v0-cdc-interface :is(.billing-search-button,.billing-quick-sale){background:var(--cdc-gold)!important;color:var(--cdc-navy)!important;border:0!important;box-shadow:none!important;border-radius:10px!important;min-height:44px}
html body #app.v0-cdc-interface .billing-quick-sale :is(.billing-sale-label,.billing-sale-arrow){color:var(--cdc-navy)!important}
html body #app.v0-cdc-interface .billing-sale-fill{background:var(--cdc-gold)!important}
html body #app.v0-cdc-interface :is(.billing-metric,.v0-home-rate){padding:21px!important;background:var(--cdc-surface)!important;border:1px solid var(--cdc-line)!important;border-radius:15px!important}
html body #app.v0-cdc-interface :is(.billing-metric-top,.billing-metric-detail,.billing-caption){color:var(--cdc-muted)!important}
html body #app.v0-cdc-interface :is(.billing-value,.v0-rate-value){color:var(--cdc-text)!important}
html body #app.v0-cdc-interface .v0-home-rate.is-pending{border-color:#e9c5c9!important}
html body #app.v0-cdc-interface .v0-home-rate button{background:#f6cb4826!important;border:1px solid #d6b559!important;color:var(--cdc-text)!important;border-radius:9px!important;min-height:44px!important}
html body #app.v0-cdc-interface .billing-recent table{color:var(--cdc-text)!important}
html body #app.v0-cdc-interface .billing-recent th{background:var(--cdc-soft)!important;color:var(--cdc-muted)!important;font-weight:500!important}
html body #app.v0-cdc-interface .billing-recent td{border-color:var(--cdc-line)!important}
html body #app.v0-cdc-interface .billing-recent td small{color:var(--cdc-muted)!important}
/* Document menu: one reachable row per document, all real handlers retained. */
html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page{width:100%!important;max-width:708px!important;padding:26px 24px 110px!important;margin:auto!important}
html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-header{background:var(--cdc-navy)!important;border-radius:15px 15px 0 0;padding:25px 22px 45px!important;margin:0!important;background-image:linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px)!important;background-size:40px 40px!important}
html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page .menu-hub-header h1{color:white!important;font-size:28px!important}
html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-eyebrow{display:block!important;color:var(--cdc-gold)!important;font-size:10px!important;letter-spacing:.1em!important;text-transform:uppercase}
html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-description{color:#b4ccde!important;font-size:13px!important}
html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-section{margin-top:-20px!important;position:relative;padding:0 12px!important}
html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-card{display:grid!important;grid-template-columns:48px minmax(0,1fr) 26px!important;grid-template-rows:auto auto!important;column-gap:15px!important;row-gap:4px!important;align-content:center!important;min-height:105px!important;padding:18px!important;background:var(--cdc-surface)!important;border:1px solid var(--cdc-line)!important;border-radius:15px!important;box-shadow:0 4px 14px #0b1f3306!important;text-align:left!important}
html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-card:first-child{border-color:#dbc16e!important}
html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-card-top{display:contents!important}
html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-icon{grid-column:1;grid-row:1/3;width:48px!important;height:48px!important;background:var(--cdc-soft)!important;color:var(--cdc-muted)!important;box-shadow:none!important;border-radius:12px!important}
html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-card:first-child .menu-hub-icon{background:var(--cdc-gold)!important;color:var(--cdc-navy)!important}
html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-arrow{grid-column:3;grid-row:1/3;background:var(--cdc-soft)!important;color:var(--cdc-muted)!important;width:26px!important;height:26px!important}
html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-card>strong{grid-column:2;grid-row:1;font-size:16px!important;color:var(--cdc-text)!important}
html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-card-description{grid-column:2;grid-row:2;color:var(--cdc-muted)!important;font-size:12px!important;line-height:1.6!important}
/* Single-column invoice, shared mobile/editor source of truth. */
html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready{max-width:692px!important;padding:24px 16px calc(125px + env(safe-area-inset-bottom))!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-title{gap:10px!important;margin-bottom:19px!important;flex-wrap:nowrap!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-title h1{font-size:23px!important;color:var(--cdc-text)!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-title p:not(.v0-cdc-eyebrow){font-size:11px!important;margin:4px 0 0!important;color:var(--cdc-muted)!important}
html body #app.v0-cdc-interface.v0-shell #page .v0-cdc-eyebrow{font-size:9px!important;margin:0 0 3px!important;color:var(--cdc-muted)!important;letter-spacing:.1em!important}
html body #app.v0-cdc-interface.v0-shell #page .v0-title>.v0-icon{background:var(--cdc-surface)!important;border:1px solid var(--cdc-line)!important;border-radius:10px!important;color:var(--cdc-text)!important;width:44px!important;height:44px!important;min-height:44px!important}
html body #app.v0-cdc-interface.v0-shell #page .v0-mobile-clear{color:var(--cdc-muted)!important;font-size:12px!important;padding:8px!important;min-height:44px!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready :is(.v0-panel,.v0-sales-form>.v0-panel){background:var(--cdc-surface)!important;border:1px solid var(--cdc-line)!important;border-radius:16px!important;padding:20px!important;margin-bottom:14px!important;box-shadow:none!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready :is(.v0-cdc-section-heading,.v0-mobile-client-heading,.v0-mobile-product-heading h2){color:var(--cdc-text)!important;font-size:15px!important;font-weight:650!important;letter-spacing:-.02em!important;line-height:1.4!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-cdc-section-heading{margin:0 0 16px!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready label{font-size:12px!important;color:var(--cdc-text)!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready :is(input:not([type=hidden]):not([type=checkbox]),select.v0-mobile-select,select.v0-native-choice){font-size:16px!important;background:var(--cdc-soft)!important;color:var(--cdc-text)!important;border:1px solid var(--cdc-line)!important;border-radius:10px!important;min-height:48px!important;height:48px!important;padding:10px 12px!important;box-shadow:none!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready :is(input,select):focus-visible{outline:2px solid #c5a33c!important;outline-offset:1px}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-doc-grid{gap:14px!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-customer-search .v0-icon{background:var(--cdc-gold)!important;color:var(--cdc-navy)!important;border-radius:10px!important;width:48px!important;height:48px!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-mobile-add{background:#f6cb4825!important;color:var(--cdc-text)!important;border:1px solid #d9bc66!important;border-radius:9px!important;min-height:44px!important;font-size:12px!important;padding:9px 12px!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-mobile-empty{padding:16px 0!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-mobile-empty strong{font-size:14px!important;color:var(--cdc-text)!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-mobile-empty p{font-size:12px!important;color:var(--cdc-muted)!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-mobile-products{gap:0!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-mobile-product{background:var(--cdc-surface)!important;border:0!important;border-top:1px solid var(--cdc-line)!important;border-radius:0!important;padding:16px 0!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-mobile-number{background:var(--cdc-soft)!important;color:var(--cdc-muted)!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-mobile-product-copy strong{color:var(--cdc-text)!important;font-size:14px!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-mobile-product-copy small{color:var(--cdc-muted)!important;font-size:11px!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready :is(.v0-mobile-stepper button,.v0-mobile-product-actions button){background:var(--cdc-soft)!important;color:var(--cdc-text)!important;border:1px solid var(--cdc-line)!important;border-radius:8px!important;min-height:44px!important;min-width:44px!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-mobile-product-actions .danger{color:#b33e50!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-checkout{max-width:684px!important;border:1px solid var(--cdc-line)!important;background:var(--cdc-surface)!important;box-shadow:0 -3px 25px #0b1f3310!important;border-radius:16px 16px 0 0!important;padding:13px 18px calc(13px + env(safe-area-inset-bottom))!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-checkout .v0-mobile-total strong{font-size:24px!important;color:var(--cdc-text)!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-checkout .v0-mobile-total small{font-size:10px!important;color:var(--cdc-muted)!important}
html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-checkout>.v0-primary{background:var(--cdc-gold)!important;color:var(--cdc-navy)!important;border-radius:10px!important;min-height:48px!important;font-size:13px!important;padding:12px 16px!important;max-width:49%!important}
html body #app.v0-cdc-interface.v0-cdc-keyboard #page.v0-mobile-ready .v0-checkout{display:none!important}
/* Dialogs use body because the app mounts them outside #app. */
body:has(#app.v0-cdc-interface) :is(dialog.v0-product-sheet,dialog.v0-cdc-review){background:#fff!important;color:#102b40!important;border:1px solid #d8e3ed!important;border-radius:18px!important;font-family:Inter,system-ui,sans-serif}
body:has(#app.v0-cdc-interface) .v0-product-sheet :is(input,select){background:#f5f7fa!important;color:#102b40!important;border-color:#d8e3ed!important;border-radius:10px!important;min-height:48px!important;font-size:16px!important}
body:has(#app.v0-cdc-interface) .v0-product-sheet :is(.v0-sheet-save,.v0-catalog-search){background:#f6cb48!important;color:#0b1f33!important;border-radius:10px!important}
body:has(#app.v0-cdc-interface) .v0-product-sheet h2{font-size:22px!important;letter-spacing:-.035em;color:#102b40!important}
body:has(#app.v0-cdc-interface) .v0-product-sheet .v0-sheet-hint{color:#617e98!important;font-size:12px!important;line-height:1.7}
body:has(#app.v0-cdc-interface) .v0-product-sheet .v0-catalog-result{background:#f5f7fa!important;color:#102b40!important;border-color:#d8e3ed!important}
body dialog.v0-cdc-review{box-sizing:border-box;width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:22px;overflow:auto}
body dialog.v0-cdc-review::backdrop{background:#0b1f3399;backdrop-filter:blur(3px)}
body dialog.v0-cdc-review header{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}
body dialog.v0-cdc-review .v0-cdc-eyebrow{font-size:10px;color:#617e98;letter-spacing:.08em;font-weight:600}
body dialog.v0-cdc-review h2{font-size:25px;margin:0;letter-spacing:-.04em}
body dialog.v0-cdc-review .v0-cdc-close{width:44px;height:44px;background:transparent;border:0;color:#617e98;font-size:25px;cursor:pointer}
body dialog.v0-cdc-review .v0-cdc-review-client{font-size:13px;line-height:1.7;color:#617e98;margin:10px 0 22px;overflow-wrap:anywhere}
body dialog.v0-cdc-review .v0-cdc-review-lines{background:#f5f7fa;border:1px solid #d8e3ed;border-radius:12px;padding:16px}
body dialog.v0-cdc-review .v0-cdc-review-line{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #d8e3ed}
body dialog.v0-cdc-review .v0-cdc-review-line strong{font-size:13px;display:block;font-weight:550;overflow-wrap:anywhere}
body dialog.v0-cdc-review .v0-cdc-review-line small{font-size:11px;color:#617e98;display:block;margin-top:5px}
body dialog.v0-cdc-review .v0-cdc-review-line b{font-size:13px;white-space:nowrap;font-weight:600}
body dialog.v0-cdc-review .v0-cdc-review-total{display:flex;justify-content:space-between;gap:14px;align-items:center;padding-top:18px;font-size:13px}
body dialog.v0-cdc-review .v0-cdc-review-total strong{font-size:24px;letter-spacing:-.03em;overflow-wrap:anywhere;text-align:right}
body dialog.v0-cdc-review .v0-cdc-review-note{font-size:12px;color:#617e98;line-height:1.7;margin:20px 0}
body dialog.v0-cdc-review .v0-cdc-review-actions{display:flex;gap:10px}
body dialog.v0-cdc-review .v0-cdc-review-actions button{flex:1;min-height:48px;padding:12px;border:1px solid #d8e3ed;border-radius:10px;font:600 13px Inter,system-ui;cursor:pointer}
body dialog.v0-cdc-review .v0-cdc-primary{background:#f6cb48;color:#0b1f33;border-color:#f6cb48!important}
body dialog.v0-cdc-review .v0-cdc-secondary{background:#fff;color:#617e98}
@media(max-width:760px){
 html body #app.v0-cdc-interface .connected-top{padding:10px 16px!important;min-height:66px;gap:12px}
 html body #app.v0-cdc-interface .connected-top img{width:120px!important;height:37px!important}
 html body #app.v0-cdc-interface .connected-actions{margin-left:auto;gap:6px!important}
 html body #app.v0-cdc-interface .connected-actions button{min-width:44px!important;padding:8px!important}
 html body #app.v0-cdc-interface .connected-bottom{left:0!important;right:0!important;bottom:0!important;transform:none!important;width:100%!important;border-radius:0!important;padding:5px 6px calc(5px + env(safe-area-inset-bottom))!important;gap:2px!important}
 html body #app.v0-cdc-interface .connected-bottom button{flex:1!important;min-width:0!important;font-size:10px!important;min-height:52px!important;padding:5px 2px!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page{padding:0 16px 100px!important;max-width:692px!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-header{margin:0 -16px!important;border-radius:0!important;padding:24px 16px 45px!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page .menu-hub-header h1{font-size:25px!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-section{padding:0!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-card{padding:16px!important;grid-template-columns:44px minmax(0,1fr) 24px!important;column-gap:12px!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-icon{width:44px!important;height:46px!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-card>strong{font-size:15px!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-card-description{font-size:11px!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] #page{padding:0 16px 100px!important}
 html body #app.v0-cdc-interface .billing-intro{margin:0 -16px!important;border-radius:0!important;padding:24px 16px 10px!important}
 html body #app.v0-cdc-interface #page .billing-intro h1{font-size:24px!important}
 html body #app.v0-cdc-interface .billing-toolbar{margin:0 -16px 18px!important;border-radius:0!important;padding:10px 16px 23px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 html body #app.v0-cdc-interface .billing-search input{font-size:16px!important}
 html body #app.v0-cdc-interface .billing-quick-sale{min-height:48px!important;width:100%!important;max-width:none!important;justify-content:center!important}
 html body #app.v0-cdc-interface .billing-metrics{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 html body #app.v0-cdc-interface .billing-recent table{min-width:0!important}
 html body #app.v0-cdc-interface .billing-recent thead{display:none!important}
 html body #app.v0-cdc-interface .billing-recent :is(tbody,tr){display:block!important}
 html body #app.v0-cdc-interface .billing-recent tr{padding:15px!important;border-bottom:1px solid var(--cdc-line)!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:9px!important}
 html body #app.v0-cdc-interface .billing-recent td{display:block!important;padding:0!important;border:0!important;font-size:12px!important;min-width:0!important}
 html body #app.v0-cdc-interface .billing-recent td:nth-child(1){grid-row:1;grid-column:1;color:var(--cdc-muted)!important;font-size:10px!important}
 html body #app.v0-cdc-interface .billing-recent td:nth-child(2){grid-row:2;grid-column:1/3}
 html body #app.v0-cdc-interface .billing-recent td:nth-child(3){grid-row:3;grid-column:1;color:var(--cdc-muted)!important;font-size:10px!important}
 html body #app.v0-cdc-interface .billing-recent td:nth-child(4){grid-row:4;grid-column:1;font-size:15px!important;text-align:left!important}
 html body #app.v0-cdc-interface .billing-recent td:nth-child(5){grid-row:1;grid-column:2}
 html body #app.v0-cdc-interface .billing-recent td:nth-child(6){grid-row:3/5;grid-column:2;align-self:end}
 html body #app.v0-cdc-interface .billing-open-sale{width:44px!important;height:44px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready{padding:16px 16px calc(120px + env(safe-area-inset-bottom))!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready :is(.v0-panel,.v0-sales-form>.v0-panel){padding:17px 16px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-title{flex-wrap:wrap!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-title h1{font-size:21px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-mobile-product-actions{max-width:56px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-checkout{padding:12px 16px calc(12px + env(safe-area-inset-bottom))!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-checkout>.v0-primary{font-size:12px!important;padding:10px 12px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-checkout>.v0-primary svg{width:17px!important;height:17px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-checkout .v0-mobile-total strong{font-size:22px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-mobile-ready .v0-checkout .v0-mobile-total small{font-size:9px!important}
 body dialog.v0-cdc-review{margin:0;top:auto;bottom:0;left:0;right:0;width:100%;max-width:100%;border-radius:20px 20px 0 0!important;padding:20px 22px calc(24px + env(safe-area-inset-bottom))}
 body:has(#app.v0-cdc-interface) dialog.v0-product-sheet{border-radius:20px 20px 0 0!important}
}
@media(hover:hover) and (pointer:fine){html body #app.v0-cdc-interface:has(> .v0-menu-overview) .menu-hub-card:hover{border-color:#c6a645!important;transform:translateY(-1px)!important}}
@media(prefers-reduced-motion:reduce){html body #app.v0-cdc-interface *{scroll-behavior:auto!important;transition:none!important}}
/* Override legacy palette/table sizing only inside the approved V0 shell. */
html[data-theme] body #app.v0-cdc-interface.v0-cdc-interface .connected-bottom{background:var(--cdc-surface)!important;border-color:var(--cdc-line)!important}
html[data-theme] body #app.v0-cdc-interface.v0-cdc-interface .connected-bottom button{background:transparent!important;color:var(--cdc-muted)!important;border-radius:9px!important}
html[data-theme] body #app.v0-cdc-interface.v0-cdc-interface .connected-bottom button[aria-current=page]{background:#f6cb4826!important;color:var(--cdc-text)!important;box-shadow:inset 0 3px 0 var(--cdc-gold)!important}
html[data-theme] body #app.v0-cdc-interface.v0-cdc-interface .billing-search-button{background:var(--cdc-gold)!important;color:var(--cdc-navy)!important;min-width:44px!important}
@media(max-width:760px){
 html body #app.v0-cdc-interface[data-v0-screen=home] #page{width:100%!important}
 html body #app.v0-cdc-interface .billing-recent td{height:auto!important;min-height:0!important}
 html body #app.v0-cdc-interface .billing-recent tr{height:auto!important;grid-template-rows:auto auto auto auto!important;align-content:start!important}
 html body #app.v0-cdc-interface .billing-recent .table-wrap{max-height:none!important}
 html body #app.v0-cdc-interface .billing-open-sale{min-height:44px!important}
 html body #app.v0-cdc-interface .connected-bottom{max-width:100%!important;margin:0!important}
}
/* SYNGPRO V0 CDC DESIGN 1.0.239 END */

/* SYNGPRO V0 RESPONSIVE 1.0.240 BEGIN */
/* Preserve the approved phone interface; use the available desktop workspace. */
@media screen and (min-width:900px){
 html body #app.v0-cdc-interface .connected-top{padding:10px max(24px,calc((100% - 1640px)/2))!important;min-height:64px!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] #page,
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page{width:calc(100% - 48px)!important;max-width:1640px!important;margin:0 auto!important;padding:24px 0 24px!important;box-sizing:border-box!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-intro{padding:20px 24px 8px!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-toolbar{padding:10px 24px 20px!important;margin-bottom:16px!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-home{padding-bottom:16px!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-metrics{margin-bottom:16px!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-metrics :is(.billing-metric,.v0-home-rate){padding:16px 20px!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-metrics .v0-home-rate{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto auto!important;gap:5px 14px!important;align-content:center!important;text-align:left!important;min-height:110px!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .v0-home-rate>:not(button){grid-column:1!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .v0-home-rate>button{grid-column:2!important;grid-row:1/4!important;align-self:center!important;margin:0!important;max-width:150px!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page.v101-menu .menu-hub-header{padding:24px!important;margin:0 0 20px!important;border-radius:16px!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page.v101-menu .menu-hub-description{color:#b4ccde!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page.v101-menu .menu-hub-section{padding:0!important;margin:0!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page.v101-menu .menu-hub-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page.v101-menu .menu-hub-card{grid-template-columns:48px minmax(0,1fr) 26px!important;grid-template-rows:auto auto!important;min-height:136px!important;align-content:center!important;padding:22px!important;gap:6px 16px!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page.v101-menu .menu-hub-card-top{display:contents!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page.v101-menu .menu-hub-icon{grid-row:1/3!important;grid-column:1!important;width:48px!important;height:48px!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page.v101-menu .menu-hub-arrow{position:static!important;grid-row:1/3!important;grid-column:3!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page.v101-menu .menu-hub-card>strong{grid-row:1!important;grid-column:2!important;font-size:17px!important;padding:0!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page.v101-menu .menu-hub-card-description{grid-row:2!important;grid-column:2!important;margin:0!important;line-height:1.5!important;white-space:normal!important}
}
@media screen and (min-width:1200px){
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page.v101-menu .menu-hub-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page.v101-menu .menu-hub-card{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important;min-height:192px!important}
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page.v101-menu .menu-hub-card-top{display:flex!important;width:100%!important;justify-content:space-between!important;align-items:center!important;margin:0!important}
}
@media screen and (min-width:1000px){
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready{width:calc(100% - 48px)!important;max-width:1640px!important;margin:0 auto!important;padding:22px 0 124px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-title{margin-bottom:18px!important;flex-wrap:nowrap!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready>.v0-document-selector .v0-doc-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.4fr)!important;gap:18px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready>.v0-document-selector .v0-doc-grid>*{grid-column:auto!important;min-width:0!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready>.v0-sales-form:not([hidden]){display:grid!important;grid-template-columns:minmax(330px,.85fr) minmax(0,1.45fr)!important;gap:18px!important;align-items:start!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready>.v0-sales-form>.v0-customer-compact{grid-column:1!important;grid-row:1!important;min-width:0!important;margin:0!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready>.v0-sales-form>.v0-products-panel{grid-column:2!important;grid-row:1!important;min-width:0!important;margin:0!important;min-height:336px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready>.v0-sales-form>:not(.v0-customer-compact):not(.v0-products-panel){grid-column:1/-1!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-checkout{width:calc(100% - 48px)!important;max-width:1640px!important;left:50%!important;right:auto!important;bottom:0!important;transform:translateX(-50%)!important;padding:16px 24px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-checkout>.v0-primary{min-width:210px!important;font-size:14px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-mobile-empty{padding:72px 20px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-mobile-product-actions{max-width:none!important;flex-wrap:nowrap!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-mobile-product-actions button{padding:8px 12px!important}
}
/* SYNGPRO V0 RESPONSIVE 1.0.240 END */

/* SYNGPRO V0 NAV CAPSULE 1.0.241 BEGIN */
/* Match the active destination to the rounded floating navigation. Keep its yellow palette. */
html body #app.v0-cdc-interface.v0-cdc-interface .connected-bottom button,
html[data-theme] body #app.v0-cdc-interface.v0-cdc-interface .connected-bottom button{border-radius:999px!important}
html body #app.v0-cdc-interface.v0-cdc-interface .connected-bottom button[aria-current=page],
html[data-theme] body #app.v0-cdc-interface.v0-cdc-interface .connected-bottom button[aria-current=page]{box-shadow:none!important}
/* SYNGPRO V0 NAV CAPSULE 1.0.241 END */

/* SYNGPRO V0 MOBILE HOME 1.0.242 BEGIN */
/* The installed home adds its own padding and a 100%-wide toolbar. Give both hero halves one containing width. */
@media screen and (max-width:760px){
 html body #app.v0-cdc-interface[data-v0-screen=home] #page{width:100%!important;max-width:100%!important;margin:0!important;padding:12px 16px calc(88px + env(safe-area-inset-bottom,0px))!important;box-sizing:border-box!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-home{width:100%!important;max-width:none!important;min-width:0!important;padding:0!important;margin:0!important;box-sizing:border-box!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] :is(.billing-intro,.billing-toolbar){width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-intro{margin:0!important;padding:20px 16px 8px!important;border-radius:16px 16px 0 0!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-intro>div{min-width:0;max-width:100%}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-intro h1{overflow-wrap:anywhere}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-toolbar{margin:0 0 14px!important;padding:10px 16px 16px!important;border-radius:0 0 16px 16px!important;gap:10px!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-search{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-quick-sale{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-metrics{margin:0 0 14px!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-metrics>.billing-metric{min-height:112px!important;padding:16px!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .v0-home-rate{padding:16px!important;gap:6px!important}
 html body #app.v0-cdc-interface[data-v0-screen=home] .billing-recent{padding:14px!important;box-sizing:border-box!important}
}
/* SYNGPRO V0 MOBILE HOME 1.0.242 END */

/* SYNGPRO V0 UNIFIED COLORS 1.0.243 BEGIN */
/* Continue the approved navy/yellow palette in V0's external dialogs. */
body:has(#app.v0-cdc-interface) dialog:is(.v0-lookup,.transport-form-dialog,.transport-lookup){
 --cdc-navy:#0b1f33;--cdc-gold:#f6cb48;--cdc-surface:#fff;--cdc-soft:#f5f7fa;--cdc-text:#102b40;--cdc-muted:#617e98;--cdc-line:#d8e3ed;--cdc-focus:#94721a;
 --v0-surface:var(--cdc-surface);--v0-soft:var(--cdc-soft);--v0-text:var(--cdc-text);--v0-heading:var(--cdc-text);--v0-muted:var(--cdc-muted);--v0-line:var(--cdc-line);--v0-accent:var(--cdc-navy);
 --ux-surface:var(--cdc-surface);--ux-text:var(--cdc-text);--ux-muted:var(--cdc-muted);--ux-border:var(--cdc-line);
 background:var(--cdc-surface)!important;color:var(--cdc-text)!important;border-color:var(--cdc-line)!important;
}
html[data-theme=dark] body:has(#app.v0-cdc-interface) dialog:is(.v0-lookup,.transport-form-dialog,.transport-lookup){--cdc-surface:#12283c;--cdc-soft:#193247;--cdc-text:#edf5fc;--cdc-muted:#b1c7da;--cdc-line:#304a60;--cdc-focus:#f6cb48}
body:has(#app.v0-cdc-interface) dialog:is(.v0-lookup,.transport-form-dialog,.transport-lookup) :is(h2,h3,label){color:var(--cdc-text)!important}
body:has(#app.v0-cdc-interface) dialog:is(.v0-lookup,.transport-form-dialog,.transport-lookup) :is(input,select,textarea){background:var(--cdc-soft)!important;color:var(--cdc-text)!important;border-color:var(--cdc-line)!important;accent-color:var(--cdc-navy)}
body:has(#app.v0-cdc-interface) dialog:is(.v0-lookup,.transport-form-dialog,.transport-lookup) button{background:var(--cdc-surface)!important;color:var(--cdc-text)!important;border-color:var(--cdc-line)!important}
body:has(#app.v0-cdc-interface) dialog:is(.v0-lookup,.transport-form-dialog,.transport-lookup) :is(.v0-primary,.primary){background:var(--cdc-gold)!important;color:var(--cdc-navy)!important;border-color:var(--cdc-gold)!important}
body:has(#app.v0-cdc-interface) dialog.v0-lookup .v0-code-list .v0-button.is-selected{background:var(--cdc-navy)!important;color:#fff!important;border-color:var(--cdc-navy)!important}
html[data-theme=dark] body:has(#app.v0-cdc-interface) dialog.v0-lookup .v0-code-list .v0-button.is-selected{background:var(--cdc-gold)!important;color:var(--cdc-navy)!important;border-color:var(--cdc-gold)!important}
body:has(#app.v0-cdc-interface) dialog.v0-lookup tr.is-selected{background:var(--cdc-soft)!important;color:var(--cdc-text)!important;outline-color:var(--cdc-focus)!important}
body:has(#app.v0-cdc-interface) dialog:is(.v0-lookup,.transport-form-dialog,.transport-lookup) :is(input,select,textarea,button):focus-visible{outline:2px solid var(--cdc-focus)!important;outline-offset:2px;box-shadow:none!important}
body:has(#app.v0-cdc-interface) dialog:is(.v0-lookup,.transport-form-dialog,.transport-lookup) input:focus{outline-color:var(--cdc-focus)!important;box-shadow:none!important}
body:has(#app.v0-cdc-interface) dialog.v0-client-register input[aria-invalid=true]{border-color:#b42332!important;outline-color:#b42332!important}
html[data-theme=dark] body:has(#app.v0-cdc-interface) dialog.v0-client-register input[aria-invalid=true]{border-color:#ffacb9!important;outline-color:#ffacb9!important}
@media(hover:hover){body:has(#app.v0-cdc-interface) dialog:is(.v0-lookup,.transport-form-dialog,.transport-lookup) :is(.v0-primary,.primary):hover:not(:disabled){background:#e8ba35!important;border-color:#e8ba35!important}}
/* Credit-note controls retain their layout and original actions. */
html body #app.v0-cdc-interface #page.v0-main .v0-credit-main .v0-button,
html body #app.v0-cdc-interface #page.v0-main.v0-credit-main .v0-button{color:var(--cdc-text)!important;border-color:var(--cdc-line)!important}
html body #app.v0-cdc-interface #page.v0-main .v0-credit-main .v0-primary,
html body #app.v0-cdc-interface #page.v0-main.v0-credit-main .v0-primary{background:var(--cdc-gold)!important;color:var(--cdc-navy)!important;border-color:var(--cdc-gold)!important}
html body #app.v0-cdc-interface #page.v0-main .v0-credit-main :is(input,select,textarea),
html body #app.v0-cdc-interface #page.v0-main.v0-credit-main :is(input,select,textarea){background:var(--cdc-soft)!important;color:var(--cdc-text)!important;border-color:var(--cdc-line)!important}
html body #app.v0-cdc-interface #page.v0-main :is(input,select,textarea):focus{outline:2px solid #94721a!important;outline-offset:2px;box-shadow:none!important}
html[data-theme=dark] body #app.v0-cdc-interface #page.v0-main :is(input,select,textarea):focus{outline-color:var(--cdc-gold)!important}
html body #app.v0-cdc-interface #page.v0-main .v0-products-panel>h2{background:var(--cdc-soft)!important;color:var(--cdc-text)!important;border-color:var(--cdc-line)!important}
/* A single title in the invoice header; keep Back and Clear accessible. */
html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready .v0-title>div>p{display:none!important}
@media screen and (min-width:1000px){
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready>.v0-sales-form:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-document-workspace.v0-mobile-ready>.v0-sales-form>:is(.v0-customer-compact,.v0-products-panel){align-self:stretch!important;min-height:0!important;box-sizing:border-box!important}
}
/* SYNGPRO V0 UNIFIED COLORS 1.0.243 END */

/* SYNGPRO V0 CREDIT DESKTOP 1.0.244 BEGIN */
/* Desktop credit notes share the invoice workspace width. Phone layout is preserved. */
@media screen and (min-width:900px){
 html body #app.v0-cdc-interface.v0-shell:has(>#page.v0-credit-main){display:block!important;height:auto!important;min-height:calc(100dvh - 20px)!important;overflow:visible!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-main.v0-credit-main{display:block!important;width:calc(100% - 48px)!important;max-width:1640px!important;min-height:calc(100dvh - 84px)!important;height:auto!important;max-height:none!important;margin:0 auto!important;padding:22px 0 120px!important;overflow:visible!important}
 html body #app.v0-cdc-interface.v0-shell:has(>#page.v0-credit-main)>.connected-bottom{position:fixed!important;inset:auto auto 28px 50%!important;transform:translateX(-50%)!important;margin:0!important;z-index:40}
 html body #app.v0-cdc-interface.v0-shell #page.v0-credit-main>.v0-title{margin:0 0 18px!important;gap:12px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-credit-main>.v0-title h1{font-size:23px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-credit-main .v0-panel{padding:18px!important;border:1px solid var(--cdc-line)!important;border-radius:16px!important;box-shadow:none!important;margin-bottom:14px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-credit-main .v0-credit-client-row{display:grid!important;grid-template-columns:minmax(240px,.8fr) minmax(0,1.8fr)!important;gap:18px!important;align-items:end!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-credit-main .v0-credit-client-row:has([data-credit-reason]){grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr) minmax(180px,.6fr)!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-credit-main .v0-credit-reference-row{display:grid!important;grid-template-columns:minmax(240px,.8fr) minmax(0,1.8fr)!important;gap:18px!important;align-items:end!important;padding-top:12px!important;margin-top:12px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-credit-main .v0-credit-reference-row>.v0-search-pair{width:100%!important;max-width:100%!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-credit-main .v0-credit-reference-row>.v0-muted{margin:0!important;align-self:center}
 html body #app.v0-cdc-interface.v0-shell #page.v0-credit-main :is(input:not([type=checkbox]):not([type=hidden]),select){min-height:44px!important;border-radius:10px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-credit-main .v0-credit-reason>.v0-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-credit-main .v0-products-panel>h2{margin:0 0 12px!important;padding:0 0 12px!important;border-radius:0!important;background:transparent!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-credit-main .v0-credit-line{display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(180px,1fr) minmax(160px,220px)!important;gap:18px!important;align-items:center!important;padding:12px 0!important;margin:0!important;border:0!important;border-bottom:1px solid var(--cdc-line)!important;border-radius:0!important;box-shadow:none!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-credit-main .v0-credit-line>.v0-grid{display:block!important;margin:0!important}
 html body #app.v0-cdc-interface.v0-shell #page.v0-credit-main .v0-credit-line .v0-check{min-width:0;overflow-wrap:anywhere}
 html body #app.v0-cdc-interface.v0-shell #page.v0-credit-main .v0-checkout{position:sticky!important;bottom:104px!important;border:1px solid var(--cdc-line)!important;border-radius:16px!important;box-shadow:0 3px 18px #0b1f3310!important;margin-top:14px!important}
}
/* SYNGPRO V0 CREDIT DESKTOP 1.0.244 END */

/* Facturaciones V0: menú inferior e inicio aprobados. */
@media screen {
 html[data-syngpro-palette] body #app.connected-shell.v0-cdc-interface > nav.connected-bottom {
  background:#11283a!important;
  border:1px solid #31485a!important;
  border-radius:18px!important;
  padding:6px!important;
  gap:3px!important;
  box-shadow:0 8px 16px #0b1f331a!important;
 }
 html[data-syngpro-palette] body #app.connected-shell.v0-cdc-interface > nav.connected-bottom button {
  background:transparent!important;
  color:#c4d3e2!important;
  border-radius:12px!important;
  box-shadow:none!important;
  width:98px;
  display:grid!important;justify-items:center;align-content:center;gap:4px;
  box-sizing:border-box;padding:6px 4px!important;
  min-height:54px!important;
  font-size:13px!important;
  line-height:1.2;
 }
 html[data-syngpro-palette] body #app.connected-shell.v0-cdc-interface > nav.connected-bottom button[aria-current="page"] {
  background:#f5c84c!important;
  color:#0b1f33!important;
 }
 html[data-syngpro-palette] body #app.connected-shell.v0-cdc-interface > nav.connected-bottom button:focus-visible {
  outline:2px solid white!important;
  outline-offset:-3px;
 }
 html body #app.connected-shell.v0-cdc-interface[data-v0-screen=home] #page {
  width:100%!important;max-width:none!important;padding-top:0!important;
 }
 html body #app.v0-cdc-interface #page .v0-home-approved.billing-home {
  padding-top:0!important;
 }
 html body #app.v0-cdc-interface #page .v0-home-approved .billing-intro {
  position:relative;
  isolation:isolate;
  background:transparent!important;
  margin:0!important;
  padding:30px 0 46px!important;
 }
 html body #app.v0-cdc-interface #page .v0-home-approved .billing-intro::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:#0b2033;
  box-shadow:0 0 0 100vmax #0b2033;
  clip-path:inset(0 -100vmax);
  pointer-events:none;
 }
 html body #app.v0-cdc-interface #page .v0-home-approved .billing-toolbar {
  position:relative;
  margin:-26px 0 16px!important;
  padding:16px!important;
  border:1px solid var(--cdc-line)!important;
  border-radius:16px!important;
  background:var(--cdc-surface)!important;
  box-shadow:0 3px 12px #0b1f330b;
 }
 html body #app.v0-cdc-interface #page .v0-signature {
  display:inline-flex;align-items:center;gap:8px;
  min-height:32px;margin-top:4px;padding:0;
  color:#ffdf89!important;background:none!important;
  border:0!important;box-shadow:none!important;
  font:inherit;font-size:13px;font-weight:550;text-align:left;
 }
 html body #app.v0-cdc-interface #page .v0-signature::before {
  content:"";flex:none;width:7px;height:7px;border-radius:50%;background:currentColor;
 }
 html body #app.v0-cdc-interface #page .v0-signature[data-state="current"] {color:#74eac2!important}
 html body #app.v0-cdc-interface #page .v0-signature[data-state="expired"] {color:#ffb8c5!important}
 html body #app.v0-cdc-interface #page button.v0-signature:focus-visible {outline:2px solid white;outline-offset:3px}
}
@media screen and (min-width:900px) {
 html body #app.connected-shell.v0-cdc-interface[data-v0-screen=home] #page {
  padding-inline:max(24px,calc((100% - 1640px)/2))!important;
 }
}
@media screen and (max-width:760px) {
 html[data-syngpro-palette] body #app.connected-shell.v0-cdc-interface > nav.connected-bottom {
  width:calc(100% - 16px)!important;left:8px!important;right:8px!important;
  transform:none!important;bottom:max(8px,env(safe-area-inset-bottom))!important;
 }
 html[data-syngpro-palette] body #app.connected-shell.v0-cdc-interface > nav.connected-bottom button {
  flex:1 1 0;min-width:0!important;width:auto;
  padding:5px 1px!important;font-size:clamp(9px,2.65vw,12px)!important;
 }
}

@media screen {
 html body #app.connected-shell.v0-cdc-interface:has(.v0-home-approved) > .connected-top {
  padding:6px max(24px,calc((100% - 1640px)/2))!important;
  gap:12px!important;min-height:52px!important;height:52px!important;
  background:#0b2033!important;border:0!important;
 }
 html body #app.connected-shell.v0-cdc-interface:has(.v0-home-approved) > .connected-top > img {
  width:120px!important;max-height:35px!important;object-fit:contain;
 }
 html body #app.connected-shell.v0-cdc-interface:has(.v0-home-approved) > .connected-top .connected-company {display:none!important}
 html body #app.connected-shell.v0-cdc-interface:has(.v0-home-approved) > .connected-top .connected-actions {
  margin-left:auto!important;display:flex;justify-content:flex-end;align-items:center;gap:8px;width:auto!important;
 }
 html body #app .v0-floating-support {
  position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:45;
  display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#10283a!important;background:#fff;
  box-sizing:border-box;font-size:14px;font-weight:650;text-decoration:none;padding:8px 16px;border-radius:24px;
  border:1px solid #c9d6dd;box-shadow:0 3px 12px #0b20331f;
 }
 html body #app .v0-floating-support:hover {background:#f0f6f4}
 html body #app .v0-floating-support svg {width:20px;height:20px;fill:none;stroke:#11744c;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 html body #app .v0-floating-support:focus-visible {outline:3px solid #1679ab;outline-offset:3px}
 html body #app.v0-cdc-interface #page .v0-home-approved .billing-intro {
  display:flex!important;align-items:center;justify-content:space-between;gap:16px;
  padding:18px 0 43px!important;flex-wrap:wrap;
 }
 html body #app .v0-home-approved .v0-company-meta {display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin-top:4px}
 html body #app .v0-home-approved .v0-company-meta > span {font-size:13px;color:#c7d5e2}
 html body #app .v0-home-approved .v0-company-meta .v0-signature {margin:0!important}
 #app .v0-home-rate.is-pending .v0-rate-state {position:relative;padding-inline-start:15px}
 #app .v0-home-rate.is-pending .v0-rate-state::before,
 #app .v0-home-rate.is-pending .v0-rate-state::after {content:"";position:absolute;left:1px;top:50%;margin-top:-3.5px;width:7px;height:7px;border-radius:50%;background:currentColor}
 #app .v0-home-rate.is-pending .v0-rate-state::after {opacity:0}
}
@keyframes pending-rate-halo {
 0% {transform:scale(1);opacity:.55}
 70%,100% {transform:scale(2.4);opacity:0}
}
@media screen and (prefers-reduced-motion:no-preference) {
 html:not([data-alerts-paused="true"]) #app .v0-home-rate.is-pending .v0-rate-state::after {animation:pending-rate-halo 2s ease-out infinite}
}
@media screen and (max-width:900px) {
 html body #app .v0-floating-support {right:max(14px,env(safe-area-inset-right));bottom:calc(84px + env(safe-area-inset-bottom,0px))}
}
@media screen and (max-width:760px) {
 html body #app.connected-shell.v0-cdc-interface:has(.v0-home-approved) > .connected-top {padding:6px 14px!important;flex-wrap:nowrap!important}
 html body #app.connected-shell.v0-cdc-interface:has(.v0-home-approved) > .connected-top > img {width:100px!important}
 html body #app.v0-cdc-interface #page .v0-home-approved .billing-intro {padding:12px 0 40px!important;gap:10px}
 html body #app .v0-home-approved .v0-company-meta {gap:8px}
}
@media screen {
 #app .v0-home-approved .v0-search-anchor {
  position:relative;
  flex:1;
  min-width:0;
 }
 #app .v0-home-approved .billing-toolbar:has(.billing-search-results:not([hidden])) {
  overflow:visible;
  z-index:7;
 }
 #app .v0-home-approved .v0-search-anchor > .billing-search-results {
  position:absolute;
  inset:calc(100% + 4px) 0 auto;
  width:auto!important;
  max-width:none;
  max-height:min(40vh,22rem);
  box-sizing:border-box;
  margin:0!important;
  overflow:auto;
  overflow-wrap:anywhere;
  overscroll-behavior:contain;
  background:var(--cdc-surface);
  color:var(--cdc-text);
 }
}
@media screen and (max-width:760px) {
 #app #page.v0-management .menu-hub-header > :first-child {width:100%}
 #app .v0-home-approved .v0-search-anchor > .billing-search-results {
  position:static;
  margin-top:4px!important;
 }
}

@media screen {
 html body #app.v0-cdc-interface #page.v0-menu-overview .menu-hub-section[hidden],
 html body #app.v0-cdc-interface #page.v0-menu-overview .menu-hub-grid > .menu-hub-card[hidden] {
  display:none!important;
 }
 #page.v0-menu-overview .menu-hub-search {max-width:100%;min-width:0;box-sizing:border-box}
 #page.v0-menu-overview .menu-hub-search input {min-width:0}
}
@media screen and (min-width:1200px) {
 html body #app.v0-cdc-interface:has(> .v0-menu-overview) #page.v0-reports-menu .menu-hub-grid {
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
}

@media screen and (max-width:760px) {
 html body #app.v0-cdc-interface #page.v101-menu:is(.v0-settings-menu,.v0-reports-menu) .menu-hub-description {
  color:#b4ccde!important;
 }
 html body #app.v0-cdc-interface #page.v101-menu:is(.v0-settings-menu,.v0-reports-menu) .menu-hub-card {
  min-height:92px!important;
 }
}

/* Match Configuración on the V0 DNIT and SIFEN screen. */
html body #app.v0-shell #page:is(.dnit-approved,.dnit-unified) {
  width:calc(100% - 48px)!important;
  max-width:1640px!important;
  box-sizing:border-box;
  padding-inline:0!important;
}
html body #app.v0-shell #page:is(.dnit-approved,.dnit-unified) :is(.dnit-approved-header,.dnit-unified > .heading) {
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px 20px;
  padding:22px 24px!important;
  margin:14px 0 0!important;
  border:0!important;
  border-radius:16px!important;
  background:linear-gradient(110deg,#0b1f31,#142f46)!important;
  color:#fff!important;
}
html body #app.v0-shell #page:is(.dnit-approved,.dnit-unified) :is(.dnit-approved-header,.dnit-unified > .heading) :is(h1,h2) {
  margin:0!important;
  font:750 clamp(20px,2.5vw,28px)/1.2 Inter,"Segoe UI",sans-serif!important;
  color:#fff!important;
}
html body #app.v0-shell #page:is(.dnit-approved,.dnit-unified) :is(.dnit-approved-header,.dnit-unified > .heading) p {color:#c1d5e9!important;}
html body #app.v0-shell #page:is(.dnit-approved,.dnit-unified) .dnit-environment {justify-self:end;}
html body #app.v0-shell #page:is(.dnit-approved,.dnit-unified) .dnit-environment button[aria-pressed=true],
html body #app.v0-shell #page:is(.dnit-approved,.dnit-unified) .dnit-tabs button[aria-selected=true],
html body #app.v0-shell #page:is(.dnit-approved,.dnit-unified) button.dnit-save {
  background:#f5c84c!important;
  color:#0b1f33!important;
  border-color:#f5c84c!important;
}
@media(max-width:760px){
  html body #app.v0-shell #page:is(.dnit-approved,.dnit-unified) {width:calc(100% - 28px)!important;}
  html body #app.v0-shell #page:is(.dnit-approved,.dnit-unified) :is(.dnit-approved-header,.dnit-unified > .heading) {grid-template-columns:minmax(0,1fr);padding:16px!important;}
  html body #app.v0-shell #page:is(.dnit-approved,.dnit-unified) .dnit-environment {justify-self:start;}
}
