/* Shaddai V1.34 - relatorios sem rolagem horizontal */
.main,.view,.panel,.content-grid,.accounting-shell,.control-shell,.im133-shell,.im133-card{min-width:0!important;max-width:100%}
.table-wrap.rv134-wrap,.stock-table.rv134-wrap,.stock-validation-table.rv134-wrap,.cash-closing-table.rv134-wrap,.cash-closing-history.rv134-wrap{width:100%!important;max-width:100%!important;overflow-x:hidden!important;overscroll-behavior-x:none}
table.rv134-table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important}
table.rv134-table th,table.rv134-table td{min-width:0!important;max-width:none!important;padding:8px 6px!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;hyphens:auto;line-height:1.22!important;vertical-align:middle!important}
table.rv134-table th{font-size:10px!important;letter-spacing:.005em!important}
table.rv134-table td{font-size:10.5px!important}
table.rv134-table td>*{max-width:100%!important}
table.rv134-table td strong,table.rv134-table td small,table.rv134-table td span,table.rv134-table td a{white-space:normal!important;overflow-wrap:anywhere;word-break:normal}
table.rv134-table td small{font-size:9.2px!important;line-height:1.25!important}
table.rv134-table td.rv134-numeric{text-align:right;white-space:nowrap!important;overflow-wrap:normal}
table.rv134-table input,table.rv134-table select,table.rv134-table textarea{width:100%!important;min-width:0!important;max-width:100%!important;font-size:10px!important;padding-inline:5px!important}
table.rv134-table button,table.rv134-table .success,table.rv134-table .danger,table.rv134-table .ghost{min-width:0!important;max-width:100%!important;min-height:25px!important;height:auto!important;padding:4px 6px!important;font-size:9.5px!important;line-height:1.1!important;white-space:normal!important}
table.rv134-table .action-group,table.rv134-table .a29-actions,table.rv134-table .bank-actions{display:flex!important;flex-wrap:wrap!important;gap:3px!important;min-width:0!important}
table.rv134-table .pill,table.rv134-table .badge,table.rv134-table .margin-status,table.rv134-table .market-live-badge,table.rv134-table .control-severity,table.rv134-table .im133-pill{min-width:0!important;max-width:100%!important;height:auto!important;min-height:20px!important;padding:3px 5px!important;font-size:9px!important;line-height:1.1!important;white-space:normal!important;text-align:center}
table.rv134-table code{font-size:9px!important;white-space:normal!important;overflow-wrap:anywhere}
table.rv134-table.rv134-cols-8 th,table.rv134-table.rv134-cols-8 td,table.rv134-table.rv134-cols-9 th,table.rv134-table.rv134-cols-9 td{padding-inline:5px!important;font-size:9.8px!important}
table.rv134-table.rv134-cols-10 th,table.rv134-table.rv134-cols-10 td,table.rv134-table.rv134-cols-11 th,table.rv134-table.rv134-cols-11 td,table.rv134-table.rv134-cols-many th,table.rv134-table.rv134-cols-many td{padding:7px 4px!important;font-size:9.2px!important;line-height:1.17!important}
table.rv134-table.rv134-cols-10 td small,table.rv134-table.rv134-cols-11 td small,table.rv134-table.rv134-cols-many td small{font-size:8.2px!important}

/* Caixa diario e movimentos */
table[data-rv134-table="entryRows"] th:nth-child(1),table[data-rv134-table="entryRows"] td:nth-child(1){width:7%}
table[data-rv134-table="entryRows"] th:nth-child(2),table[data-rv134-table="entryRows"] td:nth-child(2){width:10%}
table[data-rv134-table="entryRows"] th:nth-child(3),table[data-rv134-table="entryRows"] td:nth-child(3){width:10%}
table[data-rv134-table="entryRows"] th:nth-child(4),table[data-rv134-table="entryRows"] td:nth-child(4){width:13%}
table[data-rv134-table="entryRows"] th:nth-child(5),table[data-rv134-table="entryRows"] td:nth-child(5){width:7%}
table[data-rv134-table="entryRows"] th:nth-child(6),table[data-rv134-table="entryRows"] td:nth-child(6){width:8%}
table[data-rv134-table="entryRows"] th:nth-child(7),table[data-rv134-table="entryRows"] td:nth-child(7){width:8%}
table[data-rv134-table="entryRows"] th:nth-child(8),table[data-rv134-table="entryRows"] td:nth-child(8){width:8%}
table[data-rv134-table="entryRows"] th:nth-child(9),table[data-rv134-table="entryRows"] td:nth-child(9){width:7%}
table[data-rv134-table="entryRows"] th:nth-child(10),table[data-rv134-table="entryRows"] td:nth-child(10){width:7%}
table[data-rv134-table="entryRows"] th:nth-child(11),table[data-rv134-table="entryRows"] td:nth-child(11){width:15%}
table[data-rv134-table="recentRows"] th:nth-child(1),table[data-rv134-table="recentRows"] td:nth-child(1){width:10%}
table[data-rv134-table="recentRows"] th:nth-child(2),table[data-rv134-table="recentRows"] td:nth-child(2){width:17%}
table[data-rv134-table="recentRows"] th:nth-child(3),table[data-rv134-table="recentRows"] td:nth-child(3){width:16%}
table[data-rv134-table="recentRows"] th:nth-child(4),table[data-rv134-table="recentRows"] td:nth-child(4){width:21%}
table[data-rv134-table="recentRows"] th:nth-child(5),table[data-rv134-table="recentRows"] td:nth-child(5){width:13%}
table[data-rv134-table="recentRows"] th:nth-child(6),table[data-rv134-table="recentRows"] td:nth-child(6){width:12%}
table[data-rv134-table="recentRows"] th:nth-child(7),table[data-rv134-table="recentRows"] td:nth-child(7){width:11%}

/* Fechamento e resumo por material */
table[data-rv134-table="materialSummary"] th:first-child,table[data-rv134-table="materialSummary"] td:first-child{width:43%;text-align:left}
table[data-rv134-table="materialSummary"] th:not(:first-child),table[data-rv134-table="materialSummary"] td:not(:first-child){width:19%;text-align:right}
table[data-rv134-table="closingHistoryRows"] th:nth-child(1),table[data-rv134-table="closingHistoryRows"] td:nth-child(1){width:8%}
table[data-rv134-table="closingHistoryRows"] th:nth-child(2),table[data-rv134-table="closingHistoryRows"] td:nth-child(2){width:7%}
table[data-rv134-table="closingHistoryRows"] th:nth-child(3),table[data-rv134-table="closingHistoryRows"] td:nth-child(3){width:12%}
table[data-rv134-table="closingHistoryRows"] th:nth-child(4),table[data-rv134-table="closingHistoryRows"] td:nth-child(4){width:14%}
table[data-rv134-table="closingHistoryRows"] th:nth-child(5),table[data-rv134-table="closingHistoryRows"] td:nth-child(5){width:14%}
table[data-rv134-table="closingHistoryRows"] th:nth-child(6),table[data-rv134-table="closingHistoryRows"] td:nth-child(6){width:9%}
table[data-rv134-table="closingHistoryRows"] th:nth-child(7),table[data-rv134-table="closingHistoryRows"] td:nth-child(7){width:8%}
table[data-rv134-table="closingHistoryRows"] th:nth-child(8),table[data-rv134-table="closingHistoryRows"] td:nth-child(8){width:10%}
table[data-rv134-table="closingHistoryRows"] th:nth-child(9),table[data-rv134-table="closingHistoryRows"] td:nth-child(9){width:9%}
table[data-rv134-table="closingHistoryRows"] th:nth-child(10),table[data-rv134-table="closingHistoryRows"] td:nth-child(10){width:9%}

/* Mercado regional: comparativo da captura enviada */
table[data-rv134-table="regionalQuoteRows"] th:nth-child(1),table[data-rv134-table="regionalQuoteRows"] td:nth-child(1){width:11%}
table[data-rv134-table="regionalQuoteRows"] th:nth-child(2),table[data-rv134-table="regionalQuoteRows"] td:nth-child(2){width:17%}
table[data-rv134-table="regionalQuoteRows"] th:nth-child(3),table[data-rv134-table="regionalQuoteRows"] td:nth-child(3){width:17%}
table[data-rv134-table="regionalQuoteRows"] th:nth-child(4),table[data-rv134-table="regionalQuoteRows"] td:nth-child(4){width:10%}
table[data-rv134-table="regionalQuoteRows"] th:nth-child(5),table[data-rv134-table="regionalQuoteRows"] td:nth-child(5){width:10%}
table[data-rv134-table="regionalQuoteRows"] th:nth-child(6),table[data-rv134-table="regionalQuoteRows"] td:nth-child(6){width:9%}
table[data-rv134-table="regionalQuoteRows"] th:nth-child(7),table[data-rv134-table="regionalQuoteRows"] td:nth-child(7){width:13%}
table[data-rv134-table="regionalQuoteRows"] th:nth-child(8),table[data-rv134-table="regionalQuoteRows"] td:nth-child(8){width:13%}
table[data-rv134-table="regionalQuoteRows"] td:nth-child(4),table[data-rv134-table="regionalQuoteRows"] td:nth-child(5),table[data-rv134-table="regionalQuoteRows"] td:nth-child(6){text-align:right}
table[data-rv134-table="competitorRows"] th:nth-child(1),table[data-rv134-table="competitorRows"] td:nth-child(1){width:18%}
table[data-rv134-table="competitorRows"] th:nth-child(2),table[data-rv134-table="competitorRows"] td:nth-child(2){width:18%}
table[data-rv134-table="competitorRows"] th:nth-child(3),table[data-rv134-table="competitorRows"] td:nth-child(3){width:17%}

/* Estoque: validacao, saldo e gerencial */
table[data-rv134-table="stockValidationRows"] th:nth-child(1),table[data-rv134-table="stockValidationRows"] td:nth-child(1){width:8%}
table[data-rv134-table="stockValidationRows"] th:nth-child(2),table[data-rv134-table="stockValidationRows"] td:nth-child(2){width:10%}
table[data-rv134-table="stockValidationRows"] th:nth-child(3),table[data-rv134-table="stockValidationRows"] td:nth-child(3){width:12%}
table[data-rv134-table="stockValidationRows"] th:nth-child(4),table[data-rv134-table="stockValidationRows"] td:nth-child(4){width:12%}
table[data-rv134-table="stockValidationRows"] th:nth-child(5),table[data-rv134-table="stockValidationRows"] td:nth-child(5){width:18%}
table[data-rv134-table="stockValidationRows"] th:nth-child(6),table[data-rv134-table="stockValidationRows"] td:nth-child(6){width:10%}
table[data-rv134-table="stockValidationRows"] th:nth-child(7),table[data-rv134-table="stockValidationRows"] td:nth-child(7){width:9%}
table[data-rv134-table="stockValidationRows"] th:nth-child(8),table[data-rv134-table="stockValidationRows"] td:nth-child(8){width:9%}
table[data-rv134-table="stockValidationRows"] th:nth-child(9),table[data-rv134-table="stockValidationRows"] td:nth-child(9){width:12%}
table[data-rv134-table="stockRows"] th:first-child,table[data-rv134-table="stockRows"] td:first-child{width:28%}
table[data-rv134-table="stockRows"] th:not(:first-child),table[data-rv134-table="stockRows"] td:not(:first-child){text-align:right}
table[data-rv134-table="im133ReconciliationRows"] th:nth-child(1),table[data-rv134-table="im133ReconciliationRows"] td:nth-child(1){width:18%}
table[data-rv134-table="im133ReconciliationRows"] th:nth-child(2),table[data-rv134-table="im133ReconciliationRows"] td:nth-child(2){width:4%}
table[data-rv134-table="im133ReconciliationRows"] th:nth-child(n+3),table[data-rv134-table="im133ReconciliationRows"] td:nth-child(n+3){width:9.75%;text-align:right}
table[data-rv134-table="im133StorageRows"] th:first-child,table[data-rv134-table="im133StorageRows"] td:first-child{width:25%}
table[data-rv134-table="im133StorageRows"] th:not(:first-child),table[data-rv134-table="im133StorageRows"] td:not(:first-child){width:15%;text-align:right}
table[data-rv134-table="im133MaterialAssetRows"] th:nth-child(1),table[data-rv134-table="im133MaterialAssetRows"] td:nth-child(1){width:4%}
table[data-rv134-table="im133MaterialAssetRows"] th:nth-child(2),table[data-rv134-table="im133MaterialAssetRows"] td:nth-child(2){width:20%}
table[data-rv134-table="im133MaterialAssetRows"] th:nth-child(n+3),table[data-rv134-table="im133MaterialAssetRows"] td:nth-child(n+3){width:9.5%;text-align:right}
table[data-rv134-table="im133FixedAssetRows"] th:nth-child(1),table[data-rv134-table="im133FixedAssetRows"] td:nth-child(1){width:20%}
table[data-rv134-table="im133FixedAssetRows"] th:nth-child(2),table[data-rv134-table="im133FixedAssetRows"] td:nth-child(2){width:14%}
table[data-rv134-table="im133IssueRows"] th:nth-child(1),table[data-rv134-table="im133IssueRows"] td:nth-child(1){width:10%}
table[data-rv134-table="im133IssueRows"] th:nth-child(2),table[data-rv134-table="im133IssueRows"] td:nth-child(2){width:17%}
table[data-rv134-table="im133IssueRows"] th:nth-child(3),table[data-rv134-table="im133IssueRows"] td:nth-child(3){width:18%}
table[data-rv134-table="im133IssueRows"] th:nth-child(4),table[data-rv134-table="im133IssueRows"] td:nth-child(4){width:25%}
table[data-rv134-table="im133IssueRows"] th:nth-child(5),table[data-rv134-table="im133IssueRows"] td:nth-child(5){width:30%}

/* Financeiro, conciliacao e bancos */
table[data-rv134-table="bankRows"] th:nth-child(1),table[data-rv134-table="bankRows"] td:nth-child(1),table[data-rv134-table="bankStatementRows"] th:nth-child(1),table[data-rv134-table="bankStatementRows"] td:nth-child(1){width:8%}
table[data-rv134-table="bankRows"] th:nth-child(2),table[data-rv134-table="bankRows"] td:nth-child(2),table[data-rv134-table="bankStatementRows"] th:nth-child(2),table[data-rv134-table="bankStatementRows"] td:nth-child(2){width:14%}
table[data-rv134-table="bankRows"] th:nth-child(3),table[data-rv134-table="bankRows"] td:nth-child(3),table[data-rv134-table="bankStatementRows"] th:nth-child(3),table[data-rv134-table="bankStatementRows"] td:nth-child(3){width:11%}
table[data-rv134-table="bankRows"] th:nth-child(4),table[data-rv134-table="bankRows"] td:nth-child(4),table[data-rv134-table="bankStatementRows"] th:nth-child(4),table[data-rv134-table="bankStatementRows"] td:nth-child(4){width:23%}
table[data-rv134-table="bankRows"] td:nth-child(n+5),table[data-rv134-table="bankStatementRows"] td:nth-child(n+5){text-align:right}
table[data-rv134-table="bankDailyRows"] th:nth-child(3),table[data-rv134-table="bankDailyRows"] td:nth-child(3){width:24%}
table[data-rv134-table="systemBankRows"] th:nth-child(4),table[data-rv134-table="systemBankRows"] td:nth-child(4){width:28%}

/* Contabilidade e controladoria */
table[data-rv134-table="a29DreRows"] th:first-child,table[data-rv134-table="a29DreRows"] td:first-child,table[data-rv134-table="accountingDreRows"] th:first-child,table[data-rv134-table="accountingDreRows"] td:first-child{width:72%}
table[data-rv134-table="a29DreRows"] th:last-child,table[data-rv134-table="a29DreRows"] td:last-child,table[data-rv134-table="accountingDreRows"] th:last-child,table[data-rv134-table="accountingDreRows"] td:last-child{width:28%;text-align:right}
table[data-rv134-table="a29LedgerRows"] th:nth-child(4),table[data-rv134-table="a29LedgerRows"] td:nth-child(4){width:27%}
table[data-rv134-table="a29PlanRows"] th:nth-child(2),table[data-rv134-table="a29PlanRows"] td:nth-child(2){width:23%}
table[data-rv134-table="controlIssueRows"] th:nth-child(4),table[data-rv134-table="controlIssueRows"] td:nth-child(4),table[data-rv134-table="controlAuditRows"] th:nth-child(5),table[data-rv134-table="controlAuditRows"] td:nth-child(5){width:31%}
table[data-rv134-table="controlTopMaterials"] th:first-child,table[data-rv134-table="controlTopMaterials"] td:first-child{width:34%}

/* Catalogo, precos e margens */
table[data-rv134-table="catalogMaterialRows"] th:nth-child(1),table[data-rv134-table="catalogMaterialRows"] td:nth-child(1){width:23%}
table[data-rv134-table="catalogMaterialRows"] th:nth-child(2),table[data-rv134-table="catalogMaterialRows"] td:nth-child(2){width:15%}
table[data-rv134-table="marginRuleRows"] th:first-child,table[data-rv134-table="marginRuleRows"] td:first-child{width:24%}
table[data-rv134-table="marginRuleRows"] th:nth-child(2),table[data-rv134-table="marginRuleRows"] td:nth-child(2){width:14%}

@media (max-width:1180px) and (min-width:821px){
  table.rv134-table th,table.rv134-table td{padding:6px 3px!important;font-size:8.7px!important;line-height:1.15!important}
  table.rv134-table td small{font-size:7.8px!important}
  table.rv134-table .pill,table.rv134-table .badge,table.rv134-table .margin-status,table.rv134-table .im133-pill{font-size:7.8px!important;padding:2px 3px!important}
  table.rv134-table button,table.rv134-table .success,table.rv134-table .danger,table.rv134-table .ghost{font-size:8px!important;padding:3px!important}
}

/* Android e telas estreitas: cada linha vira um cartao sem perder colunas. */
@media (max-width:820px){
  .table-wrap.rv134-wrap,.stock-table.rv134-wrap,.stock-validation-table.rv134-wrap,.cash-closing-table.rv134-wrap,.cash-closing-history.rv134-wrap{overflow:visible!important;border:0!important;background:transparent!important}
  table.rv134-table:not(.rv134-simple){display:block!important;width:100%!important;border:0!important;background:transparent!important}
  table.rv134-table:not(.rv134-simple)>thead{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
  table.rv134-table:not(.rv134-simple)>tbody{display:grid!important;gap:10px!important;width:100%!important}
  table.rv134-table:not(.rv134-simple)>tbody>tr.rv134-record{display:grid!important;grid-template-columns:1fr!important;width:100%!important;border:1px solid #d8e3dc!important;border-radius:10px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 3px 10px rgba(18,52,37,.045)!important}
  table.rv134-table:not(.rv134-simple)>tbody>tr.rv134-record.shaddai-page-hidden-v132{display:none!important}
  table.rv134-table:not(.rv134-simple)>tbody>tr.rv134-record>td{display:grid!important;grid-template-columns:minmax(104px,36%) minmax(0,1fr)!important;gap:10px!important;align-items:center!important;width:100%!important;min-height:36px!important;padding:7px 9px!important;border:0!important;border-bottom:1px solid #e9efeb!important;text-align:left!important;font-size:10.5px!important;white-space:normal!important}
  table.rv134-table:not(.rv134-simple)>tbody>tr.rv134-record>td:last-child{border-bottom:0!important}
  table.rv134-table:not(.rv134-simple)>tbody>tr.rv134-record>td:before{content:attr(data-rv134-label);display:block;color:#52685e;font-size:8.8px;font-weight:950;line-height:1.15;text-transform:uppercase;letter-spacing:.035em}
  table.rv134-table:not(.rv134-simple)>tbody>tr.rv134-record>td.rv134-numeric{white-space:normal!important}
  table.rv134-table:not(.rv134-simple)>tbody>tr.rv134-record>td>*{justify-self:start!important;text-align:left!important}
  table.rv134-table:not(.rv134-simple)>tbody>tr.rv134-record>td .action-group,table.rv134-table:not(.rv134-simple)>tbody>tr.rv134-record>td .a29-actions,table.rv134-table:not(.rv134-simple)>tbody>tr.rv134-record>td .bank-actions{width:100%!important}
  table.rv134-table:not(.rv134-simple)>tbody>tr.rv134-record>td button{flex:1 1 auto!important;min-height:30px!important;font-size:9.5px!important}
  table.rv134-table:not(.rv134-simple)>tbody>tr.rv134-empty-row{display:block!important;border:1px solid #d8e3dc!important;border-radius:9px!important;background:#fff!important}
  table.rv134-table:not(.rv134-simple)>tbody>tr.rv134-empty-row>td{display:block!important;width:100%!important;padding:14px!important;text-align:center!important}
  table.rv134-table.rv134-simple{width:100%!important;min-width:0!important;table-layout:fixed!important}
  table.rv134-table.rv134-simple th,table.rv134-table.rv134-simple td{padding:7px 5px!important;font-size:9.5px!important}
  table.rv134-table.rv134-simple td.rv134-numeric{white-space:normal!important}
  table.rv134-table tfoot{display:block!important;width:100%!important;margin-top:8px}
  table.rv134-table tfoot tr{display:grid!important;width:100%!important}table.rv134-table tfoot td,table.rv134-table tfoot th{display:block!important;width:100%!important;text-align:right!important}
}

@media (max-width:430px){
  table.rv134-table:not(.rv134-simple)>tbody>tr.rv134-record>td{grid-template-columns:minmax(86px,34%) minmax(0,1fr)!important;gap:7px!important;padding:7px!important;font-size:10px!important}
  table.rv134-table:not(.rv134-simple)>tbody>tr.rv134-record>td:before{font-size:8px!important}
  table.rv134-table.rv134-simple th,table.rv134-table.rv134-simple td{padding:6px 3px!important;font-size:8.8px!important}
}

@media print{.table-wrap.rv134-wrap,.stock-table.rv134-wrap,.stock-validation-table.rv134-wrap{overflow:visible!important}table.rv134-table{width:100%!important;min-width:0!important;table-layout:fixed!important}table.rv134-table th,table.rv134-table td{padding:4px 3px!important;font-size:8px!important}}
