:root {
  /* Paleta oficial ORES/DC */
  --ores-primary: #1C5D85;
  --ores-secondary: #4FA6C8;
  --ores-accent: #7CC7E8;
  --ores-hover: #174C6C;
  --ores-text: #6B6B6B;
  --ores-bg: #F5F7FA;
  --ores-surface: #FFFFFF;
  --ores-border: #D9E2EC;
  --ores-muted: #AEB8C2;
  --ores-success: #2E8B57;
  --ores-warning: #D9A441;
  --ores-danger: #C94B4B;

  /* Variáveis mapeadas ao tema ORES/DC */
  --bg: #F5F7FA;
  --panel: #ffffff;
  --panel-soft: #EEF3F8;
  --line: #D9E2EC;
  --line-strong: #BDD0E0;
  --text: #1A2B3C;
  --muted: #AEB8C2;
  --brand: #1C5D85;
  --brand-strong: #174C6C;
  --brand-soft: #D6EBF7;
  --success: #2E8B57;
  --warning: #D9A441;
  --neutral-status: #cfcfcf;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-soft: 0 8px 24px rgba(28, 93, 133, 0.08);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
svg,
canvas,
video {
  max-width: 100%;
  height: auto;
}

.page-shell {
  width: min(100%, 1400px);
  margin: 0 auto;
  min-width: 0;
}

.card-elevated {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.field-wrap {
  min-width: 0;
}

.input-label {
  display: block;
  margin: 0 0 7px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #3D5166;
}

.input-control {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea.input-control,
select.input-control,
input.input-control {
  max-width: 100%;
}

.input-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(28, 93, 133, 0.15);
}

.form-stack {
  display: grid;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  flex-wrap: wrap;
  max-width: 100%;
  min-height: 44px;
  line-height: 1.3;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-muted {
  color: #3D5166;
  border: 1px solid var(--line-strong);
  background: var(--panel-soft);
}

.btn-muted:hover {
  background: #DDE8F2;
}

.btn-block {
  width: 100%;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-active {
  color: #fff;
  background: var(--success);
}

.status-pending {
  color: #6f5600;
  background: var(--warning);
}

.status-inactive {
  color: #4f4f4f;
  background: var(--neutral-status);
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100%, 100%);
  }
}
