:root {
    --sidebar-open-width: 200px;
    /* --sidebar-closed-width: 0px; */
    --topbar-height: 80px;
}

body {
    margin: 0;
    overflow-x: hidden;
}

body.preload .sidebar {
    visibility: hidden;
}

table.dataTable {
    table-layout: auto;
    width: 100%;
    white-space: nowrap;
}

.sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    height: calc(100vh - var(--topbar-height));
    background-color: #343a40;
    color: white;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    z-index: 1000;
    width: var(--sidebar-open-width);
}


.sidebar-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.sidebar-content a {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 15px 16px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    margin: 0;
    transition: background-color 0.3s ease;
}

.sidebar-content a:hover {
    background-color: #495057;
}

.sidebar-content span {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}

.topbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--topbar-height);
    background-color: #445892;
    color: white;
    z-index: 1050;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    padding: 0 20px;
    left: 0;
    width: 100%;
}



.topbar .topbar-inner {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}



.topbar .right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}


.topbar .left {
    display: flex;
    align-items: center;
}

.topbar .title {
    font-size: 25px;
    font-weight: bold;
}

.content {
    margin-top: var(--topbar-height);
    margin-left: var(--sidebar-open-width);
    padding: 30px;
    transition: margin-left 0.3s ease;
}



@media (max-width: 768px) {
    .sidebar.closed .sidebar-content span {
    display: none;
    }

}

/* import_employee専用
.sidebar {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
} */







.sidebar-content i {
min-width: 18px;
width: 20px;
text-align: center;
flex-shrink: 0;
}



/* サブメニュー表示用のCSS */
.sidebar-dropdown {
    position: relative;
}
.sidebar-dropdown > a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #f0f4fa;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.sidebar-dropdown > a:hover {
    background: #f0f4fa;
    color: #007bff;
}
.sidebar-submenu {
    display: none;
    flex-direction: column;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 180px;
    background: rgb(241, 241, 241);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    z-index: 10;
    padding: 8px 0;
}
.sidebar-dropdown:hover .sidebar-submenu {
    display: flex;
}
.sidebar-submenu a {
    color: #555;
    padding: 8px 16px;
    text-decoration: none;
    white-space: nowrap;
}
.sidebar-submenu a:hover {
    background: #f0f4fa;
    color: #007bff;
}
