.banking-summary{display:flex;align-items:center;gap:20px;padding:24px 28px;background:linear-gradient(110deg,#e8f6fb,#f1f7fc);background:linear-gradient(110deg,color-mix(in srgb, var(--brand) 8%, #fff),#f1f7fc);border:1px solid #d8eaf4;border-radius:16px;margin-bottom:25px;color:#20607c;color:color-mix(in srgb, var(--brand) 47%, color-mix(in srgb, #fff 15.1%, #10283f))}.banking-summary h3{font-size:16px;margin:0 0 7px;color:#18435d}.banking-summary p{margin:0;color:#607d8f;font-size:13px;line-height:1.7}.banking-summary>div:nth-child(2){flex:1}.banking-summary-icon{height:58px;width:58px;background:white;display:grid;place-items:center;border-radius:15px;flex-shrink:0}.banking-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.bank-card{padding:24px;display:flex;flex-direction:column;gap:18px}.bank-card-heading{display:flex;align-items:center;gap:13px}.bank-logo{height:45px;width:45px;color:white;border-radius:12px;display:grid;place-items:center;font-weight:800;font-size:18px}.bank-card h3{margin:0 0 4px;font-size:17px}.bank-card small{font-size:11px;color:#718296}.bank-card>p{font-size:12px;line-height:1.7;color:#718296;margin:0;flex:1}.bank-environments{border:1px solid #e2e9f0;border-radius:10px;overflow:hidden}.bank-environments button{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;border:0;border-bottom:1px solid #e7edf3;background:#fafcfe;padding:13px 14px;cursor:pointer;color:#008bad}.bank-environments button:last-child{border-bottom:0}.bank-environments span{display:grid;gap:5px}.bank-environments strong{font-size:12px;font-weight:500;color:#405971}.bank-environments small{font-size:9px;letter-spacing:1px}.bank-environments button:hover{background:#eff8fc;background:color-mix(in srgb, var(--brand) 6%, #fff)}.bank-card>a{font-size:12px}.banking-flags{display:grid;gap:13px;padding:24px 0;font-size:13px}.banking-flags label{display:flex;align-items:center;gap:10px;line-height:1.5}.banking-flags input{width:16px;height:16px;accent-color:#009fc6}.bank-checks{display:grid;gap:10px;background:#f4f8fb;border-radius:12px;padding:18px}.bank-checks>div{display:flex;gap:10px;color:#39819b;color:color-mix(in srgb, var(--brand) 58%, color-mix(in srgb, #fff 45.2%, #10283f));align-items:flex-start}.bank-checks strong{font-size:12px}.bank-checks small{display:block;font-size:11px;color:#758a9b;margin-top:4px}.bank-payment-code{margin:20px 0;display:flex;gap:15px;align-items:center}.bank-payment-code .field{flex:1}.bank-payment-code textarea{font-family:monospace;font-size:12px}.bank-file-stats{margin-bottom:22px}.bank-config-panel{padding:0;margin-bottom:22px;overflow:hidden}.bank-files-title{padding:22px 26px;border-bottom:1px solid #e4edf3}.bank-files-title h2,.bank-file-results h3{font-size:16px;margin:0 0 5px}.bank-files-title p{font-size:12px;color:#748798;margin:0}.bank-config-list{display:grid}.bank-config-list article{display:grid;grid-template-columns:auto minmax(200px,1fr) auto auto auto;align-items:center;gap:14px;padding:17px 24px;border-bottom:1px solid #e7edf2}.bank-config-list article:last-child{border-bottom:0}.bank-config-list article>div{display:grid;gap:5px}.bank-config-list small{color:#758798;font-size:11px}.bank-code{width:47px;height:40px;border-radius:10px;background:#e9f7fa;background:color-mix(in srgb, var(--brand) 8%, #fff);color:#087f9e;color:var(--brand);display:grid;place-items:center;font-weight:800}.bank-files-history tbody tr{cursor:pointer}.bank-title-picker{border:1px solid #dce7ee;border-radius:12px;overflow:hidden}.bank-title-picker-head,.bank-title-picker label{display:flex;align-items:center;gap:13px;padding:14px 16px;border-bottom:1px solid #e5edf2}.bank-title-picker-head{justify-content:space-between;background:#f6f9fb}.bank-title-picker label:last-child{border-bottom:0}.bank-title-picker label>span{display:grid;gap:4px;flex:1}.bank-title-picker label small{color:#758798;font-size:11px}.bank-boleto-btn{flex-shrink:0;padding:6px 10px;font-size:11px;gap:5px;white-space:nowrap}.bank-title-picker input{width:17px;height:17px;accent-color:#009dc4}.bank-file-results{display:grid;gap:10px;margin-top:18px}.bank-file-results>p,.bank-file-results>div{display:flex;align-items:center;gap:11px;padding:14px;border:1px solid #dfe9ef;border-radius:10px}.bank-file-results>div>div{display:grid;gap:4px;flex:1}.bank-file-results small{font-size:11px;color:#718596}.bank-file-results .matched{color:#148569;background:#f0faf7}.bank-file-results .divergent,.bank-file-results .unmatched{color:#a64c48;background:#fff6f5}@media(max-width:1100px){.banking-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bank-config-list article{grid-template-columns:auto 1fr auto}.bank-config-list article .btn{grid-row:2}.bank-config-list article .badge{grid-column:3}}@media(max-width:650px){.banking-grid{grid-template-columns:1fr}.banking-summary{padding:20px;gap:13px}.banking-summary>svg{display:none}.banking-summary-icon{width:42px;height:42px}.bank-payment-code{display:block}.bank-config-list article{grid-template-columns:auto 1fr}.bank-config-list article .badge{grid-column:2}.bank-config-list article .btn{grid-row:auto}.bank-files-page .ops-heading-actions{width:100%;display:grid}.bank-title-picker label b{display:none}}
.bank-logo-field{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.bank-logo-preview{max-height:40px;max-width:150px;object-fit:contain;border:1px solid #e2e9f0;border-radius:8px;padding:4px;background:#fff}
.bank-logo-empty{font-size:11px;color:#8a99a8;background:#f2f6f9;border:1px dashed #cfdae3;border-radius:8px;padding:10px 14px}
.bank-occ-badge{display:inline-block;margin-left:8px;font-size:9px;font-weight:600;color:#4a6172;background:#eef4f8;border-radius:999px;padding:2px 8px;vertical-align:middle}
.bank-file-results .rejeitado{color:#a64c48;background:#fff6f5}
.bank-file-results .baixa,.bank-file-results .tarifa,.bank-file-results .protesto,.bank-file-results .entrada,.bank-file-results .info,.bank-file-results .outros{color:#8a6d1f;background:#fdf8ec}

.bank-return-summary{flex-wrap:wrap;gap:8px 16px!important;padding:11px 14px!important;background:#f6f9fb!important;border:1px solid #e2ebf1!important;border-radius:10px;font-size:12px;color:#54697b}
.bank-return-summary span{display:inline!important;padding:0!important;border:0!important;gap:0!important}
.bank-return-summary b{color:#28485d}
.bank-issue{color:#a64c48!important;font-size:10.5px!important}
.bank-title-picker label.bank-title-invalid{background:#fff6f5}
.bank-title-picker label.bank-title-invalid input{opacity:.45}

.commercial-tabs{display:flex;gap:8px;padding:5px;background:#eaf0f6;border-radius:12px;width:fit-content;margin-bottom:24px;max-width:100%;overflow:auto}.commercial-tabs button{border:0;background:transparent;padding:11px 20px;color:#637286;border-radius:9px;font:inherit;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}.commercial-tabs button.active{background:white;color:#008cb5;box-shadow:0 2px 6px #1729420d}.commercial-tracking{margin-top:10px;border-top:1px dashed #dce4ed;padding-top:10px}.commercial-tracking summary{cursor:pointer;font-size:12px;color:#53738f}.commercial-tracking .form-grid{margin-top:14px}.commercial-payment-controls{display:grid;grid-template-columns:1fr 1fr 130px auto;gap:14px;align-items:end;margin:12px 0 20px}.commercial-payment-controls .btn{min-height:42px;align-self:end}.commercial-installments{display:grid;gap:8px;max-height:300px;overflow:auto;margin:10px 0}.commercial-installments>div{display:grid;grid-template-columns:26px 1fr 1fr 1fr;gap:10px;align-items:center}.commercial-installments input,.commercial-installments select,.commercial-return-item input{padding:10px;border:1px solid #dce4ed;border-radius:8px;min-width:0;font:inherit;font-size:13px;background:#fff;color:#20344b}.commercial-installments span{font-size:12px;color:#73859a}.commercial-linked{display:grid;gap:1px;background:#e8edf2;border:1px solid #e8edf2;border-radius:10px;overflow:hidden;margin:14px 0 24px}.commercial-linked>div{display:flex;align-items:center;justify-content:space-between;gap:14px;background:white;padding:14px;font-size:13px}.commercial-action{border:1px solid #c4e1ee;border:1px solid color-mix(in srgb, var(--brand) 23%, #fff);background:#f4faff;border-radius:12px;margin-top:20px;padding:20px}.commercial-action h3{margin:0 0 16px}.commercial-action .field{margin:16px 0}.commercial-return-item{display:grid;grid-template-columns:1fr 110px 1fr;gap:16px;align-items:center;border-bottom:1px solid #dce8f0;padding:12px 0;font-size:13px}.commercial-checkbox{display:flex;align-items:center;gap:8px;margin-top:18px}.commercial-detail-actions{flex-wrap:wrap}.commercial-detail-actions .btn{font-size:12px}
.commercial-print-config{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(310px,.75fr);gap:22px;background:#eef3f7;padding:22px}.commercial-print-preview{min-height:610px;border:1px solid #d6e0e9;border-radius:16px;background:#dfe5ea;padding:20px;overflow:auto}.commercial-print-preview iframe{display:block;width:100%;height:570px;border:0;border-radius:8px;background:#fff;box-shadow:0 16px 40px #18293d24}.commercial-print-controls{background:#fff;border:1px solid #dce5ec;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:14px}.commercial-print-controls .field{margin:0}.commercial-print-controls input[type=range]{width:100%;accent-color:#0099bd}.commercial-print-toggles{border-top:1px solid #e2e8ef;padding-top:12px;display:grid;gap:5px}.commercial-print-toggles label{display:grid;grid-template-columns:38px 1fr;align-items:center;gap:10px;min-height:36px;cursor:pointer;font-size:12px;color:#2a4057;position:relative}.commercial-print-toggles input{position:absolute;opacity:0;pointer-events:none}.commercial-print-toggles span{width:36px;height:20px;border-radius:20px;background:#cbd5df;position:relative;transition:.2s}.commercial-print-toggles span:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:white;left:3px;top:3px;box-shadow:0 1px 3px #0003;transition:.2s}.commercial-print-toggles input:checked+span{background:#00a3c7}.commercial-print-toggles input:checked+span:after{transform:translateX(16px)}.commercial-print-toggles input:focus-visible+span{outline:3px solid #8bd7e8;outline-offset:2px}
@media(max-width:900px){.commercial-print-config{grid-template-columns:1fr}.commercial-print-preview{min-height:420px}.commercial-print-preview iframe{height:390px}}
@media(max-width:700px){.commercial-payment-controls{grid-template-columns:1fr 1fr}.commercial-installments>div{grid-template-columns:20px 1fr 1fr}.commercial-installments select{grid-column:2/4}.commercial-return-item{grid-template-columns:1fr 90px}.commercial-return-item input:last-child{grid-column:auto}.commercial-linked>div{flex-wrap:wrap}.commercial-tabs button{padding:10px 14px}.commercial-print-config{padding:12px}.commercial-print-preview{display:none}}

/* Página de personalização dos documentos comerciais. */
.commercial-print-page{max-width:1680px!important}.commercial-print-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}.commercial-print-page-heading h1{margin:7px 0 5px;font-size:30px;letter-spacing:-.7px}.commercial-print-page-heading p{margin:0;color:#718695;font-size:12px}.commercial-print-back{display:inline-flex;align-items:center;gap:6px;margin-bottom:16px;padding:0;border:0;background:transparent;color:#4e6a7d;font-size:11px;font-weight:700;cursor:pointer}.commercial-print-back:hover{color:#008ca8}.commercial-print-back svg{width:15px}.commercial-print-page-actions{display:flex;gap:9px}.commercial-print-page-actions .btn{display:flex;align-items:center;gap:7px;white-space:nowrap}
.commercial-print-doc-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}.commercial-print-doc-tabs>button{position:relative;display:grid;grid-template-columns:42px 1fr 20px;align-items:center;gap:12px;min-height:76px;padding:13px 15px;border:1px solid #dce6eb;border:1px solid color-mix(in srgb, var(--brand) 7%, color-mix(in srgb, #fff 92.5%, #10283f));border-radius:11px;background:#fff;color:#647b8b;text-align:left;cursor:pointer}.commercial-print-doc-tabs>button:hover{border-color:#87cbd9;background:#fbfeff;background:color-mix(in srgb, var(--brand) 1%, #fff)}.commercial-print-doc-tabs>button.active{border-color:#009bb9;background:#eefafd;background:color-mix(in srgb, var(--brand) 6%, #fff);box-shadow:0 0 0 2px #009bb912}.commercial-print-doc-tabs>button>span{display:grid;place-items:center;width:42px;height:42px;border-radius:9px;background:#eef3f6;color:#637d8e}.commercial-print-doc-tabs>button.active>span{background:#d9f3f8;color:#008ca8}.commercial-print-doc-tabs>button>span svg{width:20px}.commercial-print-doc-tabs>button>div{display:grid;gap:4px}.commercial-print-doc-tabs b{font-size:13px;color:#2f4d60}.commercial-print-doc-tabs small{font-size:9px}.commercial-print-doc-tabs>button>svg{width:17px;color:#009bb9}
.commercial-print-workspace{display:grid;grid-template-columns:minmax(0,1fr) 410px;gap:16px;align-items:start}.commercial-print-stage{min-width:0;overflow:hidden;border:1px solid #d8e3e9;border-radius:13px;background:#e8eef2;box-shadow:0 8px 26px #10283c0c}.commercial-print-stage>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 16px;border-bottom:1px solid #d8e2e8;background:#fff}.commercial-print-stage>header>div{display:flex;align-items:center;gap:10px}.commercial-print-stage>header svg{width:18px;color:#008fab}.commercial-print-stage>header span{display:grid;gap:2px}.commercial-print-stage>header b{font-size:11px;color:#2f4e61}.commercial-print-stage>header small{font-size:9px;color:#8999a4}.commercial-print-stage .commercial-print-live{display:flex;grid-auto-flow:column;align-items:center;gap:6px;color:#668090;font-size:9px}.commercial-print-live i{width:7px;height:7px;border-radius:50%;background:#1eaa7d;box-shadow:0 0 0 3px #1eaa7d18}.commercial-print-canvas{display:flex;align-items:flex-start;justify-content:center;min-height:820px;max-height:calc(100dvh - 250px);padding:26px;overflow:auto}.commercial-print-canvas iframe{flex:0 0 auto;border:0;background:#fff;box-shadow:0 12px 38px #10283c26;transition:width .18s,height .18s}.commercial-print-canvas.model-a4.portrait iframe{width:min(100%,794px);height:1123px}.commercial-print-canvas.model-a4.landscape iframe{width:min(100%,1123px);height:794px}.commercial-print-canvas.model-a5.portrait iframe{width:min(100%,560px);height:794px}.commercial-print-canvas.model-a5.landscape iframe{width:min(100%,794px);height:560px}.commercial-print-canvas.model-thermal iframe{width:302px;height:1050px}
.commercial-print-sidebar{display:grid;gap:12px;position:sticky;top:18px}.commercial-print-sidebar>section{padding:17px;border:1px solid #dce6eb;border:1px solid color-mix(in srgb, var(--brand) 7%, color-mix(in srgb, #fff 92.5%, #10283f));border-radius:12px;background:#fff;box-shadow:0 5px 18px #10283c09}.commercial-print-section-title{display:flex;align-items:flex-start;gap:10px;margin-bottom:15px}.commercial-print-section-title>span{display:grid;place-items:center;flex:0 0 25px;height:25px;border-radius:7px;background:#e5f6f9;background:color-mix(in srgb, var(--brand) 9%, #fff);color:#008da8;font-size:10px;font-weight:800}.commercial-print-section-title h2{margin:0;color:#2d4a5d;font-size:13px}.commercial-print-section-title p{margin:4px 0 0;color:#8798a3;font-size:9px;line-height:1.5}.commercial-print-models{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.commercial-print-models>button{position:relative;display:grid;justify-items:start;gap:5px;min-height:94px;padding:10px;border:1px solid #dce5ea;border-radius:9px;background:#fff;color:#788d9a;text-align:left}.commercial-print-models>button:hover{border-color:#7fc8d6}.commercial-print-models>button.active{border-color:#009ab7;background:#effafd;background:color-mix(in srgb, var(--brand) 5%, #fff);color:#008ba6;box-shadow:inset 0 0 0 1px #009ab714}.commercial-print-models>button>svg:first-child{width:18px}.commercial-print-models>button>svg:last-child{position:absolute;top:8px;right:8px;width:13px}.commercial-print-models b{font-size:11px;color:#365569}.commercial-print-models small{font-size:8px;line-height:1.35}.commercial-print-orientation{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:10px;padding:4px;border-radius:8px;background:#eef3f6}.commercial-print-orientation button{height:34px;border:0;border-radius:6px;background:transparent;color:#6d8392;font-size:10px;font-weight:700}.commercial-print-orientation button.active{background:#fff;color:#008ca7;box-shadow:0 2px 7px #10283c12}.commercial-print-range{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:14px;color:#80919d;font-size:8px}.commercial-print-range>span{grid-column:1/-1;display:flex;justify-content:space-between;color:#536e7f;font-size:10px}.commercial-print-range input{grid-column:1/-1;width:100%;accent-color:#009dbc}.commercial-print-range small:last-child{text-align:right}
.commercial-print-sidebar .commercial-print-toggles{padding:0;border:0}.commercial-print-sidebar .commercial-print-toggles.two-columns{grid-template-columns:1fr 1fr;column-gap:14px}.commercial-print-sidebar .commercial-print-toggles label{min-height:31px;font-size:10px}.commercial-print-sidebar .commercial-print-toggles span{width:32px;height:18px}.commercial-print-sidebar .commercial-print-toggles span:after{width:12px;height:12px}.commercial-print-sidebar .commercial-print-toggles input:checked+span:after{transform:translateX(14px)}.commercial-print-reset{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border:1px dashed #c8d7df;border-radius:9px;background:transparent;color:#667e8d;font-size:10px;font-weight:700}.commercial-print-reset:hover{border-color:#009bb9;color:#0088a3;background:#f5fbfc;background:color-mix(in srgb, var(--brand) 4%, #fff)}.commercial-print-reset svg{width:15px}
@media(max-width:1250px){.commercial-print-workspace{grid-template-columns:minmax(0,1fr) 350px}.commercial-print-sidebar .commercial-print-toggles.two-columns{grid-template-columns:1fr}.commercial-print-canvas{padding:18px}.commercial-print-models{grid-template-columns:1fr}.commercial-print-models>button{grid-template-columns:22px 1fr;align-items:center;min-height:55px}.commercial-print-models>button small{grid-column:2}}
@media(max-width:980px){.commercial-print-workspace{grid-template-columns:1fr}.commercial-print-sidebar{position:static;grid-template-columns:1fr 1fr}.commercial-print-sidebar>section:last-of-type{grid-column:1/-1}.commercial-print-reset{grid-column:1/-1}.commercial-print-canvas{max-height:680px;min-height:600px}}
@media(max-width:700px){.commercial-print-page-heading{align-items:flex-start;flex-direction:column}.commercial-print-page-actions{width:100%}.commercial-print-page-actions .btn{flex:1}.commercial-print-doc-tabs{grid-template-columns:1fr}.commercial-print-doc-tabs>button{min-height:65px}.commercial-print-sidebar{grid-template-columns:1fr}.commercial-print-sidebar>section:last-of-type{grid-column:auto}.commercial-print-canvas{min-height:480px;padding:10px}.commercial-print-stage>header{align-items:flex-start}.commercial-print-live{display:none!important}}
.commercial-flow{display:grid;grid-template-columns:1fr 26px 1fr 26px 1fr;align-items:center;gap:8px;margin:0 0 18px;max-width:850px}.commercial-flow>div{display:grid;grid-template-columns:34px 1fr;column-gap:10px;align-items:center;border:1px solid #dce6ee;background:#fff;border-radius:13px;padding:12px 14px;color:#60758a}.commercial-flow>div>span{grid-row:1/3;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#edf4f7;background:color-mix(in srgb, var(--brand) 5%, color-mix(in srgb, #fff 97.9%, #10283f));color:#138dad;font-weight:800}.commercial-flow>div>b{font-size:13px;color:#243c53}.commercial-flow>div>small{font-size:11px}.commercial-flow>div.active{border-color:#6fcde0;background:#f1fbfd;background:color-mix(in srgb, var(--brand) 5%, #fff);box-shadow:0 6px 18px #128eaa12}.commercial-flow>div.active>span{background:#069abd;color:#fff}.commercial-flow>svg{color:#94a6b6}.commercial-document-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}.commercial-document-actions>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.commercial-document-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#dfe8ef;border:1px solid #dfe8ef;border-radius:13px;overflow:hidden;margin-bottom:18px}.commercial-document-summary>div{background:#f7fafc;padding:15px}.commercial-document-summary small,.commercial-fiscal-state small{display:block;color:#70869a;font-size:11px;margin-bottom:5px}.commercial-document-summary strong{font-size:13px;color:#20374d}.commercial-fiscal-state{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:16px 0;border:1px solid #bfe1ea;border:1px solid color-mix(in srgb, var(--brand) 25%, #fff);background:#f2fbfd;background:color-mix(in srgb, var(--brand) 4%, #fff);border-radius:12px;color:#087f9d;color:var(--brand)}.commercial-fiscal-state div{color:#20374d}.commercial-fiscal-state small{margin:4px 0 0}.commercial-fiscal-options{display:grid;gap:10px}.commercial-fiscal-options>button{display:flex;align-items:center;gap:14px;text-align:left;border:1px solid #d8e4ec;background:#fff;border-radius:12px;padding:16px;color:#20374d;cursor:pointer}.commercial-fiscal-options>button:hover{border-color:#62c7dc;background:#f3fbfd;background:color-mix(in srgb, var(--brand) 4%, #fff)}.commercial-fiscal-options svg{color:#0798b9}.commercial-fiscal-options span{display:grid;gap:4px}.commercial-fiscal-options small{color:#6b7f92}
.commercial-fiscal-state.locked{align-items:flex-start;border-color:#78c9dc;background:#edfafd;background:color-mix(in srgb, var(--brand) 6%, #fff)}.commercial-fiscal-state.locked>div{flex:1}.commercial-fiscal-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.commercial-fiscal-links button{display:inline-flex;align-items:center;gap:7px;min-height:36px;border:1px solid #9dd7e4;border-radius:9px;padding:0 11px;background:#fff;color:#087f9d;color:var(--brand);font:inherit;font-size:12px;font-weight:700;cursor:pointer}.commercial-fiscal-links button:hover{border-color:#0798b9;background:#f8fdff;background:color-mix(in srgb, var(--brand) 2%, #fff)}.commercial-fiscal-links button span{display:inline}
@media(max-width:800px){.commercial-flow{grid-template-columns:1fr}.commercial-flow>svg{display:none}.commercial-document-summary{grid-template-columns:1fr 1fr}.commercial-document-actions{align-items:flex-start}.commercial-document-actions>div:last-child{width:100%}}

.commercial-period-panel{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:18px 20px;margin-bottom:18px;border-color:#d7e5ed;background:linear-gradient(110deg,#fff 0%,#f5fbfd 100%);background:linear-gradient(110deg,#fff 0%,color-mix(in srgb, var(--brand) 4%, #fff) 100%)}
.commercial-period-heading{display:flex;align-items:center;gap:13px;min-width:260px}.commercial-period-icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#e6f8fb;color:#058eac}.commercial-period-heading>div{display:grid;gap:2px}.commercial-period-heading small,.commercial-list-heading small{font-size:10px;letter-spacing:.1em;font-weight:800;color:#088ba8}.commercial-period-heading strong{font-size:15px;color:#17334b}.commercial-period-heading p,.commercial-list-heading p{margin:0;color:#728498;font-size:11px}
.commercial-period-shortcuts{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.commercial-period-shortcuts button{border:1px solid #d7e3eb;background:#fff;border-radius:9px;padding:8px 11px;color:#50677d;font:inherit;font-size:11px;font-weight:700;cursor:pointer;transition:.15s ease}.commercial-period-shortcuts button:hover{border-color:#7cc9d8;color:#087f9d;color:var(--brand)}.commercial-period-shortcuts button.active{background:#078eaa;border-color:#078eaa;color:#fff;box-shadow:0 4px 12px #078eaa26}
.commercial-custom-period{width:100%;display:flex;align-items:end;gap:10px;padding-top:14px;border-top:1px solid #dce8ee}.commercial-custom-period label,.commercial-filter-field{display:grid;gap:5px;color:#5c7185;font-size:10px;font-weight:700}.commercial-custom-period input,.commercial-filter-field select{border:1px solid #d5e1e9;border-radius:9px;background:#fff;color:#263e54;font:inherit;font-size:12px;padding:9px 11px;min-height:38px}.commercial-custom-period>span{padding-bottom:10px;color:#7a8d9e;font-size:11px}.commercial-custom-period>strong{padding-bottom:9px;color:#b34d4d;font-size:11px}
.commercial-list-panel{overflow:hidden}.commercial-list-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px 4px}.commercial-list-heading h2{margin:3px 0;font-size:18px;color:#17334b}.commercial-fiscal-legend,.commercial-fiscal-counts{display:flex;align-items:center;gap:15px;flex-wrap:wrap;color:#61768a;font-size:11px}.commercial-fiscal-legend span,.commercial-fiscal-counts span{display:flex;align-items:center;gap:6px}.commercial-fiscal-legend i,.commercial-fiscal-counts i{width:8px;height:8px;border-radius:50%;background:#16a879}.commercial-fiscal-legend i.nonfiscal,.commercial-fiscal-counts i.nonfiscal{background:#8293a3}
.commercial-list-toolbar{align-items:end}.commercial-list-toolbar>.search-field{align-self:end}.commercial-filter-field select{min-width:175px}.commercial-filter-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:44px;padding:9px 20px;background:#f5f9fb;background:color-mix(in srgb, var(--brand) 4%, #fff);border-top:1px solid #e1eaf0;border-bottom:1px solid #e1eaf0;color:#65798c;font-size:11px}.commercial-filter-summary>div{display:flex;align-items:center;gap:9px}.commercial-filter-summary>div:first-child svg{color:#0793b0}.commercial-filter-summary strong{color:#233d54}.commercial-filter-summary .ops-text-button{display:flex;align-items:center;gap:5px;white-space:nowrap}
.commercial-sales-table th{white-space:nowrap}.commercial-sales-table td{vertical-align:middle}.commercial-date-cell{display:grid;gap:3px}.commercial-date-cell strong{font-size:12px;color:#30495f;white-space:nowrap}.commercial-date-cell small{width:fit-content;padding:2px 6px;border-radius:5px;background:#e8f7f1;color:#178061;font-size:9px;font-weight:800;text-transform:uppercase}.commercial-fiscal-cell{display:grid;gap:6px;min-width:190px}.commercial-fiscal-badge{display:flex;align-items:center;gap:8px;color:#28745f}.commercial-fiscal-badge>svg{flex:0 0 auto}.commercial-fiscal-badge>span{display:grid;gap:2px}.commercial-fiscal-badge strong{font-size:11px;color:#1e493d;white-space:nowrap}.commercial-fiscal-badge small{font-size:9px;color:#708397}.commercial-fiscal-badge.draft,.commercial-fiscal-badge.processing{color:#af7712}.commercial-fiscal-badge.draft strong,.commercial-fiscal-badge.processing strong{color:#80570e}.commercial-fiscal-badge.rejected{color:#c55656}.commercial-fiscal-badge.rejected strong{color:#9f3d3d}.commercial-fiscal-badge.cancelled,.commercial-fiscal-badge.nonfiscal{color:#7b8c9c}.commercial-fiscal-badge.cancelled strong,.commercial-fiscal-badge.nonfiscal strong{color:#53687b}
@media(max-width:1200px){.commercial-period-panel{align-items:flex-start;flex-direction:column}.commercial-period-shortcuts{justify-content:flex-start}.commercial-list-toolbar{align-items:stretch}.commercial-list-toolbar .ops-toolbar-actions{flex-wrap:wrap}.commercial-filter-summary{flex-wrap:wrap}}
@media(max-width:700px){.commercial-period-panel{padding:15px}.commercial-period-shortcuts{display:grid;grid-template-columns:1fr 1fr;width:100%}.commercial-period-shortcuts button{text-align:left}.commercial-custom-period{display:grid;grid-template-columns:1fr}.commercial-custom-period>span{display:none}.commercial-custom-period>strong{padding:0}.commercial-list-heading{align-items:flex-start;flex-direction:column}.commercial-list-toolbar .ops-toolbar-actions,.commercial-filter-field,.commercial-filter-field select{width:100%}.commercial-filter-summary>div:first-child{align-items:flex-start;flex-direction:column;gap:3px}.commercial-fiscal-counts{width:100%}}

.commercial-people-page{max-width:1500px}.commercial-people-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.commercial-people-stats article{display:flex;align-items:center;gap:14px;padding:19px;border:1px solid #dce6ed;border-radius:14px;background:#fff}.commercial-people-stats article>span{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#e8f8fb;background:color-mix(in srgb, var(--brand) 8%, #fff);color:#078fad}.commercial-people-stats article>span.green{background:#e9f8f1;color:#168362}.commercial-people-stats article>span.blue{background:#edf2ff;color:#4d70c9}.commercial-people-stats article svg{width:21px}.commercial-people-stats article>div{display:grid;gap:2px}.commercial-people-stats small{color:#55687a;font-size:11px}.commercial-people-stats strong{color:#17334b;font-size:23px}.commercial-people-stats p{margin:0;color:#55687a;font-size:10px}
.commercial-people-panel{overflow:hidden}.commercial-people-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;padding:18px 20px}.commercial-people-toolbar>div:first-child small{font-size:10px;letter-spacing:.1em;color:#078fad;font-weight:800}.commercial-people-toolbar h2{margin:3px 0 0;font-size:18px}.commercial-search{height:42px;display:flex;align-items:center;gap:9px;flex:1;max-width:580px;padding:0 12px;border:1px solid #d7e3eb;border-radius:10px;background:#f9fbfc;color:#7890a2}.commercial-search:focus-within{border-color:#64c7da;background:#fff;box-shadow:0 0 0 3px #0a9cbb12}.commercial-search input{width:100%;border:0;outline:0;background:transparent;color:#20394f;font:inherit;font-size:12px}.commercial-search button{border:0;background:transparent;color:#708596;cursor:pointer;display:grid;place-items:center}
.commercial-seller-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:20px;background:#f7fafc}.commercial-seller-card{border:1px solid #dce7ee;border-radius:14px;background:#fff;overflow:hidden}.commercial-seller-head{display:flex;align-items:center;gap:11px;padding:17px}.commercial-seller-head>span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#daf5f9,#edf9fb);background:linear-gradient(145deg,#daf5f9,color-mix(in srgb, var(--brand) 6%, #fff));color:#078ca9;font-weight:800}.commercial-seller-head>div{display:grid;gap:4px;flex:1}.commercial-seller-head h3{margin:0;color:#1d374d;font-size:14px}.commercial-seller-head .btn{min-height:34px;padding:7px 11px;font-size:10px}.commercial-seller-contact{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:0 17px 15px;color:#687d90;font-size:10px}.commercial-seller-contact span{display:flex;align-items:center;gap:6px;min-width:0}.commercial-seller-commission{display:flex;align-items:center;justify-content:space-between;margin:0 17px;padding:14px 15px;border-radius:11px;background:#f0fafc;background:color-mix(in srgb, var(--brand) 5%, #fff);color:#078fad}.commercial-seller-commission>div{display:grid;gap:2px}.commercial-seller-commission small{font-size:9px;letter-spacing:.08em;font-weight:800}.commercial-seller-commission strong{font-size:22px;color:#173b53}.commercial-seller-commission p{margin:0;color:#6a8193;font-size:9px}.commercial-seller-card>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 17px;margin-top:15px;border-top:1px solid #e6edf2;color:#687c8e;font-size:10px}.commercial-seller-card>footer b{color:#274258}
.commercial-seller-form{display:grid;gap:16px}.commercial-form-section{border:1px solid #dce6ed;border-radius:13px;padding:17px}.commercial-form-section>div:first-child{display:flex;align-items:flex-start;gap:11px;margin-bottom:16px}.commercial-form-section>div:first-child>span{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#e8f7fa;background:color-mix(in srgb, var(--brand) 8%, #fff);color:#068dab;font-size:11px;font-weight:800}.commercial-form-section h3{margin:0 0 3px;color:#1b374e;font-size:14px}.commercial-form-section p{margin:0;color:#718497;font-size:10px}.commercial-form-section.commission{background:#f5fbfd;background:color-mix(in srgb, var(--brand) 4%, #fff);border-color:#cfe8ee;border-color:color-mix(in srgb, var(--brand) 19%, #fff)}.commercial-percent-input{display:flex;align-items:center;gap:8px;border:1px solid #d5e2ea;border-radius:9px;background:#fff;padding-left:11px;color:#078fad}.commercial-percent-input input{border:0!important;box-shadow:none!important;padding-left:0!important}
.commercial-commission-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px}.commercial-commission-stats article{display:grid;grid-template-columns:35px 1fr;column-gap:9px;align-items:center;padding:15px;border:1px solid #dce6ed;border-radius:13px;background:#fff}.commercial-commission-stats article>span{grid-row:1/4;width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#eaf8f3;color:#158361}.commercial-commission-stats article>span.negative{background:#fff0ef;color:#ba5952}.commercial-commission-stats article>span.pending{background:#fff7e8;color:#a76d0d}.commercial-commission-stats article>span.payable{background:#edf4ff;color:#4772bc}.commercial-commission-stats article>span.paid{background:#e8f8f1;color:#168362}.commercial-commission-stats svg{width:18px}.commercial-commission-stats small{color:#718497;font-size:9px}.commercial-commission-stats strong{color:#1d384f;font-size:17px}.commercial-commission-stats p{margin:0;color:#8090a0;font-size:9px}
.commercial-commission-release{display:grid;grid-template-columns:minmax(230px,.65fr) 1.35fr;align-items:center;gap:25px;padding:20px;margin-bottom:18px;background:linear-gradient(105deg,#123148,#17425d);color:#fff;border:0}.commercial-commission-release>div:first-child{display:flex;align-items:center;gap:12px}.commercial-commission-release>div:first-child>span{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;background:#ffffff17;color:#6fe2d0}.commercial-commission-release h2{font-size:16px;margin:0 0 3px}.commercial-commission-release p{margin:0;color:#bdd0db;font-size:10px}.commercial-release-fields{display:grid;grid-template-columns:1.2fr .8fr .8fr auto;gap:10px;align-items:end}.commercial-release-fields label{display:grid;gap:5px;color:#bfd0db;font-size:9px;font-weight:700}.commercial-release-fields input,.commercial-release-fields select{min-width:0;height:39px;border:1px solid #ffffff2a;border-radius:9px;padding:0 10px;background:#fff;color:#20394f;font:inherit;font-size:11px}.commercial-release-fields>div{display:grid;gap:4px}.commercial-release-fields>div small{text-align:right;color:#bcd0dc;font-size:8px}.commercial-release-fields .btn{height:39px;white-space:nowrap}.commercial-negative{color:#b95353!important}.commercial-commission-status{display:inline-flex;padding:5px 8px;border-radius:7px;font-size:9px;font-weight:800}.commercial-commission-status.pending{background:#fff5df;color:#95620b}.commercial-commission-status.payable{background:#eaf2ff;color:#416dab}.commercial-commission-status.paid{background:#e6f6ef;color:#147b5c}.commercial-commission-status.reversed{background:#f0f3f5;color:#697b8b}
@media(max-width:1150px){.commercial-commission-stats{grid-template-columns:repeat(3,1fr)}.commercial-commission-release{grid-template-columns:1fr}.commercial-release-fields{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.commercial-people-stats,.commercial-seller-grid{grid-template-columns:1fr}.commercial-people-toolbar{align-items:stretch;flex-direction:column}.commercial-search{max-width:none}.commercial-seller-contact{grid-template-columns:1fr}.commercial-commission-stats{grid-template-columns:1fr 1fr}.commercial-release-fields{grid-template-columns:1fr}.commercial-release-fields>div small{text-align:left}}
@media(max-width:480px){.commercial-commission-stats{grid-template-columns:1fr}.commercial-seller-head{align-items:flex-start;flex-wrap:wrap}.commercial-seller-head .btn{width:100%}.commercial-seller-card>footer{align-items:flex-start;flex-direction:column}}
.commercial-boleto-condition{margin:0 0 20px;padding:18px;border:1px solid #cce4ee;border:1px solid color-mix(in srgb, var(--brand) 20%, #fff);border-radius:14px;background:linear-gradient(135deg,#f7fcfe 0%,#f2f8fb 100%);background:linear-gradient(135deg,color-mix(in srgb, var(--brand) 3%, #fff) 0%,color-mix(in srgb, var(--brand) 5%, #fff) 100%)}
.commercial-boleto-heading{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}.commercial-boleto-heading>span{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:#dff4f9;color:#008caf}.commercial-boleto-heading h4{margin:1px 0 4px;color:#183149;font-size:15px}.commercial-boleto-heading p{margin:0;color:#64798d;font-size:12px;line-height:1.5}
.commercial-boleto-presets{display:flex;flex-wrap:wrap;gap:8px}.commercial-boleto-presets button{border:1px solid #cbdbe5;border-radius:9px;background:#fff;color:#30475d;padding:9px 13px;font:inherit;font-size:12px;font-weight:650;cursor:pointer}.commercial-boleto-presets button:hover{border-color:#70c5d7}.commercial-boleto-presets button.active{border-color:#008faf;background:#008faf;color:#fff;box-shadow:0 4px 10px #008faf26}
.commercial-boleto-custom{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px;align-items:end;margin-top:14px;max-width:620px}.commercial-boleto-summary{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin-top:14px;padding:11px 13px;border-radius:9px;background:#e6f7ef;color:#206a4d;font-size:12px}.commercial-boleto-summary span{color:#3f6e5c}.commercial-payment-controls.boleto{grid-template-columns:minmax(240px,420px)}
@media(max-width:700px){.commercial-boleto-custom{grid-template-columns:1fr}.commercial-payment-controls.boleto{grid-template-columns:1fr}.commercial-boleto-presets button{flex:1 1 120px}}

.commercial-seller-user{display:flex;align-items:center;gap:10px;margin:0 17px 10px;padding:11px 13px;border:1px dashed #cfdae2;border-radius:10px;background:#fafcfd;background:color-mix(in srgb, var(--brand) 2%, #fff);color:#718597}.commercial-seller-user.linked{border-style:solid;border-color:#cce8df;background:#f0faf6;color:#168363}.commercial-seller-user>div{display:grid;gap:2px;min-width:0}.commercial-seller-user small{font-size:8px;letter-spacing:.08em;font-weight:800}.commercial-seller-user strong{font-size:11px;color:#294359}.commercial-seller-user span{font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.commercial-form-section.user-link{background:#f8fbfc;background:color-mix(in srgb, var(--brand) 3%, #fff)}.commercial-link-result{display:flex!important;align-items:center!important;gap:9px!important;margin:12px 0 0!important;padding:10px 12px;border-radius:9px;background:#eaf8f2;color:#177f61}.commercial-link-result>span{display:grid;gap:2px}.commercial-link-result strong{font-size:11px}.commercial-link-result small{font-size:9px;color:#4f7c6d}
.danfe-detail-actions{display:flex;justify-content:flex-end;gap:10px;margin-bottom:18px}.danfe-detail-grid{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:14px}.danfe-detail-grid section,.danfe-tax-grid>div{border:1px solid #dce7ed;border-radius:14px;padding:18px;background:#fff}.danfe-kicker{display:block;color:#008eaa;font-size:12px;letter-spacing:.16em;font-weight:800;margin-bottom:14px}.danfe-detail dl{margin:0}.danfe-detail dt{color:#7b8ea0;font-size:12px;margin-top:10px}.danfe-detail dd{margin:3px 0 0;font-size:15px}.danfe-detail dd small{display:block;color:#71869a;margin-top:3px}.danfe-total{font-size:19px!important;color:#008eaa;font-weight:800}.danfe-tax-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin:14px 0}.danfe-tax-grid span{display:block;color:#7b8ea0;font-size:12px}.danfe-tax-grid strong{display:block;font-size:16px;margin-top:10px}.danfe-items{border:1px solid #dce7ed;border-radius:14px;padding:18px;overflow:hidden}.danfe-items h3{margin:0 0 3px}.danfe-items>p{margin:0 0 14px;color:#71869a}.danfe-loading{padding:50px;text-align:center;color:#56677b;display:grid;gap:14px;justify-items:center}@media(max-width:900px){.danfe-detail-grid{grid-template-columns:1fr}.danfe-tax-grid{grid-template-columns:repeat(2,1fr)}.danfe-detail-actions{justify-content:stretch;flex-wrap:wrap}.danfe-detail-actions button{flex:1}}
.danfe-items .table-wrap{overflow-x:auto}.danfe-items .data-table{width:100%;min-width:860px;font-size:12px}.danfe-items .data-table th,.danfe-items .data-table td{padding:12px 12px;white-space:nowrap}.danfe-items .data-table td:nth-child(2){white-space:normal;overflow-wrap:anywhere;min-width:180px}.danfe-items .data-table th:nth-child(n+6),.danfe-items .data-table td:nth-child(n+6){text-align:right;font-variant-numeric:tabular-nums}
.purchase-xml-additional{margin-top:14px;border:1px solid #dce7ed;border-radius:14px;padding:18px;background:#fff}.purchase-xml-additional-heading h3{margin:0;color:#203b51;font-size:15px}.purchase-xml-additional-heading p{margin:4px 0 0;color:#71869a;font-size:11px}.purchase-xml-additional-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.purchase-xml-additional article{min-width:0;padding:15px;border:1px solid #d9e8ee;border:1px solid color-mix(in srgb, var(--brand) 14%, color-mix(in srgb, #fff 97.7%, #10283f));border-left:4px solid #14a1bd;border-radius:10px;background:#f6fbfd;background:color-mix(in srgb, var(--brand) 3%, #fff)}.purchase-xml-additional article.fiscal{border-left-color:#8671cf;background:#faf8ff}.purchase-xml-additional article strong{display:block;color:#24465b;font-size:12px}.purchase-xml-additional article p{margin:7px 0 0;color:#5e7486;font-size:11px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){.purchase-xml-additional-grid{grid-template-columns:1fr}}
.commercial-delete-linked{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid #efd2d2;border-radius:14px;background:#fff8f8;cursor:pointer}.commercial-delete-linked input{width:18px;height:18px;margin-top:2px;accent-color:#c83d45}.commercial-delete-linked span,.commercial-delete-linked strong,.commercial-delete-linked small{display:block}.commercial-delete-linked small{margin-top:5px;color:#71869a;line-height:1.45}.purchase-danfe-viewer{height:min(72vh,900px);min-height:520px;border:1px solid #dce7ed;border-radius:14px;overflow:hidden;background:#edf2f5}.purchase-danfe-viewer iframe{display:block;width:100%;height:100%;border:0;background:#fff}@media(max-width:700px){.purchase-danfe-viewer{height:68vh;min-height:420px}}
.purchase-return{display:grid;gap:18px}.purchase-return-guidance{display:flex;align-items:flex-start;gap:13px;margin:0;padding:16px;border:1px solid #cce8ef;border:1px solid color-mix(in srgb, var(--brand) 20%, #fff);border-radius:12px;background:#f1fafc;background:color-mix(in srgb, var(--brand) 5%, #fff);color:#167f98;color:color-mix(in srgb, var(--brand) 86%, color-mix(in srgb, #fff 35.7%, #10283f))}.purchase-return-guidance>svg{flex:0 0 auto;margin-top:2px}.purchase-return-guidance span,.purchase-return-guidance strong,.purchase-return-guidance small{display:block}.purchase-return-guidance small{margin-top:5px;color:#607f90;line-height:1.55}.purchase-return-list{border:1px solid #dce7ed;border-radius:12px;overflow:hidden}.purchase-return-item{display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center;gap:20px;padding:15px 17px;background:#fff}.purchase-return-item+.purchase-return-item{border-top:1px solid #e7eef2}.purchase-return-item span,.purchase-return-item strong,.purchase-return-item small,.purchase-return-item em{display:block;min-width:0}.purchase-return-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#253e53}.purchase-return-item small{margin-top:5px;color:#718699;font-style:normal}.purchase-return-item em{margin-top:7px;color:#b05252;font-size:11px;line-height:1.45}.purchase-return-item span:last-child small{margin:0 0 6px}.purchase-return-item input{width:100%;min-height:42px;padding:9px 11px;border:1px solid #ccdbe4;border-radius:8px;font:inherit}.purchase-return-item input:focus{outline:0;border-color:#00a0c2;box-shadow:0 0 0 3px #00a0c217}@media(max-width:700px){.purchase-return-item{grid-template-columns:1fr}.purchase-return-item strong{white-space:normal}.purchase-return-item span:last-child{max-width:190px}}
.pf-sale-alert{display:flex;gap:12px;margin:14px 0;padding:14px 16px;border:1px solid #efd38c;border-radius:12px;background:#fff9e9;color:#7f5900}.pf-sale-alert>svg{flex:none;margin-top:2px}.pf-sale-alert strong{display:block}.pf-sale-alert p{margin:4px 0 0;line-height:1.45}.pf-sale-alert.blocked{border-color:#efb8bf;background:#fff0f2;color:#a32f3e}

/* ===== Global refresh: status pill ===== */
.commercial-commission-status{border-radius:999px}
.commercial-select-col{width:42px;text-align:center}
.commercial-select-cell{text-align:center;width:42px}
.commercial-select-cell input,.commercial-select-col input{width:16px;height:16px;cursor:pointer;accent-color:#0b8fad}
.commercial-row-selected{background:#f2fbfd;background:color-mix(in srgb, var(--brand) 4%, #fff)}
.commercial-bulk-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#e6f5f9;background:color-mix(in srgb, var(--brand) 9%, #fff);border:1px solid #bfe3ea;border:1px solid color-mix(in srgb, var(--brand) 25%, #fff);border-radius:12px;padding:12px 16px;margin-bottom:14px}
.commercial-bulk-bar>span{font-size:13px;color:#0a5f70;color:color-mix(in srgb, var(--brand) 58%, #10283f)}
.commercial-bulk-bar strong{font-size:15px;color:#0a7286;color:color-mix(in srgb, var(--brand) 80%, #10283f)}
.commercial-bulk-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.commercial-batch-progress{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.commercial-batch-bar{height:8px;border-radius:999px;background:#e4ebf1;overflow:hidden}
.commercial-batch-bar>div{height:100%;background:#0b8fad;border-radius:999px;transition:width .25s}
.commercial-batch-progress>span{font-size:12.5px;color:#6a7c8c}
.commercial-batch-results{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:340px;overflow:auto}
.commercial-batch-results li{display:flex;align-items:center;gap:9px;padding:9px 12px;border:1px solid #eef2f6;border-radius:9px;font-size:12.5px;color:#3f5266}
.commercial-batch-results li>span{font-weight:600;color:#26374a}
.commercial-batch-results li>em{font-style:normal;margin-left:auto;font-size:11.5px;text-align:right}
.commercial-batch-results li.ok{border-color:#c9ead6;background:#f4fbf7}
.commercial-batch-results li.ok>svg{color:#1f7a46}
.commercial-batch-results li.proc{border-color:#f3e0bd;background:#fefaf1}
.commercial-batch-results li.proc>svg{color:#b7791f}
.commercial-batch-results li.err{border-color:#f3c9c5;background:#fdf5f4}
.commercial-batch-results li.err>svg{color:#c0453f}
/* Listas comerciais em cards */
.commercial-list{display:flex;flex-direction:column;gap:10px}
.commercial-card{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:start;padding:16px;border:1px solid #e6edf3;border-radius:13px;background:#fff;transition:box-shadow .15s,border-color .15s}
.commercial-card:hover{border-color:#cfe0ea;box-shadow:0 6px 18px -12px #1c2f4440}
.commercial-card-selected{border-color:#bfe3ea;border-color:color-mix(in srgb, var(--brand) 25%, #fff);background:#f4fbfd;background:color-mix(in srgb, var(--brand) 4%, #fff)}
.commercial-card-check{display:flex;padding-top:2px}
.commercial-card-check input{width:16px;height:16px;accent-color:#0b8fad;cursor:pointer}
.commercial-card-main{min-width:0;display:flex;flex-direction:column;gap:12px}
.commercial-card-head{display:flex;flex-direction:column;gap:2px;min-width:0}
.commercial-card-title{font-size:14.5px;font-weight:700;color:#1f3350;text-align:left;padding:0}
.commercial-card-party{font-size:12.5px;color:#6a7c8c}
.commercial-card-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px 20px}
.commercial-card-fact{display:flex;flex-direction:column;gap:2px;min-width:0}
.commercial-card-fact small{font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#98a6b4}
.commercial-card-fact b{font-size:14px;font-weight:700;color:#26374a;white-space:nowrap}
.commercial-card-fact span{font-size:11px;color:#8b9aa8}
.commercial-card-total{color:#0a7286;color:color-mix(in srgb, var(--brand) 80%, #10283f)}
.commercial-card-side{display:flex;flex-direction:column;align-items:flex-end;gap:12px;white-space:nowrap}
.commercial-card-status{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.commercial-card .commercial-fiscal-cell{margin-top:2px}
@media(max-width:860px){.commercial-card{grid-template-columns:auto 1fr}.commercial-card-side{grid-column:1/-1;align-items:stretch;flex-direction:row;justify-content:space-between;flex-wrap:wrap}.commercial-card-status{align-items:flex-start}}

/* Grupo de exportação padronizado (DAV/pedidos/orçamentos) */
.commercial-export-actions{display:flex;align-items:center;gap:8px;align-self:end;flex-wrap:wrap}
.commercial-export-actions .btn{white-space:nowrap}
@media(max-width:700px){.commercial-export-actions{width:100%}.commercial-export-actions .btn{flex:1}}
.commercial-card-fact.wide b{white-space:normal;line-height:1.35}
.commercial-boleto-btn{white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.commercial-card-side .commercial-boleto-btn{color:#0d6d84;color:color-mix(in srgb, var(--brand) 74%, color-mix(in srgb, #fff 3.8%, #10283f))}
.commercial-detail-payments{margin-top:18px}
.commercial-detail-payments-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:8px}
.commercial-detail-payments-head strong{font-size:13px;color:#2b4055;font-weight:600}
.commercial-detail-payments-head span{font-size:11px;color:#8695a5}
/* --- Faturamento: linhas compactas (Orçamentos/Pedidos/DAV) --- */
.commercial-lines{display:flex;flex-direction:column}
.commercial-line{display:flex;align-items:center;gap:16px;padding:9px 16px;border-top:1px solid #eef3f7;background:#fff;font-size:13px}
.commercial-lines>.commercial-line:last-child{border-bottom:1px solid #eef3f7}
.commercial-line:hover{background:#f7fbfd}
.commercial-line.is-selected{background:#f1fafc;background:color-mix(in srgb, var(--brand) 5%, #fff)}
.commercial-line.is-canceled{opacity:.55}
.commercial-line .cl-check{display:flex;align-items:center;justify-content:center;width:16px;flex:0 0 auto}
.commercial-line .cl-check input{width:15px;height:15px;accent-color:#0b8fad;cursor:pointer}
.commercial-line .cl-id{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:1px;border:0;background:transparent;text-align:left;cursor:pointer;padding:0;font:inherit}
.commercial-line .cl-id strong{font-size:13.5px;font-weight:700;color:#12496a}
.commercial-line .cl-id:hover strong{text-decoration:underline}
.commercial-line .cl-id small{font-size:11px;color:#71869a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.commercial-line .cl-col{flex:0 0 auto;display:flex;flex-direction:column;gap:1px;min-width:0;max-width:170px}
.commercial-line .cl-col small{font-size:9.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#98a6b4}
.commercial-line .cl-col b{font-size:12.5px;font-weight:600;color:#2a3d52;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.commercial-line .cl-total{text-align:right}
.commercial-line .cl-total b{font-size:13.5px;font-weight:800;color:#17334b}
.commercial-line .cl-doc{font-size:11.5px;font-weight:700}
.commercial-line .cl-doc.nonfiscal{color:#8a97a5}
.commercial-line .cl-doc.authorized{color:#17845f}
.commercial-line .cl-doc.rejected,.commercial-line .cl-doc.error,.commercial-line .cl-doc.cancelled{color:#b0453f}
.commercial-line .cl-doc.draft,.commercial-line .cl-doc.processing,.commercial-line .cl-doc.submitting{color:#9b7327}
.commercial-line .cl-status{flex:0 0 auto;display:flex;justify-content:flex-start}
.commercial-line .cl-actions{flex:0 0 auto;display:flex;align-items:center;gap:4px}
.commercial-line .cl-actions>button,.commercial-line .cl-convert{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #dce7ed;background:#fff;color:#4a6072;border-radius:8px;min-height:30px;min-width:30px;padding:0 7px;cursor:pointer;transition:background .13s,border-color .13s,color .13s}
.commercial-line .cl-actions>button:hover,.commercial-line .cl-convert:hover{background:#eef7fa;background:color-mix(in srgb, var(--brand) 7%, #fff);border-color:#b9d7df;border-color:color-mix(in srgb, var(--brand) 23%, color-mix(in srgb, #fff 93.5%, #10283f));color:#0a7488;color:color-mix(in srgb, var(--brand) 83%, #10283f)}
.commercial-line .cl-actions>button:disabled,.commercial-line .cl-convert:disabled{opacity:.5;cursor:not-allowed}
.commercial-line .cl-convert{font:inherit;font-size:11.5px;font-weight:700;color:#0a7488;color:color-mix(in srgb, var(--brand) 83%, #10283f);border-color:#bfe3ea;border-color:color-mix(in srgb, var(--brand) 25%, #fff);background:#eef8fb;background:color-mix(in srgb, var(--brand) 6%, #fff)}
.commercial-line .cl-convert>span{white-space:nowrap}
.commercial-line .cl-danger:hover{background:#fdeef0;border-color:#efc4c7;color:#b0453f}
.cl-convert-wrap{position:relative;display:inline-flex}
.cl-menu-backdrop{position:fixed;inset:0;z-index:40}
.cl-menu{position:absolute;top:calc(100% + 4px);right:0;z-index:41;display:flex;flex-direction:column;min-width:186px;background:#fff;border:1px solid #e0e9ef;border-radius:11px;box-shadow:0 14px 34px -12px #1c2f4433;padding:6px;gap:2px}
.cl-menu button{display:flex;align-items:center;gap:9px;border:0;background:transparent;color:#3f5468;font:inherit;font-size:12.5px;font-weight:600;text-align:left;padding:8px 10px;border-radius:8px;cursor:pointer}
.cl-menu button:hover{background:#eef7fa;background:color-mix(in srgb, var(--brand) 7%, #fff);color:#0a7488;color:color-mix(in srgb, var(--brand) 83%, #10283f)}
.cl-menu button svg{color:#0b8fad;flex-shrink:0}
.commercial-share-preview{white-space:pre-wrap;background:#f5f8fa;border:1px solid #e4ecf1;border-radius:9px;padding:12px;font-size:12px;color:#3f5468;margin-top:12px;max-height:200px;overflow:auto}
@media(max-width:960px){
  .commercial-line{flex-wrap:wrap;gap:8px 14px}
  .commercial-line .cl-id{flex:1 1 100%}
  .commercial-line .cl-hide-sm{display:none}
  .commercial-line .cl-total{margin-left:auto}
  .commercial-line .cl-actions{flex:1 1 100%;flex-wrap:wrap}
  .cl-menu{right:auto;left:0}
}

/* ---- Seletor de observações fiscais no pedido ---- */
.sale-notes-picker { display: flex; flex-direction: column; gap: 8px; }
.sale-note-chip {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 1px solid #dfe6ed; border-radius: 10px; background: #fbfdff;
  padding: 10px 12px; text-align: left; cursor: pointer; transition: border-color .15s, background .15s;
}
.sale-note-chip:hover { border-color: #bcd3df; background: #f4fafc; background:color-mix(in srgb, var(--brand) 4%, #fff); }
.sale-note-chip.on { border-color: var(--primary); background: #ecf8fb; background:color-mix(in srgb, var(--brand) 7%, #fff); }
.sale-note-mark {
  flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: #eef3f7; color: #8093a2;
}
.sale-note-chip.on .sale-note-mark { background: var(--primary); color: #fff; }
.sale-note-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sale-note-text strong { font-size: 12.5px; font-weight: 600; color: #2a3a4d; }
.sale-note-text small { font-size: 10.5px; color: #8093a2; }

/* ---- Dar entrada / gerar a pagar na compra confirmada ---- */
.commercial-generate-finance{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:14px 0 20px;padding:16px;border:1px solid #cfe1ea;border:1px solid color-mix(in srgb, var(--brand) 17%, color-mix(in srgb, #fff 96.4%, #10283f));border-radius:12px;background:linear-gradient(135deg,#f4fbfd,#eef7fb);background:linear-gradient(135deg,color-mix(in srgb, var(--brand) 4%, #fff),color-mix(in srgb, var(--brand) 6%, #fff))}
.commercial-generate-finance>div{min-width:200px;flex:1}
.commercial-generate-finance strong{display:block;color:#183149;font-size:13px}
.commercial-generate-finance small{display:block;color:#5d7386;font-size:11.5px;line-height:1.5;margin-top:3px}
.commercial-generate-finance .btn{white-space:nowrap}

/* ---- Conferência pedido x XML ---- */
.xml-conf-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}
.xml-conf-summary>div{border:1px solid #e3ebf1;border-radius:10px;padding:10px 12px;background:#fbfdff}
.xml-conf-summary small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#8093a2;font-weight:700}
.xml-conf-summary strong{font-size:15px;color:#2a3a4d}
.xml-conf-summary>div.warn{background:#fdf7ec;border-color:#f0e2bf}
.xml-conf-summary>div.warn strong{color:#b5811a}
.xml-conf-summary>div.ok strong{color:#1a8f5f}
.xml-conf-table{font-size:12px}
.xml-conf-table td{vertical-align:top}
.xml-conf-table tr.xml-conf-qty,.xml-conf-table tr.xml-conf-price,.xml-conf-table tr.xml-conf-both{background:#fdf9ef}
.xml-conf-table tr.xml-conf-missing{background:#fdeff0}
.xml-conf-table tr.xml-conf-extra{background:#eef6fb}
.xml-tag{display:inline-block;padding:2px 9px;border-radius:20px;font-size:10px;font-weight:700;white-space:nowrap}
.xml-tag.ok{background:#e4f6ec;color:#1a7f4b}
.xml-tag.warn{background:#fdf3df;color:#a5771a}
.xml-tag.bad{background:#fde3e3;color:#bb4a4a}
.xml-tag.info{background:#e7f1fa;color:#2670a5}
@media(max-width:700px){.xml-conf-summary{grid-template-columns:1fr 1fr}}

/* ---- Detalhe fiscal por item no pedido ---- */
.item-fiscal-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:7px}
.item-fiscal-chip{display:inline-block;padding:2px 8px;border-radius:6px;background:#eef3f7;color:#5d7386;font-size:10.5px;font-weight:600}
.item-fiscal-detail-row>td{background:#f7fafc;padding:14px 16px!important}
.item-fiscal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.item-fiscal-grid>div{border:1px solid #e3ebf1;border-radius:9px;padding:8px 11px;background:#fff}
.item-fiscal-grid small{display:block;font-size:9.5px;text-transform:uppercase;letter-spacing:.03em;color:#8093a2;font-weight:700;margin-bottom:3px}
.item-fiscal-grid strong{font-size:13px;color:#2a3a4d;font-variant-numeric:tabular-nums}
.item-fiscal-note{margin:10px 0 0;font-size:11px;color:#7a8a99;line-height:1.5}

/* ---- Ações de conferência XML ---- */
.xml-conf-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.xml-file-btn{cursor:pointer}

/* ---- Escolha da baixa da compra ---- */
.baixa-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:6px}
.baixa-choice-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;border:1px solid #d7e2ea;border-radius:12px;padding:16px;background:#fbfdff;cursor:pointer;transition:border-color .15s,background .15s}
.baixa-choice-card:hover{border-color:var(--primary);background:#f0f9fb;background:color-mix(in srgb, var(--brand) 6%, #fff)}
.baixa-choice-card svg{color:var(--primary)}
.baixa-choice-card strong{font-size:13px;color:#1e3346}
.baixa-choice-card small{font-size:11.5px;color:#61758a;line-height:1.5}
.baixa-choice-card:disabled{opacity:.6;cursor:wait}
@media(max-width:640px){.baixa-choice{grid-template-columns:1fr}}

/* Venda anulada por NF-e de estorno */
.cl-doc-note{display:block;margin-top:3px;font-size:11px;font-weight:700;color:#ae333a;letter-spacing:0;text-transform:none}

.st-ret-box .st-ret-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin:8px 0 4px}.st-ret-box label{display:grid;gap:3px}.st-ret-box label span{font-size:11.5px;font-weight:700;color:#51677a}.st-ret-box input{width:100%}

.ops-modal-body .commercial-share-preview {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: min(48vh, 440px);
  padding: 18px 20px;
  margin-top: 16px;
  border: 1px solid #cde4dc;
  border-left: 4px solid #128c7e;
  border-radius: 14px;
  background: #f1f8f5;
  color: #173d35;
  user-select: text;
}
:root.erp-dark .ops-modal-body .commercial-share-preview {
  background: #142c29;
  border-color: #31564b;
  border-left-color: #54c5a6;
  color: #d9efe7;
}

.um-banking-configuration{min-width:0;width:100%;margin-top:24px}.um-banking-configuration>.ops-page{padding:0}.um-banking-configuration .page-heading{margin-top:20px}.um-banking-configuration .unimake-settings{margin-top:20px}@media(max-width:700px){.st-split.is-section{grid-template-columns:minmax(0,1fr)}.st-split.is-section>.st-side{display:none}.st-main,.st-content,.um-banking-configuration{min-width:0;max-width:100%}.um-banking-configuration .banking-grid{grid-template-columns:minmax(0,1fr)}.um-banking-configuration .page-heading{display:flex;flex-direction:column;align-items:stretch}.um-banking-configuration .ops-heading-actions{display:flex;flex-wrap:wrap}.um-banking-configuration .bank-environments button{min-width:0}.um-banking-configuration .bank-card{min-width:0;overflow-wrap:anywhere}}
