:root{--admin-bg:#f4f6fb;--admin-dark:#1f2933;--admin-darker:#151d26;--admin-line:#e4e8f0;--admin-text:#182230;--admin-muted:#667085;--blue:#1d9bf0;--green:#16a34a;--yellow:#f59e0b;--red:#e11d48;--purple:#6f35e8}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,sans-serif;color:var(--admin-text);background:var(--admin-bg);font-size:14px;line-height:1.5}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.admin-body{min-height:100vh}.admin-sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:linear-gradient(180deg,var(--admin-dark),var(--admin-darker));color:#d8dee8;z-index:30;display:flex;flex-direction:column}.admin-brand{height:76px;display:flex;align-items:center;gap:12px;padding:0 18px;border-bottom:1px solid rgba(255,255,255,.08)}.admin-brand img{width:44px;height:44px;border-radius:13px;background:#fff;object-fit:contain}.admin-brand strong,.admin-brand small{display:block}.admin-brand strong{color:#fff;font-weight:900}.admin-brand small{font-size:12px;color:#94a3b8}.admin-menu{display:grid;gap:5px;padding:16px 10px}.admin-menu a{height:42px;display:flex;align-items:center;gap:11px;padding:0 12px;border-radius:10px;color:#cbd5e1;font-weight:750}.admin-menu a span{width:22px;color:#8ea0b8}.admin-menu a:hover,.admin-menu a.active{background:#0ea5e9;color:#fff}.admin-menu a.active span,.admin-menu a:hover span{color:#fff}.sidebar-card{margin:auto 14px 16px;padding:14px;border-radius:14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08)}.sidebar-card small,.sidebar-card strong{display:block}.sidebar-card small{color:#94a3b8}.admin-shell{margin-left:248px;min-height:100vh}.admin-topbar{height:58px;background:#fff;border-bottom:1px solid var(--admin-line);display:flex;align-items:center;justify-content:space-between;padding:0 22px;position:sticky;top:0;z-index:20}.admin-topbar>div{display:flex;align-items:center;gap:12px;font-weight:900}.admin-topbar nav{display:flex;align-items:center;gap:12px}.admin-topbar a,.admin-topbar button{border:0;background:#eef6ff;color:#0b6faf;border-radius:999px;height:32px;padding:0 12px;font-weight:800;cursor:pointer}.admin-main{padding:22px}.menu-toggle{display:none;border:0;background:#edf2f7;border-radius:9px;width:34px;height:34px}.admin-flash{padding:11px 13px;border-radius:12px;background:#e8f8ee;color:#0f6b3a;margin-bottom:14px;font-weight:750}.admin-flash.error{background:#fff1f1;color:#b42318}.admin-login-body{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 20% 0,rgba(22,163,74,.18),transparent 26rem),linear-gradient(135deg,#edf7f0,#f8fbff)}.admin-login-card{width:min(900px,100%);display:grid;grid-template-columns:1fr 420px;background:#fff;border:1px solid var(--admin-line);border-radius:22px;overflow:hidden;box-shadow:0 24px 70px rgba(31,41,51,.14)}.login-visual{background:linear-gradient(135deg,#063f2a,#0f6b3a);color:#fff;padding:42px;display:flex;flex-direction:column;justify-content:flex-end}.login-visual img{width:78px;height:78px;border-radius:20px;background:#fff;margin-bottom:22px}.login-visual span{font-weight:900;color:#b8f0c8;text-transform:uppercase;font-size:12px}.login-visual h1{font-size:36px;line-height:1.08;margin:10px 0 0}.login-form{padding:34px;display:grid;gap:14px}.login-form h2{margin:0 0 6px;font-size:28px}.admin-kicker{text-transform:uppercase;letter-spacing:.08em;color:#f97316;font-weight:900;font-size:11px}.login-form label,.admin-form label{display:grid;gap:6px;font-weight:800;font-size:13px;color:#344054}.login-form input,.admin-form input,.admin-form select,.admin-form textarea,.admin-search input,.inline-edit input,.inline-edit select{border:1px solid var(--admin-line);border-radius:10px;min-height:40px;padding:0 11px;background:#fff}.admin-form textarea{min-height:90px;padding:10px 11px}.admin-primary,.admin-search button,.inline-edit button{border:0;background:#0f6b3a;color:#fff;border-radius:999px;height:40px;padding:0 16px;font-weight:900;cursor:pointer}.back-link{color:#667085;font-weight:800}.admin-hero{display:flex;justify-content:space-between;gap:18px;align-items:end;background:linear-gradient(135deg,#103d28,#0f6b3a 60%,#16a34a);color:#fff;border-radius:18px;padding:24px;margin-bottom:16px;box-shadow:0 18px 44px rgba(15,107,58,.16)}.admin-hero h1,.page-head h1{font-size:30px;margin:4px 0 5px;line-height:1.12}.admin-hero p{margin:0;color:#d8f7e3}.hero-money{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.2);border-radius:15px;padding:14px 18px;min-width:190px}.hero-money span,.hero-money strong{display:block}.hero-money strong{font-size:22px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.stat-card{border-radius:15px;padding:18px;color:#fff;overflow:hidden;position:relative}.stat-card span,.stat-card small{display:block;color:rgba(255,255,255,.84);font-weight:750}.stat-card strong{display:block;font-size:28px;line-height:1.1;margin:8px 0}.stat-card.cyan{background:#06b6d4}.stat-card.green{background:#22c55e}.stat-card.yellow{background:#f59e0b}.stat-card.red{background:#e11d48}.admin-grid.two{display:grid;grid-template-columns:1.3fr .7fr;gap:16px}.admin-panel{background:#fff;border:1px solid var(--admin-line);border-radius:16px;padding:16px;box-shadow:0 10px 26px rgba(31,41,51,.04);margin-bottom:16px}.panel-title,.page-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.panel-title h2,.form-panel h2{font-size:18px;margin:0}.panel-title a{color:#0f6b3a;font-weight:900}.admin-search{display:flex;gap:8px;align-items:center}.admin-search input{min-width:270px}.admin-table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:separate;border-spacing:0;min-width:760px}.admin-table th{background:#f8fafc;color:#667085;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.admin-table th,.admin-table td{padding:12px;border-bottom:1px solid var(--admin-line);text-align:left;vertical-align:top}.admin-table td small{display:block;color:#667085;margin-top:3px}.admin-table.wide{min-width:1100px}.status-pill{display:inline-flex;border-radius:999px;background:#eef2ff;color:#1d4ed8;padding:5px 9px;font-size:12px;font-weight:900}.status-pill.green{background:#e8f8ee;color:#0f6b3a}.metric-list{display:grid;gap:10px}.metric-list div{display:flex;justify-content:space-between;padding:12px;border:1px solid var(--admin-line);border-radius:12px}.tab-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.tab-row a{height:36px;display:inline-flex;align-items:center;padding:0 14px;border-radius:999px;background:#fff;border:1px solid var(--admin-line);font-weight:900;color:#475467}.tab-row a.active{background:#0f6b3a;color:#fff;border-color:#0f6b3a}.mini-line{font-size:13px;margin-bottom:5px}.inline-edit{display:grid;gap:7px;min-width:170px}.product-admin{display:flex;align-items:center;gap:10px}.product-admin img{width:52px;height:52px;object-fit:contain;border-radius:10px;background:#f6faf3}.row-editor summary{cursor:pointer;color:#0f6b3a;font-weight:900}.row-editor form{margin-top:10px}.admin-form.grid-form{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.span-2{grid-column:span 2}.span-4{grid-column:span 4}.check-admin{display:flex!important;align-items:center;gap:8px;align-self:end}.check-admin input{min-height:auto;width:16px;height:16px}.danger-button{border:1px solid #ffd5d5;background:#fff1f1;color:#b42318;border-radius:999px;height:34px;padding:0 12px;font-weight:900;margin-top:8px}.empty-cell{text-align:center!important;color:#667085}.pagination{display:flex;gap:6px;list-style:none;padding:0;margin:14px 0 0}.pagination a,.pagination span{display:inline-flex;min-width:32px;height:32px;align-items:center;justify-content:center;border:1px solid var(--admin-line);border-radius:8px;background:#fff;padding:0 8px}.pagination .active span{background:#0f6b3a;color:#fff;border-color:#0f6b3a}@media(max-width:980px){.admin-sidebar{transform:translateX(-100%);transition:.18s}.sidebar-open .admin-sidebar{transform:translateX(0)}.admin-shell{margin-left:0}.menu-toggle{display:inline-grid;place-items:center}.stat-grid,.admin-grid.two{grid-template-columns:1fr 1fr}.admin-login-card{grid-template-columns:1fr}.login-visual{display:none}.admin-form.grid-form{grid-template-columns:1fr 1fr}.span-4{grid-column:span 2}}@media(max-width:620px){.admin-topbar{padding:0 12px}.admin-main{padding:14px}.stat-grid,.admin-grid.two{grid-template-columns:1fr}.admin-hero,.page-head{display:grid}.admin-search{display:grid}.admin-search input{min-width:0}.admin-form.grid-form{grid-template-columns:1fr}.span-2,.span-4{grid-column:auto}.admin-login-card{border-radius:16px}.login-form{padding:24px}}

/* Admin refinement pass */
body{font-size:14px;letter-spacing:0;background:#f5f7fb}.admin-sidebar{width:260px;background:#26313d}.admin-shell{margin-left:260px}.admin-brand{height:72px}.admin-menu{gap:4px;padding:14px 12px}.admin-menu a{height:40px;border-radius:8px;font-size:14px;font-weight:700}.admin-menu a:hover,.admin-menu a.active{background:#0b8fe8;box-shadow:inset 4px 0 0 rgba(255,255,255,.35)}.admin-topbar{height:56px;box-shadow:0 4px 16px rgba(31,41,51,.035)}.admin-main{padding:20px;max-width:1600px}.admin-topbar a,.admin-topbar button{background:#f1f6fb;color:#344054;border:1px solid #e4e8f0;height:30px;font-size:13px}.refined-head{background:#fff;border:1px solid var(--admin-line);border-radius:14px;padding:16px 18px;box-shadow:0 8px 24px rgba(31,41,51,.04)}.refined-head h1,.admin-hero h1{font-size:28px;letter-spacing:0}.refined-head p{margin:4px 0 0;color:var(--admin-muted)}.admin-kicker{font-size:10px;letter-spacing:.08em;color:#f97316}.refined-hero{border-radius:16px;padding:22px;background:linear-gradient(135deg,#102a43,#0f6b3a 62%,#13a15f);box-shadow:0 16px 40px rgba(15,107,58,.14)}.hero-money{border-radius:13px}.refined-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stat-card{border-radius:13px;padding:16px;min-height:122px;box-shadow:0 10px 26px rgba(31,41,51,.08)}.stat-card strong{font-size:26px}.stat-card:after{content:'';position:absolute;right:-24px;top:-24px;width:96px;height:96px;border-radius:999px;background:rgba(255,255,255,.16)}.refined-panel,.admin-panel{border-radius:14px;box-shadow:0 8px 24px rgba(31,41,51,.045);border-color:#e7ebf2}.panel-title{align-items:flex-start}.panel-title h2{font-size:17px;margin:3px 0 0}.admin-table{font-size:13px}.admin-table th{font-size:11px;background:#f8fafc}.admin-table th,.admin-table td{padding:10px 11px}.compact-table{min-width:820px}.status-pill{font-size:11px;padding:5px 9px}.status-pill.blue{background:#e8f3ff;color:#0969b8}.status-pill.amber{background:#fff7e6;color:#b45309}.status-pill.red{background:#fff1f1;color:#b42318}.status-pill.green{background:#e8f8ee;color:#0f6b3a}.admin-search input{height:38px;border-radius:9px}.admin-search button,.admin-primary{height:38px;border-radius:9px}.tab-row.order-tabs{background:#fff;border:1px solid var(--admin-line);border-radius:14px;padding:8px;width:max-content;max-width:100%;box-shadow:0 8px 24px rgba(31,41,51,.035)}.tab-row.order-tabs a{height:32px;border:0;background:transparent}.tab-row.order-tabs a.active{background:#0f6b3a;color:#fff}.order-admin-list{display:grid;gap:14px}.admin-order-card{background:#fff;border:1px solid var(--admin-line);border-radius:16px;overflow:hidden;box-shadow:0 10px 30px rgba(31,41,51,.045)}.admin-order-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:16px 18px;background:linear-gradient(180deg,#fff,#f8fbf8);border-bottom:1px solid var(--admin-line)}.admin-order-head h2{margin:3px 0;font-size:19px}.admin-order-head p{margin:0;color:var(--admin-muted)}.order-badge-stack{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.admin-order-grid{display:grid;grid-template-columns:1fr 1.6fr 1fr;gap:12px;padding:14px 18px}.admin-order-grid section{background:#f8fafc;border:1px solid #edf1f5;border-radius:12px;padding:12px;min-width:0}.admin-order-grid h3,.admin-order-items h3{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--admin-muted);margin:0 0 7px}.admin-order-grid p{margin:2px 0;color:#475467;line-height:1.4}.admin-order-items{margin:0 18px 14px;border:1px solid var(--admin-line);border-radius:12px;overflow:hidden}.order-items-title{display:flex;justify-content:space-between;background:#f8fafc;padding:10px 12px;border-bottom:1px solid var(--admin-line)}.order-items-title h3{margin:0}.order-items-title span{font-size:12px;color:var(--admin-muted);font-weight:800}.admin-order-item{display:grid;grid-template-columns:1fr 90px 130px;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid #edf1f5}.admin-order-item:last-child{border-bottom:0}.admin-order-item small{display:block;color:var(--admin-muted);font-size:12px}.admin-order-item>span:nth-child(2),.admin-order-item>strong{text-align:right}.admin-order-footer{display:grid;grid-template-columns:1fr minmax(360px,.95fr);gap:14px;padding:0 18px 18px}.amount-breakdown{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start}.amount-breakdown span{background:#f8fafc;border:1px solid var(--admin-line);border-radius:11px;padding:8px 10px;color:var(--admin-muted);font-size:12px}.amount-breakdown strong{display:block;color:#182230;font-size:14px}.amount-breakdown .grand{background:#e8f8ee;border-color:#cfe8d7;color:#0f6b3a}.amount-breakdown .grand strong{color:#0f6b3a;font-size:18px}.order-update-form{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:8px;align-items:end;background:#fbfcfd;border:1px solid var(--admin-line);border-radius:12px;padding:10px}.order-update-form label{display:grid;gap:5px;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--admin-muted);font-weight:900}.order-update-form input,.order-update-form select{height:36px;border:1px solid var(--admin-line);border-radius:8px;padding:0 10px;background:#fff}.order-update-form button{height:36px;border:0;border-radius:8px;background:#0f6b3a;color:#fff;font-weight:900;padding:0 14px}.form-panel h2{font-size:17px;margin-bottom:12px}.admin-form.grid-form{gap:10px}.admin-form label{font-size:12px}.admin-form input,.admin-form select{height:38px}.admin-form textarea{min-height:78px}.row-editor summary{height:32px;display:inline-flex;align-items:center;border:1px solid #cfe8d7;background:#eef8f0;border-radius:999px;padding:0 12px;font-size:12px}.product-admin img{width:48px;height:48px;border:1px solid #edf1f5}.metric-list.refined-metrics div{background:#f8fafc;border-radius:11px}.empty-admin{text-align:center;color:var(--admin-muted);font-weight:800}.admin-login-card{box-shadow:0 26px 70px rgba(16,42,67,.16)}@media(max-width:1100px){.admin-order-grid{grid-template-columns:1fr 1fr}.admin-order-grid section:last-child{grid-column:span 2}.admin-order-footer{grid-template-columns:1fr}.order-update-form{grid-template-columns:1fr 1fr}}@media(max-width:980px){.admin-shell{margin-left:0}.admin-sidebar{width:260px}.refined-stats{grid-template-columns:1fr 1fr}}@media(max-width:680px){.admin-main{padding:12px}.refined-head,.admin-order-head{display:grid}.admin-order-grid{grid-template-columns:1fr;padding:12px}.admin-order-grid section:last-child{grid-column:auto}.admin-order-items{margin:0 12px 12px}.admin-order-item{grid-template-columns:1fr;gap:4px}.admin-order-item>span:nth-child(2),.admin-order-item>strong{text-align:left}.admin-order-footer{padding:0 12px 12px}.order-update-form{grid-template-columns:1fr}.amount-breakdown span{width:calc(50% - 4px)}.refined-stats{grid-template-columns:1fr}.tab-row.order-tabs{width:100%}.tab-row.order-tabs a{flex:1;justify-content:center}}

/* Compact admin order list */
.compact-admin-orders{display:grid;gap:10px}.compact-admin-order{background:#fff;border:1px solid var(--admin-line);border-radius:13px;box-shadow:0 8px 22px rgba(31,41,51,.035);overflow:hidden}.compact-order-row{display:grid;grid-template-columns:170px 1.15fr minmax(260px,1.7fr) 120px 230px 92px;gap:12px;align-items:center;padding:12px 14px}.compact-order-row strong{font-size:13px}.compact-order-row small{display:block;color:var(--admin-muted);font-size:12px;margin-top:2px}.items-cell span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#344054}.amount-cell{text-align:right}.amount-cell strong{font-size:14px;color:#0f6b3a}.badge-cell{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.details-cell{position:relative}.details-cell summary{list-style:none;cursor:pointer;height:32px;border-radius:999px;background:#eef8f0;color:#0f6b3a;font-weight:900;font-size:12px;display:grid;place-items:center}.details-cell summary::-webkit-details-marker{display:none}.details-cell[open]{grid-column:1 / -1}.details-cell[open] summary{width:92px;margin-left:auto;margin-bottom:12px}.compact-detail-panel{border-top:1px solid var(--admin-line);padding-top:12px}.detail-grid{display:grid;grid-template-columns:1fr 1.6fr 1fr;gap:10px;margin-bottom:10px}.detail-grid section{background:#f8fafc;border:1px solid #edf1f5;border-radius:11px;padding:11px}.detail-grid h3,.compact-items-title h3{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--admin-muted);margin:0 0 6px}.detail-grid p{margin:2px 0;color:#475467;line-height:1.35}.compact-items-list{border:1px solid var(--admin-line);border-radius:11px;overflow:hidden;margin-bottom:10px}.compact-items-title{display:flex;justify-content:space-between;background:#f8fafc;padding:9px 11px;border-bottom:1px solid var(--admin-line)}.compact-items-title h3{margin:0}.compact-items-title span{font-size:12px;color:var(--admin-muted);font-weight:800}.compact-items-list>div:not(.compact-items-title){display:grid;grid-template-columns:1fr 80px 120px;gap:10px;align-items:center;padding:9px 11px;border-bottom:1px solid #edf1f5}.compact-items-list>div:last-child{border-bottom:0}.compact-items-list small{display:block;color:var(--admin-muted);font-size:12px}.compact-items-list>div>span:nth-child(2),.compact-items-list>div>strong{text-align:right}.compact-order-actions{display:grid;grid-template-columns:1fr minmax(360px,.85fr);gap:12px}.compact-amounts span{padding:7px 9px}.compact-update-form{padding:9px}.compact-update-form input,.compact-update-form select,.compact-update-form button{height:34px}@media(max-width:1180px){.compact-order-row{grid-template-columns:150px 1fr 1.2fr 110px}.badge-cell{justify-content:flex-start}.details-cell{grid-column:1 / -1}.details-cell summary{width:100px;margin-left:auto}.detail-grid,.compact-order-actions{grid-template-columns:1fr}}@media(max-width:700px){.compact-order-row{grid-template-columns:1fr;gap:8px}.amount-cell{text-align:left}.badge-cell{justify-content:flex-start}.details-cell summary{width:100%}.details-cell[open] summary{width:100%;margin-left:0}.detail-grid{grid-template-columns:1fr}.compact-items-list>div:not(.compact-items-title){grid-template-columns:1fr;gap:4px}.compact-items-list>div>span:nth-child(2),.compact-items-list>div>strong{text-align:left}}

/* Admin menu SVG icons and cancel action */
.admin-menu a{gap:12px}.admin-menu .menu-icon{width:22px;height:22px;display:grid;place-items:center;color:#9fb1c7;flex:0 0 22px}.admin-menu .menu-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.admin-menu a.active .menu-icon,.admin-menu a:hover .menu-icon{color:#fff}.row-action-cell{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:168px}.row-action-cell form{margin:0}.cancel-order-btn{height:32px;border:1px solid #fecaca;background:#fff1f1;color:#b42318;border-radius:999px;padding:0 12px;font-size:12px;font-weight:900;cursor:pointer}.cancel-order-btn:hover{background:#fee2e2}.row-action-cell .details-cell{min-width:86px}.row-action-cell .details-cell[open]{position:static}.row-action-cell .details-cell[open]{grid-column:auto}.compact-order-row:has(.details-cell[open]) .row-action-cell{grid-column:1 / -1;display:block}.compact-order-row:has(.details-cell[open]) .row-action-cell>form{display:inline-block;margin-right:8px;vertical-align:top}.compact-order-row:has(.details-cell[open]) .row-action-cell .details-cell{display:block}.compact-order-row:has(.details-cell[open]) .details-cell summary{width:92px;margin-left:auto;margin-bottom:12px}@media(max-width:1180px){.row-action-cell{grid-column:1 / -1;justify-content:flex-end}.compact-order-row:has(.details-cell[open]) .row-action-cell{display:block}}@media(max-width:700px){.row-action-cell{justify-content:stretch;display:grid;grid-template-columns:1fr 1fr}.row-action-cell .details-cell,.row-action-cell .details-cell summary,.cancel-order-btn{width:100%}.compact-order-row:has(.details-cell[open]) .row-action-cell>form{display:block;margin:0 0 8px}.compact-order-row:has(.details-cell[open]) .details-cell summary{width:100%;margin-left:0}}

/* Admin orders polish */
.admin-main{max-width:none;width:100%}.compact-admin-orders{width:100%}.compact-admin-order{overflow:visible}.compact-order-row{grid-template-columns:minmax(170px,.9fr) minmax(190px,1fr) minmax(260px,1.45fr) minmax(120px,.7fr) minmax(230px,1.05fr) minmax(205px,205px)}.row-action-cell{min-width:205px}.admin-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 0;padding:12px 14px;background:#fff;border:1px solid var(--admin-line);border-radius:12px;box-shadow:0 8px 22px rgba(31,41,51,.035)}.admin-pagination a{height:34px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;border-radius:999px;background:#eef8f0;color:#0f6b3a;font-weight:900;border:1px solid #cfe8d7}.admin-pagination a.disabled{opacity:.45;pointer-events:none}.admin-pagination span{font-weight:900;color:#344054}.admin-pagination small{color:var(--admin-muted);font-weight:700;margin-left:auto}@media(max-width:1180px){.compact-order-row{grid-template-columns:150px 1fr 1.2fr 110px}.row-action-cell{min-width:0}}

/* Admin orders anti-overflow fix */
.admin-shell{overflow-x:hidden}.admin-main{width:auto;min-width:0}.compact-admin-orders{overflow-x:hidden}.compact-admin-order{overflow:hidden}.compact-order-row{grid-template-columns:minmax(135px,.8fr) minmax(145px,.85fr) minmax(190px,1.2fr) minmax(105px,.65fr) minmax(170px,.8fr) 178px!important;gap:10px;padding:12px 12px}.compact-order-row>div{min-width:0}.order-id-cell strong,.customer-cell strong,.items-cell span{overflow-wrap:anywhere}.badge-cell{min-width:0;justify-content:flex-end;align-content:center}.status-pill{max-width:100%;white-space:nowrap}.row-action-cell{width:178px;min-width:178px!important;justify-content:flex-end;gap:6px;overflow:visible}.cancel-order-btn{min-width:72px;padding:0 10px}.row-action-cell .details-cell{min-width:80px;flex:0 0 80px}.row-action-cell .details-cell summary{width:80px;padding:0 10px}.compact-order-row:has(.details-cell[open]) .row-action-cell{width:auto;min-width:0!important}.compact-order-row:has(.details-cell[open]) .row-action-cell .details-cell{min-width:0;flex:auto}@media(max-width:1450px){.compact-order-row{grid-template-columns:minmax(130px,.75fr) minmax(135px,.8fr) minmax(170px,1fr) minmax(95px,.55fr) minmax(145px,.7fr) 166px!important}.row-action-cell{width:166px;min-width:166px!important}.cancel-order-btn{min-width:68px}.row-action-cell .details-cell{min-width:76px;flex-basis:76px}.row-action-cell .details-cell summary{width:76px}}@media(max-width:1180px){.compact-order-row{grid-template-columns:150px 1fr 1.2fr 110px!important}.row-action-cell{width:auto;min-width:0!important}}

/* Admin invoice actions */
.order-tab-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.order-tab-actions .order-tabs{margin-bottom:0}.print-invoice-btn,.invoice-link-btn{height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#0f6b3a;color:#fff;font-weight:900;text-decoration:none;padding:0 14px;border:1px solid #0f6b3a}.invoice-link-btn{height:34px;background:#eef8f0;color:#0f6b3a;border-color:#cfe8d7;white-space:nowrap}.compact-order-actions{align-items:start}@media(max-width:680px){.order-tab-actions{display:grid}.print-invoice-btn{width:100%}}

/* Payment status readonly and row print action */
.row-print-btn{height:32px;min-width:58px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#eef8f0;color:#0f6b3a;border:1px solid #cfe8d7;font-size:12px;font-weight:900;text-decoration:none;padding:0 10px}.readonly-payment{height:34px;display:flex;align-items:center;border:1px solid var(--admin-line);border-radius:8px;background:#f8fafc;color:#182230;padding:0 10px;font-weight:900;text-transform:none}.compact-order-row{grid-template-columns:minmax(125px,.75fr) minmax(135px,.8fr) minmax(170px,1fr) minmax(95px,.55fr) minmax(145px,.72fr) 224px!important}.row-action-cell{width:224px;min-width:224px!important}.row-action-cell .details-cell{min-width:76px;flex:0 0 76px}.row-action-cell .details-cell summary{width:76px}@media(max-width:1450px){.compact-order-row{grid-template-columns:minmax(120px,.72fr) minmax(128px,.75fr) minmax(155px,.95fr) minmax(90px,.5fr) minmax(132px,.66fr) 214px!important}.row-action-cell{width:214px;min-width:214px!important}.row-print-btn{min-width:54px;padding:0 8px}}@media(max-width:1180px){.compact-order-row{grid-template-columns:150px 1fr 1.2fr 110px!important}.row-action-cell{width:auto;min-width:0!important}}

/* Admin order date filters and live search */
.order-head-tools{align-items:flex-start}.order-search-form{position:relative;display:flex;align-items:flex-start;gap:8px}.order-search-wrap{position:relative;min-width:360px}.order-search-wrap input{width:100%;min-width:0}.order-suggestions{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:25;background:#fff;border:1px solid var(--admin-line);border-radius:12px;box-shadow:0 18px 42px rgba(31,41,51,.16);overflow:hidden}.order-suggestions a{display:block;padding:10px 12px;border-bottom:1px solid #edf1f5;color:#182230}.order-suggestions a:last-child{border-bottom:0}.order-suggestions a:hover{background:#f5faf7}.order-suggestions strong{display:block;font-size:13px}.order-suggestions small{display:block;margin-top:2px;color:var(--admin-muted);font-size:12px}.order-filter-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.admin-date-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid var(--admin-line);border-radius:999px;padding:6px 8px;box-shadow:0 8px 22px rgba(31,41,51,.035)}.admin-date-filter label{display:flex;align-items:center;gap:6px;color:#667085;font-size:12px;font-weight:900}.admin-date-filter input{height:30px;border:1px solid var(--admin-line);border-radius:999px;padding:0 9px;background:#f8fafc;color:#182230}.admin-date-filter button,.clear-date-filter{height:30px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:0 12px;font-weight:900;font-size:12px}.admin-date-filter button{background:#0f6b3a;color:#fff}.clear-date-filter{background:#fff1f1;color:#b42318;border:1px solid #fecaca}.order-tab-actions{align-items:flex-start}.print-invoice-btn{white-space:nowrap}@media(max-width:900px){.order-head-tools{display:grid}.order-search-form{width:100%}.order-search-wrap{min-width:0;flex:1}.order-filter-actions{width:100%;justify-content:flex-start}.admin-date-filter{border-radius:14px;width:100%}.admin-date-filter label{flex:1}.admin-date-filter input{width:100%}}@media(max-width:620px){.order-search-form{display:grid}.order-search-form button{width:100%}.admin-date-filter{display:grid;grid-template-columns:1fr 1fr}.admin-date-filter button,.clear-date-filter{width:100%}.print-invoice-btn{width:100%}}

/* Admin customers, products and reports */
.customer-admin-panel,.product-admin-panel{padding:0;overflow:hidden}.customer-list-head,.product-list-head{display:grid;gap:12px;padding:11px 16px;background:#f8fafc;border-bottom:1px solid var(--admin-line);color:#667085;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.customer-list-head{grid-template-columns:1.2fr 1.3fr .55fr .7fr 190px}.product-list-head{grid-template-columns:2fr .65fr .6fr .85fr 170px}.customer-list,.product-list{display:grid}.customer-row,.product-row{display:grid;gap:12px;align-items:center;padding:13px 16px;border-bottom:1px solid #edf1f5}.customer-row{grid-template-columns:1.2fr 1.3fr .55fr .7fr 190px}.product-row{grid-template-columns:2fr .65fr .6fr .85fr 170px}.customer-row:last-child,.product-row:last-child{border-bottom:0}.customer-row strong,.product-row strong{font-size:13px}.customer-row small,.product-row small{display:block;color:var(--admin-muted);font-size:12px;margin-top:2px}.customer-actions,.product-actions{display:flex;justify-content:flex-end}.password-editor,.product-editor{width:100%}.password-editor summary,.product-editor summary{width:100%;justify-content:center}.password-reset-form{display:grid;gap:9px;margin-top:10px;background:#f8fafc;border:1px solid var(--admin-line);border-radius:12px;padding:10px}.password-reset-form input{height:36px}.rich-product-admin img{width:60px;height:60px;border-radius:12px;background:#f6faf3;object-fit:contain}.product-form-panel{background:linear-gradient(180deg,#fff,#fbfdfb)}.image-current-preview{display:flex;align-items:center;gap:10px;background:#f8fafc;border:1px solid var(--admin-line);border-radius:12px;padding:8px 10px;color:#667085;font-size:12px;font-weight:800}.image-current-preview img{width:54px;height:54px;object-fit:contain;border-radius:10px;background:#fff;border:1px solid #edf1f5}.delete-locked-note{margin-top:10px;padding:10px 12px;border-radius:12px;background:#fff7e6;color:#b45309;border:1px solid #fde7bd;font-size:12px;font-weight:900}.reports-grid{align-items:start}.report-stats{margin-top:2px}.report-date-filter{margin-bottom:0}.report-head{align-items:flex-start}@media(max-width:1180px){.customer-list-head,.product-list-head{display:none}.customer-row,.product-row{grid-template-columns:1fr 1fr}.customer-actions,.product-actions{justify-content:flex-start}.customer-actions,.product-actions{grid-column:1 / -1}}@media(max-width:680px){.customer-row,.product-row{grid-template-columns:1fr}.rich-product-admin img{width:52px;height:52px}.report-date-filter{display:grid;grid-template-columns:1fr}.report-date-filter label{width:100%}}

/* Product edit panel full-width fix */
.product-row{position:relative;overflow:visible}.product-row:has(.product-editor[open]){grid-template-columns:1fr!important;align-items:start}.product-row:has(.product-editor[open])>.rich-product-admin,.product-row:has(.product-editor[open])>div:not(.product-actions){display:none}.product-row:has(.product-editor[open])>.product-actions{grid-column:1 / -1;width:100%;justify-content:stretch}.product-editor[open]{width:100%;display:block}.product-editor[open]>summary{width:120px;margin-left:auto;margin-bottom:12px}.product-editor[open]>.admin-form.grid-form{width:100%;max-width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;background:#f8fafc;border:1px solid var(--admin-line);border-radius:14px;padding:14px;margin-top:0;overflow:hidden}.product-editor[open]>.admin-form.grid-form label,.product-editor[open]>.admin-form.grid-form input,.product-editor[open]>.admin-form.grid-form textarea{min-width:0;width:100%}.product-editor[open] form:not(.admin-form){margin-top:10px}.product-editor[open] .danger-button{height:36px;margin-top:0}.product-editor[open] .delete-locked-note{max-width:520px}.product-actions{min-width:0}.product-editor{min-width:0}@media(max-width:900px){.product-editor[open]>.admin-form.grid-form{grid-template-columns:repeat(2,minmax(0,1fr))}.product-editor[open] .span-4{grid-column:span 2}.product-editor[open] .span-2{grid-column:span 2}}@media(max-width:620px){.product-editor[open]>.admin-form.grid-form{grid-template-columns:1fr}.product-editor[open] .span-4,.product-editor[open] .span-2{grid-column:auto}.product-editor[open]>summary{width:100%;margin-left:0}}

/* Admin editable homepage banners */
.admin-head-link{height:38px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.banner-admin-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:14px;align-items:start}.banner-admin-card{display:grid;gap:13px;overflow:hidden}.banner-preview{border:1px solid var(--admin-line);border-radius:14px;background:#f8fafc;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65)}.banner-preview.main{aspect-ratio:2 / 1}.banner-preview.top_right{aspect-ratio:2.5 / 1}.banner-preview.bottom_right{aspect-ratio:2 / 1}.banner-preview img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;background:#fff}.banner-admin-copy h2{font-size:18px;margin:4px 0}.banner-admin-copy p{margin:0;color:var(--admin-muted);font-size:13px}.banner-form{display:grid;gap:10px}.banner-form input{width:100%;min-width:0}.banner-form .check-admin{justify-content:flex-start}.banner-form button{width:100%}@media(max-width:1180px){.banner-admin-grid{grid-template-columns:1fr 1fr}.banner-admin-card:first-child{grid-column:1 / -1}}@media(max-width:700px){.banner-admin-grid{grid-template-columns:1fr}.banner-admin-card:first-child{grid-column:auto}.admin-head-link{width:100%}}
