﻿:root {
    /*Cores*/

    --web-neutral-0: #FFFFFF;
    --web-neutral-100: #F9F9F9;
    --web-neutral-200: #E9E9E9;
    --web-neutral-300: #D9D9D9;
    --web-neutral-400: #B8B8B8;
    --web-neutral-500: #969696;
    --web-neutral-600: #858786;
    --web-neutral-700: #747876;
    --web-neutral-800: #505251;
    --web-neutral-900: #2D2D2D;
    --web-neutral-1000: #000000;

    --web-primary-0: #005D9B;
    --web-primary-100: #002D4B;

    --web-secondary-100: #FCFC1B;

    --web-terciary-0: #87C3BE;
    --web-terciary-100: #5AAAA0;

    --web-success-0: #51CBB4;
    --web-success-100: #D6FBD0;
    --web-success-600: #29BB11;

    --web-error-0: #EC1529;
    --web-error-100: #FBD0D4;

    --web-alert-100: #FFF4CC;
    --web-alert-200: #FFE999;
    --web-alert-600: #FFD53D;
    --web-alert-700: #997800;
    --web-alert-800: #665000;
}

/*Html*/

h1, h2, h3, h4, h5, h6,
p,
ul, ol {
    margin: 0;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
}

/*Link*/

.web-link-primary {
    color: var(--web-primary-100);
    transition: .1s;
    text-decoration: underline;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
}

.web-link-primary:hover {
    color: var(--web-primary-0);
}

.web-link-negative {
    color: var(--web-neutral-0);
    transition: .1s;
    text-decoration: underline;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
}

.web-link-negative:hover {
    color: var(--web-secondary-100);
}

/*Label*/

.web-label-input {
    color: var(--web-primary-100);
    font-size: 16px;
    line-height: 24px;
    font-weight: bold;
    display: block;
    transition: .1s;
}

.web-label-input:has(:required)::before {
    content: "*";
    color: var(--web-error-0);
    font-weight: normal;
    font-size: 14px;
}

.web-label-input[data-erro]:not([data-erro=""])::after {
    content: "\26A0  " attr(data-erro);
    color: var(--web-error-0);
    font-weight: normal;
    font-size: 14px;
}

.web-label-input:has(:disabled) {
    color: var(--web-neutral-500);
}

/*Input*/

.web-input {
    padding: 8px 16px;
    background: var(--web-neutral-0);
    border: 1px solid var(--web-neutral-400);
    border-radius: 4px;
    outline: none;
    color: var(--web-neutral-900, #2D2D2D);
    font-size: 16px;
    line-height: 24px;
    display: block;
    width: 100%;
    transition: .1s;
}

.web-input::placeholder {
    color: var(--web-neutral-500);
    font-size: 16px;
    line-height: 24px;
}

.web-input:focus {
    border-color: var(--web-primary-100);
    box-shadow: 0 0 0 1px var(--web-primary-100);
}

.web-label-input[data-erro]:not([data-erro=""]) .web-input {
    border-color: var(--web-error-0);
    box-shadow: 0 0 0 1px var(--web-error-0);
}

.web-input:disabled {
    border-color: var(--web-neutral-400);
    background: var(--web-neutral-300);
}

.web-input[type=search]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    background: url(https://servicosonline.cassi.com.br/components/lib/bootstrap-icons/1.10.2/x-lg.svg);
    width: 16px;
    height: 16px;
}

/*Container input*/

.web-container-input {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    transition: .1s;
}

.web-container-input > .bi {
    color: var(--web-primary-100);
    font-size: 16px;
    line-height: 16px;
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
}

.web-container-input:has(>.bi) .web-input {
    padding-left: 40px;
}

/*Botão*/

/*Primário*/

.web-botao-primary {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--web-primary-100);
    border: 1px solid var(--web-primary-100);
    border-radius: 4px;
    color: var(--web-neutral-0);
    font-size: 16px;
    line-height: 24px;
    transition: .1s;
    outline: transparent;
}

.web-botao-primary:where(:hover, :focus) {
    background: var(--web-secondary-100);
    border-color: var(--web-secondary-100);
    color: var(--web-primary-100);
}

.web-botao-primary:disabled {
    background: var(--web-neutral-500);
    border-color: var(--web-neutral-500);
    color: var(--web-neutral-300);
}

/*Secundário*/

.web-botao-secondary {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--web-neutral-0);
    border: 1px solid var(--web-primary-100);
    border-radius: 4px;
    color: var(--web-primary-100);
    font-size: 16px;
    line-height: 24px;
    transition: .1s;
    outline: transparent;
}

.web-botao-secondary:where(:hover, :focus) {
    background: var(--web-primary-100);
    border-color: var(--web-primary-100);
    color: var(--web-neutral-0);
}

.web-botao-secondary:disabled {
    background: var(--web-neutral-0);
    border-color: var(--web-neutral-500);
    color: var(--web-neutral-500);
}

/*Terciário*/

.web-botao-terciary {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--web-primary-100);
    font-size: 16px;
    line-height: 24px;
    transition: .1s;
    outline: transparent;
}

.web-botao-terciary:where(:hover, :focus) {
    color: var(--web-primary-0);
}

.web-botao-terciary:disabled {
    color: var(--web-neutral-500);
}

/*Backdrop*/

#web-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
}

#web-backdrop.ativo {
    display: block;
}

/*Toast*/

#web-toast {
    width: 300px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--web-neutral-0);
    border: 1px solid var(--web-neutral-1000);
    border-radius: 10px;
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(100%);
    transition: .3s;
}

#web-toast .bi {
    font-size: 12px;
    line-height: 12px;
}

#web-toast-p {
    display: block;
    width: 100%;
    color: var(--web-neutral-800);
    font-size: 14px;
    line-height: 20px;
}

#web-toast-btn {
    border: none;
    background: none;
}

#web-toast.web-toast-ativo {
    transform: none;
}

#web-toast.web-toast-sucesso {
    background: var(--web-success-100);
    border-color: var(--web-success-600);
}

#web-toast.web-toast-sucesso .bi {
    color: var(--web-success-600);
}

#web-toast.web-toast-alerta {
    background: var(--web-alert-100);
    border-color: var(--web-alert-600);
}

#web-toast.web-toast-alerta .bi {
    color: var(--web-alert-600);
}

#web-toast.web-toast-erro {
    background: var(--web-error-100);
    border-color: var(--web-error-0);
}

#web-toast.web-toast-erro .bi {
    color: var(--web-error-0);
}

@media (max-width: 991px) {
    #web-toast {
        width: 100%;
    }
}