.poker-nav {
    background: #12231a;
}

.poker-nav .navbar-brand {
    font-weight: 700;
}

.poker-nav .nav-link {
    padding: 0.65rem 0.85rem;
}

.poker-nav .dropdown-toggle {
    white-space: nowrap;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poker-nav .dropdown-menu {
    min-width: 12rem;
}

.poker-shell {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.poker-card {
    border: 1px solid #e4ebe6;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    background: #fff;
}

.poker-card .card-header {
    background: #163024;
    color: #fff;
    font-weight: 600;
}

.poker-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.poker-page-head h2 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    margin: 0;
}

.turma-nome-com-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    vertical-align: middle;
}

.turma-nome-com-logo-lg {
    gap: 0.7rem;
}

.turma-logo {
    width: 2rem;
    height: 2rem;
    object-fit: cover;
    border-radius: 0.4rem;
    background: #edf1ee;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.turma-logo-lg {
    width: 3.25rem;
    height: 3.25rem;
}

.turma-logo-placeholder {
    background: #163024;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
}

.turma-logo-lg.turma-logo-placeholder {
    font-size: 1.15rem;
}

.dealer-foto {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: cover;
    border-radius: 50%;
    background: #edf1ee;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dealer-foto-lg {
    width: 5rem;
    height: 5rem;
}

.dealer-foto-placeholder {
    background: #163024;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

.dealer-foto-lg.dealer-foto-placeholder {
    font-size: 1.6rem;
}

.poker-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.poker-stat {
    background: #fff;
    border: 1px solid #e4ebe6;
    border-radius: 0.5rem;
    padding: 0.7rem 0.8rem;
    height: 100%;
}

.poker-stat .text-muted {
    font-size: 0.78rem;
    line-height: 1.2;
}

.poker-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    word-break: break-word;
}

#tabelaMesa thead th,
.table-stack thead th {
    white-space: nowrap;
    vertical-align: middle;
}

#tabelaMesa thead.table-dark th {
    background-color: #163024;
    position: sticky;
    top: 0;
    z-index: 1;
}

.poker-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer {
    width: 100%;
    background: #fff;
    margin-top: auto;
}

.js-wa button:disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(0.4);
}

@media (max-width: 767.98px) {
    .poker-nav .navbar-collapse {
        width: 100%;
        padding-top: 0.5rem;
    }

    table.table-stack thead {
        display: none;
    }

    table.table-stack,
    table.table-stack tbody {
        display: block;
        width: 100%;
    }

    table.table-stack tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #e4ebe6;
        border-radius: 0.5rem;
        margin-bottom: 0.85rem;
        padding: 0.7rem 0.85rem;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    }

    table.table-stack tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        border: 0;
        border-bottom: 1px dashed #edf1ee;
        padding: 0.55rem 0;
        text-align: right !important;
        white-space: normal;
    }

    table.table-stack tbody td:last-child {
        border-bottom: 0;
    }

    table.table-stack tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #5b6b61;
        text-align: left;
        flex: 0 0 42%;
    }

    table.table-stack tbody td:first-child {
        display: block;
        text-align: left !important;
        padding-top: 0.15rem;
    }

    table.table-stack tbody td:first-child::before {
        display: none;
    }

    table.table-stack tbody td.text-nowrap {
        white-space: normal !important;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    table.table-stack td[colspan] {
        display: block;
        text-align: center !important;
        justify-content: center;
    }

    table.table-stack td[colspan]::before {
        content: none;
    }

    .poker-form-actions .btn,
    .poker-page-actions .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 575.98px) {
    .poker-login {
        margin-top: 1.25rem !important;
    }

    .card-header .js-etapa-ajax,
    .card-header form {
        width: 100%;
    }

    .js-ajuste {
        min-width: 2.75rem;
        min-height: 2.75rem;
    }
}

.pix-body {
    background: #f4f7f5;
    min-height: 100vh;
}

.pix-page {
    max-width: 28rem;
    margin: 0 auto;
}

.pix-brand {
    font-weight: 700;
    color: #163024;
}

.pix-valor {
    font-size: 1.75rem;
    font-weight: 700;
    color: #163024;
}

.pix-codigo {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    word-break: break-all;
}

.poker-podio {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.poker-podio-slot {
    flex: 1;
    max-width: 10rem;
    text-align: center;
    border-radius: 0.75rem;
    padding: 0.7rem 0.4rem;
    border: 1px solid #e4ebe6;
    background: #f7faf8;
}

.poker-podio-slot.ouro {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    background: #fff8e1;
    border-color: #e8b923;
}

.poker-podio-slot.prata {
    background: #f3f5f8;
    border-color: #a8b2c1;
}

.poker-podio-slot.bronze {
    background: #fbf3ea;
    border-color: #c47a3a;
}

.poker-podio-lugar {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #5a6b62;
}

.poker-podio-nome {
    font-weight: 700;
    margin-top: 0.2rem;
    word-break: break-word;
}

.poker-podio-detalhe {
    font-size: 0.8rem;
    color: #5a6b62;
    margin-top: 0.15rem;
}

.poker-medalhas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.poker-medalha {
    font-size: 0.78rem;
    color: #5a6b62;
}

.poker-share-frame {
    background: #0C1B3A;
    border-radius: 1.25rem;
    padding: 0.85rem 0.85rem 1rem;
}

.poker-share-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
    padding: 0 0.15rem;
}

.poker-share-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #F1F5F4;
    border-radius: 0.6rem;
}

.poker-share-inner {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
}

.poker-config-tabs .nav-link {
    color: #163024;
    font-weight: 600;
}

.poker-config-tabs .nav-link.active {
    background: #163024;
    color: #fff;
    border-color: #163024 #163024 #fff;
}
