@charset "UTF-8";
/* ============================================================================
   WORK VITAL 새 관리자 (admin.workvital.co.kr)            2026-09-18

   기준
   - 레이아웃·색·폰트: CheckON portal(admin/assets/css/portal.css)을 옮겨 왔다.
     네이비 사이드바(#2C3E50) + 틸 강조(#16A085), Roboto + Noto Sans KR.
   - 영역 구분: docs/DESIGN.md §4 「면으로 영역을 나누고, 선 굵기로 위계를 준다」.
     입력요소·버튼에는 항상 보이는 테두리, 표는 중립 그레이 줄무늬.
   - 글자 크기는 정수 px 로만 쓴다. 소수점 px 에서 한글이 뭉개진다 (DESIGN.md §2).
   - Metronic 을 쓰지 않는다. 기존 관리자(adm)의 style.bundle.css 와 섞이지 않게
     클래스 이름은 portal 체계(.portal-*, .btn, .card …)를 따른다.
   ============================================================================ */

:root {
    /* 브랜드 (portal) */
    --primary:        #2C3E50;
    --primary-dark:   #1A252F;
    --accent:         #16A085;
    --accent-dark:    #138D75;
    --accent-soft:    #E8F6F3;

    /* 면
       2026-09-18: 콘텐츠 박스(카드 헤더·표 헤더·표 줄무늬)의 회청색 배경이 초록빛으로 보인다는
       피드백으로 전부 흰색으로 바꿨다. 영역 구분은 배경색이 아니라 선으로만 한다.
       --surface-muted 는 배지·보조 칩처럼 작은 요소에만 쓴다. */
    --body-bg:        #F5F7FA;
    --surface:        #FFFFFF;
    --surface-muted:  #F4F5F7;   /* 작은 칩·배지 배경 전용 */
    --surface-hover:  #F7F8FA;   /* 표 행 hover — 색 없이 아주 옅게 */

    /* 선 — 굵기로 위계 */
    --line:           #DFE3E8;   /* 기본 구분선·입력요소 테두리 */
    --line-strong:    #C5CCD5;   /* 섹션 경계·표 헤더 밑줄(2px) */

    /* 글자 */
    --text-strong:    #1F2A36;
    --text:           #333333;
    --text-secondary: #555555;
    --text-muted:     #7A8290;

    /* 상태 */
    --success:        #16A085;
    --danger:         #E74C3C;
    --warning:        #F39C12;
    --info:           #1976D2;

    --radius:         6px;
    --radius-sm:      4px;
    --sidebar-width:  228px;
    --sidebar-collapsed: 60px;
    --topbar-height:  56px;

    --font: 'Roboto', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

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

body {
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    background: var(--body-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--text-strong); }
p { margin: 0; }
svg { display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================================================
   레이아웃
   ============================================================================ */
.portal-layout { display: flex; min-height: 100vh; }

/* ---- 사이드바 ---------------------------------------------------------- */
.portal-sidebar {
    width: var(--sidebar-width);
    background: var(--primary);
    color: #FFFFFF;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width .25s ease, transform .25s ease;
}

.sidebar-header {
    height: var(--topbar-height);
    padding: 0 14px 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
    color: #FFFFFF;
    white-space: nowrap;
}
.sidebar-brand strong { font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.sidebar-brand span   { font-size: 12px; font-weight: 400; color: var(--accent); }

.sidebar-toggle {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .08);
    border: 0; border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    flex-shrink: 0;
}
.sidebar-toggle:hover { background: rgba(255, 255, 255, .16); color: #FFFFFF; }
.sidebar-toggle svg { width: 16px; height: 16px; }

.sidebar-nav { flex: 1; padding: 10px 0; overflow-y: auto; }

.nav-section { margin-bottom: 6px; }
.nav-section-title {
    padding: 10px 18px 6px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, .42);
    letter-spacing: .04em;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 18px 10px 15px;
    border: 0;
    border-left: 3px solid transparent;
    background: none;
    color: rgba(255, 255, 255, .74);
    text-decoration: none;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #FFFFFF; }
.nav-item.active { background: rgba(255, 255, 255, .1); color: #FFFFFF; border-left-color: var(--accent); }
.nav-item > svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item > .nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item.is-disabled { cursor: default; color: rgba(255, 255, 255, .38); }
.nav-item.is-disabled:hover { background: none; }

.nav-arrow { width: 14px !important; height: 14px !important; opacity: .7; transition: transform .2s; }
.nav-group.open .nav-arrow { transform: rotate(180deg); }

.nav-submenu {
    display: none;
    margin: 2px 10px 8px 12px;
    padding: 4px 0;
    border-left: 2px solid rgba(22, 160, 133, .35);
    background: rgba(255, 255, 255, .05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.nav-group.open .nav-submenu { display: block; }

.nav-subitem {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px 8px 14px;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    font-size: 12px;
}
.nav-subitem:hover { color: #FFFFFF; background: rgba(22, 160, 133, .14); }
.nav-subitem.active { color: #FFFFFF; background: rgba(22, 160, 133, .22); }
.nav-subitem > .nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-subitem.is-disabled { color: rgba(255, 255, 255, .36); cursor: default; }
.nav-subitem.is-disabled:hover { background: none; }

/* 메뉴 표시: 기존 관리자로 연결 / 준비 중 */
.nav-tag {
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    line-height: 16px;
}
.nav-tag.legacy { color: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .25); }
.nav-tag.soon   { color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }

.sidebar-footer { padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .1); flex-shrink: 0; }

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, .06);
    border-radius: var(--radius);
}
.sidebar-user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: rgba(255, 255, 255, .5); }

.sidebar-logout {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, .08);
    border: 0; border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
    cursor: pointer;
}
.sidebar-logout:hover { background: rgba(255, 255, 255, .16); color: #FFFFFF; }
.sidebar-logout svg { width: 14px; height: 14px; }

/* 접힘 */
.portal-sidebar.collapsed { width: var(--sidebar-collapsed); }
.portal-sidebar.collapsed .sidebar-brand,
.portal-sidebar.collapsed .nav-section-title,
.portal-sidebar.collapsed .nav-label,
.portal-sidebar.collapsed .nav-arrow,
.portal-sidebar.collapsed .nav-tag,
.portal-sidebar.collapsed .nav-submenu,
.portal-sidebar.collapsed .sidebar-user-info,
.portal-sidebar.collapsed .sidebar-logout span { display: none !important; }
.portal-sidebar.collapsed .sidebar-header { justify-content: center; padding: 0; }
.portal-sidebar.collapsed .nav-item { justify-content: center; padding: 12px 0; border-left-width: 0; }
.portal-sidebar.collapsed .nav-item > svg { width: 20px; height: 20px; }
.portal-sidebar.collapsed .sidebar-footer { padding: 12px 8px; }
.portal-sidebar.collapsed .sidebar-user { justify-content: center; padding: 6px 0; }

/* ---- 본문 --------------------------------------------------------------- */
.portal-main {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left .25s ease;
}
.portal-main.expanded { margin-left: var(--sidebar-collapsed); }

.portal-topbar {
    position: sticky; top: 0; z-index: 100;
    height: var(--topbar-height);
    padding: 0 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.topbar-breadcrumb b { color: var(--text-strong); font-weight: 500; }
.topbar-breadcrumb .sep { color: var(--line-strong); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-link { font-size: 12px; color: var(--text-secondary); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.topbar-link:hover { color: var(--accent); }
.topbar-link svg { width: 13px; height: 13px; }

.mobile-menu-btn {
    display: none;
    width: 34px; height: 34px;
    align-items: center; justify-content: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.mobile-menu-btn svg { width: 18px; height: 18px; }

.portal-container { flex: 1; width: 100%; max-width: 1440px; padding: 24px 28px 32px; }

.portal-footer { padding: 16px 28px 20px; font-size: 11px; color: var(--text-muted); }

/* 페이지 제목 */
.page-header {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    margin-bottom: 20px;
}
.page-title { font-size: 20px; font-weight: 700; line-height: 1.4; }
.page-desc  { margin-top: 4px; font-size: 13px; color: var(--text-muted); }
.page-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ============================================================================
   컴포넌트
   ============================================================================ */

/* ---- 카드 --------------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.card + .card { margin-top: 20px; }
.card-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 56px;
    padding: 12px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 0 0;
}
.card-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.card-title small { font-size: 12px; font-weight: 400; color: var(--text-muted); }
/* 카드 제목 앞 아이콘: 선 아이콘을 테두리 타일에 담는다 */
.card-title-icon {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--primary);
    flex-shrink: 0;
}
.card-title-icon svg { width: 16px; height: 16px; }
.card-note { margin-top: 14px; font-size: 12px; color: var(--text-muted); }
.card-body { padding: 20px; }
.card-body.flush { padding: 0; }

/* ---- 지표 카드 ----------------------------------------------------------
   아이콘 타일 + 숫자 + 보조 지표 한 줄. 윗변에만 색 띠를 두르는 방식은 쓰지 않는다.
   강조가 필요한 카드(.is-featured)는 테두리 전체를 강조색으로 두르고,
   상태를 알릴 때만 모서리 리본(.kpi-ribbon)을 단다. */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi {
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.kpi-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    color: var(--primary);
    background: var(--surface);
}
.kpi-icon svg { width: 24px; height: 24px; stroke-width: 1.75; }
.kpi-body { display: flex; flex-direction: column; min-width: 0; }
.kpi-label { font-size: 13px; color: var(--text-secondary); }
.kpi-value {
    margin-top: 2px;
    font-family: 'Roboto', sans-serif; font-size: 28px; font-weight: 700; line-height: 1.2;
    color: var(--text-strong); font-variant-numeric: tabular-nums;
}
.kpi-value small { margin-left: 3px; font-family: var(--font); font-size: 13px; font-weight: 400; color: var(--text-muted); }
.kpi-sub {
    margin-top: 6px; padding-top: 6px;
    border-top: 1px dashed var(--line);
    font-size: 12px; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.kpi.is-featured { border: 2px solid var(--accent); padding: 19px; }
.kpi.is-featured .kpi-icon { border-color: var(--accent); color: var(--accent-dark); }
.kpi.is-featured .kpi-value { color: var(--accent-dark); }

/* 모서리 리본 — 오른쪽 위에 45° 로 걸친다 */
.kpi-ribbon {
    position: absolute;
    top: 14px; right: -34px;
    width: 120px;
    padding: 3px 0;
    transform: rotate(45deg);
    background: var(--accent);
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .12em;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

/* ---- 진행 막대 (여러 구간) ---------------------------------------------- */
.progress-stack {
    display: flex; gap: 3px;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface-muted);
}
.progress-stack span { display: block; height: 100%; min-width: 0; }
.progress-stack span:first-child { border-radius: 6px 0 0 6px; }
.progress-stack span:last-child { border-radius: 0 6px 6px 0; }
.seg-new    { background: var(--accent); }
.seg-legacy { background: var(--primary); opacity: .55; }
.seg-soon   { background: #D5DAE1; }
.progress-legend {
    display: flex; flex-wrap: wrap; gap: 8px 20px;
    margin: 12px 0 0; padding: 0; list-style: none;
    font-size: 13px; color: var(--text-secondary);
}
.progress-legend li { display: flex; align-items: center; gap: 6px; }
.progress-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.progress-legend b { color: var(--text-strong); font-family: 'Roboto', sans-serif; }
.nav-tag-sample {
    display: inline-block; padding: 0 6px;
    border: 1px solid var(--line-strong); border-radius: 3px;
    font-size: 11px; color: var(--text-secondary);
}

/* ---- 버튼 --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-accent  { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
/* 보조 버튼도 테두리를 보이게 한다 — 테두리 없는 버튼이 화면을 떠 보이게 했다 (DESIGN.md §4) */
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger  { background: var(--danger); border-color: var(--danger); color: #FFFFFF; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---- 폼 ----------------------------------------------------------------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.form-control, .form-select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
    transition: border-color .15s, box-shadow .15s;
}
.form-control::placeholder { color: #A3AAB5; }
.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(22, 160, 133, .14);
}
.form-control.is-invalid { border-color: var(--danger); }
.input-group { position: relative; }
.input-group .form-control { padding-right: 42px; }
.input-addon {
    position: absolute; top: 0; right: 0;
    width: 40px; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: none; border: 0;
    color: var(--text-muted); cursor: pointer;
}
.input-addon:hover { color: var(--primary); }
.input-addon svg { width: 17px; height: 17px; }

/* ---- 표 ----------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
/* 칸은 줄바꿈하지 않고 .table-wrap 안에서 가로 스크롤한다. 좁은 화면에서 「조직/문화/진단」처럼
   한 글자씩 세로로 쪼개지는 것을 막는다. 긴 제목 칸(.col-main)만 줄바꿈을 허용한다. */
.table th, .table td { padding: 11px 14px; text-align: left; font-size: 13px; vertical-align: middle; white-space: nowrap; }
.table td.col-main { white-space: normal; min-width: 160px; }
/* 표 헤더·행 모두 흰 배경. 헤더는 2px 밑줄, 행은 1px 구분선으로만 나눈다 */
.table thead th {
    background: var(--surface);
    border-bottom: 2px solid var(--line-strong);
    color: var(--text-muted);
    font-size: 12px; font-weight: 500;
    white-space: nowrap;
}
.table tbody td { border-bottom: 1px solid var(--line); color: var(--text-secondary); background: var(--surface); }
.table tbody tr:hover td { background: var(--surface-hover); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .col-main { color: var(--text-strong); font-weight: 500; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .center { text-align: center; }

/* ---- 배지·알림 ---------------------------------------------------------- */
.badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px; font-weight: 500; line-height: 18px;
    white-space: nowrap;
}
.badge-success { background: var(--accent-soft); color: var(--accent-dark); }
.badge-warning { background: #FFF6E5; color: #B26B00; }
.badge-danger  { background: #FDECEA; color: #C0392B; }
.badge-muted   { background: var(--surface-muted); color: var(--text-muted); }

.alert {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-size: 13px;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-danger  { background: #FDECEA; border-color: #F5C2BC; color: #B03A2E; }
.alert-success { background: var(--accent-soft); border-color: #A9DCD0; color: var(--accent-dark); }
.alert-info    { background: #EAF2FB; border-color: #BDD6F0; color: #1D5A99; }

.empty-state { padding: 48px 20px; text-align: center; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border: 1px dashed var(--line-strong); border-radius: 16px;
    color: var(--text-muted);
}
.empty-icon svg { width: 26px; height: 26px; stroke-width: 1.75; }

.badge-primary { background: #EAEEF3; color: var(--primary); }

.card-footer { padding: 14px 20px; border-top: 1px solid var(--line); }

.topbar-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.topbar-breadcrumb a:hover { color: var(--accent); }

/* ============================================================================
   목록 화면
   ============================================================================ */

/* ---- 검색 바: 라벨을 입력칸 위에 두고 한 줄로 흐른다 ------------------- */
.filter-card { margin-bottom: 20px; }
.filter-bar {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px;
    padding: 16px 20px;
}
.filter-field { display: flex; flex-direction: column; min-width: 150px; }
.filter-field .form-label { margin-bottom: 6px; font-size: 12px; color: var(--text-muted); }
.filter-grow { flex: 1 1 280px; }
.filter-actions { display: flex; gap: 8px; margin-left: auto; }

.input-icon { position: relative; }
.input-icon > svg {
    position: absolute; top: 50%; left: 12px;
    width: 16px; height: 16px; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
}
.input-icon .form-control { padding-left: 36px; }

.inline-select { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.form-select-sm { height: 30px; width: auto; padding: 0 28px 0 10px; font-size: 12px; }

/* select 화살표 (브라우저 기본 모양 제거 후 직접 그림) */
.form-select {
    appearance: none; -webkit-appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8290' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
}

/* ---- 페이지네이션 ------------------------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pagination-info { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pagination-pages { display: flex; align-items: center; gap: 4px; }
.page-btn {
    min-width: 32px; height: 32px; padding: 0 8px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-secondary); text-decoration: none;
    font-family: 'Roboto', sans-serif; font-size: 13px;
}
a.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.is-current { background: var(--primary); border-color: var(--primary); color: #FFFFFF; font-weight: 500; }
.page-btn.is-disabled { color: #C2C8D0; cursor: default; }
.page-gap { padding: 0 4px; color: var(--text-muted); }

/* ---- 표 안의 조합 칸 ---------------------------------------------------- */
.company-cell { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.company-cell:hover b { color: var(--accent-dark); text-decoration: underline; }
.company-logo {
    position: relative;
    width: 40px; height: 40px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface);
    overflow: hidden;
}
.company-logo img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; background: var(--surface); }
.company-initial { font-size: 15px; font-weight: 700; color: var(--primary); }
.company-text { display: flex; flex-direction: column; min-width: 0; }
.company-text b { font-weight: 500; color: var(--text-strong); }
.company-text small { font-size: 12px; color: var(--text-muted); }

.cell-2line { display: flex; flex-direction: column; gap: 2px; }
.cell-2line small { font-size: 12px; color: var(--text-muted); }
.cell-2line.align-right { align-items: flex-end; }
.table-members td { padding-top: 12px; padding-bottom: 12px; }

/* ============================================================================
   입력 폼 화면
   ============================================================================ */
.form-layout { display: flex; flex-direction: column; gap: 20px; }
.form-layout .card + .card { margin-top: 0; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid[hidden] { display: none; }
.form-field { min-width: 0; }
.span-2 { grid-column: span 2; }
.req-mark { color: var(--danger); font-weight: 700; }
.field-help, .field-error, .field-warn { margin-top: 6px; font-size: 12px; line-height: 1.5; }
.field-help  { color: var(--text-muted); }
.field-error { color: #C0392B; }
.field-warn  { color: #B26B00; }
.form-select.is-invalid { border-color: var(--danger); }

.textarea { height: auto; min-height: 100px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.field-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 6px; }
.field-foot .field-error { margin-top: 0; }
.char-count { font-size: 12px; color: var(--text-muted); font-family: 'Roboto', sans-serif; white-space: nowrap; }

/* ---- 이미지 업로드 ------------------------------------------------------ */
.dropzone {
    display: flex; align-items: center; gap: 16px;
    padding: 16px;
    border: 1px dashed var(--line-strong); border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent); background: #FBFDFC; }
.dropzone.is-invalid { border-color: var(--danger); }
.dropzone-preview, .dropzone-empty {
    width: 88px; height: 64px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 8px;
    background: var(--surface);
    overflow: hidden;
}
.dropzone-preview[hidden], .dropzone-empty[hidden] { display: none; }
.dropzone-preview img { max-width: 80px; max-height: 56px; object-fit: contain; }
.dropzone-empty { color: var(--text-muted); }
.dropzone-empty svg { width: 26px; height: 26px; stroke-width: 1.5; }
.dropzone-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dropzone-text b { font-weight: 500; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone-text small { font-size: 12px; color: var(--text-muted); }
.dropzone-btn { pointer-events: none; }

/* ---- 선택 카드 (라디오) ------------------------------------------------- */
.choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
    display: flex; flex-direction: column; gap: 4px;
    padding: 16px 16px 16px 46px;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}
.choice-body::before {
    content: '';
    position: absolute; left: 16px; top: 18px;
    width: 16px; height: 16px;
    border: 1.5px solid var(--line-strong); border-radius: 50%;
    background: var(--surface);
}
.choice-body b { font-size: 14px; color: var(--text-strong); }
.choice-body b small { margin-left: 4px; font-size: 12px; font-weight: 400; color: var(--text-muted); }
.choice-body > span { font-size: 12px; color: var(--text-muted); }
.choice-card:hover .choice-body { border-color: var(--primary); }
.choice-card input:checked + .choice-body { border: 2px solid var(--accent); padding: 15px 15px 15px 45px; }
.choice-card input:checked + .choice-body::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--surface); background: var(--accent); left: 15px; top: 17px; }
.choice-card input:focus-visible + .choice-body { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- 저장 바: 화면 아래 고정 ------------------------------------------- */
.form-actions {
    position: sticky; bottom: 0; z-index: 50;
    display: flex; align-items: center; justify-content: flex-end; gap: 8px;
    margin: 20px -28px -32px;
    padding: 14px 28px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 12px rgba(31, 42, 54, .04);
}
.form-actions-hint { margin-right: auto; font-size: 12px; color: var(--text-muted); }

/* ============================================================================
   로그인 — 기존 관리자(adm) 로그인 화면의 배치를 따른다
   (왼쪽 입력 폼 · 오른쪽 브랜드 패널과 좌측으로 꺾인 도형)
   ============================================================================ */
.auth-page { display: flex; min-height: 100vh; background: var(--surface); }

.auth-form-side {
    flex: 1 1 50%;
    display: flex; align-items: center; justify-content: center;
    padding: 48px 24px;
}
.auth-form { width: 100%; max-width: 400px; }
.auth-brand-mark { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 14px; color: var(--primary); }
.auth-brand-mark strong { font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.auth-brand-mark span { font-size: 12px; color: var(--accent); }
.auth-title { font-size: 26px; font-weight: 700; text-align: center; color: var(--text-strong); }
.auth-desc  { margin: 8px 0 36px; text-align: center; font-size: 13px; color: var(--text-muted); }
.auth-form .form-group { margin-bottom: 20px; }
.auth-form .form-label { font-size: 14px; }
.auth-form .form-control { height: 46px; font-size: 14px; }
.auth-form .alert { margin-bottom: 20px; }
.auth-foot { margin-top: 28px; text-align: center; font-size: 12px; color: var(--text-muted); }

.auth-brand-side {
    flex: 1 1 50%;
    position: relative;
    overflow: hidden;
    background: var(--surface);
}
.auth-shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-brand-content {
    position: relative; z-index: 1;
    height: 100%;
    padding: 48px 48px 48px 22%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    color: #FFFFFF; text-align: center;
}
.auth-brand-content img { height: 44px; width: auto; }
.auth-brand-content h2 { color: #FFFFFF; font-size: 28px; font-weight: 700; line-height: 1.4; }
.auth-brand-content p { font-size: 14px; color: rgba(255, 255, 255, .72); line-height: 1.7; }

/* ============================================================================
   반응형
   ============================================================================ */
@media (max-width: 1100px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .form-grid, .form-grid.cols-3, .choice-cards { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .filter-field { flex: 1 1 100%; }
    .filter-actions { margin-left: 0; }
    .form-actions { margin: 20px -16px -16px; padding: 12px 16px; }
    .form-actions-hint { display: none; }
    .dropzone { flex-wrap: wrap; }
}

@media (max-width: 900px) {
    .auth-brand-side { display: none; }
}

@media (max-width: 768px) {
    .portal-sidebar { transform: translateX(-100%); width: var(--sidebar-width) !important; }
    .portal-sidebar.open { transform: translateX(0); box-shadow: 0 0 0 100vmax rgba(15, 23, 32, .4); }
    .portal-main, .portal-main.expanded { margin-left: 0; }
    .mobile-menu-btn { display: inline-flex; }
    .sidebar-toggle { display: none; }
    .portal-topbar { padding: 0 16px; }
    .portal-container { padding: 16px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .topbar-link span { display: none; }
}

@media (max-width: 520px) {
    .kpi-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
