
/* Phase 102: hard override for unreadable admin module tables/cards */
html.admin-ui-active{
  --phase102-bg:#07111f;
  --phase102-panel:#102038;
  --phase102-panel-2:#0d1a2e;
  --phase102-panel-3:#13243b;
  --phase102-text:#f8fbff;
  --phase102-soft:#dbe7f5;
  --phase102-muted:#a6b8cf;
  --phase102-border:rgba(203,213,225,.22);
  --phase102-border-strong:rgba(203,213,225,.34);
  --phase102-blue:#60a5fa;
  --phase102-green:#34d399;
  --phase102-amber:#fbbf24;
  --phase102-red:#fb7185;
}

/* Page/module intro blocks */
html.admin-ui-active .admin-content-v91 .workspace-hero,
html.admin-ui-active .admin-content-v91 .admin-hero-v95,
html.admin-ui-active .admin-content-v91 .module-hero,
html.admin-ui-active .admin-content-v91 .page-hero,
html.admin-ui-active .admin-content-v91 .surface-head,
html.admin-ui-active .admin-content-v91 .module-header,
html.admin-ui-active .admin-content-v91 .admin-section-header{
  background:linear-gradient(135deg,#102038 0%,#0d1a2e 100%)!important;
  border:1px solid var(--phase102-border)!important;
  color:var(--phase102-text)!important;
  box-shadow:0 18px 45px rgba(0,0,0,.18)!important;
}
html.admin-ui-active .admin-content-v91 .workspace-hero *,
html.admin-ui-active .admin-content-v91 .admin-hero-v95 *,
html.admin-ui-active .admin-content-v91 .module-hero *,
html.admin-ui-active .admin-content-v91 .page-hero *,
html.admin-ui-active .admin-content-v91 .surface-head *,
html.admin-ui-active .admin-content-v91 .module-header *,
html.admin-ui-active .admin-content-v91 .admin-section-header *{
  color:var(--phase102-text)!important;
  opacity:1!important;
}
html.admin-ui-active .admin-content-v91 .workspace-hero p,
html.admin-ui-active .admin-content-v91 .admin-hero-v95 p,
html.admin-ui-active .admin-content-v91 .module-hero p,
html.admin-ui-active .admin-content-v91 .page-hero p,
html.admin-ui-active .admin-content-v91 .surface-head p,
html.admin-ui-active .admin-content-v91 .module-header p,
html.admin-ui-active .admin-content-v91 .admin-section-header p{
  color:var(--phase102-soft)!important;
}

/* Strong table fix: override old white table rows regardless of class */
html.admin-ui-active .admin-content-v91 table,
html.admin-ui-active .admin-content-v91 .table,
html.admin-ui-active .admin-content-v91 .admin-table,
html.admin-ui-active .admin-content-v91 .admin-table-v95,
html.admin-ui-active .admin-content-v91 table.table,
html.admin-ui-active .admin-content-v91 table.dataTable{
  background:#0b1728!important;
  color:var(--phase102-soft)!important;
  border-color:var(--phase102-border)!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}

html.admin-ui-active .admin-content-v91 table thead,
html.admin-ui-active .admin-content-v91 table thead tr,
html.admin-ui-active .admin-content-v91 table thead th,
html.admin-ui-active .admin-content-v91 .table thead,
html.admin-ui-active .admin-content-v91 .table thead tr,
html.admin-ui-active .admin-content-v91 .table thead th,
html.admin-ui-active .admin-content-v91 .admin-table thead,
html.admin-ui-active .admin-content-v91 .admin-table thead tr,
html.admin-ui-active .admin-content-v91 .admin-table thead th,
html.admin-ui-active .admin-content-v91 .admin-table-v95 thead,
html.admin-ui-active .admin-content-v91 .admin-table-v95 thead tr,
html.admin-ui-active .admin-content-v91 .admin-table-v95 thead th{
  background:#13243b!important;
  background-color:#13243b!important;
  color:var(--phase102-text)!important;
  border-color:var(--phase102-border-strong)!important;
  opacity:1!important;
}

html.admin-ui-active .admin-content-v91 table tbody,
html.admin-ui-active .admin-content-v91 table tbody tr,
html.admin-ui-active .admin-content-v91 table tbody td,
html.admin-ui-active .admin-content-v91 .table tbody,
html.admin-ui-active .admin-content-v91 .table tbody tr,
html.admin-ui-active .admin-content-v91 .table tbody td,
html.admin-ui-active .admin-content-v91 .admin-table tbody,
html.admin-ui-active .admin-content-v91 .admin-table tbody tr,
html.admin-ui-active .admin-content-v91 .admin-table tbody td,
html.admin-ui-active .admin-content-v91 .admin-table-v95 tbody,
html.admin-ui-active .admin-content-v91 .admin-table-v95 tbody tr,
html.admin-ui-active .admin-content-v91 .admin-table-v95 tbody td,
html.admin-ui-active .admin-content-v91 table.dataTable tbody,
html.admin-ui-active .admin-content-v91 table.dataTable tbody tr,
html.admin-ui-active .admin-content-v91 table.dataTable tbody td{
  background:#0c192c!important;
  background-color:#0c192c!important;
  color:var(--phase102-soft)!important;
  border-color:rgba(203,213,225,.13)!important;
  opacity:1!important;
}

html.admin-ui-active .admin-content-v91 table tbody tr:nth-child(even),
html.admin-ui-active .admin-content-v91 table tbody tr:nth-child(even) td,
html.admin-ui-active .admin-content-v91 .table tbody tr:nth-child(even),
html.admin-ui-active .admin-content-v91 .table tbody tr:nth-child(even) td,
html.admin-ui-active .admin-content-v91 .admin-table tbody tr:nth-child(even),
html.admin-ui-active .admin-content-v91 .admin-table tbody tr:nth-child(even) td,
html.admin-ui-active .admin-content-v91 .admin-table-v95 tbody tr:nth-child(even),
html.admin-ui-active .admin-content-v91 .admin-table-v95 tbody tr:nth-child(even) td{
  background:#0f1d31!important;
  background-color:#0f1d31!important;
}

html.admin-ui-active .admin-content-v91 table tbody tr:hover,
html.admin-ui-active .admin-content-v91 table tbody tr:hover td,
html.admin-ui-active .admin-content-v91 .table tbody tr:hover,
html.admin-ui-active .admin-content-v91 .table tbody tr:hover td,
html.admin-ui-active .admin-content-v91 .admin-table tbody tr:hover,
html.admin-ui-active .admin-content-v91 .admin-table tbody tr:hover td,
html.admin-ui-active .admin-content-v91 .admin-table-v95 tbody tr:hover,
html.admin-ui-active .admin-content-v91 .admin-table-v95 tbody tr:hover td{
  background:#142842!important;
  background-color:#142842!important;
  color:var(--phase102-text)!important;
}

/* Table text/content fix */
html.admin-ui-active .admin-content-v91 table :is(th,td,strong,b,span,small,p,a,div,code),
html.admin-ui-active .admin-content-v91 .table :is(th,td,strong,b,span,small,p,a,div,code),
html.admin-ui-active .admin-content-v91 .admin-table :is(th,td,strong,b,span,small,p,a,div,code),
html.admin-ui-active .admin-content-v91 .admin-table-v95 :is(th,td,strong,b,span,small,p,a,div,code){
  color:inherit!important;
  opacity:1!important;
}
html.admin-ui-active .admin-content-v91 table td strong,
html.admin-ui-active .admin-content-v91 .table td strong,
html.admin-ui-active .admin-content-v91 .admin-table td strong,
html.admin-ui-active .admin-content-v91 .admin-table-v95 td strong{
  color:var(--phase102-text)!important;
}
html.admin-ui-active .admin-content-v91 table td small,
html.admin-ui-active .admin-content-v91 .table td small,
html.admin-ui-active .admin-content-v91 .admin-table td small,
html.admin-ui-active .admin-content-v91 .admin-table-v95 td small{
  color:var(--phase102-muted)!important;
}

/* Wrappers around tables */
html.admin-ui-active .admin-content-v91 .table-shell,
html.admin-ui-active .admin-content-v91 .table-responsive,
html.admin-ui-active .admin-content-v91 .admin-table-scroll-v95,
html.admin-ui-active .admin-content-v91 .dataTables_wrapper,
html.admin-ui-active .admin-content-v91 .dataTables_scroll,
html.admin-ui-active .admin-content-v91 .dataTables_scrollHead,
html.admin-ui-active .admin-content-v91 .dataTables_scrollBody{
  background:#0b1728!important;
  background-color:#0b1728!important;
  border:1px solid var(--phase102-border)!important;
  color:var(--phase102-soft)!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  max-width:100%!important;
}

/* Fix legacy card/panel contents that remain too dim */
html.admin-ui-active .admin-content-v91 .card,
html.admin-ui-active .admin-content-v91 .card-body,
html.admin-ui-active .admin-content-v91 .surface,
html.admin-ui-active .admin-content-v91 .panel,
html.admin-ui-active .admin-content-v91 .admin-panel,
html.admin-ui-active .admin-content-v91 .module-card,
html.admin-ui-active .admin-content-v91 .settings-card,
html.admin-ui-active .admin-content-v91 .content-card,
html.admin-ui-active .admin-content-v91 .form-card,
html.admin-ui-active .admin-content-v91 .list-group-item,
html.admin-ui-active .admin-content-v91 .accordion-item,
html.admin-ui-active .admin-content-v91 .accordion-body,
html.admin-ui-active .admin-content-v91 .modal-content,
html.admin-ui-active .admin-content-v91 .empty-state,
html.admin-ui-active .admin-content-v91 .alert{
  background:linear-gradient(180deg,var(--phase102-panel),var(--phase102-panel-2))!important;
  background-color:var(--phase102-panel)!important;
  border-color:var(--phase102-border)!important;
  color:var(--phase102-text)!important;
}
html.admin-ui-active .admin-content-v91 .card :is(h1,h2,h3,h4,h5,h6,strong,b,label),
html.admin-ui-active .admin-content-v91 .surface :is(h1,h2,h3,h4,h5,h6,strong,b,label),
html.admin-ui-active .admin-content-v91 .panel :is(h1,h2,h3,h4,h5,h6,strong,b,label),
html.admin-ui-active .admin-content-v91 .module-card :is(h1,h2,h3,h4,h5,h6,strong,b,label),
html.admin-ui-active .admin-content-v91 .settings-card :is(h1,h2,h3,h4,h5,h6,strong,b,label),
html.admin-ui-active .admin-content-v91 .accordion-item :is(h1,h2,h3,h4,h5,h6,strong,b,label),
html.admin-ui-active .admin-content-v91 .modal-content :is(h1,h2,h3,h4,h5,h6,strong,b,label){
  color:var(--phase102-text)!important;
  opacity:1!important;
}
html.admin-ui-active .admin-content-v91 .card :is(p,span,small,li,td,div,a),
html.admin-ui-active .admin-content-v91 .surface :is(p,span,small,li,td,div,a),
html.admin-ui-active .admin-content-v91 .panel :is(p,span,small,li,td,div,a),
html.admin-ui-active .admin-content-v91 .module-card :is(p,span,small,li,td,div,a),
html.admin-ui-active .admin-content-v91 .settings-card :is(p,span,small,li,td,div,a),
html.admin-ui-active .admin-content-v91 .accordion-item :is(p,span,small,li,td,div,a),
html.admin-ui-active .admin-content-v91 .modal-content :is(p,span,small,li,td,div,a){
  color:var(--phase102-soft)!important;
  opacity:1!important;
}

/* Bootstrap table/card utility escape hatches */
html.admin-ui-active .admin-content-v91 .table-light,
html.admin-ui-active .admin-content-v91 .table-light > th,
html.admin-ui-active .admin-content-v91 .table-light > td,
html.admin-ui-active .admin-content-v91 .table-striped > tbody > tr:nth-of-type(odd) > *,
html.admin-ui-active .admin-content-v91 .table-hover > tbody > tr:hover > *{
  background:#0f1d31!important;
  background-color:#0f1d31!important;
  color:var(--phase102-soft)!important;
}
html.admin-ui-active .admin-content-v91 .bg-white,
html.admin-ui-active .admin-content-v91 .bg-light,
html.admin-ui-active .admin-content-v91 .text-bg-light{
  background:linear-gradient(180deg,var(--phase102-panel),var(--phase102-panel-2))!important;
  background-color:var(--phase102-panel)!important;
  color:var(--phase102-text)!important;
}
html.admin-ui-active .admin-content-v91 .text-dark,
html.admin-ui-active .admin-content-v91 .text-body,
html.admin-ui-active .admin-content-v91 .text-black,
html.admin-ui-active .admin-content-v91 .text-white,
html.admin-ui-active .admin-content-v91 .text-light{
  color:var(--phase102-text)!important;
}

/* Buttons in table actions */
html.admin-ui-active .admin-content-v91 table .btn,
html.admin-ui-active .admin-content-v91 .table .btn,
html.admin-ui-active .admin-content-v91 .admin-table .btn,
html.admin-ui-active .admin-content-v91 .admin-table-v95 .btn{
  background:#07111f!important;
  color:#fff!important;
  border:1px solid var(--phase102-border-strong)!important;
  white-space:normal!important;
  min-height:42px!important;
}
html.admin-ui-active .admin-content-v91 table .btn:hover,
html.admin-ui-active .admin-content-v91 .table .btn:hover,
html.admin-ui-active .admin-content-v91 .admin-table .btn:hover,
html.admin-ui-active .admin-content-v91 .admin-table-v95 .btn:hover{
  background:#18304e!important;
  color:#fff!important;
}

/* Badges/status inside dark tables */
html.admin-ui-active .admin-content-v91 table .badge,
html.admin-ui-active .admin-content-v91 .table .badge,
html.admin-ui-active .admin-content-v91 .admin-table .badge,
html.admin-ui-active .admin-content-v91 .admin-table-v95 .badge,
html.admin-ui-active .admin-content-v91 table .status-pill,
html.admin-ui-active .admin-content-v91 .table .status-pill{
  color:#fff!important;
  border-radius:999px!important;
  font-weight:900!important;
}
html.admin-ui-active .admin-content-v91 table .badge.bg-success,
html.admin-ui-active .admin-content-v91 .table .badge.bg-success,
html.admin-ui-active .admin-content-v91 table .status-pill--success,
html.admin-ui-active .admin-content-v91 .table .status-pill--success{
  color:#9af7cc!important;
  background:rgba(52,211,153,.16)!important;
  border:1px solid rgba(52,211,153,.32)!important;
}

/* Mobile: tables become readable cards */
@media (max-width:767.98px){
  html.admin-ui-active .admin-content-v91 table:not(.no-mobile-cards) thead,
  html.admin-ui-active .admin-content-v91 .table:not(.no-mobile-cards) thead,
  html.admin-ui-active .admin-content-v91 .admin-table:not(.no-mobile-cards) thead,
  html.admin-ui-active .admin-content-v91 .admin-table-v95:not(.no-mobile-cards) thead{
    display:none!important;
  }
  html.admin-ui-active .admin-content-v91 table:not(.no-mobile-cards),
  html.admin-ui-active .admin-content-v91 table:not(.no-mobile-cards) tbody,
  html.admin-ui-active .admin-content-v91 table:not(.no-mobile-cards) tr,
  html.admin-ui-active .admin-content-v91 table:not(.no-mobile-cards) td,
  html.admin-ui-active .admin-content-v91 .table:not(.no-mobile-cards),
  html.admin-ui-active .admin-content-v91 .table:not(.no-mobile-cards) tbody,
  html.admin-ui-active .admin-content-v91 .table:not(.no-mobile-cards) tr,
  html.admin-ui-active .admin-content-v91 .table:not(.no-mobile-cards) td,
  html.admin-ui-active .admin-content-v91 .admin-table-v95:not(.no-mobile-cards),
  html.admin-ui-active .admin-content-v91 .admin-table-v95:not(.no-mobile-cards) tbody,
  html.admin-ui-active .admin-content-v91 .admin-table-v95:not(.no-mobile-cards) tr,
  html.admin-ui-active .admin-content-v91 .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 table:not(.no-mobile-cards) tr,
  html.admin-ui-active .admin-content-v91 .table:not(.no-mobile-cards) tr,
  html.admin-ui-active .admin-content-v91 .admin-table-v95:not(.no-mobile-cards) tr{
    margin:0 0 12px!important;
    border:1px solid var(--phase102-border)!important;
    border-radius:16px!important;
    overflow:hidden!important;
    background:#0c192c!important;
  }
  html.admin-ui-active .admin-content-v91 table:not(.no-mobile-cards) td,
  html.admin-ui-active .admin-content-v91 .table:not(.no-mobile-cards) td,
  html.admin-ui-active .admin-content-v91 .admin-table-v95:not(.no-mobile-cards) td{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:14px!important;
    padding:12px 14px!important;
    text-align:right!important;
    background:#0c192c!important;
    color:var(--phase102-soft)!important;
    border-bottom:1px solid rgba(203,213,225,.13)!important;
  }
  html.admin-ui-active .admin-content-v91 table:not(.no-mobile-cards) td::before,
  html.admin-ui-active .admin-content-v91 .table:not(.no-mobile-cards) td::before,
  html.admin-ui-active .admin-content-v91 .admin-table-v95:not(.no-mobile-cards) td::before{
    content:attr(data-label);
    flex:0 0 42%;
    max-width:42%;
    text-align:left!important;
    color:#fff!important;
    font-weight:900!important;
  }
  html.admin-ui-active .admin-content-v91 table:not(.no-mobile-cards) td:last-child,
  html.admin-ui-active .admin-content-v91 .table:not(.no-mobile-cards) td:last-child,
  html.admin-ui-active .admin-content-v91 .admin-table-v95:not(.no-mobile-cards) td:last-child{
    border-bottom:0!important;
  }
}
