/* Para que el timepicker funcione bien en los modales */
.ui-timepicker-wrapper {
    z-index: 2000 !important;
}

.modal {
    text-align: center;
    padding: 0!important;
}
.modal #deleteButton {
    position: absolute;
    top: 33px;
    right: 60px;
    font-size: 16px;
    color: #9e9e9e;
    cursor: pointer;
}
.bottom-line {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 1rem;
}
.modal #deleteButton:hover, .modal #editButton:hover {
    color: #6e6e6e;
}

.modal #editButton {
    position: absolute;
    top: 33px;
    right: 90px;
    font-size: 16px;
    color: #9e9e9e;
    cursor: pointer;
}

.modal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px; /* Adjusts for spacing */
}
  
.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.normal-width-dialog {
    width: 380px;
}

.modal-content {
    padding: 15px 25px;
}

.modal-title {
    color: var(--main-color);
}

.modal-body {
    padding-top: 0px !important;
}

.modal-body .form-control-label { 
    padding: 0; 
    color: #767676; 
    margin-bottom: 3px;
    font-weight: 500;
}

.modal-body .right-button {
    position: absolute;
    bottom: 5px;
    right: 12px;
    line-height: 25px;
    font-size: 25px;
    font-weight: 100;
    color: #d0d0d0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.modal-body .right-button:hover {
    color: #767676;
    text-decoration: none;
}
.modal-body .right-button:focus {
    outline: none;
}

.modal-body .right-icon {
    position: absolute;
    bottom: 7px;
    right: 5px;
    color: #d0d0d0;
}

.form-col {
    padding-right: 0.7rem;
    padding-left: 0.7rem;
}

.row.form-col {
    margin-right: 0;
    margin-left: 0;
}

.modal-header .close {
    padding: 0 !important;
}

.modal-footer .form-actions {
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.modal-footer .two-buttons {
    margin-left: 7%;
}

.modal-footer .two-buttons button,
.modal-footer .two-buttons div {
    width: 45%;
}

.modal-footer .two-buttons-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.modal-footer .two-buttons-v2 button {
    width: auto !important;
    height: 36px;
    padding: 4px 16px !important;
}

.modal-footer .two-buttons button,
.modal-footer .two-buttons div {
    width: 45%;
}

.modal-footer .three-buttons {
    margin-left: 3%;
}

.modal-footer .form-actions.three-buttons button {
    width: 30% !important;
    margin: 0 0.5% !important;
}

.modal-footer .one-button {
    margin-left: 28%;
}

.modal-footer .one-button button {
    width: 60% !important;
}

.modal-footer .btn {
    width: 100%;
    font-weight: 400;
    height: 40px;
}

.modal-footer .three-buttons #initAppointmentButton {
    width: 33% !important;
    margin: initial;
}

.modal-footer .three-buttons #waitingRoomButton {
    width: 35% !important;
    margin: initial;
}

.modal-footer .three-buttons #notPresentedButton {
    width: 26% !important;
    margin: initial;
}

.my-edit-btn {
    border-radius: 19px !important;
    width: 38px;
}
.primary-rounded {
    background-color: var(--main-color) !important;
    color: #fff !important;
}
.primary-rounded:hover, .primary-rounded:focus {
    background-color: var(--main-color) !important;
}

.nav-link.active span.fa-info {
    color: #fff !important;
}

.medical-card-dialog .bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: initial;
}

.medical-card-dialog label.form-control-label {
    width: 100%;
}

.dropdown-menu {
    z-index: 2000 !important;;
}

.select2-container {
    z-index: 1701;
}

.modal-body .modal-badge-row {
    background: #eee;
    padding: 10px 30px 0px;
    margin-left: -45px;
}

.modal-large .modal-badge-row {
    width: 725px;
}

div#confirmationDialogUtil {
    z-index: 20000;
    background-color: rgba(0,0,0,0.5);
}

div#customDialog {
    z-index: 20000;
    background-color: rgba(0,0,0,0.5);
}

div#promptDialogUtil {
    z-index: 20000;
    background-color: rgba(0,0,0,0.5);
}

.select2-selection__rendered {
    text-align: left !important;
}

::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color: #d0d0d0 !important;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
   color: #d0d0d0 !important;
   opacity: 1;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
   color: #d0d0d0 !important;
   opacity: 1;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
   color: #d0d0d0 !important;
}
::-ms-input-placeholder { /* Microsoft Edge */
   color: #d0d0d0 !important;
}

::placeholder { /* Most modern browsers support this now. */
   color: #d0d0d0 !important;
}

.modal-extra-extra-extra-large {
    width: 1200px !important;
    max-width: 1200px !important;
}

@media (max-width: 1250px) {
    .modal-extra-extra-extra-large {
        width: 96% !important;
        max-width: 96% !important;
    }
}

@media (min-width: 1100px) {
    .modal-extra-extra-large {
        width: 1025px !important;
        max-width: 1025px !important;
    }
}

@media (min-width: 1100px) {
    .modal-extra-extra-large {
        width: 1025px !important;
        max-width: 1025px !important;
    }
}

@media (min-width: 900px) {
    .modal-extra-extra-large {
        width: 850px !important;
        max-width: 850px !important;
    }
    .modal-extra-large {
        width: 825px !important;
        max-width: 825px !important;
    }

    .modal-large {
        width: 725px !important;
        max-width: 725px !important;
    }

    .modal-footer .form-actions button {
        width: 42%;
    }

    .modal-footer .two-buttons button,
    .modal-footer .two-buttons div {
        width: 45%;
    }
}

@media (max-width: 930px) {
    .modal-dialog {
        max-width: 94% !important;
        margin: 3% !important;
    }
}

@media (min-width: 768px) and (max-width: 889px) {
    .modal-large {
        width: 725px !important;
        max-width: 725px !important;
    }

    .modal-footer .form-actions button {
        width: 50%;
    }
    .modal-footer .two-buttons button,
    .modal-footer .two-buttons div {
        width: 45%;
    }
}

@media (min-width: 550px) and (max-width: 767px) {
    .modal-footer .form-actions button {
        width: 70%;
    }
    .modal-footer .two-buttons button,
    .modal-footer .two-buttons div {
        width: 45%;
    }
}

@media (max-width:549px) {
    .modal-extra-extra-large,
    .modal-extra-large,
    .modal-large {
        max-width: 94% !important;
        margin: 3% !important;
    }
    .modal-content {
        padding: 10px;
    }
    .modal-header {
        padding: 2px 20px 8px 7px;
        min-height: 42px;
    }
    .modal-body {
        padding: 0px 5px 10px 5px;
    }
    .modal-footer .form-actions button {
        width: 70%;
    }
    .modal-footer .two-buttons,
    .modal-footer .three-buttons {
        margin-left: 0;
    }
    .modal-footer .form-actions.two-buttons button,
    .modal-footer .form-actions.three-buttons button {
        margin: 4px 0 !important;
        width: 100% !important;
    }
    .modal #editButton {
        top: 15px;
        right: 75px;
    }

    .modal-footer .three-buttons #initAppointmentButton,
    .modal-footer .three-buttons #waitingRoomButton,
    .modal-footer .three-buttons #notPresentedButton {
        margin: 4px 0 !important;
        width: 100% !important;
    }
}

@media (max-width:480px) {
    .modal-footer .one-button {
        margin-left: 0%;
    }
    .modal-footer .one-button button {
        width: 100% !important;
    }
    .modal #deleteButton {
        top: 15px;
        right: 45px;
    }
}

#attachmentImagePreviewContainer > .img-thumbnail {
    max-height: 100%;
}