/* Estilos para la página de citas */

/* Importar estilos del calendario desde agenda-cita.css */
/* Los estilos de calendar-layout, calendar-wrapper, hour-btn, etc. 
   ya están definidos en agenda-cita.css y se aplicarán automáticamente */

/* Estilos específicos para el calendario en reagendar */
.reschedule-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.current-appointment-info {
    width: 100%;
    max-width: 100%;
}

.reschedule-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.reschedule-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.reschedule-container .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reschedule-container .form-group label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.reschedule-container .calendar-layout {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.reschedule-container .hour-buttons-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.reschedule-container .hour-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-width: 600px;
    margin: 10px auto;
}

.reschedule-container .form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.citas-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.citas-title {
    font-size: 32px;
    font-weight: 700;
    color: #0B090A;
    margin-bottom: 30px;
    text-align: center;
}

.citas-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.cita-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cita-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.cita-header {
    border-bottom: 2px solid #E12826;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.cita-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0B090A;
    margin-bottom: 8px;
}

.cita-fecha {
    font-size: 16px;
    color: #0B090A;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cita-fecha-texto {
    font-size: 18px;
    color: #0B090A;
    font-weight: 700;
}

.cita-hora-texto {
    font-size: 16px;
    color: #E12826;
    font-weight: 600;
}

.cita-info {
    margin-bottom: 20px;
}

.cita-info p {
    font-size: 14px;
    color: #0B090A;
    margin-bottom: 8px;
}

.cita-info strong {
    color: #E12826;
    font-weight: 600;
}

.cita-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-reagendar {
    flex: 1;
    padding: 12px 20px;
    background-color: #E12826;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-reagendar:hover {
    background-color: #C01E1E;
}

.btn-cancelar {
    flex: 1;
    padding: 12px 20px;
    background-color: #ffffff;
    color: #E12826;
    text-align: center;
    border: 2px solid #E12826;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-cancelar:hover {
    background-color: #E12826;
    color: #ffffff;
}

.no-citas {
    text-align: center;
    padding: 60px 20px;
    color: #7E8492;
    font-size: 18px;
}

/* Modal de cancelación */
.cancel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.cancel-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.cancel-modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 500px;
    margin: 50px auto;
    z-index: 10001;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
}

.cancel-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #E12826;
}

.cancel-modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0B090A;
    margin: 0;
}

.cancel-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #7E8492;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cancel-modal-close:hover {
    color: #E12826;
}

.cancel-modal-body {
    padding: 25px;
}

.cancel-modal-body p {
    font-size: 16px;
    color: #0B090A;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0B090A;
    margin-bottom: 8px;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #E12826;
}

.cancel-modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #E0E0E0;
}

.btn-cancel-modal {
    flex: 1;
    padding: 12px 20px;
    background-color: #ffffff;
    color: #7E8492;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel-modal:hover {
    border-color: #7E8492;
    color: #0B090A;
}

.btn-confirm-cancel {
    flex: 1;
    padding: 12px 20px;
    background-color: #E12826;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-confirm-cancel:hover {
    background-color: #C01E1E;
}

/* Estilo para el item activo en el menú */
.agenda-citas.active {
    background-color: #A41419 !important;
}

.agenda-citas.active .agenda-cita-menu-titulo {
    background-color: #A41419 !important;
}

.agenda-citas.active .agenda-cita-menu-titulo h5 {
    color: #ffffff !important;
}

/* Búsqueda y filtros */
.citas-search-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
}

.citas-search-form {
    width: 100%;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 14px;
    font-weight: 600;
    color: #0B090A;
    margin-bottom: 8px;
}

.search-field input[type="text"],
.search-field input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.search-field input[type="text"]:focus,
.search-field input[type="date"]:focus {
    outline: none;
    border-color: #E12826;
}

.search-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.search-actions-centered {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
}

.btn-search {
    padding: 12px 24px;
    background-color: #E12826;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.btn-search:hover {
    background-color: #C01E1E;
}

.btn-clear {
    padding: 12px 24px;
    background-color: #ffffff;
    color: #E12826;
    border: 2px solid #E12826;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-block;
}

.btn-clear:hover {
    background-color: #E12826;
    color: #ffffff;
}

/* Información de resultados */
.citas-results-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.citas-results-info p {
    font-size: 14px;
    color: #7E8492;
    margin: 0;
    font-weight: 500;
}

/* Paginación */
.citas-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
}

.pagination-btn {
    padding: 12px 24px;
    background-color: #E12826;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.pagination-btn:hover {
    background-color: #C01E1E;
}

.pagination-btn.disabled {
    background-color: #E0E0E0;
    color: #7E8492;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    font-size: 14px;
    color: #0B090A;
    font-weight: 500;
    padding: 0 10px;
}

/* Modal de resultado (éxito/error) */
.appointment-result-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.appointment-result-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.appointment-result-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.appointment-result-modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    z-index: 10001;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.appointment-result-modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #E12826 0%, #C01E1E 100%);
}

.appointment-result-modal-header.success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.appointment-result-modal-header.error {
    background: linear-gradient(135deg, #E12826 0%, #C01E1E 100%);
}

.appointment-result-modal-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    margin-right: 15px;
}

.appointment-result-modal-title {
    flex: 1;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.appointment-result-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    line-height: 1;
    padding: 0;
}

.appointment-result-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.appointment-result-modal-body {
    padding: 30px;
}

.appointment-result-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.appointment-result-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #E12826;
}

.appointment-result-info-item.success {
    border-left-color: #28a745;
}

.appointment-result-info-item.error {
    border-left-color: #E12826;
}

.appointment-result-info-icon {
    font-size: 20px;
    color: #E12826;
    width: 24px;
    text-align: center;
}

.appointment-result-info-item.success .appointment-result-info-icon {
    color: #28a745;
}

.appointment-result-info-item.error .appointment-result-info-icon {
    color: #E12826;
}

.appointment-result-info-label {
    font-size: 13px;
    font-weight: 600;
    color: #7E8492;
    min-width: 80px;
}

.appointment-result-info-value {
    font-size: 15px;
    font-weight: 700;
    color: #0B090A;
    flex: 1;
}

.appointment-result-message {
    padding: 15px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #0B090A;
    background-color: #f8f9fa;
    margin-top: 10px;
}

.appointment-result-message.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.appointment-result-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #E12826;
}

.appointment-result-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #E0E0E0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-modal-close {
    padding: 12px 30px;
    background-color: #E12826;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-modal-close:hover {
    background-color: #C01E1E;
}

.btn-modal-close.success {
    background-color: #28a745;
}

.btn-modal-close.success:hover {
    background-color: #218838;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* TRACKING DE VEHÍCULOS - TARJETA ÚNICA */
.vehicle-tracking-section-single {
    margin-bottom: 30px;
}

.vehicle-tracking-card-single {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #E12826;
}

.vehicle-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.vehicle-info-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sale-order-info {
    font-size: 13px;
    color: #7E8492;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sale-order-info strong {
    color: #0B090A;
    font-weight: 600;
}

.vehicle-selectors-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.vehicle-selector,
.sale-order-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vehicle-selector label,
.sale-order-selector label {
    font-size: 13px;
    font-weight: 600;
    color: #7E8492;
    white-space: nowrap;
}

.vehicle-select-dropdown,
.sale-order-select-dropdown {
    padding: 8px 12px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0B090A;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.vehicle-select-dropdown:hover,
.sale-order-select-dropdown:hover {
    border-color: #E12826;
    background-color: #f8f9fa;
}

.vehicle-select-dropdown:focus,
.sale-order-select-dropdown:focus {
    outline: none;
    border-color: #E12826;
    box-shadow: 0 0 0 3px rgba(225, 40, 38, 0.1);
}

/* TRACKING DE VEHÍCULOS (mantener para compatibilidad) */
.vehicle-tracking-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
}

.tracking-title {
    font-size: 24px;
    font-weight: 700;
    color: #0B090A;
    margin-bottom: 25px;
    text-align: center;
}

.vehicle-tracking-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
}

.vehicle-tracking-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.vehicle-tracking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.vehicle-tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E12826;
}

.vehicle-plate {
    font-size: 20px;
    font-weight: 700;
    color: #0B090A;
    display: flex;
    align-items: center;
    margin: 0;
}

.vehicle-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.vehicle-status-badge.status-sin_orden {
    background-color: #E0E0E0;
    color: #7E8492;
}

.vehicle-status-badge.status-programado {
    background-color: #E3F2FD;
    color: #1976D2;
}

.vehicle-status-badge.status-en_espera {
    background-color: #FFF3E0;
    color: #F57C00;
}

.vehicle-status-badge.status-en_proceso {
    background-color: #E8F5E9;
    color: #388E3C;
}

.vehicle-status-badge.status-finalizado {
    background-color: #F3E5F5;
    color: #7B1FA2;
}

/* RESUMEN DEL TRACKING */
.tracking-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #E12826;
}

.tracking-summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.summary-label {
    font-size: 12px;
    font-weight: 600;
    color: #7E8492;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 18px;
    font-weight: 700;
}

.tracking-stages {
    margin: 20px 0;
    overflow-x: auto;
}

.tracking-stages-container {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 100%;
    padding: 10px 0;
}

.tracking-stage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    position: relative;
    flex-shrink: 0;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.tracking-stage-item.current-stage {
    transform: scale(1.15);
    background-color: #FFF5F5;
    border: 2px solid #E12826;
    box-shadow: 0px 4px 12px rgba(225, 40, 38, 0.2);
}

.tracking-stage-item.completed-stage {
    opacity: 0.9;
}

.tracking-stage-item.pending-stage {
    opacity: 0.7;
}

.stage-icon-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.tracking-stage-item.current-stage .stage-icon-container {
    background-color: #FFF5F5;
    box-shadow: 0px 4px 12px rgba(225, 40, 38, 0.3);
}

.vehicle-icon {
    width: 40px;
    height: 40px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.stage-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #E0E0E0;
    background-color: #ffffff;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.stage-dot.completed {
    background-color: #28a745;
    border-color: #28a745;
}

.stage-dot.pending {
    background-color: #ffffff;
    border-color: #E0E0E0;
    color: #7E8492;
    font-weight: 700;
}

/* BADGES DE ETAPAS */
.current-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #E12826;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.completed-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #28a745;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.pending-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #F57C00;
    color: #ffffff;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.stage-label {
    font-size: 13px;
    font-weight: 600;
    color: #7E8492;
    text-align: center;
    max-width: 120px;
    word-wrap: break-word;
    line-height: 1.3;
}

.tracking-stage-item.current-stage .stage-label {
    color: #E12826;
    font-weight: 700;
    font-size: 14px;
}

.stage-number {
    font-size: 11px;
    font-weight: 500;
    color: #7E8492;
    text-align: center;
    margin-top: 2px;
}

.tracking-stage-item.current-stage .stage-number {
    color: #E12826;
    font-weight: 600;
}

.stage-connector {
    flex: 1;
    height: 4px;
    min-width: 40px;
    margin: 0 10px;
    transition: all 0.3s;
    border-radius: 2px;
    position: relative;
    top: -30px;
}

.stage-connector.completed {
    background-color: #28a745;
    box-shadow: 0px 1px 3px rgba(40, 167, 69, 0.3);
}

.stage-connector.pending {
    background-color: #E0E0E0;
}

.stage-connector.current {
    background: linear-gradient(90deg, #28a745 0%, #E12826 100%);
    box-shadow: 0px 1px 3px rgba(225, 40, 38, 0.3);
}

/* LISTA DE ETAPAS PENDIENTES */
.pending-stages-list {
    margin-top: 25px;
    padding: 20px;
    background-color: #FFF9E6;
    border-radius: 12px;
    border-left: 4px solid #F57C00;
}

.pending-stages-title {
    font-size: 16px;
    font-weight: 700;
    color: #F57C00;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pending-stages-title::before {
    content: "⏳";
    font-size: 20px;
}

.pending-stages-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.pending-stage-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #FFE0B2;
    transition: all 0.3s;
}

.pending-stage-item:hover {
    background-color: #FFF3E0;
    border-color: #F57C00;
    transform: translateX(5px);
}

.pending-stage-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #F57C00;
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.pending-stage-name {
    font-size: 14px;
    font-weight: 600;
    color: #0B090A;
    flex: 1;
}

.tracking-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #E0E0E0;
}

.tracking-detail {
    font-size: 14px;
    color: #0B090A;
    margin-bottom: 8px;
}

.tracking-detail strong {
    color: #E12826;
    font-weight: 600;
    margin-right: 8px;
}

.no-tracking-info {
    font-size: 14px;
    color: #7E8492;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .citas-list {
        grid-template-columns: 1fr;
    }

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

    .cancel-modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }

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

    .search-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-search,
    .btn-clear {
        width: 100%;
    }

    .citas-pagination {
        flex-direction: column;
        gap: 15px;
    }

    .pagination-btn {
        width: 100%;
        text-align: center;
    }

    .vehicle-tracking-list {
        grid-template-columns: 1fr;
    }

    .tracking-stages-container {
        gap: 5px;
    }

    .tracking-stage-item {
        min-width: 80px;
    }

    .stage-label {
        font-size: 11px;
        max-width: 80px;
    }

    .vehicle-tracking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}