/* Viseu Reanima — base comum (site e painel) */
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }

:root {
  --brand: #0099bb;
  --brand-2: #00a79d;
  --brand-dark: #00728c;
  --brand-tint: #e6f6f9;
  --grad: linear-gradient(135deg, #0099bb 0%, #00a79d 100%);
  --ink: #102a33;
  --ink-2: #33505a;
  --muted: #647a83;
  --line: #e2e9ec;
  --line-2: #d3dee2;
  --bg: #f3f7f8;
  --card: #ffffff;
  --petrol: #0c2c35;
  --success: #17885d;
  --success-tint: #e3f5ec;
  --warning: #b9770e;
  --warning-tint: #fdf2de;
  --danger: #c83a3a;
  --danger-tint: #fbe7e7;
  --info-tint: #e8f1fb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 51, .06);
  --shadow: 0 1px 2px rgba(16, 42, 51, .05), 0 8px 24px rgba(16, 42, 51, .07);
  --shadow-lg: 0 24px 60px rgba(12, 44, 53, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Poppins", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.icon { flex: none; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(0, 153, 187, .45); outline-offset: 2px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font: 600 14px/1 var(--font); cursor: pointer; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(0, 153, 187, .28); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(0, 153, 187, .38); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(16, 42, 51, .06); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-soft { background: var(--danger-tint); color: var(--danger); }
.btn-warning-soft { background: var(--warning-tint); color: var(--warning); }
.btn-white { background: #fff; color: var(--brand-dark); }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 13px; }
.btn-xs { min-height: 28px; padding: 0 10px; font-size: 12px; gap: 5px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Formulários */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.field .hint, .hint { font-size: 12.5px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; font: 400 15px/1.4 var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 153, 187, .14); }
.input::placeholder { color: #9aabb2; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }

/* Alertas */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.alert .icon { margin-top: 1px; }
.alert-success { background: var(--success-tint); color: #0e6545; border-color: #c4e9d6; }
.alert-error { background: var(--danger-tint); color: #a02c2c; border-color: #f3caca; }
.alert-info { background: var(--info-tint); color: #22507e; border-color: #cfe0f3; }
.alert-warning { background: var(--warning-tint); color: #8a5806; border-color: #f4dfb5; }

/* Etiquetas de estado */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 12px/1.5 var(--font); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-livre { background: var(--brand-tint); color: var(--brand-dark); }
.badge-emitido { background: var(--success-tint); color: var(--success); }
.badge-anulado { background: #eef1f2; color: #75858b; }
.badge-preparacao { background: #eef1f2; color: #5c6c72; }
.badge-inicial, .badge-final { background: var(--warning-tint); color: var(--warning); }
.badge-fechada { background: var(--success-tint); color: var(--success); }
.badge-plain::before { display: none; }
