/*
 * PAX CRM Enterprise Interface V2
 * Readable, consistent and responsive enhancement layer.
 * Loaded after crm-ui.css so existing workflows and module-specific layouts remain intact.
 */

:root {
    --ui-primary: #2563eb;
    --ui-primary-hover: #1d4ed8;
    --ui-primary-strong: #1e40af;
    --ui-primary-soft: #eff6ff;
    --ui-bg: #f3f6fa;
    --ui-surface: #ffffff;
    --ui-surface-subtle: #f8fafc;
    --ui-surface-muted: #f1f5f9;
    --ui-border: #e2e8f0;
    --ui-border-strong: #cbd5e1;
    --ui-text: #0f172a;
    --ui-muted: #64748b;
    --ui-muted-2: #94a3b8;
    --ui-sidebar: #0b1220;
    --ui-sidebar-hover: rgba(255, 255, 255, .065);
    --ui-sidebar-text: #dbe4f0;
    --ui-sidebar-muted: #8391a7;
    --ui-radius-sm: 8px;
    --ui-radius: 10px;
    --ui-radius-lg: 14px;
    --ui-radius-xl: 18px;
    --ui-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .035);
    --ui-shadow-hover: 0 10px 28px rgba(15, 23, 42, .08);
    --ui-shadow-popover: 0 20px 50px rgba(15, 23, 42, .18);
    --ui-sidebar-width: 252px;
    --ui-sidebar-collapsed: 80px;
    --ui-topbar-height: 72px;
    --ui-control-height: 42px;
    --ui-page-gap: 20px;
}

html { font-size: 16px; }
body {
    font-size: 14px !important;
    line-height: 1.55 !important;
    letter-spacing: -.005em;
}

/* Application shell */
.crm-sidebar {
    background:
        radial-gradient(circle at 15% 0%, rgba(37, 99, 235, .16), transparent 28%),
        linear-gradient(180deg, #0b1220 0%, #101827 100%) !important;
    border-right-color: rgba(148, 163, 184, .12) !important;
}
.crm-sidebar-brandbar {
    min-height: var(--ui-topbar-height) !important;
    padding: 12px 14px !important;
    border-bottom-color: rgba(148, 163, 184, .12) !important;
}
.crm-brand-logo {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8) !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .28) !important;
    font-size: 13px !important;
}
.crm-brand-logo img { object-fit: contain; padding: 5px !important; }
.crm-brand-title { max-width: 156px !important; color: #f8fafc !important; font-size: 14px !important; font-weight: 750 !important; }
.crm-brand-subtitle { max-width: 156px !important; margin-top: 2px; font-size: 10px !important; color: #8391a7 !important; }
.crm-sidebar-collapse {
    width: 30px !important;
    height: 30px !important;
    border: 1px solid rgba(148, 163, 184, .14) !important;
    background: rgba(255, 255, 255, .055) !important;
}
.sidebar-scroll { padding: 14px 10px 18px !important; }
.sidebar-section-label {
    margin: 18px 10px 7px !important;
    color: #728197 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
}
.sidebar-section-label:first-child { margin-top: 4px !important; }
.sidebar-link {
    min-height: 42px !important;
    margin: 3px 0 !important;
    padding: 9px 11px !important;
    gap: 12px !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    color: var(--ui-sidebar-text) !important;
    font-size: 13px !important;
    font-weight: 590 !important;
}
.sidebar-link svg { width: 18px !important; height: 18px !important; opacity: .9 !important; }
.sidebar-link:hover {
    background: var(--ui-sidebar-hover) !important;
    border-color: rgba(148, 163, 184, .1) !important;
}
.sidebar-link.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, .30), rgba(37, 99, 235, .12)) !important;
    border-color: rgba(96, 165, 250, .24) !important;
    box-shadow: inset 3px 0 0 #60a5fa !important;
}
.sidebar-link.active svg { color: #93c5fd !important; }
.sidebar-footer {
    padding: 10px !important;
    border-top-color: rgba(148, 163, 184, .12) !important;
    background: rgba(2, 6, 23, .14);
}
.crm-sidebar-account {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    color: #e2e8f0;
    text-decoration: none;
}
.crm-sidebar-account:hover { background: rgba(255, 255, 255, .07); }
.crm-sidebar-account-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
.crm-sidebar-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.crm-sidebar-account-copy { min-width: 0; flex: 1; }
.crm-sidebar-account-name { overflow: hidden; color: #f8fafc; font-size: 11.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.crm-sidebar-account-role { overflow: hidden; margin-top: 1px; color: #8391a7; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.crm-sidebar-signout {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fca5a5;
}
.crm-sidebar-signout:hover { background: rgba(239, 68, 68, .12); color: #fecaca; }
.crm-sidebar-signout svg { width: 16px; height: 16px; }
html[data-crm-sidebar="collapsed"] .crm-sidebar-account { justify-content: center; padding: 8px !important; }
html[data-crm-sidebar="collapsed"] .crm-sidebar-account-copy,
html[data-crm-sidebar="collapsed"] .crm-sidebar-signout { display: none !important; }
html[data-crm-sidebar="collapsed"] .crm-sidebar-brandbar { padding-inline: 18px 14px !important; }
html[data-crm-sidebar="collapsed"] .crm-sidebar-collapse { top: 55px !important; }

/* Top bar */
.crm-topbar {
    background: rgba(255, 255, 255, .90) !important;
    border-bottom-color: rgba(203, 213, 225, .8) !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02) !important;
    backdrop-filter: blur(18px) saturate(1.3) !important;
}
.crm-topbar-inner { padding: 0 24px !important; gap: 18px !important; }
.crm-title-row { gap: 10px !important; }
.crm-page-title {
    max-width: min(42vw, 560px) !important;
    font-size: 17px !important;
    font-weight: 730 !important;
    letter-spacing: -.025em !important;
}
.crm-scope-pill {
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 10.5px !important;
    font-weight: 650 !important;
}
.crm-scope-icon { color: var(--ui-primary) !important; }
.crm-topbar-actions { gap: 8px !important; }
.crm-topbar-search {
    width: min(340px, 29vw) !important;
    height: 42px !important;
    padding-left: 38px !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    font-size: 12.5px !important;
}
.crm-topbar-search:hover { border-color: var(--ui-border-strong) !important; background: #fff !important; }
.crm-icon-button, .crm-mobile-menu-button, .crm-preferences-button, .crm-mobile-search-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 10px !important;
}
.crm-user-card {
    min-height: 44px !important;
    padding: 4px 4px 4px 10px !important;
    gap: 10px !important;
    border: 1px solid transparent !important;
    border-radius: 11px !important;
}
.crm-user-card:hover { border-color: var(--ui-border) !important; background: var(--ui-surface-subtle) !important; }
.crm-user-name { font-size: 12px !important; font-weight: 700 !important; }
.crm-user-detail { max-width: 118px; font-size: 9.5px !important; }
.crm-user-role-pill { min-height: 19px !important; padding: 0 7px !important; font-size: 9px !important; }
.crm-user-avatar { width: 36px !important; height: 36px !important; border-radius: 10px !important; font-size: 11px !important; }

/* Workspace spacing and hierarchy */
.page-wrapper, .invoice-page-padding {
    max-width: 1720px !important;
    padding: 24px 26px 40px !important;
}
.crm-page-content .space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: var(--ui-page-gap) !important; }
.crm-page-content h1 { font-weight: 750 !important; }
.crm-page-content h2, .crm-page-content h3 { font-weight: 700 !important; }
.crm-page-content p { line-height: 1.6 !important; }
.crm-page-content .text-\[8px\], .crm-page-content .text-\[8\.5px\], .crm-page-content .text-\[9px\], .crm-page-content .text-\[9\.5px\] { font-size: 10.5px !important; line-height: 1.45 !important; }
.crm-page-content .text-\[10px\], .crm-page-content .text-\[10\.5px\] { font-size: 11.5px !important; line-height: 1.5 !important; }
.crm-page-content .text-\[11px\], .crm-page-content .text-\[11\.5px\] { font-size: 12.5px !important; line-height: 1.5 !important; }
.crm-page-content .text-\[12px\], .crm-page-content .text-\[12\.5px\] { font-size: 13px !important; line-height: 1.55 !important; }
.crm-page-content .text-\[13px\], .crm-page-content .text-\[13\.5px\] { font-size: 13.5px !important; }
.crm-page-content .text-\[14px\], .crm-page-content .text-\[15px\] { font-size: 14px !important; }
.crm-page-content .text-\[18px\], .crm-page-content .text-\[20px\], .crm-page-content .text-\[21px\], .crm-page-content .text-\[22px\], .crm-page-content .text-\[24px\], .crm-page-content .text-\[25px\], .crm-page-content .text-\[26px\] { font-size: 22px !important; line-height: 1.25 !important; }

.ui-page-intro, .ent-hero,
.audit-hero, .roles-hero, .pax-settings-hero, .pax-company-hero, .pax-form-hero {
    position: relative;
    overflow: hidden;
    padding: 20px 22px !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius-xl) !important;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, .9), rgba(255, 255, 255, .96) 52%, rgba(248, 250, 252, .96)) !important;
    color: var(--ui-text) !important;
    box-shadow: var(--ui-shadow) !important;
}
.ui-page-intro::before, .ent-hero::before,
.audit-hero::before, .roles-hero::before, .pax-settings-hero::before, .pax-company-hero::before, .pax-form-hero::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 4px !important;
    display: block !important;
    background: linear-gradient(180deg, #2563eb, #60a5fa) !important;
}
.ui-page-intro .text-white, .ent-hero .text-white { color: var(--ui-text) !important; }
.ui-page-intro [class*="text-white/"], .ent-hero [class*="text-white/"] { color: var(--ui-muted) !important; }
.ui-page-intro [class*="border-white"], .ent-hero [class*="border-white"] { border-color: var(--ui-border) !important; }
.ui-page-intro [class*="bg-white/"], .ent-hero [class*="bg-white/"] { background: #fff !important; }
.ui-page-intro a.bg-white, .ent-hero a.bg-white { background: var(--ui-primary) !important; color: #fff !important; }

/* Cards, metrics and panels */
.ent-card, .ent-stat-card,
.crm-page-content section[class*="bg-white"],
.crm-page-content article[class*="bg-white"],
.crm-page-content div[class*="bg-white"][class*="border"],
.enterprise-card-list {
    border-color: var(--ui-border) !important;
    border-radius: var(--ui-radius-lg) !important;
    background: var(--ui-surface) !important;
    box-shadow: var(--ui-shadow) !important;
}
.ent-card-hover { transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease !important; }
.ent-card-hover:hover { transform: translateY(-1px) !important; border-color: var(--ui-border-strong) !important; box-shadow: var(--ui-shadow-hover) !important; }
.ent-stat-card { min-height: 116px; padding: 18px !important; }
.ent-stat-card::before { width: 3px !important; border-radius: 3px; }
.ent-stat-card .w-11.h-11 { width: 46px !important; height: 46px !important; border-radius: 13px !important; }
.crm-dashboard-kpis { gap: 14px !important; }
.crm-dashboard-kpis .text-\[24px\] { font-size: 28px !important; }
.crm-page-content .rounded-3xl, .crm-page-content .rounded-\[30px\], .crm-page-content .rounded-\[28px\], .crm-page-content .rounded-\[26px\], .crm-page-content .rounded-\[24px\], .crm-page-content .rounded-\[22px\] { border-radius: var(--ui-radius-xl) !important; }
.crm-page-content .rounded-2xl { border-radius: var(--ui-radius-lg) !important; }

/* Buttons and forms */
.ent-btn-primary,
.crm-page-content button,
.crm-page-content a[class*="inline-flex"] {
    min-height: 40px;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease !important;
}
.ent-btn-primary { min-height: 42px !important; padding: 0 16px !important; box-shadow: 0 5px 14px rgba(37, 99, 235, .18) !important; }
.ent-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37, 99, 235, .23) !important; }
.crm-page-content label > span:first-child, .crm-page-content .form-label { font-size: 11.5px !important; font-weight: 700 !important; }
.crm-page-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.crm-page-content select,
.crm-page-content textarea,
.pax-field input, .pax-field select, .pax-field textarea {
    min-height: 42px !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--ui-text) !important;
    font-size: 13px !important;
}
.crm-page-content textarea, .pax-field textarea { min-height: 104px !important; }
.crm-page-content input:focus, .crm-page-content select:focus, .crm-page-content textarea:focus,
.pax-field input:focus, .pax-field select:focus, .pax-field textarea:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10) !important;
}

/* Data tables and lists */
.crm-page-content table { border-collapse: separate !important; border-spacing: 0 !important; font-size: 13px !important; }
.crm-page-content table thead { background: #f8fafc !important; }
.crm-page-content table th {
    padding: 12px 14px !important;
    color: #475569 !important;
    font-size: 10.5px !important;
    font-weight: 750 !important;
    letter-spacing: .075em !important;
}
.crm-page-content table td { padding: 13px 14px !important; color: #334155 !important; font-size: 12.5px !important; vertical-align: middle !important; }
.crm-page-content table tbody tr { transition: background-color .12s ease; }
.crm-page-content table tbody tr:hover { background: #f8fafc !important; }
.enterprise-data-head { padding-top: 13px !important; padding-bottom: 13px !important; }
.enterprise-data-row { padding-top: 16px !important; padding-bottom: 16px !important; }
.enterprise-data-row:hover { background: #f8fafc !important; }
.ent-badge, .crm-page-content span[class*="rounded-full"] { min-height: 24px !important; padding-inline: 9px !important; font-size: 10.5px !important; }

/* Dropdowns and drawers */
.crm-notification-dropdown { width: min(390px, calc(100vw - 24px)) !important; border-radius: 14px !important; box-shadow: var(--ui-shadow-popover) !important; }
.crm-preferences-drawer { width: min(390px, 100vw) !important; }
.crm-drawer-header { min-height: 70px !important; padding-inline: 20px !important; }
.crm-drawer-body { padding: 20px !important; }
.crm-setting-group { padding: 18px 0 !important; }
.crm-setting-title { font-size: 12px !important; }
.crm-setting-description { font-size: 11px !important; }
.crm-segmented button { min-height: 36px !important; font-size: 11px !important; }
.crm-mobile-search-panel { min-height: 68px !important; padding: 12px 24px !important; }
.crm-mobile-search-panel input { height: 42px !important; font-size: 13px !important; }

/* Kanban and task views */
.kanban-board { gap: 14px !important; }
.kanban-column { min-width: 300px !important; width: 300px !important; border-radius: 14px !important; }
.kanban-card { border-radius: 12px !important; }
.kanban-card:hover { transform: translateY(-1px) !important; box-shadow: var(--ui-shadow-hover) !important; }

/* Authentication */
.crm-auth-page { padding: 24px !important; background: linear-gradient(145deg, #eef3f9, #f8fafc) !important; }
.crm-auth-page > .pointer-events-none { display: block !important; }
.crm-auth-page > .relative.w-full {
    max-width: 1080px !important;
    min-height: 640px;
    border-radius: 24px !important;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .18) !important;
}
.crm-auth-page > .relative.w-full > .hidden.lg\:flex { width: auto !important; padding: 44px !important; }
.crm-auth-page > .relative.w-full > .hidden.lg\:flex .absolute { display: block !important; }
.crm-auth-page > .relative.w-full > .bg-white { padding: 48px !important; }
.crm-auth-page h2.text-\[32px\] { font-size: 34px !important; }
.crm-auth-page h2.text-\[25px\] { font-size: 27px !important; }
.crm-auth-page label { font-size: 12px !important; }
.crm-auth-page input:not([type="checkbox"]) { height: 48px !important; border-radius: 11px !important; font-size: 14px !important; }
.crm-auth-page .ent-btn-primary { height: 48px !important; font-size: 13px !important; }

/* Dark theme */
html[data-crm-theme="dark"] {
    --ui-bg: #080f1d;
    --ui-surface: #111827;
    --ui-surface-subtle: #172033;
    --ui-surface-muted: #1e293b;
    --ui-border: #29364a;
    --ui-border-strong: #3d4c63;
    --ui-text: #eef2f7;
    --ui-muted: #a5b2c4;
}
html[data-crm-theme="dark"] .crm-topbar { background: rgba(17, 24, 39, .90) !important; }
html[data-crm-theme="dark"] .crm-topbar-search,
html[data-crm-theme="dark"] .crm-page-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
html[data-crm-theme="dark"] .crm-page-content select,
html[data-crm-theme="dark"] .crm-page-content textarea,
html[data-crm-theme="dark"] .pax-field input,
html[data-crm-theme="dark"] .pax-field select,
html[data-crm-theme="dark"] .pax-field textarea { background: #111827 !important; color: #eef2f7 !important; }
html[data-crm-theme="dark"] .ui-page-intro,
html[data-crm-theme="dark"] .ent-hero,
html[data-crm-theme="dark"] .audit-hero,
html[data-crm-theme="dark"] .roles-hero,
html[data-crm-theme="dark"] .pax-settings-hero,
html[data-crm-theme="dark"] .pax-company-hero,
html[data-crm-theme="dark"] .pax-form-hero { background: linear-gradient(135deg, rgba(30, 64, 175, .17), #111827 55%, #121b2b) !important; }
html[data-crm-theme="dark"] .crm-page-content table thead,
html[data-crm-theme="dark"] .crm-page-content table tbody tr:hover,
html[data-crm-theme="dark"] .enterprise-data-row:hover { background: #172033 !important; }
html[data-crm-theme="dark"] .crm-page-content table td { color: #d7dee8 !important; }

/* Responsive system */
@media (max-width: 1365px) {
    :root { --ui-sidebar-width: 236px; }
    .crm-topbar-search { width: min(280px, 25vw) !important; }
    .crm-dashboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 1024px) {
    .crm-topbar-inner { padding-inline: 18px !important; }
    .page-wrapper, .invoice-page-padding { padding: 20px 18px 34px !important; }
    .crm-user-detail { display: none !important; }
}

@media (max-width: 767px) {
    :root { --ui-topbar-height: 64px; --ui-page-gap: 14px; }
    .crm-sidebar { width: min(310px, calc(100vw - 36px)) !important; }
    .crm-sidebar-brandbar { min-height: 64px !important; }
    .sidebar-scroll { padding-top: 10px !important; }
    .sidebar-link { min-height: 46px !important; font-size: 13.5px !important; }
    .crm-topbar-inner { padding-inline: 10px !important; gap: 8px !important; }
    .crm-page-title { max-width: 42vw !important; font-size: 15px !important; }
    .crm-topbar-actions { gap: 5px !important; }
    .crm-icon-button, .crm-mobile-menu-button, .crm-preferences-button, .crm-mobile-search-button { width: 40px !important; height: 40px !important; min-width: 40px !important; }
    .crm-preferences-button { display: none !important; }
    .crm-user-avatar { width: 34px !important; height: 34px !important; }
    .page-wrapper, .invoice-page-padding { padding: 14px 10px 28px !important; }
    .ui-page-intro, .ent-hero,
    .audit-hero, .roles-hero, .pax-settings-hero, .pax-company-hero, .pax-form-hero { padding: 16px !important; border-radius: 14px !important; }
    .crm-dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .ent-stat-card { min-height: 104px; padding: 14px !important; }
    .crm-page-content .p-6 { padding: 16px !important; }
    .crm-page-content .p-5 { padding: 14px !important; }
    .crm-page-content .p-4 { padding: 13px !important; }
    .crm-page-content table td { font-size: 13px !important; }
    .crm-responsive-table tr { padding: 10px 12px !important; border-radius: 12px !important; }
    .crm-responsive-table td { grid-template-columns: minmax(98px, 34%) minmax(0, 1fr) !important; min-height: 38px !important; padding: 8px 0 !important; }
    .crm-responsive-table td::before { font-size: 10px !important; }
    .crm-mobile-search-panel { padding: 10px !important; }
    .crm-auth-page { padding: 12px !important; }
    .crm-auth-page > .relative.w-full { min-height: 0; border-radius: 18px !important; }
    .crm-auth-page > .relative.w-full > .bg-white { padding: 30px 22px !important; }
}

@media (max-width: 480px) {
    .crm-page-title { max-width: 38vw !important; }
    .crm-user-card { display: flex !important; }
    .crm-dashboard-kpis { grid-template-columns: 1fr !important; }
    .crm-page-content .flex.items-center.justify-between { align-items: flex-start !important; }
    .crm-page-content .enterprise-actions { width: 100%; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crm-page-content .enterprise-actions > * { width: 100%; }
    .crm-page-content .enterprise-actions a,
    .crm-page-content .enterprise-actions button { width: 100% !important; justify-content: center !important; }
}

@media (prefers-reduced-motion: reduce) {
    .ent-card-hover:hover, .ent-btn-primary:hover, .kanban-card:hover { transform: none !important; }
}

/* Legacy enterprise modules: raise the readability floor without changing workflows. */
.audit-eyebrow, .roles-eyebrow, .pax-eyebrow,
.pax-settings-hero small, .pax-company-hero small, .pax-form-hero small { font-size: 10.5px !important; }
.audit-stat-label, .pax-company-stat span, .pax-stat span { font-size: 11px !important; }
.audit-table-note, .pax-section-header p, .pax-panel-header p { font-size: 11.5px !important; }
.audit-table th, .roles-table th { padding: 12px 13px !important; font-size: 10.5px !important; }
.audit-table td, .roles-table td { padding: 13px !important; font-size: 12.5px !important; }
.roles-note, .pax-alert, .audit-flash, .roles-flash { padding: 12px 14px !important; font-size: 12px !important; }
.pax-settings-nav a { min-height: 38px !important; padding: 0 13px !important; font-size: 11.5px !important; }
.pax-field > span, .pax-logo-field > span, .pax-toggle > span { font-size: 11px !important; }
.pax-card-main strong, .pax-company-title strong, .pax-charge-title strong { font-size: 13px !important; }
.pax-card-main span, .pax-company-title span, .pax-charge-title span { font-size: 11.5px !important; }
.lead-pill { min-height: 24px !important; padding-inline: 9px !important; font-size: 10.5px !important; }
.audit-btn, .roles-btn, .pax-btn { min-height: 40px !important; border-radius: 10px !important; font-size: 12px !important; }

html[data-crm-sidebar="collapsed"] .crm-sidebar-account {
    flex-direction: column;
    gap: 6px;
}
html[data-crm-sidebar="collapsed"] .crm-sidebar-account-copy { display: none !important; }
html[data-crm-sidebar="collapsed"] .crm-sidebar-signout { display: grid !important; }

@media (max-width: 480px) {
    .crm-user-card { display: none !important; }
}
@media (max-width: 380px) {
    .crm-preferences-button { display: none !important; }
    .crm-page-title { max-width: 34vw !important; }
}
