/* traffic signal colors */
.traffic-signal {
    width: 58px;
    height: 200px;
    padding: 6px 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 10px 24px rgba(0, 0, 0, 0.16);
}

.light {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  aspect-ratio: 1 / 1;
  flex: 0 0 40px;
  border-radius: 50%;
  margin: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(0, 0, 0, 0.12);
}

.red {
    background-color: #ff4d4f;
    box-shadow:
      0 0 10px rgba(255, 77, 79, 0.32),
      0 0 22px rgba(255, 77, 79, 0.18);
}

.yellow {
    background-color: #ffd84d;
    box-shadow:
      0 0 10px rgba(255, 216, 77, 0.3),
      0 0 22px rgba(255, 216, 77, 0.16);
}

.green {
    background-color: #39d98a;
    box-shadow:
      0 0 10px rgba(57, 217, 138, 0.28),
      0 0 22px rgba(57, 217, 138, 0.15);
}

.black {
    background-color: rgb(28, 28, 28);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.02),
      0 0 0 1px rgba(0, 0, 0, 0.16);
}

.status-card-copy {
  max-width: 34rem;
}

.status-headline {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.96);
}

.status-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.15rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
}

.status-detail {
  font-size: 0.86rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  text-align: left;
}

.status-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

/* Legend placed beside the traffic light — match traffic signal layout so dots align with lights */
.status-card-legend {
  height: 200px;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* font-size: 1.2 rem; */
}

.status-card-legend .status-legend-item {
  min-height: 40px;
  margin: 6px 0;
}

.status-dot {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.status-dot--green {
  background: #39d98a;
}

.status-dot--yellow {
  background: #ffd84d;
}

.status-dot--red {
  background: #ff4d4f;
}

.status-details {
  display: grid;
  gap: 0.65rem;
}

.status-details__row {
  display: grid;
  gap: 0.65rem;
}

.status-details__row--full {
  grid-template-columns: minmax(0, 1fr);
}

.status-details__row--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-details__card {
  padding: 0.6rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.status-details__label {
  margin-bottom: 0.3rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.status-metrics--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
}

.status-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  min-height: 2.7rem;
}

.status-metric__label {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.status-metric__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

.status-legend--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.status-details__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.status-details__constraints .list-group {
  margin-top: 0.35rem;
}

@media (max-width: 768px) {
  .status-details__row--split {
    grid-template-columns: 1fr;
  }
}

.constraint-summary {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.constraint-summary-title {
  font-size: 0.95rem;
  line-height: 1.3;
}

.constraint-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.constraint-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
}

.constraint-summary-chip--neutral {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.constraint-summary-chip--critical {
  border-color: rgba(255, 77, 79, 0.45);
  background: rgba(255, 77, 79, 0.2);
  color: rgba(255, 226, 227, 0.98);
}

.constraint-summary-chip--deadline {
  border-color: rgba(255, 184, 77, 0.45);
  background: rgba(255, 184, 77, 0.2);
  color: rgba(255, 241, 214, 0.98);
}

#ganttMount {
    max-width: none;
    width: 100%;
    margin: 18px auto;
    padding: 0;
    color: #fff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.gantt-empty-state {
  margin-top: 10px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Partner Logo Container */
.partner-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  width: 100%;
}

.partner-logo-img {
  max-height: 70px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.gantt-empty-state__text {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn-attention-sweep {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-attention-sweep::after {
  content: '';
  position: absolute;
  top: -35%;
  left: -45%;
  width: 34%;
  height: 170%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 40%,
    rgba(255, 255, 255, 0.56) 50%,
    rgba(255, 255, 255, 0.28) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-240%) rotate(24deg);
  animation: btn-attention-sweep 2.4s ease-in-out infinite;
}

@keyframes btn-attention-sweep {
  0% {
    transform: translateX(-240%) rotate(24deg);
    opacity: 0;
  }

  22% {
    transform: translateX(-240%) rotate(24deg);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  52% {
    transform: translateX(360%) rotate(24deg);
    opacity: 0;
  }

  100% {
    transform: translateX(360%) rotate(24deg);
    opacity: 0;
  }
}

body.chart-selection-mode #appHeader,
body.chart-selection-mode #topControlCards,
body.chart-selection-mode #fjspKpiPanel {
  opacity: 0.32;
  filter: grayscale(1);
  pointer-events: none;
  user-select: none;
  transition: opacity 180ms ease, filter 180ms ease;
}

body.chart-selection-mode #fjspSvgWrap {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 0 6px rgba(255, 255, 255, 0.03);
}

body.chart-selection-mode #unschedulablePanel {
  opacity: 0.32;
  filter: grayscale(1);
  pointer-events: none;
  user-select: none;
}


/* Tooltip (entspricht tooltip.style.*) */
.fjsp-tooltip {
  position: fixed;
  z-index: 9999;
  display: none;
  pointer-events: none;
  max-width: 500px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(20,20,20,0.92);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  color: white;
  font-size: 12.5px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Header / Controls */
.fjsp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}


.fjsp-btn {
  padding: 6px 10px;
}

#fjspPlay.fjsp-play-blocked {
  opacity: 0.55;
  filter: grayscale(0.35);
  cursor: not-allowed;
}

.tooltip.fjsp-play-tooltip .tooltip-inner {
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.35;
  text-align: left;
}

.machine-action-group > .btn {
  flex: 1 1 0;
}

.machine-action-row {
  flex-wrap: wrap;
}

.machine-action-add-btn {
  flex: 0 0 auto;
}

.machine-action-row .machine-action-add-btn,
.machine-action-row .machine-action-group > .btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.machine-action-row .machine-action-group {
  flex: 1 1 auto;
}

.machine-action-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
}

.job-action-panel {
  flex: 1 0 auto;
}

.machine-action-label {
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  text-align: left;
  padding-left: 0.1rem;
}

@media (max-width: 768px) {
  .machine-action-row {
    flex-wrap: wrap;
  }

  .machine-action-add-btn,
  .job-action-panel,
  .machine-action-panel {
    flex: 1 1 100%;
  }
}

/* Control groups */
.fjsp-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Legend */
.fjsp-legend {
  margin-top: 10px;
  opacity: 0.95;
  line-height: 1.35;
}

/* SVG Wrap + SVG */
.fjsp-svgWrap {
  margin-top: 2px;
  height: 420px;
  width: 100%;
  padding: 0 52px 0 0;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.fjsp-chartTools {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
}

.fjsp-chartToolBtn {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fjsp-chartToolBtn.active,
.fjsp-chartToolBtn[aria-pressed='true'] {
  border-color: rgba(106, 168, 255, 0.95);
  color: rgba(206, 231, 255, 0.98);
  background: rgba(13, 110, 253, 0.22);
}

.fjsp-chartToolBtn i {
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .fjsp-svgWrap {
    height: 360px;
    padding-right: 44px;
  }
}

.fjsp-mainRow {
  margin-top: 0.1rem;
}

/* ── Shared unscheduled / unrealizable panel styles ──
   Uses --accent-color set on the panel card.
   unscheduled-panel defaults to blue, unrealizable-panel overrides to red. */

.unscheduled-panel,
.unrealizable-panel {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 250px;
  max-height: 250px;
  flex: none;
}

.unscheduled-panel {
  --accent-color: hsl(200, 65%, 55%);
}

.unrealizable-panel {
  --accent-color: hsl(0, 65%, 55%);
}

.unscheduled-panel-header h3,
.unrealizable-panel-header h3 {
  font-size: 0.95rem;
}

.unscheduled-panel-header,
.unrealizable-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.unscheduled-panel-empty,
.unrealizable-panel-empty {
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 8rem;
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}

/* Hide empty when list has content, hide list when empty */
.unscheduled-panel.has-unscheduled-tasks .unscheduled-panel-empty,
.unrealizable-panel.has-unrealizable-tasks .unrealizable-panel-empty {
  display: none;
}

.unscheduled-panel:not(.has-unscheduled-tasks) .unscheduled-list,
.unrealizable-panel:not(.has-unrealizable-tasks) .unrealizable-list {
  display: none;
}

.unscheduled-list,
.unrealizable-list {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.unscheduled-count-pill,
.unrealizable-count-pill {
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.unscheduled-count-pill {
  border-color: color-mix(in srgb, var(--accent-color) 60%, transparent);
  background: color-mix(in srgb, var(--accent-color) 18%, transparent);
  color: color-mix(in srgb, var(--accent-color) 80%, white);
}

.unrealizable-count-pill {
  border-color: color-mix(in srgb, var(--accent-color) 60%, transparent);
  background: color-mix(in srgb, var(--accent-color) 18%, transparent);
  color: color-mix(in srgb, var(--accent-color) 80%, white);
}

.unscheduled-job,
.unrealizable-job {
  padding: 0.9rem;
  border-radius: 0.95rem;
  background: color-mix(in srgb, var(--accent-color, rgba(255, 193, 7, 1)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-color, rgba(255, 193, 7, 1)) 42%, rgba(255, 255, 255, 0.08));
}

.unscheduled-job-header,
.unrealizable-job-header {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.unscheduled-task-list,
.unrealizable-task-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.unscheduled-task,
.unrealizable-task {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-color, rgba(255, 255, 255, 1)) 12%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--accent-color, rgba(255, 255, 255, 1)) 40%, rgba(255, 255, 255, 0.06));
  cursor: help;
}

.unscheduled-task-title,
.unrealizable-task-title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  color: color-mix(in srgb, var(--accent-color, rgba(255, 255, 255, 1)) 72%, white);
}

.unscheduled-task:focus-visible,
.unrealizable-task:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-color, #ffffff) 60%, white);
  outline-offset: 2px;
}

.unscheduled-task-tooltip,
.unrealizable-task-tooltip {
  /* Shared tooltip — single element in the DOM */
}

.unscheduled-panel.has-unscheduled-tasks {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-color) 30%, transparent);
}

.unrealizable-panel.has-unrealizable-tasks {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-color) 30%, transparent);
}

/* Shared tooltip for task hover in both panels */
.unschedulable-task-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: max-content;
  max-width: min(26rem, 70vw);
  padding: 0.45rem 0.55rem;
  border-radius: 0.55rem;
  background: rgba(18, 20, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.74rem;
  line-height: 1.3;
  white-space: normal;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.fjsp-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
}

body.chart-selection-mode .fjsp-svg {
  cursor: crosshair;
}

/* KPI panel + items */
.fjsp-kpiPanel {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;

  font-size: 13px;
}

.fjsp-kpiItem {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fjsp-kpiValueRow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.kpi-arrow {
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 900;
}

.kpi-arrow--visible {
  opacity: 1;
}

.kpi-arrow--up {
  color: #69db7c;
}

.kpi-arrow--down {
  color: #ff8787;
}

.fjsp-kpiLabel {
  opacity: 0.75;
}

.fjsp-kpiLabel .bi-info-circle {
  opacity: 1;
  margin-left: 4px;
  cursor: help;
  font-size: 0.78rem;
  vertical-align: middle;
}

.fjsp-kpiValue {
  font-weight: 700;
  color: #fff;
}

/* ── KPI digit wheel ────────────────────────────── */
.kwi-digit {
  display: inline-block;
  height: 1.2em;
  overflow: hidden;
  vertical-align: middle;
  position: relative;
  text-align: center;
}
.kwi-digit__strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}
.kwi-digit__strip > span {
  height: 1.2em;
  line-height: 1.2em;
  flex: 0 0 1.2em;
  text-align: center;
  white-space: nowrap;
}
.kwi-sep {
  vertical-align: middle;
}
/* ── end KPI wheel ──────────────────────────────── */

.fjsp-svg .fjsp-task {
  stroke: rgba(0, 0, 0, 0.7);
  stroke-width: 0.8;
  transition: filter 600ms ease, opacity 600ms ease;
}

.fjsp-svg .fjsp-task.fjsp-task--active{
  filter:
    drop-shadow(0 0 2px rgba(255,255,255,.9))
    drop-shadow(0 0 4px rgba(255,255,255,.6));

}

.fjsp-svg .fjsp-task.fjsp-task--past {
  opacity: 0.58;
  filter: saturate(0.45) brightness(0.9);
}

@keyframes fjspBlockedTaskPulse {
  0% {
    fill: rgba(255, 120, 120, 0.85);
    stroke: rgba(255, 80, 80, 0.95);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 0 rgba(255, 80, 80, 0));
  }
  50% {
    fill: rgba(255, 70, 70, 0.35);
    stroke: rgba(255, 40, 40, 0.95);
    stroke-width: 2;
    filter: drop-shadow(0 0 8px rgba(255, 70, 70, 0.65));
  }
  100% {
    fill: rgba(255, 120, 120, 0.85);
    stroke: rgba(255, 80, 80, 0.95);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 0 rgba(255, 80, 80, 0));
  }
}

.fjsp-svg .fjsp-task.fjsp-task--blocked {
  animation: fjspBlockedTaskPulse 1s ease-in-out infinite;
}

.fjsp-svg .fjsp-selectionTarget {
  cursor: crosshair;
}

.fjsp-svg .fjsp-selectionTarget--fix {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%23111727' fill-opacity='0.92' stroke='%23ffffff' stroke-opacity='0.9' stroke-width='1.5'/%3E%3Cpath d='M8 8 L16 16 M16 8 L8 16' stroke='%2339d98a' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") 12 12, pointer;
}

.fjsp-svg .fjsp-selectionHover {
  fill: rgba(13, 202, 240, 0.12);
  stroke: rgba(13, 202, 240, 0.45);
  stroke-width: 1.5;
}

.fjsp-svg .fjsp-selectionHover--fix {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.32);
}

.fjsp-svg .fjsp-selectionRange {
  fill: rgba(255, 193, 7, 0.22);
  stroke: rgba(255, 193, 7, 0.78);
  stroke-width: 2;
}

.fjsp-svg .fjsp-selectionRange--fix {
  fill: rgba(57, 217, 138, 0.24);
  stroke: rgba(57, 217, 138, 0.9);
}

.fjsp-svg .fjsp-selectionStartMarker {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.fjsp-svg .fjsp-selectionStartMarker--fix {
  stroke: rgba(57, 217, 138, 0.92);
}

.fjsp-svg .fjsp-zoomSelection {
  fill: rgba(13, 110, 253, 0.24);
  stroke: rgba(106, 168, 255, 0.95);
  stroke-width: 2;
  stroke-dasharray: 6 5;
}




.control-slider-value {
    display: inline-block;
    min-width: 4rem;   /* nach Wunsch */
    text-align: right;
}

body {
    margin-left: 50px;
}

/* Vertical tabs */
.vertical-tabs {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 50px;
    background: #212529;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.vertical-tabs .nav-tabs {
    flex-direction: column;
    /* min-height: 200px;
    height: 50%;
    max-height: 800px; */
    border: none;
}

.vertical-tabs .nav-item {
    flex: 0 0 auto;
    height: 100px;

}

.vertical-tabs .nav-link {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg);
    height: 100px;
    width: 50px;
    padding: 10px 6px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: background 0.1s ease, color 0.2s ease;
}

.vertical-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.050);
    /* color: rgba(255, 255, 255, 0.9); */
}

.vertical-tabs .nav-link.active {
    background: rgba(255, 255, 255, 0.083);
    color: #dee2e6;
    border-left: 2px solid #74abff;
}

.tab-content-container {
    margin-left: 50px;
}

.tab-content .tab-pane {
    display: none;
}

.tab-content .tab-pane.active {
    display: block;
}

/* Modal backdrop blur */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

#addTaskModal .modal-content {
    background: #212529;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#addTaskModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#addTaskModal .modal-title {
    color: #fff;
}

.job-row-deleting td {
  background-color: #953737 !important;
}

.details-delete-btn {
  text-decoration: none;
}

.details-edit-btn {
  text-decoration: none;
}

/* Hide number input spinners in edit task modal */
#editTaskModal input[type="number"]::-webkit-outer-spin-button,
#editTaskModal input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#editTaskModal input[type="number"] {
  -moz-appearance: textfield;
}

.details-delete-btn,
.details-edit-btn {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Keep Flatpickr close to existing Bootstrap dark surfaces. */
.flatpickr-calendar,
.flatpickr-calendar.hasTime .flatpickr-time {
  background: #2b3035;
  border-color: rgba(255, 255, 255, 0.12);
}

.flatpickr-months,
.flatpickr-weekdays,
.flatpickr-days {
  background: transparent;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year,
.flatpickr-weekdaycontainer,
span.flatpickr-weekday {
  background: #2b3035;
    color:#fff;
}

.flatpickr-day,
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
  color: rgba(255, 255, 255, 0.9);
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: #fff;
  fill: #fff;
}

.flatpickr-months .flatpickr-prev-month svg path,
.flatpickr-months .flatpickr-next-month svg path {
  fill: #fff;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: rgba(255, 255, 255, 0.8);
}

.flatpickr-time .numInputWrapper span.arrowUp:after,
.flatpickr-current-month .numInputWrapper span.arrowUp:after {
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

.flatpickr-time .numInputWrapper span.arrowDown:after,
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
  border-top-color: rgba(255, 255, 255, 0.9);
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
  background: transparent;
}

.partner-logo-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-logo-card:hover {
    transform: scale(1.04);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}

.partner-logo-card:focus-visible {
    transform: scale(1.04);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.2);
    outline: none;
}