/* ICT Assessment module — modern, mobile-first theme */

:root {
  --ict-ink: #0f172a;
  --ict-muted: #64748b;
  --ict-line: #e2e8f0;
  --ict-soft: #f8fafc;
  --ict-soft-2: #f1f5f9;
  --ict-accent: #0f766e;
  --ict-accent-2: #0d9488;
  --ict-accent-soft: #ccfbf1;
  --ict-warn: #b45309;
  --ict-warn-soft: #ffedd5;
  --ict-danger: #b91c1c;
  --ict-danger-soft: #fee2e2;
  --ict-ok: #15803d;
  --ict-ok-soft: #dcfce7;
  --ict-radius: 14px;
  --ict-radius-sm: 10px;
  --ict-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ict-page {
  color: var(--ict-ink);
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.ict-page .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0.75rem;
}

.ict-hero {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 55%, #134e4a 100%);
  color: #fff;
  border-radius: var(--ict-radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--ict-shadow);
  position: relative;
  overflow: hidden;
}

.ict-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.ict-hero h1,
.ict-hero .ict-hero-title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.ict-hero p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
  max-width: 42rem;
}

.ict-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.ict-toolbar .btn {
  border-radius: 999px;
  min-height: 40px;
  font-weight: 600;
  padding-left: 1rem;
  padding-right: 1rem;
}

.ict-toolbar .btn-light {
  color: var(--ict-accent);
  border: 0;
}

.ict-toolbar .btn-outline-light {
  border-width: 1.5px;
}

.ict-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

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

.ict-metrics-4 .ict-metric {
  min-height: 88px;
  padding: 0.75rem 0.7rem;
}

.ict-metrics-4 .ict-metric-value {
  font-size: clamp(1.1rem, 3.5vw, 1.55rem);
}

.ict-metrics-4 .ict-metric-label {
  font-size: 0.68rem;
}

@media (min-width: 768px) {
  .ict-metrics:not(.ict-metrics-4) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .ict-metrics:not(.ict-metrics-4) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.ict-metric {
  background: #fff;
  border: 1px solid var(--ict-line);
  border-radius: var(--ict-radius);
  padding: 0.9rem 1rem;
  box-shadow: var(--ict-shadow);
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.ict-metric:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
}

.ict-metric a {
  color: inherit;
  text-decoration: none;
}

.ict-metric .ict-metric-label {
  font-size: 0.78rem;
  color: var(--ict-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ict-metric .ict-metric-value {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.35rem 0 0.15rem;
}

.ict-metric .ict-metric-foot {
  font-size: 0.8rem;
  color: var(--ict-muted);
}

.ict-metric.is-accent {
  background: var(--ict-accent-soft);
  border-color: #99f6e4;
}

.ict-metric.is-warn {
  background: var(--ict-warn-soft);
  border-color: #fed7aa;
}

.ict-metric.is-danger {
  background: var(--ict-danger-soft);
  border-color: #fecaca;
}

.ict-metric.is-ok {
  background: var(--ict-ok-soft);
  border-color: #bbf7d0;
}

.ict-panel {
  background: #fff;
  border: 1px solid var(--ict-line);
  border-radius: var(--ict-radius);
  box-shadow: var(--ict-shadow);
  margin-bottom: 1rem;
  overflow: hidden;
}

.ict-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--ict-line);
  background: var(--ict-soft);
}

.ict-panel-header h2,
.ict-panel-header .ict-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ict-panel-body {
  padding: 1rem;
}

.ict-panel-body.ict-flush {
  padding: 0;
}

.ict-list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--ict-line);
}

.ict-list-row:last-child {
  border-bottom: 0;
}

.ict-list-row:hover {
  background: var(--ict-soft);
}

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

.ict-list-title {
  font-weight: 700;
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.ict-list-meta {
  color: var(--ict-muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.ict-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ict-badge-draft {
  background: var(--ict-warn-soft);
  color: var(--ict-warn);
}

.ict-badge-submitted {
  background: var(--ict-ok-soft);
  color: var(--ict-ok);
}

.ict-progress {
  height: 8px;
  background: var(--ict-soft-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.45rem;
}

.ict-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ict-accent), var(--ict-accent-2));
  border-radius: 999px;
}

.ict-type-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--ict-line);
  font-size: 0.9rem;
}

.ict-type-row:last-child {
  border-bottom: 0;
}

.ict-type-row .count {
  font-weight: 700;
  min-width: 2rem;
  text-align: right;
}

.ict-type-row .issues {
  color: var(--ict-danger);
  font-weight: 700;
  min-width: 2rem;
  text-align: right;
}

.ict-empty {
  padding: 1.25rem 1rem;
  color: var(--ict-muted);
  text-align: center;
  font-size: 0.92rem;
}

.ict-filter-bar {
  background: #fff;
  border: 1px solid var(--ict-line);
  border-radius: var(--ict-radius);
  padding: 1rem;
  box-shadow: var(--ict-shadow);
  margin-bottom: 1rem;
}

.ict-filter-bar label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ict-muted);
  margin-bottom: 0.25rem;
}

.ict-filter-bar .form-control {
  border-radius: var(--ict-radius-sm);
  border-color: #cbd5e1;
  min-height: 42px;
}

.ict-btn {
  border-radius: 999px !important;
  font-weight: 600;
  min-height: 42px;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.ict-btn-primary {
  background: var(--ict-accent) !important;
  border-color: var(--ict-accent) !important;
}

.ict-btn-primary:hover {
  background: #0d5f59 !important;
  border-color: #0d5f59 !important;
}

.ict-equip-item {
  border: 1px solid var(--ict-line);
  border-radius: var(--ict-radius);
  padding: 1rem;
  margin-bottom: 0.85rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ict-equip-item .ict-equip-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--ict-line);
}

.ict-equip-type {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.ict-equip-type .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ict-accent);
  flex: 0 0 auto;
}

.ict-equip-item label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  color: var(--ict-muted);
}

.ict-equip-item .form-control {
  border-radius: var(--ict-radius-sm);
  border-color: #cbd5e1;
  min-height: 42px;
}

.ict-equip-item-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.ict-equip-item-compact .ict-equip-title {
  border-bottom: none;
  margin-bottom: 0.35rem;
  padding-bottom: 0;
}

.ict-equip-item-compact .ict-equip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ict-muted);
}

.ict-equip-item-compact .ict-equip-actions {
  display: flex;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.ict-equip-search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.ict-add-equip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 576px) {
  .ict-add-equip {
    width: auto;
  }
}

.ict-add-equip .form-control {
  min-width: 0;
  flex: 1 1 160px;
  border-radius: var(--ict-radius-sm);
  min-height: 42px;
}

.ict-si-row {
  border: 1px solid var(--ict-line);
  border-radius: var(--ict-radius-sm);
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  background: var(--ict-soft);
}

.ict-si-row .ict-si-label {
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.ict-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.ict-segment label {
  margin: 0;
  cursor: pointer;
}

.ict-segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ict-segment span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ict-muted);
  transition: all 0.12s ease;
}

.ict-segment input:checked + span {
  border-color: var(--ict-accent);
  background: var(--ict-accent-soft);
  color: var(--ict-accent);
}

.ict-segment input:disabled + span {
  opacity: 0.65;
  cursor: not-allowed;
}

.ict-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ict-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  min-height: 40px;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.ict-chip input {
  margin: 0;
}

.ict-chip:has(input:checked) {
  border-color: var(--ict-accent);
  background: var(--ict-accent-soft);
  color: var(--ict-accent);
}

.ict-sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--ict-line);
  padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.ict-sticky-actions .btn {
  border-radius: 999px;
  min-height: 44px;
  font-weight: 700;
  min-width: 130px;
}

.ict-facility-hero {
  background: #fff;
  border: 1px solid var(--ict-line);
  border-radius: var(--ict-radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--ict-shadow);
  margin-bottom: 1rem;
}

.ict-facility-hero h1 {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.ict-mobile-cards {
  display: none;
}

.ict-desktop-table {
  display: block;
}

@media (max-width: 767.98px) {
  .ict-mobile-cards {
    display: block;
  }

  .ict-desktop-table {
    display: none !important;
  }

  .ict-hero {
    padding: 1rem;
  }

  .ict-sticky-actions {
    justify-content: stretch;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  }

  .ict-sticky-actions .btn {
    flex: 1 1 100%;
    min-width: 0;
  }

  .ict-panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .ict-page .dataTables_wrapper .row {
    margin: 0;
  }
}

.ict-role-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.8rem;
}

.ict-role-chip > span:first-child {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
}

.ict-role-chip .ict-role-level {
  color: rgba(255, 255, 255, 0.85);
}

.ict-visit-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.ict-visit-steps li {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.ict-visit-steps li.is-primary {
  border-color: #93c5fd;
  background: #eff6ff;
}

.ict-visit-steps li strong {
  color: #0f172a;
}

.ict-visit-steps li span {
  color: #64748b;
  font-size: 0.9rem;
}

.ict-visit-steps li a {
  font-weight: 600;
  width: fit-content;
}

.ict-next-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ict-next-step .btn,
.ict-next-step a.btn {
  color: #fff !important;
  background: var(--ict-accent) !important;
  border-color: var(--ict-accent) !important;
  font-weight: 600;
  opacity: 1 !important;
  text-decoration: none !important;
}

.ict-next-step .btn:hover,
.ict-next-step a.btn:hover {
  background: var(--ict-accent-2) !important;
  border-color: var(--ict-accent-2) !important;
  color: #fff !important;
}

.asset-verify-row.is-missing-row {
  opacity: 0.92;
  border-left: 3px solid #f87171;
  background: linear-gradient(90deg, #fef2f2, #fff);
}

.asset-location-other {
  font-size: 0.9rem;
}

.ict-autosave-status {
  align-self: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ict-muted);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--ict-soft);
  border: 1px solid var(--ict-line);
  white-space: nowrap;
}

.ict-autosave-status.is-saving { color: #b45309; background: #fff7ed; border-color: #fed7aa; }
.ict-autosave-status.is-saved { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.ict-autosave-status.is-error { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.ict-autosave-status.is-idle { color: var(--ict-muted); }
.ict-autosave-status.is-pending { color: #a16207; background: #fefce8; border-color: #fde68a; }

.ict-inventory-panel > .ict-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ict-inventory-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.ict-btn-save {
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  min-width: 150px;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28);
  border: none !important;
}

.ict-btn-save.is-busy {
  opacity: 0.85;
  pointer-events: none;
}

.ict-save-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  max-width: 280px;
}

.ict-save-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  flex: 0 0 auto;
}

.ict-save-status.is-idle .ict-save-status-dot { background: #38bdf8; }
.ict-save-status.is-pending .ict-save-status-dot,
.ict-save-status.is-saving .ict-save-status-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
  animation: ictSavePulse 1s ease infinite;
}
.ict-save-status.is-saved {
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.ict-save-status.is-saved .ict-save-status-dot { background: #22c55e; }
.ict-save-status.is-error {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}
.ict-save-status.is-error .ict-save-status-dot { background: #ef4444; }

@keyframes ictSavePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

/* Fixed dock — always visible above footer / DevTools */
.ict-inv-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.35);
}

@media (min-width: 992px) {
  body:not(.sidebar-collapse):not(.sidebar-closed) .ict-inv-dock {
    left: 250px;
  }
  body.sidebar-mini.sidebar-collapse .ict-inv-dock {
    left: 4.6rem;
  }
}

.ict-inv-dock-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.ict-inv-dock .ict-save-status {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.ict-inv-dock .ict-save-status.is-saved {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.ict-inv-dock .ict-save-status.is-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.ict-inv-dock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ict-inv-dock-actions .btn-lg {
  min-height: 48px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  font-size: 1rem;
}

.ict-visit-page {
  padding-bottom: 5.5rem;
}

.ict-visit-page.is-ict-tab .ict-inv-dock,
.ict-visit-page.is-ict-tab .visit-assets-only {
  display: none !important;
}

.ict-inv-row.is-dirty {
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.35);
}

@media (max-width: 767.98px) {
  .ict-inv-dock-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .ict-inv-dock-actions .btn {
    flex: 1 1 auto;
  }
  .ict-inventory-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .ict-inventory-toolbar-actions {
    justify-content: stretch;
  }
  .ict-inventory-toolbar-actions .btn {
    flex: 1 1 auto;
  }
}

/* Unified facility visit — stepwise stepper */
.ict-visit-page .ict-visit-hero {
  padding-bottom: 1rem;
  overflow: visible;
}

.ict-stepper {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ict-line);
}

.ict-stepper-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #f8fafc;
  border: 1px solid var(--ict-line);
  border-radius: 14px;
  overflow: hidden;
}

.ict-stepper-item {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  position: relative;
}

.ict-stepper-connector {
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-left: 1px solid var(--ict-line);
  border-right: 1px solid var(--ict-line);
}

.ict-stepper-connector span {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #cbd5e1, #94a3b8);
  border-radius: 999px;
}

.ict-stepper[data-active-step="ict"] .ict-stepper-connector span {
  background: linear-gradient(90deg, #14b8a6, #3b82f6);
}

.ict-stepper-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  padding: 0.85rem 1rem;
  text-decoration: none !important;
  color: #64748b;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease;
  border: 0;
  cursor: pointer;
}

a.ict-stepper-link:hover {
  background: rgba(15, 23, 42, 0.03);
  color: #0f172a;
  text-decoration: none !important;
}

.ict-stepper-index {
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  background: #e2e8f0;
  color: #64748b;
  border: 2px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ict-stepper-body {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.ict-stepper-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
  line-height: 1.2;
}

.ict-stepper-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ict-stepper-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

.ict-stepper-item.is-active .ict-stepper-link {
  background: #fff;
  color: #0f172a;
  box-shadow: inset 0 -3px 0 #0d9488;
}

.ict-stepper-item.is-active .ict-stepper-index {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.ict-stepper-item.is-active .ict-stepper-hint {
  color: #475569;
}

.ict-stepper-item:last-child.is-active .ict-stepper-link {
  box-shadow: inset 0 -3px 0 #2563eb;
}

.ict-stepper-item:last-child.is-active .ict-stepper-index {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.ict-stepper-item.is-complete .ict-stepper-link {
  color: #0f766e;
}

.ict-stepper-item.is-complete .ict-stepper-index {
  background: #ccfbf1;
  color: #0f766e;
  border-color: #99f6e4;
}

.ict-stepper-item.is-disabled .ict-stepper-link {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.ict-stepper-item.is-locked .ict-stepper-link {
  opacity: 0.72;
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

.ict-stepper-item.is-locked .ict-stepper-index {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
}

.ict-stepper-item.is-locked .ict-stepper-hint {
  color: #b45309;
  font-weight: 600;
}

.ict-stepper-item.is-locked .ict-stepper-badge {
  opacity: 0.7;
}

.ict-stepper-caption {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--ict-muted);
  font-weight: 500;
}

.ict-visit-open-lock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ict-visit-job-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-left: 4px solid #14b8a6 !important;
}

.ict-visit-diff-note {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
  font-size: 0.86rem;
  line-height: 1.4;
}

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

.ict-visit-page.is-ict-tab .visit-assets-only {
  display: none !important;
}

.ict-visit-ict-pane {
  animation: ictVisitFade 0.28s ease;
}

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

@media (max-width: 767.98px) {
  .ict-stepper-track {
    flex-direction: column;
  }

  .ict-stepper-connector {
    flex: 0 0 16px;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--ict-line);
    border-bottom: 1px solid var(--ict-line);
  }

  .ict-stepper-connector span {
    width: 2px;
    height: 100%;
    min-height: 12px;
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  }

  .ict-stepper-hint {
    white-space: normal;
  }

  .ict-stepper-item.is-active .ict-stepper-link,
  .ict-stepper-item:last-child.is-active .ict-stepper-link {
    box-shadow: inset 3px 0 0 #0d9488;
  }

  .ict-stepper-item:last-child.is-active .ict-stepper-link {
    box-shadow: inset 3px 0 0 #2563eb;
  }
}

.ict-visit-intel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  border-radius: var(--ict-radius);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(96, 165, 250, 0.35), transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #1d4ed8 100%);
  color: #e2e8f0;
  box-shadow: var(--ict-shadow);
}

.ict-visit-intel-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.35rem;
}

.ict-visit-intel-title {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.ict-visit-intel p {
  color: #cbd5e1;
  font-size: 0.88rem;
  max-width: 42rem;
}

.ict-visit-intel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.ict-visit-intel-actions .btn-light {
  font-weight: 600;
}

.ict-visit-ict-actions {
  margin-top: 0.5rem;
}

.ict-visit-page.is-ict-tab .visit-assets-only {
  display: none !important;
}

.ict-add-equip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.ict-add-equip select {
  min-width: 10rem;
}

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

  .ict-visit-contrast-arrow {
    display: none;
  }

  .ict-visit-tabs {
    grid-template-columns: 1fr;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .ict-visit-tab {
    border-radius: 12px;
  }

  .ict-visit-tab.is-active {
    border-bottom-color: var(--ict-line);
  }

  .ict-visit-tab--inventory.is-active,
  .ict-visit-tab--scorecard.is-active {
    border-bottom-color: inherit;
  }

  .ict-visit-tab-copy small {
    white-space: normal;
  }

  .ict-visit-intel {
    padding: 1rem;
  }
}

.ict-verify-tools .input-group-text {
  background: #fff;
  border-color: var(--ict-line);
  color: var(--ict-muted);
}


/* ICT-styled Bootstrap modals */
.ict-modal .modal-content {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.ict-modal .modal-header {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #fff;
  border-bottom: 0;
  align-items: flex-start;
  padding: 1rem 1.15rem;
}

.ict-modal .modal-header .close {
  color: #fff;
  opacity: 0.85;
  text-shadow: none;
}

.ict-modal .modal-header .close:hover {
  opacity: 1;
  color: #fff;
}

.ict-modal-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.ict-modal .modal-title {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
  color: #fff;
}

.ict-modal .modal-body {
  padding: 1.15rem 1.25rem 0.75rem;
}

.ict-modal .modal-footer {
  border-top: 1px solid var(--ict-line);
  padding: 0.85rem 1.15rem;
  background: var(--ict-soft);
}

.ict-modal .form-control:focus {
  border-color: var(--ict-accent-2);
  box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.2);
}

.ict-modal .btn-primary.ict-btn-primary,
.ict-modal .ict-btn-primary {
  background: var(--ict-accent);
  border-color: var(--ict-accent);
  color: #fff;
  font-weight: 600;
}

.ict-modal .btn-primary.ict-btn-primary:hover,
.ict-modal .ict-btn-primary:hover {
  background: var(--ict-accent-2);
  border-color: var(--ict-accent-2);
  color: #fff;
}

/* Dashboard command layout (mirrors HRH insights) */
.ict-hero--dash {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.9fr);
  gap: 1.25rem;
  align-items: stretch;
}

.ict-hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.ict-hero-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

.ict-hero-pulse {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.ict-hero-pulse-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.ict-hero-pulse-value {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0.15rem 0;
}

.ict-hero-pulse-meta {
  font-size: 0.82rem;
  opacity: 0.9;
}

.ict-hero-mini {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  opacity: 0.95;
}

.ict-hero-mini span {
  font-weight: 800;
  color: #fde68a;
  margin-right: 0.25rem;
}

.ict-hero--sca {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f766e 55%, #115e59 100%);
}

.ict-asof-form .form-control {
  border-radius: 8px;
  border: 0;
}

.ict-insight-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.ict-insight {
  display: block;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  text-decoration: none !important;
  border: 1px solid var(--ict-line);
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-left: 4px solid #94a3b8;
  color: inherit;
}

.ict-insight:hover {
  transform: translateY(-2px);
  box-shadow: var(--ict-shadow);
  color: inherit;
}

.ict-insight.tone-ok { border-left-color: #16a34a; background: linear-gradient(180deg, #f0fdf4, #fff); }
.ict-insight.tone-warn { border-left-color: #ea580c; background: linear-gradient(180deg, #fff7ed, #fff); }
.ict-insight.tone-danger { border-left-color: #dc2626; background: linear-gradient(180deg, #fef2f2, #fff); }
.ict-insight.tone-info { border-left-color: #0284c7; background: linear-gradient(180deg, #f0f9ff, #fff); }

.ict-insight-title {
  font-weight: 700;
  color: var(--ict-ink);
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.ict-insight-detail {
  color: var(--ict-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.ict-metrics--rich .ict-metric-sub {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--ict-muted);
}

.ict-metric-slash {
  font-size: 0.55em;
  font-weight: 600;
  opacity: 0.7;
  margin-left: 0.1rem;
}

.ict-panel-sub {
  font-size: 0.75rem;
  color: var(--ict-muted);
  margin-top: 0.1rem;
}

.ict-panel-footer {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--ict-line);
  background: var(--ict-soft);
}

.ict-smart-table {
  font-size: 0.86rem;
}

.ict-smart-table th {
  border-top: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ict-muted);
  background: var(--ict-soft);
  white-space: nowrap;
}

.ict-smart-table tr.is-hot {
  background: #fef2f2;
}

.ict-smart-table tr.is-warm {
  background: #fffbeb;
}

.ict-mini-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--ict-soft-2);
  overflow: hidden;
  margin-bottom: 0.2rem;
  max-width: 72px;
}

.ict-mini-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ict-accent), var(--ict-accent-2));
}

@media (max-width: 991.98px) {
  .ict-hero--dash {
    grid-template-columns: 1fr;
  }
}

@media print {
  .ict-hero,
  .ict-toolbar,
  .ict-sticky-actions,
  .ict-filter-bar .btn,
  .main-sidebar,
  .main-header,
  .main-footer,
  .breadcrumb {
    display: none !important;
  }
}


/* Inventory checklist redesign + completeness */
.ict-progress-card {
  background: #fff;
  border: 1px solid var(--ict-line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--ict-shadow);
}
.ict-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.ict-progress-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}
.ict-progress-sub {
  font-size: 0.8rem;
  color: var(--ict-muted);
  margin-top: 0.15rem;
}
.ict-progress-pct {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0d9488;
}
.ict-progress-bar {
  margin-top: 0.7rem;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.ict-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0d9488, #14b8a6);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.ict-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #64748b;
}
.ict-progress-people {
  flex: 1 1 100%;
  color: #475569;
}
.ict-inventory-gate {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.ict-inventory-list {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.35rem !important;
}
.ict-inv-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(280px, 1.4fr);
  gap: 0.85rem 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ict-line);
  border-radius: 12px;
  background: #fff;
  border-left: 4px solid #94a3b8;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ict-inv-row.is-incomplete {
  border-left-color: #f59e0b;
  background: linear-gradient(90deg, #fffbeb, #fff);
}
.ict-inv-row.is-complete {
  border-left-color: #14b8a6;
}
.ict-inv-row.is-missing-row {
  border-left-color: #f87171;
  background: linear-gradient(90deg, #fef2f2, #fff);
}
.ict-inv-row:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.ict-inv-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.4rem 0.55rem;
  justify-content: space-between;
}
.ict-inv-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.ict-inv-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.ict-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ict-chip-warn {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}
.ict-chip-ok {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}
.ict-chip-danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.ict-inv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #64748b;
}
.ict-inv-audit {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: #94a3b8;
}
.ict-inv-audit strong {
  color: #475569;
}
.ict-inv-controls {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 0.95fr;
  gap: 0.55rem 0.65rem;
  align-items: start;
}
.ict-inv-field label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}
.ict-inv-field label.is-required-empty {
  color: #c2410c;
}
.ict-inv-field .form-control.is-invalid-soft {
  border-color: #fdba74;
  background: #fff7ed;
}
.ict-inv-notes {
  grid-column: 1 / -1;
}
.ict-inv-controls .ict-segment {
  min-height: 34px;
}
@media (max-width: 991.98px) {
  .ict-inv-row {
    grid-template-columns: 1fr;
  }
  .ict-inv-controls {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 575.98px) {
  .ict-inv-controls {
    grid-template-columns: 1fr;
  }
}
