*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: sans-serif;
}


body{
    height:100vh;
    display:flex;
    flex-direction:column;
}

/* ヘッダー */
.header{
    height:60px;
    background:#f5f5f5;
    border-bottom:3px solid #00aa33;
    display:flex;
    align-items:center;
    padding:0 20px;
}

.header-green {
    background-color: #00aa33 !important;
    color: white;
    font-weight: bold;
}

/* タブ */
.tabs{
    height:45px;
    background:#fff;
    border-bottom:1px solid #ccc;
    display:flex;
    align-items:center;
    gap:5px;
    padding:0 10px;
}

.tab{
    padding:8px 20px;
    background:#e5e5e5;
    border-radius:4px 4px 0 0;
    cursor:pointer;
}

.tab.active{
    background:#00aa33;
    color:#fff;
}

/* メイン */
.main{
    flex:1;
    display:flex;
    overflow:hidden;
}

/* 左メニュー */
.sidebar{
    width:220px;
    background:#f3f3f3;
    border-right:1px solid #ccc;
}

.menu-item{
    padding:18px;
    border-bottom:1px solid #ddd;
    cursor:pointer;
}

.menu-item:hover{
    background:#e9e9e9;
}

/* 中央 */
.table-panel{
    width:420px;
    border-right:1px solid #ccc;
    overflow:auto;
}

/* テーブル */
table{
    width:100%;
    border-collapse:collapse;
}

th{
    background:#efefef;
    position:sticky;
    top:0;
}

th,
td{
    border:1px solid #ccc;
    padding:8px;
    font-size:14px;
}

tr:hover{
    background:#f9f9f9;
}

/* 右側 */
.content{
    flex:1;
    background:white;
    padding:20px;
}

/* 現在時刻・ユーザ名*/
.header{
    height:60px;
    background:#f5f5f5;
    border-bottom:3px solid #00aa33;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 20px;
}

.header-title{
    font-weight:bold;
}

.header-user{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
    color:#555;
}

.separator{
    color:#999;
}

/* .footer{
    margin-top:auto;
    background:#fff;
    border-top:1px solid #ccc;
    padding:10px 20px;
} */
.footer {
    height: 55px;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-top: 1px solid #ccc;
}


/* .menu-item.active {
    border-left: 5px solid #28a745;
    background-color: #f0fff4;
}

.menu-item.active a {
    font-weight: bold;
    color: #28a745 !important;
} */

.menu-item.active {
    background-color: #28a745;
}

.menu-item.active a {
    color: white !important;
    font-weight: bold;
}

/* ボタンを緑にする */
.btn.btn-green,
.btn.btn-green:hover {
    background-color: #00aa33;
    border-color: #00aa33;
    color: white;
}

.btn.btn-green:focus,
.btn.btn-green:active,
.btn.btn-green:focus-visible {
    background-color: #006611;
    border-color: #006611;
    color: white;
}
