/* v25.19: align advanced controls with existing light admin workspace */
#dashboard .audit-sort-controls,
#dashboard .history-visibility-choice,
#dashboard .per-user-settings #user-settings-effective{
 background:#f7f9fc!important;border:1px solid #e0e7f1!important;color:#344b68!important;
 border-radius:10px!important;box-shadow:none!important;
}
#dashboard .history-visibility-choice{background:#f9fbfe!important;color:#344b68!important}
#dashboard .audit-sort-controls{background:#f7f9fc!important}
#dashboard .per-user-settings #user-settings-effective{background:#eef4fd!important;line-height:1.65}
#dashboard .history-global-off{background:#fff8ec!important;color:#966024!important;border-color:#f2ddbb!important}
#dashboard .managed-combined-hint{margin:0 0 12px;color:#71819a}
#dashboard .managed-combined-table table{min-width:1340px}
#dashboard .managed-combined-table td{vertical-align:middle;white-space:normal;line-height:1.5}
#dashboard .managed-combined-table td:nth-child(7){min-width:132px}
#dashboard .managed-combined-table td:nth-child(8){min-width:120px;max-width:260px}
#dashboard .managed-combined-table td:nth-child(11){min-width:175px}
#dashboard .managed-unified-balance-row{background:#f8fbff}
#dashboard .managed-row-hidden{background:#fbfcfe}
#dashboard .managed-row-subtitle{display:block;color:#7e8da0;font-size:10px;font-weight:550;margin-top:4px}
#dashboard .managed-history-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
#dashboard .history-visibility-state{color:#13815b;background:#eef9f3;border:1px solid #d8eee3;border-radius:5px;padding:4px 7px;font-size:10px;font-weight:700;white-space:nowrap;margin:0}
#dashboard .history-visibility-state.is-hidden{color:#ad4951;background:#fff1f2;border-color:#f7dadd}
#dashboard .history-visibility-state.is-muted{color:#986e36;background:#fff8ea;border-color:#eedfca}
#dashboard .managed-trade-removed{background:#fff4f3!important}
#dashboard .managed-trade-removed td{border-bottom:1px solid #f4d8d7!important}
#dashboard .permanent-removed-badge{display:inline-block;border:1px solid #f0b9bb;border-radius:6px;padding:5px 8px;background:#ffe7e8;color:#b12d3b;font-size:10px;font-weight:800;line-height:1.5;white-space:normal}
#dashboard .permanent-removed-badge small{font-weight:600;font-size:9px}
#dashboard .managed-irreversible-btn.btn{color:#ba2f3b!important;background:#fff0f1!important;border-color:#edb9be!important}
#dashboard .managed-irreversible-btn.btn:hover{background:#ffe1e4!important}
#dashboard .managed-permanent-note{font-size:10px;color:#ba2f3b;font-weight:760}
#dashboard .settings-override-directory{border-top:1px solid #e6ebf2;margin-top:26px;padding-top:22px}
#dashboard .override-directory-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:14px}
#dashboard .override-directory-head h3{font-size:14px;color:#1f3049;margin:0 0 6px;font-weight:770}
#dashboard .override-directory-head p{margin:0;line-height:1.55}
#dashboard .override-count{font-size:11px;color:#2b5fa3;padding:7px 11px;border-radius:6px;border:1px solid #d8e5f4;background:#eff5fc;white-space:nowrap}
#dashboard .override-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
#dashboard .override-setting-card{background:#f9fbff;border:1px solid #e2e9f4;border-radius:10px;padding:15px;min-width:0}
#dashboard .override-setting-card header{display:flex;gap:8px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;margin-bottom:13px}
#dashboard .override-setting-card header strong{color:#263f60;font-size:12px;line-height:1.5}
#dashboard .override-global-label{color:#7c8ba0;font-size:10px;white-space:nowrap}
#dashboard .override-setting-group{margin-top:12px}
#dashboard .override-section-label{display:block;color:#6a7d94;font-weight:700;font-size:10px;margin-bottom:6px}
#dashboard .override-users-list{display:flex;align-items:center;gap:6px;flex-wrap:wrap;max-height:170px;overflow-y:auto}
#dashboard .override-user-pill{border:1px solid #c9dfd5;color:#16815b;background:#effaf4;border-radius:6px;font-size:10px;font-weight:740;padding:6px 8px;cursor:pointer;max-width:100%;overflow-wrap:anywhere}
#dashboard .override-user-pill.disabled{border-color:#f1d2d4;background:#fff2f2;color:#a8454b}
#dashboard .override-user-pill:hover{text-decoration:underline}
@media(max-width:1120px){#dashboard .override-settings-grid{grid-template-columns:1fr}}
@media(max-width:700px){#dashboard .audit-sort-controls{gap:8px;padding:11px}#dashboard .override-settings-grid{grid-template-columns:1fr}#dashboard .managed-combined-table{max-width:100%}}
/* Modals live outside #dashboard. Ensure their visibility controls also use the light palette. */
.history-visibility-choice{background:#f9fbfe!important;color:#344b68!important;border-color:#e0e7f1!important}
.history-visibility-choice input[type="checkbox"]{accent-color:#245aa4!important}
