:root {
  --navy: #15324a;
  --navy-deep: #0f2638;
  --blue: #2f6fed;
  --blue-soft: #eaf1ff;
  --green: #1da57a;
  --amber: #e89b30;
  --violet: #7656d6;
  --ink: #17212b;
  --muted: #6c7a89;
  --line: #e5eaf0;
  --surface: #fff;
  --canvas: #f4f7fa;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 256px; padding: 26px 18px; background: linear-gradient(180deg, var(--navy), var(--navy-deep)); color: #fff; z-index: 20; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 28px; border-bottom: 1px solid rgba(255,255,255,.11); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #fff; color: var(--navy); font-size: 22px; font-weight: 900; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 18px; letter-spacing: -.3px; }
.brand span { margin-top: 3px; color: #aebfcb; font-size: 12px; }
.primary-nav { padding-top: 24px; }
.nav-label { margin: 0 12px 9px; color: #869cab; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; }
.nav-label-spaced { margin-top: 28px; }
.nav-item { width: 100%; height: 48px; border: 0; border-radius: 10px; padding: 0 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; background: transparent; color: #c9d5dd; text-align: left; }
.nav-item:hover:not(.disabled) { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: rgba(75,137,255,.22); color: #fff; box-shadow: inset 3px 0 #6ca0ff; }
.nav-icon { width: 21px; text-align: center; font-size: 17px; }
.nav-count, .soon { margin-left: auto; padding: 3px 7px; border-radius: 20px; background: rgba(255,255,255,.12); font-size: 10px; }
.nav-item.disabled { cursor: default; opacity: .48; }
.sidebar-profile { margin-top: auto; padding: 17px 9px 0; border-top: 1px solid rgba(255,255,255,.11); display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #6b86a0; font-weight: 800; }
.sidebar-profile strong, .sidebar-profile span { display: block; }
.sidebar-profile strong { font-size: 13px; }.sidebar-profile span { margin-top: 3px; color: #9fb1bd; font-size: 11px; }
.main-content { margin-left: 256px; min-height: 100vh; }
.topbar { height: 68px; padding: 0 38px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 13px; }.breadcrumb span { color: var(--muted); }.breadcrumb b { color: #bdc6ce; }
.top-actions { display: flex; align-items: center; gap: 18px; }.today { font-size: 12px; color: var(--muted); }
.icon-button { position: relative; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #ff695e; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 22px; }
.page { display: none; padding: 38px; max-width: 1480px; margin: auto; }.page.active { display: block; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 27px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 10px; letter-spacing: 1.7px; font-weight: 800; }
h1 { margin: 0; font-size: 28px; letter-spacing: -.7px; } .page-heading > div > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.primary-button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 6px 16px rgba(47,111,237,.2); }
.primary-button:hover { background: #215fd9; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-card, .panel { border: 1px solid var(--line); background: var(--surface); border-radius: 15px; box-shadow: 0 3px 12px rgba(27,48,67,.035); }
.stat-card { padding: 21px; display: flex; gap: 15px; align-items: center; }
.stat-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; font-size: 18px; }.stat-icon.blue { background: var(--blue-soft); }.stat-icon.green { background: #e8f8f2; color: var(--green); }.stat-icon.amber { background: #fff4e3; color: var(--amber); }.stat-icon.violet { background: #f0ecff; color: var(--violet); }
.stat-card span, .stat-card strong, .stat-card em { display: block; }.stat-card span { color: var(--muted); font-size: 11px; }.stat-card strong { margin: 3px 0; font-size: 24px; }.stat-card strong small { margin-left: 3px; font-size: 11px; }.stat-card em { color: #8b98a5; font-size: 10px; font-style: normal; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-bottom: 18px; }
.panel { padding: 23px; }.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }.panel-header h2 { margin: 0; font-size: 16px; }.panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.department-bars { display: grid; gap: 19px; }.bar-row { display: grid; grid-template-columns: 88px 1fr 38px; gap: 13px; align-items: center; font-size: 12px; }.bar-row > div { height: 8px; border-radius: 20px; background: #edf1f5; overflow: hidden; }.bar-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3d76e3, #75a0f2); }.bar-row strong { font-size: 11px; text-align: right; }
.quick-action { width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid #edf0f3; background: transparent; display: flex; align-items: center; gap: 11px; text-align: left; }.quick-action:last-child { border-bottom: 0; }.quick-action:not(.muted):hover { color: var(--blue); }.quick-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: #f0f4f8; }.quick-action span:nth-child(2) { flex: 1; }.quick-action strong, .quick-action small { display: block; }.quick-action strong { font-size: 12px; }.quick-action small { margin-top: 4px; color: var(--muted); font-size: 10px; }.quick-action b { color: #aab5bf; font-size: 20px; }.quick-action.muted { opacity: .55; }
.recent-panel { padding-bottom: 12px; }.text-button { border: 0; background: transparent; color: var(--blue); font-size: 11px; }.activity-list > div { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid #eef1f4; }.person-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 11px; font-weight: 800; }.peach { background: #ffede4; color: #cc693b; }.mint { background: #e1f7f0; color: #248568; }.blue-soft { background: var(--blue-soft); color: var(--blue); }.activity-list p { flex: 1; margin: 0; }.activity-list strong, .activity-list small { display: block; }.activity-list strong { font-size: 12px; }.activity-list small, .activity-list time { margin-top: 4px; color: var(--muted); font-size: 10px; }
.employee-panel { padding: 0; overflow: hidden; }.filter-row { padding: 20px 22px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }.search-box { min-width: 290px; height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; }.search-box input { width: 100%; border: 0; outline: 0; font-size: 12px; }.filter-row select { height: 40px; padding: 0 32px 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #4e5b67; font-size: 11px; }.result-count { margin-left: auto; color: var(--muted); font-size: 11px; }.result-count strong { color: var(--ink); }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th, td { padding: 15px 20px; border-bottom: 1px solid #edf0f3; text-align: left; white-space: nowrap; } th { background: #fafbfc; color: #71808d; font-size: 10px; letter-spacing: .2px; } td { font-size: 11px; }.employee-cell { display: flex; align-items: center; gap: 10px; }.employee-cell span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-weight: 800; }.employee-cell strong, .employee-cell small { display: block; }.employee-cell small { margin-top: 3px; color: var(--muted); font-size: 9px; }.status { padding: 4px 8px; border-radius: 20px; font-size: 9px; font-weight: 700; }.status.active { background: #e8f8f2; color: #198365; }.status.leave { background: #fff2df; color: #b97820; }.row-button { border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; background: #fff; color: #4e5b67; font-size: 10px; }.row-button:hover { border-color: var(--blue); color: var(--blue); }.empty-state { padding: 45px; color: var(--muted); text-align: center; font-size: 12px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(9,26,40,.55); }.modal-backdrop[hidden] { display: none; }.modal { position: relative; width: min(500px, 100%); padding: 30px; border-radius: 17px; background: #fff; box-shadow: 0 22px 70px rgba(0,0,0,.24); }.modal h2 { margin: 0 0 22px; }.modal-close { position: absolute; top: 16px; right: 18px; border: 0; background: transparent; color: #73808c; font-size: 24px; }.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.detail-grid div { padding: 12px; border-radius: 9px; background: #f6f8fa; }.detail-grid span, .detail-grid strong { display: block; }.detail-grid span { margin-bottom: 5px; color: var(--muted); font-size: 9px; }.detail-grid strong { font-size: 12px; }.modal-confirm { width: 100%; margin-top: 22px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.secondary-button { min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #43515f; font-size: 11px; font-weight: 700; }
.secondary-button:hover { border-color: var(--blue); color: var(--blue); }.secondary-button.warning:hover { border-color: var(--amber); color: #b87316; }
.employee-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.employee-form label { display: grid; gap: 6px; }.employee-form label:first-child, .employee-form label:nth-child(2), .employee-form label:nth-child(5) { grid-column: 1 / -1; }
.employee-form label > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.employee-form input, .employee-form select { width: 100%; height: 41px; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; outline: 0; background: #fff; color: var(--ink); font-size: 12px; }
.employee-form input:focus, .employee-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,237,.1); }.employee-form input[readonly] { background: #f4f6f8; color: var(--muted); }
.toast { position: fixed; right: 28px; bottom: 28px; z-index: 80; padding: 13px 17px; border-radius: 10px; background: var(--navy-deep); color: #fff; box-shadow: 0 12px 30px rgba(15,38,56,.25); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }.toast[data-type="error"] { background: #a63737; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, #e9f1ff, transparent 34%), linear-gradient(135deg, #f7f9fc, #eaf0f5); }
.login-screen[hidden], .app-shell[hidden] { display: none; }
.login-card { width: min(440px, 100%); padding: 38px; border: 1px solid rgba(255,255,255,.8); border-radius: 21px; background: rgba(255,255,255,.96); box-shadow: 0 24px 70px rgba(21,50,74,.14); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }.login-brand strong, .login-brand span { display: block; }.login-brand strong { font-size: 17px; }.login-brand span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.login-card h1 { font-size: 26px; }.login-description { margin: 10px 0 25px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.login-form { display: grid; gap: 14px; }.login-form label { display: grid; gap: 7px; }.login-form label span { color: #53616f; font-size: 11px; font-weight: 700; }.login-form input { height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 13px; outline: 0; }.login-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,237,.1); }.login-form .primary-button { width: 100%; height: 46px; }
.form-error { min-height: 18px; margin: -2px 0 0; color: #b83a3a; font-size: 11px; }.form-hint { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: auto; padding: 0 0 14px; }.account-actions button { min-height: 33px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.05); color: #b9c8d2; font-size: 9px; }.account-actions button:hover { background: rgba(255,255,255,.1); color: #fff; }
.primary-button:disabled, .modal-confirm:disabled { cursor: wait; opacity: .6; }

@media (max-width: 1050px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }.sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }.menu-toggle { display: block; }.topbar { padding: 0 18px; }.today { display: none; }
  .page { padding: 24px 17px; }.page-heading { align-items: flex-start; gap: 18px; }.page-heading .primary-button { white-space: nowrap; }
  .stat-grid { grid-template-columns: 1fr; }.filter-row { flex-wrap: wrap; }.search-box { min-width: 100%; }.result-count { width: 100%; margin: 4px 0 0; }
}
