
/* Phase 26 admin standardisation */
.admin-standard-grid,.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;align-items:stretch}.metric-tile,.admin-stat-card{min-height:142px;height:100%;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;word-break:break-word;overflow-wrap:anywhere}.metric-kicker,.admin-stat-card small{line-height:1.35;max-width:100%;white-space:normal}.metric-value,.admin-stat-card strong{font-size:clamp(1.35rem,2.4vw,2.35rem);line-height:1.1;overflow-wrap:anywhere}.section-grid{align-items:start}.surface,.surface-card{overflow:hidden}.table-shell{overflow:auto}.admin-module-toolbar{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center;justify-content:space-between}.admin-empty-state{padding:2rem;border:1px dashed rgba(148,163,184,.45);border-radius:18px;text-align:center}.standard-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.standard-form-grid .full{grid-column:1/-1}.tinymce-ready textarea,.rich-editor{min-height:260px}.admin-callout{border:1px solid rgba(59,130,246,.24);background:rgba(59,130,246,.08);border-radius:18px;padding:1rem}.receipt-sheet{background:#fff;color:#111827;border-radius:18px;padding:2rem;box-shadow:0 20px 60px rgba(15,23,42,.12)}.receipt-head{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid #e5e7eb;padding-bottom:1rem;margin-bottom:1rem}.receipt-total{font-size:2rem;font-weight:800}.notification-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-bottom:1rem}.notification-strip .notice-card{border-radius:18px;padding:1rem;border:1px solid rgba(245,158,11,.25);background:rgba(245,158,11,.08)}@media(max-width:768px){.standard-form-grid{grid-template-columns:1fr}.receipt-head{flex-direction:column}.workspace-hero__actions{width:100%}.workspace-hero__actions .btn{width:100%;justify-content:center}.metric-tile,.admin-stat-card{min-height:128px}}

/* Phase 27 polish: keep admin content readable on compact screens */
.metric-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}.metric-tile>*{min-width:0}.metric-tile small{display:block}.section-copy,.workspace-hero__copy{overflow-wrap:anywhere}.accordion-button{gap:.75rem}.template-accordion-title{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.template-accordion-title strong,.template-accordion-title small{white-space:normal;overflow-wrap:anywhere}.table-shell table td,.table-shell table th{vertical-align:middle}.admin-callout ul{padding-left:1.2rem;margin-bottom:0}.admin-callout li+li{margin-top:.4rem}.admin-standard-actions{display:flex;gap:.5rem;flex-wrap:wrap}.form-stack>*+*{margin-top:.85rem}@media(max-width:576px){.metric-grid{grid-template-columns:1fr}.receipt-sheet{padding:1.25rem;border-radius:14px}.receipt-total{font-size:1.5rem}.admin-standard-actions .btn{width:100%;justify-content:center}.table-shell{margin-left:-.25rem;margin-right:-.25rem}}

/* Phase 28 admin continuation */
.admin-inline-form{display:grid;grid-template-columns:minmax(130px,160px) minmax(180px,1fr) auto;gap:.5rem;align-items:center;min-width:520px}.analytics-layout{grid-template-columns:minmax(0,2fr) minmax(280px,.8fr)}.analytics-chart{min-height:280px;margin-top:1rem}.admin-signal-list{display:grid;gap:.75rem}.admin-signal-list>div{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;border:1px solid rgba(148,163,184,.24);border-radius:16px;background:rgba(148,163,184,.08);overflow:hidden}.admin-signal-list span,.admin-signal-list strong{overflow-wrap:anywhere;min-width:0}.admin-signal-list strong{font-size:1.35rem}.admin-stat-card{contain:content}.metric-tile .metric-value{max-width:100%}@media(max-width:992px){.analytics-layout{grid-template-columns:1fr}.admin-inline-form{grid-template-columns:1fr;min-width:260px}.admin-inline-form .btn{width:100%}}

/* Phase 29 continuation: resilient cards, editors and receipts */
.admin-ui-active .metric-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));align-items:stretch}.admin-ui-active .metric-tile,.admin-ui-active .admin-stat-card{height:100%;min-height:150px;display:flex;flex-direction:column;gap:.75rem;justify-content:space-between;border-radius:22px}.admin-ui-active .metric-tile p,.admin-ui-active .metric-tile h2,.admin-ui-active .metric-tile small,.admin-ui-active .admin-stat-card p,.admin-ui-active .admin-stat-card h2,.admin-ui-active .admin-stat-card small{max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:normal;hyphens:auto}.admin-ui-active .metric-value{font-size:clamp(1.25rem,2.2vw,2.15rem);line-height:1.08;letter-spacing:-.03em}.admin-ui-active .surface,.admin-ui-active .surface-card{min-width:0}.admin-ui-active .table-shell{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}.admin-ui-active .tox-tinymce{border-radius:16px!important;overflow:hidden;min-height:260px}.admin-ui-active textarea.rich-editor{display:block;min-height:260px;resize:vertical}.admin-ui-active .mce-content-body,.admin-ui-active .tox .tox-edit-area__iframe{background:#fff}.admin-ui-active .admin-health-checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem}.admin-ui-active .admin-health-checklist article{border:1px solid rgba(148,163,184,.25);border-radius:18px;padding:1rem;background:rgba(148,163,184,.08);min-height:120px;display:flex;flex-direction:column;gap:.5rem}.admin-ui-active .admin-health-checklist strong,.admin-ui-active .admin-health-checklist span{overflow-wrap:anywhere}.receipt-sheet{max-width:920px;margin-inline:auto}.receipt-sheet table{width:100%;border-collapse:collapse}.receipt-sheet th,.receipt-sheet td{padding:.85rem;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top}.receipt-sheet .receipt-actions{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}@media(max-width:768px){.admin-ui-active .metric-tile,.admin-ui-active .admin-stat-card{min-height:132px}.admin-ui-active .workspace-hero{padding:1.25rem}.admin-ui-active .tox-tinymce, .admin-ui-active textarea.rich-editor{min-height:220px}.receipt-sheet{padding:1rem}.receipt-sheet .receipt-actions{justify-content:stretch}.receipt-sheet .receipt-actions .btn{width:100%}}@media print{.shell-nav,.admin-sidebar,.admin-mobile-bar,.footer-modern,.receipt-actions,.btn{display:none!important}.receipt-sheet{box-shadow:none;border:0;border-radius:0;padding:0;color:#111;background:#fff}.main-container,main{background:#fff!important}.receipt-sheet th,.receipt-sheet td{font-size:12px}}

/* Phase 30: readable selects, searchable geo fields, resilient navbar and richer receipts */
.form-select,
select.form-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
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-color: #ffffff !important;
    color: #101828 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 2px rgba(16,24,40,.04) !important;
}
.form-select option,
select option {
    color: #101828 !important;
    background: #ffffff !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered,
html.admin-ui-active .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #101828 !important;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.select2-dropdown,
.select2-container--default .select2-results__option,
.select2-container--default .select2-search--dropdown .select2-search__field {
    background: #ffffff !important;
    color: #101828 !important;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #673de6 !important;
    color: #ffffff !important;
}
.select2-container--default .select2-results__option--selected {
    background: #eef2ff !important;
    color: #101828 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #475467 transparent transparent transparent !important;
}
.shell-nav,
.shell-nav .container,
.shell-nav__inner,
.shell-nav .navbar-collapse,
.shell-nav__menu,
.shell-nav__actions {
    min-width: 0;
}
.shell-nav__inner {
    gap: .75rem;
    flex-wrap: nowrap;
}
.shell-brand {
    min-width: 0;
    max-width: min(52vw, 320px);
}
.shell-brand > span:last-child {
    min-width: 0;
}
.shell-brand strong,
.shell-brand small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shell-nav .navbar-collapse {
    flex-wrap: wrap;
}
.shell-nav__menu,
.shell-nav__actions {
    flex-wrap: wrap;
    row-gap: .45rem;
}
.shell-nav .shell-link,
.shell-nav .btn,
.shell-user,
.theme-toggle {
    white-space: nowrap;
}
.receipt-sheet {
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
}
.receipt-head {
    background: linear-gradient(135deg,#111827,#312e81);
    color: #ffffff;
    margin: -2rem -2rem 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
}
.receipt-head p,
.receipt-head small { color: rgba(255,255,255,.82) !important; }
.receipt-total { color: #111827; }
.receipt-sheet th {
    background: #111827;
    color: #ffffff;
    border-bottom: 0;
}
.receipt-sheet tfoot td,
.receipt-sheet .receipt-grand-total {
    background: #eef2ff;
    font-weight: 900;
}
@media (max-width: 991.98px) {
    .shell-nav__inner { align-items: center; }
    .shell-brand { max-width: calc(100vw - 96px); }
    .shell-nav .navbar-collapse {
        width: 100%;
        max-height: calc(100vh - 86px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-top: .75rem;
    }
    .shell-nav__menu,
    .shell-nav__actions {
        width: 100%;
        align-items: stretch !important;
    }
    .shell-nav .nav-item,
    .shell-nav .shell-link,
    .shell-nav__actions .btn,
    .shell-user,
    .theme-toggle {
        width: 100%;
        justify-content: center;
    }
    body.admin-shell-body .shell-nav__actions {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: .5rem;
        align-items: center !important;
        justify-content: flex-end;
        width: auto;
        margin-left: auto !important;
    }
    body.admin-shell-body .shell-nav__actions .nav-item,
    body.admin-shell-body .theme-toggle,
    body.admin-shell-body .shell-user {
        width: auto;
    }
    body.admin-shell-body .shell-user { max-width: 48vw; }
}
@media (max-width: 575.98px) {
    .shell-nav .container { padding-left: .75rem; padding-right: .75rem; }
    .shell-brand__mark { width: 38px; height: 38px; flex: 0 0 38px; }
    .shell-brand strong { max-width: 46vw; }
    body.admin-shell-body .theme-toggle [data-theme-label],
    body.admin-shell-body .shell-user__meta { display: none !important; }
    body.admin-shell-body .shell-user { max-width: 42vw; padding-inline: .65rem; }
    .receipt-head { margin: -1rem -1rem 1rem; padding: 1.25rem; }
}

/* Phase 34-42 production readiness polish */
.metric-grid--dense{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));align-items:stretch}.metric-tile--equal{min-height:150px;display:flex;flex-direction:column;justify-content:space-between}.metric-tile,.card-stat,.card-standard{overflow:hidden;word-break:break-word;overflow-wrap:anywhere}.badge-soft{display:inline-flex;align-items:center;max-width:100%;border-radius:999px;padding:.35rem .65rem;background:#eef2ff;color:#1e293b;font-weight:700;font-size:.78rem;white-space:normal}.table-shell,.table-responsive{max-width:100%;overflow-x:auto}.admin-topnav,.top-navbar,.navbar{min-width:0;max-width:100%;flex-wrap:nowrap}.admin-topnav *,.top-navbar *,.navbar *{min-width:0}.admin-topnav .nav-link,.top-navbar .nav-link,.navbar .nav-link{white-space:nowrap}.form-select,.select2-container--default .select2-selection--single,.select2-container--bootstrap5 .select2-selection{background:#fff!important;color:#0f172a!important;border-color:#cbd5e1!important}.form-select option{color:#0f172a;background:#fff}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#0f172a!important}.registrar-timeline{display:grid;gap:.8rem}.registrar-timeline__item{border:1px solid #e2e8f0;border-radius:16px;padding:1rem;background:#fff}.standard-page-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}.invoice-watermark{position:absolute;inset:auto 1rem 1rem auto;opacity:.08;font-size:4rem;font-weight:900;transform:rotate(-14deg);pointer-events:none}@media(max-width:768px){.workspace-hero{gap:1rem}.workspace-hero__actions{width:100%;display:grid;grid-template-columns:1fr}.navbar,.top-navbar,.admin-topnav{overflow-x:auto}.section-grid{grid-template-columns:1fr!important}.metric-tile--equal{min-height:130px}}

/* Phase 43: polished client dashboard */
.client-shell-body .customer-dashboard-page{align-items:start}.client-dashboard-hero-v2{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:1.5rem;align-items:stretch;margin-bottom:1.25rem;padding:clamp(1.35rem,3vw,2.4rem);border-radius:30px;background:radial-gradient(circle at top right,rgba(96,165,250,.55),transparent 34%),linear-gradient(135deg,#0f172a 0%,#1d4ed8 54%,#0ea5e9 100%);color:#fff;box-shadow:0 26px 70px rgba(15,23,42,.22)}.client-dashboard-hero-v2:before{content:"";position:absolute;inset:-40% auto auto -10%;width:320px;height:320px;border-radius:999px;background:rgba(255,255,255,.12);filter:blur(2px)}.client-dashboard-hero-v2__content,.client-dashboard-hero-v2__panel{position:relative;z-index:1}.dashboard-pill{display:inline-flex;align-items:center;gap:.5rem;padding:.42rem .78rem;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.client-dashboard-hero-v2 h1{margin:.9rem 0 .75rem;font-size:clamp(2rem,4vw,4rem);line-height:1;letter-spacing:-.055em;max-width:840px}.client-dashboard-hero-v2 p{margin:0;max-width:680px;color:rgba(255,255,255,.82);font-size:clamp(1rem,1.4vw,1.15rem);line-height:1.7}.client-dashboard-hero-v2__actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.25rem}.client-dashboard-hero-v2__panel{display:grid;gap:.8rem}.client-dashboard-hero-v2__panel>div{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.14);border-radius:20px;backdrop-filter:blur(16px)}.client-dashboard-hero-v2__panel span{color:rgba(255,255,255,.78);font-weight:700}.client-dashboard-hero-v2__panel strong{font-size:clamp(1.6rem,3vw,2.4rem);letter-spacing:-.04em}.dashboard-alert-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1rem;margin-bottom:1.25rem}.dashboard-alert-card{display:flex;align-items:center;gap:1rem;padding:1rem;border-radius:22px;border:1px solid #e2e8f0;background:#fff;box-shadow:0 16px 40px rgba(15,23,42,.08);min-width:0}.dashboard-alert-card i{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;flex:0 0 46px}.dashboard-alert-card div{min-width:0;display:flex;flex-direction:column}.dashboard-alert-card strong,.dashboard-alert-card span{overflow-wrap:anywhere}.dashboard-alert-card span{color:#64748b;font-size:.9rem}.dashboard-alert-card a{margin-left:auto;font-weight:800;text-decoration:none;white-space:nowrap}.dashboard-alert-card--warning i{background:#fff7ed;color:#ea580c}.dashboard-alert-card--warning{border-color:#fed7aa}.dashboard-alert-card--info i{background:#eff6ff;color:#2563eb}.dashboard-alert-card--info{border-color:#bfdbfe}.dashboard-kpis--premium{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));align-items:stretch}.kpi-card--premium{position:relative;min-height:168px;padding:1.2rem;border:1px solid rgba(148,163,184,.24);border-radius:24px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 18px 50px rgba(15,23,42,.08);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.kpi-card--premium span{color:#64748b;font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:.75rem}.kpi-card--premium strong{font-size:clamp(2rem,4vw,3.1rem);line-height:1;letter-spacing:-.06em;color:#0f172a}.kpi-card--premium small{color:#64748b;max-width:82%;line-height:1.45}.kpi-card--premium>i{position:absolute;right:1rem;bottom:.9rem;font-size:2.5rem;color:rgba(37,99,235,.12)}.dashboard-command-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:1rem;align-items:start}.dashboard-lower-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.dashboard-panel{border-radius:24px;border:1px solid rgba(148,163,184,.24);box-shadow:0 18px 48px rgba(15,23,42,.07);min-width:0}.dashboard-panel--large{min-height:100%}.dashboard-side-stack{display:grid;gap:1rem}.dashboard-table-wrap{border-radius:18px;border:1px solid rgba(226,232,240,.8)}.dashboard-table{margin:0}.dashboard-table thead th{background:#f8fafc;color:#475569;text-transform:uppercase;font-size:.74rem;letter-spacing:.08em;border-bottom:1px solid #e2e8f0}.dashboard-table tbody td{vertical-align:middle}.dashboard-table td strong{display:block;color:#0f172a}.dashboard-table td small{display:block;color:#64748b;line-height:1.45;max-width:260px;overflow-wrap:anywhere}.dashboard-stack-list .stack-item{border:1px solid rgba(226,232,240,.9);border-radius:18px;background:#fff;padding:1rem}.dashboard-stack-list .stack-item+ .stack-item{margin-top:.7rem}.dashboard-stack-list strong,.dashboard-stack-list small{display:block;overflow-wrap:anywhere}.dashboard-stack-list small{color:#64748b;margin-top:.25rem}.dashboard-empty{min-height:150px;display:grid;place-items:center;text-align:center;color:#64748b;border:1px dashed #cbd5e1;border-radius:18px;padding:1.2rem;background:#f8fafc}.dashboard-empty i{font-size:2rem;color:#2563eb;margin-bottom:.5rem}.billing-health-card{padding:1rem;border-radius:20px;background:linear-gradient(135deg,#f8fafc,#eef2ff);border:1px solid #e2e8f0}.billing-health-card span{display:block;color:#64748b;font-weight:800;text-transform:uppercase;font-size:.75rem;letter-spacing:.08em}.billing-health-card strong{display:block;margin:.35rem 0;font-size:clamp(1.8rem,3vw,2.6rem);line-height:1;letter-spacing:-.05em;color:#0f172a}.billing-health-card small{color:#64748b;line-height:1.5}.customer-dashboard-page .surface-head{gap:1rem}.customer-dashboard-page .surface-head .btn{white-space:nowrap}@media(max-width:1199px){.client-dashboard-hero-v2,.dashboard-command-grid{grid-template-columns:1fr}.client-dashboard-hero-v2__panel{grid-template-columns:repeat(3,1fr)}}@media(max-width:768px){.client-dashboard-hero-v2{border-radius:24px;padding:1.25rem}.client-dashboard-hero-v2__panel{grid-template-columns:1fr}.client-dashboard-hero-v2__actions{display:grid;grid-template-columns:1fr}.client-dashboard-hero-v2__actions .btn{width:100%;justify-content:center}.dashboard-lower-grid{grid-template-columns:1fr}.dashboard-alert-card{align-items:flex-start}.dashboard-alert-card a{margin-left:0}.dashboard-alert-card{flex-wrap:wrap}.customer-dashboard-page .surface-head{align-items:flex-start;flex-direction:column}.customer-dashboard-page .surface-head .btn{width:100%;justify-content:center}.kpi-card--premium{min-height:145px}.kpi-card--premium small{max-width:100%}}@media(max-width:576px){.client-dashboard-hero-v2 h1{font-size:2.15rem}.dashboard-table th:nth-child(2),.dashboard-table td:nth-child(2){display:none}.dashboard-table td,.dashboard-table th{white-space:normal}.kpi-card--premium>i{font-size:2rem}.dashboard-alert-card i{width:40px;height:40px;flex-basis:40px}}


/* Phase 43 visibility and admin polish */
html.admin-ui-active body.admin-shell-body{background:#08111f!important;color:#142033!important;}
html.admin-ui-active .main-container{background:linear-gradient(135deg,#08111f 0%,#0f172a 45%,#101827 100%)!important;min-height:100vh;}
html.admin-ui-active .shell-nav{background:#0f172a!important;border-bottom:1px solid rgba(148,163,184,.18)!important;}
html.admin-ui-active .workspace-hero{background:linear-gradient(135deg,#172554 0%,#312e81 55%,#4c1d95 100%)!important;color:#fff!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 24px 70px rgba(2,6,23,.28)!important;}
html.admin-ui-active .workspace-hero *{color:inherit!important;}
html.admin-ui-active .workspace-hero__copy,html.admin-ui-active .workspace-hero__eyebrow{color:#dbeafe!important;}
html.admin-ui-active .surface,html.admin-ui-active .accordion-item,html.admin-ui-active .card,html.admin-ui-active .modal-content{background:#fff!important;color:#142033!important;border:1px solid #dbe3ef!important;box-shadow:0 20px 50px rgba(15,23,42,.10)!important;}
html.admin-ui-active .surface-muted{background:#f8fafc!important;}
html.admin-ui-active .surface *,html.admin-ui-active .accordion-item *,html.admin-ui-active .card *{color:inherit;}
html.admin-ui-active .section-title,html.admin-ui-active h1,html.admin-ui-active h2,html.admin-ui-active h3,html.admin-ui-active h4,html.admin-ui-active strong{color:#0f172a!important;}
html.admin-ui-active .section-copy,html.admin-ui-active .text-muted,html.admin-ui-active small,html.admin-ui-active .metric-note{color:#475569!important;}
html.admin-ui-active .metric-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:1rem!important;align-items:stretch!important;}
html.admin-ui-active .metric-tile,html.admin-ui-active .admin-stat-card{min-height:138px!important;height:100%!important;background:#fff!important;color:#0f172a!important;border:1px solid #dbe3ef!important;border-radius:22px!important;padding:1rem!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;overflow:hidden!important;}
html.admin-ui-active .metric-kicker{color:#64748b!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.08em!important;font-size:.75rem!important;}
html.admin-ui-active .metric-value{color:#0f172a!important;font-size:clamp(1.7rem,3vw,2.6rem)!important;line-height:1!important;overflow-wrap:anywhere!important;}
html.admin-ui-active .table-shell,html.admin-ui-active .table-responsive{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:18px!important;overflow-x:auto!important;overflow-y:visible!important;position:relative!important;}
html.admin-ui-active table.table{color:#1e293b!important;background:#fff!important;min-width:760px;}
html.admin-ui-active table.table thead th{background:#f1f5f9!important;color:#334155!important;border-bottom:1px solid #cbd5e1!important;font-weight:800!important;white-space:nowrap!important;}
html.admin-ui-active table.table tbody td{color:#1e293b!important;background:#fff!important;border-color:#e2e8f0!important;vertical-align:middle!important;}
html.admin-ui-active .form-control,html.admin-ui-active .form-select,html.admin-ui-active textarea,html.admin-ui-active input,html.admin-ui-active select{background:#fff!important;color:#0f172a!important;border:1px solid #94a3b8!important;}
html.admin-ui-active .form-control::placeholder{color:#64748b!important;opacity:1!important;}
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 #94a3b8!important;min-height:42px!important;}
html.admin-ui-active .select2-container--default .select2-selection--single .select2-selection__rendered{color:#0f172a!important;line-height:40px!important;}
html.admin-ui-active .select2-dropdown{background:#fff!important;color:#0f172a!important;border-color:#94a3b8!important;}
html.admin-ui-active .select2-results__option{color:#0f172a!important;}
html.admin-ui-active .accordion-button{background:#f8fafc!important;color:#0f172a!important;gap:1rem!important;}
html.admin-ui-active .accordion-button:not(.collapsed){background:#eaf2ff!important;color:#0f172a!important;}
html.admin-ui-active .accordion-button .badge{margin-left:auto!important;}
html.admin-ui-active .tox-tinymce{border:1px solid #94a3b8!important;border-radius:14px!important;min-height:260px!important;display:block!important;}
html.admin-ui-active .dropdown-menu{z-index:3000!important;box-shadow:0 18px 44px rgba(15,23,42,.2)!important;}
html.admin-ui-active .dataTables_wrapper,html.admin-ui-active .table-shell{overflow:visible!important;}
html.admin-ui-active td .dropdown{position:static!important;}
html.admin-ui-active .dropdown-menu.show{position:absolute!important;}
.admin-inline-actions{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.admin-inline-actions .btn,.admin-inline-actions select{white-space:nowrap}.status-pill--neutral{background:#e2e8f0!important;color:#334155!important}.status-pill--success{background:#dcfce7!important;color:#166534!important}.status-pill--warning{background:#fef3c7!important;color:#92400e!important}.status-pill--danger{background:#fee2e2!important;color:#991b1b!important}
@media(max-width:991px){html.admin-ui-active .shell-nav__inner{gap:.75rem!important;}html.admin-ui-active .navbar-collapse{background:#0f172a!important;border:1px solid rgba(148,163,184,.2)!important;border-radius:18px!important;margin-top:.75rem!important;padding:.75rem!important;}html.admin-ui-active table.table{min-width:680px}.admin-inline-actions{display:grid;grid-template-columns:1fr}.admin-inline-actions .btn{width:100%}}


/* Phase 44 admin visibility, dashboard readability and dropdown layering */
html.admin-ui-active body.admin-shell-body,
html.admin-ui-active .page-content,
html.admin-ui-active .page-frame{background:#08111f!important;color:#0f172a!important;}
html.admin-ui-active .page-content{min-height:100vh;}
html.admin-ui-active .surface,
html.admin-ui-active .accordion,
html.admin-ui-active .accordion-item,
html.admin-ui-active .accordion-body,
html.admin-ui-active .table-shell,
html.admin-ui-active .admin-readable-panel{background:#ffffff!important;color:#0f172a!important;}
html.admin-ui-active .accordion-button,
html.admin-ui-active .accordion-button strong,
html.admin-ui-active .accordion-button small,
html.admin-ui-active .template-accordion-title,
html.admin-ui-active .template-accordion-title *{color:#0f172a!important;opacity:1!important;}
html.admin-ui-active .accordion-button{border-bottom:1px solid #dbe3ef!important;min-height:64px!important;}
html.admin-ui-active .accordion-button.collapsed{background:#ffffff!important;}
html.admin-ui-active .accordion-button:not(.collapsed){background:#eaf2ff!important;box-shadow:none!important;}
html.admin-ui-active .accordion-body label,
html.admin-ui-active .form-label,
html.admin-ui-active label{color:#0f172a!important;font-weight:700;}
html.admin-ui-active .section-copy,
html.admin-ui-active .surface p,
html.admin-ui-active .surface small,
html.admin-ui-active .accordion-body p,
html.admin-ui-active .accordion-body small{color:#475569!important;}
html.admin-ui-active code{background:#eef2ff!important;color:#3730a3!important;border-radius:8px;padding:.15rem .35rem;}
html.admin-ui-active .badge.bg-success{background:#dcfce7!important;color:#166534!important;border:1px solid #86efac!important;}
html.admin-ui-active .badge.bg-secondary{background:#e2e8f0!important;color:#334155!important;border:1px solid #cbd5e1!important;}
html.admin-ui-active .workspace-hero__actions .btn{white-space:normal;min-height:42px;display:inline-flex;align-items:center;justify-content:center;}
html.admin-ui-active .btn-surface{background:#fff!important;color:#0f172a!important;border:1px solid #cbd5e1!important;}
html.admin-ui-active .dropdown{position:relative!important;}
html.admin-ui-active .table td .dropdown{position:static!important;}
html.admin-ui-active .table-responsive,.table-shell{overflow-x:auto;overflow-y:visible;}
html.admin-ui-active .dropdown-menu{z-index:5000!important;max-width:min(92vw,360px);}
html.admin-ui-active .dataTables_wrapper{overflow:visible!important;}
html.admin-ui-active .admin-dashboard-polish .surface{border-radius:24px!important;}
.support-pin-admin-card{border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a;border-radius:14px;padding:.75rem 1rem;line-height:1.45;}
.kb-admin-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:1rem;align-items:start}.kb-article-preview{max-height:220px;overflow:auto;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;padding:1rem}.kb-status-row{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.admin-pagination{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.admin-pagination .btn{min-width:42px}.admin-filter-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;margin-bottom:1rem}.admin-filter-row .btn{height:42px}.status-pill{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;padding:.35rem .65rem;font-weight:800;font-size:.75rem;line-height:1;white-space:nowrap}
@media(max-width:991px){.kb-admin-grid{grid-template-columns:1fr}html.admin-ui-active .workspace-hero__actions{display:grid;grid-template-columns:1fr;width:100%;}html.admin-ui-active .workspace-hero__actions .btn{width:100%;}.admin-filter-row{grid-template-columns:1fr}.admin-pagination{justify-content:flex-start}.admin-sidebar{max-width:min(90vw,360px)}}
@media(max-width:576px){html.admin-ui-active .metric-grid{grid-template-columns:1fr!important}.support-chat-shell{grid-template-columns:1fr!important}.support-chat-shell__sidebar{max-height:none!important}.table-shell table.table{min-width:620px!important}}
