body {
    font-family: Arial, Helvetica, sans-serif;
}

/* === Стили для таблицы "Получить данные" === */

#data-table {
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    border-collapse: collapse;
    width: 100%;
    white-space: nowrap;
}

#data-table th,
#data-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    color: #000;
    font-weight: normal;
    background-color: #ffffff;
}

#data-table thead tr:first-child th {
    background-color: #d3d3d3;
    color: #000;
    font-weight: normal;
}

#data-table thead tr:first-child th:first-child {
    background-color: #4CAF50;
    color: white;
}

#data-table thead tr:nth-child(2) th {
    color: #000;
    font-weight: normal;
}

#data-table thead tr:nth-child(2) th:nth-child(3n+1),
#data-table tbody td:nth-child(3n+2) {
    background-color: #d3d3d3;
}

#data-table thead tr:nth-child(2) th:nth-child(3n+2),
#data-table tbody td:nth-child(3n+3) {
    background-color: #f0f0f0;
}

#data-table thead tr:nth-child(2) th:nth-child(3n+3),
#data-table tbody td:nth-child(3n+4) {
    background-color: #ffffff;
}

#data-table tbody tr:nth-child(even) {
    background-color: transparent;
}

/* === Стили для таблиц филиалов (.simple-table) === */

.simple-table {
    font-family: Arial, Helvetica, sans-serif;
    white-space: nowrap;
    color: #000;
    border-collapse: collapse;
    width: auto;
    table-layout: auto;
}

.simple-table th{
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    color: #000;
    font-weight: normal;
}

.simple-table td {
    border: 1px solid #ccc;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    color: #000;
    font-weight: normal;
}

/* Заголовки */
.simple-table thead tr:first-child th:first-child {
    background-color: #4CAF50;
    color: white;
}

.simple-table thead tr:first-child th:nth-child(2) {
    background-color: #515151;
    color: #d3d3d3;
}

.simple-table thead tr:first-child th:nth-child(3) {
    background-color: #d3d3d3;
    color: #000;
}

.simple-table thead tr:first-child th:nth-child(4) {
    background-color: #f0f0f0;
    color: #000;
}

.simple-table thead tr:first-child th:nth-child(5) {
    background-color: #f0f0f0;
    color: #000;
}

/* Тело таблицы */
.simple-table tbody td:first-child {
    background-color: #ffffff;
    text-align: left;
}

.simple-table tbody td:nth-child(2) {
    background-color: #d3d3d3;
}

.simple-table tbody td:nth-child(3) {
    background-color: #f0f0f0;
}

.simple-table tbody td:nth-child(4) {
    background-color: #ffffff;
    padding-left: 0px;
    padding-right: 0px;
}

.simple-table tbody td:nth-child(5) {
    background-color: #ffffff;
    padding-left: 0px;
    padding-right: 0px;
}

/* === Остальные стили (вкладки, кнопки и т.д.) — без изменений === */

.tab-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

ul.tabs {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #bdbdbd;
}

ul.tabs li {
    float: left;
    cursor: pointer;
    padding: 14px 16px;
    color: white;
    font-weight: bold;
}

ul.tabs li.active {
    background-color: #515151;
}

.tab-content {
    display: none;
    padding: 20px;
}

.fadein {
    animation-name: fadeInAnimation;
    animation-duration: 0.5s;
}

@keyframes fadeInAnimation {
    from { opacity: 0; }
    to { opacity: 1; }
}

button[type="submit"] {
    margin: 10px 0px;
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 10px 20px;
    cursor: pointer;
    border: 0px;
}

button[type="submit"]:hover {
    background: #45a049;
    transform: scale(1.05);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.logo-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.logo-header img {
    height: 150px;
    width: 150px;
    object-fit: cover;
}

.logo-header h1 {
    font-size: 40px;
    margin-left: 20px;
    margin-top: 120px;
}

#vnesti_dannye form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.material-field-500 {
    width: 500px;
    text-align: left;
}

.material-field-200 {
    width: 200px;
    text-align: left;
}

.material-field-500 input,
.material-field-200 input {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#get_data_form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 500px;
    margin: 0;
    padding-left: 0;
}

#get_data_form .material-field-500,
#get_data_form .material-field-200 {
    width: 100%;
    text-align: left;
}

.uniform_select,
#get_data_form input[type="date"] {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    background-color: white;
    color: #999;;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}



.date-range-container {
    display: flex;
    justify-content: space-between;
    align-items: left;
    gap: 16px;
    width: 100%;
}

.date-range-container > div {
    flex: 1;
}

.cell-input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    margin: 0;
    text-align: center;
    border: 0px solid #ccc;
    border-radius: 0px;
    font-family: inherit; /* ← Чтобы шрифт совпадал с таблицей */
    font-size: 14px;
}

.btn-small {
    padding: 4px 15px;
    margin: 0 20px;
    font-size: 14px;
    color: white;
    border: 0px;
    border-radius: 0px;
    background: #4CAF50;
    cursor: pointer;
}
.btn-small:hover {
    background: #45a049;
    transform: scale(1.05);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
