:root {
  --bg: #eef6f9;
  --panel: rgba(255,255,255,.82);
  --line: #cde0e8;
  --text: #193344;
  --muted: #647d8d;
  --blue: #1476a8;
  --green: #238b67;
  --yellow: #b7791f;
  --red: #b42318;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: Inter, Segoe UI, Arial, sans-serif; color: var(--text); background: radial-gradient(circle at top left, #ffffff 0, var(--bg) 42%, #e2edf3 100%); }
a { color: inherit; text-decoration: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 246px; padding: 22px 14px; background: rgba(255,255,255,.72); border-right: 1px solid var(--line); backdrop-filter: blur(20px); overflow-y: auto; }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #0c5f8d, #28b6bd); color: white; font-weight: 800; box-shadow: 0 14px 28px rgba(20,118,168,.24); }
.brand strong { display: block; font-size: 17px; }
.brand span { display: block; font-size: 12px; color: var(--muted); }
.sidebar nav { display: grid; gap: 7px; }
.sidebar nav a, .button, button { border: 1px solid #b7d2df; background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(230,244,250,.78)); border-radius: 10px; padding: 10px 12px; font-weight: 700; color: #21475f; box-shadow: 0 8px 18px rgba(36,88,116,.08); }
.sidebar nav a:hover, .button:hover, button:hover { border-color: #75b9d9; color: var(--blue); transform: translateY(-1px); }
.main { margin-left: 246px; padding: 18px 28px 42px; }
.topbar { height: 58px; display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 12px; }
.search { flex: 1; }
input, select, textarea { width: 100%; border: 1px solid #b9d2df; border-radius: 9px; padding: 10px 11px; background: rgba(255,255,255,.86); color: var(--text); }
label { display: block; margin: 10px 0 5px; font-size: 12px; font-weight: 800; color: #3a6075; text-transform: uppercase; }
.user-chip { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--muted); }
.user-chip a { color: var(--blue); }
.page-head { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 18px; gap: 16px; }
.page-head p, .split-title p { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
h1 { font-size: 30px; margin: 0; letter-spacing: 0; }
h2 { font-size: 19px; margin: 0 0 14px; }
.glass-card, .metric { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(43,92,120,.12); backdrop-filter: blur(18px); padding: 18px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.metric span, .analysis-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.metric strong { display: block; margin-top: 8px; font-size: 32px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.wide-left { grid-template-columns: minmax(0, 1.8fr) minmax(320px, .8fr); }
.stack { display: grid; gap: 16px; }
.split-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.analysis-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.analysis-grid div { padding: 12px; border: 1px solid #d5e5ec; border-radius: 12px; background: rgba(255,255,255,.62); }
.analysis-grid strong { display: block; margin-top: 6px; font-size: 18px; }
.status { border-radius: 999px; padding: 8px 13px; font-weight: 800; border: 1px solid currentColor; }
.status-verde { color: var(--green); background: rgba(35,139,103,.09); }
.status-amarelo { color: var(--yellow); background: rgba(183,121,31,.1); }
.status-vermelho { color: var(--red); background: rgba(180,35,24,.1); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid #dce9ef; text-align: left; vertical-align: top; }
th { font-size: 12px; color: #416879; text-transform: uppercase; }
.filter-bar { display: grid; grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(120px, 180px)) auto; gap: 10px; align-items: end; margin-bottom: 16px; }
.form-card button, .filter-bar button, .actions button { margin-top: 12px; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.actions form { display: flex; gap: 6px; align-items: center; }
.actions button { margin: 0; white-space: nowrap; }
.actions select { min-width: 110px; padding: 7px; }
.clean-list { margin: 10px 0 0; padding-left: 18px; color: #385a6c; }
.check { display: flex; align-items: center; gap: 8px; text-transform: none; font-size: 13px; }
.check input { width: auto; }
.report-links { display: grid; gap: 10px; }
.report-links a { color: var(--blue); font-weight: 800; }
.login-page { display: grid; place-items: center; padding: 26px; }
.login-panel { width: min(1060px, 100%); display: grid; grid-template-columns: 1.2fr 420px; gap: 32px; align-items: center; }
.brand-login { margin-bottom: 28px; }
.login-panel h1 { font-size: 42px; line-height: 1.05; max-width: 680px; }
.login-panel p { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.login-note { margin-top: 18px; display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; background: rgba(255,255,255,.62); color: #31586c; font-weight: 700; }
.login-card h2 { margin-bottom: 16px; }
.login-card button { width: 100%; margin-top: 16px; background: linear-gradient(135deg, #0b6ea4, #26adb7); color: white; border: 0; }
@media (max-width: 980px) {
  .sidebar { position: static; width: auto; }
  .main { margin-left: 0; padding: 16px; }
  .metric-grid, .two-col, .login-panel, .analysis-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
}
