.card {
  background: var(--bg-surface);
  border: 1px solid rgba(203, 213, 225, 0.75) !important;
  border-radius: 26px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  animation: vanguardFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 12px 26px rgba(15, 23, 42, 0.04);
}

.card-header {
  padding: 1.1rem 1.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.12rem;
}

.card-body {
  padding: 1.35rem;
}

/* Bento KPI Cards */
.kpi-card {
  background: var(--bg-surface);
  border: 1px solid rgba(203, 213, 225, 0.75) !important;
  border-radius: 24px !important;
  padding: 1.25rem 1.35rem !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.03) !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  animation: vanguardFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-arrow {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--bg-app);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.kpi-value {
  font-size: 1.62rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.kpi-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.kpi-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
}

.kpi-card--hero {
  background: linear-gradient(145deg, #131a17 0%, #1d2823 100%) !important;
  border-color: #131a17 !important;
  color: #ffffff;
}
.kpi-card--hero .kpi-icon { background: var(--bg-dark-elevated); color: var(--accent-lime); }
.kpi-card--hero .kpi-arrow { background: var(--bg-dark-elevated); color: #ffffff; }
.kpi-card--hero .kpi-label { color: #b4bab6; }
.kpi-card--hero .kpi-value { color: #ffffff; }
.kpi-card--hero .kpi-meta { color: #9ca39f; }
.kpi-card--hero .kpi-pill { background: rgba(221, 248, 116, 0.16); color: var(--accent-lime); }

/* Pill Buttons (Scoped strictly to .btn so icon/nav buttons keep their layout) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  padding: 0.58rem 1.12rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand-primary); color: #ffffff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-emerald { background: var(--accent-lime); color: var(--text-primary); }
.btn-emerald:hover:not(:disabled) { background: var(--accent-lime-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-subtle); transform: translateY(-1px); }
.btn-danger { background: var(--accent-rose-bg); color: var(--accent-rose); border-color: #fbcfe8; }
.btn-danger:hover:not(:disabled) { background: #fad5dc; transform: translateY(-1px); }
.btn-sm { padding: 0.36rem 0.78rem; font-size: 0.75rem; }
.btn-block { width: 100%; }

/* Sub-tabs (Single-Row Clean Pill Strip) */
.tab-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface, #ffffff) !important;
  padding: 0.38rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(203, 213, 225, 0.78) !important;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  max-width: 100%;
  scrollbar-width: thin;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.tab-btn {
  padding: 0.44rem 0.92rem;
  border-radius: 999px !important;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  font-family: var(--font-heading) !important;
}

.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { background: var(--bg-dark-card, #131a17) !important; color: var(--accent-lime, #34d399) !important; }

/* Inputs & Search Pills */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.36rem;
  margin-bottom: 0.9rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.56rem 0.88rem;
  font-size: 0.84rem;
  font-family: var(--font-body);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-emerald, #059669);
  box-shadow: 0 0 0 0.22rem rgba(5, 150, 105, 0.18);
  background: #ffffff;
}

.search-pill-input {
  border-radius: var(--radius-pill);
  padding-left: 1.05rem;
  background: var(--bg-surface);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Tables & Item Thumbnails (Bootstrap-inspired clean data table polish) */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

thead th {
  background: #f8faf9;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.055em;
  padding: 0.82rem 1rem;
  text-align: left;
  border-bottom: 1.5px solid var(--border-color);
  white-space: nowrap;
}

tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  vertical-align: middle;
}

tbody tr:nth-child(even) {
  background: rgba(248, 250, 249, 0.55);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr {
  transition: background-color 0.15s ease;
}
tbody tr:hover { background: #f0fdf7; }

.item-cell {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.item-thumb {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.item-thumb:hover {
  transform: scale(1.05);
}

.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mono { font-family: var(--font-mono); font-size: 0.78rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* Soft Pastel Status Pills (Bootstrap subtle badge ring polish) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.26rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.71rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border: 1px solid rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}

.badge-success { background: var(--accent-emerald-bg); color: var(--accent-emerald); }
.badge-warning { background: var(--accent-amber-bg); color: var(--accent-amber); }
.badge-danger { background: var(--accent-rose-bg); color: var(--accent-rose); }
.badge-info { background: var(--accent-lime-soft); color: var(--accent-lime-dark); }
.badge-indigo { background: var(--accent-indigo-bg); color: var(--accent-indigo); }
.badge-neutral { background: var(--bg-app); color: var(--text-secondary); }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 26, 24, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 100;
  animation: vanguardFadeIn 0.2s ease forwards;
}

.modal-box {
  background: var(--bg-surface);
  border-radius: 20px;
  width: 100%;
  max-width: 700px;
  max-height: 92dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  animation: vanguardScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-box.modal-lg { max-width: 960px; }

.modal-header {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-body {
  padding: 1.4rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.modal-footer {
  padding: 0.95rem 1.4rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .modal-backdrop {
    align-items: flex-start;
    padding: 0.65rem;
  }

  .modal-box,
  .modal-box.modal-lg {
    max-width: 100%;
    max-height: calc(100dvh - 1.3rem);
    margin: auto 0;
    border-radius: 16px;
  }

  .modal-header {
    padding: 0.95rem 1.05rem;
  }

  .modal-body {
    padding: 1rem 1.05rem;
    max-height: none;
  }

  .modal-footer {
    padding: 0.78rem 1.05rem;
    flex-wrap: wrap;
  }
}

.perm-checkbox {
  width: 17px;
  height: 17px;
  accent-color: var(--bg-dark-card);
  cursor: pointer;
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-dark-card);
  color: #ffffff;
  padding: 0.8rem 1.15rem;
  border-radius: 14px;
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--accent-lime);
  animation: slideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast.error { border-left-color: #fb7185; }

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

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

@keyframes vanguardScaleIn {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* =========================================================
   FULL-SCREEN BACKGROUND SPLIT-SCREEN LOGIN STYLES
   ========================================================= */
.auth-wrapper {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(9, 13, 11, 0.85) 0%, rgba(15, 23, 42, 0.82) 100%),
              url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=85');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
  overflow-y: auto;
  animation: vanguardFadeIn 0.4s ease-out;
}

.vanguard-auth-card-container {
  width: 100%;
  max-width: 980px;
  background: var(--bg-surface);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  animation: vanguardScaleIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 768px) {
  .vanguard-auth-card-container {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .vanguard-auth-left {
    display: none !important;
  }
}

.vanguard-auth-left {
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  padding: 2.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.vanguard-auth-left::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.vanguard-auth-brand-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.vanguard-auth-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.vanguard-auth-logo-icon:hover {
  transform: scale(1.08) rotate(5deg);
}

.vanguard-auth-hero-content {
  margin: 1.5rem 0;
}

.vanguard-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #e0f2fe;
}

.vanguard-auth-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.vanguard-auth-subtitle {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.vanguard-auth-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.vanguard-step-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 0.85rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.vanguard-step-box:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
}

.vanguard-step-box.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.vanguard-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  margin-bottom: 0.5rem;
}

.vanguard-step-title {
  font-weight: 700;
  font-size: 0.78rem;
  color: #ffffff;
  margin-bottom: 0.1rem;
}

.vanguard-step-desc {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}

.vanguard-auth-right {
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vanguard-auth-form-header {
  margin-bottom: 1.5rem;
}
/* Green Dispatch Timeline Banner (Reference UI/UX adapted to Vanguard palette) */
.dr-banner-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(115deg, #059669 0%, #10b981 55%, #047857 100%);
  color: #ffffff;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dr-banner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.16) 0%, transparent 45%);
  pointer-events: none;
}

.dr-banner-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.45rem;
}

.dr-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-width: 0;
  flex: 1 1 360px;
}

.dr-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.dr-banner-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.dr-banner-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.dr-banner-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(24, 26, 24, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.dr-banner-sub {
  margin-top: 0.3rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.38;
}

.dr-banner-right {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.dr-banner-metric {
  text-align: right;
}

.dr-banner-metric-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dr-banner-metric-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.dr-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dr-banner-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
}

.dr-banner-btn:hover {
  background: rgba(255, 255, 255, 0.26) !important;
}

.dr-banner-btn--solid {
  background: #ffffff;
  color: #065f46 !important;
  border-color: #ffffff !important;
}

.dr-banner-btn--solid:hover {
  background: #ecfdf5 !important;
}

/* Horizontal Stepper Track inside Green Banner */
.dr-stepper-wrap {
  position: relative;
  z-index: 1;
}

.dr-stepper-line-bg {
  position: relative;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  margin: 0 12.5% -15px 12.5%;
}

.dr-stepper-line-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.dr-stepper-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.dr-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
}

.dr-step-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.dr-step-node--done {
  background: #ffffff;
  color: #059669;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.dr-step-node--current {
  background: #ffffff;
  color: #047857;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
  transform: scale(1.06);
}

.dr-step-node--upcoming {
  background: #059669;
  color: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.dr-step-node--delayed {
  background: #fef2f2;
  color: #dc2626;
  border: 2px solid #ffffff;
}

.dr-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.dr-step-sub {
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.2;
}

.dr-meta-strip {
  position: relative;
  z-index: 1;
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.75rem;
  font-size: 0.78rem;
}

.dr-meta-k {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.dr-meta-v {
  font-weight: 600;
  color: #ffffff;
  margin-top: 0.12rem;
}

@media (max-width: 640px) {
  .dr-banner-card {
    padding: 1.15rem 1.1rem;
  }
  .dr-banner-title {
    font-size: 1.3rem;
  }
  .dr-step-label {
    font-size: 0.66rem;
  }
}


/* =========================================================
   UNIFIED EXECUTIVE BENTO DESIGN SYSTEM (ALL 12 MODULES)
   Matches Vanguard Executive Dashboard Aesthetic & Bootstrap Grid
   ========================================================= */
.vgd-bento-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 26px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.vgd-pastel-card {
  border-radius: 22px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
}
.vgd-pastel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.vgd-pastel-card--lavender { background: linear-gradient(145deg, #e5e8ff 0%, #dce2ff 100%); color: #141614; }
.vgd-pastel-card--sky      { background: linear-gradient(145deg, #dbf0fe 0%, #cde9fc 100%); color: #141614; }
.vgd-pastel-card--mint     { background: linear-gradient(145deg, #ddf8da 0%, #cef3ca 100%); color: #141614; }
.vgd-pastel-card--amber    { background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%); color: #141614; }

.vgd-dark-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.75rem;
  border-radius: 10px;
  background: #141614;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
}

.vgd-soft-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Unified Bento Module Toolbar & Pill Search across all 12 modules */
.vmov-top-bar,
.vqt-top-bar,
.vso-top-bar,
.vcrm-top-bar,
.vms-top-bar,
.scanner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  background: var(--bg-surface, #ffffff) !important;
  border: 1px solid rgba(203, 213, 225, 0.78) !important;
  border-radius: 24px !important;
  padding: 0.9rem 1.15rem !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.03) !important;
}

.vinv-toolbar-card,
.vmov-toolbar-card,
.vpo-toolbar-card,
.vsup-toolbar-card {
  width: 100%;
  margin-bottom: 1.15rem;
  background: var(--bg-surface, #ffffff) !important;
  border: 1px solid rgba(203, 213, 225, 0.78) !important;
  border-radius: 24px !important;
  padding: 0.95rem 1.15rem !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.03) !important;
}

.vmov-search-panel,
.vmov-action-panel,
.vqt-search-panel,
.vqt-action-panel,
.vso-search-panel,
.vso-action-panel,
.vcrm-search-panel,
.vcrm-action-panel,
.vms-search-panel,
.vms-action-panel {
  background: var(--bg-subtle, #edf2f0) !important;
  border: 1px solid var(--border-color, #e2e8f0) !important;
  border-radius: 18px !important;
}

/* Unified Pill Search Inputs with Soft Emerald Focus Ring */
.vqt-search-input,
.vso-search-input,
.vcrm-search-input,
.vms-search-input,
.scanner-input {
  border-radius: 999px !important;
  border: 1px solid var(--border-strong, #cbd5e1) !important;
  background: var(--bg-surface, #ffffff) !important;
  padding-left: 1.1rem !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease !important;
}

/* Inventory, Stock Movements, Purchase Orders & Suppliers search inputs use a left-aligned magnifying glass icon */
.vinv-search-input,
.vmov-search-input,
.vpo-search-input,
.vsup-search-input {
  border-radius: 999px !important;
  border: 1px solid var(--border-strong, #cbd5e1) !important;
  background: var(--bg-subtle, #f4f7f6) !important;
  padding-left: 2.45rem !important;
  padding-right: 2.45rem !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
}

.vinv-search-input:focus,
.vsup-search-input:focus,
.vpo-search-input:focus,
.vmov-search-input:focus,
.vqt-search-input:focus,
.vso-search-input:focus,
.vcrm-search-input:focus,
.vms-search-input:focus,
.scanner-input:focus {
  border-color: var(--accent-emerald, #059669) !important;
  box-shadow: 0 0 0 0.22rem rgba(5, 150, 105, 0.18) !important;
}

/* Unified Filter Drawer & Filter Buttons */
.vinv-filter-drawer,
.vsup-filter-drawer,
.vmov-filter-drawer,
.vqt-filter-drawer,
.vso-filter-drawer,
.vcrm-filter-drawer,
.vms-filter-drawer {
  background: var(--bg-surface, #ffffff) !important;
  border: 1px solid rgba(203, 213, 225, 0.78) !important;
  border-radius: 22px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

.vinv-filter-btn,
.vsup-filter-btn,
.vmov-filter-btn,
.vqt-filter-btn,
.vso-filter-btn,
.vcrm-filter-btn,
.vms-filter-btn {
  border-radius: 999px !important;
  font-family: var(--font-heading) !important;
}

.vinv-filter-btn.active,
.vsup-filter-btn.active,
.vmov-filter-btn.active,
.vqt-filter-btn.active,
.vso-filter-btn.active,
.vcrm-filter-btn.active,
.vms-filter-btn.active {
  background: var(--bg-dark-card, #131a17) !important;
  color: var(--accent-lime, #34d399) !important;
  border-color: var(--bg-dark-card, #131a17) !important;
}

/* Unified Bento KPI Cards (Pastel & Hero Contrast) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.15rem;
}

/* Unified Bento Card & Sub-Tab Strip */

/* Clean Scrollbars across all modules */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}


/* Ensure native <select> option lists always render cleanly with light surface & dark text */
select option {
  background-color: #ffffff;
  color: #0f172a;
}

/* =========================================================
   SYSTEM-WIDE DESKTOP STAGGERED FADE & SLIDE-UP CHOREOGRAPHY
   Plays ONLY on intentional module/tab switch or modal open;
   stays completely silent during live background data refresh.
   ========================================================= */
@keyframes vanguardSectionSlideUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes vanguardModalBackdropIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes vanguardModalBoxSlideUp {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.978);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes vanguardDropdownSlideIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* Silent Live-Refresh Lock: zero re-animation when background sync updates data */
#view-root.vanguard-live-silent,
#view-root.vanguard-live-silent *,
#modal-root.vanguard-modal-settled,
#modal-root.vanguard-modal-settled *,
.vanguard-no-reanim,
.vanguard-no-reanim * {
  animation: none !important;
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  /* Universal Staggered Portion Class (applied only during intentional tab/view navigation) */
  #view-root:not(.vanguard-live-silent) .vanguard-portion-enter,
  #modal-root:not(.vanguard-modal-settled) .vanguard-portion-enter {
    animation: vanguardSectionSlideUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  /* CSS Cascade for direct module sections & wrappers during intentional navigation */
  #view-root:not(.vanguard-live-silent) > *,
  #view-root:not(.vanguard-live-silent) > div:only-child > *,
  #view-root:not(.vanguard-live-silent) > section:only-child > * {
    animation: vanguardSectionSlideUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  #view-root:not(.vanguard-live-silent) > *:nth-child(1),
  #view-root:not(.vanguard-live-silent) > div:only-child > *:nth-child(1),
  #view-root:not(.vanguard-live-silent) > section:only-child > *:nth-child(1) { animation-delay: 0.02s; }

  #view-root:not(.vanguard-live-silent) > *:nth-child(2),
  #view-root:not(.vanguard-live-silent) > div:only-child > *:nth-child(2),
  #view-root:not(.vanguard-live-silent) > section:only-child > *:nth-child(2) { animation-delay: 0.08s; }

  #view-root:not(.vanguard-live-silent) > *:nth-child(3),
  #view-root:not(.vanguard-live-silent) > div:only-child > *:nth-child(3),
  #view-root:not(.vanguard-live-silent) > section:only-child > *:nth-child(3) { animation-delay: 0.14s; }

  #view-root:not(.vanguard-live-silent) > *:nth-child(4),
  #view-root:not(.vanguard-live-silent) > div:only-child > *:nth-child(4),
  #view-root:not(.vanguard-live-silent) > section:only-child > *:nth-child(4) { animation-delay: 0.20s; }

  #view-root:not(.vanguard-live-silent) > *:nth-child(5),
  #view-root:not(.vanguard-live-silent) > div:only-child > *:nth-child(5),
  #view-root:not(.vanguard-live-silent) > section:only-child > *:nth-child(5) { animation-delay: 0.26s; }

  #view-root:not(.vanguard-live-silent) > *:nth-child(n+6),
  #view-root:not(.vanguard-live-silent) > div:only-child > *:nth-child(n+6),
  #view-root:not(.vanguard-live-silent) > section:only-child > *:nth-child(n+6) { animation-delay: 0.30s; }

  /* Bento KPI Cards & One-Line Card Stacks */
  #view-root:not(.vanguard-live-silent) .kpi-grid > *,
  #view-root:not(.vanguard-live-silent) [class*="-kpi-grid"] > *,
  #view-root:not(.vanguard-live-silent) .vinv-one-line-stack > *,
  #view-root:not(.vanguard-live-silent) .vqt-one-line-stack > * {
    animation: vanguardSectionSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  #view-root:not(.vanguard-live-silent) .kpi-grid > *:nth-child(1),
  #view-root:not(.vanguard-live-silent) [class*="-kpi-grid"] > *:nth-child(1),
  #view-root:not(.vanguard-live-silent) .vinv-one-line-stack > *:nth-child(1),
  #view-root:not(.vanguard-live-silent) .vqt-one-line-stack > *:nth-child(1) { animation-delay: 0.04s; }

  #view-root:not(.vanguard-live-silent) .kpi-grid > *:nth-child(2),
  #view-root:not(.vanguard-live-silent) [class*="-kpi-grid"] > *:nth-child(2),
  #view-root:not(.vanguard-live-silent) .vinv-one-line-stack > *:nth-child(2),
  #view-root:not(.vanguard-live-silent) .vqt-one-line-stack > *:nth-child(2) { animation-delay: 0.09s; }

  #view-root:not(.vanguard-live-silent) .kpi-grid > *:nth-child(3),
  #view-root:not(.vanguard-live-silent) [class*="-kpi-grid"] > *:nth-child(3),
  #view-root:not(.vanguard-live-silent) .vinv-one-line-stack > *:nth-child(3),
  #view-root:not(.vanguard-live-silent) .vqt-one-line-stack > *:nth-child(3) { animation-delay: 0.14s; }

  #view-root:not(.vanguard-live-silent) .kpi-grid > *:nth-child(4),
  #view-root:not(.vanguard-live-silent) [class*="-kpi-grid"] > *:nth-child(4),
  #view-root:not(.vanguard-live-silent) .vinv-one-line-stack > *:nth-child(4),
  #view-root:not(.vanguard-live-silent) .vqt-one-line-stack > *:nth-child(4) { animation-delay: 0.19s; }

  #view-root:not(.vanguard-live-silent) .kpi-grid > *:nth-child(5),
  #view-root:not(.vanguard-live-silent) [class*="-kpi-grid"] > *:nth-child(5),
  #view-root:not(.vanguard-live-silent) .vinv-one-line-stack > *:nth-child(5),
  #view-root:not(.vanguard-live-silent) .vqt-one-line-stack > *:nth-child(5) { animation-delay: 0.24s; }

  #view-root:not(.vanguard-live-silent) .kpi-grid > *:nth-child(n+6),
  #view-root:not(.vanguard-live-silent) [class*="-kpi-grid"] > *:nth-child(n+6) { animation-delay: 0.28s; }

  /* Split Workspaces & Bootstrap Grid Columns */
  #view-root:not(.vanguard-live-silent) [class*="-workspace"] > *,
  #view-root:not(.vanguard-live-silent) .row > [class*="col-"] {
    animation: vanguardSectionSlideUp 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  #view-root:not(.vanguard-live-silent) [class*="-workspace"] > *:nth-child(1),
  #view-root:not(.vanguard-live-silent) .row > [class*="col-"]:nth-child(1) { animation-delay: 0.10s; }
  #view-root:not(.vanguard-live-silent) [class*="-workspace"] > *:nth-child(2),
  #view-root:not(.vanguard-live-silent) .row > [class*="col-"]:nth-child(2) { animation-delay: 0.17s; }
  #view-root:not(.vanguard-live-silent) [class*="-workspace"] > *:nth-child(3),
  #view-root:not(.vanguard-live-silent) .row > [class*="col-"]:nth-child(3) { animation-delay: 0.23s; }
  #view-root:not(.vanguard-live-silent) .row > [class*="col-"]:nth-child(n+4) { animation-delay: 0.28s; }

  /* Topbar Notification & Account Dropdowns */
  .notif-dropdown:not(.hidden),
  .account-dropdown:not(.hidden) {
    animation: vanguardDropdownSlideIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  /* Auth Login Step Cards Cascade */
  .vanguard-auth-steps .vanguard-step-box {
    animation: vanguardSectionSlideUp 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .vanguard-auth-steps .vanguard-step-box:nth-child(1) { animation-delay: 0.12s; }
  .vanguard-auth-steps .vanguard-step-box:nth-child(2) { animation-delay: 0.20s; }
  .vanguard-auth-steps .vanguard-step-box:nth-child(3) { animation-delay: 0.28s; }

  /* =========================================================
     UNIVERSAL MODAL CHOREOGRAPHY (PLAYS ONCE ON MODAL OPEN)
     ========================================================= */
  #modal-root:not(.vanguard-modal-settled) .modal-backdrop {
    animation: vanguardModalBackdropIn 0.22s ease-out both;
  }

  #modal-root:not(.vanguard-modal-settled) .modal-box {
    animation: vanguardModalBoxSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  #modal-root:not(.vanguard-modal-settled) .modal-header {
    animation: vanguardSectionSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
  }

  #modal-root:not(.vanguard-modal-settled) .modal-body > * {
    animation: vanguardSectionSlideUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  #modal-root:not(.vanguard-modal-settled) .modal-body > *:nth-child(1) { animation-delay: 0.07s; }
  #modal-root:not(.vanguard-modal-settled) .modal-body > *:nth-child(2) { animation-delay: 0.12s; }
  #modal-root:not(.vanguard-modal-settled) .modal-body > *:nth-child(3) { animation-delay: 0.17s; }
  #modal-root:not(.vanguard-modal-settled) .modal-body > *:nth-child(4) { animation-delay: 0.22s; }
  #modal-root:not(.vanguard-modal-settled) .modal-body > *:nth-child(5) { animation-delay: 0.27s; }
  #modal-root:not(.vanguard-modal-settled) .modal-body > *:nth-child(6) { animation-delay: 0.32s; }
  #modal-root:not(.vanguard-modal-settled) .modal-body > *:nth-child(n+7) { animation-delay: 0.36s; }

  #modal-root:not(.vanguard-modal-settled) [class*="-modal-split"] > *,
  #modal-root:not(.vanguard-modal-settled) [class*="-specs-split"] > * {
    animation: vanguardSectionSlideUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  #modal-root:not(.vanguard-modal-settled) [class*="-modal-split"] > *:nth-child(1),
  #modal-root:not(.vanguard-modal-settled) [class*="-specs-split"] > *:nth-child(1) { animation-delay: 0.08s; }
  #modal-root:not(.vanguard-modal-settled) [class*="-modal-split"] > *:nth-child(2),
  #modal-root:not(.vanguard-modal-settled) [class*="-specs-split"] > *:nth-child(2) { animation-delay: 0.15s; }

  #modal-root:not(.vanguard-modal-settled) .vcf-form-section > *,
  #modal-root:not(.vanguard-modal-settled) .vinv-pane-card > *,
  #modal-root:not(.vanguard-modal-settled) .vinv-specs-media-card > * {
    animation: vanguardSectionSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  #modal-root:not(.vanguard-modal-settled) .vcf-form-section > *:nth-child(1),
  #modal-root:not(.vanguard-modal-settled) .vinv-pane-card > *:nth-child(1),
  #modal-root:not(.vanguard-modal-settled) .vinv-specs-media-card > *:nth-child(1) { animation-delay: 0.10s; }
  #modal-root:not(.vanguard-modal-settled) .vcf-form-section > *:nth-child(2),
  #modal-root:not(.vanguard-modal-settled) .vinv-pane-card > *:nth-child(2),
  #modal-root:not(.vanguard-modal-settled) .vinv-specs-media-card > *:nth-child(2) { animation-delay: 0.14s; }
  #modal-root:not(.vanguard-modal-settled) .vcf-form-section > *:nth-child(3),
  #modal-root:not(.vanguard-modal-settled) .vinv-pane-card > *:nth-child(3),
  #modal-root:not(.vanguard-modal-settled) .vinv-specs-media-card > *:nth-child(3) { animation-delay: 0.18s; }
  #modal-root:not(.vanguard-modal-settled) .vcf-form-section > *:nth-child(4),
  #modal-root:not(.vanguard-modal-settled) .vinv-pane-card > *:nth-child(4),
  #modal-root:not(.vanguard-modal-settled) .vinv-specs-media-card > *:nth-child(4) { animation-delay: 0.22s; }
  #modal-root:not(.vanguard-modal-settled) .vcf-form-section > *:nth-child(n+5),
  #modal-root:not(.vanguard-modal-settled) .vinv-pane-card > *:nth-child(n+5),
  #modal-root:not(.vanguard-modal-settled) .vinv-specs-media-card > *:nth-child(n+5) { animation-delay: 0.26s; }

  #modal-root:not(.vanguard-modal-settled) .modal-footer {
    animation: vanguardSectionSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
  }
}

@media print {
  #view-root,
  #view-root *,
  #modal-root,
  #modal-root * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

