@font-face {
  font-family: 'Schibsted Grotesk';
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/schibsted-grotesk.woff2) format('woff2');
}
:root {
  --fundo: #f3f5f4;
  --cartao: #ffffff;
  --tinta: #15211e;
  --cinza: #5b6763;
  --linha: #dde3e0;
  --marca: #0e3b43;
  --marca-2: #155e63;
  --verde: #157f3d;
  --verde-fundo: #e5f4ea;
  --laranja: #b45309;
  --laranja-fundo: #fdf0dd;
  --vermelho: #b42318;
  --vermelho-fundo: #fde8e6;
  --azul-fundo: #e6eff3;
  --raio: 14px;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font: 16px/1.5 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
}
a {
  color: var(--marca-2);
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 8px;
}
h1 {
  font-size: 26px;
  font-weight: 800;
}
h2 {
  font-size: 20px;
  font-weight: 800;
}
h3 {
  font-size: 17px;
  font-weight: 700;
}
p {
  margin: 0 0 12px;
}
small,
.cinza {
  color: var(--cinza);
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
}
.marca svg {
  width: 30px;
  height: 30px;
  flex: none;
}

/* formulários */
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 14px 0 5px;
}
label small {
  font-weight: 400;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1.5px solid var(--linha);
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 46px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--marca-2);
  box-shadow: 0 0 0 3px rgba(21, 94, 99, 0.15);
}
input[type='checkbox'] {
  width: 20px;
  min-height: 20px;
  height: 20px;
  accent-color: var(--marca-2);
  margin: 0;
  flex: none;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
}
.linha2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  min-height: 46px;
  cursor: pointer;
  background: var(--marca);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.btn.verde {
  background: var(--verde);
}
.btn.claro {
  background: var(--azul-fundo);
  color: var(--marca);
}
.btn.borda {
  background: #fff;
  color: var(--tinta);
  border: 1.5px solid var(--linha);
}
.btn.perigo {
  background: #fff;
  color: var(--vermelho);
  border: 1.5px solid #f2c4bf;
}
.btn.peq {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 8px;
}
.btn.largo {
  width: 100%;
}
.erro {
  color: var(--vermelho);
  font-weight: 600;
  margin: 10px 0 0;
  min-height: 1em;
}
.ok-msg {
  color: var(--verde);
  font-weight: 600;
}

.cartao {
  background: var(--cartao);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 18px;
}

/* etiquetas de situação */
.etq {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.etq.paga {
  background: var(--verde-fundo);
  color: var(--verde);
}
.etq.a-vencer {
  background: var(--azul-fundo);
  color: var(--marca-2);
}
.etq.hoje {
  background: var(--laranja-fundo);
  color: var(--laranja);
}
.etq.atrasada {
  background: var(--vermelho-fundo);
  color: var(--vermelho);
}
.etq.isenta {
  background: #eef0ef;
  color: var(--cinza);
}

/* janela por cima (modal) */
dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  color: inherit;
}
dialog::backdrop {
  background: rgba(10, 25, 22, 0.5);
}
dialog .dentro {
  padding: 22px 20px 20px;
}
dialog .acoes {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 20px;
}
.fechar {
  float: right;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--cinza);
  padding: 0 4px;
}

.aviso-faixa {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 12px;
  font-weight: 500;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.aviso-faixa.laranja {
  background: var(--laranja-fundo);
  color: #7c3a06;
}
.aviso-faixa.vermelho {
  background: var(--vermelho-fundo);
  color: #7a1810;
}
.aviso-faixa.azul {
  background: var(--azul-fundo);
  color: var(--marca);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--tinta);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  z-index: 50;
  max-width: calc(100vw - 32px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
