/* CasinoLab v25.20: responsive administration polish. Pure presentation except in-page action modal. */
#dashboard #users-view .account-directory-panel{padding:0!important;overflow:hidden}
#dashboard #users-view .account-directory-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;flex-wrap:wrap!important;padding:18px 21px!important;margin:0!important;border-bottom:1px solid #e7edf5!important;background:linear-gradient(115deg,#fff,#fafcff)!important}
#dashboard #users-view .account-directory-title{display:flex;align-items:center;gap:12px;min-width:0;flex:0 1 320px}
#dashboard #users-view .account-directory-title>div{min-width:0}
#dashboard #users-view .account-directory-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#eaf2ff;border:1px solid #dce9fc;color:#285da8;flex:none}
#dashboard #users-view .account-directory-symbol svg{width:21px;height:21px}
#dashboard #users-view .account-directory-title h2{margin:0!important;font-size:16px!important;color:#1b3152!important}
#dashboard #users-view .account-directory-subtitle{margin:4px 0 0;color:#788aa3;font-size:11px;white-space:normal}
#dashboard #users-view .account-directory-controls{display:flex;align-items:center;justify-content:flex-end;flex:1 1 490px;gap:9px;min-width:0}
#dashboard #users-view .account-directory-controls .account-search-label{position:relative;flex:1 1 260px;max-width:360px;min-width:160px;margin:0!important;display:block}
#dashboard #users-view .account-search-label>svg{position:absolute;z-index:1;top:50%;left:12px;transform:translateY(-50%);width:17px;height:17px;color:#8497ae;pointer-events:none}
#dashboard #users-view #account-user-search{height:41px!important;min-height:41px!important;background:#fff!important;border:1px solid #dce5f0!important;border-radius:9px!important;padding:8px 11px 8px 38px!important;font-size:12px!important;color:#263b55!important;box-shadow:0 1px 3px #152c4708!important;min-width:0}
#dashboard #users-view #account-user-search:focus{border-color:#6c94ce!important;box-shadow:0 0 0 3px #3e78c11e!important}
#dashboard #users-view .account-directory-actions{display:flex;gap:7px;align-items:center;flex:0 0 auto}
#dashboard #users-view .account-directory-actions .btn{height:41px!important;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;background:#fff!important;border-color:#dce5f0!important;color:#385170!important;padding:9px 12px!important}
#dashboard #users-view .account-directory-actions .btn:hover{background:#f1f6fd!important;border-color:#bdd1eb!important}
#dashboard #users-view .account-directory-actions svg{width:16px;height:16px;flex:none}
#dashboard #users-view .account-toggle-icon{transition:transform .18s ease}
#dashboard #users-view .users-list-minimized .account-toggle-icon{transform:rotate(180deg)}
#dashboard #users-view .account-directory-panel>.table-wrap{border:0!important;border-radius:0!important}
#dashboard #users-view .account-directory-panel>.mobile-users-list{padding:14px}
#dashboard #users-view .users-list-minimized .account-directory-toolbar{border-bottom:0!important}
#dashboard #users-view .mobile-user-card{border:1px solid #e3eaf4!important;box-shadow:0 5px 16px #1a355009!important}
#dashboard #users-view .mobile-user-card>.btn{min-height:40px!important;color:#265a9b!important;background:#f3f7fd!important;border-color:#dce6f6!important}
/* Individual display overrides, condensed and useful as a sortable-by-eye roster */
#dashboard .settings-override-directory{margin-top:25px;padding:23px 0 0}
#dashboard .override-directory-head{margin-bottom:16px;align-items:center}
#dashboard .override-directory-head h3{font-size:16px!important;letter-spacing:-.02em}
#dashboard .override-directory-head p{font-size:11.5px;color:#6e8198;max-width:720px}
#dashboard .override-count{border:1px solid #dbe6f7;background:#edf4ff;color:#2b5a99;padding:9px 12px;border-radius:9px;font-size:11px;font-weight:800}
#dashboard .override-table-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 12px}
#dashboard .override-directory-search{position:relative;min-width:220px;max-width:370px;flex:1 1 260px}
#dashboard .override-directory-search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#8ba0b7}
#dashboard .override-directory-search input{width:100%;min-height:39px;padding:9px 12px 9px 37px;border:1px solid #dbe5f0;border-radius:9px;background:#fff;color:#243954;font-size:12px;outline:none}
#dashboard .override-directory-search input:focus{border-color:#7ea1d1;box-shadow:0 0 0 3px #376fb516}
#dashboard .override-directory-help{color:#8394a9;font-size:11px}
#dashboard .override-table-host{border:1px solid #e3eaf3;border-radius:12px;background:#fff;overflow:hidden}
#dashboard .override-table-scroll{overflow-x:auto;max-width:100%}
#dashboard .override-traders-table{width:100%;min-width:750px;border-collapse:collapse}
#dashboard .override-traders-table th{background:#f7f9fc!important;color:#6b7d95!important;text-transform:uppercase!important;letter-spacing:.055em!important;font-size:10px!important;padding:14px!important;white-space:normal!important}
#dashboard .override-traders-table td{padding:12px 14px!important;color:#2c405a!important;vertical-align:middle!important;white-space:normal!important}
#dashboard .override-traders-table tbody tr:nth-child(even){background:#fcfdff}
#dashboard .override-trader-identity{display:flex;align-items:center;gap:10px;min-width:145px}
#dashboard .override-trader-identity>span:last-child{min-width:0;display:flex;flex-direction:column;gap:3px}
#dashboard .override-trader-identity strong{font-size:12px;font-weight:800;color:#243953;overflow-wrap:anywhere}
#dashboard .override-trader-identity small{font-size:10px;color:#8293a8;overflow-wrap:anywhere}
#dashboard .override-trader-avatar{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;border-radius:9px;background:#e9f1fc;color:#3667a4;font-size:12px;font-weight:830}
#dashboard .override-state{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid transparent;padding:5px 8px;border-radius:7px;font-size:10px;font-weight:790}
#dashboard .override-state-dot{width:6px;height:6px;border-radius:50%;background:currentColor}
#dashboard .override-state.is-enabled{background:#ebf8f1;color:#16845e;border-color:#cdebdc}
#dashboard .override-state.is-disabled{background:#fff0f1;color:#b14b54;border-color:#f2d5d8}
#dashboard .override-state.is-inherited{background:#f2f5f9;color:#73859e;border-color:#e5eaf0;font-weight:660}
#dashboard .override-action-cell{text-align:right;white-space:nowrap!important}
#dashboard .override-edit-btn.btn{white-space:nowrap;color:#285ca4!important;background:#f2f7ff!important;border-color:#dce7f7!important}
#dashboard .override-edit-btn span{padding-left:6px}
#dashboard .override-empty-state{padding:34px 16px;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;color:#667c96;font-size:11px}
#dashboard .override-empty-state strong{color:#253e5b;font-size:13px}
/* Managed account: strong user identity, logically grouped controls. */
#dashboard #account-detail{padding:0!important;overflow:hidden!important;background:#f8fafd!important;border:1px solid #dce5f1!important;box-shadow:0 14px 40px #23436c12!important}
#dashboard #account-detail .managed-account-identity{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:21px 24px!important;background:linear-gradient(115deg,#e8f1ff 0%,#f6f9ff 60%,#fff 100%);border-left:5px solid #2a65b5;border-bottom:1px solid #dbe6f5}
#dashboard #account-detail .managed-account-person{display:flex;align-items:center;gap:15px;min-width:0;flex:1 1 300px}
#dashboard #account-detail .managed-account-avatar{display:grid;place-items:center;width:57px;height:57px;flex:0 0 57px;background:#2c60a5;color:#fff;box-shadow:0 5px 14px #2c60a52c;border:3px solid #fff;border-radius:16px;font-size:23px;font-weight:850}
#dashboard #account-detail .managed-account-heading{min-width:0}
#dashboard #account-detail .managed-account-kicker{display:block;color:#5f789b;letter-spacing:.08em;font-size:9px;font-weight:820}
#dashboard #account-detail .managed-account-kicker strong{color:#285b9c}
#dashboard #account-detail .managed-account-heading h2{color:#183353!important;font-size:23px!important;font-weight:850!important;line-height:1.3!important;margin:4px 0 7px!important;overflow-wrap:anywhere}
#dashboard #account-detail .managed-account-tags{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
#dashboard #account-detail .managed-account-role{padding:4px 8px;background:#e3ecf8;border:1px solid #d1e1f5;color:#376393;font-size:10px;font-weight:790;border-radius:6px}
#dashboard #account-detail .managed-account-meta{margin:8px 0 0;color:#627b99;font-size:11px;overflow-wrap:anywhere}
#dashboard #account-detail .managed-account-meta span{color:#a3b3c5;padding:0 4px}
#dashboard #account-detail .managed-account-close.btn{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;background:#fff!important;color:#2b5e9f!important;border-color:#d7e3f2!important;padding:10px 14px!important}
#dashboard #account-detail .managed-account-close svg{width:15px;height:15px}
#dashboard #account-detail .profile-metrics{padding:18px 20px 4px;margin:0;gap:11px}
#dashboard #account-detail .profile-metrics>div{padding:14px 15px!important;border:1px solid #e1e9f4!important;border-radius:10px!important;background:#fff!important}
#dashboard #account-detail .profile-metrics>.profile-metric-balance{background:#f0f6ff!important;border-color:#d6e5f8!important}
#dashboard #account-detail .profile-metrics strong{font-size:20px!important;color:#1e3555!important;font-variant-numeric:tabular-nums}
#dashboard #account-detail .profile-layout{padding:14px 20px 0;gap:15px;align-items:stretch}
#dashboard #account-detail .profile-card{margin:0 20px 16px!important;padding:19px!important;border:1px solid #e1e8f2!important;box-shadow:0 3px 10px #21406c09!important;border-radius:12px!important;background:#fff!important;min-width:0}
#dashboard #account-detail .profile-layout>.profile-card{margin:0!important}
#dashboard #account-detail .managed-section-heading{display:flex;align-items:center;gap:10px;margin-bottom:17px;padding-bottom:14px;border-bottom:1px solid #e8edf5;min-width:0}
#dashboard #account-detail .managed-section-icon{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border-radius:10px;background:#edf3fc;color:#3567aa}
#dashboard #account-detail .managed-section-icon svg{width:18px;height:18px}
#dashboard #account-detail .managed-section-heading>div{min-width:0}
#dashboard #account-detail .managed-section-heading h3{font-size:15px!important;color:#223b5b!important;margin:0 0 3px!important}
#dashboard #account-detail .managed-section-heading p{font-size:11px;color:#7c8ca1;margin:0;line-height:1.45}
#dashboard #account-detail .profile-setting-item{padding:13px 14px 15px;background:#f9fbfe;border:1px solid #e6edf5;border-radius:10px;margin:10px 0}
#dashboard #account-detail .profile-setting-label{display:flex;flex-direction:column;gap:3px;margin-bottom:11px}
#dashboard #account-detail .profile-setting-label strong{font-size:12px;color:#28415f}
#dashboard #account-detail .profile-setting-label span{font-size:10px;color:#8494a8;line-height:1.5}
#dashboard #account-detail .profile-setting-item .profile-field label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#dashboard #account-detail .profile-setting-item .profile-field{grid-template-columns:minmax(0,1fr) auto;align-items:center}
#dashboard #account-detail .profile-setting-item .profile-field select{min-height:38px;color:#294362;border-color:#d9e4f0;background:#fff}
#dashboard #account-detail .profile-security-details{padding:14px;background:#fff;border:1px solid #e5ebf4;border-radius:10px;margin-top:16px}
#dashboard #account-detail .profile-mini-eyebrow{display:block;color:#8091a9;font-size:9px;letter-spacing:.11em;font-weight:830;margin-bottom:10px}
#dashboard #account-detail .profile-security-details dl{margin:0;gap:11px}
#dashboard #account-detail .profile-security-details dt{font-size:11px;color:#7587a0}
#dashboard #account-detail .profile-security-details dd{font-size:11px;color:#283f5c;font-weight:680}
#dashboard #account-detail .profile-account-actions{border-top:1px solid #e6edf5;margin-top:16px;padding-top:15px}
#dashboard #account-detail .profile-account-actions .actions{margin:0!important;overflow:visible!important;display:flex;flex-wrap:wrap!important;gap:7px!important}
#dashboard #account-detail .profile-account-actions .btn{min-height:36px!important;white-space:normal!important;text-align:center}
#dashboard #account-detail .profile-recent-card .profile-activity-count{color:#6f8199;background:#f5f8fc;border:1px solid #e6ecf5;border-radius:8px;padding:10px 12px;font-size:11px;font-weight:750;margin-bottom:13px}
#dashboard #account-detail .profile-activity-count span{font-weight:520;color:#8e9bad}
#dashboard #account-detail .profile-recent-card .account-activity{max-height:430px;overflow:auto;padding:0 3px 0 0}
#dashboard #account-detail .profile-recent-card .audit-event{grid-template-columns:27px minmax(0,1fr);gap:10px;border-bottom:1px solid #edf1f6;padding:12px 0!important}
#dashboard #account-detail .profile-recent-card .audit-event:last-child{border-bottom:0}
#dashboard #account-detail .profile-recent-card .audit-event:before{display:none}
#dashboard #account-detail .profile-recent-card .audit-dot{margin:3px 0 0 3px;width:20px;height:20px;border:5px solid #e8f0fc;background:#4d80bf}
#dashboard #account-detail .profile-recent-card .audit-event>div{min-width:0;line-height:1.6;color:#334966;font-size:11px;overflow-wrap:anywhere}
#dashboard #account-detail .profile-recent-card .audit-event time{font-size:10px;color:#96a4b6;margin-top:5px}
#dashboard #account-detail .profile-trades-card{margin-top:3px!important}
#dashboard #account-detail .managed-trade-section-heading{margin-bottom:0;flex-wrap:wrap}
#dashboard #account-detail .managed-trade-count{margin-left:auto;border-radius:8px;padding:8px 10px;background:#f4f7fb;border:1px solid #e5ecf5;color:#607895;font-size:10px;white-space:nowrap;font-weight:740}
#dashboard #account-detail .account-tabs{margin:15px 0!important;border:0!important;background:#f3f6fb;border-radius:10px;padding:4px;gap:3px!important;display:inline-flex!important;max-width:100%}
#dashboard #account-detail .account-tabs button{border:1px solid transparent!important;border-radius:8px!important;padding:10px 18px!important;color:#7789a1!important;font-weight:780!important}
#dashboard #account-detail .account-tabs button.active{background:#fff!important;color:#285fa4!important;border-color:#dce6f3!important;box-shadow:0 2px 6px #1f3c6212!important}
#dashboard #account-detail #account-table{max-width:100%;overflow:hidden}
#dashboard #account-detail #account-table .table-wrap{max-width:100%;overflow:auto;scrollbar-width:thin}
#dashboard #account-detail .trade-journal-card,#dashboard #account-detail .profile-ip-card{padding:0!important;overflow:hidden}
#dashboard #account-detail details.collapsible-profile-card>summary{display:flex;align-items:center;gap:12px;padding:17px 20px!important;background:#fff!important;border-bottom:0!important;margin:0!important;min-height:65px;cursor:pointer}
#dashboard #account-detail details.collapsible-profile-card[open]>summary{background:#f7faff!important;border-bottom:1px solid #e6edf5!important;margin-bottom:15px!important}
#dashboard #account-detail details.collapsible-profile-card>summary::after{margin-left:4px;flex:none}
#dashboard #account-detail details.collapsible-profile-card>summary small{margin-left:auto;white-space:normal;text-align:right;line-height:1.35;color:#8494a9;font-size:10px}
#dashboard #account-detail .journal-summary-title{display:flex;gap:11px;align-items:center;min-width:0;flex:1}
#dashboard #account-detail .journal-summary-symbol{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;background:#edf3fc;color:#3769ac;border-radius:10px}
#dashboard #account-detail .journal-summary-symbol svg{width:18px;height:18px}
#dashboard #account-detail .journal-summary-title>span:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}
#dashboard #account-detail .journal-summary-title strong{color:#233c5d;font-size:13px;font-style:normal}
#dashboard #account-detail .journal-summary-title em{font-size:10px;font-weight:520;color:#8c9db1;font-style:normal}
#dashboard #account-detail .trade-journal-card>p{color:#71839d;line-height:1.6}
#dashboard #account-detail .journal-filter-controls{display:flex;flex-wrap:wrap;gap:10px;margin:14px 20px!important;padding:13px;border-radius:9px;background:#f7f9fd;border:1px solid #e6ecf4}
#dashboard #account-detail .journal-filter-controls label{min-width:130px;flex:1 1 145px;color:#687b95}
#dashboard #account-detail .journal-filter-controls input,#dashboard #account-detail .journal-filter-controls select{min-height:38px;border:1px solid #dce5f1;border-radius:7px;background:#fff;min-width:0;width:100%;color:#2b4160}
#dashboard #account-detail .trade-audit-list{margin:0 20px 15px!important;max-height:460px;overflow:auto}
#dashboard #account-detail .trade-log-older{margin:0 20px 20px}
/* Native dialog: accessible focus trap, Escape dismiss and backdrop come from showModal(). */
#hide-delete-dialog.destructive-trade-dialog{position:fixed;inset:0;margin:auto;z-index:200;width:min(510px,calc(100% - 26px));max-width:510px;max-height:min(90dvh,760px);overflow-y:auto;box-sizing:border-box;background:#fff;color:#243754;border:1px solid #e2e8f1;border-radius:17px;padding:23px;box-shadow:0 24px 100px #091a3559;color-scheme:light}
#hide-delete-dialog.destructive-trade-dialog::backdrop{background:rgba(12,24,43,.58);backdrop-filter:blur(3px)}
#hide-delete-dialog .destructive-dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
#hide-delete-dialog .destructive-dialog-symbol{display:grid;place-items:center;width:49px;height:49px;border-radius:13px;background:#fff0f0;border:1px solid #f6d9dc;color:#c04550}
#hide-delete-dialog .destructive-dialog-symbol svg{width:25px;height:25px}
#hide-delete-dialog .destructive-dialog-close{display:grid;place-items:center;width:34px;height:34px;color:#8393a8;background:#f4f7fb;border:1px solid #e7ecf3;border-radius:9px;font:700 14px system-ui;cursor:pointer}
#hide-delete-dialog h2{font-size:20px;line-height:1.3;letter-spacing:-.025em;color:#1e344f;margin:0 0 9px;font-weight:820}
#hide-delete-dialog #hide-delete-explanation{color:#657b95;font-size:12px;line-height:1.65;margin:0 0 17px}
#hide-delete-dialog .destructive-trade-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}
#hide-delete-dialog .destructive-trade-details>div{padding:11px 12px;background:#f8faff;border:1px solid #e6ebf3;border-radius:9px;min-width:0}
#hide-delete-dialog .destructive-trade-details span{display:block;color:#8293a7;font-size:10px;margin-bottom:5px}
#hide-delete-dialog .destructive-trade-details strong{display:block;color:#263d58;font-size:13px;overflow-wrap:anywhere}
#hide-delete-dialog .destructive-trade-details small{display:block;color:#8293a7;font-size:10px;margin-top:3px;overflow-wrap:anywhere}
#hide-delete-dialog .destructive-trade-details .destructive-reversal{background:#fff7f6;border-color:#f4dddc}
#hide-delete-dialog .destructive-reversal strong{color:#ab3b46;font-size:12px;line-height:1.45}
#hide-delete-dialog .destructive-warning{display:flex;flex-direction:column;gap:5px;border:1px solid #f3d2d5;background:#fff4f5;padding:12px;border-radius:9px;color:#9f3844;font-size:11px;line-height:1.55;margin-bottom:16px}
#hide-delete-dialog .destructive-warning strong{font-size:12px}
#hide-delete-dialog .destructive-type-label{display:block;color:#354d6a;font-size:11px;font-weight:680}
#hide-delete-dialog .destructive-type-label>strong{color:#bb3846;letter-spacing:.04em}
#hide-delete-dialog #hide-delete-phrase{display:block;margin-top:7px;width:100%;height:42px;padding:9px 12px;background:#fff;border:1px solid #d6e0ed;border-radius:8px;font:700 13px system-ui;color:#263d58;outline:none}
#hide-delete-dialog #hide-delete-phrase:focus{border-color:#c86370;box-shadow:0 0 0 3px #e66e7d18}
#hide-delete-dialog .destructive-error{padding:9px;border-radius:7px;background:#fff0f1;color:#ae3747;font-size:11px}
#hide-delete-dialog .destructive-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;border-top:1px solid #e9edf3;margin-top:20px;padding-top:17px}
#hide-delete-dialog .destructive-dialog-actions button{padding:11px 14px;border-radius:8px;font:760 12px system-ui;cursor:pointer;min-height:42px}
#hide-delete-dialog .destructive-cancel{background:#fff;border:1px solid #d7e1ee;color:#536b8a}
#hide-delete-dialog .destructive-submit{background:#be3545;border:1px solid #be3545;color:#fff;box-shadow:0 3px 8px #be35451c}
#hide-delete-dialog .destructive-submit:disabled{background:#f1d6da;border-color:#f1d6da;color:#fff;cursor:not-allowed;box-shadow:none}
#hide-delete-dialog button:focus-visible{outline:3px solid #8eb6eb;outline-offset:2px}
@media(max-width:1000px){
 #dashboard #users-view .account-directory-title{flex:1 1 100%}
 #dashboard #users-view .account-directory-controls{flex-basis:100%;justify-content:space-between}
 #dashboard #users-view .account-directory-controls .account-search-label{max-width:none}
 #dashboard #account-detail .managed-account-identity{padding:17px 18px!important}
 #dashboard #account-detail .profile-layout{padding:12px 15px 0}
 #dashboard #account-detail .profile-card{margin:0 15px 14px!important}
 #dashboard #account-detail .profile-layout>.profile-card{margin:0!important}
 #dashboard #account-detail .profile-metrics{padding:15px 15px 3px}
}
@media(max-width:700px){
 #dashboard #users-view .account-directory-toolbar{padding:15px!important;gap:13px!important}
 #dashboard #users-view .account-directory-symbol{width:38px;height:38px}
 #dashboard #users-view .account-directory-title{flex-basis:100%}
 #dashboard #users-view .account-directory-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:100%}
 #dashboard #users-view .account-directory-controls .account-search-label{width:100%;max-width:none;min-width:0}
 #dashboard #users-view .account-directory-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #dashboard #users-view .account-directory-actions .btn{width:100%;min-width:0;min-height:39px!important}
 #dashboard .override-table-host{border:0;background:transparent;overflow:visible}
 #dashboard .override-table-scroll{overflow:visible}
 #dashboard .override-traders-table,#dashboard .override-traders-table tbody{min-width:0;display:block}
 #dashboard .override-traders-table thead{display:none}
 #dashboard .override-traders-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid #e3eaf3!important;border-radius:11px;margin-bottom:11px;background:#fff!important;overflow:hidden}
 #dashboard .override-traders-table td{display:flex;flex-direction:column;justify-content:center;gap:7px;padding:12px!important;border-bottom:1px solid #eef1f6!important;min-width:0}
 #dashboard .override-traders-table td:first-child{grid-column:1/-1;background:#f8faff}
 #dashboard .override-traders-table td:not(:first-child):not(:last-child)::before{content:attr(data-label);font-size:9px;letter-spacing:.04em;color:#8293a9;font-weight:780;text-transform:uppercase;line-height:1.4}
 #dashboard .override-traders-table td:nth-child(4){grid-column:1/-1}
 #dashboard .override-traders-table td:last-child{grid-column:1/-1;align-items:stretch;border-bottom:0}
 #dashboard .override-edit-btn.btn{width:100%;min-height:37px!important}
 #dashboard #account-detail .managed-account-identity{gap:12px;padding:16px 13px!important}
 #dashboard #account-detail .managed-account-person{align-items:flex-start;gap:10px}
 #dashboard #account-detail .managed-account-avatar{height:44px;width:44px;flex-basis:44px;border-radius:12px;font-size:18px}
 #dashboard #account-detail .managed-account-heading h2{font-size:19px!important}
 #dashboard #account-detail .managed-account-meta{line-height:1.55}
 #dashboard #account-detail .managed-account-close.btn{width:100%;justify-content:center}
 #dashboard #account-detail .profile-metrics{gap:8px}
 #dashboard #account-detail .profile-metrics>div{padding:11px!important}
 #dashboard #account-detail .profile-metrics strong{font-size:16px!important}
 #dashboard #account-detail .profile-layout{padding:10px 12px 0}
 #dashboard #account-detail .profile-card{margin:0 12px 12px!important;padding:13px!important}
 #dashboard #account-detail .profile-layout>.profile-card{margin:0!important}
 #dashboard #account-detail .managed-trade-count{flex-basis:100%;margin-left:45px;white-space:normal;width:max-content;max-width:100%}
 #dashboard #account-detail .managed-section-heading p{font-size:10px}
 #dashboard #account-detail .profile-setting-item .profile-field{grid-template-columns:minmax(0,1fr)}
 #dashboard #account-detail .profile-setting-item .profile-field .btn{width:100%}
 #dashboard #account-detail .profile-recent-card .audit-event{gap:6px}
 #dashboard #account-detail .account-tabs{display:flex!important;width:100%}
 #dashboard #account-detail .account-tabs button{flex:1!important;padding:10px 6px!important;font-size:10.5px!important}
 #dashboard #account-detail details.collapsible-profile-card>summary{padding:13px!important;gap:8px}
 #dashboard #account-detail .journal-summary-title{gap:8px}
 #dashboard #account-detail .journal-summary-symbol{height:32px;width:32px;flex-basis:32px}
 #dashboard #account-detail details.collapsible-profile-card>summary small{max-width:30%;font-size:9px}
 #dashboard #account-detail .journal-filter-controls{margin:12px!important;padding:10px;gap:8px}
 #dashboard #account-detail .trade-audit-list{margin:0 12px 12px!important}
 #hide-delete-dialog.destructive-trade-dialog{padding:18px;max-height:calc(100dvh - 22px)}
}
@media(max-width:370px){
 #dashboard .override-traders-table tbody tr{grid-template-columns:1fr}
 #dashboard .override-traders-table td{grid-column:1/-1!important}
 #dashboard #users-view .account-directory-actions .btn{font-size:10px!important;padding:8px 7px!important}
 #hide-delete-dialog .destructive-trade-details{grid-template-columns:1fr}
 #hide-delete-dialog .destructive-dialog-actions{flex-direction:column-reverse}
 #hide-delete-dialog .destructive-dialog-actions button{width:100%}
}
