/* VivaLar V21 — Admin workspace redesign */
body:has(.v21-admin-shell){background:#f4f5f8}
.v21-admin-shell:not(.v21-is-unlocked){display:none!important}
.v21-admin-shell{display:grid!important;grid-template-columns:254px minmax(0,1fr)!important;min-height:100dvh;width:100%;align-items:stretch}
.v21-admin-shell .admin-side{width:254px!important;min-width:0;position:sticky!important;top:0;height:100dvh!important;overflow-y:auto;overflow-x:hidden;background:#111419;padding:24px 14px!important;display:flex;flex-direction:column;gap:16px}
.v21-admin-shell .admin-side nav{margin:0!important;display:flex!important;flex-direction:column!important;gap:4px!important;overflow:visible!important}
.v21-side-brand{padding:6px 8px 15px;border-bottom:1px solid #292d36}
.v21-admin-shell .admin-side .admin-logo-link{border:0!important;margin:0!important;padding:0!important;display:block!important}
.v21-admin-shell .admin-side .admin-logo-link img{width:168px!important;height:auto;max-height:60px;object-fit:contain;object-position:left;filter:brightness(0) invert(1)}
.v21-admin-shell .admin-side .admin-logo-link img.vl-custom-dark-logo{filter:none!important}
.v21-brand-sub{font-size:10px;color:#dde0e8;font-weight:850;letter-spacing:.14em;margin-top:16px}
.v21-brand-sub span{display:block;color:#7f8998;letter-spacing:normal;font-size:12px;margin-top:3px;font-weight:500}
.v21-admin-shell .admin-side .navgroup{display:block!important;padding:16px 13px 4px!important;margin:0!important;color:#87909c;font-size:10px;letter-spacing:.12em}
.v21-admin-shell .admin-side nav button{display:flex;align-items:center;gap:11px;width:100%;min-height:45px;padding:11px 12px;border-radius:12px;text-align:left!important;font-weight:650;font-size:13px;color:#acb4c2;white-space:normal}
.v21-admin-shell .admin-side nav button:hover{background:#202630!important;color:#fff!important}
.v21-admin-shell .admin-side nav button.active{background:#ffda42!important;color:#171717!important;box-shadow:none!important;font-weight:850}
.v21-admin-shell .admin-side nav button.active .v21-ico{color:#171717}
.v21-ico{width:19px;height:19px;flex:0 0 19px;vertical-align:middle}
.v21-side-bottom{margin-top:auto;border-top:1px solid #2a2e37;padding-top:12px;display:grid;gap:4px}
.v21-side-bottom a,.v21-side-bottom button{display:flex;align-items:center;gap:10px;padding:11px 12px;border:0;border-radius:11px;width:100%;font-size:12px;font-weight:750;background:transparent;color:#c0c6ce;cursor:pointer;text-align:left}
.v21-side-bottom a:hover,.v21-side-bottom button:hover{background:#252b36;color:white}
.v21-admin-shell .admin-main{width:100%!important;max-width:none!important;min-width:0;padding:32px clamp(18px,3.4vw,54px)!important}
.v21-admin-shell .admin-head,.v21-admin-shell .admin-view{max-width:1380px;margin-left:auto;margin-right:auto}
.v21-admin-shell .admin-view{min-width:0}
.v21-admin-head{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:25px;padding:0 0 19px;border-bottom:1px solid #e1e4e9}
.v21-breadcrumb{font-size:12px;color:#858b97;font-weight:700}.v21-breadcrumb span{margin:0 7px}
.v21-admin-head h1{font-size:clamp(26px,2.6vw,36px);margin:6px 0 4px;letter-spacing:-.045em}
.v21-admin-head p{max-width:600px;line-height:1.5;font-size:13px}
.v21-head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.v21-admin-shell .admin-pill{display:inline-flex;align-items:center;gap:7px;background:#e6f5e8!important;color:#236d34!important;border:1px solid #c9ebd2!important;padding:10px 12px;border-radius:10px}
.v21-admin-shell .admin-pill .v21-ico{width:16px;height:16px;flex-basis:16px}
.v21-head-actions button,.v21-head-actions a{display:inline-flex;align-items:center;gap:8px;border:1px solid #e0e3e8;background:white;color:#242932;border-radius:10px;padding:10px 12px;font-size:12px;font-weight:750;cursor:pointer;min-height:39px}
.v21-head-actions .v21-ico{width:16px;height:16px;flex-basis:16px}
.v21-head-actions button:hover,.v21-head-actions a:hover{border-color:#d4ad18;background:#fff9da}
.v21-welcome{background:#161a20;color:white;border-radius:22px;padding:26px 29px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:19px;box-shadow:0 12px 30px rgba(15,17,22,.08)}
.v21-welcome-kicker{color:#ffd32c;font-size:10px;font-weight:900;letter-spacing:.14em}
.v21-welcome h2{font-size:clamp(22px,2.4vw,32px);letter-spacing:-.05em;line-height:1.1;margin:8px 0}
.v21-welcome p{color:#b9bec8;margin:0;max-width:650px;line-height:1.55;font-size:13px}
.v21-welcome-btn{display:inline-flex;align-items:center;gap:9px;background:#ffd21c;color:#181818;border:0;border-radius:12px;padding:13px 16px;font-weight:850;cursor:pointer;white-space:nowrap}
.v21-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.v21-admin-shell .metric{min-width:0;border-color:#e3e6eb;border-radius:18px;padding:21px;box-shadow:0 2px 7px rgba(15,17,22,.015)}
.v21-admin-shell .metric strong{font-size:clamp(22px,2.4vw,30px);overflow-wrap:anywhere;margin-top:12px}
.v21-metric-icon{display:grid;place-items:center;width:38px;height:38px;background:#fff5c5;border-radius:12px;margin-bottom:13px;color:#1b1d22}
.v21-admin-shell .metric .label{display:block;color:#69717d;font-size:12px}
.v21-admin-shell .metric small{font-size:11px;color:#9aa1aa}
.v21-overview-bottom{grid-template-columns:minmax(0,1.45fr) minmax(275px,.8fr);align-items:start}
.v21-admin-shell .admin-card{min-width:0;border-radius:18px;border-color:#e4e7ea;box-shadow:0 3px 14px rgba(20,25,35,.025);padding:24px;margin-bottom:17px}
.v21-admin-shell .admin-card h2{font-size:18px;letter-spacing:-.02em}
.v21-admin-shell .admin-card .sub{line-height:1.55}
.v21-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.v21-section-title .sub{margin:5px 0 0!important}
.v21-text-link{display:inline-flex;align-items:center;gap:6px;padding:8px;color:#735a00;border:0;background:#fff6cd;border-radius:9px;white-space:nowrap;font-weight:750;font-size:12px;cursor:pointer}
.v21-text-link .v21-ico{width:15px;height:15px;flex-basis:15px}
.v21-recent-list{display:grid;gap:8px}
.v21-recent-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px 4px;border-bottom:1px solid #f0f1f3}
.v21-recent-row b{display:block;font-size:13px}.v21-recent-row small{display:block;color:#8e95a0;margin-top:3px}
.v21-recent-row strong{font-size:14px;text-align:right}.v21-recent-row .status{display:inline-flex;margin-top:5px}
.v21-shortcut-list{display:grid;gap:7px}
.v21-shortcut-list button{display:flex;align-items:center;gap:11px;width:100%;padding:12px 10px;background:#f7f8fa;border:1px solid transparent;border-radius:11px;text-align:left;color:#252a32;font-size:13px;font-weight:730;cursor:pointer}
.v21-shortcut-list button:hover{border-color:#f1cf5d;background:#fff9dc}
.v21-shortcut-list button .v21-ico:last-child{margin-left:auto;width:15px;height:15px;flex-basis:15px;color:#a3a9b3}
.v21-dash-note{margin:13px 0 0;color:#858b94;font-size:11px;line-height:1.5}
.v21-data-label{display:inline-flex;background:#e9f5eb;color:#2e713d;border-radius:30px;padding:8px 11px;font-size:11px;font-weight:750;white-space:nowrap}
.v21-info-note{padding:14px 17px;border-radius:13px;background:#fff8d8;border:1px solid #f1e19e;color:#675317;font-size:12px;line-height:1.6;margin-bottom:16px}
.v21-admin-shell .tablewrap{width:100%;min-width:0;overflow-x:auto}
.v21-admin-shell .admin-table{width:100%;min-width:600px;border-collapse:separate;border-spacing:0}
.v21-admin-shell .admin-table th{background:#f8f9fb;color:#737b86;text-transform:none;font-size:12px;letter-spacing:0}
.v21-admin-shell .admin-table th,.v21-admin-shell .admin-table td{padding:14px 13px;border-bottom:1px solid #eff1f4}
.v21-admin-shell .admin-table td select{padding:8px 10px;border:1px solid #d9dee6;border-radius:9px;background:#fff;max-width:190px;width:100%}
.v21-product-editor{margin-top:10px}
.v21-product-editor>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:15px;font-weight:850;font-size:16px;min-height:40px}
.v21-product-editor>summary::-webkit-details-marker{display:none}
.v21-product-editor>summary:after{content:'+';font-size:25px;color:#a38500}
.v21-product-editor[open]>summary:after{content:'−'}
.v21-product-editor>summary small{color:#8a909b;font-size:11px;font-weight:500}
.v21-editor-body{padding-top:18px;margin-top:16px;border-top:1px solid #e9ecf0}
.v21-admin-shell .admin-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.v21-admin-shell .field{min-width:0}
.v21-admin-shell .field input,.v21-admin-shell .field select,.v21-admin-shell .field textarea{min-width:0;max-width:100%}
.v21-admin-shell .admin-btn.yellow{background:#ffd21c!important;color:#121212!important}
.v21-admin-shell .admin-two{grid-template-columns:minmax(0,1.2fr) minmax(0,.85fr);align-items:start}
.v21-admin-shell #view-appearance .admin-two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.v21-admin-shell #view-products .admin-table th:nth-child(3),.v21-admin-shell #view-products .admin-table td:nth-child(3){display:table-cell}
@media(max-width:1250px){.v21-admin-shell{grid-template-columns:226px minmax(0,1fr)!important}.v21-admin-shell .admin-side{width:226px!important}.v21-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.v21-overview-bottom{grid-template-columns:1fr}.v21-admin-shell .admin-two,.v21-admin-shell #view-appearance .admin-two{grid-template-columns:1fr}}
@media(max-width:860px){
 .v21-admin-shell{display:block!important;min-height:100dvh}
 .v21-admin-shell .admin-side{width:100%!important;height:auto!important;position:relative!important;overflow:visible!important;padding:14px 12px 8px!important;display:block!important}
 .v21-admin-shell .v21-side-brand{display:flex;align-items:center;gap:18px;border:0;padding:0 4px 8px}
 .v21-admin-shell .admin-side .admin-logo-link img{max-width:125px!important;max-height:36px}
 .v21-admin-shell .v21-brand-sub{margin:0}
 .v21-admin-shell .admin-side nav{display:flex!important;flex-direction:row!important;overflow-x:auto!important;gap:7px!important;scrollbar-width:thin;align-items:center}
 .v21-admin-shell .admin-side nav .navgroup{display:none!important}
 .v21-admin-shell .admin-side nav button{width:auto!important;min-height:41px!important;padding:9px 12px!important;flex:0 0 auto;white-space:nowrap;font-size:12px}
 .v21-admin-shell .admin-side nav button .v21-ico{width:16px;height:16px;flex:0 0 16px}
 .v21-admin-shell .v21-side-bottom{display:none}
 .v21-admin-shell .admin-main{padding:20px 14px!important}
 .v21-admin-head{align-items:flex-start;flex-direction:column}
 .v21-head-actions{width:100%}
 .v21-welcome{padding:23px 20px}
 .v21-admin-shell .admin-two{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:540px){
 .v21-admin-head h1{font-size:26px}
 .v21-welcome{flex-direction:column;align-items:flex-start}
 .v21-welcome-btn{width:100%;justify-content:center}
 .v21-metrics{gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .v21-admin-shell .metric{padding:14px}
 .v21-admin-shell .metric strong{font-size:20px}
 .v21-admin-shell .admin-form{grid-template-columns:minmax(0,1fr)}
 .v21-section-title{flex-direction:column;align-items:flex-start}
 .v21-admin-shell .admin-card{padding:16px}
 .v21-head-actions .admin-pill{width:100%}
 .v21-admin-shell .admin-table th:nth-child(3),.v21-admin-shell .admin-table td:nth-child(3){display:table-cell}
}

.v21-admin-shell .admin-pill.v21-warning{background:#fff5d4!important;color:#74530b!important;border-color:#f0d682!important}

.v21-admin-search{display:block;flex:1;max-width:290px;min-width:140px}.v21-admin-search input{border:1px solid #e0e4eb;border-radius:10px;padding:11px 13px;background:#fbfcfe;width:100%;font-size:12px}.v21-admin-search input:focus{outline:2px solid #ffd21c;outline-offset:1px}
@media(max-width:540px){.v21-admin-search{max-width:none;width:100%}}
