/* =========================================================
   Akra Inventory – Global Styles
   ========================================================= */

:root {
  --bg-base:       #0b0d14;
  --bg-surface:    #13161f;
  --bg-elevated:   #1a1d2b;
  --bg-hover:      #21253a;
  --border:        #252a3d;
  --border-light:  #2e3450;

  --accent:        #6c63ff;
  --accent-glow:   rgba(108,99,255,0.25);
  --accent-hover:  #7b73ff;

  --teal:          #00c9a7;
  --teal-glow:     rgba(0,201,167,0.2);
  --warn:          #f7a84a;
  --danger:        #ff5e6c;
  --success:       #40d9a4;

  --text-primary:  #e8ecf4;
  --text-secondary:#8a94b0;
  --text-muted:    #525878;

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     20px;

  --sidebar-w:     220px;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:          'JetBrains Mono', monospace;
  --shadow:        0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.5);
}

/* ===================== LIGHT THEME ===================== */
[data-theme="light"] {
  --bg-base:       #f0f2f7;
  --bg-surface:    #ffffff;
  --bg-elevated:   #f5f7fc;
  --bg-hover:      #e8ecf7;
  --border:        #dde1f0;
  --border-light:  #ccd2e8;

  --accent:        #5b52e8;
  --accent-glow:   rgba(91,82,232,0.18);
  --accent-hover:  #6b63f0;

  --teal:          #00897b;
  --teal-glow:     rgba(0,137,123,0.15);
  --warn:          #e07b00;
  --danger:        #e53935;
  --success:       #00897b;

  --text-primary:  #1a1d2e;
  --text-secondary:#4a5075;
  --text-muted:    #8a94b0;

  --shadow:        0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.16);

  /* Sidebar: deeper indigo tint of bg-base */
  --sidebar-bg:    #dfe2f2;
  --sidebar-text:  #1a1d2e;
}

/* ===================== COLOR THEMES (light-based) ===================== */
/* Each colour theme uses the light-mode base layout; only accent colours differ. */

[data-theme="blue"] {
  --bg-base:       #f0f4f9;
  --bg-surface:    #ffffff;
  --bg-elevated:   #f3f7fc;
  --bg-hover:      #e1eaf6;
  --border:        #ccd8ec;
  --border-light:  #b8ccdf;
  --accent:        #1565c0;
  --accent-glow:   rgba(21,101,192,0.18);
  --accent-hover:  #0d47a1;
  --teal:          #00897b;
  --teal-glow:     rgba(0,137,123,0.15);
  --warn:          #e07b00;
  --danger:        #e53935;
  --success:       #1b8a5a;
  --text-primary:  #1a1d2e;
  --text-secondary:#4a5075;
  --text-muted:    #8a94b0;
  --shadow:        0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.16);
  --sidebar-bg:    #d6e4f5;
  --sidebar-text:  #1a1d2e;
}

[data-theme="green"] {
  --bg-base:       #f0f7f4;
  --bg-surface:    #ffffff;
  --bg-elevated:   #f3faf7;
  --bg-hover:      #ddf0e7;
  --border:        #c4dfd2;
  --border-light:  #aacfc0;
  --accent:        #1b8a5a;
  --accent-glow:   rgba(27,138,90,0.18);
  --accent-hover:  #146946;
  --teal:          #1976d2;
  --teal-glow:     rgba(25,118,210,0.15);
  --warn:          #e07b00;
  --danger:        #e53935;
  --success:       #1b8a5a;
  --text-primary:  #1a1d2e;
  --text-secondary:#4a5075;
  --text-muted:    #8a94b0;
  --shadow:        0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.16);
  --sidebar-bg:    #c8e8d8;
  --sidebar-text:  #1a1d2e;
}

[data-theme="coral"] {
  --bg-base:       #fdf2ef;
  --bg-surface:    #ffffff;
  --bg-elevated:   #fef6f3;
  --bg-hover:      #fbe4dc;
  --border:        #f2cfc5;
  --border-light:  #e8b8aa;
  --accent:        #d84315;
  --accent-glow:   rgba(216,67,21,0.18);
  --accent-hover:  #bf360c;
  --teal:          #00897b;
  --teal-glow:     rgba(0,137,123,0.15);
  --warn:          #e07b00;
  --danger:        #c62828;
  --success:       #2e7d32;
  --text-primary:  #1a1d2e;
  --text-secondary:#4a5075;
  --text-muted:    #8a94b0;
  --shadow:        0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.16);
  --sidebar-bg:    #f9d6cc;
  --sidebar-text:  #1a1d2e;
}

[data-theme="amber"] {
  --bg-base:       #fdf8f0;
  --bg-surface:    #ffffff;
  --bg-elevated:   #fefcf6;
  --bg-hover:      #faefd8;
  --border:        #edd9b0;
  --border-light:  #dfc490;
  --accent:        #c67c00;
  --accent-glow:   rgba(198,124,0,0.18);
  --accent-hover:  #a86800;
  --teal:          #2e7d32;
  --teal-glow:     rgba(46,125,50,0.15);
  --warn:          #c67c00;
  --danger:        #e53935;
  --success:       #2e7d32;
  --text-primary:  #1a1d2e;
  --text-secondary:#4a5075;
  --text-muted:    #8a94b0;
  --shadow:        0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.16);
  --sidebar-bg:    #f5dfa8;
  --sidebar-text:  #1a1d2e;
}

[data-theme="rose"] {
  --bg-base:       #fdf0f5;
  --bg-surface:    #ffffff;
  --bg-elevated:   #fef5f8;
  --bg-hover:      #fbe0eb;
  --border:        #f0c8d8;
  --border-light:  #e4adc4;
  --accent:        #c2185b;
  --accent-glow:   rgba(194,24,91,0.18);
  --accent-hover:  #a3134d;
  --teal:          #00897b;
  --teal-glow:     rgba(0,137,123,0.15);
  --warn:          #e07b00;
  --danger:        #c62828;
  --success:       #2e7d32;
  --text-primary:  #1a1d2e;
  --text-secondary:#4a5075;
  --text-muted:    #8a94b0;
  --shadow:        0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.16);
  --sidebar-bg:    #f5c8db;
  --sidebar-text:  #1a1d2e;
}

[data-theme="violet"] {
  --bg-base:       #f6f0fc;
  --bg-surface:    #ffffff;
  --bg-elevated:   #f9f5fd;
  --bg-hover:      #ecddf7;
  --border:        #d9c0ec;
  --border-light:  #c4a4e0;
  --accent:        #6a1b9a;
  --accent-glow:   rgba(106,27,154,0.18);
  --accent-hover:  #4a148c;
  --teal:          #1976d2;
  --teal-glow:     rgba(25,118,210,0.15);
  --warn:          #e07b00;
  --danger:        #e53935;
  --success:       #2e7d32;
  --text-primary:  #1a1d2e;
  --text-secondary:#4a5075;
  --text-muted:    #8a94b0;
  --shadow:        0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.16);
  --sidebar-bg:    #e0caf5;
  --sidebar-text:  #1a1d2e;
}

/* ── Shared component overrides for all light-based themes ──────────── */
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],[data-theme="coral"],[data-theme="amber"],[data-theme="rose"],[data-theme="violet"]) .modal-overlay { background: rgba(30,30,60,0.45); }
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],[data-theme="coral"],[data-theme="amber"],[data-theme="rose"],[data-theme="violet"]) .nav-btn.active { background: linear-gradient(135deg, var(--accent-glow), transparent); border-color: var(--accent); }
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],[data-theme="coral"],[data-theme="amber"],[data-theme="rose"],[data-theme="violet"]) .badge-pending   { background: rgba(224,123,0,0.10); border-color: rgba(224,123,0,0.30); }
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],[data-theme="coral"],[data-theme="amber"],[data-theme="rose"],[data-theme="violet"]) .badge-paid      { background: rgba(0,137,123,0.10); border-color: rgba(0,137,123,0.30); }
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],[data-theme="coral"],[data-theme="amber"],[data-theme="rose"],[data-theme="violet"]) .badge-quote     { background: var(--accent-glow); border-color: var(--accent); }
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],[data-theme="coral"],[data-theme="amber"],[data-theme="rose"],[data-theme="violet"]) .badge-retail    { background: rgba(0,137,123,0.10); border-color: rgba(0,137,123,0.30); }
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],[data-theme="coral"],[data-theme="amber"],[data-theme="rose"],[data-theme="violet"]) .badge-wholesale { background: rgba(224,123,0,0.08); border-color: rgba(224,123,0,0.25); }
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],[data-theme="coral"],[data-theme="amber"],[data-theme="rose"],[data-theme="violet"]) .action-bar      { background: linear-gradient(135deg, var(--accent-glow), transparent); border-color: var(--accent); }
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],[data-theme="coral"],[data-theme="amber"],[data-theme="rose"],[data-theme="violet"]) .alert-info      { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],[data-theme="coral"],[data-theme="amber"],[data-theme="rose"],[data-theme="violet"]) .input-prefix span { background: var(--bg-elevated); }
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],[data-theme="coral"],[data-theme="amber"],[data-theme="rose"],[data-theme="violet"]) input[readonly]  { background: #eef0f8; }
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],[data-theme="coral"],[data-theme="amber"],[data-theme="rose"],[data-theme="violet"]) select option   { background: #ffffff; color: #1a1d2e; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 11px;
  line-height: 1.5;
  overflow: hidden;
}

/* ===================== LAYOUT ===================== */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ===================== SIDEBAR ===================== */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--sidebar-bg, var(--bg-surface));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: visible;
  transition: background 0.3s ease, width 0.2s ease;
}

.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px 10px;
  border-bottom: 1px solid var(--border);
  /* No perspective here — it creates a stacking context that breaks mix-blend-mode */
}

/* Full-width banner logo — transparent PNGs work on any background */
#sidebar-logo-img {
  width: 100% !important;
  max-height: 120px !important;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  cursor: pointer;
  padding: 0 !important;
  transition: opacity 0.2s;
}
#sidebar-logo-img:hover { opacity: 0.85; }

/* Login screen logo */
#login-logo {
  transition: transform 0.8s ease;
}

.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.logo-sub {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: inherit;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.nav-btn:hover {
  background: rgba(0,0,0,0.08);
  color: var(--text-primary);
}

.nav-btn.active {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  font-weight: 600;
}

/* Dark mode: keep the original richer gradient */
[data-theme="dark"] .nav-btn.active {
  background: linear-gradient(135deg, var(--accent-glow), rgba(108,99,255,0.12));
  color: #a5a0ff;
  border: 1px solid rgba(108,99,255,0.25);
  font-weight: normal;
}

[data-theme="dark"] .nav-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-icon { font-size: 15px; }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sidebar-footer-text {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.sidebar-footer-version {
  font-size: 10px;
  color: var(--text-muted);
}

/* ===================== THEME TOGGLE & SWATCHES ===================== */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
}

.theme-toggle-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* Colour swatch row */
.theme-swatches {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2px 2px;
}

.theme-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  padding: 0;
  outline: none;
  flex-shrink: 0;
}

.theme-swatch:hover {
  transform: scale(1.28);
  box-shadow: 0 3px 10px rgba(0,0,0,0.40);
}

.theme-swatch.active {
  box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 4px var(--text-secondary);
  transform: scale(1.12);
}

.theme-swatch[data-color="blue"]   { background: #1565c0; }
.theme-swatch[data-color="green"]  { background: #1b8a5a; }
.theme-swatch[data-color="coral"]  { background: #d84315; }
.theme-swatch[data-color="amber"]  { background: #c67c00; }
.theme-swatch[data-color="rose"]   { background: #c2185b; }
.theme-swatch[data-color="violet"] { background: #6a1b9a; }

/* ===================== MAIN CONTENT ===================== */
.main-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.tab-panel {
  display: none;
  height: 100%;
  overflow-y: auto;
  padding: 24px 28px;
  flex-direction: column;
  gap: 20px;
}

.tab-panel.active {
  display: flex;
}

/* ===================== PAGE HEADER ===================== */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.page-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { background: var(--bg-hover); }

.btn-accent {
  background: linear-gradient(135deg, #00c9a7, #0097a7);
  color: #fff;
}
.btn-accent:hover { transform: translateY(-1px); }

.btn-warn {
  background: linear-gradient(135deg, var(--warn), #e58e0c);
  color: #fff;
}
.btn-warn:hover { transform: translateY(-1px); }

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #c0392b);
  color: #fff;
}
.btn-danger:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-sm { padding: 5px 10px; font-size: 11px; }
.btn-icon { padding: 6px; font-size: 14px; min-width: 30px; justify-content: center; }

/* ===================== TABLES ===================== */
.table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: auto;
  flex-shrink: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table thead th {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-hover); }

.data-table td {
  padding: 10px 14px;
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table td.mono {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
}

.data-table tbody tr.selected-row {
  background: rgba(108,99,255,0.08);
  border-left: 2px solid var(--accent);
}

/* Column filters */
.th-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.col-filter {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 10px;
  padding: 3px 6px;
  width: 100%;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}
.col-filter:focus { border-color: var(--accent); }
.col-filter::placeholder { color: var(--text-muted); }

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.badge-pending { background: rgba(247,168,74,0.15); color: var(--warn); border: 1px solid rgba(247,168,74,0.3); }
.badge-paid    { background: rgba(64,217,164,0.15); color: var(--success); border: 1px solid rgba(64,217,164,0.3); }
.badge-quote   { background: rgba(108,99,255,0.15); color: #a5a0ff; border: 1px solid rgba(108,99,255,0.3); }
.badge-retail  { background: rgba(0,201,167,0.15); color: var(--teal); border: 1px solid rgba(0,201,167,0.3); }
.badge-wholesale { background: rgba(247,168,74,0.1); color: var(--warn); border: 1px solid rgba(247,168,74,0.25); }

/* ── Config inner-tab nav ─────────────────────────────────── */
.cfg-inner-nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--bg-elevated);
  border-radius: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
}
.cfg-inner-tab {
  flex: 1;
  min-width: 110px;
  padding: 9px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  font-family: inherit;
}
.cfg-inner-tab:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}
.cfg-inner-tab.active {
  background: var(--bg-surface);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 1px 6px rgba(0,0,0,0.28);
}
.cfg-pane { display: none; }
.cfg-pane.active { display: block; }

/* ===================== SUMMARY CARDS ===================== */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  flex-shrink: 0;
}

.summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s;
}
.summary-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.summary-card.cost::before { background: linear-gradient(90deg, var(--accent), #8b5cf6); }
.summary-card.retail::before { background: linear-gradient(90deg, var(--teal), #00a085); }
.summary-card.wholesale::before { background: linear-gradient(90deg, var(--warn), #e58e0c); }
.summary-card.consignment::before { background: linear-gradient(90deg, #ec4899, #8b5cf6); }

.summary-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ── CSS tooltip system (body-level, not clipped by overflow:hidden) ── */
#akra-tooltip {
  position: fixed;
  background: rgba(15,18,30,0.95);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 240px;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  z-index: 99999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  display: none;
}
#akra-tooltip.visible {
  opacity: 1;
  display: block;
}

.summary-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--mono);
  letter-spacing: -0.5px;
}

.summary-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===================== ACTION BAR ===================== */
.action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(108,99,255,0.12), rgba(139,92,246,0.08));
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  animation: slideUp 0.2s ease;
}

/* Inventory selection bar — floats at the bottom of the viewport */
#inventory-action-bar,
#cons-action-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  border-radius: 50px;
  padding: 10px 22px;
  gap: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(108,99,255,0.4);
  background: linear-gradient(135deg, rgba(20,18,40,0.96), rgba(30,27,60,0.96));
  backdrop-filter: blur(12px);
  white-space: nowrap;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.action-bar-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-right: auto;
}

/* ===================== WAREHOUSE CARDS ===================== */
.warehouse-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.warehouse-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all 0.18s;
}
.warehouse-card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.wh-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wh-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.wh-actions { display: flex; gap: 6px; }

.wh-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.wh-emails {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.email-chip {
  display: inline-block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 11px;
  color: var(--text-secondary);
  margin: 2px 2px 0 0;
}

/* ===================== CONSIGNMENT TAB ===================== */
.wh-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wh-tab-btn {
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
}
.wh-tab-btn:hover, .wh-tab-btn.active {
  background: linear-gradient(135deg, var(--accent-glow), rgba(108,99,255,0.1));
  border-color: rgba(108,99,255,0.4);
  color: #a5a0ff;
}

/* ===================== MODALS ===================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}

.modal-overlay.open { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 580px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.2s ease;
}

.modal-sm { width: 420px; }
.modal-xl { width: 1200px; max-width: 96vw; }
.modal-fullscreen { width: 98vw; max-width: 98vw; height: 96vh; max-height: 96vh; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--danger); }

.modal-body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ===================== FORMS ===================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
select,
textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: inherit;
  font-family: var(--font);
  padding: 8px 10px;
  height: 38px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  color-scheme: dark;        /* tells browser to use dark calendar/time picker */
}

textarea { height: auto; min-height: 80px; }

/* Override browser autofill — prevents white flash on password fields */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 100px var(--bg-elevated) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  caret-color: var(--text-primary);
  border-color: var(--border) !important;
  transition: background-color 9999s ease-in-out 0s; /* trick to keep dark bg */
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input[readonly] {
  background: var(--bg-base);
  color: var(--teal);
  font-family: var(--mono);
  cursor: default;
}

select option { background: var(--bg-elevated); }

/* Calendar / time picker icon — inherit theme colour */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
  opacity: 0.7;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Light themes — do NOT invert the calendar icon */
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],
    [data-theme="coral"],[data-theme="amber"],[data-theme="rose"],
    [data-theme="violet"]) input[type="date"]::-webkit-calendar-picker-indicator,
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],
    [data-theme="coral"],[data-theme="amber"],[data-theme="rose"],
    [data-theme="violet"]) input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: none;
  color-scheme: light;
}

/* Light themes — switch date fields to light colour-scheme */
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],
    [data-theme="coral"],[data-theme="amber"],[data-theme="rose"],
    [data-theme="violet"]) input[type="date"],
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],
    [data-theme="coral"],[data-theme="amber"],[data-theme="rose"],
    [data-theme="violet"]) input[type="datetime-local"],
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],
    [data-theme="coral"],[data-theme="amber"],[data-theme="rose"],
    [data-theme="violet"]) input[type="time"] {
  color-scheme: light;
}

textarea { resize: vertical; min-height: 60px; }


.input-prefix {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-prefix:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.input-prefix.readonly:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}
.input-prefix span {
  padding: 8px 8px 8px 10px;
  color: var(--text-muted);
  font-size: 12px;
  background: var(--bg-base);
  border-right: 1px solid var(--border);
}
.input-prefix input {
  border: none;
  background: transparent;
  box-shadow: none;
}
.input-prefix input:focus { box-shadow: none; }

.hint {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===================== INVOICE FORM ===================== */
.invoice-form { display: flex; flex-direction: column; gap: 20px; }

.invoice-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.customer-toggle {
  display: flex;
  gap: 0;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 14px;
  width: fit-content;
}

.toggle-btn {
  padding: 6px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
}
.toggle-btn.active {
  background: var(--accent);
  color: #fff;
}

.invoice-items-table { margin-top: 0; }

.invoice-totals {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.totals-row {
  display: flex;
  gap: 40px;
  font-size: 12px;
  color: var(--text-secondary);
}

.totals-row span:last-child {
  font-family: var(--mono);
  min-width: 100px;
  text-align: right;
}

.total-row {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  border-top: 1px solid var(--border);
  padding-top: 6px;
}

/* ===================== QTY INPUT IN TABLE ===================== */
.qty-input {
  width: 70px;
  text-align: center;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--mono);
  padding: 4px 6px;
}
.qty-input:focus { border-color: var(--accent); outline: none; }

/* ===================== FILTER ROW ===================== */
.filter-row {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.filter-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 11px;
  font-family: var(--font);
  padding: 8px 12px;
  outline: none;
}
.filter-input:focus { border-color: var(--accent); }

.filter-select {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 11px;
  font-family: var(--font);
  padding: 8px 12px;
  outline: none;
  min-width: 160px;
}

/* ===================== ALERTS ===================== */
.alert-info {
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #a5a0ff;
  margin-top: 12px;
}

.confirm-text {
  font-size: inherit;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.6;
}

/* ===================== TRANSFER SUMMARY ===================== */
.transfer-summary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-secondary);
}
.transfer-summary strong { color: var(--text-primary); }

/* ===================== EMPTY STATE ===================== */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: inherit;
  padding: 32px;
}

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: inherit;
  font-weight: 500;
  color: #fff;
  z-index: 9999;
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  max-width: 360px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: linear-gradient(135deg, #11998e, #38ef7d); box-shadow: 0 4px 20px rgba(64,217,164,0.4); }
.toast.error   { background: linear-gradient(135deg, var(--danger), #c0392b); box-shadow: 0 4px 20px rgba(255,94,108,0.4); }
.toast.info    { background: linear-gradient(135deg, var(--accent), #8b5cf6); box-shadow: 0 4px 20px var(--accent-glow); }

/* ===================== CHECKBOX ===================== */
.row-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ===================== CONSIGNMENT CONTENT ===================== */
.consignment-content {
  margin-top: 16px;
}

/* ===================== INVOICE VIEW ===================== */
.inv-view-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.inv-view-detail {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border);
}

.inv-view-detail h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.inv-view-detail p {
  font-size: inherit;
  color: var(--text-primary);
  margin-bottom: 3px;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===================== QTY IN TABLE ===================== */
.qty-positive { color: var(--success); font-family: var(--mono); font-weight: 600; }
.qty-zero     { color: var(--text-muted); font-family: var(--mono); }
.qty-low      { color: var(--warn); font-family: var(--mono); font-weight: 600; }

/* ===================== PENDING MARK ===================== */
.pending-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  background: rgba(247,168,74,0.15);
  color: var(--warn);
  border: 1px solid rgba(247,168,74,0.3);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ===================== V2 ADDITIONS ===================== */

/* Sidebar nav scrollable for more items */
.sidebar-nav {
  overflow-y: auto;
}

/* modal-lg size */
.modal-lg { width: 680px; max-height: 94vh; }

/* surface-2 for inline date pickers */
:root { --surface-2: var(--bg-elevated); }

/* inv-view-header */
.inv-view-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.inv-view-detail {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.inv-view-detail h4 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.inv-view-detail p {
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 3px;
}

/* filter-row date input fix */
input[type="date"].filter-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 11px;
  padding: 7px 10px;
  font-family: var(--font);
  outline: none;
}

input[type="date"].filter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Report budget progress bar container */
.budget-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* qty-input in invoice table */
.qty-input {
  width: 64px;
  padding: 4px 6px;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 12px;
}

/* confirm-text in mark-sold modal */
.confirm-text {
  font-size: inherit;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* transfer-summary */
.transfer-summary {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

/* empty-state */
.empty-state {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: inherit;
}

/* alert-info */
.alert-info {
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #a5a0ff;
  margin-top: 10px;
}

/* toast notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: inherit;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
  pointer-events: none;
  max-width: 360px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--accent); }

/* Invoice items table */
.invoice-items-table { background: transparent; }

/* Invoice totals */
.invoice-totals {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
  max-width: 380px;
  margin-left: auto;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border);
}

.totals-row.total-row {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: none;
  padding-top: 8px;
  border-top: 2px solid var(--teal);
  margin-top: 4px;
}

/* filter-input and filter-select */
.filter-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 11px;
  padding: 7px 10px;
  font-family: var(--font);
  outline: none;
  min-width: 200px;
  transition: border-color 0.15s;
}
.filter-input:focus { border-color: var(--accent); }
.filter-input::placeholder { color: var(--text-muted); }

.filter-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 11px;
  padding: 7px 10px;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.filter-select:focus { border-color: var(--accent); }

.filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* =========================================================
   SEARCHABLE SELECT COMPONENT
   ========================================================= */
.ss-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}
.ss-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-primary, var(--bg-surface));
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: inherit;
  color: var(--text-primary);
  user-select: none;
  transition: border-color 0.15s;
  min-height: 40px;
}
.ss-display:hover { border-color: var(--accent); }
.ss-display.open  { border-color: var(--accent); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ss-display .ss-arrow { font-size: 11px; color: var(--text-muted); transition: transform 0.15s; }
.ss-display.open .ss-arrow { transform: rotate(180deg); }
.ss-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--accent);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  max-height: 260px;
  display: none;
  flex-direction: column;
}
.ss-dropdown.open { display: flex; }
.ss-search {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ss-search input {
  width: 100%;
  background: var(--bg-primary, var(--bg-surface));
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: inherit;
  color: var(--text-primary);
  outline: none;
  box-sizing: border-box;
}
.ss-search input:focus { border-color: var(--accent); }
.ss-options {
  overflow-y: auto;
  flex: 1;
}
.ss-option {
  padding: 9px 14px;
  font-size: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.1s;
}
.ss-option:hover, .ss-option.highlighted { background: var(--bg-hover); color: var(--text-primary); }
.ss-option.selected { color: var(--accent); font-weight: 600; }
.ss-empty { padding: 12px 14px; font-size: 12px; color: var(--text-muted); font-style: italic; }

/* =========================================================
   CUSTOMER NAME BUTTON & ACTION POPOVER
   ========================================================= */
.customer-name-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-primary);
  text-align: left;
  font-family: inherit;
}
.customer-name-btn:hover strong {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cust-pop-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s, color 0.1s;
}
.cust-pop-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.cust-pop-btn.accent { color: var(--accent); }
.cust-pop-btn.accent:hover { background: rgba(var(--accent-rgb,99,102,241),0.12); }

/* ===================== MOVEMENTS TABLE — CONTENT-DRIVEN WIDTHS ===================== */
/* Let every column be exactly as wide as its widest cell; scroll horizontally if needed */
#tab-movements .data-table {
  width: auto;
  min-width: 100%;
  table-layout: auto;
}

#tab-movements .data-table th,
#tab-movements .data-table td {
  white-space: nowrap;
  padding: 8px 10px;
}

/* Description (col 3) and SKU list (col 2) can be a little wider but cap with ellipsis */
#tab-movements .data-table th:nth-child(2),
#tab-movements .data-table td:nth-child(2) {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tab-movements .data-table th:nth-child(3),
#tab-movements .data-table td:nth-child(3) {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== INVOICE TAB — BUTTONS 10% SMALLER ===================== */
#tab-invoices .btn {
  padding: 7px 14px;
  font-size: 10.8px;
}

#tab-invoices .btn-sm {
  padding: 4px 9px;
  font-size: 10px;
}

/* Icon-only action buttons in the Actions column — fixed square, no wasted space */
#tab-invoices td .btn-sm {
  padding: 4px 7px;
  font-size: inherit;
  min-width: 28px;
  justify-content: center;
}



/* ===================== INVENTORY TABLE — HORIZONTAL SCROLL ON SMALL SCREENS ===================== */
/* Same pattern as the movements table: let content dictate column widths,
   scroll horizontally instead of cramming text into narrow columns.
   No calculations or JS are touched — pure CSS only.                          */

#inventory-table {
  width: auto;          /* do NOT stretch to fill — size to content          */
  min-width: 100%;      /* but still fill the container when there's room    */
  table-layout: auto;   /* browser sizes each column to its widest cell      */
}

/* Prevent every cell from wrapping so the table grows wide, not tall */
#inventory-table th,
#inventory-table td {
  white-space: nowrap;
}

/* SKU column (col 1) — compact, never wrap */
#inventory-table th:nth-child(1),
#inventory-table td:nth-child(1) {
  min-width: 120px;
}

/* Description column (col 2) — allow wrapping, but guarantee enough room */
#inventory-table th:nth-child(2),
#inventory-table td:nth-child(2) {
  white-space: normal;   /* can wrap when space exists  */
  min-width: 200px;      /* never narrower than 200 px  */
  max-width: 320px;      /* stop it from growing too wide on large screens  */
}

/* ===================== NOTES TAB ===================== */
.note-tool-btn {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-primary);
  font-size: inherit;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
  white-space: nowrap;
}
.note-tool-btn:hover { background: var(--bg-card); }
.note-tool-btn.active {
  background: #fef08a;
  color: #000;
  border-color: #ca8a04;
}

/* Note list items */
.note-list-item {
  padding: 10px 10px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: 4px;
  transition: background .15s, border-color .15s;
}
.note-list-item:hover { background: var(--bg-elevated); border-color: var(--border); }
.note-list-item.active { background: var(--bg-elevated); border-color: var(--accent); }
.note-list-title   { font-size: inherit; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.note-list-preview { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.note-list-dt      { font-size: 10px; color: var(--text-muted); opacity: .7; }

/* Customer group header */
.notes-group-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  padding: 10px 10px 4px;
}

/* Checklist rows inside note editor */
.nc-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0;
}
.nc-box {
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: transform .1s;
}
.nc-box:hover { transform: scale(1.2); }
.nc-box[data-done="1"] { color: var(--accent); }
/* ===================== KINEOMED SPECIFIC STYLES ===================== */

.badge-quote { background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.4); color: #a5a0ff; }
.badge-jobcard { background: rgba(0,201,167,0.12); border: 1px solid rgba(0,201,167,0.35); color: #00c9a7; }
.badge-invoice { background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.35); color: #f59e0b; }
.badge-draft { color: var(--text-muted); }
.badge-sent { color: var(--accent); }
.badge-accepted { color: var(--success); }
.badge-paid { color: var(--success); background: rgba(64,217,164,0.1); }
.badge-overdue { color: var(--danger); background: rgba(255,94,108,0.1); }
.badge-open { color: var(--teal); }
.badge-completed { color: var(--success); }

.document-editor-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.document-editor-layout {
  display: block;
  width: 100%;
}
.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.doc-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.doc-items-table th {
  text-align: left;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}
.doc-items-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
}
.line-item-row {
  transition: background 0.12s;
}
.line-item-row:hover { background: var(--bg-hover); }
.totals-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  text-align: right;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.stmt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.stmt-table th {
  text-align: left;
  padding: 10px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
}
.stmt-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.customer-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.notes-layout {
  display: flex;
  height: 100%;
  gap: 16px;
}
.notes-sidebar {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  padding-right: 16px;
}
.notes-editor-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.notes-editor-toolbar {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  align-items: center;
}
#note-editor {
  flex: 1;
  outline: none;
  font-size: inherit;
  line-height: 1.6;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.progress-bar { background: var(--bg-elevated); border-radius: 4px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width 0.3s; }
.progress-fill.danger { background: var(--danger); }
.progress-fill.success { background: var(--success); }

.commission-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.commission-table th {
  text-align: left;
  padding: 10px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.commission-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.config-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.logo-placeholder {
  width: 100px;
  height: 100px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 24px;
}

#app-tooltip {
  position: absolute;
  background: rgba(15,18,30,0.95);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 240px;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  z-index: 99999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  display: none;
}
#app-tooltip.visible {
  opacity: 1;
  display: block;
}

.sidebar-nav {
  overflow-y: auto;
}

.d-none { display: none !important; }

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 580px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.2s ease;
}

#login-overlay,
#login-screen,
.login-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 380px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  perspective: 800px;
}

/* ===================== COLLAPSIBLE SIDEBAR ===================== */
.sidebar-collapse-btn {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px;
  cursor: pointer;
  font-size: 12px;
  text-align: right;
  padding-right: 12px;
  transition: color 0.2s;
}
.sidebar-collapse-btn:hover { color: var(--accent); }

.sidebar.collapsed {
  width: 52px;
  min-width: 52px;
}
.sidebar.collapsed .sidebar-logo-text,
.sidebar.collapsed .logo-title,
.sidebar.collapsed .logo-sub,
.sidebar.collapsed .sidebar-footer-text,
.sidebar.collapsed .sidebar-footer-version,
.sidebar.collapsed .theme-swatches,
.sidebar.collapsed .theme-toggle {
  display: none;
}
.sidebar.collapsed .nav-btn {
  justify-content: center;
  padding: 10px 0;
}
.sidebar.collapsed .nav-btn .nav-text {
  display: none;
}
.sidebar.collapsed #sidebar-collapse-icon {
  content: '▶';
}
.sidebar.collapsed .sidebar-logo {
  justify-content: center;
}
.sidebar.collapsed #sidebar-logo-img {
  width: 36px;
  height: 36px;
  max-height: 36px;
}
.sidebar {
  transition: width 0.25s ease, min-width 0.25s ease;
}
.main-content {
  transition: none;
}

/* ===== Line Items Table (Document Editor) ===== */
.de-items-table {
  table-layout: fixed;
  width: 100%;
}
.de-items-table th,
.de-items-table td {
  overflow: hidden;
  vertical-align: top;
  padding: 6px 6px;
}
/* Description column — allow text to wrap */
.de-items-table td:nth-child(2),
.de-items-table th:nth-child(2) {
  white-space: normal;
  word-break: break-word;
  overflow: visible;
}
/* Jobcard / Quote column visibility toggle */
.de-items-table .jc-col   { display: none; }
.de-items-table .price-col { display: table-cell; }
.de-items-table.jc-mode .jc-col    { display: table-cell; }
.de-items-table.jc-mode .price-col { display: none; }
.de-items-table td input,
.de-items-table td select {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
/* Description textarea — auto-grow with content */
.de-items-table td:nth-child(2) textarea {
  min-height: 32px;
  height: auto;
  resize: vertical;
  white-space: pre-wrap;
}

/* Totals panel — right-aligned, fixed width */
.totals-panel {
  margin-left: auto;
  max-width: 360px;
  text-align: right;
}
.totals-panel > div {
  padding: 3px 0;
}


/* ==================== CONFIG SUB-TABS ==================== */
.config-subtabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}
.cfg-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    white-space: nowrap;
}
.cfg-tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}
.cfg-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--bg-elevated);
}
.cfg-panel {
    display: none;
}
.cfg-panel.active {
    display: block;
}

/* ==================== MISSING BUTTON VARIANTS ==================== */
.btn-info {
  background: linear-gradient(135deg, #0288d1, #0097a7);
  color: #fff;
}
.btn-info:hover { transform: translateY(-1px); }

/* ==================== BADGES ==================== */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  background: var(--bg-hover);
  color: var(--text-secondary);
}
.badge-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
}
.badge-success {
  background: linear-gradient(135deg, #1e7e34, #28a745);
  color: #fff;
}
.badge-danger {
  background: linear-gradient(135deg, var(--danger), #c0392b);
  color: #fff;
}

/* ==================== DOCUMENT TYPE TABS ==================== */
.doc-type-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 16px;
    margin-top: 4px;
}
.doc-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 10px 22px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s, border-color 0.2s;
    border-radius: 4px 4px 0 0;
}
.doc-tab-btn:hover {
    color: var(--text);
    background: var(--hover-bg, rgba(255,255,255,0.05));
}
.doc-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 700;
}

/* ==================== SUCCESS BUTTON ==================== */
.btn-success {
    background: #2e7d32;
    color: #fff;
    border: none;
}
.btn-success:hover {
    background: #1b5e20;
}

/* ==================== PRODUCT CATEGORIES ==================== */

/* Category header rows in the products table */
.product-category-header td {
    padding: 10px 12px;
    vertical-align: middle;
}
.product-category-header td:first-child {
    padding: 10px 8px;
    text-align: center;
}

/* Product rows have a left-border accent matching their category */
.product-row td {
    vertical-align: middle;
}
.product-row td:first-child {
    text-align: center;
    padding: 8px;
}

/* Color swatch picker in category modal */
.color-swatch-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.color-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
    transition: transform 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.color-swatch:hover {
    transform: scale(1.18);
}
.color-swatch.selected {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 2px 8px rgba(0,0,0,0.5);
    transform: scale(1.12);
}

/* Bulk action toolbar */
#products-bulk-toolbar {
    background: var(--bg-elevated, #1e2130);
    border: 1px solid var(--accent, #7c3aed);
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    animation: slideDown 0.15s ease;
}
#products-bulk-count {
    color: var(--accent, #7c3aed);
    font-weight: 700;
    font-size: 13px;
    margin-right: 4px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==================== PRODUCT CATEGORY CARDS ==================== */
#products-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 24px;
}

.product-cat-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.07);
}

.product-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    min-height: 46px;
}

.product-cat-body {
    background: var(--bg-card, #181c2a);
    overflow-x: auto;
}

.product-cat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.product-cat-table thead tr {
    background: var(--bg-elevated, #1e2130);
}
.product-cat-table thead th {
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #888);
    border-bottom: 1px solid var(--border, #2a2f45);
}
.product-cat-table tbody tr {
    border-bottom: 1px solid var(--border, #2a2f45);
    transition: background 0.12s;
}
.product-cat-table tbody tr:last-child {
    border-bottom: none;
}
.product-cat-table tbody tr:hover {
    background: rgba(255,255,255,0.04);
}
.product-cat-table tbody td {
    padding: 9px 12px;
    vertical-align: middle;
}

/* ==================== PRODUCT CARD COLUMN ALIGNMENT ==================== */
.product-cat-table {
    table-layout: fixed;
    width: 100%;
}

/* Checkbox */
.product-cat-table th:nth-child(1),
.product-cat-table td:nth-child(1) { width: 40px; text-align: center; }

/* SKU */
.product-cat-table th:nth-child(2),
.product-cat-table td:nth-child(2) { width: 130px; word-break: break-all; }

/* Description — fills remaining space */
.product-cat-table th:nth-child(3),
.product-cat-table td:nth-child(3) { /* auto */ overflow: hidden; text-overflow: ellipsis; }

/* Cost Price (4th if visible, otherwise columns shift — handled below) */
/* Excl VAT */
.product-cat-table th:nth-last-child(3),
.product-cat-table td:nth-last-child(3) { width: 110px; text-align: right; white-space: nowrap; }

/* Incl VAT */
.product-cat-table th:nth-last-child(2),
.product-cat-table td:nth-last-child(2) { width: 110px; text-align: right; white-space: nowrap; }

/* Actions */
.product-cat-table th:nth-last-child(1),
.product-cat-table td:nth-last-child(1) { width: 130px; text-align: right; white-space: nowrap; }

/* ==================== LIGHT MODE: PRODUCT CARD FIX ==================== */
/* ── Product cards: all light themes ─────────────────────────────────────── */
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],
    [data-theme="coral"],[data-theme="amber"],[data-theme="rose"],
    [data-theme="violet"]) .product-cat-body {
    background: #ffffff;
}
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],
    [data-theme="coral"],[data-theme="amber"],[data-theme="rose"],
    [data-theme="violet"]) .product-cat-card {
    border: 1px solid #dde1ea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],
    [data-theme="coral"],[data-theme="amber"],[data-theme="rose"],
    [data-theme="violet"]) .product-cat-table thead tr {
    background: #f0f2f7;
}
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],
    [data-theme="coral"],[data-theme="amber"],[data-theme="rose"],
    [data-theme="violet"]) .product-cat-table thead th {
    color: #444;
    border-bottom: 1px solid #dde1ea;
}
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],
    [data-theme="coral"],[data-theme="amber"],[data-theme="rose"],
    [data-theme="violet"]) .product-cat-table tbody tr {
    border-bottom: 1px solid #eaecf2;
    background: transparent;
}
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],
    [data-theme="coral"],[data-theme="amber"],[data-theme="rose"],
    [data-theme="violet"]) .product-cat-table tbody tr:hover {
    background: #f0f2f7;
}
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],
    [data-theme="coral"],[data-theme="amber"],[data-theme="rose"],
    [data-theme="violet"]) .product-cat-table tbody td {
    color: #1a1a2e;
    background: transparent;
}
:is([data-theme="light"],[data-theme="blue"],[data-theme="green"],
    [data-theme="coral"],[data-theme="amber"],[data-theme="rose"],
    [data-theme="violet"]) #products-bulk-toolbar {
    background: #f0f2f7;
    border-color: var(--accent, #7c3aed);
}

/* ==================== TAB ORDER DRAG LIST ==================== */
.tab-order-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: var(--bg-elevated, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    cursor: grab;
    user-select: none;
    font-size: 13px;
    transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.tab-order-item:hover {
    background: var(--bg-hover, #f8f8fc);
    border-color: var(--accent, #7c3aed);
}
.tab-order-item.dragging {
    opacity: 0.35;
    cursor: grabbing;
}
.tab-order-item.drag-over {
    border-color: var(--accent, #7c3aed);
    box-shadow: 0 0 0 2px var(--accent-glow, rgba(124,58,237,0.15));
}
.tab-order-handle {
    font-size: 15px;
    color: var(--text-muted, #94a3b8);
    cursor: grab;
    flex-shrink: 0;
}
.tab-order-label {
    flex: 1;
}

/* ── Drag-and-drop line item reordering ───────────────────────────────────── */
.drag-handle {
    cursor: grab;
    color: var(--text-muted, #9ca3af);
    padding: 0 6px;
    user-select: none;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    width: 20px;
}
.drag-handle:active { cursor: grabbing; }
.row-dragging { opacity: 0.4; }
.row-drag-over > td { border-top: 2px solid var(--accent, #3b82f6) !important; }

/* ── Admin-only columns (hidden for staff) ─────────────────────────────────── */
body.role-staff .admin-only-col { display: none; }

/* -- Internal notes (staff only, never printed) ----------------------------- */
#docs-table td.docs-internal-notes {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
    font-style: italic;
}
.doc-card.internal-notes-card {
    border: 1px dashed rgba(245, 158, 11, 0.6);
    background: rgba(245, 158, 11, 0.05);
}

/* -- Hide up/down spinner arrows on ALL number inputs (global) --------------- */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}
