.footer-return a {
  color: #6B7275;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-return a:hover {
  text-decoration: underline;
}

.dashboard-card h2,
.dashboard-card h3,
.panel h2,
.panel h3,
.card h2,
.card h3,
.attention-item h3 {
  text-transform: capitalize;
}

@media (max-width: 1024px) {

  .qr-print-preview {
    padding: 1rem;
    overflow-x: auto;
  }

  .qr-code-image {
    max-width: 100%;
    height: auto;
  }

  .qr-print-preview img {
    max-width: 100%;
    height: auto;
  }

}

.dashboard-card h2 {
  font-size: 1.26rem;
  font-weight: 600;
  color: #435159;
}

.attention-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #4f5f66;
}

.timeline-list strong {
  color: #4f5f66;
  font-weight: 600;
}

..panel h3,
.card h3,
.attention-item h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 600;
  color: #4b5a61;
}

.qr-est-001-marker {
  left: 20.2%;
  top: 22.1%;
}

.qr-est-002-marker {
  left: 59.8%;
  top: 22.7%;
}

.qr-est-003-marker {
  left: 75.9%;
  top: 50.3%;
}

.qr-est-004-marker {
  left: 45%;
  top: 68.4%;
}

.footer-sub {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: rgba(70, 84, 78, 0.72);
  text-align: center;
  line-height: 1.5;
}

.qr-code-image {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto 1rem;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(120, 135, 130, 0.24);
}

[hidden] {
  display: none !important;
}

.qr-map-wrap {
  position: relative;
  max-width: 1000px;
  margin: 1.5rem auto;
}

.qr-map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

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

.qr-glow.active {
  background: rgba(217, 164, 65, 0.55);
  box-shadow:
    0 0 0 10px rgba(217, 164, 65, 0.22),
    0 0 28px rgba(217, 164, 65, 1);
}

.qr-est-001 { left: 20%; top: 25%; }
.qr-est-002 { left: 59%; top: 26%; }
.qr-est-003 { left: 76%; top: 58%; }
.qr-est-004 { left: 45%; top: 75%; }

.hold-textarea {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(120, 135, 130, 0.24);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  resize: vertical;
  min-height: 120px;
}

/* QR identity pages */
.qr-print-preview {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(120, 135, 130, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto 1rem;
  border: 2px dashed rgba(88, 115, 105, 0.45);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(248, 250, 248, 0.9);
}

.map-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(28, 45, 39, 0.12);
}
/* ==============================
   SIDEBAR
   ============================== */
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
}

.sidebar {
  min-height: 100vh;
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.sidebar-brand {
  margin-bottom: 34px;
}

.sidebar-eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sidebar-brand h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
}

.sidebar-nav {
  display: block;
}

.sidebar-group {
  display: block;
  margin: 1.35rem 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(84, 84, 84, 0.16);
}

.sidebar-label {
  display: block;
  margin: 0 0 0.75rem;
  padding-top: 0.2rem;
  color: #2f434c;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-group a {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.65rem;
  border-radius: 10px;
  background: transparent;
  color: #3f4d54;
  font-size: 0.98rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    padding-left 0.2s ease;
}

.sidebar-group a:hover {
  background-color: rgba(201, 213, 208, 0.24);
  color: #24363d;
  padding-left: 0.9rem;
}

.sidebar-group a.active {
  background-color: rgba(201, 213, 208, 0.34);
  color: #1f2d2a;
  font-weight: 600;
}

.sidebar-nav span {
  display: block;
  margin-top: 0.2rem;
  color: #8a9498;
  font-size: 0.76rem;
  line-height: 1.35;
}

.sidebar-operational-time {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(88, 115, 128, 0.25);
  font-size: 0.82rem;
  color: #587380;
}

.sidebar-time-label {
  margin: 0 0 0.25rem;
  font-style: italic;
}

.sidebar-operational-time p {
  margin: 0;
}

.sidebar-sync-note {
  margin-top: 0.4rem;
  color: #6b7d86;
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.4;
}

.sidebar-group a span {
  display: block;
  margin-top: 0.28rem;
  color: #8a9498;
  font-size: 0.76rem;
  line-height: 1.35;
}

.sidebar-disabled {
  color: #8a9498 !important;
  cursor: default;
  pointer-events: none;
  background: transparent !important;
  padding-left: 0.65rem !important;
}

.sidebar-disabled:hover {
  background: transparent !important;
  color: #8a9498 !important;
}
/* ==============================
   OPERATIONAL OVERVIEW / 
   ============================== */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--hold-operational-blue);
  text-decoration: none;
  font-size: 0.92rem;
}

.back-link:hover {
  text-decoration: underline;
}

.live-note {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-style: italic;
  color: #7a858a;
}

.demo-alert-button {
  margin: 0 0 1.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid #d1a24c;
  background: #fff8ea;
  color: #8a6118;
  font-family: inherit;
  cursor: pointer;
}

.map-details {
  margin: 1rem 0 1.5rem;
}

.centered-alert {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.alert-title-pill {
  display: block;
  width: fit-content;
  margin: 0.35rem auto 0.55rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;

  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1;

  text-align: center;
  color: #435159;
}

.amber-alerts .alert-title-pill {
  background: #f3e1b8;
  color: #435159;
}

.red-alerts .alert-title-pill {
  background: #ebc9c9;
  color: #435159;
}

.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.alert-header > div {
  flex: 1;
}

.alert-kicker {
  margin-bottom: 0.45rem;
}

.amber-kicker {
  color: #9a6d24;
}

.red-kicker {
  color: #9b4b46;
}

.alert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.alert-card .section-kicker {
  color: #5f6d72;
}

.alert-card {
  position: relative;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.amber-alerts {
 background: #f4eee1;
border: 1px solid #d2b278;
border-left: 6px solid #b88a3b;
}

.red-alerts {
  background: #f5e8e6;
border: 1px solid #c89a96;
border-left: 6px solid #9b5b55;
}

#amberAlerts p,
#redAlerts p {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  margin: 0.7rem 0;
}

.alert-card h2 {
  color: #435159;
  font-weight: 600;
}

#amberAlerts p,
#redAlerts p {
  color: #2f3e46;
  font-weight: 500;
  line-height: 1.65;
 letter-spacing: 0.01em;
}

.alert-card .section-intro {
  color: #434343;
  font-weight: 500;
}

.alert-pill {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.amber-pill {
  background: #f3e1b8;
  color: #8a6118;
}

.red-pill {
  background: #ebc9c9;
  color: #8d3432;
}

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

.operational-overview {
  margin-top: 2rem;
}

.overview-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.overview-item {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(84, 84, 84, 0.08);
  min-width: 180px;
}

.overview-label {
  display: block;
  font-size: 0.82rem;
  color: var(--hold-operational-blue);
  margin-bottom: 0.2rem;
}

.overview-value {
  font-weight: 600;
  color: #3f4f4f;
}

.flow-item h3,
.attention-item h3,
.capability-card h3 {
  color: var(--hold-operational-blue);
  font-weight: 700;
}

.workflow-card {
  background: #ffffff;
  border: 1px solid rgba(84, 84, 84, 0.08);
  border-radius: 18px;
  padding: 1rem;
}

.workflow-card a {
  display: block;
  margin-top: 0.45rem;
  color: var(--hold-operational-blue);
  text-decoration: none;
  font-weight: 600;
}

.workflow-card a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {

  .top-shift-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .movement-row {
    grid-template-columns: 1fr;
  }

}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.capability-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid rgba(84, 84, 84, 0.08);
}

.movement-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.movement-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(84, 84, 84, 0.08);
}

.movement-time {
  font-weight: 600;
  color: var(--hold-operational-blue);
}

.attention-item,
.flow-item {
  padding: 1rem 0;
  border-top: 1px solid rgba(84, 84, 84, 0.08);
}

.attention-item:first-child,
.flow-item:first-child {
  border-top: none;
  padding-top: 0;
}

.flow-item p,
.attention-item p {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.map-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #2f3f38;
  background: #f7fbf8;
  border: 1px solid #d7e3dc;
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.app-logo {
  width: 92px;
  height: auto;
  opacity: 0.92;
  margin-bottom: 18px;
}
/* ==============================
   OPERATIONAL SIGNAL STRIPS
   ============================== */

.signal-strip {
  margin: 1rem 0 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.signal-info {
  background: rgba(201, 213, 208, 0.32);
  border: 1px solid rgba(120, 135, 130, 0.18);
}

.signal-warning {
  background: rgba(255, 244, 210, 0.45);
  border: 1px solid rgba(210, 170, 95, 0.25);
}

/* ==============================
   STRATA ESTATES
   ============================== */
.offline-banner {
  background: #fff8e6;
  border: 1px solid #e2c56b;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 22px 0;
  color: #5f4b00;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.page-header,
.asset-alias,
.offline-banner,
.map-details {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.page-header,
.asset-alias {
  text-align: center;
}

.map-details {
  margin-top: 1.5rem;
}

.page-hero {
  text-align: center;
  margin-bottom: 2rem;

  position: sticky;
  top: 0;
  z-index: 20;

  background: #f6f8f7;
  padding: 1.25rem 1rem;
}

.stat-card.feature-highlight {
  border-left: 4px solid #7b9e87;
  background: #f7fbf8;
}

.inline-link {
  color: inherit;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.compact-scan-view {
  max-width: 760px;
  margin: 0 auto;
}
/* ==============================
   STRATA AGGREGATES
   ============================== */
/* Maps */
.map-card {
  margin: 24px 0 0;
}

.safety-map {
  width: 100%;
  max-width: 1000px;
  display: block;
  margin: 1rem auto;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(28, 45, 39, 0.12);
}

.map-card img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.map-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-focus-row {
  display: flex;
  width: 100%;
  margin: 0.65rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.map-focus-row small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}

.map-focus-row.active {
  background: rgba(201, 213, 208, 0.38);
  border-color: #9fb8ad;
}

.map-focus-wrap {
  position: relative;
  max-width: 1000px;
  margin: 1.5rem auto;
}

.map-focus-marker {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 244, 180, 0.9);
  border: 3px solid #c8912f;
  box-shadow: 0 0 0 8px rgba(200, 145, 47, 0.22);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
}

.bay-a12-marker {
  left: 24%;
  top: 42%;
}

.bay-c03-marker {
  left: 51%;
  top: 42%;
}

.hold-area-b-marker {
  left: 40%;
  top: 50%;
}

.forklift-03-marker {
  left: 55%;
  top: 48%;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.status-card {
  background: #eef3f0;
  border-radius: 18px;
  padding: 1rem;
}

.status-card .label {
  display: block;
  font-size: 0.8rem;
  color: #68736d;
  margin-bottom: 0.35rem;
}

.subtle-note {
  margin-bottom: 2rem;
  background: #f4f7f5;
}

.asset-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.asset-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f6f8f7;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
}

.asset-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.asset-item span {
  color: #66726c;
  font-size: 0.92rem;
}

.asset-alias {
  margin-top: -0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-style: italic;
  color: #587380;
}

.governance-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.8;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}



.workflow-link:hover {
  border-color: rgba(80, 110, 100, 0.35);
  background: rgba(255, 255, 255, 0.78);
}

.dashboard-breadcrumb {
  margin-bottom: 0.8rem;
  color: #748086;
  font-size: 0.74rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.entity-row.entity-active {
  background: rgba(230, 243, 236, 0.72);
  border-color: #c8e3d0;
}

.entity-row.entity-review {
  background: rgba(253, 244, 223, 0.72);
  border-color: #f0ddb0;
}

.entity-row.entity-overdue {
  background: rgba(251, 233, 231, 0.72);
  border-color: #efc4bc;
}

.entity-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  }

.entity-link-text {
  font-size: 0.82rem;
  color: var(--muted);
}

.entity-row small {
  display: block;
  margin-top: 8px;
  color: #8a9692;
  font-size: 0.78rem;
}

.entity-list {
  display: grid;
  gap: 12px;
}

.entity-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(120, 135, 130, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  color: inherit;
}

.entity-row strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
}

.entity-row > div:first-child {
  text-align: center;
  flex: 1;
}

.entity-row p,
.entity-row small {
  margin-left: auto;
  margin-right: auto;
}

.large-panel {
  grid-column: span 2;
}

.stat-card.warning strong {
  color: #8a641c;
}

.stat-card.overdue strong {
  color: #9a4a3f;
}

.check-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.check-list li {
  margin-bottom: 8px;
}

/* ==============================
   BAY A12 — RECEIVED 
   TEMP BUILD SECTION
   (To refactor into shared/global later)
============================== */
.section-heading {
  grid-column: 1 / -1;
  margin: 10px 0 -4px;
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

/* ==============================
   ROOT / BASE
   ============================== */

:root {
  --bg: #f7f6f2;
  --card: #ffffff;
  --ink: #1f2d2a;
  --muted: #64706c;
  --line: #dde3df;
  --celadon: #c9d5d0;
  --celadon-soft: #e6eeea;
  --stone: #efece5;
  --shadow: 0 18px 45px rgba(31, 45, 42, 0.08);
  --hold-operational-blue: #48616d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 213, 208, 0.55), transparent 34%),
    linear-gradient(180deg, #f8f7f3 0%, #eef3f0 100%);
}

body {
  letter-spacing: 0.01em;
}

a {
  color: inherit;
}

.muted-text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* ==============================
   BASE TYPOGRAPHY / LANDING PAGES
   ============================== */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: normal;
  letter-spacing: -0.02em;
}

h1 {
  letter-spacing: -0.035em;
  line-height: 1.12;
  padding-top: 0.08em;
}

h2 {
  letter-spacing: -0.025em;
}

h3 {
  letter-spacing: -0.01em;
}

p,
li,
dd {
  color: var(--muted);
  letter-spacing: 0;
}

.hold-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 32px;
}

.hero {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px 0 42px;
}

.eyebrow {
  margin: 0 0 36px;
  transform: translateY(-6px);
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0 auto 38px;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1.15;
  font-weight: normal;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto 62px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 5px;
  justify-content: center;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1.2;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary-button,
.secondary-button,
.quiet-button {
  letter-spacing: 0.02em;
}

.primary-button {
  background: #d8e4df;
  color: var(--ink);
  border: 1px solid var(--celadon);
}

.primary-button {
  font-weight: 600;
  letter-spacing: 0.025em;
  box-shadow: 0 8px 20px rgba(72, 97, 109, 0.10);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  border: 1px solid var(--line);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.secondary-button:hover {
  background: var(--celadon-soft);
  border-color: var(--celadon);
}

.content-section,
.cta-section {
  margin: 16px 0;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.accent-section {
  background:
    linear-gradient(135deg, rgba(201, 213, 208, 0.78), rgba(255, 255, 255, 0.72)),
    var(--card);
}

h2 {
  max-width: 820px;
  margin: 0 auto 18px;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.12;
  font-weight: normal;
  letter-spacing: -0.03em;
  text-align: center;
}

.section-copy,
.cta-section p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  text-align: center;
}

.feature-grid,
.preview-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.preview-card {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.feature-card h3,
.preview-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: normal;
  text-align: center;
}

.feature-card p,
.preview-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  text-align: center;
}

.feature-card.compact {
  min-height: 92px;
  display: flex;
  align-items: center;
}

.feature-card.compact h3 {
  margin-bottom: 0;
}

.grid .card {
  text-align: center;
}

.grid .card .quiet-button {
  margin-left: auto;
  margin-right: auto;
}

.cta-section {
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(201, 213, 208, 0.8), transparent 48%),
    #ffffff;
}

.cta-section h2,
.cta-section p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cta-section .primary-button {
  margin-top: 14px;
}

.footer {
  padding: 30px 0 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer a {
  text-decoration: none;
  border-bottom: 1px solid rgba(100, 112, 108, 0.35);
}

.footer a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

@media (max-width: 900px) {
  .feature-grid,
  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }
}

@media (max-width: 640px) {
  .hold-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 28px;
  }

  .hero {
    padding: 48px 0 38px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .feature-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .content-section,
  .cta-section {
    border-radius: 24px;
    padding: 26px 20px;
  }
}
/* ==============================
   DASHBOARD COMPONENTS
   ============================== */

.flow-panel {
  margin: 0 0 2rem;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.flow-card,
.attention-card,
.stat-card,
.panel {
  border: 1px solid rgba(84, 84, 84, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.flow-card {
  padding: 1rem;
  background: #f9faf7;
}

.flow-card strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #354f57;
}

.flow-card p {
  margin: 0;
  color: #545454;
}

.shift-start-panel {
  margin: 1.5rem 0 2rem;
  padding: 1.4rem;
  border: 1px solid rgba(84, 84, 84, 0.14);
  border-radius: 24px;
  background: #f7f8f5;
}

.section-kicker {
  margin: 0 0 0.35rem;
  color: #587380;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 760px;
  color: #545454;
}

.shift-grid,
.stats-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.shift-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.attention-card {
  padding: 1rem;
}

.attention-card.priority {
  border-left: 5px solid #587380;
}

.status-pill {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #e8f0ec;
  color: #3f5f69;
  font-size: 0.78rem;
  font-weight: 600;
}

.next-action {
  margin-top: 0.75rem;
  color: #3f4f4f;
}

.stat-card {
  padding: 22px;
}

.stat-card h3 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-card p {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.governance-panel,
.reflection-panel {
  text-align: center;
}

.governance-panel p,
.reflection-panel p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 0;
}

.soft-panel {
  text-align: center;
}

.soft-panel h2,
.soft-panel p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.soft-panel p {
  border-bottom: 0;
  max-width: 760px;
}

.panel {
  padding: 24px;
}

.panel p {
  margin: 0 0 1rem;
  padding: 0;
  border-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel .hero-actions {
  margin-top: 1.2rem;
  justify-content: center;
}

.panel a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 45, 42, 0.18);
}

.panel a:hover {
  border-bottom-color: var(--ink);
}

/* Operational map points */

.qr-map-panel {
  grid-column: span 2;
}

.map-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive dashboard components */

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

@media (max-width: 900px) {
  .shift-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .qr-map-panel {
    grid-column: span 1;
  }
}

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

/* ==============================
   STAFF SCAN VIEW
   ============================== */

.restriction-note {
  display: block;
  margin-top: 28px;
  font-size: 0.95rem;
  color: #8c3d33;
  font-weight: 600;
  animation: warningPulse 2s ease-in-out infinite;
}

.scan-header .restriction-note {
  color: #8c3d33;
}

.scan-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(201, 213, 208, 0.65), transparent 42%),
    #f7f6f2;
}

.scan-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.scan-card {
  width: min(100%, 460px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.scan-eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.scan-header {
  text-align: center;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.scan-header h1 {
  margin: 0 0 8px;
  font-size: 2.35rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.scan-header p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.scan-header .status-pill {
  margin-bottom: 10px;
}

.scan-section {
  padding: 22px 0;
  border-bottom: 1px solid rgba(221, 227, 223, 0.78);
}

.scan-section h2 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.scan-section p,
.scan-section li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.scan-section ul {
  margin: 0;
  padding-left: 20px;
}

.muted-section {
  background: rgba(230, 238, 234, 0.38);
  margin: 0 -14px;
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 18px;
}

.scan-footer {
  padding-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.scan-footer p {
  margin: 0 0 6px;
}

.scan-footer a {
  display: inline-block;
  margin-top: 10px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 45, 42, 0.22);
}

/* ==============================
   OPERATIONAL RECORD PAGES
   ============================== */

.record-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.record-header h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.record-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.record-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.record-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.record-card.large {
  grid-row: span 3;
}

.record-card h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.record-card h3 {
  margin: 24px 0 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.record-card p,
.record-card li,
.record-card dd {
  color: var(--muted);
  line-height: 1.55;
}

.record-card ul {
  margin: 0;
  padding-left: 20px;
}

.record-card dl {
  margin: 0;
}

.record-card dl div {
  padding: 12px 0;
  border-bottom: 1px solid rgba(221, 227, 223, 0.72);
}

.record-card dl div:last-child {
  border-bottom: 0;
}

.record-card dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.record-card dd {
  margin: 0;
  color: var(--ink);
}

.scheduled-item {
  margin: 0;
}

@media (max-width: 900px) {
  .record-header {
    flex-direction: column;
  }

  .record-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .record-grid {
    grid-template-columns: 1fr;
  }

  .record-card.large {
    grid-row: auto;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.status-active {
  background: #e6f3ec;
  color: #2d5a3d;
  border-color: #c8e3d0;
}

.status-review {
  background: #fdf4df;
  color: #8a6418;
  border-color: #f0ddb0;
}

.status-pending {
  background: #eef1f6;
  color: #4f627a;
  border-color: #d8dee8;
}

.status-overdue {
  background: #fbe9e7;
  color: #8c3d33;
  border-color: #efc4bc;
}

.warning-note {
  display: block;
  margin-top: 28px;
  font-size: 0.95rem;
  color: #8c3d33;
  font-weight: 600;
  animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ==============================
   HOLD WORKFLOW PAGES
   ============================== */
.collapsible-panel summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.collapsible-panel summary::after {
  content: "▾";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.collapsible-panel[open] summary::after {
  transform: rotate(180deg);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 32px;
}

.page-hero {
  min-height: auto;
  padding: 34px 0 24px;
}

.page-hero .eyebrow {
  margin-bottom: 12px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

.page-hero h1 {
  margin-bottom: 18px;
}

.sub {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.card p {
  color: var(--muted);
  line-height: 1.55;
}

.soft-panel {
  background: rgba(230, 238, 234, 0.42);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  align-items: center;
}

.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--celadon-soft);
  border: 1px solid var(--celadon);
  color: var(--ink);
  text-decoration: none;
}

.text-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 45, 42, 0.22);
}

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

.detail-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-grid p {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
}

.detail-grid .value {
  font-weight: 400;
  color: var(--ink);
}

.detail-grid .value-key {
  font-weight: 600;
}

.workflow-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.delivery-list {
  display: grid;
  gap: 12px;
}

.delivery-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  .grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .delivery-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

.footer-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ==============================
   OPERATIONAL NOTICE PANELS
   ============================== */

.notice-panel {
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: #f7fbf8;
  border: 1px solid rgba(123, 158, 135, 0.28);
  border-left: 4px solid #7b9e87;
  margin: 0 0 1.5rem;
}

.notice-panel .eyebrow {
  margin: 0 0 0.5rem;
}

.notice-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.notice-panel p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

  .expected-movements {
    clear: both;
    margin-top: 1.5rem;
  }
}

/* Contractor / scan card centring refinement */

.wrap .scan-shell {
  min-height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 0;
}

.wrap .scan-card {
  margin-left: auto;
  margin-right: auto;
}

/* iPad scan-card centring */

@media (max-width: 1180px) {
  .wrap .scan-shell {
    width: 100%;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .wrap .scan-card {
    width: min(100%, 620px);
    max-width: calc(100vw - 32px);
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==============================
   DASHBOARD SYSTEM
   ============================== */

.dashboard-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px 1fr;
  background:
    radial-gradient(circle at top left, rgba(201, 213, 208, 0.45), transparent 30%),
    #f7f6f2;
}

.dashboard-main {
  padding: 52px 36px 36px;
}

.dashboard-header {
  display: block;
  text-align: center;
  margin-bottom: 1.8rem;
}

.dashboard-title-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.dashboard-title-row h1 {
  margin: 0 auto;
  color: #2f3e46;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  text-align: center;
  margin-bottom: 0.35rem; 
}

.dashboard-subtitle {
  margin: 0.25rem auto 0;
  color: #667276;
  font-style: italic;
  text-align: center;
  max-width: 760px; 
}

.dashboard-status-pill {
  display: inline-block;
  margin: 0.2rem auto 0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #edf4f1;
  color: var(--hold-operational-blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid rgba(84, 84, 84, 0.12);
  border-radius: 24px;
  background: #f8faf8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.dashboard-card p,
.dashboard-card li {
  color: #4a4a4a;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.dashboard-panels,
.top-shift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.workflow-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.workflow-link:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(80, 110, 100, 0.35);
}

/* Alert card emphasis */

.dashboard-card.alert-card.amber-alerts {
  border: 2px solid #d1a24c;
  border-left: 8px solid #c8912f;
}

.dashboard-card.alert-card.red-alerts {
  border: 2px solid #c97d7d;
  border-left: 8px solid #a94442;
}

/* Tablet dashboard */

@media (max-width: 1180px) {
  .dashboard-layout {
    grid-template-columns: 300px 1fr;
  }

  .dashboard-panels,
  .top-shift-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile dashboard */

@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-main {
    padding: 24px;
  }

  .stats-grid,
  .dashboard-panels,
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-header h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.015em;
}

.dashboard-header .dashboard-subtitle {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.dashboard-header .asset-alias {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.dashboard-title-row {
  gap: 0.45rem;
}

.detail-list span,
.workflow-list span {
  margin-left: 0.35rem;
  color: var(--muted);
}

.map-layout .qr-map-panel {
  grid-column: auto !important;
}

@media print {
  .sidebar,
  .dashboard-header,
  .footer,
  .button-row {
    display: none;
  }

  .dashboard-main {
    margin: 0;
    padding: 0;
  }

  .qr-print-preview {
    border: none;
    box-shadow: none;
  }
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 40;

  background: rgba(247, 246, 242, 0.96);
  backdrop-filter: blur(10px);

  padding: 1rem 1.25rem;
  margin: -52px -36px 1.8rem;

  border-bottom: 1px solid rgba(84, 84, 84, 0.12);
  box-shadow: 0 6px 18px rgba(31, 45, 42, 0.06);
}
/* Mobile dashboard stacking */

@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Tablet sidebar readability */

@media (max-width: 1180px) {
  .sidebar {
    width: 300px;
  }

  .dashboard-layout {
    grid-template-columns: 300px 1fr;
  }

  .sidebar-label {
    color: #2f434c;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.1em;
  }

  .sidebar-group a {
    color: #34464d;
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* Persistent desktop sidebar */

@media (min-width: 901px) {
  .dashboard-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }

  .dashboard-main {
    min-width: 0;
  }
}

/* Driver scan map alignment */
.driver-map {
  width: min(100%, 460px);
  margin: 0 auto 1.5rem;
}

.driver-map .safety-map {
  width: 100%;
  max-width: 100%;
  margin: 1rem auto;
}
