/* ──────── FONTES ──────── */
.peso-100 { font-weight: 100; }
.peso-300 { font-weight: 300; }
.peso-400 { font-weight: 400; }
.peso-500 { font-weight: 500; }
.peso-600 { font-weight: 600; }
.peso-700 { font-weight: 700; }
.peso-800 { font-weight: 800; }
.peso-900 { font-weight: 900; }

.tamanho-1 { font-size: clamp(0.8rem, 0.5vw + 0.5rem, 1rem); }
.tamanho-2 { font-size: clamp(1rem, 0.5vw + 0.8rem, 1.2rem); }
.tamanho-3 { font-size: clamp(1.2rem, 0.5vw + 1rem, 1.4rem); }
.tamanho-4 { font-size: clamp(1.4rem, 0.5vw + 1.2rem, 1.6rem); }
.tamanho-5 { font-size: clamp(1.6rem, 0.5vw + 1.4rem, 1.8rem); }
.tamanho-6 { font-size: clamp(1.8rem, 0.5vw + 1.6rem, 2rem); }
.tamanho-7 { font-size: clamp(2rem, 0.5vw + 1.8rem, 2.2rem); }
.tamanho-8 { font-size: clamp(2.2rem, 0.5vw + 2rem, 2.4rem); }

.block, .bloco { display: block; }
.inline, .bloco-linha { display: inline-block; }
/* ──────── FLEXBOX ──────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 {flex: 1;}

.alinhar-centro { align-items: center; }
.alinhar-inicio { align-items: flex-start; }
.alinhar-fim { align-items: flex-end; }
.alinhar-stretch { align-items: stretch; }

.se-alinhar-centro { align-self: center; }
.se-alinhar-inicio { align-self: flex-start; }
.se-alinhar-fim { align-self: flex-end; }
.se-alinhar-stretch { align-self: stretch; }

.justificar-centro { justify-content: center; }
.justificar-inicio { justify-content: flex-start; }
.justificar-fim { justify-content: flex-end; }
.justificar-entre { justify-content: space-between; }
.justificar-around { justify-content: space-around; }

/* ──────── GRID ──────── */
.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); }
.grid-7 { display: grid; grid-template-columns: repeat(7, 1fr); }
.grid-8 { display: grid; grid-template-columns: repeat(8, 1fr); }
.grid-9 { display: grid; grid-template-columns: repeat(9, 1fr); }
.grid-10 { display: grid; grid-template-columns: repeat(10, 1fr); }
.grid-11 { display: grid; grid-template-columns: repeat(11, 1fr); }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); }

/* ──────── PADDING ──────── */
.p-8 { padding: 0.5rem; }
.pt-8 { padding-top: 0.5rem; }
.pr-8 { padding-right: 0.5rem; }
.pb-8 { padding-bottom: 0.5rem; }
.pl-8 { padding-left: 0.5rem; }
.px-8 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-8 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.p-12 { padding: 0.75rem; }
.pt-12 { padding-top: 0.75rem; }
.pr-12 { padding-right: 0.75rem; }
.pb-12 { padding-bottom: 0.75rem; }
.pl-12 { padding-left: 0.75rem; }
.px-12 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-12 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.p-16 { padding: 1rem; }
.pt-16 { padding-top: 1rem; }
.pr-16 { padding-right: 1rem; }
.pb-16 { padding-bottom: 1rem; }
.pl-16 { padding-left: 1rem; }
.px-16 { padding-left: 1rem; padding-right: 1rem; }
.py-16 { padding-top: 1rem; padding-bottom: 1rem; }
.p-20 { padding: 1.25rem; }
.pt-20 { padding-top: 1.25rem; }
.pr-20 { padding-right: 1.25rem; }
.pb-20 { padding-bottom: 1.25rem; }
.pl-20 { padding-left: 1.25rem; }
.px-20 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-20 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.p-24 { padding: 1.5rem; }
.pt-24 { padding-top: 1.5rem; }
.pr-24 { padding-right: 1.5rem; }
.pb-24 { padding-bottom: 1.5rem; }
.pl-24 { padding-left: 1.5rem; }
.px-24 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-24 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.p-32 { padding: 2rem; }
.pt-32 { padding-top: 2rem; }
.pr-32 { padding-right: 2rem; }
.pb-32 { padding-bottom: 2rem; }
.pl-32 { padding-left: 2rem; }
.px-32 { padding-left: 2rem; padding-right: 2rem; }
.py-32 { padding-top: 2rem; padding-bottom: 2rem; }
.p-40 { padding: 2.5rem; }
.pt-40 { padding-top: 2.5rem; }
.pr-40 { padding-right: 2.5rem; }
.pb-40 { padding-bottom: 2.5rem; }
.pl-40 { padding-left: 2.5rem; }
.px-40 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-40 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.p-48 { padding: 3rem; }
.pt-48 { padding-top: 3rem; }
.pr-48 { padding-right: 3rem; }
.pb-48 { padding-bottom: 3rem; }
.pl-48 { padding-left: 3rem; }
.px-48 { padding-left: 3rem; padding-right: 3rem; }
.py-48 { padding-top: 3rem; padding-bottom: 3rem; }

/* ──────── MARGIN ──────── */
.m-auto { margin: auto;}
.mx-auto { margin: 0px auto;}
.mx-0 {margin-left: 0px; margin-right: 0px;}
.my-0 {margin-top: 0px; margin-bottom: 0px;}
.mt-0 {margin-top: 0px;}
.my-auto { margin: auto 0px;}
.m-8 { margin: 0.5rem; }
.mt-8 { margin-top: 0.5rem; }
.mr-8 { margin-right: 0.5rem; }
.mb-8 { margin-bottom: 0.5rem; }
.ml-8 { margin-left: 0.5rem; }
.mx-8 { margin-left: 0.5rem; margin-right: 0.5rem; }
.my-8 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.m-12 { margin: 0.75rem; }
.mt-12 { margin-top: 0.75rem; }
.mr-12 { margin-right: 0.75rem; }
.mb-12 { margin-bottom: 0.75rem; }
.ml-12 { margin-left: 0.75rem; }
.mx-12 { margin-left: 0.75rem; margin-right: 0.75rem; }
.my-12 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.mt-16 { margin-top: 1rem; }
.mr-16 { margin-right: 1rem; }
.mb-16 { margin-bottom: 1rem; }
.ml-16 { margin-left: 1rem; }
.mx-16 { margin-left: 1rem; margin-right: 1rem; }
.my-16 { margin-top: 1rem; margin-bottom: 1rem; }
.m-20 { margin: 1.25rem; }
.mt-20 { margin-top: 1.25rem; }
.mr-20 { margin-right: 1.25rem; }
.mb-20 { margin-bottom: 1.25rem; }
.ml-20 { margin-left: 1.25rem; }
.mx-20 { margin-left: 1.25rem; margin-right: 1.25rem; }
.my-20 { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.m-24 { margin: 1.5rem; }
.mt-24 { margin-top: 1.5rem; }
.mr-24 { margin-right: 1.5rem; }
.mb-24 { margin-bottom: 1.5rem; }
.ml-24 { margin-left: 1.5rem; }
.mx-24 { margin-left: 1.5rem; margin-right: 1.5rem; }
.my-24 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.m-32 { margin: 2rem; }
.mt-32 { margin-top: 2rem; }
.mr-32 { margin-right: 2rem; }
.mb-32 { margin-bottom: 2rem; }
.ml-32 { margin-left: 2rem; }
.mx-32 { margin-left: 2rem; margin-right: 2rem; }
.my-32 { margin-top: 2rem; margin-bottom: 2rem; }
.m-40 { margin: 2.5rem; }
.mt-40 { margin-top: 2.5rem; }
.mr-40 { margin-right: 2.5rem; }
.mb-40 { margin-bottom: 2.5rem; }
.ml-40 { margin-left: 2.5rem; }
.mx-40 { margin-left: 2.5rem; margin-right: 2.5rem; }
.my-40 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.m-48 { margin: 3rem; }
.mt-48 { margin-top: 3rem; }
.mr-48 { margin-right: 3rem; }
.mb-48 { margin-bottom: 3rem; }
.ml-48 { margin-left: 3rem; }
.mx-48 { margin-left: 3rem; margin-right: 3rem; }
.my-48 { margin-top: 3rem; margin-bottom: 3rem; }

/* ──────── GAP ──────── */
.gap-4 { gap: 0.25rem; }
.gap-8 { gap: 0.5rem; }
.gap-12 { gap: 0.75rem; }
.gap-16 { gap: 1rem; }
.gap-20 { gap: 1.25rem; }
.gap-24 { gap: 1.5rem; }
.gap-32 { gap: 2rem; }
.gap-40 { gap: 2.5rem; }
.gap-48 { gap: 3rem; }
.gap-64 { gap: 4rem; }
.gap-80 { gap: 5rem; }

/* ──────── WIDTH ──────── */
.width-10 { min-width: 10%; }
.width-20 { min-width: 20%; }
.width-30 { min-width: 30%; }
.width-40 { min-width: 40%; }
.width-50 { min-width: 50%; }
.width-60 { min-width: 60%; }
.width-70 { min-width: 70%; }
.width-80 { min-width: 80%; }
.width-90 { min-width: 90%; }
.width-100 { min-width: 100%; }
.width-auto { width: auto; }
.width-fit { width: fit-content; }
.width-stretch { width: stretch; }

/* ──────── HEIGHT ──────── */
.height-10 { min-height: 10dvh; }
.height-20 { min-height: 20dvh; }
.height-30 { min-height: 30dvh; }
.height-40 { min-height: 40dvh; }
.height-50 { min-height: 50dvh; }
.height-60 { min-height: 60dvh; }
.height-70 { min-height: 70dvh; }
.height-80 { min-height: 80dvh; }
.height-90 { min-height: 90dvh; }
.height-100 { min-height: 100dvh; }
.height-auto { height: auto; }
.height-fit { height: fit-content; }
.height-stretch { height: stretch; }

/* ──────── POSICOES ──────── */
.absoluto { position: absolute; }
.relativo { position: relative; }
.fixo { position: fixed; }
.static { position: static; }
.sticky { position: sticky; }

.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

/* ──────── ALINHAMENTO DE TEXTO ──────── */
.texto-centro { text-align: center; }
.texto-direita { text-align: right; }
.texto-esquerda { text-align: left; }
.texto-justificado { text-align: justify; }

/* ──────── TAMANHO DE ELEMENTOS ──────── */
.fit-content { width: fit-content; height: fit-content; }
.stretch { width: -moz-available; width: -webkit-fill-available; width: stretch; }

/* ──────── OUTROS ──────── */
.invisivel, .esconder { display: none !important; }

.br-4 { border-radius: 0.25rem; }
.br-8 { border-radius: 0.5rem; }
.br-12 { border-radius: 0.75rem; }
.br-16 { border-radius: 1rem; }
.br-20 { border-radius: 1.25rem; }
.br-24 { border-radius: 1.5rem; }
.br-32 { border-radius: 2rem; }
.br-40 { border-radius: 2.5rem; }
.br-full { border-radius: 50%; }

.sombra { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.sombra-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.sombra-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.sombra-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.sombra-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.sombra-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); }
.sombra-none { box-shadow: none; }

h1 {
  font-size: 2em;
}

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

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;
}

ul {
  padding-inline-start: 24px;
}

label:has(input, select, textarea) {
    appearance: unset;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: 0.5s;
    
    input, select, textarea {
      padding: 16px 12px;
      background: var(--bg-90);
      border-radius: 12px;
      border: unset;
      font-size: 0.9em;
      color: var(--texto-70);
      border: 1px solid rgba(0, 0, 0, 0.05);
    }

    img, svg {
      position: absolute;
      bottom: 12.5px;
      right: 12px;
      width: 20px;
      opacity: 0.5;
    }

    &.full {
      width: 100%;
      flex: 1;
    }

    &.branco input, &.branco select{
      background: #fff;
    }

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

    &:has(input:not(:placeholder-shown)) {
        border-color: rgba(43, 43, 43, 0.24);
        color: var(--texto-95);

        img, svg {
            opacity: 0.82;
        }
    }
}

textarea {
  resize: vertical;
}

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

  img, svg {
    width: 18px;
  }
}

.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;
}

.btn-cancelar {
  background-color: var(--bg-90);
  color: var(--texto-50);
}

.btn-cancelar:hover {
  color: var(--texto-90);
}

.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: 450px;
      background: #fff;
    }

    .container-grande {
      width: 90%;
      max-width: 1200px;
      min-height: 600px;
      max-height: 90vh;
      background: #fff;
    }

    .tela-fechar {
      position: absolute;
      right: 10px;
      top: 12px;
      font-size: 2em;
      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;
    }
}

.notificacao {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 8px 8px 8px 0px;
    width: 350px;
    box-shadow: 0px 0px 10px 0px rgb(133 132 132 / 24%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 9999999;

    div {
        display: flex;
        flex-direction: column;
    }

    &.sucesso {
        background: var(--cor2);
    }

    &.erro {
        background: var(--cor3);
    }

    &.info {
        background: var(--cor2);
    }

    &.aviso {
        background: var(--cor5);
    }

    .notificao-titulo {
        margin: 0;
        font-size: 1em;
        color: #fff;
    }

    .notificacao-icone {
        width: 42px;
        margin: 8px 16px;
        filter: brightness(0) invert(1);
    }

    .notificacao-fechar {
        position: absolute;
        top: 8px;
        right: 8px;
        filter: grayscale(1);
        cursor: pointer;
    }

    .notificacao-detalhes {
        font-size: 0.8em;
        line-height: 1.2rem;
        color: rgba(255, 255, 255, 0.82);
    }
}
