﻿
.totaldisplay {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

bodywithimage {
    background-image: url('~/images/NOVO LOGO Ferrari_Agroindústria_PNG.png');
}

/* ==================================== */
/*      Estilo das tabelas (grids)      */
/* ==================================== */

.table.my-grid {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

    /* Cabeçalho */
    .table.my-grid thead,
    .table.my-grid thead th,
    .my-grid thead.bg-primary,
    .my-grid thead.bg-primary th {
        background-color: #19A695 !important;
        color: #ffffff !important;
        font-weight: 600;
        text-align: left;
        border: none !important;
        border-bottom: 2px solid #0f3975;
    }

    /* Linhas e hover */
    .table.my-grid tbody tr {
        border-bottom: 1px solid #e6e6e6;
        transition: background-color 0.2s ease-in-out;
    }

        /* Listras zebras: verde #19A695 transparente e branco */
        .table.my-grid tbody tr:nth-child(odd) {
            background-color: rgba(25, 166, 149, 0.15); /* verde #19A695 com 15% de opacidade */
        }

        .table.my-grid tbody tr:nth-child(even) {
            background-color: #ffffff; /* branco */
        }

        /* Hover */
        .table.my-grid tbody tr:hover {
            background-color: rgba(25, 166, 149, 0.25); /* verde um pouco mais forte no hover */
        }

    /* Células */
    .table.my-grid td,
    .table.my-grid th {
        padding: 0.4rem 0.6rem;
        border: none !important;
        font-size: 0.9rem;
        vertical-align: middle;
    }
    .table.my-grid thead th:first-child {
        border-top-left-radius: 0;
    }

    .table.my-grid thead th:last-child {
        border-top-right-radius: 0;
    }

    /* Ícones e links */
    .table.my-grid td a i {
        color: #19A695;
        transition: transform 0.2s;
        font-size: 0.8rem; /* tamanho dos ícones */
    }

    .table.my-grid td a:hover i {
        transform: scale(1.1);
    }

/* Responsividade */
@media (max-width: 767px) {
    .table.my-grid {
        font-size: 0.85rem;
    }

        .table.my-grid td,
        .table.my-grid th {
            padding: 0.35rem 0.5rem;
        }
}

/* ==================================== */
/*        Estilo do pagination          */
/* ==================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
}

    .pagination .page-item {
        list-style: none;
    }

    .pagination .page-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        border-radius: 8px;
        border: 1px solid rgba(25, 166, 149, 0.5); /* borda verde suave */
        background-color: #ffffff; /* fundo branco */
        color: #19A695; /* texto verde */
        font-weight: 500;
        font-size: 0.95rem;
        text-decoration: none;
        transition: all 0.25s ease;
        box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    }

        .pagination .page-link:hover {
            background-color: rgba(25, 166, 149, 0.15); /* verde claro transparente */
            border-color: #19A695;
            color: #117a66; /* verde mais escuro no hover */
            transform: translateY(-2px);
            box-shadow: 0 3px 6px rgba(0,0,0,0.15);
        }

    .pagination .page-item.active .page-link {
        background-color: #19A695; /* verde sólido */
        color: #ffffff; /* texto branco */
        font-weight: 600;
        border-color: #19A695;
        box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    }

    .pagination .page-item.disabled .page-link {
        color: #adb5bd;
        background-color: #f8f9fa;
        border-color: #dee2e6;
        cursor: not-allowed;
        box-shadow: none;
    }