/* 경찰관 업무시스템 - 한국 경찰 스타일 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

:root {
    --police-navy: #1a237e;
    --police-blue: #283593;
    --police-light-blue: #3949ab;
    --police-dark: #0d1442;
    
    --status-waiting: #ff9800;
    --status-processing: #2196f3;
    --status-completed: #4caf50;
    --status-rejected: #f44336;
    --status-urgent: #d32f2f;
    
    --bg-main: #f5f5f5;
    --bg-card: #ffffff;
    
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-white: #ffffff;
    --text-light: #b0bec5;
    
    --border-color: #e0e0e0;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
}

/* 상단 헤더 */
.top-header {
    background: var(--police-navy);
    border-bottom: 3px solid var(--police-light-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    max-width: 1600px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--police-light-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.logo-text .logo-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.logo-text .logo-subtitle {
    font-size: 11px;
    color: var(--text-light);
}

/* 근무 상태 */
.work-status {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 6px;
}

.work-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.work-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #757575;
}

.work-status-dot.on-duty {
    background: var(--status-completed);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.work-status-text {
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.work-status-time {
    color: var(--text-light);
    font-size: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--police-light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.user-info .user-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.user-info .user-rank {
    color: var(--text-light);
    font-size: 11px;
}

.header-btn {
    background: var(--police-light-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.header-btn:hover { background: var(--police-blue); }
.header-btn.clock-in { background: var(--status-completed); }
.header-btn.clock-in:hover { background: #388e3c; }
.header-btn.clock-out { background: var(--status-rejected); }
.header-btn.clock-out:hover { background: #c62828; }
.header-btn.logout { background: transparent; border: 1px solid rgba(255,255,255,0.3); }
.header-btn.logout:hover { background: rgba(255,255,255,0.1); }

/* 네비게이션 */
.nav-menu {
    background: var(--police-blue);
    position: sticky;
    top: 68px;
    z-index: 999;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.nav-items { 
    display: flex; 
    gap: 4px;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    white-space: nowrap;
}

.nav-item:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav-item.active {
    color: white;
    background: rgba(255,255,255,0.15);
    border-bottom-color: white;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.nav-item .badge {
    background: var(--status-urgent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* 드롭다운 메뉴 */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    fill: currentColor;
}

.nav-dropdown.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 35, 126, 0.95);
    border-radius: 8px;
    min-width: 150px;
    max-width: 200px;
    margin-top: 4px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
}

.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0;
    color: rgba(255,255,255,0.8) !important;
    font-size: 13px;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.15) !important;
}

.dropdown-item.active {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
}

.nav-quick-actions { display: flex; gap: 8px; }

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--status-urgent);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.quick-action-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 메인 콘텐츠 */
.main-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    height: 100%;
}

.content-section {
    display: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.content-section.active {
    display: block;
    opacity: 1;
}

/* 대시보드가 아닌 섹션들의 패딩 */
.content-section:not(#dashboard) {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 75px);
}

/* 대시보드 헤더 */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.dashboard-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-date {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 출퇴근 카드 */
.attendance-card {
    background: white;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.attendance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.attendance-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--police-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.attendance-title svg {
    width: 22px;
    height: 22px;
    fill: var(--police-navy);
}

.attendance-body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.attendance-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-main);
    border-radius: 8px;
}

.attendance-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.attendance-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--police-navy);
}

.attendance-value.on-duty { color: var(--status-completed); }
.attendance-value.off-duty { color: var(--text-secondary); }

.attendance-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.attendance-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.attendance-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.attendance-btn.clock-in { background: var(--status-completed); color: white; }
.attendance-btn.clock-in:hover { background: #388e3c; }
.attendance-btn.clock-in:disabled { background: #a5d6a7; cursor: not-allowed; }
.attendance-btn.clock-out { background: var(--status-rejected); color: white; }
.attendance-btn.clock-out:hover { background: #c62828; }
.attendance-btn.clock-out:disabled { background: #ef9a9a; cursor: not-allowed; }

/* 대시보드 그리드 */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 0.8fr 1.2fr;
    gap: 15px;
    height: 100%;
    overflow: hidden;
    margin-bottom: 16px;
}

/* 패널 */
.panel {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-compact {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: 2px 14px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--police-light-blue) 0%, var(--police-blue) 100%);
    flex-shrink: 0;
}

.panel-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-title-sm {
    font-size: 14px;
    font-weight: 600;
}

.panel-title svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.panel-actions { display: flex; gap: 8px; }
.panel-body { 
    padding: 14px;
    flex: 1;
    overflow: auto;
}

.panel-body-compact {
    padding: 10px;
    flex: 1;
    overflow: auto
    width: 18px;
    height: 18px;
    fill: white;
}

.panel-actions { display: flex; gap: 8px; }
.panel-body { 
    padding: 16px;
    flex: 1;
    overflow: hidden;
}

/* 테이블 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-main);
    font-weight: 600;
}
    color: var(--text-secondary);
}

.data-table tr:hover { background: #f5f5f5; }
.data-table tr.urgent { background: #fff3e0; }
.data-table tr.urgent:hover { background: #ffe0b2; }

.case-number {
    font-family: 'Consolas', monospace;
    font-weight: 600;
    color: var(--police-navy);
}

/* 뱃지 */
.priority-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.priority-badge.urgent { background: var(--status-urgent); color: white; }
.priority-badge.high { background: var(--status-waiting); color: white; }
.priority-badge.medium { background: var(--status-processing); color: white; }
.priority-badge.low { background: #9e9e9e; color: white; }

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.status-badge.waiting { background: #fff3e0; color: #e65100; }
.status-badge.processing { background: #e3f2fd; color: #1565c0; }
.status-badge.completed { background: #e8f5e9; color: #2e7d32; }
.status-badge.rejected { background: #ffebee; color: #c62828; }

/* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-primary { background: var(--police-navy); color: white; }
.btn-primary:hover { background: var(--police-blue); }
.btn-secondary { background: #e0e0e0; color: var(--text-primary); }
.btn-secondary:hover { background: #bdbdbd; }
.btn-success { background: var(--status-completed); color: white; }
.btn-success:hover { background: #388e3c; }
.btn-danger { background: var(--status-rejected); color: white; }
.btn-danger:hover { background: #c62828; }

/* 필터 바 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-select {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    background: white;
    min-width: 140px;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0 12px;
    flex: 1;
    max-width: 300px;
}

.search-box svg { width: 18px; height: 18px; fill: var(--text-secondary); }
.search-box input { border: none; padding: 10px; font-size: 13px; width: 100%; outline: none; }

/* 페이지네이션 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.pagination-btn.active {
    background: var(--police-navy);
    color: white;
    border-color: var(--police-navy);
}

.pagination-info {
    margin: 0 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* 폼 */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.form-input:focus { outline: none; border-color: var(--police-navy); }

.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* 전과 조회 */
.criminal-search-panel {
    background: var(--police-navy);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.criminal-search-panel h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.criminal-search-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.criminal-search-form .form-group { margin-bottom: 0; flex: 1; }
.criminal-search-form .form-label { color: rgba(255,255,255,0.8); }
.criminal-search-form .form-input,
.criminal-search-form .form-select { background: white; }

.criminal-result {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.criminal-profile {
    display: flex;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.criminal-avatar {
    width: 80px;
    height: 80px;
    background: var(--bg-main);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.criminal-avatar svg { width: 48px; height: 48px; fill: var(--text-secondary); }

.criminal-info { flex: 1; }

.criminal-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.criminal-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.criminal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}

.criminal-meta-item svg { width: 16px; height: 16px; fill: var(--text-secondary); }

.criminal-stats { display: flex; gap: 24px; }

.criminal-stat { text-align: center; }

.criminal-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--police-navy);
}

.criminal-stat-value.danger { color: var(--status-rejected); }
.criminal-stat-value.warning { color: var(--status-waiting); }
.criminal-stat-label { font-size: 12px; color: var(--text-secondary); }

.criminal-records { padding: 20px; }

.criminal-records-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--police-navy);
    margin-bottom: 16px;
}

.criminal-records-title svg { width: 20px; height: 20px; fill: var(--police-navy); }

/* 모달 */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active { display: flex; }

.modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--police-navy);
    color: white;
}

.modal-title { font-size: 18px; font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-main);
}

/* 활동 목록 */
.activity-list { display: flex; flex-direction: column; gap: 8px; }

.activity-item {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg-main);
    border-radius: 4px;
}

.activity-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon svg { width: 14px; height: 14px; }
.activity-content { flex: 1; }
.activity-title { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.activity-desc { font-size: 11px; color: var(--text-secondary); }
.activity-time { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }

/* ============================
   대시보드 사이드바 레이아웃
   ============================ */

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
    padding: 20px 20px 20px 20px;
    height: calc(100vh - 75px);
    margin-bottom: 20px;
}

.dashboard-main {
    min-width: 0;
    overflow: hidden;
    height: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.dashboard-sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 130px;
    max-height: calc(100vh - 115px);
    padding: 0 20px 0 0;
}

/* 사이드바 상단 (시계 + 출퇴근) */
.sidebar-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* 사이드바 카드 공통 */
.sidebar-card {
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sidebar-card-header {
    padding: 14px 16px;
    background: var(--police-navy);
    border-bottom: 2px solid var(--police-light-blue);
}

.sidebar-card-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin: 0;
}

/* 시간 카드 */
.time-card {
    background: linear-gradient(135deg, var(--police-navy) 0%, var(--police-blue) 100%);
    padding: 20px 18px;
    text-align: center;
}

.time-display .time-main {
    font-size: 40px;
    font-weight: 700;
    color: white;
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.time-display .time-date {
    font-size: 12px;
    color: #ffffff;
    margin-top: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* 통계 리스트 */
.sidebar-stats {
    padding: 12px 14px;
}

.sidebar-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-stat-row:first-child {
    padding-top: 0;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--police-navy);
    min-width: 40px;
    text-align: right;
}

.stat-value.waiting {
    color: var(--status-waiting);
}

.stat-value.processing {
    color: var(--status-processing);
}

.stat-value.completed {
    color: var(--status-completed);
}

.stat-value.warning {
    color: var(--status-urgent);
}

/* 유형별 통계 */
.type-stats {
    padding: 12px 14px;
}

.type-stat-item {
    display: grid;
    grid-template-columns: 1fr 60px 35px;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.type-stat-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.type-stat-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.type-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

.type-stat-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

/* 근무 중인 경찰관 */
.online-officers {
    padding: 12px 14px;
}

.officer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}

.officer-item:last-of-type {
    border-bottom: none;
}

.officer-avatar {
    width: 32px;
    height: 32px;
    background: var(--police-light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    position: relative;
}

.officer-avatar.online::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--status-completed);
    border: 2px solid white;
    border-radius: 50%;
}

.officer-info {
    display: flex;
    flex-direction: column;
}

.officer-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.officer-rank {
    font-size: 11px;
    color: var(--text-secondary);
}

.officer-count {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.officer-count strong {
    color: var(--police-navy);
}

/* 사이드바 스크롤바 */
.dashboard-sidebar::-webkit-scrollbar {
    width: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}

/* 반응형 */
@media (max-width: 1400px) {
    .dashboard-sidebar {
        width: 280px;
    }
    
    .time-display .time-main {
        font-size: 40px;
    }
}

@media (max-width: 1200px) {
    .dashboard-layout {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .sidebar-card {
        flex: 1;
        min-width: 280px;
    }
    
    .time-card {
        min-width: 100%;
    }
    
    .dashboard-grid { grid-template-columns: 1fr; }
    .attendance-body { grid-template-columns: repeat(2, 1fr); }
}

/* 출퇴근 사이드바 카드 - 정사각형 */
.attendance-sidebar-card {
    border-radius: 8px;
}

.attendance-sidebar-header {
    padding: 10px 12px;
    background: var(--police-navy);
    border-bottom: 1px solid var(--police-light-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attendance-sidebar-header h4 {
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.attendance-sidebar-status {
    font-size: 10px;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
}

.attendance-sidebar-body {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.attendance-sidebar-item {
    text-align: center;
}

.attendance-sidebar-label {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.attendance-sidebar-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--police-navy);
}

/* 출퇴근 사이드바 버튼 */
.attendance-sidebar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid var(--border-color);
}

.attendance-sidebar-btn {
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.attendance-sidebar-btn.clock-in {
    background: var(--status-completed);
    color: white;
}

.attendance-sidebar-btn.clock-in:hover:not(:disabled) {
    background: #388e3c;
}

.attendance-sidebar-btn.clock-in:disabled {
    background: #a5d6a7;
    cursor: not-allowed;
}

.attendance-sidebar-btn.clock-out {
    background: var(--status-rejected);
    color: white;
}

.attendance-sidebar-btn.clock-out:hover:not(:disabled) {
    background: #c62828;
}

.attendance-sidebar-btn.clock-out:disabled {
    background: #ef9a9a;
    cursor: not-allowed;
}

/* 탭 카드 */
.stats-tabs-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.tabs-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 8px;
    background: var(--bg-main);
    border-bottom: 2px solid var(--border-color);
    flex-shrink: 0;
}

.tab-btn {
    padding: 8px 6px;
    background: transparent;
    border: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: rgba(0,0,0,0.05);
}

.tab-btn.active {
    background: white;
    color: var(--police-navy);
    border-bottom: 2px solid var(--police-navy);
}

.tabs-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    min-height: 0;
}

.tab-pane {
    display: none;
    overflow-y: auto;
}

.tab-pane.active {
    display: flex;
    flex-direction: column;
}

.sidebar-stats.compact {
    padding: 10px 12px;
}

.type-stats.compact {
    padding: 10px 12px;
}

.online-officers.compact {
    padding: 10px 12px;
}

@media (max-width: 768px) {
    .header-main { flex-direction: column; gap: 12px; padding: 12px 16px; }
    .nav-items { overflow-x: auto; width: 100%; }
    .nav-quick-actions { display: none; }
    .attendance-body { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .search-box { max-width: none; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    
    .sidebar-card {
        min-width: 100%;
    }
    
    .time-display .time-main {
        font-size: 36px;
    }
}

/* Case Status Styles */
.case-status-chart {
    display: flex;
    gap: 20px;
    align-items: center;
    height: 100%;
    padding: 4px 0;
}

.chart-wrapper {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
}

.donut-chart {
    width: 100%;
    height: 100%;
}

.donut-segment {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
}

.chart-center-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--police-navy);
}

.case-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(26, 35, 126, 0.05);
    border-radius: 6px;
    transition: all 0.2s;
}

.legend-item:hover {
    background: rgba(26, 35, 126, 0.1);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.legend-label {
    flex: 1;
    color: #333;
    font-weight: 600;
    font-size: 11px;
}

.legend-value {
    color: var(--police-navy);
    font-weight: 700;
    min-width: 40px;
    text-align: right;
    font-size: 13px;
}

/* Keyword Table Styles */
.keyword-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 100%;
    overflow-y: auto;
    padding: 4px;
}

.keyword-row {
    display: grid;
    grid-template-columns: 24px 1fr 35px;
    gap: 6px;
    align-items: center;
    padding: 8px;
    background: rgba(26, 35, 126, 0.03);
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    font-size: 11px;
    transition: all 0.2s;
}

.keyword-row:hover {
    background: rgba(26, 35, 126, 0.12);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.keyword-row:last-child {
    border-bottom: none;
}

.keyword-rank {
    font-weight: 800;
    color: var(--police-navy);
    text-align: center;
    font-size: 11px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 35, 126, 0.15);
    border-radius: 50%;
}

.keyword-name {
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
}

.keyword-bar {
    display: none;
}

.keyword-bar-fill {
    display: none;
}

.keyword-count {
    text-align: right;
    color: var(--police-navy);
    font-weight: 700;
    font-size: 11px;
}

/* 법령 검색 스타일 */
.law-search-container {
    max-width: 900px;
    margin: 0 auto;
}

.law-search-form {
    margin-bottom: 30px;
}

.law-search-input-wrapper {
    display: flex;
    gap: 12px;
}

.law-search-input-wrapper .form-input {
    flex: 1;
}

.law-search-input-wrapper .btn {
    min-width: 100px;
}

.law-results {
    margin-top: 30px;
}

.law-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.law-results-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.law-results-count {
    background: var(--police-navy);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.law-results-list {
    display: grid;
    gap: 12px;
}

.law-result-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.law-result-item:hover {
    background: white;
    border-color: var(--police-navy);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.law-result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--police-navy);
    margin-bottom: 8px;
}

.law-result-number {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.law-result-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 12px;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.law-result-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.law-loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--police-navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.law-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.law-empty svg {
    width: 80px;
    height: 80px;
    fill: var(--border-color);
    margin-bottom: 16px;
}

/* 법령 검색 모달 */
.law-search-modal {
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.law-search-modal .modal-body {
    overflow-y: auto;
    flex: 1;
}

.law-modal-search-form {
    margin-bottom: 20px;
}

.law-modal-input-wrapper {
    display: flex;
    gap: 12px;
}

.law-modal-input-wrapper .form-input {
    flex: 1;
}

.law-modal-input-wrapper .btn {
    min-width: 100px;
}

.law-modal-results {
    margin-top: 20px;
}

.law-modal-results-list {
    display: grid;
    gap: 12px;
}

.law-modal-result-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.law-modal-result-item:hover {
    background: var(--police-light-blue);
    color: white;
    border-color: var(--police-navy);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
}

.law-modal-result-item:hover .law-modal-result-title {
    color: white;
}

.law-modal-result-item:hover .law-modal-result-number {
    color: rgba(255,255,255,0.8);
}

.law-modal-result-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--police-navy);
    margin-bottom: 4px;
    display: inline-block;
}

.law-modal-result-number {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 8px;
}

/* 네비게이션 법령 조회 드롭다운 */
.nav-law-dropdown {
    position: relative;
}

.nav-law-dropdown .nav-item {
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.nav-law-dropdown .nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-law-dropdown .nav-item.active {
    background: rgba(255, 255, 255, 0.1);
}

.nav-law-dropdown .nav-item svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.nav-law-dropdown .dropdown-icon {
    margin-left: auto;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.nav-law-dropdown.open .dropdown-icon {
    transform: rotate(180deg);
}

.law-search-dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 8px;
    min-width: 320px;
    max-height: 500px;
    overflow-y: auto;
    padding: 16px;
}

.nav-law-dropdown.open .law-search-dropdown-panel {
    display: block;
}

.law-search-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.law-search-input-group .law-search-input {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
}

.law-search-input-group .btn {
    padding: 10px 16px;
    white-space: nowrap;
}

.law-dropdown-results {
    display: grid;
    gap: 8px;
}

.law-dropdown-result-item {
    padding: 12px;
    border-radius: 6px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    border: 1px solid transparent;
}

.law-dropdown-result-item:hover {
    background: var(--police-light-blue);
    color: white;
    transform: translateX(4px);
}

.law-dropdown-result-item:hover .law-dropdown-result-title {
    color: white;
}

.law-dropdown-result-item:hover .law-dropdown-result-number {
    color: rgba(255, 255, 255, 0.8);
}

.law-dropdown-result-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--police-navy);
    margin-bottom: 4px;
    word-break: break-word;
}

.law-dropdown-result-number {
    font-size: 12px;
    color: var(--text-secondary);
}

.law-dropdown-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 조문(Articles) 스타일 */
.law-articles-container {
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
}

.law-article-snippet {
    padding: 8px;
    margin-bottom: 6px;
    background-color: #f5f5f5;
    border-left: 3px solid var(--police-navy);
    border-radius: 3px;
    font-size: 12px;
}

.law-article-number {
    font-weight: 600;
    color: var(--police-navy);
    margin-bottom: 3px;
    font-size: 11px;
}

.law-article-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
    font-size: 12px;
    max-height: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.law-article-content {
    color: var(--text-secondary);
    font-size: 11px;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

/* ========================================
   근태관리 시스템 CSS
   ======================================== */

/* 버튼 스타일 개선 */
.btn {
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--police-light-blue) 0%, var(--police-blue) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--police-blue) 0%, #1a237e 100%);
}

.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #757575 0%, #616161 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #616161 0%, #424242 100%);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* 캘린더 스타일 */
.calendar-container {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--police-light-blue);
}

.calendar-nav-button {
    background: var(--police-light-blue);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
}

.calendar-nav-button:hover {
    background: var(--police-blue);
}

.calendar-month-display {
    font-size: 18px;
    font-weight: 700;
    color: var(--police-navy);
    text-align: center;
    flex: 1;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.calendar-grid-compact {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 8px;
}

.calendar-dayheader {
    text-align: center;
    font-weight: 700;
    color: white;
    padding: 4px 2px;
    border-radius: 3px;
    font-size: 10px;
}

.calendar-dayheader:nth-child(1),
.calendar-dayheader:nth-child(7) {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.calendar-dayheader:not(:nth-child(1)):not(:nth-child(7)) {
    background: linear-gradient(135deg, var(--police-light-blue), var(--police-blue));
}

.calendar-day {
    aspect-ratio: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    font-size: 11px;
    position: relative;
    padding: 2px;
}

.calendar-day:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.calendar-day.empty {
    background: #fafafa;
    cursor: default;
    color: #ccc;
}

.calendar-day.empty:hover {
    transform: none;
    box-shadow: none;
}

.calendar-day.working {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
}

.calendar-day.holiday {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #f44336;
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--police-light-blue) 0%, var(--police-blue) 100%);
    color: white;
    font-weight: 700;
    border-color: var(--police-navy);
}

.calendar-day-date {
    font-weight: 600;
    margin-bottom: 2px;
}

.calendar-day-status {
    font-size: 10px;
    font-weight: 500;
    color: inherit;
}

.calendar-legend {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.calendar-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.calendar-legend-color.working {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
}

.calendar-legend-color.holiday {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #f44336;
}

.calendar-legend-color.today {
    background: linear-gradient(135deg, var(--police-light-blue) 0%, var(--police-blue) 100%);
}

.calendar-legend-color.vacation {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-color: #9c27b0;
}

/* 출퇴근 현황 */
.clock-in-out-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.status-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--police-light-blue);
}

.status-item-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.status-item-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--police-navy);
}

.status-item-subtext {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 상태 배지 */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    min-width: 50px;
}

.status-badge.waiting {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffb74d;
}

.status-badge.processing {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #64b5f6;
}

.status-badge.completed {
    background: #e8f5e9;
    color: #388e3c;
    border: 1px solid #81c784;
}

.status-badge.rejected {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ef5350;
}

/* 연차 관리 */
.annual-leave-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.summary-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--police-light-blue);
}

.summary-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.summary-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--police-navy);
}

/* 필터 바 */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
}

.form-select:focus {
    outline: none;
    border-color: var(--police-light-blue);
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.1);
}

/* 데이터 테이블 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table thead {
    background: linear-gradient(135deg, var(--police-light-blue) 0%, var(--police-blue) 100%);
    color: white;
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 2px solid var(--police-navy);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.data-table tbody tr:hover {
    background: #f5f5f5;
    transition: background 0.2s ease;
}

.data-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* 폼 스타일 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Noto Sans KR', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--police-light-blue);
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.1);
}

/* 패널 */
.panel {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.panel-header {
    background: linear-gradient(135deg, var(--police-light-blue) 0%, var(--police-blue) 100%);
    color: white;
    padding: 16px;
    border-bottom: 2px solid var(--police-navy);
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.panel-body {
    padding: 16px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .clock-in-out-container {
        grid-template-columns: 1fr;
    }
    
    .annual-leave-summary {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 12px;
    }
}

/* ===== 출근/퇴근 및 근무일정 통합 레이아웃 ===== */
.attendance-quick-panel {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.quick-clock-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-display-compact {
    text-align: center;
}

.current-time {
    font-size: 28px;
    font-weight: bold;
    color: var(--police-blue);
}

.current-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.location-info-compact {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.clock-buttons-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.clock-buttons-row .btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    border-radius: 6px;
    font-weight: 600;
}

.clock-status-row {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
}

.status-item-compact {
    text-align: center;
    font-size: 13px;
}

.status-item-compact span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.status-item-compact span:last-child {
    display: block;
    font-weight: 600;
    color: var(--police-blue);
    margin-top: 2px;
}

/* 2칼럼 레이아웃 */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.column-left,
.column-right {
    display: flex;
    flex-direction: column;
}

/* 컴팩트 달력 스타일 */
.calendar-container-compact {
    padding: 0;
}

.calendar-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.calendar-header-compact button {
    background: var(--police-light-blue);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 11px;
}

.calendar-header-compact h4 {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.calendar-legend-compact {
    display: flex;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    flex-wrap: wrap;
}

.calendar-legend-compact span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}

/* 컴팩트 테이블 스타일 */
.data-table-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table-compact th,
.data-table-compact td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.data-table-compact th {
    background: var(--bg-main);
    font-weight: 600;
    color: var(--text-secondary);
}

.data-table-compact tbody tr:hover {
    background: #f9f9f9;
}

/* 반응형 설정 */
@media (max-width: 1200px) {
    .attendance-quick-panel {
        grid-template-columns: 1fr;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .attendance-quick-panel {
        padding: 12px;
        gap: 12px;
    }

    .current-time {
        font-size: 24px;
    }

    .clock-buttons-row .btn {
        padding: 10px;
        font-size: 13px;
    }

    .data-table-compact th,
    .data-table-compact td {
        padding: 6px 4px;
        font-size: 11px;
    }
}

/* ===== 연차 및 요약 컴포넌트 ===== */
.leave-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.summary-box {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    border-left: 4px solid var(--police-light-blue);
}

.summary-box.accent {
    background: #e3f2fd;
    border-left-color: var(--status-urgent);
}

.summary-label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.summary-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--police-navy);
}

.summary-unit {
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: 2px;
}

/* 버튼 사이즈 추가 */
.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
}
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: 8px;
    }
    
    .summary-item {
        padding: 12px;
    }
    
    .summary-value {
        font-size: 20px;
    }
}
