/* ===========================================
   RESET
=========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f4f6f9;
    color:#333;
}


/* ===========================================
   CONTAINER
=========================================== */

.container{

    width:95%;
    max-width:1300px;

    margin:30px auto;

    background:#fff;

    padding:30px;

    border-radius:10px;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

}


/* ===========================================
   CABEÇALHO
=========================================== */

header{

    margin-bottom:30px;

    border-bottom:1px solid #ddd;

    padding-bottom:20px;

}

header h1{

    color:#0d6efd;

    margin-bottom:8px;

    font-size:30px;

}

header p{

    color:#666;

    font-size:15px;

}

/* ===========================================
   CABEÇALHO
=========================================== */

.cabecalho{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:20px;

    margin-bottom:20px;

}

.titulo{

    flex:1;

}


/* ===========================================
   BOTÃO VOLTAR
=========================================== */

.btn-voltar{

    background:#6c757d;

    color:#fff;

    text-decoration:none;

    padding:12px 22px;

    border-radius:8px;

    font-weight:bold;

    display:flex;

    align-items:center;

    gap:10px;

    transition:.30s;

    box-shadow:0 3px 10px rgba(0,0,0,.12);

}

.btn-voltar:hover{

    background:#5a6268;

    transform:translateY(-2px);

    box-shadow:0 6px 12px rgba(0,0,0,.15);

}

.btn-voltar i{

    color:#fff;

}


/* ===========================================
   RESPONSIVIDADE
=========================================== */

@media(max-width:768px){

    .cabecalho{

        flex-direction:column;

        align-items:flex-start;

    }

    .btn-voltar{

        width:100%;

        justify-content:center;

    }

}


/* ===========================================
   FILTROS
=========================================== */

.filtros{

    margin-bottom:30px;

}

.linha{

    display:flex;

    gap:20px;

    margin-bottom:18px;

    flex-wrap:wrap;

}

.campo{

    flex:1;

    display:flex;

    flex-direction:column;

}

.largura100{

    width:100%;

}

.campo label{

    margin-bottom:6px;

    font-weight:bold;

    color:#444;

}

.campo input,
.campo select{

    padding:10px;

    border:1px solid #ccc;

    border-radius:6px;

    font-size:15px;

    transition:.2s;

}

.campo input:focus,
.campo select:focus{

    border-color:#0d6efd;

    outline:none;

    box-shadow:0 0 5px rgba(13,110,253,.25);

}


/* ===========================================
   BOTÃO
=========================================== */

.botao{

    justify-content:flex-end;

}

.botao button{

    margin-top:24px;

    padding:11px 28px;

    border:none;

    background:#0d6efd;

    color:#fff;

    font-size:15px;

    border-radius:6px;

    cursor:pointer;

    transition:.3s;

}

.botao button:hover{

    background:#0b5ed7;

}


/* ===========================================
   TABELA
=========================================== */

.tabela{

    overflow-x:auto;

}

table{

    width:100%;

    border-collapse:collapse;

}

thead{

    background:#0d6efd;

    color:#fff;

}

thead th{

    padding:14px;

    text-align:left;

    font-size:15px;

}

tbody td{

    padding:14px;

    border-bottom:1px solid #e5e5e5;

    vertical-align:middle;

}

tbody tr:nth-child(even){

    background:#fafafa;

}

tbody tr:hover{

    background:#eef5ff;

}


/* ===========================================
   BADGE
=========================================== */

.badge{

    display:inline-block;

    background:#198754;

    color:#fff;

    padding:5px 12px;

    border-radius:20px;

    font-size:13px;

    font-weight:bold;

}


/* ===========================================
   BOTÕES DA TABELA
=========================================== */

.acoes{

    white-space:nowrap;

}

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    width:36px;

    height:36px;

    margin-right:5px;

    border-radius:6px;

    text-decoration:none;

    color:#fff;

    transition:.3s;

}

.visualizar{

    background:#0dcaf0;

}

.visualizar:hover{

    background:#0aa2c0;

}

.editar{

    background:#ffc107;

    color:#222;

}

.editar:hover{

    background:#e0a800;

}

.excluir{

    background:#dc3545;

}

.excluir:hover{

    background:#bb2d3b;

}

.historico{

    background:#198754;

    color:#fff;

}

.historico:hover{

    background:#157347;

}

.historico i{

    color:#fff;

}



/* ===========================================
   SEM REGISTROS
=========================================== */

.sem-registro{

    text-align:center;

    padding:30px;

    color:#777;

    font-style:italic;

}


/* ===========================================
   RESPONSIVIDADE
=========================================== */

@media (max-width:900px){

    .linha{

        flex-direction:column;

    }

    .botao{

        justify-content:flex-start;

    }

    .botao button{

        width:100%;

        margin-top:10px;

    }

}

@media (max-width:700px){

    header h1{

        font-size:24px;

    }

    thead{

        font-size:14px;

    }

    tbody td{

        font-size:14px;

        padding:10px;

    }

    .btn{

        width:32px;

        height:32px;

    }

}