/* Шаговая форма */
.di-step-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.di-step-form .step {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.di-step-form label {
    font-weight: bold;
}

.di-step-form input[type="number"],
.di-step-form input[type="date"],
.di-step-form select {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.di-step-form input[type="submit"] {
    margin-top: 20px;
    background-color: #0073aa;
    color: white;
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.di-step-form input[type="submit"]:hover {
    background-color: #005077;
}

.di-success {
    color: green;
    font-weight: bold;
    text-align: center;
}

/* Форма фильтра: каждый элемент на новой строке */
.di-filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.di-filter-form label {
    font-weight: bold;
    display: flex;
    flex-direction: column;
}

.di-filter-dates {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.di-filter-dates label {
    flex: 1;
}


/* Таблица с прокруткой на мобильных */
.device-register-table-wrapper {
    overflow-x: auto;
}

.device-register-table {
    min-width: 800px;
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.device-register-table th,
.device-register-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
    white-space: nowrap;
}

.device-register-table thead {
    background-color: #333;
    color: white;
}

.device-register-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.device-register-table tbody tr:hover {
    background-color: #eef6ff;
}

/* Итого строка — выделим */
.device-register-table tfoot tr th {
    font-weight: bold;
    background-color: #e0e0e0;
}
