
:root {
    --azul-escuro: #17324d;
    --azul: #245b83;
    --fundo: #f3f6fa;
    --branco: #ffffff;
    --texto: #263445;
    --texto-suave: #718096;
    --borda: #e0e7ef;
    --verde: #237a57;
    --laranja: #b96a16;
    --vermelho: #b83c45;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--fundo);
    color: var(--texto);
    font-size: 14px;
}

.topbar {
    min-height: 86px;
    padding: 18px 32px;
    background: var(--azul-escuro);
    color: var(--branco);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: var(--azul);
    border: 1px solid #6485a3;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
}

.brand h1 {
    margin: 0;
    font-size: 21px;
    font-weight: 650;
}

.brand p {
    margin: 5px 0 0;
    color: #c4d3e1;
}

.status {
    color: #d9e5ef;
    font-size: 12px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #55d6a0;
    border-radius: 50%;
    margin-right: 7px;
}

.container {
    width: min(1440px, calc(100% - 48px));
    margin: 32px auto;
    min-height: 350px;
}

footer {
    padding: 20px 32px;
    color: var(--texto-suave);
    font-size: 12px;
    border-top: 1px solid var(--borda);
    text-align: center;
}

@media (max-width: 650px) {
    .topbar {
        padding: 18px;
        align-items: flex-start;
        flex-direction: column;
    }

    .container {
        width: calc(100% - 28px);
        margin: 20px auto;
    }

    .brand h1 {
        font-size: 18px;
    }
}




@media (max-width: 900px) {
    .resumo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .painel-inferior {
        grid-template-columns: 1fr;
    }
}

/* PAINEL OPERACIONAL */

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.dashboard .page-heading h2 {
    margin: 0 0 8px;
    font-size: 26px;
    color: var(--azul-escuro);
}

.dashboard .page-heading p {
    margin: 0;
    color: var(--texto-suave);
}

/* CARDS DE RESUMO */

.dashboard .resumo {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dashboard .card-resumo {
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 3px 12px rgba(23, 50, 77, 0.04);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.dashboard .card-label {
    color: var(--texto-suave);
    font-size: 13px;
}

.dashboard .card-resumo strong {
    font-size: 32px;
    line-height: 1.2;
    color: var(--azul-escuro);
}

.dashboard .card-descricao {
    color: var(--texto-suave);
    font-size: 12px;
}

/* PAINÉIS E SEÇÕES */

.dashboard .painel-card {
    display: block;
    width: 100%;
    min-width: 0;
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 3px 10px rgba(20, 45, 70, 0.04);
}

.dashboard .painel-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--azul-escuro);
}

.dashboard .painel-card p {
    margin: 0 0 20px;
    line-height: 1.5;
    color: var(--texto-suave);
    font-size: 13px;
}

/* FILTRO DE PERÍODO */

.dashboard input[type="date"] {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--borda);
    border-radius: 7px;
    color: var(--azul-escuro);
    background: var(--branco);
}

.dashboard label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    color: var(--azul-escuro);
}

/* TABELAS */

.dashboard .tabela-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--borda);
    border-radius: 9px;
}

.dashboard table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--azul-escuro);
}

.dashboard table thead {
    background: #f1f5f9;
}

.dashboard table th {
    padding: 13px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--texto-suave);
    white-space: nowrap;
}

.dashboard table td {
    padding: 13px 14px;
    border-top: 1px solid var(--borda);
    vertical-align: middle;
}

.dashboard table tbody tr:hover {
    background: #f8fafc;
}

.dashboard table tbody tr:last-child td {
    border-bottom: none;
}

/* IDENTIFICAÇÃO DAS EMPRESAS */

.empresa-onstech {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 6px;
    background: #fff0df;
    color: #b85b00;
    font-size: 11px;
    font-weight: 700;
}

.empresa-ost {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 6px;
    background: #edf0f3;
    color: #596575;
    font-size: 11px;
    font-weight: 700;
}

/* PAINÉIS INFERIORES ANTIGOS */

.painel-inferior {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.painel-inferior .painel-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.painel-inferior .painel-card p {
    flex: 1;
    min-height: 64px;
}

.painel-inferior .botao-principal,
.estado-modulo {
    margin-top: auto;
}

.estado-modulo {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 7px;
    background: #edf2f7;
    color: var(--azul);
    font-size: 12px;
    font-weight: 600;
}

/* RESPONSIVIDADE */

@media (max-width: 900px) {
    .dashboard .resumo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .painel-inferior {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard .resumo {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dashboard .card-resumo {
        padding: 15px;
    }

    .dashboard .card-resumo strong {
        font-size: 26px;
    }

    .dashboard .painel-card {
        padding: 16px;
    }

    .dashboard table {
        min-width: 650px;
    }
}

@media (max-width: 480px) {
    .resumo {
        grid-template-columns: 1fr;
    }

    .card-resumo,
    .painel-card {
        padding: 18px;
    }
}

/* TABELA DE PROJETOS */

.tabela-cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.tabela-cabecalho h3 {
    margin: 0;
    color: var(--azul-escuro);
    font-size: 17px;
}

.contador {
    color: var(--texto-suave);
    font-size: 12px;
}

.tabela-container {
    width: 100%;
    overflow-x: auto;
}

.tabela-projetos {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.tabela-projetos th {
    padding: 14px 12px;
    background: #f3f6fa;
    color: var(--texto-suave);
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tabela-projetos td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--borda);
    line-height: 1.5;
}

.tabela-projetos tbody tr:last-child td {
    border-bottom: none;
}

.tabela-projetos tbody tr:hover {
    background: #f8fafc;
}

/* NAVEGACAO PRINCIPAL */

.menu-principal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 32px;
    background: var(--branco);
    border-bottom: 1px solid var(--borda);
}

.menu-principal a {
    display: inline-block;
    padding: 15px 18px;
    color: var(--texto-suave);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
}

.menu-principal a:hover {
    color: var(--azul);
    background: #f7f9fc;
}

.menu-principal a.ativo {
    color: var(--azul);
    border-bottom-color: var(--laranja);
}

@media (max-width: 650px) {
    .menu-principal {
        padding: 0 14px;
    }
}

/* FORMULARIO DE PROJETOS */

.acoes-tabela,
.acoes-formulario {
    display: flex;
    align-items: center;
    gap: 12px;
}

.botao-principal,
.botao-secundario {
    display: inline-block;
    padding: 11px 16px;
    border-radius: 7px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.botao-principal {
    border: 1px solid var(--azul);
    background: var(--azul);
    color: white;
}

.botao-principal:hover {
    background: var(--azul-escuro);
}

.botao-secundario {
    border: 1px solid var(--borda);
    background: white;
    color: var(--texto);
}

.formulario-card {
    max-width: 760px;
}

.campo-formulario {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.campo-formulario label,
.campo-empresas legend {
    font-weight: 600;
    color: var(--azul-escuro);
}


.campo-formulario input,
.campo-formulario select,
.campo-formulario textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--borda);
    border-radius: 7px;
    font: inherit;
    color: var(--texto);
    background-color: #fff;
    box-sizing: border-box;
}

.campo-formulario textarea {
    resize: vertical;
    min-height: 110px;
}

.campo-formulario select {
    cursor: pointer;
}

.campo-formulario input:focus,
.campo-formulario select:focus,
.campo-formulario textarea:focus {
    outline: 2px solid #9bbbd4;
    border-color: var(--azul);
}


.campo-formulario input:focus {
    outline: 2px solid #9bbbd4;
    border-color: var(--azul);
}

.campo-empresas {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    border: 1px solid var(--borda);
    border-radius: 8px;
    padding: 18px;
}

.campo-empresas legend {
    padding: 0 6px;
}

.opcao-empresa {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ajuda-formulario {
    color: var(--texto-suave);
    font-size: 12px;
}

.acoes-formulario {
    justify-content: flex-end;
    margin-top: 28px;
}

.mensagem {
    padding: 13px 16px;
    border-radius: 7px;
    margin-bottom: 16px;
    font-weight: 600;
}

.mensagem.erro {
    background: #fff0f0;
    color: var(--vermelho);
}

.mensagem.sucesso {
    background: #eaf7f0;
    color: var(--verde);
}

@media (max-width: 600px) {
    .tabela-cabecalho {
        align-items: flex-start;
        flex-direction: column;
    }

    .acoes-tabela {
        flex-wrap: wrap;
    }
}

/* ACAO DE INATIVACAO */

.botao-inativar {
    display: inline-block;
    padding: 11px 16px;
    border: 1px solid #e5b8bb;
    border-radius: 7px;
    background: #fff5f5;
    color: var(--vermelho);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.botao-inativar:hover {
    background: #ffe8e8;
}

.acoes-tabela form {
    margin: 0;
}

/* ===== TABELA DE FUNCIONARIOS ===== */

.tabela-responsiva {
    width: 100%;
    overflow-x: auto;
}

.tabela-dados {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 13px;
}

.tabela-dados thead {
    background: #f1f5f9;
}

.tabela-dados th {
    padding: 14px 12px;
    text-align: left;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.tabela-dados td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--borda);
    vertical-align: middle;
}

.tabela-dados tbody tr:hover {
    background: #f8fafc;
}

.tabela-dados tbody tr:last-child td {
    border-bottom: none;
}

.tabela-dados td:first-child {
    min-width: 230px;
}

.tabela-dados td:first-child strong {
    display: block;
    color: var(--azul-escuro);
    font-size: 13px;
    font-weight: 700;
}

.texto-secundario {
    display: block;
    margin-top: 4px;
    color: var(--texto-suave);
    font-size: 11px;
    line-height: 1.4;
}

.indicador-habilitado,
.indicador-nao-habilitado {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.indicador-habilitado {
    color: #176b46;
    background: #e7f6ed;
}

.indicador-nao-habilitado {
    color: #475569;
    background: #edf1f5;
}

.tabela-vazia {
    padding: 28px 12px !important;
    color: var(--texto-suave);
    text-align: center;
}

@media (max-width: 900px) {
    .tabela-dados {
        min-width: 850px;
    }
}

/* HISTORICO DE ALTERACOES */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.card table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.card table thead {
    background: #f1f5f9;
}

.card table th {
    padding: 14px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.card table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    color: #17324d;
    vertical-align: middle;
}

.card table tbody tr:hover {
    background: #f8fafc;
}

.card table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   VEÍCULOS - LISTAGEM E FORMULÁRIO
======================================== */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0 0 8px;
    color: #183153;
    font-size: 28px;
}

.page-header p {
    margin: 0;
    color: #64748b;
}

.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.table-responsive thead {
    background: #f1f5f9;
}

.table-responsive th {
    padding: 14px 12px;
    color: #334155;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.table-responsive td {
    padding: 14px 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.table-responsive tbody tr:hover {
    background: #f8fafc;
}

.table-responsive tbody tr:last-child td {
    border-bottom: none;
}

.table-responsive td a:not(.btn) {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    margin-right: 8px;
}

.table-responsive td a:not(.btn):hover {
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
    background: #f1f5f9;
}

.btn-primary {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
}

.btn-primary:hover {
    border-color: #1e40af;
    background: #1e40af;
}

/* Formulário de veículos */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #1e293b;
    font: inherit;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-help {
    margin-top: 22px;
    color: #64748b;
    font-size: 13px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 700px) {
    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 16px;
    }
}

/* Botões de ações da frota */

.table-responsive td form {
    display: inline-flex;
    margin: 0;
}

.table-responsive td .btn {
    padding: 7px 12px;
    font-size: 12px;
    line-height: 1.2;
}

.btn-danger {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
}

.btn-danger:hover {
    color: #ffffff;
    background: #b91c1c;
    border-color: #b91c1c;
}

/* Filtro de veículos */

.filtro-veiculos {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
}

.filtro-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.filtro-opcao {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.filtro-opcao:hover {
    background: #f1f5f9;
}

.filtro-opcao.selecionado {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
}

/* AJUSTES FINAIS — MÓDULO DE VEÍCULOS */

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.filtro-ativo {
    border-color: var(--azul);
    background: #edf4fa;
    color: var(--azul);
}

.tabela-dados td .botao-secundario {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
}

.tabela-dados td .botao-principal,
.tabela-dados td .botao-inativar {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
}

.tabela-dados td .acoes-tabela {
    gap: 8px;
    flex-wrap: nowrap;
}

.tabela-dados td .acoes-tabela form {
    margin: 0;
}

@media (max-width: 900px) {
    .tabela-dados {
        min-width: 1050px;
    }
}

/* Formulário de reservas de veículos */
.formulario-card .formulario {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.formulario-card .campo-formulario {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.formulario-card .campo-formulario label {
    font-size: 13px;
    font-weight: 600;
    color: #263445;
}

.formulario-card .campo-formulario input,
.formulario-card .campo-formulario select,
.formulario-card .campo-formulario textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #e0e7ef;
    border-radius: 7px;
    background: #ffffff;
    color: #263445;
    font-family: inherit;
    font-size: 14px;
}

.formulario-card .campo-formulario input:focus,
.formulario-card .campo-formulario select:focus,
.formulario-card .campo-formulario textarea:focus {
    outline: none;
    border-color: #245b83;
    box-shadow: 0 0 0 3px rgba(36, 91, 131, 0.12);
}

.formulario-card .campo-formulario input[readonly] {
    background: #f3f6fa;
    color: #718096;
}

.formulario-card .campo-formulario small {
    color: #718096;
    font-size: 12px;
}

.formulario-card .campo-formulario textarea {
    resize: vertical;
    min-height: 90px;
}

.formulario-card .acoes-formulario {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.formulario-card .acoes-formulario a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (min-width: 900px) {
    .formulario-card .formulario {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 18px;
    }

    .formulario-card .campo-formulario:last-of-type {
        grid-column: 1 / -1;
    }

    .formulario-card .acoes-formulario {
        grid-column: 1 / -1;
    }
}

/* ACESSOS DO PAINEL OPERACIONAL */

.card-icone {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #edf4fa;
    color: var(--azul);
    font-size: 24px;
    font-weight: 700;
}

.painel-card .botao-principal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: auto;
}

.painel-card .estado-modulo {
    margin-top: auto;
}

@media (max-width: 650px) {
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-heading > div:last-child {
        width: 100%;
    }

    .page-heading > div:last-child .botao-principal {
        display: inline-flex;
        justify-content: center;
    }
}

/* ========================================
   RESERVAS DE VEÍCULOS - ACABAMENTO VISUAL
======================================== */

.reservas-card {
    padding: 24px;
    box-shadow: 0 4px 14px rgba(23, 50, 77, 0.045);
}

.filtro-reservas {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 22px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--borda);
}

.filtro-reservas .campo-formulario {
    min-width: 220px;
    margin: 0;
    gap: 7px;
}

.filtro-reservas .campo-formulario label {
    font-size: 12px;
    font-weight: 700;
    color: var(--azul-escuro);
}

.filtro-reservas select {
    min-height: 40px;
    padding: 9px 34px 9px 12px;
    border: 1px solid var(--borda);
    border-radius: 7px;
    background: var(--branco);
    color: var(--texto);
    font: inherit;
}

.filtro-reservas select:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(36, 91, 131, 0.10);
}

.filtro-reservas > button,
.filtro-reservas > a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.reservas-contador {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--texto-suave);
    font-size: 12px;
}

.reservas-contador strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 26px;
    padding: 0 8px;
    border-radius: 7px;
    background: #edf4fa;
    color: var(--azul);
    font-size: 12px;
}

.tabela-reservas {
    font-size: 12px;
}

.tabela-reservas thead {
    background: #f1f5f9;
}

.tabela-reservas th {
    padding: 15px 12px;
    font-size: 10px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    color: #64748b;
}

.tabela-reservas td {
    padding: 16px 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.tabela-reservas tbody tr {
    transition: background 0.15s ease;
}

.tabela-reservas tbody tr:hover {
    background: #f7faff;
}

.tabela-reservas .reserva-veiculo strong {
    color: var(--azul-escuro);
    font-size: 13px;
    font-weight: 700;
}

.tabela-reservas .reserva-projeto {
    min-width: 190px;
    white-space: normal;
    font-weight: 500;
}

.tabela-reservas .reserva-placa {
    color: var(--texto-suave);
    font-weight: 600;
}

.tabela-reservas .reserva-data,
.tabela-reservas .reserva-valor {
    font-variant-numeric: tabular-nums;
}

.tabela-reservas .reserva-valor {
    font-weight: 600;
    color: #334155;
}

.tabela-reservas .reserva-observacao {
    max-width: 180px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.reserva-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.reserva-status-ativa {
    color: #176b46;
    background: #e7f6ed;
}

.reserva-status-cancelada {
    color: #8a3840;
    background: #fff0f0;
}

.acoes-reserva {
    display: flex;
    align-items: center;
    gap: 7px;
}

.acoes-reserva form {
    display: flex;
    margin: 0;
}

.tabela-reservas td .botao-reserva,
.tabela-reservas td .botao-cancelar-reserva {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 7px;
    font: inherit;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tabela-reservas td .botao-reserva {
    border: 1px solid var(--borda);
    background: var(--branco);
    color: var(--azul-escuro);
}

.tabela-reservas td .botao-reserva:hover {
    border-color: #a9c3d8;
    background: #edf4fa;
}

.tabela-reservas td .botao-cancelar-reserva {
    border: 1px solid #efc3c6;
    background: #fff7f7;
    color: var(--vermelho);
}

.tabela-reservas td .botao-cancelar-reserva:hover {
    border-color: var(--vermelho);
    background: #ffebeb;
}

.reserva-sem-acoes {
    color: #94a3b8;
    font-size: 11px;
}

@media (max-width: 700px) {
    .reservas-card {
        padding: 16px;
    }

    .filtro-reservas {
        align-items: stretch;
    }

    .filtro-reservas .campo-formulario {
        width: 100%;
        min-width: 0;
    }

    .filtro-reservas > button,
    .filtro-reservas > a {
        flex: 1;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ========================================
   FUNCIONÁRIOS — PADRÃO VISUAL
======================================== */

.funcionarios-resumo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.funcionarios-resumo h3 {
    margin: 0;
}

.funcionarios-resumo .contador {
    padding: 6px 10px;
    border-radius: 7px;
    background: #edf4fa;
    color: var(--azul);
    font-weight: 600;
}

.funcionarios-acoes {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.funcionarios-acoes .botao-principal,
.funcionarios-acoes .botao-secundario {
    white-space: nowrap;
}

.tabela-funcionarios {
    min-width: 950px;
}

.tabela-funcionarios th {
    padding: 15px 12px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.tabela-funcionarios td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--borda);
    vertical-align: middle;
}

.tabela-funcionarios tbody tr:nth-child(even) {
    background: #fbfcfe;
}

.tabela-funcionarios tbody tr:hover {
    background: #f3f7fb;
}

.tabela-funcionarios .coluna-funcionario {
    min-width: 230px;
}

.tabela-funcionarios .coluna-funcionario strong {
    display: block;
    color: var(--azul-escuro);
    font-size: 13px;
    font-weight: 700;
}

.status-funcionario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.status-ativo {
    color: #176b46;
    background: #e7f6ed;
}

.status-inativo {
    color: #64748b;
    background: #edf1f5;
}

.tabela-funcionarios .acoes-tabela {
    gap: 8px;
    flex-wrap: nowrap;
}

.tabela-funcionarios .acoes-tabela form {
    margin: 0;
}

.tabela-funcionarios .botao-secundario,
.tabela-funcionarios .botao-principal,
.tabela-funcionarios .botao-inativar {
    padding: 9px 12px;
    font-size: 12px;
    white-space: nowrap;
}

.tabela-funcionarios .botao-inativar {
    background: #fff5f5;
}

.tabela-funcionarios .botao-inativar:hover {
    background: #ffe8e8;
}

@media (max-width: 900px) {
    .tabela-funcionarios {
        min-width: 950px;
    }

    .tabela-cabecalho {
        align-items: flex-start;
        flex-direction: column;
    }

    .funcionarios-acoes {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .funcionarios-resumo {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .funcionarios-acoes {
        width: 100%;
    }
}

/* Filtros da tela de reservas */
.filtros-reservas {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
    align-items: end;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--borda);
}

.filtros-reservas .campo-formulario {
    margin-bottom: 0;
    min-width: 0;
}

.filtros-reservas .campo-formulario input,
.filtros-reservas .campo-formulario select {
    min-height: 42px;
}

.acoes-filtros {
    display: flex;
    gap: 8px;
    align-items: center;
}

.acoes-filtros a {
    text-align: center;
}

.contador-reservas {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--texto-suave);
    font-size: 12px;
}

.contador-reservas strong {
    padding: 5px 10px;
    border-radius: 7px;
    background: #edf4fa;
    color: var(--azul);
}

@media (max-width: 1100px) {
    .filtros-reservas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .acoes-filtros {
        grid-column: 1 / -1;
    }
}

@media (max-width: 550px) {
    .filtros-reservas {
        grid-template-columns: 1fr;
    }

    .acoes-filtros {
        grid-column: auto;
        flex-wrap: wrap;
    }
}

/* ACABAMENTO VISUAL — FILTROS DE RESERVAS */

.filtros-reservas {
    display: grid;
    grid-template-columns: 165px 165px 230px 190px auto;
    align-items: end;
    gap: 16px;
    margin-bottom: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--borda);
}

.filtros-reservas .campo-formulario {
    min-width: 0;
    margin: 0;
    gap: 8px;
}

.filtros-reservas .campo-formulario label {
    color: var(--azul-escuro);
    font-size: 13px;
    font-weight: 600;
}

.filtros-reservas .campo-formulario input,
.filtros-reservas .campo-formulario select {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--borda);
    border-radius: 8px;
    background-color: var(--branco);
    color: var(--texto);
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.filtros-reservas .campo-formulario input:focus,
.filtros-reservas .campo-formulario select:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(36, 91, 131, 0.12);
}

.acoes-filtros {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 0;
}

.acoes-filtros .botao-principal,
.acoes-filtros .botao-secundario {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.contador-reservas {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 14px;
    color: var(--texto-suave);
    font-size: 12px;
}

.contador-reservas strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 5px 10px;
    border-radius: 7px;
    background: #edf4fa;
    color: var(--azul);
}

@media (max-width: 1200px) {
    .filtros-reservas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .acoes-filtros {
        grid-column: 1 / -1;
    }
}

@media (max-width: 550px) {
    .filtros-reservas {
        grid-template-columns: 1fr;
    }

    .acoes-filtros {
        grid-column: auto;
    }
}


/* ========================================
   ALOCAÇÕES DE FUNCIONÁRIOS — ACABAMENTO
======================================== */

.alocacoes-card {
    width: 100%;
    padding: 24px;
    box-shadow: 0 3px 12px rgba(23, 50, 77, 0.04);
}

.alocacoes-card .tabela-cabecalho {
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.alocacoes-card .funcionarios-resumo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.alocacoes-card .funcionarios-resumo h3 {
    margin: 0;
    font-size: 17px;
}

.alocacoes-card .contador {
    padding: 6px 10px;
    border-radius: 7px;
    background: #edf4fa;
    color: var(--azul);
    font-weight: 600;
}

.alocacoes-card .filtros-formulario {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.alocacoes-card .filtros-formulario .campo-formulario {
    min-width: 230px;
    margin-bottom: 0;
    gap: 7px;
}

.alocacoes-card .filtros-formulario select {
    min-width: 230px;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid var(--borda);
    border-radius: 7px;
    background: var(--branco);
    color: var(--texto);
    font: inherit;
}

.alocacoes-card .filtros-formulario .acoes-tabela {
    gap: 8px;
    flex-wrap: wrap;
}

.alocacoes-card .tabela-alocacoes {
    min-width: 850px;
}

.alocacoes-card .tabela-alocacoes th {
    padding: 15px 12px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.alocacoes-card .tabela-alocacoes td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--borda);
    vertical-align: middle;
}

.alocacoes-card .tabela-alocacoes tbody tr:nth-child(even) {
    background: #fbfcfe;
}

.alocacoes-card .tabela-alocacoes tbody tr:hover {
    background: #f3f7fb;
}

.alocacoes-card .tabela-alocacoes td:first-child strong {
    color: var(--azul-escuro);
    font-weight: 700;
}

.alocacoes-card .tabela-alocacoes .acoes-tabela {
    gap: 8px;
    flex-wrap: nowrap;
}

.alocacoes-card .tabela-alocacoes .botao-secundario {
    padding: 9px 12px;
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .alocacoes-card {
        padding: 16px;
    }

    .alocacoes-card .filtros-formulario {
        align-items: stretch;
        flex-direction: column;
    }

    .alocacoes-card .filtros-formulario .campo-formulario,
    .alocacoes-card .filtros-formulario select {
        width: 100%;
        min-width: 0;
    }

    .alocacoes-card .filtros-formulario .acoes-tabela {
        width: 100%;
    }
}


/* Programação de Projeto */
.formulario-card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.formulario-card .campo {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 0;
}

.formulario-card .campo label {
    font-weight: 600;
    color: var(--azul-escuro);
}

.formulario-card .campo input,
.formulario-card .campo select,
.formulario-card .campo textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--borda);
    border-radius: 7px;
    font: inherit;
    color: var(--texto);
    background-color: #fff;
    box-sizing: border-box;
}

.formulario-card .campo select {
    cursor: pointer;
}

.formulario-card .campo select[multiple] {
    min-height: 150px;
}

.formulario-card .campo textarea {
    resize: vertical;
    min-height: 90px;
}

.formulario-card .campo input:focus,
.formulario-card .campo select:focus,
.formulario-card .campo textarea:focus {
    outline: 2px solid #9bbbd4;
    border-color: var(--azul);
}

.formulario-card .campo small {
    color: var(--texto-suave);
    font-size: 12px;
}

.formulario-card .formulario-linha {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.formulario-card .acoes-formulario {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .formulario-card .formulario-linha {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   DASHBOARD OPERACIONAL - NOVO VISUAL
======================================== */

.dashboard {
    gap: 22px;
}

.dashboard .page-heading h2 {
    font-size: 26px;
    margin-bottom: 6px;
}

.dashboard .resumo {
    gap: 16px;
}

.dashboard .card-resumo {
    padding: 20px 22px;
    border-radius: 10px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard .card-resumo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(23, 50, 77, 0.08);
}

.dashboard .card-resumo strong {
    font-size: 32px;
}

.dashboard .painel-card {
    width: 100%;
    padding: 24px;
    border-radius: 11px;
    box-shadow: 0 3px 12px rgba(23, 50, 77, 0.04);
    transition: none;
}

.dashboard .painel-card:hover {
    transform: none;
    border-color: var(--borda);
    box-shadow: 0 3px 12px rgba(23, 50, 77, 0.04);
}

.dashboard .painel-card h3 {
    margin-bottom: 6px;
    font-size: 17px;
}

.dashboard .painel-card p {
    min-height: 0;
    margin-bottom: 18px;
    font-size: 12px;
}

.dashboard form {
    margin-top: 18px;
}

.dashboard form label {
    display: block;
    margin-bottom: 7px;
    color: var(--texto);
    font-size: 12px;
    font-weight: 600;
}

.dashboard form input[type="date"],
.dashboard form select {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--borda);
    border-radius: 7px;
    background: #fff;
    color: var(--texto);
    font: inherit;
}

.dashboard form input:focus,
.dashboard form select:focus {
    outline: 2px solid #b8cfe0;
    border-color: var(--azul);
}

.dashboard .botao-principal {
    min-height: 40px;
    padding: 9px 16px;
}

.dashboard .tabela-container {
    border: 1px solid var(--borda);
    border-radius: 8px;
    overflow-x: auto;
}

.dashboard table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.dashboard table thead {
    background: #f3f6fa;
}

.dashboard table th {
    padding: 13px 14px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.dashboard table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--borda);
    color: var(--texto);
    white-space: nowrap;
}

.dashboard table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard table tbody tr:hover {
    background: #f8fafc;
}

/* Identificação das empresas */

.dashboard .empresa-onstech {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    background: #fff1df;
    color: #a9570b;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard .empresa-ost {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    background: #edf0f3;
    color: #59636e;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard .empresa-outras {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    background: #eaf0f6;
    color: var(--azul);
    font-size: 10px;
    font-weight: 700;
}

/* Responsividade do painel */

@media (max-width: 900px) {
    .dashboard .resumo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .dashboard .resumo {
        grid-template-columns: 1fr;
    }

    .dashboard .painel-card {
        padding: 16px;
    }

    .dashboard form {
        align-items: stretch !important;
        flex-direction: column;
    }

    .dashboard form > div,
    .dashboard form button {
        width: 100%;
    }
}

.logo-cabecalho {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.logo-cabecalho img {
    display: block;
    width: 150px;
    height: auto;
    max-height: 55px;
    object-fit: contain;
    background: #FFFFFF;
    padding: 5px 8px;
    border-radius: 6px;
    box-sizing: content-box;
}

.menu-usuario {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    color: #263746;
    font-size: 13px;
}

.menu-usuario form {
    margin: 0;
}

.btn-sair {
    background: #263746;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.btn-sair:hover {
    background: #344d63;
}

.data-hora {
    white-space: nowrap;
}

.acoes-tabela form {
    display: flex;
    align-items: center;
    margin: 0;
}

.acoes-tabela a,
.acoes-tabela button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}