:root {
    touch-action: pan-x pan-y;
    height: 100%;

    /* Colors */
    --primary: #005C78;
    --secondary: #F08017;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --highlight: #fff693;
    --danger: #dc3545;

    --light-shadow: #CCCCCC40;
    --mid-shadow: #88888840;

    --white: #ffffff;
    --light: #cccccc;
    --mid: #888888;
    --dark: #444444;
    --black: #000000;

    --c1: #F4442E;
    --c2: #005C78;
    --c3: #FCEC52;
    --c4: #61F2C2;

    --tapete: #ffc107b0;


}

.color-ready-new,
.color-ready-new:focus {
    background-color: var(--c4);
}

.color-ready-existing,
.color-ready-existing:focus {
    background-color: var(--c3);
}

.color-mandatory,
.color-mandatory:focus {
    border: 1px solid var(--c1);
}

.color-warning, .color-warning:focus {
    background-color: var(--warning);
}

.text-warning {
    color: var(--warning);
}

.input-setup {
    position: relative;
    display: inline-block;
    text-align: center;
}

#grade {
    border: 1px solid #cecece;
    border-radius: 10px;
    padding: 20px;
    row-gap: 10px;
}

#div_linhas {
    padding-left: 20px;
    padding-right: 20px;
}

@font-face {
    font-family: 'Exo';
    src: url('../assets/fonts/Exo-VariableFont_wght.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url('../assets/fonts/Exo-Italic-VariableFont_wght.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
    font-style: italic;
}

@font-face {
    font-family: 'Work Sans';
    src: url('../assets/fonts/WorkSans-VariableFont_wght.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Work Sans';
    src: url('../assets/fonts/WorkSans-Italic-VariableFont_wght.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
    font-style: italic;
}

@font-face {
    font-family: 'FontAwesome Solid';
    src: url('fontawesome-free-6.5.2-web/webfonts/fa-solid-900.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: 'FontAwesome Regular';
    src: url('fontawesome-free-6.5.2-web/webfonts/fa-regular-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

body {
    background-color: var(--dark);
    font-family: 'Work Sans', sans-serif;
    margin: 0;
    padding: 0;
    width: 100dvw;
    height: 100dvh;
}

#board {

    min-width: 280px;

}

#car {
    background-color: var(--c2);
    margin: 0;
    mask-image: url(../assets/carform.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    background-image: url(../assets/carimg.svg);
    background-size: 82.5%;
    background-repeat: no-repeat;
    background-position: center;
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
}

#car {
    aspect-ratio: 9 / 16 !important;
    height: 85%;
    width: auto;
}

.icon {
    position: absolute !important;
    font-size: 1.5rem !important;
    margin-right: 0.5rem !important;
    margin-top: 0.12rem !important;
}

.c1 {
    color: var(--c1);
}

.c2 {
    color: var(--c2);
}

.c3 {
    color: var(--c3);
}

.c4 {
    color: var(--c4);
}

datalist {
    display: none;
    width: 0px;
    height: 0px;
}

#main {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    margin: 10% auto;
    padding: 40px 24px;
    width: 90dvw;
    max-width: 1200px !important;
    min-height: 660px;
}

.form-control {

    min-width: 60px;
}

.form-control:focus {
    border-color: var(--light);
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    /*box-shadow: 0 0 0 0.3rem var(--mid-shadow);*/
}

.dt-scroll-head {
    background-color: #242d36 !important;
    color: #fff;
    border-bottom: 1px solid #e9ecef;
}

div.dataTables_wrapper div.dataTables_scrollBody {
    min-height: 430px !important;
}

.dataTable>thead>tr>th {
    font-weight: 550;
    color: var(--light);
    background-color: var(--dark) !important;
    border: 1px solid var(--mid) !important;
}

.dataTable {
    border-collapse: collapse;
    border-radius: 2px;
    width: 100%;
}

.dataTable>tbody>tr>td {
    white-space: nowrap;
}

p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    margin: 0;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--secondary);
    text-decoration: none;
}

#btn_add, #btn_print, #btn_csv {
    font-family: 'FontAwesome Solid';
    width: 44px;
}



.btn-carped {
    background-color: var(--c2) !important;
    border: 0px;
    border-radius: 5px;
    color: var(--white);
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    min-width: 120px;
    transition: background-color 0.3s, color 0.3s;
}

.btn-carped:hover {
    background-color: var(--secondary) !important;
    color: var(--white);
}

.btn-carped:active {
    background-color: var(--primary) !important;
    color: var(--white);
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--white) !important;
    color: var(--white);
}

input:checked {
    background-color: var(--primary) !important;
    color: var(--white) !important;
}

.btn-secondary {
    background-color: var(--secondary) !important;
    color: var(--white);
}


.btn-outline-primary:checked {
    background-color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    color: var(--white) !important;
}

.borda_V {
    border: 1px solid #ddd;
    border-bottom: 4px solid var(--c4);
}

.borda_A {
    border: 1px solid #ddd;
    border-bottom: 4px solid var(--c3);
}

.sombra {
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px,
        rgba(0, 0, 0, 0.07) 0px 2px 4px,
        rgba(0, 0, 0, 0.07) 0px 4px 8px,
        rgba(0, 0, 0, 0.07) 0px 8px 16px,
        rgba(0, 0, 0, 0.07) 0px 16px 32px,
        rgba(0, 0, 0, 0.07) 0px 32px 64px;
}

#modal p {
    margin: 0 0 0.2rem 0.5rem;
}

#modal input[type=text] {
    text-align: center;
}

#modaltitle {
    cursor: move;
}

#modaltitle h5 {
    margin: 0.2rem 0 0 0;
}

#wrapper_tabela {
    width: 75%;
}

textarea {
    resize: none;
}

/* ---------- CARRO ---------- */


.tapete {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0.3rem 0.3rem 2rem 0.3rem;
    border-radius: 0.5rem;
    border: 2px solid var(--mid);
    background-color: var(--tapete);
    width: auto;
    height: auto;
    cursor: pointer;
    overflow: hidden;
}

.tapete-novo {
    background-color: var(--c4);
    border: 2px solid var(--mid);
}

.selected {
    -webkit-box-shadow: inset 0px 0px 9px 4px rgba(255,255,255,1);
    -moz-box-shadow: inset 0px 0px 9px 4px rgba(255,255,255,1);
    box-shadow: inset 0px 0px 9px 4px rgba(255,255,255,1);
}


@media (max-width:480px) {

    #main {
        width: 96vw;
    }

    #wrapper_tabela {
        width: 100%;
    }

    #buttonBar {
        justify-content:space-between;
        align-items: center;
        text-align: center;
        padding-bottom: 1rem;
    }

}