body {
    margin: 0;
    background: #f3f5f8;
    font-family: Arial, "Malgun Gothic", sans-serif;
    color: #111827;
}
.header {
    height: 56px;
    background: #1f3f8f;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 24px;
    font-size: 18px;
    font-weight: 700;
}
.layout { display: flex; }
.sidebar {
    width: 220px;
    min-height: calc(100vh - 56px);
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 16px 0;
}
.menu-title {
    padding: 12px 22px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 700;
}
.menu-item {
    padding: 12px 22px;
    font-size: 14px;
    cursor: pointer;
    border-left: 4px solid transparent;
}
.menu-item.active {
    background: #eff6ff;
    border-left-color: #2563eb;
    color: #1d4ed8;
    font-weight: 700;
}
.content { flex: 1; padding: 28px; }
.card {
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 12px;
    padding: 22px;
    max-width: 1150px;
    margin-bottom: 18px;
}
.title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}
.desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}
.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 16px 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-size: 13px;
    font-weight: 700;
}
.mode-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
}
textarea {
    width: 100%;
    height: 230px;
    box-sizing: border-box;
    border: 1px solid #cfd6e4;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
}
.btn-row {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
}
button {
    border: 0;
    border-radius: 7px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-gray { background: #e5e7eb; color: #333; }
.loading {
    display: none;
    color: #2563eb;
    font-weight: 700;
}
.result-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    border-top: 1px solid #e5e7eb;
    margin-top: 10px;
}
.label {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
    font-weight: 700;
}
.value {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
    white-space: pre-wrap;
    line-height: 1.5;
}
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.badge-urgent, .urgent { background: #fee2e2; color: #b91c1c; }
.badge-high, .high { background: #ffedd5; color: #c2410c; }
.badge-normal, .normal { background: #dbeafe; color: #1d4ed8; }
.badge-low, .low { background: #e5e7eb; color: #374151; }
.error { color: #b91c1c; font-weight: 700; }
.footer-note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 10px;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
th, td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}
th {
    background: #f8fafc;
    font-weight: 700;
}
select {
    height: 30px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}
.btn-small {
    border: 1px solid #d0d7e2;
    background: #fff;
    color: #1f3f8f;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 13px;
    cursor: pointer;
}

.btn-small:hover {
    background: #eef4ff;
}
.modal-bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    width: 720px;
    max-width: calc(100% - 32px);
    max-height: calc(100% - 60px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

.modal-content {
    padding: 20px 22px;
    max-height: 520px;
    overflow-y: auto;
}

.modal-actions {
    padding: 14px 22px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

.detail-grid {
    display: grid;
    grid-template-columns: 110px 1fr;
    border-top: 1px solid #e5e7eb;
}

.detail-label {
    background: #f8fafc;
    padding: 12px;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

.detail-value {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    white-space: pre-line;
}

.detail-reply-box {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 12px;
    line-height: 1.6;
    white-space: pre-line;
}

.detail-memo-textarea {
    width: 100%;
    min-height: 90px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}

.detail-memo-textarea {
    width: 100%;
    min-height: 90px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}

.form-row {
    margin: 14px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.form-label {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.date-input {
    height: 36px;
    border: 1px solid #cfd6e4;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-help {
    font-size: 12px;
    color: #6b7280;
}



.board-card {
    max-width: 1280px;
}

.board-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.board-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.board-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0 12px 0;
    padding: 12px;
    border: 1px solid #f0cfcf;
    background: #fffafa;
}

.board-tab {
    background: transparent;
    color: #111827;
    border-radius: 4px;
    padding: 7px 11px;
    font-size: 13px;
}

.board-tab.active {
    background: #ef4444;
    color: #fff;
}

.board-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 14px 0;
    font-size: 13px;
}

.board-sync-result {
    color: #2563eb;
    font-weight: 700;
}

.board-table th,
.board-table td {
    vertical-align: middle;
}

.board-title-cell {
    line-height: 1.5;
}

.board-title-link {
    font-weight: 700;
    cursor: pointer;
}

.board-title-link:hover {
    text-decoration: underline;
    color: #2563eb;
}

.board-summary {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    max-width: 520px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kv-category {
    color: #2563eb;
    font-weight: 700;
}

.lock-icon {
    font-size: 12px;
}

.status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.status-new {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-checking {
    background: #ffedd5;
    color: #c2410c;
}

.status-drafted {
    background: #ede9fe;
    color: #6d28d9;
}

.status-done {
    background: #dcfce7;
    color: #15803d;
}

.status-hold {
    background: #e5e7eb;
    color: #374151;
}

.board-paging {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.paging-info {
    font-weight: 700;
    color: #374151;
}

.board-modal-box {
    width: 920px;
}

.board-detail-top {
    padding: 0 0 16px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 14px;
}

.board-detail-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
}

.board-detail-meta {
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

.board-comment-box {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
}

.board-comment-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 700;
}

.board-comment-text {
    white-space: pre-line;
    line-height: 1.6;
}

.empty-help {
    color: #6b7280;
    font-size: 13px;
}

/* ===== AI CS UI polish v1 ===== */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

html, body, input, textarea, select, button, table {
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif !important;
}

body {
    color: #0f172a;
    background: #f5f7fb;
    font-size: 14px;
    letter-spacing: -0.2px;
}

.header {
    height: 58px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.4px;
    background: #1f3f91;
}

.content {
    padding: 22px 28px 40px;
}

.card {
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.title, h1 {
    font-size: 26px !important;
    line-height: 1.25;
    font-weight: 800 !important;
    letter-spacing: -0.8px;
    color: #0f172a;
}

h2 {
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.5px;
}

textarea, input, select {
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 14px;
}

textarea:focus, input:focus, select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

button, .btn-small, .btn-gray {
    font-family: inherit;
    font-weight: 700;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
}

th {
    background: #f8fafc;
    color: #334155;
    font-weight: 800;
    height: 42px;
    border-bottom: 1px solid #e2e8f0;
}

td {
    color: #0f172a;
    line-height: 1.45;
    border-bottom: 1px solid #e5e7eb;
    padding-top: 10px;
    padding-bottom: 10px;
}

tr:hover td {
    background: #f8fbff;
}

.board-tab {
    border-radius: 9px !important;
    padding: 9px 15px !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
}

.board-tab.active {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #2563eb !important;
}

.result-grid, .detail-grid {
    font-size: 14px;
}

.detail-pre {
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif !important;
    line-height: 1.55;
    white-space: pre-wrap;
}


/* ===== AI CS UI polish v1.1 - weight/spacing fix ===== */
body {
    font-weight: 400;
    letter-spacing: -0.05px;
}

.header {
    font-weight: 700 !important;
    letter-spacing: -0.2px !important;
}

.title, h1 {
    font-weight: 700 !important;
    letter-spacing: -0.35px !important;
}

h2 {
    font-weight: 650 !important;
    letter-spacing: -0.25px !important;
}

.card {
    font-weight: 400;
}

table {
    font-size: 13.5px;
    font-weight: 400;
    letter-spacing: 0;
}

th {
    font-weight: 650 !important;
    letter-spacing: -0.1px;
}

td {
    font-weight: 400 !important;
    letter-spacing: 0;
}

button,
.btn-small,
.btn-gray,
.board-tab {
    font-weight: 600 !important;
    letter-spacing: -0.1px !important;
}

.badge,
.priority-badge,
.status-badge,
[class*="badge"] {
    font-weight: 600 !important;
    letter-spacing: -0.05px !important;
}

strong, b {
    font-weight: 650;
}

input, textarea, select {
    font-weight: 400;
    letter-spacing: 0;
}


/* ===== AI CS UI polish v1.2 - height/line-height fix ===== */

/* 전체 글자 세로 눌림 완화 */
body {
    line-height: 1.55;
}

/* 제목은 또렷하게, 너무 두껍지는 않게 */
.title, h1 {
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

h2 {
    line-height: 1.4 !important;
}

/* 버튼류 높이 확보 */
button,
.btn-small,
.btn-gray,
.board-tab {
    min-height: 34px !important;
    line-height: 1.25 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* 작은 보기 버튼은 너무 커지지 않게 */
.btn-small {
    min-height: 30px !important;
    padding: 6px 12px !important;
}

/* 테이블 행 높이 확보 */
th {
    height: 46px !important;
    line-height: 1.35 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

td {
    line-height: 1.6 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* 배지/칩 글자 눌림 보정 */
.badge,
.priority-badge,
.status-badge,
[class*="badge"],
[class*="pill"],
[class*="tag"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 24px !important;
    line-height: 1.2 !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

/* 오늘처리 게시판 카드 좌측 배지 영역 */
.board-card .badge,
.board-card [class*="badge"],
.board-card [class*="pill"],
.board-card [class*="tag"] {
    min-height: 26px !important;
    padding: 5px 13px !important;
    line-height: 1.2 !important;
}

/* 요약 숫자 카드도 세로 여유 */
.summary-card,
.stat-card,
.today-summary-card {
    min-height: 72px;
    line-height: 1.35;
}

/* 입력창도 줄간격 여유 */
textarea {
    line-height: 1.65 !important;
}

/* select 세로 눌림 방지 */
select {
    min-height: 34px;
    line-height: 1.35;
}


/* ===== AI CS UI polish v1.3 - Korean readability font fix ===== */

/*
   Pretendard bold가 작은 배지에서 한글 획을 뭉개 보이게 해서
   전체 기본 폰트를 시스템 한글 폰트 중심으로 재조정한다.
*/
html,
body,
input,
textarea,
select,
button,
table {
    font-family: "Noto Sans KR", "Malgun Gothic", "맑은 고딕",
                 -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "Apple SD Gothic Neo", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 전체 기본 굵기 낮춤 */
body {
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

/* 제목만 적당히 강조 */
.title,
h1 {
    font-weight: 700 !important;
    letter-spacing: -0.2px !important;
}

h2,
h3,
h4 {
    font-weight: 650 !important;
    letter-spacing: -0.1px !important;
}

/* 테이블은 또렷하지만 두껍지 않게 */
table,
td {
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

th {
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

/* 버튼도 과한 bold 제거 */
button,
.btn-small,
.btn-gray,
.board-tab {
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

/*
   핵심: 작은 배지/칩은 bold 금지.
   불량&오배송 같은 긴 한글이 뭉개지지 않게 font-weight 500 이하로 고정.
*/
.badge,
.priority-badge,
.status-badge,
[class*="badge"],
[class*="pill"],
[class*="tag"],
.board-card .badge,
.board-card [class*="badge"],
.board-card [class*="pill"],
.board-card [class*="tag"] {
    font-family: "Malgun Gothic", "맑은 고딕", "Noto Sans KR",
                 -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    min-height: 26px !important;
    padding: 5px 12px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
}

/* 긴 배지 텍스트는 가로 여유 확보 */
.board-card [class*="badge"]:first-child,
.board-card [class*="pill"]:first-child,
.board-card [class*="tag"]:first-child {
    min-width: 82px !important;
}

/* 요약 카드 숫자는 선명하게만 */
.summary-card strong,
.stat-card strong,
.today-summary-card strong {
    font-weight: 650 !important;
    letter-spacing: 0 !important;
}

/* 본문 설명문은 가볍게 */
p,
.desc,
.description,
.card-desc {
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}


/* ===== AI CS UI polish v1.6 - Local MaruBuri font ===== */

@font-face {
    font-family: 'KVMaruBuri';
    src: url('/assets/fonts/maruburi/MaruBuri-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KVMaruBuri';
    src: url('/assets/fonts/maruburi/MaruBuri-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KVMaruBuri';
    src: url('/assets/fonts/maruburi/MaruBuri-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KVMaruBuri';
    src: url('/assets/fonts/maruburi/MaruBuri-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KVMaruBuri';
    src: url('/assets/fonts/maruburi/MaruBuri-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 전체 폰트 강제 마루부리 */
html,
body,
div,
span,
p,
a,
button,
input,
textarea,
select,
table,
thead,
tbody,
tr,
th,
td,
label,
pre,
code,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'KVMaruBuri', 'Malgun Gothic', '맑은 고딕', sans-serif !important;
    letter-spacing: 0 !important;
    font-stretch: normal !important;
    text-rendering: optimizeLegibility;
}

/* 기본 본문 */
body {
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

/* 제목 */
.header,
.title,
h1 {
    font-weight: 700 !important;
}

h2,
h3,
h4,
th,
button,
.btn-small,
.btn-gray,
.board-tab,
.kv-menu-title,
.kv-menu-item.active {
    font-weight: 600 !important;
}

/* 일반 텍스트 */
td,
p,
.desc,
.description,
.card-desc,
.detail-value,
textarea,
input,
select,
pre {
    font-weight: 400 !important;
}

/* 작은 배지/칩은 절대 두껍게 하지 않음 */
.badge,
.priority-badge,
.status-badge,
.status-pill,
[class*="badge"],
[class*="pill"],
[class*="tag"],
.kv-board-card span,
.board-card span,
.kv-board-card-list span,
.불량오배송 {
    font-family: 'KVMaruBuri', 'Malgun Gothic', '맑은 고딕', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.45 !important;
    text-shadow: none !important;
    white-space: nowrap !important;
}

/* 긴 칩은 가로폭 확보 */
.불량오배송,
.kv-board-card span:first-child,
.board-card span:first-child,
.kv-board-card-list span:first-child {
    min-width: 94px !important;
}


/* ===== AI CS UI polish v2.0 - Godo Font ===== */

@font-face {
    font-family: 'KVGodo';
    src: url('/assets/fonts/godo/GodoM.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KVGodo';
    src: url('/assets/fonts/godo/GodoB.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 전체 폰트 고도체 적용 */
html,
body,
div,
span,
p,
a,
button,
input,
textarea,
select,
table,
thead,
tbody,
tr,
th,
td,
label,
pre,
code,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'KVGodo', 'Malgun Gothic', '맑은 고딕', sans-serif !important;
    letter-spacing: 0 !important;
    font-stretch: normal !important;
    text-rendering: optimizeLegibility;
}

/* 기본 본문 */
body {
    font-weight: 400 !important;
    line-height: 1.58 !important;
}

/* 제목/상단 */
.header,
.title,
h1 {
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

h2,
h3,
h4 {
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

/* 테이블 */
table,
td,
p,
.desc,
.description,
.card-desc,
.detail-value {
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

th {
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

/* 버튼 */
button,
.btn-small,
.btn-gray,
.board-tab {
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

/*
   작은 배지/칩은 Bold 금지.
   불량&오배송 같은 긴 한글이 뭉개지지 않게 Medium만 사용.
*/
.badge,
.priority-badge,
.status-badge,
.status-pill,
[class*="badge"],
[class*="pill"],
[class*="tag"],
.kv-board-card span,
.board-card span,
.kv-board-card-list span,
.불량오배송 {
    font-family: 'KVGodo', 'Malgun Gothic', '맑은 고딕', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.45 !important;
    text-shadow: none !important;
    transform: none !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
}

/* 긴 칩은 가로폭 확보 */
.불량오배송,
.kv-board-card span:first-child,
.board-card span:first-child,
.kv-board-card-list span:first-child {
    min-width: 94px !important;
    padding-left: 13px !important;
    padding-right: 13px !important;
}

/* 입력창/상세 원문 */
textarea,
pre,
.detail-pre,
input,
select {
    font-family: 'KVGodo', 'Malgun Gothic', '맑은 고딕', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}


/* ===== AI CS UI polish v3.0 - Nanum Barun Gothic ===== */

@font-face {
    font-family: 'KVNanumBarunGothic';
    src: url('/assets/fonts/nanum-barun/NanumBarunGothicUltraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KVNanumBarunGothic';
    src: url('/assets/fonts/nanum-barun/NanumBarunGothicLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KVNanumBarunGothic';
    src: url('/assets/fonts/nanum-barun/NanumBarunGothic.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KVNanumBarunGothic';
    src: url('/assets/fonts/nanum-barun/NanumBarunGothicBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 전체 폰트 최종 강제 적용 */
html,
body,
div,
span,
p,
a,
button,
input,
textarea,
select,
table,
thead,
tbody,
tr,
th,
td,
label,
pre,
code,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'KVNanumBarunGothic', 'Nanum Barun Gothic', 'Malgun Gothic', '맑은 고딕',
                 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    letter-spacing: 0 !important;
    font-stretch: normal !important;
    text-rendering: optimizeLegibility;
}

/* 기본 본문 */
body {
    font-weight: 400 !important;
    line-height: 1.58 !important;
}

/* 제목/상단 */
.header,
.title,
h1 {
    font-weight: 700 !important;
    letter-spacing: -0.1px !important;
}

h2,
h3,
h4 {
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

/* 본문/테이블 */
table,
td,
p,
.desc,
.description,
.card-desc,
.detail-value {
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

th {
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

/* 버튼 */
button,
.btn-small,
.btn-gray,
.board-tab {
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

/* 작은 배지/칩은 너무 굵지 않게 */
.badge,
.priority-badge,
.status-badge,
.status-pill,
[class*="badge"],
[class*="pill"],
[class*="tag"],
.kv-board-card span,
.board-card span,
.kv-board-card-list span,
.불량오배송 {
    font-family: 'KVNanumBarunGothic', 'Nanum Barun Gothic', 'Malgun Gothic', '맑은 고딕',
                 sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.45 !important;
    text-shadow: none !important;
    transform: none !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
}

/* 긴 칩은 가로폭 확보 */
.불량오배송,
.kv-board-card span:first-child,
.board-card span:first-child,
.kv-board-card-list span:first-child {
    min-width: 94px !important;
    padding-left: 13px !important;
    padding-right: 13px !important;
}

/* 입력창/상세 원문 */
textarea,
pre,
.detail-pre,
input,
select {
    font-family: 'KVNanumBarunGothic', 'Nanum Barun Gothic', 'Malgun Gothic', '맑은 고딕',
                 sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}


/* ===== Board pager active clarity fix ===== */
.app-board-pager .kv-page-btn {
    opacity: 1 !important;
    filter: none !important;
}

.app-board-pager .kv-page-btn.active {
    opacity: 1 !important;
    filter: none !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    font-weight: 700 !important;
}

.app-board-pager .kv-page-btn:disabled:not(.active) {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}


/* 게시판 상태 표시 공통 */
.kv-status-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.kv-status-order {
    background: #f3f3f3;
    color: #555;
    border-color: #ddd;
}

.kv-status-ordering {
    background: #fff4d6;
    color: #8a5a00;
    border-color: #f0d28a;
}

.kv-status-misong {
    background: #ffe9e9;
    color: #b00020;
    border-color: #ffc7c7;
}

.kv-status-instock {
    background: #dbf4fb;
    color: #1b6be7;
    border-color: #a9e1ef;
}

.kv-status-reorder {
    background: #f1e9ff;
    color: #6b35c9;
    border-color: #d7c4ff;
}

.kv-status-soldout {
    background: #eeeeee;
    color: #555;
    border-color: #cccccc;
}

.kv-status-cancel {
    background: #f7f7f7;
    color: #999;
    border-color: #ddd;
    text-decoration: line-through;
}

.kv-status-delivery {
    background: #e9f7ea;
    color: #20823a;
    border-color: #bfe6c6;
}

.kv-status-error {
    background: #fff0df;
    color: #b85c00;
    border-color: #ffd2a1;
}

.kv-status-unknown {
    background: #f5f5f5;
    color: #777;
    border-color: #ddd;
}

.kv-om-confirm {
    background: #e9f7ea;
    color: #20823a;
    border-color: #bfe6c6;
}

.kv-om-unconfirm {
    background: #fff7cc;
    color: #8a6a00;
    border-color: #eadc8a;
}

/* 게시판 리스트 첨부사진/미리보기 표시 */
.kv-list-image-icon {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: 4px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    line-height: 1.4;
    vertical-align: middle;
}
.kv-list-image-icon-related {
    background: #fff7ed;
    color: #c2410c;
}
.kv-list-preview {
    margin-top: 5px;
    max-width: 520px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 게시판 리스트 첨부사진/미리보기/상세링크 보강 */
.kv-list-image-icon {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: 4px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    line-height: 1.4;
    vertical-align: middle;
}
.kv-list-image-icon-related {
    background: #fff7ed;
    color: #c2410c;
}
.kv-list-preview {
    margin-top: 5px;
    max-width: 780px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kv-list-view-link {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 6px;
    background: #2563eb;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.kv-list-view-link:hover {
    background: #1d4ed8;
}

/* 게시판 리스트 첨부사진/관련첨부/미리보기/상세링크 v4 */
.kv-list-image-icon {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: 4px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    line-height: 1.4;
    vertical-align: middle;
}
.kv-list-image-icon-related {
    background: #fff7ed;
    color: #c2410c;
}
.kv-list-preview {
    margin-top: 5px;
    max-width: 780px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kv-list-view-link {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 6px;
    background: #2563eb;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

/* 게시판 리스트 사진 배지 v5 */
.kv-list-image-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 7px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    border: 1px solid #93c5fd;
    font-size: 11px !important;
    font-weight: 800;
    line-height: 1.4;
    vertical-align: middle;
}
.kv-list-image-icon-related {
    background: #fff7ed !important;
    color: #c2410c !important;
    border-color: #fdba74;
}
.kv-list-preview {
    display: block !important;
    margin-top: 5px;
    max-width: 900px;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 게시판 리스트 사진/관련사진 배지 v5 */
.kv-list-image-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 7px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    border: 1px solid #93c5fd;
    font-size: 11px !important;
    font-weight: 800;
    line-height: 1.4;
    vertical-align: middle;
}
.kv-list-image-icon-related {
    background: #fff7ed !important;
    color: #c2410c !important;
    border-color: #fdba74;
}
.kv-list-preview {
    display: block !important;
    margin-top: 5px;
    max-width: 900px;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 관련 이전 문의 출처 링크/요약 */
.kv-related-source-info {
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    line-height: 1.6;
    border-radius: 6px;
}
.kv-related-source-link {
    color: #c2410c !important;
    font-weight: 800;
    text-decoration: underline;
}
.kv-related-source-preview {
    margin-top: 4px;
    color: #64748b;
}
.kv-related-source-reason {
    margin-top: 4px;
    color: #94a3b8;
}
.kv-list-image-icon-related {
    cursor: pointer;
    text-decoration: none !important;
}

/* 상세 연속성 후보 */
.kv-continuity-box {
    padding: 10px 12px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 8px;
    margin-bottom: 12px;
}
.kv-continuity-help {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 8px;
}
.kv-continuity-item {
    padding: 8px 0;
    border-top: 1px solid #dbeafe;
}
.kv-continuity-item:first-child {
    border-top: 0;
}
.kv-continuity-link {
    color: #1d4ed8 !important;
    font-weight: 800;
    text-decoration: underline;
}
.kv-continuity-meta {
    color: #475569;
    font-size: 12px;
}
.kv-continuity-preview {
    margin-top: 4px;
    color: #334155;
    font-size: 12px;
    line-height: 1.45;
}
.kv-continuity-reason {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
}
.kv-continuity-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
    font-size: 11px;
    font-weight: 800;
}
.kv-continuity-badge-related {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
}

/* /cs/board 목록 compact height v8 */
.kv-cs-board-list-page table tbody tr td {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    line-height: 1.35 !important;
}
.kv-cs-board-list-page .kv-list-preview {
    margin-top: 3px !important;
    line-height: 1.25 !important;
    max-height: 18px !important;
}
.kv-cs-board-list-page .kv-list-image-icon {
    margin-top: 2px !important;
    padding: 1px 6px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
}

/* 게시판 목록 글쓴이 컬럼 폭 보강 */
.kv-cs-board-list-page table th:nth-child(5),
.kv-cs-board-list-page table td:nth-child(5) {
    min-width: 130px !important;
    width: 130px !important;
    max-width: 180px !important;
    white-space: normal !important;
    word-break: keep-all !important;
}

/* 연속성 후보 영역 가독성 보강 */
.kv-continuity-box {
    margin-top: 10px !important;
    margin-bottom: 14px !important;
}
.kv-continuity-item {
    background: #fff !important;
    border-radius: 6px;
    margin-top: 6px;
    padding: 9px 10px !important;
}

/* 리스트 연속성예측/글쓴이검색 */
.kv-continuity-predict-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 7px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #ecfeff;
    color: #0369a1 !important;
    border: 1px solid #67e8f9;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none !important;
    vertical-align: middle;
}
.kv-continuity-predict-badge:hover {
    background: #cffafe;
}
.kv-continuity-predict-preview {
    margin-top: 4px;
    max-width: 900px;
    color: #0f766e;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kv-writer-search-btn {
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    max-width: 140px;
    white-space: normal;
    word-break: keep-all;
}
.kv-writer-search-btn:hover {
    background: #e0e7ff;
}
.kv-cs-board-list-page table th:nth-child(5),
.kv-cs-board-list-page table td:nth-child(5) {
    min-width: 150px !important;
    width: 150px !important;
    max-width: 210px !important;
}

/* /cs/board 리스트 레이아웃 안정화 v10
   우측 상태/중요도/날짜/작업 컬럼은 고정하고 제목만 남은 폭에서 줄인다. */
.kv-cs-board-list-page table {
    table-layout: fixed !important;
    width: 100% !important;
}

.kv-cs-board-list-page table th,
.kv-cs-board-list-page table td {
    box-sizing: border-box !important;
    vertical-align: middle !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    line-height: 1.28 !important;
}

/* 선택 */
.kv-cs-board-list-page table th:nth-child(1),
.kv-cs-board-list-page table td:nth-child(1) {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    text-align: center !important;
}

/* 번호 */
.kv-cs-board-list-page table th:nth-child(2),
.kv-cs-board-list-page table td:nth-child(2) {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* 분류 */
.kv-cs-board-list-page table th:nth-child(3),
.kv-cs-board-list-page table td:nth-child(3) {
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* 제목: 여기만 유동폭 */
.kv-cs-board-list-page table th:nth-child(4),
.kv-cs-board-list-page table td:nth-child(4) {
    width: auto !important;
    min-width: 260px !important;
    max-width: none !important;
    overflow: hidden !important;
}

/* 글쓴이: 10글자 정도 확보 */
.kv-cs-board-list-page table th:nth-child(5),
.kv-cs-board-list-page table td:nth-child(5) {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: keep-all !important;
}

/* AI상태 */
.kv-cs-board-list-page table th:nth-child(6),
.kv-cs-board-list-page table td:nth-child(6) {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* 중요도 */
.kv-cs-board-list-page table th:nth-child(7),
.kv-cs-board-list-page table td:nth-child(7) {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* 날짜 */
.kv-cs-board-list-page table th:nth-child(8),
.kv-cs-board-list-page table td:nth-child(8) {
    width: 86px !important;
    min-width: 86px !important;
    max-width: 86px !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: keep-all !important;
}

/* 작업 */
.kv-cs-board-list-page table th:nth-child(9),
.kv-cs-board-list-page table td:nth-child(9) {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.kv-cs-board-list-page table td:nth-child(9) button,
.kv-cs-board-list-page table td:nth-child(9) a,
.kv-cs-board-list-page table td:nth-child(9) .kv-btn {
    min-width: 48px !important;
    width: 48px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
}

/* 제목 안 텍스트/미리보기/배지 compact */
.kv-cs-board-list-page .kv-list-preview,
.kv-cs-board-list-page .kv-continuity-predict-preview {
    display: block !important;
    margin-top: 3px !important;
    max-width: 100% !important;
    max-height: 17px !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.kv-cs-board-list-page .kv-list-image-icon,
.kv-cs-board-list-page .kv-continuity-predict-badge {
    margin-top: 2px !important;
    padding: 1px 6px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
}

/* 글쓴이 버튼도 컬럼 안에서만 */
.kv-cs-board-list-page .kv-writer-search-btn {
    max-width: 132px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* 게시판 목록: 보기 삭제 / 상호명 그린 파스텔 / 제목 클릭 */
.kv-board-detail-clickable {
    cursor: pointer !important;
}
.kv-board-detail-clickable:hover {
    background: #f8fafc !important;
}
.kv-writer-green-cell {
    background: #f0fdf4 !important;
}
.kv-writer-green-cell,
.kv-writer-green-cell * {
    color: #166534 !important;
}
.kv-writer-search-btn,
.kv-writer-green-btn {
    background: #dcfce7 !important;
    border: 1px solid #86efac !important;
    color: #166534 !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
}
.kv-writer-search-btn:hover,
.kv-writer-green-btn:hover {
    background: #bbf7d0 !important;
}

/* 보기 삭제 후 작업 컬럼은 원문만 남도록 compact */
.kv-cs-board-list-page table th:nth-child(9),
.kv-cs-board-list-page table td:nth-child(9) {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
}
.kv-cs-board-list-page table td:nth-child(9) a,
.kv-cs-board-list-page table td:nth-child(9) button,
.kv-cs-board-list-page table td:nth-child(9) .kv-btn {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    writing-mode: horizontal-tb !important;
    margin: 2px auto !important;
}

/* 제목 영역은 우측 컬럼 보호를 위해 더 강하게 줄임 */
.kv-cs-board-list-page table th:nth-child(4),
.kv-cs-board-list-page table td:nth-child(4) {
    min-width: 0 !important;
    overflow: hidden !important;
}

/* 게시판 목록: 보기 삭제 / 상호명 그린 파스텔 / 제목 클릭 */
.kv-board-detail-clickable {
    cursor: pointer !important;
}
.kv-board-detail-clickable:hover {
    background: #f8fafc !important;
}
.kv-writer-green-cell {
    background: #f0fdf4 !important;
}
.kv-writer-green-cell,
.kv-writer-green-cell * {
    color: #166534 !important;
}
.kv-writer-search-btn,
.kv-writer-green-btn {
    background: #dcfce7 !important;
    border: 1px solid #86efac !important;
    color: #166534 !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
}
.kv-writer-search-btn:hover,
.kv-writer-green-btn:hover {
    background: #bbf7d0 !important;
}

/* 보기 삭제 후 작업 컬럼은 원문만 남도록 compact */
.kv-cs-board-list-page table th:nth-child(9),
.kv-cs-board-list-page table td:nth-child(9) {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
}
.kv-cs-board-list-page table td:nth-child(9) a,
.kv-cs-board-list-page table td:nth-child(9) button,
.kv-cs-board-list-page table td:nth-child(9) .kv-btn {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    writing-mode: horizontal-tb !important;
    margin: 2px auto !important;
}

/* 제목 영역은 우측 컬럼 보호를 위해 더 강하게 줄임 */
.kv-cs-board-list-page table th:nth-child(4),
.kv-cs-board-list-page table td:nth-child(4) {
    min-width: 0 !important;
    overflow: hidden !important;
}

/* 상세 연속성 후보 보강 */
.kv-continuity-box {
    padding: 10px 12px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 8px;
    margin: 10px 0 14px 0;
}
.kv-continuity-help {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 8px;
}
.kv-continuity-item {
    background: #fff;
    border-radius: 6px;
    padding: 9px 10px;
}
.kv-continuity-link {
    color: #1d4ed8 !important;
    font-weight: 800;
    text-decoration: underline;
}
.kv-continuity-meta {
    color: #475569;
    font-size: 12px;
}
.kv-continuity-preview {
    margin-top: 4px;
    color: #334155;
    font-size: 12px;
    line-height: 1.45;
}
.kv-continuity-reason {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
}
.kv-continuity-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
    font-size: 11px;
    font-weight: 800;
}
.kv-continuity-badge-related {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
}


.kv-dual-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  height: 54px;
  margin: 0 0 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.kv-home-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  color: #ffffff;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.18);
  background: #1e3a8a;
}

.kv-home-btn:last-child {
  border-right: 0;
}

.kv-home-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

.kv-home-aics {
  background: #0f766e;
}

.kv-home-aics:hover {
  background: #0d9488;
}

.kv-home-main {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.kv-home-sub {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.9;
  letter-spacing: 0.2px;
}

/* CS legacy sidebar dual home links */
.kv-dual-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: calc(100% - 16px);
  height: 48px;
  margin: 8px 8px 18px 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: #0f172a;
}

.kv-home-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff !important;
  text-decoration: none !important;
  border-right: 1px solid rgba(255,255,255,0.18);
  background: #1d4ed8;
  line-height: 1.1;
}

.kv-home-btn:last-child {
  border-right: 0;
}

.kv-home-btn:hover {
  background: #2563eb;
  color: #ffffff !important;
}

.kv-home-aics {
  background: #0f766e;
}

.kv-home-aics:hover {
  background: #0d9488;
}

.kv-home-main {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.kv-home-sub {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.92;
}


/* === cs-sidebar-clean-v1: /cs 근무자 화면 좌측 메뉴 정리 === */
.layout {
  display: flex;
  min-height: 100vh;
  background: #f3f6fb;
}

.sidebar {
  width: 230px !important;
  min-width: 230px !important;
  flex: 0 0 230px !important;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  padding: 14px 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

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

.kv-dual-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid #0f172a;
  border-radius: 10px;
  overflow: hidden;
}

.kv-home-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  padding: 10px 6px;
  color: #fff !important;
  min-height: 54px;
  line-height: 1.1;
}

.kv-home-cs {
  background: #1d4ed8;
}

.kv-home-aics {
  background: #0f766e;
}

.kv-home-main {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.kv-home-sub {
  display: block;
  font-size: 11px;
  opacity: .92;
  margin-top: 3px;
}

.kv-menu-title {
  font-size: 15px;
  font-weight: 900;
  color: #111827;
  margin: 12px 2px 10px;
  white-space: nowrap;
}

.kv-menu-group {
  margin-bottom: 14px;
}

.kv-menu-group-title {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  margin: 10px 4px 6px;
  letter-spacing: -0.02em;
}

.kv-menu-item {
  display: block;
  text-decoration: none !important;
  color: #334155 !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 9px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kv-menu-item:hover {
  background: #f1f5f9;
  color: #1d4ed8 !important;
}

.kv-menu-item.active {
  background: #dbeafe;
  color: #1d4ed8 !important;
}

/* === /cs-sidebar-clean-v1 === */

/* === cs-dual-home-keep-v1 === */
.kv-dual-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid #0f172a;
  border-radius: 10px;
  overflow: hidden;
}

.kv-home-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  padding: 10px 6px;
  color: #fff !important;
  min-height: 54px;
  line-height: 1.1;
}

.kv-home-cs {
  background: #1d4ed8;
}

.kv-home-aics {
  background: #0f766e;
}

.kv-home-main {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.kv-home-sub {
  display: block;
  font-size: 11px;
  opacity: .92;
  margin-top: 3px;
}
/* === /cs-dual-home-keep-v1 === */

/* === cs-dashboard-outside-input-v1 === */
.kv-menu-home {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.kv-dashboard-item {
  background: #eff6ff;
  color: #1d4ed8 !important;
  font-weight: 900;
}

.kv-dashboard-item:hover {
  background: #dbeafe;
}

.kv-dashboard-item.active {
  background: #1d4ed8;
  color: #ffffff !important;
}
/* === /cs-dashboard-outside-input-v1 === */

/* === dual-home-text-center-fix === */
.kv-dual-home {
  align-items: stretch;
}

.kv-home-btn {
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 64px;
}

.kv-home-main {
  display: block;
  width: 100%;
  text-align: center !important;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.kv-home-sub {
  display: none !important;
}
/* === /dual-home-text-center-fix === */
