:root {
  --primary-blue: rgb(37, 99, 235);
  --primary-blue-hover: rgb(29, 78, 216);
  --primary-blue-soft: rgb(219, 234, 254);
  --primary-blue-soft-2: rgb(239, 246, 255);
  --accent-red: rgb(239, 68, 68);
  --accent-red-hover: rgb(220, 38, 38);
  --accent-red-soft: rgb(254, 226, 226);
  --cyan-tech-soft: rgb(224, 242, 254);
  --sky-soft: rgb(240, 249, 255);
  --bg-main: rgb(246, 248, 252);
  --bg-surface: rgb(255, 255, 255);
  --bg-elevated: rgb(249, 250, 252);
  --bg-dark: rgb(15, 23, 42);
  --text-main: rgb(30, 41, 59);
  --text-muted: rgb(100, 116, 139);
  --text-soft: rgb(148, 163, 184);
  --text-white: rgb(248, 250, 252);
  --border-soft: rgb(226, 232, 240);
  --border-strong: rgb(203, 213, 225);
  --success: rgb(34, 197, 94);
  --warning: rgb(245, 158, 11);
  --info: rgb(59, 130, 246);
  --danger: rgb(239, 68, 68);
  --shadow-xs: 0 2px 10px rgba(15, 23, 42, 0.03);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --container-gap: 20px;
  --transition-fast: 160ms ease;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, rgb(248, 250, 252) 0%, rgb(246, 248, 252) 100%);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.55;
}
body {
  overflow-y: auto;
  overflow-x: hidden;
}
body.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(219, 234, 254, 0.95), transparent 30%),
    radial-gradient(circle at bottom left, rgba(254, 226, 226, 0.68), transparent 24%),
    linear-gradient(135deg, rgb(248, 250, 252), rgb(245, 247, 251));
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

body.modal-open,
body.sidebar-open {
  overflow: hidden;
}

.admin-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 70;
  backdrop-filter: blur(3px);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%),
    var(--bg-surface);
  border-right: 1px solid rgba(203, 213, 225, 0.78);
  box-shadow: 18px 0 42px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 22px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--primary-blue), rgb(59, 130, 246));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}
.brand-mark i { width: 22px; height: 22px; }
.sidebar-brand h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.sidebar-brand p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-item {
  min-height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.nav-item i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.nav-item:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.82);
  border-color: rgba(226, 232, 240, 0.92);
  transform: translateX(2px);
}
.nav-item.active {
  color: var(--primary-blue-hover);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(191, 219, 254, 0.98);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.10);
}

.sidebar-footer {
  padding: 18px 14px 22px;
  border-top: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.85);
}
.sidebar-logout {
  width: 100%;
}

.main-content {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  backdrop-filter: blur(14px);
}
.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.page-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.header-copy {
  min-width: 0;
}
.mobile-menu-btn {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.92);
}
.mobile-menu-btn i { width: 18px; height: 18px; }

.content-wrapper {
  flex: 1;
  min-width: 0;
  padding: 28px;
  overflow-y: auto;
  overflow-x: hidden;
}

.card,
.panel-card,
.dashboard-card,
.table-card,
.settings-card,
.logs-card,
.inventory-shell-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card,
.panel-card {
  padding: 24px;
}
.panel-head h3,
.section-title,
.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.panel-head p,
.section-subtitle,
.card-subtitle,
.helper-text {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.75;
}

.btn {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), rgb(59, 130, 246));
  color: var(--text-white);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.20);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-blue-hover), var(--primary-blue)); }
.btn-secondary,
.btn-outline {
  background: rgba(255,255,255,0.94);
  border-color: var(--border-soft);
  color: var(--text-main);
}
.btn-secondary:hover,
.btn-outline:hover { background: var(--bg-elevated); }
.btn-ghost {
  background: transparent;
  color: var(--text-main);
}
.btn-danger {
  background: linear-gradient(135deg, var(--accent-red), rgb(248, 113, 113));
  color: var(--text-white);
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.18);
}
.btn-danger:hover { background: linear-gradient(135deg, var(--accent-red-hover), var(--accent-red)); }
.header-logout { min-height: 40px; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}
.badge i { width: 14px; height: 14px; }
.badge-success { background: rgba(34, 197, 94, 0.12); color: rgb(21, 128, 61); border-color: rgba(34, 197, 94, 0.22); }
.badge-info { background: rgba(59, 130, 246, 0.12); color: rgb(29, 78, 216); border-color: rgba(59, 130, 246, 0.22); }
.badge-warning { background: rgba(245, 158, 11, 0.14); color: rgb(180, 83, 9); border-color: rgba(245, 158, 11, 0.24); }
.badge-danger { background: rgba(239, 68, 68, 0.12); color: rgb(185, 28, 28); border-color: rgba(239, 68, 68, 0.22); }

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--primary-blue-hover), var(--accent-red));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.form-control,
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.98);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
textarea { min-height: 110px; resize: vertical; }
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
  background: rgb(255,255,255);
}
label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 500;
}
.form-help,
.field-help,
.settings-help {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.alert,
.flash-message,
.notice-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.7;
}
.alert-success { background: rgba(34, 197, 94, 0.10); color: rgb(21, 128, 61); border-color: rgba(34, 197, 94, 0.18); }
.alert-error,
.alert-danger { background: rgba(239, 68, 68, 0.10); color: rgb(185, 28, 28); border-color: rgba(239, 68, 68, 0.18); }
.alert-info { background: rgba(59, 130, 246, 0.10); color: rgb(29, 78, 216); border-color: rgba(59, 130, 246, 0.18); }
.alert-warning { background: rgba(245, 158, 11, 0.10); color: rgb(180, 83, 9); border-color: rgba(245, 158, 11, 0.20); }

.table-shell {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.98);
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
thead th {
  background: rgba(248, 250, 252, 0.96);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
}
tbody td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
  vertical-align: middle;
  font-size: 13px;
}
tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.44);
}
tbody tr:hover {
  background: rgba(239, 246, 255, 0.62);
}

.empty-state {
  padding: 40px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.92));
  text-align: center;
}
.empty-state h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.empty-state p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat-card {
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.94));
  box-shadow: var(--shadow-xs);
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}
.stat-value {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.stat-meta {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.hero-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: var(--shadow-sm);
}
.hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(239,68,68,0.10));
  color: var(--primary-blue);
}
.hero-content h2 {
  margin: 4px 0 8px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 600;
}
.hero-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-blue);
}
.dashboard-stack {
  display: grid;
  gap: 20px;
}
.filters-bar,
.toolbar,
.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.settings-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
}
.settings-modal-overlay[hidden] {
  display: none !important;
}
.settings-modal-panel {
  width: min(100%, 780px);
  max-height: calc(100vh - 40px);
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.settings-modal-panel--narrow {
  width: min(100%, 620px);
}
.settings-modal-header,
.settings-modal-footer {
  padding: 18px 20px;
}
.settings-modal-header {
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}
.settings-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
}
.settings-modal-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.settings-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255,255,255,0.96);
}
.settings-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.settings-modal-subtitle {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}
.settings-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.96);
}
.settings-modal-body,
.settings-modal-body * {
  min-width: 0;
}

.login-shell {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  gap: 32px;
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 32px;
  background: transparent;
}
.login-shell--balanced {
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
}
.login-showcase {
  padding: 44px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}
.login-showcase--compact {
  min-width: 0;
}
.login-showcase-copy {
  max-width: 560px;
  display: grid;
  gap: 28px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.login-brand--large h1 {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.login-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-blue);
}
.login-brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-blue), rgb(59,130,246));
  color: white;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.18);
}
.login-hero-copy {
  display: grid;
  gap: 12px;
}
.login-hero-copy h2 {
  margin: 0;
  font-size: 40px;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.login-hero-copy p {
  margin: 0;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}
.login-info-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.login-info-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-xs);
  display: grid;
  gap: 6px;
}
.login-info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.login-info-item strong {
  font-size: 14px;
  line-height: 1.45;
}
.login-panel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 8px 24px 0;
}
.login-panel {
  width: min(100%, 468px);
  margin: 0 auto;
  padding: 38px;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.10);
}
.login-panel--elevated {
  position: relative;
}
.login-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.login-panel-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
  color: #fff;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.22);
}
.login-panel-icon i {
  width: 22px;
  height: 22px;
}
.login-panel-head h2 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.login-panel-text,
.login-panel p {
  margin: 0 0 22px;
  color: var(--text-muted);
  line-height: 1.75;
}
.login-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-submit-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}

.inventory-page {
  gap: 20px;
}
.inventory-page--modal-simple .inventory-layout-grid {
  display: block;
}
.inventory-overview-card {
  align-items: center;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: auto;
}
.inventory-overview-card__icon {
  font-size: 30px;
}
.inventory-layout-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.inventory-left-column,
.inventory-right-column,
.inventory-right-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.inventory-panel-head {
  margin-bottom: 16px;
}
.inventory-panel-head--compact {
  margin-bottom: 12px;
}
.inventory-selector-card,
.inventory-import-card,
.inventory-filters-shell,
.inventory-table-card,
.inventory-recent-card {
  padding: 22px;
}
.inventory-product-preview--refined {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: linear-gradient(180deg, rgba(248,250,252,0.95), rgba(255,255,255,0.95));
  display: grid;
  gap: 12px;
}
.inventory-product-preview__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.inventory-product-preview__head strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}
.inventory-product-preview__head span:last-child {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}
.inventory-product-preview__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.10);
  color: var(--primary-blue);
  flex: 0 0 auto;
}
.inventory-product-preview__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.inventory-import-form {
  display: grid;
  gap: 18px;
}
.inventory-import-card__body {
  display: grid;
  gap: 16px;
}
.inventory-import-helper-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: rgba(248, 250, 252, 0.82);
  display: grid;
  gap: 12px;
}
.inventory-import-helper-card__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.inventory-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.inventory-preview-grid > div {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(226, 232, 240, 0.92);
  display: grid;
  gap: 6px;
}
.inventory-preview-grid span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.inventory-preview-grid strong {
  font-size: 18px;
  line-height: 1;
}
.inventory-inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-main);
}
.inventory-helper-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.7;
}
.inventory-helper-list li + li {
  margin-top: 6px;
}
.inventory-import-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.inventory-field__hint,
.inventory-line-count,
.inventory-muted-text,
.inventory-table-note {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.65;
}
.inventory-line-count {
  font-weight: 600;
}
.inventory-import-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.inventory-filter-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inventory-summary-note {
  padding: 16px 20px;
}
.inventory-summary-note__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.inventory-filters-card--stacked,
.inventory-filters-card--modal {
  display: grid;
  gap: 14px;
}
.inventory-submit-btn {
  min-height: 42px;
  min-width: 180px;
}
.inventory-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(170px, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.inventory-filters--modal {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.inventory-filter {
  min-width: 0;
}
.inventory-filter--actions {
  display: flex;
  align-items: end;
}
.inventory-filter-btn {
  width: 100%;
  min-height: 42px;
}
.inventory-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.inventory-section-head--spaced {
  margin-bottom: 18px;
}
.inventory-table-wrap {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.98);
}
.inventory-table-wrap--modal {
  max-height: min(48vh, 520px);
  overflow: auto;
}
.inventory-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.inventory-table th,
.inventory-table td {
  white-space: normal;
}
.inventory-content-code {
  display: inline-block;
  max-width: 340px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.92);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.inventory-id-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.10);
  color: rgb(29, 78, 216);
  font-size: 11px;
  font-weight: 700;
}
.inventory-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}
.inventory-status-badge--available {
  color: rgb(21, 128, 61);
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.22);
}
.inventory-status-badge--reserved {
  color: rgb(180, 83, 9);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.22);
}
.inventory-status-badge--sold {
  color: rgb(29, 78, 216);
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.22);
}
.inventory-status-badge--invalid {
  color: rgb(185, 28, 28);
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.22);
}
.inventory-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.inventory-action-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}
.inventory-action-btn--warning {
  background: rgba(245, 158, 11, 0.14);
  color: rgb(180, 83, 9);
  border-color: rgba(245, 158, 11, 0.24);
}
.inventory-action-btn--danger {
  background: rgba(239, 68, 68, 0.12);
  color: rgb(185, 28, 28);
  border-color: rgba(239, 68, 68, 0.22);
}
.inventory-empty-state {
  padding: 36px 20px;
  display: grid;
  gap: 8px;
  text-align: center;
}
.inventory-empty-state strong {
  font-size: 16px;
}
.inventory-empty-state span {
  color: var(--text-muted);
  line-height: 1.7;
}
.inventory-alert--error {
  border-color: rgba(239, 68, 68, 0.2);
}
.inventory-bulk-form {
  display: grid;
  gap: 16px;
}
.inventory-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(191, 219, 254, 0.92);
  background: linear-gradient(135deg, rgba(239,246,255,0.96), rgba(255,255,255,0.96));
}
.inventory-bulk-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inventory-modal-summary {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.92);
  line-height: 1.7;
}
.inventory-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.inventory-quick-card {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.98);
}
.inventory-quick-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.10);
  font-size: 22px;
  flex: 0 0 auto;
}
.inventory-quick-card__body {
  display: grid;
  gap: 6px;
}
.inventory-quick-card__body strong {
  font-size: 15px;
}
.inventory-quick-card__body span {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 13px;
}
.inventory-quick-card--primary .inventory-quick-card__icon {
  background: rgba(59, 130, 246, 0.12);
}
.inventory-quick-card--danger .inventory-quick-card__icon {
  background: rgba(239, 68, 68, 0.12);
}
.inventory-modal-panel {
  width: min(100%, 1100px);
}
.inventory-modal-panel--medium {
  width: min(100%, 760px);
}
.inventory-modal-panel--wide {
  width: min(100%, 1180px);
}
.inventory-modal-body {
  max-height: min(68vh, 760px);
  overflow-y: auto;
}
.inventory-modal-footer {
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid rgba(226, 232, 240, 0.92);
}

.categories-list-card {
  padding: 20px 22px;
}
.categories-list-head {
  align-items: flex-start;
}
.categories-add-btn {
  min-height: 38px;
  padding: 0 14px;
}
.categories-table-shell {
  border-radius: 16px;
}
.categories-table thead th {
  font-size: 10px;
  letter-spacing: 0.06em;
}
.categories-table tbody td {
  padding-top: 14px;
  padding-bottom: 14px;
  background: transparent;
}
.categories-row-disabled {
  opacity: 0.58;
  background: rgba(248, 250, 252, 0.82);
}
.categories-name-cell strong {
  font-size: 14px;
  font-weight: 600;
}
.categories-emoji {
  font-size: 17px;
  line-height: 1;
}
.categories-code {
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size: 12px;
  color: var(--text-muted);
}
.categories-count {
  font-size: 14px;
  font-weight: 700;
}
.categories-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.categories-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255,255,255,0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  box-shadow: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.categories-icon-btn i {
  width: 16px;
  height: 16px;
}
.categories-icon-btn:hover {
  transform: translateY(-1px);
}
.categories-icon-btn--edit:hover {
  color: rgb(29, 78, 216);
  border-color: rgba(191, 219, 254, 0.92);
  background: rgba(239, 246, 255, 0.92);
}
.categories-icon-btn--toggle:hover {
  color: rgb(180, 83, 9);
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(255, 251, 235, 0.96);
}
.categories-icon-btn--delete {
  color: rgb(185, 28, 28);
  border-color: rgba(254, 202, 202, 0.92);
  background: rgba(254, 242, 242, 0.92);
}
.categories-icon-btn--delete:hover {
  color: rgb(153, 27, 27);
  border-color: rgba(252, 165, 165, 0.92);
  background: rgba(254, 226, 226, 0.96);
}

.products-list-card {
  padding: 20px 22px;
}
.products-list-head {
  align-items: flex-start;
}
.products-add-btn {
  min-height: 38px;
  padding: 0 14px;
}
.products-table-shell {
  border-radius: 16px;
}
.products-table thead th {
  font-size: 10px;
  letter-spacing: 0.06em;
}
.products-table tbody td {
  padding-top: 14px;
  padding-bottom: 14px;
  background: transparent;
}
.products-row-disabled {
  opacity: 0.58;
  background: rgba(248, 250, 252, 0.82);
}
.products-name-cell {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.products-emoji {
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
}
.products-name-cell strong {
  font-size: 14px;
  font-weight: 600;
}
.products-meta {
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-muted);
}
.products-meta code {
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
}
.products-category {
  color: var(--text-muted);
}
.products-price {
  color: var(--primary-blue);
  font-size: 14px;
  font-weight: 700;
}
.products-stock {
  font-size: 14px;
  font-weight: 700;
}
.products-stock--ok {
  color: rgb(21, 128, 61);
}
.products-stock--zero {
  color: rgb(185, 28, 28);
}
.products-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.products-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255,255,255,0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  box-shadow: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.products-icon-btn i {
  width: 16px;
  height: 16px;
}
.products-icon-btn:hover {
  transform: translateY(-1px);
}
.products-icon-btn--edit:hover {
  color: rgb(29, 78, 216);
  border-color: rgba(191, 219, 254, 0.92);
  background: rgba(239, 246, 255, 0.92);
}
.products-icon-btn--toggle:hover {
  color: rgb(180, 83, 9);
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(255, 251, 235, 0.96);
}
.products-icon-btn--delete {
  color: rgb(185, 28, 28);
  border-color: rgba(254, 202, 202, 0.92);
  background: rgba(254, 242, 242, 0.92);
}
.products-icon-btn--delete:hover {
  color: rgb(153, 27, 27);
  border-color: rgba(252, 165, 165, 0.92);
  background: rgba(254, 226, 226, 0.96);
}

.orders-filter-card,
.orders-table-card {
  padding: 20px 22px;
}
.orders-panel-head h3,
.orders-table-head h3 {
  margin-bottom: 4px;
}
.orders-panel-head p,
.orders-table-head p {
  margin: 0;
  color: var(--text-muted);
}
.orders-filters-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) repeat(5, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}
.orders-filter-search input {
  min-height: 46px;
}
.orders-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.orders-table-shell {
  border-radius: 16px;
}
.orders-table thead th {
  font-size: 10px;
  letter-spacing: 0.06em;
}
.orders-table tbody td {
  vertical-align: top;
  background: transparent;
}
.orders-code-cell,
.orders-customer-cell,
.orders-product-cell,
.orders-time-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.orders-subtle-meta {
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-word;
}
.orders-qty-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.96);
  color: var(--primary-blue-hover);
  font-weight: 700;
}
.orders-amount-cell {
  font-weight: 700;
  color: rgb(22, 163, 74);
  white-space: nowrap;
}
.orders-actions {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: max-content;
}
.orders-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255,255,255,0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--text-main);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.orders-icon-btn i {
  width: 16px;
  height: 16px;
}
.orders-icon-btn:hover {
  transform: translateY(-1px);
}
.orders-icon-btn--detail:hover,
.orders-icon-btn--report:hover {
  color: rgb(29, 78, 216);
  border-color: rgba(191, 219, 254, 0.92);
  background: rgba(239, 246, 255, 0.92);
}
.orders-icon-btn--danger {
  color: rgb(185, 28, 28);
  border-color: rgba(254, 202, 202, 0.92);
  background: rgba(254, 242, 242, 0.92);
}
.orders-icon-btn--danger:hover {
  color: rgb(153, 27, 27);
  border-color: rgba(252, 165, 165, 0.92);
  background: rgba(254, 226, 226, 0.96);
}
.orders-pagination {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.orders-pagination-info {
  color: var(--text-muted);
  font-size: 13px;
}
.orders-detail-modal-panel {
  width: min(100%, 1100px);
}
.orders-detail-body {
  background: rgba(248, 250, 252, 0.7);
}
.orders-detail-content {
  display: grid;
  gap: 16px;
}
.orders-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.orders-detail-grid--secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.orders-detail-card {
  padding: 18px;
}
.orders-detail-list {
  display: grid;
  gap: 10px;
}
.orders-detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}
.orders-detail-list div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.orders-detail-list span {
  color: var(--text-muted);
  font-size: 12px;
}
.orders-detail-list strong {
  text-align: right;
  font-size: 13px;
  word-break: break-word;
}
.orders-items-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.orders-items-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
}
.orders-items-list {
  display: grid;
  gap: 12px;
}
.orders-item-block {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  overflow: hidden;
}
.orders-item-meta {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(248, 250, 252, 0.96);
}
.orders-item-block pre {
  margin: 0;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
}
.orders-items-empty {
  padding: 16px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--text-muted);
}
.orders-detail-order-code {
  color: var(--primary-blue);
}

.vouchers-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 20px;
  align-items: start;
}
.vouchers-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.vouchers-stat-card {
  min-height: 122px;
}
.vouchers-stat-card .stat-value {
  font-size: 30px;
}
.vouchers-stat-card--primary {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.98));
}
.vouchers-stat-card--success {
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.92), rgba(255, 255, 255, 0.98));
}
.vouchers-stat-card--warning {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.98));
}
.vouchers-stat-card--accent {
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.92), rgba(255, 255, 255, 0.98));
}
.vouchers-list-card,
.vouchers-create-card {
  padding: 20px 22px;
}
.vouchers-list-head h3,
.vouchers-create-head h3,
.vouchers-toolbar h4 {
  margin-bottom: 4px;
}
.vouchers-list-head p,
.vouchers-create-head p,
.vouchers-toolbar p {
  margin: 0;
  color: var(--text-muted);
}
.vouchers-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.vouchers-add-btn {
  min-height: 38px;
  padding: 0 14px;
}
.vouchers-filters-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.75fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}
.vouchers-filter-search input {
  min-height: 46px;
}
.vouchers-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.vouchers-table-shell {
  border-radius: 16px;
}
.vouchers-table thead th {
  font-size: 10px;
  letter-spacing: 0.06em;
}
.vouchers-table tbody td {
  vertical-align: top;
  background: transparent;
}
.vouchers-code-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgb(15, 23, 42);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.vouchers-discount-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vouchers-discount-cell strong {
  color: rgb(220, 38, 38);
  font-size: 13px;
}
.vouchers-discount-cell span,
.vouchers-condition-text,
.vouchers-validity-text span,
.vouchers-scope-cell small {
  font-size: 12px;
  color: var(--text-muted);
}
.vouchers-scope-cell,
.vouchers-validity-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vouchers-scope-badge {
  width: fit-content;
}
.vouchers-scope-badge--category {
  background: rgba(238, 242, 255, 0.96);
  color: rgb(67, 56, 202);
}
.vouchers-scope-badge--all {
  background: rgba(239, 246, 255, 0.96);
  color: rgb(37, 99, 235);
}
.vouchers-usage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.92);
  font-size: 12px;
  font-weight: 700;
}
.vouchers-status-badge {
  width: fit-content;
}
.vouchers-status-badge--off {
  background: rgba(241, 245, 249, 0.96);
  color: rgb(71, 85, 105);
}
.vouchers-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.vouchers-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255,255,255,0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.vouchers-icon-btn i {
  width: 16px;
  height: 16px;
}
.vouchers-icon-btn:hover {
  transform: translateY(-1px);
}
.vouchers-icon-btn--edit:hover,
.vouchers-icon-btn--toggle:hover {
  color: rgb(29, 78, 216);
  border-color: rgba(191, 219, 254, 0.92);
  background: rgba(239, 246, 255, 0.92);
}
.vouchers-icon-btn--delete {
  color: rgb(185, 28, 28);
  border-color: rgba(254, 202, 202, 0.92);
  background: rgba(254, 242, 242, 0.92);
}
.vouchers-icon-btn--delete:hover {
  color: rgb(153, 27, 27);
  border-color: rgba(252, 165, 165, 0.92);
  background: rgba(254, 226, 226, 0.96);
}
.vouchers-icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.vouchers-form-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.vouchers-form-grid label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.vouchers-form-row {
  display: grid;
  gap: 12px;
}
.vouchers-form-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vouchers-form-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.vouchers-submit-btn {
  width: 100%;
}
.vouchers-create-modal-panel {
  width: min(100%, 920px);
}
.vouchers-create-modal-form {
  min-height: 0;
}
.vouchers-create-modal-body {
  background: rgba(248, 250, 252, 0.72);
}
.vouchers-create-modal-footer {
  justify-content: flex-end;
}
.vouchers-modal-section {
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
}
.vouchers-modal-section + .vouchers-modal-section {
  margin-top: 16px;
}
.vouchers-modal-section__head {
  margin-bottom: 14px;
}
.vouchers-modal-section__head h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}
.vouchers-modal-section__head p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.vouchers-modal-card {
  width: min(100%, 920px);
}
.vouchers-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.vouchers-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.dashboard-page {
  gap: 22px;
}
.dashboard-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dashboard-stat-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dashboard-stat-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.dashboard-stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.dashboard-stat-card__icon i {
  width: 20px;
  height: 20px;
}
.dashboard-stat-card--revenue .dashboard-stat-card__icon {
  background: rgba(37, 99, 235, 0.12);
  color: rgb(29, 78, 216);
}
.dashboard-stat-card--orders .dashboard-stat-card__icon {
  background: rgba(239, 68, 68, 0.12);
  color: rgb(185, 28, 28);
}
.dashboard-stat-card--items .dashboard-stat-card__icon {
  background: rgba(34, 197, 94, 0.12);
  color: rgb(21, 128, 61);
}
.dashboard-stat-card--customers .dashboard-stat-card__icon {
  background: rgba(245, 158, 11, 0.14);
  color: rgb(180, 83, 9);
}
.dashboard-quick-card {
  padding: 22px;
}
.dashboard-quick-card__head {
  margin-bottom: 16px;
}
.dashboard-actions-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-action-btn {
  min-height: 46px;
  width: 100%;
}
.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: start;
}
.dashboard-chart-card,
.dashboard-recent-card {
  padding: 22px;
}
.dashboard-chart-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.dashboard-range-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dashboard-range-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.96);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
}
.dashboard-range-btn.is-active {
  background: linear-gradient(135deg, var(--primary-blue), rgb(59, 130, 246));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}
.dashboard-chart-wrap {
  min-height: 320px;
}
.dashboard-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dashboard-order-item {
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(248,250,252,0.72);
}
.dashboard-order-item__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.dashboard-order-item__meta {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.dashboard-order-item__amount {
  margin-top: 10px;
  font-weight: 800;
  color: var(--primary-blue);
  font-size: 18px;
}

@media (max-width: 1200px) {
  .stats-grid,
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .orders-filters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .vouchers-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform var(--transition-fast);
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .header {
    padding: 14px 18px;
  }
  .content-wrapper {
    padding: 18px;
  }
  .login-shell,
  .login-shell--balanced {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 18px 20px;
  }
  .login-showcase {
    padding: 28px 18px 0;
  }
  .login-showcase-copy {
    max-width: 100%;
  }
  .login-panel-wrap {
    padding: 8px 0 24px;
  }
}

@media (max-width: 768px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .stats-grid,
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }
  .inventory-layout-grid,
  .inventory-filters,
  .inventory-import-card__footer,
  .inventory-section-head,
  .inventory-product-preview__meta,
  .inventory-summary-note__row,
  .inventory-bulk-bar,
  .inventory-bulk-bar__actions,
  .inventory-filter-actions-row,
  .inventory-quick-grid,
  .inventory-filters--modal,
  .filters-bar,
  .toolbar,
  .page-toolbar,
  .settings-modal-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .header {
    align-items: center;
    flex-direction: row;
    padding: 12px 14px;
    min-height: 64px;
  }
  .header-left {
    min-width: 0;
    flex: 1 1 auto;
  }
  .header-right {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
  }
  .header-right .badge,
  .admin-avatar {
    display: none;
  }
  .header-logout {
    min-height: 36px;
    padding: 0 12px;
  }
  .header-logout span {
    display: none;
  }
  .page-title {
    font-size: 19px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .page-subtitle {
    display: none;
  }
  .content-wrapper {
    padding: 14px;
  }
  .orders-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vouchers-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vouchers-filters-bar,
  .vouchers-form-row--2,
  .vouchers-form-row--3 {
    grid-template-columns: 1fr;
  }
  .card,
  .panel-card,
  .inventory-selector-card,
  .inventory-import-card,
  .inventory-filters-shell,
  .inventory-table-card,
  .inventory-recent-card {
    padding: 16px;
  }
  .inventory-content-code {
    max-width: 100%;
  }
  .inventory-action-group {
    justify-content: flex-start;
  }
  .inventory-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inventory-modal-panel,
  .inventory-modal-panel--medium,
  .inventory-modal-panel--wide {
    width: 100%;
  }
  .dashboard-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .categories-actions,
  .products-actions,
  .orders-actions,
  .vouchers-actions {
    justify-content: flex-start;
  }
  .dashboard-chart-card,
  .dashboard-recent-card,
  .dashboard-quick-card {
    padding: 18px;
  }
  .dashboard-chart-card__head,
  .dashboard-order-item__top {
    flex-direction: column;
    align-items: stretch;
  }
  .login-showcase {
    padding: 18px 8px 0;
    gap: 18px;
  }
  .login-brand--large h1 {
    font-size: 24px;
  }
  .login-hero-copy h2 {
    font-size: 32px;
  }
  .login-hero-copy p {
    font-size: 14px;
    line-height: 1.7;
  }
  .login-info-strip {
    grid-template-columns: 1fr;
  }
  .login-panel {
    width: calc(100% - 12px);
    max-width: 480px;
    margin: 8px auto 20px;
    padding: 24px;
    border-radius: 22px;
  }
  .login-panel-head {
    align-items: flex-start;
  }
  .login-panel-head h2 {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .settings-modal-overlay {
    padding: 10px;
  }
  .settings-modal-panel {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 14px;
  }
  .settings-modal-header,
  .settings-modal-body,
  .settings-modal-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  thead th,
  tbody td {
    padding-left: 12px;
    padding-right: 12px;
  }
  .inventory-overview-card {
    gap: 14px;
  }
  .inventory-import-helper-card {
    padding: 14px;
  }
  .inventory-preview-grid {
    grid-template-columns: 1fr;
  }
  .inventory-quick-card {
    padding: 18px;
  }
  .inventory-modal-body {
    max-height: calc(100vh - 180px);
  }
  .dashboard-actions-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-range-switcher {
    width: 100%;
  }
  .dashboard-range-btn {
    flex: 1 1 auto;
  }
  .dashboard-chart-wrap {
    min-height: 260px;
  }
  .categories-list-card,
  .products-list-card,
  .orders-filter-card,
  .orders-table-card,
  .vouchers-list-card,
  .vouchers-create-card {
    padding: 16px;
  }
  .orders-filters-grid,
  .orders-detail-grid,
  .orders-detail-grid--secondary,
  .vouchers-stats-grid {
    grid-template-columns: 1fr;
  }
  .orders-items-head,
  .categories-actions,
  .products-actions,
  .orders-actions,
  .orders-pagination,
  .vouchers-toolbar,
  .vouchers-filter-actions,
  .vouchers-modal-head,
  .vouchers-modal-actions,
  .vouchers-actions {
    flex-wrap: wrap;
  }
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.page-subtext {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}
.customer-stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.customer-filter-card,
.customer-table-card,
.detail-panel {
  padding: 20px;
}
.customer-filter-form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field-wide {
  grid-column: span 2;
}
.customer-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.customer-table-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}
.customers-table td,
.customers-table th {
  vertical-align: top;
}
.customer-identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 240px;
}
.customer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(239, 68, 68, 0.14));
  color: var(--primary-blue-hover);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  flex: 0 0 auto;
}
.customer-name {
  font-weight: 600;
  font-size: 14px;
}
.customer-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}
.customer-note-preview,
.table-subtext,
.stat-hint {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}
.value-strong {
  font-weight: 600;
  color: var(--text-main);
}
.table-action-icons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.icon-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.96);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.icon-action-btn i {
  width: 16px;
  height: 16px;
}
.icon-action-btn:hover {
  color: var(--primary-blue-hover);
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(239, 246, 255, 0.9);
}
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.pagination-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pagination-current {
  color: var(--text-muted);
  font-size: 13px;
}
.customer-detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.customer-detail-side,
.customer-detail-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.detail-list {
  display: grid;
  gap: 12px;
}
.detail-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
}
.detail-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.detail-item span {
  color: var(--text-muted);
}
.inline-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
}
.inline-alert-danger {
  background: rgba(254, 226, 226, 0.72);
  color: rgb(153, 27, 27);
  border: 1px solid rgba(252, 165, 165, 0.6);
}
.detail-actions-right {
  justify-content: flex-end;
}
.wallet-adjust-form {
  display: grid;
  gap: 14px;
}
.amount-positive {
  color: rgb(22, 163, 74);
  font-weight: 600;
}
.amount-negative {
  color: rgb(220, 38, 38);
  font-weight: 600;
}
@media (max-width: 1280px) {
  .customer-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .customer-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .customer-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .page-heading {
    flex-direction: column;
  }
  .customer-stats-grid,
  .customer-filter-form {
    grid-template-columns: 1fr;
  }
  .form-field-wide {
    grid-column: span 1;
  }
  .customer-filter-actions,
  .table-pagination {
    justify-content: stretch;
  }
  .customer-filter-actions .btn,
  .pagination-actions .btn {
    width: 100%;
  }
  .pagination-actions {
    width: 100%;
  }
  .customer-identity {
    min-width: 0;
  }
}

.broadcast-page {
  min-width: 0;
}
body.broadcast-modal-open {
  overflow: hidden;
}
.broadcast-page * {
  min-width: 0;
  box-sizing: border-box;
}
.broadcast-hero,
.broadcast-summary-card,
.broadcast-history-card {
  padding: 24px;
  overflow: hidden;
}
.broadcast-hero {
  display: grid;
  gap: 20px;
}
.broadcast-hero-copy,
.broadcast-toolbar,
.broadcast-hero-badges,
.broadcast-panel-head,
.broadcast-section-title-wrap,
.broadcast-token-toolbar,
.broadcast-modal-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.broadcast-hero-copy,
.broadcast-panel-head {
  justify-content: space-between;
  align-items: flex-start;
}
.broadcast-toolbar {
  align-items: center;
}
.broadcast-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  color: rgb(37, 99, 235);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.broadcast-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.broadcast-stat-card,
.broadcast-section-card,
.broadcast-preview-stat,
.broadcast-history-meta,
.broadcast-history-item {
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.94);
}
.broadcast-stat-card {
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.broadcast-stat-label,
.broadcast-preview-stat-label,
.broadcast-history-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.broadcast-stat-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: var(--text-primary);
}
.broadcast-main-grid {
  display: grid;
  gap: 22px;
}
.broadcast-panel-head h3,
.broadcast-section-title-wrap h4,
.broadcast-preview-empty h3,
.broadcast-history-empty h3,
.broadcast-history-title-wrap h4 {
  margin: 0;
}
.broadcast-panel-head p,
.broadcast-section-title-wrap p,
.broadcast-preview-empty p,
.broadcast-history-empty p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.broadcast-step-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.broadcast-preview-meta-grid,
.broadcast-history-meta-grid,
.broadcast-filter-grid,
.broadcast-modal-grid {
  display: grid;
  gap: 14px;
}
.broadcast-preview-meta-grid,
.broadcast-history-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.broadcast-message-preview-shell {
  margin-top: 14px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  overflow: hidden;
}
.broadcast-message-preview-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
}
.broadcast-avatar-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgb(59, 130, 246), rgb(99, 102, 241));
  flex: 0 0 auto;
}
.broadcast-preview-chat-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}
.broadcast-preview-chat-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}
.broadcast-message-preview-body {
  padding: 16px;
  max-height: 320px;
  overflow: auto;
}
.broadcast-message-preview-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: inherit;
  line-height: 1.7;
}
.broadcast-preview-empty,
.broadcast-history-empty {
  padding: 28px 18px;
  border: 1px dashed rgba(203, 213, 225, 0.95);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.65);
  text-align: center;
}
.broadcast-preview-empty-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.08);
  color: rgb(37, 99, 235);
  font-size: 20px;
  margin-bottom: 10px;
}
.broadcast-history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.broadcast-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  overflow: hidden;
}
.broadcast-history-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.broadcast-history-id {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgb(37, 99, 235);
}
.broadcast-history-title-wrap h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.broadcast-send-form {
  display: grid;
  gap: 10px;
  align-content: center;
  width: 180px;
}
.broadcast-confirm-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.broadcast-confirm-check input {
  margin-top: 2px;
  flex: 0 0 auto;
}
.broadcast-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.broadcast-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.broadcast-modal-dialog {
  width: min(1240px, 100%);
  max-height: calc(100vh - 48px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}
.broadcast-modal-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100vh - 48px);
}
.broadcast-modal-header,
.broadcast-modal-footer {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.98);
}
.broadcast-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}
.broadcast-modal-header h3 {
  margin: 0;
}
.broadcast-modal-header p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.broadcast-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-primary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.broadcast-modal-body {
  padding: 24px;
  overflow: auto;
}
.broadcast-modal-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
  align-items: start;
}
.broadcast-modal-compose,
.broadcast-modal-preview {
  min-width: 0;
}
.broadcast-composer-form {
  display: grid;
  gap: 18px;
}
.broadcast-section-card {
  padding: 18px;
  border-radius: 18px;
  display: grid;
  gap: 16px;
  overflow: hidden;
}
.broadcast-section-index {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.09);
  color: rgb(37, 99, 235);
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}
.broadcast-form-field-tight {
  margin-top: -2px;
}
.broadcast-token-chip {
  appearance: none;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: rgba(248, 250, 252, 0.95);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
}
.broadcast-token-chip:hover {
  border-color: rgba(96, 165, 250, 0.8);
  color: rgb(37, 99, 235);
}
.broadcast-message-textarea {
  min-height: 300px;
  resize: vertical;
  line-height: 1.7;
}
.broadcast-helper-text {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
  word-break: break-word;
}
.broadcast-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.broadcast-filter-wide {
  grid-column: 1 / -1;
}
.broadcast-warning-box {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(255, 251, 235, 0.95);
  color: rgb(146, 64, 14);
  font-size: 13px;
  line-height: 1.6;
}
.broadcast-modal-preview-card {
  position: sticky;
  top: 0;
}
.broadcast-modal-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.92);
  justify-content: flex-end;
  align-items: center;
}
.broadcast-modal-footer-form {
  display: inline-flex;
}
@media (max-width: 1280px) {
  .broadcast-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .broadcast-modal-grid,
  .broadcast-history-item {
    grid-template-columns: 1fr;
  }
  .broadcast-modal-preview-card {
    position: static;
  }
  .broadcast-send-form {
    width: 100%;
  }
}
@media (max-width: 720px) {
  .broadcast-hero,
  .broadcast-summary-card,
  .broadcast-history-card,
  .broadcast-modal-header,
  .broadcast-modal-body,
  .broadcast-modal-footer {
    padding: 18px;
  }
  .broadcast-stats-grid,
  .broadcast-preview-meta-grid,
  .broadcast-history-meta-grid,
  .broadcast-filter-grid {
    grid-template-columns: 1fr;
  }
  .broadcast-toolbar,
  .broadcast-token-toolbar,
  .broadcast-modal-footer,
  .broadcast-hero-badges,
  .broadcast-hero-copy,
  .broadcast-panel-head,
  .broadcast-history-topline,
  .broadcast-modal-header {
    flex-direction: column;
  }
  .broadcast-toolbar .btn,
  .broadcast-token-chip,
  .broadcast-modal-footer .btn,
  .broadcast-modal-footer-form {
    width: 100%;
  }
  .broadcast-modal-overlay {
    padding: 12px;
  }
  .broadcast-modal-dialog,
  .broadcast-modal-shell {
    max-height: calc(100vh - 24px);
  }
  .broadcast-history-title-wrap h4 {
    white-space: normal;
  }
}

.delete-confirm-modal-panel {
  max-width: 560px;
}

.delete-confirm-body {
  display: grid;
  gap: 16px;
}

.delete-confirm-message {
  margin: 0;
  color: var(--text-main);
  line-height: 1.6;
}

.delete-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--bg-elevated);
  color: var(--text-main);
}

.delete-confirm-check input {
  margin-top: 3px;
}

.archive-grid {
  display: grid;
  gap: 24px;
}

.archive-hero-card,
.archive-section-card {
  overflow: hidden;
}

.archive-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.archive-modal-badge-row {
  display: flex;
  justify-content: flex-start;
}

.archive-modal-panel .settings-modal-subtitle,
.archive-page .panel-head p,
.archive-section-head p {
  line-height: 1.6;
}

.archive-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.archive-stat-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(37,99,235,0.08), rgba(255,255,255,0.96));
  border: 1px solid var(--border-soft);
}

.archive-stat-card__label {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.archive-stat-card__value {
  font-size: 30px;
  color: var(--text-main);
}

.archive-item-box {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
}

.archive-item-box__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.archive-item-box__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.archive-item-box__meta {
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.5;
}

.archive-empty-state {
  padding: 40px 12px;
}

.settings-modal-overlay.is-open {
  backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.42);
}

.delete-confirm-modal-panel {
  width: min(620px, calc(100vw - 32px));
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.delete-confirm-modal-panel .settings-modal-header {
  padding: 24px 24px 12px;
}

.delete-confirm-modal-panel .settings-modal-title {
  font-size: 26px;
  line-height: 1.2;
}

.delete-confirm-modal-panel .settings-modal-subtitle {
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 52ch;
}

.delete-confirm-modal-panel .settings-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
}

.archive-modal-badge-row .badge {
  border-radius: 999px;
  padding: 8px 12px;
}

.archive-item-box {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.archive-item-box__name {
  font-size: 22px;
  line-height: 1.35;
}

.delete-confirm-message {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.20);
}

.delete-confirm-check {
  border-radius: 18px;
  padding: 16px 18px;
  background: #fff;
}

.delete-confirm-check span {
  line-height: 1.6;
}

.delete-confirm-check input {
  width: 18px;
  height: 18px;
}

.delete-confirm-modal-panel .settings-modal-footer {
  padding: 18px 24px 24px;
}

.delete-confirm-modal-panel .page-toolbar {
  gap: 12px;
  flex-wrap: nowrap;
}

.delete-confirm-modal-panel .page-toolbar .btn {
  min-width: 180px;
  white-space: nowrap;
}

.archive-page .archive-hero-card {
  border-radius: 24px;
}

.archive-section-card {
  border-radius: 22px;
}

.archive-table td,
.archive-table th {
  vertical-align: middle;
}

.archive-empty-state {
  padding: 56px 16px;
}

@media (max-width: 768px) {
  .delete-confirm-modal-panel {
    width: min(100vw - 20px, 620px);
    border-radius: 22px;
  }

  .delete-confirm-modal-panel .page-toolbar {
    flex-wrap: wrap;
  }

  .delete-confirm-modal-panel .page-toolbar .btn {
    width: 100%;
    min-width: 0;
  }

  .archive-stats-grid {
    grid-template-columns: 1fr;
  }
}

.products-page .products-shell {
  display: grid;
  gap: 18px;
}

.products-page .products-hero-card,
.products-page .products-search-card,
.products-page .products-table-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.products-page .products-hero-card {
  padding: 24px 26px;
}

.products-page .products-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.products-page .products-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.products-page .products-hero-copy h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.products-page .products-hero-copy p {
  margin: 8px 0 0;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
}

.products-page .products-hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.products-page .products-warehouse-btn,
.products-page .products-add-btn--hero {
  min-height: 44px;
  border-radius: 14px;
  padding: 0 16px;
}

.products-page .products-add-btn--hero {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  border: none;
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.24);
}

.products-page .products-search-card {
  padding: 14px 18px;
}

.products-page .products-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 18px;
  background: #fbfdff;
  padding: 0 18px;
}

.products-page .products-search-field i {
  width: 18px;
  height: 18px;
  color: var(--text-soft);
}

.products-page .products-search-field input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-main);
}

.products-page .products-table-card {
  padding: 16px 16px 10px;
}

.products-page .products-table-shell {
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
}

.products-page .products-table thead th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: #fff;
  padding-top: 18px;
  padding-bottom: 18px;
}

.products-page .products-table tbody td {
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid rgba(241, 245, 249, 1);
}

.products-page .products-name-cell {
  gap: 12px;
}

.products-page .products-emoji {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
}

.products-page .products-name-cell strong {
  font-size: 14px;
  line-height: 1.45;
}

.products-page .products-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.products-page .products-price {
  color: #16a34a;
  font-weight: 700;
}

.products-page .products-stock-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.products-page .products-stock-badge--ok {
  color: #2563eb;
  background: #dbeafe;
}

.products-page .products-stock-badge--zero {
  color: #b91c1c;
  background: #fee2e2;
}

.products-page .products-status-badge {
  border-radius: 999px;
  padding: 7px 12px;
}

.products-page .products-actions {
  gap: 10px;
}

.products-page .products-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.products-page .products-icon-btn--inventory {
  color: #7c3aed;
  border-color: rgba(221, 214, 254, 0.95);
  background: rgba(245, 243, 255, 0.96);
}

.products-page .products-icon-btn--inventory:hover {
  color: #6d28d9;
  border-color: rgba(196, 181, 253, 0.95);
  background: rgba(237, 233, 254, 0.98);
}

.products-page .products-icon-btn--edit {
  color: #2563eb;
  border-color: rgba(191, 219, 254, 0.96);
  background: rgba(239, 246, 255, 0.96);
}

.products-page .products-icon-btn--edit:hover {
  color: #1d4ed8;
}

.products-page .products-icon-btn--toggle {
  color: #ca8a04;
  border-color: rgba(253, 224, 71, 0.46);
  background: rgba(254, 249, 195, 0.92);
}

.products-page .products-icon-btn--delete {
  color: #e11d48;
  border-color: rgba(253, 164, 175, 0.58);
  background: rgba(255, 241, 242, 0.95);
}

.products-page .products-empty-state {
  padding: 58px 16px;
}

@media (max-width: 960px) {
  .products-page .products-hero-head {
    flex-direction: column;
  }

  .products-page .products-hero-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .products-page .products-hero-card {
    padding: 20px 18px;
  }

  .products-page .products-hero-copy h3 {
    font-size: 24px;
  }

  .products-page .products-hero-actions,
  .products-page .products-warehouse-btn,
  .products-page .products-add-btn--hero {
    width: 100%;
  }

  .products-page .products-search-card,
  .products-page .products-table-card {
    padding-left: 12px;
    padding-right: 12px;
  }
}

:root {
  --products-page-bg: #f6f8fc;
  --products-card-bg: #ffffff;
  --products-border-soft: #e6ebf2;
  --products-divider: #edf2f7;
  --products-text-primary: #1f2937;
  --products-text-secondary: #334155;
  --products-text-muted: #667085;
  --products-text-soft: #8a94a6;
  --products-brand-1: #6d5dfc;
  --products-brand-2: #4f46e5;
  --products-badge-blue-bg: #e9f2ff;
  --products-badge-blue-text: #2463eb;
  --products-badge-green-bg: #eaf8ef;
  --products-badge-green-text: #17803d;
  --products-badge-gray-bg: #eef2f7;
  --products-badge-gray-text: #5b6474;
}

.products-page {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.products-page .products-hero-card,
.products-page .products-search-card,
.products-page .products-table-card {
  background: var(--products-card-bg);
  border-color: var(--products-border-soft);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.045);
}

.products-page .products-hero-kicker {
  color: var(--products-brand-1);
}

.products-page .products-hero-copy h3 {
  color: var(--products-text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.products-page .products-hero-copy p {
  color: var(--products-text-muted);
  font-weight: 500;
}

.nav-item.active {
  color: #4f46e5;
  background: linear-gradient(135deg, rgba(237, 242, 255, 0.98), rgba(244, 247, 255, 0.98));
  border-color: rgba(199, 210, 254, 0.95);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.12);
}

.products-page .products-warehouse-btn {
  background: #ffffff;
  border-color: #dfe6ef;
  color: var(--products-text-secondary);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.products-page .products-warehouse-btn:hover {
  background: #f8fbff;
  border-color: #d2dceb;
  color: var(--products-text-primary);
}

.products-page .products-add-btn--hero {
  background: linear-gradient(135deg, var(--products-brand-1) 0%, var(--products-brand-2) 100%);
  box-shadow: 0 18px 34px rgba(99, 102, 241, 0.26);
}

.products-page .products-add-btn--hero:hover {
  background: linear-gradient(135deg, #6252f6 0%, #4338ca 100%);
}

.products-page .products-search-field {
  border-color: var(--products-border-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.products-page .products-search-field:focus-within {
  border-color: rgba(109, 93, 252, 0.34);
  box-shadow: 0 0 0 4px rgba(109, 93, 252, 0.08);
}

.products-page .products-search-field i {
  color: var(--products-text-muted);
}

.products-page .products-search-field input,
.products-page .products-search-field input::placeholder {
  color: var(--products-text-muted);
}

.products-page .products-table-shell {
  border-color: var(--products-border-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.products-page .products-table thead th {
  color: var(--products-text-soft);
  font-weight: 700;
  letter-spacing: 0.09em;
}

.products-page .products-table tbody td {
  border-top-color: var(--products-divider);
}

.products-page .products-table tbody tr:hover td {
  background: rgba(248, 250, 255, 0.72);
}

.products-page .products-name-cell strong {
  color: var(--products-text-primary);
  font-weight: 600;
}

.products-page .products-meta,
.products-page .products-meta code {
  color: var(--products-text-muted);
}

.products-page .products-category-badge {
  background: var(--products-badge-gray-bg);
  color: var(--products-badge-gray-text);
  font-weight: 600;
}

.products-page .products-price {
  color: #15803d;
}

.products-page .products-stock-badge--ok {
  color: var(--products-badge-blue-text);
  background: var(--products-badge-blue-bg);
}

.products-page .products-stock-badge--zero {
  color: #b42318;
  background: #fdebec;
}

.products-page .products-status-badge.badge-success {
  background: var(--products-badge-green-bg);
  color: var(--products-badge-green-text);
  border-color: rgba(34, 197, 94, 0.12);
}

.products-page .products-status-badge.badge-warning {
  background: #fff7ed;
  color: #c2410c;
  border-color: rgba(251, 146, 60, 0.18);
}

.products-page .products-icon-btn {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.03);
}

.products-page .products-icon-btn--inventory {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.products-page .products-icon-btn--toggle {
  color: #d97706;
  background: #fff8e8;
  border-color: #fde68a;
}

.products-page .products-icon-btn--edit {
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.products-page .products-icon-btn--delete {
  color: #e11d48;
  background: #fff1f5;
  border-color: #fecdd3;
}

.products-page-v2 {
  --page-bg: #f7f9fd;
  --card-bg: #ffffff;
  --border-soft-v2: #e6ebf2;
  --divider-soft-v2: #e9eef6;
  --text-primary-v2: #172033;
  --text-secondary-v2: #334155;
  --text-muted-v2: #64748b;
  --text-soft-v2: #7c8aa5;
  --brand-primary-v2: #6d5dfc;
  --brand-primary-2-v2: #4f46e5;
  --badge-blue-bg-v2: #dbeafe;
  --badge-blue-text-v2: #1d4ed8;
  --badge-green-bg-v2: #dcfce7;
  --badge-green-text-v2: #15803d;
  --badge-gray-bg-v2: #f1f5f9;
  --badge-gray-text-v2: #475569;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.products-page-v2::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--page-bg);
  z-index: -1;
}

.products-page-v2 .products-shell {
  gap: 22px;
}

.products-page-v2 .products-hero-card,
.products-page-v2 .products-search-card,
.products-page-v2 .products-table-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft-v2);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.products-page-v2 .products-hero-card {
  padding: 26px 28px;
}

.products-page-v2 .products-hero-kicker {
  color: var(--brand-primary-v2);
  font-weight: 800;
  letter-spacing: .08em;
}

.products-page-v2 .products-hero-copy h3 {
  color: var(--text-primary-v2);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.products-page-v2 .products-hero-copy p {
  color: var(--text-muted-v2);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
}

.products-page-v2 .products-warehouse-btn {
  min-height: 44px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--border-soft-v2);
  color: #1f2937;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.products-page-v2 .products-warehouse-btn:hover {
  background: #f8fafc;
}

.products-page-v2 .products-add-btn--hero {
  min-height: 44px;
  padding: 0 18px;
  background: linear-gradient(135deg, #6d5dfc, #4f46e5);
  color: #fff;
  box-shadow: 0 12px 24px rgba(79, 70, 229, .22);
}

.products-page-v2 .products-search-card {
  padding: 16px 18px;
}

.products-page-v2 .products-search-field {
  min-height: 58px;
  border: 1px solid var(--border-soft-v2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.products-page-v2 .products-search-field:focus-within {
  border-color: rgba(79, 70, 229, .30);
  box-shadow: 0 0 0 4px rgba(109, 93, 252, .09);
}

.products-page-v2 .products-search-field i {
  color: var(--text-muted-v2);
}

.products-page-v2 .products-search-field input {
  color: var(--text-secondary-v2);
  font-size: 14px;
  font-weight: 500;
}

.products-page-v2 .products-search-field input::placeholder {
  color: var(--text-muted-v2);
}

.products-page-v2 .products-table-card {
  padding: 16px;
}

.products-page-v2 .products-table-shell {
  border-radius: 22px;
  border: 1px solid #e5eaf3;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.products-page-v2 .products-table thead th {
  background: #fbfcff;
  color: #7c8aa5;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px;
}

.products-page-v2 .products-table tbody td {
  border-top: 1px solid var(--divider-soft-v2);
  padding-top: 18px;
  padding-bottom: 18px;
}

.products-page-v2 .products-table tbody tr:hover td {
  background: #f8fbff;
}

.products-page-v2 .products-name-cell strong {
  color: var(--text-primary-v2);
  font-weight: 700;
}

.products-page-v2 .products-meta {
  color: var(--text-muted-v2);
  font-size: 12px;
}

.products-page-v2 .products-category-badge {
  background: var(--badge-gray-bg-v2);
  color: var(--badge-gray-text-v2);
  border: 1px solid #e2e8f0;
  font-weight: 700;
}

.products-page-v2 .products-price {
  color: #059669;
  font-weight: 800;
}

.products-page-v2 .products-stock-badge {
  font-weight: 700;
  border-radius: 999px;
}

.products-page-v2 .products-stock-badge--ok {
  background: var(--badge-blue-bg-v2);
  color: var(--badge-blue-text-v2);
}

.products-page-v2 .products-status-badge.badge-success {
  background: var(--badge-green-bg-v2);
  color: var(--badge-green-text-v2);
}

.products-page-v2 .products-status-badge.badge-warning {
  background: #fff7ed;
  color: #c2410c;
}

.products-page-v2 .products-actions {
  gap: 10px;
}

.products-page-v2 .products-icon-btn {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.products-page-v2 .products-icon-btn--inventory {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #7c3aed;
}

.products-page-v2 .products-icon-btn--toggle {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #d97706;
}

.products-page-v2 .products-icon-btn--edit {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.products-page-v2 .products-icon-btn--delete {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.products-page-v2 .products-icon-btn:hover {
  transform: translateY(-1px);
}

.products-page-v2 .products-empty-state h3 {
  color: var(--text-primary-v2);
}

.products-page-v2 .products-empty-state p {
  color: var(--text-muted-v2);
}

/* === ARCHIVE PAGE V2 POLISH START === */
.archive-page-v2 {
  gap: 22px;
}

.archive-page-v2__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.10);
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.archive-page-v2__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 700;
}

.archive-page-v2__subtitle {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.archive-hero-card--v2 {
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
}

.archive-hero-card__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.archive-hero-card__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.92);
  color: var(--text-muted);
  font-size: 13px;
}

.archive-hero-card__hint i {
  width: 18px;
  height: 18px;
  color: #2563eb;
}

.archive-stats-grid--v2 {
  margin-top: 22px;
}

.archive-stat-card--categories {
  background: linear-gradient(180deg, rgba(239,246,255,0.96), rgba(255,255,255,0.98));
}

.archive-stat-card--products {
  background: linear-gradient(180deg, rgba(245,243,255,0.96), rgba(255,255,255,0.98));
}

.archive-grid--v2 {
  grid-template-columns: 1fr;
}

.archive-section-card--v2 {
  border-radius: 24px;
}

.archive-section-head--v2 {
  align-items: flex-start;
  margin-bottom: 18px;
}

.archive-section-head__kicker {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 8px;
}

.archive-table-shell {
  border-radius: 18px;
}

.archive-name-cell {
  display: grid;
  gap: 4px;
}

.archive-name-cell strong {
  font-size: 14px;
  color: var(--text-main);
}

.archive-sub-meta {
  color: var(--text-muted);
  font-size: 12px;
}

.archive-category-pill,
.archive-stock-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.archive-category-pill {
  background: rgba(241, 245, 249, 0.96);
  color: #475569;
}

.archive-stock-pill {
  background: rgba(219, 234, 254, 0.96);
  color: #1d4ed8;
}

.archive-empty-state--v2 {
  padding: 52px 16px;
}

@media (max-width: 768px) {
  .archive-hero-card__top {
    flex-direction: column;
  }

  .archive-hero-card__hint {
    width: 100%;
  }
}
/* === ARCHIVE PAGE V2 POLISH END === */

/* === PRODUCTS PAGE V3 CLONE UI START === */
.products-page-v3 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  gap: 18px;
}

.products-page-v3 .alert {
  margin-bottom: 0;
}

.products-page-v3 .products-v3-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.products-page-v3 .products-v3-topbar__title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.products-page-v3 .products-v3-topbar__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: #2563eb;
  border: 1px solid #dbe7ff;
  flex: 0 0 auto;
}

.products-page-v3 .products-v3-topbar__icon i {
  width: 20px;
  height: 20px;
}

.products-page-v3 h1 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
}

.products-page-v3 .products-v3-topbar__copy p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
  max-width: 720px;
}

.products-page-v3 .products-v3-topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.products-page-v3 .products-v3-btn-secondary,
.products-page-v3 .products-v3-btn-primary {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
}

.products-page-v3 .products-v3-btn-secondary {
  background: #fff;
  border: 1px solid #e6ebf2;
  color: #1f2937;
}

.products-page-v3 .products-v3-btn-secondary:hover {
  background: #f8fafc;
}

.products-page-v3 .products-v3-btn-primary {
  background: linear-gradient(135deg, #6d5dfc, #4f46e5);
  color: #fff;
  box-shadow: 0 12px 24px rgba(79,70,229,.22);
}

.products-page-v3 .products-v3-search-card,
.products-page-v3 .products-v3-table-card {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.products-page-v3 .products-v3-search-card {
  padding: 12px 14px;
}

.products-page-v3 .products-v3-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 0 16px;
}

.products-page-v3 .products-v3-search:focus-within {
  border-color: rgba(79,70,229,.24);
  box-shadow: 0 0 0 4px rgba(79,70,229,.08);
}

.products-page-v3 .products-v3-search i {
  width: 18px;
  height: 18px;
  color: #7b8497;
}

.products-page-v3 .products-v3-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: #111827;
}

.products-page-v3 .products-v3-search input::placeholder {
  color: #7b8497;
}

.products-page-v3 .products-v3-table-card {
  padding: 14px;
}

.products-page-v3 .products-v3-table-shell {
  border: 1px solid #e5eaf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.products-page-v3 .products-v3-table thead th {
  background: #fbfcff;
  color: #7b8497;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-top: 16px;
  padding-bottom: 16px;
}

.products-page-v3 .products-v3-table tbody td {
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid #edf2f7;
  vertical-align: middle;
}

.products-page-v3 .products-v3-table tbody tr:hover td {
  background: #f8fbff;
}

.products-page-v3 .products-v3-name-cell strong {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.products-page-v3 .products-v3-price {
  color: #059669;
  font-weight: 800;
}

.products-page-v3 .products-v3-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.products-page-v3 .products-v3-badge--category {
  background: #f3f4f6;
  color: #6b7280;
}

.products-page-v3 .products-v3-badge--stock {
  background: #dbeafe;
  color: #1d4ed8;
}

.products-page-v3 .products-v3-badge--status {
  background: #dcfce7;
  color: #15803d;
}

.products-page-v3 .products-v3-badge--muted {
  background: #f3f4f6;
  color: #6b7280;
}

.products-page-v3 .products-v3-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.products-page-v3 .products-v3-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.products-page-v3 .products-v3-action-btn i {
  width: 16px;
  height: 16px;
}

.products-page-v3 .products-v3-action-btn:hover {
  transform: translateY(-1px);
}

.products-page-v3 .products-v3-action-btn--inventory {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.products-page-v3 .products-v3-action-btn--edit {
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.products-page-v3 .products-v3-action-btn--toggle {
  color: #d97706;
  background: #fff7ed;
  border-color: #fed7aa;
}

.products-page-v3 .products-v3-action-btn--archive {
  color: #e11d48;
  background: #fff1f2;
  border-color: #fecdd3;
}

.products-page-v3 .products-v3-empty-state {
  padding: 56px 16px;
}

.products-page-v3 .products-v3-empty-state h3 {
  color: #111827;
}

.products-page-v3 .products-v3-empty-state p {
  color: #6b7280;
}

.nav-item.active {
  background: #eef4ff;
  color: #2563eb;
  border-color: #dbe7ff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.10);
}

@media (max-width: 960px) {
  .products-page-v3 .products-v3-topbar {
    flex-direction: column;
  }

  .products-page-v3 .products-v3-topbar__actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .products-page-v3 h1 {
    font-size: 24px;
  }

  .products-page-v3 .products-v3-topbar__actions,
  .products-page-v3 .products-v3-btn-secondary,
  .products-page-v3 .products-v3-btn-primary {
    width: 100%;
  }
}
/* === PRODUCTS PAGE V3 CLONE UI END === */

/* === CATEGORIES PAGE V3 CLONE UI START === */
.categories-page-v3 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  gap: 18px;
}

.categories-page-v3 .categories-v3-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.categories-page-v3 .categories-v3-topbar__title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.categories-page-v3 .categories-v3-topbar__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: #2563eb;
  border: 1px solid #dbe7ff;
  flex: 0 0 auto;
}

.categories-page-v3 .categories-v3-topbar__icon i {
  width: 20px;
  height: 20px;
}

.categories-page-v3 h1 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
}

.categories-page-v3 .categories-v3-topbar__copy p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
  max-width: 720px;
}

.categories-page-v3 .categories-v3-btn-primary {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6d5dfc, #4f46e5);
  color: #fff;
  box-shadow: 0 12px 24px rgba(79,70,229,.22);
}

.categories-page-v3 .categories-v3-search-card,
.categories-page-v3 .categories-v3-table-card {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.categories-page-v3 .categories-v3-search-card {
  padding: 12px 14px;
}

.categories-page-v3 .categories-v3-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 0 16px;
}

.categories-page-v3 .categories-v3-search:focus-within {
  border-color: rgba(79,70,229,.24);
  box-shadow: 0 0 0 4px rgba(79,70,229,.08);
}

.categories-page-v3 .categories-v3-search i {
  width: 18px;
  height: 18px;
  color: #7b8497;
}

.categories-page-v3 .categories-v3-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: #111827;
}

.categories-page-v3 .categories-v3-search input::placeholder {
  color: #7b8497;
}

.categories-page-v3 .categories-v3-table-card {
  padding: 14px;
}

.categories-page-v3 .categories-v3-table-shell {
  border: 1px solid #e5eaf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.categories-page-v3 .categories-v3-table thead th {
  background: #fbfcff;
  color: #7b8497;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-top: 16px;
  padding-bottom: 16px;
}

.categories-page-v3 .categories-v3-table tbody td {
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid #edf2f7;
  vertical-align: middle;
}

.categories-page-v3 .categories-v3-table tbody tr:hover td {
  background: #f8fbff;
}

.categories-page-v3 .categories-v3-name-cell strong {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.categories-page-v3 .categories-v3-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.categories-page-v3 .categories-v3-badge--count {
  background: #dbeafe;
  color: #1d4ed8;
}

.categories-page-v3 .categories-v3-badge--status {
  background: #dcfce7;
  color: #15803d;
}

.categories-page-v3 .categories-v3-badge--muted {
  background: #f3f4f6;
  color: #6b7280;
}

.categories-page-v3 .categories-v3-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.categories-page-v3 .categories-v3-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.categories-page-v3 .categories-v3-action-btn i {
  width: 16px;
  height: 16px;
}

.categories-page-v3 .categories-v3-action-btn:hover {
  transform: translateY(-1px);
}

.categories-page-v3 .categories-v3-action-btn--edit {
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.categories-page-v3 .categories-v3-action-btn--toggle {
  color: #d97706;
  background: #fff7ed;
  border-color: #fed7aa;
}

.categories-page-v3 .categories-v3-action-btn--archive {
  color: #e11d48;
  background: #fff1f2;
  border-color: #fecdd3;
}

.categories-page-v3 .categories-v3-empty-state {
  padding: 56px 16px;
}

.categories-page-v3 .categories-v3-empty-state h3 {
  color: #111827;
}

.categories-page-v3 .categories-v3-empty-state p {
  color: #6b7280;
}

@media (max-width: 960px) {
  .categories-page-v3 .categories-v3-topbar {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .categories-page-v3 h1 {
    font-size: 24px;
  }

  .categories-page-v3 .categories-v3-btn-primary {
    width: 100%;
  }
}

.categories-page-v3 .categories-v3-actions-cell,
.products-page-v3 .products-v3-actions-cell,
.archive-page .archive-actions-cell {
  text-align: right;
  white-space: nowrap;
}

.categories-page-v3 .categories-v3-inline-form,
.products-page-v3 .products-v3-inline-form,
.archive-page .archive-inline-form {
  margin: 0;
}

.categories-page-v3 .categories-v3-actions,
.products-page-v3 .products-v3-actions,
.archive-page .archive-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
}

.archive-page .archive-actions {
  gap: 10px;
}

.archive-page .archive-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.archive-page .archive-action-btn i {
  width: 16px;
  height: 16px;
}

.archive-page .archive-action-btn:hover {
  transform: translateY(-1px);
}

.archive-page .archive-action-btn--restore {
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.archive-page .archive-action-btn--delete {
  color: #e11d48;
  background: #fff1f2;
  border-color: #fecdd3;
}

.archive-page .archive-table {
  min-width: 820px;
}

.archive-page .archive-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.archive-page .archive-section-head h3 {
  margin: 0;
}

.archive-page .archive-section-head p {
  margin: 6px 0 0;
  color: #6b7280;
}

.archive-page .archive-empty-state {
  padding: 56px 18px;
}

.archive-item-box__meta + .archive-item-box__meta {
  margin-top: 6px;
}
/* === CATEGORIES PAGE V3 CLONE UI END === */

.categories-page-v3 .col-product-count {
  text-align: center;
}

.categories-page-v3 .product-count-cell {
  text-align: center;
}

.categories-page-v3 .product-count-cell__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
}

.categories-page-v3 .product-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  line-height: 1;
}

/* === ADMIN MICRO INTERACTIONS START === */
.card,
.panel-card,
.dashboard-card,
.table-card,
.settings-card,
.logs-card,
.inventory-shell-card,
.archive-stat-card,
.archive-section-card,
.products-v3-table-card,
.products-v3-search-card,
.categories-v3-table-card,
.categories-v3-search-card,
.inventory-stat-card,
.inventory-action-card,
.broadcast-summary-card,
.broadcast-history-card,
.broadcast-preview-card,
.broadcast-composer-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.card:hover,
.panel-card:hover,
.dashboard-card:hover,
.table-card:hover,
.settings-card:hover,
.logs-card:hover,
.inventory-shell-card:hover,
.archive-stat-card:hover,
.archive-section-card:hover,
.products-v3-table-card:hover,
.products-v3-search-card:hover,
.categories-v3-table-card:hover,
.categories-v3-search-card:hover,
.inventory-stat-card:hover,
.inventory-action-card:hover,
.broadcast-summary-card:hover,
.broadcast-history-card:hover,
.broadcast-preview-card:hover,
.broadcast-composer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  border-color: rgba(99, 102, 241, 0.18);
}

.btn,
.products-v3-action-btn,
.categories-v3-action-btn,
.products-icon-btn,
.categories-icon-btn,
.orders-icon-btn,
.icon-action-btn,
.sidebar a.nav-item {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}

.btn:hover,
.products-v3-action-btn:hover,
.categories-v3-action-btn:hover,
.products-icon-btn:hover,
.categories-icon-btn:hover,
.orders-icon-btn:hover,
.icon-action-btn:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.btn:active,
.products-v3-action-btn:active,
.categories-v3-action-btn:active,
.products-icon-btn:active,
.categories-icon-btn:active,
.orders-icon-btn:active,
.icon-action-btn:active {
  transform: translateY(0);
}

.table-responsive table tbody tr,
.products-v3-table tbody tr,
.categories-v3-table tbody tr,
.products-table tbody tr,
.categories-table tbody tr,
.orders-table tbody tr,
.inventory-table tbody tr,
.logs-table tbody tr {
  transition: background-color .18s ease, box-shadow .18s ease;
}

.table-responsive table tbody tr:hover,
.products-v3-table tbody tr:hover,
.categories-v3-table tbody tr:hover,
.products-table tbody tr:hover,
.categories-table tbody tr:hover,
.orders-table tbody tr:hover,
.inventory-table tbody tr:hover,
.logs-table tbody tr:hover {
  background: #f8fbff;
}

.nav-item:hover {
  background: rgba(248, 250, 255, 0.95);
  border-color: rgba(99, 102, 241, 0.16);
}

.delete-confirm-check:hover,
.archive-item-box:hover,
.products-search-field:hover,
.products-v3-search:hover,
.categories-v3-search:hover {
  border-color: rgba(99, 102, 241, 0.18);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.btn:focus-visible,
.products-v3-action-btn:focus-visible,
.categories-v3-action-btn:focus-visible,
.products-icon-btn:focus-visible,
.categories-icon-btn:focus-visible,
.orders-icon-btn:focus-visible,
.icon-action-btn:focus-visible,
.nav-item:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.32);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .panel-card,
  .dashboard-card,
  .table-card,
  .settings-card,
  .logs-card,
  .inventory-shell-card,
  .archive-stat-card,
  .archive-section-card,
  .products-v3-table-card,
  .products-v3-search-card,
  .categories-v3-table-card,
  .categories-v3-search-card,
  .inventory-stat-card,
  .inventory-action-card,
  .broadcast-summary-card,
  .broadcast-history-card,
  .broadcast-preview-card,
  .broadcast-composer-card,
  .btn,
  .products-v3-action-btn,
  .categories-v3-action-btn,
  .products-icon-btn,
  .categories-icon-btn,
  .orders-icon-btn,
  .icon-action-btn,
  .sidebar a.nav-item,
  .table-responsive table tbody tr,
  .products-v3-table tbody tr,
  .categories-v3-table tbody tr,
  .products-table tbody tr,
  .categories-table tbody tr,
  .orders-table tbody tr,
  .inventory-table tbody tr,
  .logs-table tbody tr {
    transition: none !important;
    transform: none !important;
  }
}
/* === ADMIN MICRO INTERACTIONS END === */

/* === ADMIN RESPONSIVE FIX START === */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.admin-shell,
.main-content,
.content-wrapper {
  max-width: 100%;
}

.content-wrapper {
  overflow-x: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.products-table,
.categories-table {
  min-width: 720px;
}

.orders-table,
.inventory-table,
.logs-table {
  min-width: 960px;
}

.settings-modal-panel,
.broadcast-modal-dialog,
.broadcast-modal-shell {
  max-width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.settings-modal-body,
.broadcast-modal-body {
  overflow-y: auto;
}

.settings-modal-footer .page-toolbar,
.products-v3-topbar__actions,
.categories-v3-topbar__actions,
.broadcast-toolbar,
.archive-section-head,
.filters-bar {
  flex-wrap: wrap;
}

.settings-modal-form input,
.settings-modal-form select,
.settings-modal-form textarea,
input,
select,
textarea {
  max-width: 100%;
}

@media (max-width: 1024px) {
  .content-wrapper {
    padding: 20px;
  }

  .header {
    padding: 12px 20px;
  }

  .sidebar {
    width: 250px;
  }

  .stats-grid,
  .metrics-grid,
  .dashboard-stats-grid,
  .archive-stats-grid,
  .broadcast-stats-grid,
  .inventory-stats-grid,
  .inventory-overview-grid,
  .customers-stats-grid,
  .orders-stats-grid,
  .wallet-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-v3-topbar,
  .categories-v3-topbar,
  .products-hero-head,
  .archive-section-head,
  .panel-head,
  .filters-bar {
    gap: 14px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .content-wrapper {
    padding: 16px;
  }

  .header {
    padding: 12px 16px;
    min-height: 68px;
  }

  .page-title {
    font-size: 18px;
  }

  .page-subtitle {
    font-size: 12px;
    line-height: 1.5;
  }

  .sidebar {
    width: min(290px, calc(100vw - 28px));
  }

  .card,
  .panel-card,
  .dashboard-card,
  .table-card,
  .settings-card,
  .logs-card,
  .inventory-shell-card,
  .products-v3-search-card,
  .products-v3-table-card,
  .categories-v3-search-card,
  .categories-v3-table-card,
  .archive-section-card,
  .archive-hero-card {
    padding: 16px;
  }

  .stats-grid,
  .metrics-grid,
  .dashboard-stats-grid,
  .archive-stats-grid,
  .broadcast-stats-grid,
  .inventory-stats-grid,
  .inventory-overview-grid,
  .customers-stats-grid,
  .orders-stats-grid,
  .wallet-stats-grid,
  .products-shell,
  .archive-grid {
    grid-template-columns: 1fr !important;
  }

  .products-v3-topbar,
  .categories-v3-topbar,
  .products-page-v2 .products-hero-head,
  .products-page .products-hero-head,
  .archive-section-head,
  .filters-bar,
  .broadcast-toolbar,
  .page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .products-v3-btn-primary,
  .products-v3-btn-secondary,
  .categories-v3-btn-primary,
  .products-add-btn,
  .products-warehouse-btn,
  .categories-add-btn,
  .broadcast-toolbar .btn,
  .page-toolbar .btn {
    width: 100%;
  }

  .products-actions,
  .categories-actions,
  .products-v3-actions,
  .categories-v3-actions,
  .archive-actions,
  .orders-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .products-v3-table,
  .categories-v3-table,
  .archive-table {
    min-width: 720px;
  }

  .settings-modal-panel,
  .broadcast-modal-dialog,
  .broadcast-modal-shell {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .settings-modal-header,
  .settings-modal-body,
  .settings-modal-footer,
  .broadcast-modal-header,
  .broadcast-modal-body,
  .broadcast-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .settings-modal-footer .page-toolbar,
  .broadcast-modal-footer {
    gap: 10px;
  }

  .settings-modal-footer .btn,
  .broadcast-modal-footer .btn,
  .broadcast-modal-footer-form {
    width: 100%;
  }

  [style*="grid-template-columns:1fr 2fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .content-wrapper {
    padding: 12px;
  }

  .header {
    padding: 10px 12px;
  }

  .page-title,
  .products-page-v3 h1,
  .categories-page-v3 h1,
  .products-page-v2 .products-hero-copy h3 {
    font-size: 22px;
  }

  .products-v3-topbar__title-row,
  .categories-v3-topbar__title-row {
    gap: 10px;
  }

  .products-v3-topbar__icon,
  .categories-v3-topbar__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .products-v3-table-card,
  .categories-v3-table-card,
  .products-v3-search-card,
  .categories-v3-search-card,
  .archive-hero-card,
  .archive-section-card {
    padding: 12px;
  }

  .products-v3-search,
  .categories-v3-search {
    min-height: 46px;
    padding: 0 14px;
  }

  .products-v3-action-btn,
  .categories-v3-action-btn,
  .archive-action-btn,
  .products-icon-btn,
  .categories-icon-btn,
  .orders-icon-btn {
    width: 36px;
    height: 36px;
  }

  .categories-page-v3 .categories-v3-actions-cell,
  .products-page-v3 .products-v3-actions-cell,
  .archive-page .archive-actions-cell {
    min-width: 154px;
  }
}
/* === ADMIN RESPONSIVE FIX END === */

/* === ADMIN ACTION DROPDOWN START === */
.admin-action-menu {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  min-width: 146px;
}

.admin-action-trigger {
  min-height: 40px;
  min-width: 128px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.admin-action-trigger span {
  white-space: nowrap;
}

.admin-action-trigger i {
  width: 15px;
  height: 15px;
  color: #64748b;
  transition: transform .18s ease;
}

.admin-action-menu.is-open .admin-action-trigger,
.admin-action-trigger:hover {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.12);
  transform: translateY(-1px);
}

.admin-action-menu.is-open .admin-action-trigger i {
  transform: rotate(180deg);
}

.admin-action-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 228px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.98);
  transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 40;
}

.admin-action-menu.is-open .admin-action-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.admin-action-form {
  margin: 0;
}

.admin-action-item {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.admin-action-item i {
  width: 16px;
  height: 16px;
  color: #64748b;
  flex: 0 0 auto;
}

.admin-action-item:hover {
  background: #f8fafc;
  transform: translateX(1px);
}

.admin-action-item[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.admin-archive-action {
  color: #4338ca;
}

.admin-archive-action i {
  color: #4f46e5;
}

.admin-danger-action {
  color: #b91c1c;
}

.admin-danger-action i {
  color: #dc2626;
}

.admin-restore-action {
  color: #166534;
}

.admin-restore-action i {
  color: #16a34a;
}

.archive-page .archive-hero-card,
.archive-page .archive-section-card,
.vouchers-page .vouchers-list-card,
.categories-page-v3 .categories-v3-table-card,
.products-page-v3 .products-v3-table-card,
.categories-page-v3 .categories-v3-search-card,
.products-page-v3 .products-v3-search-card {
  border-radius: 24px;
  border: 1px solid #e6ebf2;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.archive-page .archive-hero-card,
.vouchers-page .vouchers-list-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.archive-page .archive-section-card,
.categories-page-v3 .categories-v3-table-card,
.products-page-v3 .products-v3-table-card {
  background: #ffffff;
}

.archive-page .archive-hero-card .panel-head h3,
.vouchers-page .vouchers-list-head h3 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.archive-page .archive-hero-card .panel-head p,
.vouchers-page .vouchers-list-head p {
  color: #6b7280;
}

.archive-page .archive-stats-grid,
.vouchers-page .vouchers-stats-grid {
  margin-top: 18px;
}

.archive-page .archive-stat-card,
.vouchers-page .vouchers-stat-card {
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.archive-page .archive-table th,
.archive-page .archive-table td,
.vouchers-page .vouchers-table th,
.vouchers-page .vouchers-table td,
.categories-page-v3 .categories-v3-table th,
.categories-page-v3 .categories-v3-table td,
.products-page-v3 .products-v3-table th,
.products-page-v3 .products-v3-table td {
  vertical-align: middle;
}

.archive-page .archive-table th,
.vouchers-page .vouchers-table th,
.categories-page-v3 .categories-v3-table th,
.products-page-v3 .products-v3-table th {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.archive-page .archive-table td,
.vouchers-page .vouchers-table td,
.categories-page-v3 .categories-v3-table td,
.products-page-v3 .products-v3-table td {
  padding-top: 16px;
  padding-bottom: 16px;
}

.archive-page .archive-table tbody tr,
.vouchers-page .vouchers-table tbody tr,
.categories-page-v3 .categories-v3-table tbody tr,
.products-page-v3 .products-v3-table tbody tr {
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.archive-page .archive-table tbody tr:hover td,
.vouchers-page .vouchers-table tbody tr:hover td,
.categories-page-v3 .categories-v3-table tbody tr:hover td,
.products-page-v3 .products-v3-table tbody tr:hover td {
  background: #f8fbff;
}

.vouchers-page .vouchers-toolbar,
.vouchers-page .vouchers-filters-bar {
  background: #fff;
}

.vouchers-page .vouchers-filters-bar {
  border: 1px solid #e5eaf3;
  border-radius: 18px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.vouchers-page .vouchers-code-badge,
.vouchers-page .vouchers-usage-pill,
.categories-page-v3 .categories-v3-badge,
.products-page-v3 .products-v3-badge,
.archive-page .badge {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.archive-page .archive-empty-state,
.vouchers-page .empty-state,
.categories-page-v3 .categories-v3-empty-state,
.products-page-v3 .products-v3-empty-state {
  padding: 60px 20px;
}

.archive-page .archive-empty-state h3,
.vouchers-page .empty-state h3,
.categories-page-v3 .categories-v3-empty-state h3,
.products-page-v3 .products-v3-empty-state h3 {
  color: #0f172a;
  margin-bottom: 8px;
}

.archive-page .archive-empty-state p,
.vouchers-page .empty-state p,
.categories-page-v3 .categories-v3-empty-state p,
.products-page-v3 .products-v3-empty-state p {
  color: #64748b;
}

.categories-page-v3 .categories-v3-actions-cell,
.products-page-v3 .products-v3-actions-cell,
.vouchers-page .vouchers-actions-cell,
.archive-page .archive-actions-cell {
  text-align: right;
}

.products-page-v3 .products-v3-actions-cell {
  min-width: 146px;
  width: 1%;
}

.products-page-v3 .products-v3-actions-cell .admin-action-menu {
  width: 100%;
  min-width: 0;
  justify-content: flex-end;
}

.products-page-v3 .products-v3-actions-cell .admin-action-dropdown {
  right: 0;
  left: auto;
  transform-origin: top right;
}

.vouchers-page .vouchers-actions-cell,
.archive-page .archive-actions-cell {
  min-width: 146px;
}

@media (max-width: 768px) {
  .admin-action-menu {
    min-width: 128px;
  }

  .admin-action-trigger {
    min-width: 118px;
  }

  .admin-action-dropdown {
    min-width: 210px;
    right: 0;
  }
}
/* === ADMIN ACTION DROPDOWN END === */
