.admin-body{background:#f7f8f5}.sidebar{position:fixed;top:0;bottom:0;left:0;width:232px;background:#172b23;color:#e6ece4;padding:33px 22px;display:flex;flex-direction:column}.sidebar .brand{font-size:26px;margin-bottom:52px}.sidebar .brand-mark{color:#172b23;font-size:24px}.sidebar-label{font-size:10px;letter-spacing:1.5px;color:#7e9688;padding:0 12px;margin-bottom:18px}.side-item{display:flex;gap:13px;align-items:center;border:0;border-radius:7px;background:none;color:#9eb2a5;padding:14px 16px;font-size:16px;margin-bottom:6px;text-align:left}.side-item span{font-size:14px}.side-item.active{background:#d3f56a;color:#172b23}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:22px;padding:12px;font-size:13px}.sidebar-bottom button{background:none;border:0;color:#b6c5ba;text-align:left;padding:0}.sidebar-bottom small{font-size:9px;letter-spacing:1.5px;color:#607c6a;margin-top:10px}.admin-main{margin-left:232px}.admin-header{display:flex;justify-content:space-between;align-items:center;padding:21px 35px;background:white;border-bottom:1px solid var(--line);font-size:13px}.breadcrumb{color:#879487;margin-left:14px}.admin-header>div{display:flex;align-items:center;gap:20px}.badge{background:#eef4e5;color:#647647;padding:6px 10px;font-size:11px;border-radius:5px;white-space:nowrap}.avatar{width:32px;height:32px;border-radius:50%;background:#e9edde;display:grid;place-items:center;font-size:11px;font-weight:700}.admin-main main{padding:37px;max-width:1450px}.admin-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;gap:20px}.admin-title h1{font-size:31px;letter-spacing:-1.2px;margin:0 0 8px}.admin-title p{color:var(--muted);font-size:14px;margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:30px}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:23px}.stat-label{font-size:12px;color:var(--muted);display:flex;justify-content:space-between}.stat strong{font-family:Manrope,sans-serif;display:block;font-size:29px;letter-spacing:-1px;margin:18px 0 6px}.stat small{font-size:11px;color:#81906e}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:24px}.panel-heading{padding:22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.panel-heading h2{font-size:16px;margin:0}.panel-heading p{font-size:12px;color:var(--muted);margin:5px 0 0}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px;white-space:nowrap}th{background:#fafbf8;color:#889282;font-size:10px;font-weight:500;text-transform:uppercase;letter-spacing:.8px;padding:14px 20px}td{padding:17px 20px;border-bottom:1px solid #edf0e9}tr:last-child td{border:0}.table-product{display:flex;align-items:center;gap:12px}.table-product img{width:40px;height:40px;object-fit:contain;background:var(--wash);border-radius:5px}.table-product b{font-size:13px;display:block;max-width:260px;overflow:hidden;text-overflow:ellipsis}.table-product small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.status{display:inline-flex;padding:5px 8px;border-radius:4px;background:#eef4e7;color:#658047;font-size:11px}.status.pending{background:#fff3d8;color:#a5812c}.status.cancelled{background:#fbece7;color:#a96754}.table-action{border:1px solid var(--line);background:white;padding:6px 10px;border-radius:5px;font-size:12px;margin-right:5px}.dashboard-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:24px}.inventory-bars{padding:24px}.bar-row{margin-bottom:22px}.bar-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:9px}.bar-track{height:7px;border-radius:4px;background:#f0f3ec}.bar-fill{height:100%;background:#accb68;border-radius:4px}.notice{font-size:13px;line-height:1.65;padding:13px 16px;border:1px solid #dce6cd;background:#f0f5e9;border-radius:6px;color:#6b7c51;margin-bottom:24px}.admin-search{border:1px solid var(--line);border-radius:6px;padding:9px 12px;font-size:13px;min-width:220px}.toggle-row{display:flex;align-items:center;justify-content:space-between;font-size:14px;padding:11px 0;border-bottom:1px solid var(--line)}.toggle-row input{width:18px;height:18px;accent-color:#668943}.form-help{font-size:12px;color:var(--muted);line-height:1.6}.login{max-width:430px;margin:60px auto;background:white;padding:35px;border:1px solid var(--line);border-radius:12px}.login h1{font-size:28px;letter-spacing:-1px}.login p{font-size:14px;line-height:1.7;color:var(--muted)}.delete-button{background:#9a4236!important}.analytics-cell{font-size:12px;color:#748365}.order-detail{font-size:14px;line-height:1.8}.order-detail p{white-space:pre-line}.image-fallback{text-align:center;font-size:13px;line-height:1.7;color:#6f7e64}.media-preview{width:100%;max-height:280px;margin-bottom:20px;border-radius:8px}.product-engagement{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;color:#7a8970;margin-top:10px}.favorite{position:absolute;right:12px;top:12px;width:30px;height:30px;border:0;background:#ffffffdc;border-radius:50%;z-index:2;font-size:19px}.favorite.selected{background:var(--lime)}.catalog-toolbar{flex-wrap:wrap}.category-tabs{flex:1;min-width:60%}.video-badge{position:absolute;left:12px;bottom:12px;background:#172b23db;color:white;padding:5px 8px;border-radius:4px;font-size:10px}.favorite-filter{border:0;background:none;font-size:13px}.favorite-filter.active{color:#6b8d36;font-weight:700}
@media(max-width:1100px){.sidebar{width:195px;padding:30px 15px}.sidebar .brand{font-size:23px}.admin-main{margin-left:195px}.admin-main main{padding:26px}.stats{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.admin-title h1{font-size:28px}}
@media(max-width:700px){.sidebar{position:relative;width:100%;flex-direction:row;padding:15px;gap:7px;align-items:center;flex-wrap:wrap}.sidebar .brand{margin:0 auto 0 0;font-size:23px}.sidebar .brand-mark,.sidebar-label,.sidebar-bottom small{display:none}.side-item{padding:10px;font-size:14px;margin:0;gap:4px}.side-item span{font-size:12px}.sidebar-bottom{margin:0;padding:0;flex-direction:row;width:100%;font-size:12px;gap:20px;padding-top:10px}.admin-main{margin-left:0}.admin-header{padding:16px 20px}.admin-main main{padding:24px 17px}.admin-title{align-items:flex-start}.admin-title .primary{padding:12px;font-size:12px;white-space:nowrap}.admin-title p{font-size:12px}.stats{gap:12px}.stat{padding:17px}.stat strong{font-size:26px}.panel-heading{padding:16px;gap:10px;flex-wrap:wrap}.admin-search{min-width:0;max-width:100%}td,th{padding:13px}.login{margin:20px auto;padding:25px}.admin-title h1{font-size:25px}}

/* Keep table controls reachable without scrolling to the end of a long page. */
.admin-main{min-width:0}.admin-main main{min-width:0}
.admin-body .table-wrap{max-width:100%;max-height:70vh;overflow:auto;position:relative;isolation:isolate;scrollbar-gutter:stable;overscroll-behavior:contain}
.admin-body .table-wrap table{border-collapse:separate;border-spacing:0}
.admin-body .table-wrap thead th{position:sticky;top:0;z-index:2;background:#fafbf8;box-shadow:0 1px 0 #dfe5da}
.admin-body .table-wrap table:has(tbody td:last-child button) tr>:last-child:not([colspan]){position:sticky;right:0;z-index:1;background:#fff;box-shadow:-3px 0 5px #172b2312;white-space:normal;min-width:145px;max-width:190px}
.admin-body .table-wrap table:has(tbody td:last-child button) thead tr>th:last-child{z-index:3;background:#fafbf8}
.admin-body .table-wrap td:last-child .table-action{margin-bottom:5px}
.admin-body .sidebar{overflow-y:auto}
@media(max-width:600px){.admin-body .table-wrap tr>:last-child:not([colspan]){padding-left:10px;padding-right:10px}.admin-body .table-wrap table:has(tbody td:last-child button) tr>:last-child:not([colspan]){min-width:110px;max-width:145px}}

/* Shared responsive admin layout. Long content wraps inside its own cell. */
.admin-body *, .admin-body *::before, .admin-body *::after{box-sizing:border-box}
.admin-body .admin-main main{width:100%}
.admin-body :is(.panel,.stat,.dashboard-grid>*,.form-grid>*,.field,.admin-title>*,.panel-heading>*){min-width:0;max-width:100%}
.admin-body :is(p,h1,h2,h3,small,.notice,.form-help,.bar-label){overflow-wrap:anywhere}
.admin-body :is(.admin-title,.panel-heading,.admin-header,.report-actions,.account-shortcuts,.bar-label){flex-wrap:wrap;gap:12px}
.admin-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.admin-body #software-settings{grid-column:1/-1}
.admin-body :is(input,select,textarea,button){max-width:100%;min-width:0}
.admin-body :is(button,.primary,.table-action){white-space:normal;overflow-wrap:anywhere}
.admin-body .toggle-row{gap:16px}.admin-body .toggle-row input{flex-shrink:0}
.admin-body .table-wrap :is(th,td){white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.5;min-width:110px;max-width:320px}
.admin-body .table-product{min-width:180px;align-items:flex-start}
.admin-body .table-product img{flex:0 0 40px}
.admin-body .table-product b{white-space:normal;overflow:visible;text-overflow:clip}
.admin-body .login-history-table{table-layout:fixed;min-width:620px}
.admin-body .login-history-table th:nth-child(1){width:22%}
.admin-body .login-history-table th:nth-child(2){width:18%}
.admin-body .login-history-table th:nth-child(3){width:36%}
.admin-body .login-history-table th:nth-child(4){width:24%}
.admin-body .login-device{white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.admin-body dialog{overflow:auto;max-width:calc(100vw - 24px);max-height:90dvh}
.admin-body .sidebar>*{flex-shrink:0}
.admin-body .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.admin-body .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
.admin-body .sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:none}
.admin-body .sidebar .brand,.admin-body .sidebar-bottom{grid-column:1/-1}
.admin-body .sidebar .brand{margin-bottom:10px}
.admin-body .side-item{width:100%;min-height:42px}
.admin-body .sidebar-bottom{flex-wrap:wrap}
.admin-body .admin-header{padding:14px 16px}
.admin-body .admin-header>div{gap:10px}
.admin-body .admin-main main{padding:20px 12px}
.admin-body .admin-title{flex-direction:column;align-items:stretch}
.admin-body .admin-title .primary{align-self:flex-start;white-space:normal}
.admin-body .panel[style]{padding:16px!important}
.admin-body .form-grid{grid-template-columns:minmax(0,1fr)}
.admin-body .report-filters>*{flex:1 1 150px;min-width:0;max-width:100%}
.admin-body .settings-form{padding:16px}
.admin-body dialog{padding:30px 16px 20px}
}
@media(max-width:380px){.admin-body .stats{grid-template-columns:minmax(0,1fr)}}

.website-admin-frame{display:block;width:100%;height:560px;min-height:560px;border:0;border-radius:10px;background:#fff;overflow:hidden}.website-management-tabs{margin-bottom:14px;position:sticky;top:0;z-index:3;box-shadow:0 5px 18px #172b2310}
.system-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:22px}
.system-check{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:8px}
.system-copy{padding:22px;line-height:1.65}.system-db-version{font-size:18px!important;overflow-wrap:anywhere}
.system-stats .stat small{display:block;margin-top:9px}
@media(max-width:700px){.website-admin-frame{height:560px;min-height:560px}.system-checks{grid-template-columns:1fr;padding:16px}}

.attention-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin:0 24px 24px;padding:10px 16px;border:1px solid #cfd8c9;border-radius:7px;background:#f4f6f1;color:var(--ink);font-weight:700;font-size:12px;line-height:1.2;transition:background-color .18s,border-color .18s,transform .18s}.attention-toggle:hover{background:var(--lime);border-color:#b6d94e;transform:translateY(-1px)}.attention-toggle:active{transform:translateY(0)}@media(max-width:700px){.attention-toggle{width:calc(100% - 32px);margin:0 16px 16px}}
