:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #17324d;
  background: #f4f7fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 0.5rem;
  z-index: 30;
  padding: 0.5rem 1rem;
  background: rgb(0, 82, 116);
  color: #fff;
  border-radius: 0 0 0.375rem 0.375rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem clamp(1rem, 5vw, 4rem) 0;
  background: rgb(0, 82, 116);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.site-header-conteudo {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.site-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 4.9rem;
  width: auto;
  display: block;
}

.site-header-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.1rem 0.25rem;
  margin: 0;
  padding: 0.5rem 0 0.6rem;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-header-nav a {
  display: inline-block;
  font-weight: 400;
  font-size: 0.8rem;
  padding: 0.3rem 0.55rem;
  border-radius: 0.3rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-header-nav a.nav-icone {
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

.site-header-nav a:hover,
.site-header-nav a:focus-visible {
  background: #fff;
  color: rgb(0, 82, 116);
  font-weight: 700;
}

.logout-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  color: #dce8ee;
}

.logout-form button {
  background: transparent;
  border: 1px solid #7fa8b6;
  color: #fff;
  border-radius: 0.25rem;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
}

.content {
  width: min(68rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.hero {
  margin-bottom: 2.5rem;
}

h1,
h2 {
  color: #0f4c5c;
}

.home-hero {
  text-align: center;
  padding: 4rem 1rem;
}

.home-hero-boas-vindas {
  font-size: 1.1rem;
  font-weight: 700;
  color: #547285;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}

.home-hero-regional {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #1f4e6b;
  margin: 0 0 0.5rem;
}

.home-hero-sistema {
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 400;
  color: #17324d;
  margin: 0;
}

.site-header a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.site-header nav a:focus-visible {
  outline-color: rgb(0, 82, 116);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0f4c5c;
  outline-offset: 2px;
}

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.5rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  font-weight: 700;
}

.alert-error {
  background: #fdecea;
  border-color: #d64545;
  color: #7a1f1f;
}

.alert-warning {
  background: #fff6e0;
  border-color: #c98a12;
  color: #6b4a06;
}

.alert-info {
  background: #e6f2f7;
  border-color: #4a8199;
  color: #17324d;
}

.alert-success {
  background: #e7f5ec;
  border-color: #2f8f4e;
  color: #1c522d;
}

form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

form.form-wide {
  max-width: none;
}

.filtro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  max-width: none;
  background: #fff;
  border: 1px solid #c9d6df;
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.filtro .field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 11rem;
  min-width: 9rem;
}

.filtro label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #547285;
  margin-bottom: 0;
}

.filtro input,
.filtro select {
  height: 2.5rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
}

.filtro button {
  flex: 0 0 auto;
  height: 2.5rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

fieldset {
  border: 1px solid #c9d6df;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

legend {
  font-weight: 700;
  color: #0f4c5c;
  padding: 0 0.4rem;
}

.ponto-form {
  margin-bottom: 1rem;
  background: #f9fbfc;
}

.ponto-form:last-child {
  margin-bottom: 0;
}

.ponto-form legend {
  font-weight: 700;
  color: #547285;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.grade-campos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem 1rem;
  align-items: start;
}

.acoes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 22rem));
  justify-content: start;
  gap: 1.25rem;
  margin: 1.25rem 0 2rem;
}

.acao-card {
  display: block;
  max-width: 22rem;
  background: #fff;
  border: 1px solid #c9d6df;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.acao-card:hover,
.acao-card:focus-visible {
  border-color: #0f4c5c;
  box-shadow: 0 8px 20px -12px rgba(15, 76, 92, 0.35);
}

.acao-card-titulo {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f4c5c;
  margin-bottom: 0.4rem;
}

.acao-card-descricao {
  display: block;
  color: #547285;
  font-size: 0.9rem;
  line-height: 1.4;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #8fa6b3;
  border-radius: 0.25rem;
  font: inherit;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-field label {
  margin: 0;
  font-weight: 400;
}

.checkbox-field input {
  width: auto;
}

button,
.button {
  justify-self: start;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 0.375rem;
  background: #0f4c5c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.button:hover {
  background: #0c3b47;
}

button.button-secondary {
  background: transparent;
  color: #0f4c5c;
  border: 1px solid #0f4c5c;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid #c9d6df;
  border-radius: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 32rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #e1e9ee;
  white-space: nowrap;
}

thead {
  background: #eef4f7;
}

.info-panel {
  background: #fff;
  border: 1px solid #c9d6df;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.pendencias {
  color: #6b4a06;
}

.atualizado-em {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #547285;
  margin: 0 0 1rem;
}

.atualizado-em::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #2f8f4e;
  animation: pulso-ao-vivo 2s ease-in-out infinite;
}

@keyframes pulso-ao-vivo {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.kpi-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid #c9d6df;
  border-radius: 0.5rem;
  background: #fff;
}

.kpi-label {
  color: #547285;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

.kpi-value {
  color: #0f4c5c;
  font-size: 1.75rem;
  font-weight: 700;
}

.kpi-detalhe {
  color: #547285;
  font-size: 0.85rem;
}

.linha-suspeita {
  background: #fdecea;
}

.meter {
  margin: 0.25rem 0;
}

.meter-trilha {
  width: 100%;
  height: 0.5rem;
  background: #cde2fb;
  border-radius: 0.25rem;
  overflow: hidden;
}

.meter-preenchimento {
  height: 100%;
  background: #0f4c5c;
  border-radius: 0.25rem;
}

.grafico-wrapper {
  background: #fff;
  border: 1px solid #c9d6df;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.grafico-linha {
  width: 100%;
  height: auto;
}

.grafico-eixo {
  stroke: #c3c2b7;
  stroke-width: 1;
}

.grafico-eixo-texto {
  fill: #547285;
  font-size: 0.65rem;
}

.legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.75rem;
}

.legenda-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #17324d;
  font-weight: 700;
  font-size: 0.85rem;
}

.legenda-swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.2rem;
}

.barras-perdas {
  background: #fff;
  border: 1px solid #c9d6df;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.6rem;
}

.barra-perdas-linha {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr 3.5rem;
  align-items: center;
  gap: 0.75rem;
}

.barra-perdas-rotulo {
  font-weight: 700;
  color: #17324d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.barra-perdas-svg {
  width: 100%;
  height: 1.25rem;
}

.barra-perdas-trilha {
  fill: #eef4f7;
}

.barra-perdas-valor {
  text-align: right;
  font-weight: 700;
  color: #17324d;
}

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem 1rem;
}

.login-logo {
  height: 10rem;
  width: auto;
  margin-bottom: 0.5rem;
}

.login-card {
  background: rgb(0, 82, 116);
  border-radius: 1.25rem;
  box-shadow: 0 16px 32px -20px rgba(15, 76, 92, 0.4), 0 2px 8px rgba(15, 76, 92, 0.1);
  padding: 2.25rem 1.75rem 1.75rem;
  width: 100%;
  max-width: 19rem;
  text-align: center;
}

.login-regional {
  color: #fff;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.login-sistema {
  color: #cfe0e9;
  margin: 0.25rem 0 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.login-form label {
  color: #fff;
}

.login-card .alert {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.login-form {
  text-align: left;
  gap: 0.5rem;
  max-width: none;
}

.login-form .field {
  display: flex;
  justify-content: center;
}

.login-form input {
  width: 75%;
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.8rem;
}

.login-botao {
  width: 75%;
  justify-self: center;
  padding: 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}


