.table-formset td {
      padding: 0.4rem;
      vertical-align: middle;
  }
  .seccion-vehiculo {
      background-color: #f8f9fa;
      border: 1px dashed #dee2e6;
      border-radius: 4px;
      padding: 6px;
  }
  .bg-excedente {
      background-color: #fff3cd !important;
  }

  /* ================================================================= */
  /* 🗓️ ECOSISTEMA CALENDARIO DE ZARPE DINÁMICO (INTEGRADO)             */
  /* ================================================================= */
  #calendar-zarpe-wrapper {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1055;
    animation: fadeInDown 0.25s ease;
  }

  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .cal-zarpe {
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 12px;
    padding: 18px 20px 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    max-width: 360px;
    user-select: none;
  }

  .cal-zarpe .cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
  }

  .cal-zarpe .cal-label {
    font-size: .78rem;
    font-weight: 700;
    color: #399d9e;
    text-transform: uppercase;
    letter-spacing: .03em;
  }

  .cal-zarpe .cal-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #495057;
    padding: 2px 8px;
    border-radius: 6px;
    transition: background .15s;
  }

  .cal-zarpe .cal-header button:hover { background: #e9ecef; }
  .cal-zarpe .cal-title { font-weight: 700; font-size: .95rem; color: #212529; text-transform: capitalize; }
  .cal-zarpe .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
  .cal-zarpe .cal-day-name { font-size: .7rem; font-weight: 700; color: #6c757d; padding: 4px 0; text-transform: uppercase; }
  
  .cal-zarpe .cal-day {
    padding: 6px 2px;
    border-radius: 8px;
    font-size: .85rem;
    line-height: 1;
    cursor: default;
    color: #adb5bd;
    background: transparent;
    border: 2px solid transparent;
    transition: all .15s;
  }

  .cal-zarpe .cal-day.allowed { color: #399d9e; font-weight: 700; cursor: pointer; background: #e7f1ff; }
  .cal-zarpe .cal-day.allowed:hover { background: #399d9e; color: #fff; transform: scale(1.1); }
  .cal-zarpe .cal-day.selected { background: #399d9e !important; color: #fff !important; box-shadow: 0 2px 8px rgba(13, 110, 253, .4); transform: scale(1.12); }
  .cal-zarpe .cal-day.today { border-color: #68614d; }

  #zarpe-selected-display {
    background: linear-gradient(135deg, #399d9e 0%, #399d9e 100%);
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(13, 110, 253, .3);
    cursor: pointer;
    transition: filter .15s, transform .15s;
    user-select: none;
  }

  #zarpe-selected-display:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(13, 110, 253, .45); }
  #zarpe-selected-display .edit-hint { font-size: .75rem; opacity: 0; transition: opacity .2s; margin-left: 2px; }
  #zarpe-selected-display:hover .edit-hint { opacity: 1; }

  /* ================================================================= */
  /* 🎛️ ESTILOS DEL INDICADOR DE PASOS (WIZARD)                       */
  /* ================================================================= */
  .step-indicator { position: relative; z-index: 2; transition: all 0.4s ease; }
  .step-indicator .badge {
      width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
      font-weight: 700; border-radius: 50% !important; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .step-indicator.active .badge {
      background: linear-gradient(135deg, #94d8da 0%, #399d9e 100%) !important; color: #ffffff !important;
      transform: scale(1.15); box-shadow: 0 0 15px rgba(0, 114, 255, 0.45) !important;
  }
  .step-indicator.active .step-text { color: #234b74 !important; font-weight: 700 !important; }
  .step-indicator.completed .badge {
      background: linear-gradient(135deg, #94d8da 0%, #399d9e 100%) !important; color: #ffffff !important;
  }
  .step-indicator.completed .step-text { color: #234b74 !important; }
  .step-indicator.pending .badge { background: #f1f5f9 !important; color: #94a3b8 !important; border: 2px solid #cbd5e1 !important; }
  .step-indicator.pending .step-text { color: #94a3b8 !important; }
  .step-text { font-size: 0.82rem; letter-spacing: 0.3px; }
  .progress-line-backend { position: absolute; top: 38%; left: 10%; width: 80%; height: 4px; background: #e2e8f0; z-index: 1; }