/* ================================================================
   팀 근태관리 — styles.css v2.0
   2025 Design: Clean + Functional + Modern SaaS
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  /* Brand */
  --brand:       #5b5cf6;
  --brand-dark:  #4338ca;
  --brand-mid:   #818cf8;
  --brand-light: #eef2ff;
  --brand-xlight:#f5f3ff;

  /* Semantic */
  --success:  #10b981;
  --success-l:#d1fae5;
  --danger:   #ef4444;
  --danger-l: #fee2e2;
  --warning:  #f59e0b;
  --warning-l:#fef3c7;
  --info:     #3b82f6;
  --info-l:   #dbeafe;

  /* Neutrals */
  --bg:       #f8f9fc;
  --bg2:      #f1f4f9;
  --surface:  #ffffff;
  --surf2:    #f8fafc;
  --border:   #e4e9f0;
  --border2:  #f0f4f9;

  /* Text */
  --tx:      #111827;
  --tx2:     #374151;
  --tx3:     #6b7280;
  --tx4:     #9ca3af;

  /* Radius */
  --r1: 6px;
  --r2: 10px;
  --r3: 14px;
  --r4: 20px;

  /* Shadow */
  --sh1: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh2: 0 4px 12px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.04);
  --sh3: 0 10px 24px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.04);
}

html, body {
  font-family: 'Pretendard', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  background: var(--bg);
  color: var(--tx);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root, #app-shell { display: flex; flex-direction: column; height: 100vh; }

/* ===================================================================
   HEADER
=================================================================== */
.app-header {
  height: 52px;
  background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 100%);
  display: flex;
  align-items: center;
  padding: 0 18px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  gap: 10px;
}
.app-header::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 300px;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.logo-wrap {
  display: flex; align-items: center; gap: 9px; z-index: 1;
}
.logo-icon {
  width: 30px; height: 30px;
  background: rgba(255,255,255,.18);
  border-radius: var(--r1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: white;
  border: 1px solid rgba(255,255,255,.2);
}
.title {
  font-size: 14px; font-weight: 700;
  color: white; letter-spacing: -.2px;
}
.header-right { margin-left: auto; z-index: 1; display: flex; align-items: center; gap: 8px; }

.save-indicator {
  font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: 9999px;
  color: white; transition: all .3s;
  min-width: 4px;
}
.save-indicator.saving { background: rgba(255,255,255,.2); }
.save-indicator.saved  { background: rgba(16,185,129,.45); }
.save-indicator.error  { background: rgba(239,68,68,.45); }

/* ===================================================================
   TAB BAR
=================================================================== */
.tab-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  padding: 0 12px;
  flex-shrink: 0;
  gap: 2px;
}
.tab-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px; height: 40px;
  border: none; background: transparent;
  font-size: 12px; font-weight: 500;
  color: var(--tx3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .18s;
  white-space: nowrap;
  border-radius: var(--r1) var(--r1) 0 0;
}
.tab-btn:hover { color: var(--brand); background: var(--brand-xlight); }
.tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 700;
  background: var(--brand-xlight);
}
.tab-icon { font-size: 12px; }

/* ===================================================================
   CTRL BAR
=================================================================== */
.ctrl-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 7px 16px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  flex-shrink: 0;
  min-height: 44px;
}
.ctrl-group { display: flex; align-items: center; gap: 6px; }
.ctrl-label {
  font-size: 11px; color: var(--tx3); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.ctrl-select {
  border: 1px solid var(--border);
  border-radius: var(--r1);
  padding: 5px 10px;
  font-size: 12px; font-weight: 500;
  color: var(--tx2); background: var(--surface);
  cursor: pointer; outline: none;
  transition: border-color .15s, box-shadow .15s;
  max-width: 160px;
}
.ctrl-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.ctrl-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.ctrl-spacer { flex: 1; }
.month-display {
  font-size: 13px; color: var(--tx2); min-width: 80px;
  text-align: center; white-space: nowrap;
}
.month-display strong { color: var(--brand); }

/* ===================================================================
   BUTTONS
=================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  border-radius: var(--r1);
  font-size: 12px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all .15s; white-space: nowrap;
  letter-spacing: -.1px; line-height: 1;
  font-family: inherit;
}
.btn i { font-size: 11px; }
.btn:active { transform: translateY(1px) !important; }

.btn-primary  { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 4px 12px rgba(91,92,246,.3); transform: translateY(-1px); }

.btn-success  { background: var(--success); color: white; }
.btn-success:hover { background: #059669; box-shadow: 0 4px 12px rgba(16,185,129,.3); transform: translateY(-1px); }

.btn-danger   { background: var(--danger); color: white; }
.btn-danger:hover  { background: #dc2626; transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--tx2);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg2); border-color: #cbd5e1; }

.btn-danger-outline {
  background: transparent; color: var(--danger);
  border: 1px solid #fca5a5;
}
.btn-danger-outline:hover { background: var(--danger-l); }

.btn-icon {
  width: 28px; height: 28px; padding: 0;
  justify-content: center;
  background: var(--surf2);
  border: 1px solid var(--border);
  color: var(--tx3);
  border-radius: var(--r1);
}
.btn-icon:hover { background: var(--bg2); color: var(--brand); }

.btn-sm { padding: 4px 10px; font-size: 11px; }

/* ===================================================================
   CONTENT AREA
=================================================================== */
.content-area {
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column;
}

/* ===================================================================
   LOADING / ERROR
=================================================================== */
.loading-screen, .error-screen {
  display: flex; flex-direction: column; height: 100vh;
}
.loading-body, .error-body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
}
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 13px; color: var(--tx3); font-weight: 500; }

.error-icon { font-size: 36px; margin-bottom: 4px; }
.error-title { font-size: 15px; font-weight: 700; color: var(--tx); }
.error-msg { font-size: 12px; color: var(--tx3); }

/* ===================================================================
   EMPTY STATE
=================================================================== */
.empty-state {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; padding: 40px;
}
.empty-icon {
  width: 60px; height: 60px;
  background: var(--brand-light); color: var(--brand);
  border-radius: var(--r3);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 4px;
}
.empty-title { font-size: 15px; font-weight: 700; color: var(--tx2); }
.empty-desc  { font-size: 12px; color: var(--tx3); margin-bottom: 8px; }

/* ===================================================================
   INDIVIDUAL — SUMMARY BAR
=================================================================== */
.individual-layout { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

.summary-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0; overflow-x: auto;
  scrollbar-width: none;
}
.summary-bar::-webkit-scrollbar { display: none; }

.summary-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  flex-shrink: 0;
  min-width: 90px;
}
.summary-icon {
  width: 26px; height: 26px;
  border-radius: var(--r1);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.summary-label { font-size: 10px; color: var(--tx3); margin-bottom: 1px; white-space: nowrap; }
.summary-value { font-size: 13px; font-weight: 800; color: var(--tx); line-height: 1; }
.summary-value.ot-pos { color: var(--danger); font-weight: 700; }
.summary-value.ot-neg { color: #2563eb; }
.summary-value.ot-zero { color: var(--tx4); }
.summary-unit { font-size: 10px; font-weight: 500; color: var(--tx3); margin-left: 2px; }
.summary-sep { width: 1px; height: 28px; background: var(--border2); flex-shrink: 0; }

/* ===================================================================
   ATTENDANCE TABLE
=================================================================== */
.att-table-wrap { flex: 1; overflow: auto; }

.att-table {
  border-collapse: collapse; width: 100%; min-width: 820px;
}
.att-table thead { position: sticky; top: 0; z-index: 10; }
.att-table th {
  background: #f4f6fb;
  border-bottom: 2px solid var(--border);
  border-right: 1px solid var(--border2);
  padding: 0 8px; height: 32px;
  font-size: 10px; font-weight: 700;
  color: var(--tx3); text-align: center;
  letter-spacing: .4px; text-transform: uppercase;
}
.att-table th:first-child { text-align: left; padding-left: 16px; }

.att-table td {
  border-bottom: 1px solid var(--border2);
  border-right: 1px solid var(--border2);
  height: 36px; padding: 0 5px;
  text-align: center; font-size: 12px;
  transition: background .1s;
  vertical-align: middle;
}
.att-table td:first-child { text-align: left; padding-left: 16px; }

/* 행 테마 */
.att-table tr:hover td { background: #f0f4ff !important; }
.att-table tr.sun-row td       { background: #fff8f8; color: #d1d5db; }
.att-table tr.sat-row td       { background: #f8faff; color: #d1d5db; }
.att-table tr.holiday-row td   { background: #fff5f5; }
.att-table tr.group-leave-row td { background: #fffbeb; }
.att-table tr.completed-row td { background: #f0fdf4; }
.att-table tr.today-row td     { background: #f0f1ff !important; }
.att-table tr.today-row:hover td { background: #e5e7ff !important; }

/* 컬럼 너비 */
.col-date  { width: 82px; min-width: 82px; }
.col-day   { width: 28px; }
.col-type  { width: 86px; }
.col-time  { width: 78px; }
.col-break { width: 52px; }
.col-work  { width: 70px; }
.col-memo  { width: 60px; min-width: 60px; max-width: 60px; }
.col-done  { width: 36px; }

/* 날짜 */
.date-num { font-size: 12px; font-weight: 600; color: var(--tx2); font-variant-numeric: tabular-nums; }
.today-badge {
  font-size: 9px; font-weight: 700;
  background: var(--brand); color: white;
  padding: 1px 5px; border-radius: 3px;
  margin-left: 4px; vertical-align: middle;
  letter-spacing: -.1px;
}
.group-badge {
  font-size: 9px; font-weight: 700;
  background: #fef3c7; color: #92400e;
  padding: 1px 5px; border-radius: 3px;
  margin-left: 4px; vertical-align: middle;
  border: 1px solid #fcd34d;
}

/* 근태구분 */
.type-select {
  width: 100%; border: none; background: transparent;
  font-size: 11px; text-align: center;
  outline: none; cursor: pointer;
  font-family: inherit;
  padding: 3px 2px;
  border-radius: var(--r1);
  font-weight: 600;
  transition: all .15s;
}
.type-select:focus { box-shadow: 0 0 0 2px var(--brand-mid); }
.type-select.type-normal   { color: #065f46; background: #f0fdf4; }
.type-select.type-annual   { color: #92400e; background: #fef3c7; }
.type-select.type-halfam   { color: #1d4ed8; background: #dbeafe; }
.type-select.type-halfpm   { color: #7e22ce; background: #f3e8ff; }
.type-select.type-vacation { color: #0c4a6e; background: #e0f2fe; }
.type-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 3px 6px; border-radius: var(--r1);
  font-size: 10px; font-weight: 700;
}
.type-nonwork { color: var(--tx4); background: var(--surf2); font-size: 11px; }

/* 인풋 스타일 */
.time-input, .num-input, .memo-input {
  width: 100%; border: none; background: transparent;
  text-align: center; font-size: 12px; padding: 3px 2px;
  outline: none; font-family: inherit; color: var(--tx2);
  border-radius: var(--r1); transition: all .12s;
}
.memo-input { text-align: left; padding-left: 4px; font-size: 11px; color: var(--tx3); }
.time-input:focus, .num-input:focus, .memo-input:focus {
  background: white; box-shadow: 0 0 0 2px var(--brand-mid);
}
.time-input:disabled, .num-input:disabled, .memo-input:disabled { opacity: .35; }
/* 분 단위 래퍼 */
.num-wrap {
  display: flex; align-items: center; justify-content: center; gap: 1px;
}
.num-wrap .num-input { width: 36px; flex-shrink: 0; }
.num-unit { font-size: 10px; color: var(--tx3); flex-shrink: 0; }

/* 완료 체크박스 */
.done-check {
  width: 15px; height: 15px; cursor: pointer;
  accent-color: var(--success); vertical-align: middle;
}

/* 근무시간 셀 */
.wh-cell { font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.wh-normal { color: var(--tx2); }
.wh-over   { color: #dc2626; }
.wh-under  { color: #ca8a04; }
.wh-zero, .wh-annual { color: var(--tx4); font-weight: 500; font-size: 11px; }
.ot-pos { color: #dc2626; font-weight: 700; }  /* 양수 오버타임: 빨간색 */
.ot-neg { color: #2563eb; }                      /* 음수 오버타임: 파란색 */
.ot-zero { color: var(--tx4); }

/* ===================================================================
   OVERVIEW
=================================================================== */
.overview-layout { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

/* 멤버 카드 스트립 */
.member-card-strip {
  padding: 10px 16px;
  display: flex; gap: 10px; flex-wrap: nowrap; overflow-x: auto;
  flex-shrink: 0; scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.member-card-strip::-webkit-scrollbar { display: none; }

.member-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 12px 14px;
  min-width: 160px; max-width: 180px;
  flex-shrink: 0;
  box-shadow: var(--sh1);
  transition: all .2s;
  cursor: pointer;
}
.member-stat-card:hover { box-shadow: var(--sh2); transform: translateY(-2px); border-color: var(--brand-mid); }

.mcard-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mcard-info .mcard-name { font-size: 13px; font-weight: 700; }
.mcard-info .mcard-dept { font-size: 10px; color: var(--tx3); margin-top: 2px; }

.mcard-stats { display: flex; flex-direction: column; gap: 5px; }
.mcard-row   { display: flex; justify-content: space-between; align-items: center; }
.mcard-lbl   { font-size: 10px; color: var(--tx3); }
.mcard-val   { font-size: 12px; font-weight: 700; }

.mcard-progress-wrap {
  height: 3px; background: var(--border2);
  border-radius: 9999px; margin-top: 10px; overflow: hidden;
}
.mcard-progress-bar { height: 100%; border-radius: 9999px; transition: width .4s ease; }
.mcard-pct { font-size: 10px; color: var(--tx3); text-align: right; margin-top: 3px; }

/* 일별 현황 테이블 */
.overview-table-area { flex: 1; overflow: hidden; display: flex; flex-direction: column; padding: 10px 16px 12px; }
.section-label {
  font-size: 10px; font-weight: 700; color: var(--tx3);
  letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 6px; display: flex; align-items: center; gap: 5px;
}
.overview-table-wrap { flex: 1; overflow: auto; border-radius: var(--r2); border: 1px solid var(--border); }

.overview-table {
  border-collapse: collapse; font-size: 11px; min-width: max-content; width: 100%;
}
.overview-table th {
  background: #f4f6fb; font-weight: 700;
  font-size: 10px; color: var(--tx3);
  padding: 6px 7px; text-align: center; white-space: nowrap;
  border-bottom: 2px solid var(--border);
  border-right: 1px solid var(--border2);
  position: sticky; top: 0; z-index: 10;
}
.overview-table td {
  border-bottom: 1px solid var(--border2);
  border-right: 1px solid var(--border2);
  padding: 5px 7px; text-align: center; white-space: nowrap;
}
.overview-table tr:hover td { background: #f6f7ff !important; }
.overview-table tr:hover .name-td { background: var(--brand-xlight) !important; }

.name-th {
  position: sticky; left: 0; z-index: 20;
  background: var(--brand-xlight) !important;
  color: var(--brand); min-width: 95px; text-align: left !important; padding-left: 10px !important;
}
.name-td {
  position: sticky; left: 0; z-index: 5;
  background: var(--brand-xlight);
  font-weight: 700; font-size: 12px; min-width: 95px;
  display: flex; align-items: center; gap: 6px;
}
.sum-th { background: #f0f1ff !important; color: var(--brand) !important; min-width: 56px; }
.sum-td { font-weight: 700; min-width: 56px; }

.ov-th-wknd { color: var(--tx4) !important; background: #f9fafb !important; }
.ov-th-sun  { color: #ef4444 !important; }
.ov-th-sat  { color: #3b82f6 !important; }
.ov-th-hol  { background: #fff5f5 !important; color: #dc2626 !important; }
.ov-th-cmp  { background: #fffbeb !important; color: #92400e !important; }
.ov-off     { background: #f8f9fb !important; color: #d1d5db; }
.ov-empty   { color: #d1d5db; font-size: 16px; font-weight: 300; }
.ov-done    { background: #f0fdf4 !important; }
.ov-badge   { padding: 2px 5px; border-radius: 4px; font-size: 10px; font-weight: 700; display: inline-block; }
.ov-normal  { color: var(--tx3); }
.ov-annual  { background: #fef3c7; color: #92400e; }
.ov-halfam  { background: #dbeafe; color: #1d4ed8; }
.ov-halfpm  { background: #f3e8ff; color: #7e22ce; }
.today-dot {
  display: inline-block; width: 4px; height: 4px;
  background: var(--brand); border-radius: 50%;
  vertical-align: middle; margin-right: 1px;
}

/* ===================================================================
   CALENDAR
=================================================================== */
.calendar-layout { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.cal-legend {
  padding: 7px 16px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--tx3); }
.legend-dot  { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

.calendar-scroll { flex: 1; overflow: auto; padding: 12px 16px; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.month-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 12px;
  box-shadow: var(--sh1);
  transition: box-shadow .2s;
}
.month-card:hover { box-shadow: var(--sh2); }

.month-hdr {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.month-title { font-weight: 800; font-size: 15px; color: var(--brand); }
.month-wd {
  font-size: 10px; color: var(--tx3);
  background: var(--brand-xlight); color: var(--brand);
  padding: 2px 7px; border-radius: 9999px; font-weight: 700;
}

.cal-wd-row {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 10px; font-weight: 600;
  color: var(--tx3); margin-bottom: 4px; gap: 1px;
}
.cal-wd-sun { color: #ef4444; }
.cal-wd-sat { color: #3b82f6; }

.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 11px; border-radius: 5px; position: relative;
  transition: all .12s;
}
.cal-day.cal-sun  { color: #ef4444; }
.cal-day.cal-sat  { color: #3b82f6; }
.cal-day.cal-today   { background: var(--brand) !important; color: white !important; font-weight: 800; box-shadow: 0 2px 8px rgba(91,92,246,.45); }
.cal-day.cal-holiday    { background: #fee2e2; color: #dc2626 !important; font-weight: 700; }
.cal-day.cal-company    { background: #fef9c3; color: #854d0e !important; font-weight: 700; border: 1px solid #fbbf24; }
.cal-day.cal-substitute { background: #f3e8ff; color: #6d28d9 !important; font-weight: 700; border: 1px solid #c4b5fd; }
.cal-day[title] { cursor: default; }
.cal-day[title]:hover { transform: scale(1.2); z-index: 5; }
.cal-day[title]:hover::after {
  content: attr(title);
  position: absolute; bottom: 115%; left: 50%; transform: translateX(-50%);
  background: #1e293b; color: white; font-size: 10px;
  padding: 4px 8px; border-radius: 5px; white-space: nowrap;
  z-index: 100; pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.month-evs { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.month-ev  {
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  display: flex; align-items: center; gap: 4px;
}
.ev-hol { background: #fee2e2; color: #dc2626; }
.ev-hol::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #ef4444; flex-shrink: 0; }
.ev-cmp { background: #fef9c3; color: #854d0e; border-left: 2px solid #fbbf24; }
.ev-cmp::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #f59e0b; flex-shrink: 0; }
.ev-sub { background: #f3e8ff; color: #6d28d9; border-left: 2px solid #a78bfa; }
.ev-sub::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #8b5cf6; flex-shrink: 0; }

/* ===================================================================
   MEMBERS
=================================================================== */
.members-layout { flex: 1; overflow: auto; padding: 16px; }
.members-list { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }

.member-row-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--sh1);
  transition: all .18s;
}
.member-row-card:hover { box-shadow: var(--sh2); border-color: var(--brand-mid); }

.mr-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.mr-info { min-width: 0; }
.mr-name { font-size: 14px; font-weight: 700; color: var(--tx); }
.mr-dept { font-size: 11px; color: var(--tx3); margin-top: 2px; }

.mr-times { display: flex; gap: 6px; flex-shrink: 0; }
.time-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 6px;
  background: var(--bg2); border: 1px solid var(--border2);
  font-size: 11px; font-weight: 600; color: var(--tx2);
  font-variant-numeric: tabular-nums;
}
.time-chip i { color: var(--tx4); font-size: 10px; }

.mr-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ===================================================================
   AVATAR
=================================================================== */
.avatar {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: white;
  flex-shrink: 0; letter-spacing: -.5px;
  font-family: inherit;
}

/* ===================================================================
   MODAL
=================================================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--surface);
  border-radius: var(--r4);
  padding: 24px;
  min-width: 350px; max-width: 420px; width: 92%;
  box-shadow: 0 20px 60px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.06);
  animation: slideUp .18s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.modal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.modal-icon-wrap {
  width: 40px; height: 40px; border-radius: var(--r2);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.modal-title { font-size: 16px; font-weight: 800; }
.modal-sub   { font-size: 12px; color: var(--tx3); margin-top: 2px; }
.modal-warn  { font-size: 12px; color: var(--tx3); margin-bottom: 16px; padding: 10px 12px; background: #fffbeb; border-radius: var(--r1); border-left: 3px solid #f59e0b; }

.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--tx3); margin-bottom: 5px; letter-spacing: .2px;
}
.req { color: var(--danger); }
.form-input {
  width: 100%; border: 1px solid var(--border);
  border-radius: var(--r1);
  padding: 8px 12px; font-size: 13px;
  font-family: inherit; color: var(--tx);
  outline: none; transition: border-color .15s, box-shadow .15s;
  background: var(--surface);
}
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

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

/* ===================================================================
   통합 근태 현황 레이아웃 (좌우 1:3 분할)
=================================================================== */
.att-unified-layout {
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
  padding: 12px;
  gap: 16px;
  background: var(--bg2);
}

/* panel-label 공통 */
.panel-label {
  font-size: 10px; font-weight: 700; color: var(--tx3);
  letter-spacing: .5px; text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px 6px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border2);
}

/* 왼쪽: 팀원 카드 리스트 */
.att-left-panel {
  width: 240px;
  flex-shrink: 0;
  border-radius: var(--r3);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh1);
}
.side-card-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
}

/* 팀원 카드 */
.side-member-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r3);
  padding: 10px 12px;
  cursor: pointer;
  transition: all .15s;
}
.side-member-card:hover {
  border-color: var(--brand-mid);
  box-shadow: var(--sh1);
  transform: translateX(2px);
}
.side-member-card.dragging {
  opacity: 0.4;
  transform: scale(0.97);
  border-style: dashed;
}
.side-member-card.drag-over {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 0 0 2px rgba(99,102,241,.2);
}
.side-member-card.active {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.smc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.smc-info .smc-name { font-size: 13px; font-weight: 700; color: var(--tx); }
.smc-info .smc-dept { font-size: 10px; color: var(--tx3); margin-top: 1px; }
.smc-stats { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.smc-row { display: flex; justify-content: space-between; }
.smc-lbl { font-size: 10px; color: var(--tx3); }
.smc-val { font-size: 11px; font-weight: 700; color: var(--tx); }
.smc-val.ot-pos { color: #dc2626; font-weight: 700; }
.smc-val.ot-neg { color: #2563eb; }
.smc-val.ot-zero { color: var(--tx4); }
.smc-footer { }
.smc-progress-bg {
  height: 3px; background: var(--border2);
  border-radius: 9999px; overflow: hidden; margin-bottom: 3px;
}
.smc-progress-bar { height: 100%; border-radius: 9999px; transition: width .4s; }
.smc-pct { font-size: 10px; color: var(--tx3); }

/* 오른쪽: 상세 패널 */
.att-right-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r3);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh1);
}

/* ===================================================================
   SCROLLBAR
=================================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
