/* Visão Geral compacta: quatro indicadores + gráfico + alertas, sem rolagem excessiva. */
.db-page{max-width:1380px!important}
.db-page .db-hero{min-height:112px!important;margin:0 0 14px!important;padding:21px 25px!important;border-radius:16px!important}
.db-page .db-hero h2{font-size:clamp(21px,2vw,28px)!important;margin:0 0 6px!important}
.db-page .db-hero p{font-size:12px!important;max-width:550px!important}
.db-page .db-hero-meta{margin-top:8px!important}
.db-page .db-hero-caption{display:none}
.db-page .db-kpis-compact{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:11px!important;margin-bottom:12px!important}
.db-page .db-kpis-compact .db-kpi{min-height:118px!important;padding:14px 16px!important;gap:0!important;border-radius:13px!important}
.db-page .db-kpis-compact .db-kpi-icon{width:25px!important;height:25px!important;min-height:25px!important;font-size:14px!important;margin-bottom:7px!important;border-radius:8px!important}
.db-page .db-kpis-compact .db-kpi-label{font-size:10px!important;line-height:1.3!important}
.db-page .db-kpis-compact .db-kpi strong{font-size:clamp(18px,1.8vw,25px)!important;line-height:1.2!important;margin:5px 0!important;overflow-wrap:anywhere;white-space:normal!important}
.db-page .db-kpis-compact .db-kpi-sub{font-size:10px!important;line-height:1.35!important;margin-top:2px!important}
.db-page .db-overview-row{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(245px,.85fr);gap:12px;margin-bottom:13px}
.db-page .db-overview-chart{display:block;min-width:0}
.db-page .db-overview-chart>.db-panel{height:100%;display:flex;flex-direction:column}
.db-page .db-overview-chart .db-panel-header{padding:15px 18px 6px!important}
.db-page .db-overview-chart .db-panel-header h3{font-size:15px!important}
.db-page .db-overview-chart .db-chart{flex:1;min-height:153px!important;padding:12px 15px 13px!important;gap:6px!important}
.db-page .db-overview-chart .db-bars{height:92px!important}
.db-page .db-overview-chart .db-bar{max-width:24px!important}
.db-page .db-overview-chart .db-chart-total{font-size:9px!important}
.db-page .db-quick-panel{padding:0!important;min-height:0}
.db-page .db-quick-head{padding:15px 17px 11px;display:flex;justify-content:space-between;align-items:center;gap:6px;border-bottom:1px solid #e8eef3}
.db-page .db-quick-head h3{font-size:14px!important;color:#253e57!important;line-height:1.2;margin:0!important;font-weight:830!important}
.db-page .db-quick-head small{font-size:10px;color:#8799ac}
.db-page .db-quick-line{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 17px;text-decoration:none;border-bottom:1px solid #edf1f5;min-height:41px}
.db-page .db-quick-line:hover{background:#f5fafc}
.db-page .db-quick-line span{font-size:11px;color:#506780;font-weight:650}
.db-page .db-quick-line strong{font-size:15px;color:#a14c57;font-weight:850;white-space:nowrap;font-variant-numeric:tabular-nums}
.db-page .db-quick-line:last-of-type strong{color:#286a7e}
.db-page .db-quick-foot{font-size:10px;line-height:1.45;color:#8492a5;padding:11px 17px}
.db-page .db-more{background:#fff;border:1px solid #dce4ee;border-radius:13px;margin:0 0 17px;overflow:hidden}
.db-page .db-more>summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 17px;list-style:none;color:#254057;user-select:none}
.db-page .db-more>summary::-webkit-details-marker{display:none}
.db-page .db-more>summary:hover{background:#f5f8fb}
.db-page .db-more>summary strong{font-size:13px;display:block;font-weight:830}
.db-page .db-more>summary small{font-size:10px;color:#7a8ea2;display:block;margin-top:3px}
.db-page .db-more[open]>summary{border-bottom:1px solid #e9eef4}
.db-page .db-more[open]>summary>span:last-child{transform:rotate(180deg)}
.db-page .db-more-body{padding:14px}
.db-page .db-secondary-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:13px}
.db-page .db-secondary-kpis>div,.db-page .db-secondary-kpis>a{border:1px solid #dfe7ee;background:#f9fbfd;border-radius:12px;padding:12px 15px;min-width:0;display:flex;flex-direction:column;text-decoration:none;color:#254057}
.db-page .db-secondary-kpis span{font-size:10px;font-weight:740;color:#8291a5;text-transform:uppercase}
.db-page .db-secondary-kpis strong{font-size:21px;font-weight:830;margin-top:4px}
.db-page .db-secondary-kpis small{font-size:10px;color:#8091a4}
.db-page .db-detail-grid{grid-template-columns:1fr!important;gap:10px!important}
.db-page .db-more-body .db-plan{margin-top:0}
.db-page .db-more-body .db-grid{margin-bottom:13px}
.db-page .db-more-body .db-kpi{min-height:0}
.db-page .db-more-body .db-sales-panel{margin:0 0 13px}
@media(max-width:1050px){.db-page .db-overview-row{grid-template-columns:minmax(0,1.35fr) minmax(230px,1fr)}.db-page .db-kpis-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}.db-page .db-kpis-compact .db-kpi{min-height:112px!important}}
@media(max-width:730px){.db-page .db-hero{padding:18px!important;gap:10px!important}.db-page .db-hero h2{font-size:23px!important}.db-page .db-hero .db-filter{width:100%;margin-top:5px}.db-page .db-overview-row{grid-template-columns:1fr;gap:10px}.db-page .db-kpis-compact{gap:8px!important}.db-page .db-kpis-compact .db-kpi{padding:12px!important;min-height:114px!important}.db-page .db-kpis-compact .db-kpi strong{font-size:clamp(17px,5vw,22px)!important}.db-page .db-kpis-compact .db-kpi-sub{font-size:9px!important}.db-page .db-overview-chart .db-chart{min-height:150px!important}.db-page .db-overview-chart .db-bars{height:92px!important}.db-page .db-quick-head{padding:12px 14px}.db-page .db-quick-line{padding:10px 14px}.db-page .db-quick-foot{padding:9px 14px}.db-page .db-more-body{padding:9px}.db-page .db-secondary-kpis{grid-template-columns:1fr 1fr}.db-page .db-secondary-kpis strong{font-size:17px}}
@media(max-width:395px){.db-page .db-hero .db-filter{gap:6px}.db-page .db-kpis-compact .db-kpi strong{font-size:16px!important}.db-page .db-kpis-compact .db-kpi{min-height:122px!important}.db-page .db-legend{gap:7px!important}}

/* Financial ownership: compact comparison, independent of the global sidebar context. */
.db-page .db-owner-panel{background:#fff;border:1px solid #dce5ee;border-radius:13px;margin:0 0 13px;padding:14px 16px;min-width:0}
.db-page .db-owner-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.db-page .db-owner-head h3{font-size:15px;font-weight:830;margin:0;color:#253e57}.db-page .db-owner-head p{font-size:11px;color:#74879a;margin:4px 0 0}
.db-page .db-owner-tabs{display:flex;flex-wrap:wrap;gap:4px;background:#f1f5f8;border-radius:10px;padding:4px}
.db-page .db-owner-tabs button{border:0;background:transparent;border-radius:7px;padding:7px 11px;font-size:11px;font-weight:750;color:#52697e;white-space:nowrap}
.db-page .db-owner-tabs button[aria-pressed=true]{background:#183e57;color:#fff;box-shadow:0 2px 4px #163b5320}
.db-page .db-owner-tabs button:focus-visible{outline:2px solid #218c87;outline-offset:2px}
.db-page .db-owner-scroll{overflow-x:auto}
.db-page .db-owner-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:12px}
.db-page .db-owner-table th,.db-page .db-owner-table td{padding:10px 9px;white-space:nowrap;text-align:right;border-bottom:1px solid #e9eef4}
.db-page .db-owner-table th:first-child{text-align:left}
.db-page .db-owner-table thead th{background:#f6f9fb;color:#6a7d90;font-size:10px;font-weight:800}
.db-page .db-owner-table tbody th{color:#254057;font-weight:820}
.db-page .db-owner-table tbody tr.is-selected{background:#edf7f8}
.db-page .db-owner-table td{font-weight:710;color:#3b536b}
.db-page .db-owner-table .db-owner-positive{color:#13816d}.db-page .db-owner-table .db-owner-negative{color:#bb4f60}
.db-page .db-owner-note{font-size:10px;line-height:1.45;margin:10px 0 0;color:#77889b}
@media(max-width:730px){.db-page .db-owner-panel{padding:12px}.db-page .db-owner-tabs{width:100%}.db-page .db-owner-tabs button{flex:1 1 auto;padding:7px 6px;font-size:10px}.db-page .db-owner-table{min-width:660px}.db-page .db-owner-table th,.db-page .db-owner-table td{padding:9px 7px}}
