/* Talerum V26.70 — pagination corrections and table alignment */
.talerum-auto-table-wrap{width:100%;min-width:0;overflow-x:auto;overflow-y:hidden}
.talerum-pagination-toolbar{display:flex;align-items:center;justify-content:flex-end;width:100%;margin:0 0 10px}
.talerum-pagination-top{margin-left:auto!important;flex:none!important}
.talerum-pagination-footer{min-height:64px;box-sizing:border-box}
.talerum-pagination-controls{flex-wrap:nowrap!important}
.talerum-page-button,.talerum-page-number{flex:0 0 36px!important}

/* Dentist queue: exact shared pagination grammar. */
body[data-talerum-page="fila-dentista"] .doctor-page-button{font-size:19px!important;line-height:1!important}
body[data-talerum-page="fila-dentista"] .doctor-queue-controls{gap:7px!important}
body[data-talerum-page="fila-dentista"] .doctor-queue-pagination{min-height:64px!important}
body[data-talerum-page="fila-dentista"] .doctor-queue-head-tools{align-items:center!important;flex-wrap:wrap!important;justify-content:flex-end!important}

/* Clinical images: use only the standard global footer. */
body[data-talerum-page="imagens-clinicas"] .patient-index-table-card{overflow:hidden}
body[data-talerum-page="imagens-clinicas"] .patient-index-table-head{align-items:center!important;gap:12px!important}
body[data-talerum-page="imagens-clinicas"] .patient-index-table-head .talerum-pagination-top{margin-left:auto!important}

/* Smart Intake: title is enough; pagination already communicates page/record count. */
body[data-talerum-page="smart-intake"] .section-head>.talerum-pagination-top{align-self:flex-start}

/* Budgets and stock: standard paginator replaces old decorative page pills. */
body[data-talerum-page="orcamentos"] .table-card,
body[data-talerum-page="estoque"] .table-card{overflow:hidden}
body[data-talerum-page="orcamentos"] .table-head,
body[data-talerum-page="estoque"] .table-head{align-items:center!important;flex-wrap:wrap!important}
body[data-talerum-page="orcamentos"] .table-actions,
body[data-talerum-page="estoque"] .table-actions{margin-left:auto!important;flex-wrap:wrap!important}

/* Finance: preserve the original two-column dashboard and make the receivables table own its width. */
body[data-talerum-page="financeiro"] .bottom-grid{grid-template-columns:minmax(0,1.95fr) minmax(310px,.76fr)!important;align-items:stretch!important}
body[data-talerum-page="financeiro"] .bottom-grid>.table-card{display:block!important;width:100%!important;min-width:0!important;height:100%!important}
body[data-talerum-page="financeiro"] .finance-receivables-table{width:100%!important;min-width:880px!important;table-layout:fixed!important}
body[data-talerum-page="financeiro"] .table-header{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px 14px!important}
body[data-talerum-page="financeiro"] .table-actions{margin-left:auto!important;display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important}
body[data-talerum-page="financeiro"] .table-actions .talerum-pagination-top{margin-left:0!important}
body[data-talerum-page="financeiro"] .bottom-grid>.table-card>.talerum-pagination-footer{margin-top:0!important}

/* Cobrança: fixed columns and right-aligned action column. */
body[data-talerum-page="cobranca"] .tab-panel .table-wrap{width:100%!important;overflow-x:auto!important}
body[data-talerum-page="cobranca"] .tab-panel table{width:100%!important;table-layout:fixed!important}
body[data-talerum-page="cobranca"] .tab-panel table th,
body[data-talerum-page="cobranca"] .tab-panel table td{vertical-align:middle!important}
body[data-talerum-page="cobranca"] .tab-panel[data-panel="queue"] table :is(th,td):nth-child(1){width:38%}
body[data-talerum-page="cobranca"] .tab-panel[data-panel="queue"] table :is(th,td):nth-child(2){width:15%;text-align:right}
body[data-talerum-page="cobranca"] .tab-panel[data-panel="queue"] table :is(th,td):nth-child(3){width:16%;text-align:center}
body[data-talerum-page="cobranca"] .tab-panel[data-panel="queue"] table :is(th,td):nth-child(4){width:23%}
body[data-talerum-page="cobranca"] .tab-panel[data-panel="queue"] table :is(th,td):nth-child(5){width:8%;text-align:right}
body[data-talerum-page="cobranca"] .tab-panel[data-panel="promises"] table :is(th,td):nth-child(1){width:42%}
body[data-talerum-page="cobranca"] .tab-panel[data-panel="promises"] table :is(th,td):nth-child(2){width:16%;text-align:right}
body[data-talerum-page="cobranca"] .tab-panel[data-panel="promises"] table :is(th,td):nth-child(3){width:18%;text-align:center}
body[data-talerum-page="cobranca"] .tab-panel[data-panel="promises"] table :is(th,td):nth-child(4){width:14%;text-align:center}
body[data-talerum-page="cobranca"] .tab-panel[data-panel="promises"] table :is(th,td):nth-child(5){width:10%;text-align:right}

/* Convênios: stable widths across operations and TISS package tables. */
body[data-talerum-page="convenios"] .tab-panel .table-wrap{width:100%!important;overflow-x:auto!important}
body[data-talerum-page="convenios"] .tab-panel table{width:100%!important;table-layout:fixed!important}
body[data-talerum-page="convenios"] .tab-panel table th,
body[data-talerum-page="convenios"] .tab-panel table td{vertical-align:middle!important}
body[data-talerum-page="convenios"] .tab-panel table :is(th,td):nth-child(1){width:30%}
body[data-talerum-page="convenios"] .tab-panel table :is(th,td):nth-child(2){width:20%}
body[data-talerum-page="convenios"] .tab-panel table :is(th,td):nth-child(3){width:16%;text-align:right}
body[data-talerum-page="convenios"] .tab-panel table :is(th,td):nth-child(4){width:26%;text-align:center}
body[data-talerum-page="convenios"] .tab-panel table :is(th,td):nth-child(5){width:8%;text-align:right}

/* Revenue OS: keep tables aligned and actions on a true final column. */
body[data-talerum-page="revenue-os"] .rev-fill{min-width:0!important}
body[data-talerum-page="revenue-os"] .rev-fill .table-wrap,
body[data-talerum-page="revenue-os"] .panel[data-panel="pipeline"] .table-wrap{width:100%!important;overflow-x:auto!important}
body[data-talerum-page="revenue-os"] table{width:100%!important;table-layout:fixed!important}
body[data-talerum-page="revenue-os"] .panel[data-panel="pipeline"] table :is(th,td):nth-child(1){width:29%}
body[data-talerum-page="revenue-os"] .panel[data-panel="pipeline"] table :is(th,td):nth-child(2){width:15%}
body[data-talerum-page="revenue-os"] .panel[data-panel="pipeline"] table :is(th,td):nth-child(3){width:22%}
body[data-talerum-page="revenue-os"] .panel[data-panel="pipeline"] table :is(th,td):nth-child(4){width:14%;text-align:right}
body[data-talerum-page="revenue-os"] .panel[data-panel="pipeline"] table :is(th,td):nth-child(5){width:12%;text-align:center}
body[data-talerum-page="revenue-os"] .panel[data-panel="pipeline"] table :is(th,td):nth-child(6){width:8%;text-align:right}
body[data-talerum-page="revenue-os"] .rev-fill table th:last-child,
body[data-talerum-page="revenue-os"] .rev-fill table td:last-child{text-align:right!important;width:7%!important}

/* Treatment profitability CTAs must obey the orange/white action standard. */
body[data-talerum-page="hub-financeiro-tratamentos"] .ia-inline-actions a,
body[data-talerum-page="hub-financeiro-tratamentos"] .ia-inline-actions button{background:#C96B29!important;border-color:#C96B29!important;color:#fff!important}
body[data-talerum-page="hub-financeiro-tratamentos"] .ia-inline-actions a:hover,
body[data-talerum-page="hub-financeiro-tratamentos"] .ia-inline-actions button:hover{background:#B85E22!important;color:#fff!important}


/* V26.71 — keep table CTA beside the quantity selector. */
body[data-talerum-page="revenue-os"] .talerum-pagination-action-cluster{
  display:flex!important;align-items:center!important;gap:10px!important;margin-left:auto!important;flex:none!important;
}
body[data-talerum-page="revenue-os"] .talerum-pagination-action-cluster .talerum-pagination-top{margin-left:0!important}
body[data-talerum-page="revenue-os"] .talerum-pagination-action-cluster [data-talerum-action="revenue-all"]{
  flex:none!important;white-space:nowrap!important;
}
