:root {
    --admin-primary: #5146ff;
    --admin-primary-dark: #382ee6;
    --admin-ink: #0d1738;
    --admin-muted: #687493;
    --admin-line: #e3e8f4;
    --admin-soft: #f6f8fd;
    --admin-success: #08a863;
    --admin-danger: #dc3f4f;
    --admin-sidebar: 246px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; color: var(--admin-ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.admin-body { min-height: 100vh; background: #fbfcff; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; z-index: 40; display: flex; flex: 0 0 var(--admin-sidebar); flex-direction: column; width: var(--admin-sidebar); height: 100vh; padding: 18px 12px; border-right: 1px solid var(--admin-line); background: #fff; }
.admin-brand { display: inline-flex; align-items: center; gap: 14px; color: var(--admin-ink); }
.admin-sidebar .admin-brand { padding: 0 12px 24px; }
.admin-brand-mark { display: grid; flex: 0 0 43px; width: 43px; height: 43px; place-items: center; border-radius: 11px; color: #fff; font-size: 25px; font-weight: 850; box-shadow: 0 10px 24px rgba(81, 70, 255, .25); background: linear-gradient(145deg, #6357ff, #3b31e7); }
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand strong { font-size: 21px; letter-spacing: -.5px; }
.admin-brand small { margin-top: 2px; color: var(--admin-muted); font-size: 13px; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav-item { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 13px; min-height: 47px; padding: 0 14px; border-radius: 10px; color: #4b5878; font-size: 14px; font-weight: 600; transition: .18s ease; }
.admin-nav-item svg { width: 22px; height: 22px; }
.admin-nav-item:not(.is-disabled):hover { color: var(--admin-primary); background: #f5f4ff; }
.admin-nav-item.is-active { color: var(--admin-primary); background: linear-gradient(90deg, #f0efff, #f6f5ff); }
.admin-nav-item.is-disabled { cursor: default; opacity: .73; }
.admin-nav-item small { display: none; padding: 3px 6px; border-radius: 999px; background: #f0f2f8; font-size: 9px; }
.admin-nav-item.is-disabled:hover small { display: inline-block; }
.admin-view-site { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 12px 14px; border: 1px solid var(--admin-line); border-radius: 10px; color: var(--admin-primary); font-size: 13px; font-weight: 700; }
.admin-view-site:hover { border-color: #cac5ff; background: #f8f7ff; }
.admin-workspace { min-width: 0; flex: 1; }
.admin-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; min-height: 68px; padding: 0 28px 0 32px; border-bottom: 1px solid var(--admin-line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.admin-menu-button { display: none; margin-right: 12px; border: 0; background: transparent; color: var(--admin-ink); font-size: 24px; }
.admin-global-search { display: flex; align-items: center; gap: 10px; width: min(397px, 42vw); height: 42px; padding: 0 14px; border-radius: 9px; color: #536280; background: #f5f6fb; }
.admin-global-search svg { width: 19px; }
.admin-global-search input { width: 100%; border: 0; outline: 0; color: var(--admin-ink); background: transparent; }
.admin-global-search input::placeholder { color: #a8b0c7; }
.admin-top-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.admin-notification { position: relative; color: #445170; font-size: 22px; }
.admin-notification > span { position: absolute; top: -1px; right: -2px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #ff454e; }
.admin-profile { display: flex; align-items: center; gap: 10px; }
.admin-avatar { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 11px; color: var(--admin-primary); font-size: 13px; font-weight: 800; background: #efedff; }
.admin-profile-name { font-size: 13px; font-weight: 750; }
.admin-profile form { margin: 0; }
.admin-logout { padding: 7px 9px; border: 0; border-radius: 7px; color: var(--admin-muted); cursor: pointer; background: transparent; font-size: 12px; }
.admin-logout:hover { color: var(--admin-danger); background: #fff1f2; }
.admin-main { width: 100%; max-width: 1370px; margin: 0 auto; padding: 27px 32px 48px; }
.admin-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.admin-page-heading h1 { margin: 0 0 5px; font-size: clamp(27px, 3vw, 32px); line-height: 1.2; letter-spacing: -1px; }
.admin-page-heading p { max-width: 690px; margin: 0; color: var(--admin-muted); font-size: 14px; line-height: 1.55; }
.admin-page-heading .admin-eyebrow { margin-bottom: 6px; color: var(--admin-primary); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.admin-button { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 750; white-space: nowrap; transition: .18s ease; }
.admin-button--primary { color: #fff; border-color: var(--admin-primary); background: linear-gradient(135deg, #5d51ff, #4539f2); box-shadow: 0 8px 18px rgba(81, 70, 255, .18); }
.admin-button--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(81, 70, 255, .26); }
.admin-button--secondary { color: var(--admin-ink); border-color: #d9dfec; background: #fff; }
.admin-button--wide { width: 100%; }
.admin-flash-stack { position: fixed; z-index: 90; top: 80px; right: 24px; display: grid; gap: 8px; width: min(390px, calc(100vw - 32px)); }
.admin-flash { padding: 12px 15px; border: 1px solid #dfe5f0; border-radius: 10px; color: #25314e; background: #fff; box-shadow: 0 14px 30px rgba(19, 28, 61, .12); font-size: 13px; line-height: 1.45; }
.admin-flash--success { color: #087543; border-color: #b8ead1; background: #effcf5; }
.admin-flash--error { color: #a52232; border-color: #f4c4ca; background: #fff3f4; }
.admin-section-tabs { display: flex; gap: 10px; margin-bottom: 26px; border-bottom: 1px solid var(--admin-line); }
.admin-section-tabs button { position: relative; min-height: 46px; padding: 0 19px; border: 0; color: #4d5978; background: transparent; font-size: 13px; font-weight: 700; }
.admin-section-tabs button.is-active { color: var(--admin-primary); }
.admin-section-tabs button.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--admin-primary); content: ""; }
.admin-section-tabs button span { margin-left: 5px; padding: 2px 6px; border-radius: 20px; background: #efedff; font-size: 10px; }
.admin-section-tabs button:disabled { cursor: not-allowed; opacity: .55; }
.admin-product-table { overflow: hidden; border: 1px solid var(--admin-line); border-radius: 14px; background: #fff; box-shadow: 0 12px 34px rgba(27, 40, 83, .035); }
.admin-product-table-head, .admin-product-row { display: grid; grid-template-columns: minmax(250px, 2fr) minmax(105px, .8fr) minmax(90px, .65fr) minmax(115px, .8fr) minmax(75px, .48fr) 70px; align-items: center; gap: 14px; }
.admin-product-table-head { min-height: 49px; padding: 0 16px; border-bottom: 1px solid var(--admin-line); color: #64708e; background: #fafbfe; font-size: 11px; font-weight: 750; }
.admin-product-row { min-height: 74px; padding: 10px 16px; border-bottom: 1px solid var(--admin-line); transition: background .15s ease; }
.admin-product-row:hover { background: #fcfcff; }
.admin-product-identity { display: flex; min-width: 0; align-items: center; gap: 15px; }
.admin-product-identity > span:last-child { min-width: 0; }
.admin-product-identity strong, .admin-product-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-product-identity strong { margin-bottom: 4px; font-size: 14px; }
.admin-product-identity small { color: var(--admin-muted); font-size: 11px; }
.admin-product-icon { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 11px; color: #fff; }
.admin-product-icon svg { width: 25px; height: 25px; stroke: currentColor; }
.admin-product-icon.theme-blue { background: linear-gradient(135deg, #3268ff, #1550ed); }
.admin-product-icon.theme-green { background: linear-gradient(135deg, #21c98a, #06a866); }
.admin-product-icon.theme-purple { background: linear-gradient(135deg, #8956f4, #6838de); }
.admin-product-icon.theme-orange { background: linear-gradient(135deg, #ff9e26, #ff7308); }
.admin-category-pill { display: inline-flex; padding: 5px 13px; border-radius: 999px; color: #315bdc; background: #eaf0ff; font-size: 11px; font-weight: 700; }
.admin-status { display: inline-flex; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.admin-status.is-active { color: #098c55; background: #dff8eb; }
.admin-status.is-inactive { color: #d43a49; background: #ffe9ec; }
.admin-inline-form { margin: 0; }
.admin-switch { position: relative; width: 46px; height: 25px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: #dbe0ec; transition: .2s ease; }
.admin-switch span { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(29, 36, 64, .22); transition: .2s ease; }
.admin-switch.is-on { background: linear-gradient(90deg, #594dff, #3f39ef); }
.admin-switch.is-on span { transform: translateX(21px); }
.admin-store-count { font-size: 12px; }
.admin-more-button { display: grid; width: 39px; height: 36px; place-items: center; border: 1px solid #dce2ef; border-radius: 9px; color: #465573; font-weight: 800; letter-spacing: 1px; }
.admin-more-button:hover { color: var(--admin-primary); border-color: #c5c0ff; background: #f7f6ff; }
.admin-add-row { display: flex; align-items: center; gap: 18px; margin: 14px; padding: 12px 15px; border: 1px dashed #d6deee; border-radius: 10px; }
.admin-add-row > span { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #d9e0ee; border-radius: 10px; color: #4c5c7a; font-size: 23px; }
.admin-add-row strong { font-size: 13px; }
.admin-add-row small { display: block; margin-top: 4px; color: var(--admin-muted); font-size: 11px; font-weight: 500; }
.admin-add-row:hover { border-color: #bcb6ff; background: #faf9ff; }
.admin-empty-search { display: none; padding: 36px; color: var(--admin-muted); text-align: center; }
.admin-empty-search.is-visible { display: block; }

.admin-drawer-backdrop { position: fixed; z-index: 70; inset: 0; background: rgba(12, 20, 48, .26); backdrop-filter: blur(1px); }
.admin-drawer { position: fixed; z-index: 80; top: 0; right: 0; display: flex; flex-direction: column; width: min(480px, 100vw); height: 100vh; border-left: 1px solid var(--admin-line); background: #fff; box-shadow: -18px 0 50px rgba(15, 24, 54, .14); animation: admin-drawer-in .22s ease-out; }
@keyframes admin-drawer-in { from { transform: translateX(35px); opacity: .3; } }
.admin-drawer-heading { display: flex; flex: 0 0 72px; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--admin-line); }
.admin-drawer-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.5px; }
.admin-drawer-heading a { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; color: #53607d; font-size: 28px; }
.admin-drawer-heading a:hover { background: #f2f4f9; }
.admin-product-form { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.admin-drawer-tabs { display: grid; flex: 0 0 50px; grid-template-columns: 1.1fr .9fr 1fr; margin: 0 21px; border: 1px solid #e2e6f0; border-radius: 8px; background: #f4f5f9; }
.admin-drawer-tabs button { position: relative; border: 0; color: #586480; cursor: pointer; background: transparent; font-size: 11px; font-weight: 700; }
.admin-drawer-tabs button.is-active { color: var(--admin-primary); background: #fff; box-shadow: 0 2px 5px rgba(22, 33, 66, .08); }
.admin-drawer-tabs button.is-active::after { position: absolute; right: 13px; bottom: 0; left: 13px; height: 2px; background: var(--admin-primary); content: ""; }
.admin-drawer-content { overflow-y: auto; min-height: 0; flex: 1; padding: 18px 21px 30px; }
.admin-drawer-panel { display: none; }
.admin-drawer-panel.is-active { display: grid; gap: 14px; }
.admin-drawer-panel label { display: grid; gap: 6px; color: var(--admin-ink); font-size: 12px; font-weight: 750; }
.admin-drawer-panel label em { color: #e53345; font-style: normal; }
.admin-drawer-panel input[type="text"], .admin-drawer-panel input[type="number"], .admin-drawer-panel select, .admin-drawer-panel textarea { width: 100%; border: 1px solid #d7deeb; border-radius: 8px; outline: none; color: var(--admin-ink); background: #fff; font-size: 12px; font-weight: 500; transition: .15s ease; }
.admin-drawer-panel input[type="text"], .admin-drawer-panel input[type="number"], .admin-drawer-panel select { height: 39px; padding: 0 11px; }
.admin-drawer-panel textarea { resize: vertical; padding: 10px 11px; line-height: 1.45; }
.admin-drawer-panel input:focus, .admin-drawer-panel select:focus, .admin-drawer-panel textarea:focus { border-color: #837aff; box-shadow: 0 0 0 3px rgba(81, 70, 255, .1); }
.admin-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-upload-box { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 13px; min-height: 80px; padding: 8px; border: 1px solid #dbe1ed; border-radius: 9px; cursor: pointer; }
.admin-upload-box input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.admin-image-preview { display: grid; overflow: hidden; width: 100px; height: 64px; place-items: center; border-radius: 7px; color: #8390aa; background: #f6f7fb; font-size: 11px; }
.admin-image-preview img { width: 100%; height: 100%; object-fit: contain; }
.admin-upload-box strong, .admin-upload-box small { display: block; }
.admin-upload-box strong { font-size: 12px; }
.admin-upload-box small { margin-top: 3px; color: var(--admin-muted); font-size: 10px; font-weight: 500; }
.admin-toggle-field { display: flex !important; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #edf0f6; cursor: pointer; }
.admin-toggle-field span strong, .admin-toggle-field span small { display: block; }
.admin-toggle-field span small { margin-top: 3px; color: var(--admin-muted); font-weight: 500; }
.admin-toggle-field input { position: absolute; opacity: 0; }
.admin-toggle-field i { position: relative; flex: 0 0 45px; width: 45px; height: 25px; border-radius: 999px; background: #dbe0eb; transition: .2s ease; }
.admin-toggle-field i::after { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(20, 28, 55, .2); content: ""; transition: .2s ease; }
.admin-toggle-field input:checked + i { background: var(--admin-primary); }
.admin-toggle-field input:checked + i::after { transform: translateX(20px); }
.admin-field-help { color: var(--admin-muted); font-size: 10px; font-weight: 500; line-height: 1.45; }
.admin-features-textarea { min-height: 240px; }
.admin-drawer-footer { display: flex; flex: 0 0 70px; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 21px; border-top: 1px solid var(--admin-line); background: #fff; }
.admin-form-errors { margin: 12px 21px; padding: 11px 13px; border: 1px solid #f2c1c7; border-radius: 8px; color: #a52232; background: #fff4f5; font-size: 11px; line-height: 1.4; }
.admin-form-errors ul { margin: 5px 0 0; padding-left: 17px; }

.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat-card { display: flex; align-items: center; gap: 15px; padding: 20px; border: 1px solid var(--admin-line); border-radius: 13px; background: #fff; box-shadow: 0 8px 25px rgba(22, 33, 72, .035); }
.admin-stat-icon { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 12px; font-size: 21px; }
.admin-stat-icon svg { width: 23px; height: 23px; }
.admin-stat-icon.is-indigo { color: #5046f5; background: #eeecff; }
.admin-stat-icon.is-green { color: #079157; background: #e1f9ed; }
.admin-stat-icon.is-orange { color: #e97500; background: #fff0df; }
.admin-stat-icon.is-purple { color: #753ee2; background: #f1eaff; }
.admin-stat-card strong, .admin-stat-card span { display: block; }
.admin-stat-card strong { font-size: 25px; }
.admin-stat-card div span { margin-top: 2px; color: var(--admin-muted); font-size: 11px; }
.admin-panel { overflow: hidden; border: 1px solid var(--admin-line); border-radius: 13px; background: #fff; }
.admin-panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--admin-line); }
.admin-panel-heading h2 { margin: 0 0 3px; font-size: 17px; }
.admin-panel-heading p { margin: 0; color: var(--admin-muted); font-size: 11px; }
.admin-panel-heading a { color: var(--admin-primary); font-size: 12px; font-weight: 750; }
.admin-compact-row { display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 15px; min-height: 72px; padding: 10px 20px; border-bottom: 1px solid var(--admin-line); }
.admin-compact-row:last-child { border-bottom: 0; }
.admin-compact-row:hover { background: #fbfbff; }
.admin-compact-row > span:nth-child(2) strong, .admin-compact-row > span:nth-child(2) small { display: block; }
.admin-compact-row > span:nth-child(2) strong { font-size: 13px; }
.admin-compact-row > span:nth-child(2) small { margin-top: 3px; color: var(--admin-muted); font-size: 11px; }
.admin-visibility-text { min-width: 80px; color: var(--admin-muted); font-size: 11px; text-align: right; }

.admin-login-body { display: grid; min-height: 100vh; place-items: center; padding: 28px 16px; background: radial-gradient(circle at 12% 18%, rgba(95, 82, 255, .14), transparent 32%), radial-gradient(circle at 92% 88%, rgba(21, 188, 131, .09), transparent 30%), #f8f9fe; }
.admin-login-card { width: min(440px, 100%); padding: 34px; border: 1px solid #e1e5f0; border-radius: 18px; background: rgba(255, 255, 255, .97); box-shadow: 0 28px 70px rgba(25, 36, 75, .12); }
.admin-login-brand { margin-bottom: 35px; }
.admin-login-copy { margin-bottom: 22px; }
.admin-login-eyebrow { color: var(--admin-primary); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.admin-login-copy h1 { margin: 8px 0 5px; font-size: 30px; letter-spacing: -.8px; }
.admin-login-copy p { margin: 0; color: var(--admin-muted); font-size: 13px; line-height: 1.55; }
.admin-login-form { display: grid; gap: 15px; margin-top: 18px; }
.admin-login-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 750; }
.admin-login-form input { height: 45px; padding: 0 13px; border: 1px solid #d7deeb; border-radius: 9px; outline: 0; color: var(--admin-ink); }
.admin-login-form input:focus { border-color: #837aff; box-shadow: 0 0 0 3px rgba(81, 70, 255, .1); }
.admin-back-link { display: block; margin-top: 22px; color: var(--admin-muted); font-size: 12px; text-align: center; }
.admin-back-link:hover { color: var(--admin-primary); }
.admin-mobile-overlay { display: none; }

@media (max-width: 1050px) {
    .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-product-table-head { display: none; }
    .admin-product-row { grid-template-columns: 1fr auto auto; gap: 10px 18px; }
    .admin-product-row > div[data-label]::before { display: block; margin-bottom: 4px; color: var(--admin-muted); content: attr(data-label); font-size: 9px; font-weight: 700; }
    .admin-product-identity { grid-column: 1 / -1; }
    .admin-product-row > div:last-child { justify-self: end; }
}
@media (max-width: 820px) {
    .admin-sidebar { position: fixed; left: 0; transform: translateX(-100%); transition: transform .22s ease; }
    .admin-body.is-sidebar-open .admin-sidebar { transform: translateX(0); }
    .admin-mobile-overlay { position: fixed; z-index: 35; inset: 0; background: rgba(12, 20, 48, .32); }
    .admin-body.is-sidebar-open .admin-mobile-overlay { display: block; }
    .admin-menu-button { display: block; }
    .admin-topbar { padding: 0 16px; }
    .admin-main { padding: 24px 18px 40px; }
    .admin-profile-name, .admin-notification { display: none; }
    .admin-global-search { width: min(320px, 48vw); }
}
@media (max-width: 600px) {
    .admin-page-heading { align-items: stretch; flex-direction: column; }
    .admin-page-heading .admin-button { align-self: flex-start; }
    .admin-stat-grid { grid-template-columns: 1fr; }
    .admin-section-tabs { overflow-x: auto; }
    .admin-section-tabs button { padding: 0 12px; white-space: nowrap; }
    .admin-product-row { grid-template-columns: repeat(2, 1fr); }
    .admin-product-identity { grid-column: 1 / -1; }
    .admin-compact-row { grid-template-columns: 42px 1fr auto; padding: 10px 12px; }
    .admin-compact-row .admin-product-icon { width: 42px; height: 42px; }
    .admin-visibility-text { display: none; }
    .admin-login-card { padding: 27px 22px; }
    .admin-field-grid { grid-template-columns: 1fr; }
    .admin-drawer-tabs { margin: 0 12px; }
    .admin-drawer-content { padding-right: 15px; padding-left: 15px; }
    .admin-drawer-footer { padding: 0 15px; }
    .admin-global-search { display: none; }
}

/* Stock management */
.has-stock-drawer .admin-workspace { margin-right: 450px; }
.stock-page-heading { margin-bottom: 20px; }
.stock-heading-actions { display: flex; gap: 10px; }
.stock-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stock-stat-grid article { display: flex; min-height: 72px; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid var(--admin-line); border-radius: 10px; background: #fff; }
.stock-stat-grid small, .stock-stat-grid strong { display: block; }
.stock-stat-grid small { margin-bottom: 4px; color: var(--admin-muted); font-size: 10px; }
.stock-stat-grid strong { font-size: 21px; }
.stock-stat-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 10px; font-size: 23px; }
.stock-stat-icon.is-total { color: #5146ff; background: #efedff; }
.stock-stat-icon.is-in { color: #00a866; background: #e2f8ee; }
.stock-stat-icon.is-low { color: #f28516; background: #fff0df; }
.stock-stat-icon.is-out { color: #ec3e4f; background: #ffe9ec; }
.stock-toolbar { display: grid; grid-template-columns: minmax(250px, 1.5fr) minmax(150px, .8fr) minmax(150px, .8fr) auto; gap: 10px; margin-bottom: 16px; }
.stock-toolbar select, .stock-search { height: 40px; border: 1px solid #dce2ee; border-radius: 8px; color: #34415f; background: #fff; font-size: 11px; }
.stock-toolbar select { padding: 0 12px; outline: none; }
.stock-search { display: flex; align-items: center; gap: 9px; padding: 0 13px; background: #f8f9fc; }
.stock-search svg { width: 17px; color: #687693; }
.stock-search input { width: 100%; border: 0; outline: 0; color: var(--admin-ink); background: transparent; }
.stock-search input::placeholder { color: #a0aac0; }
.stock-table { overflow: hidden; border: 1px solid var(--admin-line); border-radius: 10px; background: #fff; }
.stock-table-head, .stock-table-row { display: grid; grid-template-columns: 24px minmax(175px, 1.55fr) minmax(92px, .8fr) minmax(86px, .75fr) 80px 60px 60px 85px 39px; align-items: center; gap: 9px; }
.stock-table-head { min-height: 44px; padding: 0 11px; color: #687491; background: #fafbfe; font-size: 9px; }
.stock-table-row { min-height: 64px; padding: 7px 11px; border-top: 1px solid var(--admin-line); font-size: 10px; transition: .15s ease; }
.stock-table-row:hover, .stock-table-row.is-selected { background: #fbfbff; }
.stock-checkbox { color: #a9b3c9; font-size: 18px; }
.stock-product-cell { display: grid; min-width: 0; grid-template-columns: 48px 1fr; align-items: center; gap: 10px; }
.stock-product-cell img { width: 48px; height: 42px; object-fit: contain; }
.stock-product-cell strong { overflow: hidden; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; }
.stock-category-chip { display: inline-flex; max-width: 100%; padding: 5px 9px; overflow: hidden; border-radius: 999px; color: #315bdc; background: #edf2ff; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.stock-sku { color: #536184; font-size: 9px; }
.stock-price { white-space: nowrap; }
.stock-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.stock-status.is-in { color: #078c54; background: #dff8eb; }
.stock-status.is-low { color: #dc760a; background: #fff0d9; }
.stock-status.is-out { color: #dc3547; background: #ffe7ea; }
.stock-table .admin-more-button { width: 34px; height: 34px; font-size: 10px; }
.stock-pagination { display: flex; align-items: center; justify-content: space-between; padding: 22px 4px; color: #66728f; font-size: 10px; }
.stock-pagination > span strong { display: inline-flex; min-width: 55px; height: 35px; align-items: center; justify-content: center; margin: 0 8px; border: 1px solid var(--admin-line); border-radius: 7px; color: #35415e; background: #fff; }
.stock-pagination div { display: flex; gap: 4px; }
.stock-pagination button { width: 34px; height: 34px; border: 1px solid var(--admin-line); border-radius: 7px; color: #66728f; background: #fff; }
.stock-pagination button.is-active { color: var(--admin-primary); border-color: #eceaff; background: #eeecff; }

.admin-stock-drawer { position: fixed; z-index: 60; top: 0; right: 0; display: flex; flex-direction: column; width: 450px; height: 100vh; border-left: 1px solid var(--admin-line); background: #fff; box-shadow: -10px 0 30px rgba(17, 28, 60, .06); animation: admin-drawer-in .22s ease-out; }
.stock-drawer-product { position: relative; display: grid; flex: 0 0 164px; grid-template-columns: 125px 1fr; align-items: start; gap: 14px; padding: 18px 45px 14px 21px; border-bottom: 1px solid var(--admin-line); }
.stock-drawer-product > img { width: 125px; height: 108px; padding: 6px; object-fit: contain; border: 1px solid var(--admin-line); border-radius: 8px; }
.stock-drawer-product h2 { margin: 3px 0 7px; font-size: 14px; line-height: 1.35; }
.stock-drawer-product p { margin: 0 0 3px; color: #65718d; font-size: 10px; }
.stock-drawer-product div > strong { display: block; margin-top: 9px; font-size: 15px; }
.stock-drawer-close { position: absolute; top: 18px; right: 16px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; color: #53617e; font-size: 24px; }
.stock-drawer-close:hover { background: #f3f5f9; }
.stock-drawer-tabs { display: grid; flex: 0 0 47px; grid-template-columns: repeat(5, 1fr); align-items: stretch; border-bottom: 1px solid var(--admin-line); }
.stock-drawer-tabs span { position: relative; display: grid; place-items: center; color: #5d6987; font-size: 10px; }
.stock-drawer-tabs span.is-active { color: var(--admin-primary); font-weight: 700; }
.stock-drawer-tabs span.is-active::after { position: absolute; right: 9px; bottom: -1px; left: 9px; height: 2px; background: var(--admin-primary); content: ""; }
.stock-drawer-scroll { overflow-y: auto; flex: 1; }
.stock-drawer-section { padding: 18px 21px; border-bottom: 1px solid var(--admin-line); }
.stock-drawer-section h3 { margin: 0 0 12px; font-size: 12px; }
.stock-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--admin-line); border-radius: 8px; }
.stock-info-grid div { padding: 10px 11px; border-right: 1px solid var(--admin-line); }
.stock-info-grid div:last-child { border-right: 0; }
.stock-info-grid small, .stock-info-grid strong, .stock-info-grid span { display: block; }
.stock-info-grid small { margin-bottom: 10px; color: #53607e; font-size: 9px; white-space: nowrap; }
.stock-info-grid strong { font-size: 17px; }
.stock-info-grid span { margin-top: 2px; color: var(--admin-muted); font-size: 9px; }
.stock-adjust-form { display: grid; gap: 12px; }
.stock-adjust-form label, .stock-add-form label { display: grid; gap: 6px; font-size: 10px; font-weight: 750; }
.stock-adjust-form em, .stock-add-form em { color: #e33b4c; font-style: normal; }
.stock-adjust-form input, .stock-adjust-form select, .stock-adjust-form textarea, .stock-add-form input, .stock-add-form select { width: 100%; border: 1px solid #d8dfec; border-radius: 7px; outline: 0; color: var(--admin-ink); background: #fff; font-size: 10px; }
.stock-adjust-form input, .stock-adjust-form select, .stock-add-form input, .stock-add-form select { height: 38px; padding: 0 10px; }
.stock-adjust-form textarea { padding: 10px; resize: vertical; }
.stock-adjust-form input:focus, .stock-adjust-form select:focus, .stock-adjust-form textarea:focus, .stock-add-form input:focus, .stock-add-form select:focus { border-color: #8178ff; box-shadow: 0 0 0 3px rgba(81, 70, 255, .09); }
.stock-section-heading { display: flex; align-items: center; justify-content: space-between; }
.stock-section-heading span { color: var(--admin-primary); font-size: 9px; }
.stock-movement { display: grid; grid-template-columns: 30px 30px 1fr auto; align-items: center; gap: 8px; min-height: 52px; border-top: 1px solid #edf0f6; }
.stock-movement-sign { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; font-size: 16px; }
.stock-movement-sign.is-positive { color: #079259; background: #e2f8ec; }
.stock-movement-sign.is-negative { color: #e33344; background: #ffe8eb; }
.stock-movement > strong { font-size: 11px; }
.stock-movement > strong.is-positive { color: #087d4d; }
.stock-movement > strong.is-negative { color: #e33344; }
.stock-movement div b, .stock-movement div small, .stock-movement time small { display: block; }
.stock-movement div b { font-size: 9px; }
.stock-movement div small, .stock-movement time { color: var(--admin-muted); font-size: 8px; }
.stock-movement time { text-align: right; }
.stock-movement time small { margin-top: 2px; }
.stock-no-movements { margin: 0; padding: 15px 0; color: var(--admin-muted); font-size: 10px; }

.stock-add-drawer .admin-drawer-heading { flex: 0 0 72px; }
.stock-add-form { display: grid; gap: 15px; overflow-y: auto; padding: 22px; }
.stock-add-form .admin-drawer-footer { position: absolute; right: 0; bottom: 0; left: 0; }
.stock-add-form { padding-bottom: 90px; }
.stock-add-form input[type="file"] { height: auto; padding: 8px; }

@media (max-width: 1320px) {
    .has-stock-drawer .admin-workspace { margin-right: 0; }
    .admin-stock-drawer { z-index: 80; box-shadow: -18px 0 50px rgba(15, 24, 54, .18); }
}
@media (max-width: 1050px) {
    .stock-table-head { display: none; }
    .stock-table-row { grid-template-columns: 24px 1fr repeat(3, auto); gap: 10px 15px; }
    .stock-product-cell { grid-column: 2 / -1; }
    .stock-table-row > div[data-label]::before { display: block; margin-bottom: 4px; color: var(--admin-muted); content: attr(data-label); font-size: 8px; }
    .stock-table-row > div:nth-of-type(2), .stock-table-row > div:nth-of-type(3) { display: none; }
}
@media (max-width: 760px) {
    .stock-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stock-toolbar { grid-template-columns: 1fr 1fr; }
    .stock-search { grid-column: 1 / -1; }
    .stock-table-row { grid-template-columns: 20px 1fr auto; }
    .stock-table-row > div[data-label] { display: none; }
    .stock-table-row > div[data-label="Status"], .stock-table-row > div[data-label="Acțiuni"] { display: block; }
    .stock-product-cell { grid-column: 2 / -1; }
}
@media (max-width: 500px) {
    .stock-heading-actions { flex-wrap: wrap; }
    .stock-stat-grid { grid-template-columns: 1fr; }
    .stock-toolbar { grid-template-columns: 1fr; }
    .stock-search { grid-column: auto; }
    .admin-stock-drawer { width: 100vw; }
    .stock-info-grid { grid-template-columns: repeat(2, 1fr); }
    .stock-info-grid div:nth-child(2) { border-right: 0; }
    .stock-info-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--admin-line); }
    .stock-drawer-product { grid-template-columns: 105px 1fr; padding-left: 14px; }
    .stock-drawer-product > img { width: 105px; }
}

/* Order management */
.has-order-drawer .admin-workspace { margin-right: 442px; }
.order-page-heading { margin-bottom: 20px; }
.order-heading-actions { display: flex; gap: 10px; }
.order-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.order-stat-grid article { display: flex; min-height: 72px; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid var(--admin-line); border-radius: 10px; background: #fff; }
.order-stat-grid small, .order-stat-grid strong { display: block; }
.order-stat-grid small { margin-bottom: 4px; color: var(--admin-muted); font-size: 10px; }
.order-stat-grid strong { font-size: 21px; }
.order-stat-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 10px; font-size: 22px; }
.order-stat-icon.is-total { color: #5146ff; background: #efedff; }
.order-stat-icon.is-delivered { color: #07945a; background: #e1f8ec; }
.order-stat-icon.is-processing { color: #e77b0e; background: #fff0dc; }
.order-stat-icon.is-cancelled { color: #e73b4d; background: #ffe8eb; }
.order-toolbar { display: grid; grid-template-columns: minmax(250px, 1.5fr) minmax(135px, .7fr) minmax(160px, .8fr) auto; gap: 10px; margin-bottom: 16px; }
.order-search, .order-toolbar select { height: 40px; border: 1px solid #dce2ee; border-radius: 8px; color: #35415e; background: #fff; font-size: 10px; }
.order-search { display: flex; align-items: center; gap: 9px; padding: 0 13px; background: #f8f9fc; }
.order-search svg { width: 17px; color: #667491; }
.order-search input { width: 100%; border: 0; outline: 0; background: transparent; }
.order-toolbar select { padding: 0 11px; outline: 0; }
.order-table { overflow: hidden; border: 1px solid var(--admin-line); border-radius: 10px; background: #fff; }
.order-table-head, .order-table-row { display: grid; grid-template-columns: 22px 50px minmax(115px, 1.2fr) 66px 78px 82px minmax(86px, .9fr) 74px 75px 34px; align-items: center; gap: 8px; }
.order-table-head { min-height: 44px; padding: 0 10px; color: #687491; background: #fafbfe; font-size: 8px; }
.order-table-row { min-height: 63px; padding: 7px 10px; border-top: 1px solid var(--admin-line); font-size: 9px; }
.order-table-row:hover, .order-table-row.is-selected { background: #fbfbff; }
.order-checkbox { color: #a8b2c8; font-size: 17px; }
.order-number { font-size: 10px; }
.order-client { min-width: 0; }
.order-client strong, .order-client small, .order-table-row time small { display: block; }
.order-client strong { overflow: hidden; margin-bottom: 3px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.order-client small, .order-table-row time, .order-table-row time small { color: #63708f; font-size: 8px; }
.order-table-row time small { margin-top: 3px; }
.order-product-thumbs { display: flex; align-items: center; }
.order-product-thumbs img { width: 29px; height: 29px; margin-right: -6px; border: 2px solid #fff; border-radius: 7px; object-fit: contain; background: #f5f6fa; }
.order-product-thumbs span { display: grid; width: 30px; height: 30px; place-items: center; margin-left: 4px; border-radius: 50%; color: #53617d; background: #f1f3f8; font-size: 8px; }
.order-value { font-size: 9px; white-space: nowrap; }
.order-chip, .order-status { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 7px; font-size: 8px; white-space: nowrap; }
.order-chip.is-payment { color: #176a4e; background: #e5f8ef; }
.order-chip.is-shipping { color: #405071; background: #f0f2f7; }
.order-status { font-weight: 700; }
.order-status.is-delivered { color: #087f4e; background: #ddf8eb; }
.order-status.is-transit { color: #2261c9; background: #e5efff; }
.order-status.is-processing { color: #dc7408; background: #fff0d9; }
.order-status.is-cancelled { color: #dd3748; background: #ffe6e9; }
.order-table .admin-more-button { width: 33px; height: 33px; font-size: 9px; }
.order-pagination { display: flex; align-items: center; justify-content: space-between; padding: 22px 4px; color: #66728f; font-size: 10px; }
.order-pagination > span strong { display: inline-flex; min-width: 55px; height: 35px; align-items: center; justify-content: center; margin: 0 8px; border: 1px solid var(--admin-line); border-radius: 7px; color: #35415e; background: #fff; }
.order-pagination div { display: flex; gap: 4px; }
.order-pagination button { width: 34px; height: 34px; border: 1px solid var(--admin-line); border-radius: 7px; color: #66728f; background: #fff; }
.order-pagination button.is-active { color: var(--admin-primary); border-color: #eceaff; background: #eeecff; }

.admin-order-drawer { position: fixed; z-index: 60; top: 0; right: 0; display: flex; flex-direction: column; width: 442px; height: 100vh; border-left: 1px solid var(--admin-line); background: #fff; box-shadow: -10px 0 30px rgba(17, 28, 60, .06); animation: admin-drawer-in .22s ease-out; }
.order-drawer-heading { position: relative; display: flex; flex: 0 0 70px; align-items: center; gap: 10px; padding: 0 45px 0 21px; border-bottom: 1px solid var(--admin-line); }
.order-drawer-heading > div { display: flex; align-items: center; gap: 10px; }
.order-drawer-heading h2 { margin: 0; font-size: 19px; }
.order-drawer-heading time { margin-left: auto; color: var(--admin-muted); font-size: 9px; }
.order-drawer-heading > a { position: absolute; right: 12px; display: grid; width: 30px; height: 30px; place-items: center; color: #53617e; font-size: 24px; }
.order-drawer-tabs { display: grid; flex: 0 0 47px; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--admin-line); }
.order-drawer-tabs button { position: relative; border: 0; color: #5e6a88; cursor: pointer; background: transparent; font-size: 9px; }
.order-drawer-tabs button.is-active { color: var(--admin-primary); font-weight: 700; }
.order-drawer-tabs button.is-active::after { position: absolute; right: 9px; bottom: -1px; left: 9px; height: 2px; background: var(--admin-primary); content: ""; }
.order-drawer-scroll { overflow-y: auto; min-height: 0; flex: 1; }
.order-drawer-panel { display: none; }
.order-drawer-panel.is-active { display: block; }
.order-detail-block { padding: 14px 21px; border-bottom: 1px solid var(--admin-line); }
.order-detail-block h3, .order-panel-padding h3, .order-edit-form h3 { margin: 0 0 10px; font-size: 10px; }
.order-detail-title { display: flex; align-items: center; justify-content: space-between; }
.order-customer-card { display: flex; align-items: center; gap: 11px; }
.order-customer-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #5146ff; background: #efedff; font-size: 11px; font-weight: 800; }
.order-customer-card strong, .order-customer-card small { display: block; }
.order-customer-card strong { margin-bottom: 3px; font-size: 10px; }
.order-customer-card small { margin-top: 2px; color: #667390; font-size: 8px; }
.order-address { display: flex; gap: 11px; }
.order-address > span { color: #3e4f82; font-size: 20px; }
.order-address p { margin: 0; color: #52607f; font-size: 9px; line-height: 1.55; }
.order-method-row { display: flex; align-items: center; gap: 10px; }
.order-method-icon { display: grid; width: 28px; height: 28px; place-items: center; color: #263c80; font-size: 20px; }
.order-method-row div { min-width: 0; }
.order-method-row strong, .order-method-row small { display: block; }
.order-method-row strong { margin-bottom: 3px; font-size: 9px; }
.order-method-row small { color: #667390; font-size: 8px; }
.order-method-row small.is-success { color: #00a15d; }
.order-method-row button { margin-left: auto; padding: 7px 10px; border: 1px solid #d9dfec; border-radius: 6px; color: var(--admin-primary); background: #fff; font-size: 8px; }
.order-item { display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 10px; min-height: 57px; border-bottom: 1px solid #edf0f6; }
.order-item:last-child { border-bottom: 0; }
.order-item-image { display: grid; width: 43px; height: 40px; place-items: center; border-radius: 6px; background: #f7f8fb; }
.order-item-image img { width: 100%; height: 100%; object-fit: contain; }
.order-item div strong, .order-item div small { display: block; }
.order-item div strong { margin-bottom: 3px; font-size: 9px; }
.order-item div small { color: #687491; font-size: 8px; }
.order-item > b { font-size: 9px; white-space: nowrap; }
.order-totals { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--admin-line); }
.order-totals span, .order-totals > strong { display: flex; align-items: center; justify-content: space-between; color: #596682; font-size: 9px; }
.order-totals > strong { padding-top: 9px; border-top: 1px solid var(--admin-line); color: var(--admin-ink); font-size: 14px; }
.order-totals .is-discount { color: #00a15d; }
.order-edit-form { display: grid; gap: 11px; margin: 14px 21px; padding: 14px; border: 1px solid #dcd8ff; border-radius: 9px; background: #faf9ff; }
.order-edit-form[hidden] { display: none; }
.order-edit-form label, .order-add-form label { display: grid; gap: 5px; font-size: 9px; font-weight: 750; }
.order-edit-form input, .order-edit-form select, .order-edit-form textarea, .order-add-form input, .order-add-form select { width: 100%; border: 1px solid #d7deeb; border-radius: 7px; outline: 0; background: #fff; font-size: 9px; }
.order-edit-form input, .order-edit-form select, .order-add-form input, .order-add-form select { height: 36px; padding: 0 9px; }
.order-edit-form textarea { padding: 8px; resize: vertical; }
.order-panel-padding { padding: 20px 21px; }
.order-info-list { margin: 0; }
.order-info-list div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--admin-line); }
.order-info-list dt { color: var(--admin-muted); font-size: 9px; }
.order-info-list dd { margin: 0; font-size: 9px; text-align: right; }
.order-history-list article { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 0 0 20px; }
.order-history-list article::before { position: absolute; top: 13px; bottom: 0; left: 5px; width: 1px; background: #dfe4ee; content: ""; }
.order-history-list article:last-child::before { display: none; }
.order-history-dot { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 2px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #d9dfeb; background: #8791a8; }
.order-history-dot.is-delivered { background: #08a563; }
.order-history-dot.is-processing { background: #ec881f; }
.order-history-dot.is-transit { background: #397be6; }
.order-history-dot.is-cancelled { background: #e64354; }
.order-history-list strong { font-size: 9px; }
.order-history-list p { margin: 3px 0; color: #5d6a87; font-size: 8px; }
.order-history-list small { color: #8993a9; font-size: 8px; }
.order-drawer-actions { display: grid; flex: 0 0 64px; grid-template-columns: 1fr 1fr 1.2fr; gap: 6px; align-items: center; padding: 0 16px; border-top: 1px solid var(--admin-line); background: #fff; }
.order-drawer-actions .admin-button { min-height: 36px; padding: 0 8px; font-size: 8px; }
.order-add-drawer .admin-drawer-heading { flex: 0 0 70px; }
.order-add-form { display: grid; gap: 12px; overflow-y: auto; padding: 18px 21px 88px; }
.order-add-form h3 { margin: 6px 0 0; font-size: 11px; }
.order-add-form em { color: #e43b4c; font-style: normal; }
.order-add-form .admin-drawer-footer { position: absolute; right: 0; bottom: 0; left: 0; }

@media (max-width: 1320px) {
    .has-order-drawer .admin-workspace { margin-right: 0; }
    .admin-order-drawer { z-index: 80; box-shadow: -18px 0 50px rgba(15, 24, 54, .18); }
}
@media (max-width: 1050px) {
    .order-table-head { display: none; }
    .order-table-row { grid-template-columns: 22px 50px 1fr auto auto; gap: 9px 14px; }
    .order-client { grid-column: 3 / -1; }
    .order-table-row > time, .order-product-thumbs, .order-chip { display: none; }
}
@media (max-width: 760px) {
    .order-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .order-toolbar { grid-template-columns: 1fr 1fr; }
    .order-search { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
    .order-heading-actions { flex-wrap: wrap; }
    .order-stat-grid { grid-template-columns: 1fr; }
    .order-toolbar { grid-template-columns: 1fr; }
    .order-search { grid-column: auto; }
    .admin-order-drawer { width: 100vw; }
    .order-drawer-heading time { display: none; }
    .order-drawer-actions { grid-template-columns: 1fr 1fr; }
    .order-drawer-actions .admin-button:first-child { display: none; }
}
@media print {
    .admin-sidebar, .admin-topbar, .admin-main > *:not(.admin-order-drawer), .order-drawer-tabs, .order-drawer-actions { display: none !important; }
    .admin-workspace { margin: 0 !important; }
    .admin-main { max-width: none; padding: 0; }
    .admin-order-drawer { position: static; width: 100%; height: auto; border: 0; box-shadow: none; }
    .order-drawer-panel[data-order-panel="details"] { display: block !important; }
}

/* Larger admin typography */
.admin-body { font-size: 16px; }
.admin-nav-item { font-size: 15px; }
.admin-brand small, .admin-profile-name { font-size: 14px; }
.admin-global-search input { font-size: 14px; }
.admin-logout { font-size: 13px; }
.admin-page-heading p { font-size: 15px; }
.admin-page-heading .admin-eyebrow { font-size: 12px; }
.admin-button { font-size: 14px; }
.admin-flash { font-size: 14px; }
.admin-section-tabs button { font-size: 14px; }
.admin-product-table-head { font-size: 12px; }
.admin-product-identity strong { font-size: 15px; }
.admin-product-identity small { font-size: 12px; }
.admin-category-pill, .admin-status { font-size: 12px; }
.admin-store-count { font-size: 13px; }
.admin-add-row strong { font-size: 14px; }
.admin-add-row small { font-size: 12px; }
.admin-drawer-tabs button { font-size: 12px; }
.admin-drawer-panel label { font-size: 13px; }
.admin-drawer-panel input[type="text"],
.admin-drawer-panel input[type="number"],
.admin-drawer-panel select,
.admin-drawer-panel textarea { font-size: 13px; }
.admin-upload-box strong { font-size: 13px; }
.admin-upload-box small, .admin-field-help { font-size: 11px; }
.admin-stat-card div span, .admin-panel-heading p { font-size: 12px; }
.admin-panel-heading h2 { font-size: 18px; }
.admin-panel-heading a { font-size: 13px; }
.admin-compact-row > span:nth-child(2) strong { font-size: 14px; }
.admin-compact-row > span:nth-child(2) small, .admin-visibility-text { font-size: 12px; }
.admin-login-copy p { font-size: 14px; }
.admin-login-form label, .admin-back-link { font-size: 13px; }
.admin-login-form input { font-size: 14px; }

.stock-stat-grid small { font-size: 12px; }
.stock-stat-grid strong { font-size: 23px; }
.stock-toolbar select, .stock-search { font-size: 12px; }
.stock-table-head { font-size: 10.5px; }
.stock-table-row { font-size: 11.5px; }
.stock-product-cell strong { font-size: 11.5px; line-height: 1.42; }
.stock-category-chip, .stock-sku, .stock-status { font-size: 10.5px; }
.stock-price { font-size: 11.5px; }
.stock-pagination { font-size: 12px; }
.stock-drawer-product h2 { font-size: 16px; }
.stock-drawer-product p { font-size: 11px; }
.stock-drawer-product div > strong { font-size: 17px; }
.stock-drawer-tabs span { font-size: 11px; }
.stock-drawer-section h3 { font-size: 13px; }
.stock-info-grid small { font-size: 10px; }
.stock-info-grid strong { font-size: 19px; }
.stock-info-grid span { font-size: 10px; }
.stock-adjust-form label, .stock-add-form label { font-size: 12px; }
.stock-adjust-form input,
.stock-adjust-form select,
.stock-adjust-form textarea,
.stock-add-form input,
.stock-add-form select { font-size: 12px; }
.stock-section-heading span { font-size: 11px; }
.stock-movement > strong { font-size: 12px; }
.stock-movement div b { font-size: 11px; }
.stock-movement div small, .stock-movement time { font-size: 10px; }
.stock-no-movements { font-size: 11px; }

.order-stat-grid small { font-size: 12px; }
.order-stat-grid strong { font-size: 23px; }
.order-search, .order-toolbar select { font-size: 12px; }
.order-table-head { font-size: 9.5px; }
.order-table-row { font-size: 10.5px; }
.order-number { font-size: 11px; }
.order-client strong { font-size: 10.5px; }
.order-client small, .order-table-row time, .order-table-row time small { font-size: 9.5px; }
.order-value { font-size: 10.5px; }
.order-chip, .order-status { font-size: 9.5px; }
.order-pagination { font-size: 12px; }
.order-drawer-heading h2 { font-size: 20px; }
.order-drawer-heading time { font-size: 11px; }
.order-drawer-tabs button { font-size: 11px; }
.order-detail-block h3, .order-panel-padding h3, .order-edit-form h3 { font-size: 12px; }
.order-customer-card strong { font-size: 12px; }
.order-customer-card small { font-size: 10px; }
.order-address p { font-size: 11px; }
.order-method-row strong { font-size: 11px; }
.order-method-row small { font-size: 10px; }
.order-method-row button { font-size: 10px; }
.order-item div strong { font-size: 11px; }
.order-item div small { font-size: 10px; }
.order-item > b { font-size: 11px; }
.order-totals span { font-size: 11px; }
.order-edit-form label, .order-add-form label { font-size: 11px; }
.order-edit-form input,
.order-edit-form select,
.order-edit-form textarea,
.order-add-form input,
.order-add-form select { font-size: 11px; }
.order-info-list dt, .order-info-list dd { font-size: 11px; }
.order-history-list strong { font-size: 11px; }
.order-history-list p, .order-history-list small { font-size: 10px; }
.order-drawer-actions .admin-button { font-size: 10px; }

/* Client management */
.has-client-drawer .admin-workspace { margin-right: 445px; }
.client-page-heading { margin-bottom: 20px; }
.client-heading-actions { display: flex; gap: 10px; }
.client-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 18px; }
.client-stat-grid article { display: flex; min-height: 76px; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid var(--admin-line); border-radius: 10px; background: #fff; }
.client-stat-grid small,.client-stat-grid strong { display: block; }
.client-stat-grid small { margin-bottom: 4px; color: var(--admin-muted); font-size: 12px; }
.client-stat-grid strong { font-size: 23px; }
.client-stat-icon { display: grid; flex: 0 0 43px; width: 43px; height: 43px; place-items: center; border-radius: 10px; font-size: 22px; }
.client-stat-icon.is-total { color: #5146ff; background: #efedff; }
.client-stat-icon.is-new { color: #386ee8; background: #eaf1ff; }
.client-stat-icon.is-active { color: #07945a; background: #e1f8ec; }
.client-stat-icon.is-inactive { color: #e73b4d; background: #ffe8eb; }
.client-toolbar { display: grid; grid-template-columns: minmax(230px,1.4fr) minmax(130px,.65fr) minmax(130px,.65fr) minmax(130px,.65fr) auto; gap: 10px; margin-bottom: 16px; }
.client-search,.client-toolbar select { height: 41px; border: 1px solid #dce2ee; border-radius: 8px; color: #35415e; background: #fff; font-size: 12px; }
.client-search { display: flex; align-items: center; gap: 9px; padding: 0 13px; background: #f8f9fc; }
.client-search svg { width: 17px; color: #667491; }
.client-search input { width: 100%; border: 0; outline: 0; background: transparent; }
.client-toolbar select { padding: 0 11px; outline: 0; }
.client-table { overflow: hidden; border: 1px solid var(--admin-line); border-radius: 10px; background: #fff; }
.client-table-head,.client-table-row { display: grid; grid-template-columns: 24px minmax(145px,1.35fr) 90px minmax(135px,1.15fr) 70px 55px 88px 78px 60px 35px; align-items: center; gap: 9px; }
.client-table-head { min-height: 45px; padding: 0 11px; color: #687491; background: #fafbfe; font-size: 10px; }
.client-table-row { min-height: 67px; padding: 8px 11px; border-top: 1px solid var(--admin-line); font-size: 11px; }
.client-table-row:hover,.client-table-row.is-selected { background: #fbfbff; }
.client-checkbox { color: #a8b2c8; font-size: 17px; }
.client-identity { display: grid; min-width: 0; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; }
.client-avatar,.client-profile-avatar { display: grid; place-items: center; border-radius: 50%; color: #4034ed; background: #efedff; font-weight: 800; }
.client-avatar { width: 38px; height: 38px; font-size: 11px; }
.client-identity strong,.client-identity small,.client-contact span,.client-contact small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-identity strong { margin-bottom: 3px; font-size: 11px; }
.client-identity small,.client-contact small { color: var(--admin-muted); font-size: 9.5px; }
.client-contact span { margin-bottom: 3px; color: #566481; font-size: 9.5px; }
.client-type-chip { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 6px; color: #315bdc; background: #e9f0ff; font-size: 9.5px; white-space: nowrap; }
.client-status { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 7px; font-size: 10px; font-weight: 700; }
.client-status.is-active { color: #087f4e; background: #ddf8eb; }
.client-status.is-inactive { color: #dc3547; background: #ffe7ea; }
.client-table-row time { color: #5f6d8a; font-size: 10px; }
.client-table .admin-more-button { width: 34px; height: 34px; font-size: 9px; }
.client-pagination { display: flex; align-items: center; justify-content: space-between; padding: 22px 4px; color: #66728f; font-size: 12px; }
.client-pagination > span strong { display: inline-flex; min-width: 55px; height: 35px; align-items: center; justify-content: center; margin: 0 8px; border: 1px solid var(--admin-line); border-radius: 7px; color: #35415e; background: #fff; }
.client-pagination div { display: flex; gap: 4px; }
.client-pagination button { width: 34px; height: 34px; border: 1px solid var(--admin-line); border-radius: 7px; color: #66728f; background: #fff; }
.client-pagination button.is-active { color: var(--admin-primary); border-color: #eceaff; background: #eeecff; }

.admin-client-drawer { position: fixed; z-index: 60; top: 0; right: 0; display: flex; flex-direction: column; width: 445px; height: 100vh; border-left: 1px solid var(--admin-line); background: #fff; box-shadow: -10px 0 30px rgba(17,28,60,.06); animation: admin-drawer-in .22s ease-out; }
.client-drawer-heading { position: relative; display: grid; flex: 0 0 84px; grid-template-columns: 52px 1fr auto; align-items: center; gap: 13px; padding: 0 46px 0 21px; border-bottom: 1px solid var(--admin-line); }
.client-profile-avatar { width: 52px; height: 52px; font-size: 18px; }
.client-drawer-heading h2 { margin: 0 0 4px; font-size: 18px; }
.client-drawer-heading p { margin: 0; color: var(--admin-muted); font-size: 11px; }
.client-drawer-heading > a { position: absolute; right: 12px; display: grid; width: 30px; height: 30px; place-items: center; color: #53617e; font-size: 24px; }
.client-drawer-tabs { display: grid; flex: 0 0 48px; grid-template-columns: repeat(5,1fr); border-bottom: 1px solid var(--admin-line); }
.client-drawer-tabs button { position: relative; padding: 0 4px; border: 0; color: #5e6a88; cursor: pointer; background: transparent; font-size: 10px; }
.client-drawer-tabs button.is-active { color: var(--admin-primary); font-weight: 700; }
.client-drawer-tabs button.is-active::after { position: absolute; right: 8px; bottom: -1px; left: 8px; height: 2px; background: var(--admin-primary); content: ""; }
.client-drawer-scroll { overflow-y: auto; min-height: 0; flex: 1; }
.client-drawer-panel { display: none; }
.client-drawer-panel.is-active { display: block; }
.client-detail-section { padding: 16px 21px; border-bottom: 1px solid var(--admin-line); }
.client-detail-section h3,.client-panel-padding h3,.client-edit-form h3,.client-add-form h3 { margin: 0 0 12px; font-size: 13px; }
.client-details-list { margin: 0; }
.client-details-list div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 6px 0; }
.client-details-list dt { color: #667390; font-size: 11px; }
.client-details-list dd { margin: 0; color: #17203e; font-size: 11px; line-height: 1.45; }
.client-details-list dd a { color: var(--admin-primary); }
.client-profile-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.client-profile-stats div { min-width: 0; padding: 10px 8px; border: 1px solid var(--admin-line); border-radius: 8px; }
.client-profile-stats strong,.client-profile-stats small { display: block; }
.client-profile-stats strong { overflow: hidden; margin-bottom: 7px; color: #3428ec; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.client-profile-stats small { color: var(--admin-muted); font-size: 9px; line-height: 1.3; }
.client-section-title { display: flex; align-items: center; justify-content: space-between; }
.client-section-title button,.client-section-title a { padding: 0; border: 0; color: var(--admin-primary); cursor: pointer; background: transparent; font-size: 10px; }
.client-address-list { display: grid; gap: 8px; }
.client-address-card { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 11px; border: 1px solid var(--admin-line); border-radius: 8px; }
.client-address-card > span { color: #34457c; font-size: 21px; text-align: center; }
.client-address-card strong { display: block; margin-bottom: 4px; font-size: 11px; }
.client-address-card p { margin: 0; color: #64718d; font-size: 10px; line-height: 1.45; }
.client-orders-list > a { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 9px; min-height: 54px; border-bottom: 1px solid #edf0f6; }
.client-orders-list > a:last-child { border-bottom: 0; }
.client-order-image { display: grid; width: 40px; height: 37px; place-items: center; border-radius: 6px; background: #f7f8fb; }
.client-order-image img { width: 100%; height: 100%; object-fit: contain; }
.client-orders-list strong,.client-orders-list small { display: block; }
.client-orders-list strong { margin-bottom: 3px; font-size: 11px; }
.client-orders-list small { color: var(--admin-muted); font-size: 9px; }
.client-orders-list b { font-size: 10px; white-space: nowrap; }
.client-empty-panel { color: var(--admin-muted); font-size: 11px; }
.client-panel-padding { padding: 20px 21px; }
.client-note-card { padding: 15px; border: 1px solid #e1ddff; border-radius: 9px; color: #4e5b78; background: #faf9ff; font-size: 11px; line-height: 1.6; }
.client-history article { display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding-bottom: 17px; }
.client-history article > span { width: 10px; height: 10px; margin-top: 3px; border-radius: 50%; background: var(--admin-primary); box-shadow: 0 0 0 4px #efedff; }
.client-history strong,.client-history small { display: block; }
.client-history strong { margin-bottom: 3px; font-size: 11px; }
.client-history small { color: var(--admin-muted); font-size: 10px; }
.client-edit-form,.client-add-form { display: grid; gap: 12px; }
.client-edit-form { margin: 15px 21px; padding: 15px; border: 1px solid #dcd8ff; border-radius: 9px; background: #faf9ff; }
.client-edit-form[hidden] { display: none; }
.client-edit-form label,.client-add-form label { display: grid; gap: 5px; font-size: 11px; font-weight: 750; }
.client-edit-form input,.client-edit-form select,.client-edit-form textarea,.client-add-form input,.client-add-form select,.client-add-form textarea { width: 100%; border: 1px solid #d7deeb; border-radius: 7px; outline: 0; background: #fff; font-size: 12px; }
.client-edit-form input,.client-edit-form select,.client-add-form input,.client-add-form select { height: 38px; padding: 0 9px; }
.client-edit-form textarea,.client-add-form textarea { padding: 9px; resize: vertical; }
.client-active-toggle { display: flex !important; align-items: center; justify-content: space-between; padding: 8px 0; }
.client-active-toggle input { width: 18px; height: 18px; }
.client-drawer-actions { display: grid; flex: 0 0 65px; grid-template-columns: 1fr 1.15fr 1.15fr; gap: 6px; align-items: center; padding: 0 14px; border-top: 1px solid var(--admin-line); background: #fff; }
.client-drawer-actions .admin-button { min-height: 37px; padding: 0 8px; font-size: 10px; }
.client-add-drawer .admin-drawer-heading { flex: 0 0 70px; }
.client-add-form { overflow-y: auto; padding: 18px 21px 88px; }
.client-add-form em { color: #e43b4c; font-style: normal; }
.client-add-form .admin-drawer-footer { position: absolute; right: 0; bottom: 0; left: 0; }

@media (max-width:1320px) { .has-client-drawer .admin-workspace { margin-right: 0; } .admin-client-drawer { z-index: 80; box-shadow: -18px 0 50px rgba(15,24,54,.18); } }
@media (max-width:1050px) { .client-table-head { display:none; } .client-table-row { grid-template-columns:24px 1fr auto auto; gap:10px 15px; } .client-identity { grid-column:2/-1; } .client-table-row > :nth-child(3),.client-table-row > :nth-child(4),.client-table-row > :nth-child(5),.client-table-row > :nth-child(7),.client-table-row > :nth-child(8) { display:none; } }
@media (max-width:800px) { .client-stat-grid { grid-template-columns:repeat(2,1fr); } .client-toolbar { grid-template-columns:1fr 1fr; } .client-search { grid-column:1/-1; } }
@media (max-width:500px) { .client-heading-actions { flex-wrap:wrap; } .client-stat-grid { grid-template-columns:1fr; } .client-toolbar { grid-template-columns:1fr; } .client-search { grid-column:auto; } .admin-client-drawer { width:100vw; } .client-profile-stats { grid-template-columns:repeat(2,1fr); } .client-drawer-actions { grid-template-columns:1fr 1fr; } .client-drawer-actions .admin-button:nth-child(2) { display:none; } }

/* SellSmart applications dashboard */
.admin-dashboard-body { background: #fcfdff; }
.dashboard-app-heading { margin-top: 7px; margin-bottom: 27px; }
.dashboard-app-heading h1 { margin-bottom: 4px; font-size: clamp(32px, 3vw, 38px); letter-spacing: -1.2px; }
.admin-dashboard-body .admin-main { padding-right: 24px; padding-left: 40px; }
.admin-notification svg { width: 22px; height: 22px; }
.admin-dashboard-body .admin-logout { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; font-size: 18px; }
.dashboard-app-heading p:not(.admin-eyebrow) { max-width: 610px; font-size: 17px; line-height: 1.5; }
.dashboard-app-heading .admin-eyebrow { margin-bottom: 7px; font-size: 12px; letter-spacing: .14em; }
.dashboard-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
.dashboard-app-card { position: relative; display: grid; min-width: 0; min-height: 164px; grid-template-columns: 76px minmax(0, 1fr) 40px; align-items: start; gap: 18px; padding: 18px; border: 1px solid #dce3f0; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(19, 31, 70, .025); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.dashboard-app-card:hover { z-index: 1; transform: translateY(-3px); border-color: #c8c4ff; box-shadow: 0 17px 36px rgba(31, 40, 82, .09); }
.dashboard-app-card:focus-visible { outline: 3px solid rgba(81, 70, 255, .2); outline-offset: 2px; }
.dashboard-app-icon { display: grid; width: 76px; height: 76px; place-items: center; border-radius: 15px; }
.dashboard-app-icon svg { width: 43px; height: 43px; }
.dashboard-app-copy { display: block; min-width: 0; padding-top: 7px; }
.dashboard-app-copy > strong { display: block; margin-bottom: 5px; font-size: 19px; line-height: 1.25; letter-spacing: -.35px; }
.dashboard-app-url { display: flex; min-width: 0; align-items: center; gap: 5px; overflow: hidden; color: #4d42ff; font-size: 14px; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-app-url svg { flex: 0 0 15px; width: 15px; height: 15px; }
.dashboard-app-description { display: block; margin-top: 18px; color: #5f6c8b; font-size: 15px; line-height: 1.55; }
.dashboard-app-arrow { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 50%; color: #4e42ff; background: #f0efff; font-size: 23px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.dashboard-app-card:hover .dashboard-app-arrow { transform: translateX(3px); background: #e7e4ff; }
.dashboard-app-card--blue .dashboard-app-icon { color: #2367ea; background: linear-gradient(145deg, #e8f1ff, #dceaff); }
.dashboard-app-card--purple .dashboard-app-icon { color: #6840ef; background: linear-gradient(145deg, #eeeaff, #e4ddff); }
.dashboard-app-card--green .dashboard-app-icon { color: #07955a; background: linear-gradient(145deg, #e1f8ee, #d1f2e4); }
.dashboard-app-card--pink .dashboard-app-icon { color: #ee1760; background: linear-gradient(145deg, #ffe7f0, #ffdbe8); }
.dashboard-app-card--sky .dashboard-app-icon { color: #2865df; background: linear-gradient(145deg, #e7f1ff, #dbe9ff); }
.dashboard-app-card--orange .dashboard-app-icon { color: #e96806; background: linear-gradient(145deg, #fff0e2, #ffe5ce); }
.dashboard-app-card--emerald .dashboard-app-icon { color: #078f59; background: linear-gradient(145deg, #e2f8ef, #d2f2e5); }
.dashboard-app-card--violet .dashboard-app-icon { color: #6a3eeb; background: linear-gradient(145deg, #eee9ff, #e4dcff); }
.dashboard-app-card--rose .dashboard-app-icon { color: #ef1652; background: linear-gradient(145deg, #ffe8ef, #ffdae5); }
.dashboard-app-empty { margin-top: 18px; border: 1px dashed #dce3f0; border-radius: 12px; background: #fff; font-size: 15px; }

@media (max-width: 1200px) {
    .dashboard-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .admin-dashboard-body .admin-main { padding-right: 18px; padding-left: 18px; }
    .dashboard-app-heading h1 { font-size: 31px; }
    .dashboard-app-heading p:not(.admin-eyebrow) { font-size: 15px; }
    .dashboard-app-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
    .dashboard-app-card { min-height: 150px; grid-template-columns: 60px minmax(0, 1fr) 34px; gap: 12px; padding: 14px; }
    .dashboard-app-icon { width: 60px; height: 60px; border-radius: 13px; }
    .dashboard-app-icon svg { width: 34px; height: 34px; }
    .dashboard-app-copy { padding-top: 3px; }
    .dashboard-app-copy > strong { font-size: 17px; }
    .dashboard-app-url { font-size: 12px; }
    .dashboard-app-description { margin-top: 14px; font-size: 14px; }
    .dashboard-app-arrow { width: 34px; height: 34px; font-size: 20px; }
}
