/* ========================================
   글로벌에코 오아시스 2.0 - 메인 스타일시트
   Professional ERP Design System
   ======================================== */

/* ========================================
   CSS Variables (Design System)
   ======================================== */
/* ══════════ §1 원시 램프 — 12단 × 9계열 ══════════
   단 역할 = 1 앱바닥 · 2 옅은바닥 · 3 컴포넌트 · 4 호버 · 5 선택 · 6 옅은테두리
            7 테두리 · 8 강한테두리 · 9 채운면 · 10 채운면호버 · 11 글자 · 12 강한글자
   9~12단은 대비로 풀었다 — 9단 위 흰 글자 4.6:1 · 11단 7.0:1 · 12단 12.5:1
   ★ 컴포넌트 CSS 는 이 층을 직접 쓰지 않는다. §2 자리 이름만 쓴다 ══════════ */
:root{
  /* neutral — 중성 — slate 계열 */
  --neutral-1:#FDFDFE; --neutral-2:#F8F9FB; --neutral-3:#F0F1F4; --neutral-4:#E6E8EC; --neutral-5:#DBDEE2; --neutral-6:#CDD1D7;
  --neutral-7:#BCBFC7; --neutral-8:#A3A8B2; --neutral-9:#8D9095; --neutral-10:#72757C; --neutral-11:#565961; --neutral-12:#222429;
  /* accent — 강조 — 셸 --a1 #2861F0 hue 계승 */
  --accent-1:#FCFDFF; --accent-2:#F6F9FF; --accent-3:#EBF1FE; --accent-4:#DEE9FE; --accent-5:#CEDEFD; --accent-6:#BCD1FB;
  --accent-7:#A5BFF5; --accent-8:#84A7EF; --accent-9:#336BF5; --accent-10:#1D57EC; --accent-11:#164AD6; --accent-12:#18316A;
  /* collab — 협업·영업 — a-mail hue 계승 */
  --collab-1:#FCFDFE; --collab-2:#F5FAFD; --collab-3:#E9F3F9; --collab-4:#DAEBF6; --collab-5:#C9E2F2; --collab-6:#B5D6EB;
  --collab-7:#9CC6E1; --collab-8:#76B0D4; --collab-9:#1C7DAC; --collab-10:#1F6C94; --collab-11:#265E7E; --collab-12:#233643;
  /* support — 경영지원·성공 — a-att hue 계승 */
  --support-1:#FCFDFC; --support-2:#F6FAF8; --support-3:#EAF4EF; --support-4:#DBEDE4; --support-5:#CAE5D8; --support-6:#B7DAC9;
  --support-7:#9ECCB6; --support-8:#78B89B; --support-9:#1C8561; --support-10:#1F7355; --support-11:#26644C; --support-12:#23382F;
  /* exec — 실행·주의 — a-proc hue 계승 */
  --exec-1:#FEFCFB; --exec-2:#FDF8F5; --exec-3:#FAEFE8; --exec-4:#F7E4D8; --exec-5:#F3D8C6; --exec-6:#ECC9B1;
  --exec-7:#E2B596; --exec-8:#D5996F; --exec-9:#B16019; --exec-10:#98541C; --exec-11:#824C23; --exec-12:#442F21;
  /* danger — 위험 — 셸 --bad hue 계승 */
  --danger-1:#FFFCFC; --danger-2:#FFF7F6; --danger-3:#FEECE9; --danger-4:#FEE1DB; --danger-5:#FDD2CA; --danger-6:#FDC0B5;
  --danger-7:#FBA698; --danger-8:#F58271; --danger-9:#E2281A; --danger-10:#C12A1D; --danger-11:#A33024; --danger-12:#522821;
  /* rnd — 연구소 ERP — N4-C-08 보라 계승 */
  --rnd-1:#FDFDFF; --rnd-2:#F9F8FF; --rnd-3:#F1EFFE; --rnd-4:#E9E5FE; --rnd-5:#DED8FD; --rnd-6:#D2C9FB;
  --rnd-7:#C1B5F5; --rnd-8:#AB98EF; --rnd-9:#8852F5; --rnd-10:#7B37ED; --rnd-11:#6A37C9; --rnd-12:#382B5E;
  /* teal — 예비 — 미배정 범주 */
  --teal-1:#FCFDFD; --teal-2:#F6FAFA; --teal-3:#EAF3F3; --teal-4:#DBECEC; --teal-5:#CAE3E3; --teal-6:#B7D8D8;
  --teal-7:#9DC9C9; --teal-8:#77B5B5; --teal-9:#1C8283; --teal-10:#207071; --teal-11:#266262; --teal-12:#233737;
  /* plum — 예비 — 미배정 범주 */
  --plum-1:#FFFCFE; --plum-2:#FEF6FD; --plum-3:#FDEBFA; --plum-4:#FCDDF8; --plum-5:#FACDF4; --plum-6:#F5BAEE;
  --plum-7:#ECA2E5; --plum-8:#E27DDA; --plum-9:#CA24C4; --plum-10:#AC28A7; --plum-11:#922E8C; --plum-12:#4A2748;

  /* ══════════ §2 자리 이름 — 컴포넌트가 쓰는 유일한 층 ══════════ */
  --surface-page:var(--neutral-2);      --surface-1:#FFFFFF;
  --surface-2:var(--neutral-3);         --surface-3:var(--neutral-4);
  --surface-hover:var(--neutral-4);     --surface-active:var(--neutral-5);
  --surface-inverse:var(--neutral-12);
  --border-subtle:var(--neutral-6);     --border-default:var(--neutral-7);
  --border-strong:var(--neutral-9);     --border-focus:var(--accent-9);
  --text-primary:var(--neutral-12);     --text-secondary:var(--neutral-11);
  --text-muted:var(--neutral-10);       --text-on-solid:#FFFFFF;
  --text-link:var(--accent-11);         --text-link-hover:var(--accent-12);

  /* 상태 자리 — 오브젝트 상태(`.st`)가 쓰는 유일한 층.
     ★ 중립은 «색이 아니다» — 본문 회색을 그대로 쓴다(SAP: neutral 엔 색도 아이콘도 없다).
     ★ 중성 채운 판만 9단이 아니라 11단이다 — neutral-9 위 흰 글자는 3.20:1 로 미달. */
  --st-neutral:var(--text-secondary);   --st-neutral-solid:var(--neutral-11);
  --st-progress:var(--collab-11);       --st-progress-solid:var(--collab-9);
  --st-done:var(--support-11);          --st-done-solid:var(--support-9);
  --st-action:var(--exec-11);           --st-action-solid:var(--exec-9);
  --st-back:var(--danger-11);           --st-back-solid:var(--danger-9);

  /* 서체 자리 — 컴포넌트는 이 셋만 쓴다.
     ★ --font-num / --font-code 의 폴백에 Pretendard 가 반드시 있어야 한다.
       Inter·Plex Mono 는 한글 글리프가 없어 「건」 「원」 같은 접미사가 떨어진다. */
  --font-body:'Pretendard',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --font-num:'Inter','Pretendard',-apple-system,BlinkMacSystemFont,sans-serif;
  --font-code:'IBM Plex Mono','Pretendard',ui-monospace,SFMono-Regular,Menlo,monospace;

  /* 굵기 자리 — 지금 CSS 에 600 이 208곳 박혀 있어 위계를 못 바꾼다 */
  --w-body:400; --w-emph:500; --w-strong:600; --w-head:700;
  --accent-surface:var(--accent-3);        --accent-surface-hover:var(--accent-4);
  --accent-border:var(--accent-7);         --accent-solid:var(--accent-9);
  --accent-solid-hover:var(--accent-10);   --accent-text:var(--accent-11);
  --collab-surface:var(--collab-3);        --collab-surface-hover:var(--collab-4);
  --collab-border:var(--collab-7);         --collab-solid:var(--collab-9);
  --collab-solid-hover:var(--collab-10);   --collab-text:var(--collab-11);
  --support-surface:var(--support-3);        --support-surface-hover:var(--support-4);
  --support-border:var(--support-7);         --support-solid:var(--support-9);
  --support-solid-hover:var(--support-10);   --support-text:var(--support-11);
  --exec-surface:var(--exec-3);        --exec-surface-hover:var(--exec-4);
  --exec-border:var(--exec-7);         --exec-solid:var(--exec-9);
  --exec-solid-hover:var(--exec-10);   --exec-text:var(--exec-11);
  --danger-surface:var(--danger-3);        --danger-surface-hover:var(--danger-4);
  --danger-border:var(--danger-7);         --danger-solid:var(--danger-9);
  --danger-solid-hover:var(--danger-10);   --danger-text:var(--danger-11);
  --rnd-surface:var(--rnd-3);        --rnd-surface-hover:var(--rnd-4);
  --rnd-border:var(--rnd-7);         --rnd-solid:var(--rnd-9);
  --rnd-solid-hover:var(--rnd-10);   --rnd-text:var(--rnd-11);
  --teal-surface:var(--teal-3);        --teal-surface-hover:var(--teal-4);
  --teal-border:var(--teal-7);         --teal-solid:var(--teal-9);
  --teal-solid-hover:var(--teal-10);   --teal-text:var(--teal-11);
  --plum-surface:var(--plum-3);        --plum-surface-hover:var(--plum-4);
  --plum-border:var(--plum-7);         --plum-solid:var(--plum-9);
  --plum-solid-hover:var(--plum-10);   --plum-text:var(--plum-11);

  /* ══════════ §3 호환층 — 기존 이름 유지 (var() 310곳이 그대로 따라온다) ══════════
     이 절은 «한시적»이다. 컴포넌트를 §2 로 옮긴 뒤 걷어낸다 ══════════ */
  --primary:var(--accent-9);
  --primary-dark:var(--accent-10);
  --primary-darker:var(--accent-11);
  --primary-light:var(--accent-8);
  --primary-50:var(--accent-2);
  --primary-100:var(--accent-3);
  --primary-200:var(--accent-4);
  --secondary:var(--neutral-10);
  --secondary-dark:var(--neutral-11);
  --success:var(--support-9);
  --success-dark:var(--support-10);
  --success-light:var(--support-3);
  --warning:var(--exec-9);
  --warning-dark:var(--exec-10);
  --warning-light:var(--exec-3);
  --danger:var(--danger-9);
  --danger-dark:var(--danger-10);
  --danger-light:var(--danger-3);
  --info:var(--collab-9);
  --info-dark:var(--collab-10);
  --info-light:var(--collab-3);
  --gray-50:var(--neutral-2);
  --gray-100:var(--neutral-3);
  --gray-200:var(--neutral-4);
  --gray-300:var(--neutral-6);
  --gray-400:var(--neutral-8);
  --gray-500:var(--neutral-9);
  --gray-600:var(--neutral-10);
  --gray-700:var(--neutral-11);
  --gray-800:var(--neutral-11);
  --gray-900:var(--neutral-12);
  --bg-main:var(--neutral-2);
  --bg-primary:var(--neutral-2);
  --bg-card:var(--surface-1);
  --bg-sidebar:var(--surface-1);
  --bg-sidebar-hover:var(--neutral-3);
  --bg-sidebar-active:var(--accent-3);
  --bg-input:var(--surface-1);
  --sidebar-text:var(--neutral-11);
  --sidebar-text-muted:var(--neutral-10);
  --sidebar-border:var(--neutral-6);
  --text-light:var(--text-on-solid);
  --text-heading:var(--neutral-12);
  --border-color:var(--neutral-6);
  --border-color-dark:var(--neutral-7);
  --border-input:var(--neutral-9);

  /* ══════════ §4 비색상 토큰 — 이름·값 그대로 존치 ══════════ */
  --border-radius:8px; --border-radius-sm:6px; --border-radius-lg:12px; --border-radius-xl:16px;
  --sidebar-width:260px; --sidebar-collapsed-width:72px; --header-height:64px;
  --transition-fast:150ms cubic-bezier(0.4,0,0.2,1);
  --transition-normal:250ms cubic-bezier(0.4,0,0.2,1);

  /* 그림자 — 순검정을 잉크 기반으로 (N4-C-31 과 정합) */
  --shadow-xs:0 1px 2px 0 rgba(34,36,41,.05);
  --shadow-sm:0 1px 3px 0 rgba(34,36,41,.10), 0 1px 2px -1px rgba(34,36,41,.10);
  --shadow:0 4px 6px -1px rgba(34,36,41,.10), 0 2px 4px -2px rgba(34,36,41,.10);
  --shadow-md:0 10px 15px -3px rgba(34,36,41,.10), 0 4px 6px -4px rgba(34,36,41,.10);
  --shadow-xl:0 25px 50px -12px rgba(34,36,41,.25);

  /* 포커스 링 — 하드코딩 rgba 를 토큰 참조로 (색이 바뀌면 링도 따라온다) */
  --focus-ring:0 0 0 3px color-mix(in oklab, var(--accent-9) 30%, transparent);
  --focus-ring-danger:0 0 0 3px color-mix(in oklab, var(--danger-9) 30%, transparent);
  --focus-ring-success:0 0 0 3px color-mix(in oklab, var(--support-9) 30%, transparent);

  /* 그라디언트 — 같은 계열 9→10단. 하드코딩 hex 6종을 걷어냈다 */
  --gradient-primary:linear-gradient(135deg, var(--accent-9) 0%, var(--accent-10) 100%);
  --gradient-primary-hover:linear-gradient(135deg, var(--accent-8) 0%, var(--accent-9) 100%);
  --gradient-header:linear-gradient(135deg, var(--accent-11) 0%, var(--accent-10) 50%, var(--accent-9) 100%);
  --gradient-success:linear-gradient(135deg, var(--support-9) 0%, var(--support-10) 100%);
  --gradient-danger:linear-gradient(135deg, var(--danger-9) 0%, var(--danger-10) 100%);
}


/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-main);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a[onclick],
a:not([href]) {
    cursor: pointer;
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.4;
}

p {
    margin: 0;
}

/* ========================================
   Grid System
   ======================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.row > * {
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
}

/* Column classes */
.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1 { flex: 0 0 auto; width: 8.333333%; }
.col-2 { flex: 0 0 auto; width: 16.666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-5 { flex: 0 0 auto; width: 41.666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.333333%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.333333%; }
.col-11 { flex: 0 0 auto; width: 91.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

/* Medium breakpoint (768px+) */
@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-md-9 { flex: 0 0 auto; width: 75%; }
    .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-md-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
}

/* Large breakpoint (992px+) */
@media (min-width: 992px) {
    .col-lg-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-lg-9 { flex: 0 0 auto; width: 75%; }
    .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-lg-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

/* Row gap variants */
.g-0 { margin: 0; }
.g-0 > * { padding: 0; }
.g-1 { margin: -4px; }
.g-1 > * { padding: 4px; }
.g-2 { margin: -8px; }
.g-2 > * { padding: 8px; }
.g-3 { margin: -12px; }
.g-3 > * { padding: 12px; }
.g-4 { margin: -16px; }
.g-4 > * { padding: 16px; }
.g-5 { margin: -20px; }
.g-5 > * { padding: 20px; }

/* ========================================
   Layout
   ======================================== */
.layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-normal);
    min-width: 0;
}

.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

.content-wrapper {
    padding: 24px 32px;
    padding-top: calc(var(--header-height) + 24px);
    min-height: 100vh;
    max-width: 1600px;
}

/* ========================================
   Sidebar - Professional Dark Theme
   ======================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    color: var(--sidebar-text);
    z-index: 1000;
    transition: width var(--transition-normal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--sidebar-border);
}

.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

/* Sidebar Header (Logo) */
.sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-heading);
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
}

.sidebar-logo:hover {
    color: var(--text-heading);
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.sidebar-logo-text {
    opacity: 1;
    transition: opacity var(--transition-normal);
    letter-spacing: -0.02em;
}

.sidebar-collapsed .sidebar-logo-text {
    opacity: 0;
    width: 0;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.nav-section {
    margin-bottom: 4px;
}

.nav-section-title {
    padding: 16px 20px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.sidebar-collapsed .nav-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

/* Nav Item */
.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--sidebar-text);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 450;
    border-radius: 0;
    margin: 0;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--bg-sidebar-hover);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--bg-sidebar-active);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

.nav-link-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-link-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-collapsed .nav-link-text {
    opacity: 0;
    width: 0;
}

.nav-link-arrow {
    font-size: 1rem;
    transition: transform var(--transition-fast);
    opacity: 0.5;
}

.nav-item.open .nav-link-arrow {
    transform: rotate(90deg);
}

.sidebar-collapsed .nav-link-arrow {
    display: none;
}

/* Submenu */
.nav-submenu {
    display: none;
    padding-left: 32px;
    background-color: var(--gray-50);
}

.nav-item.open .nav-submenu {
    display: block;
}

.nav-submenu .nav-link {
    padding: 9px 20px;
    font-size: 0.85rem;
    color: var(--sidebar-text-muted);
}

.nav-submenu .nav-link:hover {
    color: var(--primary);
    background-color: var(--bg-sidebar-hover);
}

.nav-submenu .nav-link.active {
    color: var(--primary);
    font-weight: 600;
    background: transparent;
}

.nav-submenu .nav-link.active::before {
    display: none;
}

.sidebar-collapsed .nav-submenu {
    display: none !important;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--sidebar-border);
    background: var(--gray-50);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-fast);
}

.sidebar-user:hover {
    background-color: var(--bg-sidebar-hover);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-collapsed .sidebar-user-info {
    display: none;
}

.sidebar-user-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ========================================
   Header - Clean Modern Style
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 999;
    transition: left var(--transition-normal);
    box-shadow: var(--shadow-xs);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item a {
    color: var(--text-secondary);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-divider {
    color: var(--gray-300);
    font-size: 0.8rem;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Search */
.header-search {
    position: relative;
}

/* input[type="text"] (.form-control 베이스, line 1046)과 특이도 동률이라 후순위
   베이스가 padding-left:40px·width 를 덮어 돋보기 아이콘이 placeholder 와 겹쳤음.
   [type="text"] 부착으로 특이도를 올려(0,2,1) 베이스를 이긴다. */
.header-search input[type="text"] {
    width: 260px;
    padding: 8px 14px 8px 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: var(--gray-50);
    transition: all var(--transition-fast);
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
    background: var(--bg-card);
}

.header-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

/* Header Icons */
.header-icon {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.2rem;
}

.header-icon:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

.header-icon-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background-color: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* User Dropdown */
.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: 8px;
}

.header-user:hover {
    background-color: var(--gray-100);
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.header-user-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* ========================================
   Cards - Clean Professional Style
   ======================================== */
.card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow);
}

/* Content Card - 화면 무변경 기초 정의 (브라우저 기본값 동일) */
.content-card {
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.card-header h3,
.card-header h5,
.card-header .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i,
.card-header h5 i,
.card-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 24px;
}

.card-body.p-0 {
    padding: 0 !important;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--gray-50);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* Card Variants */
.card-flat {
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.card-flat:hover {
    box-shadow: none;
}

/* ========================================
   Buttons - Modern Professional Style
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}

.btn:focus {
    outline: none;
}

.btn i {
    font-size: 1rem;
}

/* Primary Button */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus {
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3), var(--focus-ring);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--gray-100);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--gray-200);
    color: var(--text-primary);
}

.btn-secondary:focus {
    box-shadow: var(--focus-ring);
}

/* Success Button */
.btn-success {
    background: var(--gradient-success);
    color: white;
    border: none;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.3);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
    color: white;
}

/* Danger Button */
.btn-danger {
    background: var(--gradient-danger);
    color: white;
    border: none;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    color: white;
}

/* Outline Buttons */
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--text-primary);
}

.btn-outline-primary {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

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

.btn-outline-danger:hover {
    background-color: var(--danger);
    color: white;
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-sm i {
    font-size: 0.9rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

/* Icon Button */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--border-radius);
}

.btn-icon-sm {
    width: 30px;
    height: 30px;
    padding: 0;
}

/* White Buttons (for gradient headers) */
/* Formerly white pill on gradient banner; now the solid primary action on the light bar */
.btn-white {
    background: var(--primary);
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    color: #fff;
}

/* Formerly white-on-gradient; now an outline button on the light header bar */
.btn-white-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-white-outline:hover {
    background: var(--gray-100);
    border-color: var(--border-color-dark);
    color: var(--primary);
}

/* ========================================
   Forms - Clean Professional Style
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label,
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-heading);
    font-size: 0.85rem;
}

.form-label.required::after,
label.required::after {
    content: ' *';
    color: var(--danger);
}

/* Input, Select, Textarea */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.5;
    border: 1.5px solid var(--border-input);
    border-radius: var(--border-radius);
    background-color: var(--bg-input);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-control:hover,
input:hover,
textarea:hover,
select:hover {
    border-color: var(--gray-400);
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

.form-control:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    background-color: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Select (Combo Box) */
.form-select,
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.form-select:focus,
select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Textarea */
textarea {
    min-height: 100px;
    resize: vertical;
}

/* File Input */
input[type="file"] {
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    padding: 6px 14px;
    margin-right: 12px;
    border: none;
    border-radius: var(--border-radius-sm);
    background: var(--gradient-primary);
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

input[type="file"]::file-selector-button:hover {
    background: var(--gradient-primary-hover);
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 0;
}

/* Form Control Sizes */
.form-control-sm {
    padding: 7px 12px;
    font-size: 0.85rem;
}

.form-control-lg {
    padding: 12px 16px;
    font-size: 1rem;
}

/* Input Group */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control,
.input-group input,
.input-group select {
    border-radius: 0;
    flex: 1;
}

.input-group .form-control:first-child,
.input-group input:first-child,
.input-group select:first-child {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.input-group .form-control:last-child,
.input-group input:last-child,
.input-group select:last-child {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: var(--gray-100);
    border: 1.5px solid var(--border-input);
    white-space: nowrap;
}

.input-group-text:first-child {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border-right: none;
}

.input-group-text:last-child {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    border-left: none;
}

/* Validation */
.is-invalid {
    border-color: var(--danger) !important;
}

.is-invalid:focus {
    box-shadow: var(--focus-ring-danger) !important;
}

.invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--danger);
}

.is-valid {
    border-color: var(--success) !important;
}

.is-valid:focus {
    box-shadow: var(--focus-ring-success) !important;
}

.valid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--success);
}

.form-text {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   Form Sections - Clean Card Style
   ======================================== */
.form-section {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section-title,
h5.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-100);
}

.form-section-title i,
h5.form-section-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
}

.form-actions-right {
    justify-content: flex-end;
}

.form-actions-center {
    justify-content: center;
}

.form-actions-between {
    justify-content: space-between;
}

/* ========================================
   Tables - Professional Data Grid
   ======================================== */
.table-wrapper,
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    border-radius: var(--border-radius-lg);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.table th,
.table td {
    padding: 9px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.table tbody tr {
    transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
    background-color: var(--primary-50);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-striped tbody tr:nth-child(even) {
    background-color: var(--gray-50);
}

.table-striped tbody tr:nth-child(even):hover {
    background-color: var(--primary-50);
}

/* Table Cell Alignment */
.table .text-center { text-align: center; }
.table .text-right,
.table .text-end { text-align: right; }
.table .nowrap { white-space: nowrap; }

/* Table with Card wrapper */
.card .table th:first-child,
.card .table td:first-child {
    padding-left: 24px;
}

.card .table th:last-child,
.card .table td:last-child {
    padding-right: 24px;
}

/* Compact Table */
.table-compact th,
.table-compact td {
    padding: 10px 14px;
}

/* Clickable Row */
.table tbody tr[onclick],
.table tbody tr[style*="cursor: pointer"],
.table tbody tr[style*="cursor:pointer"] {
    cursor: pointer;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
}

/* Table Empty State */
.table-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.table-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.table-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* ========================================
   Badges - Status Indicators
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.badge-primary {
    background-color: var(--primary-100);
    color: var(--primary-dark);
}

.badge-secondary {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.badge-success {
    background-color: var(--success-light);
    color: var(--success-dark);
}

.badge-warning {
    background-color: var(--warning-light);
    color: var(--warning-dark);
}

.badge-danger {
    background-color: var(--danger-light);
    color: var(--danger-dark);
}

.badge-info {
    background-color: var(--info-light);
    color: var(--info-dark);
}

/* ══════════════════════════════════════════════════════════════════════════
   오브젝트 상태 — `.st`
   레코드의 «상태» 를 나타내는 유일한 컴포넌트. 위 `.badge-*` 는 «분류(Tag)» 로만
   남기고, 상태는 전부 이쪽으로 옮긴다.

   왜 상자가 없는가 — 실물 아홉 곳을 촬영해 대조한 결과, 모든 상태를 진한 색으로
   채우는 곳은 하나도 없었다. SAP Fiori Object Status 는 명시적으로
   「semantically colored text-only option on its own」 을 권장하고,
   채운 판(inverted)은 「if the information is crucial for the user's actions」
   일 때만이라고 못박는다. Adobe Spectrum 은 「Color alone is not enough」 라
   낱말을 필수로 둔다.

   규칙
     ① 상태는 «낱말» 이다. 상자는 기본값이 아니다.
     ② 색은 «단계를 열거» 하지 않는다. «조치가 필요한가» 를 말한다.
     ③ 중립은 색이 없다. 목록의 대다수가 중립이라 목록이 조용해진다.
     ④ 조치가 필요한 둘(action·back)에만 아이콘을 단다 — 회색조·색약에서 그 둘이
        형태로 갈린다. 전부에 달면 그 효과가 사라진다.
     ⑤ 채운 판(`--solid`)은 화면당 하나 — 「이 문서의 지금 상태」.

   대비 실측(흰 바탕) — 중립 7.01 · 진행 7.04 · 완결 6.98 · 조치 6.98 ·
   되돌아옴 6.99 · 종료 4.61. 채운 판 위 흰 글자 4.59~4.61. 전건 WCAG AA.
   신규 색 0 — 전부 §1 램프의 11단(글자)과 9단(면)이다.
   ══════════════════════════════════════════════════════════════════════════ */
.st {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: inherit;
    white-space: nowrap;
    color: var(--st-neutral);
}
.st i {
    font-style: normal;
    font-size: 12px;
    line-height: 1;
    flex: none;
}
.st--progress { color: var(--st-progress); }
.st--done     { color: var(--st-done); }
.st--action   { color: var(--st-action);   font-weight: var(--w-strong); }
.st--back     { color: var(--st-back);     font-weight: var(--w-strong); }

/* 종료 — 색을 하나도 안 늘리고 상태를 하나 더 만든다.
   ★ 명도 하락 + 취소선 «이중» 으로 건다. 취소선 단독은 글자 획과 겹치는 양이
     크기마다 달라 잉크 순증이 6.5~13.3% 를 오가는 추첨이다(실측). */
.st--void { color: var(--text-muted); }
.st--void > span { text-decoration: line-through; text-decoration-thickness: 1px; }

/* 강조 — 화면당 하나. SAP inverted */
.st--solid {
    height: 20px;
    padding: 0 8px;
    border-radius: var(--border-radius-sm);
    background-color: var(--st-neutral-solid);
    color: var(--text-on-solid);
    font-weight: var(--w-strong);
}
.st--solid.st--progress { background-color: var(--st-progress-solid); color: var(--text-on-solid); }
.st--solid.st--done     { background-color: var(--st-done-solid);     color: var(--text-on-solid); }
.st--solid.st--action   { background-color: var(--st-action-solid);   color: var(--text-on-solid); }
.st--solid.st--back     { background-color: var(--st-back-solid);     color: var(--text-on-solid); }
.st--solid.st--void     { background-color: var(--neutral-8); color: var(--text-on-solid); }
.st--solid.st--void > span { text-decoration: none; }

/* 누를 수 있을 때만 — WCAG 2.2 표적 최소 24px */
.st--target {
    min-height: 24px;
    padding: 0 6px;
    margin: 0 -6px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
}
.st--target:hover { background-color: var(--neutral-3); }

/* Badge Sizes */
.badge-sm {
    padding: 2px 8px;
    font-size: 0.7rem;
}

.badge-lg {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* ========================================
   Alerts - Notification Messages
   ======================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
}

.alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert span {
    flex: 1;
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success-dark);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.alert-warning {
    background-color: var(--warning-light);
    color: var(--warning-dark);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.alert-danger {
    background-color: var(--danger-light);
    color: var(--danger-dark);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.alert-info {
    background-color: var(--info-light);
    color: var(--info-dark);
    border: 1px solid rgba(8, 145, 178, 0.2);
}

.alert-close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: all var(--transition-fast);
    margin-left: auto;
    flex-shrink: 0;
}

.alert-close:hover {
    opacity: 1;
}

.messages {
    margin-bottom: 20px;
}

.messages .alert {
    animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Page Header - Professional Layout
   ======================================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    letter-spacing: -0.02em;
}

.page-description {
    color: var(--text-secondary);
    margin-top: 2px;
    font-size: 0.85rem;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Page Header — Slim light bar (flattened from former gradient banner) */
.page-header-gradient {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.page-header-gradient::before {
    display: none;
}

.page-header-gradient .page-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
    text-shadow: none;
}

.page-header-gradient .page-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

.page-header-gradient .page-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ========================================
   Stats Cards - Dashboard Metrics
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

/* !important: 다수 템플릿이 인라인 style="grid-template-columns:repeat(4,1fr)"를 하드코딩하므로 강제 오버라이드 */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

.stat-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 20px 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* ── stat-card 내부 — 정의가 «없던» 어휘 ─────────────────────────────────
   `.stat-icon` `.stat-value` `.stat-content` 와 색 수식어 4종
   (`.stat-warning` `.stat-info` `.stat-primary` `.stat-success`) 은
   ms_list · schedule_list 두 화면이 쓰는데 CSS 에 정의가 한 줄도 없었다.
   그래서 5장이 전부 같은 회색 덩어리로 그려졌다(2026-08-21 시각 확인).

   ★ `.stat-content` 안으로 한정한다. `.stat-label` 은 rnd 화면 12개가 자기
     `rnd.css` 정의로 쓰고 있어, 전역에 풀면 그쪽 글자를 말없이 바꾼다.
   ★ 색은 «숫자와 아이콘»에만 얹는다 — 배포된 대시보드 타일(`.dv-stat-c1`)이
     쓰는 방식이다. 카드 5장을 통째로 칠하면 전부가 동시에 소리를 질러
     「지금 봐야 할 칸」이 사라진다.
   ★ 글자는 10단을 쓴다. 9단은 흰 바탕에서 4.6:1 이라 겨우 걸치고,
     중성 9단은 3.2:1 로 아예 미달이다 (`scripts/check_contrast.py`). */
.stat-card .stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    border-radius: var(--border-radius-sm);
    background-color: var(--neutral-3);
    color: var(--neutral-11);
    font-size: 17px;
}
.stat-card .stat-content { display: block; }
.stat-content .stat-value {
    font-family: var(--font-num);
    font-size: 26px;
    font-weight: var(--w-head);
    line-height: 30px;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}
.stat-content .stat-label {
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 17px;
    color: var(--text-muted);
}

/* 색 수식어 — 이름은 손대지 않는다. 어느 색이 어느 «성격»에 붙는지는
   상태 뱃지 기준안(§3) 판정 사항이라 여기서 앞서 정하지 않는다. */
.stat-warning .stat-icon { background-color: var(--exec-3);    color: var(--exec-10); }
.stat-info    .stat-icon { background-color: var(--collab-3);  color: var(--collab-10); }
.stat-primary .stat-icon { background-color: var(--accent-3);  color: var(--accent-10); }
.stat-success .stat-icon { background-color: var(--support-3); color: var(--support-10); }
.stat-warning .stat-value { color: var(--exec-10); }
.stat-info    .stat-value { color: var(--collab-10); }
.stat-primary .stat-value { color: var(--accent-10); }
.stat-success .stat-value { color: var(--support-10); }

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-card-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.stat-card-change {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   Filter Section - Search & Filters
   ======================================== */
.filter-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.filter-group.flex-grow {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filter-input,
.filter-select {
    padding: 9px 14px;
    font-size: 0.9rem;
    border: 1.5px solid var(--border-input);
    border-radius: var(--border-radius);
    background-color: var(--bg-input);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    height: 40px;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.filter-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 38px;
    cursor: pointer;
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    height: 40px;
}

.filter-btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.filter-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.35);
}

.filter-btn-secondary {
    background-color: var(--gray-100);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.filter-btn-secondary:hover {
    background-color: var(--gray-200);
    color: var(--text-primary);
}

/* Search Box */
.search-box {
    position: relative;
    flex: 1;
}

.search-box .filter-input {
    width: 100%;
    padding-left: 40px;
}

.search-box-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 1rem;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 8px;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-export-excel {
    background-color: #217346;
    color: white;
}

.btn-export-excel:hover {
    background-color: #1a5c38;
    color: white;
}

.btn-export-pdf {
    background-color: #D32F2F;
    color: white;
}

.btn-export-pdf:hover {
    background-color: #b71c1c;
    color: white;
}

/* ========================================
   Pagination - Modern Style
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-item {
    display: inline-flex;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.page-link:hover {
    color: var(--primary);
    background-color: var(--primary-50);
    border-color: var(--primary-200);
}

.page-item.active .page-link {
    color: white;
    background: var(--gradient-primary);
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    background-color: var(--gray-50);
    border-color: var(--border-color);
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   Login Page - Professional Auth Screen
   ======================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 50%, #1E293B 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.login-logo-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.login-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-top: 8px;
}

/* ========================================
   Detail Modal - Professional Popup
   ======================================== */
.detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.detail-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.detail-modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background-color: var(--bg-card);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideIn 0.25s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.detail-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: var(--gradient-header);
    position: relative;
}

.detail-modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    cursor: pointer;
    color: white;
    transition: all var(--transition-fast);
}

.detail-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.detail-modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.detail-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
    gap: 16px;
}

.detail-modal-loading i {
    font-size: 2rem;
    color: var(--primary);
}

/* Detail Section */
.detail-section {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
}

.detail-section:last-of-type {
    border-bottom: none;
}

.detail-section-title,
h4.detail-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-100);
}

.detail-section-title i {
    color: var(--primary);
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.detail-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background-color: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-200);
}

.detail-item.full-width {
    grid-column: span 2;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-value.empty {
    color: var(--text-muted);
    font-style: italic;
    font-weight: 400;
}

/* Detail Actions */
.detail-actions {
    display: flex;
    gap: 12px;
    padding: 20px 28px;
    background: var(--gray-50);
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

/* ========================================
   Dashboard Grid Layouts
   ======================================== */
.dashboard-grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.dashboard-grid-2-1 {
    grid-template-columns: 2fr 1fr;
}

.dashboard-grid-1-1 {
    grid-template-columns: 1fr 1fr;
}

.dashboard-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .dashboard-grid-2-1,
    .dashboard-grid-1-1,
    .dashboard-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   List Group
   ======================================== */
.list-group {
    display: flex;
    flex-direction: column;
}

.list-group-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-card);
    transition: background-color var(--transition-fast);
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: var(--gray-50);
}

/* ========================================
   Utilities
   ======================================== */

/* Text */
.text-center { text-align: center; }
.text-right, .text-end { text-align: right; }
.text-left, .text-start { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

/* Font Weight */
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

/* Font Size */
.fs-sm { font-size: 0.85rem; }
.fs-base { font-size: 1rem; }
.fs-lg { font-size: 1.125rem; }
.fs-xl { font-size: 1.25rem; }
.small { font-size: 0.85rem; }

/* Margin */
.m-0 { margin: 0; }
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 16px; }
.m-4 { margin: 24px; }
.m-5 { margin: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }

.ms-auto { margin-left: auto; }
.me-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 16px; }
.p-4 { padding: 24px; }
.p-5 { padding: 32px; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 4px; }
.pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 16px; }
.pt-4 { padding-top: 24px; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 4px; }
.pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 16px; }
.pb-4 { padding-bottom: 24px; }

.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 16px; padding-bottom: 16px; }
.py-4 { padding-top: 24px; padding-bottom: 24px; }

.px-1 { padding-left: 4px; padding-right: 4px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 16px; padding-right: 16px; }
.px-4 { padding-left: 24px; padding-right: 24px; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }

.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.align-items-center { align-items: center; }
.align-items-stretch { align-items: stretch; }

/* Gap */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }
.gap-5 { gap: 32px; }

/* Background */
.bg-white { background-color: white; }
.bg-light { background-color: var(--gray-50); }
.bg-transparent { background-color: transparent; }
.bg-primary-50 { background-color: var(--primary-50); }

/* Border */
.border { border: 1px solid var(--border-color); }
.border-0 { border: 0; }
.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-0 { border-radius: 0; }

/* Width & Height */
.w-100 { width: 100%; }
.w-auto { width: auto; }
.h-100 { height: 100%; }
.h-auto { height: auto; }

/* Position */
.position-relative { position: relative; }
.position-absolute { position: absolute; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .header {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar.open + .sidebar-overlay {
        display: block;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }

    .header-search {
        display: none;
    }

    .content-wrapper {
        padding: 16px;
        padding-top: calc(var(--header-height) + 16px);
    }

    .page-header-gradient {
        padding: 10px 12px;
    }

    .page-header-gradient .page-title {
        font-size: 1rem;
    }

    /* 슬림 헤더 내부 d-flex(타이틀 | 액션) → 세로 스택 */
    .page-header-gradient .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .page-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .filter-section {
        padding: 16px;
    }

    .filter-form {
        flex-direction: column;
    }

    .filter-group,
    .filter-group.flex-grow,
    .search-box {
        width: 100%;
        min-width: 100%;
    }

    .filter-actions {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .detail-grid,
    .detail-grid-3,
    .detail-grid-4 {
        grid-template-columns: 1fr;
    }

    .detail-item.full-width {
        grid-column: span 1;
    }
}

/* ========================================
   Progress Bar
   ======================================== */
.progress {
    display: flex;
    height: 8px;
    overflow: hidden;
    background-color: var(--gray-200);
    border-radius: 4px;
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
    white-space: nowrap;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
    font-size: 0;
}

.progress-lg {
    height: 20px;
    border-radius: var(--border-radius-sm);
}

.progress-lg .progress-bar {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Progress Colors */
.progress-bar-success { background: var(--gradient-success); }
.progress-bar-warning { background: linear-gradient(135deg, var(--warning) 0%, var(--warning-dark) 100%); }
.progress-bar-danger { background: var(--gradient-danger); }

/* ========================================
   Table Row States
   ======================================== */
.table-row-danger {
    background-color: var(--danger-light) !important;
}

.table-row-danger:hover {
    background-color: #FECACA !important;
}

.table-row-warning {
    background-color: var(--warning-light) !important;
}

.table-row-success {
    background-color: var(--success-light) !important;
}

/* ========================================
   Button Groups
   ======================================== */
.btn-group {
    display: inline-flex;
    gap: 1px;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.btn-group-sm .btn {
    padding: 4px 10px;
    font-size: 0.8rem;
}

/* ========================================
   Additional Utilities
   ======================================== */
.ms-1 { margin-left: 4px; }
.ms-2 { margin-left: 8px; }
.ms-3 { margin-left: 16px; }

.opacity-40 { opacity: 0.4; }
.opacity-60 { opacity: 0.6; }

.cursor-pointer { cursor: pointer; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .sidebar,
    .header,
    .page-actions,
    .filter-section,
    .btn,
    .pagination {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .content-wrapper {
        padding: 0 !important;
        padding-top: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
