#dbhb-erp-sidebar,
#dbhb-erp-sidebar * {
    box-sizing: border-box;
}

#dbhb-erp-sidebar {
    display: flex;
    flex: 0 0 252px;
    flex-direction: column;
    align-self: stretch;
    width: 252px;
    min-height: calc(100dvh - 83px);
    border-right: 1px solid #e4e9e3;
    background: #fafcf9;
    color: #334155;
    font-family: inherit;
    line-height: 1.5;
    height: 0;
    overflow-y: auto;
}

#dbhb-erp-sidebar [hidden] {
    display: none !important;
}

#dbhb-erp-sidebar a {
    color: inherit;
    text-decoration: none;
}

#dbhb-erp-sidebar button {
    font: inherit;
}

#dbhb-erp-sidebar a:focus-visible,
#dbhb-erp-sidebar button:focus-visible {
    outline: 2px solid #2c6732;
    outline-offset: 2px;
}

#dbhb-erp-sidebar .sidebar-heading {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 26px 24px 20px;
}

#dbhb-erp-sidebar .sidebar-heading-label {
    color: #647568;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

#dbhb-erp-sidebar .sidebar-heading strong {
    color: #263d2b;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

#dbhb-erp-sidebar .sidebar-nav {
    flex: 1;
    padding: 28px 8px;
}

#dbhb-erp-sidebar .sidebar-section-title {
    margin: 25px 12px 9px;
    color: #68776b;
    font-size: 12px;
    font-weight: 600;
}

#dbhb-erp-sidebar .sidebar-link,
#dbhb-erp-sidebar .sidebar-group-button {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 48px;
    margin: 3px 0;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #3d4c42;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#dbhb-erp-sidebar .sidebar-link:hover,
#dbhb-erp-sidebar .sidebar-group-button:hover {
    background: #edf3ea;
    color: #2c6732;
}

#dbhb-erp-sidebar .sidebar-icon {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #e3eade;
    border-radius: 9px;
    background: #fff;
    color: #627361;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

#dbhb-erp-sidebar .sidebar-chevron {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin: 0 4px 4px auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

#dbhb-erp-sidebar [aria-expanded="true"] .sidebar-chevron {
    margin-bottom: 0;
    transform: rotate(225deg);
}

#dbhb-erp-sidebar .sidebar-submenu {
    margin: 5px 0 9px 27px;
    padding: 0 0 0 15px;
    border-left: 1px solid #dce5d8;
    list-style: none;
}

#dbhb-erp-sidebar .sidebar-submenu li {
    margin: 3px 0;
    padding: 0;
}

#dbhb-erp-sidebar .sidebar-submenu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #5e6c62;
    font-size: 14px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#dbhb-erp-sidebar .sidebar-submenu a:hover {
    background: #edf3ea;
    color: #2c6732;
}

/* 현재 페이지 */
#dbhb-erp-sidebar .sidebar-link[aria-current="page"],
#dbhb-erp-sidebar .sidebar-submenu a[aria-current="page"] {
    background: #e6f0e2;
    color: #24582a;
    font-weight: 700;
}

#dbhb-erp-sidebar .sidebar-link[aria-current="page"] .sidebar-icon {
    border-color: #2c6732;
    background: #2c6732;
    color: #fff;
}

/* 현재 페이지를 포함한 상위 메뉴 */
#dbhb-erp-sidebar .sidebar-group.is-active > .sidebar-group-button {
    color: #2c6732;
}

#dbhb-erp-sidebar .sidebar-group.is-active .sidebar-icon {
    border-color: #cddfc5;
    background: #e6f0e2;
    color: #2c6732;
}

#dbhb-erp-sidebar .sidebar-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 20px;
    padding: 20px 0;
    border-top: 1px solid #e4e9e3;
    color: #68776b;
    font-size: 11px;
}

#dbhb-erp-sidebar .sidebar-footer-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d99477;
}

@media (prefers-reduced-motion: reduce) {
    #dbhb-erp-sidebar .sidebar-link,
    #dbhb-erp-sidebar .sidebar-group-button,
    #dbhb-erp-sidebar .sidebar-submenu a,
    #dbhb-erp-sidebar .sidebar-chevron {
        transition: none;
    }
}
