/* Finishing layer kept separate from the original interface stylesheet. */
.sidebar-backdrop{display:none}
.chart-bar{min-height:0}
.chart-month{position:absolute;bottom:-25px;left:50%;transform:translateX(-50%);font-size:10px;color:#7894a2;white-space:nowrap}
.chart-col[title]{cursor:help}
.donut strong span{display:block;font-size:15px;line-height:1.2}
.donut strong small{margin-top:4px}
.panel,.stat-card,.report-sheet{box-shadow:0 10px 35px rgb(23 62 83 / .045)}
.quick-action,.ghost-button,.primary-button,.side-nav button{transition:background-color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.quick-action:hover,.primary-button:hover{transform:translateY(-2px)}
.primary-button:disabled{background:#dce8ec;color:#607e8b;box-shadow:none;cursor:not-allowed}
.primary-button:disabled:hover{background:#dce8ec;transform:none}
.choice-row input:focus-visible+span{outline:3px solid #1eb6d1;outline-offset:2px}
.table-wrap{scrollbar-color:#a9ccd5 transparent}
.data-table th{white-space:nowrap}
.data-table td{vertical-align:middle}
@media(max-width:800px){
  .sidebar-backdrop{position:fixed;inset:0;z-index:99;width:100%;border:0;background:rgb(5 24 36 / .56);cursor:pointer}
  .workspace.menu-open .sidebar-backdrop{display:block}
  .workspace.menu-open .sidebar{box-shadow:18px 0 55px rgb(0 0 0 / .24)}
  .menu-button{min-width:44px;min-height:44px;margin-left:-9px;border-radius:9px}
  .menu-button:hover{background:rgb(255 255 255 / .15)}
}
@media(max-width:580px){
  .page-heading h1{font-size:28px}
  .stat-card{min-height:120px;padding:16px}
  .stat-card strong{font-size:26px}
  .quick-action{min-height:96px}
  .data-table th,.data-table td{padding:12px}
  .topbar{height:62px}
}
@media(max-width:380px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card strong{font-size:23px}}
@media(prefers-reduced-motion:reduce){.quick-action,.ghost-button,.primary-button,.side-nav button,.sidebar{transition:none!important}.quick-action:hover,.primary-button:hover{transform:none}}
@media print{
  .report-commercial #report-financial,.report-commercial .report-sensitive{display:none!important}
  .report-commercial .report-sheet{break-inside:avoid}
}

/* Menu e Home por conta. As três posições de publicidade compartilham o mesmo componente. */
.workspace{grid-template-columns:250px minmax(0,1fr);transition:grid-template-columns .2s ease}
.app-content:focus{outline:none}
.workspace.sidebar-collapsed{grid-template-columns:72px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100vh;min-height:0;overflow-y:auto;scrollbar-width:thin}
.sidebar-brand{height:62px;padding:0 12px;justify-content:center}
.sidebar-toggle{width:100%;display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #365564;border-radius:10px;background:#16394b;color:#d5eaf0;font-size:12px;font-weight:750}
.sidebar-toggle>span:first-child{width:20px;font-size:19px;line-height:1}
.sidebar-toggle:hover{background:#255167}
.sidebar-account{display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px 12px 18px;gap:10px}
.tenant-avatar{width:74px;height:74px;flex:none;display:grid;place-items:center;border-radius:50%;background:linear-gradient(140deg,#22bdd1,#7666cc);border:3px solid #85dfe7;color:white;font-size:23px;font-weight:800;overflow:hidden;box-shadow:0 7px 20px #071f2b50}
.tenant-avatar img{width:100%;height:100%;object-fit:cover}
.sidebar-account strong{max-width:210px;font-size:14px;white-space:normal;line-height:1.25}
.sidebar-account small{font-size:11px}
.side-nav button{min-height:43px}
.side-nav .nav-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-collapsed .sidebar-toggle{justify-content:center;padding:10px 0}
.sidebar-collapsed .sidebar-toggle-text,.sidebar-collapsed .tenant-heading,.sidebar-collapsed .nav-label,.sidebar-collapsed .nav-text,.sidebar-collapsed .secure-label,.sidebar-collapsed .sidebar-bottom button span,.sidebar-collapsed .sidebar-ad-zone{display:none!important}
.sidebar-collapsed .sidebar-account{padding:18px 8px}
.sidebar-collapsed .tenant-avatar{width:46px;height:46px;font-size:15px}
.sidebar-collapsed .side-nav{padding:10px 7px}
.sidebar-collapsed .side-nav button{justify-content:center;padding:10px}
.sidebar-collapsed .sidebar-bottom{padding:10px 7px}
.sidebar-collapsed .sidebar-bottom button{justify-content:center;font-size:0;min-height:42px}
.sidebar-collapsed .sidebar-bottom button::before{content:'↗';font-size:20px}
.sidebar-ad-zone{padding:0 11px 16px}
.home-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
.home-main{min-width:0}
.home-ad-inline{margin:20px 0 0}
.home-stat-grid{align-items:stretch}
.stat-card.detail-stat{min-height:308px;display:flex;flex-direction:column;padding:20px 18px}
.stat-card.detail-stat strong{margin:8px 0 7px;font-size:30px}
.stat-details{display:grid;gap:5px;margin-top:11px;padding-top:12px;border-top:1px solid #eaf1f4}
.stat-detail{display:flex;justify-content:space-between;gap:6px;color:#688796;font-size:11px;line-height:1.35}
.stat-detail b{color:#284e61;white-space:nowrap;font-size:11px}
.stat-card.detail-stat>small{margin-top:auto;padding-top:10px}
.home-metric-grid .stat-card{min-height:142px}
.home-metric-grid .stat-card strong{font-size:25px;line-height:1.1;overflow-wrap:anywhere}
.metric-prefix{font-weight:600;color:#38aab8;font-size:.64em}
.home-metric-grid{margin-top:20px}
.home-main .dashboard-grid{margin-top:20px}
.ad-placement{background:#fff;border:1px dashed #c4d7de;border-radius:14px;min-width:0;overflow:hidden;text-align:center;color:#8ca2ac;box-shadow:0 10px 35px rgb(23 62 83 / .045)}
.ad-placement>span{display:block;padding:8px 10px;border-bottom:1px solid #eaf1f4;font-size:10px;letter-spacing:.1em;text-transform:uppercase;font-weight:800;color:#7795a2}
.ad-placement .ad-canvas{display:grid;place-items:center;min-height:140px;padding:15px;color:#9badb7;font-size:11px}
.ad-placement[data-place^="dashboard:"] .ad-canvas{min-height:112px}
.ad-placement ins.adsbygoogle{display:block;width:100%;min-height:100px}
.app-content>.ad-placement{margin:18px 0}
.home-ad-bottom{margin-top:18px}
.pdf-actions{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin:20px 0 0}
.pdf-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:45px;padding:11px 18px;border-radius:11px;background:#21a671;color:#fff;font-size:13px;font-weight:800;box-shadow:0 8px 20px #158d6230}
.pdf-button:hover{background:#17885d}
.pdf-button.full-pdf{background:#178567}
.profile-dialog{width:min(94vw,860px)}
.profile-dialog .modal-head p{margin:6px 0 0;color:#7e98a5;font-size:12px}
.profile-form-body{max-height:66vh;overflow-y:auto;padding:22px 28px 28px}
.profile-form-body h3{font-size:14px;color:#285168;margin:24px 0 12px;padding-bottom:8px;border-bottom:1px solid #e4edf1}
.profile-form-body h3:first-of-type{margin-top:14px}
.profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.profile-fields .full{grid-column:1/-1}
.profile-fields label,.profile-logo-row label{font-size:12px;font-weight:750;color:#426777}
.profile-fields input,.profile-fields select,.profile-fields textarea,.profile-logo-row input{display:block;width:100%;margin-top:6px;padding:10px 12px;border:1px solid #d9e7ec;border-radius:9px;background:#fcfefe;color:#24495c;font-size:13px}
.profile-fields textarea{resize:vertical}
.profile-fields a{display:inline-block;margin-top:5px;font-size:11px;color:#0a8aa3;text-decoration:underline}
.profile-logo-row{display:flex;align-items:center;gap:20px}
.profile-logo-row label{flex:1}
.profile-avatar{width:88px;height:88px;color:white}
.operation-choices{display:flex;gap:10px;flex-wrap:wrap}
.operation-choices label{padding:9px 12px;background:#eff8fa;border:1px solid #d5eaf0;border-radius:9px;color:#346476;font-size:12px;font-weight:750}
.operation-choices input{margin-right:8px;accent-color:#12aac0}
.profile-help{font-size:12px;color:#7995a2;line-height:1.5}
@media(max-width:1320px){.home-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1150px){.home-layout{grid-template-columns:1fr}}
@media(max-width:800px){.workspace.sidebar-collapsed{display:block}.sidebar{position:fixed;top:0;bottom:0;height:100vh;min-height:0;overflow-y:auto}.sidebar-toggle{display:none}.sidebar-ad-zone{display:none!important}}
@media(max-width:580px){.home-stat-grid,.home-metric-grid{grid-template-columns:1fr}.stat-card.detail-stat{min-height:0}.profile-fields{grid-template-columns:1fr}.profile-fields .full{grid-column:auto}.profile-form-body{padding:18px}.profile-logo-row{align-items:flex-start;flex-direction:column}.profile-avatar{width:76px;height:76px}}
@media print{.ad-placement,.sidebar-ad-zone,.home-ad-inline,.home-ad-bottom,.pdf-actions{display:none!important}}

/* A navegação usa grupos expansíveis sem trocar de página ao abrir um submenu. */
.side-nav{min-height:0}
.nav-group{display:grid;gap:2px}
.side-nav .nav-group-toggle{position:relative}
.nav-chevron{margin-left:auto;color:#89aebb;transition:transform .18s ease}
.nav-group.expanded .nav-chevron{transform:rotate(180deg)}
.nav-submenu{display:grid;gap:2px;padding:1px 0 6px 18px}
.nav-submenu .nav-child{min-height:35px;padding:8px 10px;font-size:12px;color:#9db8c7}
.nav-submenu .nav-child .nav-icon{width:12px;font-size:11px;color:#5ec3cf}
.nav-submenu .nav-child.active{background:#244b5e;color:#fff}
.sidebar-collapsed .nav-submenu,.sidebar-collapsed .nav-chevron{display:none!important}

.topbar .breadcrumb{min-width:0}
.topbar .breadcrumb strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-menu-wrap{position:relative}
.account-menu-button{display:flex;align-items:center;gap:6px;padding:3px 7px 3px 3px;border:1px solid rgb(255 255 255 / .4);border-radius:30px;background:rgb(255 255 255 / .09);color:#fff}
.account-menu-button:hover,.account-menu-button[aria-expanded="true"]{background:rgb(255 255 255 / .2)}
.account-menu-caret{font-size:14px;line-height:1}
.account-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:110;width:min(320px,calc(100vw - 24px));padding:9px;background:#fff;border:1px solid #d8e7ed;border-radius:14px;box-shadow:0 22px 55px rgb(9 40 57 / .22);color:#294d60}
.account-menu-profile{display:grid;gap:4px;padding:12px 12px 15px;border-bottom:1px solid #e6eef2;overflow-wrap:anywhere}
.account-menu-profile strong{font-size:14px;color:#173c50}
.account-menu-profile span{font-size:12px;color:#567687}
.account-menu-profile small{font-size:11px;color:#829ba8}
.account-menu-links{display:grid;gap:2px;padding-top:8px}
.account-menu-links button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;border-radius:8px;background:transparent;text-align:left;color:#2f6072;font-size:12px;font-weight:750}
.account-menu-links button:hover,.account-menu-links button.active{background:#edf7fa;color:#0b8199}
.account-menu-links .nav-icon{width:20px;color:#15a6bb;text-align:center}
.account-menu-links .nav-text{color:inherit}
.top-messages{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 10px;border:1px solid rgb(255 255 255 / .44);border-radius:18px;background:rgb(255 255 255 / .12);color:#fff;font-size:12px;font-weight:750;white-space:nowrap}
.top-messages[hidden]{display:none}
.top-messages:hover,.top-messages.active{background:rgb(255 255 255 / .26)}
.top-messages span[aria-hidden]{font-size:17px;line-height:1}
.account-self-form{display:grid;gap:12px;margin:0 0 18px}
.account-self-form label{display:grid;gap:6px;color:#315b70;font-size:12px;font-weight:750}
.account-self-form input{width:100%;min-height:42px;padding:10px 12px;border:1px solid #d7e5eb;border-radius:9px;background:#fcfefe;color:#24495c}
.account-self-form small,.account-self-note{color:#718c99;font-size:11px;line-height:1.5}
.account-self-form button{justify-self:start}
.panel-body > button[data-edit-profile],.panel-body > button[data-view="billing"]{margin:0 8px 8px 0}

.record-detail-dialog{width:min(95vw,900px)}
.record-detail-dialog .modal-body{max-height:69vh;grid-template-columns:repeat(2,minmax(0,1fr))}
.record-form-section{grid-column:1/-1;margin:16px 0 0;padding:0 0 8px;border-bottom:1px solid #e2edf1;color:#315b70;font-size:14px}
.record-form-section:first-child{margin-top:0}
.record-fixed-category{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid #cae8ec;border-radius:10px;background:#f2fbfc;color:#3c7180;font-size:12px}
.record-fixed-category strong{color:#186f85;font-size:13px}
@media(max-width:800px){.account-menu{position:fixed;right:12px;top:66px}.nav-submenu{padding-left:16px}}
@media(max-width:580px){.record-detail-dialog .modal-body{grid-template-columns:1fr}.record-form-section,.record-fixed-category{grid-column:1}.account-menu{top:59px}.topbar .breadcrumb{flex:1;margin-right:10px}}
@media(max-width:720px){.top-messages-label{display:none}.top-messages{padding:6px 9px}}
@media(prefers-reduced-motion:reduce){.nav-chevron{transition:none}}

.report-source-note{margin:0 0 18px}
.team-pagination{display:flex;justify-content:center;padding:15px}
.team-pagination:empty{display:none}
.report-kpi-grid{margin-bottom:20px}
.report-kpi-grid .stat-card{min-height:140px}
.report-kpi-grid .stat-card strong{font-size:24px;overflow-wrap:anywhere}
.report-panel{margin-bottom:20px}
.report-filters{padding:15px 20px 3px;margin:0}
.report-filters select{min-width:165px;flex:1}
.report-dashboard-grid{margin:0 0 20px}
.report-disclaimer{margin:4px 0 0;color:#7892a0;font-size:12px;line-height:1.5}
.consolidated-chart{display:flex;align-items:end;gap:8px;min-height:230px;padding:8px 2px 0;border-bottom:1px solid #dce8ec;overflow-x:auto}
.consolidated-month{min-width:33px;flex:1;display:grid;grid-template-rows:190px 24px;align-items:end;text-align:center;color:#7d96a3;font-size:10px}
.consolidated-bars{display:flex;align-items:end;justify-content:center;gap:3px;height:100%;border-bottom:1px solid #e6eef2}
.consolidated-bars i{display:block;width:min(40%,17px);min-height:1px;border-radius:4px 4px 0 0}
.consolidated-bars .income{background:#2ec98b}
.consolidated-bars .expense{background:#9079d3}
@media(max-width:580px){.report-filters{padding:14px}.report-filters select{min-width:calc(50% - 5px)}.consolidated-chart{gap:4px}.report-kpi-grid .stat-card strong{font-size:21px}}

/* Consolidado: sete blocos com proveniência e leitura progressiva. */
.report-period-form{display:flex;align-items:end;gap:11px;flex-wrap:wrap;margin:0 0 20px;padding:17px 19px;background:#fff;border:1px solid #dceaf0;border-radius:14px;box-shadow:0 10px 35px rgb(23 62 83 / .045)}
.report-period-form label{display:grid;gap:6px;min-width:150px;color:#59798a;font-size:11px;font-weight:800}
.report-period-form input{width:100%;min-height:39px;padding:8px 10px;border:1px solid #d7e6ed;border-radius:9px;color:#254a5e;background:#fbfefe;font:inherit}
.report-period-form button{min-height:39px}
.report-section{margin:0 0 22px;overflow:hidden;scroll-margin-top:24px}
.report-section-title{display:flex;align-items:center;gap:13px}
.report-section-title>span{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:10px;background:#e6f8fa;color:#0d9eb3;font-size:11px;font-weight:900;letter-spacing:.08em}
.report-section-title h2{margin:0;color:#173c50;font-size:17px}
.report-section-title p{margin:4px 0 0;max-width:780px;color:#7791a0;font-size:12px;line-height:1.45}
.report-section-body{padding:20px}
.report-section .report-kpi-grid{margin-bottom:16px}
.report-section .report-kpi-grid .stat-card{min-height:130px}
.report-scope-grid,.report-quality-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.report-scope-grid>div,.report-quality-grid>div{display:grid;align-content:start;gap:7px;min-width:0;padding:17px;border:1px solid #dfecef;border-radius:12px;background:#f9fcfd}
.report-scope-grid small,.report-quality-grid small,.report-source-numbers small{color:#71909e;font-size:10px;font-weight:850;letter-spacing:.055em}
.report-scope-grid strong,.report-quality-grid strong,.report-source-numbers strong{color:#1b465a;font-size:20px;line-height:1.18;overflow-wrap:anywhere}
.report-scope-grid span,.report-quality-grid span,.report-source-numbers span{color:#819aa6;font-size:11px;line-height:1.5}
.report-scope-grid.report-efficiency-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.report-source-warning,.report-alert{padding:11px 13px;border-radius:9px;background:#f0f9fa;color:#437384;font-size:12px;line-height:1.5}
.report-alert{background:#fff4e8;color:#996120}
.report-method-inline{margin:14px 0 0;color:#7892a0;font-size:11px;line-height:1.55}
.report-chart-panel{margin-bottom:17px;padding:16px;border:1px solid #e3eef2;border-radius:12px;background:#fff}
.report-chart-panel h3,.report-source-pair h3,.report-subpanel h3,.report-table-heading h3{margin:0 0 10px;color:#275168;font-size:13px}
.report-reconciliation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.report-reconciliation>div{display:grid;gap:5px;padding:14px;border-radius:10px;background:#eff7f9}
.report-reconciliation span{font-size:11px;color:#6d8a98}
.report-reconciliation strong{font-size:17px;color:#245268;overflow-wrap:anywhere}
.report-review-panel{margin-top:20px;padding:17px;border:1px solid #efd6ad;border-radius:12px;background:#fffaf2}
.report-review-panel h3{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 8px;color:#77501d;font-size:15px}
.report-review-panel h3 span{font-size:11px;font-weight:700;color:#9b7548}
.report-review-panel h4{margin:17px 0 9px;color:#77501d;font-size:12px}
.report-review-panel>p{margin:0 0 13px;color:#8c6b43;font-size:11px;line-height:1.55}
.report-review-panel .table-wrap+.report-method-inline{margin-top:10px}
.report-source-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:17px}
.report-source-pair>div{min-width:0;padding:17px;border:1px solid #e0ecf1;border-radius:12px;background:#fff}
.report-source-pair .consolidated-chart{min-height:170px}
.report-source-pair .consolidated-month{grid-template-rows:130px 25px}
.report-source-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
.report-source-numbers>div{display:grid;gap:5px;padding:12px;border-radius:10px;background:#f5fafb}
.report-source-numbers strong{font-size:17px}
.report-section .report-filters{padding:13px 0 0;margin:15px 0 0;border-top:1px solid #e8f0f3}
.report-table-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:15px 0 6px}
.report-table-heading h3{margin:0}
.report-quality-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.report-subpanel{margin-top:18px;padding-top:18px;border-top:1px solid #e8f0f3}
.report-subpanel>p{color:#7993a0;font-size:11px}
.report-method-list{display:grid;gap:10px;margin:0;padding-left:19px;color:#5f7c8b;font-size:12px;line-height:1.55}
.report-method-list strong{color:#2b5669}
.report-section .table-wrap{max-width:100%;overflow-x:auto}
.report-section .data-table th,.report-section .data-table td{white-space:normal;min-width:85px}
@media(max-width:1100px){.report-scope-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-source-pair{grid-template-columns:1fr}}
@media(max-width:700px){.report-period-form{padding:14px}.report-period-form label{flex:1;min-width:135px}.report-scope-grid,.report-scope-grid.report-efficiency-grid,.report-quality-grid,.report-reconciliation{grid-template-columns:1fr}.report-source-numbers{grid-template-columns:1fr}.report-section-body{padding:14px}.report-section-title{align-items:start}}
@media print{
  body:has(.report-section) .sidebar,body:has(.report-section) .topbar,
  body:has(.report-section) .report-period-form,body:has(.report-section) .report-print-button,
  body:has(.report-section) .report-filters{display:none!important}
  body:has(.report-section) .workspace{display:block!important}
  body:has(.report-section) .main-area{display:block!important;width:100%!important}
  body:has(.report-section) .app-content{max-width:none!important;width:100%!important;padding:0!important}
  .report-section{box-shadow:none!important;break-inside:avoid;border:1px solid #dce8ed}
  .report-section-body{padding:14px}
  .report-source-pair,.report-scope-grid,.report-quality-grid{break-inside:avoid}
  .report-section .table-wrap{overflow:visible}
  .report-section .data-table{font-size:9px}
}

/* Fila histórica em leitura, separada dos lançamentos aceitos do CRM. */
.review-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}
.review-overview>div{display:grid;gap:7px;padding:17px 19px;border:1px solid #dceaf0;border-radius:13px;background:#fff;box-shadow:0 10px 35px rgb(23 62 83 / .045)}
.review-overview span{color:#708d9b;font-size:11px;font-weight:800}
.review-overview strong{color:#1b465a;font-size:27px;line-height:1.1}
.review-panel .panel-header p{max-width:850px;margin:6px 0 0;color:#7791a0;font-size:12px;line-height:1.5}
.review-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 20px;border-top:1px solid #e8f0f3;border-bottom:1px solid #e8f0f3}
.review-toolbar label{color:#557989;font-size:12px;font-weight:800}
.review-toolbar select{min-width:235px;max-width:100%;min-height:40px;padding:8px 11px;border:1px solid #d7e6ed;border-radius:9px;background:#fbfefe;color:#254a5e}
.review-toolbar [role="status"]{margin-left:auto;color:#708d9b;font-size:12px}
.review-table{min-width:980px}
.review-table th{font-size:11px}
.review-table td{vertical-align:top;line-height:1.4}
.review-table td:first-child{max-width:270px;overflow-wrap:anywhere}
.review-table td:nth-child(6){min-width:245px}
.review-table td:last-child{min-width:110px}
.review-muted{display:block;margin-top:3px;color:#829ba8;font-size:11px}
.review-status{display:inline-block;white-space:nowrap;background:#fff0d6;color:#835613}
.review-status-progress{background:#e7f6f9;color:#187c90}
.review-edit-button{min-height:37px;padding:8px 12px}
.review-metrics{display:grid;gap:5px;margin:0;padding:0;list-style:none}
.review-metrics li{display:flex;justify-content:space-between;gap:10px;font-size:11px}
.review-metrics li span{color:#637f8d}
.review-metrics li strong{text-align:right;color:#244d60;white-space:nowrap}
.review-more-metrics{margin-top:7px}
.review-more-metrics summary{width:fit-content;color:#0c859c;font-size:11px;font-weight:750;cursor:pointer}
.review-more-metrics .review-metrics{margin-top:8px}
.review-error{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 20px;padding:12px 14px;border:1px solid #efd6ad;border-radius:10px;background:#fffaf2;color:#77501d;font-size:12px}
.review-placeholder{padding:24px 20px;color:#718c9a;font-size:13px}
.review-pagination{display:flex;justify-content:center;padding:17px}
.review-pagination:empty{display:none}
@media(max-width:700px){.review-toolbar{align-items:stretch;flex-direction:column;padding:14px}.review-toolbar select{width:100%;min-width:0}.review-toolbar [role="status"]{margin-left:0}.review-overview strong{font-size:23px}.review-error{align-items:stretch;flex-direction:column;margin:14px}}

/* A edição mantém a proveniência e as métricas originais à vista. */
.review-editor-dialog{width:min(96vw,940px)}
.review-editor-dialog .modal-head{position:sticky;top:0;z-index:1;background:#fff}
.review-editor-scroll{max-height:calc(90vh - 170px);overflow-y:auto;padding:20px 28px 24px}
.review-editor-note{margin:0 0 18px;padding:12px 14px;border:1px solid #cce8ed;border-radius:10px;background:#eff9fa;color:#416e80;font-size:12px;line-height:1.55}
.review-draft-meta{margin:-8px 0 16px;color:#7893a0;font-size:11px}
.review-source-box{padding:17px;border:1px solid #dce8ec;border-radius:12px;background:#f8fbfc}
.review-source-box h3{display:flex;align-items:baseline;gap:10px;margin:0 0 13px;color:#285168;font-size:14px}
.review-source-box h3 small{color:#7893a0;font-size:10px;font-weight:700}
.review-source-box dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 18px;margin:0 0 14px}
.review-source-box dl>div{min-width:0}
.review-source-box dt{color:#829ba8;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.review-source-box dd{margin:3px 0 0;color:#31556a;font-size:12px;overflow-wrap:anywhere}
.review-source-box h4{margin:15px 0 9px;color:#285168;font-size:12px}
.review-source-box .review-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 18px}
.review-source-box .review-metrics li{min-width:0;align-items:baseline}
.review-source-box .review-metrics strong{white-space:normal}
.review-source-preview{margin-top:16px;padding-top:12px;border-top:1px solid #e0eaee}
.review-source-preview summary{width:fit-content;color:#0c859c;font-size:12px;font-weight:800;cursor:pointer}
.review-source-preview>p{margin:9px 0;color:#7993a0;font-size:11px;line-height:1.5}
.review-source-preview ol{display:grid;gap:7px;margin:11px 0 0;padding:0;list-style:none}
.review-source-preview li{display:grid;grid-template-columns:minmax(90px,145px) minmax(0,1fr);gap:10px;padding:7px 9px;border-radius:7px;background:#fff;font-size:11px}
.review-source-preview li span{color:#73909e;font-weight:800}
.review-source-preview li strong{color:#31556a;font-weight:600;overflow-wrap:anywhere;white-space:pre-wrap}
.review-source-preview .review-source-truncated{color:#976326;font-weight:750}
.review-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:19px}
.review-form-section{grid-column:1/-1;margin:12px 0 0;padding-bottom:8px;border-bottom:1px solid #e2edf1;color:#315b70;font-size:14px}
.review-form-section:first-child{margin-top:0}
.review-editor-fields label,.review-extra-row label,.review-reason-label{display:block;min-width:0;color:#466777;font-size:12px;font-weight:800}
.review-editor-fields label.full{grid-column:1/-1}
.review-editor-fields input,.review-editor-fields select,.review-editor-fields textarea,.review-extra-row input,.review-reason-label textarea{display:block;width:100%;margin-top:7px;padding:11px 12px;border:1px solid #dce8ed;border-radius:9px;background:#fcfefe;color:#24495c;font-size:13px}
.review-editor-fields textarea,.review-reason-label textarea{min-height:88px;resize:vertical}
.review-extra-section{margin:22px 0 20px;padding-top:18px;border-top:1px solid #e2edf1}
.review-extra-section h3{margin:0 0 5px;color:#315b70;font-size:14px}
.review-extra-section>p{margin:0 0 13px;color:#7993a0;font-size:11px}
#review-extra-list{display:grid;gap:10px;margin-bottom:12px}
.review-extra-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) auto;align-items:end;gap:10px;padding:12px;border:1px solid #e5eef1;border-radius:10px;background:#f9fcfd}
.review-extra-row button{min-height:39px;padding:8px 11px}
.review-reason-label{margin-top:18px}
.review-editor-feedback{margin-top:12px}
.review-editor-feedback p{margin:0 0 10px;padding:11px 13px;border-radius:9px;background:#fff4e8;color:#885921;font-size:12px;line-height:1.5}
.review-editor-dialog .modal-foot{position:sticky;bottom:0;background:#fff}
.review-editor-load-error{padding:24px 28px;color:#805521;font-size:13px}
.review-editor-load-error p{margin-bottom:14px}
@media(max-width:700px){.review-editor-dialog{width:min(98vw,940px)}.review-editor-scroll{padding:16px;max-height:calc(90vh - 150px)}.review-source-box dl,.review-source-box .review-metrics,.review-editor-fields{grid-template-columns:1fr}.review-extra-row{grid-template-columns:1fr}.review-editor-dialog .modal-head,.review-editor-dialog .modal-foot{padding-left:16px;padding-right:16px}.review-form-section,.review-editor-fields label.full{grid-column:1}}

/* Apoio voluntário no topo, com os dados Pix fornecidos pela integração. */
.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:16px}
.topbar-left{display:flex;align-items:center;gap:12px;min-width:0}
.topbar-left .breadcrumb{min-width:0;overflow:hidden;white-space:nowrap}
.topbar .top-actions{grid-column:3;justify-self:end}
.support-appeal{grid-column:2;display:flex;align-items:center;justify-self:center;gap:11px;min-width:0;min-height:36px;padding:8px 13px;border:1px solid #ffd18b;border-radius:9px;background:#ffbf69;color:#663506;font-size:11px;font-weight:800;white-space:nowrap;box-shadow:0 4px 12px #8d4b1533}
.support-message{overflow:hidden;text-overflow:ellipsis}
.support-label{flex:none;padding-left:11px;border-left:1px solid #a56525;font-weight:850}
#support-cta:hover{background:#ffcf89}
#support-cta:focus-visible,.support-dialog button:focus-visible,.support-dialog input:focus-visible{outline:3px solid #74400c;outline-offset:2px}
.support-dialog{width:min(94vw,500px);color:#24495c}
.support-dialog-body{max-height:calc(90vh - 92px);overflow:auto;padding:22px 28px 27px}
.support-dialog-body>p:first-child{margin:0 0 16px;color:#5b7888;font-size:13px;line-height:1.55}
.support-pix-status{margin:0;padding:12px 14px;border:1px solid #dce9ee;border-radius:9px;background:#f4f9fa;color:#597888;font-size:12px;line-height:1.5}
.support-pix-status:empty{display:none}
.support-pix-content{display:grid;gap:13px}
.support-pix-content[hidden],.support-qr-panel[hidden]{display:none}
.support-pix-content>p:first-child{margin:0;color:#5b7888;font-size:12px;line-height:1.5}
.support-pix-content label{justify-self:stretch;color:#315b70;font-size:12px;font-weight:800}
#support-pix-code{width:100%;min-height:43px;margin-top:-6px;padding:10px 12px;border:1px solid #d7e5eb;border-radius:9px;background:#f8fbfc;color:#24495c;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}
.support-qr-panel{display:grid;min-width:0;gap:11px;justify-items:stretch}
.support-qr-image{display:grid;place-items:center;justify-self:center;box-sizing:border-box;width:min(100%,280px);min-width:0;aspect-ratio:1;padding:12px;border:1px solid #dce9ee;border-radius:12px;background:#fff}
.support-qr-image canvas{display:block;width:100%!important;height:auto!important;max-width:100%;image-rendering:pixelated}
.support-qr-panel>p{margin:0;color:#5b7888;font-size:12px;line-height:1.5;text-align:center}
#support-pix-copy-paste{display:block;width:100%;min-height:70px;max-height:110px;margin-top:7px;padding:10px 12px;resize:vertical;border:1px solid #d7e5eb;border-radius:9px;background:#f8fbfc;color:#24495c;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.support-key-fallback{padding:11px 13px;border:1px solid #dce9ee;border-radius:9px;background:#f8fbfc}
.support-key-fallback summary{color:#315b70;font-size:12px;font-weight:800;cursor:pointer}
.support-key-fallback>p{margin:11px 0;color:#5b7888;font-size:12px;line-height:1.5}
.support-key-fallback label{display:block;margin:10px 0;color:#315b70;font-size:12px;font-weight:800}
.support-key-fallback #support-pix-code{margin:0 0 10px}
.support-copy-button{width:100%;min-height:42px;padding:10px 14px;border:0;border-radius:9px;background:#cf6d17;color:#fff;font-size:12px;font-weight:800}
.support-copy-button:hover:not(:disabled){background:#aa540b}
.support-copy-button:disabled{cursor:not-allowed;opacity:.55}
.support-copy-status{min-height:1em;margin:0;color:#3c7180;font-size:11px;line-height:1.4;text-align:center}
@media(max-width:1250px){.support-message{display:none}.support-label{padding-left:0;border-left:0}}
@media(max-width:800px){.topbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:8px}.topbar-left{gap:7px}}
@media(max-width:580px){.topbar{padding-right:12px;padding-left:12px}.topbar-left .breadcrumb{max-width:72px}.topbar .top-actions{gap:0}.support-dialog .modal-head{padding:20px 18px 15px}.support-dialog-body{padding:18px}}
@media(max-width:420px){.topbar-left .breadcrumb{display:none}#support-cta{padding:8px 10px;font-size:10px}}
/* Keep action feedback in the modal top layer, above its opaque backdrop. */
dialog > #toast{position:absolute;top:76px;right:16px;z-index:2000;max-width:min(420px,calc(100% - 32px));max-height:min(160px,30vh);overflow:auto;line-height:1.45;overflow-wrap:anywhere}
@media(max-width:580px){dialog > #toast{top:66px;left:12px;right:12px;max-width:none}}
@media print{.support-appeal,.support-dialog{display:none!important}}
