/* ══════════════════════════════════════════════
   BASE
══════════════════════════════════════════════ */
body {
    padding: 0;
    margin: 0;
    background-color: #f4f6f9;
}

a {
    text-decoration: none !important;
    color: inherit;
}

/* ══════════════════════════════════════════════
   HEADER / TOPBAR
══════════════════════════════════════════════ */
.header {
    background-color: #0A192F;
    padding: 0.5rem;
}

.header a { margin-left: 0.5rem; }
.header img { width: 8rem; }

/* ══════════════════════════════════════════════
   LOGIN
══════════════════════════════════════════════ */
.login {
    margin-top: 4rem;
    text-align: center;
}

.msgAlertErroLogin {
    color: #fff !important;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin-top: 1.3rem;
    height: 2rem;
    border-radius: 2rem;
    box-shadow: 0 0.4em 0.5em rgba(0,0,0,.1);
    width: 25rem;
    display: inline-block;
    background-color: #ff7979;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
    text-align: center;
    margin-top: 1.5rem;
    padding: .5rem 1rem;
    color: #adb5bd;
    font-size: .78rem;
    padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
}

/* ══════════════════════════════════════════════
   GRIDS LEGADOS
══════════════════════════════════════════════ */
.parent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 576px)  { .parent { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px)  { .parent { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

.parent-movimento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

/* ══════════════════════════════════════════════
   RESPONSIVIDADE GLOBAL — MOBILE
══════════════════════════════════════════════ */
@media (max-width: 767.98px) {

    /* Fontes e espaçamentos reduzidos */
    h4 { font-size: 1.05rem; }
    h5 { font-size: .95rem; }

    /* Tabelas menores com scroll horizontal (já envolvidas em table-responsive) */
    .table          { font-size: .8rem; }
    .table th,
    .table td       { padding: .4rem .5rem; white-space: nowrap; }

    /* Cards com padding menor */
    .card-body      { padding: .75rem !important; }
    .card-header    { padding: .5rem .75rem !important; }
    .card-footer    { padding: .5rem .75rem !important; }

    /* Botões com altura mínima para toque */
    .btn            { min-height: 38px; }
    .btn-sm         { min-height: 32px; font-size: .8rem; }

    /* Badges menores */
    .badge          { font-size: .7rem; }

    /* Modais full-width no celular */
    .modal-dialog   { margin: .5rem; }

    /* Esconder textos desnecessários, manter ícones */
    .d-mobile-none  { display: none !important; }

    /* Padding seguro para entalhe de câmera/home bar */
    body { padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* ══════════════════════════════════════════════
   RESPONSIVIDADE GLOBAL — TABLET
══════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {
    .table  { font-size: .85rem; }
    .btn-sm { font-size: .8rem; }
}

/* ══════════════════════════════════════════════
   UTILITÁRIOS
══════════════════════════════════════════════ */
.cursor-pointer { cursor: pointer; }
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
