/* =========================================
   PRODUÇÃO DE RECURSOS — PALPÉDIA
   SAVE GAME
========================================= */

.pal-producao-card {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 8px 0 22px;
    padding: 0;

    box-sizing: border-box;

    overflow: hidden;

    border: 1px solid rgba(146, 98, 250, 0.18);
    border-radius: 10px;

    background: rgba(146, 98, 250, 0.025);
}


/* =========================================
   CABEÇALHO
========================================= */

.pal-producao-topo {
    display: flex;
    align-items: center;

    width: 100%;

    gap: 10px;

    padding: 10px 13px;

    box-sizing: border-box;

    background: rgba(146, 98, 250, 0.07);

    border-bottom: 1px solid rgba(146, 98, 250, 0.14);
}


.pal-producao-topo img {
    display: block !important;

    width: 34px !important;
    height: 34px !important;

    min-width: 34px !important;
    max-width: 34px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain;
}


.pal-producao-titulo {
    display: flex;
    flex-direction: column;

    gap: 2px;

    min-width: 0;
}


.pal-producao-titulo strong {
    margin: 0;
    padding: 0;

    color: inherit;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}


.pal-producao-titulo span {
    margin: 0;
    padding: 0;

    color: inherit;
    opacity: 0.65;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.25;
}


/* =========================================
   GRADE
========================================= */

.pal-producao-grade {
    display: grid;

    width: 100%;

    grid-template-columns: repeat(5, 1fr);

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


/* =========================================
   ITENS
========================================= */

.pal-producao-item {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    min-width: 0;
    min-height: 54px;

    margin: 0;
    padding: 7px 5px;

    box-sizing: border-box;

    border-right: 1px solid rgba(146, 98, 250, 0.09);
    border-bottom: 1px solid rgba(146, 98, 250, 0.09);
}


/* Última coluna */

.pal-producao-item:nth-child(5n) {
    border-right: 0;
}


/* Última linha */

.pal-producao-item:nth-child(n + 6) {
    border-bottom: 0;
}


/* Hover */

.pal-producao-item:hover {
    background: rgba(146, 98, 250, 0.05);
}


/* =========================================
   NÍVEL
========================================= */

.pal-producao-item span {
    display: block;

    margin: 0;
    padding: 0;

    color: inherit;
    opacity: 0.65;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;

    text-align: center;
}


/* =========================================
   QUANTIDADE
========================================= */

.pal-producao-item strong {
    display: block;

    margin: 0;
    padding: 0;

    color: #9262fa;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;

    text-align: center;
}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 600px) {

    .pal-producao-card {
        width: 100%;
        max-width: 100%;

        margin: 6px 0 18px;
    }


    .pal-producao-topo {
        gap: 9px;

        padding: 9px 11px;
    }


    .pal-producao-topo img {
        width: 32px !important;
        height: 32px !important;

        min-width: 32px !important;
        max-width: 32px !important;
    }


    /*
       No celular mantemos 2 colunas.
       10 níveis = 5 linhas.
    */

    .pal-producao-grade {
        grid-template-columns: repeat(2, 1fr);
    }


    .pal-producao-item {
        min-height: 48px;

        padding: 6px 4px;

        border-right: 1px solid rgba(146, 98, 250, 0.09);
        border-bottom: 1px solid rgba(146, 98, 250, 0.09);
    }


    /* Remove borda da coluna direita */

    .pal-producao-item:nth-child(2n) {
        border-right: 0;
    }


    /* Corrige regra do desktop */

    .pal-producao-item:nth-child(5n) {
        border-right: 1px solid rgba(146, 98, 250, 0.09);
    }


    .pal-producao-item:nth-child(10) {
        border-right: 0;
    }


    /* Última linha */

    .pal-producao-item:nth-child(n + 9) {
        border-bottom: 0;
    }


    .pal-producao-item span {
        font-size: 10px;
    }


    .pal-producao-item strong {
        font-size: 12px;
    }

}