.data-table {
    width: 80%;
    min-width: 500px;
    border-spacing: 0;
    font-size: 13px;
    text-align: left;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.data-table::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../img/bk_table.jpg');
    background-size: 100% 100%;
    opacity: 0.3;
    z-index: -1;
}

.data-table thead th {
    background-color: #34495e;
    color: white;
    padding: 10px 12px;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid #5a7493;
}

.data-table thead th:last-child {
    border-right: none;
}

.data-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #e9ecef;
    vertical-align: middle;
    white-space: nowrap;
}

.data-table tbody td:last-child {
    border-right: none;
}

.data-table tbody tr:hover {
    background-color: #a9a9a9;
    cursor: default;
    transition: background-color 0.2s;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 中央寄せ用クラス */
.cell-center {
    text-align: center;
}

/* 数値データ用クラス */
.cell-number {
    text-align: right;
    padding-right: 15px;
    font-variant-numeric: tabular-nums;
}

/* フォーム・ボタン系 */
.form-container {
    background-color: var(--bg-medium);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: auto;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

input[type="date"] {
    width: 30%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

button[type="submit"] {
    background-color: var(--bg-medium);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 30%;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.csv-download-controls {
    display: flex;
    width: 80%;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.csv-download-controls form {
    display: flex;
    align-items: center;
    gap: 5px;
}
