﻿*, *::after, *::before {
    box-sizing: border-box;
}

/* レイアウト全体のコンテナ */
main {
    display: flex;
    align-items: stretch;
    min-height: 95vh;
}

/* サイドバーのスタイル */
#sidebar {
    min-width: 250px;
    max-width: 300px;
    background: #222F85; /* ネイビー */
    color: #fff;
    transition: all 0.3s;
}

    #sidebar .sidebar-header {
        padding: 20px;
        background: #222F85;
    }

    #sidebar ul p {
        color: #fff;
        padding: 10px;
    }

    #sidebar ul li a {
        padding: 10px 20px;
        font-size: 1.0em;
        display: block;
        color: #fff;
        text-decoration: none;
    }

        #sidebar ul li a:hover {
            color: #fff;
            background: #3243B7; /* ブルー */
        }

/* コンテンツエリア(背景) */
#content {
    width: 100%;
    padding: 30px;
    background-color: #EEEEEE; /* グレー */
}



/* テーブル標準スタイル */
table {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

th, td {
    vertical-align: middle;
    padding: 12px 15px; /* 上下左右に余白を広げる */
}

/* 行全体にマウスを乗せた時に少し浮かせる */
tbody tr:hover {
    background-color: #f8f9fa; /* 薄いグレー */
    transition: background-color 0.2s;
}

/* ヘッダー全体のデザイン変更 */
thead th {
    background-color: #222F85; /* ネイビー */
    color: #ffffff; /* 文字は白 */
    font-weight: bold;
    text-align: center;
    /* 枠線の設定：セルの周囲を白っぽい線で囲む */
    border: 1px solid #ffffff;
    /* 上下の余白を少し広げて視認性アップ */
    padding: 15px 10px;
}

/* ヘッダ固定スクロール */
.table-container-scrollable {
    overflow-y: scroll;
    height: 40vh;
}

    .table-container-scrollable thead th {
        position: sticky;
        top: 0;
    }


.action-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 左端と右端に分ける */
    background-color: #fff;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top:8px;
    margin-bottom: 8px;
}

.selection-status {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.toolbar-right {
    display: flex;
    gap: 8px; /* ボタン同士の隙間 */
}

/* ボタンの基本スタイル */
.btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background-color: #2563eb; /* 青色 */
    color: #fff;
}

    .btn-primary:hover {
        background-color: #1d4ed8;
    }

.btn-secondary {
    background-color: #f1f5f9; /* 薄いグレー */
    color: #475569;
    border: 1px solid #cbd5e1;
}

    .btn-secondary:hover {
        background-color: #e2e8f0;
    }

td .btn {
    margin: 3px;
}