﻿/* ===== 기본 ===== */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, "Malgun Gothic", sans-serif;
    background: #f7f7f7;
    color: #222;
}

/* ===== Header ===== */
.site-header {
    width: 100%;
    background: #ececec;
    border-bottom: 1px solid #dddddd;
    position: relative;
    z-index: 1000;
}

.site-header-inner {
    max-width: 1800px;
    margin: 0 auto;
    min-height: 78px;
    padding: 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    gap: 20px;
}

.site-brand {
    display: flex;
    align-items: center;
    min-width: 180px;
    flex-shrink: 0;
}

.site-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #222;
}

.site-brand-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
}

.site-brand-icon img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    gap: 2px;
}

.site-brand-text strong {
    font-size: 24px;
    font-weight: 800;
    color: #222;
    letter-spacing: -0.4px;
}

.site-header-menu-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    gap: 20px;
}

.site-nav {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
}

.site-menu-root,
.site-sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-menu-root {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 78px;
    flex-shrink: 0;
}

.site-nav-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 78px;
    padding: 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    box-sizing: border-box;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.site-nav-btn:hover {
    color: #111;
}

.site-menu-item.active > .site-nav-btn::after,
.site-menu-item:hover > .site-nav-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    height: 3px;
    border-radius: 3px;
    background: #f0c419;
}

.site-sub-menu {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 8px 0;
}

.site-menu-item:hover .site-sub-menu {
    display: block;
}

.site-sub-menu-item a {
    display: block;
    padding: 10px 14px;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.site-sub-menu-item.active a,
.site-sub-menu-item a:hover {
    background: #f5f5f5;
}

.site-user {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.site-user-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.site-user-login-wrap {
    gap: 10px;
}

.site-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-right: 4px;
    white-space: nowrap;
}


.site-user-metric {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    margin-left: 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    vertical-align: middle;
}

.site-user-metric-dday {
    background: #fff7d6;
    border: 1px solid #f0c419;
    color: #8a6400;
}


.site-user-metric-warn {
    background: #fff1d6;
    border-color: #f59e0b;
    color: #92400e;
}

.site-user-metric-expired {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.site-user-metric-muted {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #6b7280;
}

.site-user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-sizing: border-box;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.site-user-btn-primary {
    background: #f3c300;
    border: 1px solid #e0b400;
    color: #111;
}

.site-user-btn-primary:hover {
    background: #e7b900;
    border-color: #d6ab00;
}

.site-user-btn-light {
    background: #ffffff;
    border: 1px solid #d8d8d8;
    color: #222;
}

.site-user-btn-light:hover {
    background: #f7f7f7;
}

/* ===== 모바일 토글 버튼 ===== */
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #d8d8d8;
    background: #fff;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #222;
    border-radius: 2px;
}

/* ===== Main ===== */
.site-main {
    width: 100%;
    /*min-height: calc(100vh - 78px);*/
    background: #fff;
}

/* ===== Footer ===== */
.site-footer {
    padding: 28px 0;
    background: #fafafa;
    border-top: 1px solid #ededed;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.site-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
}

    .site-footer-links a {
        color: #666;
        text-decoration: none;
    }

.footer-dot {
    color: #999;
}

.site-footer-company {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    color: #666;
}

.footer-company-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 1.6;
}

.footer-company-name {
    font-size: 15px;
    font-weight: 800;
    color: #333;
}

.footer-company-copy {
    margin-top: 4px;
    color: #888;
}

.required-text {
    color: red;
}

/* DevExpress ASPxComboBox 입력 영역 */
.dxeEditArea,
.dxeEditAreaSys,
.dxeButtonEditSys input {
    font-size: 18px !important;
}

/* DevExpress ASPxComboBox 드롭다운 목록 */
.dxeListBoxItem,
.dxeListBoxItemHover,
.dxeListBoxItemSelected {
    font-size: 18px !important;
}

/* DevExpress ASPxButton */
.dxbButton,
.dxbButton div,
.dxbButton span,
.dxb {
    font-size: 18px !important;
}

/* ===== 모바일 반응형: 배치만 변경, 크기 유지 ===== */
@media (max-width: 991px) {
    .site-header-inner {
        min-height: 78px;
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .site-brand {
        min-width: 0;
        flex: 1;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .site-header-menu-area {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 4px;
    }

    .site-header.menu-open .site-header-menu-area {
        display: flex;
    }

    .site-nav {
        width: 100%;
    }

    .site-menu-root {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #f3f3f3;
        border: 1px solid #dddddd;
        border-radius: 12px;
        overflow: hidden;
    }

    .site-menu-item {
        width: 100%;
        height: auto;
        display: block;
        border-bottom: 1px solid #e2e2e2;
    }

        .site-menu-item:last-child {
            border-bottom: 0;
        }

    .site-nav-btn {
        width: 100%;
        height: 78px;
        justify-content: flex-start;
        padding: 0 16px;
    }

    .site-menu-item.active > .site-nav-btn::after,
    .site-menu-item:hover > .site-nav-btn::after {
        left: 0;
        right: auto;
        top: 0;
        bottom: 0;
        width: 4px;
        height: auto;
        border-radius: 0;
    }

    .site-sub-menu {
        position: static;
        display: block;
        border: 0;
        box-shadow: none;
        background: #fafafa;
        padding: 0;
    }

    .site-sub-menu-item a {
        padding: 12px 20px 12px 28px;
        border-top: 1px solid #eeeeee;
    }

    .site-user {
        width: 100%;
        justify-content: stretch;
    }

    .site-user-buttons {
        width: 100%;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .site-user-name {
        width: 100%;
        margin: 0 0 2px 0;
    }

    .site-user-metric {
        margin-left: 8px;
        margin-top: 0;
    }

    .site-user-btn {
        flex: 1;
        min-width: 0;
        height: 42px;
    }

    .site-footer {
        padding: 24px 0;
    }

    .site-footer-inner {
        padding: 0 14px;
    }

    .site-footer-links {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .site-footer-company {
        text-align: left;
        gap: 6px;
    }

    .footer-company-row {
        justify-content: flex-start;
        gap: 6px 14px;
        line-height: 1.7;
    }
}
