/* Padrão visual compartilhado pelo ERP, baseado na interface NF-e. */
:root{--ui-ink:#172b46;--ui-muted:#637b93;--ui-blue:#245dcc;--ui-teal:#087e74;--ui-line:#dde5ee;--ui-bg:#eff3f8}
:where(body.erp-module),:where(body.erp-tabs-shell){background:var(--ui-bg);color:var(--ui-ink);font-family:'Segoe UI',Arial,sans-serif;font-size:16px}:where(body.erp-module)>.shell>main:not(.erp-workspace){padding:26px 30px 40px;max-width:1660px;margin:0 auto}body.erp-embedded>.shell>main{padding:24px 28px 40px}:where(body.erp-module) h1,:where(body.erp-module) h2,:where(body.erp-module) h3{color:var(--ui-ink);letter-spacing:-.025em}:where(body.erp-module) .page-heading{border-bottom:1px solid var(--ui-line);padding-bottom:24px;margin-bottom:26px;gap:20px;align-items:center}:where(body.erp-module) .page-heading h1{font-size:29px;margin:4px 0 6px;line-height:1.3}:where(body.erp-module) .page-heading p{font-size:14px;color:var(--ui-muted);margin:0;line-height:1.6}.ui-title-group{display:flex;align-items:center;gap:15px;min-width:0}.ui-title-copy{min-width:0}.ui-module-icon{display:grid;place-items:center;width:54px;height:58px;flex:0 0 54px;border-radius:14px;background:#e5edff;color:var(--ui-blue)}.ui-module-icon svg{width:28px;height:28px}.ui-overline{display:block;font-size:10px;font-weight:800;letter-spacing:.16em;color:#68839d;margin-bottom:5px}.ui-title-tag{font-size:12px!important;letter-spacing:0!important;color:#6b829a;border:1px solid #cfdae8;background:#f7faff;border-radius:5px;padding:4px 7px;vertical-align:middle;white-space:nowrap}.ui-back{display:inline-block;color:#6483a4;font-size:13px;margin:0 0 20px}.ui-back:hover{color:var(--ui-blue)}
:where(body.erp-module) .card{background:#fff;border:1px solid var(--ui-line);border-radius:12px;box-shadow:0 2px 6px #18365004;padding:26px;margin-bottom:22px;min-width:0}:where(body.erp-module) .card h2{font-size:21px;margin:0 0 14px}:where(body.erp-module) .card h3{font-size:18px}:where(body.erp-module) .section-title p,:where(body.erp-module) .card>p,:where(body.erp-module) .hint{color:var(--ui-muted);font-size:13px;line-height:1.65}:where(body.erp-module) .section-title{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid #e8eef5;gap:12px}:where(body.erp-module) .section-title h2{margin:0 0 5px}:where(body.erp-module) .section-title p{margin:0}:where(body.erp-module) .card .card{box-shadow:none;background:#fafcfe;border-color:#e2eaf3}
:where(body.erp-module) button,:where(body.erp-module) .button,:where(body.erp-tabs-shell) button{font-size:15px;min-height:42px;padding:10px 16px;border-radius:7px;background:var(--ui-blue);color:#fff;font-weight:600;line-height:1.4;box-shadow:none;transition:background .15s,box-shadow .15s}:where(body.erp-module) button:not(:disabled):hover,:where(body.erp-module) .button:not(.secondary):hover{background:#1b4dae}:where(body.erp-module) .secondary,:where(body.erp-tabs-shell) button.secondary{border:1px solid #cbd8e6;background:#fff;color:#486582}:where(body.erp-module) .secondary:not(:disabled):hover,:where(body.erp-tabs-shell) .secondary:hover{background:#f0f5fd;border-color:#aec6e5}:where(body.erp-module) button.danger{background:#b93838;color:#fff;border-color:#b93838}:where(body.erp-module) button:disabled{opacity:.5;cursor:not-allowed}:where(body.erp-module) button:focus-visible,:where(body.erp-module) a:focus-visible,:where(body.erp-module) summary:focus-visible{outline:3px solid #76a7ff;outline-offset:3px}:where(body.erp-module) .small{font-size:13px;padding:7px 11px;min-height:34px}:where(body.erp-module) .form-actions{gap:10px;align-items:center;margin-top:22px}:where(body.erp-module) .form-actions button,:where(body.erp-module) .form-actions .button{margin:0}:where(body.erp-module) .form-actions>a:not(.button){font-size:14px;color:#587795}
:where(body.erp-module) label{display:block;color:#3b536c;font-size:14px;font-weight:600;line-height:1.5;margin:12px 0}:where(body.erp-module) input:not([type=checkbox]):not([type=radio]),:where(body.erp-module) select,:where(body.erp-module) textarea{display:block;min-width:0;width:100%;box-sizing:border-box;font:400 16px/1.5 'Segoe UI',Arial,sans-serif;border:1px solid #cbd7e4;border-radius:7px;padding:11px 12px;margin-top:6px;background:#fff;color:#243c56}:where(body.erp-module) input[readonly],:where(body.erp-module) input:disabled,:where(body.erp-module) select:disabled{background:#f3f6fa;color:#73869b}:where(body.erp-module) input:focus,:where(body.erp-module) select:focus,:where(body.erp-module) textarea:focus{outline:2px solid #b9d1fa;outline-offset:1px;border-color:#7ba6e8}:where(body.erp-module) input[type=checkbox],:where(body.erp-module) input[type=radio]{accent-color:var(--ui-blue);width:17px;height:17px;flex-shrink:0}:where(body.erp-module) .check{display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.6}:where(body.erp-module) .check input{margin-top:4px}:where(body.erp-module) textarea{min-height:110px;resize:vertical}:where(body.erp-module) fieldset{border:1px solid #dce5ef;border-radius:9px;padding:20px;min-width:0;margin:20px 0}:where(body.erp-module) legend{padding:0 8px;color:#466b92;font-size:14px;font-weight:600}:where(body.erp-module) .fiscal-fields,.ui-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 22px}.ui-form-grid>label{min-width:0}:where(body.erp-module) details>summary{cursor:pointer;color:#52769c;font-size:14px;font-weight:600;line-height:1.6}:where(body.erp-module) details>form{margin-top:18px}:where(body.erp-module) .record-actions{border-top:1px solid var(--ui-line);padding-top:22px;margin-top:26px}:where(body.erp-module) .record-actions details{border:1px solid #ead6d6;background:#fffafa;border-radius:8px;padding:14px;margin-top:18px}:where(body.erp-module) .fiscal-settings{border:1px solid var(--ui-line);border-radius:9px;padding:18px;background:#fafcfe}:where(body.erp-module) .fiscal-settings[open]>summary{padding-bottom:14px;border-bottom:1px solid #e5ecf4}
:where(body.erp-module) .table-wrap{border:1px solid var(--ui-line);border-radius:9px;max-width:100%;overflow-x:auto}:where(body.erp-module) table{font-size:15px;border-collapse:collapse;width:100%}:where(body.erp-module) th{background:#f3f6fa;color:#637d98;font-size:12px;font-weight:700;letter-spacing:.035em;text-transform:uppercase;padding:14px 12px;border-bottom:1px solid var(--ui-line);white-space:nowrap}:where(body.erp-module) td{padding:15px 12px;border-bottom:1px solid #e9eff6;vertical-align:middle;line-height:1.55}:where(body.erp-module) tbody tr:last-child td{border-bottom:0}:where(body.erp-module) tbody tr:nth-child(even){background:#fbfcfe}:where(body.erp-module) tr[data-href]{cursor:pointer}:where(body.erp-module) tr[data-href]:hover{background:#eef4ff}:where(body.erp-module) .record-link{display:block;color:#294d76;font-weight:500}:where(body.erp-module) table form{margin:0}:where(body.erp-module) table label{font-size:13px}:where(body.erp-module) table input,:where(body.erp-module) table select{font-size:14px!important;padding:8px 10px!important}:where(body.erp-module) .empty,:where(body.erp-module) tbody>tr>td[colspan]{padding:30px 20px;color:#7288a0;text-align:center;font-size:14px}:where(body.erp-module) .badge,:where(body.erp-module) .pill,.ui-badge{display:inline-block;border:0;padding:5px 9px;font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap;border-radius:6px;background:#edf2fa;color:#4c6f9a}.ui-badge.is-green{background:#e4f5ed;color:#23775d}.ui-badge.is-amber{background:#fff1d9;color:#a07830}.ui-badge.is-red{background:#fde5e5;color:#a43a3a}.ui-badge.is-blue{background:#eaf1ff;color:#4169b3}
:where(body.erp-module) .compact-query{border:1px solid #e0e8f1;border-radius:9px;background:#f8fafd;padding:16px;margin-bottom:20px}:where(body.erp-module) .query-main{gap:12px}:where(body.erp-module) .query-main label,:where(body.erp-module) .query-specific label{font-size:12px;margin:0}:where(body.erp-module) .query-main input,:where(body.erp-module) .query-main select,:where(body.erp-module) .query-specific input,:where(body.erp-module) .query-specific select{font-size:14px;margin-top:5px;height:42px;padding:8px 10px}:where(body.erp-module) .query-main button,:where(body.erp-module) .query-specific button{font-size:13px;min-height:42px;margin:0}:where(body.erp-module) .query-advanced{padding-top:10px;margin-top:12px;border-top:1px solid #e3eaf3}:where(body.erp-module) .query-advanced>summary{font-size:12px;color:#6b84a0}:where(body.erp-module) .pagination{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;color:#6c849c;padding-top:18px}:where(body.erp-module) .pagination a,:where(body.erp-module) .pagination button{font-size:13px}:where(body.erp-module) .catalog-picker{background:#f6f9fe;border:1px solid #dce6f3;border-radius:9px;padding:18px}.ui-info{padding:14px 16px;background:#eff5ff;border:1px solid #dae6f8;border-radius:8px;color:#517198;font-size:13px;line-height:1.65;margin:16px 0}.ui-info.is-warning{background:#fff8e9;border-color:#efdfbc;color:#946f32}.ui-info p{margin:4px 0}.ui-section-intro{margin-bottom:22px}.ui-section-intro h3{margin:0 0 6px}.ui-section-intro p{margin:0;color:#7388a0;font-size:13px;line-height:1.6}
:where(body.erp-module) .metrics{gap:18px;margin-bottom:24px}:where(body.erp-module) .metric{border-top:3px solid #bcd0f2;padding:24px}:where(body.erp-module) .metric>div{font-size:14px;color:#69819b}:where(body.erp-module) .metric h2{font-size:31px;margin:16px 0 8px;font-weight:700;color:#19374f}:where(body.erp-module) .metric small{font-size:11px;color:#8a9caf}:where(body.erp-module) .dashboard-grid{gap:22px}:where(body.erp-module) .chart{margin-top:25px}.ui-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.ui-metric{display:flex;align-items:flex-start;gap:16px;border:1px solid var(--ui-line);background:#fff;border-radius:12px;padding:24px;min-width:0}.ui-metric-icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:11px;font-size:23px;font-weight:700}.ui-metric-icon.is-blue{background:#e8efff;color:#3b68c4}.ui-metric-icon.is-green{background:#e4f5ef;color:#168064}.ui-metric-icon.is-amber{background:#fff2db;color:#b78021}.ui-metric small{font-size:14px;font-weight:600;color:#607993}.ui-metric strong{display:block;font-size:33px;line-height:1.2;color:#1a3751;letter-spacing:-.05em;margin:8px 0}.ui-metric p{font-size:11px;color:#8597aa;line-height:1.6;margin:0}
/* Estrutura do ERP e navegação preservam posições e funcionamento existentes. */
:where(body.erp-module)>aside,:where(body.erp-tabs-shell)>aside{background:#183850;border-right:1px solid #284961;color:#dfebf6}:where(body.erp-tabs-shell) .brand,:where(body.erp-module)>aside .brand{font-size:28px}.navigation nav>a,.menu-group>summary{border-radius:7px!important}.navigation nav>a.active,.menu-group a.active{background:#e4eeff!important;color:#214e88!important}.navigation nav>a:not(.active):hover,.menu-group>summary:hover{background:#254a66;color:#fff}.menu-group{border-color:#34516a}.navigation nav{gap:5px}:where(body.erp-module)>.shell>header,:where(body.erp-tabs-shell)>.shell>header{background:#fff;border-bottom:1px solid var(--ui-line);box-shadow:none}:where(body.erp-module) .breadcrumb,:where(body.erp-tabs-shell) .breadcrumb{font-size:14px;color:#5b7996}:where(body.erp-tabs-shell) .erp-tabbar{background:#eaf0f7;border-bottom:1px solid #cfdae8;padding-top:8px}.erp-tabs-shell .erp-tab{border-radius:8px 8px 0 0;background:#f5f8fc;border-color:#cbd8e8;color:#69839c}.erp-tabs-shell .erp-tab.active{background:#fff;color:#245dcc;border-top-color:#245dcc}.erp-tabs-shell .erp-tab button{background:transparent;color:inherit}.erp-tabs-shell .company-picker>summary{border-radius:7px;background:#f7faff}.erp-tabs-shell .logout,:where(body.erp-module) .logout{background:transparent!important;color:#395d7c!important;min-height:36px;padding:8px 10px;font-size:14px}.erp-module .message-dialog,.erp-tabs-shell .message-dialog{border-radius:12px}.erp-module .message-close{padding:0;min-height:0;background:#edf2f7;color:#385775;font-size:32px}.erp-module .message-dialog h2{font-size:23px}
/* NFC-e mantém a operação de caixa, com a mesma identidade de cores e controles. */
body[data-pagina=pdv] .pdv-window-toolbar{border:1px solid #183b59;border-radius:10px;background:#183b59;color:#fff;padding:16px 20px;margin-bottom:20px}
body[data-pagina=pdv] .pdv-window-toolbar strong,body[data-pagina=pdv] .pdv-window-toolbar span{color:#fff}body[data-pagina=pdv] .pdv-total{color:#087e74}body[data-pagina=pdv] .pdv-search{padding:18px;background:#f6f9fd;border:1px solid var(--ui-line);border-radius:10px}body[data-pagina=pdv] #pdv-cart{border-radius:10px}body[data-pagina=pdv] .pdv-checkout{border-top:4px solid var(--ui-teal)}
.ui-tabs{display:flex;gap:26px;border-bottom:1px solid var(--ui-line);margin:-6px 0 26px;overflow-x:auto}:where(body.erp-module) .ui-tabs button{background:none;color:#7b90a7;border:0;border-bottom:3px solid transparent;border-radius:0;padding:15px 0;font-size:14px;white-space:nowrap;margin:0;min-height:0}:where(body.erp-module) .ui-tabs button[aria-selected=true]{border-bottom-color:var(--ui-blue);color:var(--ui-blue)}.ui-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.ui-facts>div{padding:16px;border:1px solid #e0e9f4;background:#f7fafe;border-radius:8px}.ui-facts dt{font-size:11px;color:#8096ad;margin-bottom:6px}.ui-facts dd{font-size:14px;color:#456987;margin:0;font-weight:600;overflow-wrap:anywhere}
.recebidas-sync-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid #e5ecf4;padding-bottom:20px;margin-bottom:18px}.recebidas-sync-heading h2{margin:5px 0 8px!important}.recebidas-sync-heading p{font-size:13px;color:#7790a7;margin:0}.recebidas-sync-heading p>span{padding:0 6px}.recebidas-environment{display:flex;align-items:end;gap:10px;min-width:240px}.recebidas-environment label{margin:0!important;flex:1;font-size:12px!important}.recebidas-environment button{margin:0!important;font-size:13px!important}.recebidas-sync-controls{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:14px 0}.recebidas-sync-controls>div>strong{font-size:18px;display:block;margin-top:10px;color:#315675}.recebidas-sync-controls>div>p{font-size:12px;color:#8ca0b4;margin:6px 0}.recebidas-sync-controls>form{max-width:400px;min-width:300px}.recebidas-sync-controls>form>small{display:block;font-size:11px;color:#7b92a8;line-height:1.6;margin-bottom:10px}.recebidas-sync-controls>form>button{background:var(--ui-teal)!important;width:100%;margin-top:10px}.recebidas-sync-details{border-top:1px solid #e4ebf3;padding-top:16px;margin-top:18px}.recebidas-sync-details>summary{font-size:12px!important}.recebidas-sync-details p{font-size:13px;color:#718ba4;line-height:1.7}.recebidas-list .section-title h2{margin-bottom:5px}.recebidas-list table td small{font-size:11px}.recebidas-note-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 24px}.recebidas-note-heading h2{font-size:27px;margin:6px 0}.recebidas-note-heading h2 span{font-size:13px;color:#7890a8;margin-left:8px;font-weight:500}.recebidas-note-heading p{font-size:14px;color:#69859f;margin:0}.recebidas-note-total{padding:16px 24px;background:#fff;border:1px solid var(--ui-line);border-radius:9px}.recebidas-note-total small{display:block;font-size:11px;color:#8094a8;margin-bottom:7px}.recebidas-note-total strong{font-size:27px;color:#1d435b;letter-spacing:-.04em}.recebidas-app .nfe-key{font-family:monospace;font-size:14px;word-break:break-all;color:#607f9d;padding:14px;background:#f4f8fc;border-radius:7px}.recebidas-app [data-ui-panel]>p{font-size:14px;color:#6c87a2;line-height:1.65}.recebidas-app [data-ui-panel]>details{border:1px solid #e1e8f2;padding:18px;border-radius:9px;margin-top:16px}.recebidas-app [data-ui-panel]>details[open]>summary{padding-bottom:16px}.recebidas-app [data-ui-panel=manifestacao]>details{border:0;padding:0}.recebidas-app [data-ui-panel=manifestacao] p{font-size:13px;line-height:1.6;color:#7289a1}
@media(max-width:1000px){:where(body.erp-module)>.shell>main:not(.erp-workspace){padding:22px}.ui-metrics{gap:12px}.ui-metric{padding:18px;gap:12px}.ui-metric-icon{width:32px;height:32px;flex-basis:32px;font-size:19px}.recebidas-sync-heading{flex-wrap:wrap}.recebidas-environment{min-width:260px}.recebidas-sync-controls{gap:22px}}
@media(max-width:700px){:where(body.erp-module)>.shell>main:not(.erp-workspace){padding:20px 12px 30px}:where(body.erp-module) .page-heading{flex-direction:column;align-items:flex-start;gap:18px;padding-bottom:20px;margin-bottom:22px}:where(body.erp-module) .page-heading h1{font-size:24px}:where(body.erp-module) .page-heading p{font-size:13px}.ui-title-group{gap:11px}.ui-module-icon{width:42px;height:46px;flex-basis:42px;border-radius:10px}.ui-module-icon svg{width:24px;height:24px}.ui-overline{font-size:9px}.ui-title-tag{font-size:10px!important}:where(body.erp-module) .card{padding:20px 16px;border-radius:10px;margin-bottom:18px}:where(body.erp-module) .card h2{font-size:20px}:where(body.erp-module) .fiscal-fields,.ui-form-grid{grid-template-columns:1fr;gap:4px}:where(body.erp-module) label{font-size:14px}:where(body.erp-module) input:not([type=checkbox]):not([type=radio]),:where(body.erp-module) select,:where(body.erp-module) textarea{font-size:16px}:where(body.erp-module) fieldset{padding:16px}:where(body.erp-module) .compact-query{padding:14px}:where(body.erp-module) th{font-size:11px;padding:12px 10px}:where(body.erp-module) td{font-size:14px;padding:13px 10px}:where(body.erp-module) .ui-tabs{gap:23px}:where(body.erp-module) .ui-tabs button{font-size:13px}.ui-metrics{grid-template-columns:1fr;gap:10px;margin-bottom:18px}.ui-metric{align-items:center;padding:16px;gap:14px}.ui-metric>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 16px;flex:1}.ui-metric strong{grid-column:2;grid-row:1/3;margin:0;font-size:28px;align-self:center}.ui-metric small{font-size:13px}.ui-metric p{font-size:10px}.ui-metric-icon{width:36px;height:36px;flex-basis:36px}.ui-facts{grid-template-columns:1fr}.recebidas-sync-heading{display:block}.recebidas-sync-heading p{line-height:1.7}.recebidas-environment{margin-top:20px;min-width:0}.recebidas-sync-controls{display:block;padding-top:8px}.recebidas-sync-controls>form{min-width:0;max-width:none;margin-top:20px}.recebidas-sync-controls>form>button{font-size:14px}.recebidas-note-heading{align-items:flex-start;flex-direction:column}.recebidas-note-total{width:100%}.recebidas-app .nfe-key{font-size:12px}.recebidas-note-heading h2{font-size:25px}body[data-pagina=pdv] .pdv-window-toolbar{padding:14px}body[data-pagina=pdv] .pdv-search{padding:14px}.erp-tabs-shell .erp-tabbar{padding-left:8px}}
@media(prefers-reduced-motion:reduce){:where(body.erp-module) *{transition:none!important}}

:where(body.erp-module) table{margin-top:0}:where(body.erp-module) td:has(.record-link){padding:0}:where(body.erp-module) td .record-link{padding:15px 12px;min-height:48px}:where(body.erp-module) .recebidas-list td:nth-child(3){white-space:nowrap}

:where(body.erp-module) .ui-tabs button[aria-selected=true],:where(body.erp-module) .ui-tabs button:not(:disabled):hover{background:transparent;color:var(--ui-blue)}

.menu-group .menu-group{margin:4px 0 4px 10px;border-bottom:0;border-left:1px solid #446078;padding-left:7px}.menu-group .menu-group>summary{font-size:15px;padding:10px 7px}.menu-group .menu-group a{font-size:14px;padding:10px 9px}.menu-level-3{margin-left:5px!important}.company-choices [data-company-choice]{border:1px solid #dce6f1;border-radius:8px;padding:12px;background:#fafcfe}.company-choices [data-company-choice]>label:not(.check){font-size:12px}

.comercial-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:22px;align-items:start}.comercial-search{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:20px}.comercial-search label:first-child{flex:1;min-width:230px}.comercial-search label:nth-child(2){width:110px}.comercial-search label{margin:0}.comercial-search button{margin:0}.comercial-total-card{position:sticky;top:16px;border-top:4px solid #087e74!important}.comercial-total-card>strong{display:block;font-size:40px;color:#087e74;padding:12px 0}.comercial-total-card .comercial-checkout-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:0}.comercial-checkout-fields label{min-width:0}.comercial-total-card .form-actions{margin-top:18px}.comercial-total-card .form-actions button{width:100%}.comercial-layout>section{min-width:0}.comercial-search{padding:18px;background:#f6f9fd;border:1px solid var(--ui-line);border-radius:10px}.comercial-total-card>.button,.comercial-total-card>button{display:block;width:100%;margin:12px 0;text-align:center}.comercial-products-dialog{width:min(900px,calc(100vw - 24px))}.comercial-products-dialog tbody tr{cursor:pointer}.comercial-products-dialog tbody tr:hover{background:#eef4ff}#comercial-video{width:100%;max-height:350px}#comercial-carrinho input{min-width:85px;max-width:120px}@media(max-width:900px){.comercial-layout{grid-template-columns:minmax(0,1fr)}.comercial-total-card{position:static}}@media(max-width:600px){.comercial-search label:first-child{min-width:100%}.comercial-search button{flex:1;font-size:13px;padding:10px}.comercial-search label:nth-child(2){width:100%}}

/* Semântica de situação comum a cadastros, financeiro e documentos. */
.status-badge{display:inline-block;padding:5px 10px;border:1px solid transparent;border-radius:6px;font-size:14px;font-weight:650;line-height:1.4;white-space:nowrap}body .status-badge[data-status-tone=green]{background:#dcf4e5;color:#175c33;border-color:#b6dfc6}body .status-badge[data-status-tone=red]{background:#fde5e5;color:#922d31;border-color:#f1bfc2}body .status-badge[data-status-tone=amber]{background:#fff2c8;color:#785400;border-color:#ead88e}body .status-badge[data-status-tone=blue]{background:#e4edfb;color:#26568f;border-color:#c5d7f0}body .status-badge[data-status-tone=muted]{background:#edf1f5;color:#516477;border-color:#d6dfe8}

/* Vencimentos de hoje e do mês no mesmo indicador financeiro. */
:where(body.erp-module) .metric .metric-periods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px;margin:16px 0}:where(body.erp-module) .metric-periods>div{min-width:0}:where(body.erp-module) .metric-periods>div+div{border-left:1px solid #dce5ed;padding-left:14px}:where(body.erp-module) .metric .metric-periods>div>span{display:block;width:auto;height:auto;background:transparent;border-radius:0;margin-bottom:5px;color:#627a91;font-size:13px}:where(body.erp-module) .metric-periods strong{display:block;color:#173e59;font-size:clamp(18px,1.5vw,24px);font-weight:750;overflow-wrap:anywhere}

.pdv-pending-late{background:#fde5e5;color:#922d31}.pdv-offline-options{margin-top:16px}

.fiscal-wait-dialog{box-sizing:border-box;outline:none;font-family:inherit;max-height:calc(100vh - 32px);overflow:auto;border:0;border-radius:18px;padding:30px;max-width:480px;width:calc(100% - 32px);text-align:center;box-shadow:0 24px 80px #102a4460;color:#17344e}.fiscal-wait-dialog::backdrop{background:#12263c99;backdrop-filter:blur(3px)}.fiscal-wait-dialog h2{font-size:23px;margin:20px 0 12px}.fiscal-wait-dialog p{font-size:16px;line-height:1.6}.fiscal-wait-time{color:#64748b;font-variant-numeric:tabular-nums}.fiscal-wait-spinner{width:58px;height:58px;margin:0 auto;border:6px solid #dce8f4;border-top-color:#2563eb;border-radius:50%;animation:fiscal-wait-turn .85s linear infinite}.fiscal-wait-spinner[hidden]{display:none}@keyframes fiscal-wait-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.fiscal-wait-spinner{animation-duration:2.5s}}

.authenticator-secret{overflow-wrap:anywhere;word-break:break-all}

.ie-sintegra{display:flex;align-items:flex-end;gap:8px;min-width:0;position:relative}.ie-sintegra>label{flex:1;min-width:0;margin:0}.ie-sintegra input{width:100%;box-sizing:border-box}.sintegra-consulta{position:static;flex:none;margin:0}.sintegra-consulta>summary{list-style:none;cursor:pointer;border:1px solid #b7cbe1;border-radius:8px;padding:12px 10px;background:#edf4fb;color:#174b78;font-size:13px;font-weight:700;line-height:1.5}.sintegra-consulta>summary::-webkit-details-marker{display:none}.sintegra-consulta>summary:focus-visible{outline:3px solid #2563eb;outline-offset:2px}.sintegra-consulta[open]>summary{background:#dceafa}.sintegra-consulta nav{position:absolute;top:100%;right:0;z-index:35;width:min(340px,100%);max-height:330px;overflow-y:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:8px;background:#fff;border:1px solid #b7cbe1;border-radius:9px;box-shadow:0 8px 24px #152e4526;box-sizing:border-box}.sintegra-consulta nav a{display:block;padding:8px;border-radius:5px;color:#174b78;text-decoration:none;font-size:13px;overflow-wrap:anywhere}.sintegra-consulta nav a:hover,.sintegra-consulta nav a:focus-visible{background:#edf4fb;outline:2px solid #2563eb;outline-offset:-2px}

/* Cadastro do produto: dados gerais / detalhamento específico da NF-e. */
.produto-tabbar{display:flex;gap:8px;overflow-x:auto;border-bottom:1px solid var(--ui-line);margin:0 0 24px;padding-bottom:10px}.produto-tabbar button{width:auto;flex:0 0 auto;margin:0;padding:11px 20px;background:#f3f6fb;color:var(--ui-muted);border:1px solid var(--ui-line);box-shadow:none;border-radius:8px;font-size:16px}.produto-tabbar button[aria-selected=true]{background:var(--ui-blue);color:white;border-color:var(--ui-blue)}.produto-subtabs{margin-top:20px}.produto-subtabs button{padding:9px 15px}body.erp-module [data-produto-abas] [hidden]{display:none!important}[data-produto-nfe] .check{margin:16px 0}[data-produto-nfe] h2{margin-bottom:10px}

.produto-tabbar button{transition:none}.produto-tabbar button:not(:disabled):hover{background:#e7effb;color:#193e67}.produto-tabbar button[aria-selected=true]:hover{background:var(--ui-blue);color:#fff}@media(max-width:600px){.produto-subtabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.produto-subtabs button{width:100%;min-width:0;padding:9px 8px;font-size:14px}}
/* Rascunhos locais, separados por usuário e empresa. */
.rascunho-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0 16px}.rascunho-toolbar span{font-size:.85rem;color:#52647a}.rascunho-dialog{width:min(680px,92vw);max-height:85vh;overflow:auto;border:0;border-radius:16px;padding:24px;box-shadow:0 24px 80px #10243a55}.rascunho-dialog::backdrop{background:#14293b88}.rascunho-dialog h2{display:inline-block;margin:0 20px 12px 0}.rascunho-dialog p{color:#52647a;line-height:1.5}.rascunho-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #dce4ed}.rascunho-row span{flex:1;min-width:170px}
.nfe-header-actions .rascunho-toolbar-inline,[data-produto-rascunhos] .rascunho-toolbar-inline{margin:0;gap:8px;flex-wrap:nowrap}.rascunho-toolbar-inline span{max-width:210px;line-height:1.3;font-size:.75rem}.rascunho-toolbar-inline button{white-space:nowrap}
.ia-fiscal-dialog{width:min(780px,94vw);max-height:90dvh;overflow:auto;border:0;border-radius:16px;padding:24px;color:#173e59;box-shadow:0 24px 80px #102c4960}.ia-fiscal-dialog::backdrop{background:#102c4980}.ia-fiscal-dialog>button:first-child{float:right}.ia-rejeicao{background:#fff0ed;border:1px solid #f3b8ad;color:#8c2c1c;padding:14px;border-radius:8px;overflow-wrap:anywhere}.ia-correcao{padding:12px 0;border-top:1px solid #dce4ed}.ia-fiscal-dialog p{line-height:1.5;white-space:pre-wrap}

.pdv-order-discount{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.pdv-order-discount label{min-width:0}.pdv-order-discount input,.pdv-order-discount select{width:100%;box-sizing:border-box}#pdv-discount-summary{font-size:13px;line-height:1.5}
[data-pdv-rascunhos] .rascunho-toolbar-inline{margin:0;gap:8px;flex-wrap:wrap}

.entrada-tributacao-dialog{box-sizing:border-box;width:min(1150px,96vw);height:92dvh;max-height:96dvh;border:0;border-radius:14px;padding:16px;overflow:hidden}.entrada-tributacao-dialog::backdrop{background:#14293b99}.entrada-tributacao-dialog>button{margin-bottom:10px}.entrada-tributacao-dialog iframe{display:block;border:0;width:100%;height:calc(100% - 60px)}

/* Cupons: consulta e documento em etapas distintas, com ações junto da nota. */
#pdv-coupons-panel.pdv-coupons-dialog{width:min(1180px,96vw);max-width:1180px;padding:28px;max-height:92vh;overflow:auto}
.pdv-coupons-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(200px,260px) auto auto;align-items:end;gap:12px;margin:22px 0 12px}.pdv-coupons-toolbar label{margin:0}.pdv-coupons-table td{vertical-align:middle}.pdv-coupons-table td:first-child small{display:block;color:#60768a;margin-top:5px;font-size:12px}.pdv-coupons-table td:nth-child(4){font-weight:750;white-space:nowrap}.pdv-coupon-row-actions{display:flex;gap:7px;flex-wrap:nowrap}.pdv-coupon-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:22px}.pdv-coupon-heading>strong{font-size:26px;color:#123d5b}.pdv-coupon-detail{box-shadow:none!important;border:0!important;padding:0!important;margin:0!important}.pdv-coupon-task{background:#f5f8fb;border:1px solid #dbe5ed;border-radius:12px;padding:20px;margin:20px 0}.pdv-coupon-task label{display:block;margin:12px 0}.pdv-coupon-task textarea{display:block;width:100%;margin-top:8px}.pdv-coupon-danger{border-color:#e6b1af;background:#fff8f7}.pdv-offline-list{border-top:1px solid #dbe5ed;margin-top:20px;padding-top:16px}.pdv-offline-list summary{cursor:pointer;font-weight:650}.pdv-coupons-dialog .pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap}.pdv-coupons-dialog .pagination span{margin-right:auto}.pdv-coupon-actions{padding:12px 0;border-block:1px solid #e2e9ef}
@media(max-width:700px){#pdv-coupons-panel.pdv-coupons-dialog{padding:22px 16px;width:96vw}.pdv-coupons-toolbar{grid-template-columns:1fr 1fr;gap:10px}.pdv-coupons-toolbar label:first-child{grid-column:1/-1}.pdv-coupons-toolbar label:nth-child(2){grid-column:1/-1}.pdv-coupons-table thead{display:none}.pdv-coupons-table,.pdv-coupons-table tbody{display:block;width:100%;min-width:0!important}.pdv-coupons-table tr{display:grid;grid-template-columns:1fr 1fr;gap:8px;border:1px solid #d9e4ed;border-radius:12px;margin-bottom:12px;padding:14px;background:white}.pdv-coupons-table td{display:block;border:0!important;padding:0!important;overflow-wrap:anywhere}.pdv-coupons-table td:first-child,.pdv-coupons-table td:nth-child(3),.pdv-coupons-table td:last-child{grid-column:1/-1}.pdv-coupons-table td:nth-child(2){font-size:13px;color:#60768a}.pdv-coupons-table td:nth-child(4){font-size:20px;text-align:right;grid-row:2;grid-column:2}.pdv-coupons-table td:nth-child(5){grid-column:1/-1}.pdv-coupon-row-actions{margin-top:6px}.pdv-coupon-row-actions button{flex:1}.pdv-coupon-heading{align-items:flex-start;flex-direction:column;gap:4px}.pdv-coupon-heading h2{font-size:22px}.pdv-coupon-task{padding:14px}.pdv-coupon-actions>button{flex:1 1 40%}}

/* Seleção em lote da matriz de permissões. */
.permissoes-toolbar{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:18px 0}.permissoes-toolbar .check{margin:0;font-weight:700}.permissoes-matriz th:not(:first-child),.permissoes-matriz td:not(:first-child){text-align:center}.permissoes-matriz input[type=checkbox]{width:19px;height:19px;cursor:pointer;accent-color:#1b5c89}.permissoes-matriz input:disabled{cursor:not-allowed}.permissoes-matriz .permissoes-selecao{background:#edf4f9;border-right:1px solid #d8e4ed;width:70px}.permissoes-coluna{display:flex;gap:7px;align-items:center;justify-content:center;margin-top:8px;font-weight:400}.permissoes-coluna[hidden]{display:none}.permissoes-matriz td label{margin:0}.permissoes-matriz th{vertical-align:top}.permissoes-matriz input:indeterminate{outline:2px solid #7eabc8;outline-offset:2px}

[data-permissoes-ferramenta][hidden]{display:none!important}

/* Atendimento com reserva e conferência de condição. */
.balcao-total{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:1rem 0;padding:1rem;background:var(--surface,#f0f6ff);border-radius:12px}.balcao-total strong{font-size:1.8rem}[data-balcao-itens] input{width:7rem}[data-balcao-novo] .pdv-checkout label{display:flex;flex-direction:column;gap:.4rem;margin-bottom:.8rem}

.pdv-orders-dialog{width:min(1200px,96vw);max-width:96vw;height:90dvh}.pdv-orders-dialog iframe{width:100%;height:calc(100% - 4rem);border:0;display:block}

/* Barra de comandos do PDV: operação primeiro, controles da janela ao final. */
body[data-pagina=pdv] .pdv-window-toolbar{display:block;padding:16px 18px}
.pdv-window-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.pdv-window-heading strong{font-size:21px;white-space:nowrap}.pdv-window-heading span{font-size:14px;text-align:right;overflow-wrap:anywhere}
.pdv-command-bar{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
.pdv-command-main{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.pdv-command-bar>.pdv-command-main{flex:1}
.pdv-command-window{display:flex;align-items:center;gap:8px;margin-left:auto;padding-left:12px;border-left:1px solid #ffffff40}
.pdv-command-main>button,.pdv-command-main .rascunho-toolbar button,.pdv-command-window>button{min-height:44px;margin:0;padding:10px 14px;font-size:15px;line-height:1.2;white-space:nowrap;flex-shrink:0}
.pdv-command-main .rascunho-toolbar-inline{margin:0;gap:0;flex-wrap:nowrap}.pdv-command-main .rascunho-toolbar span:empty{display:none}
.pdv-command-main .pdv-command-cancel{color:#a72d3c;border-color:#efb8bf;background:#fff5f6}
.pdv-command-window>button.secondary{background:#ffffff12;color:#fff;border-color:#ffffff55}.pdv-command-window>button.secondary:hover{background:#ffffff28}
.pdv-window [data-pdv-rascunhos]:empty{display:none}
@media(max-width:1100px){.pdv-command-bar>.pdv-command-main{flex-basis:100%}.pdv-command-window{padding-left:0;border-left:0}}
@media(max-width:600px){.pdv-window-heading{align-items:flex-start;flex-direction:column;gap:4px}.pdv-window-heading span{text-align:left}.pdv-command-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}.pdv-command-main>button,.pdv-command-main .rascunho-toolbar,.pdv-command-main .rascunho-toolbar button{width:100%;min-width:0}.pdv-command-main .rascunho-toolbar{display:block}.pdv-command-main .rascunho-toolbar span:not(:empty){display:block;margin-top:6px;max-width:none}.pdv-command-window{display:grid;grid-template-columns:1fr 1fr;width:100%;margin-top:2px;padding-top:10px;border-top:1px solid #ffffff40}.pdv-command-window>button{width:100%}}
