/* ==========================================================================
   PAMIR.AI DESIGN SYSTEM & EXCEL MATRIX STYLES
   Aesthetic: Retro-Futuristic Hardware + Tactile Cyberpunk + Precision Grid
   ========================================================================== */

:root {
  /* Dark Mode Tokens (Default) */
  --bg-black: #09090b;
  --bg-surface-1: #111114;
  --bg-surface-2: #16161a;
  --bg-surface-3: #1f1f24;
  --bg-hover: #26262d;
  --bg-active: #2e2e36;
  
  --border-subtle: #222227;
  --border-medium: #2e2e36;
  --border-strong: #3f3f4a;
  
  --text-main: #f4f4f5;
  --text-muted: #8e8e98;
  --text-dim: #5c5c66;
  
  /* Pamir Brand Colors */
  --pamir-orange: #FF5C00;
  --pamir-orange-hover: #ff7524;
  --pamir-orange-glow: rgba(255, 92, 0, 0.28);
  --pamir-orange-subtle: rgba(255, 92, 0, 0.12);
  
  /* Status Colors */
  --status-active: #10b981;
  --status-active-glow: rgba(16, 185, 129, 0.25);
  --status-prov: #38bdf8;
  --status-idle: #eab308;
  --status-alert: #f43f5e;
  
  /* Typography Tokens */
  --font-pixel: 'Silkscreen', monospace;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout Sizing */
  --nav-height: 56px;
  --footer-height: 38px;
  --sidebar-width: 420px;
  --sidebar-collapsed-width: 0px;
  --formula-bar-height: 42px;
  
  /* Table Density */
  --cell-padding-y: 9px;
  --cell-padding-x: 14px;
  --cell-font-size: 13px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   LIGHT THEME TOKENS (Industrial White Ceramic & Aluminum Aesthetic)
   ========================================================================== */
[data-theme="light"] {
  --bg-black: #f5f5f7;
  --bg-surface-1: #ffffff;
  --bg-surface-2: #f0f0f4;
  --bg-surface-3: #e5e5eb;
  --bg-hover: #e8e8ee;
  --bg-active: #dddee4;
  
  --border-subtle: #e2e2e8;
  --border-medium: #d4d4dc;
  --border-strong: #a8a8b6;
  
  --text-main: #141418;
  --text-muted: #5e5e6b;
  --text-dim: #8b8b98;
  
  --pamir-orange: #FF5C00;
  --pamir-orange-hover: #e05200;
  --pamir-orange-glow: rgba(255, 92, 0, 0.2);
  --pamir-orange-subtle: rgba(255, 92, 0, 0.08);
  
  --status-active: #059669;
  --status-active-glow: rgba(5, 150, 105, 0.2);
  --status-prov: #0284c7;
  --status-idle: #d97706;
  --status-alert: #e11d48;
}

[data-theme="light"] .brand-name {
  color: #141418;
}

[data-theme="light"] .node-badge {
  color: #141418;
}

[data-theme="light"] .modal-overlay {
  background: rgba(240, 240, 245, 0.75);
}

[data-theme="light"] .col-header {
  color: #4b4b58;
}

[data-theme="light"] .pixel-prefix {
  background: #141418;
  color: #ffffff;
}

[data-theme="light"] .handling-option.active {
  background: rgba(255, 92, 0, 0.12);
  border-color: var(--pamir-orange);
  color: #141418;
}

[data-theme="light"] .handling-option.active .check-text {
  color: #141418;
  font-weight: 600;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection Color */
::selection {
  background-color: var(--pamir-orange);
  color: #ffffff;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-black);
  border-left: 1px solid var(--border-subtle);
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.top-nav {
  height: var(--nav-height);
  width: 100%;
  background-color: var(--bg-surface-1);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 100;
  position: relative;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-toggle-btn {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  border-radius: 2px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.sidebar-toggle-btn:hover {
  border-color: var(--pamir-orange);
  color: var(--pamir-orange);
  background: var(--bg-hover);
}

.sidebar-toggle-btn.active {
  background: var(--pamir-orange-subtle);
  border-color: var(--pamir-orange);
  color: var(--pamir-orange);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-box {
  width: 30px;
  height: 30px;
  background-color: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
}
.brand-logo:hover .logo-box {
  border-color: var(--pamir-orange);
  transform: rotate(90deg);
}

.logo-icon {
  width: 18px;
  height: 18px;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-name {
  font-family: var(--font-pixel);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--pamir-orange);
  background: var(--pamir-orange-subtle);
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid rgba(255, 92, 0, 0.3);
  letter-spacing: 0.5px;
}

.system-status-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--status-active);
  box-shadow: 0 0 8px var(--status-active);
  animation: pulseGreen 2s infinite ease-in-out;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nav Add Node Button */
.nav-add-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 5px 10px;
  cursor: pointer;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.nav-add-btn svg {
  color: var(--pamir-orange);
}

.nav-add-btn:hover {
  border-color: var(--pamir-orange);
  background: var(--bg-hover);
  color: #fff;
  box-shadow: 0 0 8px var(--pamir-orange-glow);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 5px 10px;
  cursor: pointer;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--pamir-orange);
  background: var(--bg-hover);
}

.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pamir-orange);
}

.live-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
}

.counter-tag {
  color: var(--text-dim);
}

.counter-value {
  color: var(--pamir-orange);
  font-weight: 700;
}

/* Authentication & Profile */
.auth-wrapper {
  display: flex;
  align-items: center;
}

.btn-auth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--pamir-orange);
  color: #ffffff;
  border: none;
  padding: 7px 16px;
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-auth:hover {
  background-color: var(--pamir-orange-hover);
  box-shadow: 0 0 14px var(--pamir-orange-glow);
  transform: translateY(-1px);
}

.pixel-prefix {
  font-family: var(--font-pixel);
  color: #000;
  background: #fff;
  padding: 0 3px;
  font-size: 10px;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  padding: 4px 8px 4px 6px;
}

.avatar-chip {
  width: 24px;
  height: 24px;
  background: var(--pamir-orange);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-handle {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.user-role {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--pamir-orange);
  letter-spacing: 0.5px;
}

.btn-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  transition: color var(--transition-fast);
}
.btn-logout:hover {
  color: var(--status-alert);
}

/* ==========================================================================
   APP LAYOUT (SIDE MENU + MAIN VIEW)
   ========================================================================== */
.app-layout {
  display: flex;
  height: calc(100vh - var(--nav-height) - var(--footer-height));
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   SIDE MENU (ALL FUNCTIONAL MENU)
   ========================================================================== */
.side-menu {
  width: var(--sidebar-width);
  height: 100%;
  background-color: var(--bg-surface-1);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 50;
  transition: width var(--transition-normal), transform var(--transition-normal);
}

.side-menu.collapsed {
  width: var(--sidebar-collapsed-width) !important;
  overflow: hidden;
  border-right: none;
}

.side-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}

.side-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.side-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.side-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.side-width-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.side-width-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--pamir-orange);
  background: var(--bg-hover);
}

.side-width-toggle-btn.is-wide {
  color: var(--pamir-orange);
  border-color: var(--pamir-orange);
  background: var(--pamir-orange-subtle);
  box-shadow: 0 0 8px var(--pamir-orange-glow);
}

.side-collapse-btn {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 2px;
}
.side-collapse-btn:hover {
  color: var(--text-main);
  border-color: var(--pamir-orange);
}

/* ==========================================================================
   SIDE MENU RESIZER SPLITTER BAR
   ========================================================================== */
.side-resizer {
  width: 10px;
  margin-left: -5px;
  margin-right: -5px;
  position: relative;
  z-index: 60;
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
  background: transparent;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.side-resizer:hover,
.side-resizer.is-active,
body.is-resizing-sidebar .side-resizer {
  background: rgba(255, 140, 0, 0.08);
}

.side-resizer-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4.5px;
  width: 1px;
  background: var(--border-subtle);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.side-resizer:hover .side-resizer-line,
.side-resizer.is-active .side-resizer-line,
body.is-resizing-sidebar .side-resizer-line {
  background: var(--pamir-orange);
  box-shadow: 0 0 6px var(--pamir-orange-glow);
  width: 2px;
  left: 4px;
}

.side-resizer-grip {
  position: relative;
  z-index: 2;
  width: 6px;
  height: 28px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 3px 0;
  opacity: 0.6;
  transition: all var(--transition-fast);
  pointer-events: none;
}

.side-resizer:hover .side-resizer-grip,
.side-resizer.is-active .side-resizer-grip,
body.is-resizing-sidebar .side-resizer-grip {
  opacity: 1;
  border-color: var(--pamir-orange);
  background: var(--bg-surface-3);
  box-shadow: 0 0 8px rgba(255, 140, 0, 0.35);
}

.side-resizer-grip span {
  display: block;
  width: 2px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  pointer-events: none;
}

.side-resizer:hover .side-resizer-grip span,
.side-resizer.is-active .side-resizer-grip span {
  background: var(--pamir-orange);
}

.side-resizer-badge {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  background: var(--bg-surface-3);
  border: 1px solid var(--pamir-orange);
  color: var(--pamir-orange);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform-origin: left center;
  transition: opacity 0.12s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
  z-index: 100;
}

body.is-resizing-sidebar .side-resizer-badge {
  opacity: 1;
}

body.is-resizing-sidebar {
  cursor: col-resize !important;
  user-select: none !important;
}

body.is-resizing-sidebar * {
  cursor: col-resize !important;
  user-select: none !important;
}

body.is-resizing-sidebar .side-menu {
  transition: none !important;
}

.side-menu.collapsed + .side-resizer {
  display: none !important;
}

/* ==========================================================================
   SIDE MENU TABS & JOB DETAILS INSPECTOR
   ========================================================================== */
.side-tabs-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.side-tab-pill {
  background: var(--bg-surface-3);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.side-tab-pill:hover {
  border-color: var(--pamir-orange);
  color: var(--text-main);
  background: var(--bg-hover);
}

.side-tab-pill.active {
  background: var(--pamir-orange-subtle);
  border-color: var(--pamir-orange);
  color: var(--pamir-orange);
}

.tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: all var(--transition-fast);
}

.tab-dot.active {
  background: var(--pamir-orange);
  box-shadow: 0 0 6px var(--pamir-orange-glow);
}

.tab-panel.hidden {
  display: none !important;
}

/* Active Job Summary Card */
.job-summary-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--pamir-orange);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customs-summary-card {
  border-left-color: #00d2ff;
}

.job-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.job-id-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.job-lead {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--pamir-orange);
}

.job-id-text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.job-badges {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.badge-mode {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-mtype {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-indicator-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.job-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-item.full {
  grid-column: span 2;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.meta-value {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Inspector Sections */
.inspector-section {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  padding: 10px;
  gap: 10px;
}

.section-hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.checkbox-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  user-select: none;
  transition: color var(--transition-fast);
}

.checkbox-inline-label:hover {
  color: var(--text-main);
}

.checkbox-inline-label input[type="checkbox"],
.handling-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-check-box {
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

input[type="checkbox"]:checked + .custom-check-box {
  background: var(--pamir-orange);
  border-color: var(--pamir-orange);
}

input[type="checkbox"]:checked + .custom-check-box::after {
  content: '';
  width: 3px;
  height: 7px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.dims-unknown-banner {
  background: rgba(234, 179, 8, 0.12);
  border: 1px dashed rgba(234, 179, 8, 0.4);
  color: #eab308;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 6px 10px;
  letter-spacing: 0.5px;
}

.dims-disabled {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(0.6);
}

/* Tables inside Inspector */
.table-scroll-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-2);
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}

.hs-scroll-container {
  max-height: 220px;
  overflow-y: auto;
}

.inspector-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.inspector-table thead th {
  background: var(--bg-surface-3);
  color: var(--text-dim);
  font-size: 9px;
  font-weight: 700;
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-medium);
  border-right: 1px solid var(--border-subtle);
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.inspector-table thead th.th-calc {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.inspector-table thead th.th-del,
.inspector-table tbody td.td-del {
  width: 24px;
  min-width: 24px;
  padding: 2px 4px;
  text-align: center;
  border-right: none;
}

.inspector-table tbody td {
  padding: 3px 4px;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.inspector-table input {
  width: 100%;
  min-width: 48px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 5px;
  outline: none;
  transition: all var(--transition-fast);
}

.inspector-table input:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-1);
}

.inspector-table input:focus {
  border-color: var(--pamir-orange);
  background: var(--bg-surface-1);
  box-shadow: 0 0 0 1px var(--pamir-orange);
}

.inspector-table input[type="number"]::-webkit-inner-spin-button,
.inspector-table input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.inspector-table input[type="number"] {
  -moz-appearance: textfield;
}

.td-calc {
  background: rgba(56, 189, 248, 0.05);
  color: #7dd3fc;
  font-weight: 600;
  padding: 4px 7px;
  font-size: 11px;
}

.table-totals-row {
  background: var(--bg-surface-3);
  font-weight: 700;
  border-top: 1px solid var(--border-medium);
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.t-label {
  font-size: 9px;
  color: var(--text-dim);
  text-align: right;
  padding: 6px 8px;
  letter-spacing: 0.5px;
}

.t-num {
  color: var(--text-main);
  padding: 6px 7px;
  font-size: 11px;
}

.t-calc {
  color: #38bdf8;
  padding: 6px 7px;
  font-size: 11px;
}

.btn-del-row {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
  transition: color var(--transition-fast);
}

.btn-del-row:hover {
  color: var(--status-alert);
}

.table-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-subtle-action {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-subtle-action:hover {
  border-color: var(--pamir-orange);
  color: var(--pamir-orange);
  background: var(--bg-hover);
}

.btn-subtle-action.highlight {
  border-color: rgba(255, 92, 0, 0.4);
  color: var(--pamir-orange);
}

.btn-subtle-action.highlight:hover {
  background: var(--pamir-orange);
  color: #ffffff;
}

/* Handling Types Grid */
.handling-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.handling-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  padding: 6px 8px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-main);
  user-select: none;
  transition: all var(--transition-fast);
}

.handling-option:hover {
  border-color: var(--border-medium);
  background: var(--bg-hover);
}

.handling-option.active {
  border-color: var(--pamir-orange);
  background: var(--pamir-orange-subtle);
  color: var(--text-main);
}

.handling-option.active .check-text {
  color: var(--text-main);
  font-weight: 600;
}

[data-theme="light"] .handling-option.active {
  border-color: var(--pamir-orange);
  background: rgba(255, 92, 0, 0.12);
  color: #141418 !important;
}

[data-theme="light"] .handling-option.active .check-text {
  color: #141418 !important;
  font-weight: 600;
}

.handling-option.handling-featured {
  grid-column: span 2;
  font-weight: 600;
  border-left: 2px solid var(--pamir-orange);
}

/* Customs dropdown & Pre-lodge section */
#secCustomsPreLodge {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customs-dropdown-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.customs-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sub-tag-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--pamir-orange);
  letter-spacing: 0.5px;
}

/* Parties Section */
.party-pills-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.party-pill-btn {
  background: var(--bg-surface-3);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: all var(--transition-fast);
}

.party-pill-btn:hover {
  color: var(--text-main);
  border-color: #00d2ff;
}

.party-pill-btn.active {
  background: rgba(0, 210, 255, 0.15);
  border-color: #00d2ff;
  color: #00d2ff;
  box-shadow: 0 0 6px rgba(0, 210, 255, 0.25);
}

.party-form-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  padding: 10px;
}

.party-active-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #00d2ff;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--border-subtle);
}

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

.customs-form-row-2 {
  display: flex;
  gap: 8px;
}

.customs-field-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.customs-field-input {
  width: 100%;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 11px;
  padding: 5px 8px;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.customs-field-input.font-mono {
  font-family: var(--font-mono);
}

.customs-field-input:focus {
  border-color: #00d2ff;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
}

/* Schedule Section */
.schedule-context-badges {
  display: flex;
  align-items: center;
  gap: 4px;
}

.schedule-form-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-hdr-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mode-tag-pill {
  font-family: var(--font-mono);
  font-size: 8px;
  background: rgba(0, 210, 255, 0.12);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.4px;
}

.dir-tag-pill {
  font-family: var(--font-mono);
  font-size: 8px;
  background: var(--pamir-orange-subtle);
  color: var(--pamir-orange);
  border: 1px solid var(--pamir-orange);
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.4px;
}

.flag-input-combo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flag-name-display {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.hidden-by-mode {
  display: none !important;
}

/* Customs Section Form & VAT Adjustment */
.customs-section-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customs-field-select {
  width: 100%;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 20px 2px 6px;
  height: 24px;
  line-height: 18px;
  outline: none;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.customs-field-select:focus {
  border-color: #00d2ff;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
}

.customs-field-select option {
  background: var(--bg-surface-2);
  color: var(--text-main);
}

.char-limit-hint {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-dim);
  background: var(--bg-surface-3);
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.4px;
}

.calc-formula-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.4px;
  cursor: help;
}

.vat-adjustment-card {
  background: rgba(0, 210, 255, 0.03);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 4px 8px;
  border-radius: 2px;
  display: flex;
  align-items: center;
}

.vat-adj-single-row {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  white-space: nowrap;
}

.vat-adj-single-row .customs-field-label {
  margin: 0;
  flex-shrink: 0;
}

.vat-adj-single-row .calc-formula-tag {
  flex-shrink: 0;
}

.vat-adj-display-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.vat-adj-currency {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #00d2ff;
}

.vat-adj-input {
  font-weight: 700 !important;
  font-size: 11px !important;
  color: #00d2ff !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border-color: rgba(0, 210, 255, 0.3) !important;
  width: 72px !important;
  padding: 0 5px !important;
  height: 23px !important;
  line-height: 23px !important;
  text-align: right;
  letter-spacing: 0.5px;
  cursor: default;
}

.vat-adj-basis {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.4px;
  margin-left: 6px;
}

/* HS Code format badge */
.hs-format-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  background: var(--bg-surface-3);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   COLLECTION & DELIVERY (C&D) NOTES TAB STYLES
   ========================================================================== */
.cd-summary-card {
  border-left: 3px solid #10b981;
}

.cd-accent-text {
  color: #10b981 !important;
  font-weight: 700;
}

.btn-subtle-cd {
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #10b981 !important;
}

.btn-subtle-cd:hover {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10b981 !important;
  color: #fff !important;
}

.cd-count-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 6px;
  letter-spacing: 0.5px;
}

.selected-cd-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.cd-table-container {
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-2);
  border-radius: 2px;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: auto;
}

.cd-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 10px;
  min-width: 580px;
}

.cd-table th {
  background: var(--bg-surface-3);
  color: var(--text-muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-medium);
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}

.cd-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  white-space: nowrap;
  vertical-align: middle;
}

.cd-table tbody tr {
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cd-table tbody tr:hover {
  background: var(--bg-hover);
}

.cd-table tbody tr.cd-row-selected {
  background: rgba(16, 185, 129, 0.12);
  outline: 1px solid rgba(16, 185, 129, 0.4);
}

.cd-table tbody tr.cd-row-selected td:first-child {
  border-left: 3px solid #10b981;
  font-weight: 700;
  color: #10b981;
}

.cd-row-download-btn {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  width: 26px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cd-row-download-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
}

.cd-empty-state {
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cd-empty-msg {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.btn-create-first-cd {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-create-first-cd:hover {
  background: #10b981;
  color: #000;
}

.cd-detail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cd-action-btn {
  background: var(--bg-surface-3);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.4px;
  transition: all var(--transition-fast);
}

.cd-action-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.btn-cd-download {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.btn-cd-download:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #fff;
}

.cd-detail-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cd-detail-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  padding: 10px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cd-card-subhdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.5px;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--border-subtle);
}

.cd-status-pill {
  font-size: 8.5px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.cd-tag-marker {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-surface-3);
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.4px;
}

.cd-mono-input {
  font-family: var(--font-mono) !important;
  color: #10b981 !important;
  font-weight: 700;
}

.cd-detail-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.btn-save-cd {
  flex: 1;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.btn-save-cd:hover {
  background: #10b981;
  color: #000;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.btn-delete-cd {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #f43f5e;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.4px;
  transition: all var(--transition-fast);
}

.btn-delete-cd:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: #f43f5e;
  color: #fff;
}

/* ==========================================================================
   FINANCE TAB (P&L, CDN, CCN, SDN, SCN, DETAIL) STYLES
   ========================================================================== */
.fin-summary-card {
  border-left: 3px solid #f59e0b;
}

.fin-accent-text {
  color: #f59e0b !important;
  font-weight: 700;
}

.btn-subtle-fin {
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #f59e0b !important;
}

.btn-subtle-fin:hover {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: #f59e0b !important;
  color: #fff !important;
}

.fin-badge-pnl {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.fin-badge-pnl.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.fin-currency-indicator {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--text-dim);
  letter-spacing: 0.4px;
}

/* P&L Grid & KPI Cards */
.fin-pnl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.fin-kpi-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  border-radius: 2px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  overflow: hidden;
}

.fin-kpi-card.kpi-revenue {
  border-left: 3px solid #3b82f6;
}

.fin-kpi-card.kpi-cost {
  border-left: 3px solid #ef4444;
}

.fin-kpi-card.kpi-profit {
  grid-column: 1 / -1;
  border-left: 3px solid #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-surface-2) 100%);
  padding: 10px 12px;
}

.fin-kpi-card.kpi-profit.negative {
  border-left: 3px solid #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-surface-2) 100%);
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.6px;
}

.kpi-amount {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.kpi-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profit-split-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-amount-lg {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: #10b981;
  letter-spacing: -0.4px;
}

.fin-kpi-card.kpi-profit.negative .kpi-amount-lg,
.fin-kpi-card.kpi-profit.negative .margin-amount-lg {
  color: #ef4444;
}

.profit-margin-box {
  text-align: right;
}

.margin-amount-lg {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: #10b981;
}

/* Category Filter Pills */
.fin-category-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding: 2px 0 6px 0;
  scrollbar-width: thin;
}

.fin-cat-pill {
  background: var(--bg-surface-3);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.fin-cat-pill:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.fin-cat-pill.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #f59e0b;
}

.fin-pill-count {
  font-size: 8px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 2px;
}

.fin-cat-pill.active .fin-pill-count {
  background: rgba(245, 158, 11, 0.25);
  color: #fff;
}

/* Financial Table */
.fin-table-container {
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-2);
  border-radius: 2px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: auto;
}

.fin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 10px;
  min-width: 580px;
}

.fin-table th {
  background: var(--bg-surface-3);
  color: var(--text-muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-medium);
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}

.fin-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  white-space: nowrap;
  vertical-align: middle;
}

.fin-table tbody tr {
  cursor: pointer;
  transition: background var(--transition-fast);
}

.fin-table tbody tr:hover {
  background: var(--bg-hover);
}

.fin-table tbody tr.fin-row-selected {
  background: rgba(245, 158, 11, 0.12);
  outline: 1px solid rgba(245, 158, 11, 0.4);
}

.fin-table tbody tr.fin-row-selected td:first-child {
  border-left: 3px solid #f59e0b;
}

/* Badges for Note Types */
.badge-cdn {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-weight: 700;
  font-size: 8px;
  padding: 1px 5px;
  border-radius: 2px;
  display: inline-block;
  letter-spacing: 0.4px;
}

.badge-ccn {
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-weight: 700;
  font-size: 8px;
  padding: 1px 5px;
  border-radius: 2px;
  display: inline-block;
  letter-spacing: 0.4px;
}

.badge-sdn {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 700;
  font-size: 8px;
  padding: 1px 5px;
  border-radius: 2px;
  display: inline-block;
  letter-spacing: 0.4px;
}

.badge-scn {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-weight: 700;
  font-size: 8px;
  padding: 1px 5px;
  border-radius: 2px;
  display: inline-block;
  letter-spacing: 0.4px;
}

.fin-status-pill {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.4px;
  display: inline-block;
}

.fin-status-pill.status-issued {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.fin-status-pill.status-approved {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.fin-status-pill.status-pending {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.fin-status-pill.status-paid {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.fin-status-pill.status-cancelled {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.fin-row-download-btn {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  width: 26px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fin-row-download-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #f59e0b;
}

.fin-empty-state {
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fin-empty-msg {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.btn-create-first-fin {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  color: #f59e0b;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-create-first-fin:hover {
  background: #f59e0b;
  color: #000;
}

/* Detail Section */
.selected-fin-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.fin-detail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fin-action-btn {
  background: var(--bg-surface-3);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.4px;
  transition: all var(--transition-fast);
}

.fin-action-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.btn-fin-download {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.btn-fin-download:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fff;
}

.fin-detail-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fin-detail-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  padding: 10px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fin-card-subhdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 0.5px;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--border-subtle);
}

.fin-type-pill {
  font-size: 8.5px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.fin-currency-tag {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-surface-3);
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.4px;
}

.fin-mono-input {
  font-family: var(--font-mono) !important;
  color: #f59e0b !important;
  font-weight: 700;
}

.fin-card-subhdr-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fin-items-count-pill {
  font-size: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-surface-3);
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.4px;
}

.btn-add-fin-item {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 7px;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.4px;
  transition: all var(--transition-fast);
}

.btn-add-fin-item:hover {
  background: #f59e0b;
  color: #000;
  border-color: #f59e0b;
}

/* Itemised Items Table */
.fin-items-table-container {
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-3);
  border-radius: 2px;
  overflow-x: auto;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.fin-items-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 10px;
  min-width: 480px;
}

.fin-items-table th {
  background: var(--bg-surface-2);
  color: var(--text-dim);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 5px 6px;
  border-bottom: 1px solid var(--border-medium);
  border-right: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}

.fin-items-table td {
  padding: 2px 4px;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.fin-items-table input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 4px;
  border-radius: 2px;
  outline: none;
  transition: all var(--transition-fast);
}

.fin-items-table input:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-1);
}

.fin-items-table input:focus {
  border-color: #f59e0b;
  background: var(--bg-surface-1);
}

.fin-items-table select {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 2px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fin-items-table select:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-1);
}

.fin-items-table select:focus {
  border-color: #f59e0b;
  background: var(--bg-surface-1);
}

.btn-del-fin-item {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-del-fin-item:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.fin-items-empty {
  padding: 16px 12px;
  text-align: center;
  font-size: 9.5px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* Itemised Summary Bar */
.fin-items-summary-bar {
  display: flex;
  gap: 8px;
  align-items: stretch;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
}

.fin-currency-select-wrap {
  width: 85px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.fin-totals-col-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 6px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  padding: 6px 8px;
  border-radius: 2px;
}

.fin-total-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.fin-total-lbl {
  font-size: 7.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.fin-total-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.fin-total-cell.highlight {
  text-align: right;
  border-left: 1px dashed var(--border-medium);
  padding-left: 6px;
}

.fin-total-val-lg {
  font-size: 14px;
  font-weight: 800;
  color: #10b981;
  white-space: nowrap;
}

.btn-save-fin {
  flex: 1;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  color: #f59e0b;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.btn-save-fin:hover {
  background: #f59e0b;
  color: #000;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.btn-delete-fin {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #f43f5e;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.4px;
  transition: all var(--transition-fast);
}

.btn-delete-fin:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: #f43f5e;
  color: #fff;
}

/* Operation Memo */
.memo-status {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.memo-status.saving {
  color: var(--pamir-orange);
  background: var(--pamir-orange-subtle);
}

.memo-input-wrap {
  width: 100%;
}

#jobOperationMemo {
  width: 100%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  padding: 8px 10px;
  resize: vertical;
  min-height: 70px;
  outline: none;
  transition: border-color var(--transition-fast);
}

#jobOperationMemo:focus {
  border-color: var(--pamir-orange);
  box-shadow: 0 0 0 1px var(--pamir-orange);
}

.side-scrollable-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Search input */
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  padding: 8px 30px 8px 32px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input-wrap input:focus {
  border-color: var(--pamir-orange);
  box-shadow: 0 0 0 1px var(--pamir-orange);
}

.clear-search-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}
.clear-search-btn:hover { color: var(--text-main); }

/* Status Filter Pills */
.status-filter-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.filter-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.filter-pill.active {
  background: var(--pamir-orange-subtle);
  border-color: var(--pamir-orange);
  color: #ffffff;
}

.pill-count {
  font-size: 10px;
  opacity: 0.7;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-indicator.active { background: var(--status-active); box-shadow: 0 0 6px var(--status-active-glow); }
.status-indicator.prov { background: var(--status-prov); }
.status-indicator.idle { background: var(--status-idle); }
.status-indicator.alert { background: var(--status-alert); }

/* Custom Select Dropdowns */
.custom-select-wrap select {
  width: 100%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 10px;
  outline: none;
  cursor: pointer;
}

.custom-select-wrap select:focus {
  border-color: var(--pamir-orange);
}

/* Customs section compact selects override */
.customs-section-form .custom-select-wrap select,
.customs-section-form .custom-select-wrap select.customs-field-select {
  font-size: 11px;
  padding: 0 20px 0 6px;
  height: 23px;
  line-height: 23px;
  background-color: var(--bg-surface-1);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  outline: none;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
}

.customs-section-form .custom-select-wrap select:focus {
  border-color: #00d2ff;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
}

/* Density control */
.density-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.control-sublabel {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.density-buttons {
  display: flex;
  gap: 4px;
}
.density-btn {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.density-btn.active {
  background: var(--pamir-orange);
  color: #fff;
  border-color: var(--pamir-orange);
}

/* Navbar specific density control */
.nav-density-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0;
}
.nav-density-control .control-sublabel {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.nav-density-control .density-buttons {
  gap: 3px;
}
.nav-density-control .density-btn {
  background: var(--bg-surface-3);
  padding: 2px 7px;
  border-radius: 2px;
}
.nav-density-control .density-btn.active {
  box-shadow: 0 0 8px var(--pamir-orange-glow);
}

/* Table Tools */
.table-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.table-tools-grid.single-item {
  grid-template-columns: 1fr;
}

.tool-btn, .action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 8px 10px;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tool-btn:hover, .action-btn:hover {
  background: var(--bg-hover);
  border-color: var(--pamir-orange);
  color: #fff;
}

.action-btn.danger:hover {
  border-color: var(--status-alert);
  color: var(--status-alert);
}

.stream-dot {
  width: 6px;
  height: 6px;
  background: var(--status-active);
  border-radius: 50%;
}
.stream-dot.pulsing {
  animation: pulseGreen 1.5s infinite;
}

.export-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Selected Range Mini Stats */
.stats-mini-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.mini-stat {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
}

.m-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
}

.m-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.side-footer-tag {
  padding: 10px 16px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 1px;
}

/* ==========================================================================
   MAIN MATRIX VIEW (EXCEL-LIKE DATA TABLE)
   ========================================================================== */
.main-matrix-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-black);
  overflow: hidden;
  position: relative;
}

/* Formula / Matrix Header Bar */
.matrix-formula-bar {
  height: var(--formula-bar-height);
  background: var(--bg-surface-1);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  flex-shrink: 0;
}

.side-expand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pamir-orange);
  color: #ffffff;
  border: none;
  padding: 4px 8px;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--pamir-orange-glow);
}

.side-expand-pill:hover {
  background: var(--pamir-orange-hover);
  transform: translateY(-1px);
}

.formula-cell-indicator {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--pamir-orange);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  padding: 3px 8px;
  min-width: 36px;
  text-align: center;
}

.formula-divider {
  width: 1px;
  height: 18px;
  background: var(--border-medium);
}


.formula-search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 140px;
}

.formula-search-wrap input {
  width: 100%;
  height: 28px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  border-radius: 2px;
  padding: 0 28px 0 28px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
  transition: all var(--transition-fast);
}

.formula-search-wrap input:focus {
  background: var(--bg-surface-3);
  border-color: var(--pamir-orange);
  box-shadow: 0 0 0 1px var(--pamir-orange-glow);
}

.formula-search-wrap input::placeholder {
  color: var(--text-dim);
  font-size: 11px;
}

.formula-search-wrap .search-icon {
  position: absolute;
  left: 9px;
  color: var(--text-muted);
  pointer-events: none;
}

.formula-search-wrap .clear-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.formula-search-wrap .clear-search-btn:hover {
  color: var(--pamir-orange);
}

.formula-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-main);
}

.matrix-formula-bar .formula-input {
  max-width: 280px;
  height: 28px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  border-radius: 2px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.matrix-formula-bar .formula-input:focus {
  background: var(--bg-surface-3);
  border-color: var(--pamir-orange);
  box-shadow: 0 0 0 1px var(--pamir-orange-glow);
}

.matrix-formula-bar .formula-input::placeholder {
  color: var(--text-dim);
  font-size: 10px;
}

.matrix-quick-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-scroll-mode {
  font-family: var(--font-pixel);
  font-size: 9px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--status-active);
  padding: 2px 6px;
}

.filtered-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   EXCEL TABLE VIEWPORT & INFINITE SCROLL
   ========================================================================== */
.excel-table-viewport {
  flex: 1;
  overflow: auto;
  position: relative;
  background-color: var(--bg-black);
}

.excel-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: var(--cell-font-size);
  font-family: var(--font-mono);
  color: var(--text-main);
  user-select: none;
}

/* Density Variants */
.excel-table.density-compact {
  --cell-padding-y: 5px;
  --cell-padding-x: 10px;
  --cell-font-size: 11px;
}
.excel-table.density-comfortable {
  --cell-padding-y: 13px;
  --cell-padding-x: 18px;
  --cell-font-size: 14px;
}

/* Sticky Header */
.excel-table thead {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: var(--bg-surface-2);
}

.col-header {
  background-color: var(--bg-surface-2);
  border-bottom: 2px solid var(--border-strong);
  border-right: 1px solid var(--border-medium);
  padding: 8px 12px;
  text-align: left;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  white-space: nowrap;
  position: relative;
}

.col-header.sortable {
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.col-header.sortable:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.hdr-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sort-icon {
  font-size: 9px;
  color: var(--pamir-orange);
  min-width: 10px;
}

.col-index {
  width: 44px;
  text-align: center;
  background-color: var(--bg-surface-3);
  color: var(--text-dim);
}

.col-select {
  width: 38px;
  text-align: center;
}

.col-actions {
  text-align: center;
  width: 118px;
}

/* Table Body Rows */
.excel-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-fast);
}

.excel-table tbody tr:hover {
  background-color: var(--bg-surface-1);
}

.excel-table tbody tr.row-selected {
  background-color: rgba(255, 92, 0, 0.08) !important;
}

/* Table Cells */
.excel-table td {
  padding: var(--cell-padding-y) var(--cell-padding-x);
  border-right: 1px solid var(--border-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  position: relative;
}

.excel-table td.cell-active {
  outline: 2px solid var(--pamir-orange);
  outline-offset: -2px;
  background-color: rgba(255, 92, 0, 0.12) !important;
}

/* Badge columns display crisp active outline */
.excel-table td[data-key="status"].cell-active,
.excel-table td[data-key="direction"].cell-active,
.excel-table td[data-key="mode"].cell-active,
.excel-table td[data-key="mtype"].cell-active,
.excel-table td[data-key="level"].cell-active,
.excel-table td[data-key="customs"].cell-active,
.excel-table td[data-key="carrierRelease"].cell-active,
.excel-table td[data-key="haulageArrange"].cell-active {
  outline: 2px solid var(--pamir-orange);
  outline-offset: -2px;
  background-color: rgba(255, 92, 0, 0.08) !important;
}

/* Row Index Number Cell */
.cell-index {
  text-align: center;
  background-color: var(--bg-surface-1);
  color: var(--text-dim);
  font-size: 11px;
  border-right: 1px solid var(--border-medium);
}

.cell-select {
  text-align: center;
}

/* Custom Checkboxes */
input[type="checkbox"] {
  accent-color: var(--pamir-orange);
  cursor: pointer;
  width: 14px;
  height: 14px;
}

/* Cell Value Badges */
.node-badge {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #ffffff;
}

.customer-ref-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

.container-badge {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.agent-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.agent-type-icon {
  color: var(--pamir-orange);
  font-family: var(--font-pixel);
  font-size: 10px;
}

/* Status Pill in Cell */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.status-pill:hover {
  transform: scale(1.05);
}

.status-pill.status-ACTIVE {
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-active);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-pill.status-PROVISIONING {
  background: rgba(56, 189, 248, 0.12);
  color: var(--status-prov);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.status-pill.status-IDLE {
  background: rgba(234, 179, 8, 0.12);
  color: var(--status-idle);
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.status-pill.status-ALERT {
  background: rgba(244, 63, 94, 0.12);
  color: var(--status-alert);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Toggle Pills (Direction, Mode, Level) - matching STATUS column style */
.cell-clickable {
  cursor: pointer;
}

/* Direction Pills */
.status-pill.dir-IM {
  background: rgba(56, 189, 248, 0.12);
  color: var(--status-prov);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-pill.dir-EX {
  background: rgba(255, 92, 0, 0.12);
  color: var(--pamir-orange);
  border: 1px solid rgba(255, 92, 0, 0.3);
}

.status-pill.dir-DO {
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-active);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Mode Pills */
.status-pill.mode-OCEAN {
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.status-pill.mode-AIR {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-pill.mode-TRUCK {
  background: rgba(234, 179, 8, 0.12);
  color: var(--status-idle);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-pill.mode-ROAD {
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-active);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.mode-INLAND {
  background: rgba(244, 63, 94, 0.12);
  color: var(--status-alert);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* MTYPE Pills */
.status-pill.mtype-FCL {
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.status-pill.mtype-LCL {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.status-pill.mtype-FTL {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill.mtype-LTL {
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-active);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.mtype-COURIER {
  background: rgba(236, 72, 153, 0.12);
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.status-pill.mtype-OTHER {
  background: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Level Pills */
.status-pill.level-MASTER {
  background: rgba(234, 179, 8, 0.12);
  color: var(--status-idle);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-pill.level-HOUSE {
  background: rgba(129, 140, 248, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

/* Customs Pills */
.status-pill.customs-cleared {
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-active);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.customs-pre-lodge {
  background: rgba(56, 189, 248, 0.12);
  color: var(--status-prov);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-pill.customs-cdsi-sent {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-pill.customs-hold,
.status-pill.customs-ukbf-hold,
.status-pill.customs-ts-hold,
.status-pill.customs-ph-hold,
.status-pill.customs-exam-hold,
.status-pill.customs-xray-hold {
  background: rgba(244, 63, 94, 0.12);
  color: var(--status-alert);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.status-pill.customs-default {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Carrier Release Pills */
.status-pill.cr-inv-rcvd {
  background: rgba(234, 179, 8, 0.12);
  color: var(--status-idle);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-pill.cr-inv-paid {
  background: rgba(56, 189, 248, 0.12);
  color: var(--status-prov);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-pill.cr-rel-rcvd {
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-active);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Haulage Arrange Pills */
.status-pill.ha-booked {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill.ha-reld {
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-active);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* CPU Load Bar */
.cpu-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100px;
}
.meter-track {
  flex: 1;
  height: 6px;
  background: var(--bg-surface-3);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  background: var(--pamir-orange);
  transition: width 0.3s ease;
}
.meter-val {
  font-size: 11px;
  min-width: 32px;
  text-align: right;
}

/* Cell Actions Buttons */
.row-actions-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-row-action {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  padding: 3px 6px;
  font-family: var(--font-pixel);
  font-size: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-row-action:hover {
  background: var(--pamir-orange);
  border-color: var(--pamir-orange);
  color: #fff;
}
.btn-row-action.btn-del:hover {
  background: var(--status-alert);
  border-color: var(--status-alert);
}

.btn-row-action.btn-archive {
  letter-spacing: 0.5px;
}

.btn-row-action.btn-archive.enabled {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.45);
  color: var(--status-active);
  font-weight: 700;
}

.btn-row-action.btn-archive.enabled:hover {
  background: var(--status-active);
  border-color: var(--status-active);
  color: #ffffff;
  box-shadow: 0 0 8px var(--status-active-glow);
}

.btn-row-action.btn-archive.disabled,
.btn-row-action.btn-archive:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--bg-surface-3);
  border-color: var(--border-subtle);
  color: var(--text-dim);
}

.btn-row-action.btn-archive:disabled:hover {
  background: var(--bg-surface-3);
  border-color: var(--border-subtle);
  color: var(--text-dim);
  box-shadow: none;
}

/* Infinite Scroll Loader Sentinel */
.infinite-scroll-loader {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-surface-1);
  border-top: 1px solid var(--border-subtle);
}

.loader-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--pamir-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-label {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

/* ==========================================================================
   MINIMAL BLUEPRINT FOOTER
   ========================================================================== */
.minimal-footer {
  height: var(--footer-height);
  width: 100%;
  background-color: var(--bg-surface-1);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  z-index: 100;
}

.footer-left, .footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sys-code {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.f-sep {
  color: var(--border-strong);
}

.f-hint {
  font-size: 11px;
  color: var(--text-dim);
}

.secure-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--status-active);
  font-size: 10px;
}

.time-display {
  color: var(--pamir-orange);
  font-weight: 600;
}

/* ==========================================================================
   MODALS (LOGIN & ADD NODE)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--pamir-orange);
  box-shadow: 0 0 30px rgba(255, 92, 0, 0.2);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  background: var(--bg-surface-2);
  border-bottom: 1px solid var(--border-medium);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.8px;
  color: #ffffff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: #fff; }

.modal-body {
  padding: 20px;
}

.modal-instruction {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#addNodeModal .modal-card {
  max-width: 780px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

#addNodeModal .modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 16px 20px;
}

#addNodeModal .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
}

#addNodeModal .form-field {
  margin-bottom: 8px;
}

#addNodeModal .form-field.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  #addNodeModal .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.form-field input, .form-field select {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  padding: 9px 12px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
}

.form-field input:focus, .form-field select:focus {
  border-color: var(--pamir-orange);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.btn-cancel {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  padding: 8px 16px;
  font-family: var(--font-pixel);
  font-size: 10px;
  cursor: pointer;
}

.btn-submit {
  background: var(--pamir-orange);
  border: none;
  color: #ffffff;
  padding: 8px 18px;
  font-family: var(--font-pixel);
  font-size: 10px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.btn-submit:hover {
  background: var(--pamir-orange-hover);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: calc(var(--footer-height) + 16px);
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
}

.toast {
  background: var(--bg-surface-2);
  border-left: 3px solid var(--pamir-orange);
  border-top: 1px solid var(--border-medium);
  border-right: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-main);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: toastIn 0.25s ease forwards;
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid Date Cell & Badges */
.cell-date {
  cursor: pointer;
  user-select: none;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.date-badge.has-date {
  background: rgba(255, 92, 0, 0.09);
  color: var(--pamir-orange);
  border: 1px solid rgba(255, 92, 0, 0.28);
}

.date-badge.no-date {
  color: var(--text-dim);
  background: transparent;
  border: 1px dashed var(--border-medium);
}

.cell-date:hover .date-badge {
  border-color: var(--pamir-orange);
  background: rgba(255, 92, 0, 0.18);
  color: #fff;
  box-shadow: 0 0 8px var(--pamir-orange-glow);
}

/* Floating DatePicker Popover */
.grid-datepicker-popover {
  position: fixed;
  z-index: 1200;
  width: 250px;
  background: var(--bg-surface-1);
  border: 1px solid var(--pamir-orange);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 14px var(--pamir-orange-glow);
  padding: 10px;
  user-select: none;
  font-family: var(--font-mono);
  animation: gdpPop 0.15s ease-out forwards;
}

@keyframes gdpPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.gdp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-medium);
}

.gdp-nav-btn {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  width: 26px;
  height: 24px;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gdp-nav-btn:hover {
  border-color: var(--pamir-orange);
  color: var(--pamir-orange);
  background: var(--bg-surface-3);
}

.gdp-title-wrap {
  display: flex;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.8px;
}

.gdp-month-label {
  color: var(--pamir-orange);
  font-weight: 700;
}

.gdp-year-label {
  color: var(--text-main);
}

.gdp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.gdp-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.gdp-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-main);
  cursor: pointer;
  background: var(--bg-surface-2);
  border: 1px solid transparent;
  transition: all 0.12s ease;
}

.gdp-day-cell:hover {
  background: var(--bg-surface-3);
  border-color: var(--pamir-orange);
  color: #fff;
}

.gdp-day-cell.gdp-other-month {
  color: var(--text-dim);
  opacity: 0.4;
  background: transparent;
}

.gdp-day-cell.gdp-today {
  border-color: var(--status-active);
  color: var(--status-active);
  font-weight: 700;
}

.gdp-day-cell.gdp-selected {
  background: var(--pamir-orange) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 0 8px var(--pamir-orange-glow);
  border-color: #fff !important;
}

.gdp-footer {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-medium);
}

.gdp-action-btn {
  flex: 1;
  padding: 5px 8px;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-2);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.gdp-action-btn:hover {
  border-color: var(--pamir-orange);
  color: var(--text-main);
  background: var(--bg-surface-3);
}

.gdp-today-btn:hover {
  background: var(--pamir-orange);
  border-color: var(--pamir-orange);
  color: #ffffff;
}

/* Utility Hidden */
.hidden {
  display: none !important;
}

/* ==========================================================================
   RESPONSIVENESS & MOBILE ADAPTATIONS
   ========================================================================== */
.side-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 45;
}

@media (max-width: 1024px) {
  .footer-center {
    display: none;
  }
}

@media (max-width: 768px) {
  .system-status-chip,
  .nav-density-control {
    display: none;
  }

  .live-counter {
    display: none;
  }
  
  .side-menu {
    position: fixed;
    top: var(--nav-height);
    bottom: var(--footer-height);
    left: 0;
    width: 280px;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0,0,0,0.7);
  }
  
  .side-menu.mobile-open {
    transform: translateX(0);
  }

  .side-backdrop.visible {
    display: block;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .matrix-quick-info {
    display: none;
  }

  .side-resizer,
  .side-width-toggle-btn {
    display: none !important;
  }
}
