:root{font-family:Segoe UI,Arial,sans-serif;color:#eee;background:#0c0d10;--gold:#d9aa53}*{box-sizing:border-box}body{margin:0}header{background:#060606;border-bottom:1px solid #715523;padding:20px 28px;display:flex;justify-content:space-between;align-items:center;gap:20px}header strong{font-size:26px;letter-spacing:3px;color:var(--gold)}header small{display:block;color:#ddd;letter-spacing:3px}main{max-width:1320px;margin:auto;padding:24px}h1{font-size:25px;margin:4px 0 7px}p,.sub{color:#aaa}.gold{color:var(--gold)}nav{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.tab,button,select,input{background:#1b1d22;border:1px solid #444;color:#eee;border-radius:8px;padding:12px;font-size:14px}.tab,button{cursor:pointer}.tab.active,.primary{background:var(--gold);border-color:var(--gold);color:#181818;font-weight:700}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:22px 0}.card,.panel{background:#191b20;border:1px solid #34363c;border-radius:13px;padding:20px}.card span{color:#aaa;font-size:13px}.card b{display:block;font-size:27px;color:var(--gold);margin-top:12px}.card em{font-size:12px;color:#aaa;font-style:normal}.layout{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel h2{font-size:17px;margin:0 0 16px}.bar{display:flex;height:20px;border-radius:12px;overflow:hidden;background:#41444b}.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:#bbb;margin-top:15px}.alert{background:#30261f;color:#eed5af;border:1px solid #5a4734;padding:13px;border-radius:9px;margin:7px 0;font-size:13px}.alert b{color:#fff}.filters{display:flex;gap:9px;flex-wrap:wrap}.filters input{min-width:220px;flex:1}.tablewrap{overflow:auto;margin-top:15px}#rows td:nth-child(2),#lateRows td:nth-child(2),#verificationRows td:nth-child(2),#unitRows td:nth-child(4){min-width:175px;max-width:280px;white-space:normal;line-height:1.45}table{width:100%;border-collapse:collapse;font-size:13px}th,td{padding:12px;border-bottom:1px solid #333;text-align:left;white-space:nowrap}th{color:#e7ba63}footer{text-align:center;color:var(--gold);padding:35px;letter-spacing:3px;font-size:12px}.note{background:#242019;border-left:3px solid var(--gold);padding:13px;margin:15px 0;color:#d4c4a4;font-size:13px}.hidden{display:none}.status{border-radius:12px;padding:4px 8px;background:#303236}.muted{color:#999}a{color:var(--gold)}.cards-general{grid-template-columns:minmax(220px,1fr)}.status-overview{margin-top:18px}.verification-header{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.verification-header h2{margin:0 0 8px}.verification-header p{margin:0 0 14px}.verification-cards{grid-template-columns:repeat(3,minmax(0,1fr));margin:16px 0 22px}.verification-cards .card b{font-size:24px}.verification-reason{white-space:normal;min-width:310px;line-height:1.5}.verification-header button{white-space:nowrap}@media(max-width:850px){.verification-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.verification-cards{grid-template-columns:1fr}}.report-dates{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0 18px}.report-dates span{padding:9px 13px;border:1px solid #3f3728;border-radius:8px;background:#1c1b1a;color:#c5c5c5;font-size:13px}.report-dates strong{color:#e4ba6d;margin-left:5px}.dashboard-actions,.save-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.save-fields{display:grid;grid-template-columns:1.5fr 1.2fr 0.7fr;gap:14px}.save-fields label{display:flex;flex-direction:column;gap:8px;color:#c6b891;font-size:13px}.save-fields input{width:100%}.saved-panel{margin-top:18px}.saved-list{display:flex;flex-direction:column;gap:9px;margin-top:15px}.saved-row{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #40382a;border-radius:10px;background:#202126;padding:16px}.saved-meta{display:flex;flex-direction:column;gap:7px}.saved-meta strong{color:#e7ba63;font-size:15px}.saved-meta span{font-size:13px;color:#c1c1c4}.saved-meta small{color:#92949a}.saved-actions{display:flex;gap:8px}@media(max-width:820px){.save-fields{grid-template-columns:1fr}.saved-row{align-items:flex-start;flex-direction:column}}.cancel-breakdown{border-top:1px solid #494047;padding:12px 18px 16px;background:#211b20}.cancel-breakdown-title{font-size:12px;letter-spacing:.25px;color:#dfa7a5;font-weight:700;margin:4px 0 10px}.cancel-type{background:#1a191d;border:1px solid #4a383d;border-radius:9px;padding:10px 11px;margin-top:9px}.cancel-type[hidden]{display:none}.cancel-type-heading{display:flex;justify-content:space-between;align-items:center;gap:9px;font-size:12px;color:#ddd}.cancel-type-heading strong{color:#efa9a8;font-size:21px;font-variant-numeric:tabular-nums}.cancel-type-amounts{display:flex;flex-direction:column;gap:6px;border-top:1px solid #3a3035;margin-top:8px;padding-top:9px}.cancel-type-amounts span{display:flex;justify-content:space-between;gap:7px;font-size:11px;color:#aeb0b5}.cancel-type-amounts b{font-weight:600;color:#ede2dc;white-space:nowrap}@media(max-width:1100px){.cancel-type-amounts span{flex-direction:column;gap:3px}}/* Layout executivo dos status: duas colunas e dois níveis */
.cards-status{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start;gap:16px!important}
.cards-status>.card{height:auto!important;min-height:0}
.cards-status .status-finance-card{align-self:start}
.cards-status .cancel-composition{padding:0!important;overflow:hidden;min-width:0;border-top:3px solid #b36a6a}
.cancel-composition .cancel-breakdown{background:transparent;border:0;padding:18px}
.cancel-composition .cancel-breakdown-title{font-size:14px;margin:0 0 15px;color:#e6b4b1}
.cancel-composition .cancel-type{padding:14px;margin-top:0}
.cancel-composition .cancel-type-heading{font-size:13px}
.cancel-composition .cancel-type-amounts span{flex-direction:row;align-items:baseline;flex-wrap:wrap}
.cancel-composition .cancel-type-amounts b{font-size:13px}
@media(min-width:1000px){.cancel-composition .cancel-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cancel-composition .cancel-breakdown-title{grid-column:1/-1;margin-bottom:3px}.cancel-composition .cancel-type[hidden]{display:none}}
@media(max-width:700px){.cards-status{grid-template-columns:1fr!important}.cancel-composition .cancel-type+.cancel-type{margin-top:10px}}
.status-finance-card{padding:0!important;overflow:hidden;min-width:0}.status-card-top{padding:20px 20px 16px}.status-card-top>span{display:block;color:#c2c5cc;font-weight:600}.status-card-top>b{display:block;font-size:32px;margin-top:10px}.status-card-top>em{display:block;margin-top:3px}.status-card-metrics{border-top:1px solid #373941;background:#14161a;padding:8px 20px 14px}.status-metric{display:flex;gap:8px;justify-content:space-between;align-items:baseline;padding:10px 0;border-bottom:1px solid #303238}.status-metric:last-child{border-bottom:0}.status-metric span{font-size:12px;color:#b8bdc4}.status-metric strong{font-size:15px;font-variant-numeric:tabular-nums;color:#eee;text-align:right;white-space:nowrap}.kpi-normal .status-metric strong{color:#a6d2d8}.kpi-paid .status-metric strong{color:#e0b45c}.kpi-cancel .status-metric strong{color:#dfaca9}@media(max-width:1150px){.status-metric{flex-direction:column;gap:3px}.status-metric strong{font-size:14px}}.finance-caveat{font-size:12px;line-height:1.6;padding:13px 15px;margin-top:14px;border-left:3px solid #a47d45;background:#1f1c18;border-radius:6px}.finance-caveat strong{color:#e1bc76}.unit-summary{margin:18px 0 25px;border-color:#635030}.unit-summary .section-heading{gap:10px;flex-wrap:wrap}.unit-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:15px 0}.unit-summary-grid>div{background:#121519;border:1px solid #34383c;border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:9px}.unit-summary-grid span{font-size:12px;color:#b2b5b8}.unit-summary-grid strong{font-size:20px;color:#dcb567;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.unit-history{white-space:normal;min-width:250px;line-height:1.55}.unit-summary p{font-size:12px;line-height:1.6}@media(max-width:1100px){.unit-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.unit-summary-grid{grid-template-columns:1fr}}.installment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 8px}.installment-summary>div{display:flex;flex-direction:column;gap:8px;background:#16191d;border:1px solid #3b3c40;border-top:2px solid #d1a34d;border-radius:10px;padding:14px}.installment-summary span{font-size:12px;color:#afb2bb}.installment-summary strong{font-size:22px;color:#e2ba70;font-variant-numeric:tabular-nums}.installment-summary+#parcelSummaryNote{font-size:12px;margin:4px 0 14px}@media(max-width:650px){.installment-summary{grid-template-columns:1fr}}.evo-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.evo-kpis .card b{font-size:23px}.evo-chart{margin:20px 0;padding:16px;background:#111318;border:1px solid #32363c;border-radius:12px;max-height:570px;overflow:auto}.evo-bar-line{display:grid;grid-template-columns:75px minmax(0,1fr) 42px;gap:12px;align-items:center;min-height:28px;margin:7px 0}.evo-month{font-size:12px;color:#aeb0b8}.evo-track{height:13px;border-radius:7px;background:#292e35;overflow:hidden}.evo-fill{height:100%;border-radius:7px;background:linear-gradient(90deg,#a97725,#e1b35e)}.evo-bar-line>strong{font-size:12px;font-variant-numeric:tabular-nums;color:#e0b35a;text-align:right}@media(max-width:1000px){.evo-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.evo-kpis{grid-template-columns:1fr}}.aging-section{margin:22px 0;border-top:1px solid #34363c;padding-top:20px}.aging-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:15px 0}.aging-card{border:1px solid #544637;border-top:3px solid #c69851;border-radius:11px;background:#14171c;padding:15px 11px;min-width:0;display:flex;flex-direction:column;gap:10px}.aging-card>span{color:#dab776;font-size:13px;font-weight:700}.aging-card strong{font-size:19px;line-height:1.4;color:#eee;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.aging-card small{font-size:11px;color:#a9acb2}.aging-section>#agingNote{line-height:1.7;font-size:12px;background:#201e1a;border-left:3px solid #c69851;padding:12px;border-radius:6px}@media(max-width:1150px){.aging-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.aging-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:440px){.aging-cards{grid-template-columns:1fr}}.kpi-group{margin:27px 0 31px}.section-heading{border-bottom:1px solid #37322b;padding:0 0 12px;margin-bottom:15px;display:flex;align-items:center;justify-content:space-between}.section-heading h2{font-size:17px;font-weight:700;letter-spacing:.2px;color:#e0b45c;margin:0 0 4px}.section-heading p{font-size:12px;margin:0;color:#94979d}.kpi-group .cards{margin:0}.cards-general{grid-template-columns:repeat(2,minmax(0,1fr))}.cards-status,.cards-financial{grid-template-columns:repeat(3,minmax(0,1fr))}.cards .card{min-height:116px}.cards .kpi-cancel{border-top:3px solid #b36a6a}.cards .kpi-cancel b{color:#dd9996}.cards .kpi-normal{border-top:3px solid #769aa3}.cards .kpi-normal b{color:#9ac6cc}.cards .kpi-paid{border-top:3px solid #d9aa53}.cards .kpi-late{border-top:3px solid #c58e52}.cards .kpi-late b{font-size:25px}@media(max-width:850px){.cards-status,.cards-financial{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.cards-status,.cards-financial,.cards-general{grid-template-columns:1fr}}@media(max-width:850px){.cards{grid-template-columns:repeat(2,1fr)}.layout{grid-template-columns:1fr}}@media(max-width:500px){.cards{grid-template-columns:1fr}header{padding:14px}main{padding:15px}}@media print{body{background:#fff;color:#111}.panel,.card{background:#fff;border-color:#bbb}.filters,nav,button,.note{display:none!important}.card b{color:#94702d}th{color:#754d14}}
/* TW: comportamento de pagamento por cliente */
.pay-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0 10px}
.pay-metric{display:flex;flex-direction:column;gap:10px;background:#15171c;border:1px solid #45403a;border-top:3px solid #cba354;border-radius:11px;padding:16px;min-width:0}
.pay-metric>span{font-size:13px;color:#d4b578;font-weight:600}
.pay-metric>strong{font-size:21px;color:#f1d196;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.pay-metric>small{font-size:11px;line-height:1.6;color:#b8b9be}
.pay-early{border-top-color:#6ba7a8}.pay-early>strong{color:#a3ced0}
.pay-ontime{border-top-color:#d3ae5f}.pay-ontime>strong{color:#edc57d}
.pay-late{border-top-color:#bc7774}.pay-late>strong{color:#e4a19c}
.pay-table th,.pay-table td{white-space:nowrap}
.pay-table th:first-child,.pay-table td:first-child{min-width:210px;max-width:310px;white-space:normal}
.pay-code{display:block;color:#949aa3;margin-top:5px}
#payCoverage{font-size:12px;line-height:1.6;margin:12px 0}
.pay-detail{margin-top:20px;border-top:1px solid #51432f;padding-top:18px}
.pay-detail .section-heading{flex-wrap:wrap;gap:12px}
.pay-detail-button{white-space:nowrap;padding:8px 11px}
@media(max-width:1120px){.pay-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.pay-overview{grid-template-columns:1fr}}
/* Contratos de um mesmo cliente: exibição automática logo após o resumo */
.pay-client-row{background:#1c1e23}
.pay-client-row td:first-child b{color:#e9c176}
.pay-inline-detail-row>td{padding:0 12px 16px 24px!important;border-bottom:2px solid #534a39}
.pay-inline-detail{padding:13px 16px 17px;border-left:3px solid #d9aa53;border-radius:0 8px 8px 0;background:#101316}
.pay-inline-title{font-size:13px;font-weight:700;color:#d9aa53;margin:1px 0 10px}
.pay-inline-detail .tablewrap{margin:0;overflow-x:auto}
.pay-child-table{font-size:12px}
.pay-child-table th{font-size:11px;color:#bfc6ce;font-weight:600;background:#1b1e24}
.pay-child-table td,.pay-child-table th{padding:10px 12px;white-space:nowrap}
.pay-child-table tbody td:first-child{color:#f4d08a}
.pay-child-table tr:last-child td{border-bottom:none}
.pay-auto-detail{color:#d6b979;font-size:11px;font-weight:600;white-space:nowrap}
/* v3.5 - resumo de cliente compacto e detalhes sob demanda */
.pay-table{min-width:1450px;table-layout:auto}
.pay-table>thead>tr>th,.pay-client-row>td{vertical-align:middle;text-align:right;white-space:nowrap}
.pay-table>thead>tr>th:first-child,.pay-client-row>td:first-child{text-align:left;white-space:normal;min-width:190px}
.pay-table>thead>tr>th:last-child,.pay-client-row>td:last-child{min-width:128px;text-align:center}
.pay-client-row>td{font-variant-numeric:tabular-nums}
.pay-expand-btn{font-size:12px!important;border-color:#7c6334!important;background:#292315!important;color:#f1c87f!important;padding:8px 11px!important;white-space:nowrap;min-width:115px}
.pay-expand-btn:hover{background:#43351d!important}
.pay-inline-detail-row>td{max-width:0;min-width:0;box-sizing:border-box;overflow:hidden;padding:0 10px 14px 16px!important}
.pay-inline-detail{max-width:100%;box-sizing:border-box;overflow:hidden}
.pay-detail-scroll{max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain}
.pay-child-table{width:100%;min-width:1360px;table-layout:fixed;border-collapse:collapse}
.pay-child-table td,.pay-child-table th{box-sizing:border-box;text-align:right;white-space:nowrap;padding:10px 8px}
.pay-child-table td:first-child,.pay-child-table th:first-child,
.pay-child-table td:nth-child(2),.pay-child-table th:nth-child(2),
.pay-child-table td:nth-child(3),.pay-child-table th:nth-child(3){text-align:left}
.pay-child-table th{font-size:11px;line-height:1.4}
/* v3.6: navegação lateral fixa durante rolagem e cabeçalhos persistentes */
main{max-width:1800px;width:100%;padding:24px clamp(14px,2vw,30px)}
.tw-workspace{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px;align-items:start;margin-top:18px}
.tw-workspace-content{min-width:0;width:100%}
.tw-sidebar{position:sticky;top:16px;align-self:start;max-height:calc(100vh - 32px);overflow-y:auto;overscroll-behavior:contain;background:#131519;border:1px solid #3c3b3a;border-radius:13px;padding:16px 12px;z-index:20}
.tw-sidebar-label{font-size:11px;font-weight:700;letter-spacing:1.5px;color:var(--gold);padding:2px 10px 13px;border-bottom:1px solid #373431}
.tw-sidebar nav{display:flex;flex-direction:column;flex-wrap:nowrap;gap:7px;margin:13px 0 0}
.tw-sidebar .tab{width:100%;text-align:left;font-size:12px;line-height:1.45;padding:12px 11px;white-space:normal;min-height:42px}
.tw-sidebar .tab.active{box-shadow:inset 3px 0 0 #f0d28d}
.tw-workspace-content>.note{margin-top:0}
.tw-workspace-content .panel,.tw-workspace-content .cards,.tw-workspace-content .kpi-group{min-width:0}
.tw-workspace-content .tablewrap{position:relative;max-height:min(70vh,760px);overflow:auto;overscroll-behavior:contain;border-radius:6px;scrollbar-gutter:stable}
.tw-workspace-content .tablewrap>table{border-collapse:separate;border-spacing:0}
.tw-workspace-content .tablewrap>table>thead>tr>th{position:sticky;top:0;z-index:5;background:#25272d;box-shadow:0 1px 0 #514735;white-space:nowrap}
.tw-workspace-content .tablewrap>table>tbody>tr>td{background-clip:padding-box}
.tw-workspace-content .pay-detail-scroll{overflow:auto;max-height:min(48vh,460px)}
.tw-workspace-content .pay-child-table thead th{position:sticky;top:0;z-index:3;background:#262930;box-shadow:0 1px 0 #514735}
.tw-workspace-content .pay-inline-detail-row>td{background:#101316}
@media(max-width:1050px){
  .tw-workspace{grid-template-columns:190px minmax(0,1fr);gap:14px}
  .tw-sidebar .tab{font-size:11px;padding:11px 9px}
  .tw-sidebar{padding:12px 8px}
}
@media(max-width:750px){
  .tw-workspace{grid-template-columns:minmax(0,1fr);gap:12px}
  .tw-sidebar{position:sticky;top:0;max-height:none;padding:9px 10px;border-radius:0 0 11px 11px}
  .tw-sidebar-label{display:none}
  .tw-sidebar nav{flex-direction:row;overflow-x:auto;white-space:nowrap;gap:7px;margin:0;scrollbar-width:thin}
  .tw-sidebar .tab{width:auto;flex:0 0 auto;white-space:nowrap;font-size:11px;min-height:38px;padding:9px 10px}
  .tw-workspace-content .tablewrap{max-height:64vh}
}
@media print{
  .tw-workspace{display:block}
  .tw-sidebar{display:none!important}
  .tw-workspace-content .tablewrap{max-height:none;overflow:visible}
  .tw-workspace-content .tablewrap>table>thead>tr>th{position:static}
}
/* Perfil do cliente: ranking factual de pontualidade */
.profile-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.profile-stat{border-radius:10px;border:1px solid #45403a;border-top:3px solid #cba354;background:#14171c;padding:15px;display:flex;flex-direction:column;gap:9px;min-width:0}
.profile-stat span{font-size:12px;color:#d0b47f}.profile-stat strong{font-size:24px;color:#eed39c;font-variant-numeric:tabular-nums}
.profile-stat small{font-size:11px;line-height:1.45;color:#aaa}
#profileNotice{margin:12px 0;font-size:12px;line-height:1.5}
.profile-ranking-table{min-width:1300px}
.profile-ranking-table th,.profile-ranking-table td{white-space:nowrap;text-align:right}
.profile-ranking-table th:nth-child(2),.profile-ranking-table td:nth-child(2){min-width:200px;white-space:normal;text-align:left}
.profile-ranking-table th:first-child,.profile-ranking-table td:first-child{text-align:left}
.profile-main-row td:nth-child(5){font-weight:700;color:#aad3ca}
.profile-expand{min-width:100px;padding:8px 10px!important;font-size:12px!important;color:#e2c483!important;border-color:#826733!important}
.profile-detail-row>td{padding:0 10px 16px 20px!important;max-width:0;overflow:hidden}
.profile-detail{padding:13px;background:#111419;border-left:3px solid #cfaa64;border-radius:5px}
.profile-detail>strong{color:#e6c078}
.profile-detail .tablewrap{max-height:360px;margin-top:10px}
.profile-detail .tablewrap table{min-width:900px}
@media(max-width:1100px){.profile-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.profile-summary{grid-template-columns:1fr}}
/* Fluxo de recebimentos por vencimento - análise mensal */
.flow-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin:20px 0}
.flow-stat{border:1px solid #44403a;border-top:3px solid #cca35a;border-radius:10px;background:#14171b;display:flex;flex-direction:column;gap:9px;padding:15px;min-width:0}
.flow-stat span{font-size:12px;color:#d5b886}.flow-stat strong{font-size:20px;color:#f0d398;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.flow-stat small{font-size:11px;color:#aab0b5;line-height:1.5}
#flowCoverage{margin:10px 0 14px;font-size:12px;line-height:1.55}
.flow-chart{max-height:480px;overflow:auto;background:#111418;border:1px solid #34383f;border-radius:11px;padding:14px;margin:16px 0}
.flow-chart-line{display:grid;grid-template-columns:72px minmax(0,1fr) 132px;gap:12px;align-items:center;min-height:28px;margin:7px 0}
.flow-chart-line>span{color:#acb3bb;font-size:12px}.flow-chart-line>strong{text-align:right;color:#e1bf7a;font-size:12px;font-variant-numeric:tabular-nums}
.flow-chart-track{display:flex;height:14px;background:#2a2e35;border-radius:9px;overflow:hidden}
.flow-chart-received{background:#77a8a0;height:100%}.flow-chart-open{background:#bd8c4d;height:100%}
.flow-month-row td{font-variant-numeric:tabular-nums;white-space:nowrap}.flow-month-row td:nth-child(3){color:#e4c27e}
.flow-detail-button{font-size:12px!important;padding:8px 11px!important;color:#f2cf8b!important;white-space:nowrap}
.flow-detail-row>td{max-width:0;min-width:0;padding:0 10px 14px 14px!important;background:#101417!important}
.flow-detail-panel{border-left:3px solid #cba35a;background:#111519;padding:14px 14px 16px;border-radius:5px;overflow:hidden}
.flow-detail-panel>strong{color:#e6c77d}
.flow-detail-panel .tablewrap{max-height:350px;margin-top:11px}
.flow-detail-panel .tablewrap table{min-width:1020px}
.flow-detail-panel .tablewrap th,.flow-detail-panel .tablewrap td{white-space:nowrap}
.flow-detail-panel .tablewrap th:nth-child(2),.flow-detail-panel .tablewrap td:nth-child(2){min-width:175px;white-space:normal}
@media(max-width:1280px){.flow-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){.flow-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:490px){.flow-summary{grid-template-columns:1fr}.flow-chart-line{grid-template-columns:65px minmax(0,1fr) 98px;gap:6px}.flow-chart-line>strong{font-size:10px}}
/* v3.9 - desdobramento do recebido por época de pagamento */
.flow-payment-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 16px}
.flow-payment-stat{display:flex;flex-direction:column;gap:8px;background:#17191e;border:1px solid #44403a;border-left:3px solid #d7ae65;border-radius:9px;padding:15px;min-width:0}
.flow-payment-stat span{font-size:13px;color:#d8c19d;font-weight:650}
.flow-payment-stat strong{font-size:23px;color:#f0d6ab;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.flow-payment-stat small{font-size:11px;color:#abb2bc;line-height:1.5}
.flow-early{border-left-color:#65a69d}.flow-early strong{color:#9fd6ca}
.flow-inmonth{border-left-color:#d4ae62}.flow-inmonth strong{color:#f0d6ab}
.flow-after{border-left-color:#c78375}.flow-after strong{color:#e7b1a8}
.flow-table{min-width:1470px}
.flow-table>thead>tr>th,.flow-month-row>td{white-space:nowrap;text-align:right}
.flow-table>thead>tr>th:first-child,.flow-month-row>td:first-child,
.flow-table>thead>tr>th:nth-child(2),.flow-month-row>td:nth-child(2){text-align:left}
.flow-detail-panel .tablewrap table{min-width:1470px}
@media(max-width:980px){.flow-payment-breakdown{grid-template-columns:1fr}}

/* Manual do usuário - TW Consultoria */
.tw-manual{min-height:65vh}
.manual-intro{display:flex;gap:20px;align-items:center;justify-content:space-between;border-bottom:1px solid #423723;padding-bottom:18px;margin-bottom:18px}
.manual-intro h2{font-size:24px!important;color:#ead2a2;margin:8px 0!important}
.manual-intro p{margin:4px 0;max-width:740px;line-height:1.6}
.manual-eyebrow{color:#d9aa53;font-size:11px;font-weight:700;letter-spacing:1.5px}
.manual-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.manual-controls input{flex:1 1 300px;min-width:160px}
.manual-controls button,#manualPrint{font-size:12px}
.manual-overview{padding:15px 18px;background:#161719;border:1px solid #4c4231;border-radius:9px;margin-bottom:15px}
.manual-overview strong{color:#ddbf86}
.manual-overview p{margin:7px 0 0;line-height:1.6;font-size:13px}
.manual-topic{background:#14171b;border:1px solid #393b42;border-radius:9px;margin:9px 0;overflow:hidden}
.manual-topic[hidden]{display:none!important}
.manual-topic summary{display:flex;gap:15px;align-items:center;cursor:pointer;padding:17px 18px;list-style:none;user-select:none}
.manual-topic summary::-webkit-details-marker{display:none}
.manual-topic[open] summary{background:#25211a;border-bottom:1px solid #55462f}
.manual-topic-number{color:#d9aa53;font-size:12px;font-weight:750;min-width:25px}
.manual-topic-heading{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}
.manual-topic-heading strong{color:#e8d4ac;font-size:15px}
.manual-topic-heading small{color:#abb0b9;font-size:12px;line-height:1.45}
.manual-topic-chevron{color:#caa457;transition:transform .2s}
.manual-topic[open] .manual-topic-chevron{transform:rotate(180deg)}
.manual-topic-body{padding:13px 20px 18px 58px;line-height:1.75;color:#d8d9dc}
.manual-topic-body p{font-size:13px;line-height:1.75;margin:11px 0}
.manual-actions{margin-top:16px}
.manual-actions button{background:#d9aa53;color:#161616;font-weight:700;padding:10px 14px;border-color:#d9aa53}
.manual-footer-note{font-size:12px;text-align:center;letter-spacing:1px;color:#c9aa72;margin:22px 0 4px}
.manual-empty{padding:20px;text-align:center;color:#e0b879}
@media(max-width:700px){.manual-intro{align-items:start;flex-direction:column}.manual-topic-body{padding:12px 16px 18px}.manual-topic summary{padding:14px 12px;gap:9px}.manual-topic-heading strong{font-size:13px}.manual-topic-heading small{font-size:11px}}
@media print{
 body:has(.manual-printing) header,body:has(.manual-printing) .tw-sidebar,body:has(.manual-printing) .report-dates,body:has(.manual-printing) main>h1,body:has(.manual-printing) main>.gold,body:has(.manual-printing) #subtitle,body:has(.manual-printing) .manual-controls,body:has(.manual-printing) #manualPrint,body:has(.manual-printing) .manual-actions,body:has(.manual-printing) #sessionNotice{display:none!important}
 body:has(.manual-printing) .tw-workspace{display:block!important}
 body:has(.manual-printing) .tw-workspace-content>div:not(#manual){display:none!important}
 body:has(.manual-printing) #manual{display:block!important}
 body:has(.manual-printing) .manual-topic{break-inside:avoid;background:white!important;color:#1d1d1d!important;border-color:#bbb!important}
 body:has(.manual-printing) .manual-topic-body,body:has(.manual-printing) .manual-topic-heading strong,body:has(.manual-printing) .manual-topic-body p{color:#111!important}
 body:has(.manual-printing) .manual-intro h2{color:#111!important}
 body:has(.manual-printing) .panel{background:white!important;border:0!important}
 body:has(.manual-printing){background:#fff!important;color:#111!important}
}
/* TW Central de Relatórios - importação guiada por fonte */
.report-center{min-width:0}
.report-eyebrow{display:block;font-size:11px;color:#d9aa53;letter-spacing:1.6px;font-weight:700;margin-bottom:8px}
.report-chooser{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 23px}
.report-choice{display:flex;align-items:flex-start;flex-direction:column;gap:8px;padding:17px 18px;text-align:left;min-height:140px;border:1px solid #44403a;background:#14171b;color:#e3e2e0}
.report-choice.selected{border:2px solid #d9aa53;background:#282216;box-shadow:0 0 0 1px #5d4929}
.report-choice-code{font-size:11px;font-weight:750;letter-spacing:1.2px;color:#d9aa53}
.report-choice strong{font-size:15px;color:#f1dfb5}
.report-choice small{font-size:12px;color:#b5bac0}
.report-choice-format{font-size:11px;border-radius:50px;border:1px solid #6d5c3e;color:#dfc78d;padding:4px 9px}
.report-detail{min-width:0}
.report-detail-heading{display:flex;gap:14px;justify-content:space-between;align-items:center;margin-bottom:19px}
.report-detail-heading h3{color:#ecd09a;font-size:19px;margin:0 0 7px}
.report-detail-heading p{font-size:13px;line-height:1.55;margin:0}
.report-format-badge{border-radius:50px;padding:7px 12px;background:#3a3021;color:#e7c587;white-space:nowrap;font-size:12px}
.report-guide-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.9fr);gap:19px;align-items:start}
.report-guide-main,.report-guide-fields{min-width:0}
.report-guide-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.report-guide-top strong{color:#d5b783;font-size:14px}
.report-sample-button{font-size:12px!important;padding:8px 10px!important}
.report-sample{background:#0b0c0f;border:1px solid #4a4338;border-radius:9px;padding:13px;margin-bottom:14px;text-align:center}
.report-sample-image{overflow:hidden;display:flex;justify-content:center;align-items:start}
.report-sample-image img{width:100%;max-width:500px;height:auto;object-fit:contain;border:2px solid #777;background:#eee;box-shadow:0 4px 20px #0007}
.report-sample-expanded .report-sample-image{overflow:auto;justify-content:flex-start}.report-sample-expanded .report-sample-image img{width:585px;max-width:none;height:auto;transform:none;margin:0}
.report-sample small{display:block;font-size:11px;color:#a9aeb3;margin-top:11px}
.report-guide-fields{background:#121419;border:1px solid #41403c;border-radius:9px;padding:16px}
.report-guide-fields h4{margin:0 0 8px;font-size:15px;color:#edc985}
.report-guide-fields p{font-size:12px;line-height:1.55;margin:0 0 14px}
.report-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.report-field-group{background:#191b21;border-radius:7px;padding:11px;min-width:0}
.report-field-group h5{margin:0 0 9px;font-size:11px;line-height:1.4;color:#d2b77e}
.report-field{display:flex;align-items:flex-start;gap:7px;font-size:11px;color:#d7d9dc;padding:5px 0;line-height:1.4}
.report-field input[type=checkbox]{accent-color:#d9aa53;width:14px;height:14px;flex:none;margin:0;opacity:1}
.report-checked-count{padding-top:13px;font-size:11px;color:#bdc1c5}
.report-tip{font-size:12px!important;line-height:1.65;background:#292316;border-left:3px solid #d3a34e;border-radius:5px;padding:11px 13px}
.report-import-box{display:flex;align-items:center;flex-wrap:wrap;gap:14px;border:1px dashed #a8874e;background:#17181b;border-radius:10px;padding:17px;margin:20px 0}
.report-import-box>label{display:flex;flex-direction:column;gap:6px;flex:1 1 230px}
.report-import-box>label strong{color:#e8c786;font-size:14px}
.report-import-box>label small{color:#aab0b7;font-size:11px}
.report-import-box input[type=file]{max-width:100%;flex:1 1 240px}
.report-upload-hint{flex:1 1 100%;font-size:11px;color:#aab0b7}
.report-import-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;border-top:1px solid #493d2e;padding-top:17px}
.report-import-footer strong{color:#dfbe7e}
.report-import-footer p{margin:6px 0;font-size:12px}
.report-import-buttons{display:flex;gap:8px;flex-wrap:wrap}
.report-disclaimer{font-size:11px;margin-top:17px;line-height:1.6}
@media(max-width:1150px){.report-guide-columns{grid-template-columns:1fr}}
@media(max-width:680px){.report-chooser{grid-template-columns:1fr}.report-checklist{grid-template-columns:1fr}.report-detail-heading{align-items:flex-start;flex-wrap:wrap}}
/* v4.2 — opções sob demanda, apresentação limpa */
.report-guide-columns{grid-template-columns:minmax(0,1.2fr) minmax(255px,.72fr);gap:16px}
.report-guide-compact{padding:18px;background:#14161b;border:1px solid #3b3c43;box-shadow:none}
.report-checklist-head{display:flex;justify-content:space-between;gap:8px;align-items:start}
.report-checklist-head h4{margin:0 0 8px;font-size:15px}
.report-checklist-head p{margin:0 0 16px;font-size:12px}
.report-help-icon{display:grid;place-items:center;min-width:32px;height:32px;background:#2c261b;color:#e5be77;border-radius:8px;font-size:17px}
.report-checklist-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;font-weight:700;background:#d9aa53;color:#171717;border-color:#d9aa53;padding:12px 14px}
.report-checklist-toggle:hover{background:#e7be74}
.report-options-hint{font-size:11px!important;color:#9299a3;margin:13px 0 0!important;line-height:1.6}
.report-options-panel{margin-top:14px;border-top:1px solid #3b3b42;padding-top:15px}
.report-group-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:13px}
.report-group-buttons button{font-size:11px;padding:10px 8px;text-align:center;background:#202228;border:1px solid #4a4844;color:#d8dadc;min-width:0}
.report-group-buttons button.active,.report-group-buttons button[aria-pressed=true]{border-color:#d9aa53;background:#33291a;color:#f4d39a;font-weight:750}
.report-guide-compact .report-checklist{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.report-guide-compact .report-field-group{padding:14px 15px;background:#1b1e24;border:1px solid #383b42}
.report-guide-compact .report-field-group h5{font-size:12px;margin-bottom:9px;color:#e9c386}
.report-guide-compact .report-field{font-size:12px;display:flex;align-items:center;gap:9px;padding:5px 0}
.report-checkmark{width:18px;height:18px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;background:#294036;color:#9de1bb;flex-shrink:0;font-weight:800}
.report-checked-count{padding:10px 0 6px}
.report-all-options{font-size:12px;padding:9px 12px;border:1px solid #6a5435;color:#e4c18a;background:#242018;width:100%;margin-top:6px}
.report-guide-main .report-sample-image img{max-width:490px}
@media(max-width:1150px){.report-guide-columns{grid-template-columns:1fr}.report-guide-compact{max-width:none}}
@media(max-width:480px){.report-group-buttons{grid-template-columns:1fr 1fr}.report-guide-compact{padding:13px}}
/* v4.3 — importação limpa, referências apenas em janelas */
.report-center .report-chooser{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0 20px}
.report-center .report-choice{min-height:88px;padding:12px 15px;gap:4px;border-radius:9px}
.report-center .report-choice-code{font-size:10px}
.report-center .report-choice strong{font-size:13px}
.report-center .report-choice small{font-size:11px}
.report-center .report-choice-format{font-size:10px;padding:2px 7px}
.report-center .report-minimal{background:#14171b;border:1px solid #393c42;padding:20px;border-radius:11px}
.report-brief{display:flex;align-items:center;justify-content:space-between;gap:16px}
.report-brief h3{font-size:18px;color:#f0d297;margin:5px 0 5px}
.report-brief p{font-size:12px;line-height:1.5;color:#b4bac2;margin:0}
.report-brief .report-eyebrow{font-size:10px;margin:0}
.report-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.report-quick-btn{display:flex;align-items:center;gap:14px;background:#1e2025;border:1px solid #5a4d36;border-radius:10px;padding:13px 16px;text-align:left;min-width:0}
.report-quick-btn:hover{background:#302719;border-color:#d9aa53}
.report-quick-btn>span:nth-child(2){display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.report-quick-btn strong{color:#efd19a;font-size:13px}
.report-quick-btn small{color:#aab0b9;font-size:11px}
.report-quick-btn>span:last-child{font-size:19px;color:#d9aa53}
.report-quick-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:#38301f;color:#e9c586;font-size:20px;flex-shrink:0}
.report-center .report-import-primary{margin:0;padding:18px 20px;background:#1c1b18;border:1px solid #755e39;gap:13px}
.report-center .report-import-primary>label strong{font-size:15px;color:#eacf9b}
.report-small-help{margin:13px 0 0;color:#b7bec8;font-size:12px}
.report-small-help summary{cursor:pointer;list-style:disclosure-closed;color:#c6ac79}
.report-small-help[open] summary{list-style:disclosure-open}
.report-small-help p{line-height:1.65;max-width:740px}
.report-dialog{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}
.report-dialog.hidden{display:none!important}
.report-dialog-backdrop{position:absolute;inset:0;background:#000c;backdrop-filter:blur(4px)}
.report-dialog-window{position:relative;z-index:1;display:flex;flex-direction:column;width:min(700px,100%);max-height:min(90vh,850px);background:#17191e;border:1px solid #8d7040;border-radius:13px;box-shadow:0 22px 85px #000b;overflow:hidden}
.report-dialog-header{position:static;background:#131518;border-bottom:1px solid #484033;display:flex;justify-content:space-between;align-items:center;padding:16px 20px;gap:12px}
.report-dialog-header small{font-size:10px;color:#caa45f;letter-spacing:1px}
.report-dialog-header h3{margin:5px 0 0;color:#f1d298;font-size:18px}
.report-dialog-close{font-size:17px;line-height:1;min-width:38px;height:38px;padding:7px!important}
.report-dialog-body{padding:18px 22px;overflow:auto;min-height:0}
.report-dialog-body .report-dialog-view.hidden{display:none!important}
#reportImageView{text-align:center}
#reportImageView img{display:block;width:auto;max-width:100%;height:auto;max-height:68vh;object-fit:contain;margin:0 auto;border:1px solid #666;background:#fff}
#reportImageView p{font-size:11px;color:#aeb2b9;line-height:1.6}
#reportOptionsView>p{font-size:12px;line-height:1.6;margin:0 0 14px}
#reportOptionsView .report-group-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#reportOptionsView .report-checklist{display:grid;grid-template-columns:1fr;gap:10px;margin-top:15px}
#reportOptionsView .report-field-group{padding:15px 18px}
#reportOptionsView .report-field-group h5{font-size:12px}
#reportOptionsView .report-field{font-size:13px;align-items:center;padding:6px 0}
.report-dialog-footer{border-top:1px solid #393c40;padding:12px 20px;display:flex;justify-content:flex-end}
.report-dialog-done{background:#d9aa53;color:#111;font-weight:700;padding:10px 17px}
body.report-dialog-open{overflow:hidden}
@media(max-width:700px){.report-center .report-chooser,.report-quick-actions{grid-template-columns:1fr}.report-brief{align-items:start}.report-dialog{padding:8px}.report-dialog-body{padding:12px}.report-dialog-header{padding:12px}.report-center .report-minimal{padding:14px}#reportOptionsView .report-group-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* v4.4: relatórios recolhidos inicialmente, abrir um por vez */
.report-center .report-accordion{display:flex;flex-direction:column;gap:10px;margin:20px 0 14px}
.report-accordion-item{border:1px solid #3e4248;border-radius:11px;background:#15171b;overflow:hidden}
.report-accordion-item:has(.report-accordion-trigger.active){border-color:#a78245}
.report-accordion-trigger{display:flex;align-items:center;gap:15px;width:100%;min-height:83px;border:0;border-radius:0;background:#16181d;text-align:left;padding:15px 19px}
.report-accordion-trigger:hover{background:#242119}
.report-accordion-trigger.active{background:#29231a;border-bottom:1px solid #675332}
.report-accordion-number{min-width:115px;font-size:11px;font-weight:750;color:#d6aa5d;letter-spacing:1px}
.report-accordion-text{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.report-accordion-text strong{font-size:15px;color:#efcf98}
.report-accordion-text small{font-size:12px;color:#aeb5bf}
.report-accordion-type{font-size:11px;color:#d1b077;border:1px solid #635439;padding:5px 9px;border-radius:30px;white-space:nowrap}
.report-accordion-chevron{font-size:22px;color:#d9aa53;transition:transform .2s;line-height:1}
.report-accordion-trigger.active .report-accordion-chevron{transform:rotate(180deg)}
.report-center .report-accordion .report-minimal{border:0;border-radius:0;background:#111419;padding:17px 20px 19px}
.report-center .report-accordion #reportPlanilha{padding:18px 20px 21px}
.report-center #reportActions{margin-top:15px}
.report-center #reportActions.hidden{display:none!important}
@media(max-width:780px){
.report-accordion-trigger{flex-wrap:wrap;padding:13px;gap:6px 9px}
.report-accordion-number{min-width:0;width:100%;font-size:10px}
.report-accordion-text strong{font-size:13px}
.report-accordion-text small{font-size:11px}
.report-accordion-type{font-size:10px}
.report-accordion-chevron{margin-left:auto}
}
/* v4.6 — Fonte 02 Produtos Gerais / cadastro de unidades */
.report-accordion #reportProdutos{padding:18px 20px 20px}
.report-accordion #reportProdutos .report-brief{margin-bottom:5px}
.report-accordion #reportProdutos .report-import-primary{margin:0}
.product-units-panel{padding-bottom:25px}
.product-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;margin:15px 0}
.product-metric{background:#14161b;border:1px solid #45403a;border-top:2px solid #b78a42;padding:14px;border-radius:10px;display:flex;flex-direction:column;gap:8px}
.product-metric small{color:#cdb68e;font-size:11px;line-height:1.5}
.product-metric strong{color:#f2d8a3;font-size:22px;font-variant-numeric:tabular-nums}
.product-units-table{min-width:1250px}
.product-units-table th,.product-units-table td{white-space:nowrap;font-variant-numeric:tabular-nums}
.product-units-table th:nth-child(3),.product-units-table td:nth-child(3){min-width:150px}
.product-detail-btn{font-size:11px!important;padding:8px 10px!important;color:#dfc38a!important;border-color:#7e613b!important;white-space:nowrap}
.product-detail-row>td{max-width:0;min-width:0;padding:8px 13px 15px!important;background:#111519!important}
.product-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:10px;border-left:3px solid #d4ae64;background:#1a1c21;padding:15px;border-radius:5px}
.product-detail-grid>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.product-detail-grid small{font-size:11px;color:#b4a78c}
.product-detail-grid strong{font-size:12px;color:#e4e2df;overflow-wrap:anywhere}
.product-section-divider{border:0;border-top:1px solid #494136;margin:24px 0}
.product-guide-steps p{font-size:14px;line-height:1.7;margin:10px 0;color:#d6d6d5}
.product-guide-steps strong{color:#e9cb8b}
.product-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:15px 0}
.product-fields span{border:1px solid #51493b;border-radius:6px;background:#222326;color:#e3d4b6;padding:9px 12px;font-size:12px}
@media(max-width:650px){.product-fields{grid-template-columns:1fr}.report-accordion #reportProdutos{padding:13px}.product-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* v4.8 — Painel de Gestão de Unidades: cards e análise dinâmica */
.product-panel-guide{background:#1a1916;border-left:3px solid #c7a05a;border-radius:5px;padding:12px 15px;margin:14px 0 15px}
.product-panel-guide>span{color:#dfba76;font-size:10px;font-weight:750;letter-spacing:1px}
.product-panel-guide p{color:#b8bbc1;font-size:12px;line-height:1.55;margin:5px 0 0}
.product-dashboard-filters{display:grid;grid-template-columns:minmax(120px,1fr) minmax(140px,1fr) minmax(190px,1.4fr) minmax(160px,1.3fr) auto auto;gap:10px;margin:16px 0;align-items:end}
.product-dashboard-filters label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:650;color:#d5b887;min-width:0}
.product-dashboard-filters input,.product-dashboard-filters select{height:42px;width:100%;min-width:0;font-size:12px}
.product-dashboard-filters button{min-height:42px;white-space:nowrap;font-size:12px!important}
.product-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr);gap:12px;margin:12px 0 16px}
.product-chart-card{border:1px solid #41403d;background:#14161b;border-radius:10px;padding:15px 17px;min-width:0}
.product-chart-heading{display:flex;align-items:baseline;gap:12px;justify-content:space-between;border-bottom:1px solid #373838;padding-bottom:12px;margin-bottom:12px}
.product-chart-heading h3{font-size:15px;color:#e6c183;margin:0}
.product-chart-heading small{font-size:11px;color:#a4aab1;text-align:right}
.product-chart-rows{max-height:440px;overflow-y:auto;display:flex;flex-direction:column;gap:5px}
.product-chart-item{display:grid;grid-template-columns:minmax(120px,1.25fr) minmax(70px,1fr) 58px 50px;align-items:center;gap:10px;background:transparent;border:1px solid transparent;border-radius:6px;padding:7px 9px;text-align:left;cursor:pointer}
.product-chart-item:hover,.product-chart-item.selected{border-color:#96733d;background:#292317}
.product-chart-name{font-size:12px;color:#d4d6da;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-chart-track{height:11px;border-radius:9px;background:#2d3038;overflow:hidden}
.product-chart-bar{display:block;height:100%;background:linear-gradient(90deg,#a37b3f,#e8be6d);border-radius:9px}
.product-chart-qty{font-size:12px;color:#e9d0a5;text-align:right;font-variant-numeric:tabular-nums}
.product-chart-pct{font-size:11px;color:#abb0b7;text-align:right;font-variant-numeric:tabular-nums}
.product-coverage-line{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #35373a;padding:13px 0}
.product-coverage-line span{font-size:12px;color:#bec0c5}
.product-coverage-line strong{font-size:14px;color:#f0d5a3;font-variant-numeric:tabular-nums;text-align:right}
.product-coverage-note{font-size:11px;color:#aeb1b9;line-height:1.65;margin:14px 0 0}
.product-panel-note{font-size:12px;line-height:1.6;color:#aeb4bc;margin:0 0 16px}
.product-metric-status span{font-size:10px;color:#aeb5bb}
@media(max-width:1450px){.product-dashboard-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.product-dashboard-grid{grid-template-columns:1fr}}
@media(max-width:650px){.product-dashboard-filters{grid-template-columns:1fr 1fr}.product-dashboard-filters label:nth-child(3),.product-dashboard-filters label:nth-child(4){grid-column:span 2}.product-chart-item{grid-template-columns:minmax(80px,1fr) minmax(45px,.85fr) 42px 40px;gap:5px;padding:7px 3px}.product-chart-name,.product-chart-qty{font-size:11px}.product-chart-pct{font-size:10px}.product-chart-card{padding:12px}}
/* v4.9 — Ranking de vendas reincidentes por unidade */
.unit-repeat-panel{padding:3px 0 13px}
.unit-repeat-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:16px 0 18px}
.unit-repeat-table{min-width:1140px}
.unit-repeat-table th{white-space:nowrap}
.unit-repeat-table td:nth-child(1),.unit-repeat-table td:nth-child(4){white-space:nowrap}
.unit-repeat-table td:nth-child(7){min-width:270px;max-width:520px;font-size:11px;white-space:normal}
@media(max-width:850px){.unit-repeat-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* v5.0 — Unidades sem histórico de venda, situação do cadastro e apuração comercial */
.product-unsold-panel{padding:8px 0 15px}
.product-unsold-caution{background:#252217;border:1px solid #826a3b;color:#e9c98e;border-radius:8px;padding:12px 15px;font-size:12px;line-height:1.65;margin:15px 0}
.unsold-filters{grid-template-columns:repeat(4,minmax(0,1fr)) auto}
#unsoldSummary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:16px 0}
#unsoldStatusDistribution{max-height:260px;overflow:auto}
.unsold-chart-static{display:grid;grid-template-columns:minmax(120px,1fr) minmax(80px,2fr) 48px;gap:12px;align-items:center;padding:7px 4px}
.unsold-chart-static>span:first-child{font-size:12px;color:#dfd1b4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.unsold-chart-static strong{font-size:12px;color:#f1d49a;text-align:right}
#unsoldRows td{vertical-align:top;line-height:1.5;font-size:12px}
#unsoldRows td:nth-child(2){white-space:nowrap}
.unsold-reason{width:215px;max-width:100%;min-width:170px;font-size:12px;padding:9px;color:#f0e0c2}
.unsold-observation{min-width:220px;width:100%;font-size:12px;line-height:1.4;padding:9px;resize:vertical}
@media(max-width:1250px){.unsold-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.unsold-filters button{grid-column:span 2}}
@media(max-width:850px){#unsoldSummary{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* v5.2 — Distratos e cessões separados no ranking de unidades */
.unit-repeat-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.unit-repeat-table{min-width:1570px}
.unit-repeat-table td:nth-child(3),.unit-repeat-table td:nth-child(4),.unit-repeat-table td:nth-child(5),.unit-repeat-table td:nth-child(6){text-align:center;font-variant-numeric:tabular-nums}
.unit-repeat-table td:nth-child(10){min-width:300px;max-width:550px;white-space:normal;font-size:11px}
@media(max-width:850px){.unit-repeat-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* v5.3 — Gestão de Unidades em módulos separados */
.unit-modular{min-width:0}
.unit-modules-head{margin-bottom:18px}
.unit-modules-head .report-eyebrow{color:#d6ab61}
.unit-modules-head h2{margin:6px 0 4px;color:#f0cf99;font-size:23px}
.unit-modules-head p{margin:0;font-size:13px;color:#aeb4bd;line-height:1.65}
.unit-module-menu{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:19px 0 20px}
.unit-modular .unit-module-btn{display:flex;align-items:center;gap:10px;border:1px solid #45413a;background:#16191d;border-radius:10px;min-width:0;min-height:83px;padding:13px 12px;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}
.unit-modular .unit-module-btn:hover{background:#25221b;border-color:#94713b}
.unit-modular .unit-module-btn.active{border-color:#d1a052;background:#2b251b;box-shadow:inset 0 2px 0 #cba461}
.unit-module-num{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:8px;border:1px solid #675335;color:#d9b46f;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.unit-module-btn.active .unit-module-num{background:#d6a95b;color:#16130c}
.unit-module-title{display:flex;flex-direction:column;flex:1;min-width:0;gap:5px}
.unit-module-title strong{color:#e8cc9d;font-size:12px;line-height:1.3}
.unit-module-title small{color:#aab2be;font-size:10px;line-height:1.45}
.unit-module-arrow{color:#bba06d;font-size:23px;line-height:1}
.unit-module-panel{min-width:0;animation:unitModuleIn .15s ease-out}
.unit-module-panel.hidden{display:none!important}
.unit-module-panel .section-heading{margin-top:0}
.unit-module-panel .product-units-panel{padding:0}
#unit-module-cadastro:before{content:"Cadastro detalhado das unidades";display:block;color:#e7c68f;font-size:19px;font-weight:700;margin:5px 0 6px}
#unit-module-cadastro:after{content:"Clique em Ver detalhes para consultar os campos padrão e os campos personalizados da empresa.";display:block;color:#aeb4bd;font-size:12px;margin-top:13px}
@keyframes unitModuleIn{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1450px){.unit-module-menu{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.unit-module-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.unit-modular .unit-module-btn{min-height:72px}}
@media(max-width:500px){.unit-module-menu{grid-template-columns:1fr}.unit-modular .unit-module-btn{min-height:58px}.unit-modules-head h2{font-size:21px}}

/* TW SaaS — Visual executive premium v5.4 */
:root{--tw-bg:#090b0e;--tw-surface:#14171c;--tw-surface2:#1b1f25;--tw-line:#30353c;--tw-gold:#d7a850;--tw-cream:#e9d3a6;--tw-ink:#f2f2ef;--tw-muted:#9ea6b2;--gold:#d7a850;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--tw-ink);background:var(--tw-bg)}
body.tw-saas-body{background:radial-gradient(ellipse at 73% -10%,#2f24154a,transparent 47%),#090b0e;color:var(--tw-ink);min-height:100vh}
.tw-saas-body .tw-app-topbar{height:78px;padding:0 clamp(20px,3vw,48px);background:#090b0ef2;border-bottom:1px solid #3d3429;position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:16px;backdrop-filter:blur(15px)}
.tw-brand-horizontal{display:flex;align-items:center;gap:14px;min-width:0}
.tw-top-logo{height:68px;width:68px;object-fit:contain;background:#000;border-radius:9px}
.tw-brand-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
.tw-brand-copy strong{font-size:17px!important;font-weight:750!important;letter-spacing:.15px!important;color:#f3e3c1!important}
.tw-brand-copy small{font-size:9px!important;letter-spacing:1.3px!important;color:#c9a667!important;white-space:nowrap}
.tw-topbar-actions{display:flex;align-items:center;gap:12px}
.tw-env-label{color:#aeb7c2;font-size:11px;border:1px solid #384038;padding:9px 12px;border-radius:24px;white-space:nowrap}
.tw-online-dot{width:7px;height:7px;border-radius:50%;background:#78bd91;display:inline-block;margin-right:7px;box-shadow:0 0 8px #78bd9166}
.tw-top-import{background:linear-gradient(125deg,#edca85,#b88a3c)!important;color:#211708!important;border:0!important;border-radius:9px!important;font-size:12px!important;font-weight:750!important;padding:12px 16px!important;white-space:nowrap}
.tw-top-import:hover{filter:brightness(1.1)}
.tw-version{font-size:11px;font-weight:750;letter-spacing:.4px;color:#cfa95e;border:1px solid #6b542d;border-radius:7px;padding:8px 10px;white-space:nowrap}
.tw-menu-toggle{display:none;background:#1e2228;border:1px solid #625033;color:#efcf90;padding:9px 12px}
.tw-saas-body main.tw-app-main{max-width:1900px;width:100%;padding:23px clamp(18px,2.25vw,42px) 30px;margin:0 auto}
.tw-page-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 8px}
.tw-eyebrow{color:#bc9351;font-size:10px;letter-spacing:2.1px;font-weight:800;margin:3px 0 10px}
.tw-page-intro h1{font-size:clamp(23px,2.1vw,30px);font-weight:730;color:#f5f1e9;letter-spacing:-.7px;margin:0 0 9px}
.tw-page-intro #subtitle{font-size:12px;color:#9ca5b1;margin:0}
.tw-intro-mark{font-size:24px;letter-spacing:2px;color:#c6a160;font-weight:850;opacity:.55}
.tw-intro-mark small{display:block;font-size:8px;letter-spacing:2px;font-weight:500;color:#e8d7b3}
.tw-saas-body .report-dates{margin:14px 0 5px;gap:9px}
.tw-saas-body .report-dates span{background:#14171b;border:1px solid #343536;color:#a5aeb7;font-size:11px;border-radius:7px;padding:9px 12px}
.tw-saas-body .report-dates strong{color:#e7c282;font-weight:650}
.tw-saas-body .tw-workspace{display:grid;grid-template-columns:255px minmax(0,1fr);align-items:start;gap:19px;margin-top:16px}
.tw-saas-body .tw-sidebar{position:sticky;top:94px;max-height:calc(100vh - 110px);overflow-y:auto;overflow-x:hidden;padding:0;border:1px solid #34383e;border-radius:13px;background:linear-gradient(150deg,#171a1f,#101216 70%);box-shadow:0 12px 38px #0003}
.tw-sidebar-brand{border-bottom:1px solid #303238;text-align:center;padding:16px 10px 15px;background:#090a0e}
.tw-sidebar-logo{display:block;width:155px;height:119px;object-fit:contain;object-position:center;margin:0 auto;border-radius:9px}
.tw-sidebar-tag{color:#b38a4a;font-size:9px;letter-spacing:2px;margin:5px 0}
.tw-sidebar-app{font-size:12px;color:#e6d4b3;font-weight:730}
.tw-sidebar .tw-sidebar-nav{display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:0;margin:0;padding:13px 10px}
.tw-nav-group{margin-bottom:13px}
.tw-nav-heading{font-size:9px;letter-spacing:1.5px;color:#78818f;font-weight:800;margin:9px 10px 8px}
.tw-saas-body .tw-sidebar .tw-nav-link{display:flex;align-items:center;gap:11px;width:100%;min-height:41px;margin:2px 0;padding:10px 11px;border:1px solid transparent;border-radius:8px;font-size:12px;text-align:left;line-height:1.35;color:#b5bfcc;white-space:normal;background:transparent;box-shadow:none!important}
.tw-saas-body .tw-sidebar .tw-nav-link:hover{background:#252b33;color:#f6e4bf}
.tw-saas-body .tw-sidebar .tw-nav-link.active{background:linear-gradient(90deg,#524026b8,#30291f88);border:1px solid #7e6237;color:#f9dba1;box-shadow:inset 3px 0 #d4a750!important}
.tw-nav-icon{display:inline-grid;place-items:center;flex-shrink:0;width:21px;height:22px;font-size:18px;color:#b39863;line-height:1}
.tw-sidebar-footer{border-top:1px solid #33363a;background:#0d0f13;display:flex;align-items:center;flex-direction:column;gap:5px;padding:16px}
.tw-sidebar-plan{font-size:9px;letter-spacing:1.7px;color:#89929f}
.tw-sidebar-footer strong{font-size:11px;color:#dfbd7a;letter-spacing:2px}
.tw-sidebar-footer small{font-size:9px!important;letter-spacing:.2px!important;color:#777f89!important}
.tw-saas-body .tw-workspace-content{min-width:0}
.tw-saas-body .tw-workspace-content>.note{background:#1e1b16;border:1px solid #4b3b23;border-left:3px solid #caa461;color:#d4c19a;border-radius:10px;padding:14px 16px;font-size:12px;line-height:1.65;margin:0 0 17px}
.tw-saas-body .tw-workspace-content .panel,.tw-saas-body .tw-workspace-content .card{background:linear-gradient(155deg,#1b1f25,#15181d);border:1px solid #34383e;box-shadow:0 5px 22px #0000001b;border-radius:12px}
.tw-saas-body .tw-workspace-content .card{transition:transform .16s,border-color .16s}
.tw-saas-body .tw-workspace-content .card:hover{border-color:#705b3f}
.tw-saas-body .section-heading h2{color:#e9dac0;letter-spacing:-.1px}
.tw-saas-body .section-heading p{color:#99a4b2;line-height:1.6}
.tw-saas-body .cards{gap:13px}
.tw-saas-body .card b{font-variant-numeric:tabular-nums}
.tw-saas-body .tablewrap{border:1px solid #30363e;border-radius:10px;background:#11151a}
.tw-saas-body .tablewrap table th{background:#242831!important;color:#e9bf73;border-bottom:1px solid #54432f}
.tw-saas-body .tablewrap table td{border-color:#2a2f36}
.tw-saas-body .tablewrap table tbody tr:hover td{background:#262b3355}
.tw-saas-body input:focus-visible,.tw-saas-body select:focus-visible,.tw-saas-body button:focus-visible,.tw-saas-body textarea:focus-visible{outline:2px solid #d6ab60;outline-offset:2px}
.tw-saas-body footer{border-top:1px solid #332e25;margin-top:28px;padding:23px;color:#b58b43}
#twMobileOverlay[hidden]{display:none!important}
@media(max-width:1250px){.tw-saas-body .tw-workspace{grid-template-columns:225px minmax(0,1fr);gap:14px}.tw-sidebar-logo{width:135px;height:108px}}
@media(max-width:900px){
 .tw-saas-body .tw-workspace{display:block}
 .tw-saas-body .tw-sidebar{position:fixed;left:0;top:0;bottom:0;width:min(310px,86vw);height:100vh;max-height:100vh;z-index:100;background:#14171c;transform:translateX(-104%);transition:transform .2s;border-radius:0 15px 15px 0;padding:0}
 .tw-saas-body .tw-sidebar.tw-mobile-open{transform:translateX(0)}
 .tw-sidebar .tw-sidebar-nav{display:flex!important;flex-direction:column!important;overflow:visible!important;white-space:normal!important;padding:12px!important}
 .tw-sidebar .tw-nav-link{width:100%!important;white-space:normal!important}
 .tw-menu-toggle{display:inline-block}
 #twMobileOverlay:not([hidden]){position:fixed;inset:0;z-index:90;background:#000a;display:block}
 body.tw-menu-open{overflow:hidden}
 .tw-saas-body .tw-app-topbar{height:69px;padding:0 15px}
 .tw-top-logo{width:56px;height:56px}
 .tw-topbar-actions .tw-env-label{display:none}
}
@media(max-width:570px){.tw-topbar-actions{gap:7px}.tw-top-import{font-size:0!important;min-width:39px;padding:12px!important}.tw-top-import::first-letter{font-size:18px}.tw-version{font-size:10px;padding:7px}.tw-brand-copy small{display:none!important}.tw-brand-copy strong{font-size:13px!important}.tw-page-intro h1{font-size:22px}.tw-intro-mark{display:none}.tw-saas-body main.tw-app-main{padding:18px 12px}.tw-saas-body .cards{grid-template-columns:1fr}}
@media print{.tw-app-topbar,.tw-sidebar,.tw-mobile-overlay,.tw-topbar-actions,.tw-menu-toggle{display:none!important}.tw-saas-body .tw-workspace{display:block}.tw-saas-body .tw-app-main{max-width:none}}
/* v5.5 — Correção da logo oficial TW completa (sem marca reduzida) */
.tw-saas-body .tw-sidebar-brand-official{
  background:#050505;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:18px 10px 16px;
  border-bottom:1px solid #483923;
  min-height:225px;
  overflow:hidden;
}
.tw-saas-body .tw-sidebar-logo-full{
  display:block;
  width:220px;
  max-width:100%;
  height:188px;
  object-fit:contain;
  object-position:center center;
  background:#000;
  border-radius:3px;
  margin:0;
}
.tw-saas-body .tw-sidebar-brand-official .tw-sidebar-app-separate{
  margin-top:3px;
  padding-top:9px;
  width:100%;
  border-top:1px solid #32291d;
  text-align:center;
  color:#e8cca0;
  font-size:12px;
  letter-spacing:.3px;
}
.tw-saas-body .tw-brand-horizontal .tw-top-logo{
  width:66px;
  height:66px;
  object-fit:contain;
  object-position:center;
  border-radius:7px;
  background:#000;
}
@media(max-width:1250px){
  .tw-saas-body .tw-sidebar-logo-full{width:195px;height:180px}
  .tw-saas-body .tw-sidebar-brand-official{min-height:215px}
}
@media(max-width:900px){
  .tw-saas-body .tw-sidebar-logo-full{width:235px;height:200px}
  .tw-saas-body .tw-sidebar-brand-official{min-height:235px}
}
@media(max-width:570px){
  .tw-saas-body .tw-brand-horizontal .tw-top-logo{width:56px;height:56px}
}
/* v5.6: renderização verificada da logo oficial e retirada de marca escrita duplicada */
.tw-saas-body .tw-sidebar-brand-official{min-height:243px;padding:15px 10px 16px;background:#000}
.tw-saas-body .tw-sidebar-logo-full{width:218px;max-width:100%;height:202px;object-fit:contain;object-position:center;background:#000}
.tw-saas-body .tw-brand-horizontal .tw-top-logo{height:66px;width:70px;object-fit:contain;background:#000}
.tw-saas-body .tw-intro-mark{display:none!important}
@media(max-width:1250px){.tw-saas-body .tw-sidebar-logo-full{width:193px;height:190px}}
@media(max-width:900px){.tw-saas-body .tw-sidebar-logo-full{width:238px;height:215px}}
@media(max-width:570px){.tw-saas-body .tw-brand-horizontal .tw-top-logo{height:56px;width:59px}}
/* Central TW — link visível apenas após confirmação administrativa */
.tw-sidebar .tw-admin-entry{display:flex;align-items:center;gap:10px;text-decoration:none}
.tw-sidebar .tw-admin-entry[hidden]{display:none!important}
.tw-sidebar .tw-admin-entry:hover{background:#25221b;border-color:#7b6139;color:#eed1a2}
/* v6.0 — Portal de análise do cliente com identidade TW preservada */
.tw-client-diagnosis main.tw-app-main{visibility:hidden}
.tw-client-diagnosis.tw-client-ready main.tw-app-main{visibility:visible}
.tw-client-diagnosis [hidden]{display:none!important}
.tw-customer-return{display:inline-block;white-space:nowrap;color:#e5c37e;text-decoration:none;font-size:12px;border:1px solid #604d32;border-radius:8px;padding:10px 12px;background:#1f1d1a}
.tw-customer-return:hover{background:#30291e;border-color:#a7874a}
.tw-customer-banner{border:1px solid #735930;border-left:3px solid #d1a453;border-radius:9px;padding:13px 17px;margin:0 0 14px;background:#221d16;color:#e4c48a;font-size:12px;line-height:1.5}
.tw-work-warning{background:#30231a;color:#eed4a5;border-left:3px solid #bb8b42;border-radius:8px;padding:13px 16px;font-size:12px;line-height:1.5}
.tw-client-work-select select{width:100%;background:#22262b;border-radius:8px;border:1px solid #74603b;color:#f5deb0;padding:12px}
.tw-customer-denied{margin:8vh auto;padding:30px;max-width:550px;text-align:center;border:1px solid #71513a;border-radius:14px;background:#191a1d}
.tw-customer-denied h1{color:#e6c282}.tw-customer-denied p{color:#c7bba9;line-height:1.7}
.tw-customer-denied a{color:#e6bb74}
.tw-client-readonly [data-page="importacao"],.tw-client-readonly #twQuickImport,.tw-client-readonly #goSave,.tw-client-readonly #goSaveImport,.tw-client-readonly #saveAnalysis,.tw-client-readonly #saveAsNew,.tw-client-readonly #reset{display:none!important}
.tw-client-notadmin #savedList [data-delete]{display:none!important}
@media(max-width:650px){.tw-customer-return{font-size:10px;padding:8px}.tw-customer-banner{font-size:11px}}
/* TW v6.1 — aging clicável, detalhamento somente leitura, compatível com históricos */
.aging-card-button{width:100%;appearance:none;font-family:inherit;color:inherit;text-align:left;cursor:pointer;transition:border-color .16s,background .16s,transform .16s}
.aging-card-button:hover,.aging-card-button:focus-visible{border-color:#efc980;background:#211e1a;outline:2px solid #bc9554;outline-offset:2px}
.aging-card-button.aging-card-selected{border-color:#f3d093;background:#29241c;box-shadow:0 0 0 1px #9c793f}
.aging-card-cta{margin-top:auto;font-size:11px;color:#e7c181;font-weight:700}
.aging-detail-panel{border:1px solid #86683e;border-radius:13px;background:linear-gradient(125deg,#202019,#14171b);padding:22px;margin:18px 0 22px}
.aging-detail-panel[hidden]{display:none!important}
.aging-detail-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.aging-detail-eyebrow{letter-spacing:1.2px;font-size:10px;font-weight:700;color:#bfa168}
.aging-detail-header h3{font-size:20px;color:#eed39b;margin:6px 0}
.aging-detail-header p{font-size:12px;line-height:1.6;color:#b6b3b0}
.aging-detail-close{border:1px solid #746249;background:#27231d;color:#e9c993;border-radius:8px;padding:10px 13px;white-space:nowrap}
.aging-detail-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.aging-detail-totals>div{background:#151719;border:1px solid #514637;border-radius:9px;padding:13px;display:flex;flex-direction:column;gap:6px}
.aging-detail-totals span{font-size:11px;color:#b1a99c}
.aging-detail-totals strong{font-size:18px;color:#ebc47e;font-variant-numeric:tabular-nums}
.aging-detail-actions{display:flex;gap:12px;align-items:center;margin:15px 0}
.aging-detail-actions input{flex:1;min-width:0;background:#17191d;border:1px solid #64543d;border-radius:8px;padding:12px;color:#f4f0e8}
.aging-detail-actions button{border:1px solid #8b6b3e;background:#302719;color:#f2d397;padding:11px 15px;border-radius:8px}
.aging-detail-scroll{max-height:460px;overflow:auto}
.aging-detail-scroll th{position:sticky;top:0;background:#25231f;z-index:1}
#agingDetailFootnote{margin:12px 0 0;font-size:11px;line-height:1.5}
@media(max-width:650px){.aging-detail-header,.aging-detail-actions{flex-direction:column;align-items:stretch}.aging-detail-totals{grid-template-columns:1fr}.aging-detail-panel{padding:14px}}
/* TW — acesso direto ao histórico de análises do empreendimento (v6.2) */
.client-project-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.client-view-analyses{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-decoration:none;border-radius:8px;padding:9px 12px;background:#d8ae61;color:#1b150e;font-size:12px;font-weight:750}
.client-view-analyses:hover,.client-view-analyses:focus-visible{background:#f1d493;color:#14100a}
.tw-work-scope{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 17px;margin-bottom:14px;border-left:3px solid #cca45a;border-radius:9px;background:#242018;color:#e8ca91}
.tw-work-scope strong{font-size:13px}
.tw-work-scope a{color:#e8c47c;font-size:12px;white-space:nowrap;text-decoration:underline}
@media(max-width:650px){.tw-work-scope{flex-direction:column;align-items:flex-start}.client-project-actions{flex-direction:column;align-items:flex-start}}
/* v6.4: vínculo do empreendimento em evidência no portal AJB/TW */
.tw-work-picker{margin:15px 0 20px;padding:20px 22px;border:2px solid #d8ae61;border-radius:12px;background:linear-gradient(120deg,#30271a,#1b1c1e);box-shadow:0 5px 20px rgba(0,0,0,.12)}
.tw-work-picker-top{margin:12px 0 18px}
.tw-work-picker-head{display:flex;justify-content:space-between;align-items:start;gap:15px;margin-bottom:13px}
.tw-work-step{font-size:10px;letter-spacing:1.2px;font-weight:800;color:#f6d395}
.tw-work-picker h3{font-size:18px;margin:4px 0 5px;color:#f2d49a}
.tw-work-picker p{font-size:12px;line-height:1.5;color:#c4c2b9;margin:4px 0 10px}
.tw-work-picker label{display:block;font-size:13px;font-weight:700;color:#e9c889;margin:10px 0 8px}
.tw-work-picker select{display:block;width:100%;font-size:15px;min-height:53px;padding:13px 14px;border-radius:9px;background:#111820;color:#fff1d4;border:2px solid #c99d51;font-weight:650;cursor:pointer}
.tw-work-picker select:focus-visible{outline:3px solid #f5d190;outline-offset:2px}
.tw-work-picker .tw-work-selection-info{margin:10px 0 0;color:#e2cb97;font-size:12px}
.tw-work-picker .tw-work-selection-missing{color:#ffc2a2}
.tw-work-create-link{display:inline-flex;align-items:center;border:1px solid #927649;color:#efce94;font-size:12px;text-decoration:none;padding:10px 12px;border-radius:8px;white-space:nowrap}
.tw-hidden-enterprise-field{display:none!important}
.tw-work-picker-save{margin:20px 0}
@media(max-width:650px){.tw-work-picker{padding:15px}.tw-work-picker-head{flex-direction:column}.tw-work-picker h3{font-size:16px}.tw-work-picker select{font-size:14px}}
/* v7.0: progresso de abertura sempre visível inclusive no perfil Consulta */
.tw-saved-open-status:not([hidden]){display:block;margin:12px 0 14px;padding:14px 16px;border:1px solid #b79754;border-radius:9px;background:#27231a;color:#f5d693;font-size:14px;font-weight:650;line-height:1.5}
.tw-saved-open-status.tw-saved-open-error{border-color:#ba7777;color:#ffc4c4;background:#321d21}
#savedList [data-open]{cursor:pointer;min-width:80px}
#savedList [data-open]:disabled{cursor:progress;opacity:.75}
/* Nova área apenas de consulta para comparativos; link preserva comportamento do menu */
.tw-saas-body .tw-sidebar a.tw-comparison-nav{text-decoration:none;cursor:pointer}