/* This stylesheet applies only to the redesigned administrator surface. */
.aw-shell{--bg:#f5f6f8;--panel:#fff;--ink:#242733;--muted:#737887;--line:#e6e8ed;--primary:#7444d7;--accent:#7444d7;grid-template-columns:224px minmax(0,1fr);background:var(--bg);color:var(--ink);font-size:13px;line-height:1.5;min-height:100svh}
.aw-shell *{box-sizing:border-box}.aw-shell a,.aw-shell button{transition:background .14s,color .14s}.aw-shell svg,.aw-command svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}.aw-shell button,.aw-shell input,.aw-shell select{font-size:12px;min-height:34px;border-radius:6px}.aw-shell button{padding:7px 12px}.aw-shell button.primary{color:white}.aw-shell input:focus,.aw-shell select:focus{outline:2px solid #7444d72b;outline-offset:1px}.aw-shell :focus-visible,.aw-command :focus-visible{outline:2px solid #a689e6;outline-offset:3px}.aw-shell .aw-sidebar{background:#171a24;color:#d8dbe4;padding:25px 14px 20px;border:0;overflow:auto;height:100svh;position:sticky;top:0;z-index:30}.aw-sidebar .brand{color:#fff;font-size:14px;padding:0 11px;letter-spacing:.025em}.aw-sidebar .brand img{width:29px;height:29px}.aw-shop-label{color:#9096a7;font-size:10px;display:flex;align-items:center;gap:7px;margin:16px 11px 33px}.aw-shop-label i{width:5px;height:5px;border-radius:50%;background:#8fc7b2}.aw-sidebar nav{gap:5px;display:grid}.aw-sidebar nav a{display:flex;align-items:center;gap:11px;padding:11px 12px;color:#aeb4c5;font-size:12px;white-space:normal;border-radius:6px}.aw-sidebar nav a.active{background:#2e283f;color:#ebe4fc;box-shadow:inset 2px 0 #a17be9}.aw-sidebar nav a:hover{background:#242835;color:white}.aw-sidebar nav a svg{width:18px;height:18px;color:#8f97ab}.aw-sidebar nav a.active svg{color:#be9eed}.aw-nav-count:empty{display:none}.aw-nav-count{margin-left:auto;font-size:10px;background:#463658;color:#dcc1f9;padding:1px 6px;border-radius:4px}.aw-sidebar .bottom{margin-top:auto;padding:38px 11px 0;gap:14px;color:#929aad;font-size:11px}.aw-sidebar .bottom a{color:#a6aec0}.aw-sidebar .bottom small{font-size:8px;letter-spacing:.1em;color:#646e83;margin-top:10px}.aw-sidebar .aw-legacy{background:none;border:0;padding:0;min-height:0;color:#929aad;align-self:start;text-align:left;font-size:11px}.aw-sidebar .aw-legacy:hover{background:none;color:#eee}.aw-shell .admin-top{height:66px;padding:0 32px;background:#fff;border-color:var(--line);position:sticky;top:0;z-index:20}.aw-breadcrumb{display:flex;align-items:center;gap:10px;color:#858a98;font-size:11px}.aw-breadcrumb b{margin:0 10px;color:#c9cbd1;font-weight:400}.aw-breadcrumb strong{color:#464b5b;font-weight:500}.aw-shell .admin-top .actions{gap:16px}.aw-shell .avatar{width:30px;height:30px;font-size:11px;background:#f0ebf9;color:#774fae}.aw-shell .admin-top .ghost{min-height:28px;padding:3px 0;font-size:11px;color:#737887}.aw-shell .aw-search-open{display:flex;align-items:center;gap:9px;background:#f8f9fb;color:#8b8f9c;border-color:#eceef2;width:215px;min-height:33px;font-size:11px}.aw-search-open svg{width:15px;height:15px}.aw-search-open kbd{margin-left:auto;font:10px inherit;border:1px solid #e2e4eb;border-radius:3px;padding:0 5px;color:#a0a4b0}.aw-shell .aw-icon-button{display:grid;place-items:center;padding:7px;width:34px;min-height:34px;background:#fff;border:1px solid var(--line);color:#757b89}.aw-shell #aw-menu{display:none}.aw-section-tabs{display:flex;gap:24px;overflow:auto;padding:0 32px;background:#fff;border-bottom:1px solid var(--line)}.aw-section-tabs a{padding:15px 0 12px;white-space:nowrap;font-size:12px;color:#858997;border-bottom:2px solid transparent}.aw-section-tabs a.active{border-color:var(--primary);color:var(--primary);font-weight:600}.aw-shell .admin-content{max-width:1600px;padding:30px 32px 32px;margin:0 auto}.aw-shell .admin-content h1{font-size:26px;letter-spacing:-.025em;color:#232632;font-weight:650;line-height:1.25;margin:0 0 7px}.aw-shell .admin-content h2{font-size:14px;letter-spacing:-.01em;font-weight:600;margin:0;color:#303441}.aw-shell .admin-content h3{color:#303441}.aw-shell .page-head{gap:20px;margin-bottom:24px}.aw-shell .page-head p{font-size:12px;color:var(--muted);max-width:690px}.aw-shell .page-head .actions{flex-wrap:wrap}.aw-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.aw-overline{font-size:9px;letter-spacing:.14em;color:#9295a4;display:block;margin-bottom:8px}.aw-heading p{color:var(--muted);font-size:12px;margin:0}.aw-heading-actions{display:flex;align-items:center;gap:12px}.aw-live{display:flex;align-items:center;gap:7px;font-size:10px;color:#398062;margin-right:8px;white-space:nowrap}.aw-live i{width:6px;height:6px;border-radius:50%;background:#479472}.aw-live.paused{color:#a17a30}.aw-live.paused i{background:#ba913e}.aw-period{font-size:10px;color:#969ba7;display:flex;align-items:center;gap:7px;margin:0}.aw-period select{width:120px;padding:7px 10px;color:#535968;background:#fff;border-color:var(--line);min-height:34px}.aw-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:1px solid var(--line);border-radius:9px;padding:23px 0;margin-bottom:22px}.aw-kpis>div{padding:0 23px;border-right:1px solid var(--line);min-width:0}.aw-kpis>div:last-child{border:0}.aw-kpis small{font-size:11px;color:#848a97;display:block}.aw-kpis strong{font-size:30px;letter-spacing:-.045em;font-weight:620;display:block;margin:9px 0 5px;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.aw-kpis span{font-size:10px;color:#7759a4;display:block}.aw-kpis p{font-size:9px;color:#979ca8;margin:7px 0 0}.aw-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(285px,1fr);gap:22px;margin-bottom:22px}.aw-surface{border:1px solid var(--line);border-radius:9px;background:white;min-width:0;overflow:hidden}.aw-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:21px 22px 15px}.aw-section-head p{font-size:10px;color:#9298a5;margin:4px 0 0}.aw-section-head button,.aw-section-head a{font-size:10px;color:#858a98;white-space:nowrap;background:#fff}.aw-total{display:grid;place-items:center;min-width:29px;height:27px;border-radius:5px;background:#f5f2fb;color:#8652c6;font-size:12px}.aw-chart{padding:5px 22px 0}.aw-chart svg{display:block;width:100%;height:190px;stroke:none;fill:none}.aw-chart circle{opacity:0;transition:opacity .15s}.aw-chart:hover circle{opacity:1}.aw-chart .aw-grid-line{stroke:#eef0f4;stroke-width:1}.aw-chart-dates{display:flex;justify-content:space-between;color:#a2a8b3;font-size:9px;margin:0 0 17px}.aw-chart-footer{display:flex;align-items:center;gap:20px;border-top:1px solid #f0f1f4;padding:14px 22px;font-size:10px;color:#979cab;flex-wrap:wrap}.aw-chart-footer b{font-weight:500;color:#5d6371;margin-left:8px}.aw-chart-footer a{margin-left:auto;color:#8058b4}.aw-daily{border-top:1px solid #f0f1f4;font-size:10px}.aw-daily summary{padding:10px 22px;color:#8b819b;cursor:pointer}.aw-daily .table-wrap{max-height:250px;overflow:auto}.aw-queue-row{display:flex;align-items:center;gap:12px;padding:16px 22px;border-top:1px solid #f0f1f5;color:#515765}.aw-queue-row:hover{background:#faf9fd}.aw-queue-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:7px;background:#f4f5f8;color:#9096a5}.aw-queue-icon.has-pending{background:#f9f4ea;color:#b0955c}.aw-queue-icon svg{width:17px;height:17px}.aw-queue-row>span:nth-child(2){flex:1}.aw-queue-row strong{font-weight:500;font-size:11px}.aw-queue-row small{display:block;color:#a1a5af;font-size:9px;margin-top:4px}.aw-queue-row>b{font-weight:500;font-size:15px;color:#545c6a}.aw-queue-row>svg{width:14px;color:#a2a8b4;margin-left:6px}.aw-queue-setting{display:block;border-top:1px solid #f0f1f4;padding:14px 22px;color:#9683ad;font-size:10px}.aw-stock-surface{margin-bottom:22px}.aw-small-count{font-size:9px;color:#ac8648;background:#fcf7ef;padding:3px 6px;border-radius:4px;font-weight:400;margin-left:7px}.aw-stock-toolbar{display:flex;align-items:center;gap:13px;padding:0 22px 17px;flex-wrap:wrap}.aw-stock-toolbar>label{display:flex;align-items:center;border:1px solid var(--line);border-radius:6px;color:#a0a6b2;gap:7px;padding-left:10px;margin:0;flex:1;max-width:310px}.aw-stock-toolbar label svg{width:14px}.aw-stock-toolbar input{border:0;padding:7px;min-height:32px;font-size:10px}.aw-stock-toolbar input:focus{outline:none}.aw-segmented{display:flex;align-items:center;padding:3px;background:#f5f6f9;border-radius:6px}.aw-segmented button{font-size:10px;background:none;border:0;min-height:26px;padding:5px 11px;color:#969bab}.aw-segmented button[aria-pressed=true]{color:#7956a9;background:white;box-shadow:0 1px 3px #10182812}.aw-stock-toolbar select{font-size:10px;width:auto;margin-left:auto;min-height:32px;border-color:var(--line);color:#89909e}.aw-shell .aw-surface .table-wrap{border:0;border-radius:0;margin:0}.aw-shell th{background:#fafbfc;color:#9299a7;font-size:9px;letter-spacing:.02em;padding:11px 20px;font-weight:500;border-color:#f0f1f4}.aw-shell td{font-size:11px;padding:14px 20px;color:#606778;border-color:#f0f1f4}.aw-shell tbody tr:hover{background:#fbfaff}.aw-shell td .sub{font-size:9px;color:#9aa0ad;margin-top:4px}.aw-shell td button{border-color:var(--line);font-size:10px;background:#fff;min-height:28px;padding:4px 8px;margin:2px}.aw-shell td button:hover{background:#f5f0fc}.aw-shell td:last-child{white-space:normal;min-width:110px;max-width:285px}.aw-shell td a{color:#9172b3;font-size:10px;white-space:nowrap}.aw-shell .badge{font-size:9px;padding:3px 6px;white-space:nowrap}.aw-shell .badge.good{color:#538770;background:#f0f7f3}.aw-shell .badge.pending{color:#a18548;background:#fcf7ec}.aw-shell .badge.bad{color:#b16572;background:#fcf1f3}.aw-low-stock{color:#bd9651}.aw-empty{color:#969ca9;padding:22px;text-align:center;font-size:11px;border-top:1px solid #f0f1f4;margin:0}.aw-top-product{display:flex;align-items:center;gap:12px;padding:14px 22px;border-top:1px solid #f0f1f5;font-size:10px}.aw-top-product>b{color:#b4b9c4;font-size:11px;font-weight:400;width:12px}.aw-top-product>span{flex:1;min-width:0}.aw-top-product>span strong{display:block;font-weight:500;color:#565d6b;font-size:11px}.aw-top-product small{display:block;color:#a4aab5;font-size:9px;margin-top:3px}.aw-top-product>strong{font-size:10px;font-weight:500;color:#85808f;white-space:nowrap}.aw-bonus-note{margin:14px 22px 20px;border-top:1px solid var(--line);padding-top:15px;font-size:10px;color:#9793a3;display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px}.aw-bonus-note b{font-weight:500;color:#7e6d92}.aw-bonus-note small{flex:0 0 100%;font-size:9px;color:#b0a8bb}.aw-bottom-grid .table-wrap{max-height:380px;overflow:auto}.aw-updated{font-size:9px;color:#a8afbb;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.aw-updated a{color:#9e94b2}.aw-shell .metrics{gap:15px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px;margin-bottom:23px}.aw-shell .metric small{font-size:11px;color:#8c919d}.aw-shell .metric strong{font-size:26px}.aw-shell .panel{border-color:var(--line);border-radius:9px;background:#fff}.aw-shell .table-search{font-size:12px;background:#fff;min-height:38px}.aw-shell .table-wrap{border-color:var(--line);background:white;scrollbar-width:thin}.aw-shell .table-wrap th{position:sticky;top:0;z-index:1}.aw-shell .actions{flex-wrap:wrap}.aw-shell .ticket{background:#fff;border:1px solid var(--line);border-radius:9px;padding:0 22px}.aw-loading,.aw-load-error{padding:40px 0;color:#858a98}.aw-load-error p{margin:15px 0}.aw-menu-backdrop[hidden]{display:none}.aw-command h2{font-size:20px}.aw-command label{margin-top:20px}.aw-command input{min-height:44px}.aw-command #aw-command-results{max-height:390px;overflow:auto;margin:16px -5px 0}.aw-command a{display:flex;align-items:center;gap:14px;padding:11px 13px;border-radius:7px;color:#5d5970}.aw-command a>span{flex:1;font-size:13px}.aw-command a small{display:block;font-size:10px;color:#9690a5;margin-top:2px}.aw-command a.selected,.aw-command a:hover{background:#f3edfb;color:#7744b9}.aw-command a>svg:last-child{width:15px}.aw-command .muted{font-size:10px;margin:18px 0 0}.aw-no-results{padding:20px;color:#8b819b}
@media(min-width:761px){.aw-sidebar .bottom{display:grid}}
@media(max-width:1200px){.aw-shell{grid-template-columns:200px minmax(0,1fr)}.aw-shell .admin-content{padding:25px 22px}.aw-shell .admin-top,.aw-section-tabs{padding-left:22px;padding-right:22px}.aw-kpis>div{padding:0 16px}.aw-kpis strong{font-size:26px}.aw-dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr)}.aw-section-head,.aw-queue-row{padding-left:18px;padding-right:18px}}
@media(max-width:1000px){.aw-heading{align-items:flex-start}.aw-heading-actions{flex-wrap:wrap;justify-content:flex-end;max-width:265px}.aw-dashboard-grid{grid-template-columns:minmax(0,1fr)}.aw-queue{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.aw-queue .aw-section-head,.aw-queue-setting{grid-column:1/-1}.aw-queue-row{padding:15px 12px;border-right:1px solid var(--line);gap:7px}.aw-queue-row>svg{display:none}.aw-kpis{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:20px}.aw-kpis>div:nth-child(2){border:0}.aw-shell .aw-search-open{width:auto}.aw-search-open kbd{display:none}.aw-chart svg{height:auto}}
@media(max-width:760px){.aw-shell{display:block}.aw-shell .aw-sidebar{position:fixed;inset:0 auto 0 0;width:245px;height:100svh;transform:translateX(-100%);transition:transform .18s ease;overflow-y:auto;display:flex;flex-direction:column;padding:25px 14px}.aw-shell.aw-menu-open .aw-sidebar{transform:translateX(0)}.aw-sidebar nav{display:grid;overflow:visible}.aw-sidebar nav a{padding:12px;font-size:12px;white-space:normal}.aw-sidebar .bottom{display:grid;padding-top:30px}.aw-menu-backdrop{position:fixed;inset:0;z-index:25;background:#141a2c77!important;border:0;border-radius:0!important;width:100%;height:100%;backdrop-filter:blur(2px)}.aw-shell .admin-top{height:59px;padding:0 15px}.aw-shell #aw-menu{display:grid;border:0;background:none;width:26px;padding:0}.aw-breadcrumb>span{font-size:10px}.aw-breadcrumb>span b,.aw-breadcrumb>span strong{display:none}.aw-shell .admin-top .actions{gap:12px}.aw-shell .aw-search-open{border:0;background:none;width:28px;padding:5px}.aw-search-open>span{display:none}.aw-shell .admin-content{padding:23px 15px}.aw-section-tabs{gap:22px;padding:0 15px}.aw-section-tabs a{font-size:11px}.aw-heading{flex-direction:column;gap:16px;margin-bottom:19px}.aw-heading h1{font-size:25px}.aw-heading-actions{max-width:none;justify-content:flex-start;width:100%;gap:9px}.aw-live{margin-right:auto;font-size:10px}.aw-period{font-size:0;gap:0}.aw-period select{font-size:11px;width:112px}.aw-kpis{padding:20px 0;gap:22px 0;margin-bottom:17px}.aw-kpis>div{padding:0 15px}.aw-kpis strong{font-size:25px;margin-top:7px}.aw-kpis small{font-size:10px}.aw-kpis span{font-size:9px}.aw-kpis p{font-size:9px;line-height:1.6}.aw-dashboard-grid{gap:17px;margin-bottom:17px}.aw-queue{display:block}.aw-queue-row{border-right:0;padding:15px 18px}.aw-queue-row>svg{display:block}.aw-section-head{padding:18px 17px 13px}.aw-section-head h2{font-size:13px}.aw-section-head p{font-size:9px}.aw-section-head a{font-size:9px}.aw-chart{padding:0 15px}.aw-chart-footer{padding:12px 17px;gap:10px}.aw-chart-footer a{width:100%;margin-left:0}.aw-stock-toolbar{padding:0 17px 14px;gap:10px}.aw-stock-toolbar>label{max-width:none;flex:0 0 100%}.aw-stock-toolbar select{font-size:9px;max-width:125px;padding:6px}.aw-segmented button{font-size:9px;padding:4px 8px}.aw-stock-surface{margin-bottom:17px}.aw-shell th,.aw-shell td{padding:11px 14px}.aw-shell .page-head{align-items:flex-start;flex-wrap:wrap;gap:12px}.aw-shell .page-head h1{font-size:24px}.aw-shell .page-head .actions{justify-content:flex-start}.aw-shell .metrics{gap:12px;padding:17px}.aw-shell .metric strong{font-size:22px}.aw-shell .ticket{padding:0 15px}.aw-updated{font-size:8px}.aw-command #aw-command-results{max-height:50svh}}
@media(prefers-reduced-motion:reduce){.aw-shell *,.aw-command *{transition:none!important;animation:none!important}}

.aw-shell .aw-sidebar-close{display:none}
@media(max-width:760px){.aw-shell .aw-sidebar-close{display:block;position:absolute;right:12px;top:20px;background:none;border:0;color:#a5adc1;min-height:30px;font-size:24px;padding:0 7px}}

/* Customer records stay compact; every existing action remains available. */
.aw-shell #user-table table{width:100%;table-layout:fixed}
.aw-shell #user-table th,.aw-shell #user-table td{white-space:normal;padding:12px 10px;overflow-wrap:anywhere;vertical-align:top}
.aw-shell #user-table th:first-child{width:20%}
.aw-shell #user-table th:nth-child(2){width:11%}
.aw-shell #user-table th:nth-child(3){width:8%}
.aw-shell #user-table th:nth-child(4){width:6%}
.aw-shell #user-table th:nth-child(5){width:12%}
.aw-shell #user-table th:nth-child(6){width:12%}
.aw-shell #user-table th:nth-child(7){width:9%}
.aw-shell #user-table th:nth-child(8){width:11%}
.aw-shell #user-table th:last-child{width:11%}
.aw-shell #user-table td:last-child{min-width:0;max-width:none}
.aw-shell #user-table td:first-child{color:var(--ink);font-weight:500}
.aw-shell #user-table td:first-child .sub{font-weight:400}
.aw-shell .aw-customer-actions summary{display:flex;align-items:center;justify-content:space-between;gap:6px;list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:6px;padding:6px 8px;font-size:10px;color:#625477;background:white;white-space:nowrap}
.aw-customer-actions summary::-webkit-details-marker{display:none}
.aw-customer-actions summary::after{content:'⌄';font-size:13px}
.aw-customer-actions[open] summary::after{content:'⌃'}
.aw-shell .aw-customer-action-list{display:grid;gap:5px;padding-top:8px}
.aw-shell .aw-customer-action-list button{margin:0;width:100%;white-space:normal}
@media(max-width:1250px){
 .aw-shell #user-table .table-wrap{overflow:hidden}
 .aw-shell #user-table table,.aw-shell #user-table tbody{display:block}
 .aw-shell #user-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .aw-shell #user-table tbody tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 20px;padding:20px;border-bottom:1px solid var(--line)}
 .aw-shell #user-table tbody tr:last-child{border-bottom:0}
 .aw-shell #user-table td{display:block;padding:0;border:0;min-width:0;max-width:none}
 .aw-shell #user-table td::before{content:attr(data-label);display:block;font-size:9px;color:#9299a7;margin-bottom:5px;font-weight:400}
 .aw-shell #user-table td:first-child{grid-column:1/-1;font-size:13px}
 .aw-shell #user-table td:first-child::before,.aw-shell #user-table td:last-child::before{display:none}
 .aw-shell #user-table td:last-child{grid-column:1/-1}
 .aw-shell .aw-customer-actions summary{width:120px}
 .aw-shell .aw-customer-action-list{display:flex;flex-wrap:wrap;gap:7px}
 .aw-shell .aw-customer-action-list button{width:auto;min-height:32px;padding:6px 10px}
}
@media(max-width:600px){
 .aw-shell #user-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:18px 15px}
}
