/* ═══════════════════════════════════════════════════
   components.css — Buttons, inputs, cards, tables,
                    badges, modals, pagination, tabs
   ═══════════════════════════════════════════════════ */

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(23,101,216,.35); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-ghost { background: transparent; color: var(--muted); padding: 8px 10px; }
.btn-ghost:hover { background: var(--border-light); color: var(--text); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-icon { padding: 8px; border-radius: var(--r-sm); }
.btn-icon svg { width: 16px; height: 16px; }

/* ── Form Controls ───────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.form-hint  { font-size: 11px; color: var(--muted); margin-top: 3px; }
.form-error { font-size: 11px; color: var(--danger); margin-top: 3px; }

.input, .textarea, .select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px; color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  width: 100%;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23,101,216,.1);
}
.input::placeholder, .textarea::placeholder { color: var(--subtle); }
.textarea { resize: vertical; min-height: 90px; }
.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='%236B7387' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer; }

.input-group { position: relative; }
.input-group .input { padding-left: 36px; }
.input-group-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-addon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); cursor: pointer; }
.input-addon:hover { color: var(--text); }

/* Toggle checkbox */
.form-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-toggle input[type=checkbox] { display: none; }
.form-toggle-track {
  width: 36px; height: 20px;
  background: var(--border);
  border-radius: var(--r-full);
  position: relative;
  transition: background var(--ease);
  flex-shrink: 0;
}
.form-toggle input:checked + .form-toggle-track { background: var(--primary); }
.form-toggle-track::after {
  content: '';
  width: 14px; height: 14px;
  background: #fff;
  border-radius: var(--r-full);
  position: absolute;
  top: 3px; left: 3px;
  transition: left var(--ease);
  box-shadow: var(--shadow-sm);
}
.form-toggle input:checked + .form-toggle-track::after { left: 19px; }
.form-toggle-label { font-size: 13px; font-weight: 500; }

/* ── Cards ───────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.card-body { padding: 20px; }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}
.card-header h3 { font-size: 15px; font-weight: 700; }

/* Stat card */
.stat-card { padding: 18px; }
.stat-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.stat-card-header h4 { font-size: 13px; font-weight: 600; color: var(--text-2); }
.stat-card-menu { color: var(--muted); cursor: pointer; padding: 2px; }
.stat-card-value { font-size: 26px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-card-footer { display: flex; align-items: center; gap: 6px; }
.stat-card-trend {
  font-size: 12px; font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--r-full);
}
.trend-up   { color: var(--success); background: var(--success-bg); }
.trend-down { color: var(--danger);  background: var(--danger-bg); }
.stat-card-period { font-size: 12px; color: var(--muted); }

/* ── Tables ──────────────────────────────────────── */
.table-wrap {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.table-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}
.table-toolbar h3 { font-size: 15px; font-weight: 700; }
.table-toolbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

table { width: 100%; border-collapse: collapse; }
thead tr { background: rgba(34,197,94,.06); }
thead th {
  padding: 12px 16px;
  font-size: 12px; font-weight: 700;
  color: var(--text-2);
  text-align: left;
  white-space: nowrap;
}
tbody tr { border-top: 1px solid var(--border-light); transition: background var(--ease); }
tbody tr:hover { background: var(--bg); }
tbody td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-2);
  vertical-align: middle;
}
.td-actions { display: flex; align-items: center; gap: 6px; }
.td-actions button {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--muted);
  transition: background var(--ease), color var(--ease);
}
.td-actions button:hover { background: var(--bg); color: var(--text); }
.td-actions button.del:hover { color: var(--danger); }
.td-product { display: flex; align-items: center; gap: 10px; }
.td-product-img {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg);
  object-fit: cover; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--subtle); border: 1px solid var(--border-light);
  overflow: hidden;
}
.td-product-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Badges ──────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.badge-dot { width: 6px; height: 6px; border-radius: var(--r-full); flex-shrink: 0; }
.badge-success  { background: var(--success-bg);  color: var(--success); }
.badge-danger   { background: var(--danger-bg);   color: var(--danger); }
.badge-warning  { background: var(--warning-bg);  color: var(--warning); }
.badge-info     { background: var(--info-bg);     color: var(--info); }
.badge-primary  { background: var(--primary-light); color: var(--primary); }
.badge-neutral  { background: var(--border-light); color: var(--muted); }

/* ── Pagination ──────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
}
.pagination-pages { display: flex; align-items: center; gap: 4px; }
.pg-btn {
  min-width: 32px; height: 32px;
  padding: 0 6px;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); background: transparent;
  transition: background var(--ease), color var(--ease);
}
.pg-btn:hover { background: var(--bg); }
.pg-btn.active { background: var(--primary); color: #fff; }
.pg-btn.dots { cursor: default; color: var(--muted); }
.pg-btn.dots:hover { background: transparent; }
.pg-nav-btn {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: background var(--ease);
}
.pg-nav-btn:hover { background: var(--bg); }
.pg-nav-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Tabs ────────────────────────────────────────── */
.tabs { display: flex; align-items: center; gap: 4px; }
.tab-btn {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500;
  color: var(--muted); background: transparent;
  transition: background var(--ease), color var(--ease);
  cursor: pointer;
}
.tab-btn:hover { background: var(--border-light); color: var(--text); }
.tab-btn.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--border); color: var(--muted);
  border-radius: var(--r-full); font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 4px;
  margin-left: 4px;
}
.tab-btn.active .tab-count { background: var(--primary); color: #fff; }

/* ── Modal Box ───────────────────────────────────── */
.modal-box {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .18s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(8px); } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
}
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close { color: var(--muted); cursor: pointer; padding: 4px; border-radius: var(--r-sm); transition: color var(--ease); }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 20px; }
.modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
}
.modal-lg { max-width: 780px; }
.modal-xl { max-width: 1000px; }

/* ── Toast ───────────────────────────────────────── */
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  min-width: 280px;
  max-width: 380px;
  animation: toastIn .2s ease;
  position: relative;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
.toast-icon svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.toast.success .toast-icon { color: var(--success); }
.toast.error   .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info    .toast-icon { color: var(--primary); }
.toast-content { flex: 1; }
.toast-title   { font-size: 13px; font-weight: 700; }
.toast-msg     { font-size: 12px; color: var(--muted); margin-top: 2px; }
.toast-close   { color: var(--muted); cursor: pointer; flex-shrink: 0; }
.toast-close:hover { color: var(--text); }

/* ── Dropzone ────────────────────────────────────── */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
  background: transparent;
}
.dropzone:hover, .dropzone.drag-over { border-color: var(--primary); background: var(--primary-light); }
.dropzone-icon { color: var(--muted); margin: 0 auto 10px; }
.dropzone p { font-size: 13px; color: var(--muted); }
.dropzone strong { color: var(--primary); }
.dropzone small { font-size: 11px; color: var(--subtle); display: block; margin-top: 4px; }

/* ── Color Swatch ────────────────────────────────── */
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform var(--ease), border-color var(--ease);
  box-shadow: var(--shadow-sm);
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected { border-color: var(--primary); transform: scale(1.15); }

/* ── Section Grid Helpers ────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Search input (table toolbar) ────────────────── */
.search-input-wrap { position: relative; }
.search-input-wrap input {
  padding: 7px 12px 7px 32px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px; color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--ease);
  width: 200px;
}
.search-input-wrap input:focus { border-color: var(--primary); }
.search-input-wrap .search-icon { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* ── Empty State ─────────────────────────────────── */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 12px; opacity: .4; }
.empty-state h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.empty-state p  { font-size: 13px; }

/* ── Skeleton loader ─────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, #fff 50%, var(--border-light) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ── Divider ─────────────────────────────────────── */
.divider  { height: 1px; background: var(--border-light); width: 100%; }
.divider-v { width: 1px; background: var(--border-light); align-self: stretch; }

/* ── Chip tags ───────────────────────────────────── */
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  background: var(--border-light);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.chip:hover { background: var(--primary-light); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; }
.chip-remove {
  display: flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  border-radius: var(--r-full);
  background: rgba(0,0,0,.1);
  font-size: 10px;
}

/* ── Notifications ───────────────────────────────── */
.notif-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.notif-panel {
  position: absolute;
  top: calc(var(--topbar-h) - 6px);
  right: 18px;
  width: 340px;
  max-height: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  z-index: 1300;
  display: none;
  overflow: hidden;
}
.notif-panel.open { display: block; }
.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}
.notif-panel-list {
  overflow-y: auto;
  max-height: 360px;
}
.notif-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}
.notif-item:hover { background: var(--bg); }
.notif-item-title { font-size: 12px; font-weight: 700; color: var(--text); }
.notif-item-msg { font-size: 12px; color: var(--muted); margin-top: 2px; }
.notif-item-time { font-size: 11px; color: var(--subtle); margin-top: 4px; }
.notif-empty { padding: 20px 12px; font-size: 12px; color: var(--muted); text-align: center; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE COMPONENTS — Mobile, Tablet, Desktop
   ═══════════════════════════════════════════════════ */

/* ── Tablet (768px - 1024px) ────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  
  .table-wrap { margin-bottom: 12px; }
  .td-product-img { width: 32px; height: 32px; }
  .td-actions button { width: 28px; height: 28px; font-size: 10px; }
  
  .notif-panel { width: 300px; right: 12px; max-height: 380px; }
  .notif-panel-list { max-height: 320px; }
  .notif-item-title { font-size: 11px; }
  .notif-item-msg { font-size: 11px; }
  
  .modal-lg { max-width: 600px; }
  .modal-xl { max-width: 800px; }
}

/* ── Mobile (< 768px) ──────────────────────────────────── */
@media (max-width: 768px) {
  /* ── Grid Layouts ────────────────────────────────– */
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  
  /* ── Input Group ─────────────────────────────────– */
  .form-group { margin-bottom: 10px; }
  .input-group .input { 
    padding-left: 30px;
    padding-right: 8px;
  }
  .input-addon { right: 8px; font-size: 12px; }
  .input-group-icon { left: 8px; }
  
  /* ── Forms - Stacked on Mobile ───────────────────– */
  .form-row { 
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .form-row > .form-group { margin-bottom: 0; }
  
  /* ── Buttons - Full Width on Mobile ──────────────– */
  .btn-group { 
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .btn-group .btn { width: 100%; }
  
  /* ── Tables - Horizontal Scroll on Mobile ────────– */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-toolbar {
    flex-wrap: wrap;
    padding: 10px;
    gap: 10px;
  }
  .table-toolbar h3 { 
    width: 100%;
    font-size: 12px;
  }
  .table-toolbar-right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .table-toolbar-right .btn { 
    flex-shrink: 0;
    font-size: 10px;
    padding: 6px 10px;
  }
  
  .search-input-wrap input {
    width: 100%;
    max-width: 100%;
  }
  
  table {
    min-width: 100%;
  }
  thead th {
    white-space: nowrap;
    padding: 8px;
    font-size: 10px;
  }
  tbody td {
    padding: 8px;
    font-size: 10px;
  }
  .td-actions {
    flex-direction: row-reverse;
  }
  .td-product { 
    flex-direction: column;
    gap: 4px;
  }
  .td-product-img {
    width: 40px;
    height: 40px;
  }
  
  /* ── Badges & Chips ──────────────────────────────– */
  .badge { 
    padding: 2px 6px;
    font-size: 9px;
  }
  .chip { 
    padding: 2px 6px;
    font-size: 10px;
  }
  .chip-list { gap: 4px; }
  
  /* ── Pagination - Mobile Friendly ────────────────– */
  .pagination {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
  }
  .pagination-info { 
    font-size: 10px;
    width: 100%;
  }
  .pagination-pages {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pg-btn {
    min-width: 28px;
    height: 28px;
    font-size: 10px;
  }
  .pg-nav-btn {
    font-size: 10px;
    padding: 4px 8px;
    flex: 1;
    justify-content: center;
  }
  
  /* ── Tabs - Mobile Scroll ────────────────────────– */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 2px;
    padding-bottom: 8px;
  }
  .tab-btn {
    padding: 6px 12px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  /* ── Modal - Full Mobile ─────────────────────────– */
  .modal-overlay { padding: 12px; }
  .modal-box {
    max-width: 100%;
    width: 100%;
    max-height: 85vh;
    border-radius: 12px;
  }
  .modal-header h3 { font-size: 13px; }
  .modal-body { padding: 12px; }
  .modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
    padding: 12px;
  }
  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
  .modal-lg { max-width: 100%; }
  .modal-xl { max-width: 100%; }
  
  /* ── Toast - Mobile ──────────────────────────────– */
  .toast {
    min-width: auto;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    font-size: 11px;
    padding: 10px 12px;
  }
  .toast-icon svg { width: 16px; height: 16px; }
  .toast-title { font-size: 12px; }
  .toast-msg { font-size: 11px; visibility: visible; }
  .toast-close { width: 18px; height: 18px; }
  
  /* ── Card ────────────────────────────────────────– */
  .card-body { padding: 12px; }
  .card-header { 
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .card-header h3 { font-size: 12px; width: 100%; }
  
  /* ── Stat Card ───────────────────────────────────– */
  .stat-card { padding: 14px; }
  .stat-card-header { 
    margin-bottom: 8px;
    flex-direction: column;
    gap: 6px;
  }
  .stat-card-header h4 { font-size: 12px; }
  .stat-card-value { font-size: 22px; margin-bottom: 4px; }
  .stat-card-footer { gap: 4px; flex-wrap: wrap; }
  .stat-card-trend { font-size: 11px; }
  .stat-card-period { font-size: 11px; }
  
  /* ── Dropdown/Panel ──────────────────────────────– */
  .notif-panel {
    position: fixed;
    /* top: auto; */
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    /* max-height: 60vh; */
    max-height: 100vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    z-index: 1400;
  }
  .notif-panel-list { max-height: calc(100vh - 50px); overflow-y: auto; }
  .notif-item-title { font-size: 11px; }
  .notif-item-msg { font-size: 10px; }
  .notif-item-time { font-size: 10px; }
  
  /* ── Dropzone ────────────────────────────────────– */
  .dropzone {
    padding: 20px 12px;
    border-radius: 8px;
  }
  .dropzone-icon { font-size: 28px; }
  .dropzone p { font-size: 11px; }
  .dropzone small { font-size: 10px; }
  
  /* ── Color Swatches ──────────────────────────────– */
  .color-swatches { gap: 6px; }
  .color-swatch {
    width: 24px;
    height: 24px;
    border-width: 2px;
  }
  
  /* ── Toggle ──────────────────────────────────────– */
  .form-toggle-track { 
    width: 32px;
    height: 18px;
  }
  .form-toggle-track::after {
    width: 12px;
    height: 12px;
    top: 3px;
  }
  .form-toggle input:checked + .form-toggle-track::after { left: 17px; }
  .form-toggle-label { font-size: 12px; }
  
  /* ── Empty State ─────────────────────────────────– */
  .empty-state {
    padding: 30px 16px;
  }
  .empty-state svg { width: 36px; height: 36px; }
  .empty-state h4 { font-size: 12px; }
  .empty-state p { font-size: 11px; }
}

/* ── Small Mobile (< 480px) ──────────────────────────━ */
@media (max-width: 480px) {
  /* Reduce sizes further for very small screens */
  .btn { 
    padding: 6px 10px;
    font-size: 11px;
  }
  .btn-sm {
    padding: 4px 8px;
    font-size: 10px;
  }
  .btn-icon {
    width: 30px;
    height: 30px;
    padding: 4px;
  }
  
  .input, .textarea, .select {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .toast {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    padding: 8px 10px;
  }
  
  .modal-box { max-height: 90vh; }
  .modal-header { padding: 10px; }
  .modal-body { padding: 10px; }
  .modal-footer { padding: 10px; gap: 6px; }
  
  .table-toolbar {
    flex-direction: column;
    gap: 8px;
  }
  .table-toolbar h3 { font-size: 11px; }
  
  thead th { padding: 6px; }
  tbody td { padding: 6px; }
}
