/* ============================================================
   WHMCS Six — Full Redesign
   Left Sidebar Layout | Bootstrap 3.3.7
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Hide default WHMCS Bootstrap navbar (replaced by custom sidebar + topbar) */
.navbar { display: none !important; }

/* Hide WHMCS default page sidebar panels (Support Pin, My Account etc) */
.ca-page-sidebar { display: none !important; }

/* Make content full width when sidebar is hidden */
.ca-page-sidebar + .col-md-9.main-content,
.col-md-9.main-content,
.col-xs-12.main-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 !important;
}

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --sidebar-w: 250px;
    --topbar-h: 64px;
    --sidebar-bg: #ffffff;
    --sidebar-hover: #f1f5f9;
    --sidebar-active: #eff6ff;
    --sidebar-border: #e5e7eb;
    --sidebar-text: #64748b;
    --sidebar-text-hover: #1e293b;
    --sidebar-text-active: #2563eb;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --accent-light: #eff6ff;
    --body-bg: #e9edf6;
    --white: #ffffff;
    --text: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: var(--text) !important;
    background: var(--body-bg) !important;
    -webkit-font-smoothing: antialiased;
}

/* ── Kill all old WHMCS chrome ─────────────────────────────── */
section#header,
section#main-menu,
section#footer,
.back-to-top {
    display: none !important;
}

/* ── Make ALL WHMCS wrappers invisible pass-throughs ──────── */
section#main-body,
section#main-body > .container,
section#main-body > .container-fluid,
section#main-body > .container > .row,
section#main-body > .container-fluid > .row {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: 0 !important;
    float: none !important;
    min-height: 0 !important;
}

section#main-body > .container > .row > [class*="col-"],
section#main-body > .container-fluid > .row > [class*="col-"] {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* ============================================================
   FULL PAGE wrapper (login, password reset — no sidebar)
   ============================================================ */
.ca-fullpage-wrapper {
    display: block !important;
    width: 100%;
    min-height: 100vh;
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================================
   LAYOUT — ca-wrapper escapes all Bootstrap containers
   ============================================================ */
html, body {
    overflow-x: hidden;
}

.ca-wrapper {
    display: flex !important;
    min-height: 100vh;
    width: 100%;
    position: relative;
    margin-left: 0 !important;
    padding: 0 !important;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.ca-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    scrollbar-width: none;
    border-right: 1px solid var(--border);
    box-shadow: 2px 0 8px rgba(0,0,0,0.04);
}

.ca-sidebar::-webkit-scrollbar { display: none; }

/* Nav area scrolls, not the whole sidebar */
.ca-nav {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.ca-nav::-webkit-scrollbar { display: none; }

/* Logo area */
.ca-sidebar-logo {
    padding: 0 12px 0 20px;
    height: var(--topbar-h);
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ca-logo-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.ca-sidebar-logo a { display: block; text-decoration: none; }

.ca-logo-img {
    max-height: 34px;
    max-width: 100%;
    width: auto;
    display: block;
}

.ca-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Desktop collapse button inside sidebar */
.ca-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.ca-collapse-btn:hover {
    background: var(--body-bg);
    color: var(--text);
}

/* Nav */
.ca-nav {
    flex: 1;
    padding: 10px 0 16px;
}

.ca-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ca-nav-item { position: relative; }

.ca-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: var(--sidebar-text);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    position: relative;
    white-space: nowrap;
}

.ca-nav-link:hover,
.ca-nav-link:focus {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-hover);
    text-decoration: none;
}

/* Active nav item */
.ca-nav-item.ca-active > .ca-nav-link {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
}

.ca-nav-item.ca-active > .ca-nav-link::before {
    content: '';
    position: absolute;
    left: 0; top: 7px; bottom: 7px;
    width: 3px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.ca-nav-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.65;
}

.ca-nav-link:hover .ca-nav-icon,
.ca-nav-item.ca-active > .ca-nav-link .ca-nav-icon {
    opacity: 1;
}

.ca-nav-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ca-nav-badge {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
    line-height: 15px;
}

.ca-arrow {
    font-size: 10px;
    opacity: 0.45;
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

.ca-has-dropdown.ca-open > .ca-nav-link .ca-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown submenu */
.ca-dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.18);
}

.ca-has-dropdown.ca-open > .ca-dropdown {
    max-height: 600px;
}


/* Hide divider items (-----) */
.ca-dropdown li a[href=""] { display: none !important; }

.ca-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px 8px 50px;
    color: var(--sidebar-text);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s;
}

.ca-dropdown li a:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-hover);
    text-decoration: none;
}

/* Language switcher */
.ca-sidebar-lang {
    display: none;
}

.ca-lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sidebar-text);
    font-size: 12px;
    text-decoration: none;
    padding: 6px 4px;
    transition: color 0.15s;
}

.ca-lang-toggle:hover { color: var(--sidebar-text-hover); text-decoration: none; }

.ca-sidebar-lang .dropdown-menu {
    background: #1f2937;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    bottom: 100%;
    top: auto;
    min-width: 160px;
    margin-bottom: 4px;
}

.ca-sidebar-lang .dropdown-menu li a {
    color: var(--sidebar-text);
    font-size: 12.5px;
    padding: 8px 14px;
    display: block;
}

.ca-sidebar-lang .dropdown-menu li a:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-hover);
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.ca-main {
    width: calc(100% - var(--sidebar-w));
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    overflow-x: hidden;
    background: var(--body-bg) !important;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.ca-topbar {
    height: var(--topbar-h);
    background: #fff;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 1050;
    flex-shrink: 0;
    gap: 8px;
    box-shadow: none;
}

/* Sidebar toggle button — mobile only */
.ca-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.ca-sidebar-toggle:hover { background: var(--body-bg); color: var(--text); }

/* Transition for smooth collapse */
.ca-sidebar {
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ca-main {
    width: calc(100% - var(--sidebar-w));
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Collapsed sidebar state (desktop) — icon-only 60px strip ── */
body.ca-sidebar-collapsed .ca-sidebar {
    width: 60px !important;
    overflow: hidden !important;
}

body.ca-sidebar-collapsed .ca-main {
    width: calc(100% - 60px) !important;
    margin-left: 60px !important;
}

/* Hide text only */
body.ca-sidebar-collapsed .ca-nav-label,
body.ca-sidebar-collapsed .ca-nav-badge,
body.ca-sidebar-collapsed .ca-arrow,
body.ca-sidebar-collapsed .ca-logo-text,
body.ca-sidebar-collapsed .ca-sidebar-lang,
body.ca-sidebar-collapsed .ca-logo-img {
    display: none !important;
}

/* Logo area when collapsed — center the collapse button */
body.ca-sidebar-collapsed .ca-sidebar-logo {
    padding: 0;
    justify-content: center;
}

body.ca-sidebar-collapsed .ca-logo-wrap {
    display: none !important;
}

/* Nav links */
body.ca-sidebar-collapsed .ca-nav-link {
    padding: 14px 0 !important;
    justify-content: center !important;
    gap: 0 !important;
}

/* Icons */
body.ca-sidebar-collapsed .ca-nav-icon {
    width: 20px !important;
    min-width: 20px !important;
    font-size: 16px !important;
    opacity: 0.7 !important;
    text-align: center;
    margin: 0 !important;
    display: inline-block !important;
    visibility: visible !important;
}

body.ca-sidebar-collapsed .ca-nav-link:hover .ca-nav-icon {
    opacity: 1;
}

/* Always hide internal dropdown when collapsed - JS builds flyout instead */
body.ca-sidebar-collapsed .ca-dropdown {
    display: none !important;
}

/* Flyout menu appended to body */
#ca-flyout {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    min-width: 180px;
    padding: 4px 6px;
    position: fixed;
    z-index: 99999 !important;
}
#ca-flyout ul { list-style: none; margin: 0; padding: 0; }
#ca-flyout ul li a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
}
#ca-flyout ul li a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

body.ca-sidebar-collapsed .ca-has-dropdown.ca-open .ca-dropdown li a {
    padding: 8px 16px;
    font-size: 13px;
    color: #374151;
}
body.ca-sidebar-collapsed .ca-has-dropdown.ca-open .ca-dropdown li a:hover {
    background: #f1f5f9;
    color: #2563eb;
    border-radius: 6px;
}

/* Tooltip on hover (only for non-open items) */
body.ca-sidebar-collapsed .ca-nav-link {
    position: relative;
}
body.ca-sidebar-collapsed .ca-nav-item:not(.ca-open) .ca-nav-link:hover::after {
    content: attr(data-label);
    position: fixed;
    left: 68px;
    background: #1e293b;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
}

/* Mobile topbar logo — hidden on desktop */
.ca-topbar-logo {
    display: none;
}

/* Push items to right */
.ca-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Generic topbar icon button */
.ca-topbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-muted);
    background: transparent;
    text-decoration: none;
    position: relative;
    transition: background 0.15s, color 0.15s;
    font-size: 17px;
    cursor: pointer;
    border: none;
}

.ca-topbar-btn:hover {
    background: var(--body-bg);
    color: var(--text);
    text-decoration: none;
}

/* Notification dot */
.ca-notif-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 8px; height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--white);
}

/* ── Notification dropdown ──────────────────────────── */
.ca-notif { position: relative; }

.ca-notif .dropdown-menu {
    min-width: 300px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    margin-top: 8px;
    right: 0;
    left: auto;
    z-index: 1100;
    overflow: hidden;
}

.ca-notif-header {
    padding: 13px 16px;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    background: #f8fafc;
}

.ca-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 16px;
    color: #374151;
    font-size: 12.5px;
    text-decoration: none !important;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s;
    line-height: 1.5;
}
.ca-notif-item:last-child { border-bottom: 0; }
.ca-notif-item:hover {
    background: #f0f7ff;
    color: #111827;
    text-decoration: none !important;
}

.ca-notif-empty {
    padding: 24px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

/* ── Account trigger button ─────────────────────────── */
.ca-account { position: relative; }


.ca-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 50px;
    text-decoration: none !important;
    color: var(--text) !important;
    cursor: pointer;
    border: none;
    background: transparent;
}
.ca-account-btn:hover { background: transparent; text-decoration: none !important; }
.ca-account.open .ca-account-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}
.ca-account-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}
.ca-account-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ca-account-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.ca-account.open .ca-account-arrow { transform: rotate(180deg); }

/* reset any old overrides */
.ca-dd-profile, .ca-dd-avatar, .ca-dd-info, .ca-dd-name,
.ca-dd-email, .ca-dd-divider, .ca-dd-card, .ca-dd-card-inner,
.ca-dd-card-icon, .ca-dd-card-body, .ca-dd-card-title, .ca-dd-card-email,
.ca-dd-name-row, .ca-dd-header-avatar, .ca-dd-header-name { all: unset; }

/* ── Account dropdown panel ─────────────────────────── */
.ca-account-dropdown {
    width: 250px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    margin-top: 8px;
    right: 0 !important;
    left: auto !important;
    z-index: 1100;
    overflow: hidden;
    list-style: none;
}

.ca-account-dropdown li { list-style: none; }

/* ── 1. Header: avatar + name ───────────────────────── */
.ca-dd-head {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 14px 16px !important;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    cursor: default;
}
.ca-dd-head-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #93c5fd);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.ca-dd-head-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── 2. Account info card ───────────────────────────── */
.ca-dd-infocard {
    padding: 10px 12px !important;
    background: #ffffff;
    border-bottom: none;
    cursor: default;
}
.ca-dd-infocard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 0;
}
.ca-dd-infocard-left {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}
.ca-dd-infocard-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #93c5fd);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.ca-dd-infocard-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}
.ca-dd-infocard-email {
    font-size: 11.5px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}
.ca-dd-infocard-meta {
    display: flex;
    align-items: center;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.ca-dd-meta-item {
    flex: 1;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ca-dd-meta-label {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ca-dd-meta-val {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
}
.ca-dd-meta-sep {
    width: 1px;
    background: #e2e8f0;
    align-self: stretch;
}

/* ── 3. Nav items ───────────────────────────────────── */
.ca-dd-item {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px !important;
    font-size: 13.5px !important;
    font-weight: 400;
    color: #1e293b !important;
    transition: background 0.12s;
    text-decoration: none !important;
    border: none !important;
}
.ca-dd-item:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    text-decoration: none !important;
}
.ca-dd-item-active {
    background: #fff !important;
    color: #1e293b !important;
    font-weight: 500;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin: 2px 8px !important;
    padding: 9px 12px !important;
}
.ca-dd-item-active:hover { background: #f8fafc !important; }
.ca-dd-item-ext {
    font-size: 11px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* ── 4. Logout ──────────────────────────────────────── */
.ca-dd-logout-li { border-top: 1px solid #e2e8f0; }
.ca-dd-item-logout {
    color: #1e293b !important;
}
.ca-dd-item-logout:hover { background: #fef2f2 !important; }
.ca-dd-logout-icon {
    color: #ef4444 !important;
    font-size: 13px;
}

/* Logout button */
.ca-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--accent);
    color: var(--white) !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.ca-logout-btn:hover,
.ca-logout-btn:focus {
    background: var(--accent-dark);
    color: var(--white) !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(59,130,246,0.4);
    transform: translateY(-1px);
}

/* Admin badge */
.ca-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #fef3c7;
    color: #92400e !important;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s;
}

.ca-admin-btn:hover { background: #fde68a; color: #78350f !important; }

/* Guest links */
.ca-topbar-link {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    font-weight: 500;
}

.ca-topbar-link:hover {
    background: var(--body-bg);
    color: var(--accent);
    text-decoration: none;
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.ca-content {
    flex: 1;
    padding: 30px 30px 24px;
}

.ca-content .container-fluid { padding: 0 !important; }
.ca-content .container-fluid > .row { margin: 0; }

/* Page header / breadcrumbs */
.header-lined {
    margin-bottom: 26px;
}

.header-lined h1 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    line-height: 1.3 !important;
    font-family: 'Inter', sans-serif !important;
}

.header-lined small {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 400;
}

.header-lined .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 12px;
    border-radius: 0;
}

.header-lined .breadcrumb > li + li::before { color: var(--border); }
.header-lined .breadcrumb li a { color: var(--text-muted); }
.header-lined .breadcrumb li a:hover { color: var(--accent); }
.header-lined .breadcrumb > .active { color: var(--accent); font-weight: 500; }

/* ============================================================
   STAT TILES (dashboard)
   ============================================================ */
.tiles {
    margin: 0 -8px 28px;
}

.tiles > .row {
    margin-left: 0;
    margin-right: 0;
}

.tiles [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.tile-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px 22px 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    cursor: pointer;
    text-decoration: none !important;
    color: var(--text) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.tile-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    text-decoration: none !important;
}

.tile-card .tile-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.tile-card .tile-stat {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.tile-card .tile-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.tile-card .tile-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Tile color themes */
.tile-blue  .tile-icon-wrap { background: #dbeafe; color: #2563eb; }
.tile-blue  .tile-bar       { background: linear-gradient(90deg, #3b82f6, #60a5fa); }

.tile-green .tile-icon-wrap { background: #d1fae5; color: #059669; }
.tile-green .tile-bar       { background: linear-gradient(90deg, #10b981, #34d399); }

.tile-red   .tile-icon-wrap { background: #fee2e2; color: #dc2626; }
.tile-red   .tile-bar       { background: linear-gradient(90deg, #ef4444, #f87171); }

.tile-gold  .tile-icon-wrap { background: #fef3c7; color: #d97706; }
.tile-gold  .tile-bar       { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* ============================================================
   HOME WELCOME HEADER
   ============================================================ */
.home-welcome {
    margin-bottom: 24px;
}

.home-welcome-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
    font-family: 'Inter', sans-serif !important;
}

.home-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.home-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.home-breadcrumb a:hover {
    color: var(--accent);
    text-decoration: none;
}

.home-bc-sep {
    font-size: 9px;
    color: var(--border);
}

/* ============================================================
   KB SEARCH
   ============================================================ */
.home-kb-search {
    position: relative;
    margin-bottom: 30px;
}

.home-kb-search .form-control {
    padding-left: 46px !important;
    height: 50px !important;
    border-radius: 50px !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    font-size: 14px !important;
    background: var(--white);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.home-kb-search .form-control:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1) !important;
    outline: none;
}

.home-kb-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
    z-index: 5;
}

/* ============================================================
   PANELS
   ============================================================ */
.panel {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 20px;
    background: var(--white);
}

.panel-heading {
    background: var(--white) !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    padding: 16px 20px !important;
}

.panel-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    font-family: 'Inter', sans-serif !important;
}

.panel-body {
    padding: 20px !important;
}

.panel-footer {
    background: #f9fafb !important;
    border-top: 1px solid var(--border) !important;
    border-radius: 0 0 var(--radius) var(--radius) !important;
    padding: 12px 20px !important;
}

/* Panel accent top borders */
.panel-accent-blue   { border-top: 3px solid #3b82f6 !important; }
.panel-accent-green  { border-top: 3px solid #10b981 !important; }
.panel-accent-red    { border-top: 3px solid #ef4444 !important; }
.panel-accent-gold,
.panel-accent-yellow { border-top: 3px solid #f59e0b !important; }
.panel-accent-orange { border-top: 3px solid #f97316 !important; }
.panel-accent-purple { border-top: 3px solid #8b5cf6 !important; }
.panel-accent-teal   { border-top: 3px solid #14b8a6 !important; }
.panel-accent-pink   { border-top: 3px solid #ec4899 !important; }

/* Home panels */
.client-home-panels .panel > .panel-body {
    padding: 0 !important;
    max-height: 220px;
    overflow-y: auto;
}

.client-home-panels .panel > .list-group {
    max-height: 220px;
    overflow-y: auto;
}

.client-home-panels .panel > .panel-footer {
    background: transparent !important;
    border-top: 0 !important;
}

/* ============================================================
   LIST GROUPS
   ============================================================ */
.list-group { margin-bottom: 0; }

.list-group-item {
    border-color: var(--border) !important;
    font-size: 13px !important;
    padding: 10px 18px !important;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    transition: background 0.12s;
}

.list-group-item:first-child { border-radius: 0 !important; }
.list-group-item:last-child  { border-radius: 0 0 var(--radius) var(--radius) !important; }

a.list-group-item:hover {
    background: var(--accent-light) !important;
    color: var(--accent) !important;
    text-decoration: none;
}

a.list-group-item.active,
a.list-group-item.active:hover,
a.list-group-item.active:focus {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

.list-group-item .badge {
    background: var(--accent) !important;
    color: #fff !important;
    font-size: 10px !important;
    border-radius: 10px !important;
}

/* ============================================================
   PAGE-LEVEL SIDEBAR (service detail etc.)
   ============================================================ */
.ca-page-sidebar { margin-bottom: 20px; }

.ca-page-sidebar .panel { box-shadow: none !important; }

/* ============================================================
   FORMS
   ============================================================ */
.form-control {
    border-color: var(--border) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
    font-size: 14px !important;
    color: var(--text) !important;
    height: 40px;
    font-family: 'Inter', sans-serif !important;
    transition: border-color 0.15s, box-shadow 0.15s;
    background-color: var(--white) !important;
}

.form-control:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12) !important;
    outline: none;
}

textarea.form-control { height: auto !important; }

select.form-control { height: 40px; }

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.form-group { margin-bottom: 18px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    border-radius: var(--radius-sm) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 9px 20px !important;
    transition: all 0.15s !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em;
    overflow: visible !important;
}

.btn-primary {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    box-shadow: 0 4px 12px rgba(59,130,246,0.35) !important;
}

.btn-default {
    background: var(--white) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.btn-default:hover {
    background: var(--body-bg) !important;
    border-color: #d1d5db !important;
}

.btn-success { background: #10b981 !important; border-color: #10b981 !important; color: #fff !important; }
.btn-danger  { background: #ef4444 !important; border-color: #ef4444 !important; color: #fff !important; }
.btn-warning { background: #f59e0b !important; border-color: #f59e0b !important; color: #fff !important; }

/* ============================================================
   TABLES
   ============================================================ */
.table {
    font-size: 13px !important;
    color: var(--text) !important;
    font-family: 'Inter', sans-serif;
}

.table > thead > tr > th {
    background: #f9fafb !important;
    border-bottom: 2px solid var(--border) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted) !important;
    padding: 11px 16px !important;
    white-space: nowrap;
}

.table > tbody > tr > td {
    border-color: var(--border) !important;
    padding: 11px 16px !important;
    vertical-align: middle !important;
}

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

.table-bordered {
    border-color: var(--border) !important;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    border-radius: var(--radius-sm) !important;
    border-left-width: 4px !important;
    border-top-width: 1px !important;
    border-right-width: 1px !important;
    border-bottom-width: 1px !important;
    font-size: 13.5px !important;
    padding: 13px 18px !important;
    font-family: 'Inter', sans-serif;
}

.alert-success { background: #f0fdf4 !important; border-color: #10b981 !important; color: #065f46 !important; }
.alert-danger,
.alert-error   { background: #fef2f2 !important; border-color: #ef4444 !important; color: #991b1b !important; }
.alert-warning { background: #fffbeb !important; border-color: #f59e0b !important; color: #92400e !important; }
.alert-info    { background: #eff6ff !important; border-color: #3b82f6 !important; color: #1e40af !important; }

/* ============================================================
   BADGES & LABELS
   ============================================================ */
.badge {
    background: var(--accent) !important;
    border-radius: 20px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
}

.label {
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 7px !important;
}

.label-info    { background: var(--accent)  !important; }
.label-success { background: #10b981 !important; }
.label-danger  { background: #ef4444 !important; }
.label-warning { background: #f59e0b !important; }
.label-default { background: #6b7280 !important; }

/* Status labels */
.label-active  { background: #10b981 !important; }
.label-pending { background: #f59e0b !important; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { font-size: 13px; }

.pagination > li > a,
.pagination > li > span {
    border-color: var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    padding: 6px 12px;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
}

.pagination > li > a:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > a:focus {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ca-footer {
    padding: 16px 30px;
    border-top: none;
    background: transparent;
    font-size: 12.5px;
    color: var(--text-muted);
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}

.ca-footer p { margin: 0; display: none; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-content {
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg) !important;
    font-family: 'Inter', sans-serif;
}

.modal-header {
    border-radius: var(--radius) var(--radius) 0 0 !important;
    padding: 18px 22px !important;
    border-bottom: 1px solid var(--border) !important;
}

.modal-footer {
    border-top: 1px solid var(--border) !important;
    padding: 14px 22px !important;
}

/* ============================================================
   OVERLAY
   ============================================================ */
#fullpage-overlay {
    display: table;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    color: #fff;
}

#fullpage-overlay .outer-wrapper { position: relative; height: 100%; }

#fullpage-overlay .inner-wrapper {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* ============================================================
   SCROLLBAR (global)
   ============================================================ */
* {
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .ca-sidebar-toggle { display: inline-flex; }
    .ca-collapse-btn { display: none !important; }

    /* On mobile: sidebar collapses to icon-only strip (60px) by default, starts below topbar */
    .ca-sidebar {
        width: 60px !important;
        top: var(--topbar-h) !important;
    }

    /* Hide labels/text in mobile collapsed state */
    .ca-sidebar .ca-nav-label,
    .ca-sidebar .ca-nav-badge,
    .ca-sidebar .ca-arrow,
    .ca-sidebar .ca-logo-text,
    .ca-sidebar .ca-sidebar-lang,
    .ca-sidebar .ca-logo-img,
    .ca-sidebar .ca-sidebar-logo {
        display: none !important;
    }

    .ca-sidebar .ca-nav-link {
        padding: 12px 0;
        justify-content: center;
        gap: 0;
    }

    .ca-sidebar .ca-nav-icon {
        width: 60px;
        min-width: 60px;
        font-size: 17px;
        flex-shrink: 0;
    }

    .ca-sidebar .ca-dropdown {
        display: none !important;
    }

    /* When toggled open on mobile: full sidebar slides in */
    .ca-sidebar.ca-sidebar-open {
        width: var(--sidebar-w) !important;
        box-shadow: 8px 0 40px rgba(0,0,0,0.20);
    }

    .ca-sidebar.ca-sidebar-open .ca-nav-label,
    .ca-sidebar.ca-sidebar-open .ca-nav-badge,
    .ca-sidebar.ca-sidebar-open .ca-arrow {
        display: unset !important;
    }

    .ca-sidebar.ca-sidebar-open .ca-nav-link {
        padding: 10px 16px;
        justify-content: flex-start;
        gap: 10px;
    }

    .ca-sidebar.ca-sidebar-open .ca-nav-icon {
        width: 28px;
        min-width: 28px;
    }

    .ca-sidebar.ca-sidebar-open .ca-dropdown {
        display: block !important;
    }

    .ca-main {
        margin-left: 60px !important;
    }

    .ca-content {
        padding: 20px 16px;
    }

    .ca-topbar {
        padding: 0 16px;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        margin-left: 0 !important;
    }

    .ca-topbar-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .ca-topbar-logo-img {
        max-height: 32px;
        width: auto;
    }

    .ca-topbar-logo-text {
        font-size: 16px;
        font-weight: 600;
        color: var(--text);
        text-decoration: none;
    }

    .ca-main {
        padding-top: var(--topbar-h);
    }
}

@media (max-width: 767px) {
    .tile-card .tile-stat { font-size: 28px; }

    .ca-content { padding: 16px 12px; }

    .tiles [class*="col-"] {
        margin-bottom: 0;
    }
}

/* ============================================================
   CLIENT AREA HOME — Dashboard
   ============================================================ */

/* Hero */
.ch-hero {
    background: linear-gradient(120deg, #1e40af 0%, #3b82f6 60%, #60a5fa 100%);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.ch-hero::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}
.ch-hero-text { float: left; position: relative; z-index: 1; }
.ch-hero-action { float: right; position: relative; z-index: 1; padding-top: 6px; }
.ch-hello {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.ch-name {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.2 !important;
    font-family: 'Inter', sans-serif !important;
}
.ch-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}
.ch-btn-order {
    display: inline-block;
    padding: 9px 20px;
    background: rgba(255,255,255,0.2);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
    white-space: nowrap;
}
.ch-btn-order:hover {
    background: rgba(255,255,255,0.32);
    color: #fff !important;
    text-decoration: none !important;
}
.ch-btn-order i { margin-right: 5px; }

/* Stat Cards */
.ch-stats { margin-bottom: 20px; }
.ch-stats .row { margin-left: -8px; margin-right: -8px; }
.ch-stats [class*="col-"] { padding-left: 8px; padding-right: 8px; }

.ch-card {
    display: block;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    text-decoration: none !important;
    color: var(--text) !important;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: var(--shadow-sm);
}
.ch-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-decoration: none !important;
}
.ch-card-top {
    padding: 18px 16px 12px;
}
.ch-card-icon {
    float: left;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    margin-right: 12px;
    text-align: center;
    line-height: 44px;
    font-size: 19px;
    flex-shrink: 0;
}
.ch-card-data {
    overflow: hidden;
    padding-top: 2px;
}
.ch-card-num {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 3px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}
.ch-card-lbl {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}
.ch-card-foot {
    padding: 8px 16px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    font-weight: 600;
    text-align: right;
}
.ch-card-foot i { font-size: 10px; margin-left: 3px; }

.ch-card-blue  .ch-card-icon { background: #dbeafe; color: #2563eb; }
.ch-card-blue  .ch-card-foot { color: #2563eb; }
.ch-card-blue:hover  { border-color: #bfdbfe; }
.ch-card-green .ch-card-icon { background: #d1fae5; color: #059669; }
.ch-card-green .ch-card-foot { color: #059669; }
.ch-card-green:hover { border-color: #a7f3d0; }
.ch-card-red   .ch-card-icon { background: #fee2e2; color: #dc2626; }
.ch-card-red   .ch-card-foot { color: #dc2626; }
.ch-card-red:hover   { border-color: #fecaca; }
.ch-card-gold  .ch-card-icon { background: #fef3c7; color: #d97706; }
.ch-card-gold  .ch-card-foot { color: #d97706; }
.ch-card-gold:hover  { border-color: #fde68a; }

/* Middle row */
.ch-mid-row { margin-left: -8px; margin-right: -8px; }
.ch-mid-row [class*="col-"] { padding-left: 8px; padding-right: 8px; }

.ch-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.ch-section-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.ch-section-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}
.ch-section-title i { color: var(--accent); margin-right: 5px; }

/* Quick Actions */
.ch-actions-row { margin-left: -5px; margin-right: -5px; }
.ch-actions-row [class*="col-"] { padding-left: 5px; padding-right: 5px; }

.ch-action {
    display: block;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 6px;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: none !important;
    color: var(--text) !important;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.15s;
}
.ch-action:hover {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent) !important;
    text-decoration: none !important;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.ch-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    margin: 0 auto 6px;
    text-align: center;
    line-height: 36px;
    font-size: 15px;
}
.ch-action-blue   { background: #dbeafe; color: #2563eb; }
.ch-action-gold   { background: #fef3c7; color: #d97706; }
.ch-action-green  { background: #d1fae5; color: #059669; }
.ch-action-purple { background: #ede9fe; color: #7c3aed; }
.ch-action-teal   { background: #ccfbf1; color: #0d9488; }
.ch-action-red    { background: #fee2e2; color: #dc2626; }

/* KB */
.ch-kb-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: -6px 0 14px 0;
}
.ch-kb-wrap {
    position: relative;
    margin-bottom: 12px;
}
.ch-kb-wrap > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    z-index: 10;
    pointer-events: none;
}
.ch-kb-wrap .form-control {
    padding-left: 38px !important;
    height: 42px !important;
    font-size: 13px !important;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
}
.ch-kb-wrap .form-control:focus {
    border-color: var(--accent) !important;
    box-shadow: none !important;
    z-index: 2;
}
.ch-kb-btn {
    height: 42px;
    padding: 0 16px;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    vertical-align: top;
}
.ch-kb-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.ch-kb-links a {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 5px 11px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: #f9fafb;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: all 0.15s;
}
.ch-kb-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
    text-decoration: none;
}
.ch-kb-links a i { margin-right: 3px; }

@media (max-width: 767px) {
    .ch-hero-text, .ch-hero-action { float: none; }
    .ch-hero-action { padding-top: 14px; }
    .ch-name { font-size: 20px !important; }
}

/* Client details page styles moved to clientareadetails.css */
/*.cd-wrap {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cd-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 2px rgb(0 0 0 / 6%), 0 2px 8px rgb(0 0 0 / 4%);
    overflow: hidden;
}

.cd-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
}

.cd-card-icon {
    width: 32px;
    height: 32px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.cd-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.cd-card-body {
    padding: 22px;
}

.cd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.cd-field-full {
    grid-column: 1 / -1;
}

.cd-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cd-input,
.cd-select-wrap select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    box-sizing: border-box;
}

.cd-input:focus,
.cd-select-wrap select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.cd-input:disabled {
    background: #f8fafc;
    color: var(--text-muted);
    cursor: not-allowed;
}

.cd-select-wrap {
    position: relative;
}

.cd-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.cd-custom-field input,
.cd-custom-field select,
.cd-custom-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    box-sizing: border-box;
}

/* Checkboxes */
.cd-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cd-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.cd-checkbox-item input[type="checkbox"] {
    display: none;
}

.cd-checkbox-box {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
}

.cd-checkbox-item input[type="checkbox"]:checked + .cd-checkbox-box {
    background: #2563eb;
    border-color: #2563eb;
}

.cd-checkbox-item input[type="checkbox"]:checked + .cd-checkbox-box::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: block;
}

.cd-checkbox-label {
    font-size: 14px;
    color: var(--text);
}

.cd-muted {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

/* Actions */
.cd-actions {
    display: flex;
    gap: 12px;
    padding: 4px 0 8px;
}

.cd-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.cd-btn-save:hover { background: #1d4ed8; }

.cd-btn-cancel {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    color: var(--text-muted);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.cd-btn-cancel:hover { background: var(--body-bg); color: var(--text); }

@media (max-width: 767px) {
    .cd-grid { grid-template-columns: 1fr; }
    .cd-field-full { grid-column: 1; }
}*/

/* ── Cart pages — hide sidebar, full-width main ── */
.ca-cart-page .ca-sidebar { display: none !important; }
.ca-cart-page .ca-main { margin-left: 0 !important; width: 100% !important; background: var(--body-bg) !important; }
.ca-cart-page .ca-sidebar-toggle { display: none !important; }
.ca-cart-page .ca-content { padding: 0 0 0 0 !important; background: var(--body-bg) !important; }
.ca-cart-page .ca-topbar { border-bottom: 1px solid #e5e7eb !important; }

/* ── Show topbar logo when sidebar is hidden (cart pages) ── */
.ca-cart-page .ca-topbar-logo { display: flex !important; align-items: center; }

/* ── Cart Trust Bar Footer ── */
.ca-cart-page .ca-footer { display: none !important; }

.cart-trust-bar { background: transparent; padding: 0; margin: 0; flex-shrink: 0; }

.cart-trust-badges {
    background: linear-gradient(to bottom, #e9edf6 50%, #f0f2f8 50%);
    padding: 24px 40px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.cart-trust-item {
    background: #fff;
    border-radius: 10px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 180px;
    max-width: 260px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.cart-trust-icon { font-size: 32px; color: #2563eb; flex-shrink: 0; }
.cart-trust-text { display: flex; flex-direction: column; }
.cart-trust-text strong { font-size: 15px; font-weight: 700; color: #1e293b; line-height: 1.3; }
.cart-trust-text span { font-size: 13px; color: #64748b; margin-top: 2px; }

.cart-trust-bottom {
    background: #f0f2f8;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-trust-brand .cart-trust-company { font-size: 18px; font-weight: 700; color: #1e293b; }
.cart-trust-payments { display: flex; gap: 10px; align-items: center; }
.cart-trust-payments i { font-size: 32px; }
.cart-trust-payments .fa-cc-visa { color: #1a1f71; }
.cart-trust-payments .fa-cc-mastercard { color: #eb001b; }
.cart-trust-payments .fa-cc-amex { color: #007bc1; }
.cart-trust-payments .fa-cc-paypal { color: #003087; }
