* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    outline: none;
}

:root {
    --box-shadow-componentes: 6px 6px 4px #00000025;
}

main {
    padding: 16px;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 40px;
}

p,
span {
    font-size: 16px;
}

.chosen-container > .chosen-single > span {
    font-size: 13px;
}

.dt-buttons > button > span {
    font-size: inherit;
}

footer {
    font-size: 12px;
}

/* Seções personalizadas */
/* Divisões */
.div-table,
.div-grupo {
    border-radius: 15px;
    padding: 16px 8px;
}

.section-form > article > .div-table {
    margin: 16px 0;
}

.button-centro,
.button-direita,
.button-esquerda {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    width: 100%;
}

.button-centro {
    justify-content: center;
}

.button-direita {
    justify-content: flex-end;
}

.button-esquerda {
    justify-content: flex-start;
}

.button-centro {
    justify-content: center;
}

.button-direita {
    justify-content: flex-end;
}

/* Entradas */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
input[type="email"],
input[type="url"],
textarea,
.div-input > input,
select {
    padding: 8px 12px;
    border-radius: 5px;
    background: #fff;
    flex-grow: 1;
    align-self: stretch;
    font-size: 14px;
    letter-spacing: 1px;
    color: #3e3e3e;
}

input:disabled:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
textarea:disabled,
select:disabled {
    background-color: #d9d9d9;
}

input[type="number"],
.input-money,
.input-digito-numerico {
    text-align: right;
}

input[type="date"],
input[type="time"] {
    width: fit-content;
    flex-grow: 0;
    align-self: inherit;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

input[type="range"] {
    appearance: none;
}

/* Caixa de seleção */
select {
    width: 100%;
    min-width: 120px;
    border: 1px solid #616161;
    color: #282728;
    appearance: none;
    background-image: url("../imagens/icon-down.svg");
    background-position-x: right;
    background-position-y: center;
    background-size: 28px;
    background-repeat: no-repeat;
    padding-right: 32px;
    border-radius: 5px;
    padding: 4px 8px;
}

/* Input tipo range */
input[type="range"] {
    appearance: none;
    width: 300px;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
}

/* Estilo da barra ao passar o mouse */
input[type="range"]:hover {
    background: #ccc;
}

/* Estilo do "thumb" (a bolinha que você arrasta) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px #000;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #45a049;
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4caf50;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* Firefox track */
input[type="range"]::-moz-range-track {
    height: 8px;
    background: #ddd;
    border-radius: 5px;
}

/* Edge/IE */
input[type="range"]::-ms-thumb {
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-ms-track {
    height: 8px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type="range"]::-ms-fill-lower {
    background: #ddd;
    border-radius: 5px;
}

input[type="range"]::-ms-fill-upper {
    background: #ddd;
    border-radius: 5px;
}

hr {
    color: var(--Azul-Principal);
    height: 2px;
    margin: 8px 0;
    width: 100%;
}

img {
    width: auto;
    height: auto;
}

.div-input {
    position: relative;
    align-self: stretch;
    display: flex;
    gap: 8px;
    flex-grow: 1;
    overflow: hidden;
    border-radius: 5px;
}

.div-input > img {
    z-index: 1;
    position: absolute;
    left: 8px;
}

.div-input > input {
    border: 0;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding-left: 40px;
    min-height: 32px;
}

/* Botões */
input[type="button"],
.dt-buttons > button {
    padding: 8px 12px;
    border: 0;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
    box-shadow: var(--box-shadow-componentes);
}

input[type="button"]:hover,
button:hover {
    cursor: pointer;
}

input[type="button"]:disabled,
button:disabled {
    opacity: 0.6;
    cursor: default;
}

input[type="button"]:active,
button:active {
    transform: translateY(2px);
}

.dt-buttons {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Iframes */
.iframe-pagina {
    width: 100%;
    height: calc(100vh - 120px);
    max-height: 720px;
    border: 0;
    overflow: auto;
}

/* Campo descrição do arquivo, upload e campo arrasta e solta */
.div-components-entrada {
    display: flex;
    gap: 16px;
}
.div-components {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.div-components-entrada-texto {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-grow: 1;
}
.div-components-entrada-texto > input[type="text"] {
    align-self: flex-end;
}
.div-components-entrada > .button-centro > a > img {
    height: 40px;
}

/* Campo arrasta e solta */
.div-drop {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    border: 2px dashed #a2a2a2;
    padding: 12px 32px;
    background-color: #fbfbfb;
}

.div-drop-texto {
    min-width: 300px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    display: flex;
    align-self: stretch;
}

.div-drop-ficheiro > span {
    color: black;
    font-size: 16px;
    font-weight: 400;
    word-wrap: break-word;
}

.span-titulo {
    align-self: stretch;
    text-align: center;
    color: black;
    font-size: 20px;
    font-weight: bold;
    word-wrap: break-word;
}

.a-escolher {
    text-align: center;
    color: #a1a1a1;
    font-size: 16px;
    font-weight: 400;
    word-wrap: break-word;
}

/* Janelas */
/* Janela do jqxwindow */
.div-jqxwindow-principal {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    gap: 16px;
}

.jqx-window-header-sucesso {
    background-color: #60f084 !important;
}

.jqx-window-header-aviso {
    background-color: #ffe890 !important;
}

.jqx-window-header-erro {
    background-color: #ff9894 !important;
}

@media screen and (max-width: 1024px) {
}

@media screen and (max-width: 756px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }
}
