* {
    margin: 0;
    padding: 0;
}
html{
    height: 100%;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh; /* Занимает 100% высоты экрана */
    width: 100vw;
}
.jquery-accordion-menu a {
    display: flex;
    padding: 10px; /* Отступы для удобства */
    color: #333; /* Цвет текста */
    text-decoration: none; /* Убираем подчеркивание */
}

.jquery-accordion-menu a:hover {
    background-color: #f0f0f0; /* Цвет фона при наведении */
}
/* Стили для мобильных устройств (ширина меньше 600px) */
@media (max-width: 600px) {
    body {

    }
}

/* Стили для планшетов (ширина от 601px до 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
    body {

    }
}

.hidden{
    display: none !important;
}

.main-footer {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    color: #869099;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width:100%;
}

/* Стили для десктопов (ширина больше 1024px) */
@media (min-width: 1025px) {
    body {

    }
}

@media (max-width: 1100px) {
    .main-footer {

        bottom: 0 !important;
    }
}

.fa-edit{
    margin-left: 5px;
    color: green;
}

.fa-trash{
    color: orange;
}

#preloader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


@media (max-width: 1800px) {
    table {
        font-size: 0.68rem !important;
        width: 77vw !important;
    }
    td div {
        font-size: 9px !important;
    }

    .button{
        font-size: 9px !important;
    }
}
table {
    font-size: 14px;
}


.toast {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    position: fixed !important;
}



.form-select {
    border: 2px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.form-select:focus {
    border-color: #ffcc00; /* Цвет рамки при фокусе */
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.7); /* Светящаяся тень */
}

.form-select:hover {
    box-shadow: 0 0 15px rgba(255, 204, 0, 1); /* Яркая тень при наведении */
}

/* Анимация мигания */
@keyframes blink {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 204, 0, 0);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 204, 0, 1);
    }
}

.blink {
    animation: blink 1s infinite; /* Анимация мигания */
}

#contextMenu a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #212529;
}

#contextMenu a:hover {
    background-color: #f1f1f1;
}

#contextMenuDispancer a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #212529;
}

#contextMenuDispancer a:hover {
    background-color: #f1f1f1;
}

.btn-new {
    background-color: #007AFF;
    border: none;
    color: white;
    padding: 10px 28px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 0px 2px;
    cursor: pointer;
    border-radius: 30px;
}

.modal-child {
    display: none; /* Скрываем модальное окно по умолчанию */
    position: fixed; /* Открывается поверх всего */
    z-index: 1; /* На переднем плане */
    left: 0;
    top: 0;
    width: 100%; /* Полная ширина */
    height: 100%; /* Полная высота */
    overflow: auto; /* Если необходимо, добавляем прокрутку */
    background-color: rgb(0, 0, 0); /* Черный фон */
    background-color: rgba(0, 0, 0, 0.4); /* Полупрозрачный фон */
    font-size: 18px;
}

.modal-content-child {
    background-color: #fefefe;
    margin: 5% auto; /* Центрируем модальное окно */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Ширина модального окна */
    display: block;
}

.modal-child .firstColumn{
    width: 40%;
    text-align: left;
    padding-right: 10px;
}
.modal-child .secondColumn{
    display: inline-flex;
    width: 100%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    align-content: center;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 300px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Позиция подсказки */
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 16px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
.tooltip img{
    width: 30px;
}
.additional-fields {
    margin-top: 15px;
}
#dateModal, #addPregnancyModal{
display: flex;
justify-content: center;
align-items: center;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
    background-color: rgb(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

#deleteModal{
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    text-align: center;
}
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.hidden {
    display: none;
}

.close {
    cursor: pointer;
    float: right;
}
input, select {
    width: 100%; /* Занимает всю ширину родительского элемента */
    padding: 10px; /* Внутренние отступы */
    border: 1px solid #ccc; /* Цвет рамки */
    border-radius: 5px; /* Закругленные углы */
    font-size: 14px; /* Размер шрифта */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Тень */
    transition: border-color 0.3s, box-shadow 0.3s; /* Плавный переход */
}

/* Стили при фокусе */
input:focus, select:focus {
    border-color: #b5c7bf; /* Цвет рамки при фокусе */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Тень при фокусе */
    outline: none; /* Убираем стандартное обрамление при фокусе */
}

/* Стили для input с типом date */
input[type="date"] {
    padding: 10px; /* Внутренние отступы */
}

/* Стили для input с типом number */
input[type="number"] {
    -moz-appearance: textfield; /* Убираем стрелки в Firefox */
}

/* Убираем стрелки в input[type=number] */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
select {
    -moz-appearance: none; /* Убираем стандартный стиль в Firefox */
    -webkit-appearance: none; /* Убираем стандартный стиль в Chrome/Safari */
    appearance: none; /* Убираем стандартный стиль в современных браузерах */
}
.modal-diagnoz-date, .modal-pregnancy, .modal-delete-pacient{
    width: 30%;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.15);
}
.stroka {
    display: flex;
    padding: 10px;
}

#jquery-accordion-menu {
    position: relative;
    height: 100vh;
    overflow: auto;
}

.menu-footer {
    position: absolute;
    bottom: 0%;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}


.footer-image {
    max-width: 90%;        /* Занимает до 90% ширины контейнера */
    width: 250px;          /* Базовая ширина */
    height: auto;          /* Сохраняет пропорции */
    transition: width 0.3s ease; /* Плавное изменение при ресайзе */
    border-radius: 8px;    /* Опционально: скругление углов */
}

/* Адаптация под маленькие экраны */
@media (max-width: 768px) {
    .footer-image {
        width: 180px;
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .footer-image {
        width: 140px;
        max-width: 70%;
    }
}

@media (max-height: 600px) {
    .menu-footer {
        bottom: 10px; /* На очень маленьких экранах меньше отступ снизу */
    }
}
#childTable .fileWordBreak{
    word-break: break-all;
}
#rodyForm{
    border: 1px solid;
    padding: 5px;
    margin-bottom: 30px;
    border-radius: 10px;
    padding: 35px;
}
#rodyForm .firstColumn {
    width: 40%!important;
    margin-top: auto;
    margin-bottom: auto;
}
#rodyForm .stroka .secondColumn {
    width: 60%!important;
}
#rodyForm #infoZabolMkb div{
    cursor: pointer;
}
.infoAboutPregnancy, .infoAboutPregnancy input, .infoAboutPregnancy textarea, .infoAboutPregnancy .typesPregnancy {
    margin-bottom: 10px;
    width: 100%;
}
.infoAboutPregnancy textarea{
    padding: 5px;
    font-size: 16px;
}
.infoAboutPregnancy {
    padding: 10px;
    margin-bottom: 0px;
}
.accordion {
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 10px 0;
}

.accordion-item {
    border-bottom: 1px solid #ccc;
}

.accordion-header {
    padding: 10px;
    cursor: pointer;
    background-color: #f1f1f1;
    font-weight: bold;
}

.accordion-content {
    display: none;
    padding: 10px;
    background-color: white;
}

.active {
    background-color: #ccc;
}

#diagLechForm{
    border: 1px solid;
    padding: 35px;
    margin-bottom: 30px;
    border-radius: 10px;
}
#diagLechForm .firstColumn {
    width: 40%!important;
    margin-top: auto;
    margin-bottom: auto;
}
#diagLechForm .stroka .secondColumn {
    width: 65%!important;
}

#divStagesTreatment  {
    display: inline-flex;
}

#divStagesTreatment .tooltip .tooltiptext {
    visibility: hidden;
    width: 300px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Позиция подсказки */
    left: 40%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 16px;
}

#divStagesTreatment .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
#selectedMKB{
    border-radius: 10px;
}

 .btn-small {
     font-size: 12px;
     padding: 5px 10px;
     background-color: #007AFF;
     color: white;
     border: none;
     border-radius: 4px;
     cursor: pointer;
 }

.btn-small:hover {
    background-color: #218838;
}

.date-input {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: auto;
    display: inline-block;
}

.modal-dispancer {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    font-size: 18px;
}

.modal-dispancer .firstColumn{
    width: 40%;
    text-align: left;
    padding-right: 10px;
    align-content: center;
}
.modal-dispancer .secondColumn{
    width: 100%;
}

#markPhysical{
    display: flex;
}
td, th, button, input, select, footer, h3,h4, div, label, span {
    font-family: "Mulish", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}
#childTable_info, #childTable_length{
    font-size: 16px;
}
#childTable_wrapper .row .col-md-5{
    display: flex;
}
#childTable_length label{
    display: flex;
}
#childTable_info{
    margin-top: auto;
    margin-bottom: 14px;
    padding-left: 30px;
}
#childTable_length{
    margin-top: auto;
    margin-bottom: 10px;
    padding-left: 10px;
}
#childTable_previous, #childTable_next{
    font-size: 25px;
    font-weight: 600;
}
#childTable_length label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.dataTables_wrapper .bottom-row {
    background-color: #F3F3F3;;
}
table.dataTable thead th, table.dataTable tfoot th {
    font-weight: 500!important;
}

.tabs {
    width: 100%;
}

.tab-headers {
    display: flex;
    background-color: #EFEFED;
    width: 55%;
    border-radius: 40px;
    padding: 10px 10px;
}

.tab-header {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-right: 10px;
    border-radius: 30px;
}

.tab-header:hover {
    background-color: #e6e6e5;
    box-shadow: 10px 5px 5px #d7d7d5;
}

.tab-header.active {
    background-color: #000;
    color: #fff;
    border-radius: 30px;
}

.tab-content {
    padding: 20px 0px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
    background-color: #f9f9f9;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.pacient-content{
    border-radius: 30px;
    margin-right: 20px;
    background-color: #fff;
    padding: 10px 20px;
    margin-top: 20px;
}
.pacient-header{
    font-weight: 600;
    font-size: 16px;
    color: #000000;
}
.pacient-podheader{
    font-weight: 600;
    font-size: 15px;
    color: #000000;
}
.edit-btn-pacient{
    margin-left: auto;
    text-decoration: underline;
    color: #007AFF;
    cursor: pointer;
}
.pacient-dop-info{
    color: #00000080;
    font-size: 14px;
    font-weight: 500;
}
.dop-info{
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    margin-left: auto;
}
.alert-danger{
    background-color: #C3002A;
    border: none;
    color:#fff;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 14px;
}
.edit-pacient-dop-info{
    font-size: 10px;
    margin-bottom: 0px;
    margin-left: 15px;
}
.dop-info-input{
    border-radius: 10px;
    font-size: 14px;
}
#diagnosistList {
    margin-top: 10px;
    margin-left: 10px;
    height: 150px;
    width: 95%;
    overflow: auto;
    text-align: left;
}
.dop-info-input[type="date"] {
    position: relative;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    width: 100%;
}

/* Убираем стандартную иконку в некоторых браузерах */
.dop-info-input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.flatpickr-wrapper {
    display: block!important;
}
.flatpickr-input{

}
.flatpickr-calendar.animate{
    width: 350px;
    padding: 25px;
    border-radius: 20px;
}
.flatpickr-prev-month, .flatpickr-next-month{
    padding: 30px!important;
    font-size: 35px;
}
.flatpickr-day.selected{
    background-color: #007AFF!important;
}
.flatpickr-input.active{
    background-color: #fff;
    border-color: #007AFF;
}
.dayContainer{
    display: grid!important;
    grid-template-columns: repeat(7, 1fr)!important;
    gap: 8px!important;
}
.flatpickr-day {
    max-width: 23px!important;
    height: 23px!important;
    width: 100%!important;
    border-radius: 20px!important;
    line-height: 20px!important;
}
.tab-content.active{
    background-color: #f9f9f9!important;
}
.tab-navigation{
    display: flex;
    width: 55%;
    border-radius: 40px;
    padding: 0px 0px;
}
.tab-button {
    padding: 12px 24px;
    background-color: rgba(0, 0, 0, 0.1);
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-right: 10px;
    border-radius: 30px;
    color:rgba(0, 0, 0, 0.5);
}
.tab-button.active{
    background-color: #000;
    color: #fff;
    border-radius: 30px;
}
.dispanserTabDiv{
    border-radius: 20px;
    border:1px solid rgba(0, 0, 0, 0.1);
    padding: 20px;
}
.tab-content-disp {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content-disp.active {
    display: block;
    opacity: 1;
    background-color: #f9f9f9!important;
}
#emptyHistory, #addPregnancy{
    margin-top: 20px;
}
.hidden-tab{
    display: none!important;
}



/*----------------ФИЛЬТРЫ таблицы-----------------*/



.filter-item {
    display: flex;
    align-items: center;
    background: #EFEFED;
    height: 32px;
    border-radius: 40px;
    padding: 4px 8px;
    font-size: 14px;
    white-space: nowrap;
    position: relative;
}

.filter-icon {
    margin-right: 4px;
    font-size: 14px;
}

.filter-label {
    margin-right: 8px;
    color: #000;
    font-weight: 500;
    font-size: 12px;
    margin-right: 15px;
}

.filter-value {
    background: #007AFF26;
    border: 1px solid #007AFF;
    border-radius: 2px;
    padding: 2px 6px;
    font-size: 10px;
    text-align: center;
    width: 75px;
    color: #007AFF;
    font-weight: 700;
}

.clear-btn,
.dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
    color: #777;
    border-radius: 3px;
}

.clear-btn:hover,
.dropdown-btn:hover {
    background: #bcbcbc;
}


.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 8px;
    min-width: 120px;
}

.dropdown-menu select,
.dropdown-menu input {
    width: 100%;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

.dropdown-menu .date-picker {
    width: 100%;
    padding: 4px;
    font-size: 14px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;

    border-radius: 6px;
    font-family: Arial, sans-serif;
}


.filter-group {
    display: none;
    flex: 1;
    min-width: 0;
    gap: 20px;
}


.toggle-filters-btn {
    flex-shrink: 0;
    background: none;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 16px;
    margin-left: auto;
}

.toggle-filters-btn:hover {
    background: #eee;
}
.tab-content-disp {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content-disp.active {
    display: block;
    opacity: 1;
    background-color: #f9f9f9!important;
}
#emptyHistory, #addPregnancy{
    margin-top: 20px;
}
.hidden-tab{
    display: none!important;
}
#diagnosistListMother, #diagnosistList{
    margin-top: 5px;
    height: 200px;
    overflow-y: auto;
    border: 1px solid rgb(204, 204, 204);
    background-color: rgb(255, 255, 255);
    padding: 10px;
    font-size: 14px;
    display: block;
}
