@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

:root{
    --bg:#f5f7fb;
    --bg2:#eef3ff;
    --text:#1d2433;
    --muted:#6f7a8f;
    --line:#e6ebf2;
    --primary:#2f5bff;
    --primary2:#1b44db;
    --dark:#1f2937;
    --card:#ffffff;
    --shadow:0 14px 38px rgba(31, 41, 55, 0.08);
    --radius-xl:24px;
    --radius-lg:18px;
    --radius-md:12px;
    --base-font-size:12px; /* 기존 14px → 전체 약 70% 축소 */
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

html{
    font-size:var(--base-font-size);
}

body{
    font-family:'Pretendard','Noto Sans KR',Arial,"맑은 고딕","Malgun Gothic",sans-serif;
    font-size:1.4rem;
    font-weight:500;
    letter-spacing:-0.2px;
    line-height:1.6;
    color:var(--text);
    background:radial-gradient(circle at top center, rgba(47,91,255,.08), transparent 35%), linear-gradient(180deg,#f8fbff 0%,#f5f7fb 38%,#ffffff 100%);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    text-rendering:optimizeLegibility;
}

a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}

.app-layout{
    display:flex;
    min-height:100vh;
    gap:20px;
    padding:10px;
    background:#f3f5fa;
}

.sidebar-shell{
    width:278px;
    flex:0 0 278px;
}

.sidebar-card{
    position:sticky;
    top:10px;
    min-height:calc(100vh - 20px);
    background:#ffffff;
    border:1px solid #e7ebf3;
    border-radius:28px;
    box-shadow:0 6px 20px rgba(31,41,55,.05);
    padding:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

.sidebar-top{
    padding:22px 22px 18px;
    border-bottom:1px solid #edf1f6;
}

.brand{
    font-weight:700;
    font-size:2rem;
    line-height:1.15;
    letter-spacing:-1.3px;
    color:#3154c7;
}

.brand-sub{
    margin-top:8px;
    color:#65708a;
    font-size:1.3rem;
    font-weight:400;
}

.sidebar-menu{
    display:grid;
    gap:5px;
    padding:14px 12px 20px;
    flex:1;
    align-content:start;
}

.sidebar-menu a{
    position:relative;
    display:flex;
    align-items:center;
    min-height:48px;
    padding:0 16px;
    border-radius:16px;
    background:transparent;
    border:1px solid transparent;
    font-size:1.35rem;
    font-weight:600;
    letter-spacing:-0.15px;
    color:#2f3a52;
    transition:
        background-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.sidebar-menu a:hover{
    background:#f4f7ff;
    color:#2f55d4;
    transform:translateX(2px);
}

.sidebar-menu a:active{
    transform:translateX(1px) scale(.995);
}

.sidebar-menu a.active{
    background:#e9edf9;
    color:#2f55d4;
    box-shadow:none;
}

.sidebar-menu a.active:hover{
    background:#e3e9f8;
    color:#294fcf;
    transform:none;
}

.sidebar-bottom{
    padding:16px 22px 20px;
    border-top:1px solid #edf1f6;
}

.sidebar-company{
    font-size:2rem;
    color:#2f3a52;
    font-weight:900;
    line-height:1.35;
}

.sidebar-user{
    margin-top:5px;
    font-size:1.2rem;
    font-weight:400;
    color:#6b7690;
}

.main-area{
    flex:1;
    min-width:0;
}

.desktop-topbar{
    margin-bottom:16px;
}

.topbar-card{
    min-height:72px;
    padding:12px 18px;
    background:rgba(255,255,255,.88);
    border:1px solid rgba(225,232,242,.9);
    border-radius:24px;
    box-shadow:0 8px 24px rgba(30,41,59,.05);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

.topbar-title{
    margin:0;
    font-size:1.5rem;
    font-weight:800;
    letter-spacing:-0.7px;
    color:#173b86;
}

.brand{
    font-weight:800;
    font-size:2rem;
    line-height:1.2;
    letter-spacing:-0.6px;
    color:#3154c7;
}

.brand-sub{
    margin-top:8px;
    color:#65708a;
    font-size:1.25rem;
    font-weight:500;
    line-height:1.5;
    letter-spacing:-0.15px;
}

.topbar-title{
    margin:0;
    font-size:1.55rem;
    font-weight:700;
    letter-spacing:-0.45px;
    color:#173b86;
    line-height:1.35;
}

.card-title{
    margin:0 0 6px;
    font-size:1.8rem;
    font-weight:700;
    letter-spacing:-0.45px;
    line-height:1.4;
    color:#1e293b;
}

.card-desc{
    margin:0;
    font-size:1.18rem;
    color:#64748b;
    line-height:1.7;
    font-weight:500;
    letter-spacing:-0.1px;
}

.label{
    font-size:1.15rem;
    font-weight:700;
    color:#475569;
    letter-spacing:-0.1px;
}

.input,.select,.textarea{
    width:100%;
    border:1px solid #dfe7f3;
    background:#fff;
    border-radius:14px;
    padding:11px 13px;
    outline:none;
    font-size:1.2rem;
    font-weight:500;
    letter-spacing:-0.1px;
    line-height:1.5;
    color:#1f2937;
}

th{
    font-size:1.1rem;
    color:#64748b;
    background:#f8fbff;
    font-weight:700;
    letter-spacing:-0.1px;
}

td{
    font-size:1.1rem;
    font-weight:500;
    line-height:1.65;
    letter-spacing:-0.1px;
    color:#334155;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:42px;
    padding:0 18px;
    border-radius:30px;
    cursor:pointer;
    font-weight:700;
    font-size:1.28rem;
    letter-spacing:-0.15px;
    line-height:1;
    text-decoration:none;
    border:2px solid transparent;
    transition:
        transform .18s ease,
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.btn:hover{
    transform:translateY(-1px);
}

.btn:active{
    transform:scale(0.98);
}

.btn-primary{
    background:#3154c7;
    color:#fff;
    border-color:#3154c7;
    box-shadow:0 6px 16px rgba(49,84,199,.2);
}

.btn-primary:hover{
    background:#2443a6;
    border-color:#2443a6;
}

.btn-secondary{
    background:#fff;
    color:#7a869c;
    border-color:#7a869c;
}

.btn-secondary:hover{
    background:#3154c7;
    color:#fff;
    border-color:#3154c7;
    box-shadow:0 6px 14px rgba(49,84,199,.16);
}

.btn-danger{
    background:#ff5c5c;
    color:#fff;
    border-color:#ff5c5c;
}

.btn-danger:hover{
    background:#e04848;
    border-color:#e04848;
}

.page-content{
    background:rgba(255,255,255,.75);
    border:1px solid #e8eef8;
    border-radius:26px;
    padding:20px;
    box-shadow:0 14px 34px rgba(62,84,131,.05);
    min-height:calc(100vh - 98px);
}

.section-card,.table-card,.form-card{
    background:#fff;
    border:1px solid #e5ebf4;
    border-radius:20px;
    padding:18px;
    box-shadow:var(--shadow);
}

.section-card + .section-card,
.table-card + .table-card,
.form-card + .table-card{
    margin-top:14px;
}

.card-title{
    margin:0 0 6px;
    font-size:1.8rem;
    font-weight:500;
    letter-spacing:-0.7px;
}

.card-desc{
    margin:0;
    font-size:1.15rem;
    color:#6f7a8f;
    line-height:1.6;
    font-weight:400;
}

.stat-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.stat-box{
    background:#f8fbff;
    border:1px solid #e8eef8;
    border-radius:16px;
    padding:16px;
}

.stat-label{
    color:#7a869c;
    font-size:1.15rem;
    font-weight:700;
    margin-bottom:8px;
}

.stat-value{
    font-size:2rem;
    font-weight:800;
    letter-spacing:-0.7px;
}

.action-row{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-start;
    align-items:center;
    gap:10px;
    margin-top:18px;
}

.action-row .btn-start{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    width:220px;
    max-width:100%;
    min-width:0;
    height:48px;
    padding:0 16px;
    margin:0;
    box-sizing:border-box;
    font-size:1.6rem;
    font-weight:700;
    letter-spacing:-0.3px;
    line-height:1;
    white-space:nowrap;
    color:#7a869c;
    background:#fff;
    border:2px solid #7a869c;
    border-radius:30px;
    text-decoration:none;
    transition:all .2s ease;
}

.action-row .btn-start:hover{
    background:#3154c7;
    color:#fff;
}

.action-row .btn-start:active{
    transform:scale(0.98);
}

.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;min-width:780px}
th,td{padding:11px 10px;border-bottom:1px solid #edf2f8;text-align:left;vertical-align:top}
th{font-size:1.1rem;color:#6f7a8f;background:#f8fbff;font-weight:800}
td{font-size:1.1rem}
tr:hover td{background:#fafcff;}

.badge,
.badge-blue,
.badge-green,
.badge-gray,
.badge-red{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 10px;
    border-radius:999px;
    font-size:1.1rem;
    font-weight:700;
    line-height:1;
}

.badge.blue,
.badge-blue{background:#eef3ff;color:#2449d7}
.badge.green,
.badge-green{background:#ecfdf5;color:#166534}
.badge.gray,
.badge-gray{background:#f3f4f6;color:#374151}
.badge.red,
.badge-red{background:#fef2f2;color:#b91c1c}

.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.form-group{display:flex;flex-direction:column;gap:6px}
.form-group.full{grid-column:1 / -1}

.label{
    font-size:1.15rem;
    font-weight:700;
    color:#49566e;
}

.input,.select,.textarea{
    width:100%;
    border:1px solid #dfe7f3;
    background:#fff;
    border-radius:14px;
    padding:11px 13px;
    outline:none;
    font-size:1.2rem;
}

.input:focus,.select:focus,.textarea:focus{
    border-color:#5d88ff;
    box-shadow:0 0 0 4px rgba(93,136,255,.14);
}

.textarea{min-height:100px;resize:vertical}
.help{font-size:1rem;color:#8190a6;font-weight:400}

.notice{
    padding:11px 13px;
    border-radius:12px;
    font-size:1.1rem;
    font-weight:500;
    margin-bottom:12px
}
.notice.ok{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}
.notice.error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}

.empty-box{
    padding:26px;
    border:1px dashed #d7dfef;
    border-radius:16px;
    text-align:center;
    color:#7b879d;
    font-size:1.15rem;
    font-weight:400;
    background:#fbfdff;
}

.mobile-top-wrap{display:none}

html[data-font-scale="sm"]{font-size:10px;}
html[data-font-scale="md"]{font-size:12px;}
html[data-font-scale="lg"]{font-size:14px;}

.mobile-actions{
    display:flex;
    align-items:center;
    gap:6px;
    flex:0 0 auto;
}

.mobile-icon-btn{
    width:40px;
    height:40px;
    border-radius:12px;
    border:1px solid #dfe7f2;
    background:linear-gradient(180deg,#ffffff 0%, #f7faff 100%);
    box-shadow:
        0 6px 16px rgba(31,41,55,.08),
        inset 0 1px 0 rgba(255,255,255,.95);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0;
    cursor:pointer;
    transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
    color:#1f2937;
    font-weight:500;
}

.mobile-icon-btn:hover{
    transform:translateY(-1px);
    border-color:#cfd9ea;
    box-shadow:
        0 10px 18px rgba(31,41,55,.10),
        inset 0 1px 0 rgba(255,255,255,.96);
}

.mobile-icon-btn:active{
    transform:translateY(0) scale(.97);
}

.mobile-font-btn{
    font-size:12px;
    letter-spacing:-0.2px;
}

.mobile-menu-btn{
    flex-direction:column;
    gap:4px;
}

.mobile-menu-btn span{
    width:16px;
    height:2px;
    background:#1f2937;
    border-radius:99px;
    display:block;
}

.btn-sm{
    height:34px;
    padding:0 11px;
    font-size:1.1rem;
    border-radius:10px;
    margin-right:4px;
}

@media (max-width: 1100px){
    html,body{
        overflow-x:hidden;
    }

    body{
        font-size:1.8rem;
    }

    .app-layout{
        display:block;
        padding:4px;
        gap:0;
        background:#f3f5fa;
    }

    .desktop-sidebar,
    .desktop-topbar{
        display:none;
    }

    .mobile-top-wrap{
        display:block;
        margin-bottom:6px;
    }

    .mobile-topbar{
        display:flex;
        justify-content:space-between;
        align-items:center;
        gap:8px;
        background:#fff;
        border:1px solid #e5ebf4;
        border-radius:14px;
        padding:8px 10px;
        box-shadow:0 8px 18px rgba(31,41,55,.05);
    }

    .mobile-brand-wrap{
        flex:1;
        min-width:0;
        overflow:hidden;
    }

    .mobile-brand{
        font-size:2.4rem;
        line-height:1.15;
        font-weight:700;
        color:#173b86;
        letter-spacing:-0.5px;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    .mobile-brand-sub{
        margin-top:1px;
        font-size:2rem;
        line-height:1.15;
        color:#6f7a8f;
        font-weight:400;
    }

    .mobile-dropdown{
        display:none;
        margin-top:6px;
        background:#fff;
        border:1px solid #e5ebf4;
        border-radius:14px;
        padding:10px;
        box-shadow:0 10px 20px rgba(31,41,55,.07);
    }

    .mobile-dropdown.open{
        display:block;
    }

    .mobile-nav{
        display:grid;
        gap:6px;
    }

.mobile-nav a{
    padding:10px 12px;
    border-radius:10px;
    background:#f8fbff;
    font-weight:600;
    font-size:1.32rem;
    line-height:1.45;
    letter-spacing:-0.15px;
    color:#334155;
}
    .mobile-nav a.active{
        background:#eef3ff;
        color:#2449d7;
    }

    .mobile-user-box{
        margin-top:8px;
        padding:10px;
        border-radius:12px;
        background:#f8fbff;
    }

    .mobile-user-company{
        font-size:1.4rem;
        color:#6f7a8f;
        font-weight:900;
    }

    .mobile-user-name{
        font-size:1.15rem;
        font-weight:700;
        margin-top:3px;
    }

    .mobile-action-buttons{
        margin-top:8px;
        display:grid;
        gap:6px;
    }

    .mobile-action-btn{
        height:38px;
        border-radius:10px;
        font-size:1.15rem;
    }

    .main-area{
        min-width:0;
    }

    .page-content{
        min-height:auto;
        padding:8px;
        border-radius:14px;
        border:1px solid #e8eef8;
        box-shadow:0 8px 20px rgba(62,84,131,.05);
    }

    .section-card,
    .table-card,
    .form-card{
        border-radius:14px;
        padding:10px;
        box-shadow:0 8px 18px rgba(31,41,55,.05);
    }

    .section-card + .section-card,
    .table-card + .table-card,
    .form-card + .table-card{
        margin-top:8px;
    }

    @media (max-width: 1100px){
    .card-title{
        font-size:1.35rem;
        font-weight:700;
        color:#0f172a;
        margin-bottom:8px;
        line-height:1.4;
        letter-spacing:-0.2px;
        padding-right:0;
    }

    .card-desc{
        font-size:1.15rem;
        font-weight:500;
        color:#475569;
        line-height:1.65;
        margin:0;
        letter-spacing:-0.1px;
    }

    .stat-label{
        font-size:1.15rem;
        font-weight:600;
        margin-bottom:4px;
        color:#64748b;
    }

    .stat-value{
        font-size:1.35rem;
        font-weight:700;
        color:#334155;
        line-height:1.2;
        letter-spacing:-0.2px;
    }
}

    .stat-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }

    .stat-box{
        padding:11px;
        border-radius:14px;
    }

    

    .action-row{
        gap:10px;
        margin-top:10px;
    }

    .action-row .btn-start{
        width:calc(50% - 5px);
        max-width:none;
        height:46px;
        padding:0 10px;
        font-size:1.4rem;
        border-radius:28px;
    }

    .btn{
        height:38px;
        padding:0 12px;
        border-radius:10px;
        font-size:1.15rem;
    }

    .btn-sm{
        height:32px;
        padding:0 10px;
        font-size:1.05rem;
        border-radius:9px;
        margin-right:4px;
    }

    .form-grid{
        grid-template-columns:1fr;
        gap:10px;
    }

    .form-group{
        gap:6px;
    }

    .label{
        font-size:1.05rem;
    }

    .input,
    .select,
    .textarea{
        padding:10px 11px;
        border-radius:12px;
        font-size:1.2rem;
    }

    .textarea{
        min-height:82px;
    }

    .help{
        font-size:1rem;
    }

    .notice{
        padding:10px 12px;
        border-radius:10px;
        font-size:1.1rem;
        margin-bottom:10px;
    }

    .empty-box{
        padding:18px 12px;
        border-radius:12px;
        font-size:1.1rem;
    }

    .table-wrap{
        overflow:auto;
        -webkit-overflow-scrolling:touch;
    }

    table{
        min-width:640px;
    }

    th,
    td{
        padding:9px 8px;
        font-size:1.1rem;
    }

    th{
        font-size:1.05rem;
    }

    .badge,
    .badge-blue,
    .badge-green,
    .badge-gray,
    .badge-red{
        padding:5px 9px;
        font-size:1.05rem;
    }
}

@media (max-width: 768px){
    html[data-font-scale="sm"]{font-size:11px;}
    html[data-font-scale="md"]{font-size:13px;}
    html[data-font-scale="lg"]{font-size:15px;}
	html[data-font-scale="lg2"]{font-size:17px;}
	html[data-font-scale="lg3"]{font-size:19px;}
	
    .action-row .btn-start{
        font-size:1.3rem;
        height:44px;
    }
}

@media (max-width: 640px){
    .app-layout{
        padding:2px;
    }

    .mobile-top-wrap{
        margin-bottom:4px;
    }

    .mobile-topbar{
        padding:7px 8px;
        border-radius:12px;
    }

    .mobile-brand{
        font-size:2.1rem;
        font-weight:600;
    }

    .mobile-brand-sub{
        font-size:0.95rem;
    }

    .mobile-actions{
        gap:5px;
    }

    .mobile-icon-btn{
        width:36px;
        height:36px;
        border-radius:10px;
    }

    .mobile-font-btn{
        font-size:11px;
    }

    .mobile-menu-btn span{
        width:14px;
    }

    .page-content{
        padding:6px;
        border-radius:12px;
    }

    .section-card,
    .table-card,
    .form-card{
        padding:8px;
        border-radius:12px;
    }

    .card-title{
        font-size:1.35rem;
    }

    .card-desc{
        font-size:1.1rem;
        line-height:1.45;
    }

    .stat-grid{
        grid-template-columns:1fr;
        gap:6px;
    }

    .stat-box{
        padding:10px;
    }

    .stat-label{
        font-size:1.05rem;
        font-weight:600;
    }

    .stat-value{
        font-size:1.35rem;
        font-weight:700;
    }

    .mobile-nav a{
        font-size:1.1rem;
        padding:8px 9px;
    }

    .mobile-user-name{
        font-size:1.05rem;
    }

    .input,
    .select,
    .textarea{
        font-size:1.15rem;
        padding:9px 10px;
    }

    th,
    td{
        font-size:1.05rem;
        padding:8px 7px;
    }

    .btn{
        height:36px;
        font-size:1.1rem;
    }

    .action-row{
        gap:8px;
    }

    .action-row .btn-start{
        width:calc(50% - 4px);
        height:42px;
        font-size:1.25rem;
        padding:0 8px;
        border-radius:26px;
    }
}
@media (max-width: 640px){
    .mobile-nav a{
        font-size:1.18rem;
        padding:9px 10px;
        line-height:1.4;
    }
}