/* ===== ROOT & RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-w: 240px;
  --sidebar-collapsed: 68px;
  --topbar-h: 64px;
  --primary: #4f46e5;
  --primary-light: #eef2ff;
  --primary-dark: #3730a3;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --transition: .2s ease;
}

html { font-size: 15px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--text);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  transition: width var(--transition);
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  min-height: var(--topbar-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.logo i {
  font-size: 1.3rem;
  color: var(--primary);
  background: rgba(79,70,229,.2);
  padding: 7px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: .95rem;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.sidebar-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  position: relative;
}
.nav-item i { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item span:first-of-type { flex: 1; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item .badge {
  background: var(--warning);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
  display: none;
}
.nav-item .badge.visible { display: block; }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.user-info { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.user-avatar {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .8rem;
  flex-shrink: 0;
}
.user-name { color: #fff; font-size: .85rem; font-weight: 600; }
.user-role { color: var(--text-light); font-size: .75rem; }

/* ===== MAIN WRAPPER ===== */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition);
}

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.page-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.topbar-date { font-size: .8rem; color: var(--text-muted); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text); }

/* ===== CONTENT ===== */
.content { flex: 1; padding: 24px; }

/* ===== PAGES ===== */
.page { display: none; }
.page.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.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(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; }
.btn-info { background: var(--info); color: #fff; }
.btn-ghost { background: none; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-icon { padding: 7px 9px; }
.btn-sm { padding: 5px 10px; font-size: .78rem; }

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.blue { background: var(--info-light); color: var(--info); }
.stat-icon.orange { background: var(--warning-light); color: var(--warning); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.purple { background: var(--purple-light); color: var(--purple); }
.stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: .8rem; color: var(--text-muted); }

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.card-header h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header h3 i { color: var(--primary); }
.card-body { padding: 16px 20px; }
.view-all { font-size: .8rem; color: var(--primary); text-decoration: none; font-weight: 600; }
.view-all:hover { text-decoration: underline; }

/* ===== RECENT REQUESTS IN DASHBOARD ===== */
.req-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.req-row:last-child { border-bottom: none; }
.req-row-info { flex: 1; min-width: 0; }
.req-row-title { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-row-meta { font-size: .75rem; color: var(--text-muted); }

/* ===== STATUS CHART ===== */
.status-chart { display: flex; flex-direction: column; gap: 10px; }
.status-bar-item { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.status-bar-label { width: 80px; font-weight: 500; }
.status-bar-track { flex: 1; height: 10px; background: var(--border); border-radius: 99px; overflow: hidden; }
.status-bar-fill { height: 100%; border-radius: 99px; transition: width .5s ease; }
.status-bar-count { width: 24px; text-align: right; font-weight: 700; color: var(--text-muted); font-size: .8rem; }

/* ===== CATEGORY CHART ===== */
#categoryChart { display: flex; flex-direction: column; gap: 8px; }
.cat-item { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cat-label { flex: 1; }
.cat-value { font-weight: 700; }

/* ===== URGENT LIST ===== */
.urgent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.urgent-item:last-child { border-bottom: none; }
.urgent-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.urgent-info { flex: 1; min-width: 0; }
.urgent-title { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.urgent-dept { font-size: .75rem; color: var(--text-muted); }
.urgent-amount { font-size: .85rem; font-weight: 700; color: var(--primary); }

/* ===== TOOLBAR ===== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box i {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
  font-size: .85rem;
}
.search-box input {
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  background: var(--surface);
  color: var(--text);
  width: 220px;
  transition: var(--transition);
}
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }

.filter-select {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}
.filter-select:focus { outline: none; border-color: var(--primary); }

/* ===== DATA TABLE ===== */
.table-wrapper {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.data-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg); }

/* ===== BADGES / STATUS ===== */
.badge-status, .badge-priority {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-status.Pending { background: var(--warning-light); color: #92400e; }
.badge-status.Approved { background: var(--success-light); color: #065f46; }
.badge-status.Rejected { background: var(--danger-light); color: #991b1b; }
.badge-status.Ordered { background: var(--info-light); color: #1e40af; }
.badge-status.Delivered { background: var(--purple-light); color: #5b21b6; }
.badge-priority.Low { background: var(--border); color: var(--text-muted); }
.badge-priority.Medium { background: var(--info-light); color: #1e40af; }
.badge-priority.High { background: var(--warning-light); color: #92400e; }
.badge-priority.Urgent { background: var(--danger-light); color: #991b1b; }
.badge-vendor {
  display: inline-flex;
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
}

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 14px; justify-content: flex-end; }
.page-btn {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  font-size: .82rem;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== APPROVALS GRID ===== */
.approvals-grid { display: flex; flex-direction: column; gap: 14px; }
.approval-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  transition: var(--transition);
}
.approval-card:hover { box-shadow: var(--shadow); }
.approval-card.priority-Urgent { border-left: 4px solid var(--danger); }
.approval-card.priority-High { border-left: 4px solid var(--warning); }
.approval-card.priority-Medium { border-left: 4px solid var(--info); }
.approval-card.priority-Low { border-left: 4px solid var(--border); }
.approval-title { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.approval-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: 10px; }
.approval-meta span { margin-right: 16px; }
.approval-meta i { margin-right: 4px; color: var(--text-light); }
.approval-justification {
  font-size: .82rem;
  color: var(--text-muted);
  background: var(--bg);
  border-left: 3px solid var(--border);
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 12px;
  line-height: 1.5;
}
.approval-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.approval-amount {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  text-align: right;
  white-space: nowrap;
}
.approval-actions { display: flex; gap: 8px; flex-direction: column; align-items: flex-end; }
.approval-actions .btn-group { display: flex; gap: 8px; }

/* ===== VENDORS GRID ===== */
.vendors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.vendor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.vendor-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.vendor-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.vendor-avatar {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.1rem;
}
.vendor-name { font-size: .95rem; font-weight: 700; margin-bottom: 3px; }
.vendor-category { font-size: .78rem; color: var(--text-muted); }
.vendor-detail { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-muted); margin-bottom: 7px; }
.vendor-detail i { width: 14px; color: var(--primary); font-size: .8rem; }
.vendor-detail a { color: var(--primary); text-decoration: none; }
.vendor-detail a:hover { text-decoration: underline; }
.vendor-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.vendor-actions { display: flex; gap: 6px; }

.badge-vendor-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 600;
}
.badge-vendor-status.Active { background: var(--success-light); color: #065f46; }
.badge-vendor-status.Inactive { background: var(--border); color: var(--text-muted); }
.badge-vendor-status.Pending\ Review { background: var(--warning-light); color: #92400e; }

/* ===== MODALS ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
  animation: fadeIn .2s ease;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease;
}
.modal.modal-lg { max-width: 720px; }
.modal.modal-sm { max-width: 400px; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.modal-header h2 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
}
.modal-header h2 i { color: var(--primary); }
.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.modal-close:hover { background: var(--danger-light); color: var(--danger); }
.modal-body { padding: 20px 24px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

/* ===== FORMS ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.form-group input[readonly] { background: var(--bg); color: var(--text-muted); }

/* ===== VIEW MODAL ===== */
.view-section { margin-bottom: 20px; }
.view-section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.view-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.view-field { }
.view-label { font-size: .75rem; color: var(--text-muted); margin-bottom: 2px; }
.view-value { font-size: .875rem; font-weight: 500; }
.view-full { grid-column: 1 / -1; }
.view-justification {
  background: var(--bg);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .875rem;
  line-height: 1.6;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: .85rem;
  font-weight: 500;
  pointer-events: all;
  animation: slideInRight .3s ease;
  max-width: 320px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
@keyframes slideInRight { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.fade-out { animation: fadeOut .4s ease forwards; }
@keyframes fadeOut { to { opacity: 0; transform: translateX(40px); } }

/* ===== LOADING / EMPTY ===== */
.loading { text-align: center; padding: 30px; color: var(--text-muted); font-size: .9rem; }
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; opacity: .3; display: block; }
.empty-state p { font-size: .9rem; }

/* ===== TABLE ITEM TITLE ===== */
.item-title { font-weight: 600; font-size: .875rem; }
.item-sub { font-size: .75rem; color: var(--text-muted); }

/* ===== ACTION BUTTONS ===== */
.actions-cell { display: flex; gap: 5px; }

/* ===== STATUS UPDATE INLINE ===== */
.status-select-inline {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .78rem;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w) !important;
  }
  .sidebar.open { transform: none; }
  .main-wrapper { margin-left: 0; }
  .mobile-toggle { display: block; }
  .sidebar-toggle { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 0 16px; }
  .content { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .view-grid { grid-template-columns: 1fr; }
  .view-full { grid-column: 1; }
  .approval-card { grid-template-columns: 1fr; }
  .approval-actions { flex-direction: row; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-left { flex-direction: column; align-items: stretch; }
  .search-box input { width: 100%; }
  .topbar-date { display: none; }
}
