* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f5f6f8;
  color: #1c1f24;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e2e4e8;
}

.topbar-right { display: flex; align-items: center; gap: 16px; }

main { padding: 24px; }

table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
th, td { padding: 10px 12px; border-bottom: 1px solid #edeef1; text-align: left; font-size: 14px; }
th { background: #fafbfc; font-weight: 600; }

.badge { padding: 2px 8px; border-radius: 12px; font-size: 12px; text-transform: capitalize; }
.badge-requested { background: #fff3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-rejected { background: #f8d7da; color: #721c24; }

button { cursor: pointer; border: none; border-radius: 6px; padding: 6px 12px; background: #2563eb; color: #fff; font-size: 13px; }
button:disabled { background: #c9cdd3; cursor: not-allowed; }
button.danger { background: #dc2626; }

select { padding: 4px 8px; border-radius: 6px; border: 1px solid #ccc; }

.link-btn {
  color: #2563eb;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 10px;
}
.link-btn:hover { text-decoration: underline; }

button.secondary { background: #6b7280; }

.filters {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.filters label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 4px;
  color: #444;
}
.filters input {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 13px;
}

.login-wrap { display: flex; align-items: center; justify-content: center; height: 100vh; }
.card { background: #fff; padding: 32px; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); width: 320px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.card .logo { width: 96px; height: 96px; object-fit: contain; margin-bottom: 8px; }
.card h1 { margin: 0; text-align: center; }
.card label, .card button, .card .error { width: 100%; }
.card label { display: flex; flex-direction: column; font-size: 13px; gap: 4px; }
.card input { padding: 8px; border-radius: 6px; border: 1px solid #ccc; }
.error { color: #dc2626; font-size: 13px; min-height: 16px; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-card { background: #fff; padding: 24px; border-radius: 10px; width: 360px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
