:root {
    --header-title-font-size: 18px;
    --nav-item-font-size: 13px;
    --nav-lang-font-size: 14px;
    --header-font-size: 28px;
    --card-title-font-size: 20px;
    --breadcrumb-item-size: 15px;
    --form-title-font-size: 22px;
    --option-size: 16px;

    --main-color: #0d2d62;
    --light-color: rgb(255, 255, 255);
    --dark-color: rgb(0, 0, 0);
    --breadcrumb-color: rgb(5, 78, 187);
    --breadcrumb-item-color: #808080;
    --col: #001f3f;
}

.custom-container {
    padding: 20px;
    margin-top: 32px;
    border-radius: 8px;
    max-width: 650px;
    box-shadow:
            rgba(0, 0, 0, 0.1) 0 2px 1px -1px,
            rgba(0, 0, 0, 0.2) 0 1px 1px 0,
            rgba(0, 0, 0, 0.18) 0 1px 3px 0;
}

.custom-typography {
    margin: 0;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    line-height: 1.167;
    font-size: var(--form-title-font-size);
}

.custom-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.custom-input {
    width: 100%;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.custom-input:focus {
    border-color: rgba(25, 118, 210, 0.8);
    box-shadow: 0 0 4px rgba(25, 118, 210, 0.4);
    outline: none;
}

.custom-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
    font-weight: 300;
}

[id^="date-icon"] {
    background-color: var(--light-color);
}

[id^="date-icon"] svg {
    fill: rgb(102, 102, 102);
}

.btn-custom-close {
    padding: 5px;
    background-color: rgb(248, 248, 248);
    box-shadow: none;
}

.btn-custom-close:hover {
    background-color: rgb(248, 248, 248);
}

.btn-custom-close svg {
    fill: rgb(102, 102, 102);
}

.form-control:focus {
    box-shadow: none;
}

.input-group .form-control {
    border: none;
}

.input-group-text {
    border: none;
}

.input-group {
    border-bottom: 1px solid rgba(0, 0, 0, 0.23);
}

[id^="form"].invalid {
    border-bottom: 1px solid red;
}

.input-group.invalid {
    border-color: red;
}

/*------------------------Основные стили чекбокса----------------------------*/
.custom-checkbox input {
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid gray;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: 0.2s all;
}

.custom-checkbox input:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.custom-checkbox input:checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-checkbox label {
    margin-left: 8px;
    cursor: pointer;
    font-size: 16px;
}

.custom-checkbox input:hover {
    border-color: #0056b3;
}

.custom-checkbox input:checked:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
/*--------------------Select with search-------------------------*/
.wrapper {
    width: 100%;
}

/* Стили для модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 7px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 400px;
    position: relative;
    z-index: 1001;
}

.modal-overlay.active ~ .wrapper .select-btn input {
    position: relative;
    z-index: -1;
}

.search {
    position: relative;
    margin-top: 20px;
}

.search i {
    position: absolute;
    top: 65%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 20px;
    color: #999;
}

.search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    font-size: var(--option-size);
    border: 1px solid #B3B3B3;
    border-radius: 5px;
}

.options {
    margin-top: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 7px;
}

.options li {
    list-style: none;
    min-height: 50px;
    padding: 10px 13px;
    font-size: var(--option-size);
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: flex;
    align-items: center;
}


.options li:hover, li.selected {
    background: #f2f2f2;
    border-radius: 5px;
}


/*-------------------------------------------------------*/

.sublabel {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: gray
}

.col {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
}


@media (max-width: 900px) {
    .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/*------------------------------------------------------*/

.document-list {
    padding: 0;
    margin: 0;
}

.document-item {
    padding: var(--nav-lang-font-size);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.document-item:hover {
    transform: translateY(-2px);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-link {
    font-family: 'Manrope', sans-serif;
    font-size: var(--nav-lang-font-size);
    color: #212529 !important;
    transition: color 0.3s ease-in-out;
}

.icon-check {
    width: 24px;
    height: 24px;
    fill: #28a745;
}

.icon-cancel {
    width: 24px;
    height: 24px;
    fill: red;
}

.document-title {
    font-weight: 500;
}

.document-divider {
    border: 0;
    height: 1px;
    background-color: #dee2e6;
    margin: 5px 0;
}





