:root {
  /* ===== BRAND COLORS ===== */
  --accent:        #c0392b;       /* Merah cabe — aksen utama */
  --accent-hover:  #a93226;       /* Merah cabe gelap hover */
  --accent-light:  #fdecea;       /* Merah cabe sangat muda (bg) */
  --accent-mid:    rgba(192,57,43,0.15); /* Merah cabe transparan */

  /* ===== NEUTRAL PALETTE ===== */
  --primary:       #2d2d2d;       /* Abu tua — teks utama, judul */
  --secondary:     #5a5a5a;       /* Abu sedang */
  --muted:         #8c8c8c;       /* Abu muted */
  --border:        #d9d9d9;       /* Border abu */
  --bg-light:      #f2f2f2;       /* Background body abu muda */
  --bg-card:       #ffffff;       /* Card putih */
  --bg-hover:      #ebebeb;       /* Hover abu muda */
  --bg-thead:      #f0f0f0;       /* Thead tabel */

  /* ===== SIDEBAR ===== */
  --sidebar-bg:        #3d3d3d;       /* Sidebar abu tua */
  --sidebar-text:      #cccccc;       /* Teks sidebar abu terang */
  --sidebar-active:    #ffffff;
  --sidebar-width:     250px;
  --sidebar-mini-width:68px;          /* Lebar mode hanya ikon */

  /* ===== LAYOUT ===== */
  --topbar-height: 60px;
  --radius:        10px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:     0 2px 10px rgba(0,0,0,0.10);
  --shadow-lg:     0 4px 20px rgba(0,0,0,0.13);
}

* { box-sizing: border-box; }
body {
  font-size: 14px;
  background: var(--bg-light);
  font-family: 'Segoe UI', sans-serif;
  color: var(--primary);
}

/* ===== SIDEBAR ===== */
#sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
  border-right: 3px solid var(--accent);
}

/* Aktifkan animasi transisi HANYA saat pengguna menekan tombol toggle menu */
.sidebar-animating #sidebar,
.sidebar-animating #topbar,
.sidebar-animating #main-content,
.sidebar-animating #sidebar .sidebar-brand,
.sidebar-animating #sidebar .menu-section,
.sidebar-animating #sidebar .nav-link {
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.25s ease !important;
}
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

#sidebar .sidebar-brand {
  padding: 14px 16px;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 60px;
  overflow: hidden;
  transition: padding 0.25s ease;
}
#sidebar .sidebar-brand img,
.app-logo-img {
  max-height: 44px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
#sidebar .sidebar-brand .brand-accent { color: var(--accent); }

#sidebar .menu-section {
  padding: 14px 20px 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.28);
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.25s ease;
}

#sidebar .nav-link {
  color: var(--sidebar-text);
  padding: 9.5px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3.5px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  cursor: pointer;
}
#sidebar .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border-left-color: var(--accent) !important;
  padding-left: 24px;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.03);
}
#sidebar .nav-link:hover i {
  color: #ffffff !important;
  transform: scale(1.15);
}
#sidebar .nav-link.active {
  color: #ffffff !important;
  background: #c0392b !important;
  border-left-color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(192, 57, 43, 0.45);
}
#sidebar .nav-link.active i {
  color: #ffffff !important;
  transform: scale(1.12);
}
#sidebar .nav-link i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

#sidebar .submenu { background: rgba(0,0,0,0.22); }
#sidebar .submenu .nav-link {
  font-size: 13px;
  padding: 8px 20px 8px 48px;
}
#sidebar .submenu .nav-link:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  padding-left: 54px;
}

/* Status tabs & navigation tab hover styling */
.status-tab-item {
  transition: all 0.2s ease;
}
.status-tab-item:hover {
  color: var(--accent) !important;
  background: rgba(192, 57, 43, 0.06);
  border-radius: 4px 4px 0 0;
}
.nav-tabs .nav-link:hover {
  color: var(--accent) !important;
  border-color: #e2e8f0 #e2e8f0 #fff;
}

/* ===== SIDEBAR COLLAPSED (ICON-ONLY MINI MODE) ===== */
@media (min-width: 993px) {
  html.sidebar-collapsed #sidebar,
  body.sidebar-collapsed #sidebar {
    width: var(--sidebar-mini-width);
  }
  html.sidebar-collapsed #topbar,
  body.sidebar-collapsed #topbar {
    left: var(--sidebar-mini-width);
  }
  html.sidebar-collapsed #main-content,
  body.sidebar-collapsed #main-content {
    margin-left: var(--sidebar-mini-width);
  }

  html.sidebar-collapsed #sidebar .sidebar-brand,
  body.sidebar-collapsed #sidebar .sidebar-brand {
    padding: 18px 0;
    justify-content: center;
  }
  html.sidebar-collapsed #sidebar .sidebar-brand span,
  body.sidebar-collapsed #sidebar .sidebar-brand span {
    display: none !important;
  }
  html.sidebar-collapsed #sidebar .sidebar-brand i,
  body.sidebar-collapsed #sidebar .sidebar-brand i {
    font-size: 20px;
    margin: 0;
  }

  html.sidebar-collapsed #sidebar .menu-section,
  body.sidebar-collapsed #sidebar .menu-section {
    font-size: 0;
    padding: 0;
    height: 1px;
    margin: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }

  html.sidebar-collapsed #sidebar .nav-link,
  body.sidebar-collapsed #sidebar .nav-link {
    font-size: 0 !important;
    padding: 12px 0;
    justify-content: center;
    text-align: center;
    border-left-width: 3px;
  }
  html.sidebar-collapsed #sidebar .nav-link i,
  body.sidebar-collapsed #sidebar .nav-link i {
    font-size: 16px;
    width: auto;
    margin: 0;
    text-align: center;
  }
  html.sidebar-collapsed #sidebar .nav-link span:not(.badge),
  html.sidebar-collapsed #sidebar .nav-link .submenu-arrow,
  body.sidebar-collapsed #sidebar .nav-link span:not(.badge),
  body.sidebar-collapsed #sidebar .nav-link .submenu-arrow {
    display: none !important;
  }
  html.sidebar-collapsed #sidebar .submenu,
  body.sidebar-collapsed #sidebar .submenu {
    display: none !important;
  }

  /* Floating Tooltip saat Hover di mode icon-only */
  html.sidebar-collapsed #sidebar .nav-link::before,
  body.sidebar-collapsed #sidebar .nav-link::before {
    content: attr(data-menu-title);
    position: fixed;
    left: calc(var(--sidebar-mini-width) + 8px);
    top: auto;
    background: #1e293b;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    border-left: 3px solid var(--accent);
    z-index: 99999;
  }
  html.sidebar-collapsed #sidebar .nav-link:hover::before,
  body.sidebar-collapsed #sidebar .nav-link:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(4px);
  }
}

/* ===== TOPBAR ===== */
#topbar {
  height: var(--topbar-height);
  background: var(--bg-card);
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 0 24px;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
#menu-toggle {
  background: none; border: none; font-size: 18px;
  color: var(--secondary); cursor: pointer; padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#menu-toggle:hover {
  color: var(--accent);
  background: var(--accent-light);
}

/* ===== MAIN CONTENT ===== */
#main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--topbar-height);
  padding: 24px;
  min-height: calc(100vh - var(--topbar-height));
}

.page-title {
  font-size: 20px; font-weight: 800;
  color: var(--primary); margin-bottom: 4px;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}
.breadcrumb { font-size: 13px; padding-left: 14px; }
.breadcrumb-item a { color: var(--accent); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }

/* ===== STAT CARDS ===== */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 3px solid var(--accent);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-card .stat-value { font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat-card .stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ===== TABLE CARD ===== */
.table-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.table-card .card-header-custom {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
}
.table-card .card-header-custom h6 {
  margin: 0; font-weight: 700; color: var(--primary);
}
.table thead th {
  background: var(--bg-thead);
  border-bottom: 2px solid var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--secondary);
  font-weight: 700;
  white-space: nowrap;
}
.table td { vertical-align: middle; font-size: 13.5px; color: var(--primary); }
.table-hover tbody tr:hover { background: var(--bg-hover) !important; }

/* ===== BADGES ===== */
.badge { font-size: 11px; padding: 4px 10px; border-radius: 20px; font-weight: 600; }
.badge-aktif    { background: #e8f5e9; color: #2e7d32; }
.badge-nonaktif { background: #f5f5f5; color: #757575; }
.badge-draft    { background: #eeeeee; color: #424242; }
.badge-pending  { background: #fff8e1; color: #f57f17; }
.badge-proses   { background: #e3f2fd; color: #1565c0; }
.badge-picking  { background: #e0f7fa; color: #006064; }
.badge-packing  { background: #ede7f6; color: #4527a0; }
.badge-dikirim  { background: #e8f5e9; color: #2e7d32; }
.badge-selesai  { background: #e8f5e9; color: #2e7d32; }
.badge-batal    { background: var(--accent-light); color: var(--accent); }
.badge-overdue  { background: var(--accent-light); color: var(--accent); }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
}
.btn-outline-primary {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}
.btn-outline-primary:hover {
  background: var(--accent) !important;
  color: white !important;
}

.btn-primary-custom {
  background: var(--accent);
  border: none;
  color: white;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary-custom:hover { background: var(--accent-hover); }

/* ===== FORM STYLES ===== */
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 24px;
}
.form-label { font-size: 13px; font-weight: 600; color: var(--secondary); margin-bottom: 4px; }
.form-control, .form-select {
  font-size: 13.5px;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 8px 12px;
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
  outline: none;
}
.section-title {
  font-size: 15px; font-weight: 700; color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px; margin-bottom: 16px;
}

/* ===== TABS ===== */
.nav-tabs { border-bottom: 2px solid var(--border); }
.nav-tabs .nav-link {
  font-size: 13px; color: var(--muted); border: none;
  padding: 10px 16px; border-bottom: 2px solid transparent;
  font-weight: 500;
}
.nav-tabs .nav-link.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  font-weight: 700; background: none;
}
.nav-tabs .nav-link:hover { color: var(--accent); }

/* ===== MARKETPLACE GRID ===== */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card .product-img {
  width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
}
.product-card .product-body { padding: 14px; }
.product-card .product-name { font-weight: 700; font-size: 13.5px; margin-bottom: 4px; color: var(--primary); }
.product-card .product-price { font-size: 16px; font-weight: 800; color: var(--accent); }
.product-card .product-stock { font-size: 12px; color: var(--muted); }

/* ===== ORDER STEPPER ===== */
.order-stepper { display: flex; align-items: center; padding: 20px 0; }
.step-item { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.step-item:not(:last-child)::after {
  content: ''; position: absolute;
  top: 15px; left: 60%; width: 80%; height: 2px;
  background: var(--border);
}
.step-item.done:not(:last-child)::after { background: var(--accent); }
.step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--border); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; z-index: 1;
}
.step-item.done    .step-circle { background: var(--accent); color: white; }
.step-item.current .step-circle { background: #fff; border: 2px solid var(--accent); color: var(--accent); }
.step-label { font-size: 11px; color: var(--muted); margin-top: 6px; text-align: center; }
.step-item.done    .step-label { color: var(--accent); font-weight: 600; }
.step-item.current .step-label { color: var(--accent); font-weight: 700; }

/* ===== FINANCE ===== */
.report-section { border-left: 3px solid var(--accent); padding-left: 12px; margin-bottom: 20px; }
.report-section h6 { color: var(--primary); font-weight: 700; }
.report-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13.5px; }
.report-row.total { font-weight: 700; border-top: 1px solid var(--border); padding-top: 8px; color: var(--primary); }
.report-row.indent { padding-left: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  #sidebar { transform: translateX(-100%); }
  #sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,0.4);
  }
  #topbar { left: 0; }
  #main-content { margin-left: 0; }
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
  }
  .sidebar-overlay.show { display: block; }
}

/* ===== MISC ===== */
.avatar-sm {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.text-rupiah { font-family: monospace; }
.action-btns .btn { padding: 4px 8px; font-size: 12px; }
.empty-state { text-align: center; padding: 40px; color: var(--muted); }
.empty-state i { font-size: 48px; margin-bottom: 12px; color: var(--border); }
.card-filter {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

/* ===== ACCENT UTILITIES ===== */
.text-accent   { color: var(--accent) !important; }
.bg-accent     { background: var(--accent) !important; color: white !important; }
.border-accent { border-color: var(--accent) !important; }
.accent-bar    { border-left: 4px solid var(--accent); padding-left: 10px; }

/* ============================================================
   MOBILE RESPONSIVE OVERRIDES FOR DROPSHIPPER & SYSTEM HANDPHONE (<992px & <768px & <576px)
   ============================================================ */

/* Mobile Topbar & Main Container */
@media (max-width: 992px) {
  #topbar {
    left: 0 !important;
    padding: 0 12px !important;
    height: 56px !important;
  }
  #topbar .topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #topbar .topbar-left span {
    font-size: 13px !important;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #main-content {
    margin-left: 0 !important;
    padding: 12px 14px 28px !important;
  }
  .page-title {
    font-size: 18px !important;
    margin-bottom: 2px !important;
  }
  .breadcrumb {
    font-size: 11px !important;
  }

  /* Stat Cards Responsive */
  .stat-card {
    padding: 12px !important;
    gap: 10px !important;
  }
  .stat-card .stat-value {
    font-size: 16px !important;
  }
  .stat-card .stat-label {
    font-size: 11px !important;
  }
  .stat-card .stat-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 768px) {
  /* Tables Touch Scroll & Spacing */
  .table-responsive {
    border-radius: 8px;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .table th, .table td {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
  .table th {
    white-space: nowrap;
  }

  /* Modals Touch Friendly */
  .modal-dialog {
    margin: 8px !important;
  }
  .modal-content {
    border-radius: 14px !important;
  }
  .modal-header, .modal-footer {
    padding: 12px 16px !important;
  }
  .modal-body {
    padding: 14px !important;
  }

  /* Form Cards */
  .form-card, .card-filter {
    padding: 14px !important;
    margin-bottom: 14px !important;
    border-radius: 10px !important;
  }

  /* Prevent Mobile iOS Input Auto-Zoom */
  input[type="text"], input[type="number"], input[type="email"], input[type="password"], select, textarea {
    font-size: 13.5px !important;
  }

  /* Category Pills Overflow Scroll */
  .cat-pill {
    padding: 6px 14px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  /* Cart Item Row Mobile Responsive Flex Wrap */
  .cart-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 10px !important;
    align-items: center !important;
  }
  .cart-row .cart-thumb {
    width: 54px !important;
    height: 54px !important;
    flex-shrink: 0;
  }
  .cart-row .flex-fill {
    min-width: 130px;
    flex: 1 1 auto !important;
  }
  .cart-row .cart-name {
    font-size: 13px !important;
    line-height: 1.3;
  }
  .cart-row .qty-wrap {
    margin-left: auto;
  }
  .cart-row .cart-subtotal {
    width: auto !important;
    min-width: unset !important;
    font-size: 13.5px !important;
    text-align: right;
  }

  /* Shipping Mode & Payment Option Cards */
  .shipping-mode-card, .payment-opt {
    padding: 10px !important;
  }
}

@media (max-width: 576px) {
  /* Marketplace Katalog 2-Kolom Grid Presisi di Handphone */
  #product-grid .col-12, 
  #product-grid [class*="col-"] {
    width: 50% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    margin-bottom: 10px !important;
  }
  #product-grid {
    margin-left: -5px !important;
    margin-right: -5px !important;
  }

  .product-card {
    border-radius: 10px !important;
  }
  .product-card .product-img-wrap {
    aspect-ratio: 1 / 1 !important;
  }
  .product-card .p-3 {
    padding: 8px !important;
  }
  .product-card h6 {
    font-size: 12px !important;
    line-height: 1.3 !important;
    height: 32px !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal !important;
  }
  .product-card .text-danger {
    font-size: 13.5px !important;
  }
  .product-card .btn-danger, 
  .product-card .btn-secondary {
    font-size: 11px !important;
    padding: 4px 6px !important;
  }

  /* Nav Pills / Status Tabs Scrollable */
  .nav-pills-custom {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch;
  }
  .nav-pills-custom .nav-link {
    white-space: nowrap !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
  }

  /* Sticky Summary Panel Support */
  div[style*="position:sticky"] {
    position: static !important;
  }
}

/* ===== FAST IMAGE LOADING & SKELETON SHIMMER ===== */
img {
  content-visibility: auto;
}

img[loading="lazy"] {
  background-color: #f1f5f9;
  transition: opacity 0.25s ease-in;
}

.img-shimmer {
  background: linear-gradient(90deg, #f0f3f6 25%, #e6ebf0 50%, #f0f3f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== CAMERA BARCODE SCANNER ===== */
#reader {
  width: 100% !important;
  min-height: 260px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
#reader video {
  width: 100% !important;
  height: 100% !important;
  max-height: 320px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  display: block !important;
}
#reader canvas {
  border-radius: 12px !important;
}
#reader img[alt="Info icon"] {
  display: none !important;
}
#reader__scan_region {
  background: transparent !important;
}
#reader__dashboard_section_csr {
  display: none !important;
}
#reader__header_message {
  display: none !important;
}

/* ===== PROFILE AVATAR & UPLOAD STYLES ===== */
.avatar-xl {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #c0392b);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  position: relative;
}
.avatar-xl img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.btn-avatar-upload {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #c0392b;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  z-index: 2;
}
.btn-avatar-upload:hover {
  background: #962d22;
  transform: scale(1.1);
  color: #ffffff;
}


