/* ========== Theme Variables ========== */
/* 한솔PNS 시그니처 컬러 시스템 */
:root {
  /* Light Mode (Default) */
  --sidebar-bg: #0a1628;
  --sidebar-hover: #1a2d4a;
  --sidebar-active: #0066CC;
  --sidebar-text: rgba(255,255,255,0.75);
  --sidebar-text-active: #ffffff;
  
  /* 한솔PNS Signature Colors */
  --hansol-primary: #0066CC;
  --hansol-primary-light: #3399FF;
  --hansol-primary-dark: #004C99;
  --hansol-accent: #00A3E0;
  
  /* Accent Colors */
  --primary: #0066CC;
  --primary-light: #3399FF;
  --primary-dark: #004C99;
  --secondary: #5a6a7a;
  --accent: #00A3E0;
  --success: #00A86B;
  --warning: #F5A623;
  --danger: #E53935;
  --info: #00A3E0;
  
  /* Text Colors */
  --text-primary: #1a2b3c;
  --text-secondary: #4a5a6a;
  --text-muted: #8a9aaa;
  --text: #1a2b3c;
  
  /* Background Colors */
  --bg-primary: #f5f7fa;
  --bg-secondary: #eef2f6;
  --bg-tertiary: #e1e7ed;
  --bg-card: #ffffff;
  
  /* Border Colors */
  --border-color: #dce3ea;
  --border: #dce3ea;
  
  /* Chart Colors */
  --chart-primary: #0066CC;
  --chart-secondary: #00A3E0;
  --chart-tertiary: #5a6a7a;
  --chart-success: #00A86B;
  --chart-warning: #F5A623;
  --chart-danger: #E53935;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10,22,40,0.06);
  --shadow-md: 0 4px 8px rgba(10,22,40,0.08);
  --shadow-lg: 0 8px 16px rgba(10,22,40,0.12);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  
  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 0px;
}

/* Dark Mode */
[data-theme="dark"] {
  --sidebar-bg: #050d18;
  --sidebar-hover: #0d1a2d;
  --sidebar-active: #0066CC;
  
  --text-primary: #e8eef4;
  --text-secondary: #b8c8d8;
  --text-muted: #6a7a8a;
  --text: #e8eef4;
  
  --bg-primary: #0a1220;
  --bg-secondary: #12202e;
  --bg-tertiary: #1a2d40;
  --bg-card: #12202e;
  
  --border-color: #2a3d50;
  --border: #2a3d50;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.6);
}

/* ========== Base Styles ========== */
* { box-sizing: border-box; }

body { 
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
  transition: background var(--transition-normal), color var(--transition-normal);
}

/* ========== Sidebar Styles ========== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform var(--transition-normal), width var(--transition-normal);
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar-logo {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 로고 스타일 */
.hansol-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hansol-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--hansol-primary) 0%, var(--hansol-accent) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0,102,204,0.3);
}

.hansol-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hansol-logo-main {
  color: white;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.hansol-logo-sub {
  color: var(--hansol-primary-light);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.sidebar-close:hover {
  color: white;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

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

.nav-section-title {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 14px;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: white;
}

.nav-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-text-active);
  font-weight: 500;
}

.nav-item i {
  width: 20px;
  margin-right: 12px;
  font-size: 15px;
}

.nav-item .badge {
  margin-left: auto;
  background: linear-gradient(135deg, var(--hansol-accent), var(--hansol-primary));
  color: white;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--hansol-primary) 0%, var(--hansol-accent) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-footer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

/* ========== Main Content ========== */
.main-content {
  margin-left: var(--sidebar-width);
  padding: 20px;
  min-height: 100vh;
  transition: margin-left var(--transition-normal);
}

.sidebar-collapsed ~ .main-content,
body.sidebar-hidden .main-content {
  margin-left: 0;
}

/* ========== Top Bar ========== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.05);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-date {
  font-size: 14px;
  color: var(--text-secondary);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

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

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* ========== KPI Cards ========== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

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

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

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.kpi-icon.blue { background: rgba(0, 102, 204, 0.1); color: var(--primary); }
.kpi-icon.green { background: rgba(0, 168, 107, 0.1); color: var(--success); }
.kpi-icon.yellow { background: rgba(245, 166, 35, 0.1); color: var(--warning); }
.kpi-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.kpi-icon.cyan { background: rgba(0, 163, 224, 0.1); color: var(--info); }
.kpi-icon.red { background: rgba(229, 57, 53, 0.1); color: var(--danger); }

.kpi-trend {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.kpi-trend.up { background: rgba(0, 168, 107, 0.1); color: var(--success); }
.kpi-trend.down { background: rgba(229, 57, 53, 0.1); color: var(--danger); }

.kpi-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.2;
}

.kpi-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

/* ========== Task Info Card ========== */
.task-info-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.task-info-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.task-badge {
  background: linear-gradient(135deg, var(--hansol-primary), var(--hansol-accent));
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.task-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.task-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.task-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.task-info-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.task-info-value {
  font-size: 15px;
  color: var(--text-primary);
}

/* ========== Charts ========== */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.chart-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.chart-card.full-width {
  grid-column: span 2;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.chart-container {
  height: 280px;
  position: relative;
}

.chart-container.large {
  height: 350px;
}

/* ========== Tables ========== */
.table-card {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 24px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

.table-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.table-actions {
  display: flex;
  gap: 8px;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.data-table th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

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

.data-table tbody tr:hover {
  background: var(--bg-secondary);
}

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

/* KPI Table 특수 스타일 */
.kpi-table {
  min-width: 1000px;
}

.kpi-table th,
.kpi-table td {
  text-align: center;
  padding: 12px 8px;
}

.kpi-table th:first-child,
.kpi-table td:first-child {
  text-align: left;
  padding-left: 16px;
  position: sticky;
  left: 0;
  background: inherit;
  z-index: 1;
}

.kpi-table .row-label {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 120px;
}

.kpi-table input {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.kpi-table input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.kpi-table .cumulative {
  background: var(--bg-secondary);
  font-weight: 500;
}

.kpi-table .target-row {
  background: rgba(0, 102, 204, 0.05);
}

.kpi-table .actual-row {
  background: rgba(0, 168, 107, 0.05);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #008f5a;
  transform: translateY(-1px);
}

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

.btn-danger:hover {
  background: #c62828;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* ========== Status Badges ========== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.status-badge.success { background: rgba(0, 168, 107, 0.1); color: var(--success); }
.status-badge.warning { background: rgba(245, 166, 35, 0.1); color: var(--warning); }
.status-badge.danger { background: rgba(229, 57, 53, 0.1); color: var(--danger); }
.status-badge.info { background: rgba(0, 163, 224, 0.1); color: var(--info); }

/* ========== Form Styles ========== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ========== Modal ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
}

/* ========== Progress Bar ========== */
.progress-bar-container {
  background: var(--bg-secondary);
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.progress-bar.primary {
  background: linear-gradient(90deg, var(--primary), var(--hansol-accent));
}

.progress-bar.success {
  background: linear-gradient(90deg, var(--success), #00d488);
}

.progress-bar.warning {
  background: linear-gradient(90deg, var(--warning), #ffc658);
}

.progress-bar.danger {
  background: linear-gradient(90deg, var(--danger), #ff6b6b);
}

/* ========== Detail Cards ========== */
.detail-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

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

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

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

.detail-card-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  font-size: 14px;
}

.detail-card-month {
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.detail-card-category {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

.detail-card-category.ai { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.detail-card-category.bigdata { background: rgba(0, 163, 224, 0.1); color: var(--info); }
.detail-card-category.cloud { background: rgba(0, 168, 107, 0.1); color: var(--success); }
.detail-card-category.outsource { background: rgba(245, 166, 35, 0.1); color: var(--warning); }

.detail-card-content {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.detail-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
}

.detail-card-affiliate {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.detail-card-revenue {
  font-weight: 600;
  color: var(--success);
}

/* ========== Empty State ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 16px;
  margin-bottom: 20px;
}

/* ========== Loading ========== */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== Toast Notification ========== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
  min-width: 280px;
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }

.toast-icon {
  font-size: 18px;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }

.toast-message {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .chart-card.full-width {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .sidebar-close {
    display: block;
  }
  
  .main-content {
    margin-left: 0;
    padding: 12px;
  }
  
  .top-bar {
    padding: 10px 12px;
  }
  
  .top-bar-title {
    font-size: 16px;
  }
  
  .top-bar-date {
    display: none;
  }
  
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .kpi-card {
    padding: 16px;
  }
  
  .kpi-value {
    font-size: 24px;
  }
  
  .page-title {
    font-size: 22px;
  }
  
  .task-info-card {
    padding: 16px;
  }
  
  .task-title {
    font-size: 18px;
  }
  
  .detail-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }
  
  .btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  
  .table-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .table-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
