.ercmulti-page {
    --ercmulti-border: rgba(15, 23, 42, 0.08);
    --ercmulti-muted: #64748b;
}

.ercmulti-page .shared-table-header-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    padding: 16px 18px;
}

.ercmulti-page .shared-table-card-body {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--ercmulti-border);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    padding: 0 0 16px;
}

.ercmulti-page .table-responsive[data-table-type="ercmulti_accounts_manager"],
.ercmulti-page .table-responsive[data-table-type="ercmulti_transactions_manager"] {
    min-height: 0 !important;
}

.ercmulti-header-copy {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
}

.ercmulti-header-actions {
    align-items: flex-end !important;
}

.ercmulti-inline-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
}

.ercmulti-filter-chip {
    align-items: center;
    display: inline-flex;
    gap: 10px;
}

.ercmulti-filter-chip-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.ercmulti-filter-chip .form-select {
    min-width: 210px;
}

.ercmulti-page .table th {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.ercmulti-page .table td {
    vertical-align: middle;
}

.ercmulti-account-name,
.ercmulti-account-meta {
    display: block;
}

.ercmulti-account-meta {
    color: var(--ercmulti-muted);
    font-size: 11px;
    line-height: 1.35;
    margin-top: 3px;
}

.ercmulti-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.ercmulti-actions .btn {
    align-items: center;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.ercmulti-balance {
    color: var(--primary);
    font-weight: 700;
}

.ercmulti-history-error {
    color: #dc2626;
    display: block;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 4px;
    max-width: 280px;
}

#ercmultiAccountModal .modal-content,
#ercmultiTransferModal .modal-content,
#ercmultiRechargeModal .modal-content,
#ercmultiChangePasswordModal .modal-content {
    border: 0;
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    .ercmulti-page .shared-table-header-row1,
    .ercmulti-page .shared-table-header-row2 {
        align-items: stretch !important;
    }

    .ercmulti-page .shared-table-header-toolbar,
    .ercmulti-filter-chip {
        width: 100%;
    }

    .ercmulti-filter-chip {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .ercmulti-filter-chip .form-select {
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .ercmulti-page .shared-table-header-bar {
        padding: 14px 16px;
    }

    .ercmulti-page .table thead {
        display: none;
    }

    .ercmulti-page .table,
    .ercmulti-page .table tbody,
    .ercmulti-page .table tr,
    .ercmulti-page .table td {
        display: block;
        width: 100%;
    }

    .ercmulti-page .table tr {
        border-bottom: 8px solid #f3f4f6;
        padding: 12px 14px;
    }

    .ercmulti-page .table td {
        align-items: flex-start;
        border: 0;
        display: flex;
        gap: 12px;
        justify-content: space-between;
        padding: 8px 0;
        text-align: right;
    }

    .ercmulti-page .table td::before {
        color: var(--ercmulti-muted);
        content: attr(data-label);
        flex: 0 0 38%;
        font-size: 12px;
        font-weight: 700;
        text-align: left;
        text-transform: uppercase;
    }

    .ercmulti-page .table td[colspan] {
        display: block;
        text-align: center;
    }

    .ercmulti-page .table td[colspan]::before {
        content: none;
    }

    .ercmulti-history-error {
        margin-left: auto;
        max-width: 58%;
    }
}
