/* EnteWholesaler Admin — white / green / black theme */
:root {
  --green: #1E9E4A; --green-dark: #15803D; --green-light: #E8F5EC; --green-mid: #BFE5CC;
  --black: #111111; --black-soft: #1F1F1F; --white: #FFFFFF;
  --grey-50: #F7F8F7; --grey-100: #F1F3F1; --grey-200: #E5E7EB; --grey-400: #9CA3AF; --grey-600: #6B7280; --grey-800: #374151;
  --amber: #B45309; --amber-light: #FEF3C7; --red: #DC2626; --red-light: #FEE2E2;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(17,17,17,.06); --sidebar-w: 250px; --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--black); background: var(--white); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--black); letter-spacing: -.01em; }
h1 { font-size: 20px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
p { margin: 0 0 8px; }
.muted { color: var(--grey-600); } .small { font-size: 12px; } .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.text-right { text-align: right; } .text-center { text-align: center; } .nowrap { white-space: nowrap; }
.text-green { color: var(--green-dark); } .text-red { color: var(--red); } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.ml-auto{margin-left:auto}
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .space-between { justify-content: space-between; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.hidden { display: none !important; }

/* Brand */
.brand-logo { font-weight: 800; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.brand-ente { color: var(--black); } .brand-wholesaler { color: var(--green); }
.brand-on-dark .brand-ente { color: var(--white); }
.brand-logo-lg { font-size: 32px; }

/* Shell */
.admin-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: var(--black); color: var(--white); display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 40; transition: transform .2s ease; }
.sidebar-brand { padding: 22px 20px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand .brand-ente { color: var(--white); }
.sidebar-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; background: var(--green); color: var(--white); padding: 2px 7px; border-radius: 999px; font-weight: 700; }
.sidebar-nav { padding: 12px; flex: 1; overflow-y: auto; }
.nav-section { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--grey-400); padding: 14px 10px 6px; font-weight: 600; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; color: #D1D5DB; padding: 9px 12px; border-radius: var(--radius-sm); font-weight: 500; margin-bottom: 2px; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: var(--white); text-decoration: none; }
.sidebar-nav a.active { background: var(--green); color: var(--white); font-weight: 600; }
.sidebar-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sidebar-user strong { display: block; font-size: 13px; color: var(--white); } .sidebar-user small { color: var(--grey-400); font-size: 11px; display: block; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.ic { width: 18px; height: 18px; display: inline-block; background-color: currentColor; mask: center / contain no-repeat; -webkit-mask: center / contain no-repeat; opacity: .9; flex-shrink: 0; }
.ic-home { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 11l9-8 9 8v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 11l9-8 9 8v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.ic-orders { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E"); }
.ic-activity { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 12h4l3-8 4 16 3-8h4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 12h4l3-8 4 16 3-8h4'/%3E%3C/svg%3E"); }
.ic-wholesaler { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 9l2-5h14l2 5M3 9h18v11H3zM9 20v-6h6v6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 9l2-5h14l2 5M3 9h18v11H3zM9 20v-6h6v6'/%3E%3C/svg%3E"); }
.ic-category { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='8' height='8' rx='2'/%3E%3Crect x='13' y='3' width='8' height='8' rx='2'/%3E%3Crect x='3' y='13' width='8' height='8' rx='2'/%3E%3Crect x='13' y='13' width='8' height='8' rx='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='8' height='8' rx='2'/%3E%3Crect x='13' y='3' width='8' height='8' rx='2'/%3E%3Crect x='3' y='13' width='8' height='8' rx='2'/%3E%3Crect x='13' y='13' width='8' height='8' rx='2'/%3E%3C/svg%3E"); }
.ic-store { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 10V20h16V10M2 10l2-6h16l2 6c0 1.5-1.5 3-3.3 3S15.4 11.5 15.4 10c0 1.5-1.5 3-3.4 3s-3.4-1.5-3.4-3c0 1.5-1.5 3-3.3 3S2 11.5 2 10z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 10V20h16V10M2 10l2-6h16l2 6c0 1.5-1.5 3-3.3 3S15.4 11.5 15.4 10c0 1.5-1.5 3-3.4 3s-3.4-1.5-3.4-3c0 1.5-1.5 3-3.3 3S2 11.5 2 10z'/%3E%3C/svg%3E"); }
.ic-dash { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 19V9M10 19V5M16 19v-8M22 19H2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 19V9M10 19V5M16 19v-8M22 19H2'/%3E%3C/svg%3E"); }
.ic-users { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21c0-4 3-6 7-6s7 2 7 6M16 4a4 4 0 0 1 0 8M22 21c0-3-1.5-5-4-5.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21c0-4 3-6 7-6s7 2 7 6M16 4a4 4 0 0 1 0 8M22 21c0-3-1.5-5-4-5.6'/%3E%3C/svg%3E"); }
.ic-settings { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/%3E%3C/svg%3E"); }

.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 14px 28px; background: var(--white); border-bottom: 1px solid var(--grey-200); position: sticky; top: 0; z-index: 30; }
.topbar-title { flex: 1; min-width: 0; }
.breadcrumb { font-size: 12px; color: var(--grey-600); margin-top: 2px; } .breadcrumb a { color: var(--grey-600); } .breadcrumb span:not(:last-child)::after, .breadcrumb a::after { content: ' / '; color: var(--grey-400); }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.content { padding: 24px 28px; flex: 1; background: var(--grey-50); }
.footer { padding: 14px 28px; font-size: 12px; color: var(--grey-600); border-top: 1px solid var(--grey-200); background: var(--white); }
.sidebar-toggle { display: none; flex-direction: column; gap: 4px; }
.sidebar-toggle span { display: block; width: 20px; height: 2px; background: var(--black); }

/* Cards & grid */
.card { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--grey-200); flex-wrap: wrap; }
.card-body { padding: 18px; } .card-body.p-0 { padding: 0; }
.card-footer { padding: 12px 18px; border-top: 1px solid var(--grey-200); background: var(--grey-50); border-radius: 0 0 var(--radius) var(--radius); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-main { grid-template-columns: 2fr 1fr; }
.stat { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; }
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--green); }
.stat.stat-black::before { background: var(--black); } .stat.stat-amber::before { background: var(--amber); } .stat.stat-grey::before { background: var(--grey-400); }
.stat-label { font-size: 12px; color: var(--grey-600); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-size: 26px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
.stat-sub { font-size: 12px; color: var(--grey-600); margin-top: 2px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--grey-200); vertical-align: middle; }
.table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-600); font-weight: 600; background: var(--grey-50); white-space: nowrap; }
.table tbody tr:hover { background: var(--green-light); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .actions { white-space: nowrap; text-align: right; }
.table-sm th, .table-sm td { padding: 7px 10px; }
.empty { padding: 36px; text-align: center; color: var(--grey-600); }
.empty strong { display: block; color: var(--black); margin-bottom: 4px; font-size: 15px; }
.thumb { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; background: var(--grey-100); border: 1px solid var(--grey-200); display: inline-flex; align-items: center; justify-content: center; color: var(--grey-400); font-size: 11px; }
.thumb-lg { width: 72px; height: 72px; }
.logo-lg { width: 64px; height: 64px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--grey-200); background: var(--grey-100); }

/* Badges */
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; line-height: 1.4; white-space: nowrap; }
.badge-green { background: var(--green-light); color: var(--green-dark); } .badge-green-outline { background: var(--white); color: var(--green-dark); border: 1px solid var(--green); }
.badge-black { background: var(--black); color: var(--white); } .badge-grey { background: var(--grey-100); color: var(--grey-800); }
.badge-amber { background: var(--amber-light); color: var(--amber); } .badge-red { background: var(--red-light); color: var(--red); }
.badge-role { text-transform: capitalize; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 8px 14px; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; line-height: 1.3; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: var(--white); } .btn-primary:hover { background: var(--green-dark); }
.btn-black { background: var(--black); color: var(--white); } .btn-black:hover { background: var(--black-soft); }
.btn-outline { background: var(--white); color: var(--black); border-color: var(--grey-200); } .btn-outline:hover { border-color: var(--black); }
.btn-outline-green { background: var(--white); color: var(--green-dark); border-color: var(--green); } .btn-outline-green:hover { background: var(--green-light); }
.btn-ghost { background: transparent; color: var(--grey-800); } .btn-ghost:hover { background: var(--grey-100); }
.sidebar .btn-ghost { color: #D1D5DB; } .sidebar .btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--white); }
.btn-danger { background: var(--white); color: var(--red); border-color: var(--red-light); } .btn-danger:hover { background: var(--red-light); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; } .btn-lg { padding: 12px 18px; font-size: 15px; } .btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { background: none; border: 0; cursor: pointer; padding: 6px; border-radius: var(--radius-sm); } .icon-btn:hover { background: var(--grey-100); }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label, .form label { display: block; font-size: 12.5px; font-weight: 600; color: var(--grey-800); margin-bottom: 5px; }
.form-group .hint { font-size: 12px; color: var(--grey-600); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=tel], select, textarea {
  width: 100%; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); padding: 9px 12px; font: inherit; font-size: 14px; color: var(--black); background: var(--white); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,158,74,.15); }
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--red); }
.invalid-feedback { color: var(--red); font-size: 12px; margin-top: 4px; }
textarea { min-height: 84px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; } .form-row > * { flex: 1; min-width: 160px; }
.form-inline { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; } .form-inline .form-group { margin: 0; } .form-inline input, .form-inline select { width: auto; min-width: 140px; }
.checkbox, .switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 500 !important; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--green); }
.input-with-btn { display: flex; gap: 6px; } .input-with-btn input { flex: 1; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { width: auto; min-width: 150px; padding: 7px 10px; font-size: 13px; }
.filters input[type=search] { min-width: 220px; }
.form-section { padding-bottom: 8px; margin-bottom: 16px; border-bottom: 1px dashed var(--grey-200); }
.form-section h3 { margin-bottom: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-600); }
fieldset { border: 0; padding: 0; margin: 0; }

/* Alerts & toast */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 500; border: 1px solid transparent; }
.alert-success { background: var(--green-light); color: var(--green-dark); border-color: var(--green-mid); }
.alert-error { background: var(--red-light); color: var(--red); border-color: #FCA5A5; }
.alert-info { background: var(--grey-100); color: var(--grey-800); }
.alert-list { margin: 0; padding-left: 18px; } .alert-close { margin-left: auto; background: none; border: 0; font-size: 18px; cursor: pointer; color: inherit; line-height: 1; }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--black); color: var(--white); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; opacity: 0; transform: translateY(10px); transition: all .2s; z-index: 100; pointer-events: none; max-width: 360px; }
.toast.show { opacity: 1; transform: translateY(0); } .toast.toast-success { background: var(--green-dark); } .toast.toast-error { background: var(--red); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--grey-200); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--grey-600); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--black); text-decoration: none; } .tabs a.active { color: var(--green-dark); border-color: var(--green); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--grey-200); font-size: 12.5px; font-weight: 500; color: var(--grey-800); background: var(--white); }
.chip:hover { border-color: var(--green); text-decoration: none; } .chip.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* Definition list */
.dl { display: grid; grid-template-columns: 140px 1fr; row-gap: 8px; column-gap: 12px; font-size: 13.5px; }
.dl dt { color: var(--grey-600); font-weight: 500; } .dl dd { margin: 0; font-weight: 500; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; flex-wrap: wrap; }
.pagination-info { color: var(--grey-600); font-size: 12.5px; }
.pagination ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.pagination li a, .pagination li span { display: inline-block; min-width: 32px; padding: 5px 9px; text-align: center; border-radius: var(--radius-sm); border: 1px solid var(--grey-200); color: var(--black); font-size: 13px; background: var(--white); }
.pagination li a:hover { border-color: var(--green); text-decoration: none; }
.pagination li.active span { background: var(--green); color: var(--white); border-color: var(--green); } .pagination li.disabled span { color: var(--grey-400); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--grey-200); }
.timeline li { position: relative; padding: 0 0 16px 14px; }
.timeline li::before { content: ''; position: absolute; left: -24px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--green-mid); }
.timeline li.is-bad::before { background: var(--red); box-shadow: 0 0 0 2px var(--red-light); }
.timeline .tl-title { font-weight: 600; } .timeline .tl-meta { font-size: 12px; color: var(--grey-600); }

/* Bar chart (pure CSS) */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar-fill { width: 100%; max-width: 46px; background: var(--green); border-radius: 6px 6px 2px 2px; min-height: 3px; position: relative; transition: height .3s; }
.bar-fill:hover { background: var(--green-dark); }
.bar-fill .bar-val { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--black); white-space: nowrap; }
.bar-label { font-size: 11px; color: var(--grey-600); }
.status-bars { display: grid; gap: 8px; }
.status-bar { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 10px; font-size: 12.5px; }
.status-bar .track { height: 8px; background: var(--grey-100); border-radius: 999px; overflow: hidden; } .status-bar .track span { display: block; height: 100%; background: var(--green); }

/* Modal */
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(17,17,17,.5); z-index: 60; }
.modal { display: none; position: fixed; top: 8vh; left: 50%; transform: translateX(-50%); width: min(560px, 94vw); background: var(--white); border-radius: var(--radius); z-index: 70; box-shadow: 0 20px 60px rgba(0,0,0,.25); max-height: 84vh; overflow: auto; }
.modal.open, .modal-backdrop.open { display: block; }
.modal .card-header h3 { font-size: 16px; }

/* Catalogue (store dashboard) */
.catalogue { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.product-card { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.product-card.oos { opacity: .6; }
.product-card .thumb { width: 100%; height: 110px; } .product-card .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.product-card .p-name { font-weight: 600; font-size: 13.5px; line-height: 1.3; } .product-card .p-meta { font-size: 12px; color: var(--grey-600); }
.product-card .p-price { font-weight: 700; font-size: 15px; } .product-card .p-price small { color: var(--grey-400); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); overflow: hidden; }
.qty button { width: 30px; height: 30px; border: 0; background: var(--grey-50); cursor: pointer; font-size: 16px; font-weight: 700; color: var(--black); } .qty button:hover { background: var(--green-light); }
.qty input { width: 44px; text-align: center; border: 0; padding: 4px; font-weight: 600; } .qty input:focus { box-shadow: none; }
.cart-panel { position: sticky; top: 84px; }
.cart-items { max-height: 320px; overflow: auto; }
.cart-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--grey-100); font-size: 13px; }
.cart-item .ci-name { font-weight: 600; } .cart-item .ci-meta { font-size: 11.5px; color: var(--grey-600); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; padding-top: 10px; }
.image-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.image-tile { position: relative; width: 96px; }
.image-tile img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid var(--grey-200); }
.image-tile.primary img { border-color: var(--green); }
.image-tile .tile-actions { display: flex; gap: 4px; margin-top: 4px; } .image-tile .tile-actions .btn { padding: 2px 6px; font-size: 11px; flex: 1; }
.image-tile .primary-tag { position: absolute; top: 4px; left: 4px; }

/* Guest / login */
.guest-body { background: var(--grey-50); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.guest-wrap { width: min(920px, 94vw); padding: 24px 0; }
.guest-panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(17,17,17,.12); border: 1px solid var(--grey-200); }
.guest-left { background: var(--black); color: var(--white); padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.guest-tagline { color: #D1D5DB; font-size: 15px; line-height: 1.6; }
.guest-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: #D1D5DB; font-size: 13.5px; }
.guest-points li::before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 8px; }
.guest-right { padding: 48px 40px; }
.guest-right h2 { font-size: 22px; margin-bottom: 4px; }
.guest-right .form { margin-top: 20px; }

@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-main { grid-template-columns: 1fr; } .catalogue { grid-template-columns: 1fr; } .cart-panel { position: static; } }
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); } .sidebar.open { transform: translateX(0); box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .main { margin-left: 0; } .sidebar-toggle { display: flex; } .content, .topbar, .footer { padding-left: 16px; padding-right: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; } .guest-panel { grid-template-columns: 1fr; } .guest-left { display: none; } .dl { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } .topbar-actions .btn:not(.btn-primary) { display: none; } }
