/* ===================================================== AZAK
PERFORMANCE V2 ===================================================== */


:root{

    --preto:#111111;
    --amarelo:#FFD400;

    --bg:#EFEFEF;

    --branco:#FFFFFF;

    --cinza:#F7F7F7;
    --cinza2:#ECECEC;

    --borda:#DDDDDD;

    --verde:#198754;
    --laranja:#F0AD4E;
    --vermelho:#DC3545;

}

*{

    margin:0;
    padding:0;

    box-sizing:border-box;

    font-family:Arial,Helvetica,sans-serif;

}

body{

    background:var(--bg);

    color:#222;

    padding:20px;

}

/* ===================================== */

.hidden{

    display:none;

}

.container{

    max-width:1900px;

    margin:auto;

}

/* ===================================== LOGIN
===================================== */

#login{

    width:100%;
    height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

}

.login-box{

    width:380px;

    background:#FFF;

    border-radius:12px;

    padding:40px;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

.login-box h1{

    text-align:center;

    margin-bottom:15px;

}

.login-box p{

    text-align:center;

    color:#666;

    margin-bottom:20px;

}

.login-box input{

    width:100%;

    padding:12px;

    border:1px solid #CCC;

    border-radius:6px;

    font-size:15px;

    margin-bottom:15px;

}

.login-box input:focus{

    outline:none;

    border-color:var(--amarelo);

}

.login-box button{

    width:100%;

    padding:12px;

    border:none;

    border-radius:6px;

    background:var(--preto);

    color:var(--amarelo);

    font-weight:bold;

    cursor:pointer;

}

.login-box button:hover{

    opacity:.92;

}

#erro{

    display:block;

    margin-top:12px;

    color:var(--vermelho);

    text-align:center;

}

/* ===================================== HEADER
===================================== */

header{

    background:var(--preto);

    color:var(--amarelo);

    padding:20px;

    border-radius:12px 12px 0 0;

}

.header-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.header-top h1{

    font-size:30px;

}

.btn{

    padding:10px 20px;

    border:none;

    border-radius:6px;

    background:var(--amarelo);

    color:#000;

    cursor:pointer;

    font-weight:bold;

}

/* ===================================== DASHBOARD
===================================== */


.dashboard{

    display:grid;

    grid-template-columns:repeat(7,minmax(140px,1fr));

    gap:10px;

    margin-bottom:18px;

}

.card{

    background:#FFF;

    color:#111;

    border-radius:8px;

    padding:12px;

    text-align:center;

    box-shadow:0 2px 6px rgba(0,0,0,.08);

}


.card span{

    display:block;

    font-size:13px;

    color:#666;

    margin-bottom:6px;

}

.card strong{

    display:block;

    font-size:18px;

    font-weight:700;

}

/* ===================================== PESQUISA
===================================== */

.toolbar{

    margin-top:10px;

}

#pesquisa{

    width:100%;

    padding:12px;

    border:none;

    border-radius:6px;

    font-size:15px;

}

#pesquisa:focus{

    outline:none;

}

/* ===================================== TABELA
===================================== */

.tabela{

    background:#FFF;

    overflow:auto;

    box-shadow:0 4px 12px rgba(0,0,0,.12);

}

table{

    width:max-content;

    min-width:100%;

    border-collapse:collapse;

}

thead th{

    position:sticky;

    top:0;

    background:var(--preto);

    color:var(--amarelo);

    padding:10px;

    border:1px solid #333;

    white-space:nowrap;

    font-size:14px;

    z-index:2;

}
tbody td{

    border:1px solid #D0D0D0;

    padding:8px;

    text-align:center;

    white-space:nowrap;

    font-size:14px;

}

/*tbody td{

    padding:8px;

    border:1px solid var(--borda);

    text-align:center;

    white-space:nowrap;

    font-size:14px;

}*/
tbody tr:nth-child(odd) td{

    background:#FFFFFF;

}

tbody tr:nth-child(even) td{

    background:#D5D5D5;

}
tbody tr:hover td{

    background:#D9ECFF !important;

    color:#111 !important;

}
tbody tr{

    transition:background .15s ease;

}

tbody tr:hover{

    cursor:pointer;

    box-shadow:inset 0 0 0 9999px rgba(0,123,255,.08);

}
/* =====================================
   LINHA SELECIONADA
===================================== */

tbody tr.selecionada td{

    background:#D9ECFF !important;

    color:#111 !important;

}
/* =====================================
   ABAS
===================================== */

.abas{

    display:flex;

    gap:8px;

    margin:18px 0 14px;

}

.aba{

    border:none;

    padding:10px 24px;

    border-radius:8px 8px 0 0;

    background:#E2E2E2;

    color:#444;

    font-weight:700;

    cursor:pointer;

    transition:.2s;

}

.aba:hover{

    background:#D4D4D4;

}

.aba.ativa{

    background:#111;

    color:#FFD400;

}

.col-produto{min-width:320px;width:320px;text-align:left;}
.col-cor{width:90px;min-width:90px;}
.col-tamanho{width:60px;min-width:60px;}
.col-total{width:70px;min-width:70px;font-weight:bold;}
.col-financeiro{width:120px;min-width:120px;text-align:right;}

.zero{

    background:#FDEAEA;

    color:#B42318;

    font-weight:bold;

}

.baixo{

    background:#FFF7DB;

    color:#8A6D3B;

    font-weight:bold;

}

.ok{

    background:#EAF8EE;

    color:#157347;

    font-weight:bold;

}

td.col-financeiro{font-variant-numeric:tabular-nums;}
.margem{color:var(–verde);font-weight:bold;}

footer{ background:var(–preto); color:var(–amarelo); display:flex;
justify-content:space-between; align-items:center; padding:15px 20px;
border-radius:0 0 12px 12px; font-size:14px; }

button{transition:.2s;} button:hover{transform:translateY(-1px);}
button:active{transform:translateY(0);}

::-webkit-scrollbar{height:10px;width:10px;}
::-webkit-scrollbar-track{background:#ECECEC;}
::-webkit-scrollbar-thumb{background:#9A9A9A;border-radius:10px;}
::-webkit-scrollbar-thumb:hover{background:#777;}

@media(max-width:1200px){ body{padding:12px;}
.dashboard{grid-template-columns:repeat(3,1fr);} }

@media(max-width:900px){
.dashboard{grid-template-columns:repeat(2,1fr);}
.header-top{flex-direction:column;gap:15px;} .btn{width:100%;} }

@media(max-width:700px){ .dashboard{grid-template-columns:1fr;}
.login-box{width:95%;padding:30px;} .header-top
h1{font-size:24px;text-align:center;}
footer{flex-direction:column;gap:8px;text-align:center;} }

thead th{user-select:none;} tbody td{transition:background .15s;} tbody
td.col-produto{font-weight:600;} tbody
td.col-cor{font-weight:500;text-transform:capitalize;} tbody
td.col-total{background:#F8F8F8;font-weight:bold;} tbody
td.col-financeiro{background:#FAFAFA;}

@media print{ body{background:#FFF;padding:0;}
header{color:#000;background:#FFF;} .btn,.toolbar{display:none;}
footer{color:#000;background:#FFF;border-top:1px solid #CCC;} }

.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.oculto{
    display:none;
}

.modal-conteudo{
    width:420px;
    background:#fff;
    border-radius:12px;
    padding:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.modal-conteudo h2{
    margin-top:0;
    margin-bottom:20px;
}

.campo{
    margin-bottom:15px;
}

.campo label{
    display:block;
    font-weight:bold;
    margin-bottom:5px;
}

.campo input,
.campo select{
    width:100%;
    padding:10px;
    box-sizing:border-box;
}

.campo-duplo{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
    margin-bottom:20px;
}

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