/* CONTRIX – tablas profesionales, adaptación transversal sin modificar datos ni formularios */
.cx-content :is(.table-responsive, .cx-mobile-table-scroll, .erp-table-wrap, .cx-mobile-table-container) {
    max-width: 100%; border-radius: 13px; scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
    overscroll-behavior-inline: contain;
}
.cx-content :is(.table-responsive, .cx-mobile-table-scroll, .erp-table-wrap, .cx-mobile-table-container)::-webkit-scrollbar {height: 7px; width: 7px;}
.cx-content :is(.table-responsive, .cx-mobile-table-scroll, .erp-table-wrap, .cx-mobile-table-container)::-webkit-scrollbar-track {background:#f8fafc; border-radius:8px;}
.cx-content :is(.table-responsive, .cx-mobile-table-scroll, .erp-table-wrap, .cx-mobile-table-container)::-webkit-scrollbar-thumb {background:#cbd5e1; border:2px solid #f8fafc; border-radius:8px;}
.cx-content .cx-mobile-scroll-hint { display: none !important; }
.cx-content .cx-table-navigation {display:flex; align-items:center; justify-content:flex-end; gap:8px; margin:8px 0 9px; min-height:30px;}
.cx-content .cx-table-navigation[hidden] {display:none !important;}
.cx-content .cx-table-navigation-label {color:#64748b; font-weight:650; font-size:.76rem; letter-spacing:.012em;}
.cx-content .cx-table-navigation-buttons {display:inline-flex; overflow:hidden; border:1px solid #dbe5f0; border-radius:10px; background:#fff; box-shadow:0 2px 6px rgb(15 23 42 / 3%);}
.cx-content .cx-table-navigation-button {appearance:none; display:inline-grid; place-items:center; border:0; background:#fff; color:#305d9c; width:34px; height:30px; line-height:1; font-size:1.04rem; cursor:pointer;}
.cx-content .cx-table-navigation-button + .cx-table-navigation-button {border-left:1px solid #e9edf4;}
.cx-content .cx-table-navigation-button:hover:not(:disabled) {background:#eef5ff;}
.cx-content .cx-table-navigation-button:disabled {color:#c6d0de; cursor:default;}
.cx-content .cx-table-navigation-button:focus-visible {outline:2px solid #2563eb; outline-offset:-2px;}
.cx-content table:not(.cx-mobile-card-table) {border-collapse:separate; border-spacing:0; margin-bottom:0; color:#243347;}
.cx-content table:not(.cx-mobile-card-table) thead th {
    background:#f4f7fc !important; color:#52637e !important; border-bottom:1px solid #dce5ef !important;
    font-size:.72rem; font-weight:780; letter-spacing:.025em; vertical-align:middle; padding:13px 14px;
}
.cx-content table:not(.cx-mobile-card-table) tbody td {border-bottom:1px solid #edf1f6; padding:13px 14px; vertical-align:middle; line-height:1.45;}
.cx-content table:not(.cx-mobile-card-table) tbody tr:nth-of-type(even) {background:rgba(248,250,253,.52);}
.cx-content table:not(.cx-mobile-card-table) tbody tr:hover {background:#f3f8ff !important;}
.cx-content table:not(.cx-mobile-card-table) :is(td,th) {font-variant-numeric:tabular-nums;}
.cx-content table:not(.cx-mobile-card-table) :is(a,button) {white-space:normal;}
.cx-content .cx-cxp-table {min-width:970px;}
.cx-content .cx-cxp-primary {display:grid; gap:4px; min-width:210px;}
.cx-content .cx-cxp-balance {font-size:1rem; color:#b45309; line-height:1.3;}
.cx-content .cx-cxp-subtitle {font-size:.73rem; color:#728299;}
.cx-content .cx-cxp-pay-actions {display:flex; flex-wrap:wrap; gap:6px; margin-top:5px;}
.cx-content .cx-cxp-pay-actions .btn {font-size:.77rem; padding:6px 9px;}
.cx-content .cx-cxp-table .cx-document-cell {min-width:180px;}
.cx-content .cx-cxp-payment-kind {display:flex; flex-wrap:wrap; gap:8px; padding:12px; border:1px solid #dce5ef; border-radius:12px; background:#f8fbff;}
.cx-content .cx-cxp-payment-kind .btn {min-width:155px;}
.cx-content .cx-cxp-payment-kind .btn.active {background:#eaf2ff; color:#154b94; border-color:#8ab6f6; font-weight:700; box-shadow:inset 0 0 0 1px #8ab6f6;}
.cx-content .cx-cxp-payment-kind small {flex-basis:100%;}
@media screen and (max-width:767.98px) {
  .cx-content .cx-table-navigation {margin-top:5px; padding-right:2px;}
  .cx-content .cx-table-navigation-label {font-size:.72rem;}
  .cx-content table.cx-mobile-card-table > :is(tbody,tfoot) > tr {box-shadow:0 4px 15px rgb(15 23 42 / 4%);}
  .cx-content .cx-cxp-pay-actions .btn {flex:1 1 104px;}
  .cx-content .cx-cxp-payment-kind .btn {flex:1 1 130px; min-width:0;}
}
@media print {.cx-content .cx-table-navigation {display:none !important;} .cx-content :is(.table-responsive, .cx-mobile-table-scroll, .erp-table-wrap) {overflow:visible !important;}}
