/* Phase 101: extend final visibility/responsiveness across all admin modules */
html.admin-ui-active{
  --admin-readable-bg:#07111f;
  --admin-readable-panel:#102038;
  --admin-readable-panel-2:#0d1a2e;
  --admin-readable-ink:#f8fbff;
  --admin-readable-soft:#dbe7f5;
  --admin-readable-muted:#a6b8cf;
  --admin-readable-border:rgba(203,213,225,.20);
  --admin-readable-border-strong:rgba(203,213,225,.32);
  --admin-readable-blue:#60a5fa;
  --admin-readable-green:#34d399;
  --admin-readable-amber:#fbbf24;
  --admin-readable-red:#fb7185;
}
html.admin-ui-active body.admin-shell-body,
html.admin-ui-active .main-container,
html.admin-ui-active .admin-app-v91,
html.admin-ui-active .admin-app-v91__workspace{
  background:linear-gradient(180deg,#07111f 0%,#0b1527 100%)!important;
  color:var(--admin-readable-ink)!important;
}
html.admin-ui-active .admin-content-v91,
html.admin-ui-active .admin-content-v91 *,
html.admin-ui-active .admin-layout-shell,
html.admin-ui-active .admin-layout-shell *{
  text-shadow:none!important;
  box-sizing:border-box;
}
html.admin-ui-active .admin-content-v91 :where(
  .card,.card-body,.surface,.surface-card,.surface-muted,.panel,.panel-body,.admin-panel,.admin-panel-v95,
  .admin-readable-panel,.module-card,.module-panel,.settings-card,.content-card,.form-card,.dashboard-card,
  .admin-stat-card,.stat-card,.metric-card,.metric-card-v95,.metric-tile,.activity-card,.kpi-card,.ops-card-v67,.panel-v67,
  .accordion,.accordion-item,.accordion-body,.list-group,.list-group-item,.modal-content,.dropdown-menu,
  .table-shell,.table-responsive,.dataTables_wrapper,.dataTables_scroll,.dataTables_scrollBody,
  .kb-article-preview,.support-chat-shell,.support-chat-shell__sidebar,.support-chat-shell__main,
  .support-pin-admin-card,.pin-verify-panel,.empty-state,.admin-empty-state,.alert
){
  background:linear-gradient(180deg,var(--admin-readable-panel) 0%,var(--admin-readable-panel-2) 100%)!important;
  border-color:var(--admin-readable-border)!important;
  color:var(--admin-readable-ink)!important;
}
html.admin-ui-active .admin-content-v91 :where(
  h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,
  strong,b,label,legend,th,dt,
  .card-title,.modal-title,.accordion-button,.section-title,.module-title,.panel-title,.surface-title,
  .admin-title,.admin-heading,.stat-title,.metric-title,.metric-label,.dashboard-card__label,
  .metric-label-v95,.metric-value-v95,.metric-value,.admin-stat-value,.stat-value,.kpi-value
){
  color:var(--admin-readable-ink)!important;
  opacity:1!important;
}
html.admin-ui-active .admin-content-v91 :where(
  p,li,td,dd,span,div,a,em,small,.small,
  .text-body,.text-dark,.text-black,.text-secondary,.text-muted,.muted,
  .section-copy,.module-copy,.panel-copy,.surface-copy,.card-text,.help-text,.form-text,
  .metric-note,.metric-meta,.dashboard-card__meta,.admin-stat-note,.stat-note,.empty-state p,
  .datatable-info,.dataTables_info,.dataTables_length label,.dataTables_filter label
){
  color:var(--admin-readable-soft)!important;
  opacity:1!important;
}
html.admin-ui-active .admin-content-v91 :where(.text-muted,.muted,small,.small,.help-text,.form-text,.section-copy,.metric-note,.admin-stat-note,.stat-note){
  color:var(--admin-readable-muted)!important;
}
html.admin-ui-active .admin-content-v91 :where(.bg-white,.bg-light,.text-bg-light,.table-light,.alert-light){
  background:linear-gradient(180deg,var(--admin-readable-panel) 0%,var(--admin-readable-panel-2) 100%)!important;
  color:var(--admin-readable-ink)!important;
  border-color:var(--admin-readable-border)!important;
}
html.admin-ui-active .admin-content-v91 :where(.text-white,.text-light,.text-dark,.text-black,.text-body){
  color:var(--admin-readable-ink)!important;
  opacity:1!important;
}
html.admin-ui-active .admin-content-v91 [style*="color:#000"],
html.admin-ui-active .admin-content-v91 [style*="color: #000"],
html.admin-ui-active .admin-content-v91 [style*="color:black"],
html.admin-ui-active .admin-content-v91 [style*="color: black"],
html.admin-ui-active .admin-content-v91 [style*="color:#111"],
html.admin-ui-active .admin-content-v91 [style*="color: #111"],
html.admin-ui-active .admin-content-v91 [style*="color:#172"],
html.admin-ui-active .admin-content-v91 [style*="color: #172"]{
  color:var(--admin-readable-ink)!important;
}
html.admin-ui-active .admin-content-v91 [style*="background:#fff"],
html.admin-ui-active .admin-content-v91 [style*="background: #fff"],
html.admin-ui-active .admin-content-v91 [style*="background-color:#fff"],
html.admin-ui-active .admin-content-v91 [style*="background-color: #fff"],
html.admin-ui-active .admin-content-v91 [style*="background:white"],
html.admin-ui-active .admin-content-v91 [style*="background: white"],
html.admin-ui-active .admin-content-v91 [style*="background-color:white"],
html.admin-ui-active .admin-content-v91 [style*="background-color: white"]{
  background:linear-gradient(180deg,var(--admin-readable-panel),var(--admin-readable-panel-2))!important;
  color:var(--admin-readable-ink)!important;
  border-color:var(--admin-readable-border)!important;
}
html.admin-ui-active .admin-content-v91 :where(table,.table,table.dataTable,.admin-table,.admin-table-v95){
  background:transparent!important;
  color:var(--admin-readable-soft)!important;
  border-color:var(--admin-readable-border)!important;
}
html.admin-ui-active .admin-content-v91 :where(thead,thead tr),
html.admin-ui-active .admin-content-v91 :where(.table thead th,table.dataTable thead th,.admin-table th,.admin-table-v95 th){
  background:#13243b!important;
  color:var(--admin-readable-ink)!important;
  border-color:var(--admin-readable-border-strong)!important;
}
html.admin-ui-active .admin-content-v91 :where(.table tbody tr,table.dataTable tbody tr,.admin-table tbody tr,.admin-table-v95 tbody tr){
  background:#0c192c!important;
}
html.admin-ui-active .admin-content-v91 :where(.table tbody td,table.dataTable tbody td,.admin-table tbody td,.admin-table-v95 tbody td){
  background:#0c192c!important;
  color:var(--admin-readable-soft)!important;
  border-color:rgba(203,213,225,.12)!important;
}
html.admin-ui-active .admin-content-v91 :where(.table tbody tr:hover td,table.dataTable tbody tr:hover td,.admin-table tbody tr:hover td,.admin-table-v95 tbody tr:hover td){
  background:#10233a!important;
  color:var(--admin-readable-ink)!important;
}
html.admin-ui-active .admin-content-v91 :where(.table-responsive,.table-shell,.admin-table-scroll-v95,.dataTables_wrapper,.dataTables_scrollBody){
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  border-radius:16px!important;
}
html.admin-ui-active .admin-content-v91 :where(.dataTables_filter input,.dataTables_length select){
  background:#0b1728!important;
  color:#fff!important;
  border:1px solid var(--admin-readable-border-strong)!important;
  border-radius:10px!important;
  min-height:38px!important;
}
html.admin-ui-active .admin-content-v91 :where(
  input,select,textarea,.form-control,.form-select,.custom-select,
  .input-group-text,.select2-selection,.tox-tinymce,.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-edit-area
){
  background:#0b1728!important;
  color:var(--admin-readable-ink)!important;
  border-color:var(--admin-readable-border-strong)!important;
}
html.admin-ui-active .admin-content-v91 :where(input,select,textarea,.form-control,.form-select)::placeholder{
  color:#8ca2bf!important;
  opacity:1!important;
}
html.admin-ui-active .admin-content-v91 :where(.form-label,label){
  color:var(--admin-readable-ink)!important;
  font-weight:800!important;
}
html.admin-ui-active .admin-content-v91 :where(input,select,textarea,.form-control,.form-select):focus{
  background:#102038!important;
  color:#fff!important;
  border-color:var(--admin-readable-blue)!important;
  box-shadow:0 0 0 .22rem rgba(96,165,250,.16)!important;
}
html.admin-ui-active .select2-dropdown,
html.admin-ui-active .select2-container--default .select2-results__option{
  background:#0b1728!important;
  color:var(--admin-readable-ink)!important;
}
html.admin-ui-active .select2-container--default .select2-selection__rendered{
  color:#fff!important;
}
html.admin-ui-active .tox .tox-edit-area__iframe{
  background:#fff!important;
}
html.admin-ui-active .admin-content-v91 .accordion-button{
  background:#13243b!important;
  color:var(--admin-readable-ink)!important;
  border-color:var(--admin-readable-border)!important;
  box-shadow:none!important;
}
html.admin-ui-active .admin-content-v91 .accordion-button.collapsed{
  background:#102038!important;
}
html.admin-ui-active .admin-content-v91 .accordion-button::after{
  filter:invert(1) brightness(1.8)!important;
}
html.admin-ui-active .admin-content-v91 .accordion-button :where(strong,span,small,code){
  color:inherit!important;
  opacity:1!important;
}
html.admin-ui-active .admin-content-v91 .btn{
  border-radius:12px!important;
  font-weight:850!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:.45rem!important;
}
html.admin-ui-active .admin-content-v91 :where(.btn-light,.btn-outline-secondary,.btn-surface,.btn-default){
  background:#13243b!important;
  border:1px solid var(--admin-readable-border-strong)!important;
  color:var(--admin-readable-ink)!important;
}
html.admin-ui-active .admin-content-v91 :where(.btn-primary,.btn-success){
  color:#fff!important;
}
html.admin-ui-active .admin-content-v91 .dropdown-menu{
  background:#0b1728!important;
  border:1px solid var(--admin-readable-border-strong)!important;
  border-radius:14px!important;
  box-shadow:0 22px 50px rgba(0,0,0,.45)!important;
}
html.admin-ui-active .admin-content-v91 .dropdown-item{
  color:var(--admin-readable-soft)!important;
}
html.admin-ui-active .admin-content-v91 .dropdown-item:hover,
html.admin-ui-active .admin-content-v91 .dropdown-item:focus{
  background:#172741!important;
  color:#fff!important;
}
html.admin-ui-active .admin-content-v91 :where(.badge,.status-pill,.status-badge){
  border-radius:999px!important;
  font-weight:900!important;
  line-height:1.1!important;
}
html.admin-ui-active .admin-content-v91 :where(.badge.bg-success,.status-pill--success,.status-success){
  background:rgba(52,211,153,.16)!important;
  border:1px solid rgba(52,211,153,.30)!important;
  color:#9af7cc!important;
}
html.admin-ui-active .admin-content-v91 :where(.badge.bg-warning,.status-pill--warning,.status-warning){
  background:rgba(251,191,36,.17)!important;
  border:1px solid rgba(251,191,36,.30)!important;
  color:#ffe08a!important;
}
html.admin-ui-active .admin-content-v91 :where(.badge.bg-danger,.status-pill--danger,.status-danger){
  background:rgba(251,113,133,.17)!important;
  border:1px solid rgba(251,113,133,.30)!important;
  color:#ffb4c0!important;
}
html.admin-ui-active .admin-content-v91 :where(.badge.bg-secondary,.status-pill--neutral,.status-neutral){
  background:rgba(148,163,184,.16)!important;
  border:1px solid rgba(148,163,184,.28)!important;
  color:#dbe7f5!important;
}
html.admin-ui-active .admin-content-v91 :where(.stats-grid,.metric-grid,.admin-stat-grid,.cards-grid,.module-grid,.dashboard-command-grid){
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
  gap:18px!important;
  align-items:stretch!important;
}
html.admin-ui-active .admin-content-v91 :where(.stats-grid,.metric-grid,.admin-stat-grid,.cards-grid,.module-grid,.dashboard-command-grid) > *{
  min-width:0!important;
  height:100%!important;
}
html.admin-ui-active .admin-content-v91 :where(.card,.surface,.panel,.admin-panel-v95,.module-card,.table-shell){
  min-width:0!important;
  overflow-wrap:anywhere!important;
}
html.admin-ui-active .admin-content-v91 :where(.card:empty,.surface:empty,.panel:empty,.admin-panel-v95:empty,.module-card:empty){
  display:none!important;
}
html.admin-ui-active .admin-phase101-readable{
  color:var(--admin-readable-ink)!important;
  background-color:transparent;
}
@media (max-width: 1199.98px){
  html.admin-ui-active .admin-content-v91 :where(.stats-grid,.metric-grid,.admin-stat-grid,.cards-grid,.module-grid,.dashboard-command-grid){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media (max-width: 991.98px){
  html.admin-ui-active .admin-content-v91{
    padding:14px!important;
  }
  html.admin-ui-active .admin-content-v91 :where(.surface-head,.card-header,.panel-head,.module-head,.admin-filter-row,.admin-inline-actions){
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  html.admin-ui-active .admin-content-v91 :where(.btn,.form-control,.form-select,select,input){
    max-width:100%!important;
  }
}
@media (max-width: 767.98px){
  html.admin-ui-active .admin-content-v91 :where(.stats-grid,.metric-grid,.admin-stat-grid,.cards-grid,.module-grid,.dashboard-command-grid){
    grid-template-columns:1fr!important;
  }
  html.admin-ui-active .admin-content-v91 :where(.row){
    --bs-gutter-x:12px!important;
    --bs-gutter-y:12px!important;
  }
  html.admin-ui-active .admin-content-v91 :where(.table:not(.no-mobile-cards),.admin-table:not(.no-mobile-cards),.admin-table-v95:not(.no-mobile-cards)) thead{
    display:none!important;
  }
  html.admin-ui-active .admin-content-v91 :where(.table:not(.no-mobile-cards),.admin-table:not(.no-mobile-cards),.admin-table-v95:not(.no-mobile-cards)),
  html.admin-ui-active .admin-content-v91 :where(.table:not(.no-mobile-cards),.admin-table:not(.no-mobile-cards),.admin-table-v95:not(.no-mobile-cards)) tbody,
  html.admin-ui-active .admin-content-v91 :where(.table:not(.no-mobile-cards),.admin-table:not(.no-mobile-cards),.admin-table-v95:not(.no-mobile-cards)) tr,
  html.admin-ui-active .admin-content-v91 :where(.table:not(.no-mobile-cards),.admin-table:not(.no-mobile-cards),.admin-table-v95:not(.no-mobile-cards)) td{
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }
  html.admin-ui-active .admin-content-v91 :where(.table:not(.no-mobile-cards),.admin-table:not(.no-mobile-cards),.admin-table-v95:not(.no-mobile-cards)) tr{
    margin:0 0 12px!important;
    border:1px solid var(--admin-readable-border)!important;
    border-radius:14px!important;
    overflow:hidden!important;
    background:#0c192c!important;
  }
  html.admin-ui-active .admin-content-v91 :where(.table:not(.no-mobile-cards),.admin-table:not(.no-mobile-cards),.admin-table-v95:not(.no-mobile-cards)) td{
    display:flex!important;
    justify-content:space-between!important;
    align-items:flex-start!important;
    gap:12px!important;
    padding:12px 14px!important;
    text-align:right!important;
    border-bottom:1px solid rgba(203,213,225,.12)!important;
    color:var(--admin-readable-soft)!important;
  }
  html.admin-ui-active .admin-content-v91 :where(.table:not(.no-mobile-cards),.admin-table:not(.no-mobile-cards),.admin-table-v95:not(.no-mobile-cards)) td::before{
    content:attr(data-label);
    font-weight:900!important;
    color:#fff!important;
    text-align:left!important;
    max-width:45%!important;
  }
  html.admin-ui-active .admin-content-v91 :where(.table:not(.no-mobile-cards),.admin-table:not(.no-mobile-cards),.admin-table-v95:not(.no-mobile-cards)) td:last-child{
    border-bottom:0!important;
  }
}
@media (max-width: 575.98px){
  html.admin-ui-active .admin-content-v91{
    padding:10px!important;
  }
  html.admin-ui-active .admin-content-v91 :where(.card,.surface,.panel,.admin-panel-v95,.module-card,.table-shell){
    border-radius:14px!important;
  }
}
