h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.5rem;
}

a {
  color: var(--cor1);
  font-weight: 500;

  &:has(img) {
    line-height: 0;
  }
}

span {
  font-size: 0.8em;
  line-height: 1.2rem;
  color: var(--texto-70);
  display: inline-block;
}

p {
  margin: 0;
  line-height: 1.5em;
}


label:has(input:is([type="text"], [type="email"], [type="password"], [type="number"], [type="date"], [type="time"]), select), textarea {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  gap: 6px;
  font-weight: 500;
  transition: 0.5s;
  color: var(--texto-70);

  input, select {
    padding: 12px;
    outline: unset;
    background: #fff;
    border-radius: var(--radius-50);
    font-size: 0.9rem;
    font-weight: 400;
    transition: 0.5s;
    border: 1px solid rgba(155, 155, 155, 0.25);
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;

    label.cor2 & {
      background: var(--bg-5);
    }

    label.fit & {
      width: fit-content;
    }
  }

  & input:focus,
  & input:focus-within,
  & input:focus-visible {
    color: var(--texto-95);
    border: 1px solid var(--cor1);
  }

  img {
    width: 24px;
    position: absolute;
    right: 16px;
    bottom: 12px;
    opacity: 0.33;
    transition: 0.5s
  }

  &:has(input:focus-within) {
    color: var(--texto-95);
    border-color: rgba(43, 43, 43, 0.12);
  }
}

textarea {
  resize: vertical;
}

/* ──────── BOTOES ──────── */
.btn {
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  text-align: center;
  display: inline-block;
  background-color: var(--cor1);
  color: white;
  font-weight: 500;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  span {
    font-size: 1.25em;
    color: #fff;
  }
}

.btn:hover {
  filter: brightness(1.25);
}

.btn-2 {
  background-color: var(--cor2);
  color: white;
}

.btn-2:hover {
  filter: brightness(1.25);
}

.btn-sucesso {
  background-color: #28a745;
  color: white;
}

.btn-sucesso:hover {
  background-color: #218838;
}

.btn-perigo {
  background-color: #dc3545;
  color: white;
}

.btn-perigo:hover {
  background-color: #c82333;
}

.btn-aviso {
  background-color: #ffc107;
  color: #212529;
}

.btn-aviso:hover {
  background-color: #e0a800;
}

.btn-info {
  background-color: #17a2b8;
  color: white;
}

.btn-info:hover {
  background-color: #138496;
}

.form-linha {
    display: flex;
    gap: 12px;
}

.form-linha-fim {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

.processando {
  pointer-events: none;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;

  img {
    filter: invert(1);
    width: 18px;
    /*margin-left: 12px;*/
  }
}

.pointer {
  cursor: pointer;
}

.ver-senha {
  cursor: pointer;
}

.erro, .vermelho {
  color: red !important;
  font-weight: 500;
}

.sucesso, .verde {
  color: rgb(8, 184, 66) !important;
  font-weight: 500;
}

.tela {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    min-height: 100%;
    background: rgba(0, 0, 0, 0.33);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    display: grid;
    place-items: center;

    &.ativo {
        opacity: 1;
        pointer-events: auto;
    }

    .container {
      width: 90%;
      max-width: 1200px;
      background: #fff;
      padding: 20px;
      border-radius: 12px;
      position: relative;
      max-height: 90dvh;
      overflow: auto;
    }

    .tela-fechar {
      position: absolute;
      right: 16px;
      top: 16px;
      font-size: 1.37em;
      color: #211f1f;
      cursor: pointer;
    }
}

.modal {
    position: fixed;
    bottom: -600px;
    right: 20px;
    padding: 20px;
    background: #fff;
    width: calc(100% - 40px);
    max-width: 500px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0px 0px 5px 0px rgba(155, 155, 155, 0.1);
    transition: all 0.4s ease-in-out;

    &.ativo {
        bottom: 20px;
    }

    .modal-fechar {
      position: absolute;
      right: 12px;
      top: 12px;
      font-size: 1.37em;
      /* line-height: 1.25em; */
      cursor: pointer;
    }
}

#main {
    background: #f8f9fa;
    min-height: calc(100vh - 48px);
    margin-left: 72px;
    padding: 20px 24px;
}


.tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tabela thead {
    background: var(--cor1);
    color: white;
}

.tabela thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}

.tabela thead th.texto-direita {
    text-align: right;
}

.tabela tbody tr {
    border-bottom: 1px solid var(--bg-90);
    transition: background 0.2s;
}

.tabela tbody tr:hover {
    background: var(--bg-95);
}

.tabela tbody td {
    padding: 16px;
    vertical-align: middle;
    font-weight: 500;
    color: #44484d;
}

.tabela .acoes {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.tabela .acoes span {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 1.5rem;
    color: var(--texto-70);
}

.tabela .acoes span:hover {
    background: var(--bg-90);
    color: var(--texto-95);
}

td span {
  font-size: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.status-badge.ativo {
    background: var(--sucesso);
    color: white;
}

.status-badge.inativo {
    background: var(--perigo);
    color: white;
}

.linha-vazia {
    text-align: center;
    padding: 48px 16px !important;
    color: var(--texto-50);
}

.linha-vazia td {
    font-size: 0.95rem;
}