/* Crispy Crust Enterprise Design System (V29 Standard) - Standalone Odoo-Grade WMS Inventory App */
/* Strict Standards: Zero Unicode emojis, 100% Cairo font, 100% Western numerals, 13.5px root */

:root {
  font-size: 13.5px;
  --bg-primary: #020617;
  --bg-card: #0f172a;
  --bg-drawer: #0f172a;
  --bg-elevated: #1e293b;
  --bg-surface-subtle: rgba(15, 23, 42, 0.70);
  --bg-header: #0b1120;

  --brand-gold: #f59e0b;
  --brand-gold-hover: #fbbf24;
  --gold-active-tint: rgba(245, 158, 11, 0.14);
  --gold-active-border: rgba(245, 158, 11, 0.45);
  --brand-crimson: #dc2626;
  --status-emerald: #10b981;
  --status-info: #38bdf8;
  --status-warning: #f59e0b;
  --status-purple: #a855f7;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(51, 65, 85, 0.65);
}

*,
*::before,
*::after,
body,
button,
input,
select,
textarea,
table,
th,
td,
.font-mono,
code,
pre {
  font-family: 'Cairo', sans-serif !important;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  overflow-x: hidden;
}

/* -------------------------------------------------------------
   1. FIXED 52px TOP HEADER
   ------------------------------------------------------------- */
.erp-top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  width: 100%;
  z-index: 99990;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
}

.erp-header-right-cell {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
}

.erp-drawer-toggle-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.erp-drawer-toggle-btn:hover {
  background: var(--gold-active-tint);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.erp-header-center-cell {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  max-height: 34px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

.erp-header-left-cell {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.erp-compact-shift-pill {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.erp-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--status-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--status-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.erp-pill-sep {
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   2. SLIDE-OUT RIGHT DRAWER (300px)
   ------------------------------------------------------------- */
.erp-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
  z-index: 999998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.erp-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.erp-side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 310px;
  max-width: 88vw;
  height: 100dvh;
  z-index: 999999;
  background: var(--bg-drawer);
  border-left: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.erp-side-drawer.open {
  transform: translateX(0);
}

.erp-drawer-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.erp-drawer-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold-active-tint);
  border: 1px solid var(--gold-active-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.erp-drawer-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.erp-drawer-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
}

.erp-drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.erp-drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* Executive CEO Identity Card */
.erp-drawer-ceo-card {
  margin: 12px 14px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--gold-active-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.erp-drawer-ceo-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.8);
  border: 1.5px solid var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.erp-drawer-ceo-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.erp-drawer-ceo-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.erp-drawer-ceo-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.erp-drawer-role-badge {
  color: var(--brand-gold);
  font-weight: 700;
}

.erp-drawer-shift-dot {
  width: 6px;
  height: 6px;
  background: var(--status-emerald);
  border-radius: 50%;
}

.erp-drawer-body {
  padding: 0 14px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.erp-drawer-section {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px;
}

.erp-drawer-section-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-right: 4px;
}

.erp-drawer-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.erp-drawer-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: right;
  transition: all 0.18s ease;
}

.erp-drawer-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.erp-drawer-item.active {
  background: var(--gold-active-tint);
  border: 1px solid var(--gold-active-border);
  color: var(--brand-gold);
  font-weight: 800;
}

.erp-drawer-item svg {
  flex-shrink: 0;
}

/* -------------------------------------------------------------
   3. MAIN WORKSPACE LAYOUT & CARDS RHYTHM
   ------------------------------------------------------------- */
.main-content,
main,
.dash {
  padding-top: 68px !important;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 40px;
  max-width: 1540px;
  margin: 0 auto;
}

.panel-card,
.card,
.metric-card-container,
.data-table-container {
  margin-bottom: 16px !important;
}

.toolbar,
.section-toolbar,
.toolbar-container,
.action-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
}

/* Sticky Quick Barcode Scanner Bar */
.wms-scanner-bar {
  background: linear-gradient(90deg, #0f172a, #1e293b);
  border: 1px solid var(--gold-active-border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.wms-scanner-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-default);
  border-radius: 8px;
  padding: 6px 12px;
  transition: border-color 0.2s;
}

.wms-scanner-input-wrap:focus-within {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 2px var(--gold-active-tint);
}

.wms-scanner-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 700;
}

.wms-scanner-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.wms-scanner-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.scanner-test-pill {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.scanner-test-pill:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

/* Top Banner Header */
.wms-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.wms-page-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wms-title-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-active-tint);
  border: 1.5px solid var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
}

.wms-page-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
}

.wms-page-sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.wms-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Nav Tabs bar */
.wms-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.wms-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.wms-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.wms-tab-btn.active {
  background: var(--gold-active-tint);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  font-weight: 800;
}

.wms-tab-badge {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
}

.wms-tab-btn.active .wms-tab-badge {
  background: var(--brand-gold);
  color: #020617;
}

/* -------------------------------------------------------------
   4. MODULE 1: ODOO-STYLE KANBAN CARDS
   ------------------------------------------------------------- */
.wms-kanban-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.wms-kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.wms-kanban-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.wms-kanban-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wms-kanban-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wms-kanban-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wms-kanban-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.wms-kanban-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wms-kanban-icon.blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.wms-kanban-icon.amber { background: var(--gold-active-tint); color: var(--brand-gold); }
.wms-kanban-icon.emerald { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.wms-kanban-icon.purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.wms-kanban-count-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.wms-kanban-count {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}

.wms-kanban-count-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.wms-kanban-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------
   5. DATA TABLES & PANELS
   ------------------------------------------------------------- */
.wms-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.wms-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.wms-panel-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wms-table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.wms-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 12.5px;
}

.wms-table th {
  background: #111a2e;
  color: var(--text-secondary);
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}

.wms-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.wms-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.wms-table tr:last-child td {
  border-bottom: none;
}

/* -------------------------------------------------------------
   6. MODULE 2: SUB-LOCATIONS & PACK SPLITTING ENGINE
   ------------------------------------------------------------- */
.wms-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.wms-location-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wms-location-card:hover,
.wms-location-card.selected {
  border-color: var(--brand-gold);
  background: rgba(30, 41, 59, 0.6);
}

.wms-loc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wms-loc-code {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-gold);
}

.wms-strategy-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.wms-strategy-badge.fefo {
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #f87171;
}

.wms-strategy-badge.fifo {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.wms-loc-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.wms-loc-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.wms-temp-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
}

.wms-temp-pill.cold {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

/* Pack Splitting Box */
.wms-split-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(15, 23, 42, 0.9));
  border: 1.5px solid var(--gold-active-border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.wms-split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: end;
}

/* -------------------------------------------------------------
   7. BUTTONS, INPUTS & CONTROLS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-gold);
  color: #020617;
}

.btn-primary:hover {
  background: var(--brand-gold-hover);
}

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-default);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-danger {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.5);
  color: #f87171;
}

.btn-danger:hover {
  background: var(--brand-crimson);
  color: #fff;
}

.btn-success {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.btn-success:hover {
  background: var(--status-emerald);
  color: #020617;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 6px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-control {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--brand-gold);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-gold {
  background: var(--gold-active-tint);
  border: 1px solid var(--gold-active-border);
  color: var(--brand-gold);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.badge-crimson {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #f87171;
}

.badge-info {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

/* -------------------------------------------------------------
   8. MODALS & CONNECTED APPS GRID
   ------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(5px);
  z-index: 999995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-body {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* -------------------------------------------------------------
   9. 80mm ADHESIVE THERMAL BARCODE LABEL PRINTING
   ------------------------------------------------------------- */
#thermal-label-print-area {
  display: none;
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  body * {
    visibility: hidden;
  }
  #thermal-label-print-area,
  #thermal-label-print-area * {
    visibility: visible;
  }
  #thermal-label-print-area {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    padding: 2mm;
    margin: 0 auto;
    font-family: 'Cairo', sans-serif !important;
    color: #000 !important;
  }
  .thermal-label-card {
    page-break-after: always;
    border: 1px dashed #000;
    padding: 4mm;
    margin-bottom: 3mm;
    text-align: center;
  }
}

.thermal-label-preview {
  width: 80mm;
  max-width: 100%;
  background: #ffffff;
  color: #000000;
  padding: 12px;
  border-radius: 6px;
  border: 1.5px solid #000000;
  font-size: 11px;
  line-height: 1.3;
  margin: 0 auto;
  text-align: center;
}

.thermal-label-preview .brand-title {
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1.5px solid #000;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.thermal-barcode-svg {
  width: 100%;
  max-height: 48px;
  margin: 6px 0;
}

/* -------------------------------------------------------------
   10. TOAST NOTIFICATIONS & AUDIO INDICATOR
   ------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.25s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast-success {
  background: #064e3b;
  border: 1px solid #059669;
  color: #ecfdf5;
}

.toast-error {
  background: #7f1d1d;
  border: 1px solid #dc2626;
  color: #fef2f2;
}

.toast-info {
  background: #0c4a6e;
  border: 1px solid #0284c7;
  color: #f0f9ff;
}

/* -------------------------------------------------------------
   11. MOBILE RESPONSIVE ADAPTATIONS (<= 768px)
   ------------------------------------------------------------- */
@media (max-width: 768px) {
  .erp-top-header {
    padding: 0 8px;
  }
  .brand-logo {
    max-height: 28px;
  }
  .main-content,
  main,
  .dash {
    padding-top: 64px !important;
    padding-left: 12px;
    padding-right: 12px;
  }
  .wms-scanner-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .wms-kanban-grid {
    grid-template-columns: 1fr;
  }
  .wms-locations-grid {
    grid-template-columns: 1fr;
  }
}

