/* =====================================================
   CUSTOM CLIENT AREA HOME
   Modern • Minimal • Non-WHMCS
===================================================== */

:root {
    --ca-blue: #427acf;
    --ca-white: #ffffff;
    --ca-orange: #ff9a00;
    --ca-border: rgba(0,0,0,.08);
}

/* Wrapper */
.ca-wrapper {
    padding: 24px;
    background: #f7f9fc;
}

/* ===== HERO ===== */
.ca-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--ca-white);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 24px;
}

.ca-hero h1 {
    margin: 0;
    font-size: 24px;
    color: var(--ca-blue);
}

.ca-hero p {
    margin-top: 6px;
    color: #555;
}

/* Button */
.ca-btn-primary {
    background: var(--ca-orange);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* ===== STATS ===== */
.ca-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ca-stat-card {
    background: var(--ca-white);
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    text-decoration: none;
    color: var(--ca-blue);
    border: 1px solid var(--ca-border);
}

.ca-stat-card span {
    font-size: 26px;
    font-weight: 700;
    display: block;
}

.ca-stat-card label {
    font-size: 13px;
    opacity: 0.8;
}

.ca-stat-card.highlight {
    background: var(--ca-blue);
    color: #fff;
}

/* ===== SEARCH ===== */
.ca-search {
    margin-bottom: 24px;
}

.ca-search input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--ca-border);
    font-size: 15px;
}

/* ===== PANELS ===== */
.ca-panel {
    background: var(--ca-white);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid var(--ca-border);
}

.ca-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--ca-blue);
    margin-bottom: 12px;
}

.ca-panel-header em {
    margin-left: auto;
    background: var(--ca-orange);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.ca-panel-body {
    font-size: 14px;
    color: #555;
}
/* =====================================================
   GLOBAL CLIENT AREA BACKGROUND FIX
   Safe for WHMCS
===================================================== */

/* Page base */
html, body {
    background: #F5F8FC !important;
    min-height: 100%;
}

/* WHMCS main wrapper */
#main-body {
    background: #F5F8FC !important;
    padding-top: 24px;
}

/* Bootstrap container inside WHMCS */
#main-body > .container,
#main-body > .container-fluid {
    background: transparent !important;
}

/* Fix rows bleeding white */
#main-body .row {
    background: transparent;
}

/* Your custom dashboard wrapper */
.ca-wrapper {
    background: #F5F8FC;
    padding: 24px;
    min-height: calc(100vh - 120px);
}

.ca-panel-links a {
    display: block;
    padding: 8px 0;
    color: var(--ca-blue);
    text-decoration: none;
    border-top: 1px solid var(--ca-border);
}

.ca-panel-links a:first-child {
    border-top: none;
}

/* ===== ADDONS ===== */
.ca-addon {
    margin-top: 24px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .ca-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
/* =====================================================
   CUSTOM SERVICES TABLE (Client Area Only)
===================================================== */

.ca-table-wrapper {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,.06);
}

/* Table */
.ca-services-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0 8px;
}

/* Header */
.ca-services-table thead th {
    border: none;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    padding: 10px 12px;
}

/* Rows */
.ca-services-table tbody tr {
    background: #f9fbff;
    border-radius: 10px;
    transition: all .2s ease;
    cursor: pointer;
}

.ca-services-table tbody tr:hover {
    background: #eef4ff;
}

/* Cells */
.ca-services-table td {
    border: none !important;
    padding: 14px 12px;
    vertical-align: middle;
}

/* Domain */
.ca-domain {
    font-size: 12px;
    color: #6b7280;
}

/* Status badge */
.ca-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.ca-status-active {
    background: #e6f7ee;
    color: #1e9c5a;
}

.ca-status-suspended {
    background: #fff3e6;
    color: #ff9800;
}

.ca-status-terminated,
.ca-status-cancelled {
    background: #fdecea;
    color: #d32f2f;
}

/* =====================================================
   MODERN SERVICES TABLE (NON-WHMCS)
===================================================== */

.ca-services-page {
    background: #f5f8fc;
    padding: 24px;
}

/* ===== PAGE HEADER ===== */
.ca-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ca-page-header h1 {
    margin: 0;
    font-size: 26px;
    color: #427acf;
}

.ca-page-header p {
    margin-top: 4px;
    color: #6b7280;
}

.ca-btn-outline {
    border: 1px solid #427acf;
    color: #427acf;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* ===== FILTER BAR ===== */
.ca-table-filters {
    display: flex;
    justify-content: space-between;
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.ca-table-filters select,
.ca-table-filters input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.1);
    font-size: 14px;
}

/* ===== TABLE CARD ===== */
.ca-table-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
}

/* ===== TABLE ===== */
.ca-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.ca-table thead th {
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    color: #6b7280;
    padding: 12px;
}

.ca-table tbody tr {
    background: #f9fbff;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s ease;
}

.ca-table tbody tr:hover {
    background: #eef3fb;
}

.ca-table tbody td {
    padding: 16px;
    vertical-align: middle;
}

.ca-domain {
    font-size: 13px;
    color: #6b7280;
}

.ca-muted {
    font-size: 12px;
    color: #6b7280;
}

/* ===== STATUS ===== */
.ca-status {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.ca-status-active {
    background: #e6f9f0;
    color: #16a34a;
}

.ca-status-suspended {
    background: #fff4e5;
    color: #f59e0b;
}

.ca-status-cancelled {
    background: #fdecea;
    color: #dc2626;
}

/* ===== DATATABLE FOOTER ===== */
.ca-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 13px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .ca-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ca-table-filters {
        flex-direction: column;
        gap: 10px;
    }
}/* =====================================================
   ABSOLUTE FIX — DataTables Info Footer
===================================================== */

/* Kill any background from wrapper rows */
#caServicesTable_info,
#caServicesTable_info * {
    background: transparent !important;
    box-shadow: none !important;
}

/* Style the info box itself */
#caServicesTable_info {
    display: inline-flex !important;
    align-items: center !important;
    padding: 12px 18px !important;

    background-color: #eef3fb !important;
    color: #4b5563 !important;

    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;

    max-width: fit-content !important;
}

/* Remove dark bar coming from DataTables row */
#caServicesTable_info
  .dataTables_wrapper
  .row {
    background: transparent !important;
}

/* Align footer row properly */
.ca-table-wrapper .dataTables_wrapper .row:last-child {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: transparent !important;
}
