/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --primary: #1E3A5F;
  --primary-light: #2D5A8E;
  --primary-dark: #142840;
  --accent: #E8A020;
  --accent-light: #F5C060;
  --success: #28A745;
  --warning: #FFC107;
  --danger: #DC3545;
  --info: #17A2B8;
  --sidebar-w: 220px;
  --sidebar-collapsed-w: 60px;
  --topbar-h: 56px;
  --bg: #F4F6FA;
  --card-bg: #FFFFFF;
  --border: #E0E6EF;
  --text: #1A2535;
  --text-muted: #6B7A8E;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif; font-size: 14px; color: var(--text); background: var(--bg); }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
.hidden { display: none !important; }

/* ─── Login ─────────────────────────────────────────────────────────────────── */
.page-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}
.login-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 460px;
  max-width: 95vw;
  box-shadow: var(--shadow-md);
}
.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.login-logo-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.logo-mark {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  letter-spacing: 1px;
}
.login-brand-main { font-size: 18px; font-weight: 700; color: var(--primary); }
.login-brand-sub { font-size: 13px; color: var(--text-muted); margin-top: 0; text-align: center; }
.lang-switcher-login {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.lang-switcher-login button {
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.lang-switcher-login button.active,
.lang-switcher-login button:hover { background: var(--primary); color: white; border-color: var(--primary); }
.login-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ─── Forms ─────────────────────────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.form-group label .req { color: var(--danger); margin-left: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="number"], textarea, select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}
textarea { resize: vertical; min-height: 80px; }
.form-error { color: var(--danger); font-size: 13px; padding: 8px 12px; background: #FEE2E2; border-radius: var(--radius); }

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-light); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #c82333; }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; padding: 11px; }
.btn-icon { padding: 6px 10px; }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--primary); background: rgba(30,58,95,0.05); border-radius: var(--radius); }

/* ─── App Layout ─────────────────────────────────────────────────────────────── */
.app-layout { display: flex; height: 100vh; overflow: hidden; }

/* ─── Sidebar ───────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--primary);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.25s;
  overflow: hidden;
}
.sidebar.collapsed { width: var(--sidebar-collapsed-w); }
.sidebar.collapsed .nav-label,
.sidebar.collapsed .sidebar-brand,
.sidebar.collapsed .badge { display: none; }
.sidebar.collapsed .sidebar-header { justify-content: center; padding: 16px 0; }
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.logo-mark-sm {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.sidebar-brand { color: white; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sidebar-collapse-btn { color: rgba(255,255,255,0.6); font-size: 16px; padding: 4px; }
.sidebar-collapse-btn:hover { color: white; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.75);
  font-size: 13.5px;
  transition: all 0.15s;
  position: relative;
  white-space: nowrap;
}
.nav-item:hover { background: rgba(255,255,255,0.1); color: white; }
.nav-item.active { background: rgba(255,255,255,0.15); color: white; border-right: 3px solid var(--accent); }
.nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-footer { border-top: 1px solid rgba(255,255,255,0.1); padding: 8px 0; }

/* ─── Badge ─────────────────────────────────────────────────────────────────── */
.badge {
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* ─── Topbar ─────────────────────────────────────────────────────────────────── */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: var(--topbar-h);
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.page-title { font-size: 18px; font-weight: 600; color: var(--primary); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.lang-switcher { display: flex; gap: 4px; }
.lang-switcher button {
  width: 30px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}
.lang-switcher button.active { background: var(--primary); color: white; border-color: var(--primary); }
.notif-btn { position: relative; font-size: 18px; padding: 4px 8px; color: var(--text-muted); }
.notif-btn:hover { color: var(--primary); }
.topbar-user { font-size: 13px; font-weight: 500; color: var(--text-muted); }

/* ─── Notifications Panel ───────────────────────────────────────────────────── */
.notif-panel {
  position: absolute;
  top: var(--topbar-h);
  right: 16px;
  width: 340px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 200;
  max-height: 420px;
  overflow-y: auto;
}
.notif-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: #EFF6FF; }
.notif-item-title { font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.notif-item-msg { font-size: 12px; color: var(--text-muted); }
.notif-item-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ─── Content Area ──────────────────────────────────────────────────────────── */
.content-area { flex: 1; overflow-y: auto; padding: 24px; }
.content-area::-webkit-scrollbar { width: 6px; }
.content-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title { font-size: 15px; font-weight: 600; color: var(--primary); }
.card-body { padding: 20px; }

/* ─── Dashboard Stats ───────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-icon { font-size: 28px; }
.stat-value { font-size: 32px; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.stat-card.accent .stat-value { color: var(--accent); }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.danger .stat-value { color: var(--danger); }

/* ─── Tables ─────────────────────────────────────────────────────────────────── */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search-input-wrap { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
.search-input-wrap input { padding-left: 32px; }
.search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--bg);
  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;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #F8FAFF; }
.data-table .actions-cell { display: flex; gap: 6px; }

/* ─── Status Badges ─────────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.status-draft { background: #F1F5F9; color: #64748B; }
.status-pending_l1, .status-pending_l2, .status-pending_l3 { background: #FEF3C7; color: #92400E; }
.status-approved { background: #D1FAE5; color: #065F46; }
.status-rejected { background: #FEE2E2; color: #991B1B; }
.status-contracted { background: #DBEAFE; color: #1E40AF; }
.status-expired { background: #F1F5F9; color: #94A3B8; }

/* ─── Report Form ───────────────────────────────────────────────────────────── */
.form-section {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}
.form-section-header {
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-section-body { padding: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-col-full { grid-column: 1 / -1; }
.reg-no-display {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  padding: 8px 0;
}
.warning-box {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: #78350F;
  margin-bottom: 16px;
}

/* Checkbox Grid */
.checkbox-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.checkbox-grid-2 { grid-template-columns: repeat(2, 1fr); }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}
.checkbox-item:hover { border-color: var(--primary-light); background: #F0F4FF; }
.checkbox-item input[type="checkbox"] { cursor: pointer; accent-color: var(--primary); width: 15px; height: 15px; }
.checkbox-item.checked { border-color: var(--primary); background: #EFF6FF; color: var(--primary); font-weight: 500; }

/* ─── Progress Steps ─────────────────────────────────────────────────────────── */
.progress-steps { display: flex; flex-direction: column; gap: 12px; }
.progress-step {
  display: grid;
  grid-template-columns: 32px 1fr 180px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}
.progress-step.completed { border-color: var(--success); background: #F0FFF4; }
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.progress-step.completed .step-num { background: var(--success); color: white; }
.step-label { font-size: 13.5px; font-weight: 500; }
.step-date input { width: 100%; }

/* ─── File Upload ───────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}
.upload-zone:hover { border-color: var(--primary-light); background: #F0F4FF; }
.upload-zone.dragover { border-color: var(--primary); background: #EFF6FF; }
.upload-zone input[type="file"] { display: none; }
.upload-icon { font-size: 32px; margin-bottom: 8px; color: var(--text-muted); }
.upload-text { font-size: 13px; color: var(--text-muted); }
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}
.file-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item-size { color: var(--text-muted); font-size: 11px; margin: 0 8px; }

/* ─── Review History ─────────────────────────────────────────────────────────── */
.review-timeline { display: flex; flex-direction: column; gap: 12px; }
.review-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.review-item.approve { border-left: 4px solid var(--success); background: #F0FFF4; }
.review-item.reject { border-left: 4px solid var(--danger); background: #FFF5F5; }
.review-level-badge { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.review-action { font-weight: 600; font-size: 13px; }
.review-reason { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.review-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ─── Validity Bar ──────────────────────────────────────────────────────────── */
.validity-bar { margin: 12px 0; }
.validity-bar-track { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.validity-bar-fill { height: 100%; background: var(--success); border-radius: 3px; transition: width 0.3s; }
.validity-bar-fill.warning { background: var(--warning); }
.validity-bar-fill.danger { background: var(--danger); }

/* ─── Modal ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}
.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}
.modal-box.modal-lg { max-width: 900px; }
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.modal-header h3 { font-size: 16px; font-weight: 600; color: var(--primary); }
.modal-close { color: var(--text-muted); font-size: 16px; padding: 4px 8px; }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; flex-shrink: 0; }

/* ─── Toast ─────────────────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 2000; }
.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  color: white;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.3s ease;
  max-width: 360px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--info); }
.toast.warning { background: var(--warning); color: var(--text); }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─── Pagination ─────────────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.page-btn { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-muted); transition: all 0.15s; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ─── Loading ─────────────────────────────────────────────────────────────────── */
.loading-spinner { display: flex; align-items: center; justify-content: center; height: 200px; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeleton 1.4s ease infinite; border-radius: 4px; }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── Misc ──────────────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state-text { font-size: 15px; margin-bottom: 6px; }
.empty-state-sub { font-size: 13px; opacity: 0.8; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.fw-bold { font-weight: 700; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-3 { margin-top: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.detail-item label { font-size: 12px; color: var(--text-muted); font-weight: 500; display: block; margin-bottom: 3px; }
.detail-item span { font-size: 14px; color: var(--text); }
.label-blue { color: #1E40AF; font-weight: 600; }
.label-red { color: #991B1B; font-weight: 600; }

/* ─── Report Registration Form Number ───────────────────────────────────────── */
.reg-header-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--primary);
  color: white;
  padding: 20px 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-bottom: 0;
}
.reg-header-no { font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.reg-header-date { font-size: 13px; opacity: 0.8; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { width: var(--sidebar-collapsed-w); }
  .sidebar .nav-label, .sidebar .sidebar-brand { display: none; }
  .sidebar-header { justify-content: center; }
  .form-grid, .form-grid-3, .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .progress-step { grid-template-columns: 32px 1fr; }
  .step-date { grid-column: 2; }
}
