/**
 * Client Details, Security & Password Pages (clientdetails.css)
 * Facture5 SaaS Theme Extension
 */

/* ==========================================================================
   Page Layout & Row Spacing (Full Width & Responsive)
   ========================================================================== */
#main-body {
    padding: 24px 28px 40px !important;
    width: 100% !important;
}

#main-body > .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#main-body > .container-fluid > .row,
#main-body > .container > .row {
    margin-left: -10px !important;
    margin-right: -10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

#main-body .sidebar {
    padding-left: 10px !important;
    padding-right: 10px !important;
    flex: 0 0 280px !important;
    max-width: 280px !important;
    width: 280px !important;
}

#main-body .main-content {
    padding-left: 10px !important;
    padding-right: 10px !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: calc(100% - 280px) !important;
    width: auto !important;
}

/* If no sidebar, full width */
#main-body .col-xs-12.main-content {
    max-width: 100% !important;
    flex: 1 0 100% !important;
    width: 100% !important;
}

@media (max-width: 991px) {
    #main-body {
        padding: 16px 12px 30px !important;
    }
    #main-body .row {
        flex-direction: column !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    #main-body .sidebar {
        flex: 1 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 16px !important;
    }
    #main-body .main-content {
        flex: 1 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .password-input-action-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .password-input-action-row .generate-password {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 8px !important;
    }
    .saas-card-panel {
        padding: 18px 16px !important;
    }
}

/* ==========================================================================
   Inner Page Sidebar (Navigation Menu)
   ========================================================================== */
.sidebar .panel-sidebar {
    background: #ffffff !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
}

.sidebar .panel-sidebar > .panel-heading {
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 14px 18px !important;
}

.sidebar .panel-sidebar .panel-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.sidebar .panel-sidebar .panel-title i:not(.panel-minimise) {
    color: #2563eb !important;
    margin-right: 8px;
}

.sidebar .panel-sidebar .list-group {
    margin: 0 !important;
    padding: 6px 0 !important;
    background: #ffffff !important;
}

.sidebar .panel-sidebar .list-group-item {
    padding: 10px 16px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    background: transparent !important;
    border: none !important;
    border-left: 3px solid transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    text-align: left !important;
    line-height: 1.4 !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

.sidebar .panel-sidebar .list-group-item i.sidebar-menu-item-icon,
.sidebar .panel-sidebar .list-group-item > i {
    font-size: 14px !important;
    width: 18px !important;
    text-align: center !important;
    color: #94a3b8 !important;
    flex-shrink: 0 !important;
}

.sidebar .panel-sidebar .list-group-item .badge {
    margin-left: auto !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 10px !important;
}

.sidebar .panel-sidebar a.list-group-item:hover {
    background: #f8fafc !important;
    color: #2563eb !important;
}

.sidebar .panel-sidebar a.list-group-item:hover i {
    color: #2563eb !important;
}

.sidebar .panel-sidebar a.list-group-item.active,
.sidebar .panel-sidebar a.list-group-item.active:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-left-color: #2563eb !important;
    font-weight: 600 !important;
}

.sidebar .panel-sidebar a.list-group-item.active i {
    color: #2563eb !important;
}

/* ==========================================================================
   SaaS Card Panel (Main Content Container)
   ========================================================================== */
.saas-card-panel {
    background: #ffffff !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    width: 100% !important;
}

.saas-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.header-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-icon {
    font-size: 18px !important;
    line-height: 1 !important;
    color: #2563eb !important;
    background: #eff6ff !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header-icon:before {
    display: inline-block !important;
    line-height: 1 !important;
}

.header-title-wrap h3 {
    margin: 0 0 3px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.header-title-wrap p {
    margin: 0 !important;
    font-size: 13px !important;
    color: #64748b !important;
}

/* Section Cards inside main panel */
.form-section-card {
    background: #ffffff !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 14px !important;
    padding: 22px 24px !important;
    margin-bottom: 20px !important;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section-header i {
    font-size: 16px !important;
    line-height: 1 !important;
    color: #2563eb !important;
    background: #eff6ff !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.form-section-header i:before {
    display: inline-block !important;
    line-height: 1 !important;
}

.form-section-header h4 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 2px !important;
}

.form-section-header p {
    font-size: 12.5px !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* ==========================================================================
   Password Change Form & Fields
   ========================================================================== */
.saas-password-form {
    max-width: 100% !important;
    width: 100% !important;
}

.saas-password-form .form-group {
    margin-bottom: 22px !important;
}

.saas-password-form label.control-label {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.saas-password-form .form-control {
    height: 44px !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    font-size: 14px !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
    width: 100% !important;
}

.saas-password-form .form-control:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.password-input-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.password-input-action-row .form-control {
    flex: 1;
}

.password-input-action-row .generate-password {
    height: 44px !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0;
}

.password-input-action-row .generate-password:hover {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #2563eb !important;
}

.password-strength-box {
    margin-top: 10px;
    margin-bottom: 14px;
}

.password-tips-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
    font-size: 13px !important;
    color: #334155 !important;
    line-height: 1.5 !important;
    margin-top: 14px !important;
    margin-bottom: 20px !important;
}

.form-actions-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.form-actions-bar .btn-primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    padding: 10px 22px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.15s ease !important;
}

.form-actions-bar .btn-primary:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

.form-actions-bar .btn-default {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    transition: all 0.15s ease !important;
}

.form-actions-bar .btn-default:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* 2FA Status Box */
.badge-2fa {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-2fa.enabled {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.badge-2fa.disabled {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.twofa-alert-box {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 14px 18px;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.btn-2fa-activate {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    padding: 9px 20px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

.btn-2fa-activate:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

.btn-2fa-deactivate {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    padding: 9px 20px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25) !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

.btn-2fa-deactivate:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

/* Email Verification Badges */
.badge-verification {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-verification.verified {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.badge-verification.unverified {
    background: #fffbeb;
    color: #f59e0b;
    border: 1px solid #fde68a;
}

/* Emails History List Styles */
.email-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 8px;
}

.email-subject-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-row-icon {
    color: #2563eb;
    font-size: 14px;
    flex-shrink: 0;
}

.email-subject-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
}

.badge-attachment {
    color: #64748b;
    font-size: 13px;
    margin-left: 4px;
}

/* Client Details Form & Email Preferences Grid */
.saas-details-form .form-group {
    margin-bottom: 18px !important;
}

.saas-details-form label.control-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
}

.saas-details-form .form-control {
    height: 42px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    padding: 8px 14px !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
    width: 100% !important;
}

.saas-details-form .form-control:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.email-prefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.email-pref-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    margin: 0 !important;
    font-weight: normal !important;
    transition: all 0.15s ease !important;
}

.email-pref-item:hover {
    background: #ffffff !important;
    border-color: #2563eb !important;
}

.email-pref-item input[type="checkbox"] {
    margin: 3px 0 0 !important;
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.email-pref-item span {
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
}

/* ==========================================================================
   Product Details / Service Overview (Facture5 SaaS Compact)
   ========================================================================== */
.saas-service-details-card {
    background: #ffffff !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    padding: 22px 24px !important;
    margin-bottom: 24px !important;
}

/* Compact Header Banner */
.saas-service-header-compact {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid #eaecf0 !important;
}

.saas-service-identity {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.saas-product-avatar-compact {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #2563eb !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.saas-service-info-compact {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.saas-service-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.saas-product-title-compact {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -0.3px !important;
    line-height: 1.2 !important;
}

.saas-product-group-compact {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* Status Pill */
.saas-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
}

.saas-status-pill .status-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    display: inline-block !important;
}

.saas-status-pill.status-active {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
}
.saas-status-pill.status-active .status-dot { background: #10b981 !important; }

.saas-status-pill.status-pending {
    background: #fffbeb !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
}
.saas-status-pill.status-pending .status-dot { background: #f59e0b !important; }

.saas-status-pill.status-suspended,
.saas-status-pill.status-terminated,
.saas-status-pill.status-cancelled {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #cbd5e1 !important;
}
.saas-status-pill.status-terminated .status-dot,
.saas-status-pill.status-cancelled .status-dot { background: #94a3b8 !important; }

.saas-status-pill.status-fraud {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}
.saas-status-pill.status-fraud .status-dot { background: #ef4444 !important; }

/* Actions Bar */
.saas-service-actions-compact {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.btn-upgrade-saas,
.btn-renew-saas,
.btn-cancel-saas {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    border-radius: 9px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}

.btn-upgrade-saas {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
}
.btn-upgrade-saas:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

.btn-renew-saas {
    background: #f0fdf4 !important;
    color: #16a34a !important;
    border: 1px solid #bbf7d0 !important;
}
.btn-renew-saas:hover {
    background: #16a34a !important;
    color: #ffffff !important;
}

.btn-cancel-saas {
    background: #ffffff !important;
    color: #64748b !important;
    border: 1px solid #eaecf0 !important;
}
.btn-cancel-saas:hover {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border-color: #fecaca !important;
}

/* Compact Grid (4 cols on desktop, 2 on tablet, 1 on mobile) */
.saas-billing-spec-grid-compact {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 12px !important;
}

.saas-spec-item-compact {
    background: #f8fafc !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.saas-spec-item-compact.highlight-price {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
}

.saas-spec-item-compact.suspend-warning {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    grid-column: 1 / -1 !important;
}

.saas-spec-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.saas-spec-label i {
    color: #2563eb !important;
    font-size: 11.5px !important;
}

.saas-spec-val {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.saas-spec-item-compact.highlight-price .price-val {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #2563eb !important;
}

/* Secondary Tabs (Domain, Addons, Config, etc.) */
.nav-tabs.nav-tabs-overflow {
    border-bottom: 2px solid #eaecf0 !important;
    display: flex !important;
    gap: 6px !important;
    margin-bottom: 20px !important;
}

.nav-tabs.nav-tabs-overflow > li > a {
    border: none !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 10px 18px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.15s ease !important;
}

.nav-tabs.nav-tabs-overflow > li > a:hover {
    color: #2563eb !important;
    background: #f8fafc !important;
}

.nav-tabs.nav-tabs-overflow > li.active > a {
    color: #2563eb !important;
    font-weight: 700 !important;
    background: #eff6ff !important;
    border-bottom: 2px solid #2563eb !important;
}

.product-details-tab-container {
    background: #ffffff !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 16px !important;
    padding: 20px 24px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    margin-top: 16px !important;
}

/* Top-level WHMCS Tab Panes */
#tabOverview,
#tabDownloads,
#tabAddons,
#tabChangepw {
    display: none;
}

#tabOverview.active,
#tabDownloads.active,
#tabAddons.active,
#tabChangepw.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Inner subtabs */
.product-details-tab-container .saas-subtab-pane {
    display: none;
}

.product-details-tab-container .saas-subtab-pane.active,
.product-details-tab-container #domain {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* SaaS Domain Overview Card */
.saas-domain-overview-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    background: #f8fafc !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 14px !important;
}

.saas-domain-left {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.saas-domain-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #2563eb !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.saas-domain-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.saas-domain-type {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    color: #64748b !important;
}

.saas-domain-name {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -0.2px !important;
}

.saas-domain-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.btn-saas-visit {
    background: #ffffff !important;
    border: 1.5px solid #eaecf0 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}

.btn-saas-visit:hover {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #2563eb !important;
}

.btn-saas-manage {
    background: #2563eb !important;
    border: 1.5px solid #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}

.btn-saas-manage:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

.saas-server-specs-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 12px !important;
    margin-top: 14px !important;
}

/* ==========================================================================
   Module Overview Output (Licensing, cPanel, Plesk, etc.)
   ========================================================================== */
.saas-module-overview-wrap {
    background: #ffffff !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    margin-bottom: 24px !important;
}

/* Alert Notification Banner */
.saas-module-overview-wrap .alert {
    border-radius: 12px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 14px 18px !important;
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    line-height: 1.5 !important;
}

.saas-module-overview-wrap .alert-success {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    border-left: 4px solid #10b981 !important;
    color: #065f46 !important;
}

.saas-module-overview-wrap .alert-info {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-left: 4px solid #2563eb !important;
    color: #1e40af !important;
}

.saas-module-overview-wrap .alert-warning {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    border-left: 4px solid #f59e0b !important;
    color: #92400e !important;
}

.saas-module-overview-wrap .alert-danger {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-left: 4px solid #ef4444 !important;
    color: #991b1b !important;
}

/* Form inputs & Textareas inside module overview */
.saas-module-overview-wrap label,
.saas-module-overview-wrap .control-label,
.saas-module-overview-wrap strong {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.saas-module-overview-wrap .form-control,
.saas-module-overview-wrap input[type="text"],
.saas-module-overview-wrap textarea {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    padding: 10px 14px !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
    width: 100% !important;
}

.saas-module-overview-wrap .form-control:focus,
.saas-module-overview-wrap textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
    outline: none !important;
}

.saas-module-overview-wrap input[readonly],
.saas-module-overview-wrap input[disabled] {
    background: #f8fafc !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #1e293b !important;
    letter-spacing: 0.5px !important;
    border-color: #cbd5e1 !important;
}

.saas-module-overview-wrap textarea {
    min-height: 58px !important;
    max-height: 90px !important;
    resize: vertical !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 12.5px !important;
}

.saas-module-overview-wrap .form-group {
    margin-bottom: 18px !important;
}

/* Action Buttons Bar */
.saas-module-overview-wrap .btn {
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 11px 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    border: 1.5px solid transparent !important;
    white-space: nowrap !important;
    margin: 4px 6px !important;
}

.saas-module-overview-wrap .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25) !important;
}

.saas-module-overview-wrap .btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
    color: #ffffff !important;
}

.saas-module-overview-wrap .btn-danger {
    background: #ffffff !important;
    border: 1.5px solid #eaecf0 !important;
    color: #64748b !important;
}

.saas-module-overview-wrap .btn-danger:hover {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #ef4444 !important;
}

.saas-module-overview-wrap .btn-primary {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #2563eb !important;
}

.saas-module-overview-wrap .btn-primary:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

/* Hide legacy duplicate stats from module output since they are displayed in the Facture5 header grid above */
.saas-module-overview-wrap .col-md-4.text-center,
.saas-module-overview-wrap .col-sm-4.text-center,
.saas-module-overview-wrap .row:last-of-type {
    display: none !important;
}
