/* Management workspace, aligned with the approved light theme. */
.admin-shell{--panel:#fff;--line:#dce5ee;--muted:#5d7088;--mint:#007e78;--purple:#00857c;--red:#a12e39;background:#f1f5f8;color:#182d45;font-size:16px}
.admin-shell .sidebar{background:#14263d;color:#e6eff9;border:0;padding:18px 14px}
.admin-shell .sidebar .brand{align-items:center;padding:0 4px 18px;color:#fff}
.admin-shell .brand-icon{width:62px;height:62px;flex:0 0 62px;clip-path:none;background:transparent;border-radius:50%;overflow:hidden}
.admin-shell .brand-icon img{width:100%;height:100%;object-fit:contain}
.admin-shell .brand b{font-size:21px;letter-spacing:0}
.admin-shell .brand small{color:#c1d0df;font-size:11px}
.admin-shell .nav-label{color:#a5b5c8;padding:8px 10px;font-size:13px}
.admin-shell .sidebar nav{overflow-y:auto;min-height:0}
.admin-shell .nav-item{min-height:43px;padding:9px 12px;color:#c6d5e3;font-size:16px;margin:2px 0;border-radius:9px}
.admin-shell .nav-item.active{background:#216a69;color:white;font-weight:700}
.admin-shell .sidebar-bottom{padding:10px 4px 0;margin-top:auto}
.admin-shell .sidebar-bottom a,.admin-shell .sidebar-bottom p{color:#b9c9d9;font-size:13px}
.admin-shell .main{background:#f1f5f8;padding:26px 34px 50px}
.admin-shell .topbar{background:transparent;border:0;border-bottom:1px solid #dbe5ed;border-radius:0;padding:0 0 18px;margin-bottom:20px;color:#182d45}
.admin-shell .topbar h1{font-size:29px;color:#152a43;margin:4px 0 8px}.admin-shell .topbar p,.admin-shell .eyebrow{color:#5d7088;font-size:14px}
.admin-shell .top-actions{gap:8px}.admin-shell button{background:#fff;color:#17334a;border:1px solid #ccdbe5;border-radius:8px;min-height:44px;font-size:15px}.admin-shell button:hover{filter:brightness(.97)}.admin-shell button:disabled{cursor:not-allowed}.admin-shell .primary{background:#007e78;border-color:#007e78;color:white}.admin-shell .danger{color:#9a2735;background:#fff0f1;border-color:#e7b4b9}.admin-shell .ghost{background:#fff}
.admin-shell .panel,.admin-shell .metric,.admin-shell .project-card,.admin-shell .dash-panel,.admin-shell .dash-stat{background:#fff;color:#182d45;box-shadow:none;border:1px solid #dce5ee}
.admin-shell .panel{padding:22px;border-radius:14px}.admin-shell .panel h2,.admin-shell .dash-panel-title h2{font-size:20px;color:#172e45}.admin-shell .panel h3{font-size:18px;color:#172e45}
.admin-shell .panel p,.admin-shell .field label,.admin-shell .check{color:#536b80;font-size:15px;line-height:1.6}
.admin-shell .notice,.admin-shell .dash-notice{background:#e8f4f2;color:#365e60;border:1px solid #cce4df;font-size:14px;line-height:1.6}.admin-shell .notice strong,.admin-shell .dash-notice strong{color:#006e68}
.admin-shell input:not([type=checkbox]):not([type=radio]),.admin-shell select,.admin-shell textarea{background:#f8fafc;color:#1b344c;border:1px solid #cedde7;min-height:44px;font-size:16px;color-scheme:light}.admin-shell input::placeholder,.admin-shell textarea::placeholder{color:#71879b}
.admin-shell input:focus,.admin-shell select:focus,.admin-shell textarea:focus{outline-color:#007e78;border-color:#007e78}.admin-shell input[type=checkbox]{accent-color:#007e78}
.admin-shell .tag.green{background:#dff3ed;color:#006c62}.admin-shell .tag.purple{background:#e9f0f6;color:#405a70}.admin-shell .tag.red{background:#fbe7e8;color:#a02c36}
.admin-shell .metric label,.admin-shell .metric small{color:#5b7087;font-size:14px}.admin-shell .metric .value{color:#172e45;font-size:28px}.admin-shell .metric.highlight{background:#eef8f6}.admin-shell .positive{color:#007e78}.admin-shell .negative{color:#b23740}
.admin-shell table{font-size:15px;color:#1b344c}.admin-shell th{background:#f1f5f7;color:#5d7088;font-weight:700}.admin-shell td{border-color:#e1e8ee}.admin-shell td small{color:#60768a}.admin-shell .empty{border-color:#d4e1e7;color:#657b8d}
.admin-shell .project-card .number{color:#60768a;font-size:13px}.admin-shell .project-card h3{font-size:18px}.admin-shell .bar,.admin-shell .dash-track{background:#e3efed}.admin-shell .bar span{background:#00847a}
.admin-shell .result,.admin-shell .selection-summary{background:#edf8f4;color:#173d37;border-color:#c6e4da}.admin-shell .result h3,.admin-shell .selection-summary strong{color:#007e78}
.admin-shell .subtle,.admin-shell .muted{color:#62798d}.admin-shell .audit-details{color:#4b657a}.admin-shell .mobile-console-nav{background:#fff;border-color:#dce5ee}.admin-shell .mobile-console-nav label{color:#516b80}
.admin-shell .media-form{background:#fff;border-color:#dce5ee}.admin-shell .media-form>strong{color:#172e45}.admin-shell .media-form>small{color:#60768a}.admin-shell .media-preview{background:#edf3f4;color:#5e7589}
.admin-shell .media-preview{height:auto;width:100%;position:relative;display:block}
.admin-shell .media-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.admin-shell .media-preview>span{position:absolute;inset:0;display:grid;place-items:center}
.admin-shell .media-preview-status{font-size:14px;color:#007d77!important;line-height:1.4}
.admin-shell .media-form input[type=file]{font-size:14px;min-height:48px}
.admin-shell .member-search-bar span{color:#60768a}
.admin-shell .dash-heading h2,.admin-shell .dash-heading span,.admin-shell .dash-stat>strong,.admin-shell .dash-panel-title h2,.admin-shell .dash-detail strong{color:#172e45}.admin-shell .dash-heading p,.admin-shell .dash-live,.admin-shell .dash-live small,.admin-shell .dash-stat-top,.admin-shell .dash-stat>small,.admin-shell .dash-stat>strong small,.admin-shell .dash-panel-title p,.admin-shell .dash-caption,.admin-shell .dash-detail span,.admin-shell .dash-detail small{color:#5d7088}
.admin-shell .dash-stat{padding:20px;gap:10px}.admin-shell .dash-stat.is-gold{background:#fff;border-color:#dce5ee}.admin-shell .dash-stat>strong{font-size:26px}.admin-shell .dash-stat>small{font-size:13px}.admin-shell .dash-stat-top{font-size:15px}.admin-shell .dash-stat-top i{background:#e5f4f0;color:#007e78}
.admin-shell .dash-quick-group{background:white;border-color:#dce5ee}.admin-shell .dash-quick-group .dash-quick{color:#426079}.admin-shell .dash-quick-group .dash-quick.is-active{background:#dff3ed;color:#006e68}.admin-shell .dash-dates label,.admin-shell .dash-dates>span{color:#5d7088;font-size:14px}
.admin-shell .dash-panel{padding:21px}.admin-shell .dash-panel-title p,.admin-shell .dash-caption{font-size:14px}.admin-shell .dash-grid-line{stroke:#b4c7d1}.admin-shell .dash-zero-line{stroke:#829baa}.admin-shell .dash-axis{fill:#60768a}.admin-shell .dash-bar-positive{fill:#53b6aa}.admin-shell .dash-bar-negative{fill:#d56e76}
.admin-shell .dash-empty{border-color:#d4e1e7;color:#62798d;font-size:15px}.admin-shell .dash-donut>div{background:#fff}.admin-shell .dash-donut strong{color:#172e45}.admin-shell .dash-donut span,.admin-shell .dash-legend li,.admin-shell .dash-legend b{color:#4f687b}.admin-shell .dash-legend li{font-size:14px;border-color:#e4ecef}.admin-shell .dash-rank-label,.admin-shell .dash-rank-label strong,.admin-shell .dash-rank-label em{color:#28445b;font-size:14px}.admin-shell .dash-detail>div{background:#f5f9f9;border-color:#dce9e6}.admin-shell .dash-detail-link{color:#007e78}
.admin-shell .project-poster{width:90px;aspect-ratio:302/505;flex:none;border-radius:6px;background-repeat:no-repeat;background-color:#e8eeef;background-size:510% 203%;background-image:url('/brand-posters-10.png')}.admin-shell .project-poster.custom{background:none;object-fit:contain}.admin-shell .project-poster.second{background-image:url('/brand-posters-2.png');background-size:202% 100%}
.admin-shell .project-visual{display:flex;align-items:start;gap:14px;margin-bottom:15px}.admin-shell .project-visual .number{margin:0}.admin-shell .project-grid{align-items:stretch}
@media(max-width:1100px){.admin-shell .main{padding:22px}.admin-shell .dash-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.admin-shell .main{padding:16px 12px 36px}.admin-shell .sidebar{padding:12px}.admin-shell .topbar h1{font-size:24px}.admin-shell .panel{padding:16px}.admin-shell .project-grid{grid-template-columns:1fr}.admin-shell .dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-shell .brand-icon{width:48px;height:48px;flex-basis:48px}}
/* Modal dialogs are siblings of the workspace, so scope them through the active admin shell. */
body:has(.admin-shell) dialog{background:#fff;color:#17334a;border-color:#d3e1e7}
body:has(.admin-shell) dialog h2,body:has(.admin-shell) dialog h3{color:#17334a}
body:has(.admin-shell) dialog p,body:has(.admin-shell) dialog label{color:#4e6578;font-size:15px}
body:has(.admin-shell) dialog input:not([type=checkbox]):not([type=radio]),body:has(.admin-shell) dialog select,body:has(.admin-shell) dialog textarea{background:#f8fafc;color:#17334a;border-color:#cddce6;min-height:44px;font-size:16px}
body:has(.admin-shell) dialog button{background:#fff;color:#17334a;border-color:#cddce6;min-height:44px;font-size:15px}
body:has(.admin-shell) dialog .primary{background:#007e78;border-color:#007e78;color:#fff}
body:has(.admin-shell) dialog .danger{background:#fff0f1;border-color:#e7b4b9;color:#9a2735}
/* Override legacy dark-theme rules at equal or higher specificity. */
.shell.admin-shell .sidebar .nav-item{background:transparent;border:1px solid transparent;color:#c6d5e3;box-shadow:none}
.shell.admin-shell .sidebar .nav-item:hover{background:#1d4f56;border-color:transparent;color:#fff}
.shell.admin-shell .sidebar .nav-item.active,.shell.admin-shell .sidebar .nav-item.active:hover{background:#216a69;border-color:#216a69;color:#fff;box-shadow:none}
.shell.admin-shell button.primary,.shell.admin-shell .primary{background:#007e78;border-color:#007e78;color:#fff}
.shell.admin-shell button.primary:hover{background:#006d68;border-color:#006d68;color:#fff}
/* On phones, full-width date fields keep the complete date readable. */
@media(max-width:620px){
 .admin-shell .dash-dates{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:100%}
 .admin-shell .dash-dates label{display:flex;width:100%;min-width:0;font-size:15px}
 .admin-shell .dash-dates input[type=date]{width:100%;min-width:0;max-width:none;min-height:48px;font-size:16px}
 .admin-shell .dash-dates>span{display:none}
 .admin-shell .dash-dates button{width:100%;min-height:48px;font-size:16px}
}
/* Member export controls keep labels and inputs aligned at large cashier-friendly sizes. */
.export-member-filter{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px}
.export-member-filter>label{display:flex;flex-direction:column;gap:8px;font-size:16px}
.export-member-filter input,.export-member-filter button{min-height:48px;font-size:17px}
.export-member-filter input[type=date]{min-width:175px}
.export-member-filter #member-search-input{flex:1;min-width:200px}
@media(max-width:700px){.export-member-filter>label,.export-member-filter>button{width:100%}.export-member-filter input[type=date]{width:100%}}
/* Clear status/channel hierarchy for card sales, with large full-row targets. */
.admin-shell .card-sales-grid{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:24px;align-items:start}
.card-product-form fieldset{min-width:0;margin:20px 0 0;padding:0;border:0}
.card-product-form legend{font-size:19px;font-weight:750;margin-bottom:12px;color:#203547}
.card-product-form legend small{font-size:15px;color:#637585;font-weight:400;margin-left:8px}
.card-status-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.card-status-options label,.card-channel-option{display:flex;align-items:center;gap:12px;padding:16px;border:2px solid #dce5e9;border-radius:12px;cursor:pointer;background:#fff;min-height:76px}
.card-status-options input,.card-channel-option input{width:22px!important;height:22px!important;min-height:22px!important;flex:0 0 22px;accent-color:#007e78;margin:0}
.card-status-options span,.card-channel-option span{display:flex;flex-direction:column;gap:6px}
.card-status-options strong,.card-channel-option strong{font-size:19px;color:#243c4b}
.card-status-options small,.card-channel-option small{font-size:15px;line-height:1.5;color:#526979}
.card-status-options label:has(:checked),.card-channel-option:has(:checked){border-color:#007e78;background:#eaf7f4}
.card-status-options label:has(:focus-visible),.card-channel-option:has(:focus-visible){outline:3px solid #e7b651;outline-offset:3px}
.card-channel-option+.card-channel-option{margin-top:10px}
.card-sale-channels:disabled{opacity:.55}
.card-sale-channels:disabled label{cursor:not-allowed;background:#f0f3f5;border-color:#d6dee3}
.card-sale-outcome{padding:14px 16px;background:#eef4f8;border-radius:10px;color:#304d60!important;font-size:16px!important;line-height:1.6;min-height:72px;margin:18px 0!important}
.card-product-form>button.primary{min-height:52px;font-size:18px}
@media(max-width:700px){.admin-shell .card-sales-grid{grid-template-columns:minmax(0,1fr)}.card-status-options{grid-template-columns:minmax(0,1fr)}}
.card-channel-status{padding:16px!important;border:1px solid #dce5e9!important;border-radius:12px;background:#f8fbfc}
.card-channel-status legend{padding:0 6px;margin-bottom:0}
.card-channel-description{font-size:15px!important;line-height:1.5;color:#526979!important;margin:0 0 12px!important}
.card-channel-status .card-status-options label{min-height:60px;padding:14px}
.overview-quick{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:18px}
.overview-quick button{min-height:48px;min-width:104px;font-size:18px;font-weight:650}
.overview-quick button[aria-pressed=true]{background:#007e78;border-color:#007e78;color:#fff}
.overview-quick span{font-size:16px;color:#526979}
@media(max-width:620px){.overview-quick button{flex:1;min-width:80px}.overview-quick span{width:100%}}
.admin-shell .dash-core-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.admin-shell .dash-member-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:0}
.admin-shell button.dash-stat-link{display:flex;flex-direction:column;align-items:stretch;text-align:left;white-space:normal;width:100%;cursor:pointer}
.admin-shell button.dash-stat-link:hover{border-color:#007e78;background:#edf8f5}
.admin-shell .dash-stat-top{font-size:17px}
.admin-shell .dash-stat>small{font-size:15px;line-height:1.6}
.business-tabs{display:flex;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.business-tabs button{min-height:50px;min-width:140px;font-size:19px;font-weight:650}
.business-tabs button[aria-pressed=true]{background:#007e78;border-color:#007e78;color:white}
.business-filter{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;padding:18px;background:white;border:1px solid #dce5ee;border-radius:14px}
.business-filter>label:not(.check){display:flex;flex-direction:column;gap:8px;font-size:16px;color:#304958;flex:1;min-width:155px}
.business-filter input,.business-filter select,.business-filter button{font-size:17px;min-height:48px}
.business-filter .check{min-height:48px;margin:0;display:flex;align-items:center;gap:9px}
.business-filter .check input{min-height:22px;width:22px;height:22px;accent-color:#007e78}
.business-totals{display:flex;gap:24px;flex-wrap:wrap;margin:20px 0 10px;padding:18px;background:#eaf5f2;border-radius:12px;font-size:17px;color:#284a4a}
.business-totals strong{font-size:24px;margin-left:8px}
@media(max-width:1100px){.admin-shell .dash-core-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.admin-shell .dash-member-stats{grid-template-columns:1fr}.business-tabs button{flex:1;min-width:80px;font-size:16px}.business-filter>label:not(.check){min-width:100%}.business-filter button{flex:1}.business-totals{flex-direction:column;gap:12px}}
