
/* ==========================================================================
   ENTERPRISE RESPONSIVE MOBILE TABLE ENGINE (Horizontal Touch Scroll & Dark Navy Header)
   ========================================================================== */
.ab-table-responsive,
.entry-content .wp-block-table,
.entry-content figure.wp-block-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
    margin: 2rem 0 !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
}

.ab-table-responsive table,
.entry-content table,
.rbct table {
    display: table !important;
    width: 100% !important;
    min-width: 720px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    table-layout: auto !important;
}

.ab-table-responsive table thead,
.entry-content table thead {
    background-color: #0f172a !important;
    background: #0f172a !important;
}

.ab-table-responsive table thead tr,
.ab-table-responsive table thead tr[style],
.ab-table-responsive table tr:first-child,
.entry-content table thead tr,
.entry-content table thead tr[style],
.entry-content table tr:first-child {
    background-color: #0f172a !important;
    background: #0f172a !important;
}

.ab-table-responsive table th,
.ab-table-responsive table thead th,
.entry-content table th,
.entry-content table thead th,
.rbct table th {
    background-color: #0f172a !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border: 1px solid #1e293b !important;
    padding: 14px 16px !important;
    min-width: 140px !important;
    white-space: normal !important;
    word-break: normal !important;
    vertical-align: middle !important;
}

.ab-table-responsive table td,
.entry-content table td,
.rbct table td {
    min-width: 140px !important;
    white-space: normal !important;
    word-break: normal !important;
    padding: 14px 16px !important;
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    vertical-align: top !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
}

.ab-table-responsive table tbody tr:nth-child(even) td,
.entry-content table tbody tr:nth-child(even) td,
.rbct table tbody tr:nth-child(even) td {
    background-color: #f8fafc !important;
}

.ab-table-responsive table tbody tr:hover td,
.entry-content table tbody tr:hover td,
.rbct table tbody tr:hover td {
    background-color: #f1f5f9 !important;
}

/* Dark mode */
body.ab-dark-mode .ab-table-responsive,
body[data-theme="dark"] .ab-table-responsive {
    border-color: #1e293b !important;
    background: #0f172a !important;
}
body.ab-dark-mode .ab-table-responsive td,
body[data-theme="dark"] .ab-table-responsive td {
    color: #cbd5e1 !important;
    border-color: #1e293b !important;
    background-color: #0f172a !important;
}
body.ab-dark-mode .ab-table-responsive tbody tr:nth-child(even) td,
body[data-theme="dark"] .ab-table-responsive tbody tr:nth-child(even) td {
    background-color: #1e293b !important;
}
