* { box-sizing: border-box; }

:root {
  color-scheme: light;
  --surface-1: #fcfcfb;
  --surface-2: #ffffff;
  --page-plane: #f9f9f7;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #898781;
  --border-hairline: #e1e0d9;
  --border-baseline: #c3c2b7;
  --accent: #2a78d6;
  --accent-tint: #eaf1fb;
  --header-bg: #16233d;
  --divider-bg: #e4d9a0;
  --divider-text: #5c4f1e;
  --room-bg: #eaf1fb;
  --danger-bg: #fbe9e9;
  --danger-text: #b42b2a;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --surface-1: #1a1a19;
    --surface-2: #222221;
    --page-plane: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted: #898781;
    --border-hairline: #2c2c2a;
    --border-baseline: #383835;
    --accent: #3987e5;
    --accent-tint: #1c2b3f;
    --divider-bg: #4a4322;
    --divider-text: #e4d9a0;
    --room-bg: #1c2b3f;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-1: #1a1a19;
  --surface-2: #222221;
  --page-plane: #0d0d0d;
  --text-primary: #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted: #898781;
  --border-hairline: #2c2c2a;
  --border-baseline: #383835;
  --accent: #3987e5;
  --accent-tint: #1c2b3f;
  --divider-bg: #4a4322;
  --divider-text: #e4d9a0;
  --room-bg: #1c2b3f;
}

body {
  font-family: -apple-system, "Malgun Gothic", "Segoe UI", sans-serif;
  margin: 0;
  background: var(--page-plane);
  color: var(--text-primary);
}
header {
  background: var(--header-bg);
  color: white;
  padding: 24px 32px;
}
header h1 { margin: 0 0 16px; font-size: 20px; }
header .header-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
header .header-top h1 { margin: 0 0 16px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.site-user-name { font-size: 13px; color: rgba(255,255,255,0.6); white-space: nowrap; }
.admin-link {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  background: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms ease, color 120ms ease;
}
.admin-link:hover { background: rgba(255,255,255,0.14); color: #fff; }
.search-box { position: relative; max-width: 420px; margin-bottom: 16px; }
.search-box input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border-radius: 6px;
  border: none;
}
.search-results {
  position: absolute;
  z-index: 20;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  width: 100%;
}
.search-results li {
  background: var(--surface-2);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: 4px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.search-results li:hover { background: var(--accent-tint); }
.search-results li .dept { color: var(--text-secondary); font-size: 12px; margin-left: 6px; }

/* 탭이 화면보다 많아지면(위치 탭 5개, 부서 필터 등) 줄바꿈으로 깨지는 대신 가로 스크롤되게 한다 —
   모바일 폭에서 특히 중요. */
.floor-tabs { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.floor-tab {
  appearance: none;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  padding: 8px 18px;
  border-radius: 6px 6px 0 0;
  font-size: 14px;
  cursor: pointer;
}
.floor-tab:hover { background: rgba(255,255,255,0.14); }
.floor-tab.active {
  background: var(--page-plane);
  color: var(--text-primary);
  border-color: var(--page-plane);
  font-weight: 600;
}

main.layout-main { max-width: 1100px; margin: 24px auto; padding: 0 16px 40px; }
/* 좌석배치 화면(.seat-cad 포함)일 때는 한눈에 들어오도록 프레임 폭을 관리자 화면과 동일하게 넓힌다. */
main.layout-main:has(.seat-cad) { max-width: min(2200px, calc(100vw - 48px)); }

/* 본사 탭 안의 명단/좌석배치 토글, 좌석배치의 층 탭 — 헤더(어두운 배경)용 .floor-tab과 달리
   밝은 본문 배경 위에 놓이므로 색을 다시 지정한다. */
#site-content .floor-tabs { margin-bottom: 16px; }
#site-content .floor-tab {
  border-color: var(--border-baseline);
  background: var(--surface-2);
  color: var(--text-secondary);
}
#site-content .floor-tab:hover { background: var(--accent-tint); }
#site-content .floor-tab.active { background: var(--accent); color: white; border-color: var(--accent); }

/* #site-content(본사/지점 화면 전체 — 좌석배치·명단 포함) 안에서만 accent를 배치도 캔버스
   (seat-cad.css)와 같은 네이비로 다시 정의한다. 헤더 검색창, 관리자 전용 모달·페이지의 파란
   버튼들은 #site-content 바깥이라 영향받지 않고 그대로 --accent(파랑) 유지 —
   admin.css의 #tab-stats 전용 톤과 같은 "지역 변수만 다시 선언" 패턴. */
#site-content {
  --accent: #14213d;
  --accent-tint: rgba(20, 33, 61, 0.08);
}

/* === 부서별 직원 디렉토리 === */
.dept-section { margin-bottom: 26px; }
.dept-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-hairline);
}
.dept-heading .dept-count { color: var(--text-muted); font-weight: 400; font-size: 12px; }

.dept-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.emp-card {
  min-width: 96px;
  padding: 12px 10px 10px;
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.emp-card:hover { background: var(--accent-tint); border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.emp-card[draggable="true"] { cursor: grab; }
.emp-card.dragging { opacity: 0.4; }
.dept-heading[draggable="true"] { cursor: grab; }
.dept-heading.dragging { opacity: 0.4; }
.dept-grid-dragover { outline: 2px dashed var(--accent); outline-offset: 6px; border-radius: 8px; }
.dept-heading-dragover { background: var(--accent-tint); border-radius: 6px; }
.dir-edit-hint {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--accent-tint);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 14px;
}
.emp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-bottom: 7px;
  background: color-mix(in srgb, var(--branch-color, var(--accent)) 16%, var(--surface-2));
  color: var(--branch-color, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12.5px;
  flex-shrink: 0;
}
.emp-card .emp-name { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.emp-card .emp-floor { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.emp-card .emp-en { font-weight: 400; color: var(--text-muted); font-size: 11.5px; }
.emp-card .emp-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 2px;
  vertical-align: middle;
}
.emp-card-muted { opacity: 0.72; }

/* === 명단: 검색/필터 + 본부 그룹핑 === */
.dir-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.dir-search input {
  padding: 8px 12px;
  border: 1px solid var(--border-baseline);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-primary);
  font-size: 13.5px;
  min-width: 220px;
}
.dir-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.dir-pill {
  border: 1px solid var(--border-baseline);
  background: var(--surface-2);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  cursor: pointer;
}
.dir-pill:hover { border-color: var(--accent); }
.dir-pill.active { background: var(--accent); border-color: var(--accent); color: white; }

/* 명단 상단 카드보드 개관 — 대표이사 배너 카드 + 본부/부서 카드 그리드.
   클릭하면 아래 검색/필터·카드 목록으로 스크롤·필터만 해주는 순수 내비게이터. */
.org-board-wrap { margin-bottom: 22px; }
.org-board-ceo {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--accent-tint);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
  cursor: pointer;
}
.org-board-ceo-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.org-board-ceo-name { font-weight: 700; font-size: 15px; color: var(--text-primary); }
.org-board-ceo-sub { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
.org-board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.org-board-card {
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--surface-1);
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.org-board-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.org-board-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-bottom: 8px; }
.org-board-label { font-weight: 700; font-size: 13.5px; color: var(--text-primary); margin-bottom: 6px; }
.org-board-count { font-family: "SFMono-Regular", Consolas, monospace; font-size: 1.2rem; font-weight: 800; color: var(--text-primary); }
.org-board-count-unit { font-size: .65rem; font-weight: 400; color: var(--text-muted); font-family: inherit; }
.org-board-bar { height: 5px; border-radius: 3px; background: var(--border-hairline); margin-top: 8px; overflow: hidden; }
.org-board-bar-fill { height: 100%; border-radius: 3px; }
.dir-flash { animation: dirFlash 1.2s ease; }
@keyframes dirFlash {
  0% { background: var(--accent-tint); }
  100% { background: transparent; }
}

.dir-sections { display: flex; flex-direction: column; gap: 8px; }

.branch-section {
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-1);
}
.branch-heading {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: none;
  border-left: 4px solid var(--branch-color, var(--accent));
  background: none;
  cursor: pointer;
  padding: 12px 16px;
  font: inherit;
  color: var(--text-primary);
}
.branch-label { font-size: 14px; font-weight: 700; }
.branch-head { font-size: 12px; color: var(--text-secondary); }
.branch-count { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.branch-chevron { color: var(--text-muted); font-size: 11px; transition: transform 120ms ease; }
.branch-section.open .branch-chevron { transform: rotate(90deg); }
.branch-body { display: none; padding: 4px 16px 16px; }
.branch-section.open .branch-body { display: block; }
.branch-body .dept-section:last-child { margin-bottom: 0; }

/* === 직원/매장 상세 모달 헤더 === */
.employee-header { display: flex; align-items: center; gap: 14px; padding-right: 44px; margin-bottom: 16px; }
.emp-head-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--header-bg); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600;
}
.emp-head-text { min-width: 0; }
.employee-header h2 { margin: 0 0 2px; font-size: 20px; }
.employee-header p { color: var(--text-secondary); margin: 0; font-size: 13.5px; }
.employee-header .section-actions { margin: 0 0 0 auto; flex: none; }

/* 노후 장비·만료 임박 라이선스가 있을 때만 보이는 한 줄 알림 */
.detail-alert {
  background: var(--divider-bg); color: var(--divider-text);
  border-radius: 12px; padding: 9px 14px; font-size: 13px; margin-bottom: 16px;
}
.detail-alert.hidden { display: none; }

.detail-section { margin-bottom: 20px; }
.detail-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.detail-section-head h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.detail-section-head .section-actions { margin: 0; }
.count-chip { font-size: 12px; font-weight: 500; padding: 1px 9px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); }
.count-chip:empty { display: none; }

.asset-list { display: flex; flex-direction: column; gap: 8px; }
.asset-item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; background: var(--surface-1);
  border: 1px solid var(--border-hairline); border-radius: 14px; font-size: 13.5px;
}
.asset-item:hover { border-color: var(--border-baseline); background: var(--accent-tint); }
.asset-main { flex: 1; min-width: 0; }
.asset-title { font-weight: 600; color: var(--text-primary); overflow-wrap: anywhere; }
.asset-sub { font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.asset-meta { text-align: right; flex: none; max-width: 40%; }
.asset-tag { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--text-secondary); }
.asset-actions { display: flex; gap: 2px; flex: none; }
.icon-btn {
  width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent;
  color: var(--text-muted); cursor: pointer; font-size: 14px; line-height: 1;
}
.icon-btn:hover { background: var(--border-hairline); color: var(--accent); }
.icon-btn.danger:hover { background: var(--danger-bg); color: var(--danger-text); }

.status-chip { display: inline-block; font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 999px; vertical-align: 1px; margin-left: 4px; }
.status-chip.ok { background: var(--accent-tint); color: var(--accent); }
.status-chip.warn { background: var(--divider-bg); color: var(--divider-text); }
.status-chip.danger { background: var(--danger-bg); color: var(--danger-text); }

.panel {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.panel h3 { margin-top: 0; color: var(--text-primary); }

/* 화면이 좁으면(모바일) 칼럼을 억지로 구겨 넣는 대신 표를 옆으로 스크롤하게 한다 — 안 그러면
   "분류"/"모델명" 같은 짧은 한글 헤더가 글자 단위로 줄바꿈되며 표 전체가 깨져 보인다. */
.panel { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border-hairline); white-space: nowrap; }
th { color: var(--text-secondary); font-weight: 600; }
td { color: var(--text-primary); }
/* 사양(스펙) 칸만 원래도 길게 쓰는 자유 텍스트라 다른 칸과 달리 줄바꿈을 허용한다 */
td.spec-cell { white-space: normal; min-width: 160px; }

.empty-note { color: var(--text-muted); font-size: 13px; }

/* === 좌석 위치 === */
#seat-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  margin: 20px 0 14px;
  padding: 8px 16px;
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
#seat-info .seat-count {
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 400;
  padding-left: 10px;
  border-left: 1px solid var(--border-hairline);
}

.seat-floor {
  background: var(--page-plane);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
}

.seat-table {
  border-collapse: collapse;
  table-layout: fixed;
}

.seat-table .seat-td {
  border: 1px solid var(--border-hairline);
  width: 92px;
  height: 62px;
  padding: 4px;
  text-align: center;
  vertical-align: middle;
  font-size: 11.5px;
  color: var(--text-primary);
  background: var(--surface-2);
}
.seat-table .seat-td.filler,
.seat-table .seat-td.empty {
  background: var(--page-plane);
}

.seat-td .desk-icon { color: var(--text-secondary); }
.seat-td .name { font-weight: 500; letter-spacing: 0.1px; display: block; margin-top: 2px; }

.seat-td.clickable { cursor: pointer; }
.seat-td.clickable:hover { background: var(--accent-tint); }
.seat-td.draggable { cursor: grab; }

.seat-td.vacant { color: var(--text-muted); }
.seat-td.vacant .desk-icon { color: var(--border-baseline); }

.seat-td.me { background: var(--accent); color: #ffffff; }
.seat-td.me .desk-icon { color: #ffffff; }
.seat-td.me .name::before { content: "📍 "; }

.seat-td.room-cell {
  background: var(--room-bg);
  color: var(--text-secondary);
}
.seat-td.room-cell .room-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.seat-td.drop-hover { outline: 2px solid var(--accent); outline-offset: -2px; }

.divider-td {
  background: var(--divider-bg);
  color: var(--divider-text);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 5px;
  border: 1px solid var(--border-baseline);
}

.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-secondary);
}
.seat-legend .item { display: flex; align-items: center; gap: 7px; }
.seat-legend .swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border-hairline);
  background: var(--surface-2);
  flex-shrink: 0;
}
.seat-legend .swatch.me { background: var(--accent); border-color: var(--accent); }
.seat-legend .swatch.vacant { background: var(--surface-2); border-color: var(--border-baseline); }
.seat-legend .swatch.room { background: var(--room-bg); }

/* === 상세정보 모달 === */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--surface-1);
  color: var(--text-primary);
  width: 100%;
  max-width: 720px;
  margin: 5vh 16px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 28px 28px 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
/* 좌석 위치 고르기 도면이 들어가는 폼(새 좌석 추가/좌석 배정 변경)은 도면이 너무 좁게 눌려 보이지
   않도록 더 넓게 띄운다 — 일반 폼은 그대로 720px를 쓴다. */
.modal-panel.wide { max-width: 1000px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--border-hairline);
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--border-baseline); }

/* === 폼 모달(좌석 배정/구역/구분바 수정) — 관리자 페이지와 같은 톤을 그대로 재사용 === */
.form-row { margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.form-row label { font-size: 12px; color: var(--text-secondary); }
.form-row input, .form-row select, .form-row textarea {
  padding: 8px 10px;
  border: 1px solid var(--border-baseline);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}
.form-row textarea { resize: vertical; min-height: 50px; }

.btn-primary, .btn-secondary, .btn-danger {
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: white; }
.btn-secondary { background: var(--border-hairline); color: var(--text-primary); }
.btn-danger { background: #e34948; color: white; }
.btn-small { padding: 4px 10px; font-size: 12px; margin-left: 4px; }

.panel h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-actions:empty { display: none; }

.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-hairline); }

/* === 조회 화면에서 관리자 로그인 상태일 때만 보이는 좌석 편집 툴바 === */
.seat-edit-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.seat-edit-toolbar .floor-tabs { margin-bottom: 0; }
.seat-edit-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

/* === 모바일/태블릿 === */
@media (max-width: 640px) {
  header { padding: 16px 16px 14px; }
  header h1, header .header-top h1 { font-size: 17px; margin: 0 0 12px; }
  .search-box { margin-bottom: 12px; }
  main.layout-main { padding: 0 12px 32px; }
  main.layout-main:has(.seat-cad) { max-width: 100vw; padding: 0 8px 24px; }
  .org-board-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .dir-toolbar { gap: 8px; }
}

/* 폭은 내용에 맞춰 늘고 줄어든다 — 내용이 적으면 좁게, 길면 최대 폭까지 넓어지고 그 이상은 줄바꿈 */
#detail-modal .modal-panel { width: max-content; min-width: min(440px, calc(100% - 32px)); max-width: min(920px, calc(100% - 32px)); border-radius: 20px; }
#detail-modal .asset-item { min-width: 0; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) { --danger-bg: #3a1f1f; --danger-text: #ff9b9a; }
}
:root[data-theme="dark"] { --danger-bg: #3a1f1f; --danger-text: #ff9b9a; }

/* 상세 모달 — 태블릿/모바일 */
@media (max-width: 820px) {
  #detail-modal .modal-panel { margin: 3vh 12px; max-height: 94vh; padding: 22px 18px 4px; }
  .asset-meta { max-width: 45%; }
}
@media (max-width: 560px) {
  #detail-modal .modal-panel { width: 100%; max-width: 100%; margin: 0; max-height: 100vh; min-height: 100vh; border-radius: 0; padding: 18px 14px 4px; }
  .employee-header { flex-wrap: wrap; gap: 10px 12px; }
  .emp-head-avatar { width: 40px; height: 40px; font-size: 16px; }
  .employee-header h2 { font-size: 18px; }
  .employee-header .section-actions { flex-basis: 100%; margin: 0; }
  .detail-section-head { flex-wrap: wrap; gap: 8px; }
  .asset-item { flex-wrap: wrap; gap: 6px 10px; padding: 11px 12px; position: relative; }
  .asset-main { flex-basis: 100%; padding-right: 64px; }
  .asset-meta { max-width: none; text-align: left; flex-basis: 100%; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .asset-actions { position: absolute; top: 8px; right: 8px; }
  .icon-btn { width: 34px; height: 34px; }
  .btn-small { padding: 7px 12px; }
}
