/* ============================================================
   STYLES.CSS — YBS Approval & Procurement Management System
   Corporate Professional Theme: Navy / White / Amber
   ============================================================ */

:root {
  --primary: #1a3a5c;
  --primary-light: #2d5a8e;
  --primary-dark: #0f2240;
  --accent: #f59e0b;
  --accent-light: #fcd34d;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f97316;
  --info: #3b82f6;
  --bg: #f0f4f8;
  --card-bg: #ffffff;
  --sidebar-bg: #1a3a5c;
  --sidebar-text: #cbd5e1;
  --sidebar-active: #ffffff;
  --sidebar-hover: rgba(255,255,255,0.1);
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --sidebar-width: 240px;
  --topbar-height: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* ── LAYOUT ── */
#app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: var(--primary-dark);
}
.sidebar-logo .logo-text { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.2; }
.sidebar-logo .logo-sub  { color: var(--sidebar-text); font-size: 11px; }

.sidebar-nav { padding: 12px 0; flex: 1; }
.sidebar-section { padding: 8px 16px 4px; font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.8px; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  color: var(--sidebar-text);
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  font-size: 13.5px;
}
.nav-item:hover  { background: var(--sidebar-hover); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.12); color: #fff; border-left-color: var(--accent); font-weight: 600; }
.nav-item .nav-icon { width: 18px; text-align: center; font-size: 15px; }
.nav-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: var(--topbar-height);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-title { font-size: 17px; font-weight: 600; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 16px; }

.notif-btn {
  position: relative; cursor: pointer;
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background 0.15s;
}
.notif-btn:hover { background: var(--border); }
.notif-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--danger); color: #fff;
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

.user-badge {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; padding: 6px 10px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.15s;
}
.user-badge:hover { background: var(--border); }
.avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.user-info .user-name  { font-size: 13px; font-weight: 600; }
.user-info .user-role  { font-size: 11px; color: var(--text-muted); }

.page-content { padding: 24px; flex: 1; }

/* ── LOGIN PAGE ── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-container { width: 100%; max-width: 900px; }
.login-header { text-align: center; color: #fff; margin-bottom: 40px; }
.login-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.login-header p  { color: rgba(255,255,255,0.7); font-size: 15px; }
.login-header .system-badge {
  display: inline-block; background: var(--accent); color: var(--primary-dark);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  margin-bottom: 12px; letter-spacing: 0.5px;
}

.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role-card {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-align: center;
}
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.role-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.role-card h3  { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.role-card .rc-name  { font-size: 13px; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.role-card .rc-dept  { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.role-card .rc-perms { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.perm-tag { background: #e0f2fe; color: #0369a1; font-size: 10px; padding: 2px 7px; border-radius: 10px; font-weight: 500; }
.login-btn {
  margin-top: 14px; width: 100%;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius); padding: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.login-btn:hover { background: var(--primary-light); }

/* ── CARDS & KPI ── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card {
  background: var(--card-bg); border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 14px;
}
.kpi-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.kpi-icon.blue   { background: #dbeafe; }
.kpi-icon.green  { background: #d1fae5; }
.kpi-icon.amber  { background: #fef3c7; }
.kpi-icon.red    { background: #fee2e2; }
.kpi-icon.purple { background: #ede9fe; }
.kpi-body .kpi-value { font-size: 26px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.kpi-body .kpi-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.kpi-body .kpi-sub   { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.kpi-body .kpi-trend { font-size: 11px; font-weight: 600; margin-top: 4px; }
.kpi-trend.up   { color: var(--success); }
.kpi-trend.down { color: var(--danger); }
.kpi-trend.warn { color: var(--warning); }

.card {
  background: var(--card-bg); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border);
  margin-bottom: 20px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 15px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.card-actions { display: flex; gap: 8px; align-items: center; }

.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.chart-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.chart-container { position: relative; height: 240px; }
.chart-container-sm { position: relative; height: 180px; }
.chart-container-lg { position: relative; height: 320px; }

/* ── TABLES ── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: #f8fafc; padding: 10px 14px;
  text-align: left; font-size: 12px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
tbody tr:hover { background: #fafbfc; }
tbody tr:last-child td { border-bottom: none; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-success   { background: #d1fae5; color: #065f46; }
.badge-danger    { background: #fee2e2; color: #991b1b; }
.badge-warning   { background: #fef3c7; color: #92400e; }
.badge-info      { background: #dbeafe; color: #1e40af; }
.badge-purple    { background: #ede9fe; color: #5b21b6; }
.badge-gray      { background: #f1f5f9; color: #475569; }
.badge-orange    { background: #ffedd5; color: #9a3412; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: all 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary   { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-light); }
.btn-success   { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover  { background: #dc2626; }
.btn-warning   { background: var(--accent); color: var(--primary-dark); }
.btn-outline   { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-xs { padding: 2px 8px; font-size: 11px; }
.btn-icon { padding: 6px 8px; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.4px; }
input[type=text], input[type=number], input[type=date], input[type=email], input[type=file],
select, textarea {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; color: var(--text); background: var(--card-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.08);
}
textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.required { color: var(--danger); }

/* ── FILTER BAR ── */
.filter-bar {
  display: flex; gap: 10px; align-items: center;
  background: var(--card-bg); padding: 12px 16px;
  border-radius: var(--radius); border: 1px solid var(--border);
  margin-bottom: 16px; flex-wrap: wrap;
}
.filter-bar select, .filter-bar input { width: auto; min-width: 140px; }
.filter-bar .filter-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* ── PAGE HEADER ── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.page-header h2 { font-size: 20px; font-weight: 700; }
.page-header p  { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; padding: 20px;
}
.modal {
  background: var(--card-bg); border-radius: var(--radius-lg);
  width: 100%; max-width: 600px;
  max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-lg { max-width: 860px; }
.modal-header {
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--card-bg); z-index: 1;
}
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close { cursor: pointer; font-size: 20px; color: var(--text-muted); border: none; background: none; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 14px 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
  position: sticky; bottom: 0; background: var(--card-bg);
}

/* ── DETAIL PANEL ── */
.detail-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.detail-label { font-size: 12px; font-weight: 600; color: var(--text-muted); min-width: 140px; flex-shrink: 0; }
.detail-value { font-size: 13px; color: var(--text); }

/* ── REQUEST DETAIL ROW (expandable) ── */
.expand-row { background: #f8fafc; }
.expand-content { padding: 12px 16px 16px; border-bottom: 1px solid var(--border); }
.items-table-wrap { margin-top: 10px; }

/* ── ITEMS TABLE ── */
.items-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.items-table th { background: #eef2f7; padding: 7px 10px; font-weight: 600; color: var(--text-muted); text-align: left; }
.items-table td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; }

/* ── APPROVAL TIMELINE ── */
.timeline { padding: 4px 0; }
.timeline-item { display: flex; gap: 12px; margin-bottom: 16px; position: relative; }
.timeline-item::before {
  content: ''; position: absolute; left: 15px; top: 28px;
  width: 2px; bottom: -16px; background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  border: 2px solid;
}
.timeline-dot.approved { background: #d1fae5; border-color: var(--success); color: var(--success); }
.timeline-dot.rejected { background: #fee2e2; border-color: var(--danger); color: var(--danger); }
.timeline-dot.pending  { background: #fef3c7; border-color: var(--accent); color: var(--accent); }
.timeline-body { flex: 1; }
.timeline-body .tl-who  { font-size: 13px; font-weight: 600; }
.timeline-body .tl-date { font-size: 11px; color: var(--text-muted); }
.timeline-body .tl-remark { font-size: 12px; color: var(--text-muted); margin-top: 3px; font-style: italic; }

/* ── TABS ── */
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab {
  padding: 10px 18px; font-size: 13px; font-weight: 500; cursor: pointer;
  color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.15s;
}
.tab:hover  { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ── ALERTS ── */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 12px;
  font-size: 13px;
}
.alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #065f46; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ── STATS ROW ── */
.stats-row { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.stat-item { flex: 1; min-width: 100px; }
.stat-item .stat-val { font-size: 20px; font-weight: 700; }
.stat-item .stat-lbl { font-size: 11px; color: var(--text-muted); }

/* ── PRICE ALERT CARD ── */
.alert-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
}
.alert-card .ac-icon  { font-size: 24px; }
.alert-card .ac-body  { flex: 1; }
.alert-card .ac-part  { font-weight: 600; font-size: 14px; }
.alert-card .ac-change{ color: var(--danger); font-weight: 700; font-size: 13px; }
.alert-card .ac-detail{ font-size: 12px; color: var(--text-muted); }

/* ── NOTIF DROPDOWN ── */
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 360px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); z-index: 200; overflow: hidden;
}
.notif-header { padding: 12px 16px; font-weight: 600; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: background 0.1s; }
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: #eff6ff; }
.notif-item .ni-title { font-size: 13px; font-weight: 600; }
.notif-item .ni-msg   { font-size: 12px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item .ni-time  { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.notif-footer { padding: 10px 16px; text-align: center; border-top: 1px solid var(--border); }
.notif-footer a { font-size: 13px; color: var(--primary); font-weight: 500; cursor: pointer; }

/* ── DYNAMIC LINE ITEMS ── */
.line-items-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.line-items-table th { background: #f8fafc; padding: 8px 10px; font-size: 11px; font-weight: 600; color: var(--text-muted); text-align: left; border-bottom: 1px solid var(--border); }
.line-items-table td { padding: 6px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.line-items-table input, .line-items-table select { padding: 5px 8px; font-size: 12px; }
.remove-row-btn { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 16px; padding: 4px; }

/* ── PROCUREMENT CARDS ── */
.proc-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.proc-card .proc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.proc-card .proc-id { font-weight: 700; font-size: 15px; color: var(--primary); }
.proc-card .proc-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.proc-card .proc-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state .es-icon { font-size: 48px; margin-bottom: 14px; opacity: 0.4; }
.empty-state h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.empty-state p  { font-size: 13px; }

/* ── ADMIN TABLE ── */
.permissions-grid { display: grid; grid-template-columns: auto repeat(6, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 12px; }
.perm-cell { background: var(--card-bg); padding: 10px; text-align: center; font-size: 12px; }
.perm-cell.header { background: #f8fafc; font-weight: 600; color: var(--text-muted); font-size: 11px; }
.perm-cell.label  { text-align: left; font-weight: 500; }
.perm-yes { color: var(--success); font-size: 16px; }
.perm-no  { color: var(--border); font-size: 16px; }

/* ── MISC ── */
.text-muted  { color: var(--text-muted) !important; }
.text-danger { color: var(--danger) !important; }
.text-success{ color: var(--success) !important; }
.text-warning{ color: var(--warning) !important; }
.text-primary{ color: var(--primary) !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-0  { margin-bottom: 0; }
.flex  { display: flex; }
.gap-8 { gap: 8px; }
.gap-12{ gap: 12px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full{ width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.section-title { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; margin-top: 16px; }

/* ── PRINT STYLES ── */
@media print {
  .sidebar, .topbar, .filter-bar, .btn, .page-header .btn { display: none !important; }
  .main-content { margin-left: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  body { font-size: 12px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}
