/**
 * MODERN SAAS THEME - Trendy Minimalist Design
 * Created: 2026-02-13
 * Purpose: Override AdminLTE styles with modern, clean SaaS aesthetics
 */

/* ===================================================================
   MODERN FONT & TYPOGRAPHY
   Native system-font stack for both body AND headings — SF on macOS/iOS,
   Segoe on Windows, Roboto on Android. Reads native + enterprise on every
   OS. Poppins was pulled 2026-08-20 (r17) because users flagged it as
   "sloppy AI font" — big display fonts on admin surfaces read as
   template chrome, not product chrome.
   =================================================================== */
* {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .box-title {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.015em;
}

/* ===================================================================
   MODERN BUTTON STYLES - Calm & Professional
   =================================================================== */
.btn {
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    padding: 9px 18px;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-transform: none;
    letter-spacing: -0.01em;
}

.btn:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: #0C1012 !important;
    border-color: #0C1012 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: #0C1012 !important;
    border-color: #0C1012 !important;
}

.btn-success {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

.btn-success:hover {
    background: #059669 !important;
    border-color: #059669 !important;
}

.btn-danger {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

.btn-danger:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

.btn-default {
    background: #ffffff !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}

.btn-default:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
}

.btn-flat {
    border-radius: 8px !important;
}

.btn-block {
    border-radius: 10px !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* ===================================================================
   LOGIN PAGE - Simple Centered Minimalist Design (Stripe-style)
   =================================================================== */
.login-page, .register-page {
    background: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Remove any background pseudo-element */
body.home:before,
body.home:after,
.login-page:before,
.login-page:after,
.register-page:before,
.register-page:after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.login-box, .register-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
}

.login-box-body, .register-box-body {
    background: #ffffff !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.login-logo, .register-logo {
    margin-bottom: 48px;
    text-align: center;
}

.login-logo a, .register-logo a {
    display: inline-block;
    text-decoration: none;
}

.login-logo img, .register-logo img {
    width: auto !important;
    height: 56px !important;
    max-width: 200px !important;
    object-fit: contain;
}

.login-box-msg {
    font-size: 15px !important;
    color: #6b7280 !important;
    margin-bottom: 30px !important;
    font-weight: 400 !important;
    text-align: center !important;
    display: block !important;
}

/* Modern Form Inputs - Calm & Professional */
.form-control {
    border-radius: 6px !important;
    border: 1px solid #d1d5db !important;
    padding: 3px 12px !important;
    font-size: 14px !important;
    transition: all 0.15s ease !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    color: #1f2937 !important;
}

.form-control:focus {
    border-color: #0C1012 !important;
    box-shadow: 0 0 0 3px rgba(12, 16, 18, 0.1) !important;
    outline: none !important;
    background: #ffffff !important;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #f9fafb !important;
    color: #9ca3af !important;
}

.login-page .form-control,
.register-page .form-control {
    padding: 11px 14px !important;
    font-size: 15px !important;
}

.login-page .form-group,
.register-page .form-group {
    margin-bottom: 16px;
}

.login-page .has-feedback .form-control,
.register-page .has-feedback .form-control {
    padding-right: 14px !important;
}

/* Hide feedback icons for cleaner look */
.login-page .form-control-feedback,
.register-page .form-control-feedback {
    display: none !important;
}

/* ===================================================================
   LOGIN PAGE BUTTONS - Simple & Minimal
   =================================================================== */
.login-page .btn-primary,
.register-page .btn-primary {
    background: #0a0a0a !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 11px 16px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.login-page .btn-primary:hover,
.register-page .btn-primary:hover {
    background: #262626 !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.login-page .btn-primary:active,
.register-page .btn-primary:active {
    background: #171717 !important;
}

/* Google Sign-In Button - Minimal Design */
.btn-google {
    background: #ffffff !important;
    color: #0a0a0a !important;
    border: 1px solid #d1d5db !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500 !important;
    padding: 11px 16px !important;
    margin-top: 12px;
    border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.15s ease !important;
}

.btn-google:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transform: none !important;
}

.btn-google svg {
    width: 18px;
    height: 18px;
}

/* Divider - OR text between buttons */
.login-page .divider,
.register-page .divider {
    display: flex !important;
    align-items: center;
    text-align: center;
    margin: 16px 0 !important;
    color: #6b7280 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.login-page .divider::before,
.login-page .divider::after,
.register-page .divider::before,
.register-page .divider::after {
    content: '' !important;
    flex: 1;
    border-bottom: 1px solid #d1d5db !important;
}

.login-page .divider span,
.register-page .divider span {
    padding: 0 12px !important;
    background: #ffffff;
}

/* Links styling */
.login-page a,
.register-page a {
    color: #2563eb !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

.login-page a:hover,
.register-page a:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

/* ===================================================================
   HEADER - Modern & Clean
   =================================================================== */
header.main-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.main-header .logo {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
}

.main-header .logo:hover {
    background: #f8fafc !important;
}

.skin-yellow-light .main-header .navbar {
    background-color: #ffffff !important;
}

.skin-yellow-light .main-header .navbar .nav>li>a {
    color: #334155 !important;
    font-weight: 500;
}

.skin-yellow-light .main-header .navbar .nav>li>a:hover {
    background-color: #f1f5f9 !important;
}

.StatusZone {
    background: #00a65a;
    border-radius: 14px;
    padding: 4px 7px;
    display: inline-block;
    margin-left: 5px;
    color: #fff;
    font-size: 12px;
    margin-top: -1px;
    top: -2px;
    position: relative;
}

/* ===================================================================
   SIDEBAR - Modern Navigation
   =================================================================== */
.skin-yellow-light .wrapper,
.skin-yellow-light .main-sidebar,
.skin-yellow-light .left-side {
    background: #ffffff !important;
}

.main-sidebar {
    border-right: 1px solid #e5e7eb !important;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.03) !important;
    transition: padding-top 0.3s ease;
}

/* Add padding when pending alert bar is shown */
body.has-pending-alert .main-sidebar {
    padding-top: 52px;
}

.sidebar-menu > li > a {
    border-radius: 10px !important;
    margin: 4px 0 !important;
    padding: 12px 16px !important;
    transition: all 0.2s ease !important;
    color: #475569 !important;
}

.sidebar-menu > li:hover > a {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

.sidebar-menu > li.active > a {
    background: #0C1012 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(12, 16, 18, 0.5) !important;
}

/* Sidebar Collapsed State - Fix Icon Display */
.sidebar-collapse .main-sidebar {
    overflow: visible !important;
}

.sidebar-collapse .sidebar-menu > li > a {
    padding: 12px 15px !important;
    text-align: center !important;
}

.sidebar-collapse .sidebar-menu > li > a > .fa,
.sidebar-collapse .sidebar-menu > li > a > .glyphicon,
.sidebar-collapse .sidebar-menu > li > a > .ion {
    display: block !important;
    margin: 0 auto !important;
    font-size: 18px !important;
    width: auto !important;
}

.sidebar-collapse .sidebar-menu > li > a > span {
    display: none !important;
}

/* Ensure sidebar items are properly sized when collapsed */
.sidebar-collapse .sidebar-menu > li {
    position: relative;
}

.sidebar-collapse .sidebar-menu > li > a {
    border-radius: 6px !important;
    margin: 4px 8px !important;
}

/* Fix hover tooltips when collapsed */
.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right),
.sidebar-collapse .sidebar-menu > .treeview-menu {
    display: block !important;
}

/* ===================================================================
   CONTENT AREA - Clean & Spacious
   =================================================================== */
.content-wrapper {
    background: #f8fafc !important;
    border-radius: 0 !important;
}

.box {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    background: #ffffff;
}

.box-header {
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 20px !important;
}

.box-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

.box-body {
    padding: 25px !important;
}

.box.box-primary {
    border-top: 3px solid #0C1012 !important;
}

/* ===================================================================
   TABLES - Calm & Professional
   =================================================================== */
.table {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.table thead th {
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 12px 16px !important;
}

.table tbody td {
    padding: 12px 16px !important;
    color: #374151 !important;
    font-size: 14px !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover {
    background-color: #f9fafb !important;
}

.table tbody tr:last-child td {
    border-bottom: none !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #ffffff !important;
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: #fafbfc !important;
}

/* ===================================================================
   FOOTER - Minimal & Clean
   =================================================================== */
.main-footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 15px !important;
    color: #64748b !important;
    font-size: 13px !important;
}

/* ===================================================================
   SMALL BOXES (Dashboard) - Calm Cards
   =================================================================== */
.small-box {
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.15s ease !important;
}

.small-box:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07) !important;
}

.small-box .inner h3 {
    color: #0a0a0a !important;
    font-size: 32px !important;
    font-weight: 700 !important;
}

.small-box .inner p {
    color: #6b7280 !important;
    font-size: 14px !important;
}

.small-box .icon {
    color: rgba(12, 16, 18, 0.15) !important;
}

.small-box > a.small-box-footer {
    background-color: #f9fafb !important;
    color: #0C1012 !important;
    border-top: 1px solid #e5e7eb !important;
    font-weight: 500 !important;
}

.small-box > a.small-box-footer:hover {
    background-color: #f3f4f6 !important;
    color: #0C1012 !important;
}

/* ===================================================================
   FORMS & MODALS - Clean & Modern
   =================================================================== */
.modal-content {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.modal-header {
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 20px 25px !important;
}

.modal-title {
    font-weight: 600 !important;
    color: #1e293b !important;
}

.modal-body {
    padding: 25px !important;
}

.modal-footer {
    border-top: 1px solid #e2e8f0 !important;
    padding: 15px 25px !important;
}

/* ===================================================================
   RESPONSIVE IMPROVEMENTS
   =================================================================== */
@media (max-width: 768px) {
    .login-page, .register-page {
        padding: 20px;
    }

    .login-box, .register-box {
        max-width: 100%;
    }

    .login-logo img, .register-logo img {
        width: auto !important;
        height: 48px !important;
        max-width: 180px !important;
    }

    .content-wrapper {
        padding: 15px !important;
    }
}

/* ===================================================================
   UTILITY CLASSES
   =================================================================== */
.shadow-sm { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important; }
.shadow-md { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important; }
.shadow-lg { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important; }

.rounded-lg { border-radius: 12px !important; }
.rounded-xl { border-radius: 16px !important; }

.bg-gradient-primary { background: linear-gradient(135deg, #0C1012 0%, #28484C 100%) !important; }
.bg-gradient-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important; }
.bg-gradient-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important; }

/* ============================================================
   ENTERPRISE CALM THEME OVERRIDE (2026-11-02)
   Primary buttons -> soft light gray with black text.
   Catches the remaining purple button shades (#0C1012 etc).
   ============================================================ */
.btn-primary,
a.btn-primary,
button.btn-primary {
    background-color: #F3F4F6 !important;
    border: 1px solid #E4E6E0 !important;
    color: #0C1012 !important;
    box-shadow: 0 1px 2px rgba(12,16,18,.05) !important;
}
.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
    background-color: #E9EAEC !important;
    border-color: #D4D7CF !important;
    color: #0C1012 !important;
}
.btn-primary:focus, .btn-primary:active { color:#0C1012 !important; }
/* keep functional colored buttons (pay/success/danger) as-is by NOT overriding them:
   those use their own classes (.btn-pay, .btn-success, .btn-danger) */

/* === global purple->calm override, by real selector (2026-11-02) === */
/* active sidebar/nav link */
.s8-active > a, .s8-active a, a.s8-active, .active > a.s8-nav, .sidebar-menu .active > a {
    color: #0C1012 !important;
}
.s8-active, li.active { background: #F3F4F6 !important; }
/* team + generic action buttons that were purple */
.tm-btn, .tm-btn:visited {
    background: #F3F4F6 !important; color: #0C1012 !important;
    border: 1px solid #E4E6E0 !important; box-shadow: none !important;
}
.tm-btn:hover { background: #E9EAEC !important; color: #0C1012 !important; }
/* checkboxes / radios / accent — petrol-gray instead of purple */
input[type=checkbox], input[type=radio] { accent-color: #28484C !important; }
/* generic purple tab underline / active tab */
.nav-tabs > li.active > a, .tab-active, .s8-tab-active { border-color: #0C1012 !important; color: #0C1012 !important; }
/* chat/help floating widget bubble */
#chat-widget, .chat-bubble, [class*=chat] [class*=launcher] { background: #0C1012 !important; }

/* smaller header logo with breathing room (was filling the full 50px box) */
.main-header .logo .logo-lg img {
    max-height: 34px !important;
    height: auto !important;
    max-width: 150px !important;
    vertical-align: middle;
}
.main-header .logo .logo-mini img {
    max-height: 30px !important;
    height: auto !important;
}

/* ===================================================================
   AIRY SKIN v1 (2026-11-05) — lighter, more whitespace, enterprise
   hierarchy. Leans toward the textlinksms look the user shared:
   breathing containers, tall rounded controls, table-as-card, one
   logo size, a calm (not loud-green) top progress bar.
   Appended LAST so it wins over the older compact values above.
   Keep the system-font stack (Poppins/Bricolage were pulled as
   "AI font"); enterprise feel comes from size + weight + spacing,
   not a display face.
   =================================================================== */

/* ---- Page title hierarchy: bigger, tighter, confident ---- */
.content-header > h1,
section.content-header h1,
.content > .content-header h1 {
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #0C1012 !important;
    margin: 0 0 2px !important;
    line-height: 1.2 !important;
}
.content-header > h1 > small,
section.content-header h1 small {
    font-size: 13.5px !important;
    color: #8a909a !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}
.content-header { padding: 26px 0 10px !important; }

/* ---- Breathing room: give the content area real margins ----
   Inner pages were hugging the fixed 70px header. Add a generous top gap so
   the first thing on the page (title / topbar / card) breathes. Covers both
   AdminLTE-default pages (styled via .content) and custom pages that zero out
   .content and use their own top bar (e.g. .dv-topbar on Devices). */
.content-wrapper { background: #f6f7f8 !important; }
.content {
    padding: 28px 28px 44px !important;
}
/* custom pages set .content padding:0 and use their own top bar — give those
   top bars the same breathing room so every inner page is consistent. */
.dv-topbar,
.content > .content-header:first-child,
section.content > h1:first-child { padding-top: 26px !important; }
@media (max-width: 767px) {
    .content { padding: 20px 16px 32px !important; }
    .content-header > h1, section.content-header h1 { font-size: 22px !important; }
    .dv-topbar { padding-top: 20px !important; }
}

/* ---- Cards (.box) breathe more ---- */
.box {
    border-radius: 16px !important;
    border: 1px solid #ebedf0 !important;
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -18px rgba(16,24,40,.18) !important;
    margin-bottom: 24px !important;
}
.box-header { padding: 22px 26px 16px !important; }
.box-title { font-size: 16px !important; font-weight: 650 !important; color: #0C1012 !important; letter-spacing: -0.01em !important; }
.box-body { padding: 26px !important; }

/* ---- Tables: ALWAYS read as a card, airy rows ---- */
.table {
    border-radius: 14px !important;
    border: 1px solid #ebedf0 !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -18px rgba(16,24,40,.18) !important;
    margin-bottom: 24px !important;
}
/* table inside a box shouldn't double-card */
.box .table, .box-body .table { box-shadow: none !important; border: 0 !important; border-radius: 0 !important; margin-bottom: 0 !important; }
.table thead th {
    background: #fafbfc !important;
    border-bottom: 1px solid #ebedf0 !important;
    color: #8a909a !important;
    font-weight: 600 !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 14px 20px !important;
}
.table tbody td {
    padding: 16px 20px !important;
    color: #30353d !important;
    font-size: 14px !important;
    border-bottom: 1px solid #f2f3f5 !important;
    vertical-align: middle !important;
}
.table tbody tr:hover { background: #fafbfc !important; }
.table-striped > tbody > tr:nth-of-type(even) { background: #fbfcfd !important; }

/* ---- Form controls: tall, rounded, airy, real focus ring ---- */
.form-control {
    border-radius: 10px !important;
    border: 1px solid #dfe2e7 !important;
    padding: 10px 14px !important;
    height: auto !important;
    min-height: 44px !important;
    font-size: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #1f2937 !important;
    transition: border-color .15s, box-shadow .15s !important;
}
textarea.form-control { min-height: 110px !important; line-height: 1.55 !important; }
.form-control:focus {
    border-color: #0C1012 !important;
    box-shadow: 0 0 0 3px rgba(12,16,18,.08) !important;
    outline: none !important;
}
/* select2 single: FIXED 44px height, no vertical padding (the __rendered
   line-height centers the text). Using min-height + padding + line-height
   together made these 62px — taller than every other input. */
.select2-container--default .select2-selection--single {
    height: 44px !important;
    border-radius: 10px !important;
    border: 1px solid #dfe2e7 !important;
    padding: 0 14px !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s !important;
    display: flex !important;
    align-items: center !important;
}
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #0C1012 !important;
    box-shadow: 0 0 0 3px rgba(12,16,18,.08) !important;
    outline: none !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important; padding-left: 0 !important; padding-right: 0 !important;
    font-size: 14px !important; color: #1f2937 !important; flex: 1 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important; top: 1px !important; right: 8px !important;
}
.select2-container { width: 100% !important; }
.select2-dropdown { border-color: #dfe2e7 !important; border-radius: 10px !important; }
.control-label, label { color: #475059 !important; font-weight: 600 !important; font-size: 13px !important; margin-bottom: 7px !important; }
.form-group { margin-bottom: 22px !important; }

/* native select caret cleanup */
select.form-control {
    -webkit-appearance: none !important; appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a909a' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 40px !important;
}

/* ---- Buttons: pill, confident, consistent ---- */
.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    padding: 10px 18px !important;
    transition: all .15s ease !important;
    box-shadow: none !important;
}
.btn-primary, .btn-dark {
    background: #0C1012 !important; border: 1px solid #0C1012 !important; color: #fff !important;
}
.btn-primary:hover, .btn-dark:hover { background: #1b2024 !important; transform: translateY(-1px); }
.btn-default, .btn-flat {
    background: #fff !important; border: 1px solid #dfe2e7 !important; color: #30353d !important;
}
.btn-default:hover { background: #f6f7f8 !important; }
.btn-group .btn, .btn-sm { padding: 7px 13px !important; font-size: 12.5px !important; }

/* ---- Footer: slim, quiet ---- */
.main-footer {
    background: transparent !important;
    border-top: 1px solid #ebedf0 !important;
    padding: 16px 28px !important;
    color: #9aa0a8 !important;
    font-size: 12.5px !important;
}

/* ---- One logo size everywhere (kills the per-page inconsistency) ---- */
.main-header .logo { padding: 0 16px !important; display: flex !important; align-items: center !important; }
.main-header .logo .logo-lg img { max-height: 26px !important; height: auto !important; width: auto !important; }
.main-header .logo .logo-mini img { max-height: 24px !important; height: auto !important; width: auto !important; }

/* ---- Top "sending…" bar: calm & slim, not a loud green banner ---- */
.pending-alert-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #ebedf0 !important;
    min-height: 38px !important;
    padding: 6px 20px !important;
    color: #475059 !important;
    font-size: 12.5px !important;
}
.pending-alert-bar .alert-icon { color: #16A34A !important; font-size: 13px !important; }
.pending-alert-bar .alert-text strong { color: #0C1012 !important; font-weight: 650 !important; }
.pending-progress { height: 4px !important; width: 120px !important; background: rgba(12,16,18,.08) !important; }
/* Offset ONLY while the banner is actually shown (class is removed on dismiss).
   Matches the new 38px bar. The previous `+ .main-header` adjacency rule stayed
   matched even after the banner was hidden, leaving a dead gap at the top. */
body.has-pending-alert .content-wrapper,
body.has-pending-alert .right-side { padding-top: 38px !important; }

/* ---- Profile avatar: flat ink, no blue gradient ---- */
.s8-account-avatar { background: #0C1012 !important; }

/* ---- Info / hint strips: neutral, not lavender (several pages hardcode
   purple #ede9fe/#f3f0ff). Make them a calm light-gray with an ink accent. */
.bl-info, .callout, .alert-info {
    background: #f6f7f8 !important;
    border-left: 3px solid #0C1012 !important;
    border-color: #ebedf0 !important;
    color: #475059 !important;
    border-radius: 10px !important;
}
.bl-info h4, .callout h4 { color: #0C1012 !important; }
.dataTables_paginate .paginate_button:hover {
    background: #f6f7f8 !important;
    border-color: #ebedf0 !important;
    color: #0C1012 !important;
}

/* ===================================================================
   MMS note (2026-11-06) — a calm inline hint shown under the MMS
   attachment field so users understand MMS needs an image + a
   carrier/SIM that allows MMS. Cuts the "MMS not working" confusion.
   =================================================================== */
.mms-note {
    margin-top: 10px;
    background: #f6f7f8;
    border: 1px solid #ebedf0;
    border-left: 3px solid #0C1012;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #475059;
}

/* ===================================================================
   SELECT CONSISTENCY + FLAT CLOUDFLARE-STYLE POLISH (2026-11-06)
   =================================================================== */
/* multi-select (device picker) matches the single-selects: 10px radius,
   same border, min 44px, airy tags */
.select2-container--default .select2-selection--multiple {
    min-height: 44px !important;
    border-radius: 10px !important;
    border: 1px solid #dfe2e7 !important;
    padding: 4px 8px !important;
    background: #fff !important;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #0C1012 !important;
    box-shadow: 0 0 0 3px rgba(12,16,18,.08) !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #f1f2f4 !important;
    border: 1px solid #e2e4e8 !important;
    border-radius: 7px !important;
    color: #30353d !important;
    padding: 3px 9px !important;
    font-size: 13px !important;
    margin: 4px 4px 0 0 !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #8a909a !important; margin-right: 6px !important;
}
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin-top: 6px !important; height: 28px !important;
}

/* page title: refined weight so it reads enterprise, not heavy/condensed
   (Cloudflare-style: confident but not black) */
.content-header > h1, section.content-header h1 {
    font-weight: 650 !important;
    letter-spacing: -0.025em !important;
}

/* ===================================================================
   DESIGN SYSTEM v1 — Cloudflare-style unified identity (2026-11-06)
   One shared layer (loaded LAST, wins). Targets the standard libs the
   app uses: Bootstrap 3, AdminLTE, datatables, toastr, bootstrap tooltip.
   Tokens: ink #0C1012 · soft-ink #475059 · muted #8a909a · hairline
   #ebedf0 · line #e2e4e8 · surface #fff · ground #f6f7f8.
   =================================================================== */

/* ---- PAGE HEADER: big title + gray subtitle + comfortable gutter ---- */
section.content-header, .content-header {
    padding: 30px 30px 8px !important;
    background: transparent !important;
    position: relative;
}
.content-header > h1, section.content-header > h1 {
    font-size: 27px !important;
    font-weight: 680 !important;
    letter-spacing: -0.03em !important;
    color: #0C1012 !important;
    margin: 0 !important;
    line-height: 1.18 !important;
}
/* AdminLTE puts the page subtitle in <small> inside the h1 — style it as a
   Cloudflare subtitle on its own line */
.content-header > h1 > small, section.content-header > h1 > small {
    display: block !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #8a909a !important;
    letter-spacing: 0 !important;
    margin-top: 6px !important;
}
.content-header > .breadcrumb { display: none !important; }

/* ---- TABLES: Cloudflare identity (hairline rows, airy, muted headers) ---- */
.table, table.dataTable {
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #ebedf0 !important;
    border-radius: 14px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 1px 2px rgba(16,24,40,.04) !important;
}
.box .table, .box-body .table { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.table > thead > tr > th, table.dataTable > thead > tr > th,
.table > thead > tr > td {
    background: #fafbfc !important;
    border-bottom: 1px solid #ebedf0 !important;
    border-top: 0 !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.055em !important;
    padding: 14px 20px !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}
.table > tbody > tr > td, table.dataTable > tbody > tr > td {
    padding: 15px 20px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #f2f3f5 !important;
    color: #30353d !important;
    font-size: 13.5px !important;
    vertical-align: middle !important;
    line-height: 1.45 !important;
}
.table > tbody > tr:last-child > td { border-bottom: 0 !important; }
.table > tbody > tr:hover > td,
table.dataTable > tbody > tr:hover > td { background: #fafbfc !important; }
.table-striped > tbody > tr:nth-of-type(odd) > td { background: transparent !important; }
.table-striped > tbody > tr:nth-of-type(even) > td { background: #fbfcfd !important; }
/* sort arrows (datatables) muted until active */
table.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after { opacity: .4 !important; font-size: 11px !important; }

/* datatables chrome: search box, length, pagination, info — Cloudflare clean */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #dfe2e7 !important; border-radius: 10px !important;
    padding: 9px 14px !important; height: 40px !important; font-size: 13.5px !important;
    margin-left: 8px !important; min-width: 240px !important;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #0C1012 !important; box-shadow: 0 0 0 3px rgba(12,16,18,.08) !important; outline: 0 !important;
}
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #dfe2e7 !important; border-radius: 9px !important; height: 36px !important; padding: 0 10px !important;
}
.dataTables_wrapper .dataTables_info { color: #8a909a !important; font-size: 12.5px !important; padding-top: 14px !important; }
.dataTables_wrapper .dataTables_paginate { padding-top: 10px !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid #ebedf0 !important; border-radius: 8px !important;
    padding: 6px 12px !important; margin: 0 3px !important; color: #475059 !important;
    background: #fff !important; font-size: 13px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #0C1012 !important; border-color: #0C1012 !important; color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f6f7f8 !important; border-color: #dfe2e7 !important; color: #0C1012 !important;
}

/* ---- TOASTS (toastr): white card + colored left accent per type ---- */
#toast-container > div.toast {
    background-image: none !important;
    background: #ffffff !important;
    color: #30353d !important;
    border: 1px solid #ebedf0 !important;
    border-left: 4px solid #0C1012 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px -10px rgba(16,24,40,.25) !important;
    padding: 15px 18px 15px 48px !important;
    opacity: 1 !important;
}
#toast-container > div.toast:before {
    content: "" !important; position: absolute; left: 16px; top: 16px;
    width: 18px; height: 18px; border-radius: 50%;
}
#toast-container > .toast-success { border-left-color: #16A34A !important; }
#toast-container > .toast-error   { border-left-color: #dc2626 !important; }
#toast-container > .toast-info    { border-left-color: #2563eb !important; }
#toast-container > .toast-warning { border-left-color: #d97706 !important; }
.toast-title { color: #0C1012 !important; font-weight: 650 !important; font-size: 13.5px !important; }
.toast-message { font-size: 13px !important; line-height: 1.5 !important; color: #475059 !important; }
.toast-close-button { color: #9aa0a8 !important; opacity: .8 !important; font-weight: 400 !important; top: -2px !important; }
.toast-progress { background: #0C1012 !important; opacity: .12 !important; height: 3px !important; }

/* ---- TOOLTIPS (bootstrap): small dark rounded ---- */
.tooltip-inner {
    background: #0C1012 !important; color: #fff !important;
    font-size: 12px !important; line-height: 1.5 !important; font-weight: 450 !important;
    padding: 8px 11px !important; border-radius: 8px !important; max-width: 280px !important;
    box-shadow: 0 8px 24px -8px rgba(16,24,40,.35) !important; text-align: left !important;
}
.tooltip.top .tooltip-arrow { border-top-color: #0C1012 !important; }
.tooltip.bottom .tooltip-arrow { border-bottom-color: #0C1012 !important; }
.tooltip.left .tooltip-arrow { border-left-color: #0C1012 !important; }
.tooltip.right .tooltip-arrow { border-right-color: #0C1012 !important; }
.tooltip { opacity: 1 !important; }

/* ---- SECTIONS / BOX: flat white card, thin border ---- */
.box {
    background: #fff !important; border: 1px solid #ebedf0 !important;
    border-radius: 16px !important; box-shadow: 0 1px 2px rgba(16,24,40,.04) !important;
    margin-bottom: 24px !important;
}
.box-header { border-bottom: 1px solid #f2f3f5 !important; padding: 22px 26px 16px !important; }
.box-title { font-size: 16px !important; font-weight: 650 !important; color: #0C1012 !important; letter-spacing: -0.01em !important; }
.box-body { padding: 26px !important; }

/* ---- BADGES / PILLS: quiet neutral chips ---- */
.label, .badge {
    font-weight: 600 !important; font-size: 11px !important; letter-spacing: .02em !important;
    border-radius: 999px !important; padding: 4px 10px !important;
}
.label-success, .badge-success { background: #e8f6ee !important; color: #15803d !important; }
.label-danger, .badge-danger { background: #fdeceb !important; color: #b91c1c !important; }
.label-warning, .badge-warning { background: #fef4e6 !important; color: #b45309 !important; }
.label-info, .badge-info { background: #eaf1fd !important; color: #1d4ed8 !important; }
.label-default, .badge-default { background: #f1f2f4 !important; color: #475059 !important; }

/* ===================================================================
   FIX (2026-11-06): kill the AdminLTE yellow-skin ORANGE on the header
   navbar + sidebar-toggle. Make the hamburger a clean ink icon.
   =================================================================== */
.skin-yellow-light .main-header .navbar,
.main-header .navbar.navbar-static-top { background: #fff !important; background-color: #fff !important; }
.skin-yellow-light .main-header .navbar .sidebar-toggle,
.main-header .sidebar-toggle {
    background: transparent !important; color: #475059 !important;
    border-radius: 9px !important; margin: 7px 6px !important; padding: 0 14px !important;
    display: inline-flex !important; align-items: center !important; height: 38px !important;
}
.skin-yellow-light .main-header .navbar .sidebar-toggle:hover,
.main-header .sidebar-toggle:hover { background: #f1f2f4 !important; color: #0C1012 !important; }
.main-header .sidebar-toggle .icon-bar { background: currentColor !important; }

/* Sidebar sub-group affordance: a small ALWAYS-visible muted caret so it's
   clear which items expand (user couldn't tell groups had subs). Subtle at
   rest, ink + rotated when open. */
.s8-chev {
    opacity: .55 !important;
    color: #aab0bc !important;
}
li.s8-group > a.s8-toggle:hover .s8-chev { opacity: 1 !important; color: #6b7280 !important; }
li.s8-group.s8-open > a.s8-toggle .s8-chev { opacity: 1 !important; color: #0C1012 !important; }

/* ===================================================================
   ENTERPRISE NUANCES (2026-11-06) — calmer green/orange, smaller
   "Connected" + credit pills, tighter menu + title type, spacious.
   Green ink #15803d / accent #16a34a / soft #e8f6ee.
   Amber ink #b45309 / accent #d97706 / soft #fef4e6.
   =================================================================== */

/* Connected status pill — smaller, calm soft-green (not neon #00a65a) */
.StatusZone {
    background: #e8f6ee !important;
    color: #15803d !important;
    border: 1px solid #c9ebd6 !important;
    border-radius: 999px !important;
    padding: 4px 11px 4px 9px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    box-shadow: none !important;
}
.StatusZone i { color: #16a34a !important; font-size: 10px !important; }
/* Disconnected / connect CTA — calm amber, not loud red-orange #f0400b */
.StatusZoneConnect, .StatusZoneDis {
    background: #fef4e6 !important;
    color: #b45309 !important;
    border: 1px solid #f6e0bd !important;
    border-radius: 999px !important;
    padding: 4px 11px 4px 9px !important;
    font-size: 11.5px !important; font-weight: 600 !important;
    display: inline-flex !important; align-items: center !important; gap: 5px !important;
    box-shadow: none !important;
}
.StatusZoneConnect i, .StatusZoneDis i { color: #d97706 !important; font-size: 10px !important; }

/* Credit "SMS left / Go Unlimited" pill — smaller, quiet */
a.creditZone {
    font-size: 11.5px !important; font-weight: 600 !important;
    background: #f6f7f8 !important; color: #475059 !important;
    border: 1px solid #e2e4e8 !important; border-radius: 999px !important;
    padding: 5px 12px !important;
}
a.creditZone span { color: #0C1012 !important; }

/* Sidebar menu type — smaller + more enterprise/spacious */
.s8-nav-top li > a, .s8-dock-nav li > a,
.s8-nav-top li.s8-group > a.s8-toggle, .s8-dock-nav li.s8-group > a.s8-toggle {
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 9px 12px !important;
}
.s8-sub li > a { font-size: 12.5px !important; }
.s8-icon { font-size: 14px !important; }
.s8-label { font-size: 10.5px !important; letter-spacing: .09em !important; color: #9aa0a8 !important; }

/* Account pill in header — smaller */
.s8-account-name { font-size: 12.5px !important; }

/* Page title slightly calmer (big but not huge) */
.content-header > h1, section.content-header > h1 { font-size: 25px !important; }

/* Max-width container so content isn't edge-to-edge full-bleed on wide
   screens (Cloudflare caps its content width). Applies to standard
   AdminLTE content pages; bespoke pages (dashboard .db-*, subscribe) set
   their own. */
.content > .container-fluid, .content > .row:first-child { max-width: 1320px; }

/* ===================================================================
   SHELL POLISH (2026-11-06) — fix double line under logo, shorter
   search, one unified content width.
   =================================================================== */
/* Double line: the logo had its OWN border-bottom offset from the
   header's. Keep only the header's single hairline. */
.main-header .logo { border-bottom: 0 !important; border-right: 1px solid #ebedf0 !important; }
.main-header { border-bottom: 1px solid #ebedf0 !important; }
.main-sidebar { border-right: 1px solid #ebedf0 !important; }

/* Search: shorter, sits cleanly within the header nav height */
#s8SearchInput { height: 34px !important; border-radius: 9px !important; font-size: 13px !important; }
.s8-search-kbd { padding: 1px 5px !important; font-size: 10.5px !important; }
.s8-search-ic { width: 15px !important; height: 15px !important; }

/* ONE unified content width. The title bar (.content-header) is a SIBLING
   of .content under .content-wrapper (not a child), so cap BOTH so the
   title aligns with the centered body.
   EXCEPTION: full-bleed app pages (inbox) nest their own .content-wrapper
   inside .content — those must stay edge-to-edge, so exclude via :has(). */
.content-wrapper > .content-header,
.content-wrapper > .content:not(:has(> .content-wrapper)),
.content-header,
.content:not(:has(> .content-wrapper)) {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    box-sizing: border-box !important;
}
/* full-bleed pages: the inbox's own nested content-wrapper spans fully */
.content:has(> .content-wrapper) { max-width: none !important; padding: 0 !important; }
.content > .content-wrapper { margin-left: 0 !important; }
/* inner row/container should fill the already-capped .content (no double cap) */
.content > .row, .content > .container-fluid,
.content-header > .row { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }

/* ===================================================================
   SUBMENU RAIL + CONNECTORS (Cloudflare-style) + UNIFIED TITLES
   (2026-11-06)
   =================================================================== */
/* Cloudflare-style submenu: a single left rail + simply INDENTED items.
   NO per-item tree-branch tick connectors (user does not want them). */
.s8-group.s8-open > .s8-sub {
    margin-left: 18px !important;
    border-left: 1.5px solid #ebedf0 !important;
    padding-left: 0 !important;
}
.s8-sub li { position: relative; }
.s8-sub li > a {
    padding-left: 18px !important;
    position: relative;
}
.s8-sub li > a::before { content: none !important; display: none !important; }

/* UNIFIED PAGE TITLES — force every page title to the same ink, size,
   weight regardless of per-page color overrides (some pages used teal/
   petrol). Covers AdminLTE .content-header h1 AND common custom title
   classes. */
.content-header > h1, section.content-header > h1,
.content-header h1, .page-title, h1.page-title,
.dv-title, .bl-title, .sub-title, .db-h1,
h1.box-title, .content > .wrap > h1 {
    color: #0C1012 !important;
    font-weight: 680 !important;
    letter-spacing: -0.03em !important;
}
/* keep title <small> subtitles muted gray everywhere */
.content-header h1 small, .page-title small { color: #8a909a !important; font-weight: 400 !important; }

/* ===================================================================
   TABLE-BORDERED fix (2026-11-06) — Bootstrap's .table-bordered adds
   vertical cell dividers that look "scrambled". Kill them so bordered
   tables read as clean Cloudflare hairline rows (horizontal only).
   =================================================================== */
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td,
.table-bordered > thead > tr > td, .table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > td {
    border-left: 0 !important;
    border-right: 0 !important;
}
.table-bordered { border: 1px solid #ebedf0 !important; }
.table-bordered > thead > tr > th { border-top: 0 !important; }
/* keep only the horizontal hairline under header + between rows */
.table-bordered > thead > tr > th { border-bottom: 1px solid #ebedf0 !important; }
.table-bordered > tbody > tr > td { border-top: 0 !important; border-bottom: 1px solid #f2f3f5 !important; }
.table-bordered > tbody > tr:last-child > td { border-bottom: 0 !important; }

/* ===================================================================
   WATCH-VIDEO button (2026-11-06) — GLOBAL so every page's slopy
   dotted-underline "Watch video tutorial" becomes a clean secondary
   button on the right. Overrides the inline dotted/float styles.
   =================================================================== */
.btn.watchvideo, .content-header .btn.watchvideo {
    background: #fff !important;
    color: #475059 !important;
    border: 1px solid #dfe2e7 !important;
    border-bottom: 1px solid #dfe2e7 !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    float: right !important;
    margin-top: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    box-shadow: none !important;
}
.btn.watchvideo:hover, .content-header .btn.watchvideo:hover {
    background: #f6f7f8 !important; color: #0C1012 !important; border-color: #dfe2e7 !important;
}
.btn.watchvideo .fa, .btn.watchvideo .icon { color: #8a909a !important; }

/* ===================================================================
   SIDEBAR LINE ICONS + BUTTON CONSISTENCY (2026-11-06)
   =================================================================== */
/* size the new inline-SVG nav icons (Cloudflare line style) */
.s8-icon svg { width: 18px !important; height: 18px !important; display: block; stroke: currentColor; }
.s8-icon { color: #8a909a !important; }
li > a:hover .s8-icon, li.s8-group.s8-open > a .s8-icon, li.s8-active > a .s8-icon { color: #0C1012 !important; }

/* Add Device inline link -> clean ink link */
.s8-add-device-link {
    color: #0C1012 !important; font-weight: 600 !important; font-size: 13px !important;
    display: inline-flex !important; align-items: center !important; gap: 6px !important;
    text-decoration: none !important;
}
.s8-add-device-link:hover { color: #1b2024 !important; }
.s8-add-device-link .fa { color: #8a909a !important; }

/* Make sure primary buttons are reliably ink everywhere (some per-page
   .btn-primary looked gray). Also tidy btn-flat primary submit buttons. */
.btn-primary, button.btn-primary, a.btn-primary {
    background: #0C1012 !important; border-color: #0C1012 !important; color: #fff !important;
    border-radius: 10px !important; font-weight: 600 !important;
}
.btn-primary:hover { background: #1b2024 !important; border-color: #1b2024 !important; }
.btn-primary .fa, .btn-primary svg { color: #fff !important; }

/* ===================================================================
   WIDTH UNIFY v2 (2026-11-06) — pages that wrap content in their own
   .container-fluid (affiliate, some admin) must match the SAME width
   and gutter as standard .content pages. Normalize them to 1320/28px.
   (Excludes the inbox full-bleed nested wrapper.)
   =================================================================== */
.content > .container-fluid,
.content-wrapper > .container-fluid {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    box-sizing: border-box !important;
}
/* affiliate custom header should align to the same gutter */
.affiliate-header {
    max-width: 1320px !important;
    margin-left: auto !important; margin-right: auto !important;
    padding-left: 28px !important; padding-right: 28px !important;
    box-sizing: border-box !important;
}

/* ===================================================================
   GO UNLIMITED UPSELL — the one deliberate pop of color (2026-11-06).
   Purple + flashy on the header credit chip + sidebar upgrade widget.
   Everything else stays calm enterprise. (User choice.)
   =================================================================== */
/* header credit pill: keep the "N SMS left" part a quiet gray pill, but
   the inner "Go Unlimited" chip = flashy purple. */
a.creditZone {
    background: #f3eefe !important;           /* slight light-purple bg */
    border: 1px solid #e4d9fb !important;
    color: #6d28d9 !important;                /* "N SMS left" = purple */
    font-weight: 600 !important;
}
a.creditZone span {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px -2px rgba(124,58,237,.55) !important;
    animation: s8UpsellGlow 2.4s ease-in-out infinite;
}
a.creditZone span .sms-loading-infinity { filter: brightness(2.2); }
@keyframes s8UpsellGlow {
    0%,100% { box-shadow: 0 2px 10px -2px rgba(124,58,237,.5); }
    50%     { box-shadow: 0 2px 16px 0 rgba(124,58,237,.8); }
}

/* sidebar bottom "Go unlimited" widget = flashy purple card */
.s8-upgrade-widget {
    background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%) !important;
    box-shadow: 0 8px 24px -8px rgba(109,40,217,.55) !important;
}
.s8-upgrade-widget .s8-uw-icon { background: rgba(255,255,255,.18) !important; color: #fff !important; }
.s8-upgrade-btn, .s8-upgrade-trial {
    background: #fff !important; color: #4c1d95 !important; font-weight: 700 !important;
}
.s8-upgrade-btn:hover, .s8-upgrade-trial:hover { background: #f3eefe !important; color: #4c1d95 !important; }

/* ===================================================================
   ENTERPRISE REFINE v2 (2026-11-10) — Inter + lighter/smaller titles,
   more spacious, to match TextBee / Cloudflare admin feel. Page titles
   go from heavy-black 27/680 to a refined 22/600. KPI numbers stay bold.
   =================================================================== */
.content-header > h1, section.content-header > h1,
.content-header h1, .dv-title, .bl-title, .db-h1, .affiliate-header h1,
.page-title, h1.page-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    color: #0C1012 !important;
}
.content-header h1 small, .page-title small,
.content-header > h1 > small {
    font-size: 13px !important; font-weight: 400 !important; color: #8a909a !important;
}
/* section/sub headings lighter */
.box-title, .db-card-title, .db-feed-title { font-weight: 600 !important; }
/* body text a touch lighter for the spacious enterprise feel */
body, .content, p, td, li, label, input, select, textarea, button, a { font-weight: 400; }
.s8-nav-top li > a { font-weight: 450 !important; }
/* KPI / stat numbers stay bold (TextBee keeps big numbers bold) */
.db-kpi-val, .small-box .inner h3, .stat-value, .db-status-num { font-weight: 700 !important; }
/* uppercase section labels: smaller, more letter-spacing (Cloudflare/TextBee) */
.db-section-head, .u360-admin-lbl, .QUICK, [class*="section-head"] {
    font-size: 10.5px !important; letter-spacing: .06em !important;
}


/* ===================================================================
   CHANNEL PILLS (2026-11-10) — sent.dm-style colored channel tags.
   Apply .ch-pill.ch-<name> to a channel label anywhere (message log,
   contacts, inbox). Soft tinted bg + matching text + leading dot.
   =================================================================== */
.ch-pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
    padding: 2px 9px 2px 8px; border-radius: 999px;
    line-height: 1.5; white-space: nowrap;
}
.ch-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; opacity: .9; }
.ch-sms       { background: #fef6e0; color: #b45309; }   /* amber   */
.ch-whatsapp  { background: #e8f6ee; color: #15803d; }   /* green   */
.ch-imessage  { background: #eaf1fd; color: #1d4ed8; }   /* blue    */
.ch-rcs       { background: #fdeceb; color: #b91c1c; }   /* red/amber-> use amber */
.ch-rcs       { background: #fef4e6; color: #b45309; }
.ch-viber     { background: #f1eafc; color: #7c3aed; }   /* purple  */
.ch-mms       { background: #eceef1; color: #475059; }   /* neutral */

/* ===================================================================
   PAGE HEADER polish v3 (2026-11-10) — tighter, breadcrumb-ready.
   =================================================================== */
.content-header { padding-top: 26px !important; padding-bottom: 6px !important; }
/* breadcrumb line above the title (if a page adds .page-crumb) */
.page-crumb {
    font-size: 12px; color: #8a909a; font-weight: 450; margin-bottom: 6px;
    display: flex; align-items: center; gap: 6px;
}
.page-crumb a { color: #8a909a; text-decoration: none; }
.page-crumb a:hover { color: #0C1012; }
.page-crumb .sep { color: #c9ccd2; }
