/* Painel da agência - visual simples e funcional */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f5f7;
  color: #1f2430;
}
a { color: #2a78d6; }

.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px;
  background: #1f2430;
  color: #fff;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}
.sidebar .brand { font-weight: 700; margin-bottom: 1rem; }
.sidebar a { color: #cbd2e0; text-decoration: none; padding: 0.4rem 0.5rem; border-radius: 6px; }
.sidebar a:hover { background: #2c3244; color: #fff; }
.sidebar a.logout { margin-top: auto; color: #f2a2a2; }

.content { flex: 1; padding: 2rem; max-width: 1100px; }
h1 { margin-top: 0; }

.card { background: #fff; border: 1px solid #e2e5eb; border-radius: 8px; padding: 1.25rem; margin-bottom: 1.5rem; }
.card h2 { margin-top: 0; font-size: 1.05rem; }
.card h2 small { font-weight: 400; color: #6b7280; margin-left: 0.5rem; }

.table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.table th, .table td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid #e2e5eb; font-size: 0.92rem; }
.table th { color: #6b7280; font-weight: 600; }
.table .truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn, button[type="submit"] {
  display: inline-block;
  background: #2a78d6;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover, button[type="submit"]:hover { background: #1d5cab; }

.form { max-width: 480px; display: flex; flex-direction: column; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; color: #374151; }
.form input, .form select { padding: 0.5rem 0.6rem; border: 1px solid #cbd2e0; border-radius: 6px; font-size: 0.95rem; font-weight: 400; }
.form label.checkbox { flex-direction: row; align-items: center; gap: 0.5rem; }
.form .hint { font-size: 0.85rem; color: #6b7280; margin-top: -0.5rem; }

.error { background: #fdecec; color: #b3261e; border: 1px solid #f4c6c3; padding: 0.6rem 0.8rem; border-radius: 6px; }

.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #f4f5f7; }
.login-box { background: #fff; border: 1px solid #e2e5eb; border-radius: 10px; padding: 2rem; width: 320px; display: flex; flex-direction: column; gap: 1rem; }
.login-box label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; color: #374151; }
.login-box input { padding: 0.5rem 0.6rem; border: 1px solid #cbd2e0; border-radius: 6px; }
