:root{
  --bg:#f5f7fb;--panel:#fff;--text:#172033;--muted:#6b7485;--line:#e5e9f0;
  --primary:#174f7d;--primary-2:#0e3d65;--primary-soft:#eaf2f8;
  --green:#237a55;--green-soft:#e8f5ef;--yellow:#8a6500;--yellow-soft:#fff6d8;
  --orange:#a14d08;--orange-soft:#fff0e3;--red:#b23737;--red-soft:#fdecec;--blue:#2b68a0;--blue-soft:#ebf4fb;
  --shadow:0 8px 28px rgba(24,41,64,.07);--radius:14px;
}
*{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:"Segoe UI",Inter,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px}
button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:var(--muted)}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
#app{display:flex;min-height:100vh}.sidebar{width:238px;background:#113957;color:#fff;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:20;box-shadow:3px 0 18px rgba(8,32,53,.15)}
.brand{height:82px;display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.10)}.brand-mark{width:42px;height:42px;border-radius:11px;background:#fff;color:#174f7d;display:grid;place-items:center;font-weight:800;font-size:18px}.brand-text{display:flex;flex-direction:column;line-height:1.2}.brand-text strong{font-size:16px}.brand-text span{font-size:11px;color:#b9ccda;margin-top:4px}
.nav{padding:14px 10px;display:flex;flex-direction:column;gap:4px;overflow:auto}.nav-group{margin-top:11px;padding:0 10px 6px;color:#83a6bf;text-transform:uppercase;font-size:10px;font-weight:700;letter-spacing:.08em}.nav-btn{border:0;background:transparent;color:#dbe7ef;padding:10px 11px;border-radius:10px;text-align:left;display:flex;gap:10px;align-items:center}.nav-btn:hover{background:rgba(255,255,255,.08)}.nav-btn.active{background:#fff;color:#153f5f;font-weight:700}.nav-ico{width:20px;text-align:center;font-size:16px}
.sidebar-footer{margin-top:auto;padding:12px;border-top:1px solid rgba(255,255,255,.1)}.license-pill{font-size:11px;color:#d5e3ed;background:rgba(255,255,255,.08);padding:7px 9px;border-radius:8px;margin-bottom:8px}.user-card{width:100%;border:0;background:transparent;color:#fff;display:flex;align-items:center;gap:9px;padding:7px;border-radius:10px;text-align:left}.user-card:hover{background:rgba(255,255,255,.07)}.avatar{width:32px;height:32px;border-radius:50%;background:#eaf2f8;color:#174f7d;font-weight:800;display:grid;place-items:center}.user-card span:last-child{display:flex;flex-direction:column}.user-card small{color:#a8bfd0;margin-top:2px}
.main{margin-left:238px;min-width:0;flex:1}.topbar{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:10}.crumbs{font-size:13px;color:#657084}.crumbs strong{color:var(--text)}.top-actions{display:flex;align-items:center;gap:10px}.global-search-wrap{width:330px;border:1px solid var(--line);background:#fafbfc;border-radius:10px;padding:8px 11px;display:flex;gap:7px;align-items:center}.global-search-wrap input{width:100%;border:0;outline:0;background:transparent}.icon-btn{border:1px solid var(--line);background:#fff;border-radius:10px;width:38px;height:38px;position:relative}.notif-dot{position:absolute;right:7px;top:6px;width:7px;height:7px;border-radius:50%;background:#d64747}.mobile-only{display:none}
.content{padding:24px 28px 44px;max-width:1600px;margin:0 auto}.page-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:20px}.page-head h1{font-size:24px;margin:0 0 5px;letter-spacing:-.02em}.page-head p{margin:0;color:var(--muted)}.actions{display:flex;gap:8px;flex-wrap:wrap}.btn{border:1px solid var(--line);background:#fff;color:var(--text);padding:9px 13px;border-radius:10px;font-weight:600}.btn:hover{box-shadow:0 3px 12px rgba(0,0,0,.06)}.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn.primary:hover{background:var(--primary-2)}.btn.danger{color:var(--red);border-color:#efcaca;background:#fff}.btn.ghost{background:transparent}.btn.small{padding:6px 9px;font-size:12px}.btn:disabled{opacity:.45;cursor:not-allowed}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.kpi{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);min-height:116px}.kpi .label{color:var(--muted);font-size:12px;font-weight:600}.kpi .value{font-size:26px;font-weight:800;letter-spacing:-.025em;margin:8px 0 5px}.kpi .sub{font-size:12px;color:var(--muted)}.kpi .trend{font-size:12px;font-weight:700}.trend.ok{color:var(--green)}.trend.warn{color:var(--orange)}.trend.bad{color:var(--red)}
.grid-2{display:grid;grid-template-columns:1.35fr .9fr;gap:16px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-head{padding:15px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px}.panel-head h2,.panel-head h3{font-size:15px;margin:0}.panel-body{padding:16px}.panel.tight .panel-body{padding:0}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th{padding:10px 12px;text-align:left;background:#f8fafc;color:#687386;font-size:11px;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--line);white-space:nowrap}.table td{padding:11px 12px;border-bottom:1px solid #eef1f5;vertical-align:middle}.table tr:last-child td{border-bottom:0}.table tbody tr:hover{background:#fbfcfe}.table .num{text-align:right;font-variant-numeric:tabular-nums}.table .row-click{cursor:pointer}.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}.badge.green{background:var(--green-soft);color:var(--green)}.badge.yellow{background:var(--yellow-soft);color:var(--yellow)}.badge.orange{background:var(--orange-soft);color:var(--orange)}.badge.red{background:var(--red-soft);color:var(--red)}.badge.blue{background:var(--blue-soft);color:var(--blue)}.badge.gray{background:#eef1f4;color:#5f6877}
.filters{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:14px}.field{display:flex;flex-direction:column;gap:5px;min-width:140px}.field label{font-size:11px;font-weight:700;color:#697386}.input,.select,.textarea{border:1px solid #dce2ea;background:#fff;border-radius:9px;padding:9px 10px;outline:none;min-height:38px}.input:focus,.select:focus,.textarea:focus{border-color:#85acc9;box-shadow:0 0 0 3px rgba(23,79,125,.09)}.textarea{min-height:88px;resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-grid .wide{grid-column:1/-1}.form-section{margin:6px 0 18px}.form-section h3{font-size:14px;margin:0 0 11px}.helper{font-size:11px;color:var(--muted)}
.list{display:flex;flex-direction:column}.list-item{padding:11px 0;border-bottom:1px solid #edf0f4;display:flex;justify-content:space-between;gap:12px}.list-item:last-child{border-bottom:0}.list-item strong{display:block}.list-item small{display:block;color:var(--muted);margin-top:3px}.risk-line{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf0f4}.risk-dot{width:10px;height:10px;border-radius:50%}.risk-dot.red{background:var(--red)}.risk-dot.orange{background:#d86e18}.risk-dot.yellow{background:#cba21b}.risk-dot.green{background:var(--green)}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:18px;overflow:auto}.tab{border:0;background:transparent;padding:10px 12px;color:#667184;font-weight:600;border-bottom:2px solid transparent;white-space:nowrap}.tab.active{color:var(--primary);border-color:var(--primary)}
.mei-header{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:var(--shadow)}.mei-title{display:flex;align-items:center;gap:12px}.mei-symbol{width:45px;height:45px;border-radius:12px;background:var(--primary-soft);color:var(--primary);font-weight:800;display:grid;place-items:center}.mei-title h2{margin:0 0 3px;font-size:18px}.mei-title p{margin:0;color:var(--muted);font-size:12px}.mei-meta{display:flex;gap:8px;flex-wrap:wrap}
.progress{height:8px;background:#edf1f5;border-radius:999px;overflow:hidden}.progress>span{display:block;height:100%;background:var(--primary);border-radius:inherit}.money.pos{color:var(--green);font-weight:700}.money.neg{color:var(--red);font-weight:700}.summary-strip{display:flex;gap:0;background:#f9fbfd;border:1px solid var(--line);border-radius:12px;margin-bottom:14px;overflow:auto}.summary-item{padding:12px 16px;min-width:150px;border-right:1px solid var(--line)}.summary-item:last-child{border-right:0}.summary-item small{display:block;color:var(--muted);margin-bottom:4px}.summary-item strong{font-size:16px}
.empty{padding:42px 20px;text-align:center;color:var(--muted)}.empty .big{font-size:34px;margin-bottom:7px}.callout{padding:12px 14px;border-radius:10px;border:1px solid #dfe6ee;background:#f8fafc;margin-bottom:12px}.callout.warn{background:var(--yellow-soft);border-color:#ecd98f;color:#6f5606}.callout.danger{background:var(--red-soft);border-color:#f0c4c4;color:#8f2f2f}.callout.info{background:var(--blue-soft);border-color:#cfe2f2;color:#315e84}
.timeline{position:relative;padding-left:18px}.timeline:before{content:"";position:absolute;left:5px;top:5px;bottom:5px;width:2px;background:#e3e8ef}.timeline-item{position:relative;padding:0 0 17px 13px}.timeline-item:before{content:"";position:absolute;left:-17px;top:4px;width:9px;height:9px;border-radius:50%;background:#6f91ab;border:2px solid #fff}.timeline-item strong{font-size:13px}.timeline-item small{color:var(--muted);display:block;margin-top:2px}.timeline-item p{margin:5px 0 0;color:#495568}
.metric-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.metric{background:#f9fbfd;border:1px solid var(--line);border-radius:10px;padding:12px}.metric small{color:var(--muted)}.metric strong{display:block;font-size:18px;margin-top:4px}.section-title{font-size:14px;margin:0 0 10px}.inline-actions{display:flex;gap:6px}.right{text-align:right}.center{text-align:center}
.toast{position:fixed;right:20px;bottom:20px;background:#172033;color:#fff;padding:11px 15px;border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.22);opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;z-index:100}.toast.show{opacity:1;transform:none}.modal-backdrop{position:fixed;inset:0;background:rgba(10,21,34,.45);z-index:80;display:grid;place-items:center;padding:20px}.modal{width:min(700px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.28)}.modal-head{padding:17px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;align-items:center}.modal-head h2{margin:0;font-size:18px}.modal-body{padding:18px}.modal-foot{padding:14px 18px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}
.account-card{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fff}.account-card .top{display:flex;justify-content:space-between;gap:8px}.account-card h3{font-size:14px;margin:0}.account-card .balance{font-size:21px;font-weight:800;margin:10px 0 2px}.account-card small{color:var(--muted)}
.spark{height:68px;display:flex;align-items:flex-end;gap:6px;padding-top:9px}.spark span{flex:1;background:#b9d1e2;border-radius:4px 4px 0 0;min-width:4px}.spark span.active{background:#3b79a6}
@media(max-width:1120px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.grid-2,.grid-3{grid-template-columns:1fr}.metric-row{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:none}.main{margin-left:0}.mobile-only{display:inline-grid;place-items:center}.topbar{padding:0 12px}.global-search-wrap{width:190px}.content{padding:18px 14px}.page-head{flex-direction:column}.kpi-grid,.form-grid{grid-template-columns:1fr}.mei-header{align-items:flex-start;flex-direction:column}.metric-row{grid-template-columns:1fr}.crumbs{display:none}}

.dropzone{border:2px dashed var(--line);border-radius:16px;padding:34px;text-align:center;background:#fafcff;color:var(--muted);margin-top:14px}.dropzone.drag{border-color:var(--primary);background:#f2f7ff}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.table small{display:block;color:var(--muted);margin-top:3px}

.admin-tabs{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;box-shadow:var(--shadow)}
.admin-tabs .tab{padding:11px 10px}
.user-card{cursor:pointer}
.kpi-button{appearance:none;text-align:left;font:inherit;color:inherit;cursor:pointer;width:100%;border:1px solid var(--border)}
.kpi-button:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(22,49,79,.08);border-color:#b9cbe0}
.finance-tabs{margin:16px 0;background:#fff;border:1px solid var(--border);border-radius:12px;padding:0 12px}

.top-left{display:flex;align-items:center;gap:10px;min-width:0}.back-nav{border:1px solid var(--line);background:#fff;color:var(--text);height:38px;padding:0 12px;border-radius:10px;font-weight:700;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.back-nav:hover:not(:disabled){box-shadow:0 3px 12px rgba(0,0,0,.06);background:#fafbfc}.back-nav:disabled{opacity:.35;cursor:not-allowed}.top-left .crumbs{min-width:0}.callout.wide,.inline-actions.wide{grid-column:1/-1}
@media(max-width:800px){.back-nav span{display:none}.back-nav{width:38px;padding:0;justify-content:center}}

/* V0.7.0 — contexto de exercício e refinamentos */
.period-context{display:flex;gap:6px;align-items:center}.period-context select{height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 10px;font-weight:700;color:var(--text)}
.panel.tight .panel-body .risk-line{padding:13px 16px}.panel.tight .panel-body .risk-line>div{min-width:0}.risk-line strong{display:block}.risk-line small{display:block;color:var(--muted);margin-top:3px;line-height:1.35}.danger-text{color:var(--red)!important}
@media(max-width:1050px){.period-context{display:none}}

/* V0.7.3 — leitura cadastral e máscaras */
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}
.detail-grid>div{min-width:0;padding:2px 0}
.detail-grid small{display:block;color:var(--muted);font-size:11px;font-weight:700;margin:0 0 5px;line-height:1.25}
.detail-grid strong{display:block;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
@media(max-width:800px){.detail-grid{grid-template-columns:1fr;gap:14px}}


/* V0.7.4 — destaque do seletor de MEI no Financeiro */
.mei-selector-card{border:1px solid #b8d1e5;background:linear-gradient(180deg,#f7fbff 0%,#ffffff 100%);box-shadow:0 10px 24px rgba(23,79,125,.08);position:relative;overflow:hidden}
.mei-selector-card:before{content:'';position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--primary)}
.mei-selector-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}
.eyebrow{font-size:10px;letter-spacing:.09em;font-weight:800;color:var(--primary);margin-bottom:3px}
.mei-selector-title{font-size:16px;font-weight:800;color:var(--text)}
.mei-selector-field label{font-size:12px;color:#45556b}
.mei-selector{min-height:48px;border:2px solid #8ab4d2;background:#fff;font-size:15px;font-weight:800;color:#0d2f4f;padding:10px 14px;border-radius:11px;box-shadow:0 0 0 4px rgba(23,79,125,.06)}
.mei-selector:hover{border-color:#5f99c2}
.mei-selector:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(23,79,125,.13)}

/* V0.8.0 — cadastro universal de clientes e fornecedores */
.module-tabs{margin:0 0 18px 0}
.inline-picker{display:flex;gap:10px;align-items:center}
.inline-picker .grow,.field.grow{flex:1;min-width:260px}
.check-row{display:flex;gap:24px;align-items:center;min-height:42px;padding:0 4px}
.check-row label{display:flex;gap:8px;align-items:center;font-weight:600;color:#334155}
@media (max-width:900px){.inline-picker{align-items:stretch;flex-direction:column}.inline-picker .grow,.field.grow{min-width:0;width:100%}.check-row{flex-direction:column;align-items:flex-start;gap:10px}}

/* V0.9.3 — resumo gerencial, limite anual e financeiro realizado */
.summary-secondary{margin-bottom:16px}
.limit-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.limit-summary>div{border:1px solid var(--line);background:#f9fbfd;border-radius:10px;padding:11px 12px}
.limit-summary small{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}
.limit-summary strong{font-size:16px}
.finance-kpis{margin-top:16px}
@media(max-width:800px){.limit-summary{grid-template-columns:1fr}}

/* V0.9.3 — resumo gerencial, limite anual e financeiro realizado */
.summary-secondary{margin-bottom:16px}
.limit-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.limit-summary>div{border:1px solid var(--line);background:#f9fbfd;border-radius:10px;padding:11px 12px}
.limit-summary small{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}
.limit-summary strong{font-size:16px}
.finance-kpis{margin-top:16px}
@media(max-width:800px){.limit-summary{grid-template-columns:1fr}}

/* Regra visual financeira global — V0.10.0 */
.money.neg,.negative-value{color:var(--red)!important;font-weight:700}.money-input-negative{color:var(--red)!important;font-weight:700}.table td.money.neg{color:var(--red)!important}.kpi .value.money.neg{color:var(--red)!important}

.month-picker{display:grid;grid-template-columns:repeat(6,minmax(56px,1fr));gap:8px;margin-top:6px}.month-option{display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:9px;padding:8px;background:#fff;font-size:12px;font-weight:700;cursor:pointer}.month-option:has(input:checked){border-color:#85acc9;background:#eef6fb}.month-option input{accent-color:var(--primary)}@media(max-width:800px){.month-picker{grid-template-columns:repeat(3,1fr)}}

/* V0.12.4 — operação crítica de backup/restauração */
body.system-busy{overflow:hidden;cursor:wait}
.modal-backdrop.operation-lock{z-index:9999;background:rgba(8,20,34,.66);backdrop-filter:blur(2px)}
.modal-backdrop.operation-lock .modal{width:min(620px,94vw);overflow:hidden}
.operation-head{padding:20px 22px}
.operation-subtitle{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.45}
.operation-progress-wrap{padding:8px 2px 4px;text-align:center}
.operation-percent{font-size:36px;font-weight:800;letter-spacing:-1px;color:var(--navy);font-variant-numeric:tabular-nums}
.operation-bar{height:14px;background:#e7edf4;border-radius:999px;overflow:hidden;margin:14px 0 16px;box-shadow:inset 0 1px 2px rgba(0,0,0,.07)}
.operation-bar-fill{height:100%;background:linear-gradient(90deg,#0c5b8f,#1782ba);border-radius:999px;transition:width .18s ease}
.operation-status{font-size:16px;font-weight:750;color:#172033;margin-bottom:5px}
.operation-detail{font-size:12px;color:var(--muted);min-height:18px}
.operation-lock-note{margin-top:18px;text-align:left}

.doc-indicator{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;font-weight:700}.doc-dot{width:10px;height:10px;border-radius:50%;display:inline-block;box-shadow:0 0 0 2px rgba(0,0,0,.04)}.doc-dot.green{background:var(--green)}.doc-dot.yellow{background:#cba21b}.doc-dot.gray{background:#8b95a5}.doc-dot.red{background:var(--red)}

/* V0.14.3 — anexos operacionais padronizados */
.doc-attachment-field{border-top:1px solid #e5e7eb;padding-top:12px;margin-top:4px}.doc-attachment-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.doc-attachment-line .doc-indicator{margin-right:auto}

/* V0.14.5 — integridade documental */
.doc-kpi-critical{outline:2px solid rgba(180,35,24,.25);background:#fff8f7}.doc-critical-row{background:#fff8f7}.doc-critical-row td:first-child{border-left:3px solid #b42318}
/* V0.14.6 — padrão global de grades operacionais */
.table th.doc-col,.table td.doc-col{width:38px;min-width:38px;max-width:38px;text-align:center;padding-left:10px;padding-right:6px}
.doc-indicator.compact{display:inline-flex;align-items:center;justify-content:center;gap:0;cursor:help;vertical-align:middle}
.doc-indicator.compact .doc-dot{width:10px;height:10px}

/* V0.14.7 — filtros operacionais */
.filter-panel{margin:0 0 12px}.filter-panel .panel-body{padding:14px 16px}.filter-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.filter-head>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.filter-head small{display:block;color:var(--muted,#64748b);font-weight:400}.filter-grid{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:10px;align-items:end}.filter-grid .field{margin:0}.filter-grid .field.wide{grid-column:span 2}.filter-result-note{font-size:12px;color:var(--muted,#64748b);margin:-2px 2px 8px;text-align:right}@media(max-width:1300px){.filter-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}}@media(max-width:800px){.filter-grid{grid-template-columns:1fr}.filter-grid .field.wide{grid-column:span 1}.filter-head{align-items:flex-start}}


/* V0.16.2 — relatórios: visual profissional, preview amplo e impressão isolada */
.report-modal{width:min(1080px,96vw)!important;max-height:92vh}.report-modal .modal-body{background:#f6f8fb;padding:20px}.report-modal .panel{box-shadow:none}.report-doc-head{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px;margin-bottom:12px}.report-brand{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid #e8edf3}.report-logo{width:48px;height:48px;border-radius:11px;background:#123f5f;color:#fff;display:grid;place-items:center;font-weight:900;font-size:18px;letter-spacing:-.5px}.report-brand strong{display:block;font-size:13px;color:#0d2940;letter-spacing:.02em}.report-brand small{display:block;color:var(--muted);margin-top:3px}.report-title-block{padding-top:14px}.report-title-block h1{font-size:21px;margin:0 0 10px;color:#0b2035}.report-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;font-size:11px;color:#526174}.report-meta span{min-width:0}.report-context-note{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#edf6fc;border:1px solid #c8dff0;color:#245575;border-radius:10px;padding:9px 12px;margin:0 0 12px}.report-context-note span{font-size:12px}.report-modal .summary-strip{background:#fff}.report-modal .summary-item{display:flex;flex-direction:column;align-items:flex-start}.report-modal .summary-item small{min-height:2.5em;line-height:1.25}.report-modal .summary-item strong{margin-top:auto;line-height:1.2}.report-modal .panel{background:#fff}.report-modal .table th{font-size:10px;padding:8px 10px}.report-modal .table td{padding:9px 10px;font-size:12px}.report-modal .badge{font-size:10px;padding:3px 7px}
@media(max-width:760px){.report-meta{grid-template-columns:1fr}.report-context-note{align-items:flex-start;flex-direction:column}}

@media print{
  @page{size:A4 portrait;margin:12mm 10mm 14mm}
  body.report-printing{background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.report-printing #app,body.report-printing .toast{display:none!important}
  body.report-printing #modalBackdrop{position:static!important;display:block!important;background:#fff!important;padding:0!important;inset:auto!important}
  body.report-printing #modal{display:block!important;width:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
  body.report-printing .modal-head,body.report-printing .modal-foot{display:none!important}
  body.report-printing .modal-body{padding:0!important;background:#fff!important;overflow:visible!important}
  body.report-printing .report-doc-head{border:0!important;border-bottom:2px solid #123f5f!important;border-radius:0!important;padding:0 0 12px!important;margin:0 0 10px!important;break-inside:avoid}
  body.report-printing .report-logo{background:#123f5f!important;color:#fff!important}
  body.report-printing .report-context-note{border-radius:5px!important;padding:7px 9px!important;margin-bottom:9px!important;break-inside:avoid}
  body.report-printing .summary-strip{overflow:visible!important;border-radius:5px!important;margin-bottom:9px!important;break-inside:avoid}
  body.report-printing .summary-item{padding:8px 10px!important;min-width:0!important;flex:1!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important}
  body.report-printing .summary-item small{min-height:2.6em!important;line-height:1.2!important;margin-bottom:3px!important}
  body.report-printing .summary-item strong{font-size:13px!important;line-height:1.15!important;margin-top:auto!important}
  body.report-printing .panel{box-shadow:none!important;border-radius:5px!important;margin-top:8px!important;break-inside:auto}
  body.report-printing .panel-head{padding:8px 9px!important;break-after:avoid}
  body.report-printing .panel-head h3{font-size:12px!important}
  body.report-printing .table-wrap{overflow:visible!important}
  body.report-printing .table{font-size:9px!important;table-layout:auto!important}
  body.report-printing .table thead{display:table-header-group}
  body.report-printing .table tr{break-inside:avoid;page-break-inside:avoid}
  body.report-printing .table th{font-size:8px!important;padding:5px 6px!important;background:#eef3f7!important;color:#334155!important}
  body.report-printing .table td{font-size:9px!important;padding:5px 6px!important}
  body.report-printing .badge{font-size:8px!important;padding:2px 5px!important}
  body.report-printing .callout,body.report-printing .detail-grid,body.report-printing .list-item{break-inside:avoid}
  body.report-printing a[href]:after{content:none!important}
}

/* V0.16.2 — fluxo de caixa em relatórios */
.report-options{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:0 0 12px}.report-options>div{min-width:0}.report-options strong{display:block;color:#0b2035}.report-options small{display:block;color:var(--muted);margin-top:3px}.report-options .select{width:220px;flex:0 0 220px}.cash-balance-row td{background:#f7fafc;font-weight:600}.cash-final-row td{border-top:2px solid #cbd5e1!important;background:#eef6fb}.report-modal .cash-balance-row td{font-size:11px}
@media(max-width:760px){.report-options{align-items:stretch;flex-direction:column}.report-options .select{width:100%;flex:auto}}
@media print{body.report-printing .report-options{display:none!important}body.report-printing .cash-balance-row td{background:#f3f6f8!important}body.report-printing .cash-final-row td{border-top:2px solid #64748b!important}}

/* V0.16.7 — filtros compactos e impressão isolada dos relatórios */
.report-filter-panel{background:#f8fafc;border:1px solid #dbe4ec;border-radius:12px;padding:12px 13px;margin:0 0 12px;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.report-filter-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding-bottom:9px;border-bottom:1px solid #e6edf3}
.report-filter-head>div{min-width:0}.report-filter-head strong{display:block;font-size:12px;color:#0b2035}.report-filter-head small{display:block;margin-top:2px;font-size:10.5px;color:var(--muted)}
.report-filter-grid{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:10px;align-items:end}.report-filter-grid .field{min-width:0;gap:4px}.report-filter-grid .field label{font-size:10.5px}.report-filter-grid .select{width:100%!important;min-height:36px!important;height:36px!important;padding:7px 30px 7px 9px!important;flex:auto!important;font-size:12px;border-color:#cfd9e3;background:#fff}
.report-filter-grid .select:focus{border-color:#6f9fc2;box-shadow:0 0 0 2px rgba(23,79,125,.08)}
.report-filter-head .btn[disabled]{opacity:.45;cursor:default}
@media(max-width:760px){.report-filter-grid{grid-template-columns:1fr}.report-filter-head{align-items:flex-start}.report-filter-head .btn{flex:0 0 auto}}
@media print{.report-filter-panel{display:none!important}}

/* V0.16.7 — relatórios multi-MEI, demonstrações gerenciais e filtros documentais */
.report-filter-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.report-filter-panel{border-left:4px solid #1d5f89;background:linear-gradient(180deg,#f8fbfd 0%,#f5f8fb 100%)}
.report-filter-head{gap:12px}
.report-filter-head strong{font-size:13px;color:#173b55}
.report-filter-head small{line-height:1.35}

/* V0.16.8 — simulador IRPF do titular */
.irpf-filter-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.irpf-filter-grid .input,.irpf-filter-grid .select{width:100%;min-height:36px;height:36px;padding:7px 9px;font-size:12px;background:#fff;border-color:#cfd9e3}
.irpf-filter-grid .field:first-child{min-width:250px}
@media(max-width:760px){.irpf-filter-grid{grid-template-columns:1fr}.irpf-filter-grid .field:first-child{min-width:0}}
@media print{.irpf-filter-grid{display:none!important}}


/* V0.17.0 — Contabilidade */
.accounting-tabs{margin-bottom:14px;overflow-x:auto;white-space:nowrap}
.accounting-group-row td{background:#f5f7fb;font-weight:700;border-top:1px solid #dfe5ef}
.accounting-journal code{font-size:11px;color:#475467}
.mapping-list{display:grid;gap:8px;margin-top:12px}.mapping-row{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(320px,1.2fr);gap:14px;align-items:center;padding:10px 12px;border:1px solid #e3e8ef;border-radius:10px;background:#fbfcfe}.mapping-row small{display:block;color:#667085;margin-top:2px}.switch-row{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #d0d5dd;border-radius:10px;background:#fff}.cash-final-row{padding-top:10px!important;border-top:2px solid #cbd5e1!important;margin-top:6px}
@media(max-width:900px){.mapping-row{grid-template-columns:1fr}.accounting-tabs{display:flex}}
/* V0.17.3 — seleção explícita de MEI na Contabilidade */
.accounting-context{margin-bottom:12px;border:1px solid var(--line);background:linear-gradient(180deg,#fff,#f8fbfd)}
.accounting-context .panel-body{padding:12px 14px}
.accounting-context-row{display:flex;gap:12px;align-items:end;justify-content:space-between}
.accounting-context-row .field{min-width:420px;max-width:720px;flex:1}
@media(max-width:900px){.accounting-context-row{align-items:stretch;flex-direction:column}.accounting-context-row .field{min-width:0;max-width:none;width:100%}}


/* V0.17.9 — Demonstrações contábeis: DRE mais compacta e BP com maior área útil */
.accounting-statements-grid{
  display:grid;
  grid-template-columns:minmax(360px,.82fr) minmax(620px,1.38fr);
  gap:18px;
  align-items:start;
}
.accounting-statements-grid>.panel{min-width:0}
.accounting-statements-grid>.panel:last-child .panel-body{padding:14px 16px 16px}
.accounting-statements-grid>.panel:last-child .table-wrap{overflow-x:auto}
.accounting-statements-grid>.panel:last-child .table{table-layout:fixed;min-width:720px}
.accounting-statements-grid>.panel:last-child .table th:first-child,
.accounting-statements-grid>.panel:last-child .table td:first-child{width:42%;white-space:normal;line-height:1.25}
.accounting-statements-grid>.panel:last-child .table th.num,
.accounting-statements-grid>.panel:last-child .table td.num{width:19.33%;white-space:nowrap}
.accounting-statements-grid>.panel:last-child .risk-line{margin-top:10px;padding-top:14px}
.accounting-statements-grid>.panel:first-child .risk-line{gap:18px}
.accounting-statements-grid>.panel:first-child .risk-line>span,
.accounting-statements-grid>.panel:first-child .risk-line>strong:first-child{min-width:0}
@media(max-width:1280px){
  .accounting-statements-grid{grid-template-columns:1fr}
  .accounting-statements-grid>.panel:last-child .table{min-width:680px}
}

/* V0.18.7 — ajuste de layout do simulador IRPF */
.irpf-filter-grid{grid-template-columns:minmax(260px,1.7fr) 110px repeat(3,minmax(155px,1fr));align-items:end}
.irpf-filter-grid .irpf-dependents-field{min-width:0;max-width:110px}
.irpf-filter-grid .irpf-dependents-field .input{max-width:110px}
@media(max-width:1100px){.irpf-filter-grid{grid-template-columns:minmax(240px,1.6fr) 100px repeat(2,minmax(160px,1fr))}.irpf-filter-grid .irpf-dependents-field,.irpf-filter-grid .irpf-dependents-field .input{max-width:100px}}
@media(max-width:760px){.irpf-filter-grid{grid-template-columns:1fr}.irpf-filter-grid .irpf-dependents-field,.irpf-filter-grid .irpf-dependents-field .input{max-width:none;width:100%}}

/* V0.18.9 — Central de Relatórios: identidade visual e hierarquia profissional */
.reports-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;margin:0 0 18px;padding:18px 20px;border:1px solid #d9e7f2;border-radius:18px;background:linear-gradient(135deg,#f7fbff 0%,#eef6fc 62%,#f9fcff 100%);box-shadow:0 10px 30px rgba(18,63,95,.07);position:relative;overflow:hidden}.reports-hero:after{content:"";position:absolute;right:120px;top:-90px;width:340px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(29,95,137,.08),transparent 68%);pointer-events:none}.reports-hero-icon{width:58px;height:58px;border:1px solid #b9d5ea;border-radius:16px;background:#eaf4fc;color:#0f6bb3;display:grid;place-items:center;font-size:29px;font-weight:800;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65)}.reports-hero h1{margin:0 0 4px;font-size:29px;letter-spacing:-.035em;color:#123f5f}.reports-hero p{margin:0;color:#60748a;font-size:13.5px}.reports-hero-note{display:flex;align-items:center;gap:10px;max-width:230px;padding:11px 13px;border:1px solid #d7e6f1;border-radius:13px;background:rgba(255,255,255,.85);color:#365f7b}.reports-hero-note>span{width:34px;height:34px;border-radius:9px;background:#eaf4fc;display:grid;place-items:center;color:#0f6bb3;font-weight:700}.reports-hero-note small{line-height:1.35}
.reports-context{margin-bottom:18px;border:1px solid #cfe0ec;border-radius:17px;background:linear-gradient(180deg,#f9fcff,#f4f9fd);box-shadow:0 8px 22px rgba(18,63,95,.06);padding:14px 16px 15px}.reports-context-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.reports-context-title{display:flex;align-items:center;gap:10px;color:#174f7d}.reports-context-title>span{width:30px;height:30px;border-radius:9px;background:#e8f2fa;display:grid;place-items:center;color:#0f6bb3}.reports-context-title strong{display:block;font-size:14px}.reports-context-title small{display:block;margin-top:2px;color:#6a7e91;font-size:11px}.reports-context-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:12px}.reports-scope-card,.reports-period-card{background:#fff;border:1px solid #d8e4ed;border-radius:13px;padding:10px 12px}.reports-scope-card label,.reports-period-card label{display:block;margin:0 0 6px;color:#526a7d;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.reports-select-wrap{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;min-height:46px;padding:7px 42px 7px 8px;border:1px solid #8bb9d8;border-radius:11px;background:linear-gradient(180deg,#fff,#f9fcff);box-shadow:0 0 0 3px rgba(29,95,137,.05)}.reports-field-icon{width:34px;height:34px;border-radius:9px;background:#e9f4fc;color:#0d6db8;display:grid;place-items:center;font-size:17px;font-weight:800}.reports-scope-copy{min-width:0}.reports-scope-copy strong{display:block;color:#173b55;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reports-scope-copy small{display:block;margin-top:2px;color:#74879a;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reports-scope-select{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer}.reports-period-value{display:flex;align-items:center;gap:10px;min-height:46px;padding:6px 8px;border:1px solid #d6e3ed;border-radius:11px;background:#fff;color:#173b55}.reports-period-value strong{font-size:13px}
.reports-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.report-launch-card{position:relative;min-height:180px;background:#fff;border:1px solid #dfe8ef;border-radius:17px;box-shadow:0 8px 22px rgba(15,43,67,.055);padding:15px 16px 14px;display:flex;flex-direction:column;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;overflow:hidden}.report-launch-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#7aa8c5;opacity:.5}.report-launch-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,43,67,.09);border-color:#c8dce9}.report-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.report-card-icon{width:46px;height:46px;border-radius:13px;background:#edf6fc;color:#0d6db8;display:grid;place-items:center;font-size:22px;font-weight:800;border:1px solid #d9eafa}.report-card-tag{border-radius:999px;padding:4px 8px;font-size:9.5px;font-weight:700;background:#eef3f6;color:#647789}.report-card-copy{padding:12px 0 14px;flex:1}.report-card-copy h3{margin:0 0 6px;color:#102d44;font-size:15.5px}.report-card-copy p{margin:0;color:#687d90;font-size:11.5px;line-height:1.45}.report-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.report-card-btn{border:1px solid #2f79ad;background:#fff;color:#176395;border-radius:10px;padding:7px 11px;font-size:11.5px;font-weight:700;display:inline-flex;align-items:center;gap:7px;cursor:pointer;transition:.16s}.report-card-btn:hover{background:#eff7fc}.report-card-btn.primary{background:#145f93;border-color:#145f93;color:#fff;box-shadow:0 6px 14px rgba(20,95,147,.17)}.report-card-btn.primary:hover{background:#0f537f}.report-card-chevron{color:#7590a4;font-size:24px;line-height:1}.tone-accounting:before{background:#18945d}.tone-accounting .report-card-icon{background:#edf9f3;color:#168955;border-color:#d8f0e4}.tone-accounting .report-card-tag{background:#e8f6ef;color:#21744f}.tone-managerial .report-card-tag{background:#eaf4fb;color:#2a709d}.tone-fiscal .report-card-tag{background:#f1effd;color:#6a55ad}.tone-control .report-card-tag{background:#fff3df;color:#9a6a14}.tone-office .report-card-tag{background:#eef1f4;color:#546474}
@media(max-width:1100px){.reports-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-context-grid{grid-template-columns:1fr}.reports-hero{grid-template-columns:auto 1fr}.reports-hero-note{grid-column:1/-1;max-width:none}}@media(max-width:760px){.reports-grid{grid-template-columns:1fr}.reports-hero{grid-template-columns:1fr;text-align:left}.reports-hero-icon{width:48px;height:48px}.reports-hero h1{font-size:24px}.reports-hero-note{display:none}}

/* V0.19.0 — indicadores e gráficos nos relatórios */
.report-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 14px}.report-chart-grid.revenue-split{grid-template-columns:minmax(0,7fr) minmax(0,3fr)}.report-chart-card{background:#fff;border:1px solid #dce6ee;border-radius:13px;padding:12px 13px;box-shadow:0 4px 12px rgba(15,43,67,.035);min-width:0;break-inside:avoid}.report-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.report-chart-head strong{color:#163a55;font-size:12.5px}.report-chart-head small{color:#718396;font-size:9.5px;text-align:right}.report-chart-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px 10px;font-size:9px;color:#687b8d}.report-chart-legend span{display:flex;align-items:center;gap:4px}.report-chart-legend i{display:inline-block;width:8px;height:8px;border-radius:3px}.report-bars{display:grid;gap:7px}.report-bar-row{display:grid;grid-template-columns:minmax(90px,1.1fr) minmax(130px,2fr) auto;gap:8px;align-items:center}.report-bar-label{font-size:10px;color:#40566b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-bar-track,.report-mini-track{display:block;height:9px;border-radius:999px;background:#edf2f6;overflow:hidden}.report-bar-fill,.report-mini-track i{display:block;height:100%;border-radius:999px}.report-bar-value{font-size:10px;font-weight:700;color:#2b4255;white-space:nowrap;text-align:right}.tone-1{background:#2d78aa!important}.tone-2{background:#c94b45!important}.tone-3{background:#2f8a62!important}.tone-4{background:#d39a2d!important}.report-grouped-bars{display:grid;gap:7px}.report-group-row{display:grid;grid-template-columns:38px minmax(0,1fr);gap:8px;align-items:center}.report-group-label{font-size:9.5px;font-weight:700;color:#5a6f82}.report-group-series{display:grid;gap:3px}.report-group-series-row{display:grid;grid-template-columns:minmax(100px,1fr) 82px;gap:7px;align-items:center}.report-group-series-row strong{font-size:9px;text-align:right;white-space:nowrap;color:#46596b}.report-line-svg{width:100%;height:170px;display:block}.report-line-svg .axis{stroke:#dbe4eb;stroke-width:1.2}.report-line-svg .line{stroke:#246f9f;stroke-width:3;vector-effect:non-scaling-stroke}.report-line-svg .point{fill:#fff;stroke:#246f9f;stroke-width:2;vector-effect:non-scaling-stroke}.report-line-labels{display:flex;justify-content:space-between;gap:4px;margin-top:3px;color:#718396;font-size:8.5px}.report-chart-empty{min-height:135px}.report-chart-empty-copy{display:grid;place-items:center;min-height:90px;color:#8795a3;font-size:11px}.report-modal .summary-strip+.report-chart-grid{margin-top:-2px}
@media(max-width:820px){.report-chart-grid{grid-template-columns:1fr}.report-bar-row{grid-template-columns:minmax(80px,1fr) minmax(100px,1.8fr) auto}}
@media print{body.report-printing .report-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:0 0 8px!important}body.report-printing .report-chart-grid.revenue-split{grid-template-columns:minmax(0,7fr) minmax(0,3fr)!important}body.report-printing .report-chart-card{padding:7px 8px!important;border-radius:5px!important;box-shadow:none!important;break-inside:avoid!important}body.report-printing .report-chart-head{margin-bottom:5px!important}body.report-printing .report-chart-head strong{font-size:9px!important}body.report-printing .report-chart-head small,body.report-printing .report-chart-legend{font-size:7px!important}body.report-printing .report-bars,body.report-printing .report-grouped-bars{gap:3px!important}body.report-printing .report-bar-row{grid-template-columns:80px minmax(80px,1fr) 65px!important;gap:4px!important}body.report-printing .report-bar-label,body.report-printing .report-bar-value,body.report-printing .report-group-label,body.report-printing .report-group-series-row strong{font-size:7px!important}body.report-printing .report-bar-track,body.report-printing .report-mini-track{height:6px!important}body.report-printing .report-line-svg{height:105px!important}body.report-printing .report-line-labels{font-size:6px!important}}

/* V0.19.1 — padronização profissional dos gráficos e relatórios */
.report-vertical-svg{width:100%;height:225px;display:block;overflow:visible}.report-vertical-svg .grid{stroke:#e3ebf1;stroke-width:1}.report-vertical-svg .zero-axis{stroke:#9fb0be;stroke-width:1.2}.report-vertical-svg .axis-label{fill:#718396;font-size:10px}.report-vertical-svg .x-label{fill:#526a7d;font-size:9.5px;font-weight:700}.report-vertical-svg .value-label{fill:#31485a;font-size:9px;font-weight:700}.report-chart-card.report-vertical-card{padding-bottom:8px}.report-chart-legend .muted-legend{color:#8392a0;font-style:italic}.report-doc-head,.report-context-note,.summary-strip,.report-chart-card,.panel{page-break-inside:avoid}.report-modal .report-chart-card{border-color:#d7e3ec;box-shadow:0 5px 15px rgba(20,63,92,.04)}
@media(max-width:820px){.report-vertical-svg{height:205px}}
@media print{*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.report-vertical-svg{height:125px!important}.report-vertical-svg .axis-label,.report-vertical-svg .x-label,.report-vertical-svg .value-label{font-size:8px!important}.report-chart-card{background:#fff!important}.tone-1{background:#2d78aa!important}.tone-2{background:#c94b45!important}.tone-3{background:#2f8a62!important}.tone-4{background:#d39a2d!important}}


/* V0.19.4 — leitura CCMEI com progresso e conferência */
.doc-read-progress{border:1px solid #cfe0ec;background:#f8fbfd;border-radius:13px;padding:15px 16px}.doc-read-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.doc-read-head strong{display:block;font-size:15px;color:#123f5f}.doc-read-head small{display:block;color:var(--muted);margin-top:4px;line-height:1.4}.doc-read-head b{font-size:22px;color:var(--primary);font-variant-numeric:tabular-nums}.doc-read-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:11px}.ccmei-preview{margin-top:12px;border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden}.ccmei-preview-title{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;background:#f7fafc;border-bottom:1px solid var(--line)}.ccmei-preview-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid #edf1f5}.ccmei-preview-row:last-child{border-bottom:0}.ccmei-preview-row small{display:block;color:var(--muted);margin-bottom:3px}.ccmei-preview-row strong{display:block;color:#172033}.badge.ok{background:#e6f5ed;color:#167647}.badge.warn{background:#fff4d8;color:#946200}
@media(max-width:700px){.ccmei-preview-title,.ccmei-preview-row{align-items:flex-start;flex-direction:column}.doc-read-head{align-items:flex-start}.doc-read-meta{flex-direction:column}}

/* V0.19.9 — diagnóstico detalhado da leitura do CCMEI */
.ccmei-diagnostic{margin-top:12px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;padding:10px}
.ccmei-diagnostic-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:8px;font-size:12px;color:#334155}
.ccmei-diagnostic-log{max-height:190px;overflow:auto;border:1px solid #e2e8f0;background:#fff;border-radius:8px;padding:6px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px;line-height:1.45}
.ccmei-diag-row{display:grid;grid-template-columns:52px 120px 1fr;gap:7px;padding:3px 4px;border-bottom:1px solid #f1f5f9;align-items:start}
.ccmei-diag-row:last-child{border-bottom:0}.ccmei-diag-row span{color:#64748b}.ccmei-diag-row b{color:#0f4c75}.ccmei-diag-row em{font-style:normal;color:#334155;word-break:break-word}

/* V0.20.2 — modos de cadastro de MEI */
.new-mei-mode{position:relative}.new-mei-mode.is-recommended{border-color:#2b7da8;box-shadow:0 0 0 2px rgba(43,125,168,.10)}.new-mei-mode .mode-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;margin-bottom:8px;background:#eef2f6;color:#607084;font-size:10px;font-weight:700}.new-mei-mode .mode-badge.recommended{background:#e1f1f8;color:#0f5d84}.new-mei-mode.is-optional{opacity:.82}.new-mei-mode .helper{display:block;margin-top:7px;color:#607084}.new-mei-mode button{pointer-events:auto!important;cursor:pointer!important}.new-mei-mode button.primary{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important}

/* V0.20.4 — seletor nativo de CCMEI, sem dependência de onclick */
.native-file-hidden{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}.native-file-trigger{display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;user-select:none!important}

/* V0.20.8 — quatro formas de cadastro em grade 2x2. */
.new-mei-modes{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){.new-mei-modes{grid-template-columns:1fr}}

/* V0.21.4 — Refinamento visual global: contornos, relevo e padronização */
:root{
  --bg:#f3f6fa;
  --line:#d6dee8;
  --line-strong:#c4cfdd;
  --line-soft:#e7edf4;
  --shadow:0 10px 26px rgba(18,43,67,.065);
  --shadow-soft:0 4px 14px rgba(18,43,67,.045);
}
body{background:linear-gradient(180deg,#f4f7fb 0%,#f2f5f9 100%);color:#162338}
.topbar{
  border-bottom:1px solid var(--line-strong);
  box-shadow:0 2px 10px rgba(15,32,54,.035);
}
.content{padding-top:26px}
.btn,.icon-btn,.global-search-wrap,.input,.select,.textarea,.reports-period-value,.reports-select-wrap,.reports-scope-card,.reports-period-card{
  border-color:var(--line-strong);
}
.btn,.icon-btn{
  box-shadow:var(--shadow-soft);
}
.btn.primary{
  box-shadow:0 8px 18px rgba(23,79,125,.18);
}
.global-search-wrap{
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9), var(--shadow-soft);
}
.input,.select,.textarea{
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92), 0 1px 2px rgba(14,30,50,.025);
}
.input:hover,.select:hover,.textarea:hover{border-color:#b5c4d6}
.input:focus,.select:focus,.textarea:focus,.reports-scope-select:focus+.reports-select-wrap{
  border-color:#6f98ba;
  box-shadow:0 0 0 3px rgba(23,79,125,.11), inset 0 1px 0 rgba(255,255,255,.9);
}
.kpi,.panel,.mei-header,.summary-strip,.modal,.report-doc-head,.report-chart-card,.report-launch-card,.reports-context,.reports-hero,.reports-scope-card,.reports-period-card,.accounting-context,.report-filter-panel,.dropzone,.callout{
  border-color:var(--line-strong)!important;
  box-shadow:var(--shadow);
}
.kpi,.panel,.mei-header,.reports-context,.reports-hero,.report-launch-card,.report-chart-card,.report-doc-head,.accounting-context,.report-filter-panel{
  position:relative;
  overflow:hidden;
}
.kpi::before,.panel::before,.mei-header::before,.reports-context::before,.report-filter-panel::before,.accounting-context::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:1px;
  background:linear-gradient(90deg,rgba(255,255,255,.9),rgba(255,255,255,.2));
  pointer-events:none;
}
.kpi{
  background:linear-gradient(180deg,#fff 0%,#fcfdff 100%);
}
.kpi .label,.panel-head h2,.panel-head h3,.section-head h2,.section-head h3{letter-spacing:.01em}
.panel-head{
  background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);
  border-bottom:1px solid var(--line-strong);
}
.panel-body{background:linear-gradient(180deg,#fff 0%,#fdfefe 100%)}
.filter-panel .panel-body,.reports-context,.report-filter-panel,.accounting-context .panel-body{
  background:linear-gradient(180deg,#fbfdff 0%,#f7fafe 100%);
}
.filter-head,.report-filter-head,.reports-context-head{
  padding-bottom:10px;
  border-bottom:1px solid #dde6ef;
}
.summary-strip{
  background:linear-gradient(180deg,#fbfdff 0%,#f7fafc 100%);
}
.summary-item{border-right:1px solid var(--line-strong)}
.table-wrap{
  border:1px solid var(--line-soft);
  border-radius:12px;
  background:#fff;
}
.panel.tight .table-wrap{border:0;border-radius:0}
.table th{
  background:#f4f8fb;
  color:#5d6b7b;
  border-bottom:1px solid var(--line-strong);
}
.table td{border-bottom:1px solid #e3e9f0}
.table tbody tr:hover{background:#f7fbfe}
.table tbody tr:nth-child(even):not(:hover) td{background:rgba(248,250,252,.45)}
.tabs{border-bottom:1px solid var(--line-strong)}
.tab{
  border-bottom-width:3px;
  color:#5f6f81;
}
.tab.active{color:var(--primary);font-weight:700}
.badge{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);
}
.callout.info{background:linear-gradient(180deg,#edf6fc,#e8f2fa)}
.callout.warn{background:linear-gradient(180deg,#fff8e3,#fff3d0)}
.callout.danger{background:linear-gradient(180deg,#fff1f1,#fde8e8)}
.report-launch-card,.report-chart-card,.reports-scope-card,.reports-period-card,.report-doc-head{
  background:linear-gradient(180deg,#fff 0%,#fcfdff 100%);
}
.report-launch-card:hover{
  box-shadow:0 14px 32px rgba(15,43,67,.11);
  border-color:#bdd0df;
}
.dropzone{border-color:#cfd8e3;background:linear-gradient(180deg,#fbfdff,#f7faff)}
.modal-head,.modal-foot{
  border-color:var(--line-strong);
  background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);
}
.mei-header{
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
}
.reports-select-wrap,.reports-period-value{
  box-shadow:0 1px 0 rgba(255,255,255,.9), 0 2px 8px rgba(20,63,92,.04);
}
.report-card-tag,.badge.gray{
  border:1px solid rgba(116,135,154,.18);
}
.nav-btn{border:1px solid transparent}
.nav-btn:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.08)}
.nav-btn.active{
  background:#fff;
  color:#153f5f;
  border-color:#d9e4ed;
  box-shadow:0 8px 18px rgba(6,24,40,.13);
}
.risk-line,.list-item{border-bottom:1px solid #e4ebf2}
.kpi-grid,.grid-2,.grid-3,.reports-grid{gap:16px}
@media (max-width:800px){
  .topbar{box-shadow:none}
  .table-wrap{border-radius:10px}
}

/* V0.21.5 — Central de Obrigações */
.obligation-kpis .kpi{min-height:108px}
.obligation-toolbar{display:grid;grid-template-columns:180px 180px minmax(280px,1fr);gap:12px;align-items:end;margin:0 0 16px;padding:13px 14px;border:1px solid var(--line-strong);border-radius:13px;background:linear-gradient(180deg,#fbfdff,#f7fafc);box-shadow:var(--shadow-soft)}
.obligation-toolbar .field{min-width:0}.obligation-toolbar-note{display:flex;flex-direction:column;justify-content:center;min-height:38px;padding:0 4px;color:#5c6f82}.obligation-toolbar-note strong{font-size:11px;color:#244963}.obligation-toolbar-note span{font-size:11px;margin-top:3px}
.obligation-calendar-panel,.obligation-annual-panel{margin-bottom:16px}.obligation-calendar-panel .panel-head{align-items:flex-start}.obligation-calendar td small{display:block;color:var(--muted);margin-top:2px}.obligation-muted{opacity:.58}.obligation-muted:hover{background:transparent!important}
.obligation-annual-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;align-items:center;padding:14px 15px;border:1px solid var(--line-strong);border-radius:13px;background:linear-gradient(180deg,#fff,#f9fbfd)}.obligation-annual-card h3{margin:3px 0 4px;font-size:16px}.obligation-annual-card p{margin:0;color:var(--muted);font-size:12px}.obligation-card-kicker{font-size:9px;font-weight:800;letter-spacing:.08em;color:#44728f;background:#eaf4fb;border:1px solid #d4e6f2;border-radius:999px;padding:3px 7px}.obligation-card-meta{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.obligation-card-meta>span:not(.badge){display:flex;flex-direction:column;gap:2px;font-size:10px;color:var(--muted)}.obligation-card-meta strong{font-size:12px;color:#20384d}
@media(max-width:900px){.obligation-toolbar{grid-template-columns:1fr 1fr}.obligation-toolbar-note{grid-column:1/-1}.obligation-annual-card{grid-template-columns:1fr}.obligation-card-meta{justify-content:flex-start}}

/* V0.21.6 — Certificado A1 por MEI */
.certificate-panel{border-left:4px solid #1c6d9b!important}
.certificate-panel .panel-head{background:linear-gradient(180deg,#f8fcff 0%,#f4f9fd 100%)}
.certificate-panel .detail-grid .wide{grid-column:1/-1}


/* V0.21.7 — identidade digital, procurações e certificado institucional */
.official-access-panel{border-left:4px solid #2f79ad!important}
.access-mode-box{margin-top:14px;padding:14px;border:1px solid var(--line-strong);border-radius:12px;background:#fbfdff}
.access-service-row{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid #e5ebf2;cursor:pointer}
.access-service-row:last-child{border-bottom:0}.access-service-row input{margin-top:3px}.access-service-row strong{display:block}.access-service-row small{display:block;color:var(--muted);margin-top:3px;line-height:1.35}

/* V0.21.8 — resumo operacional do certificado institucional */
.integration-card .section-head{margin-bottom:12px}
.integration-cert-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 14px;padding:10px;border:1px solid var(--line-strong,#c4cfdd);border-radius:10px;background:#f8fbfd}
.integration-cert-summary>div{min-width:0;padding:2px 4px}
.integration-cert-summary>div.wide{grid-column:1/-1}
.integration-cert-summary small{display:block;color:var(--muted);font-size:10.5px;margin-bottom:3px}
.integration-cert-summary strong{display:block;font-size:12px;color:#173b55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* V0.21.9 — certificado A1: validação real e indicador de saúde */
.cert-ok-text{color:#18794e!important;font-weight:800}.cert-warn-text{color:#9a6700!important;font-weight:800}
.callout.ok{background:#edf8f2;border-color:#b8dfc9;color:#17603f}
.integration-cert-summary strong.cert-ok-text::first-letter{font-size:13px}

/* V0.21.30 — Motor de Credenciais em tela dedicada */
.credential-page-head{align-items:flex-start;margin-bottom:14px}.credential-page-head h1{margin:14px 0 4px;font-size:26px}.credential-kpis{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:12px;margin:14px 0}.credential-kpis .kpi{min-height:92px}.credential-filter-panel{margin:14px 0}.credential-filter-grid{display:grid;grid-template-columns:minmax(260px,2fr) minmax(180px,1fr) minmax(180px,1fr) auto;gap:12px;align-items:end}.credential-filter-action{min-width:120px}.credential-table-panel{margin-top:14px;overflow:hidden}.credential-table-scroll{max-height:calc(100vh - 430px);min-height:320px;overflow:auto}.credential-table{min-width:1050px}.credential-table thead th{position:sticky;top:0;z-index:2;background:var(--panel,#fff);box-shadow:0 1px 0 rgba(15,39,64,.12)}.credential-table td:first-child{min-width:230px}.credential-table td:nth-child(2){min-width:180px}.credential-table td:nth-child(6){min-width:190px}.credential-table td:last-child{min-width:150px}.credential-table td small{display:block;margin-top:3px}.credential-table tbody tr:hover{background:rgba(20,88,130,.035)}
@media(max-width:1180px){.credential-kpis{grid-template-columns:repeat(3,1fr)}.credential-filter-grid{grid-template-columns:1fr 1fr}.credential-table-scroll{max-height:calc(100vh - 500px)}}

/* V0.21.30 — Motor de Credenciais em tela dedicada */
.credential-page-head{align-items:flex-start;margin-bottom:14px}.credential-page-head h1{margin:14px 0 4px;font-size:26px}.credential-kpis{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:12px;margin:14px 0}.credential-kpis .kpi{min-height:92px}.credential-filter-panel{margin:14px 0}.credential-filter-grid{display:grid;grid-template-columns:minmax(260px,2fr) minmax(180px,1fr) minmax(180px,1fr) auto;gap:12px;align-items:end}.credential-filter-action{min-width:120px}.credential-table-panel{margin-top:14px;overflow:hidden}.credential-table-scroll{max-height:calc(100vh - 430px);min-height:320px;overflow:auto}.credential-table{min-width:1050px}.credential-table thead th{position:sticky;top:0;z-index:2;background:#fff;box-shadow:0 1px 0 rgba(15,39,64,.12)}.credential-table td:first-child{min-width:230px}.credential-table td:nth-child(2){min-width:180px}.credential-table td:nth-child(6){min-width:190px}.credential-table td:last-child{min-width:150px}.credential-table td small{display:block;margin-top:3px}.credential-table tbody tr:hover{background:rgba(20,88,130,.035)}
@media(max-width:1180px){.credential-kpis{grid-template-columns:repeat(3,1fr)}.credential-filter-grid{grid-template-columns:1fr 1fr}.credential-table-scroll{max-height:calc(100vh - 500px)}}

/* V0.21.39 — Obrigações / sessão Receita / conciliação PGMEI */
.receita-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.receita-step{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:10px;padding:9px 10px;background:#fff;min-width:0}.receita-step>span{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#eef3f8;color:#52657a;font-weight:800;flex:0 0 auto}.receita-step strong,.receita-step small{display:block}.receita-step small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.receita-step.done{border-color:#b8ddca;background:#f4fbf7}.receita-step.done>span{background:#dff4e8;color:#08783d}.pgmei-wizard{display:grid;gap:10px}.pgmei-wizard-step{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid var(--border);border-radius:12px;padding:12px;background:#fff}.pgmei-wizard-step>span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e9f2fb;color:var(--primary);font-weight:800}.pgmei-wizard-step p{margin:3px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.pgmei-official-panel .detail-grid strong{word-break:break-word}.obligation-calendar th:nth-child(5),.obligation-calendar td:nth-child(5){min-width:150px}.obligation-calendar th:nth-child(6),.obligation-calendar td:nth-child(6){min-width:130px}.obligation-calendar .badge+small{margin-top:4px}.obligation-annual-card .obligation-card-meta{flex-wrap:wrap}.cert-ok-text{color:#08783d}.badge.gray{background:#eef1f4;color:#536273}.badge.yellow{background:#fff3cd;color:#795b00}.badge.green{background:#dff4e8;color:#08783d}.badge.red{background:#fde4e4;color:#9f1d1d}.badge.blue{background:#e7f2fb;color:#175f91}
@media(max-width:1050px){.receita-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.pgmei-wizard-step{grid-template-columns:32px minmax(0,1fr)}.pgmei-wizard-step .btn{grid-column:2;justify-self:start}}
/* V0.21.61 — calendário DAS ampliado com conciliação de pagamento */
.obligation-calendar{min-width:1460px}.obligation-calendar th:nth-child(7),.obligation-calendar td:nth-child(7){min-width:125px}.obligation-calendar th:nth-child(8),.obligation-calendar td:nth-child(8){min-width:118px}.obligation-calendar th:nth-child(9),.obligation-calendar td:nth-child(9){min-width:145px}

/* V0.21.93 — homologação SERPRO: modal amplo para leitura integral do retorno */
.integra-payment-modal{width:min(1280px,96vw)!important;max-height:94vh!important}
.integra-payment-modal .modal-body{padding:18px 20px}
.integra-payment-modal .table-wrap{max-width:100%;border:1px solid var(--line);border-radius:10px}
.integra-payment-modal .table{min-width:1080px}
.integra-payment-modal .table th{position:sticky;top:0;background:#f8fafc;z-index:1}
@media(max-width:760px){.integra-payment-modal{width:98vw!important}.integra-payment-modal .modal-body{padding:12px}.integra-payment-modal .table{min-width:980px}}

/* V0.21.93 — fechamento do módulo Obrigações */
.obligation-row-actions{display:flex;gap:6px;flex-wrap:nowrap;white-space:nowrap}
.obligation-calendar th:last-child,.obligation-calendar td:last-child{min-width:250px}
.obligation-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.obligation-service-card{border:1px solid var(--line,#d7e0ea);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px;background:var(--surface,#fff)}
.obligation-service-card>span{font-size:12px;color:var(--muted,#617083);line-height:1.4}
.obligation-service-card .btn{align-self:flex-start}.obligation-service-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.obligation-service-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:4px}
@media(max-width:1000px){.obligation-service-grid{grid-template-columns:1fr}.obligation-row-actions{flex-wrap:wrap}.obligation-calendar th:last-child,.obligation-calendar td:last-child{min-width:180px}}

/* V0.21.94 — grade de Obrigações mais compacta e conta editável */
.obligation-calendar{min-width:1320px!important;table-layout:auto}
.obligation-calendar th,.obligation-calendar td{padding-left:8px!important;padding-right:8px!important}
.obligation-calendar th:nth-child(1),.obligation-calendar td:nth-child(1){min-width:78px;width:78px}
.obligation-calendar th:nth-child(2),.obligation-calendar td:nth-child(2){min-width:92px;width:92px}
.obligation-calendar th:nth-child(3),.obligation-calendar td:nth-child(3),
.obligation-calendar th:nth-child(4),.obligation-calendar td:nth-child(4),
.obligation-calendar th:nth-child(5),.obligation-calendar td:nth-child(5),
.obligation-calendar th:nth-child(6),.obligation-calendar td:nth-child(6),
.obligation-calendar th:nth-child(7),.obligation-calendar td:nth-child(7){min-width:82px!important;width:82px!important}
.obligation-calendar th:nth-child(8),.obligation-calendar td:nth-child(8){min-width:102px!important;width:102px!important}
.obligation-calendar th:nth-child(9),.obligation-calendar td:nth-child(9){min-width:138px!important;width:138px!important}
.obligation-calendar th:nth-child(10),.obligation-calendar td:nth-child(10){min-width:118px;width:118px}
.obligation-calendar th:nth-child(11),.obligation-calendar td:nth-child(11){min-width:108px;width:108px}
.obligation-calendar th:nth-child(12),.obligation-calendar td:nth-child(12){min-width:136px;width:136px}
.obligation-calendar th:nth-child(13),.obligation-calendar td:nth-child(13){min-width:116px;width:116px}
.obligation-calendar th:nth-child(14),.obligation-calendar td:nth-child(14),.obligation-calendar th:last-child,.obligation-calendar td:last-child{min-width:110px!important;width:110px}
.obligation-guide-col{white-space:nowrap}.obligation-guide-col .btn{white-space:nowrap}.obligation-guide-col small{display:block;margin-top:4px;white-space:normal}.obligation-calendar th.center,.obligation-calendar td.center{text-align:center!important}
.obligation-account-select{min-width:124px!important;width:100%;min-height:32px!important;height:32px;padding:4px 26px 4px 7px!important;font-size:11px;border-radius:7px}

/* V0.22.06 — DASN-SIMEI e serviços complementares */
.obligation-annual-card{grid-template-columns:minmax(250px,.85fr) minmax(420px,1.6fr) minmax(190px,.55fr);gap:16px}
.obligation-annual-main{min-width:0}.obligation-annual-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.dasn-consult-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.dasn-consult-summary>div,.dasn-result-card>div{border:1px solid var(--border);border-radius:10px;background:#fff;padding:10px 12px}.dasn-consult-summary small,.dasn-result-card small{display:block;color:var(--muted);margin-bottom:3px}.dasn-consult-summary strong,.dasn-result-card strong{display:block;word-break:break-word}.dasn-consult-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dasn-consult-step{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid var(--border);border-radius:12px;padding:12px;background:#fff}.dasn-consult-step>span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eef3f8;color:#52657a;font-weight:800}.dasn-consult-step p{margin:3px 0 0;color:var(--muted);font-size:12px;line-height:1.4}.dasn-consult-step.current{border-color:#a9cde6;background:#f7fbfe}.dasn-consult-step.current>span{background:#e7f2fb;color:#175f91}.dasn-consult-step.done{border-color:#b8ddca;background:#f4fbf7}.dasn-consult-step.done>span{background:#dff4e8;color:#08783d}.dasn-result-card{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
@media(max-width:1100px){.obligation-annual-card{grid-template-columns:1fr}.obligation-annual-actions{justify-content:flex-start}.dasn-consult-summary,.dasn-result-card{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.obligation-service-grid,.dasn-consult-steps,.dasn-consult-summary,.dasn-result-card{grid-template-columns:1fr}.dasn-consult-step{grid-template-columns:34px minmax(0,1fr)}.dasn-consult-step .badge{grid-column:2;justify-self:start}}


/* V0.22.09 — janelas modais mais amplas, redimensionáveis e legíveis */
.modal-backdrop{padding:12px}
.modal{
  width:min(1080px,calc(100vw - 32px));
  max-width:calc(100vw - 24px);
  max-height:94vh;
  min-height:220px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  resize:both;
}
.modal-head{flex:0 0 auto;padding:16px 20px;align-items:flex-start}
.modal-head h2{font-size:19px;line-height:1.28;min-width:0;overflow-wrap:anywhere;padding-top:3px}
.modal-window-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.modal-expand-btn{font-size:19px;line-height:1;font-weight:700}
.modal-body{flex:1 1 auto;min-height:0;overflow:auto;padding:20px}
.modal-foot{flex:0 0 auto;padding:14px 20px;background:#fff}
.modal.maximized{
  width:calc(100vw - 24px)!important;
  height:calc(100vh - 24px)!important;
  max-width:none!important;
  max-height:none!important;
  resize:none;
  border-radius:12px;
}
/* Diagnósticos e assistentes técnicos: cartões fluem conforme o espaço disponível. */
.receita-steps{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px}
.receita-step{align-items:flex-start;padding:11px 12px}
.receita-step small{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.4;margin-top:3px}
.dasn-consult-steps{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:12px}
.dasn-consult-step{padding:14px}
.dasn-consult-summary,.dasn-result-card{gap:12px}
@media(max-width:760px){
  .modal-backdrop{padding:6px;align-items:stretch}
  .modal{width:100%;max-width:100%;max-height:calc(100vh - 12px);min-height:0;resize:none;border-radius:12px}
  .modal.maximized{width:100%!important;height:calc(100vh - 12px)!important}
  .modal-head,.modal-body,.modal-foot{padding-left:14px;padding-right:14px}
  .modal-expand-btn{display:none}
  .receita-steps,.dasn-consult-steps{grid-template-columns:1fr}
}

/* V0.22.11 — Obrigações: conta confirmável e diagnóstico fora do fluxo principal */
.obligation-account-confirmed{display:flex;align-items:center;gap:7px;min-width:150px;white-space:nowrap}
.obligation-account-check{width:22px;height:22px;border-radius:50%;display:inline-grid;place-items:center;background:#dff4e8;color:#08783d;font-weight:900;flex:0 0 22px}
.obligation-account-name{font-weight:700;overflow:hidden;text-overflow:ellipsis;max-width:115px}
.obligation-account-edit{margin-left:auto}
.obligation-account-state{display:block;color:#08783d;margin-top:3px;font-size:10px}
.obligation-account-editor{display:grid;grid-template-columns:minmax(118px,1fr) auto;gap:6px;align-items:center;min-width:205px}
.obligation-account-editor .obligation-account-select{grid-column:1/2}
.obligation-account-editor .obligation-account-confirm{grid-column:2/3}
.obligation-account-editor [data-cancel-obligation-account]{grid-column:2/3}
.obligation-account-editor small{grid-column:1/-1;color:var(--muted);font-size:10px;line-height:1.25}
.obligation-payment-panel .detail-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.obligation-technical-tools>summary{list-style:none}.obligation-technical-tools>summary::-webkit-details-marker{display:none}
.obligation-technical-tools>summary:before{content:'▸';display:inline-block;margin-right:7px;transition:transform .15s ease}.obligation-technical-tools[open]>summary:before{transform:rotate(90deg)}
@media(max-width:900px){.obligation-payment-panel .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V0.22.20 — refinamento do Relatório Mensal de Obrigações */
.obligation-client-report .report-chart-grid{margin-bottom:8px}
.obligation-client-report .report-vertical-svg{height:172px}
.obligation-financial-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 10px}
.obligation-financial-card{background:#fff;border:1px solid #dce6ee;border-radius:11px;padding:8px 10px;min-width:0;break-inside:avoid}
.obligation-financial-card small{display:block;color:#708294;font-size:9.5px;margin-bottom:3px;line-height:1.15}
.obligation-financial-card strong{display:block;color:#173b55;font-size:14px;line-height:1.08}
.obligation-delivery-note{margin-top:10px!important;margin-bottom:8px!important}
.obligation-client-note{margin-top:8px!important}
@media(max-width:720px){.obligation-financial-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.obligation-client-report .report-vertical-svg{height:155px}}
@media print{
  body.report-printing .obligation-client-report .report-chart-grid{gap:5px!important;margin:0 0 5px!important}
  body.report-printing .obligation-client-report .report-chart-card{padding:4px 6px!important}
  body.report-printing .obligation-client-report .report-chart-head{margin-bottom:2px!important}
  body.report-printing .obligation-client-report .report-vertical-svg{height:84px!important}
  body.report-printing .obligation-financial-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;margin:0 0 6px!important;break-inside:avoid!important}
  body.report-printing .obligation-financial-card{border-radius:5px!important;padding:5px 6px!important}
  body.report-printing .obligation-financial-card small{font-size:6.7px!important;margin-bottom:2px!important;line-height:1.1!important}
  body.report-printing .obligation-financial-card strong{font-size:9.6px!important;line-height:1.05!important}
  body.report-printing .obligation-client-report .panel{margin-bottom:5px!important}
  body.report-printing .obligation-client-report .table th{padding:3px 4px!important;font-size:6.8px!important}
  body.report-printing .obligation-client-report .table td{padding:3px 4px!important;font-size:7.2px!important;line-height:1.1!important}
  body.report-printing .obligation-client-report .badge{font-size:6.3px!important;padding:2px 4px!important}
  body.report-printing .obligation-delivery-note{margin-top:6px!important;margin-bottom:5px!important;padding:5px 7px!important;font-size:7.6px!important;line-height:1.18!important}
  body.report-printing .obligation-client-note{margin-top:5px!important;padding:5px 7px!important;font-size:7.6px!important;line-height:1.18!important}
}


/* V0.22.21 — relatório de obrigações: competência do DAS e legibilidade */
.obligation-payment-table-report .panel{margin-top:12px}
.obligation-payment-table-report .table th{font-size:10.5px;padding:7px 7px}
.obligation-payment-table-report .table td{font-size:11px;padding:7px 7px;line-height:1.28}
.obligation-payment-table-report .badge{font-size:9px;padding:3px 6px}
@media print{
  body.report-printing .obligation-payment-table-report .panel{margin-top:8px!important;margin-bottom:7px!important}
  body.report-printing .obligation-payment-table-report .panel-head{padding:7px 8px!important}
  body.report-printing .obligation-payment-table-report .panel-head h3{font-size:11.5px!important}
  body.report-printing .obligation-payment-table-report .table th{font-size:7.8px!important;padding:4px 4px!important;line-height:1.15!important}
  body.report-printing .obligation-payment-table-report .table td{font-size:8.3px!important;padding:4px 4px!important;line-height:1.18!important}
  body.report-printing .obligation-payment-table-report .badge{font-size:6.8px!important;padding:2px 4px!important}
}


/* V0.22.28 — bloco de assinatura do responsável técnico nos demonstrativos contábeis */
.accounting-signature-block{width:min(360px,70%);margin:54px auto 10px;text-align:center;color:#1f3447;break-inside:avoid;page-break-inside:avoid}
.accounting-signature-space{height:22px}
.accounting-signature-line{border-top:1px solid #516273;margin:0 0 7px}
.accounting-signature-name{font-size:12px;font-weight:800;line-height:1.25}
.accounting-signature-crc{font-size:10px;color:#637487;margin-top:3px}
@media print{body.report-printing .accounting-signature-block{width:58%!important;margin:36px auto 4px!important;break-inside:avoid!important;page-break-inside:avoid!important}body.report-printing .accounting-signature-space{height:18px!important}body.report-printing .accounting-signature-line{border-top:1px solid #334155!important;margin-bottom:5px!important}body.report-printing .accounting-signature-name{font-size:10px!important}body.report-printing .accounting-signature-crc{font-size:8px!important}}


/* V0.22.53 — Balanço Contábil: cabeçalho técnico com melhor hierarquia e respiro */
.accounting-report-brand{
  align-items:flex-start;
  gap:14px;
  padding-bottom:13px;
}
.accounting-brand-copy{
  flex:1;
  min-width:0;
}
.accounting-brand-copy>strong{
  font-size:13px;
  line-height:1.3;
}
.accounting-brand-copy>small{
  margin-top:2px;
}
.accounting-header-tech{
  display:grid;
  grid-template-columns:minmax(220px,1.55fr) minmax(130px,.8fr) minmax(130px,.8fr);
  gap:10px 18px;
  margin-top:10px;
  padding-top:9px;
  border-top:1px solid #e8edf3;
}
.accounting-tech-item{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.accounting-tech-item small{
  margin:0;
  color:#6b7485;
  font-size:9px;
  line-height:1.2;
}
.accounting-tech-item strong{
  color:#0d2940;
  font-size:10.5px;
  line-height:1.3;
  font-weight:700;
  overflow-wrap:anywhere;
}
@media(max-width:760px){
  .accounting-header-tech{grid-template-columns:1fr 1fr}
  .accounting-tech-item:first-child{grid-column:1/-1}
}
@media print{
  .accounting-report-brand{gap:10px!important;padding-bottom:7px!important}
  .accounting-header-tech{
    grid-template-columns:minmax(180px,1.6fr) minmax(105px,.7fr) minmax(105px,.7fr)!important;
    gap:6px 12px!important;
    margin-top:6px!important;
    padding-top:6px!important;
  }
  .accounting-tech-item small{font-size:7.5px!important}
  .accounting-tech-item strong{font-size:8.5px!important;line-height:1.22!important}
}

/* V0.22.53 — DRE contábil com estrutura mais profissional e assinatura */
.dre-origin-note{margin:8px 0 10px;color:#5f6b7a}.dre-origin-note small{font-size:12px}body.report-printing .dre-origin-note small{font-size:9px!important}


/* V0.22.53 — relatórios contábeis e gerenciais com cabeçalhos padronizados */
.report-brand{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding-bottom:14px;border-bottom:1px solid #e8edf3}
.report-brand-main{display:flex;align-items:center;gap:12px;min-width:0}
.report-brand-right{margin-left:auto;display:flex;align-items:flex-start;justify-content:flex-end}
.report-brand-right span{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;background:#edf4fb;color:#234864;font-size:11px;font-weight:700;letter-spacing:.01em;white-space:nowrap}
.report-title-block{padding-top:14px}
.report-title-block h1{font-size:21px;margin:0 0 12px;color:#0b2035}
.report-meta-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.report-meta-card{border:1px solid #d9e5ef;border-radius:10px;background:#fbfdff;padding:10px 12px;min-width:0}
.report-meta-card small{display:block;font-size:10px;color:#6a7b8d;margin-bottom:4px;line-height:1.2}
.report-meta-card strong{display:block;font-size:12px;line-height:1.35;color:#0f2940;overflow-wrap:anywhere}
.accounting-header-tech{display:grid;gap:12px 16px;margin-top:12px;padding:12px 14px;border:1px solid #d9e5ef;border-radius:12px;background:#f8fbfe}
.accounting-header-tech.with-position{grid-template-columns:minmax(230px,1.7fr) minmax(120px,.85fr) minmax(190px,1.2fr) minmax(120px,.9fr)}
.accounting-header-tech.without-position{grid-template-columns:minmax(230px,1.7fr) minmax(120px,.85fr) minmax(220px,1.35fr)}
.accounting-tech-item{display:flex;flex-direction:column;gap:3px;min-width:0}
.accounting-tech-item small{margin:0;color:#6b7485;font-size:10px;line-height:1.2}
.accounting-tech-item strong{color:#0d2940;font-size:12px;line-height:1.35;font-weight:700;overflow-wrap:anywhere}
.accounting-signature-name{font-size:12.5px;font-weight:800;line-height:1.25}
.accounting-signature-crc{font-size:10.5px;color:#637487;margin-top:3px}
@media(max-width:900px){.report-meta-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-header-tech.with-position,.accounting-header-tech.without-position{grid-template-columns:1fr 1fr}.accounting-tech-responsible{grid-column:1/-1}}
@media print{body.report-printing .report-brand-right span{font-size:8px!important;padding:3px 8px!important}body.report-printing .report-meta-cards{gap:6px!important}body.report-printing .report-meta-card{padding:7px 8px!important;border-radius:8px!important}body.report-printing .report-meta-card small{font-size:7.5px!important;margin-bottom:2px!important}body.report-printing .report-meta-card strong{font-size:9px!important;line-height:1.2!important}body.report-printing .accounting-header-tech{margin-top:8px!important;padding:8px 9px!important;gap:8px 10px!important;border-radius:9px!important}body.report-printing .accounting-header-tech.with-position{grid-template-columns:minmax(150px,1.55fr) minmax(90px,.7fr) minmax(130px,1fr) minmax(90px,.75fr)!important}body.report-printing .accounting-header-tech.without-position{grid-template-columns:minmax(150px,1.55fr) minmax(90px,.7fr) minmax(150px,1fr)!important}body.report-printing .accounting-tech-item small{font-size:7.2px!important}body.report-printing .accounting-tech-item strong{font-size:8.8px!important;line-height:1.2!important}body.report-printing .accounting-signature-name{font-size:10px!important}body.report-printing .accounting-signature-crc{font-size:8px!important}}

/* V0.22.53 — NFS-e ADN: notas fora do período continuam visíveis para preservar sequência NSU */
.nfse-out-period{opacity:.58;background:#fafafa}.nfse-out-period td{background:#fafafa!important}

/* V0.22.53 — conferência NFS-e ampla, redimensionável e com CNAE sempre editável */
.modal.nfse-import-review-modal{
  width:min(1500px,calc(100vw - 24px));
  height:min(88vh,920px);
  max-width:calc(100vw - 24px);
  max-height:94vh;
  min-width:min(980px,calc(100vw - 24px));
}
.nfse-import-review-modal .modal-body{padding:16px 18px}
.nfse-review-panel .table-wrap{overflow:auto}
.nfse-review-table{min-width:1280px}
.nfse-review-table th:nth-child(6),.nfse-review-table td:nth-child(6){min-width:360px}
.nfse-review-table th:nth-child(4),.nfse-review-table td:nth-child(4){min-width:250px}
.nfse-review-table th:nth-child(8),.nfse-review-table td:nth-child(8){min-width:210px}
.nfse-activity-select{min-width:340px;width:100%}
.nfse-review-actions{position:sticky;top:-16px;z-index:4;background:#f6f8fb;padding:8px 0}
@media(max-width:1000px){
  .modal.nfse-import-review-modal{min-width:0;width:calc(100vw - 12px);height:calc(100vh - 12px);max-width:none;max-height:none}
}

/* V0.22.53 — visualização formatada da NFS-e */
.modal.nfse-document-modal{
  width:min(1180px,calc(100vw - 28px));
  max-width:calc(100vw - 28px);
  height:min(90vh,920px);
  max-height:94vh;
}
.nfse-document-view{display:flex;flex-direction:column;gap:0}
.nfse-view-head{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;border-bottom:2px solid #1b5278;padding-bottom:14px;margin-bottom:14px}
.nfse-view-brand{font-size:27px;line-height:1;font-weight:800;color:#164969;letter-spacing:.02em}
.nfse-view-head h2{margin:5px 0 3px;font-size:22px}
.nfse-view-head p{margin:0;color:var(--muted)}
.nfse-view-status{font-size:13px;padding:7px 12px}
.nfse-view-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.nfse-view-summary>div,.nfse-view-grid>div,.nfse-value-grid>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.nfse-view-summary>div{border:1px solid var(--border);border-radius:10px;padding:11px;background:#f8fafc}
.nfse-view-summary small,.nfse-view-grid small,.nfse-value-grid small,.nfse-view-key small{color:var(--muted)}
.nfse-view-key{border:1px solid var(--border);border-radius:10px;padding:11px 13px;background:#fbfcfe}
.nfse-view-key strong{display:block;margin-top:4px;word-break:break-all;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}
.nfse-view-card{border:1px solid var(--border);border-radius:12px;padding:14px;margin-top:12px;background:#fff}
.nfse-view-card h3{margin:0 0 11px;font-size:15px;color:#153b57}
.nfse-view-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 18px}
.nfse-value-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px 18px}
.nfse-view-grid .wide{grid-column:1/-1}
.nfse-view-description{white-space:pre-wrap;line-height:1.5;border:1px solid #e5eaf0;border-radius:8px;padding:10px;background:#fafbfc;max-height:180px;overflow:auto}
.nfse-view-note{margin-top:12px}
@media(max-width:760px){
  .modal.nfse-document-modal{width:calc(100vw - 12px);max-width:none}
  .nfse-view-summary,.nfse-value-grid,.nfse-view-grid{grid-template-columns:1fr}
  .nfse-view-grid .wide{grid-column:auto}
  .nfse-view-head{flex-direction:column}
}

/* V0.22.53 — ajustes pontuais: visualização NFS-e e capital social na carteira contábil */
.nfse-document-view .nfse-code-field{
  min-width:0;
}
.nfse-document-view .nfse-code-field strong{
  display:block;
  overflow-wrap:anywhere;
  word-break:break-word;
  white-space:normal;
}
.nfse-document-view .nfse-view-grid > div{
  min-width:0;
}
.accounting-capital-missing{
  display:inline-block;
  font-weight:700;
  color:#b42318;
  white-space:nowrap;
}

/* V0.22.53 — Obrigações separadas por natureza */
.obligation-section-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:18px 0 12px;
  padding:15px 17px;
  border:1px solid var(--line-strong);
  border-radius:14px;
  background:#fff;
}
.obligation-section-header>div:first-child{min-width:0}
.obligation-section-header h2{margin:3px 0 4px;font-size:17px;color:#173b56}
.obligation-section-header p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.obligation-section-kicker{
  display:inline-block;
  font-size:9px;
  font-weight:800;
  letter-spacing:.09em;
  padding:4px 8px;
  border-radius:999px;
}
.obligation-section-header.payment-section{
  border-left:4px solid #2f6f9f;
  background:linear-gradient(180deg,#fbfdff,#f5f9fc);
}
.obligation-section-header.payment-section .obligation-section-kicker{
  color:#175f91;background:#e7f2fb;border:1px solid #cfe4f3;
}
.obligation-section-header.declaration-section{
  border-left:4px solid #7a5b12;
  background:linear-gradient(180deg,#fffdf8,#fcf8ed);
}
.obligation-section-header.declaration-section .obligation-section-kicker{
  color:#71520a;background:#fff3cd;border:1px solid #f2dda0;
}
.obligation-section-header.compact{margin-top:0}
.obligation-section-metrics{display:flex;gap:10px;flex-wrap:wrap}
.obligation-section-metrics>span{
  display:flex;gap:5px;align-items:center;
  padding:7px 10px;border:1px solid var(--border);border-radius:9px;background:#fff;
  font-size:11px;color:var(--muted);white-space:nowrap
}
.obligation-section-metrics strong{font-size:14px;color:var(--text)}
.central-obligation-group{margin-top:18px}
.central-obligation-group+.central-obligation-group{margin-top:24px;padding-top:2px}
.obligation-toolbar-payment{grid-template-columns:220px minmax(320px,1fr)}
.declaration-obligation-table th:nth-child(5),
.declaration-obligation-table td:nth-child(5){min-width:155px}
.obligation-mei-link{max-width:260px;text-align:left;white-space:normal}
.obligation-other-panel{margin-top:18px}
@media(max-width:900px){
  .obligation-section-header{align-items:flex-start;flex-direction:column}
  .obligation-section-metrics{width:100%}
  .obligation-toolbar-payment{grid-template-columns:1fr}
}

/* V0.22.53 — consumo de integração por MEI */
.honoraria-usage-table{min-width:1280px}
.honoraria-usage-table th:nth-child(6),
.honoraria-usage-table td:nth-child(6){min-width:125px}
.honoraria-usage-table th:nth-child(7),
.honoraria-usage-table td:nth-child(7){min-width:105px}
.usage-count-btn{min-width:44px;font-weight:800}
.honoraria-usage-table td small{display:block;margin-top:4px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* V0.22.53 — relatório separado de NFS-e canceladas */
.report-launch-card:has([data-report="cancelled-nfse-report"]) .report-card-icon{font-size:24px}

/* V0.22.53 — seleção de MEI na Central de Relatórios */
.reports-scope-select{cursor:pointer;min-width:240px}
.reports-select-wrap:focus-within{
  outline:2px solid rgba(31,111,164,.18);
  outline-offset:2px;
  border-radius:10px;
}

/* V0.23.00 — Estoque de mercadorias para revenda */
.stock-kpis{margin-bottom:16px}.honoraria-usage-table{min-width:1280px}
[data-revenue-stock].subtle{background:#fff;color:#31536a;border-color:#bfd0dc}.stock-revenue-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
@media(max-width:900px){.stock-revenue-summary{grid-template-columns:1fr 1fr}.stock-kpis{grid-template-columns:1fr 1fr}}


/* V0.25.01 — Produção, escrituração formal, imobilizado e recibos 99/Uber */
.accounting-signatures{display:grid;grid-template-columns:1fr 1fr;gap:48px;margin:36px 0 12px;padding-top:28px;page-break-inside:avoid}
.accounting-signatures>div{text-align:center}.accounting-signatures span{display:block;color:#6b7280;margin-bottom:8px}.accounting-signatures strong,.accounting-signatures small{display:block}
.book-terms section{padding:18px 0;border-bottom:1px solid var(--border)}.book-terms h3{text-align:center;letter-spacing:.04em}.book-terms p{line-height:1.65}
.ride-import-table{min-width:1180px}.ride-import-table input.input{min-width:190px}.ride-import-table select.select{min-width:190px}
@media print{.sidebar,.topbar,.tabs,.btn,.inline-actions,.modal-actions{display:none!important}.accounting-signatures{margin-top:50px}.panel{break-inside:avoid}}


/* V0.25.01 — livros contábeis formais e produção */
.accounting-book-modal{width:min(1320px,98vw)!important}
.accounting-conformity p,.responsibility-letter p{line-height:1.6}
.accounting-book-print h2{text-align:center;margin:22px 0 12px;color:#173b56}
.journal-entry-print,.ledger-account-print{break-inside:avoid;margin:0 0 16px}
.journal-entry-head{display:flex;gap:10px;flex-wrap:wrap;align-items:baseline;margin-bottom:6px}
.journal-entry-head span{flex:1;min-width:260px}
.journal-entry-head small{width:100%;color:var(--muted)}
.ledger-account-print h3{margin:16px 0 4px}
@media print{
  .accounting-book-print .btn,.accounting-book-print button{display:none!important}
  .journal-entry-print,.ledger-account-print{page-break-inside:avoid}
  .accounting-book-print .panel{box-shadow:none}
  .responsibility-letter,.book-terms{page-break-inside:avoid}
}

/* V0.25.01 — Titular / IRPF */
.irpf-reading-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.irpf-reading-step{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--border);border-radius:12px;background:#f8fbfd}
.irpf-reading-step>span{flex:0 0 26px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:#e5f2fb;color:#145b86}
.irpf-reading-step strong{display:block;font-size:12px;color:var(--text)}
.irpf-reading-step small{display:block;margin-top:4px;line-height:1.4;color:var(--muted)}
@media(max-width:900px){.irpf-reading-guide{grid-template-columns:1fr}}

/* V0.25.01 — IRPF: tributável potencial no comparativo */
.irpf-table-note{
  margin:-2px 0 12px;
  padding:9px 12px;
  border:1px solid var(--border);
  border-top:0;
  border-radius:0 0 10px 10px;
  background:#fbfcfd;
  color:var(--muted);
  font-size:10px;
  line-height:1.45;
}
.irpf-table-note strong{color:var(--text)}

/* V0.25.01 — IRPF: cenário selecionado com reflexo integral */
.irpf-active-scenario-panel{margin:12px 0}
.irpf-active-scenario-panel .panel-head{align-items:center}
.irpf-active-summary{grid-template-columns:repeat(7,minmax(120px,1fr))}
.irpf-scenario-selected td{background:#eef7fc !important;font-weight:600}
.irpf-scenario-selected td:first-child{box-shadow:inset 3px 0 0 #1d75a5}
.irpf-presumption-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:8px 0 14px;
}
.irpf-presumption-summary>div{
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fbfcfd;
}
.irpf-presumption-summary small{display:block;color:var(--muted);font-size:10px}
.irpf-presumption-summary strong{display:block;margin-top:5px;font-size:16px}
.irpf-simulation-highlight td{background:#f5f9fc;font-weight:700}
@media(max-width:1100px){
  .irpf-active-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .irpf-active-summary,.irpf-presumption-summary{grid-template-columns:1fr}
}

/* V0.25.01 — Folha & eSocial + ciclo completo do imobilizado */
.payroll-tabs{margin:12px 0 16px}
.payroll-context{margin-bottom:12px}
.payroll-kpi-text{font-size:18px!important;line-height:1.2}
.payroll-context .accounting-context-row{display:flex;gap:14px;align-items:end;flex-wrap:wrap}
.payroll-context .field{min-width:280px}
.payroll-context .field:last-child{min-width:180px}
@media(max-width:900px){.payroll-context .field{min-width:100%}}

/* V0.25.01 — Governança das Tabelas Oficiais */
.official-coverage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.official-coverage-card{border:1px solid var(--border);border-radius:12px;padding:12px 14px;background:#fbfcfd}
.official-coverage-card.ok{border-color:#b8dec8;background:#f6fbf8}
.official-coverage-card.warn{border-color:#ecd79c;background:#fffaf0}
.official-coverage-card>div:first-child,.official-coverage-card>div:nth-child(2){display:inline-flex;flex-direction:column;margin-right:24px}
.official-coverage-card small{color:var(--muted)}
.official-coverage-card strong{font-size:18px}
.official-coverage-items{display:flex!important;gap:6px;flex-wrap:wrap;margin-top:10px!important}
.official-coverage-card p{margin:8px 0 0;color:var(--muted);font-size:11px}
.official-used-by{margin-top:3px;max-width:250px}
@media(max-width:900px){.official-coverage-grid{grid-template-columns:1fr}}

/* V0.25.03 — alertas tributários de Distribuições/IRRF */
.tax-rule-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;margin:0 0 16px;border:1px solid #cad9e5;border-radius:12px;background:#f4f8fb;color:#294a63;box-shadow:0 4px 12px rgba(15,43,67,.035)}
.tax-rule-card>div:first-child{display:flex;flex-direction:column;gap:3px}.tax-rule-card strong{font-size:13px}.tax-rule-card small{color:#607487}.tax-rule-metrics{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.tax-rule-metrics span{padding:6px 9px;border-radius:9px;background:#fff;border:1px solid #dbe5ec;font-size:11px;white-space:nowrap}.tax-rule-metrics strong{font-size:11px;color:#173f5e}
.tax-alert{margin:0 0 16px;padding:17px 18px;border-radius:13px;border:2px solid var(--red);box-shadow:0 7px 20px rgba(178,55,55,.13);background:#fff2f2;color:#762424}
.tax-alert.tax-warning{background:linear-gradient(180deg,#fff4f4,#ffe9e9);border-color:#d45a5a}
.tax-alert.tax-critical{background:linear-gradient(180deg,#ffecec,#ffdede);border-color:#b62828;box-shadow:0 8px 24px rgba(178,55,55,.20)}
.tax-alert-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}.tax-alert-heading>div{display:flex;flex-direction:column;gap:2px}.tax-alert-heading strong{font-size:16px;letter-spacing:.01em;color:#972b2b}.tax-critical .tax-alert-heading strong{font-size:17px;color:#851e1e}.tax-alert-heading small{font-size:11px;color:#8b4a4a}.tax-alert-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#bd3434;color:#fff;font-size:20px;font-weight:900;flex:0 0 36px}
.tax-alert-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:10px 0 12px}.tax-alert-grid>div{padding:10px 11px;border-radius:10px;background:rgba(255,255,255,.82);border:1px solid rgba(178,55,55,.22)}.tax-alert-grid small{display:block;color:#8d5555;font-size:10px;margin-bottom:4px}.tax-alert-grid strong{display:block;color:#8d2424;font-size:15px}.tax-alert p{margin:8px 0 4px;font-size:12px;line-height:1.45}.tax-alert-source{display:block;margin-top:8px;color:#936060;font-size:10px}
@media(max-width:900px){.tax-rule-card{align-items:flex-start;flex-direction:column}.tax-rule-metrics{justify-content:flex-start}.tax-alert-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.tax-alert-grid{grid-template-columns:1fr}}


/* V0.26.06 — indicadores de acesso oficial na carteira contábil */
.accounting-access-cell{ text-align:center; min-width:78px; }
.accounting-access-mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%; font-weight:900; font-size:16px;
  border:1px solid var(--border); background:#f5f7f9; color:#6b7785;
  cursor:help;
}
.accounting-access-mark.ok{ background:#dff4e8; border-color:#b8ddca; color:#08783d; }
.accounting-access-mark.warn{ background:#fff3cd; border-color:#f1d98a; color:#795b00; }
.accounting-access-mark.none{ background:#f5f7f9; color:#8a96a3; }

/* V0.27.01 — Central de Comunicações / Histórico da MEI */
.comm-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:16px 0}.comm-governance{margin:0 0 16px}.comm-filters{align-items:end}.comm-contact-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.comm-chip{display:flex;flex-direction:column;gap:2px;border:1px solid var(--line,#dfe5ec);border-radius:10px;padding:9px 12px;background:#fff}.comm-chip small{color:#667085}.comm-doc-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:280px;overflow:auto}.comm-doc-option{display:flex;gap:9px;align-items:flex-start;border:1px solid var(--line,#dfe5ec);border-radius:9px;padding:9px;background:#fff}.comm-doc-option span{display:flex;flex-direction:column}.comm-message-preview{white-space:pre-wrap;word-break:break-word;font-family:inherit;background:#f8fafc;border:1px solid #e4e7ec;border-radius:8px;padding:12px;max-height:260px;overflow:auto}.timeline{display:flex;flex-direction:column;gap:0;margin-top:14px}.timeline-item{display:grid;grid-template-columns:22px 1fr;gap:10px;position:relative;padding-bottom:14px}.timeline-item:before{content:"";position:absolute;left:7px;top:15px;bottom:-4px;width:2px;background:#e4e7ec}.timeline-item:last-child:before{display:none}.timeline-dot{width:14px;height:14px;border-radius:50%;margin-top:5px;z-index:1;background:#12b76a}.timeline-dot.yellow{background:#f79009}.timeline-dot.red{background:#d92d20}.timeline-card{border:1px solid #e4e7ec;border-radius:10px;padding:12px 14px;background:#fff}.timeline-card p{margin:8px 0 0}.timeline-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.filter-actions{min-width:180px}@media(max-width:1400px){.comm-kpi-grid{grid-template-columns:repeat(4,minmax(150px,1fr))}}@media(max-width:900px){.comm-kpi-grid,.comm-doc-list{grid-template-columns:1fr 1fr}}@media(max-width:620px){.comm-kpi-grid,.comm-doc-list{grid-template-columns:1fr}}

.comm-responsible-panel{margin:0 0 16px}.comm-responsible-panel .table{margin:0}.comm-responsible-panel small{display:block;color:var(--muted)}

/* V0.27.03 — DRE Gerencial Mensal horizontal */
.dre-monthly-modal{width:min(1580px,98vw)!important}
.dre-monthly-modal .modal-body{padding:16px}
.dre-monthly-report .report-chart-grid{grid-template-columns:minmax(0,1fr);max-width:900px}
.dre-monthly-panel .table-wrap{overflow-x:auto}
.dre-monthly-table{min-width:1660px;border-collapse:separate;border-spacing:0}
.dre-monthly-table th,.dre-monthly-table td{white-space:nowrap;padding:8px 8px!important;font-size:10.5px!important}
.dre-monthly-table th:first-child,.dre-monthly-table td:first-child{position:sticky;left:0;z-index:2;background:#fff;min-width:245px;max-width:300px;white-space:normal;text-align:left}
.dre-monthly-table thead th:first-child{z-index:4;background:#eef3f7}
.dre-monthly-table th:not(:first-child),.dre-monthly-table td:not(:first-child){min-width:91px;text-align:right}
.dre-monthly-table .dre-monthly-group td{background:#edf6fc;font-weight:700;border-top:1px solid #cbdde9}
.dre-monthly-table .dre-monthly-group td:first-child{background:#edf6fc}
.dre-monthly-table .dre-monthly-total td{background:#f7fafc;border-top:2px solid #b8c8d5;font-weight:700}
.dre-monthly-table .dre-monthly-total td:first-child{background:#f7fafc}
.dre-monthly-table .dre-monthly-result td{background:#eef6fb;border-top:2px solid #7aa7c4;font-weight:800}
.dre-monthly-table .dre-monthly-result td:first-child{background:#eef6fb}
.dre-monthly-table .dre-monthly-margin td{background:#fbfcfd;border-top:1px solid #d7e1e8}
.dre-monthly-table .dre-monthly-margin td:first-child{background:#fbfcfd}
.dre-monthly-pct{font-weight:700}
@media(max-width:900px){.dre-monthly-modal{width:99vw!important}.dre-monthly-table{min-width:1560px}}

/* V0.27.05 — DRE mensal: impressão em duas páginas lógicas.
   Tela mantém rolagem horizontal; impressão força Jan-Dez + Total + % na primeira página. */
.dre-monthly-analytics-title{display:flex;flex-direction:column;gap:2px;margin:14px 0 8px;padding-top:12px;border-top:1px solid #dbe4ec}.dre-monthly-analytics-title strong{font-size:13px;color:#173b55}.dre-monthly-analytics-title small{font-size:10.5px;color:var(--muted)}
@media print{
  body.report-printing .dre-monthly-table{min-width:0!important;max-width:100%!important;width:100%!important;table-layout:fixed!important}
  body.report-printing .dre-monthly-table th:not(:first-child),body.report-printing .dre-monthly-table td:not(:first-child){min-width:0!important;max-width:none!important}
  body.report-printing .dre-monthly-table th:first-child,body.report-printing .dre-monthly-table td:first-child{position:static!important;min-width:0!important;max-width:none!important}
}

/* V0.27.06 — DRE mensal: números compactos apenas na impressão. */
.dre-money-print{display:none}.dre-money-screen{display:inline}.dre-monthly-unit{display:block;margin-top:3px;font-size:10px;color:var(--muted)}


/* V0.27.14 — configuração de comunicações: janela redimensionável com controles visíveis */
.communication-config-modal{min-width:min(720px,calc(100vw - 24px));}
.communication-config-modal .table-wrap{overflow:auto;}
.communication-config-modal #tplTimingPreview{margin:0;}
@media(max-width:760px){.communication-config-modal{min-width:0}.communication-config-modal #commModalNarrower,.communication-config-modal #commModalWider{display:none}}


/* V0.27.16 — detalhe da comunicação: largura útil e anexos sempre acionáveis */
.communication-detail-modal{
  width:min(1280px,calc(100vw - 24px))!important;
  min-width:min(980px,calc(100vw - 24px));
  max-width:calc(100vw - 24px)!important;
  resize:both;
}
.communication-detail-modal .modal-body{overflow:auto}
.communication-detail-modal .modal-foot{flex-wrap:wrap}
.communication-detail-columns{
  display:grid;
  grid-template-columns:minmax(280px,.78fr) minmax(560px,1.55fr);
  gap:12px;
  align-items:stretch;
}
.communication-attachments-panel{min-width:0}
.comm-attachment-list{display:grid;gap:8px}
.comm-attachment-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.comm-attachment-row:last-child{border-bottom:0}
.comm-attachment-copy{min-width:0}
.comm-attachment-copy strong{
  display:block;
  min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.35;
}
.comm-attachment-copy small{display:block;margin-top:3px;color:var(--muted);line-height:1.35}
.comm-attachment-actions{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto}
.comm-attachment-actions .btn{white-space:nowrap}
.communication-resize-hint{font-size:12px}
@media(max-width:1000px){
  .communication-detail-modal{min-width:0;width:calc(100vw - 12px)!important;max-width:none!important}
  .communication-detail-columns{grid-template-columns:1fr}
  .communication-resize-hint{display:none}
}


/* V0.27.41 — login/acesso com visual mais profissional */
.access-modal-backdrop{background:rgba(10,21,34,.62)!important;backdrop-filter:blur(4px)}
.modal.access-modal{width:min(620px,calc(100vw - 32px));max-width:620px;resize:none;border-radius:22px;overflow:hidden}
.access-modal .modal-head{padding:14px 18px 0;border-bottom:0;min-height:30px}
.access-modal .modal-head h2{font-size:14px;color:#6a7c8e;font-weight:700;letter-spacing:.02em}
.access-modal .modal-body{padding:8px 24px 18px}
.access-modal .modal-foot{padding:0 24px 24px;border-top:0;justify-content:flex-end;gap:10px}
.access-modal .modal-window-actions .icon-btn{width:34px;height:34px}
.access-login-shell{display:flex;flex-direction:column;gap:16px}
.access-login-brand{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:4px 0 2px}
.access-login-logo-wrap{display:flex;justify-content:center;width:100%}
.access-login-logo{width:74px;height:74px;border-radius:22px;background:linear-gradient(145deg,#123b59,#1e608f);display:grid;place-items:center;color:#fff;font-size:28px;font-weight:800;letter-spacing:.03em;box-shadow:0 14px 30px rgba(17,57,87,.22)}
.access-login-title{font-size:31px;font-weight:800;letter-spacing:-.03em;color:#163c58;line-height:1.05}
.access-login-version{font-size:13px;font-weight:700;color:#62819a;background:#eef5fa;border:1px solid #d8e6f0;border-radius:999px;padding:5px 12px}
.access-login-subtitle{font-size:16px;color:#52697d;font-weight:600}
.access-login-reason{display:flex;flex-direction:column;gap:4px;background:linear-gradient(180deg,#f7fbfe,#eff6fb);border:1px solid #d6e3ee;border-radius:16px;padding:14px 16px;color:#36546d}
.access-login-reason strong{font-size:15px;color:#204663}
.access-login-reason span{font-size:13px;line-height:1.5;color:#567186}
.access-login-form{display:flex;flex-direction:column;gap:10px}
.access-field{gap:6px}
.access-field label{font-size:12px;font-weight:800;color:#486377;letter-spacing:.02em}
.access-input{min-height:48px!important;border-radius:14px!important;padding:11px 14px!important;font-size:17px!important;font-weight:600;color:#102c42;background:#fff}
.access-input::placeholder{color:#8ca0b1;font-weight:500}
.access-readonly{background:#f7fafc!important;color:#29465c}
.access-login-meta{font-size:12px;color:#5f788c;padding:0 2px 2px;min-height:18px}
.access-login-error{background:#fff4f2;border:1px solid #f2c9c2;color:#a63628;border-radius:12px;padding:11px 13px;font-size:13px;font-weight:700}
.access-modal .btn{min-height:42px;border-radius:12px;padding:10px 16px;font-size:14px}
.access-modal .btn.primary{min-width:170px}
@media(max-width:680px){.modal.access-modal{width:min(96vw,620px)}.access-modal .modal-body{padding:6px 16px 14px}.access-modal .modal-foot{padding:0 16px 18px;flex-wrap:wrap}.access-modal .modal-foot .btn{flex:1 1 auto}.access-login-title{font-size:26px}.access-login-logo{width:66px;height:66px;font-size:24px}.access-input{font-size:16px!important}}


/* V0.27.42 — status e desbloqueio de usuários */
.user-security-guide{margin:12px 0 14px}
.user-admin-table{min-width:1260px}
.user-admin-table th:nth-child(7),.user-admin-table td:nth-child(7){min-width:145px;width:145px}
.user-admin-table th:nth-child(8),.user-admin-table td:nth-child(8){min-width:105px;width:105px}
.user-admin-table th:last-child,.user-admin-table td:last-child{min-width:175px;width:175px}
.user-security-status{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.user-security-status small{display:block;color:#6c7d8d;line-height:1.25;white-space:normal}
.user-row-locked td{background:#fff9f8!important}
.user-row-locked:hover td{background:#fff5f3!important}
.user-admin-actions{justify-content:flex-end;flex-wrap:nowrap}
.user-edit-security-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;margin-bottom:14px;border:1px solid #dce4eb;border-radius:12px;background:#f8fbfd}
.user-edit-security-summary>div>small{display:block;color:#687a8a;font-weight:700;margin-bottom:5px}
@media(max-width:760px){.user-edit-security-summary{align-items:flex-start;flex-direction:column}.user-admin-actions{flex-wrap:wrap}}


/* V0.27.43 — modal profissional para troca obrigatória do PIN */
.pin-change-backdrop{background:rgba(10,21,34,.66)!important;backdrop-filter:blur(5px)}
.modal.pin-change-modal{width:min(700px,calc(100vw - 32px));max-width:700px;resize:none;border-radius:22px;overflow:hidden}
.pin-change-modal .modal-head{padding:14px 18px 0;border-bottom:0;min-height:30px}
.pin-change-modal .modal-head h2{font-size:14px;color:#6a7c8e;font-weight:700;letter-spacing:.02em}
.pin-change-modal .modal-body{padding:8px 24px 18px}
.pin-change-modal .modal-foot{padding:0 24px 24px;border-top:0;justify-content:flex-end}
.pin-change-modal .modal-window-actions .icon-btn{width:34px;height:34px}
.pin-change-shell{display:flex;flex-direction:column;gap:16px}
.pin-change-brand{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:4px 0 2px}
.pin-change-logo-wrap{display:flex;justify-content:center;width:100%}
.pin-change-logo{width:74px;height:74px;border-radius:22px;background:linear-gradient(145deg,#123b59,#1e608f);display:grid;place-items:center;color:#fff;font-size:28px;font-weight:800;letter-spacing:.03em;box-shadow:0 14px 30px rgba(17,57,87,.22)}
.pin-change-title{font-size:31px;font-weight:800;letter-spacing:-.03em;color:#163c58;line-height:1.05}
.pin-change-version{font-size:13px;font-weight:700;color:#62819a;background:#eef5fa;border:1px solid #d8e6f0;border-radius:999px;padding:5px 12px}
.pin-change-subtitle{font-size:16px;color:#52697d;font-weight:600}
.pin-change-card{display:flex;flex-direction:column;gap:5px;background:linear-gradient(180deg,#fff9e8,#f8f0d7);border:1px solid #e7d7a5;border-radius:16px;padding:14px 16px;color:#6b5612}
.pin-change-card strong{font-size:16px;color:#765b08}
.pin-change-card span{font-size:13px;line-height:1.5;color:#705b1c}
.pin-change-form{display:flex;flex-direction:column;gap:10px}
.pin-change-field{gap:6px}
.pin-change-field label{font-size:12px;font-weight:800;color:#486377;letter-spacing:.02em}
.pin-change-input{min-height:48px!important;border-radius:14px!important;padding:11px 14px!important;font-size:17px!important;font-weight:600;color:#102c42;background:#fff}
.pin-change-input::placeholder{color:#8ca0b1;font-weight:500}
.pin-change-tip{font-size:12px;color:#5f788c;padding:0 2px 2px}
.pin-change-error{background:#fff4f2;border:1px solid #f2c9c2;color:#a63628;border-radius:12px;padding:11px 13px;font-size:13px;font-weight:700}
.pin-change-modal .btn{min-height:42px;border-radius:12px;padding:10px 16px;font-size:14px}
.pin-change-modal .btn.primary{min-width:190px}
@media(max-width:680px){.modal.pin-change-modal{width:min(96vw,700px)}.pin-change-modal .modal-body{padding:6px 16px 14px}.pin-change-modal .modal-foot{padding:0 16px 18px;flex-wrap:wrap}.pin-change-modal .modal-foot .btn{flex:1 1 auto}.pin-change-title{font-size:26px}.pin-change-logo{width:66px;height:66px;font-size:24px}.pin-change-input{font-size:16px!important}}


/* V0.27.44 — navegação dinâmica do cliente */
.nav-btn .nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.nav-access-level{margin-left:auto;font-size:8px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:#a9c8dc;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);padding:3px 5px;border-radius:999px;white-space:nowrap}
.nav-btn.active .nav-access-level{color:#4e6c82;background:#edf4f8;border-color:#d7e5ee}


/* V0.27.45 — Perfis/Categorias de Relatórios */
.report-profile-admin-table td:nth-child(2){min-width:320px;max-width:520px}.report-profile-admin-table td:nth-child(3),.report-profile-admin-table td:nth-child(4){white-space:nowrap}
.report-profile-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0 10px;padding:12px 14px;background:#f7fafc;border:1px solid #dbe5ed;border-radius:12px}.report-profile-toolbar strong,.report-profile-toolbar small{display:block}.report-profile-toolbar small{margin-top:3px;color:var(--muted)}
.report-profile-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:48vh;overflow:auto;padding:2px 2px 4px}.report-profile-group{border:1px solid #dde6ee;border-radius:12px;background:#fff;overflow:hidden}.report-profile-group-title{padding:9px 12px;background:#f5f8fb;border-bottom:1px solid #e4ebf1;font-size:12px;font-weight:800;color:#31536c}.report-profile-option{display:grid;grid-template-columns:22px minmax(0,1fr);gap:9px;align-items:flex-start;padding:10px 12px;border-bottom:1px solid #eef2f5;cursor:pointer}.report-profile-option:last-child{border-bottom:0}.report-profile-option:hover{background:#f9fcfe}.report-profile-option input{margin-top:3px}.report-profile-option strong{display:block;font-size:13px;color:#183b55}.report-profile-option small{display:block;margin-top:3px;color:#6d8091;line-height:1.35}
@media(max-width:800px){.report-profile-checklist{grid-template-columns:1fr}.report-profile-toolbar{align-items:flex-start;flex-direction:column}.report-profile-admin-table td:nth-child(2){min-width:240px}}


/* V0.27.46 — Administração mais compacta e navegável */
.admin-tabs-grid{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;overflow:visible!important;white-space:normal!important;align-items:stretch;margin-bottom:16px}
.admin-tabs-grid .tab{display:flex;align-items:center;justify-content:center;min-height:48px;width:100%;border:1px solid #cfe0ec!important;border-radius:10px!important;background:#f2f7fb!important;color:#285471!important;font-size:12px;font-weight:700;line-height:1.2;text-align:center;white-space:normal!important;transition:.16s ease;box-shadow:none!important}
.admin-tabs-grid .tab:hover{background:#e6f1f8!important;border-color:#9ec3da!important;color:#174f7d!important;transform:translateY(-1px)}
.admin-tabs-grid .tab.active{background:var(--primary)!important;border-color:var(--primary)!important;color:#fff!important;box-shadow:0 5px 14px rgba(23,79,125,.18)!important}
.admin-tabs-grid .tab.active:after{display:none!important}
@media(max-width:1280px){.admin-tabs-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:900px){.admin-tabs-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.admin-tabs-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.admin-tabs-grid .tab{min-height:44px;font-size:11px}}

.user-admin-table-wrap{overflow:auto;border:1px solid #e2e8ef;border-radius:12px;margin-top:12px}
.user-admin-table{min-width:1140px!important;table-layout:fixed}
.user-admin-table th,.user-admin-table td{vertical-align:middle}
.user-admin-table th:nth-child(1),.user-admin-table td:nth-child(1){width:250px;min-width:250px}
.user-admin-table th:nth-child(2),.user-admin-table td:nth-child(2){width:150px;min-width:150px}
.user-admin-table th:nth-child(3),.user-admin-table td:nth-child(3){width:175px;min-width:175px}
.user-admin-table th:nth-child(4),.user-admin-table td:nth-child(4){width:280px;min-width:280px}
.user-admin-table th:nth-child(5),.user-admin-table td:nth-child(5){width:155px;min-width:155px}
.user-admin-table th:nth-child(6),.user-admin-table td:nth-child(6){width:105px;min-width:105px}
.user-admin-table th:nth-child(7),.user-admin-table td:nth-child(7){width:175px;min-width:175px}
.user-admin-table td small{display:block;margin-top:4px;color:var(--muted);line-height:1.35}
.user-identity-cell strong{font-size:13px}.user-identity-cell small b{color:#355a75}
.user-note-warn{color:#9a5d00!important;font-weight:700}
.user-mei-scope{min-width:0}.user-mei-scope strong{display:block;color:#203f56}.user-mei-scope small{display:block;white-space:normal;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.user-admin-actions{justify-content:flex-end;flex-wrap:wrap}


/* V0.27.47 — navegação principal da MEI com mais destaque visual */
.mei-tabs-shell{margin:0 0 18px 0;background:linear-gradient(180deg,#f5f9fd 0%,#eef5fb 100%);border:1px solid #d7e3ee;border-radius:16px;padding:12px;box-shadow:var(--shadow)}
.mei-tabs-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;align-items:stretch;justify-content:center;margin:0;border-bottom:0;overflow:visible;background:transparent}
.mei-tabs-grid .tab{min-height:48px;padding:10px 10px;border:1px solid #cfe0ec;border-radius:12px;background:#f7fbff;color:#35566f;font-weight:700;line-height:1.2;white-space:normal;text-align:center;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 0 rgba(255,255,255,.75) inset;transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease}
.mei-tabs-grid .tab:hover{background:#edf5fb;border-color:#afcade;color:#1f4967;box-shadow:0 8px 20px rgba(20,64,100,.08);transform:translateY(-1px)}
.mei-tabs-grid .tab.active{background:linear-gradient(180deg,#1c5f93 0%,#144f7d 100%);border-color:#144f7d;color:#fff;box-shadow:0 10px 24px rgba(20,79,125,.18)}
@media(max-width:1480px){.mei-tabs-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1180px){.mei-tabs-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){.mei-tabs-shell{padding:10px}.mei-tabs-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.mei-tabs-grid .tab{min-height:44px;padding:9px 8px;font-size:13px}}


/* V0.27.48 — Meu Trabalho com gráfico de prioridades */
.work-summary-row{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;align-items:stretch;margin-bottom:16px}
.work-total-card{min-height:116px;margin:0}
.work-chart-panel{min-height:116px;border-radius:var(--radius)}
.work-chart-body{padding:14px 16px;display:flex;align-items:center;height:100%}
.work-chart-shell{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%}
.work-chart-copy{display:flex;flex-direction:column;gap:4px;min-width:210px}
.work-chart-title{font-size:15px;font-weight:800;color:#18334d}
.work-chart-subtitle{font-size:12px;color:var(--muted);line-height:1.35}
.work-chart-visual{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex:1;min-width:0}
.work-donut-wrap{position:relative;width:120px;height:120px;flex:0 0 120px}
.work-donut{width:120px;height:120px;transform:rotate(-90deg)}
.work-donut-track{stroke:#edf3f8}
.work-donut-segment,.work-donut-empty{transition:stroke-dasharray .2s ease}
.work-donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.work-donut-center strong{font-size:26px;font-weight:800;color:#173650;line-height:1}
.work-donut-center span{font-size:11px;color:#718195;font-weight:700;margin-top:4px;text-transform:uppercase;letter-spacing:.04em}
.work-legend{display:grid;grid-template-columns:1fr;gap:8px;min-width:220px}
.work-legend-item{display:flex;align-items:flex-start;gap:10px;padding:7px 10px;border:1px solid #dfe8f0;background:#f8fbfe;border-radius:12px}
.work-legend-dot{width:10px;height:10px;border-radius:50%;margin-top:4px;flex:0 0 10px;box-shadow:0 0 0 3px rgba(23,79,125,.06)}
.work-legend-item strong{display:block;font-size:13px;color:#1b3850;line-height:1.15}
.work-legend-item small{display:block;color:#66788c;margin-top:2px;line-height:1.25}
@media(max-width:1100px){.work-summary-row{grid-template-columns:1fr}.work-chart-shell{flex-direction:column;align-items:stretch}.work-chart-visual{justify-content:flex-start;flex-wrap:wrap}.work-chart-copy{min-width:0}.work-legend{min-width:0;flex:1}}
@media(max-width:700px){.work-chart-body{padding:14px}.work-chart-visual{gap:14px}.work-donut-wrap,.work-donut{width:104px;height:104px;flex-basis:104px}.work-legend-item{padding:7px 9px}.work-chart-title{font-size:14px}}


/* V0.27.49 — refinamento do gráfico de prioridades e padronização cromática */
.work-donut-track{stroke:#edf3f8}
.work-donut-empty{stroke:#dbe6ef}
.work-donut-segment.urgent{stroke:#d94a48}
.work-donut-segment.critical{stroke:#f08a24}
.work-donut-segment.attention{stroke:#d5aa16}
.work-donut-center{width:66px;height:66px;inset:50% auto auto 50%;transform:translate(-50%,-50%);border-radius:50%;background:#fff;border:1px solid #e2eaf1;box-shadow:0 5px 16px rgba(20,58,88,.10)}
.work-donut-center strong{font-size:27px;font-weight:850;color:#173650;line-height:.95;letter-spacing:-.03em}
.work-donut-center span{font-size:9px;color:#728496;font-weight:800;margin-top:5px;text-transform:uppercase;letter-spacing:.11em}
.work-legend-dot.urgent{background:#d94a48!important}
.work-legend-dot.critical{background:#f08a24!important}
.work-legend-dot.attention{background:#d5aa16!important}
.work-legend-item small b{color:#334e63;font-weight:800}
.work-legend-item.urgent{border-left:3px solid #d94a48}
.work-legend-item.critical{border-left:3px solid #f08a24}
.work-legend-item.attention{border-left:3px solid #d5aa16}
.work-priority-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap;border:1px solid transparent}
.work-priority-badge.urgent{background:#fde8e7;color:#ad2927;border-color:#f5c9c7}
.work-priority-badge.critical{background:#fff0e3;color:#a14d08;border-color:#f5d0ad}
.work-priority-badge.attention{background:#fff6d8;color:#806000;border-color:#eadc9a}

/* V0.27.50 — Monitor de Processamento K2N: padrão ERP para operações demoradas */
.modal.operation-modal{width:min(720px,calc(100vw - 32px));max-width:720px;resize:none;border-radius:20px;overflow:hidden}
.operation-modal .operation-head{padding:20px 22px 14px;border-bottom:1px solid #dce6ee;background:linear-gradient(180deg,#f8fbfe 0%,#eef5fa 100%);align-items:flex-start}
.operation-head-copy{min-width:0}.operation-head-copy h2{margin:4px 0 5px;font-size:21px;color:#163b57;letter-spacing:-.015em}
.operation-kicker{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:800;letter-spacing:.1em;color:#356886}
.operation-spinner{width:13px;height:13px;border-radius:50%;border:2px solid #b8d0e0;border-top-color:#175f91;display:inline-block;animation:k2nOperationSpin .8s linear infinite}
.operation-spinner.done{animation:none;border-color:#48a477;background:#e7f6ed;position:relative}.operation-spinner.done:after{content:'✓';position:absolute;inset:-5px;font-size:12px;color:#167647}
.operation-spinner.failed{animation:none;border-color:#d65555;background:#fdecec}
@keyframes k2nOperationSpin{to{transform:rotate(360deg)}}
.operation-subtitle{margin:0;color:#607488;font-size:13px;line-height:1.4}.operation-context{margin-top:8px;display:inline-flex;padding:5px 9px;border:1px solid #cfe0ec;background:#fff;border-radius:999px;color:#496a81;font-size:11px;font-weight:700}
.operation-time{flex:0 0 auto;text-align:right;padding:3px 0}.operation-time small{display:block;color:#7b8c9c;font-size:10px;text-transform:uppercase;letter-spacing:.06em}.operation-time strong{display:block;margin-top:3px;color:#234b68;font-size:18px;font-variant-numeric:tabular-nums}
.operation-modal-body{padding:20px 22px}.operation-progress-wrap{padding:0;text-align:left}.operation-progress-top{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.operation-progress-top small{display:block;color:#6f8294;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}.operation-status{font-size:16px;font-weight:800;color:#172f45;margin:0}.operation-percent{font-size:30px;font-weight:850;letter-spacing:-1px;color:#174f7d;font-variant-numeric:tabular-nums;line-height:1}
.operation-bar{height:13px;background:#e7eef4;border-radius:999px;overflow:hidden;margin:16px 0 12px;box-shadow:inset 0 1px 2px rgba(0,0,0,.06)}.operation-bar-fill{height:100%;background:linear-gradient(90deg,#175f91,#2496c7);border-radius:999px;transition:width .28s ease}.operation-bar-fill.indeterminate{animation:k2nOperationSlide 1.2s ease-in-out infinite}.operation-bar-fill.failed{background:#c74747!important}@keyframes k2nOperationSlide{0%{transform:translateX(-100%)}50%{transform:translateX(100%)}100%{transform:translateX(250%)}}
.operation-detail{font-size:13px;color:#4f6578;min-height:20px;line-height:1.45}.operation-metrics{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:10px;border-top:1px solid #e6edf3;color:#708397;font-size:11px}.operation-metrics span:last-child{text-align:right}.operation-lock-note{margin:16px 0 0;border-radius:12px}.operation-foot{border-top:1px solid #e2e9ef;background:#fbfcfd;padding:12px 20px}.operation-modal .btn{border-radius:10px}
@media(max-width:700px){.modal.operation-modal{width:min(96vw,720px)}.operation-modal .operation-head{padding:16px}.operation-modal-body{padding:16px}.operation-progress-top{align-items:flex-start}.operation-time{display:none}.operation-metrics{align-items:flex-start;flex-direction:column}.operation-metrics span:last-child{text-align:left}.operation-head-copy h2{font-size:19px}.operation-percent{font-size:26px}}


/* V0.30.19 — Receitas / NFS-e: grade compacta e rolagem horizontal explícita */
.revenue-table-wrap{max-width:100%;overflow-x:auto;overflow-y:visible;scrollbar-gutter:stable both-edges;padding-bottom:5px}
.revenue-table{min-width:1180px}
.revenue-table th,.revenue-table td{padding-left:9px;padding-right:9px}
.revenue-table td:nth-child(3){min-width:180px;max-width:260px}
.revenue-table td:nth-child(4){min-width:175px;max-width:240px}
.revenue-table td:last-child{min-width:305px}
.revenue-row-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.revenue-nfse-actions,.revenue-admin-actions{display:flex;gap:5px;justify-content:flex-end;flex-wrap:wrap}
.revenue-table-wrap::-webkit-scrollbar{height:12px}.revenue-table-wrap::-webkit-scrollbar-track{background:#eef2f6;border-radius:999px}.revenue-table-wrap::-webkit-scrollbar-thumb{background:#aeb8c6;border-radius:999px;border:2px solid #eef2f6}
.nfse-send-recipient{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--line)}.nfse-send-recipient:last-child{border-bottom:0}.nfse-send-recipient span{display:flex;flex-direction:column;gap:3px}.nfse-send-recipient small{color:var(--muted)}
.nfse-monitor-modal .table-wrap{max-height:58vh;overflow:auto}
@media(max-width:1250px){.revenue-table{min-width:1120px}.revenue-table td:last-child{min-width:285px}}
.revenue-nfse-number{white-space:nowrap;min-width:72px}.revenue-nfse-number .doc-indicator,.revenue-nfse-number .doc-dot{margin-left:7px}.nfse-monitor-panel{margin:0}.nfse-monitor-modal{width:min(1180px,96vw)}

/* V0.30.22 — Carteira: navegação principal destacada e Plano Financeiro */
.portfolio-tabs-shell{margin:0 0 18px 0;background:linear-gradient(180deg,#f5f9fd 0%,#eef5fb 100%);border:1px solid #d7e3ee;border-radius:16px;padding:12px;box-shadow:var(--shadow)}
.portfolio-tabs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch;margin:0;border-bottom:0;overflow:visible;background:transparent}
.portfolio-tabs-grid .tab{min-height:48px;padding:10px 14px;border:1px solid #cfe0ec;border-radius:12px;background:#f7fbff;color:#35566f;font-weight:700;line-height:1.2;white-space:normal;text-align:center;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 0 rgba(255,255,255,.75) inset;transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease}
.portfolio-tabs-grid .tab:hover{background:#edf5fb;border-color:#afcade;color:#1f4967;box-shadow:0 8px 20px rgba(20,64,100,.08);transform:translateY(-1px)}
.portfolio-tabs-grid .tab.active{background:linear-gradient(180deg,#1c5f93 0%,#144f7d 100%);border-color:#144f7d;color:#fff;box-shadow:0 10px 24px rgba(20,79,125,.18)}
@media(max-width:760px){.portfolio-tabs-shell{padding:10px}.portfolio-tabs-grid{grid-template-columns:1fr;gap:7px}.portfolio-tabs-grid .tab{min-height:44px;padding:9px 8px;font-size:13px}}


/* V0.30.23 — Estoque: navegação interna destacada e responsiva */
.stock-tabs-shell{margin:0 0 18px 0;background:linear-gradient(180deg,#f5f9fd 0%,#eef5fb 100%);border:1px solid #d7e3ee;border-radius:16px;padding:12px;box-shadow:var(--shadow)}
.stock-tabs-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;align-items:stretch;margin:0;border-bottom:0;overflow:visible;background:transparent}
.stock-tabs-grid .tab{min-height:48px;padding:10px 10px;border:1px solid #cfe0ec;border-radius:12px;background:#f7fbff;color:#35566f;font-weight:700;line-height:1.2;white-space:normal;text-align:center;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 0 rgba(255,255,255,.75) inset;transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease}
.stock-tabs-grid .tab:hover{background:#edf5fb;border-color:#afcade;color:#1f4967;box-shadow:0 8px 20px rgba(20,64,100,.08);transform:translateY(-1px)}
.stock-tabs-grid .tab.active{background:linear-gradient(180deg,#1c5f93 0%,#144f7d 100%);border-color:#144f7d;color:#fff;box-shadow:0 10px 24px rgba(20,79,125,.18)}
@media(max-width:1280px){.stock-tabs-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:980px){.stock-tabs-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.stock-tabs-shell{padding:10px}.stock-tabs-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.stock-tabs-grid .tab{min-height:44px;padding:9px 8px;font-size:13px}}
@media(max-width:460px){.stock-tabs-grid{grid-template-columns:1fr}}


/* V0.30.24 — padrão global de navegação interna: Contabilidade e Folha/eSocial */
.module-tabs-shell{margin:0 0 18px 0;background:linear-gradient(180deg,#f5f9fd 0%,#eef5fb 100%);border:1px solid #d7e3ee;border-radius:16px;padding:12px;box-shadow:var(--shadow)}
.module-tabs-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;align-items:stretch;margin:0;border-bottom:0;overflow:visible;background:transparent;white-space:normal}
.module-tabs-grid .tab{min-height:48px;padding:10px 10px;border:1px solid #cfe0ec;border-radius:12px;background:#f7fbff;color:#35566f;font-weight:700;line-height:1.2;white-space:normal;text-align:center;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 0 rgba(255,255,255,.75) inset;transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease}
.module-tabs-grid .tab:hover{background:#edf5fb;border-color:#afcade;color:#1f4967;box-shadow:0 8px 20px rgba(20,64,100,.08);transform:translateY(-1px)}
.module-tabs-grid .tab.active{background:linear-gradient(180deg,#1c5f93 0%,#144f7d 100%);border-color:#144f7d;color:#fff;box-shadow:0 10px 24px rgba(20,79,125,.18)}
.module-tabs-grid .tab.active:after{display:none!important}
.accounting-tabs,.payroll-tabs{margin:0;overflow:visible;white-space:normal}
.accounting-tabs-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.payroll-tabs-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1280px){.accounting-tabs-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.payroll-tabs-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:980px){.accounting-tabs-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.payroll-tabs-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.module-tabs-shell{padding:10px}.accounting-tabs-grid,.payroll-tabs-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.module-tabs-grid .tab{min-height:44px;padding:9px 8px;font-size:13px}}
@media(max-width:460px){.accounting-tabs-grid,.payroll-tabs-grid{grid-template-columns:1fr}}


/* V0.30.25 — assinatura digital do responsável técnico */
.report-digital-sign-option{display:flex;align-items:center;gap:10px;min-width:310px;max-width:520px;padding:9px 12px;border:1px solid #b8cce0;border-radius:9px;background:#f6fbff;color:#173b5a;cursor:pointer}
.report-digital-sign-option input{width:17px;height:17px;flex:0 0 auto}.report-digital-sign-option span{display:flex;flex-direction:column;gap:2px}.report-digital-sign-option strong{font-size:12px}.report-digital-sign-option small{font-size:10px;color:#61758a}.report-digital-sign-option.is-disabled{opacity:.68;cursor:not-allowed;background:#f8fafc}
.modal-footer:has(.report-digital-sign-option){display:flex;align-items:center;gap:8px;flex-wrap:wrap}.modal-footer .report-digital-sign-option{margin-right:auto}
@media(max-width:720px){.report-digital-sign-option{min-width:100%;max-width:100%;order:-1}}

/* V0.30.30 — representação visual da assinatura digital ICP-Brasil nos relatórios contábeis assinados */
.accounting-digital-signature-block{width:min(560px,88%);margin:28px auto 10px;text-align:left;color:#17324a;break-inside:avoid;page-break-inside:avoid}
.accounting-digital-signature-seal{display:flex;align-items:flex-start;gap:12px;border:1.5px solid #2a6f58;border-radius:10px;background:#f1faf6;padding:12px 14px;box-shadow:0 1px 0 rgba(15,23,42,.04)}
.accounting-digital-signature-icon{flex:0 0 30px;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#def3e8;border:1px solid #83c6a9;color:#176a49;font-size:18px;font-weight:900;line-height:1}
.accounting-digital-signature-content{min-width:0;flex:1}
.accounting-digital-signature-title{font-size:10px;letter-spacing:.08em;font-weight:900;color:#176a49;margin-bottom:3px}
.accounting-digital-signature-name{font-size:12.5px;font-weight:900;color:#0f2f46;line-height:1.25}
.accounting-digital-signature-meta{font-size:9.5px;color:#3f566a;margin-top:2px;line-height:1.3}
.accounting-digital-signature-validation{font-size:8.5px;color:#526779;margin-top:6px;padding-top:6px;border-top:1px solid #c9e5d8;line-height:1.35}
@media print{
  body.report-printing .accounting-digital-signature-block{width:70%!important;margin:18px auto 4px!important}
  body.report-printing .accounting-digital-signature-seal{gap:8px!important;border-radius:6px!important;padding:7px 9px!important;box-shadow:none!important}
  body.report-printing .accounting-digital-signature-icon{flex-basis:22px!important;width:22px!important;height:22px!important;font-size:13px!important}
  body.report-printing .accounting-digital-signature-title{font-size:7.2px!important;margin-bottom:2px!important}
  body.report-printing .accounting-digital-signature-name{font-size:8.8px!important}
  body.report-printing .accounting-digital-signature-meta{font-size:6.8px!important;margin-top:1px!important}
  body.report-printing .accounting-digital-signature-validation{font-size:6.2px!important;margin-top:4px!important;padding-top:4px!important}
}


/* V0.30.42 — Administração SaaS: card do escritório com respiro e responsividade */
.saas-current-office-panel .panel-body{padding:18px 20px 20px}
.saas-current-office-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.saas-current-office-item{min-width:0;padding:14px 15px;border:1px solid var(--line,#d9e2ea);border-radius:12px;background:var(--surface,#fff);display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}
.saas-current-office-item small{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#6b7c8c);font-weight:700}
.saas-current-office-item strong{font-size:15px;line-height:1.35;color:var(--text,#1d2a35)}
.saas-current-office-item span{font-size:12px;line-height:1.4;color:var(--muted,#6b7c8c)}
.saas-readonly-value{display:flex;align-items:center;color:var(--muted,#64788a);background:#f6f8fa}
@media(max-width:1100px){.saas-current-office-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.saas-current-office-grid{grid-template-columns:1fr}.saas-current-office-panel .panel-body{padding:14px}}


/* V0.30.45 — Comunicações: verdade operacional do status de entrega */
.comm-delivery-state{display:flex;flex-direction:column;gap:2px;margin-top:5px;min-width:150px}.comm-delivery-state strong{font-size:11px;line-height:1.25;color:#294b63}.comm-delivery-state small{display:block;font-size:10px;line-height:1.35;color:#718397;white-space:normal}.comm-delivery-state.sent strong{color:#16734c}.comm-delivery-state.failed strong{color:#b33b31}.comm-delivery-state.scheduled strong{color:#8b6500}.comm-delivery-state.sending strong{color:#1b68a1}.comm-delivery-state.waiting strong{color:#6a5d12}.comm-delivery-state.muted strong{color:#6d7883}
.communication-detail-modal .comm-delivery-state{padding:8px 10px;border:1px solid #dce7ef;border-radius:10px;background:#f8fbfd;margin-top:4px}.communication-detail-modal .comm-delivery-state strong{font-size:13px}.communication-detail-modal .comm-delivery-state small{font-size:11px}

/* V0.30.45 — Administração > Atualizações */
.update-dashboard{display:flex;flex-direction:column;gap:14px}.update-hero{display:grid;grid-template-columns:minmax(0,1fr) 1px minmax(0,1fr);gap:28px;align-items:center;background:linear-gradient(135deg,#ffffff 0%,#f7fbff 100%);border:1px solid #d8e5ef;border-radius:18px;padding:22px 24px;box-shadow:0 8px 24px rgba(24,68,103,.06)}.update-hero-side{display:flex;gap:16px;align-items:center;min-width:0}.update-hero-divider{height:70px;background:#dfe8ef}.update-icon{width:72px;height:72px;flex:0 0 72px;display:flex;align-items:center;justify-content:center;border-radius:18px;background:linear-gradient(145deg,#edf6ff,#dfeefe);border:1px solid #d2e5f6;color:#276fa8;font-size:34px;font-weight:800}.update-icon-cloud{font-size:42px}.update-hero small,.update-metric small{display:block;color:#647b8f;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}.update-version-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:4px}.update-version-line strong{font-size:23px;color:#12344e;line-height:1.2}.update-hero p{margin:5px 0 0;color:#6c7f90;font-size:12px}.update-chip{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:4px 9px;font-size:10px;font-weight:800;white-space:nowrap;background:#edf2f6;color:#4f6373;border:1px solid #d9e2e8}.update-chip.ok{background:#e2f6e9;color:#187248;border-color:#c4e9d2}.update-chip.warn{background:#fff4d6;color:#8a6200;border-color:#eddcaa}.update-chip.info{background:#e8f2ff;color:#27659a;border-color:#d2e4f7}.update-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.update-metric{display:flex;align-items:flex-start;gap:12px;background:#fff;border:1px solid #dde7ef;border-radius:14px;padding:15px;min-height:104px}.update-mini-icon{width:38px;height:38px;flex:0 0 38px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:#edf6ff;color:#236b9f;font-size:18px;font-weight:900}.update-metric strong{display:block;color:#183b55;font-size:14px;margin-top:4px}.update-metric p{margin:4px 0 0;color:#718397;font-size:11px;line-height:1.35}.update-main-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(340px,.85fr);gap:14px}.update-bottom-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.7fr);gap:14px}.update-card{background:#fff;border:1px solid #dae5ee;border-radius:16px;padding:17px;box-shadow:0 3px 12px rgba(28,70,102,.035)}.update-card-title{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px}.update-card-title h3{margin:0;color:#183b55;font-size:16px}.update-card-title p{margin:3px 0 0;color:#708397;font-size:11px;line-height:1.4}.update-card-icon{width:32px;height:32px;flex:0 0 32px;border-radius:9px;background:#edf6ff;color:#24699f;display:flex;align-items:center;justify-content:center;font-weight:900}.update-channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.update-channel{position:relative;display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;align-items:flex-start;border:1px solid #d7e4ee;border-radius:13px;padding:14px;background:#fbfdff;cursor:pointer;transition:.15s ease}.update-channel:hover{border-color:#9fc5df;background:#f6fbff}.update-channel.selected{border-color:#438bc0;background:#f0f8ff;box-shadow:0 0 0 2px rgba(49,125,181,.08)}.update-channel input{margin-top:3px}.update-channel span{display:flex;flex-direction:column;gap:4px}.update-channel strong{font-size:13px;color:#183b55}.update-channel small{font-size:11px;color:#6c8092;line-height:1.4}.update-channel em{font-style:normal;font-size:9px;font-weight:900;padding:3px 7px;border-radius:999px;background:#def3e8;color:#176f48}.update-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.update-actions .btn.primary{min-width:180px}.update-steps{display:flex;flex-direction:column;gap:0}.update-step{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:11px;padding:7px 0}.update-step:not(:last-child):after{content:'';position:absolute;left:16px;top:36px;bottom:-5px;width:2px;background:#d7e7f3}.update-step b{position:relative;z-index:1;width:32px;height:32px;border-radius:50%;background:#3a86bf;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;box-shadow:0 3px 9px rgba(42,113,166,.18)}.update-step span{display:flex;flex-direction:column;gap:2px;padding-top:2px}.update-step strong{font-size:12px;color:#183b55}.update-step small{font-size:10.5px;line-height:1.35;color:#6f8294}.update-history-table td:nth-child(1){white-space:nowrap;width:90px}.update-history-table td:nth-child(2){white-space:nowrap;width:90px}.update-info-stack{display:flex;flex-direction:column;gap:12px}.update-info-stack .callout{margin:0;line-height:1.5}
@media(max-width:1180px){.update-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.update-main-grid,.update-bottom-grid{grid-template-columns:1fr}}
@media(max-width:760px){.update-hero{grid-template-columns:1fr;gap:14px}.update-hero-divider{width:100%;height:1px}.update-metrics,.update-channel-grid{grid-template-columns:1fr}.update-icon{width:58px;height:58px;flex-basis:58px}.update-version-line strong{font-size:19px}.update-card{padding:14px}}
