:root {
  --app-bg: #07101d;
  --panel: rgba(15, 23, 42, .82);
  --panel-2: rgba(15, 23, 42, .58);
  --border: rgba(148, 163, 184, .16);
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
}


[data-bs-theme="light"] {
  --app-bg: #f4f7fb;
  --panel: rgba(255, 255, 255, .92);
  --panel-2: rgba(255, 255, 255, .78);
  --border: rgba(15, 23, 42, .12);
  --muted: #64748b;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 211, 238, .13), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(37, 99, 235, .16), transparent 28%),
    linear-gradient(135deg, #020617 0%, #07101d 45%, #020617 100%);
  color: #e5eefc;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  background: rgba(2, 6, 23, .76);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #03101c;
  background: linear-gradient(135deg, #f8fafc, var(--cyan) 55%, var(--blue));
  box-shadow: 0 0 30px rgba(34, 211, 238, .28);
}

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

.brand-name {
  font-weight: 900;
  letter-spacing: 1.5px;
}

.brand small,
.text-secondary {
  color: var(--muted) !important;
}

.nav-link {
  color: #cbd5e1;
  border-radius: 14px;
  padding: 11px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(37, 99, 235, .24);
}

.user-card {
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--border);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #020617;
  flex: 0 0 auto;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.dashboard-topbar {
  background: rgba(7, 16, 29, .76);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.btn-soft {
  background: rgba(255, 255, 255, .06);
  color: #dbeafe;
  border: 1px solid var(--border);
}

.btn-soft:hover {
  background: rgba(34, 211, 238, .11);
  border-color: rgba(34, 211, 238, .32);
  color: #fff;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .22);
  border-radius: 22px;
  overflow: hidden;
}

.card-header {
  background: rgba(255, 255, 255, .035);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  padding: 16px 18px;
}

.metric-card .card-body {
  padding: 18px;
}

.metric-label {
  color: var(--muted);
  font-size: .86rem;
  margin-bottom: 8px;
}

.metric-value {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.trend {
  margin-top: 10px;
  font-weight: 700;
  font-size: .9rem;
}

.trend.up { color: var(--green); }
.trend.down { color: var(--red); }

.dashboard-card .card-body {
  padding: 18px;
}

.progress-row {
  display: grid;
  grid-template-columns: 60px 1fr 72px;
  align-items: center;
  gap: 12px;
  color: #dbeafe;
}

.progress {
  height: 12px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
}

.progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.insight {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}

.insight i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.insight strong,
.insight small {
  display: block;
}

.insight small {
  color: var(--muted);
  margin-top: 3px;
}

.insight.success i { background: rgba(34,197,94,.14); color: var(--green); }
.insight.warning i { background: rgba(245,158,11,.14); color: var(--yellow); }
.insight.info i { background: rgba(34,211,238,.14); color: var(--cyan); }

.table {
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(148, 163, 184, .13);
}

.severity {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 8px;
}

.severity.high { background: var(--red); }
.severity.medium { background: var(--yellow); }
.severity.low { background: var(--green); }

.task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--border);
}

.task small {
  margin-left: auto;
  color: var(--muted);
}

.mobile-menu {
  background: #07101d;
}

@media (max-width: 575.98px) {
  .dashboard-topbar h1 {
    font-size: 1rem;
  }

  .dashboard-topbar small {
    display: none;
  }

  .metric-card .card-body,
  .dashboard-card .card-body {
    padding: 15px;
  }

  .progress-row {
    grid-template-columns: 54px 1fr;
  }

  .progress-row small {
    grid-column: 2;
  }

  .task {
    align-items: flex-start;
  }

  .task small {
    display: block;
  }
}

.sidebar-nav {
  min-height: 0;
  padding-bottom: 1rem;
}

.sidebar-user-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(2,6,23,.12), rgba(2,6,23,.7));
}

.user-card.btn {
  color: #e5eefc;
}

.user-card.btn:hover,
.user-card.btn.show {
  background: rgba(34, 211, 238, .1);
  border-color: rgba(34, 211, 238, .35);
}

.user-menu {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, .98);
  border-radius: 16px;
  padding: .55rem;
  margin-bottom: .55rem !important;
}

.user-menu .dropdown-item {
  border-radius: 11px;
  padding: .65rem .75rem;
}

.user-menu .dropdown-item:hover {
  background: rgba(37, 99, 235, .24);
}

.dropdown-menu-dark {
  --bs-dropdown-bg: rgba(15, 23, 42, .98);
  --bs-dropdown-border-color: var(--border);
  --bs-dropdown-link-hover-bg: rgba(37, 99, 235, .24);
}

.min-w-0 { min-width: 0; }

@media (max-width: 767.98px) {
  .topbar-actions {
    gap: .4rem !important;
  }

  .topbar-actions .dropdown-toggle::after {
    display: none;
  }
}


/* Fixed sidebar layout: keeps user section pinned to the bottom of the left panel */
.sidebar {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 1rem;
}

.sidebar-user-footer {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  z-index: 2;
}

[data-bs-theme="light"] body {
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 211, 238, .16), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(37, 99, 235, .12), transparent 28%),
    linear-gradient(135deg, #f8fafc 0%, #eef4fb 45%, #f8fafc 100%);
  color: #0f172a;
}

[data-bs-theme="light"] .sidebar,
[data-bs-theme="light"] .dashboard-topbar,
[data-bs-theme="light"] .mobile-menu {
  background: rgba(255, 255, 255, .82);
  color: #0f172a;
}

[data-bs-theme="light"] .sidebar-user-footer {
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.92));
}

[data-bs-theme="light"] .nav-link,
[data-bs-theme="light"] .progress-row,
[data-bs-theme="light"] .user-card.btn,
[data-bs-theme="light"] .btn-soft {
  color: #1e293b;
}

[data-bs-theme="light"] .btn-soft,
[data-bs-theme="light"] .user-card,
[data-bs-theme="light"] .insight,
[data-bs-theme="light"] .task {
  background: rgba(15, 23, 42, .045);
}

[data-bs-theme="light"] .card {
  box-shadow: 0 20px 55px rgba(15, 23, 42, .08);
}

[data-bs-theme="light"] .card-header {
  background: rgba(15, 23, 42, .035);
}

[data-bs-theme="light"] .dropdown-menu-dark {
  --bs-dropdown-bg: rgba(255, 255, 255, .98);
  --bs-dropdown-color: #0f172a;
  --bs-dropdown-link-color: #0f172a;
  --bs-dropdown-link-hover-color: #0f172a;
  --bs-dropdown-link-hover-bg: rgba(37, 99, 235, .12);
  --bs-dropdown-border-color: var(--border);
  --bs-dropdown-divider-bg: var(--border);
}

[data-bs-theme="light"] .text-secondary,
[data-bs-theme="light"] .brand small,
[data-bs-theme="light"] .metric-label,
[data-bs-theme="light"] .insight small,
[data-bs-theme="light"] .task small,
[data-bs-theme="light"] .muted {
  color: var(--muted) !important;
}

[data-bs-theme="light"] .btn-close {
  filter: none;
}

/* Light mode fix for user dropdown menu */
[data-bs-theme="light"] .user-menu {
  background: rgba(255, 255, 255, .98);
  color: #0f172a;
  border-color: var(--border);
  box-shadow: 0 22px 55px rgba(15, 23, 42, .14) !important;
}

[data-bs-theme="light"] .user-menu .dropdown-item {
  color: #0f172a;
}

[data-bs-theme="light"] .user-menu .dropdown-item:hover,
[data-bs-theme="light"] .user-menu .dropdown-item:focus {
  background: rgba(37, 99, 235, .12);
  color: #0f172a;
}

[data-bs-theme="light"] .user-menu .dropdown-divider {
  border-top-color: var(--border);
}

[data-bs-theme="light"] .user-menu .dropdown-item.text-danger {
  color: #dc3545 !important;
}

[data-bs-theme="light"] .user-menu .dropdown-item.text-danger:hover,
[data-bs-theme="light"] .user-menu .dropdown-item.text-danger:focus {
  background: rgba(220, 53, 69, .10);
  color: #b02a37 !important;
}

/* Light mode fix for Active Alerts table */
[data-bs-theme="light"] .table-dark {
  --bs-table-color: #0f172a;
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(15, 23, 42, .10);
  --bs-table-striped-bg: rgba(15, 23, 42, .035);
  --bs-table-striped-color: #0f172a;
  --bs-table-active-bg: rgba(15, 23, 42, .06);
  --bs-table-active-color: #0f172a;
  --bs-table-hover-bg: rgba(37, 99, 235, .08);
  --bs-table-hover-color: #0f172a;
  color: #0f172a;
}

[data-bs-theme="light"] .table-dark td,
[data-bs-theme="light"] .table-dark th {
  color: #0f172a;
  border-color: rgba(15, 23, 42, .10);
}

/* ARGENVO logo image */
.brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.brand-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, .16));
}

.mobile-brand .brand-logo {
  width: 155px;
}

/* Login page */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 211, 238, .18), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(37, 99, 235, .20), transparent 30%),
    linear-gradient(135deg, #020617 0%, #07101d 48%, #020617 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}

.login-page {
  min-height: 100vh;
  overflow-x: hidden;
}

@media (min-width: 992px) {
  .login-page {
    overflow-y: hidden;
  }
}

.login-hero {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding-bottom: 72px;
}


.login-footer-fixed {
  position: absolute;
  left: clamp(28px, 4vw, 56px);
  bottom: 22px;
  z-index: 2;
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% 8% 12%;
  height: 300px;
  background: radial-gradient(circle, rgba(34,211,238,.20), transparent 62%);
  pointer-events: none;
}

.login-hero-logo {
  width: min(360px, 72vw);
  filter: drop-shadow(0 0 26px rgba(34, 211, 238, .18));
}

.login-hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.login-hero h1 {
  font-size: clamp(1.65rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  font-weight: 900;
  max-width: 560px;
}

.login-hero p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
}

.login-panel-wrap {
  padding: clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-panel {
  width: min(100%, 470px);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, .76);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .35);
  padding: clamp(24px, 4vw, 38px);
}

.login-panel .form-control,
.login-panel .input-group-text {
  background: rgba(255,255,255,.06);
  color: #e5eefc;
  border-color: var(--border);
}

.login-panel .form-control:focus {
  box-shadow: 0 0 0 .25rem rgba(34, 211, 238, .16);
  border-color: rgba(34, 211, 238, .5);
}

.login-panel .form-control::placeholder {
  color: rgba(148, 163, 184, .75);
}

.login-actions-top {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  gap: .5rem;
  z-index: 4;
}

.login-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #dbeafe;
  margin-top: 14px;
  font-size: .95rem;
}

.login-feature i {
  color: var(--cyan);
}

[data-bs-theme="light"] .login-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 211, 238, .16), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(37, 99, 235, .12), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #eef4fb 48%, #f8fafc 100%);
  color: #0f172a;
}

[data-bs-theme="light"] .login-panel {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 28px 90px rgba(15, 23, 42, .12);
}

[data-bs-theme="light"] .login-panel .form-control,
[data-bs-theme="light"] .login-panel .input-group-text {
  background: rgba(15, 23, 42, .045);
  color: #0f172a;
}

[data-bs-theme="light"] .login-feature {
  color: #1e293b;
}

@media (max-width: 991.98px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: auto;
    padding-bottom: 56px;
  }

  .login-footer-fixed {
    left: clamp(24px, 5vw, 40px);
    bottom: 18px;
  }

  .login-hero-content {
    margin-top: 42px;
  }

  .login-panel-wrap {
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    width: 150px;
  }

  .login-actions-top {
    top: 14px;
    right: 14px;
  }

  .login-panel {
    border-radius: 22px;
  }
}


/* Operations page */
.ops-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 16px;
  align-items: stretch;
  position: relative;
}

.flow-step {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.045);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.flow-step i {
  font-size: 1.7rem;
  color: var(--cyan);
}

.flow-step small {
  color: var(--muted);
  font-weight: 800;
}

.flow-step.done {
  border-color: rgba(34,197,94,.25);
  box-shadow: inset 0 0 0 1px rgba(34,197,94,.05);
}

.flow-step.warning {
  border-color: rgba(245,158,11,.38);
  background: rgba(245,158,11,.08);
}

.flow-step.danger {
  border-color: rgba(239,68,68,.38);
  background: rgba(239,68,68,.08);
}

.flow-arrow {
  display: none;
}

.station-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.045);
  border-radius: 16px;
}

.station-row small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.station-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.station-dot.ok { background: var(--green); box-shadow: 0 0 14px rgba(34,197,94,.55); }
.station-dot.warn { background: var(--yellow); box-shadow: 0 0 14px rgba(245,158,11,.55); }
.station-dot.danger { background: var(--red); box-shadow: 0 0 14px rgba(239,68,68,.55); }

.ops-timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  position: relative;
}

.timeline-item span {
  color: var(--cyan);
  font-weight: 800;
  font-size: .92rem;
}

.timeline-item div {
  padding: 13px 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.045);
  border-radius: 16px;
}

.timeline-item small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.timeline-item.warning div { border-color: rgba(245,158,11,.35); }
.timeline-item.danger div { border-color: rgba(239,68,68,.35); }

[data-bs-theme="light"] .flow-step,
[data-bs-theme="light"] .station-row,
[data-bs-theme="light"] .timeline-item div {
  background: rgba(15, 23, 42, .045);
}

@media (max-width: 1199.98px) {
  .ops-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .ops-flow {
    grid-template-columns: 1fr;
  }

  .flow-step {
    min-height: 92px;
  }
}


/* Warehouse page */
.warehouse-map {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 130px 130px;
  gap: 14px;
}

.zone {
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(34,211,238,.09), rgba(37,99,235,.05)),
    rgba(255,255,255,.045);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

.zone strong {
  font-size: 1rem;
}

.zone small {
  color: var(--muted);
  font-weight: 900;
  font-size: 1.3rem;
}

.zone-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.zone-header .badge {
  flex-shrink: 0;
  font-size: .72rem;
}

.healthy-zone {
  border-color: rgba(34,197,94,.42);
  background: rgba(34,197,94,.08);
}

.z-a { grid-column: span 2; }
.z-b { grid-column: span 2; }
.z-c { grid-column: span 2; }
.z-d { grid-column: span 2; }
.z-e { grid-column: span 3; }
.z-f { grid-column: span 1; }

.alert-zone {
  border-color: rgba(239,68,68,.62);
  background:
    linear-gradient(135deg, rgba(239,68,68,.18), rgba(239,68,68,.08)),
    rgba(239,68,68,.08);
}

.warn-zone {
  border-color: rgba(245,158,11,.58);
  background:
    linear-gradient(135deg, rgba(245,158,11,.16), rgba(245,158,11,.08)),
    rgba(245,158,11,.08);
}

[data-bs-theme="light"] .zone {
  background:
    linear-gradient(135deg, rgba(34,211,238,.10), rgba(37,99,235,.05)),
    rgba(15,23,42,.045);
}

[data-bs-theme="light"] .alert-zone { background: rgba(239,68,68,.10); }
[data-bs-theme="light"] .warn-zone { background: rgba(245,158,11,.12); }
[data-bs-theme="light"] .healthy-zone { background: rgba(34,197,94,.08); }

@media (max-width: 991.98px) {
  .warehouse-map {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .z-a, .z-b, .z-c, .z-d, .z-e, .z-f {
    grid-column: span 1;
  }
}

@media (max-width: 575.98px) {
  .warehouse-map {
    grid-template-columns: 1fr;
  }
}


/* Logistics page */
.logistics-map {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(34,211,238,.16), transparent 24%),
    radial-gradient(circle at 75% 72%, rgba(37,99,235,.18), transparent 26%),
    repeating-linear-gradient(0deg, rgba(148,163,184,.08) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(148,163,184,.08) 0 1px, transparent 1px 42px),
    rgba(255,255,255,.035);
}

.route-line {
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg, rgba(34,211,238,.15), rgba(34,211,238,.85), rgba(37,99,235,.55));
  transform-origin: left center;
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(34,211,238,.25);
}

.r1 { width: 48%; left: 20%; top: 39%; transform: rotate(-11deg); }
.r2 { width: 40%; left: 20%; top: 46%; transform: rotate(21deg); }
.r3 { width: 53%; left: 20%; top: 53%; transform: rotate(5deg); }

.map-point {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .86);
  border: 1px solid var(--border);
  color: #e5eefc;
  font-size: .82rem;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(0,0,0,.22);
}

.map-point i { color: var(--cyan); }
.map-point.hub { left: 10%; top: 44%; }
.map-point.v1 { left: 38%; top: 29%; }
.map-point.v2 { left: 50%; top: 55%; }
.map-point.v3 { left: 65%; top: 42%; }
.map-point.d1 { right: 13%; top: 20%; }
.map-point.d2 { right: 20%; bottom: 22%; }
.map-point.d3 { right: 8%; top: 52%; }

.map-point.warn {
  border-color: rgba(245,158,11,.55);
}

.map-point.danger {
  border-color: rgba(239,68,68,.55);
}

[data-bs-theme="light"] .logistics-map {
  background:
    radial-gradient(circle at 20% 20%, rgba(34,211,238,.12), transparent 24%),
    radial-gradient(circle at 75% 72%, rgba(37,99,235,.10), transparent 26%),
    repeating-linear-gradient(0deg, rgba(15,23,42,.07) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(15,23,42,.07) 0 1px, transparent 1px 42px),
    rgba(15,23,42,.035);
}

[data-bs-theme="light"] .map-point {
  background: rgba(255,255,255,.92);
  color: #0f172a;
}

@media (max-width: 767.98px) {
  .logistics-map {
    min-height: 430px;
  }

  .route-line {
    opacity: .55;
  }

  .map-point {
    font-size: .75rem;
    padding: 7px 9px;
  }

  .map-point.hub { left: 8%; top: 10%; }
  .map-point.v1 { left: 18%; top: 34%; }
  .map-point.v2 { left: 45%; top: 50%; }
  .map-point.v3 { left: 36%; top: 72%; }
  .map-point.d1 { right: 8%; top: 24%; }
  .map-point.d2 { right: 8%; bottom: 22%; }
  .map-point.d3 { right: 8%; top: 52%; }
}


/* Quality page */
.quality-heatmap {
  display: grid;
  grid-template-columns: minmax(70px, .8fr) repeat(4, minmax(75px, 1fr));
  gap: 10px;
  min-width: 560px;
}

.heat-label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  min-height: 42px;
}

.heat-cell {
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.15rem;
}

.heat-cell.low {
  background: rgba(34,197,94,.14);
  color: #86efac;
  border-color: rgba(34,197,94,.26);
}

.heat-cell.medium {
  background: rgba(245,158,11,.16);
  color: #facc15;
  border-color: rgba(245,158,11,.30);
}

.heat-cell.high {
  background: rgba(239,68,68,.18);
  color: #fca5a5;
  border-color: rgba(239,68,68,.38);
}

[data-bs-theme="light"] .heat-cell.low {
  color: #15803d;
}

[data-bs-theme="light"] .heat-cell.medium {
  color: #a16207;
}

[data-bs-theme="light"] .heat-cell.high {
  color: #b91c1c;
}

@media (max-width: 767.98px) {
  .quality-heatmap {
    overflow-x: auto;
  }
}


/* Maintenance page */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.asset-card {
  min-height: 118px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.045);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 8px;
}

.asset-card i {
  font-size: 1.5rem;
  color: var(--cyan);
}

.asset-card strong,
.asset-card small {
  display: block;
}

.asset-card small {
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 900;
}

.asset-card.ok {
  border-color: rgba(34,197,94,.24);
}

.asset-card.warn {
  border-color: rgba(245,158,11,.42);
  background: rgba(245,158,11,.08);
}

.asset-card.danger {
  border-color: rgba(239,68,68,.42);
  background: rgba(239,68,68,.08);
}

[data-bs-theme="light"] .asset-card {
  background: rgba(15,23,42,.045);
}

[data-bs-theme="light"] .asset-card.warn {
  background: rgba(245,158,11,.10);
}

[data-bs-theme="light"] .asset-card.danger {
  background: rgba(239,68,68,.08);
}

@media (max-width: 767.98px) {
  .asset-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .asset-grid {
    grid-template-columns: 1fr;
  }
}


/* Alerts page */
.alert-pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.alert-pulse {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.045);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.alert-pulse span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
  margin-bottom: 4px;
}

.alert-pulse strong {
  font-size: .95rem;
}

.alert-pulse small {
  color: var(--muted);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.alert-pulse.danger span { background: var(--red); box-shadow: 0 0 16px rgba(239,68,68,.65); }
.alert-pulse.warning span { background: var(--yellow); box-shadow: 0 0 16px rgba(245,158,11,.65); }
.alert-pulse.info span { background: var(--cyan); box-shadow: 0 0 16px rgba(34,211,238,.65); }
.alert-pulse.success span { background: var(--green); box-shadow: 0 0 16px rgba(34,197,94,.65); }

.alert-pulse.danger { border-color: rgba(239,68,68,.32); }
.alert-pulse.warning { border-color: rgba(245,158,11,.32); }
.alert-pulse.info { border-color: rgba(34,211,238,.26); }
.alert-pulse.success { border-color: rgba(34,197,94,.26); }

[data-bs-theme="light"] .alert-pulse {
  background: rgba(15,23,42,.045);
}

@media (max-width: 991.98px) {
  .alert-pulse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .alert-pulse-grid {
    grid-template-columns: 1fr;
  }
}


/* Fix Chart.js responsive resize loop / vertical scroll growth */
.chart-fixed {
  position: relative;
  width: 100%;
}

.chart-alert-trend {
  height: 260px;
  max-height: 260px;
}

.chart-fixed canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}


/* Reports page */
.report-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-widget {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.045);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: .18s ease;
}

.report-widget:hover,
.report-widget.selected {
  border-color: rgba(34,211,238,.45);
  background: rgba(34,211,238,.08);
}

.report-widget i {
  color: var(--cyan);
  font-size: 1.4rem;
}

.report-widget small {
  color: var(--muted);
}

.report-preview {
  border: 1px solid rgba(34,211,238,.24);
  background:
    radial-gradient(circle at 15% 0%, rgba(34,211,238,.16), transparent 32%),
    rgba(255,255,255,.045);
  border-radius: 20px;
  padding: 18px;
}

.report-preview p {
  color: var(--muted);
  margin: 0;
}

.report-chart {
  height: 310px;
  max-height: 310px;
}

[data-bs-theme="light"] .report-widget,
[data-bs-theme="light"] .report-preview {
  background: rgba(15,23,42,.045);
}

[data-bs-theme="light"] .report-widget:hover,
[data-bs-theme="light"] .report-widget.selected {
  background: rgba(34,211,238,.10);
}

@media (max-width: 767.98px) {
  .report-builder-grid {
    grid-template-columns: 1fr;
  }

  .report-chart {
    height: 260px;
  }
}


/* Settings page */
.settings-nav-card {
  position: sticky;
  top: 96px;
}

.settings-tabs .nav-link {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  text-align: left;
}

.settings-content .card {
  min-height: 520px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.setting-item,
.setting-toggle {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.045);
  border-radius: 18px;
  padding: 16px;
}

.setting-item label {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.setting-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.setting-toggle small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.setting-item .form-control,
.setting-item .form-select {
  background: rgba(255,255,255,.06);
  color: #e5eefc;
  border-color: var(--border);
}

.setting-item .form-control:focus,
.setting-item .form-select:focus {
  box-shadow: 0 0 0 .25rem rgba(34,211,238,.14);
  border-color: rgba(34,211,238,.45);
}

.form-switch .form-check-input {
  width: 3rem;
  height: 1.5rem;
}

[data-bs-theme="light"] .setting-item,
[data-bs-theme="light"] .setting-toggle {
  background: rgba(15,23,42,.045);
}

[data-bs-theme="light"] .setting-item .form-control,
[data-bs-theme="light"] .setting-item .form-select {
  background: rgba(15,23,42,.045);
  color: #0f172a;
}

@media (max-width: 1199.98px) {
  .settings-nav-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 767.98px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .setting-toggle {
    align-items: flex-start;
  }
}


/* ARGENVO Production Line Command Center */
.production-command-card .card-body {
  min-height: 360px;
}

.production-line-command-center {
  display: grid;
  gap: 14px;
}

.line-command-row {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  padding: 14px;
  background: rgba(15, 23, 42, .36);
  box-shadow: inset 3px 0 0 rgba(34, 211, 238, .65);
}

[data-bs-theme="light"] .line-command-row {
  background: rgba(248, 250, 252, .84);
  border-color: rgba(15, 23, 42, .10);
}

.line-status-success {
  box-shadow: inset 3px 0 0 rgba(34, 197, 94, .8);
}

.line-status-warning {
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, .9);
}

.line-status-danger {
  box-shadow: inset 3px 0 0 rgba(239, 68, 68, .9);
}

.line-command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.line-command-grid > div {
  padding: 10px;
  border-radius: 14px;
  background: rgba(2, 6, 23, .26);
}

[data-bs-theme="light"] .line-command-grid > div {
  background: rgba(15, 23, 42, .045);
}

.line-command-grid small,
.line-command-grid strong {
  display: block;
}

.line-command-grid strong {
  font-size: .98rem;
}

.line-kpi-bars {
  display: grid;
  gap: 8px;
}

.line-kpi-bar {
  display: grid;
  grid-template-columns: 92px 1fr 48px;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
}

.line-kpi-bar .progress {
  height: 7px;
  background: rgba(148, 163, 184, .18);
}

.line-action {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .84rem;
  color: var(--bs-secondary-color);
}

.line-action i {
  color: #22d3ee;
}

@media (max-width: 768px) {
  .line-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .line-kpi-bar {
    grid-template-columns: 84px 1fr 42px;
  }
}


/* ARGENVO dynamic Operations page */
.ops-flow .flow-step small.text-secondary {
  font-size: .68rem;
  line-height: 1.05;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-flow .flow-step.running {
  border-color: rgba(34, 211, 238, .35);
}

.ops-flow .flow-step.running i {
  color: #22d3ee;
}

.ops-flow .flow-step.danger {
  border-color: rgba(239, 68, 68, .42);
}

.ops-flow .flow-step.danger i {
  color: #ef4444;
}


/* ARGENVO dynamic Warehouse page */
.warehouse-map .zone small.text-secondary {
  display: block;
  font-size: .7rem;
  opacity: .85;
  margin-top: 2px;
}

.warehouse-map .zone {
  min-height: 92px;
}

#criticalInventoryTableBody td strong {
  font-size: .9rem;
}

#criticalInventoryTableBody td small {
  font-size: .72rem;
}


/* ARGENVO dynamic Logistics page */
.logistics-map .map-point small {
  display: block;
  font-size: .68rem;
  line-height: 1;
  opacity: .85;
}

.logistics-status-list {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  z-index: 3;
}

.logistics-status-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(2, 6, 23, .58);
  border: 1px solid rgba(148, 163, 184, .16);
  backdrop-filter: blur(8px);
}

[data-bs-theme="light"] .logistics-status-item {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(15, 23, 42, .12);
}

.logistics-status-item strong {
  font-size: .78rem;
}

.logistics-status-item small {
  grid-column: 1 / 2;
  color: var(--bs-secondary-color);
  font-size: .72rem;
}

.logistics-status-item .badge {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
}

.map-point.vehicle.danger,
.map-point.dest.danger {
  border-color: rgba(239, 68, 68, .65);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .10);
}

.map-point.vehicle.warn,
.map-point.dest.warn {
  border-color: rgba(245, 158, 11, .65);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .10);
}

@media (max-width: 768px) {
  .logistics-status-list {
    grid-template-columns: 1fr;
  }
}


/* ARGENVO dynamic Quality page */
.quality-heatmap {
  overflow-x: auto;
}

.quality-heatmap .heat-label,
.quality-heatmap .heat-cell {
  min-width: 72px;
}

#openQualityIssuesTableBody td strong {
  font-size: .9rem;
}

#openQualityIssuesTableBody td small {
  font-size: .72rem;
}


/* ARGENVO dynamic Maintenance page */
.asset-grid .asset-card small.text-secondary {
  font-size: .7rem;
  opacity: .85;
  margin-top: 2px;
}

#maintenanceWorkOrderQueueTableBody td strong {
  font-size: .9rem;
}

#maintenanceWorkOrderQueueTableBody td small {
  font-size: .72rem;
}


/* ARGENVO dynamic Alerts page */
#alertPulseSummary .alert-pulse {
  min-height: 84px;
}

#liveAlertQueueTableBody td {
  vertical-align: middle;
}

#liveAlertQueueTableBody .severity {
  margin-right: 8px;
}


/* ARGENVO dynamic Reports page */
.report-builder-grid .report-widget {
  text-align: left;
  border: 1px solid rgba(148, 163, 184, .18);
  cursor: pointer;
}

.report-builder-grid .report-widget.selected {
  border-color: rgba(34, 211, 238, .65);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .10);
}

#reportLibraryTableBody td strong {
  font-size: .9rem;
}

#reportLibraryTableBody td small {
  font-size: .72rem;
}


/* ARGENVO operational Settings page */
.settings-save-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(148, 163, 184, .14);
}

[data-bs-theme="light"] .settings-save-row {
  border-top-color: rgba(15, 23, 42, .10);
}

.settings-save-status {
  min-height: 1rem;
}


/* ARGENVO operational threshold settings */
.settings-thresholds {
  display: grid;
  gap: 18px;
}

.threshold-section {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 16px;
  background: rgba(15, 23, 42, .18);
}

[data-bs-theme="light"] .threshold-section {
  background: rgba(248, 250, 252, .84);
  border-color: rgba(15, 23, 42, .10);
}

.threshold-section h6 {
  margin: 0 0 14px;
  color: var(--bs-emphasis-color);
  font-weight: 700;
}


.threshold-save-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px dashed rgba(148, 163, 184, .18);
}

[data-bs-theme="light"] .threshold-save-row {
  border-top-color: rgba(15, 23, 42, .12);
}

/* Sidebar compact single-column fix
   Prevents translated/long menu labels from wrapping into a second visual column
   and removes horizontal overflow at desktop resolutions such as 1920x1080. */
@media (min-width: 992px) {
  .sidebar {
    width: 260px;
    flex: 0 0 260px;
    max-width: 260px;
    overflow-x: hidden;
  }

  .sidebar .brand {
    max-width: 100%;
    overflow: hidden;
  }

  .sidebar .brand-logo {
    width: 170px;
  }

  .sidebar-nav {
    overflow-x: hidden;
    padding-left: .65rem !important;
    padding-right: .65rem !important;
    gap: .18rem !important;
  }

  .sidebar .nav-link {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .88rem;
    line-height: 1.15;
    padding: 9px 10px;
    gap: 9px;
    border-radius: 12px;
  }

  .sidebar .nav-link i {
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    text-align: center;
    font-size: .98rem;
    line-height: 1;
  }

  .sidebar .nav-link span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-user-footer {
    overflow-x: hidden;
  }

  .sidebar-user-footer .user-card {
    min-width: 0;
  }

  .sidebar-user-footer .user-card .min-w-0 {
    min-width: 0;
    overflow: hidden;
  }
}

/* Sidebar user menu stacking fix
   The sidebar itself must not clip the dropup menu. Only the scrollable nav
   should hide horizontal overflow. */
@media (min-width: 992px) {
  .sidebar {
    position: sticky;
    z-index: 1040;
    overflow: visible;
  }

  .sidebar-nav {
    position: relative;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .sidebar-user-footer {
    position: sticky;
    bottom: 0;
    z-index: 1060;
    overflow: visible;
    isolation: isolate;
  }

  .sidebar-user-footer .dropdown,
  .sidebar-user-footer .dropup {
    position: relative;
    z-index: 1061;
  }

  .sidebar-user-footer .dropdown-menu,
  .sidebar-user-footer .user-menu {
    z-index: 1070;
  }

  .sidebar-user-footer .user-card {
    position: relative;
    z-index: 1062;
  }
}

/* Operations Recommended Actions layout polish */
.ops-action-task {
  align-items: flex-start;
}

.ops-action-task .form-check-input {
  flex: 0 0 auto;
  margin-top: .25rem;
}

.ops-action-task .task-content {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.ops-action-task .task-content strong,
.ops-action-task .task-content small {
  display: block;
}

.ops-action-task .ops-action-meta {
  margin-left: 0;
  margin-top: .25rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Warehouse task layout polish */
.warehouse-action-task {
  align-items: flex-start;
}

.warehouse-action-task .form-check-input {
  flex: 0 0 auto;
  margin-top: .25rem;
}

.warehouse-action-task .task-content {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.warehouse-action-task .task-content strong,
.warehouse-action-task .task-content small {
  display: block;
}

.warehouse-action-task .warehouse-action-meta {
  margin-left: 0;
  margin-top: .25rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Warehouse Zone Utilization compact card polish */
.warehouse-map {
  grid-template-rows: auto;
  align-items: stretch;
}

.zone {
  min-height: 138px;
  padding: 15px 16px;
  justify-content: flex-start;
  gap: .75rem;
  overflow: hidden;
}

.zone-header strong {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}

.zone-utilization {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
}

.zone-utilization span {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  color: #dbeafe;
}

.zone-utilization small {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.zone-utilization-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.zone-utilization-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.alert-zone .zone-utilization-bar span {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.warn-zone .zone-utilization-bar span {
  background: linear-gradient(90deg, #f59e0b, #facc15);
}

.healthy-zone .zone-utilization-bar span {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

@media (max-width: 1399.98px) {
  .warehouse-map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .z-a, .z-b, .z-c, .z-d, .z-e, .z-f {
    grid-column: span 2;
  }
}

/* Logistics page polish */
.logistics-action-task {
  align-items: flex-start;
}

.logistics-action-task .form-check-input {
  flex: 0 0 auto;
  margin-top: .25rem;
}

.logistics-action-task .task-content {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.logistics-action-task .task-content strong,
.logistics-action-task .task-content small {
  display: block;
}

.logistics-action-task .logistics-action-meta {
  margin-left: 0;
  margin-top: .25rem;
  color: var(--muted);
  line-height: 1.35;
}

.logistics-insight-card .badge {
  white-space: nowrap;
}

/* Compact Logistics Actions when only a few action cards exist */
.logistics-actions-compact {
  align-content: flex-start;
  grid-auto-rows: max-content;
}

.logistics-actions-compact .logistics-action-task {
  min-height: auto;
}

/* Quality page polish */
.quality-action-task {
  align-items: flex-start;
}

.quality-action-task .form-check-input {
  flex: 0 0 auto;
  margin-top: .25rem;
}

.quality-action-task .task-content {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.quality-action-task .task-content strong,
.quality-action-task .task-content small {
  display: block;
}

.quality-action-task .quality-action-meta {
  margin-left: 0;
  margin-top: .25rem;
  color: var(--muted);
  line-height: 1.35;
}

.quality-actions-compact {
  align-content: flex-start;
  grid-auto-rows: max-content;
}

.quality-actions-compact .quality-action-task {
  min-height: auto;
}

/* Maintenance page polish */
.maintenance-action-task {
  align-items: flex-start;
}

.maintenance-action-task .form-check-input {
  flex: 0 0 auto;
  margin-top: .25rem;
}

.maintenance-action-task .task-content {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.maintenance-action-task .task-content strong,
.maintenance-action-task .task-content small {
  display: block;
}

.maintenance-action-task .maintenance-action-meta {
  margin-left: 0;
  margin-top: .25rem;
  color: var(--muted);
  line-height: 1.35;
}

.maintenance-actions-compact {
  align-content: flex-start;
  grid-auto-rows: max-content;
}

.maintenance-actions-compact .maintenance-action-task {
  min-height: auto;
}

/* Alerts page polish */
.alert-priority-card .badge {
  white-space: nowrap;
}

.alert-action-task {
  align-items: flex-start;
}

.alert-action-task .form-check-input {
  flex: 0 0 auto;
  margin-top: .25rem;
}

.alert-action-task .task-content {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.alert-action-task .task-content strong,
.alert-action-task .task-content small {
  display: block;
}

.alert-action-task .alert-action-meta {
  margin-left: 0;
  margin-top: .25rem;
  color: var(--muted);
  line-height: 1.35;
}

.alert-actions-compact {
  align-content: flex-start;
  grid-auto-rows: max-content;
}

.alert-actions-compact .alert-action-task {
  min-height: auto;
}

#liveAlertQueueTableBody td:nth-child(3) {
  max-width: 420px;
}

#liveAlertQueueTableBody td:nth-child(3) strong {
  display: block;
  line-height: 1.35;
}

/* Workflow Task Center polish */
.workflow-task-row td {
  padding-top: .8rem;
  padding-bottom: .8rem;
}

.workflow-task-row td:nth-child(2) {
  max-width: 720px;
}

.workflow-task-row td:nth-child(2) strong {
  display: block;
  line-height: 1.35;
}

.workflow-actions .btn[disabled] {
  opacity: .45;
}

.workflow-task-note {
  padding: 1rem !important;
  text-align: center;
  font-weight: 600;
}




.profile-avatar-preview {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #020617;
  font-size: 36px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.argenvo-faq .accordion-item {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}

.argenvo-faq .accordion-button {
  background: rgba(255, 255, 255, .04);
  color: #e5edf7;
  font-weight: 700;
  box-shadow: none;
}

.argenvo-faq .accordion-button:not(.collapsed) {
  background: rgba(34, 211, 238, .10);
  color: #ffffff;
}

.argenvo-faq .accordion-button::after {
  filter: invert(1) grayscale(1);
}

.argenvo-faq .accordion-body {
  color: #b8c7d9;
  background: rgba(15, 23, 42, .42);
}
