/* === Общие стили страницы === */
/*body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    color: #222;
    margin: 0;
    padding: 20px;
}*/


.table-name h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #365f91;
}

.table-name h4 {
    color: #444;
    text-align: center;
    font-size: 24px;
}



.container {
    display: grid;
    grid-template-columns: 20% 80%;
    gap: 20px;
}

.sidebar {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

/* === Метки и поля ввода === */
label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

input[type="number"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    font-size: 16px;
    line-height: 1.5;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    height: 42px;
    margin-bottom: 20px;
}

/* Убираем стрелочки у input[type=number] */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* === Обёртка поля пароля с иконкой === */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 40px; /* для иконки-глазика */
}

/* === Иконка-глазик для пароля === */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 35%;     /*50%;*/
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
    opacity: 0.7;
}

.toggle-password:hover {
    opacity: 1;
}

.toggle-password.show {
    background-image: url('data:image/svg+xml;utf8,<svg fill="gray" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 4.5c-4.8 0-8.9 3.3-10.5 7.5 1.6 4.2 5.7 7.5 10.5 7.5s8.9-3.3 10.5-7.5c-1.6-4.2-5.7-7.5-10.5-7.5zm0 13c-3 0-5.5-2.5-5.5-5.5S9 6.5 12 6.5s5.5 2.5 5.5 5.5-2.5 5.5-5.5 5.5zm0-9c-2 0-3.5 1.5-3.5 3.5S10 15.5 12 15.5 15.5 14 15.5 12 14 8.5 12 8.5z"/></svg>');
}

.toggle-password.hide {
    background-image: url('data:image/svg+xml;utf8,<svg fill="gray" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 6c-2.5 0-4.7 1-6.4 2.6L3.7 6.7 2.3 8.1l2.4 2.4C3.7 12.3 3 13.8 3 15c0 1.5 1.2 2.8 2.8 2.8 1.3 0 2.7-.8 3.8-2.1l1.4 1.4c.6.6 1.4.9 2.2.9 1.7 0 3-1.3 3-3 0-.8-.3-1.6-.9-2.2l1.4-1.4c1.3 1.1 2.1 2.5 2.1 3.8 0 1.6-1.3 2.8-2.8 2.8-.7 0-1.4-.2-2-.6l-2.6-2.6C9.6 14 9 13.6 9 13c0-.5.4-.9.9-.9.6 0 1 .5 1 .9 0 .4-.3.7-.7.8l2.1 2.1c.5-.2.8-.7.8-1.2 0-.6-.4-1-1-1-.6 0-1 .4-1 1 0 .4.2.7.4.8L12 6z"/></svg>');
}



/* === Кнопка "Показать данные" === */
button {
    width: 100%;
    padding: 10px 16px;
    font-size: 16px;
    line-height: 1.5;
    height: 42px;
    background-color: #4a90e2; /* голубовато-синий */
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #357ab8; /* темно-синий при наведении */
}

button:active {
    background-color: #2e6aa3;
}





/* === Таблица данных === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 10px;
    text-align: center;
}

th {
    background-color: #eeeeee;
}

tr:nth-child(even) {
    background-color: #ffffff;
}

tr:nth-child(odd) {
    background-color: #dddddd;
}

/* === Адаптивная верстка === */
@media screen and (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
}


/* ==== Подвал сайта ==== */
footer {
    width: 100%;
    background-color: #00349e;
    color: white;
    padding: 26px 0;
    margin: 10px auto 0 auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Логотип слева */
.footer-logo img {
    max-height: 48px;
    height: auto;
}

/* Социальные иконки по центру */
.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-social img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}

.footer-social a:hover img {
    transform: scale(1.15);
}

/* Копирайт справа */
.footer-copy {
    font-size: 0.95em;
    text-align: right;
    white-space: nowrap;
}

/* ==== Адаптивность ==== */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .footer-copy {
        text-align: center;
    }
}


.export-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.export-controls input[type="date"] {
    padding: 8px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.export-btn {
    background-color: #0095ff;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.export-btn:hover {
    background-color: #006edc;
}





