body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.logo {
    width: 270px; /* нова ширина */
    height: auto; /* пропорційна висота */
    margin-top: 15px;
}

.instructions {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
}

.input-group input {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.input-group input[type="text"]::placeholder {
    color: #aaa;
}

.button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    width: 100%;  /* Кнопка займатиме всю ширину контейнера */
    box-sizing: border-box; /* Це важливо для коректного відображення padding */
    margin-bottom: 15px;
}

.button:hover {
    background-color: #0056b3;
}

.button-small:hover {
    background-color: #0056b3;
}

/* Маленька кнопка для вибору додаткових дій */
/*.button-small {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    font-size: 14px;

    width: auto;
}*/

.button-small {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
    width: auto;
}

.password-wrapper {
    position: relative;
}

.password-wrapper i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Клас для прихованих елементів */
.hidden {
    display: none;
}

/* Додаємо клас для прихованих форм */
.hidden-form {
    display: none;
}

.error {
    color: red;
    font-weight: bold;
}

.success {
    color: green;
    font-weight: bold;
}

/* Додаткові стилі для ширшої сторінки з декількома стовпцями */
.container-wide {
    max-width: 1200px; /* Збільшення ширини контейнера */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Три рівні стовпці */
    gap: 20px; /* Відстань між стовпцями */
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.column_back {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.column {
    background-color: #f5f5f5;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Відстань між полями введення */
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.column label,
.column input {
    width: calc(100% - 22px); /* Ширина полів та міток дорівнює ширині колонки */
}

.column input {
    max-width: 100%;
}

textarea {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    resize: vertical; /* Дозволяє користувачеві змінювати розмір текстового поля лише вертикально */
}

/* Центрування тексту "Виберіть XML файл:" */
.file-label-container {
    text-align: center; /* Центрування тексту */
    margin-bottom: 10px; /* Відступ знизу */
}

/* Оформлення для тексту "Файл не вибрано" */
.file-name {
    display: block;
    text-align: center;
    margin-top: 5px; /* Відступ зверху */
    font-size: 14px; /* Зменшений шрифт */
    color: #555; /* М'якший колір тексту */
}

.invoice-actions-container {
    display: flex; /* Використання flexbox для розташування */
    flex-direction: column; /* Вертикальне розташування */
    width: 100%; /* Ширина контейнера */
}

.invoice-actions-select {
    background-color: #fff; /* Звичайний фон */
    color: #333; /* Звичайний текст */
    border: 1px solid #ddd; /* Сірий обідок */
    border-radius: 4px; /* Закруглені кути */
    padding: 10px; /* Внутрішній відступ */
    font-size: 16px; /* Розмір шрифту */
    margin-bottom: 20px; /* Відступ знизу */
    box-sizing: border-box; /* Коректне відображення ширини */
    width: 100%; /* Заповнює всю ширину контейнера */
}

/* Додатковий стиль для форми */
.new-cabinet-form {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.new-cabinet-form h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.new-cabinet-form .input-group {
    margin-bottom: 15px;
}

.new-cabinet-form .input-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.new-cabinet-form .input-group input {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.new-cabinet-form .button {
    width: 100%;
    margin-top: 10px;
}

.full-width-container {
    width: 90%;
    max-width: none; /* Видаляє існуюче обмеження максимальної ширини */
}

.user-block {
    border: 1px solid #ccc;
    padding: 20px;
    margin-bottom: 20px;
}

.files {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 10px;
}

.file-item {
    padding: 5px 0;
}

.file-item a {
    color: blue;
    text-decoration: none;
}

.section {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    background-color: #fafafa;
}

.section .section-title {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.section-content {
    text-align: left;
    font-size: 14px;
}

.contacts {
    margin: 0;
    line-height: 1.5;
}

.contacts strong {
    margin-right: 3px; /* Відступ між "Контакти:" і телефоном */
}

.email {
    display: inline-block;
    margin-left: calc(9ch + 5px); /* Відступ на ширину слова "Контакти:" і телефону */
}

.form-group-inline {
    display: flex;
    gap: 10px; /* Проміжок між елементами */
    align-items: center;
    margin-bottom: 15px;
}

.form-group-inline select,
.form-group-inline button {
    flex: 1; /* Рівномірний розподіл ширини між елементами */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group-inline button {
    flex: 0; /* Кнопка займає стільки місця, скільки потрібно для тексту */
    cursor: pointer;
}

input[type="text"],
input[type="email"] {
    width: 100%; /* Заповнює всю ширину контейнера */
    box-sizing: border-box; /* Забезпечує коректне відображення padding */
    padding: 10px; /* Внутрішній відступ */
    border: 1px solid #ddd; /* Сірий обідок */
    border-radius: 4px; /* Закруглені кути */
    font-size: 16px; /* Розмір шрифту */
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
        height: auto;
        min-height: 100vh; /* Забезпечує мінімальну висоту екрану */
        overflow-y: auto; /* Додає можливість прокрутки, якщо вміст більший */
        box-sizing: border-box; /* Ураховує відступи в розмірах */
    }

    .user-block {
        padding: 10px;
    }

    .section {
        padding: 10px;
    }

}
/* Стилі для overlay (затемнення фону) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* затемнення */
    display: none; /* По замовчуванню приховано */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Стилі для контейнера спінера */
.loader {
    text-align: center;
    color: #fff;
}

/* Стилі для анімації спінера */
.spinner {
    border: 8px solid #f3f3f3; /* Світла частина кола */
    border-top: 8px solid #3498db; /* Синя частина кола */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite; /* Анімація */
    margin: 0 auto; /* Центрування спінера */
}

/* Анімація кручення */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.address-info {
    margin-top: -10px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #007bff;
}

#invoices-table {
    margin: 0 auto;
    border-collapse: collapse;
    width: 100%;
    max-width: 1200px;
}

#invoices-table thead tr {
    background-color: #007bff;
}
#invoices-table thead th {
    color: #fff;
    padding: 10px 8px;
    font-weight: 600;
    border-bottom: 2px solid #0056b3;
}

#invoices-table tr:nth-child(even) {
    background-color: #f2f2f2;
}
#invoices-table .success-send td {
    background-color: #e0f5e0;
}
#invoices-table .error-send td {
    background-color: #f8d7da;
}
/*#invoices-table .no-send td {
    background-color: #fff;
}*/

.success-send {
    background-color: #e0f5e0; /* світло-зелений */
}
.error-send {
    background-color: #f8d7da; /* світло-червоний */
}
/*.no-send {
    background-color: #ffffff; /* білий */
}*/
