/* Campos, listas e fichas de escolha */
.linha-titulo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.campo {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.campo > label,
.campo > span {
  font-weight: 600;
  font-size: 13.5px;
}
.linha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.linha .campo {
  align-content: end;
}
.junto {
  display: flex;
  gap: 8px;
  align-items: center;
}
input:not([type='checkbox']),
select,
textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--linha);
  border-radius: 8px;
  background: var(--campo);
  font-weight: 400;
  min-width: 0;
}
textarea {
  resize: vertical;
}
input:not([type='checkbox']):hover,
select:hover,
textarea:hover {
  border-color: var(--suave);
}
input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 2px;
  border: 1.5px solid var(--suave);
  border-radius: 5px;
  background: var(--papel);
  flex: none;
  cursor: pointer;
  transition:
    background 0.12s,
    border-color 0.12s;
}
input[type='checkbox']:hover {
  border-color: var(--verde);
}
input[type='checkbox']:checked {
  background: var(--verde) var(--certo) center/88% no-repeat;
  border-color: var(--verde);
}
input[type='checkbox']:indeterminate {
  background: linear-gradient(var(--verde), var(--verde)) center/60% 2.5px no-repeat var(--papel);
  border-color: var(--verde);
}
input[type='checkbox']:disabled {
  opacity: 0.45;
  cursor: default;
}
/* listas, cores de seleção, rolagem e preenchimento automático na paleta do sistema */
select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  text-overflow: ellipsis;
  background-image: var(--seta) !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 16px !important;
  padding-right: 32px !important;
}
select.aberto {
  border-color: var(--verde);
  box-shadow: 0 0 0 1px var(--verde);
}
select:disabled {
  opacity: 0.55;
  cursor: default;
}
input[type='number'] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
::selection {
  background: var(--verde);
  color: var(--sobre);
}
::placeholder {
  color: var(--suave);
  opacity: 0.85;
}
* {
  scrollbar-color: var(--m2) transparent;
  scrollbar-width: thin;
}
.lateral {
  scrollbar-color: #2a6354 transparent;
}
input:-webkit-autofill,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--tinta);
  box-shadow: 0 0 0 100px var(--verde-claro) inset;
  caret-color: var(--tinta);
}
html {
  -webkit-tap-highlight-color: transparent;
  accent-color: var(--verde);
  caret-color: var(--verde);
}
.painel-lista {
  position: fixed;
  inset: auto;
  margin: 0;
  z-index: 120;
  padding: 6px;
  border: 1px solid var(--linha);
  border-radius: 12px;
  background: var(--papel);
  color: var(--tinta);
  box-shadow:
    0 4px 10px rgba(10, 40, 32, 0.1),
    0 18px 46px rgba(10, 40, 32, 0.2);
  overflow: visible;
  font-size: 14.5px;
  font-weight: 400;
  animation: lista 0.13s ease-out;
}
@keyframes lista {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.rol-lista {
  overflow-y: auto;
  overscroll-behavior: contain;
  outline: none;
  max-height: 330px;
}
.item-lista {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 11px;
  border-radius: 8px;
  cursor: pointer;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.item-lista.vazio-l {
  color: var(--suave);
}
.item-lista.foco {
  background: var(--verde-claro);
  color: var(--tinta);
}
.item-lista.escolhido {
  color: var(--verde);
  font-weight: 600;
}
.item-lista.escolhido::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--verde);
}
.item-lista.marca {
  justify-content: flex-start;
  gap: 11px;
}
.item-lista.marca::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--linha);
  border-radius: 5px;
  background: var(--papel);
}
.item-lista.marca.escolhido::before {
  border-color: var(--verde);
  background: var(--verde) var(--certo) center / 14px no-repeat;
}
.item-lista.marca.escolhido::after {
  content: none;
}
.folha .item-lista.marca {
  padding-inline: 11px;
}
.painel-lista .pronto-lista {
  width: 100%;
  margin-top: 6px;
}
.item-lista.desligado,
.item-lista.nada {
  color: var(--suave);
  cursor: default;
}
.painel-lista .busca-lista {
  width: 100%;
  margin-bottom: 6px;
  padding: 9px 11px;
  font-size: 14.5px;
  min-height: 0;
}
.titulo-lista {
  padding: 8px 11px 10px;
  font-weight: 700;
  font-size: 16px;
}
.fundo-lista {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  z-index: 119;
  background: rgba(8, 30, 24, 0.55);
}
.painel-lista.folha {
  left: 0 !important;
  right: 0;
  bottom: 0;
  top: auto !important;
  width: 100%;
  max-width: none !important;
  border-width: 0;
  border-radius: 18px 18px 0 0;
  padding: 12px 12px calc(14px + env(safe-area-inset-bottom));
  animation: sobe 0.18s ease-out;
}
.folha .rol-lista {
  max-height: min(58vh, 460px) !important;
}
.folha .item-lista {
  min-height: 48px;
  font-size: 16px;
}
.folha .busca-lista {
  font-size: 16px;
  min-height: 46px;
}
.falta {
  color: var(--perigo);
  font-weight: 600;
}
[aria-invalid='true'] {
  border-color: var(--perigo) !important;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  padding: 0 0 6px;
  font-weight: 600;
  font-size: 13.5px;
}
.local {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: var(--campo);
  border: 1px solid var(--linha);
}
.local legend {
  float: left;
}
.local > * {
  clear: both;
}
.local input:not([type='checkbox']),
.local select {
  background: var(--papel);
}
.fichas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fichas:empty {
  display: none;
}
.ficha {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 10px;
  border-radius: 7px;
  background: var(--verde-claro);
  color: var(--verde);
  font-size: 13px;
  font-weight: 600;
}
.ficha button {
  border: 0;
  background: none;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1;
  font-size: 16px;
}
.ficha button:hover {
  background: var(--papel);
}
.etapas {
  margin-bottom: 14px;
}
.etapas button {
  border: 1px solid var(--linha);
  background: var(--papel);
  border-radius: 9px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
.etapas button[aria-pressed='true'] {
  background: var(--verde);
  color: var(--sobre);
  border-color: var(--verde);
}
.etapas b {
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips label {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--linha);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
}
.chips input {
  position: absolute;
  opacity: 0;
}
.chips label:has(:checked) {
  background: var(--verde-claro);
  border-color: var(--verde);
  color: var(--verde);
  font-weight: 600;
}
.chips label:has(:focus-visible) {
  outline: 2px solid var(--verde);
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--verde);
}
details > * + * {
  margin-top: 12px;
}
.destaque {
  padding: 12px;
  border-radius: 10px;
  background: var(--campo);
  border: 1px solid var(--linha);
  display: grid;
  gap: 8px;
}
.destaque legend {
  float: left;
}
.opcao {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 13.5px;
  clear: both;
}
.opcao input {
  margin-top: 2px;
}
.opcao b,
.opcao small {
  display: block;
}
.opcao b {
  font-weight: 600;
}
