#registrarVisitaModal .modal-fullscreen,
#detalleVisitaModal .modal-fullscreen {
     width: 650px !important;
     max-width: 650px;
     height: 100%;
     margin: 0 0 0 auto !important;
     margin-right: 0 !important;
}

#registrarVisitaModal.modal,
#detalleVisitaModal.modal {
     z-index: 1060 !important;
}

#registrarVisitaModal .modal-dialog,
#detalleVisitaModal .modal-dialog {
     z-index: 1070 !important;
}

.modal-backdrop.show {
     z-index: 1050 !important;
}

#registrarVisitaModal .modal-content,
#detalleVisitaModal .modal-content {
     position: relative;
     z-index: 1071 !important;
}

#registrarVisitaModal .modal-body input,
#registrarVisitaModal .modal-body select,
#registrarVisitaModal .modal-body textarea,
#registrarVisitaModal .modal-body button,
#detalleVisitaModal .modal-body input,
#detalleVisitaModal .modal-body select,
#detalleVisitaModal .modal-body textarea,
#detalleVisitaModal .modal-body button {
     pointer-events: auto !important;
}

input[type="time"] {
     -webkit-appearance: none;
     -moz-appearance: textfield;
}

input[type="time"]::-webkit-datetime-edit-ampm-field {
     display: none;
}

input[type="time"]::-webkit-clear-button {
     display: none;
}

.calendario-modal-body {
     background: #f8f9fa;
     padding: 1.75rem 1.75rem 1.25rem 1.75rem;
}

.modal-form-actions {
     border-top: 1px solid #e9ecef;
}

.auditor-clear-btn {
     display: none;
     z-index: 10;
     padding: 0.375rem 0.75rem;
}

.auditor-results {
     position: absolute;
     z-index: 1000;
     width: 100%;
     max-height: 200px;
     overflow-y: auto;
     display: none;
}

.empty-state-icon {
     font-size: 2.5rem;
}

.motivo-cell {
     max-width: 280px;
     white-space: normal;
}

.btn-weight-500 {
     font-weight: 500;
}

.form-section-title {
     font-size: 0.75rem;
     letter-spacing: 0.07em;
     text-transform: uppercase;
     color: #475467;
     font-weight: 600;
     margin-bottom: 0.85rem;
     padding-bottom: 0.55rem;
     border-bottom: 1px solid #e4e7ec;
     display: flex;
     align-items: center;
     gap: 0.5rem;
}

.form-section-title i {
     font-size: 1rem;
     color: #495057;
}

.form-section {
     background: #ffffff;
     border: 1px solid #e4e7ec;
     border-radius: 12px;
     padding: 1.25rem 1.5rem 1.5rem;
     box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.form-section + .form-section {
     margin-top: 1.25rem;
}

.form-section-body {
     display: flex;
     flex-direction: column;
     gap: 1rem;
}

.form-section-body .row {
     margin-top: 0 !important;
     row-gap: 1rem;
}

.form-section-body .row > [class*="col"] {
     margin-top: 0 !important;
     display: flex;
     flex-direction: column;
     gap: 0.45rem;
}

.duration-pill {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
     background: rgba(13, 110, 253, 0.1);
     color: #0d6efd;
     border-radius: 6px;
     padding: 0.625rem 1rem;
     font-weight: 600;
     width: 100%;
     min-height: 42px;
     font-size: 0.95rem;
     border: 1px solid rgba(13, 110, 253, 0.2);
}

.read-only-field {
     background-color: #f1f3f5;
     cursor: not-allowed;
}

#registrarVisitaModal .form-label,
#detalleVisitaModal .form-label {
     font-weight: 500;
     font-size: 0.875rem;
     color: #344054;
     margin-bottom: 0.375rem;
     display: flex;
     align-items: center;
     gap: 0.375rem;
}

#registrarVisitaModal .form-label i,
#detalleVisitaModal .form-label i {
     font-size: 1rem;
     color: #667085;
}

#registrarVisitaModal .form-control,
#registrarVisitaModal .form-select,
#detalleVisitaModal .form-control,
#detalleVisitaModal .form-select {
     border-radius: 8px;
     border: 1px solid #d0d5dd;
     padding: 0.625rem 0.875rem;
     font-size: 0.875rem;
     transition: all 0.15s ease;
}

#registrarVisitaModal .form-control::placeholder,
#detalleVisitaModal .form-control::placeholder {
     color: #98a2b3;
}

#registrarVisitaModal .form-control:focus,
#registrarVisitaModal .form-select:focus {
     border-color: #0d6efd;
     box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
     outline: none;
}

#detalleVisitaModal .form-control:focus,
#detalleVisitaModal .form-select:focus {
     border-color: #0d6efd;
     box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
     outline: none;
}

#registrarVisitaModal .form-text,
#detalleVisitaModal .form-text {
     font-size: 0.8rem;
     margin-top: 0.25rem;
}

#registrarVisitaModal .form-check-label,
#detalleVisitaModal .form-check-label {
     font-size: 0.9rem;
     font-weight: 500;
     cursor: pointer;
}

#registrarVisitaModal .form-check-input,
#detalleVisitaModal .form-check-input {
     cursor: pointer;
     margin-top: 0.2rem;
}

#registrarVisitaModal .form-check-input:checked,
#detalleVisitaModal .form-check-input:checked {
     background-color: #0d6efd;
     border-color: #0d6efd;
}

#registrarVisitaModal textarea.form-control,
#detalleVisitaModal textarea.form-control {
     resize: vertical;
     min-height: 90px;
}

#registrarVisitaModal .modal-header,
#detalleVisitaModal .modal-header {
     border-bottom: 1px solid #e9ecef;
     padding: 1.25rem 1.75rem;
     background: #ffffff;
}

#registrarVisitaModal .modal-title,
#detalleVisitaModal .modal-title {
     font-weight: 600;
     color: #495057;
}


.detalle-visita-actions {
     display: flex;
     flex-direction: column;
     gap: 1rem;
}

.detalle-visita-actions .motivo-textarea {
     transition: all 0.2s ease;
}

.detalle-visita-actions .motivo-textarea textarea {
     min-height: 120px;
}

.detalle-visita-summary {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
     gap: 1rem;
     background: #f8f9fa;
     padding: 1rem;
     border-radius: 8px;
     border: 1px solid #e9ecef;
}

.detalle-visita-summary .summary-item {
     display: flex;
     flex-direction: column;
     gap: 0.25rem;
}

.detalle-visita-summary .summary-label {
     font-size: 0.75rem;
     text-transform: uppercase;
     color: #6c757d;
     letter-spacing: 0.06em;
}

.detalle-visita-summary .summary-value {
     font-weight: 600;
     color: #1f2933;
}

.conflictos-container {
     text-align: left;
     max-height: 300px;
     overflow-y: auto;
}

.conflictos-list {
     list-style: none;
     padding: 0;
     margin-bottom: 0;
}

.badge-fecha-extendida {
     background: #cfe2ff;
     color: #0c4a6e;
     padding: 2px 8px;
     border-radius: 4px;
     font-size: 0.85em;
     display: inline-block;
}

.badge-fecha-dia {
     background: #d1e7dd;
     color: #0f5132;
     padding: 2px 8px;
     border-radius: 4px;
     font-size: 0.85em;
     display: inline-block;
}

.conflicto-item {
     margin-bottom: 12px;
     padding: 10px;
     background: #f8f9fa;
     border-radius: 6px;
}

.conflicto-item-title {
     font-weight: 500;
     margin-bottom: 4px;
}

.conflicto-item-body {
     font-size: 0.9em;
     color: #6c757d;
}

.badge-pendiente {
     display: inline-flex;
     align-items: center;
     gap: 0.4rem;
     background: rgba(255, 193, 7, 0.15);
     color: #b58105;
     border-radius: 999px;
     padding: 0.35rem 0.75rem;
     font-size: 0.75rem;
     font-weight: 600;
}

.badge-aprobado {
     display: inline-flex;
     align-items: center;
     gap: 0.4rem;
     background: rgba(25, 135, 84, 0.15);
     color: #0f5132;
     border-radius: 999px;
     padding: 0.35rem 0.75rem;
     font-size: 0.75rem;
     font-weight: 600;
}

.solicitud-alert {
     background: rgba(13, 110, 253, 0.1);
     border: 1px solid rgba(13, 110, 253, 0.25);
     border-radius: 8px;
     padding: 0.75rem 1rem;
     font-size: 0.85rem;
     color: #0d47a1;
}

.table-solicitudes tbody tr td {
     vertical-align: middle;
}

.table-solicitudes .estado-pill {
     display: inline-flex;
     align-items: center;
     gap: 0.35rem;
     padding: 0.35rem 0.65rem;
     border-radius: 999px;
     font-size: 0.75rem;
     font-weight: 600;
}

.estado-pill.pendiente {
     background: rgba(255, 193, 7, 0.15);
     color: #b58105;
}

.estado-pill.aprobado {
     background: rgba(25, 135, 84, 0.15);
     color: #0f5132;
}

.estado-pill.rechazado {
     background: rgba(220, 53, 69, 0.15);
     color: #842029;
}

.empty-state {
     padding: 2.5rem 1rem;
     text-align: center;
     color: #6c757d;
     border: 1px dashed #d0d5dd;
     border-radius: 8px;
     background: #f8f9fa;
}

.filter-card {
     background: #ffffff;
     border: 1px solid #e9ecef;
     border-radius: 8px;
     padding: 1.5rem;
     margin-bottom: 1.5rem;
}

.filter-title {
     font-size: 0.95rem;
     font-weight: 600;
     color: #495057;
     margin-bottom: 1rem;
     padding-bottom: 0.5rem;
     border-bottom: 2px solid #e9ecef;
}

#calendarView {
     background: #ffffff;
}

/* Botones de acción para solicitudes */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.action-buttons .btn {
    padding: 0.375rem 0.75rem;
}

.btn-icon-only {
    padding: 0.375rem 0.5rem;
    min-width: 36px;
    background-color: transparent !important;
    transition: all 0.3s ease;
}

.btn-icon-only.btn-success {
    border: 2px solid #28a745;
    color: #28a745;
}

.btn-icon-only.btn-success:hover {
    background-color: #28a745 !important;
    color: white !important;
}

.btn-icon-only.btn-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
}

.btn-icon-only.btn-danger:hover {
    background-color: #dc3545 !important;
    color: white !important;
}

/* Animación de campanita de notificaciones */
@keyframes bellRing {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.notification-bell-ring {
    animation: bellRing 0.8s ease-in-out;
}

.notification-item-clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-item-clickable:hover {
    background-color: #f8f9fa !important;
}
