/* ================== FICHA PELEJAS DEFINITIVA ================== */

/* Geral */
body {
    background-color: #f8f9fa;
    color: #212529;
}

/* HEADER */
.header-ficha {
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    text-align: center;
}

/* Linha de cima: campeonato + estádio */
.header-top-info {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #6c757d;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Times - sem borda, só alinhamento */
.team-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 25%; /* Ajuste conforme necessário */
    text-align: center;
}

/* Nome dos times */
.team-name {
    font-weight: 700;
    font-size: 1.4rem;
}

/* Placar */
.placar {
    font-size: 4rem;
    font-weight: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
}

/* Linha de baixo: data + horário + público */
.header-bottom-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
    color: #6c757d;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ============ IMAGEM DOS TIMES ============ */
.img-team {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

/* ============ ÍCONES SVG ============ */
.icon {
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
    flex-shrink: 0;
}

/* Agrupamento de ícones horizontal */
.goals,
.cartoes,
.status,
.tec {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Gol verde */
.gols .icon,
.goals .icon {
    color: #006437;
}

/* ============ ITENS GERAIS ============ */
.li-data {
    background-color: #ffffff;
    color: #000;
    padding: 8px 14px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.li-data:hover {
    background-color: #f8f9fa;
}

.hr,
.li-data-hr {
    height: 1px;
    background-color: #dee2e6;
    border: none;
    margin: 6px 0;
}

/* CARD ÁRBITRO E TÉCNICOS */
.card-info {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* Tabs */
.nav-tabs .nav-link {
    border-radius: 8px;
    color: #495057;
}

.nav-tabs .nav-link.active {
    background-color: #d9f2e9;
    color: #006437;
    border: none;
    font-weight: 600;
}

/* Comentário */
.comentario-box {
    background-color: white;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Responsivo */
@media (max-width: 768px) {
    .header-top-info,
    .header-bottom-info {
        flex-direction: column;
        gap: 4px;
    }
}

/* ================= COMENTÁRIO ELEGANTE ================= */
.comentario-box {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    margin-top: 16px;
}

/* Título do comentário */
.comentario-box h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

/* Texto dentro do comentário */
.comentario-box p {
    margin-bottom: 0.6rem;
    line-height: 1.5;
    color: #343a40;
    font-size: 0.95rem;
}

/* Links dentro do comentário */
.comentario-box a {
    color: #006437;
    text-decoration: underline;
}

.comentario-box a:hover {
    color: #004225;
}

/* Imagens dentro do comentário */
.comentario-box img,
#comentario img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 6px;
    margin: 10px auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Vídeos incorporados */
.comentario-box iframe,
#comentario iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 10px auto;
}

/* Quebra de palavra */
.comentario-box,
#comentario {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.dados {
    background-color: rgb(221 246 255) !important;
}

.sugestoes {
    position: absolute;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 0;
    box-sizing: border-box;
    z-index: 9999;
}

@media (max-width: 768px) {
    .sugestoes {
        max-width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }
}

.sugestao-item {
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
}

.sugestao-item:hover {
    background-color: #f8f9fa;
}

.input-container {
    position: relative;
}

@media (max-width: 768px) {
    #pagination {
        position: fixed;
        bottom: 0;
        left: 0;
        display: flex;
        width: 100%;
        background: #eeeeee;
        padding: 10px;
        font-size: 1.25rem;
        justify-content: space-between;
    }
}

.dropdown-menu li a:hover {
    color: black !important;
    text-decoration: none;
    display: block;
}

.li-data-comum {
    height: 42px;
}

.li-data {
    color: rgb(0, 0, 0);
    padding: 5px 10px;
    margin: 10px 0px;
    border-radius: 3px;
    background-color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 4px -1px;
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
    align-items: center;
}

.flex-1 {
    flex: 1 1 0%;
}

.hr {
    margin: 0 0 10px 0;
}

.li-data-hr {
    height: 0.1px;
    background-color: rgb(135 135 135);
    border: 0px;
    margin: 0;
    display: block;
}

.status {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
}

.tec {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
}

.goals,
.cartoes {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
}

.icon,
.tec .icon,
.gols .icon,
.cartoes .icon,
.goals .icon,
.cartoes .icon {
    user-select: none;
    width: 2em;
    height: 2em;
    display: inline-block;
    fill: currentcolor;
    flex-shrink: 0;
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gols .icon {
    color: rgb(0, 100, 55);
}

.informacoes {
    color: rgb(255, 255, 255);
    padding: 10px;
    width: 100%;
    text-align: center;
    /*    max-width: 400px;*/
}

.titulo-time {
    height: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.arb,
.tecs {
    display: flex;
    align-items: center; /* Alinha o ícone e o texto */
    -webkit-box-align: center;
    border-radius: 3px;
    padding: 10px;
    color: rgb(0, 0, 0);
    background-color: #d9f2e9;
}

@media screen and (max-width: 768px) {
    .custom-offcanvas {
        width: 100% !important;
    }
}

.custom-offcanvas {
    width: 70vw;
}

.custom-body-offcanvas {
    height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.chosen-container-multi .chosen-choices {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-image: var(--bs-form-select-bg-img),
        var(--bs-form-select-bg-icon, none);
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (max-width: 768px) {
    /* Ajuste para telas menores */
    #etapa {
        display: block; /* Quebra a linha no mobile */
    }
    .team > div {
        width: 140px;
        height: 140px;
        position: relative;
        overflow: hidden;
        display: flex;
        -webkit-box-align: center;
        align-items: center;
        -webkit-box-pack: center;
        justify-content: center;
        border-radius: 100%;
        border: 8px solid rgba(236, 240, 241, 0.4);
    }

    .team > div > div {
        width: 140px;
        height: 140px;
        display: flex;
        -webkit-box-align: center;
        align-items: center;
        -webkit-box-pack: center;
        justify-content: center;
        background-color: rgb(255, 255, 255);
    }
    .img-team {
        width: 120px;
        height: 120px;
    }
}

@media (min-width: 769px) {
    #etapa {
        display: inline; /* Mantém na mesma linha no PC */
        white-space: nowrap;
    }

    .team > div {
        width: 100px;
        height: 100px;
        position: relative;
        overflow: hidden;
        display: flex;
        -webkit-box-align: center;
        align-items: center;
        -webkit-box-pack: center;
        justify-content: center;
        border-radius: 100%;
        border: 8px solid rgba(236, 240, 241, 0.4);
    }

    .team > div > div {
        width: 100px;
        height: 100px;
        display: flex;
        -webkit-box-align: center;
        align-items: center;
        -webkit-box-pack: center;
        justify-content: center;
        background-color: rgb(255, 255, 255);
    }
}

.team {
    flex-direction: row;
}

.team {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    justify-content: space-between;
    flex-direction: column;
}

.text-ajustavel {
    white-space: nowrap; /* Impede que o texto quebre */
    overflow: hidden; /* Oculta o texto extra */
    text-overflow: ellipsis; /* Adiciona "..." quando não couber */
}

.tox-editor-content img {
    max-width: 500px;
    max-height: 500px;
    height: auto;
    width: auto;
}

.tox-statusbar {
    display: none !important;
}

.texto-resumido {
    width: 100%; /* Largura desejada */
    white-space: nowrap; /* Não quebra de linha */
    overflow: hidden; /* Esconde o que passa */
    text-overflow: ellipsis; /* Mostra os "..." */
}

.quebra-texto {
    width: 100%; /* largura máxima desejada */
    border: 1px solid #ccc;
    padding: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.no-select {
    user-select: none; /* padrão moderno */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge antigos */
}
