/* ============================================================
   NC RECOVERY PORTAL — Dashboard (light surface · navy strip)
   ============================================================ */

.nc-dash {
  display: grid;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   1. LIVE OPS STRIP — the signature dark bar
   ============================================================ */

.nc-liveops {
  position: relative;
  background: var(--nc-grad-hero);
  border-radius: var(--nc-r-md);
  overflow: hidden;
  box-shadow: var(--nc-shadow-lg);
  color: #E2E8F0;
}

.nc-liveops::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 100% at 0% 50%, rgba(0, 180, 255, 0.30), transparent 70%),
    radial-gradient(ellipse 60% 100% at 100% 50%, rgba(0, 136, 221, 0.18), transparent 70%);
  pointer-events: none;
}

.nc-liveops::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 180, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0;
  mask-image: linear-gradient(180deg, transparent, black 50%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 50%, transparent);
  opacity: 0.7;
  pointer-events: none;
}

.nc-liveops__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.nc-liveops__lead {
  padding: 26px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.nc-liveops__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nc-font-display);
  font-size: var(--nc-fs-xs);
  font-weight: var(--nc-fw-bold);
  letter-spacing: var(--nc-tracking-ultra);
  text-transform: uppercase;
  color: var(--nc-blue-hot);
}
.nc-liveops__eyebrow::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--nc-live);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--nc-live-glow);
  animation: nc-pulse 1.6s var(--nc-ease) infinite;
}
.nc-liveops__greet {
  font-family: var(--nc-font-display);
  font-size: var(--nc-fs-2xl);
  font-weight: var(--nc-fw-black);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 1.05;
}
.nc-liveops__greet em {
  font-style: normal;
  background: linear-gradient(90deg, var(--nc-blue-hot), var(--nc-blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.nc-liveops__sub {
  font-size: var(--nc-fs-sm);
  color: rgba(226, 232, 240, 0.7);
}

.nc-liveops__cell {
  padding: 26px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  position: relative;
}
.nc-liveops__cell:last-child { border-right: none; }

.nc-liveops__label {
  font-family: var(--nc-font-display);
  font-size: var(--nc-fs-xs);
  font-weight: var(--nc-fw-bold);
  letter-spacing: var(--nc-tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.nc-liveops__value {
  font-family: var(--nc-font-mono);
  font-size: 42px;
  font-weight: var(--nc-fw-bold);
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.02em;
}
.nc-liveops__value--live {
  background: linear-gradient(135deg, var(--nc-blue-hot), #00B4FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.nc-liveops__unit {
  font-family: var(--nc-font-mono);
  font-size: var(--nc-fs-sm);
  color: rgba(255, 255, 255, 0.4);
  margin-left: 4px;
  letter-spacing: 0.04em;
}

.nc-liveops__delta {
  font-family: var(--nc-font-mono);
  font-size: var(--nc-fs-xs);
  font-weight: var(--nc-fw-bold);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nc-liveops__delta--up   { color: #4ADE80; }
.nc-liveops__delta--down { color: var(--nc-warn); }
.nc-liveops__delta--zero { color: rgba(255, 255, 255, 0.5); }

@media (max-width: 980px) {
  .nc-liveops__inner { grid-template-columns: 1fr 1fr; }
  .nc-liveops__lead { grid-column: 1 / -1; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nc-liveops__cell:nth-child(2) { border-right: 1px solid rgba(255,255,255,0.08); }
  .nc-liveops__cell:nth-child(3) { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nc-liveops__cell:nth-child(4) { grid-column: 1 / -1; border-right: none; }
}

/* ============================================================
   2. QUICK ACTIONS — bright cards with energy
   ============================================================ */

.nc-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.nc-quick__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--nc-white);
  border: 1px solid var(--nc-border);
  border-radius: var(--nc-r-md);
  text-decoration: none;
  color: var(--nc-text);
  transition: all var(--nc-dur-base) var(--nc-ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--nc-shadow-sm);
}
.nc-quick__card::after {
  content: "";
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--nc-blue-tint-2), transparent 70%);
  opacity: 0;
  transition: opacity var(--nc-dur-base) var(--nc-ease);
}
.nc-quick__card:hover {
  border-color: var(--nc-blue);
  transform: translateY(-3px);
  box-shadow: var(--nc-shadow-md), 0 0 0 1px var(--nc-blue-tint-2);
}
.nc-quick__card:hover::after { opacity: 1; }

.nc-quick__icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nc-blue-tint);
  border: 1px solid var(--nc-blue-tint-2);
  border-radius: var(--nc-r-sm);
  color: var(--nc-blue);
  flex-shrink: 0;
}
.nc-quick__icon svg { width: 20px; height: 20px; stroke: currentColor; }

.nc-quick__txt   { flex: 1; min-width: 0; position: relative; z-index: 1; }
.nc-quick__title {
  font-family: var(--nc-font-display);
  font-size: var(--nc-fs-base);
  font-weight: var(--nc-fw-bold);
  letter-spacing: -0.01em;
  color: var(--nc-text);
}
.nc-quick__desc { font-size: var(--nc-fs-xs); color: var(--nc-text-dim); margin-top: 3px; }

.nc-quick__card.is-primary {
  background: var(--nc-grad-blue);
  border-color: var(--nc-blue);
  color: var(--nc-white);
  box-shadow: 0 8px 24px var(--nc-blue-glow-2);
}
.nc-quick__card.is-primary:hover {
  box-shadow: 0 14px 36px var(--nc-blue-glow-2);
}
.nc-quick__card.is-primary .nc-quick__title { color: var(--nc-white); }
.nc-quick__card.is-primary .nc-quick__icon {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--nc-white);
}
.nc-quick__card.is-primary .nc-quick__desc { color: rgba(255, 255, 255, 0.85); }

/* ============================================================
   3. DASHBOARD GRID
   ============================================================ */

.nc-dash__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
@media (max-width: 1100px) {
  .nc-dash__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   4. PANEL CARD
   ============================================================ */

.nc-panel {
  background: var(--nc-white);
  border: 1px solid var(--nc-border);
  border-radius: var(--nc-r-md);
  overflow: hidden;
  box-shadow: var(--nc-shadow-sm);
}

.nc-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--nc-border);
  background: linear-gradient(180deg, var(--nc-cream), var(--nc-white));
}
.nc-panel__title {
  font-family: var(--nc-font-display);
  font-size: var(--nc-fs-base);
  font-weight: var(--nc-fw-black);
  letter-spacing: var(--nc-tracking-wide);
  text-transform: uppercase;
  color: var(--nc-text-strong);
}
.nc-panel__sub {
  font-size: var(--nc-fs-xs);
  color: var(--nc-text-dim);
  margin-top: 2px;
}
.nc-panel__action {
  font-family: var(--nc-font-display);
  font-size: var(--nc-fs-xs);
  font-weight: var(--nc-fw-bold);
  letter-spacing: var(--nc-tracking-wide);
  text-transform: uppercase;
  color: var(--nc-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nc-panel__action:hover { color: var(--nc-blue-bright); }
.nc-panel__action svg { width: 12px; height: 12px; stroke: currentColor; }

.nc-panel__body { padding: 8px 0; }

/* ---------- Job row ---------- */

.nc-jobrow {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--nc-border-soft);
  text-decoration: none;
  color: inherit;
  transition: background var(--nc-dur-fast) var(--nc-ease);
  cursor: pointer;
}
.nc-jobrow:last-child { border-bottom: none; }
.nc-jobrow:hover { background: var(--nc-bg-hover); }

.nc-jobrow__num {
  font-family: var(--nc-font-mono);
  font-size: var(--nc-fs-sm);
  font-weight: var(--nc-fw-bold);
  color: var(--nc-blue-dark);
  letter-spacing: 0;
  padding: 4px 10px;
  background: var(--nc-blue-tint);
  border: 1px solid var(--nc-blue-tint-2);
  border-radius: var(--nc-r-sm);
  white-space: nowrap;
}

.nc-jobrow__main { min-width: 0; }
.nc-jobrow__title {
  font-size: var(--nc-fs-sm);
  font-weight: var(--nc-fw-semi);
  color: var(--nc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nc-jobrow__route {
  font-size: var(--nc-fs-xs);
  color: var(--nc-text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nc-jobrow__meta {
  font-family: var(--nc-font-mono);
  font-size: var(--nc-fs-xs);
  color: var(--nc-text-muted);
  text-align: right;
  white-space: nowrap;
}
.nc-jobrow__meta-strong { color: var(--nc-text); font-weight: var(--nc-fw-bold); display: block; }

.nc-jobrow__chev {
  width: 16px; height: 16px;
  color: var(--nc-text-dim);
  transition: transform var(--nc-dur-fast) var(--nc-ease);
  stroke: currentColor;
}
.nc-jobrow:hover .nc-jobrow__chev { transform: translateX(2px); color: var(--nc-blue); }

/* ---------- Live job card ---------- */

.nc-livecard {
  margin: 12px 18px;
  padding: 16px;
  background: linear-gradient(135deg, var(--nc-blue-tint), var(--nc-white) 80%);
  border: 1px solid var(--nc-blue-tint-2);
  border-radius: var(--nc-r-sm);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  transition: all var(--nc-dur-base) var(--nc-ease);
  box-shadow: var(--nc-shadow-xs);
}
.nc-livecard::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  background: var(--nc-grad-blue);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px var(--nc-blue-glow-2);
}
.nc-livecard:hover {
  border-color: var(--nc-blue);
  transform: translateX(2px);
  box-shadow: var(--nc-shadow-sm), 0 0 0 1px var(--nc-blue-tint-2);
}
.nc-livecard__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.nc-livecard__num {
  font-family: var(--nc-font-mono);
  font-size: var(--nc-fs-xs);
  font-weight: var(--nc-fw-bold);
  color: var(--nc-blue-dark);
}
.nc-livecard__driver {
  font-size: var(--nc-fs-xs);
  color: var(--nc-text-muted);
}
.nc-livecard__route {
  font-size: var(--nc-fs-sm);
  color: var(--nc-text);
  font-weight: var(--nc-fw-semi);
  margin-bottom: 6px;
}
.nc-livecard__eta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--nc-font-mono);
  font-size: var(--nc-fs-xs);
  letter-spacing: 0.02em;
}
.nc-livecard__eta-label { color: var(--nc-text-dim); text-transform: uppercase; }
.nc-livecard__eta-val   { color: var(--nc-blue); font-weight: var(--nc-fw-bold); }

/* ---------- Status pills ---------- */

.nc-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-family: var(--nc-font-display);
  font-size: 10px;
  font-weight: var(--nc-fw-bold);
  letter-spacing: var(--nc-tracking-wide);
  text-transform: uppercase;
  border-radius: var(--nc-r-pill);
  white-space: nowrap;
}
.nc-status::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.nc-status--new        { background: var(--nc-blue-tint-2);  color: var(--nc-blue-dark); }
.nc-status--scheduled  { background: var(--nc-warn-bg);       color: #B45309; }
.nc-status--dispatched { background: var(--nc-warn-bg);       color: #B45309; }
.nc-status--enroute,
.nc-status--on-scene,
.nc-status--loaded     { background: var(--nc-live-bg);       color: var(--nc-live); }
.nc-status--enroute::before,
.nc-status--on-scene::before,
.nc-status--loaded::before { animation: nc-pulse 1.4s var(--nc-ease) infinite; }
.nc-status--delivered,
.nc-status--completed  { background: var(--nc-success-bg);   color: #047857; }
.nc-status--cancelled  { background: var(--nc-cream-3);      color: var(--nc-text-dim); }

/* ============================================================
   5. EMPTY-STATE WITHIN PANELS
   ============================================================ */

.nc-panel .nc-empty { padding: 48px 20px; }

/* ============================================================
   6. FAB
   ============================================================ */

.nc-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--nc-grad-blue);
  color: var(--nc-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 28px var(--nc-blue-glow-2), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all var(--nc-dur-base) var(--nc-ease);
  z-index: var(--nc-z-sticky);
}
.nc-fab:hover {
  transform: translateY(-3px) rotate(90deg);
  box-shadow: 0 16px 40px var(--nc-blue-glow-2);
}
.nc-fab svg { width: 22px; height: 22px; stroke: currentColor; }
@media (min-width: 1025px) { .nc-fab { display: none; } }

/* ============================================================
   7. PAGE INTRO
   ============================================================ */

.nc-dash > * { animation: nc-fade-in-up var(--nc-dur-slow) var(--nc-ease) both; }
.nc-dash > *:nth-child(1) { animation-delay: 0ms; }
.nc-dash > *:nth-child(2) { animation-delay: 80ms; }
.nc-dash > *:nth-child(3) { animation-delay: 160ms; }
.nc-dash > *:nth-child(4) { animation-delay: 240ms; }
