/* =========================================================
   labor_crm 스타일 — Meta Design System 적용
   기준: ../자료/design.md
   규칙: 흰 배경 · 플랫(그림자 없음) · 1px 헤어라인 테두리 ·
        알약형 버튼/뱃지(radius 100px) · 검정 1차버튼 · 코발트 액센트 ·
        이모지/유니코드 글리프 아이콘 금지 · Pretendard
   ========================================================= */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

:root {
    /* 폰트 */
    --font-display: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Helvetica Neue", Arial, sans-serif;
    --font-body:    "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Helvetica Neue", Arial, sans-serif;

    /* 브랜드 & 액센트 */
    --primary:       #0064e0;   /* 코발트 — 핵심 액센트(원래 구매 CTA 전용) */
    --primary-deep:  #0457cb;   /* 코발트 눌림 + 링크 */
    --primary-soft:  #e7f0ff;   /* 코발트 옅은 배경(활성 메뉴 등) */
    --ink-button:    #000000;   /* 1차 액션 버튼 */
    --fb-blue:       #1876f2;   /* 폼 포커스 / 정보 뱃지 */

    /* 시맨틱 */
    --success:   #31a24c;
    --attention: #f2a918;
    --warning:   #f7b928;
    --critical:  #e41e3f;

    /* 표면 */
    --canvas:        #ffffff;
    --surface-soft:  #f1f4f7;
    --hairline:      #ced0d4;
    --hairline-soft: #dee3e9;

    /* 텍스트 위계 */
    --ink-deep:      #0a1317;
    --ink:           #1c1e21;
    --charcoal:      #444950;
    --steel:         #5d6c7b;
    --stone:         #8595a4;
    --disabled-text: #bcc0c4;

    /* 간격 */
    --space-xxs: 4px; --space-xs: 8px; --space-md: 12px;
    --space-base: 16px; --space-lg: 20px; --space-xl: 24px; --space-xxl: 32px;

    /* 반경 */
    --radius-lg: 8px; --radius-xl: 16px; --radius-xxl: 24px; --radius-full: 100px;

    /* 모션 */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 150ms; --t-base: 200ms;

    /* 하위 호환 별칭 (기존 선택자 유지용) */
    --navy: var(--ink-deep);
    --navy-dark: var(--ink-deep);
    --blue: var(--primary);
    --blue-dark: var(--primary-deep);
    --blue-soft: var(--primary-soft);
    --gray: var(--steel);
    --gray-2: var(--stone);
    --gray-light: var(--surface-soft);
    --gray-border: var(--hairline-soft);
    --bg: var(--surface-soft);
    --white: var(--canvas);
    --green: var(--success);
    --orange: var(--attention);
    --red: var(--critical);
    --shadow: none;
    --radius: var(--radius-xl);
}

* , *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: -0.16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { margin: 0; font-family: var(--font-display); color: var(--ink-deep); }

/* ===== 로그인 ===== */
.login-body {
    background: var(--surface-soft);
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; margin: 0;
}
.login-box {
    background: var(--canvas); width: 380px; max-width: 92%;
    padding: 40px 34px; border-radius: var(--radius-xl);
    border: 1px solid var(--hairline-soft);
}
.login-title { font-size: 22px; font-weight: 500; margin: 0 0 6px; color: var(--ink-deep); }
.login-sub { color: var(--steel); margin: 0 0 24px; font-size: 14px; }
.login-form label { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--charcoal); }
.login-form input {
    width: 100%; height: 44px; border: 1px solid var(--hairline);
    border-radius: var(--radius-lg); padding: 0 14px; font-size: 16px; letter-spacing: -0.16px;
}
.login-form input:focus { outline: none; border: 2px solid var(--fb-blue); }
.login-hint { margin-top: 20px; font-size: 12px; color: var(--stone); text-align: center; }

/* ===== 레이아웃 ===== */
.layout { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    height: 60px; background: var(--canvas); color: var(--ink-deep);
    display: flex; align-items: center; padding: 0 22px; gap: 16px;
    position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--hairline-soft);
}
.topbar-title { font-weight: 600; font-size: 15px; }
.topbar-brand { display: flex; flex-direction: row; align-items: center; gap: 0; line-height: 1.2; min-width: 0; text-decoration: none; cursor: pointer; }
.topbar-brand:hover { text-decoration: none; }
.topbar-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.topbar-logo .brand-logo { height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 11px; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-logo { display: block; width: auto; }
.login-logo { text-align: center; margin-bottom: 20px; }
.login-logo .brand-logo { height: 64px; margin: 0 auto; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.topbar-user .user-name { color: var(--charcoal); }
.logout-link { color: var(--primary-deep); }
.menu-toggle { background: none; border: none; color: var(--ink-deep); cursor: pointer; display: none; padding: 6px; line-height: 0; }

.body-wrap { flex: 1; display: flex; }

.sidebar {
    width: 224px; background: var(--canvas); color: var(--steel);
    flex-shrink: 0; padding: 16px 12px; border-right: 1px solid var(--hairline-soft);
}
.sidebar-brand {
    display: flex; flex-direction: column; line-height: 1.25;
    padding: 6px 12px 16px; border-bottom: 1px solid var(--hairline-soft); margin-bottom: 12px;
}
.sb-company { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink-deep); }
.sb-service { font-size: 12px; color: var(--steel); }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
    color: var(--charcoal); padding: 10px 14px; font-size: 14px; border-radius: var(--radius-lg);
    transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.nav-item:hover { background: var(--surface-soft); text-decoration: none; color: var(--ink-deep); }
.nav-item.active { background: var(--primary-soft); color: var(--primary-deep); font-weight: 600; }
.nav-logout { margin-top: 10px; border-top: 1px solid var(--hairline-soft); padding-top: 14px; color: var(--steel); border-radius: 0; }

.content { flex: 1; padding: 28px 30px; min-width: 0; }

.sitefooter {
    background: var(--canvas); border-top: 1px solid var(--hairline-soft);
    padding: 16px 30px; font-size: 12px; color: var(--stone); line-height: 1.5;
}
.disclaimer { margin: 0 0 6px; }
.copyright { margin: 0; }

/* ===== 제목 / 헤더 ===== */
.page-title { font-size: 28px; font-weight: 500; margin: 0 0 22px; color: var(--ink-deep); letter-spacing: -0.4px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.page-head .page-title { margin: 0; }
.section-title { font-size: 16px; font-weight: 600; color: var(--ink-deep); display: flex; align-items: center; gap: 8px; }

/* ===== 브레드크럼 ===== */
.breadcrumb { font-size: 13px; color: var(--stone); margin-bottom: 16px; }
.breadcrumb a { color: var(--steel); }
.breadcrumb .sep { margin: 0 8px; color: var(--hairline); }

/* ===== 상세 헤더 ===== */
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.detail-title { font-size: 28px; font-weight: 500; letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; }
.detail-sub { margin: 8px 0 0; color: var(--steel); font-size: 14px; }
.detail-sub b { color: var(--ink-deep); font-weight: 600; }
.detail-sub .dot { margin: 0 8px; color: var(--hairline); }
.detail-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.inline-form { display: inline; margin: 0; }

/* ===== 요약 지표 (stat) ===== */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--canvas); border: 1px solid var(--hairline-soft); border-radius: var(--radius-xl); padding: 18px 20px; }
.stat-label { color: var(--steel); font-size: 13px; margin-bottom: 8px; }
.stat-value { font-size: 26px; font-weight: 500; color: var(--ink-deep); display: flex; align-items: baseline; gap: 6px; }
.stat-value.accent { color: var(--primary); }
.stat-unit { font-size: 13px; font-weight: 400; color: var(--stone); }

/* ===== 대시보드 카드 ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.card { background: var(--canvas); border: 1px solid var(--hairline-soft); border-radius: var(--radius-xl); padding: 18px 20px; }
.card-wide { grid-column: span 2; }
.card-label { color: var(--steel); font-size: 13px; margin-bottom: 10px; }
.card-value { font-size: 26px; font-weight: 500; color: var(--ink-deep); }
.card-value.accent { color: var(--primary); }
.card-link { display: flex; flex-direction: column; gap: 12px; justify-content: center; }

/* ===== 패널 ===== */
.panel { background: var(--canvas); border: 1px solid var(--hairline-soft); border-radius: var(--radius-xl); padding: 20px 22px; margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.count-badge {
    display: inline-flex; align-items: center; justify-content: center; min-width: 22px; padding: 2px 9px;
    border-radius: var(--radius-full); background: var(--surface-soft); color: var(--steel); font-size: 12px; font-weight: 700;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ===== 정보 그리드 ===== */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.info-item { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--surface-soft); }
.info-item-full { grid-column: span 2; }
.info-label { width: 116px; flex-shrink: 0; color: var(--steel); font-size: 13px; }
.info-value { color: var(--ink); font-size: 14px; word-break: break-all; }

/* ===== 테이블 ===== */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--surface-soft); vertical-align: middle; }
.table thead th { background: var(--canvas); color: var(--steel); font-weight: 600; white-space: nowrap; font-size: 12.5px; border-bottom: 1px solid var(--hairline-soft); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-soft); }
.table .empty { text-align: center; color: var(--stone); padding: 28px; }
.table .actions { white-space: nowrap; text-align: right; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.row-overdue { background: #fdeef0; }
.row-overdue:hover { background: #fbe2e6; }
.muted { color: var(--stone); font-size: 12px; margin-left: 3px; }
.table-detail th { width: 130px; background: var(--surface-soft); color: var(--steel); }
.table-detail td { color: var(--ink); }

/* ===== 필터/검색 박스 ===== */
.filter-box {
    background: var(--canvas); border: 1px solid var(--hairline-soft); border-radius: var(--radius-xl);
    padding: 14px 16px; margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.filter-box input, .filter-box select {
    height: 40px; padding: 0 12px; border: 1px solid var(--hairline); border-radius: var(--radius-lg);
    font-size: 14px; background: var(--canvas); font-family: inherit;
}
.filter-box input:focus, .filter-box select:focus { outline: none; border: 2px solid var(--fb-blue); }
.filter-box input[type=text] { min-width: 220px; }

/* ===== 폼 ===== */
.form-panel { background: var(--canvas); border: 1px solid var(--hairline-soft); border-radius: var(--radius-xl); padding: 26px; max-width: 940px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.form-row { display: flex; flex-direction: column; }
.form-row-full { grid-column: span 2; }
.form-row label { font-size: 13px; color: var(--charcoal); margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea {
    min-height: 44px; padding: 10px 14px; border: 1px solid var(--hairline);
    border-radius: var(--radius-lg); font-size: 15px; font-family: inherit; width: 100%; background: var(--canvas);
    letter-spacing: -0.16px;
}
.form-row textarea { resize: vertical; line-height: 1.6; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border: 2px solid var(--fb-blue); }
.form-row input[type="checkbox"], .form-row input[type="radio"] {
    width: 16px; height: 16px; min-width: 16px; min-height: 16px; padding: 0; margin: 0 7px 0 0;
    border-radius: 3px; box-shadow: none; accent-color: var(--fb-blue); vertical-align: middle;
}
.form-row label:has(> input[type="checkbox"]), .form-row label:has(> input[type="radio"]) {
    display: flex; align-items: center; gap: 6px; line-height: 1.5; cursor: pointer;
}
.form-actions { margin-top: 24px; display: flex; gap: 10px; }
.hint { font-size: 12px; color: var(--stone); margin: 7px 0 0; }

.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.check-item {
    display: flex; align-items: center; gap: 8px; font-size: 13px;
    background: var(--surface-soft); border: 1px solid var(--hairline-soft); border-radius: var(--radius-lg);
    padding: 10px 12px; cursor: pointer;
}
.check-item input { width: 16px; height: 16px; }

/* ===== 버튼 (알약형) ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 20px; border-radius: var(--radius-full); border: 1px solid var(--hairline);
    background: var(--canvas); color: var(--ink-deep); font-family: var(--font-display);
    font-size: 13px; font-weight: 700; letter-spacing: -0.14px; cursor: pointer; text-decoration: none;
    line-height: 1.2; transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; background: var(--surface-soft); }
.btn-primary { background: var(--ink-button); border-color: var(--ink-button); color: #fff; }
.btn-primary:hover { background: var(--charcoal); border-color: var(--charcoal); }
.btn-buy { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-buy:hover { background: var(--primary-deep); border-color: var(--primary-deep); }
.btn-light { background: var(--surface-soft); border-color: var(--hairline-soft); color: var(--ink-deep); }
.btn-light:hover { background: #e6ebf0; }
.btn-danger { background: var(--critical); border-color: var(--critical); color: #fff; }
.btn-danger:hover { background: #c2182f; border-color: #c2182f; }
.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-block { width: 100%; text-align: center; margin-top: 22px; padding: 14px; font-size: 15px; }

/* ===== 뱃지 (알약형) ===== */
.badge {
    display: inline-flex; align-items: center; padding: 4px 11px; border-radius: var(--radius-full);
    font-size: 11.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; color: #fff;
}
.badge-gray   { background: var(--stone); }
.badge-blue   { background: var(--fb-blue); }
.badge-orange { background: var(--warning); color: var(--ink-deep); }
.badge-green  { background: var(--success); }
.badge-red    { background: var(--critical); }
.badge-navy   { background: var(--ink-deep); }

/* ===== 알림 ===== */
.alert { padding: 13px 16px; border-radius: var(--radius-lg); margin-bottom: 18px; font-size: 13px; }
.alert-error   { background: #fdecee; color: #b01023; border: 1px solid #f6c7ce; }
.alert-success { background: #e7f5ec; color: #1d7a38; border: 1px solid #bfe6cc; }

/* ===== 페이지네이션 ===== */
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.page-total { margin-right: auto; color: var(--stone); font-size: 12.5px; }
.page-btn {
    min-width: 36px; height: 36px; padding: 0 11px; border-radius: var(--radius-full);
    border: 1px solid var(--hairline-soft); background: var(--canvas); color: var(--ink-deep);
    font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.page-btn:hover { background: var(--surface-soft); text-decoration: none; }
.page-btn.active { background: var(--ink-button); border-color: var(--ink-button); color: #fff; }
.page-gap { color: var(--stone); padding: 0 2px; }

/* ===== 서류(평문) ===== */
.doc-meta { color: var(--steel); font-size: 13px; margin: 0 0 10px; }
.doc-content {
    background: var(--surface-soft); border: 1px solid var(--hairline-soft); border-radius: var(--radius-lg);
    padding: 18px; white-space: pre-wrap; font-family: "D2Coding", "Malgun Gothic", monospace; font-size: 13px; line-height: 1.7;
}

/* ===== HTML 서류 (A4 용지) ===== */
.doc-paper {
    background: #fff; max-width: 820px; margin: 14px auto; padding: 40px 46px;
    border: 1px solid var(--hairline-soft); border-radius: var(--radius-lg);
    font-family: "Batang", "바탕", "Malgun Gothic", serif; color: #1a1a1a;
    font-size: 14px; line-height: 1.75; min-height: 300px; letter-spacing: 0;
}
.doc-paper h1 { text-align: center; font-size: 24px; margin: 4px 0 22px; letter-spacing: 4px; font-family: inherit; color: #1a1a1a; }
.doc-paper h2 { font-size: 16px; margin: 20px 0 8px; border-bottom: 1px solid #ddd; padding-bottom: 4px; font-family: inherit; color: #1a1a1a; }
.doc-paper p { margin: 8px 0; }
.doc-paper table { border-collapse: collapse; width: 100%; margin: 10px 0 16px; }
.doc-paper th, .doc-paper td { border: 1px solid #555; padding: 8px 10px; font-size: 13.5px; vertical-align: middle; }
.doc-paper th { background: #f1f3f6; font-weight: 600; white-space: nowrap; }
.doc-paper hr { border: none; border-top: 1px solid #999; margin: 16px 0; }
.doc-paper .sign-table td, .doc-paper .sign-table th { border: none; text-align: center; padding-top: 34px; font-size: 14px; }

/* ===== HTML 에디터 ===== */
.editor-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.editor-label { font-size: 12.5px; color: var(--steel); margin-right: 4px; }
.editor-toolbar {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; margin-bottom: 0;
    background: var(--surface-soft); border: 1px solid var(--hairline-soft); border-bottom: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.editor-toolbar .btn { padding: 5px 11px; }
.doc-editor {
    min-height: 500px; background: #fff; border: 1px solid var(--hairline-soft); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 28px 32px; font-family: "Batang", "바탕", "Malgun Gothic", serif; font-size: 14px; line-height: 1.75; color: #1a1a1a; outline: none; overflow: auto;
}
.doc-editor:focus { border-color: var(--fb-blue); box-shadow: 0 0 0 2px var(--primary-soft); }
.doc-editor table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.doc-editor th, .doc-editor td { border: 1px solid #555; padding: 7px 9px; }
.doc-editor th { background: #f1f3f6; }
.doc-editor h1 { text-align: center; }
.doc-editor h3, .doc-paper h3 { font-size: 15px; margin: 14px 0 6px; }
.doc-source { margin-top: 8px; display: block; }
.doc-preview { min-height: 200px; margin-top: 10px; }

/* 치환값 안내 박스 */
.var-hint { background: var(--surface-soft); border: 1px solid var(--hairline-soft); border-radius: var(--radius-lg); padding: 12px 14px; margin: 6px 0 16px; }
.var-hint-title { font-size: 12.5px; color: var(--steel); margin-bottom: 8px; }
.var-hint-list { display: flex; flex-wrap: wrap; gap: 6px; }
.var-hint-list code {
    display: inline-block; background: var(--canvas); border: 1px solid var(--hairline-soft);
    border-radius: var(--radius-full); padding: 3px 10px; font-size: 12px; color: var(--primary-deep);
    font-family: "D2Coding", Consolas, monospace;
}
.var-chip { cursor: pointer; }
.var-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 툴바 폰트/글자크기 */
.toolbar-select { height: 30px; padding: 0 8px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); font-size: 12px; background: #fff; }
.size-group { display: inline-flex; align-items: center; gap: 3px; }
.toolbar-size { width: 52px; height: 30px; padding: 0 6px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); text-align: center; font-size: 12px; }
.size-unit { font-size: 11px; color: var(--stone); }

/* JSON 입력 안내 */
.json-sample { background: var(--ink-deep); color: #cfe0ff; padding: 12px 14px; border-radius: var(--radius-lg); font-size: 12px; line-height: 1.6; overflow: auto; margin: 4px 0 10px; font-family: "D2Coding", Consolas, monospace; white-space: pre; }

/* 매칭 / 법률 문구 */
.match-summary { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 15px; color: var(--ink-deep); }
.match-summary b { font-weight: 700; }
.legal-note { margin-top: 18px; font-size: 12px; color: var(--stone); line-height: 1.6; background: var(--surface-soft); border: 1px solid var(--hairline-soft); border-radius: var(--radius-lg); padding: 13px 15px; }

/* 서류 로고 / 하단 회사영역 */
.doc-logo { max-width: 120px; max-height: 80px; vertical-align: middle; }
.doc-footer-company { margin-top: 40px; padding-top: 14px; border-top: 1px solid #999; text-align: center; }
.doc-footer-name { font-weight: 700; font-size: 15px; }
.doc-footer-logo { margin-top: 10px; }
.doc-footer-logo img { max-width: 120px; max-height: 80px; }

/* 거래처 로고 미리보기 */
.client-logo-preview { margin-bottom: 8px; }
.client-logo-preview img { max-width: 200px; max-height: 100px; border: 1px solid var(--hairline-soft); border-radius: var(--radius-lg); padding: 6px; background: #fff; display: block; }
.client-logo-preview .logo-del { display: inline-flex; margin-top: 8px; background: transparent; border: none; padding: 0; }
.client-logo-thumb { max-width: 180px; max-height: 100px; border: 1px solid var(--hairline-soft); border-radius: var(--radius-lg); padding: 4px; background: #fff; }

/* ===== 브랜드 (모바일 토글) ===== */

/* ===== 반응형 ===== */
@media (max-width: 1100px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-row-full { grid-column: span 1; }
    .card-wide { grid-column: span 1; }
    .info-grid { grid-template-columns: 1fr; }
    .info-item-full { grid-column: span 1; }
    .check-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .menu-toggle { display: block; }
    .sidebar {
        position: fixed; top: 60px; left: 0; bottom: 0; z-index: 40; width: 240px;
        transform: translateX(-100%); transition: transform var(--t-base) var(--ease-out);
    }
    .sidebar.open { transform: translateX(0); }
    .content { padding: 18px; }
    .stat-row { grid-template-columns: 1fr 1fr; }
    .filter-box input[type=text] { min-width: 140px; flex: 1; }
    .table { font-size: 12px; }
    .detail-actions { width: 100%; }
    .brand-sub { display: none; }
    .check-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 24px; }
}

/* ===== 인쇄용 (서류만 출력) ===== */
@media print {
    .topbar, .sidebar, .sitefooter, .breadcrumb, .page-head, .filter-box,
    .panel-head, .no-print, .editor-toolbar, .editor-presets, .var-hint,
    .form-actions, .doc-source, .doc-preview, .menu-toggle, .pagination { display: none !important; }
    body, .layout, .body-wrap, .content { background: #fff !important; margin: 0 !important; padding: 0 !important; display: block !important; }
    .panel, .doc-view { border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; background: #fff !important; }
    .doc-paper { border: none !important; box-shadow: none !important; margin: 0 auto !important; max-width: 100% !important; padding: 0 !important; }
    .doc-paper table { width: 100% !important; table-layout: fixed; word-break: break-all; }
    .doc-logo, .doc-footer-logo img { max-width: 120px !important; max-height: 80px !important; }
    .doc-footer-company { text-align: center !important; margin-top: 30px !important; }
    a[href]:after { content: ""; }
}
