/* V1.13.53 - admin dark-mode consistency, scoped to admin only.
   Avoid applying global color overrides to mail content or print sheets. */
html[data-theme="dark"] body.admin-v40{
  --admin-ink:#edf5ff;--admin-muted:#c3d2e4;--admin-line:#48637f;
  --admin-surface:#142539;--card:#1b2d42;--surface:#17283d;
  --text:#edf5ff;--muted:#c3d2e4;--border:#48637f;
  --a-bg:#0f1d2d;--a-card:#1b2d43;--a-ink:#edf5ff;
  --a-muted:#bfcfe3;--a-line:#48627d;--a-soft:#294769;
  color:#edf5ff!important;
}
html[data-theme="dark"] body.admin-v40 :is(
  .admin-search-box,.admin-search-workspace,.inline-client-panel,.admin-record-card,
  .admin-record-grid,.admin-record-select,.admin-record-delete-select,
  .record-transfer-toolbar,.record-delete-toolbar,.client-record-search,
  .admin-result-dialog,.customer-profile-dialog,.customer-profile-section,
  .admin-more-panel,.admin-global-more-panel,.admin-more-menu,
  .admin-users-hint,.admin-empty-card,.admin-activation-code-inline
){
  background:#1b3048!important;background-image:none!important;
  color:#edf5ff!important;border-color:#486987!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.admin-v40 :is(
  .admin-record-field,.admin-student-name-copy-field,.admin-record-card .unified-email-field,
  .admin-records-section-head,.inline-client-summary>div,.admin-secret-line,
  .customer-profile-summary>div,.customer-profile-fields>div,.admin-record-card-head,
  .credit-result-meta,.admin-search-input-row,.admin-user-compact-meta>div,
  .admin-pagination,.admin-online-panel,.admin-settings-panel .setting,
  .record-transfer-controls,.transfer-target-picker
){
  background:#213a55!important;background-image:none!important;
  color:#ecf5ff!important;border-color:#50708d!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.admin-v40 :is(
  .admin-record-card,.admin-record-field,.admin-records-section-head,
  .customer-profile-dialog,.customer-profile-section,.inline-client-panel,
  .admin-result-dialog,.admin-search-box,.admin-activation-code-inline
) :is(h1,h2,h3,h4,strong,b,label,summary){color:#f1f7ff!important;}
html[data-theme="dark"] body.admin-v40 :is(
  .admin-record-card,.admin-record-field,.admin-records-section-head,
  .customer-profile-dialog,.customer-profile-section,.inline-client-panel,
  .admin-result-dialog,.admin-search-box,.admin-activation-code-inline
) :is(p,small,span,.muted){color:#c4d5e8!important;}
/* Specific exceptions for colors carrying meaning; high contrast on matching dark surfaces. */
html[data-theme="dark"] body.admin-v40 .admin-activation-code-inline{
  background:#41351f!important;border-color:#92713e!important;
}
html[data-theme="dark"] body.admin-v40 .admin-activation-code-inline b[dir="ltr"]{
  color:#ffe1a3!important;
}
html[data-theme="dark"] body.admin-v40 .admin-activation-code-inline :is(strong,span){color:#ffeaca!important;}
html[data-theme="dark"] body.admin-v40 :is(.admin-record-field,.customer-profile-section,.admin-result-dialog) :is(a,[dir="ltr"]){overflow-wrap:anywhere;}
html[data-theme="dark"] body.admin-v40 :is(input:not([type="checkbox"]),select,textarea){
  background:#12263b!important;color:#f1f7ff!important;
  border:1px solid #56789b!important;
}
html[data-theme="dark"] body.admin-v40 :is(input,select,textarea)::placeholder{color:#a9bfd7!important;opacity:1;}
html[data-theme="dark"] body.admin-v40 :is(input,select,textarea):focus-visible,
html[data-theme="dark"] body.admin-v40 :is(button,a):focus-visible{
  outline:2px solid #8bbdff!important;outline-offset:2px;
}
html[data-theme="dark"] body.admin-v40 :is(.admin-global-more-panel,.admin-more-panel) :is(button,.admin-more-item){
  background:#263f5d!important;color:#edf6ff!important;border-color:#4e7198!important;
}
html[data-theme="dark"] body.admin-v40 :is(.admin-global-more-panel,.admin-more-panel) :is(button,.admin-more-item):hover{background:#34567c!important;}
html[data-theme="dark"] body.admin-v40 :is(.admin-result-dialog,.customer-profile-dialog) :is(th,td){
  border-color:#486581!important;color:#e7f1ff!important;
}
html[data-theme="dark"] body.admin-v40 :is(.admin-result-dialog,.customer-profile-dialog) th{background:#294866!important;}
html[data-theme="dark"] body.admin-v40 :is(.admin-result-dialog,.customer-profile-dialog) td{background:#1d334a!important;}
html[data-theme="dark"] body.admin-v40 .admin-customer-row:hover,
html[data-theme="dark"] body.admin-v40 .admin-customer-row:focus-visible{background:#26425f!important;}
html[data-theme="dark"] body.admin-v40 .admin-user-card .badge.warn,
html[data-theme="dark"] body.admin-v40 .admin-customer-row .badge.warn{background:#4b391d!important;color:#ffe6b0!important;border-color:#8c754b!important;}
html[data-theme="dark"] body.admin-v40 .admin-record-card.record-selected,
html[data-theme="dark"] body.admin-v40 .admin-record-card.record-delete-selected{background:#294967!important;}
html[data-theme="dark"] body.admin-v40 :is(.admin-support-field,.admin-settings-panel) .field>label{color:#e9f4ff!important;}
/* Light theme uses the existing palette. Buttons with semantic colors retain theirs. */

/* V1.13.54 — one-time pending-account approval, accessible in light and dark. */
.admin-v40 .admin-bulk-approve{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:17px;padding:13px 16px;background:var(--a-soft,#eef5ff);border:1px solid var(--a-line,#d4e2ef);border-radius:13px;color:var(--a-ink,#18324b)}
.admin-v40 .admin-bulk-approve strong{font-size:14px;font-weight:800;color:inherit}
.admin-v40 .admin-bulk-approve p{font-size:12px;line-height:1.7;margin:5px 0 0;color:var(--a-muted,#56708a);max-width:740px}
.admin-v40 .admin-bulk-approve button{white-space:normal;line-height:1.5;min-height:42px}
.admin-v40 .admin-bulk-approve button:disabled{opacity:.6;cursor:not-allowed}
html[data-theme="dark"] body.admin-v40 .admin-bulk-approve{background:#213b57!important;color:#f1f7ff!important;border-color:#4e6d8e!important}
html[data-theme="dark"] body.admin-v40 .admin-bulk-approve p{color:#c6d8e9!important}
@media(max-width:600px){.admin-v40 .admin-bulk-approve{align-items:stretch;flex-direction:column}.admin-v40 .admin-bulk-approve button{width:100%}}
