@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

:root {
    --bg: #cbd5df;
    --surface-0: #f2f2f2;
    --surface-1: #d8e1e8;
    --surface-2: #c7d2dc;
    --surface-3: #b6c3cf;
    --surface-dark: #24313d;
    --surface-dark-2: #2a99a3;
    --text: #1f2a33;
    --text-soft: #536170;
    --text-light: #dce6ef;
    --line: #91a1b2;
    --line-strong: #6f8195;
    --accent: #31485e;
    --accent-2: #415c74;
    --danger: #8f3a3a;
    --success: #355c48;
    --page-width: 1420px;
    --header-height: 48px;
    --sidebar-width: 240px;
    --font: 'Pretendard', 'Noto Sans KR', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
    background: linear-gradient(180deg, #f2f2f2 0%, #c8d2dc 100%);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
	padding-bottom: 43px;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.page-shell { min-height: 100vh; }
.page-frame {
    width: min(100%, var(--page-width));
    margin: 0 auto;
    padding-top: var(--header-height);
}

.site-header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 500;
    background: var(--surface-dark);
    color: var(--text-light);
    border-bottom: 1px solid #101820;
}

.site-header__inner {
    width: min(100%, var(--page-width));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    align-items: center;
}

.site-brand,
.site-nav,
.site-user-box {
    height: 100%;
    display: flex;
    align-items: center;
}

.site-brand {
    padding: 0 16px;
    border-right: 1px solid rgba(220, 230, 239, 0.16);
    gap: 10px;
}

.site-logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-tagline {
    font-size: 11px;
    color: #aab9c7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-nav {
    gap: 0;
    padding: 0 12px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    color: #d2dde8;
    border-left: 1px solid rgba(220, 230, 239, 0.08);
}

.site-nav a:hover,
.site-nav a.is-active {
    background: var(--surface-dark-2);
    color: #ffffff;
}

.site-user-box {
    justify-content: flex-end;
    padding: 0 16px;
    border-left: 1px solid rgba(220, 230, 239, 0.16);
    gap: 12px;
    color: #dbe5ef;
}

.site-user-meta {
    text-align: right;
    line-height: 1.35;
}
.site-user-meta>div {color: #ffffff;}

.site-user-actions {
    display:flex;
    align-items:center;
    gap:8px;
}
.site-user-actions a {width:96px;}
.site-user-actions form { margin:0; }
.site-user-actions button {width:96px;}

.button--ghost-light {
    background: transparent;
    color: #eef5fb;
    border-color: rgba(220, 230, 239, 0.45);
}
.button--ghost-light:hover {
    background: rgba(255,255,255,0.08);
}

.layout-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: calc(100vh - var(--header-height));
}

.layout-side {
    background: var(--surface-2);
    border-right: 1px solid var(--line-strong);
    padding: 18px 14px 20px;
}

.layout-main {
    background: var(--surface-0);
    padding: 18px;
}

.side-section + .side-section { margin-top: 16px; }
.side-title {
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-strong);
}

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

.side-nav a {
    display: block;
    padding: 9px 10px;
    background: rgba(255,255,255,0.24);
    border: 1px solid rgba(111, 129, 149, 0.55);
}

.side-nav a:hover,
.side-nav a.is-active {
    background: rgba(36, 49, 61, 0.12);
}

.module,
.card,
.panel,
.notice,
.data-table-wrap {
    background: var(--surface-1);
    border: 1px solid var(--line-strong);
}

.card,
.panel,
.notice,
.data-table-wrap { padding: 16px; }
.module { padding: 18px; }

.grid-2,
.grid-3,
.dashboard-grid {
    display: grid;
    gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-grid { grid-template-columns: 1.25fr 1fr; }

.stack-8 > * + * { margin-top: 8px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-20 > * + * { margin-top: 20px; }
.stack-24 > * + * { margin-top: 24px; }

.FPH, .page-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}
.FSH, .section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
.FMH, .module-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}
.FTS, .topic-text {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}
.FTB, .body-text {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}
.FTC, .caption-text {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-soft);
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
}

.page-head__meta {
    min-width: 220px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(111, 129, 149, 0.55);
}

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

.kpi-box {
    min-height: 120px;
    padding: 14px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    background: var(--surface-dark);
    color: #edf4fb;
    border: 1px solid #13202b;
    font-size: 11px;
    font-weight: 600;
}

.button,
button,
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: #dde5ec;
}

.button--primary {
    background: var(--surface-dark);
    color: #eff5fb;
    border-color: #16232f;
}
.button--primary:hover { background: #1d2833; }
.button--danger {
    background: #ead9d9;
    border-color: #b48d8d;
    color: #5f2020;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-row--full { grid-column: 1 / -1; }
label { font-size: 12px; font-weight: 700; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    background: #eff4f8;
    color: var(--text);
    outline: none;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--surface-dark);
    background: #f7fafc;
}

.table-head,
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.data-table {
    width: 100% !important;
    border-collapse: collapse;
}
.data-table th {width:50%;}
.data-table th,
.data-table td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid var(--line);
    vertical-align: top;
}
.data-table th {
    background: var(--surface-2);
    font-size: 12px;
    font-weight: 700;
}
.data-table td {
    background: rgba(255,255,255,0.2);
    font-size: 13px;
}

.notice { color: var(--text); }
.notice--success {
    background: #d5e4dc;
    border-color: #88a692;
}
.notice--danger {
    background: #ead9d9;
    border-color: #b48d8d;
}

.site-footer {
    border-top: 1px solid var(--line-strong);
    /* background: var(--surface-2); */
	background: #5c7082;
	position: fixed; bottom: 0; left: 0; right: 0;
}
.site-footer__inner {
    width: min(100%, var(--page-width));
    margin: 0 auto;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    /* color: var(--text-soft); */
	color: #dce8f2;
}

@media (max-width: 1100px) {
    .site-header__inner { grid-template-columns: 180px 1fr 220px; }
    .layout-shell { grid-template-columns: 200px 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .site-header { height: auto; }
    .site-header__inner {
        grid-template-columns: 1fr;
        height: auto;
    }
    .site-brand,
    .site-nav,
    .site-user-box {
        min-height: 48px;
        border: 0;
    }
    .page-frame { padding-top: 144px; }
    .layout-shell { grid-template-columns: 1fr; }
    .layout-side { border-right: 0; border-bottom: 1px solid var(--line-strong); }
    .form-grid,
    .grid-2,
    .kpi-grid { grid-template-columns: 1fr; }
    .page-head { flex-direction: column; }
}


.subnav-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.subnav-grid--project { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.subnav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    background: rgba(255,255,255,0.2);
}
.subnav-item:hover,
.subnav-item.is-active {
    background: rgba(36, 49, 61, 0.08);
    border-color: var(--surface-dark);
}

@media (max-width: 1100px) {
    .subnav-grid,
    .subnav-grid--project { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .subnav-grid,
    .subnav-grid--project { grid-template-columns: 1fr; }
}
