

/* --- Плейсхолдер --- */
::placeholder {
    font-size: 0.9rem;
    color: var(--color-white-3);
    font-weight: normal;
}



/* --- ПОЛЯ ВВОДА --- */

/* Поле ввода основные */

.input-field {
    width: 100%;
    min-width: 30px;
    height: var(--box-h);
    padding: 14px;
    border: none;
    font-size: 1.2rem;
    background-color: var(--color-white-0);
    color: var(--color-gray-2);
    border-radius: var(--radius-light);
    box-shadow: var(--shadow-in);
    font-weight: 700;
}
.input-field:focus {
    outline: none;
}

/* Поле ввода квадртаное */

.input-field-litle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--box-h);
    height: var(--box-h);
    padding: 14px;
    border: none;
    font-size: 1.0rem;
    background-color: var(--color-white-0);
    color: var(--color-gray-2);
    border-radius: var(--radius-light);
    box-shadow: var(--shadow-in);
    text-align: center;
    font-weight: 700;
}
.input-field-litle:focus {
    outline: none;
}

/* Поле ввода среднее */

.input-field-medium {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: var(--box-h);
    padding: 14px;
    border: none;
    font-size: 1.0rem;
    background-color: var(--color-white-0);
    color: var(--color-gray-2);
    border-radius: var(--radius-light);
    box-shadow: var(--shadow-in);
    text-align: center;
    font-weight: var(--bold);
}
.input-field-medium:focus {
    outline: none;
}

/* ЧекБокс */

.data-checkbox {
    box-sizing: border-box;
    width: var(--box-h);
    height: var(--box-h);
    min-width: var(--box-h);
    border-radius: var(--radius-light);
    background-color: var(--color-white-0);
    box-shadow: var(--shadow-in);
    border: none;
    outline: none;
    cursor: pointer;
}
.data-checkbox input[type="checkbox"] {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    appearance: none; /*? Убираем стандартное отображение чекбокса */
    -moz-appearance: none;
    -webkit-appearance: none;
    width: 100%; 
    height: 100%; 
    margin: 0; /*? Убираем отступы */
    border-radius: inherit; /*? Наследуем радиус от родителя */
}
.data-checkbox input[type="checkbox"]:before{
    box-sizing: border-box;
    content: ''; /*? Добавляем псевдоэлемент */
    width: 24px; /*? Размеры "галочки" */
    height: 24px;
    border-radius: 50%;
    background-color: transparent; 
}
.data-checkbox input[type="checkbox"]:checked:before {
    background-color: var(--color-green);
}

/* Селектор статуса */

.data-select {
    width: 100%;
}
.data-select select {
    box-sizing: border-box;
    font-size: 0.85rem;
    font-weight: normal;
    color: var(--color-bg-white);
    background-color: var(--color-blue-dark);
    height: var(--box-h);
    border-radius: var(--radius-light);
    border: none;
    outline: none;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    text-align: center;
    padding: 14px;
}
.data-content select::-ms-expand {
    display: none;
}





/* --- МОДАЛЬНОЕ ОКНО ДЛЯ НОВГО КЛИЕНТА --- */

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.add-client-modal {
    display: none;
    position: fixed;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 360px;
    z-index: 1000;
    padding: 40px var(--spacing-in);
    gap: 20px;
    background:  var(--color-blue-light);
    border-radius: var(--radius-base);
    color: var(--color-blue-dark);
    text-align: left;
}
.modal-info-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.modal-btn-block {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    width: 100%;
    gap: 20px;
    margin-top: 20px;
}





/* --- АВТОЗАПОЛНЕНИЕ --- */


/* Контейнер */
.autocomplete-results {
    display: flex;
    position: absolute;
    background-color: var(--color-white-3);
    color: var(--color-white-0);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-out);
    max-height: 270px;
    padding: 8px 10px;
    min-width: 250px;
    overflow-y: auto;
    display: none; 
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    z-index: 10;
}

/* Строка */
.autocomplete-results div, .result-item  {
    padding: 16px 10px;
    cursor: pointer;
}
.autocomplete-results div + div, 
.result-item + .result-item {
    border-top: 1px solid var(--color-white-2);
}

/* Ховер */
/* Первого элемента */
.autocomplete-results div:first-child:hover {
    background-color: var(--color-green);
    border-radius: var(--radius-medium) var(--radius-medium) 0 0;
}
/* Последнего элемента */
.autocomplete-results div:last-child:hover {
    background-color: var(--color-green);
    border-radius: 0 0 var(--radius-medium) var(--radius-medium);
}
/* Всех остальных (не первый и не последний) */
.autocomplete-results div:not(:first-child):not(:last-child):hover {
    background-color: var(--color-green);
    border-radius: 0;
}




/* МОДАЛЬНОЕ ОКНО ПОДТВЕРЖДЕНИЯ */

.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Затемненный фон */
}
.modal-dialog {
    background-color: var(--color-white-0);
    margin: 50% auto;
    padding: var(--spacing-in);
    border-radius: 0 var(--radius-base) 0 var(--radius-base);
    box-shadow: var(--shadow-out);
    width: 100%;
    max-width: 440px;
}
.modal-body {
    padding: 10px 0;
    text-align: center;
    font-size: 1.0rem;
    color: var(--color-gray-2);
    border-bottom: 1px solid var(--color-white-2);
    line-height: 1.6;
}
.modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    margin-top: 20px;
    gap: 10px;
}



/* ОКНО АВТОРИЗАЦИИ */

.login-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-blue-light);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    box-shadow: var(--shadow-out);
    border-radius: 60px;
    gap: 40px;
    color: var(--color-blue-dark);
}

.login-input-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

