body {
    background-color: #f8f9fa; /* Cinza claro de fundo */
}

/* Barra do menu principal */
.menu-bar {
    background-color: #29aae2;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.menu-item {
    padding: 10px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
    border-radius: 0.25rem;
}

.menu-item:hover {
    background-color: #1a1265;
    color: #212529;
    color: white;
}

.menu-item i {
    margin-right: 8px;
    font-size: 20px;
}

.page-title {
    color: #1a1265;
    font-weight: 600;
    font-size: 22px;
}

/* Estilo dos cards */
.card {
    border: none;
    transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.card-title i {
    color: #0d6efd; /* Azul do Bootstrap */
}

/* Abas da Agenda */
.nav-tabs .nav-link {
    color: #6c757d;
    background-color: #e9e9e9;
    border-radius: 4px;
    margin: 1%;
    width: 100%;
    height: 70px;
}

.nav-tabs .nav-link.active {
    color: white;
    border: 0;
    background-color: #29aae2;
}

nav.navbar.navbar-expand-lg {
    background-color: white !important;
}

a.navbar-brand>img {
    width: 85px;
    height: auto !important;
}

footer.bg-light>div {
    background-color: #ffffff00 !important;
    color: black;
    font-size: 10px;
    padding: 0 !important;
}

.btn-primary {
    background-color: #1a1265 !important;
    border: 0;
}

button#userDropdown>i {
    font-size: 23px;
    position: relative;
    top: 2px;
}

input#agendaSearchInput, input#searchInput {
    position: absolute;
    right: 20%;
    max-width: 220px;
    width: 80%;
    top: 30px;
}

footer.bg-light {
    width: 240px;
    position: fixed;
    bottom: 20px;
    right: 0;
}

.btn-primary {
    background-color: #1c1364;
    padding: 6px 18px;
    border: 0;
    font-size: 16px;
}

.register-card, .login-card {
    width: 100%;
    max-width: 400px;
}

.register-card img, .login-card img {
    width: 40%;
    max-width: 260px;
}

.card-dashboard i {
    color: #29aae2;
}

span.badge.rounded-pill {
    position: absolute;
    margin-left: -28px;
    margin-top: -10px;
}

.dropdown.menu-piscinas>button {
    font-size: 33px;
    margin-top: -70px;
    background-color: white;
    padding: 2px 22px;
    border-radius: 8px;
    background-color: #1a126514;
    color: #1a1265;
}

table {
    font-size: 9px;
}

th {
    padding: 2px !important;
}

td {
    padding: 2px !important;
}

.print-only {
    display: none !important; /* Esconde a segunda tabela na tela */
}

img.img-thumbnail {
    padding: 0;
    height: 20px !important;
    border-radius: 2px;
    margin: -1px;
}

li.nav-item {
    width: 31%;
    margin: 1%;
}

ul#piscinaDayTab {
    border: 0;
}

ul#piscinaTab li.nav-item {
    width: 48%;
}

.nav-tabs {
    border: 0;
}

td.btns-acaorelatorios a {
    font-size: 12px;
    background-color: #29aae2;
    border: 0px solid #1a1265;
    color: white;
    padding: 1px 8px;
    margin: 1px;
    width: 26px;
}












@media (max-width: 767px) {

    .register-card, .login-card {
        width: 90%;
        max-width: 400px;
    }

    a.navbar-brand {
        width: 22%;
    }

    a.navbar-brand>img {
        width: 100%;
    }

    button#userDropdown {
        padding: 0;
        font-size: 0;
        background-color: transparent !important;
    }

    input#agendaSearchInput, input#searchInput {
        position: relative;
        right: 0;
        width: 100%;
        max-width: 150px;
        top: 0;
        opacity: 0.6;
        padding: 10px 15px;
        margin-bottom: 10px;
    }

    a.menu-item {
        font-size: 10px;
        padding: 2px;
        width: 24%;
        text-align: center;
    }

    a.menu-item>i {
        font-size: 22px;
        width: 100%;
        padding-bottom: 4px;
    }

    button#userDropdown>i {
        font-size: 35px;
        padding: 4px 2px 8px 6px;
        color: #1d1465;
    }

    .dropdown-toggle::after {
        font-size: 24px;
        color: #1d1465;
    }

    .card.shadow-sm.mb-4 .row>.col-lg-3 {
        width: 50%;
    }

    span.badge.rounded-pill {
        font-size: 10px !important;
        margin-left: -54px;
        margin-top: 35px;
    }
    
    nav.navbar.navbar-expand-lg {
        padding-top: 14px;
    }
    
    .menu-bar {
        position: fixed;
        bottom: 0;
        z-index: 9;
    }
    
    body {
        padding-bottom: 80px;
    }

    .btn-full {
        width: 100%;
        font-size: 18px;
        padding: 10px;
    }

    main.container>h4 {
        font-size: 17px;
        text-align: center;
        color: #b9b9b9;
        position: relative;
        top: -15px;
    }

}


@media print {
    body * {
        visibility: hidden;
    }
    
    .no-print, .no-print * {
        display: none !important;
    }

    #printableArea, #printableArea * {
        visibility: visible;
    }

    #printableArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .table {
        font-size: 10pt; /* Diminui a fonte para caber mais coisa */
        width: 100%;
        border-collapse: collapse;
    }
    
    .table th, .table td {
        border: 1px solid #dee2e6 !important; /* Garante que as bordas sejam impressas */
        padding: 4px 6px;
    }

    .table-striped tbody tr:nth-of-type(odd) {
        background-color: #f9f9f9 !important; /* Garante que as listras apareÃ§am */
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    span.badge.rounded-pill {
        width: 60px;
        height: 20px;
        color: white;
        font-size: 10px !important;
        margin-left: -42px;
        margin-top: 34px;
    }
    
    a.navbar-brand>img {
        width: 72px;
    }
    
    nav.navbar {
        padding-top: 12px;
    }
    
    .menu-bar {
        position: fixed;
        bottom: -1px;
    }

    /* Define a orientação da página e o tamanho */
    @page {
        size: A4 landscape; /* Tenta forçar a impressão em modo paisagem */
        margin: 1cm;
    }

    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Esconde tudo que não deve ser impresso */
    .no-print, .no-print * {
        display: none !important;
    }
    nav, footer, .card-header, .btn, .modal {
        display: none !important;
    }

    /* Regra para exibir apenas a área de impressão */
    body * { visibility: hidden; }
    #printableArea, #printableArea * { visibility: visible; }
    #printableArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    /* Otimizações da tabela para caber na página */
    .table {
        font-size: 8pt !important; /* <<< Letra bem pequena >>> */
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: auto; /* Permite que o navegador ajuste as colunas */
    }
    
    .table th, .table td {
        border: 1px solid #dee2e6 !important;
        padding: 3px 4px !important; /* <<< Menos espaçamento interno >>> */
        word-wrap: break-word; /* Força a quebra de linha em textos longos */
        white-space: normal !important;
    }

    /* Garante que o fundo das zebras seja impresso */
    .table-striped tbody tr:nth-of-type(odd) {
        background-color: #f9f9f9 !important;
    }

    .table img {
        display: none;
    }

    table {
        font-size: 7px;
    }
    
    th {
        padding: 0.2px !important;
    }
    
    td {
        padding: 0.2px !important;
        font-size: 6px;
    }
  
    .print-only {
        display: table !important;
        page-break-before: always;
    }
    
    .table-responsive .table:not(.print-only) {
        display: table !important;
    }
    
    .table {
        width: 100% !important;
    }
    
    table {
        font-size: 6px;
    }
    
    th {
        font-size: 5px;
        font-weight: 600;
    }
    
    .card-body {
        padding: 0;
    }

}