/* Reusable WhatsApp platform table contract.
   Add .whatsapp-platform-page to the page root and
   .whatsapp-platform-table around any shared table. */
.whatsapp-platform-page {
    --wa-instance-ink: #173b36;
    --wa-instance-muted: #6b7f7a;
    --wa-instance-green: var(--primary, #128c7e);
    --wa-instance-green-dark: var(--primary-dark, var(--primary, #075e54));
    --wa-instance-soft: #effaf6;
    --wa-instance-line: color-mix(in srgb, var(--primary, #128c7e) 14%, #dcebe7);
    width: 100%;
}

.whatsapp-platform-table {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
}

.whatsapp-platform-table .shared-table-v2 { width: 100%; }

.whatsapp-platform-table .shared-table-v2 > .shadow-sm {
    overflow: hidden;
    border: 1px solid var(--wa-instance-line) !important;
    border-radius: 14px;
    background: #fff;
    box-shadow: none !important;
}

.whatsapp-platform-table .shared-table-header-bar {
    border-bottom: 1px solid var(--wa-instance-line);
    border-radius: 13px 13px 0 0 !important;
    background: #f8fcfa !important;
    padding: .85rem 1rem .7rem;
    box-shadow: none;
}

/* Shared WhatsApp readability pass. Keep the table surface bright, but make
   labels and values dark enough to scan comfortably on laptop screens. */
.whatsapp-platform-table .shared-table-header-title,
.whatsapp-platform-table .shared-table-header-title h1,
.whatsapp-platform-table .shared-table-header-title h2,
.whatsapp-platform-table .shared-table-header-title h3,
.whatsapp-platform-table .shared-table-header-title h4,
.whatsapp-platform-table .shared-table-header-title h5,
.whatsapp-platform-table .shared-table-header-title h6 {
    color: #263447 !important;
}

.whatsapp-platform-table .shared-table-header-title p,
.whatsapp-platform-table .shared-table-header-title small {
    color: #607187 !important;
}

.whatsapp-platform-table .shared-table-header-row1 { margin-bottom: 8px; }
.whatsapp-platform-table .shared-table-header-title { min-width: 0; }
.whatsapp-platform-table .shared-table-header-toolbar { gap: 6px !important; }
.whatsapp-platform-table .shared-table-header-search { min-width: min(260px, 30vw); }
.whatsapp-platform-table .shared-table-search-input,
.whatsapp-platform-table .shared-table-per-page-select {
    min-height: 36px;
    border-radius: 9px;
    box-shadow: none;
    color: #334155 !important;
    background: #fff !important;
}

.whatsapp-platform-table .shared-table-search-input::placeholder {
    color: #7a899b;
    opacity: 1;
}

.whatsapp-platform-table .shared-table-header-row2 { gap: 6px !important; }
.whatsapp-wallet-transactions-page .shared-table-header-row2 {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 3px;
}
.whatsapp-wallet-transactions-page .shared-table-header-row2 > .btn,
.whatsapp-wallet-transactions-page .shared-table-header-row2 > .btn-group {
    flex: 0 0 auto;
    white-space: nowrap;
}
.whatsapp-platform-table .shared-table-header-row2 .btn {
    min-height: 34px;
    border-radius: 8px;
    font-size: .72rem;
    padding: .4rem .65rem;
    font-weight: 650;
}

.whatsapp-platform-table .shared-table-header-row2 .btn-outline-light {
    border-color: #c8d8e4 !important;
    color: #36556c !important;
    background: #fff !important;
}

.whatsapp-platform-table .shared-table-header-row2 .btn-outline-light:hover,
.whatsapp-platform-table .shared-table-header-row2 .btn-outline-light:focus-visible {
    border-color: var(--primary, #128c7e) !important;
    color: #fff !important;
    background: var(--primary, #128c7e) !important;
}

.whatsapp-platform-table .shared-table-header-row2 .btn-dark {
    border-color: var(--primary-dark, var(--primary, #075e54)) !important;
    color: #fff !important;
    background: var(--primary-dark, var(--primary, #075e54)) !important;
}

.whatsapp-platform-table .shared-table-header-row2 .btn-secondary {
    border-color: color-mix(in srgb, var(--primary, #128c7e) 18%, #cfe3dc) !important;
    color: color-mix(in srgb, var(--primary, #128c7e) 68%, #173b36) !important;
    background: color-mix(in srgb, var(--primary, #128c7e) 8%, #fff) !important;
}

.whatsapp-platform-table .shared-table-card-body {
    border: 0;
    border-radius: 0 0 13px 13px;
    padding: 0;
}

.whatsapp-platform-table .shared-table-card-body .table-responsive {
    min-height: 0 !important;
    overflow-x: auto;
    padding: 0;
}

.whatsapp-platform-table .shared-table-card-body table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

.whatsapp-platform-table .shared-table-card-body table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.whatsapp-platform-table .shared-table-card-body table thead th {
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--wa-instance-line);
    background: color-mix(in srgb, var(--primary, #128c7e) 7%, #fff);
    color: #526a64 !important;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .045em;
    white-space: nowrap;
}

.whatsapp-platform-table .shared-table-card-body table tbody td {
    padding: 13px 14px;
    border: 0;
    border-bottom: 1px solid #e3efeb;
    color: #2f403d !important;
    font-size: .79rem;
    font-weight: 500;
    line-height: 1.35;
    vertical-align: middle;
}

.whatsapp-platform-table .shared-table-card-body table tbody td .text-muted,
.whatsapp-platform-table .shared-table-card-body table tbody td small {
    color: #60756f !important;
    opacity: 1 !important;
}

.whatsapp-platform-table .shared-table-card-body table tbody tr:nth-child(even),
.whatsapp-platform-table .shared-table-card-body table tbody tr:nth-child(even) > * { background: color-mix(in srgb, var(--primary, #128c7e) 2%, #fff); }
.whatsapp-platform-table .shared-table-card-body table tbody tr:hover,
.whatsapp-platform-table .shared-table-card-body table tbody tr:hover > * { background: color-mix(in srgb, var(--primary, #128c7e) 7%, #fff); }
.whatsapp-platform-table .shared-table-card-body table tbody tr:last-child td { border-bottom: 0; }
.whatsapp-platform-table .shared-table-card-body table th:last-child,
.whatsapp-platform-table .shared-table-card-body table td:last-child { text-align: right; }

.whatsapp-platform-table .shared-table-card-body > div[id*="pagination"]:not(.shared-table-pagination-top) {
    margin-top: 0 !important;
    padding: 12px 16px;
    border-top: 1px solid var(--wa-instance-line);
    background: #fbfdfc;
}

@media (max-width: 767px) {
    .whatsapp-platform-page { padding: .75rem 0 2rem; }
    .whatsapp-platform-table .shared-table-header-bar { padding: .75rem; }
    .whatsapp-platform-table .shared-table-header-search { min-width: 0; }
}

/* Reference-style table surface for WhatsApp pages. The accent remains
   tenant-driven through the active platform theme. */
.wa-platform {
    --wa-table-primary: var(--primary, #128c7e);
    --wa-table-primary-dark: var(--primary-dark, var(--primary, #075e54));
    --wa-table-soft: color-mix(in srgb, var(--wa-table-primary) 5%, #fff);
    --wa-table-line: color-mix(in srgb, var(--wa-table-primary) 14%, #e3e9ef);
    --wa-table-ink: var(--dark, #263447);
    --wa-table-muted: color-mix(in srgb, var(--wa-table-ink) 60%, #fff);
}

.whatsapp-platform-table .shared-table-v2 > .shadow-sm {
    overflow: hidden;
    border: 1px solid var(--wa-table-line) !important;
    border-radius: 20px !important;
    background: color-mix(in srgb, var(--wa-table-primary) 1%, #fff);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--wa-table-primary-dark) 7%, transparent) !important;
}

.whatsapp-platform-table .shared-table-header-bar {
    padding: 1.1rem 1.2rem .9rem;
    border-bottom: 1px solid var(--wa-table-line);
    border-radius: 0 !important;
    background: transparent !important;
}

.whatsapp-platform-table .shared-table-header-row1 {
    margin-bottom: 12px;
}

.whatsapp-platform-table .shared-table-header-title h1,
.whatsapp-platform-table .shared-table-header-title h2,
.whatsapp-platform-table .shared-table-header-title h3,
.whatsapp-platform-table .shared-table-header-title h4,
.whatsapp-platform-table .shared-table-header-title h5,
.whatsapp-platform-table .shared-table-header-title h6 {
    color: var(--wa-table-ink) !important;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -.02em;
}

.whatsapp-platform-table .shared-table-header-title p,
.whatsapp-platform-table .shared-table-header-title small {
    color: var(--wa-table-muted) !important;
}

.whatsapp-platform-table .shared-table-search-input,
.whatsapp-platform-table .shared-table-per-page-select {
    min-height: 40px;
    border: 1px solid var(--wa-table-line) !important;
    border-radius: 11px;
    color: var(--wa-table-ink) !important;
    background: #fff !important;
}

.whatsapp-platform-table .shared-table-search-input:focus,
.whatsapp-platform-table .shared-table-per-page-select:focus {
    border-color: color-mix(in srgb, var(--wa-table-primary) 48%, var(--wa-table-line)) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wa-table-primary) 10%, transparent) !important;
}

.whatsapp-platform-table .shared-table-header-row2 .btn {
    min-height: 36px;
    border-radius: 10px;
    font-size: .76rem;
    padding: .45rem .75rem;
}

.whatsapp-platform-table .shared-table-card-body {
    padding: 0;
    background: transparent;
}

.whatsapp-platform-table .shared-table-card-body .table-responsive {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.whatsapp-platform-table .shared-table-card-body table {
    min-width: 820px;
    border-collapse: separate;
    border-spacing: 0 5px;
    background: transparent;
}

.whatsapp-platform-table .shared-table-card-body table thead th {
    padding: .8rem .9rem .65rem;
    border: 0;
    background: var(--wa-table-soft);
    color: var(--wa-table-muted) !important;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .07em;
}

.whatsapp-platform-table .shared-table-card-body table thead th:first-child {
    border-radius: 10px 0 0 10px;
}

.whatsapp-platform-table .shared-table-card-body table thead th:last-child {
    border-radius: 0 10px 10px 0;
}

.whatsapp-platform-table .shared-table-card-body table tbody td {
    padding: .85rem .9rem;
    border: 0;
    color: var(--wa-table-ink) !important;
    background: color-mix(in srgb, var(--wa-table-primary) 1%, #fff);
    font-size: .82rem;
    line-height: 1.4;
    vertical-align: middle;
}

.whatsapp-platform-table .shared-table-card-body table tbody tr:nth-child(even) td {
    background: color-mix(in srgb, var(--wa-table-primary) 3%, #fff);
}

.whatsapp-platform-table .shared-table-card-body table tbody tr:hover td {
    background: color-mix(in srgb, var(--wa-table-primary) 8%, #fff);
}

.whatsapp-platform-table .shared-table-card-body table tbody td:first-child {
    border-radius: 11px 0 0 11px;
}

.whatsapp-platform-table .shared-table-card-body table tbody td:last-child {
    border-radius: 0 11px 11px 0;
}

.whatsapp-platform-table .shared-table-card-body table tbody td .text-muted,
.whatsapp-platform-table .shared-table-card-body table tbody td small {
    color: var(--wa-table-muted) !important;
    opacity: 1 !important;
}

.whatsapp-platform-table .shared-table-card-body > div[id*="pagination"] {
    margin: 0 !important;
    padding: .9rem 1.1rem;
    border-top: 1px solid var(--wa-table-line);
    background: transparent;
}

@media (max-width: 767px) {
    .whatsapp-platform-table .shared-table-v2 > .shadow-sm {
        border-radius: 15px !important;
    }

    .whatsapp-platform-table .shared-table-header-bar {
        padding: .9rem;
    }

    .whatsapp-platform-table .shared-table-header-toolbar {
        width: 100%;
    }

    .whatsapp-platform-table .shared-table-header-search {
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* Apply the same contract directly to the reusable shared component. Some
 * WhatsApp routes render .shared-table-v2 without the optional page wrapper. */
.wa-platform .pc-content .shared-table-v2 {
    width: 100%;
    min-width: 0;
    color: var(--wa-table-ink, #253242);
}

.wa-platform .pc-content .shared-table-v2 > .shadow-sm {
    overflow: hidden;
    border: 1px solid var(--wa-table-line, #dbe6e3) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--wa-table-primary-dark, #075e54) 6%, transparent) !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-header-bar {
    padding: 1rem 1.15rem .8rem !important;
    border-bottom: 1px solid var(--wa-table-line, #dbe6e3) !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--wa-table-ink, #253242) !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-header-row1 {
    margin-bottom: .75rem !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-header-title h1,
.wa-platform .pc-content .shared-table-v2 .shared-table-header-title h2,
.wa-platform .pc-content .shared-table-v2 .shared-table-header-title h3,
.wa-platform .pc-content .shared-table-v2 .shared-table-header-title h4,
.wa-platform .pc-content .shared-table-v2 .shared-table-header-title h5,
.wa-platform .pc-content .shared-table-v2 .shared-table-header-title h6 {
    margin: 0 !important;
    color: var(--wa-table-ink, #253242) !important;
    font-size: 1.05rem !important;
    font-weight: 650 !important;
    letter-spacing: -.015em;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-header-title p,
.wa-platform .pc-content .shared-table-v2 .shared-table-header-title small {
    color: var(--wa-table-muted, #718096) !important;
    font-size: .78rem !important;
    font-weight: 450 !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-header-toolbar {
    gap: .5rem !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-header-search {
    width: min(340px, 34vw);
    min-width: 220px;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-search-input,
.wa-platform .pc-content .shared-table-v2 .shared-table-per-page-select {
    min-height: 38px !important;
    border: 1px solid var(--wa-table-line, #dbe6e3) !important;
    border-radius: 9px !important;
    color: var(--wa-table-ink, #253242) !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: .78rem !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-search-input:focus,
.wa-platform .pc-content .shared-table-v2 .shared-table-per-page-select:focus {
    border-color: color-mix(in srgb, var(--wa-table-primary, #128c7e) 55%, var(--wa-table-line, #dbe6e3)) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wa-table-primary, #128c7e) 11%, transparent) !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-header-row2 {
    width: 100%;
    gap: .5rem !important;
    padding-top: .7rem;
    border-top: 1px solid color-mix(in srgb, var(--wa-table-line, #dbe6e3) 70%, transparent);
}

.wa-platform .pc-content .shared-table-v2 .shared-table-header-row2 .btn {
    min-height: 36px;
    border-radius: 9px !important;
    font-size: .74rem;
    font-weight: 650;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-header-row2 .btn-success {
    border-color: var(--wa-table-primary, #128c7e) !important;
    background: var(--wa-table-primary, #128c7e) !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-header-row2 .btn-dark {
    border-color: var(--wa-table-primary-dark, #075e54) !important;
    background: var(--wa-table-primary-dark, #075e54) !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-header-row2 .btn-secondary {
    border-color: var(--wa-table-line, #dbe6e3) !important;
    color: var(--wa-table-primary-dark, #075e54) !important;
    background: var(--wa-table-soft, #f2faf7) !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-card-body {
    padding: 0 !important;
    background: #fff !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-card-body .table-responsive {
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-card-body table {
    width: 100%;
    min-width: 820px;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-card-body table thead th {
    padding: .78rem .85rem !important;
    border: 0 !important;
    border-bottom: 1px solid var(--wa-table-line, #dbe6e3) !important;
    background: var(--wa-table-soft, #f2faf7) !important;
    color: #5d6d7e !important;
    font-size: .69rem !important;
    font-weight: 700 !important;
    letter-spacing: .035em;
    text-transform: none !important;
    vertical-align: middle;
    white-space: nowrap;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-card-body table tbody td {
    padding: .78rem .85rem !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f1 !important;
    color: var(--wa-table-ink, #253242) !important;
    background: #fff !important;
    font-size: .8rem !important;
    font-weight: 450 !important;
    line-height: 1.4;
    vertical-align: middle;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-card-body table tbody tr:hover > td {
    background: var(--wa-table-soft, #f2faf7) !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-card-body table tbody tr:has(input[type="checkbox"]:checked) > td,
.wa-platform .pc-content .shared-table-v2 .shared-table-card-body table tbody tr.selected > td {
    background: var(--wa-table-soft-strong, #eaf7f1) !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-card-body table input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--wa-table-primary, #128c7e);
    vertical-align: middle;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-card-body table .badge {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    padding: .26rem .62rem;
    border: 1px solid transparent;
    border-radius: 999px;
    box-shadow: none;
    font-size: .7rem;
    font-weight: 650;
    line-height: 1;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-card-body table .badge-success,
.wa-platform .pc-content .shared-table-v2 .shared-table-card-body table .bg-success {
    color: #176b4d !important;
    border-color: #bfe7d4 !important;
    background: #eaf8f1 !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-card-body table .badge-warning,
.wa-platform .pc-content .shared-table-v2 .shared-table-card-body table .bg-warning {
    color: #8b6411 !important;
    border-color: #f1dfab !important;
    background: #fff8e5 !important;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-card-body > div[id*="pagination"]:not(.shared-table-pagination-top) {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 !important;
    padding: .75rem 1rem !important;
    border-top: 1px solid var(--wa-table-line, #dbe6e3) !important;
    background: #fff !important;
    color: var(--wa-table-muted, #718096);
    font-size: .76rem;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-card-body > div[id*="pagination"]:not(.shared-table-pagination-top) .pagination {
    display: inline-flex;
    gap: 3px;
    margin: 0;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-card-body > div[id*="pagination"]:not(.shared-table-pagination-top) .page-link {
    display: inline-flex;
    min-width: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--wa-table-primary-dark, #075e54);
    background: transparent;
    font-size: .75rem;
}

.wa-platform .pc-content .shared-table-v2 .shared-table-card-body > div[id*="pagination"]:not(.shared-table-pagination-top) .page-item.active .page-link {
    border-color: var(--wa-table-primary, #128c7e) !important;
    color: #fff !important;
    background: var(--wa-table-primary, #128c7e) !important;
}

@media (max-width: 767px) {
    .wa-platform .pc-content .shared-table-v2 .shared-table-header-search {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
    }

    .wa-platform .pc-content .shared-table-v2 .shared-table-header-row2 {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: .25rem;
    }

    .wa-platform .pc-content .shared-table-v2 .shared-table-header-row2 > * {
        flex: 0 0 auto;
    }

    .wa-platform .pc-content .shared-table-v2 .shared-table-card-body > div[id*="pagination"]:not(.shared-table-pagination-top) {
        align-items: flex-start;
        flex-direction: column;
    }
}

/*
 * WhatsApp reference table system.
 * Keep every platform table on the same calm, data-first surface as the
 * reference design. The accent is inherited from the active system theme.
 */
.wa-platform {
    --wa-table-primary: var(--primary, #128c7e);
    --wa-table-primary-dark: var(--primary-dark, #075e54);
    --wa-table-soft: color-mix(in srgb, var(--wa-table-primary) 6%, #fff);
    --wa-table-soft-strong: color-mix(in srgb, var(--wa-table-primary) 11%, #fff);
    --wa-table-line: color-mix(in srgb, var(--wa-table-primary) 15%, #dbe6e3);
    --wa-table-ink: #253242;
    --wa-table-muted: #718096;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-v2 > .shadow-sm,
.wa-platform .pc-content .shared-table-page-section .shared-table-v2 > .shadow-sm {
    overflow: hidden;
    border: 1px solid var(--wa-table-line) !important;
    border-radius: 16px !important;
    background: #fff;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--wa-table-primary-dark) 6%, transparent) !important;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-header-bar,
.wa-platform .pc-content .shared-table-page-section .shared-table-header-bar {
    padding: 1rem 1.15rem .8rem;
    border-bottom: 1px solid var(--wa-table-line);
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--wa-table-ink) !important;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-header-row1,
.wa-platform .pc-content .shared-table-page-section .shared-table-header-row1 {
    margin-bottom: .75rem;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-header-title h1,
.wa-platform .pc-content .whatsapp-platform-table .shared-table-header-title h2,
.wa-platform .pc-content .whatsapp-platform-table .shared-table-header-title h3,
.wa-platform .pc-content .whatsapp-platform-table .shared-table-header-title h4,
.wa-platform .pc-content .whatsapp-platform-table .shared-table-header-title h5,
.wa-platform .pc-content .whatsapp-platform-table .shared-table-header-title h6,
.wa-platform .pc-content .shared-table-page-section .shared-table-header-title h1,
.wa-platform .pc-content .shared-table-page-section .shared-table-header-title h2,
.wa-platform .pc-content .shared-table-page-section .shared-table-header-title h3,
.wa-platform .pc-content .shared-table-page-section .shared-table-header-title h4,
.wa-platform .pc-content .shared-table-page-section .shared-table-header-title h5,
.wa-platform .pc-content .shared-table-page-section .shared-table-header-title h6 {
    margin: 0;
    color: var(--wa-table-ink) !important;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -.015em;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-header-title p,
.wa-platform .pc-content .whatsapp-platform-table .shared-table-header-title small,
.wa-platform .pc-content .shared-table-page-section .shared-table-header-title p,
.wa-platform .pc-content .shared-table-page-section .shared-table-header-title small {
    color: var(--wa-table-muted) !important;
    font-size: .78rem;
    font-weight: 450;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-header-row2,
.wa-platform .pc-content .shared-table-page-section .shared-table-header-row2 {
    padding-top: .7rem;
    border-top: 1px solid color-mix(in srgb, var(--wa-table-line) 70%, transparent);
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-search-input,
.wa-platform .pc-content .whatsapp-platform-table .shared-table-per-page-select,
.wa-platform .pc-content .shared-table-page-section .shared-table-search-input,
.wa-platform .pc-content .shared-table-page-section .shared-table-per-page-select {
    min-height: 38px;
    border: 1px solid var(--wa-table-line) !important;
    border-radius: 9px;
    color: var(--wa-table-ink) !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: .78rem;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-search-input:focus,
.wa-platform .pc-content .whatsapp-platform-table .shared-table-per-page-select:focus,
.wa-platform .pc-content .shared-table-page-section .shared-table-search-input:focus,
.wa-platform .pc-content .shared-table-page-section .shared-table-per-page-select:focus {
    border-color: color-mix(in srgb, var(--wa-table-primary) 55%, var(--wa-table-line)) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wa-table-primary) 11%, transparent) !important;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-header-row2 .btn,
.wa-platform .pc-content .shared-table-page-section .shared-table-header-row2 .btn {
    min-height: 36px;
    border-radius: 9px;
    font-size: .74rem;
    font-weight: 650;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-header-row2 .btn-success,
.wa-platform .pc-content .shared-table-page-section .shared-table-header-row2 .btn-success {
    border-color: var(--wa-table-primary) !important;
    background: var(--wa-table-primary) !important;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-header-row2 .btn-dark,
.wa-platform .pc-content .shared-table-page-section .shared-table-header-row2 .btn-dark {
    border-color: var(--wa-table-primary-dark) !important;
    background: var(--wa-table-primary-dark) !important;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-header-row2 .btn-secondary,
.wa-platform .pc-content .shared-table-page-section .shared-table-header-row2 .btn-secondary {
    border-color: var(--wa-table-line) !important;
    color: var(--wa-table-primary-dark) !important;
    background: var(--wa-table-soft) !important;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body {
    padding: 0;
    background: #fff;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body .table-responsive,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body .table-responsive {
    border: 0 !important;
    border-radius: 0;
    background: #fff;
    overflow-x: auto;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body table,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body table {
    width: 100%;
    min-width: 820px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--wa-table-ink);
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body table thead th,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body table thead th {
    padding: .78rem .85rem;
    border: 0;
    border-bottom: 1px solid var(--wa-table-line);
    background: var(--wa-table-soft) !important;
    color: #5d6d7e !important;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: none;
    vertical-align: middle;
    white-space: nowrap;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body table tbody td,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body table tbody td {
    padding: .78rem .85rem;
    border: 0;
    border-bottom: 1px solid #edf1f1;
    color: var(--wa-table-ink) !important;
    background: #fff !important;
    font-size: .8rem;
    font-weight: 450;
    line-height: 1.4;
    vertical-align: middle;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body table tbody tr:hover > td,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body table tbody tr:hover > td {
    background: var(--wa-table-soft) !important;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body table tbody tr:has(input[type="checkbox"]:checked) > td,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body table tbody tr:has(input[type="checkbox"]:checked) > td,
.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body table tbody tr.selected > td,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body table tbody tr.selected > td {
    background: var(--wa-table-soft-strong) !important;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body table input[type="checkbox"],
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body table input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--wa-table-primary);
    vertical-align: middle;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body table .badge,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body table .badge {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    padding: .26rem .62rem;
    border: 1px solid transparent;
    border-radius: 999px;
    box-shadow: none;
    font-size: .7rem;
    font-weight: 650;
    line-height: 1;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body table .badge-success,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body table .badge-success,
.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body table .bg-success,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body table .bg-success {
    color: #176b4d !important;
    border-color: #bfe7d4 !important;
    background: #eaf8f1 !important;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body table .badge-warning,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body table .badge-warning,
.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body table .bg-warning,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body table .bg-warning {
    color: #8b6411 !important;
    border-color: #f1dfab !important;
    background: #fff8e5 !important;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body table .badge-danger,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body table .badge-danger,
.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body table .bg-danger,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body table .bg-danger {
    color: #a33e3e !important;
    border-color: #f1caca !important;
    background: #fff0f0 !important;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body > div[id*="pagination"],
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body > div[id*="pagination"] {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 !important;
    padding: .75rem 1rem;
    border-top: 1px solid var(--wa-table-line);
    background: #fff;
    color: var(--wa-table-muted);
    font-size: .76rem;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body > div[id*="pagination"] .pagination,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body > div[id*="pagination"] .pagination {
    display: inline-flex;
    gap: 3px;
    margin: 0;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body > div[id*="pagination"] .page-link,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body > div[id*="pagination"] .page-link {
    display: inline-flex;
    min-width: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--wa-table-primary-dark);
    background: transparent;
    font-size: .75rem;
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body > div[id*="pagination"] .page-link:hover,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body > div[id*="pagination"] .page-link:hover {
    border-color: var(--wa-table-line);
    background: var(--wa-table-soft);
}

.wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body > div[id*="pagination"] .page-item.active .page-link,
.wa-platform .pc-content .shared-table-page-section .shared-table-card-body > div[id*="pagination"] .page-item.active .page-link {
    border-color: var(--wa-table-primary) !important;
    color: #fff !important;
    background: var(--wa-table-primary) !important;
}

@media (max-width: 767px) {
    .wa-platform .pc-content .whatsapp-platform-table .shared-table-header-bar,
    .wa-platform .pc-content .shared-table-page-section .shared-table-header-bar {
        padding: .85rem;
    }

    .wa-platform .pc-content .whatsapp-platform-table .shared-table-header-row2,
    .wa-platform .pc-content .shared-table-page-section .shared-table-header-row2 {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: .25rem;
    }

    .wa-platform .pc-content .whatsapp-platform-table .shared-table-header-row2 > *,
    .wa-platform .pc-content .shared-table-page-section .shared-table-header-row2 > * {
        flex: 0 0 auto;
    }

    .wa-platform .pc-content .whatsapp-platform-table .shared-table-card-body > div[id*="pagination"],
    .wa-platform .pc-content .shared-table-page-section .shared-table-card-body > div[id*="pagination"] {
        align-items: flex-start;
        flex-direction: column;
    }
}
