/* Systemize Solutions CRM — Main Stylesheet */
:root {
  --primary: #1e40af;
  --primary-hover: #1d3a9f;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --info: #0891b2;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --sidebar-w: 240px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Auth pages --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  padding: 24px;
}

.auth-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  display: block;
  height: 56px;
  width: auto;
  margin: 0 auto 16px;
  object-fit: contain;
}

.auth-brand h1 { font-size: 22px; font-weight: 700; color: var(--text); }
.auth-brand p { color: var(--text-muted); margin-top: 4px; }
.auth-footer { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 13px; }

/* --- Admin layout --- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: #0f172a;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-brand {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #1e293b;
}

.sidebar-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav-links { list-style: none; padding: 12px 0; flex: 1; }
.nav-links li a {
  display: block;
  padding: 10px 16px;
  color: #94a3b8;
  font-size: 13px;
  transition: all 0.15s;
}
.nav-links li a:hover, .nav-links li a.active {
  color: #f1f5f9;
  background: #1e293b;
  text-decoration: none;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid #1e293b;
  font-size: 12px;
}
.sidebar-footer .user-name { display: block; color: #e2e8f0; font-weight: 500; }
.sidebar-footer .user-role { display: block; color: #64748b; text-transform: capitalize; margin-bottom: 8px; }

.admin-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 24px;
  max-width: calc(100vw - var(--sidebar-w));
  overflow-x: auto;
}

/* --- Portal layout --- */
.portal-layout { min-height: 100vh; display: flex; flex-direction: column; }

.portal-header {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-header .header-brand { font-size: 15px; display: flex; align-items: center; gap: 10px; }
.portal-header-logo { height: 24px; width: auto; object-fit: contain; }
.portal-header .header-user { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.portal-nav { display: flex; align-items: center; gap: 4px; }
.portal-nav-link { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 6px; transition: background 0.15s, color 0.15s; }
.portal-nav-link:hover { background: rgba(255,255,255,0.12); color: white; }
.portal-nav-link.active { background: rgba(255,255,255,0.18); color: white; }

.portal-main { padding: 24px; max-width: 1100px; margin: 0 auto; width: 100%; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); text-decoration: none; color: white; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover:not(:disabled) { background: var(--primary); color: white; text-decoration: none; }
.btn-block { width: 100%; margin-bottom: 8px; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }
.btn-link { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 12px; padding: 0; }
.btn-link:hover { color: #f1f5f9; }

/* --- Forms --- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; color: var(--text); }
.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  background: white;
  transition: border-color 0.15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,64,175,0.1); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control-sm { padding: 5px 10px; font-size: 12px; }
select.form-control { appearance: none; }
textarea.form-control { resize: vertical; }
.required { color: var(--danger); }
.field-hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; display: block; }
.field-error { font-size: 11px; color: var(--danger); margin-top: 3px; display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-full { grid-column: 1 / -1; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: normal; }
.checkbox-label input { margin-top: 2px; flex-shrink: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 24px; }
.form-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.section-title { font-size: 16px; font-weight: 600; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* --- Alerts --- */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* --- Status badges --- */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}
.status-submitted { background: #f1f5f9; color: #475569; }
.status-awaiting_review { background: #fef9c3; color: #854d0e; }
.status-more_info_required { background: #fff7ed; color: #c2410c; }
.status-accepted { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-pending_fraud_review { background: #fee2e2; color: #991b1b; border: 2px solid #dc2626; }
.status-sent_to_triage { background: #dbeafe; color: #1e40af; }
.status-survey_completed { background: #e0e7ff; color: #3730a3; }
.status-sent_to_solicitor { background: #f0fdf4; color: #15803d; }
.status-with_solicitor { background: #f0fdf4; color: #15803d; }
.status-cfa_sent { background: #faf5ff; color: #6d28d9; }
.status-retained { background: #ecfdf5; color: #065f46; font-weight: 700; }
.status-signed_up { background: #dcfce7; color: #166534; }
.status-paid { background: #d1fae5; color: #065f46; }
.status-clawback { background: #fefce8; color: #854d0e; }

/* --- Stats --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card.stat-link { text-decoration: none; transition: box-shadow 0.15s; }
.stat-card.stat-link:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.stat-card.stat-sm { padding: 10px 14px; }
.stat-card.stat-sm .stat-value { font-size: 20px; }
.stat-card.stat-danger { border-color: #fca5a5; background: #fff5f5; }
.stat-card.stat-danger .stat-value { color: var(--danger); }
.stat-value { display: block; font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { display: block; font-size: 11px; color: var(--text-muted); text-transform: capitalize; margin-top: 4px; }
.stat-sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stat-rejected .stat-value { color: var(--danger); }
.panel-warning { border-color: #fcd34d; background: #fffbeb; }
.status-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.status-count-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
  min-height: 72px;
}
.status-count-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.14); border-color: rgba(0,0,0,0.18); }
.scc-count { font-size: 28px; font-weight: 700; line-height: 1; color: inherit; }
.scc-label { font-size: 11px; font-weight: 600; text-transform: capitalize; margin-top: 5px; text-align: center; line-height: 1.3; color: inherit; opacity: 0.85; }
.month-bars { display: flex; align-items: flex-end; gap: 12px; height: 110px; padding-top: 24px; }
.month-bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.month-bar-count { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.month-bar { width: 100%; background: var(--primary); border-radius: 3px 3px 0 0; min-height: 4px; }
.month-bar-label { font-size: 10px; color: var(--text-muted); white-space: nowrap; }

/* --- Tables --- */
.table-container { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.data-table, .mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th, .mini-table th { padding: 10px 12px; background: #f8fafc; border-bottom: 2px solid var(--border); text-align: left; font-weight: 600; white-space: nowrap; }
.data-table td, .mini-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td, .mini-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: #f8fafc; }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 24px; }
.timeline-event { position: relative; padding-bottom: 20px; }
.timeline-event:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -24px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid white; box-shadow: 0 0 0 2px var(--primary); }
.timeline-status { font-weight: 600; text-transform: capitalize; margin-right: 8px; }
.timeline-date, .timeline-by { font-size: 12px; color: var(--text-muted); margin-right: 8px; }
.timeline-notes, .timeline-reason { font-size: 12px; margin-top: 4px; }
.timeline-reason { color: var(--danger); }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--border); }

/* --- Messages --- */
.message-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.message-bubble { padding: 12px 16px; border-radius: 12px; max-width: 80%; }
.message-received, .message-from-staff { background: #eff6ff; align-self: flex-start; }
.message-sent, .message-from-introducer { background: #f0fdf4; align-self: flex-end; }
.message-time { font-size: 11px; display: block; margin-top: 4px; }
.message-sender { font-size: 11px; display: block; margin-bottom: 4px; }
.message-compose, .reply-form { display: flex; flex-direction: column; gap: 8px; }

/* --- Case detail --- */
.case-sticky-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 16px 0 20px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  position: sticky; top: 0;
  background: var(--bg);
  z-index: 10;
}
.case-header-left h1 { font-size: 20px; font-weight: 700; }
.case-address { color: var(--text-muted); font-size: 13px; }
.back-link { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 6px; }
.case-ref { font-size: 14px; background: #f1f5f9; padding: 2px 8px; border-radius: 4px; }
.case-body { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.case-main-col { display: flex; flex-direction: column; gap: 0; }
.case-sidebar { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 100px; }
.case-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.case-section h2 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.sidebar-card h3 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.meta-list dt { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; margin-top: 10px; }
.meta-list dd { font-size: 13px; margin-left: 0; }
.detail-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 13px; }
.detail-full { grid-column: 1/-1; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 24px; }
.detail-card { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 16px; font-size: 13px; }
.detail-card h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 10px; }
.detail-card p { margin: 4px 0; }
.detail-section { margin: 24px 0; }
.detail-section h2 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.form-grid-2 .form-full { grid-column: 1/-1; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } .detail-grid { grid-template-columns: 1fr; } }
.action-buttons { display: flex; flex-direction: column; gap: 8px; }

/* --- Pack & Dispatch --- */
.pack-completeness { margin-bottom: 16px; }
.firm-assignment { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dispatch-mode-badge { font-size: 11px; color: var(--text-muted); background: #f1f5f9; padding: 3px 8px; border-radius: 12px; }
.dispatch-history { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.dispatch-history h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.dispatch-event { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; flex-wrap: wrap; }
.dispatch-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.dispatch-sent { background: #dbeafe; color: #1e40af; }
.dispatch-downloaded { background: #dcfce7; color: #166534; }
.dispatch-expired { background: #f1f5f9; color: #64748b; }
.dispatch-revoked { background: #fee2e2; color: #991b1b; }
.dispatch-failed { background: #fff7ed; color: #c2410c; }

/* --- Fraud & badges --- */
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.badge-fraud { background: #dc2626; color: white; border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.badge-fraud-lg { background: #dc2626; color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.badge-vuln { background: #d97706; color: white; border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.badge-vuln-lg { background: #d97706; color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.badge-action { background: #dc2626; color: white; padding: 2px 8px; border-radius: 12px; font-size: 10px; }
.badge-danger { background: #dc2626; color: white; padding: 4px 10px; border-radius: 20px; font-size: 11px; }
.badge-warning { background: #d97706; color: white; padding: 4px 10px; border-radius: 20px; font-size: 11px; }
.panel-urgent { border-color: #fca5a5; background: #fff5f5; }

/* --- SLA indicators --- */
.sla-indicator { font-size: 16px; }
.sla-green { color: var(--success); }
.sla-amber { color: var(--warning); }
.sla-red { color: var(--danger); }

/* --- Evidence grid --- */
.evidence-grid { display: flex; flex-direction: column; gap: 8px; }
.evidence-item { display: flex; align-items: center; gap: 10px; padding: 8px; background: #f8fafc; border-radius: 6px; font-size: 12px; }
.doc-type-label { font-weight: 600; text-transform: capitalize; min-width: 140px; }
.doc-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-meta { color: var(--text-muted); }

/* --- Room/disrepair --- */
.room-card { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.room-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; font-weight: 500; background: white; }
.room-detail { padding: 16px; background: #f8fafc; border-top: 1px solid var(--border); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-bottom: 12px; }
.category-label { display: flex; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; }
.room-summary { padding: 10px 0; border-bottom: 1px solid var(--border); }
.room-summary:last-child { border-bottom: none; }
.room-summary strong { display: block; margin-bottom: 4px; }
.categories { font-size: 12px; color: var(--text-muted); }

/* --- Upload --- */
.upload-group { margin-bottom: 16px; }
.upload-label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 6px; }
.upload-input { display: block; font-size: 13px; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.upload-panel { display: flex; flex-direction: column; gap: 12px; }
.upload-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #f8fafc; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.upload-item label { flex: 0 0 240px; font-weight: 500; margin: 0; }
.upload-item input[type="file"] { flex: 1; font-size: 12px; }

/* --- Modal --- */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: white;
  border-radius: 12px;
  padding: 28px;
  width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-content h3 { margin-bottom: 16px; font-size: 16px; }
.modal-actions { display: flex; gap: 12px; margin-top: 20px; justify-content: flex-end; }

/* --- Notifications --- */
.notification-panel { background: var(--surface); border: 1px solid #fef08a; border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.notification-panel h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.notification-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.notification-item:last-child { border-bottom: none; }

/* --- PDF preview --- */
.pdf-iframe { width: 100%; height: 600px; border: 1px solid var(--border); border-radius: 6px; margin-top: 8px; }

/* --- Dashboard --- */
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dashboard-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.dashboard-panel h2 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.view-all-link { display: inline-block; margin-top: 12px; font-size: 13px; }

/* --- Cases table --- */
.cases-table-container { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cases-table-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); }
.cases-table-header h2 { font-size: 15px; font-weight: 600; }
.cases-table-header .form-control { width: 260px; }
.cases-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cases-table th, .cases-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.cases-table th { background: #f8fafc; font-weight: 600; }
.cases-table tr:hover td { background: #f8fafc; }
.cases-table tr:last-child td { border-bottom: none; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state p { margin-bottom: 16px; }

/* --- Filter bar --- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; background: var(--surface); border: 1px solid var(--border); padding: 12px; border-radius: var(--radius); margin-bottom: 16px; }
.filter-bar .form-control { width: auto; min-width: 140px; }

/* --- Pagination --- */
.pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

.section-heading { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 12px; }
.portal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

/* --- Misc --- */
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
code { font-family: monospace; background: #f1f5f9; padding: 1px 6px; border-radius: 4px; font-size: 12px; }

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .admin-main { margin-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .case-body { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
