@import url('https://cdnjs.cloudflare.com/ajax/libs/pretendard/1.3.9/static/pretendard.min.css');

:root {
  /* ---- 색상 토큰 (2026-08 디자인 시스템 적용) ---- */
  /* 사이드바는 --navy(버튼·강조색)와 분리된 전용 색상을 씁니다 - 기존엔 하나였는데,
     새 디자인 가이드에서 "사이드바"와 "버튼/강조"를 다른 색으로 나눠서 분리했습니다. */
  --sidebar-bg: #14192b;
  --sidebar-text: #a8adbd;
  --sidebar-text-active: #ffffff;

  --ink: #16181d;           /* 텍스트/짙은 배경 */
  --navy: #4f46e5;          /* 포인트 컬러 (버튼, 활성 탭, 강조 텍스트) - 기존 골드/네이비 대체 */
  --navy-dark: #4338ca;
  --gold: #4f46e5;          /* 기존 코드 호환용 - 이제 포인트 컬러와 동일 (골드 톤 제거) */
  --gold-soft: #eef0ff;
  --paper: #f6f7f9;         /* 메인 배경 (전 화면 공통) */
  --card: #ffffff;
  --border: #ecedf1;
  --text: #16181d;
  --muted: #6b7280;
  --danger: #dc2626;
  --danger-light: #fdecec;
  --ok: #16a34a;
  --ok-light: #eaf7ee;
  --wait: #d97706;
  --wait-light: #fef3e2;
  --type-attend: #2563eb;
  --type-trip: #4f46e5;
  --type-leave: #dc2626;
  --sat: #2563eb;
  --sun: #dc2626;
  --radius-card: 16px;
  --radius-btn: 10px;
  --shadow-card: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text); -webkit-font-smoothing: antialiased; }

/* 로그인 */
.login-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(99,102,241,.34), transparent 35%),
    radial-gradient(circle at 82% 88%, rgba(79,70,229,.26), transparent 36%),
    linear-gradient(145deg, #171c38 0%, #25235f 52%, #4338ca 100%);
}
.login-shell { width: 100%; display: flex; justify-content: center; }
.login-card {
  width: min(440px, 100%);
  background: rgba(255,255,255,.985);
  padding: 42px 46px 30px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(10,14,42,.34), 0 2px 8px rgba(10,14,42,.08);
}
.login-brand { text-align: center; }
.login-logo {
  width: 124px;
  height: 60px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  opacity: .96;
}
.login-card h1 {
  margin: 0;
  color: #171b3c;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.65px;
}
.login-system-name {
  margin: 7px 0 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -.1px;
}
.subtitle {
  color: #73798a;
  font-size: 13px;
  line-height: 1.65;
  margin: 12px 0 26px;
}
.login-mobile-break { display: none; }
.login-form { display: flex; flex-direction: column; }
.login-field { margin-bottom: 15px; }
.login-field label {
  display: block;
  margin: 0 0 7px;
  color: #4b5264;
  font-size: 12.5px;
  font-weight: 650;
}
.login-input-wrap { position: relative; }
.login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: #8a91a3;
  pointer-events: none;
}
.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 42px;
  border: 1px solid #dfe3eb;
  border-radius: 10px;
  background: #fff;
  color: #1f2533;
  font: inherit;
  font-size: 14px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.login-card input::placeholder { color: #b0b5c1; }
.login-card input:hover { border-color: #cdd2de; }
.login-card input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
  background: #fff;
}
.login-card.has-error input[aria-invalid="true"] {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.09);
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 7px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #858c9d;
  cursor: pointer;
}
.password-toggle:hover { background: #f3f4f8; color: #525a6e; }
.password-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.password-toggle svg { width: 18px; height: 18px; display: block; }
.password-toggle .eye-closed { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 25px;
  margin: -1px 0 3px;
}
.remember-name {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
  color: #62697a !important;
  font-size: 12px !important;
  font-weight: 550 !important;
  cursor: pointer;
}
.remember-name input { width: 15px; height: 15px; margin: 0; accent-color: var(--navy); }
.error {
  min-height: 18px;
  margin: 3px 0 2px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}
.login-submit {
  width: 100%;
  height: 50px;
  margin-top: 7px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #5548ec, #4f46e5 62%, #4338ca);
  box-shadow: 0 8px 20px rgba(79,70,229,.22);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.05px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.login-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(79,70,229,.29); }
.login-submit:active:not(:disabled) { transform: translateY(0); }
.login-submit:focus-visible { outline: 3px solid rgba(79,70,229,.24); outline-offset: 2px; }
.login-submit:disabled { cursor: wait; opacity: .66; box-shadow: none; }
.login-submit-loading { display: none; align-items: center; gap: 8px; }
.login-submit.is-loading .login-submit-label { display: none; }
.login-submit.is-loading .login-submit-loading { display: inline-flex; }
.login-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: loginSpin .7s linear infinite;
}
@keyframes loginSpin { to { transform: rotate(360deg); } }
.login-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #f0f1f5;
}
.versionTag { color: #9298a7; font-size: 11px; font-weight: 500; letter-spacing: .05px; }
.login-connection {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8a91a0;
  font-size: 10.5px;
}
.login-connection::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.09);
}
.login-connection.insecure::before { background: #94a3b8; box-shadow: 0 0 0 3px rgba(148,163,184,.1); }
@media (max-width: 520px) {
  .login-body { padding: 18px 14px; align-items: center; }
  .login-card { padding: 34px 26px 26px; border-radius: 20px; }
  .login-logo { width: 112px; height: 54px; }
  .login-card h1 { font-size: 23px; }
  .login-mobile-break { display: initial; }
}

/* 레이아웃: 좌측 사이드바 + 본문 */
.appShell { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex-shrink: 0; background: var(--sidebar-bg); color: var(--sidebar-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,0.12); letter-spacing: -0.1px; line-height: 1.3; position: relative; }

/* 알림 벨 */
.notiBell { margin-left: auto; background: none; border: none; color: var(--sidebar-text-active); font-size: 16px; cursor: pointer; position: relative; padding: 2px; display: inline-flex; align-items: center; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-inline { width: 15px; height: 15px; vertical-align: -2px; margin-right: 2px; }
.notiBadge { position: absolute; top: -4px; right: -6px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; border-radius: 8px; padding: 1px 5px; min-width: 15px; text-align: center; }
.notiDropdown { position: absolute; top: 62px; left: 12px; right: 12px; background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.25); z-index: 500; max-height: 400px; overflow: hidden; display: flex; flex-direction: column; }
.notiDropdownHead { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--ink); }
.notiList { overflow-y: auto; }
.notiItem { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 12.5px; cursor: pointer; }
.notiItem:hover { background: var(--paper); }
.notiItem.unread { background: #fbf6ec; }
.notiItem .notiMsg { color: var(--ink); }
.notiItem .notiTime { color: var(--muted); font-size: 11px; margin-top: 2px; }
.notiFilterRow { display: flex; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.notiFilterBtn { padding: 3px 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font-size: 11px; color: var(--muted); cursor: pointer; }
.notiFilterBtn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.notiDateGroup { padding: 6px 14px 2px; font-size: 10.5px; color: var(--muted); font-weight: 700; background: var(--paper); }

/* 검색형 콤보박스 (프로젝트 선택 등) */
.searchCombo { position: relative; }
.searchComboInput { width: 100%; padding: 9px; border: 1px solid var(--border); border-radius: 7px; font-size: 14px; }
.searchComboList { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 8px; max-height: 200px; overflow-y: auto; z-index: 50; margin-top: 4px; box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.searchComboItem { padding: 8px 12px; font-size: 13px; cursor: pointer; }
.searchComboItem:hover { background: var(--paper); }

/* 모달 (공지사항 팝업 등) */
.modalOverlay { position: fixed; inset: 0; background: rgba(20,30,45,0.45); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modalBox { background: #fff; border-radius: 12px; padding: 26px; width: 420px; max-width: 92vw; max-height: 88vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.announcementPopupItem { border-bottom: 1px solid var(--border); padding: 10px 0; }
.announcementPopupItem:last-child { border-bottom: none; }

.projectNameLink { color: var(--navy); text-decoration: none; font-weight: 700; }
.projectNameLink:hover { text-decoration: underline; }

/* 월별 수금현황 */
.mcSummaryRow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.mcSummaryCard { background: var(--card); border: none; box-shadow: var(--shadow-card); border-radius: 12px; padding: 16px 18px; }
.mcSummaryLabel { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.mcSummaryValue { font-size: 20px; font-weight: 800; color: var(--ink); }
.mcSummaryValue.mcGreen { color: var(--ok); }
.mcSummaryValue.mcOrange { color: var(--wait); }
.mcSummaryValue.mcMuted { color: var(--muted); }
.mcMonthList { display: flex; flex-direction: column; gap: 10px; }
.mcMonthRow { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
.mcMonthRow.mcCurrentMonth { border: 2px solid var(--gold); background: #fdfaf3; }
.mcMonthHead { display: flex; align-items: center; gap: 16px; }
.mcMonthLabel { width: 52px; flex-shrink: 0; font-weight: 700; color: var(--ink); font-size: 14px; }
.mcMonthLabel .mcThisTag { display: block; font-size: 10px; font-weight: 500; color: var(--gold); margin-top: 2px; }
.mcBarTrack { flex: 1; height: 20px; background: #f0ede6; border-radius: 10px; overflow: hidden; position: relative; min-width: 80px; }
.mcBarSegment { position: absolute; top: 0; bottom: 0; height: 100%; }
.mcBarSegment.mcSegReceived { background: var(--ok); left: 0; border-radius: 10px 0 0 10px; }
.mcBarSegment.mcSegPending { background: var(--wait); }
.mcMonthStats { display: flex; align-items: center; gap: 18px; font-size: 12.5px; white-space: nowrap; flex-shrink: 0; }
.mcMonthStats .mcStatContract { color: var(--muted); min-width: 118px; }
.mcMonthStats .mcStatReceived { color: var(--ok); font-weight: 700; min-width: 108px; }
.mcMonthStats .mcStatPending { color: var(--wait); font-weight: 700; min-width: 108px; }
.mcMonthStats .mcStatOutsourcing { color: var(--muted); min-width: 108px; }
.mcExpandBtn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0 4px; }
.mcMonthDetail { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.mcMonthDetail.mcHidden { display: none; }

/* 가계부 - 서브뷰 전환 버튼 */
.subViewBtn { padding: 8px 18px; border: 1px solid var(--border); background: #fff; border-radius: 20px; cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 500; }
.subViewBtn:hover { border-color: var(--navy); color: var(--navy); }
.subViewBtn.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }

/* 가계부 - 달력형 */
.ledgerCalGrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; }
.ledgerCalHead { text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; padding-bottom: 4px; }
.ledgerCalHead:first-child { color: var(--sun); }
.ledgerCalHead:last-child { color: var(--sat); }
.ledgerCalCell { background: var(--card); border: none; box-shadow: var(--shadow-card); border-radius: 8px; min-height: 76px; padding: 6px 8px; }
.ledgerCalCell.otherMonth { background: #f7f5f0; opacity: 0.5; }
.ledgerCalCell.today { outline: 2px solid var(--gold); outline-offset: -2px; }
.ledgerCalDateNum { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ledgerCalAmounts { display: flex; flex-direction: column; gap: 2px; }
.ledgerCalAmt { font-size: 11px; font-weight: 700; cursor: pointer; text-align: right; }
.ledgerCalAmt.income { color: var(--ok); }
.ledgerCalAmt.expense { color: var(--wait); }
.ledgerCalAmt:hover { text-decoration: underline; }

/* 가계부 - 추세 막대그래프 (순수 CSS) */
.ledgerTrendChart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding: 10px 6px 0; background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; }
.ledgerTrendBarGroup { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1; min-width: 22px; height: 100%; }
.ledgerTrendBars { display: flex; align-items: flex-end; gap: 1px; height: 120px; }
.ledgerTrendBar { width: 8px; border-radius: 2px 2px 0 0; }
.ledgerTrendBar.income { background: var(--ok); }
.ledgerTrendBar.expense { background: var(--wait); }
.ledgerTrendLabel { font-size: 9px; color: var(--muted); margin-top: 4px; white-space: nowrap; }

/* 가계부 - 항목별 바 리스트 */
.ledgerCatBars { display: flex; flex-direction: column; gap: 8px; min-width: 320px; }
.ledgerCatBarRow { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.ledgerCatBarLabel { width: 110px; flex-shrink: 0; color: var(--text); }
.ledgerCatBarTrack { flex: 1; height: 14px; background: #f0ede6; border-radius: 7px; overflow: hidden; }
.ledgerCatBarFill { height: 100%; border-radius: 7px; }
.ledgerCatBarFill.income { background: var(--ok); }
.ledgerCatBarFill.expense { background: var(--wait); }
.ledgerCatBarAmt { width: 90px; flex-shrink: 0; text-align: right; font-weight: 700; color: var(--ink); }

/* 메인페이지 - 공지사항 카드 */
.announcementBoxWrap { background: var(--card); border: none; box-shadow: var(--shadow-card); border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.announcementCardGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.announcementCard { background: #fdfaf3; border-left: 4px solid var(--gold); border-radius: 8px; padding: 10px 12px; }
.announcementCardTitle { font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.announcementCardBody { font-size: 12px; color: var(--text); margin-bottom: 6px; }
.announcementCardMeta { font-size: 10.5px; color: var(--muted); }
.importantAnnouncementCard { border-left: 4px solid var(--gold); background: #fdfaf3; }

/* 메인페이지 - 주요일정 달력 항목 */
.mainCalItem { font-size: 10px; background: var(--gold-soft); color: var(--navy); border-radius: 4px; padding: 1px 4px; margin-top: 2px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mainCalItem:hover { background: var(--gold); color: #fff; }
.mainCalItem.companyEvent { background: #e8f0fb; color: #2d5fa8; }
.mainCalItem.companyEvent:hover { background: #2d5fa8; color: #fff; }
.clickableCalCell { cursor: pointer; }
.clickableCalCell:hover { outline: 1.5px solid var(--navy); outline-offset: -1.5px; }

/* 프로젝트 보드 개선 - 개요/마일스톤/막힘/고정/인수인계 */
.overviewBox { background: #fdfaf3; border: 1px solid var(--gold-soft); border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; font-size: 13px; }
.overviewRow { margin-bottom: 6px; }
.overviewRow b { color: var(--ink); margin-right: 8px; }
.staleWarning { margin-top: 8px; color: var(--danger); font-weight: 700; font-size: 12.5px; }
.milestoneCard { border-left: 4px solid var(--gold); }
.milestoneBadge { display: inline-block; background: var(--gold-soft); color: var(--navy); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 8px; margin-right: 4px; }
.directiveBadge { display: inline-block; background: #e8f0fb; color: #2d5fa8; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 8px; margin-right: 4px; }
.blockedReasonBox { margin-top: 6px; background: #fdecea; color: var(--danger); border-radius: 6px; padding: 6px 10px; font-size: 12px; }
.taskDescriptionBox { margin-top: 6px; background: var(--paper); border-radius: 6px; padding: 8px 10px; font-size: 13px; white-space: pre-wrap; line-height: 1.5; color: var(--text); }
.folderPathChip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; font-size: 12.5px; margin: 2px 0; }
.folderPathChip a { color: var(--navy); text-decoration: underline; word-break: break-all; }

/* 결재 문서 본문 - 자체 제작 리치텍스트 편집기 (표/서식 삽입 지원) */
.richEditorToolbar { display: flex; gap: 4px; margin-bottom: 4px; }
.richEditorToolbar button { background: var(--paper); border: 1px solid var(--border); border-radius: 5px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.richEditorToolbar button:hover { background: var(--gold-soft); }
.richEditor { min-height: 160px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.6; background: #fff; }
.richEditor:focus { outline: 2px solid var(--gold); outline-offset: -1px; }
.richEditor table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.richEditor table td, .richEditor table th { border: 1px solid var(--border); padding: 6px 8px; }
.richContentView { line-height: 1.6; font-size: 14px; }
.richContentView table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.richContentView table td, .richContentView table th { border: 1px solid #999; padding: 6px 8px; }
.pinnedPost { border: 1px solid var(--gold); background: #fdfaf3; }
.pinBadge { display: inline-block; background: var(--gold-soft); color: var(--navy); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 8px; }
.handoverPost { border-left: 4px solid var(--danger); }
.handoverBadge { display: inline-block; background: #fdecea; color: var(--danger); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 8px; }
.consultationBadge { display: inline-block; background: #e8f0fb; color: #2d5fa8; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 8px; }
.consultationPost { border-left: 4px solid #2d5fa8; }
.staleBadgeSmall { display: inline-block; background: #fdecea; color: var(--danger); font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 8px; margin-left: 6px; }

/* 수강생관리 - 출석 체크 4열 그리드 */
.attendeeGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 14px; margin: 8px 0; }
.attendeeGrid label { display: flex; align-items: center; gap: 6px; font-size: 13px; background: var(--paper); border: 1px solid var(--border); border-radius: 7px; padding: 7px 10px; }
@media (max-width: 700px) { .attendeeGrid { grid-template-columns: repeat(2, 1fr); } }

/* 출석 매트릭스 표 */
.attendMatrixCell { text-align: center; }
.attendMatrixMark.present { color: var(--ok); font-weight: 800; }
.attendMatrixMark.absent { color: var(--border); }
.attendRateCell { font-weight: 700; }
.attendRateCell.low { color: var(--danger); }

/* 목록 카드 클릭시 하단 상세보기 */
.clickableCard { cursor: pointer; }
.clickableCard .top { cursor: pointer; }
.cardDetailPanel { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--text); line-height: 1.6; }
.cardDetailPanel.detailOpen { display: block; }
.cardDetailPanel .detailRow { margin-bottom: 6px; }
.cardDetailPanel .detailRow b { color: var(--ink); margin-right: 6px; }
.cardDetailPanel .detailItemRow { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.detailToggleHint { font-size: 11px; color: var(--muted); margin-left: 6px; }

/* 발주처 협의 사항 */
.consultationCard { flex-direction: column; align-items: stretch; }
.myLeaderCard { border: 2px solid var(--gold); }
.myLeaderCard::before { content: "★ 내가 PM"; display: inline-block; font-size: 10px; font-weight: 700; color: var(--navy); background: var(--gold-soft); padding: 1px 8px; border-radius: 8px; margin-bottom: 6px; }
.priorityBadge { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 8px; border-radius: 8px; margin-right: 4px; }
.priorityBadge.urgent { background: #fdecea; color: var(--danger); }
.pmConfirmBadge { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 8px; border-radius: 8px; background: #eaf5ee; color: var(--ok); margin-left: 4px; }
.csResultBox { margin-top: 6px; font-size: 12.5px; color: var(--text); }
.csRequestBox, .csResponseBox, .csFollowUpBox { margin-top: 6px; padding: 8px 10px; border-radius: 7px; font-size: 12.5px; }
.csRequestBox { background: #eaf1fb; color: var(--navy); }
.csResponseBox { background: #f3f1ea; color: var(--text); }
.csFollowUpBox { background: #fdecea; color: var(--danger); }

/* 통합 검색 */
.searchBox { position: relative; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.searchBox input { width: 100%; padding: 8px 10px 8px 32px; border-radius: 7px; border: none; font-size: 12.5px; background: rgba(255,255,255,0.12); color: #fff; }
.searchBox input::placeholder { color: rgba(255,255,255,0.6); }
.searchBoxIcon { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.6); pointer-events: none; }
.searchResultsDropdown { position: absolute; top: 48px; left: 12px; right: 12px; background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.25); z-index: 500; max-height: 400px; overflow-y: auto; }
.searchResultItem { padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 12.5px; }
.searchResultItem:hover { background: var(--paper); }
.searchResultType { display: inline-block; font-size: 10px; font-weight: 700; color: var(--navy); background: var(--gold-soft); padding: 1px 7px; border-radius: 7px; margin-right: 6px; }
.mcDetailItem { display: flex; justify-content: space-between; color: var(--text); }
.mcDetailItem .mcDetailStatus { font-size: 11px; padding: 1px 8px; border-radius: 8px; color: #fff; }
.mcDetailItem .mcDetailStatus.done { background: var(--ok); }
.mcDetailItem .mcDetailStatus.wait { background: var(--wait); }
.mcDetailItem .mcDetailStatus.vendor { background: var(--muted); }

.brandLogo { width: 26px; height: 26px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.92; flex-shrink: 0; }
.sideNav { flex: 1; display: flex; flex-direction: column; padding: 12px 0; overflow-y: auto; }
.sideNav .tabBtn { text-align: left; background: none; border: none; color: var(--sidebar-text); padding: 10px 20px; font-size: 13.5px; cursor: pointer; border-left: 3px solid transparent; transition: background 0.12s ease; }
.sideNav .tabBtn:hover { background: rgba(255,255,255,0.06); color: var(--sidebar-text-active); }
.sideNav .tabBtn.active { color: var(--sidebar-text-active); font-weight: 600; background: rgba(255,255,255,0.09); border-left-color: var(--navy); }
.sideNavGroup { padding: 18px 20px 6px; font-size: 10.5px; color: rgba(255,255,255,0.42); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.sideFooter { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12px; }
.sideFooter .who { color: #c8d6e5; margin-bottom: 8px; line-height: 1.4; }
.versionTag { margin-top: 10px; color: rgba(255,255,255,0.55); font-size: 12px; }
.linklike { background: none; border: none; color: #c8d6e5; cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }

.mainArea { flex: 1; min-width: 0; }
.tabPane { display: none; padding: 28px 32px; max-width: 1240px; margin: 0 auto; }
.tabPane.active { display: block; }
.tabPane h2 { font-size: 19px; letter-spacing: -0.2px; color: var(--ink); margin: 0 0 18px; }

@media (max-width: 800px) {
  .appShell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar .brand { border-bottom: none; padding: 14px 16px; }
  .sideNav { flex-direction: row; flex-wrap: wrap; padding: 0 8px 10px; }
  .sideNav .tabBtn { border-left: none; border-bottom: 3px solid transparent; padding: 8px 12px; }
  .sideNav .tabBtn.active { border-left: none; border-bottom-color: var(--gold); }
  .sideNavGroup { width: 100%; padding: 10px 12px 2px; }
  .sideFooter { border-top: none; padding: 8px 16px 14px; }
  .tabPane { padding: 18px; }
}

/* 출근 체크인 바 */
.checkinBar { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 20px; margin-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--navy); box-shadow: 0 1px 2px rgba(20,30,45,0.04); }
.checkinBar button { padding: 9px 20px; background: var(--navy); color: #fff; border: none; border-radius: 7px; cursor: pointer; font-size: 13px; font-weight: 600; }
.checkinBar button:hover { background: var(--navy-dark); }
.checkinBar button:disabled { background: #c3cad3; cursor: default; }

/* 주간/월간 현황 */
.weekNav { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.weekNav button { padding: 7px 14px; border: 1px solid var(--border); background: #fff; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--text); }
.weekNav button:hover { border-color: var(--navy); color: var(--navy); }
.weekNav button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
#weekLabel, #monthLabel { font-weight: 700; color: var(--navy); letter-spacing: -0.1px; }
.tableWrap { overflow-x: auto; background: var(--card); border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(20,30,45,0.05); }
.weeklyTable { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.weeklyTable colgroup col.nameCol { width: 112px; }
.weeklyTable th, .weeklyTable td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow: hidden; }
.weeklyTable th { background: #faf9f5; color: var(--navy); font-weight: 700; white-space: nowrap; font-size: 12px; }
.weeklyTable td.nameCell { font-weight: 600; white-space: nowrap; background: #fcfbf8; }
.cellBadges { display: flex; flex-direction: column; gap: 4px; }

.monthlyTable th, .monthlyTable td { padding: 5px 6px; font-size: 11px; text-align: center; }
.monthlyTable .subPos { font-weight: 400; color: var(--muted); font-size: 10px; }
.monthlyTable .summaryRow td { background: #f9f7f2; font-weight: 600; }
.monthlyTable .miniCell { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; }
.monthlyTable .miniBadge { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 4px; color: #fff; font-size: 10px; }
.monthlyTable .miniBadge.type-출근 { background: var(--type-attend); }
.monthlyTable .miniBadge.type-출장 { background: var(--type-trip); }
.monthlyTable .miniBadge.type-휴가 { background: var(--type-leave); }
.monthlyTable .miniBadge.pending { opacity: 0.5; }
.monthlyTable .summaryCell { white-space: nowrap; font-weight: 600; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 7px; font-size: 11px; color: #fff; position: relative; max-width: 100%; box-sizing: border-box; }
.badge .badgeMain { display: block; white-space: normal; word-break: keep-all; }
.badge .badgeSub { display: block; font-size: 10px; font-weight: 400; opacity: 0.9; white-space: normal; word-break: break-all; margin-top: 1px; }
.badge.type-출근 { background: var(--type-attend); }
.badge.type-출장 { background: var(--type-trip); }
.badge.type-휴가 { background: var(--type-leave); }
.badge.pending { opacity: 0.55; }
.badge .half { font-weight: 400; }

.legend { margin-top: 14px; display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.pending-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--wait); }

/* 폼 카드 */
.formCard { background: var(--card); border: none; border-radius: var(--radius-card); padding: 28px; max-width: 520px; box-shadow: var(--shadow-card); }
.formCardWide { max-width: 760px; }
.formCard label { display: block; font-size: 13px; color: var(--muted); margin: 16px 0 6px; font-weight: 500; }
.formCard input, .formCard select, .formCard textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; }
.formCard input:focus, .formCard select:focus, .formCard textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.formCard .row { display: flex; gap: 14px; }
.formCard .row > div { flex: 1; }
.timeSelectRow { display: flex; align-items: center; gap: 6px; }
.timeSelectRow select { width: auto; flex: 1; }

/* 시작일/시작시간 ~ 종료일/종료시간 한 줄 레이아웃 */
.dateTimeRow { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.dtField { display: flex; flex-direction: column; gap: 5px; min-width: 130px; }
.dtField.dtFieldTime { min-width: 150px; }
.dtLabel { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.dtSep { color: var(--muted); font-size: 14px; padding-bottom: 10px; }

.filterBar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.filterBar input[type="month"], .filterBar input[type="text"] { padding: 7px 11px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; }
.linklikeBtn { background: none; border: none; color: var(--navy); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }
.companionList { display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 10px; margin-top: 4px; }
.companionList label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); margin: 0; }
.companionList input { width: auto; }
.checkboxLabel { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 16px; color: var(--text); }
.checkboxLabel input { width: auto; }
.formCard button[type="submit"] { margin-top: 22px; padding: 11px 22px; background: var(--navy); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; letter-spacing: 0.1px; }
.formCard button[type="submit"]:hover { background: var(--navy-dark); }
.notice { margin-top: 10px; font-size: 13px; }
.notice.ok { color: var(--ok); }
.notice.err { color: var(--danger); }
.leaveSummaryBox { margin-top: 8px; padding: 11px 13px; background: var(--paper); border-radius: 8px; font-size: 12.5px; color: var(--navy); line-height: 1.6; border: 1px solid var(--border); }
.docTypeTabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.docTypeBtn { padding: 8px 18px; border: 1px solid var(--border); background: #fff; border-radius: 20px; cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 500; }
.docTypeBtn:hover { border-color: var(--navy); color: var(--navy); }
.docTypeBtn.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.reqTypeBtn { padding: 8px 18px; border: 1px solid var(--border); background: #fff; border-radius: 20px; cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 500; }
.reqTypeBtn:hover { border-color: var(--navy); color: var(--navy); }
.reqTypeBtn.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.boardModeBtn { padding: 8px 18px; border: 1px solid var(--border); background: #fff; border-radius: 20px; cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 500; }
.boardModeBtn:hover { border-color: var(--navy); color: var(--navy); }
.boardModeBtn.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.docBadge { display: inline-block; padding: 2px 9px; border-radius: 5px; font-size: 11px; color: #fff; background: var(--navy); margin-right: 6px; }
.docBadge.type-지출결의서 { background: var(--wait); }
.docBadge.type-내부결재 { background: var(--type-attend); }
.docBadge.type-외부공문 { background: #6b4fa0; }
.docBadge.type-보안문서 { background: var(--danger); }
.docBadge.type-출장비청구서 { background: var(--ok); }
.docBadge.type-외부접수문서 { background: #556270; }
.travelSummaryBox { background: var(--paper); border-radius: 8px; padding: 11px 13px; font-size: 12.5px; color: var(--navy); margin-bottom: 14px; border: 1px solid var(--border); }
.travelItem { border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; position: relative; }
.travelItem .removeItemBtn { position: absolute; top: 12px; right: 12px; background: none; border: none; color: var(--danger); cursor: pointer; font-size: 12px; }
.travelItem .row { margin-top: 0; }
.expenseItem { border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; position: relative; }
.expenseItem .removeItemBtn { position: absolute; top: 12px; right: 12px; background: none; border: none; color: var(--danger); cursor: pointer; font-size: 12px; }
.expenseItem .row { margin-top: 0; }
.travelItemCost { margin-top: 8px; font-size: 12.5px; color: var(--navy); }
.travelTotalBox { margin-top: 16px; padding: 12px 14px; background: #eef6ef; border-radius: 8px; font-size: 15px; color: var(--ok); font-weight: 700; }
.folderManageBox { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; flex-wrap: wrap; }
.folderManageBox input[type="text"] { padding: 7px 11px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; }
.folderTag { display: inline-flex; align-items: center; gap: 4px; background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 3px 10px; font-size: 11px; margin-right: 6px; }
.folderTag button { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 11px; padding: 0; }
.docFolderSelect { font-size: 12px; padding: 4px 7px; border-radius: 5px; border: 1px solid var(--border); }

/* 리스트 */
.listWrap { display: flex; flex-direction: column; gap: 10px; }
.reqCard { background: var(--card); border: none; border-radius: var(--radius-btn); padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; box-shadow: var(--shadow-card); transition: box-shadow 0.12s ease; }
.reqCard:hover { box-shadow: 0 2px 8px rgba(20,30,45,0.06); }
.reqCard .info { font-size: 13px; }
.reqCard .info .top { font-weight: 600; margin-bottom: 3px; color: var(--ink); }
.reqCard .info .muted { color: var(--muted); }
.reqCard .status { padding: 3px 10px; border-radius: 999px; font-size: 11px; white-space: nowrap; font-weight: 600; }
.status.검토대기 { background: var(--wait-light); color: var(--wait); }
.status.승인대기 { background: var(--wait-light); color: var(--wait); }
.status.승인 { background: var(--ok-light); color: var(--ok); }
.status.반려 { background: var(--danger-light); color: var(--danger); }
.status.취소 { background: var(--paper); color: var(--muted); }
.status.막힘 { background: var(--paper); color: var(--muted); }
.actions { display: flex; gap: 8px; }
.actions button { padding: 7px 13px; border: none; border-radius: 7px; cursor: pointer; font-size: 12px; color: #fff; font-weight: 500; }
.actions .approveBtn { background: var(--ok); }
.actions .rejectBtn { background: var(--danger); }
.actions .cancelBtn { background: var(--muted); }
.empty { color: var(--muted); font-size: 13px; padding: 24px; text-align: center; }

/* 프로젝트 3열 카드 그리드 */
.projectGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1100px) { .projectGrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .projectGrid { grid-template-columns: 1fr; } }
.projectCard { background: var(--card); border: none; box-shadow: var(--shadow-card); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow 0.12s ease; }
.projectCard:hover { box-shadow: 0 3px 10px rgba(20,30,45,0.12); }
.projectCard .pcTop { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.projectCard .pcTop .status { white-space: nowrap; flex-shrink: 0; }
.projectCard .pcTitle { font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.4; }
.projectCard .pcMeta { font-size: 12px; color: var(--muted); line-height: 1.6; }
.projectCard .pcFooter { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
.taskCard { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.taskCard .tcTop { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.taskCard .tcInline { display: flex; align-items: center; gap: 8px; }
.taskCard .tcInline select, .taskCard .tcInline input { padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; }
.taskCard .tcComments { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.feedPost { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.feedPost .fpMeta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.feedPostTitle { font-weight: 700; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.feedPostContent { white-space: pre-wrap; line-height: 1.6; }

/* 월간 업무 계획표 */
.calendarGrid { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--border); border-bottom: none; border-radius: 10px 10px 0 0; overflow: hidden; background: var(--card); }
.calHeadCell { padding: 8px; text-align: center; font-size: 12px; font-weight: 700; color: var(--navy); background: #faf9f5; border-right: 1px solid var(--border); }
.calHeadCell:last-child { border-right: none; }
.calWeekRow { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--border); border-top: none; background: var(--card); }
.calDayCell { min-height: 96px; border-right: 1px solid var(--border); padding: 4px; position: relative; }
.calDayCell:last-child { border-right: none; }
.calDayCell.otherMonth { background: #fafaf8; color: var(--muted); }
.calDayCell.today .calDateNum { background: var(--navy); color: #fff; border-radius: 50%; }
.calDateNum { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-size: 11px; font-weight: 600; margin-bottom: 3px; cursor: pointer; }
.calAddBtn { position: absolute; top: 2px; right: 4px; font-size: 14px; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity 0.1s; }
.calDayCell:hover .calAddBtn { opacity: 1; }
.calBar { font-size: 10.5px; color: #fff; padding: 2px 5px; margin-bottom: 2px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calBar.barStart { border-radius: 5px 0 0 5px; margin-left: 2px; }
.calBar.barEnd { border-radius: 0 5px 5px 0; margin-right: 2px; }
.calBar.barStart.barEnd { border-radius: 5px; margin-left: 2px; margin-right: 2px; }
.calBar.barMid { border-radius: 0; margin-left: 0; margin-right: 0; }
.calBarGhost { visibility: hidden; height: 17px; margin-bottom: 2px; }

/* 일일 업무일지 (주간 시간표) */
.dlGrid { display: grid; grid-template-columns: 64px repeat(7, 1fr); min-width: 800px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.dlHeadCell { padding: 8px 4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--navy); background: #faf9f5; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); position: sticky; top: 0; }
.dlTimeCell { padding: 2px 6px; font-size: 10px; color: var(--muted); border-right: 1px solid var(--border); border-bottom: 1px solid #eee; text-align: right; }
.dlSlotCell { border-right: 1px solid var(--border); border-bottom: 1px solid #eee; cursor: pointer; position: relative; }
.dlSlotCell:hover { background: var(--paper); }
.dlEntry { position: absolute; left: 2px; right: 2px; top: 1px; bottom: 1px; border-radius: 5px; color: #fff; font-size: 10.5px; padding: 2px 5px; overflow: hidden; cursor: pointer; z-index: 2; line-height: 1.3; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.colorPickRow { display: flex; gap: 6px; margin: 8px 0; }
.colorDot { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.colorDot.selected { border-color: var(--ink); }

/* =========================================================
   UI Refresh v1 · 2026-08
   기존 기능/ID/API를 유지하면서 정보 위계와 탐색 구조를 개선합니다.
   ========================================================= */
:root {
  --surface-subtle: #f8f9fb;
  --surface-blue: #f2f5ff;
  --cool-blue: #d7efff;
  --jade: #aeb8a0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --topbar-height: 72px;
  --sidebar-width: 248px;
  --shadow-float: 0 12px 32px rgba(20, 25, 43, .10);
}

body { background: #f7f8fa; }
.appShell { background: #f7f8fa; }
.sidebar { width: var(--sidebar-width); background: #151a2d; z-index: 80; }
.sidebar .brand { min-height: 74px; padding: 17px 18px; gap: 11px; }
.brandLogo { width: 29px; height: 29px; }
.brandText { min-width: 0; display: flex; flex-direction: column; gap: 3px; color: #fff; }
.brandText strong { font-size: 13.5px; line-height: 1.25; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brandText span { font-size: 9px; font-weight: 700; letter-spacing: 1.6px; color: rgba(255,255,255,.38); }
.mobileNavClose, .mobileNavOpen { display: none; }

.sideNav { padding: 12px 10px 14px; gap: 4px; }
.navModule { border-radius: 10px; overflow: hidden; }
.navModuleEmpty { display: none; }
.navModuleBtn { width: 100%; border: 0; background: transparent; color: #aeb4c6; display: grid; grid-template-columns: 22px 1fr 16px; align-items: center; gap: 9px; padding: 10px 10px; border-radius: 9px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; }
.navModuleBtn:hover { background: rgba(255,255,255,.055); color: #fff; }
.navModuleIcon { display: inline-flex; align-items: center; justify-content: center; }
.navModuleIcon svg { width: 17px; height: 17px; }
.navChevron { justify-self: end; font-size: 14px; color: rgba(255,255,255,.35); transform: rotate(-90deg); transition: transform .16s ease; }
.navModuleOpen .navChevron { transform: rotate(0deg); }
.navGroupBody { display: none; padding: 2px 0 5px 31px; }
.navModuleOpen .navGroupBody { display: flex; flex-direction: column; }
.sideNav .tabBtn { border: 0; border-left: 0; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: #8f97aa; position: relative; }
.sideNav .tabBtn:hover { background: rgba(255,255,255,.05); color: #e9ebf2; }
.sideNav .tabBtn.active { background: rgba(79,70,229,.20); color: #fff; border: 0; font-weight: 650; }
.sideNav .tabBtn.active::before { content: ''; position: absolute; left: -8px; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; border-radius: 3px; background: #8b85ff; }

.sideFooter { min-height: 88px; padding: 14px 16px; display: flex; align-items: flex-start; gap: 10px; }
.sideUserAvatar { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.10); color: #fff; font-size: 12px; font-weight: 800; }
.sideUserText { min-width: 0; flex: 1; }
.sideFooter .who { margin: 0 0 4px; color: #e3e6ef; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sideAccountLinks { display: flex; gap: 5px; align-items: center; color: rgba(255,255,255,.25); }
.sideAccountLinks .linklike { color: #929aaf; text-decoration: none; font-size: 11px; }
.sideAccountLinks .linklike:hover { color: #fff; }
.versionTag { margin-top: 4px; font-size: 10px; color: rgba(255,255,255,.28); }

.mainArea { min-height: 100vh; }
.topBar { height: var(--topbar-height); position: sticky; top: 0; z-index: 60; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(320px, 560px) minmax(180px, 1fr); align-items: center; gap: 20px; padding: 0 28px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid #eceef2; }
.topBarLeft { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topPageTitle { font-size: 15px; font-weight: 750; color: #171923; letter-spacing: -.2px; }
.topPageSub { margin-top: 3px; font-size: 11px; color: #8a91a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topBarCenter { min-width: 0; }
.topBar .searchBox { padding: 0; border: 0; position: relative; }
.topBar .searchBox input { height: 38px; width: 100%; padding: 0 40px 0 38px; border: 1px solid #e6e8ee; border-radius: 10px; color: #252833; background: #f7f8fa; font-size: 12.5px; transition: border .15s ease, box-shadow .15s ease, background .15s ease; }
.topBar .searchBox input::placeholder { color: #9ba1ae; }
.topBar .searchBox input:focus { outline: none; background: #fff; border-color: #c9c7fa; box-shadow: 0 0 0 3px #f0efff; }
.topBar .searchBoxIcon { left: 13px; color: #9298a6; }
.topBar .searchResultsDropdown { left: 0; right: 0; top: 44px; border: 1px solid #eceef2; box-shadow: var(--shadow-float); }
.topBarActions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.topNotiWrap { position: relative; }
.topBar .notiBell { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid #e8eaf0; border-radius: 10px; color: #4d5360; background: #fff; }
.topBar .notiBell:hover { background: #f6f7fa; color: var(--navy); }
.topBar .notiDropdown { top: 46px; left: auto; right: 0; width: 360px; max-width: calc(100vw - 30px); border: 1px solid #eceef2; box-shadow: var(--shadow-float); }
.topAccountBtn { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 10px 0 6px; border: 1px solid #e8eaf0; border-radius: 10px; background: #fff; color: #555b68; font: inherit; font-size: 11.5px; cursor: pointer; }
.topAccountBtn:hover { background: #f6f7fa; }
.topAccountAvatar { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #eef0ff; color: var(--navy); font-size: 10px; font-weight: 800; }

.tabPane { padding: 32px 34px 44px; max-width: 1320px; }
.tabPane h2 { font-size: 23px; font-weight: 750; letter-spacing: -.5px; margin-bottom: 20px; }
.tabPane h3 { color: #20232c; }
.dashboardPane { padding-top: 28px; }
.dashboardIntro { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.dashboardIntro .eyebrow { font-size: 10px; font-weight: 800; color: var(--navy); letter-spacing: 1.4px; }
.dashboardIntro h1 { margin: 4px 0 5px; font-size: 27px; letter-spacing: -.8px; color: #171923; }
.dashboardIntro p { margin: 0; font-size: 12.5px; color: #818896; }

.checkinBar { border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 14px 16px; margin-bottom: 14px; }
.checkinBar button { border-radius: var(--radius-sm); }
.dashboardSummary { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; max-width: none !important; gap: 12px; margin-bottom: 22px; }
.dashboardSummary .mcSummaryCard { min-height: 102px; padding: 18px; border-radius: var(--radius-md); border: 1px solid #eff0f3; box-shadow: none; position: relative; overflow: hidden; }
.dashboardSummary .mcSummaryCard::after { content: ''; position: absolute; right: -18px; bottom: -24px; width: 72px; height: 72px; border-radius: 50%; background: #f3f4ff; }
.dashboardSummary .mcSummaryLabel { font-size: 11.5px; font-weight: 600; color: #7b8290; }
.dashboardSummary .mcSummaryValue { margin-top: 10px; font-size: 27px; line-height: 1; letter-spacing: -.6px; position: relative; z-index: 1; }

/* 공통 컴포넌트 정리 */
.formCard { border: 1px solid #eff0f3; border-radius: var(--radius-lg); box-shadow: 0 1px 3px rgba(16,24,40,.04); }
.formCard label { margin-top: 14px; color: #646b78; font-weight: 600; }
.formCard input, .formCard select, .formCard textarea { border-radius: var(--radius-sm); min-height: 40px; border-color: #e4e6eb; }
.formCard textarea { min-height: 86px; }
.filterBar { padding: 10px 12px; background: #fff; border: 1px solid #eff0f3; border-radius: 12px; }
.weekNav { flex-wrap: wrap; }
.weekNav button, .filterBar button:not(.approveBtn):not(.rejectBtn), .linklikeBtn { border-radius: var(--radius-sm); }
.subViewBtn { border-radius: 9px; }
.tableWrap { border-color: #eceef2; border-radius: var(--radius-md); box-shadow: none; }
.weeklyTable th, table th { background: #f8f9fb; color: #555d6b; }
.weeklyTable td.nameCell { background: #fbfbfc; }
.reqCard { border: 1px solid #eff0f3; box-shadow: none; border-radius: var(--radius-md); }
.reqCard:hover { border-color: #dfe1e8; box-shadow: 0 3px 12px rgba(22,24,29,.05); }
.projectCard { border: 1px solid #eff0f3; box-shadow: none; border-radius: var(--radius-md); }
.projectCard:hover { border-color: #dfe1e8; box-shadow: 0 5px 16px rgba(22,24,29,.06); transform: translateY(-1px); }
.mcSummaryCard { border-radius: var(--radius-md); }
.modalBox { border-radius: var(--radius-lg); border: 1px solid #eceef2; }
.richEditor { border-radius: var(--radius-sm); }
.notice { color: #7d8492; line-height: 1.55; }

/* 구형 따뜻한 배경색을 새 중립/쿨톤으로 정리 */
.announcementCard, .importantAnnouncementCard, .overviewBox, .pinnedPost { background: #f7f7ff; }
.notiItem.unread { background: #f5f6ff; }
.mcMonthRow.mcCurrentMonth { background: #f7f7ff; }
.ledgerCalCell.otherMonth, .calHeadCell, .dlHeadCell, .weeklyTable th { background: #f8f9fb; }
.calDayCell.otherMonth { background: #fafbfc; }
.monthlyTable .summaryRow td { background: #f8f9fb; }
.mcBarTrack, .ledgerCatBarTrack { background: #eef0f3; }
.csResponseBox { background: #f4f5f7; }

.uiButtonIcon { width: 12px; height: 12px; display: inline-block; position: relative; margin-right: 6px; vertical-align: -1px; }
.uiIcon-plus::before, .uiIcon-plus::after { content: ''; position: absolute; background: currentColor; border-radius: 1px; }
.uiIcon-plus::before { width: 12px; height: 1.5px; left: 0; top: 5px; }
.uiIcon-plus::after { width: 1.5px; height: 12px; left: 5px; top: 0; }
.uiIcon-archive { border: 1.5px solid currentColor; border-radius: 2px; }

.mobileNavScrim { display: none; }

@media (max-width: 1080px) {
  .topBar { grid-template-columns: minmax(190px, .8fr) minmax(260px, 1fr) auto; padding: 0 20px; gap: 14px; }
  .topPageSub, .topAccountLabel { display: none; }
  .topAccountBtn { padding-right: 6px; }
  .tabPane { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 800px) {
  .appShell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(82vw, 290px); height: 100vh; transform: translateX(-105%); transition: transform .2s ease; flex-direction: column; flex-wrap: nowrap; align-items: stretch; box-shadow: 16px 0 40px rgba(10,14,27,.18); }
  body.mobileNavActive { overflow: hidden; }
  body.mobileNavActive .sidebar { transform: translateX(0); }
  .sidebar .brand { border-bottom: 1px solid rgba(255,255,255,.08); }
  .mobileNavClose { display: grid; place-items: center; margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; font-size: 20px; cursor: pointer; }
  .sideNav { flex-direction: column; flex-wrap: nowrap; padding: 12px 10px; width: 100%; }
  .sideNav .tabBtn { border: 0; padding: 9px 10px; }
  .sideNav .tabBtn.active { border: 0; }
  .sideFooter { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); }
  .mainArea { width: 100%; }
  .topBar { height: 64px; grid-template-columns: 1fr auto; padding: 0 14px; }
  .topBarLeft { gap: 9px; }
  .mobileNavOpen { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #e8eaf0; border-radius: 9px; background: #fff; color: #4d5360; cursor: pointer; }
  .mobileNavOpen svg { width: 18px; height: 18px; }
  .topBarCenter { display: none; }
  .topPageTitle { font-size: 14px; }
  .topBar .notiDropdown { position: fixed; top: 70px; right: 10px; left: 10px; width: auto; }
  .mobileNavScrim { position: fixed; inset: 0; z-index: 70; background: rgba(9,13,25,.42); }
  body.mobileNavActive .mobileNavScrim { display: block; }
  .tabPane { padding: 22px 14px 34px; }
  .tabPane h2 { font-size: 20px; }
  .dashboardIntro h1 { font-size: 24px; }
  .dashboardSummary { grid-template-columns: 1fr !important; }
  .dashboardSummary .mcSummaryCard { min-height: 86px; }
  .filterBar { padding: 9px; }
  .formCard { padding: 18px; border-radius: 12px; }
  .formCard .row { flex-direction: column; gap: 0; }
  .projectGrid { grid-template-columns: 1fr; }
}
