html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
}

.main-container {
    max-width: 400px !important;
    margin: 0 auto !important;
}

h1,
.h1 {
    color: #0056b3;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #dc3545;
}

.validation-message {
    color: #dc3545;
    font-size: 0.875em;
}

.blazor-error-ui {
    background-color: #f7dddd;
    bottom: 0;
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.2);
    display: none !important; /* Evitar que JS lo muestre */
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* Oculta el modal de reconexión nativo para no bloquear la UI */
#components-reconnect-modal, .components-reconnect-show, .components-reconnect-hide {
    display: none !important;
}

.blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 100%;
    margin: 0 20px;
    max-width: 400px !important;
    margin: 0px auto !important;
}

.header-logo {
    width: 120px;
    margin-bottom: 20px;
}

.header-title {
    font-size: 1.2rem;
    color: rgb(5, 62, 124);
    font-weight: 700;
    vertical-align: middle !important;
    margin-top: 5%;
}

.appointment-container {
    display: flex;
    flex-direction: column;
    max-width: 400px !important;
    margin: 0 auto !important;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 6px;
}

.appointment-sidebar {
    flex: 1;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #222;
}

.appointment-sidebar img {
    width: 120px;
    margin-bottom: 20px;
}

.appointment-sidebar h2 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.appointment-sidebar h3 {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.appointment-sidebar p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.appointment-sidebar p span {
    margin-right: 10px;
}

.appointment-sidebar a {
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
}

.appointment-sidebar a:last-child {
    margin-left: 15px;
}

.appointment-form {
    flex: 1;
    padding: 12px;
    font-family: Arial, sans-serif;
}

.appointment-form h3 {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.calendar-header span {
    font-weight: 600;
}

.day-cell.not-in-month {
    color: #ccc;
    cursor: default;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 8px !important;
}

.time-slots-panel {
    flex: 0.8;
    padding: 20px;
    font-family: Arial, sans-serif;
    display: block !important;
    visibility: visible !important;
    min-height: 200px;
}

.time-zone {
    flex: 0.8;
    padding: 20px;
    font-family: Arial, sans-serif;
    display: block !important;
    visibility: visible !important;
}

/* Asegurar que el panel de franjas horarias siempre esté visible en dispositivos móviles */
@media (max-width: 768px) {
    .time-slots-panel {
        flex: 1;
        border-left: none;
        border-top: 1px solid #eee;
        padding: 15px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .time-zone {
        flex: 1;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 15px;
        padding-bottom:15px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.time-slot-button.selected {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.doctor-card.selected {
    border-color: #007bff !important;
    box-shadow: 0 0 0 2px #007bff, 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    background-color: #e6f2ff !important;
}

.procedure-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.procedure-popup {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.procedure-popup h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.procedure-popup input.form-control {
    margin-bottom: 10px;
}

/* Vista previa en miniatura ligera para imágenes para evitar un renderizado en línea pesado */
.thumbnail-preview {
    max-width: 100%;
    height: auto;
    max-height: 140px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    object-fit: cover;
}

.procedure-popup ul {
    padding-left: 0;
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}

.procedure-popup ul li {
    padding: 5px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.procedure-popup ul li:hover {
    background-color: #f0f0f0;
}

.procedure-popup button.btn-secondary {
    margin-top: 10px;
}

/* Estilos del popup de resultados de búsqueda */
.search-result-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.search-result-popup {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: fadeInScale 0.3s ease-out;
}

/* Estilos del modal de crear paciente */
.create-patient-modal {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    animation: fadeInScale 0.3s ease-out;
}

.create-patient-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}

.create-patient-modal .modal-footer {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.search-result-popup .popup-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-popup .popup-header h4 {
    margin: 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.search-result-popup .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.search-result-popup .btn-close:hover {
    background-color: #e9ecef;
    color: #495057;
}

.search-result-popup .popup-body {
    padding: 20px;
}

.search-result-popup .popup-body .alert {
    margin-bottom: 0;
    border-radius: 6px;
    padding: 15px;
}

.search-result-popup .popup-body .alert.alert-success {
    background-color: #d1edff;
    border-color: #b8daff;
    color: #004085;
}

.search-result-popup .popup-body .alert.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.search-result-popup .popup-body .alert.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.search-result-popup .popup-footer {
    background-color: #f8f9fa;
    padding: 0px 20px 15px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
}

.search-result-popup .popup-footer .btn {
    min-width: 80px;
    font-weight: 500;
}

.search-result-popup .d-flex.align-items-center svg {
    flex-shrink: 0;
}

.search-result-popup .text-muted {
    font-size: 1.1rem;
    margin-top: 5px;
}

.no-slots {
    text-align: center;
    color: #666;
}

select {
    appearance: none;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 4px;
}

select:focus {
    outline: none;
    /* border-color: #6699ff;
    box-shadow: 0 0 5px rgba(102, 153, 255, 0.6); */
}

.file-upload-button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    user-select: none;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

.file-upload-button:hover {
    background-color: #0056b3;
}

.uploaded-file-info {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #333;
    max-width: 300px;
    word-wrap: break-word;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 480px) {
    .file-upload-button {
        font-size: 0.8rem;
        padding: 12px 16px;
        max-width: 100%;
    }

    .uploaded-file-info {
        max-width: 100%;
        font-size: 0.85rem;
    }
}

.appointment-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-align: center
}

.form-group {
    margin-bottom: 5px
}

.specialty-select,
.doctor-search-input,
.doctor-select,
.procedure-input {
    background-color: #fcfcfc;
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px
}


.doctor-select option {
    background-color: #FFFFFF;
    color: #333;
}

.doctor-search-input {
    padding-right: 30px;
    position: relative
}

.doctor-search-icon {
    position: absolute;
    right: 10px;
    top: 30px;
    pointer-events: none;
    color: #888
}

.medical-order-label {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
    margin-left: 4px !important
}

.file-upload-input {
    display: none
}

.form-actions {
    display: flex;
    gap: 10px
}

.back-button {
    flex: 1;
    background-color: #515c6e;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease
}

.back-button:hover {
    background-color: rgb(109, 113, 117)
}

.submit-button {
    flex: 1;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease
}

.submit-button:hover {
    background-color: #0056b3
}

.time-appointment-container {
    display: flex;
    flex-direction: column;
    max-width: 400px !important;
    margin: 0 auto !important;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    padding: 10px;
}

.time-appointment-form {
    flex: 1.5;
    padding: 6px;
}

.time-appointment-title {
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 2px;
}

.calendar-container {
    margin: 10px;
    margin-bottom: 6px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1px;
}

.calendar-nav-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.calendar-month-year {
    font-weight: 600;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.day-cell {
    padding: 5px;
    border-radius: 6%;
    cursor: pointer;
    font-weight: 600;
}

.day-cell.selected {
    background-color: #007bff;
    color: #fff;
}

.day-cell.other-month {
    color: #FFFFFF;
    color:gray;
}

.day-cell.disabled {
    color: #ccc;
    cursor: default;
}

.timezone-selector {
    margin-top: 20px;
}

.timezone-label {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.timezone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
}

.timezone-icon {
    margin-right: 10px;
}

.timezone-select {
    flex: 1;
    border: none;
    outline: none;
}

.action-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.time-slots-header {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.time-slots-container {
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
}

.time-slot-button {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    cursor: pointer;
}

.summary-appointment-sidebar {
    display: flex;
    flex-direction: column;
    max-width: 400px !important;
    margin: 0 auto !important;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #222;
    justify-content: space-between;
    height: 100%;
}

.summary-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-align: center;
}

.summary-paragraph {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
    text-transform: capitalize !important;
}

.summary-paragraph-schedule {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
    background-color: #f6faeb !important;
    border-radius: 4px;
    padding: 6px 2px;
    text-transform: capitalize !important;
}

.summary-procedures-container {
    margin: 10px 0;
}

.summary-procedures-label {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.summary-procedures-list {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.summary-procedures-table {
    width: 100%;
    font-size: 0.85rem;
}

.summary-procedures-row {
    border-bottom: 1px solid #eee;
}

.summary-procedures-cell {
    padding: 6px 0;
}

.summary-procedures-quantity {
    padding: 6px 0;
    text-align: right;
    width: 50px;
}

.summary-procedures-quantity-badge {
    background-color: #e6f7ff;
    color: #0077cc;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.8rem;
}

.summary-attachment-container {
    margin: 10px 0;
}

.summary-attachment-label {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.summary-message {
    margin-top: 20px;
    padding: 15px;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    background: #f0f8ff;
    border-left: 5px solid #2196f3;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.time-slot-button.occupied {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

.time-slot-button.selected {
    background-color: #007bff;
    color: #fff;
}

.check-icon {
    margin-left: 8px;
}

.no-slots-message {
    text-align: center;
    color: #666;
}

.user-data-container {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 6px;
}

.user-data-form {
    flex: 1;
    padding: 6px;
    font-family: Arial, sans-serif;
}

.form-group-document {
    margin-bottom: 15px;
}

.document-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.document-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.document-number-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 1.0rem !important;
}

.search-button-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.user-data-label {
    font-weight: 600;
    text-align: left !important;
    font-size: 0.9rem;
    margin-left: 4px !important;
    line-height: 1.5 !important;
    margin: 8px auto;
}

.user-data-display {
    background-color: #e6f2ff;
    width: 100%;
    padding: 6px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.8rem;
}

.service-buttons-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.service-button-primary {
    background-color: #007bff;
    border: none;
    padding: 6px 3px !important;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.service-button-primary:hover {
    background-color: #0056b3;
    border: none;
    padding: 6px 3px !important;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.service-button-secondary {
    background-color: #048d38;
    border: none;
    padding: 8px 4px !important;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.service-button-secondary:hover {
    background-color: #135b08
}

.footer-message {
    margin-top: 10px !important;
    padding: 15px 20px !important;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #d1fae5 !important;
    border-left: 6px solid #10b981 !important;
    color: #064e3b;
}

.footer-message-blue {
    margin-top: 6px !important;
    padding-top: 8px;
    padding-left: 30px !important;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #dbeafe !important;
    border-left: 6px solid #3b82f6 !important;
    color: #1e3a8a !important;
}

.active {
    background-color: #046cdb;
    color: #fff;
    max-height: 25px !important;
}

.inactive {
    background-color: #666666 !important;
    color: #fff;
    line-height: 1.5;
    min-height: 25px !important;
}

.alert-danger {
    background-color: #f7e8ea;
    color: #302727;
    padding: 10px;
    border-radius: 4px;
}

.alert-info {
    background-color: #edf2f7;
    color: #131212;
    border-radius: 4px;
}

.alert-success {
    background-color: #dde4ee;
    color: #043319;
    border-radius: 4px;
}

/* Documentos Adjuntos */
.documento-adjunto-container {
    display: grid;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 8px;
    background-color: #f9f9f9;
}

.documento-info {
    display: flex;
    align-items: center;
}

.documento-icon {
    margin-right: 8px;
    color: #666;
}

.documento-nombre {
    font-size: 0.9rem;
    color: #333;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    word-wrap: normal;
}

.success-container-div {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-width: 400px !important;
    margin: 0 auto !important;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Ha ocurrido un error.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

/* Estilos del indicador de carga */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #666;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.day-cell {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 0px;
}

.day-cell:hover:not(:disabled) {
    background-color: #f0f0f0;
}

.day-cell.selected {
    background-color: #2196f3;
    color: white;
}

.day-cell.other-month {
    color: gray;
}

.day-cell:disabled,
.day-cell.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: transparent;
}

.day-cell:disabled:hover,
.day-cell.disabled:hover {
    background-color: transparent;
}

/* Estilos de celdas de día según disponibilidad */
.day-cell.available {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.day-cell.available:hover:not(:disabled) {
    background-color: #c3e6cb;
}

.day-cell.unavailable {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.day-cell.unavailable:hover:not(:disabled) {
    background-color: #f5c6cb;
}

    .day-cell.loading {
        background-color: #FFFFFF /*#fff3cd*/;
        border-left: 1px solid #EAEAEA /*#ffeaa7*/;
        border-top: 1px solid #EAEAEA /*#ffeaa7*/;
        color: #6c757d;
        position: relative;
    }

.day-cell.loading:hover:not(:disabled) {
    background-color: #ffeaa7;
}

/* PÁGINA DE USUARIO */
        .day-cell.selected.available, .day-cell.selected.unavailable, .day-cell.selected.loading {
    background-color: #2196f3 !important;
    color: white !important;
    border: 1px solid #1976d2 !important;
}

.specialty-group-select {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.specialty-group-select>option {
    font-size: 1rem;
    border-color: #80bdff;
    max-width: 300px !important;
    word-wrap: break-word;
}

.programa-pyp-select {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.programa-pyp-select>option {
    font-size: 1rem;
    border-color: #80bdff;
    max-width: 300px !important;
    word-wrap: break-word;
}

.consulta-container {
    display: flex;
    flex-direction: column;
    max-width: 400px !important;
    margin: 0 auto !important;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 6px;
    font-family: Arial, sans-serif;
}

.consulta-form {
    flex: 1;
    padding: 12px;
}

.consulta-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-align: center;
    color: #0056b3;
}

.form-group-document {
    margin-bottom: 15px;
}

.document-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.refresh-search-button {
    padding: 10px 10px !important;
    border-radius: 3px;
    font-weight: 200;
    background-color: #048d38;
    color: white;
    border: none;
    width: 100%;
    cursor: pointer;
    margin-top: -2px;
    margin-bottom: 6px;
}

.refresh-search-button:hover {
    background-color: #045021;
}

.search-button {
    padding: 10px 10px !important;
    border-radius: 3px;
    font-weight: 200;
    background-color: #007bff;
    color: white;
    border: none;
    width: 100%;
    cursor: pointer;
    margin-top: -2px;
    margin-bottom: 6px;
}

.search-button:hover {
    background-color: #0056b3;
}

.user-data-label {
    font-weight: 600;
    text-align: left !important;
    font-size: 0.9rem;
    margin-left: 4px !important;
    line-height: 1.5 !important;
    margin: 8px auto;
}

.cita-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: -10px 10px 10px 10px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cita-header {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    margin: -15px -15px 15px -15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cita-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.cita-estado {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.cita-details {
    margin-top: 10px;
}

.cita-details p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #495057;
}

.cita-details strong {
    color: #212529;
}

.procedimientos-section,
.adjuntos-section,
.attachments-section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.section-title {
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.procedimiento-item,
.adjunto-item,
.attachment-item {
    background-color: #e6f2ff;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #495057;
}

.no-data {
    color: #6c757d;
    font-style: italic;
    font-size: 0.85rem;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.border-start {
    border-left-width: 4px !important;
}

.card {
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.text-primary {
    color: #0d6efd !important;
}

.text-success {
    color: #198754 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-secondary {
    color: #6c757d !important;
}

.copyright {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #666;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 1rem;
}

.info-display-container {
    margin-top: 0px;
    padding: 15px;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    background: #f0f8ff;
    border-left: 5px solid #2196f3;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-display-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Tamaños opcionales más grandes para los íconos de InfoDisplay */
.info-display-icon-lg {
    width: 32px;
    height: 32px;
}

/* Asegurar que el tamaño grande también se aplique cuando el contenedor usa el modo icon-only */
.info-display-icon-only .info-display-icon.info-display-icon-lg {
    width: 32px;
    height: 32px;
}
.info-display-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #0056b3;
    margin-bottom: 8px;
}

.info-display-content {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 10px;
    line-height: 1.4;
}

.info-display-items {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

@media (max-width: 768px) {
    .copyright {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* PAGINA DE CREAR PACIENTE */

/* Estilos de navegación móvil */
.mobile-navigation {
    padding: 0.5rem 0;
}

.mobile-navigation .row {
    align-items: center;
    margin: 0;
}

.mobile-nav-btn {
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.mobile-nav-btn:active {
    transform: scale(0.98);
}

.mobile-nav-btn i {
    font-size: 1.1rem;
}

/* Estilos de barra de progreso móvil */

.mobile-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.mobile-current-step {
    font-weight: 600;
    color: #007bff;
}

.mobile-step-title {
    color: #6c757d;
    font-weight: 500;
}

/* Contenedor del asistente - optimizado para móvil */
.wizard-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0.5rem;
}

.wizard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: center;
}

.wizard-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
}

.wizard-progress {
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Pasos de progreso en escritorio */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
}

    .progress-steps::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        /**/ background: #e9ecef;
        z-index: 1;
        transform: translateY(-50%);
    }

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    border-radius: 50%;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #e9ecef;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.step.active .step-number {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: scale(1.1);
}

.step.active {
    width: 35px;
    height: 35px;
}

.step.completed .step-number {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.step.active .step-label {
    color: #007bff;
    font-weight: 600;
}

.step.completed .step-label {
    color: #28a745;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 0.5rem;
    position: relative;
    z-index: 2;
    transition: background 0.3s ease;
}

.step-connector.completed {
    background: #28a745;
}

/* Contenido del asistente - optimizado para móvil */
.wizard-content {
    padding: 1rem;
    min-height: 70px;
}

.step-content {
    animation: fadeIn 0.3s ease-in-out;
}

.wizard-navigation {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.wizard-navigation .btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wizard-navigation .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Estilos de formulario - optimizado para móvil */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.6rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
}

.form-check {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-top: 0.2rem;
}

.form-check-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

/* Estilos de alerta */
.alert {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.9rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.spinner-border-sm {
    width: 0.9rem;
    height: 0.9rem;
    margin-right: 0.3rem;
}

.step-title {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Estilos responsivos móviles */
@media (max-width: 768px) {
    .wizard-container {
        margin: 0.25rem;
        border-radius: 6px;
    }

    .wizard-header {
        padding: 0.75rem;
    }

    .wizard-header h3 {
        font-size: 1.1rem;
    }

    .wizard-progress {
        padding: 0.75rem;
    }

    .wizard-content {
        padding: 0.75rem;
        min-height: 100px;
    }

    .wizard-navigation {
        padding: 0.5rem 0.75rem;
    }

    .wizard-navigation .d-flex {
        flex-direction: column;
        gap: 0.375rem;
        align-items: stretch;
    }

    .wizard-navigation .btn {
        width: 100%;
        min-width: auto;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .step-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .row .col-md-6 {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .wizard-container {
        margin: 0.125rem;
        border-radius: 4px;
    }

    .wizard-header {
        padding: 0.5rem;
    }

    .wizard-header h3 {
        font-size: 1rem;
    }

    .wizard-progress {
        padding: 0.5rem;
    }

    .wizard-content {
        padding: 0.5rem;
        min-height: 70px;
    }

    .wizard-navigation {
        padding: 0.25rem 0.5rem;
    }

    .wizard-navigation .d-flex {
        gap: 0.25rem;
        align-items: stretch;
    }

    .form-group {
        margin-bottom: 0.5rem;
    }

    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .form-control,
    .form-select {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .step-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .alert {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.otp-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}
.info-display-icon-only {
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex;
    align-items: flex-start;
}

.info-display-icon-only .info-display-icon {
    margin-right: 8px;
    width: 22px;
    height: 22px;
}

.otp-ttl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ttl-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #666;
  padding: 0 4px;
}

.ttl-info-button:focus {
  outline: 2px solid #80bdff;
  outline-offset: 2px;
}

.otp-ttl .ttl-info-button i {
  color: #28a745 !important;
}

.message-success {
  color: #28a745;
}

.message-error {
  color: #dc3545;
}

.ttl-popover-container {
  position: relative;
}

.ttl-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 10px;
  width: min(320px, 90vw);
  z-index: 1000;
}

.ttl-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-weight: 600;
}

.ttl-popover-close {
  background: transparent;
  border: none;
  color: #666;
}

.ttl-popover-body {
  color: #555;
  font-size: 0.95rem;
}

.ttl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: 900;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Selección genérica para filas en modales de búsqueda (tablas de selección) */
.selected-row {
  font-weight: 600;
  background-color: #e6f7ff;
}

/* Requerido asterisco para campos obligatorios */
.required-asterisk {
  color: #d93025; /* rojo vibrante */
  font-weight: 700;
  margin-left: 4px;
}

/* Progreso del asistente (escritorio) */   
.wizard-progress {
  border-radius: 8px;
  padding: 2px 6px;
}

.wizard-progress .progress-steps {
  display: flex;
  align-items: center;
  gap: 2px;
}

.wizard-progress .step {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-progress .step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #dee2e6; 
  color: #6c757d; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background-color: #ffffff;
}

.wizard-progress .step.active .step-number,
.wizard-progress .step.completed .step-number {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
}

.wizard-progress .step-connector {
  flex: 1 1 auto;
  height: 2px;
  background-color: #dee2e6;
  border-radius: 2px;
}

.wizard-progress .step-connector.completed {
  background-color: #0d6efd;
}

/* Progreso del asistente (móvil) */
.mobile-progress-bar {
  position: relative;
  border-radius: 8px;
  margin: 18px 6px 8px 6px;
  overflow: visible;
  height: 54px !important;
}

.mobile-progress-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 8px;
  background-color: #0d6efd;
  border-radius: 8px;
}

.mobile-step-circles {
  position: absolute;
  left: 0;
  top: 8px; 
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.mobile-step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #dee2e6;
  color: #6c757d;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}

.mobile-step-circle.active,
.mobile-step-circle.completed {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
}

.mobile-step-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -14px !important;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    border-radius: 8px;
    background-color: #cdddec;
    padding: 8px 12px;
}