
/* Phase 45-54: admin visibility, dashboard, dropdown, KB, PDF preview and customer rebrand polish */
html.admin-ui-active, body.admin-shell-body { background:#08111f !important; color:#e5edf8 !important; }
html.admin-ui-active .page-content, body.admin-shell-body .page-content { background:#0b1220 !important; color:#e5edf8 !important; }
html.admin-ui-active .workspace-hero,
html.admin-ui-active .surface,
html.admin-ui-active .surface-card,
html.admin-ui-active .metric-tile,
html.admin-ui-active .admin-stat-card,
html.admin-ui-active .accordion-item,
html.admin-ui-active .dropdown-menu,
html.admin-ui-active .modal-content { background:#ffffff !important; color:#0f172a !important; border:1px solid rgba(15,23,42,.12) !important; box-shadow:0 16px 40px rgba(2,6,23,.10); }
html.admin-ui-active .workspace-hero { background:linear-gradient(135deg,#ffffff 0%,#eef4ff 55%,#f6f1ff 100%) !important; border-radius:28px; }
html.admin-ui-active .workspace-hero__title,
html.admin-ui-active .section-title,
html.admin-ui-active .metric-value,
html.admin-ui-active .surface h1,
html.admin-ui-active .surface h2,
html.admin-ui-active .surface h3,
html.admin-ui-active .accordion-button,
html.admin-ui-active label,
html.admin-ui-active th,
html.admin-ui-active td,
html.admin-ui-active p,
html.admin-ui-active small,
html.admin-ui-active strong { color:#0f172a !important; }
html.admin-ui-active .workspace-hero__copy,
html.admin-ui-active .section-copy,
html.admin-ui-active .metric-note,
html.admin-ui-active .text-muted,
html.admin-ui-active .surface-muted p,
html.admin-ui-active .surface-muted small { color:#475569 !important; }
html.admin-ui-active .workspace-hero__eyebrow,
html.admin-ui-active .section-kicker,
html.admin-ui-active .metric-kicker { color:#5b21b6 !important; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
html.admin-ui-active .table { color:#0f172a !important; background:#fff !important; }
html.admin-ui-active .table thead th { background:#f1f5f9 !important; color:#172033 !important; border-bottom:1px solid #dbe4ef !important; }
html.admin-ui-active .table tbody td { background:#fff !important; color:#0f172a !important; border-color:#e5e7eb !important; }
html.admin-ui-active .form-control,
html.admin-ui-active .form-select,
html.admin-ui-active .select2-container--default .select2-selection--single,
html.admin-ui-active .select2-container--default .select2-selection--multiple { background:#fff !important; color:#0f172a !important; border:1px solid #cbd5e1 !important; min-height:42px; }
html.admin-ui-active .form-control::placeholder { color:#64748b !important; opacity:1; }
html.admin-ui-active .select2-container--default .select2-selection--single .select2-selection__rendered { color:#0f172a !important; line-height:40px; }
html.admin-ui-active .select2-dropdown { background:#fff !important; color:#0f172a !important; border-color:#cbd5e1 !important; z-index:99999 !important; }
html.admin-ui-active .select2-results__option { color:#0f172a !important; }
html.admin-ui-active .select2-results__option--highlighted { background:#6d28d9 !important; color:#fff !important; }
html.admin-ui-active .tox-tinymce, html.admin-ui-active .tox .tox-edit-area__iframe { background:#fff !important; border:1px solid #cbd5e1 !important; }
html.admin-ui-active textarea.rich-editor { background:#fff !important; color:#0f172a !important; }
html.admin-ui-active .accordion-button { background:#f8fafc !important; color:#0f172a !important; }
html.admin-ui-active .accordion-body { background:#fff !important; color:#0f172a !important; }
html.admin-ui-active .dropdown { position:relative; }
html.admin-ui-active .dropdown-menu { z-index:1085 !important; }
html.admin-ui-active .table-shell, html.admin-ui-active .table-responsive { overflow-x:auto; overflow-y:visible; position:relative; }
html.admin-ui-active .admin-inline-form { display:grid; grid-template-columns:minmax(120px,180px) minmax(180px,1fr) auto; gap:.5rem; align-items:center; min-width:460px; }
html.admin-ui-active .manage-action-cell { position:relative; overflow:visible; }
html.admin-ui-active .btn-group .dropdown-menu, html.admin-ui-active .manage-dropdown { position:absolute; right:0; left:auto; min-width:220px; z-index:1095 !important; }
html.admin-ui-active .dashboard-command-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; align-items:stretch; }
html.admin-ui-active .dashboard-card { min-height:158px; border-radius:24px; padding:1.15rem; background:#fff; border:1px solid #e2e8f0; display:flex; flex-direction:column; justify-content:space-between; box-shadow:0 12px 28px rgba(15,23,42,.08); }
html.admin-ui-active .dashboard-card__top { display:flex; justify-content:space-between; gap:.85rem; align-items:flex-start; }
html.admin-ui-active .dashboard-card__icon { width:42px; height:42px; display:grid; place-items:center; border-radius:14px; background:#ede9fe; color:#6d28d9; flex:0 0 auto; }
html.admin-ui-active .dashboard-card__value { font-size:clamp(1.45rem,2.4vw,2.4rem); line-height:1; font-weight:900; color:#0f172a; letter-spacing:-.04em; }
html.admin-ui-active .dashboard-card__label { color:#475569; font-weight:700; margin:0; overflow-wrap:anywhere; }
html.admin-ui-active .dashboard-card__trend { font-size:.78rem; font-weight:800; color:#047857; background:#d1fae5; border-radius:999px; padding:.22rem .55rem; width:max-content; }
html.admin-ui-active .kb-admin-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr); gap:1rem; align-items:start; }
html.admin-ui-active .kb-public-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:1rem; }
html.admin-ui-active .status-pill--paid { background:#dcfce7 !important; color:#166534 !important; }
html.admin-ui-active .status-pill--unpaid { background:#fef3c7 !important; color:#92400e !important; }
html.admin-ui-active .status-pill--danger { background:#fee2e2 !important; color:#991b1b !important; }
html.admin-ui-active .status-pill--neutral { background:#e5e7eb !important; color:#374151 !important; }
@media(max-width:1200px){ html.admin-ui-active .dashboard-command-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:768px){ html.admin-ui-active .dashboard-command-grid{grid-template-columns:1fr;} html.admin-ui-active .kb-admin-grid{grid-template-columns:1fr;} html.admin-ui-active .admin-inline-form{grid-template-columns:1fr; min-width:0;} html.admin-ui-active .workspace-hero{padding:1.25rem;} }
html.admin-ui-active .status-pill--success { background:#dcfce7 !important; color:#166534 !important; }
