/* --- ALTURA GLOBAL RESPONSIVE --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* En pantallas medianas y grandes: que la app use todo el alto */
@media (min-width: 768px) {
  .container-fluid,
  .app-shell {
      height: 100%;
      min-height: 0;
  }
}

/* En celular: que el contenido crezca normal y el footer baje */
@media (max-width: 767.98px) {
  .container-fluid,
  .app-shell {
      height: auto;
      min-height: 100vh;
  }
}

/* Columna izquierda con scroll vertical completo (desktop/tablet) */
.left-pane {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* La lista se ve normal (solo bordes redondeados si quieres) */
.list-pacientes {
    border-radius: 6px;
}

/* Drag & animación hoja */
#rightPane.drop-target { outline: 2px dashed #0d6efd; outline-offset: 4px; }
.open-sheet-enter { transform-origin: top left; transform: scale(0.96) rotateX(2deg); opacity:0; }
.open-sheet-enter-active { transition: transform .25s ease, opacity .25s ease; transform: scale(1) rotateX(0); opacity:1; }

/* ---------- Encabezado del expediente ---------- */
.expediente-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: .25rem;
  text-align: center;
}
.marca-clinica {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #0d6efd;
}
.marca-clinica .bi { font-size: 1.1rem; }
.titulo-marca { letter-spacing: .2px; }
.titulo-expediente {
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
}

/* ---------- Tabs subrayados ---------- */
.nav-underline .nav-link {
  padding: .5rem .25rem;
  margin-left: 10px;
  color: #495057;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.nav-underline .nav-link:hover { color:#0d6efd; }
.nav-underline .nav-link.active {
  color: #0d6efd;
  border-color: #0d6efd;
  font-weight: 600;
}

/* ---------- Títulos de sección dentro del expediente ---------- */
.seccion-titulo {
  display: flex; align-items: center;
  font-weight: 700; font-size: 1.15rem;
}
.seccion-titulo .bi { margin-right: .5rem; }

/* Campos más “limpios” en tarjetas */
.card .form-label { font-size: .85rem; color: #6c757d; }
.card input.form-control, .card select.form-select, .card textarea.form-control {
  border-radius: .6rem;
}

/* Botón “Nuevo” junto al título de pacientes */
#btnNuevoPaciente {
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: .4rem;
}
#btnNuevoPaciente i { font-size: 0.9rem; }

/* ============================== */
/* 🔥 Compactación profesional del calendario (base) */
/* ============================== */
.fc-timegrid-slot-lane {
    height: 14px !important;
}

.fc .fc-scrollgrid-section-liquid > td {
    padding: 0 !important;
}

.fc-timegrid-axis {
    font-size: 10px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Eventos más delgados */
.fc-event {
    font-size: 11px !important;
    padding: 1px 2px !important;
}

/* Contenedor con scroll vertical (desktop/tablet) */
.calendar-container {
    height: calc(100vh - 120px); /* Ajusta según header/footer en escritorio */
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    background: white;
}

/* Compactar cada bloque de 15 minutos */
#assistantCalendar .fc-timegrid-slot {
    height: 4px !important;
    line-height: 8px !important;
    padding: 0 !important;
}

/* Evitar que las líneas se vean muy juntas */
#assistantCalendar .fc-timegrid-slot-label {
    font-size: 10px !important;
    padding: 0 !important;
}

.fc-timegrid-slots table tbody tr td {
    padding: 0 !important;
}

/* Historial mini */
.historial-mini table {
    font-size: 0.80rem !important;
}
.historial-mini td,
.historial-mini th {
    padding: 0.35rem 0.45rem !important;
    vertical-align: middle !important;
}
.historial-mini .badge {
    font-size: 0.50rem !important;
    padding: 0.25em 0.4em !important;
}

/* FullCalendar cuerpo */
.fc-scrollgrid-section-body {
    overflow: hidden !important;
}
.fc {
    height: calc(100vh - 180px) !important;
}
.fc-col-header-cell-cushion {
    font-size: 13px !important;
    color: #0d6efd !important;
    font-weight: 600;
}
.fc-toolbar-title {
    font-size: 20px;
    font-weight: 700;
}
.fc-button-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}
.fc-timegrid-slot-label {
    font-size: 12px;
    color: #666;
}

/* Hace que FullCalendar use todo el espacio del contenedor */
#assistantCalendar {
    height: 100% !important;
}

/* Items clicables en la lista de pacientes */
.list-pacientes .list-group-item {
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

/* Hover bonito */
.list-pacientes .list-group-item:hover {
    background-color: #f1f5ff;
    color: #0d6efd;
}

/* Items clicables con layout Nombre | Estatus | Hora */
.list-pacientes .list-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    border: 0;
    border-bottom: 1px solid #e9ecef;
}
.list-pacientes .list-group-item:last-child {
    border-bottom: none;
}

/* Columna nombre */
.pac-nombre {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Contenedor del estatus + hora */
.pac-estado-hora {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
}

/* Hora más discreta */
.pac-hora {
    font-size: .85rem;
    color: #6c757d;
}

/* Panel derecho con tabs de modo */
.right-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* Contenido de tabs dentro del panel derecho */
.right-pane .tab-content {
    flex: 1;
    min-height: 0;
}

/* El pane de Agenda también es flex para que la calendar-container crezca */
#pane-modo-agenda {
    height: 80vh;        /* 🔹 calendario grande ~65% de la altura de pantalla */
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Cuando el calendar está dentro del panel derecho, que use 100% de alto */
.right-pane .calendar-container {
    height: 100%;
}

/* Opcional: cursor manita en todas las filas de listas */
.list-group-item {
    cursor: pointer;
}

/* El pane de EXPEDIENTE puede hacer scroll interno */
#pane-modo-expediente {
    overflow-y: auto;
    padding-bottom: 1rem;
}
#contenidoExpediente {
    margin-bottom: 0.5rem;
}

/* ===================================================== */
/* 🔹 HEADER FIJO CON TABS (EXPEDIENTE / AGENDA)         */
/* ===================================================== */

.app-header {
    z-index: 1030;
}
.app-title {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Logo del nutriólogo en header */
.nutri-logo-header {
    max-height: 90px;
    width: auto;
}

/* Ocultar solo el ícono de corazón del título principal */
.app-title-icon {
    display: inline-block !important;
}

/* Footer por encima de cualquier cosa rara del calendario */
.app-footer {
    position: relative;
    z-index: 5;
    background: #f8f9fa;
}


/* Tamaño del logo en ESCRITORIO */
.asst-logo {
    height: 46px;          /* más alto para que se note */
    width: auto;
    object-fit: contain;
}


/* ===================================================== */
/* 🔹 AJUSTES ESPECÍFICOS PARA CELULAR                   */
/* ===================================================== */
@media (max-width: 767.98px) {

    /* Título un poco más pequeño */
    .app-title {
        font-size: 0.9rem;
    }

    /* Ocultar nombre largo del nutriólogo */
    .nutri-header-name {
        display: none !important;
    }

    /* Ocultar icono de corazón del título (por si acaso) */
    .bi-heart-pulse {
        display: none !important;
    }

    /* Panel de pacientes más alto (para ver más nombres)
        pero sin ocupar toda la pantalla */
    .left-pane {
        height: auto;        /* quitamos el 100% en móvil */
        max-height: 420px;   /* 🔹 aquí alargamos la lista de pacientes */
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Panel derecho se adapta al contenido */
    .right-pane {
        height: auto;
        min-height: 0;
    }

    /* Agenda más visible en móvil */
    #pane-modo-agenda .calendar-container {
        height: 300vh;        /* 🔹 calendario grande ~65% de la altura de pantalla */
        max-height: 65vh;
        margin-bottom: 0.75rem;
    }

    #assistantCalendar {
        height: 100% !important;
    }

    /* Fechas del calendario un poco más grandes y legibles */
    .fc-toolbar-title {
        font-size: 12px !important;
        text-align: center;
    }

    .fc-col-header-cell-cushion {
        font-size: 13px !important;
    }

    .fc-timegrid-slot-label {
        font-size: 10px;
    }

    /* Botones (flechas, Semana, Día) más pequeños */
    .fc .fc-button {
        font-size: 11px;              /* letra más chica */
        padding: 0.15rem 0.35rem;     /* menos alto y menos ancho */
        line-height: 1.2;
    }

    /* Evitar botones gigantes por ancho mínimo */
    .fc .fc-button-group .fc-button {
        min-width: auto;
    }

    .asst-logo {
        height: 32px;          /* más pequeño en cel */
    }

    .app-title {
        font-size: 1rem;       /* aquí sí se ve bien en tu screenshot */
    }

    /* Ocultar solo el ícono de corazón del título principal */
    .app-title-icon {
        display: none !important;
    }

}






/* ===== Listado de pacientes del ASISTENTE (vista agenda) ===== */

/* Escritorio / tablet: lista alta, casi a pantalla completa */
#asstListaTodos {
    max-height: calc(100vh - 240px);
    overflow-y: auto;
}

/* En CELULAR: hacer la lista más baja para que se vea mejor el calendario */
@media (max-width: 767.98px) {
    #asstListaTodos {
        max-height: 220px;   /* prueba con 200–260px hasta que te guste */
    }
}



















/* ============================================
    CSS ESPECÍFICO PARA MÓDULO DE MEDICIONES
    Prefijo: med-tracker-
    VERSIÓN COMPACTA
    ============================================ */

:root {
    --med-tracker-primary: #4A90E2;
    --med-tracker-basic-measures: #10b981;
    --med-tracker-basic-measures-light: #d1fae5;
    --med-tracker-perimeters-main: #f59e0b;
    --med-tracker-perimeters-main-light: #fef3c7;
    --med-tracker-body-composition: #8b5cf6;
    --med-tracker-body-composition-light: #ede9fe;
    --med-tracker-observations: #6b7280;
}

.med-tracker-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
}

/* Header ultra compacto - una sola línea */
.med-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    gap: 12px;
}

.med-tracker-date-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.med-tracker-date-input label {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: #000;
    font-weight: 500;
    white-space: nowrap;
}

.med-tracker-date-input input {
    font-size: 0.85rem;
    padding: 6px 10px;
    width: 200px;
}

.med-tracker-save-btn {
    background: linear-gradient(135deg, var(--med-tracker-primary) 0%, #357ABD 100%);
    border: none;
    padding: 7px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.med-tracker-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(74, 144, 226, 0.4);
}

/* Sección de métricas - compacta */
.med-tracker-metrics-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* Cards compactas */
.med-tracker-metric-card {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-left: 3px solid;
    transition: all 0.3s ease;
}

.med-tracker-metric-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.med-tracker-metric-card.basic-measures {
    border-left-color: var(--med-tracker-basic-measures);
    background: linear-gradient(to right, var(--med-tracker-basic-measures-light) 0%, white 15%);
}

.med-tracker-metric-card.perimeters-main {
    border-left-color: var(--med-tracker-perimeters-main);
    background: linear-gradient(to right, var(--med-tracker-perimeters-main-light) 0%, white 15%);
}

.med-tracker-metric-card.body-composition {
    border-left-color: var(--med-tracker-body-composition);
    background: linear-gradient(to right, var(--med-tracker-body-composition-light) 0%, white 15%);
}

/* Títulos compactos */
.med-tracker-card-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.med-tracker-card-title.basic-measures {
    color: var(--med-tracker-basic-measures);
}

.med-tracker-card-title.perimeters-main {
    color: var(--med-tracker-perimeters-main);
}

.med-tracker-card-title.body-composition {
    color: var(--med-tracker-body-composition);
}

.med-tracker-card-title i {
    font-size: 0.9rem;
}

/* Grid de inputs compacto */
.med-tracker-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    align-items: end;
}

/* Input group compacto */
.med-tracker-input-group {
    position: relative;
}

.med-tracker-input-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 3px;
    display: block;
    line-height: 1;
}

.med-tracker-input {
    width: 100%;
    padding: 5px 8px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.med-tracker-input:focus {
    outline: none;
    border-color: var(--med-tracker-primary);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.med-tracker-input.calculated {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    font-weight: 700;
    color: var(--med-tracker-primary);
    border-color: var(--med-tracker-primary);
    cursor: not-allowed;
}

.med-tracker-unit-badge {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: #9ca3af;
    font-weight: 600;
    pointer-events: none;
}

/* Sección de observaciones compacta */
.med-tracker-observations-section {
    margin-bottom: 12px;
}

.med-tracker-observations-card {
    background: white;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-left: 3px solid var(--med-tracker-observations);
}

.med-tracker-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.85rem;
    resize: vertical;
    min-height: 50px;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.med-tracker-textarea:focus {
    outline: none;
    border-color: var(--med-tracker-primary);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

/* Tabla compacta */
.med-tracker-history-section {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.med-tracker-history-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.med-tracker-table {
    width: 100%;
    font-size: 0.75rem;
}

.med-tracker-table thead {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.med-tracker-table thead th {
    font-weight: 700;
    color: #374151;
    padding: 6px 6px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.med-tracker-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.med-tracker-table tbody tr:hover {
    background-color: #f9fafb;
}

.med-tracker-table tbody td {
    padding: 6px 6px;
    vertical-align: middle;
    line-height: 1.2;
}

.med-tracker-table tbody td strong {
    font-size: 0.8rem;
}

.med-tracker-table tbody td small {
    font-size: 0.65rem;
}

.med-tracker-table .badge {
    font-size: 0.7rem;
    padding: 2px 6px;
}

/* Botón de observaciones compacto */
.med-tracker-obs-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--med-tracker-primary) 0%, #357ABD 100%);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.med-tracker-obs-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.4);
}

.med-tracker-obs-indicator i {
    font-size: 0.85rem;
}

.med-tracker-obs-tooltip {
    max-width: 300px !important;
}

.med-tracker-obs-tooltip .tooltip-inner {
    background: #1f2937 !important;
    padding: 10px 12px !important;
    font-size: 0.75rem !important;
    text-align: left !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
    max-width: 300px !important;
    color: #ffffff !important;
}

/* Flecha del tooltip también debe ser oscura */
.med-tracker-obs-tooltip .tooltip-arrow::before {
    border-left-color: #1f2937 !important;
    border-right-color: #1f2937 !important;
    border-top-color: #1f2937 !important;
    border-bottom-color: #1f2937 !important;
}

/* Botones de acción compactos */
.med-tracker-action-btn {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin: 0 2px;
}

.med-tracker-action-btn i {
    font-size: 0.75rem;
}

.med-tracker-action-btn.edit {
    background: #fef3c7;
    color: #d97706;
}

.med-tracker-action-btn.edit:hover {
    background: #fcd34d;
    transform: scale(1.1);
}

.med-tracker-action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

.med-tracker-action-btn.delete:hover {
    background: #fca5a5;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .med-tracker-metrics-row {
        flex-direction: column;
    }
    
    .med-tracker-metric-card {
        min-width: 100%;
    }

    .med-tracker-inputs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .med-tracker-inputs-grid {
        grid-template-columns: 1fr;
    }

    .med-tracker-table {
        font-size: 0.65rem;
    }

    .med-tracker-table thead th,
    .med-tracker-table tbody td {
        padding: 4px 3px;
    }
}

/* Animaciones */
@keyframes med-tracker-fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.med-tracker-metric-card,
.med-tracker-observations-card,
.med-tracker-history-section {
    animation: med-tracker-fadeIn 0.4s ease;
}













/* ============================================
   BOTONES DE TABLA - ESTILO PROFESIONAL
   ============================================ */

/* Contenedor de acciones */
.med-tracker-actions {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

/* Botón de observaciones (OJO) - Azul */
.med-tracker-obs-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15);
    font-size: 0.85rem;
}

.med-tracker-obs-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.med-tracker-obs-btn:active {
    transform: translateY(0) scale(1);
}

/* Botón de editar - Naranja/Amarillo */
.med-tracker-btn-edit {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.15);
    font-size: 0.75rem;
}

.med-tracker-btn-edit:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.med-tracker-btn-edit:active {
    transform: translateY(0) scale(1);
}

/* Botón de eliminar - Rojo */
.med-tracker-btn-delete {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.15);
    font-size: 0.75rem;
}

.med-tracker-btn-delete:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.med-tracker-btn-delete:active {
    transform: translateY(0) scale(1);
}

/* Animación de pulso para indicar interactividad */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Estados de loading (opcional) */
.med-tracker-btn-edit.loading,
.med-tracker-btn-delete.loading {
    pointer-events: none;
    opacity: 0.6;
    animation: pulse-subtle 1.5s ease-in-out infinite;
}

/* Responsive - botones más pequeños en móvil */
@media (max-width: 576px) {
    .med-tracker-obs-btn,
    .med-tracker-btn-edit,
    .med-tracker-btn-delete {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .med-tracker-actions {
        gap: 4px;
    }
}


/* Botón cancelar */
.med-tracker-cancel-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border: none;
    padding: 7px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(107, 114, 128, 0.3);
    transition: all 0.3s ease;
    color: white;
}

.med-tracker-cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(107, 114, 128, 0.4);
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}
















/* ============================================
   WIZARD - STEPPER CON CÍRCULOS
   ============================================ */

.wizard-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.wizard-step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.wizard-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #e5e7eb;
    z-index: 0;
}

.wizard-step-item.active:not(:last-child)::after,
.wizard-step-item.completed:not(:last-child)::after {
    background: #3b82f6;
}

.wizard-step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.wizard-step-item.active .wizard-step-circle {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: scale(1.15);
}

.wizard-step-item.completed .wizard-step-circle {
    background: #10b981;
    color: white;
}

.wizard-step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    max-width: 120px;
}

.wizard-step-item.active .wizard-step-label {
    color: #3b82f6;
}

.wizard-step-item.completed .wizard-step-label {
    color: #10b981;
}

/* Cards de macros */
.macro-card {
    border-left: 4px solid;
    transition: transform 0.2s ease;
}

.macro-card:hover {
    transform: translateY(-2px);
}























/* ========== WIZARD PASO 1 - TODO EN UNA LÍNEA ========== */

/* Header + Stepper + Botón en una sola línea */
.wizard-header-unified {
  background: white;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.wizard-title {
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
}

.stepper-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0;
  justify-content: flex-start;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.step.active .step-circle {
  background: #3b82f6;
  color: white;
}

.step-label {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.step.active .step-label {
  color: #3b82f6;
  font-weight: 600;
}

.step-line {
  height: 2px;
  background: #e5e7eb;
  width: 30px;
  flex-shrink: 0;
}

.btn-home {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-home:hover {
  background: #f9fafb;
}

.btn-propuesta-header {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border: none;
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.btn-propuesta-header:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(251, 191, 36, 0.4);
}

.catalog-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
  padding-left: 4px;
}

/* Content */
.wizard-content {
  background: white;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 12px;
}

/* Macros box */
.macros-box {
  border: 2px solid #3b82f6;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.macros-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.suma-badge {
  background: #10b981;
  color: white;
  padding: 12px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;
}

.suma-badge.error {
  background: #ef4444;
}

/* Totales */
.totales-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.total-card {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.total-card.azul {
  background: #dbeafe;
  border-left: 4px solid #3b82f6;
}

.total-card.verde {
  background: #d1fae5;
  border-left: 4px solid #10b981;
}

.total-card.rojo {
  background: #fee2e2;
  border-left: 4px solid #ef4444;
}

.total-card.naranja {
  background: #fed7aa;
  border-left: 4px solid #f59e0b;
}

.total-label {
  font-size: 10px;
  color: #6b7280;
  margin-bottom: 3px;
}

.total-value {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.2;
}

.total-unit {
  font-size: 12px;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
  .wizard-header-unified {
    flex-wrap: wrap;
  }
  
  .macros-inputs-row {
    grid-template-columns: 1fr;
  }
  
  .totales-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stepper-inline {
    order: 3;
    width: 100%;
  }
}





/* Timeline sin cintillo - solo franja */
.timeline-bar-simple {
  display: flex;
  align-items: center;
  gap: 0;  /* ← Eliminado gap */
  margin-bottom: 12px;
  background: white;
  padding: 4px 12px;  /* ← Reducido padding vertical de 10px a 4px */
  border-radius: 8px;
  border: 0px solid #e5e7eb;
}

.timeline-bar-simple .timeline-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
  transition: all 0.2s;
  height: 32px;  /* ← Reducido de 36px a 32px */
  border-radius: 0;  /* ← Sin bordes redondeados para que no se vean espacios */
}

.timeline-bar-simple .timeline-segment:hover {
  filter: brightness(1.1);
}

.timeline-bar {
  display: flex;
  flex: 1;
  gap: 2px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
}

.timeline-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
  transition: all 0.2s;
}

.timeline-segment:hover {
  filter: brightness(1.1);
}

.timeline-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.timeline-total-dynamic {
  background: #9ca3af;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
  margin-left: 5px;
  transition: background 0.3s ease;
}

.timeline-total-dynamic.success {
  background: #10b981;
}

.timeline-total-dynamic.error {
  background: #ef4444;
}

.timeline-total {
  background: rgba(255,255,255,0.25);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}















/* ========== PASO 2 - CATÁLOGO Y TIEMPOS COMPACTO ========== */

/* Catálogo de tiempos - MÁS COMPACTO */
.catalog-box {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  max-height: 440px;
  overflow-y: auto;
}

.catalog-item {
  margin-bottom: 4px;
}

.catalog-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.catalog-checkbox:hover {
  background: #f9fafb;
  border-color: #3b82f6;
}

.catalog-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.catalog-checkbox input[type="checkbox"]:checked {
  accent-color: #3b82f6;
}

.catalog-emoji {
  font-size: 18px;
  flex-shrink: 0;
}

.catalog-label {
  font-size: 13px;
  color: #1f2937;
  font-weight: 500;
  flex: 1;
  line-height: 1.3;
}

.btn-crear-tiempo {
  width: 100%;
  margin-top: 4px;
  padding: 7px;
  background: transparent;
  border: 2px dashed #cbd5e1;
  border-radius: 6px;
  color: #3b82f6;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-crear-tiempo:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

/* Tiempos seleccionados - ULTRA COMPACTO */
.selected-box {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  min-height: 200px;  /* ← Reducido de 440px a 200px */
  display: flex;
  flex-direction: column;
}

.selected-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
}

.selected-title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.selected-header small {
  font-size: 11px;
}

.selected-list {
  flex: 1;
  overflow-y: auto;
  max-height: 360px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #9ca3af;
  text-align: center;
}

.empty-state i {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 12px;
  margin: 0;
}

/* Item compacto - TODO EN 1 LÍNEA */
.selected-item-compact {
  display: grid;
  grid-template-columns: 20px 1fr 130px 70px 24px;
  gap: 6px;
  align-items: center;
  background: #f9fafb;
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 4px;
  border-left: 4px solid #3b82f6;
}

.selected-emoji {
  font-size: 16px;
}

.selected-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.time-input-compact {
  padding: 5px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
}

.time-input-compact:focus {
  outline: none;
  border-color: #3b82f6;
}

.percent-group-compact {
  display: flex;
  align-items: center;
  gap: 4px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 4px 8px;
}

.percent-input-compact {
  width: 42px;
  border: none;
  outline: none;
  font-size: 13px;
  text-align: right;
  font-weight: 600;
}

.percent-symbol {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.btn-remove-compact {
  background: #fee2e2;
  color: #ef4444;
  border: none;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-remove-compact:hover {
  background: #ef4444;
  color: white;
}

/* Suma badge paso 2 */
.suma-container {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.suma-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.suma-badge-step2 {
  background: #9ca3af;
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
}

.suma-badge-step2.success {
  background: #10b981;
}

.suma-badge-step2.error {
  background: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
  .selected-item-compact {
    grid-template-columns: 20px 1fr 110px 65px 24px;
    gap: 4px;
    padding: 5px 6px;
  }
  
  .catalog-box,
  .selected-box {
    max-height: none;
  }
}












/* ========================================================================
   CSS PARA PASO 3 Y PASO 4
   Agregar este código AL FINAL de app.css
   ======================================================================== */

/* ========== PASO 3: SELECCIÓN DE GRUPOS ========== */
.time-card-step3 {
  background: white;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.time-header-step3 {
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  transition: all 0.2s;
}

.time-header-step3:hover {
  filter: brightness(1.1);
}

.time-name-step3 {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badges-step3 {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.badges-step3::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.badge-step3 {
  background: rgba(255,255,255,0.25);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-x {
  cursor: pointer;
  font-weight: bold;
  opacity: 0.7;
  padding: 0 2px;
  transition: opacity 0.2s;
}

.badge-x:hover {
  opacity: 1;
  transform: scale(1.2);
}

.empty-step3 {
  opacity: 0.7;
  font-size: 13px;
  font-style: italic;
}

.arrow-step3 {
  font-size: 12px;
  opacity: 0.8;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.time-body-step3 {
  display: none;
  padding: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.time-body-step3.show {
  display: block;
  animation: slideDown 0.2s ease-out;
}

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

.groups-grid-step3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));  /* ✅ Reducido de 180px */
  gap: 8px;  /* ✅ Reducido de 10px a 8px */
  padding: 12px;  /* ✅ Reducido de 16px a 12px */
}

.checkbox-item-step3 {
  padding: 6px 10px;  /* ✅ Reducido de 10px a 6px */
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;  /* ✅ Reducido de 6px a 4px */
  transition: all 0.2s;
}

.checkbox-item-step3 input[type="checkbox"] {
  margin-right: 8px;  /* ✅ Reducido de 10px a 8px */
  cursor: pointer;
  width: 16px;  /* ✅ Tamaño fijo */
  height: 16px;
}

.checkbox-item-step3:hover {
  background: #f0f9ff;
  transform: translateX(2px);
}

.checkbox-item-step3 input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #3b82f6;
}

.checkbox-item-step3 label {
  cursor: pointer;
  margin: 0;
  font-size: 13px;  /* ✅ Reducido de 14px a 13px */
  line-height: 1.3;
}

/* ========== PASO 4: CANTIDADES ========== */
.time-card-step4 {
  background: white;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.time-header-step4 {
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  transition: all 0.2s;
}

.time-header-step4:hover {
  filter: brightness(1.1);
}

.time-name-step4 {
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}

.time-totals-step4 {
  font-size: 15px;
  opacity: 0.95;
  flex: 1;
  text-align: right;
  margin-right: 12px;
  white-space: nowrap;
}

.arrow-step4 {
  font-size: 12px;
  opacity: 0.8;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.time-body-step4 {
  display: none;
  padding: 2px;
  max-height: 500px;
  overflow-y: auto;
}

.time-body-step4.show {
  display: block;
  animation: slideDown 0.2s ease-out;
}

.actions-step4 {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.btn-plan-step4,
.btn-clear-step4 {
  padding: 9px 18px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-plan-step4 {
  background: #10b981;
  color: white;
}

.btn-plan-step4:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.btn-clear-step4 {
  background: #f3f4f6;
  color: #374151;
}

.btn-clear-step4:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.table-step4 {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-step4 thead {
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-step4 th {
  padding: 10px 8px;
  text-align: left;
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
}

.table-step4 td {
  padding: 10px 8px;
  border-bottom: 1px solid #f3f4f6;
}

.table-step4 tbody tr:hover {
  background: #f9fafb;
}

.qty-input-step4 {
  width: 70px;
  padding: 7px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s;
}

.qty-input-step4:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}




/* Responsive */
@media (max-width: 640px) {
  .groups-grid-step3 {
    grid-template-columns: 1fr;
  }
  
  .totals-grid-step4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .totals-grid-step4 {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .total-value-step4 {
    font-size: 18px;
  }
  
  .total-target-step4 {
    font-size: 11px;
  }
  
  .time-totals-step4 {
    font-size: 11px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .btn-plan-step4,
  .btn-clear-step4 {
    flex: 1;
    justify-content: center;
  }
  
  .table-step4 {
    font-size: 12px;
  }
  
  .table-step4 th,
  .table-step4 td {
    padding: 8px 4px;
  }
  
  .qty-input-step4 {
    width: 60px;
    padding: 5px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .badges-step3 {
    max-width: 180px;
  }
  
  .time-name-step3 {
    font-size: 14px;
  }
  
  .total-value-step4 {
    font-size: 15px;
  }
}



/* ========== TOTALES EN HEADER (PASO 4) ========== */
.totals-inline-step4 {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 8px 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.total-item-inline {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.total-value-inline {
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
}

.total-label-inline {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.total-label-inline span {
  font-weight: 600;
  color: #374151;
}

/* Footer simplificado */
.footer-buttons-step4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
  .totals-inline-step4 {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .total-value-inline {
    font-size: 16px;
  }
}











/* ========== LAYOUT DOS COLUMNAS (PASO 4) ========== */
.two-column-layout-step4 {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 16px;
}

/* Columna de botones */
.buttons-column-step4 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-plan-step4,
.btn-clear-step4 {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-plan-step4 {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.btn-plan-step4:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn-clear-step4 {
  background: #f3f4f6;
  color: #374151;
}

.btn-clear-step4:hover {
  background: #e5e7eb;
}

/* Tabla compacta */
.table-column-step4 {
  overflow-x: auto;
}

.table-step4-compact {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table-step4-compact thead {
  background: #f9fafb;
}

.table-step4-compact th {
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.table-step4-compact td {
  padding: 8px 10px;
  border-bottom: 1px solid #f3f4f6;
}

.table-step4-compact tbody tr:hover {
  background: #f9fafb;
}

.qty-input-step4 {
  width: 70px;
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
}

.qty-input-step4:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .two-column-layout-step4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .buttons-column-step4 {
    flex-direction: row;
  }
}