* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f7f7f7 0%, #ffffff 45%, #eeeeee 100%);
    min-height: 100vh;
    color: #222;
}

.topo-sistema {
    display: flex;
    align-items: center;
    height: 96px;
    background: linear-gradient(90deg, #4a4d50, #2f3235);
    color: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.topo-logo {
    width: 315px;
    height: 96px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
}

.topo-logo img {
    max-width: 255px;
    max-height: 76px;
    object-fit: contain;
}

.topo-titulo {
    padding-left: 36px;
}

.topo-titulo h1 {
    font-size: 34px;
    margin-bottom: 6px;
    font-weight: 700;
}

.topo-titulo p {
    font-size: 18px;
    color: #e6e6e6;
}

main {
    padding: 34px 26px 70px 26px;
}

.barra-acoes {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.acoes {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

button {
    min-width: 200px;
    background: linear-gradient(180deg, #5c6064, #3e4246);
    color: white;
    border: none;
    padding: 15px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,0.18);
    transition: 0.2s;
}

button:hover {
    background: linear-gradient(180deg, #4e5256, #303336);
    transform: translateY(-1px);
}

.icone-botao {
    margin-right: 10px;
    font-size: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: rgba(255,255,255,0.94);
    padding: 24px 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.10);
    border: 1px solid #e4e4e4;
    min-height: 104px;
}

.card-icone {
    font-size: 42px;
    color: #d83b3b;
    line-height: 1;
}

.card h2 {
    font-size: 16px;
    color: #111;
    margin-bottom: 9px;
    white-space: nowrap;
}

.card span {
    font-size: 36px;
    font-weight: bold;
    color: #d83b3b;
}

.lista-nfs {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.12);
    border: 1px solid #d9d9d9;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: linear-gradient(180deg, #51555a, #373b40);
    color: white;
    padding: 14px 18px;
    text-align: left;
    font-size: 14px;
}

td {
    padding: 14px 18px;
    border-bottom: 1px solid #d7dce0;
    border-right: 1px solid #e1e5e8;
    font-size: 14px;
}

td:last-child,
th:last-child {
    border-right: none;
}

tr:hover {
    background: #f6f6f6;
}

.checkNF {
    width: 18px;
    height: 18px;
    accent-color: #d83b3b;
}

.rodape-sistema {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 48px;
    background: linear-gradient(90deg, rgba(63,67,71,0.86), rgba(165,170,174,0.72));
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 26px;
}

.rodape-sistema span:last-child {
    margin-left: auto;
    opacity: 0.75;
}

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

@media (max-width: 780px) {
    .topo-sistema {
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .topo-logo {
        width: 100%;
    }

    .topo-titulo {
        padding: 20px;
        text-align: center;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    button {
        width: 100%;
    }
}


.filtro-transportadora {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, 2fr) auto auto;
    gap: 12px;
    align-items: center;
    background: white;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.10);
    padding: 16px 18px;
    margin-bottom: 28px;
}

.filtro-titulo {
    font-size: 15px;
    font-weight: bold;
    color: #3e4246;
}

.filtro-transportadora select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfd4d9;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

.filtro-transportadora button {
    min-width: 160px;
    padding: 12px 18px;
}

@media (max-width: 1000px) {
    .filtro-transportadora {
        grid-template-columns: 1fr;
    }

    .filtro-transportadora button {
        width: 100%;
    }
}
