/* ═══════════════════════════════════════════════════════
PlayNgo — Admin Responsive Fixes
Optimisations pour Jazzmin sur mobile
═══════════════════════════════════════════════════════ */

/* Amélioration de la scrollbar pour les tables larges */
.results {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* Fix pour les inputs dans les tables (list_editable) */
.results table input[type="number"],
.results table input[type="text"],
.results table select {
    min-width: 40px;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 4px 8px !important;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.results table input:focus {
    border-color: #ed1c24 !important;
    outline: none;
}

/* Ajustements Responsive */
@media (max-width: 991px) {
    .content-wrapper {
        padding: 10px !important;
    }

    .card-header {
        padding: 0.75rem 1rem !important;
    }

    .model-match .field-category,
    .model-match .field-bracket_identifier {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .model-match .field-stage,
    .model-match .field-order,
    .model-match .field-start_time {
        display: none !important;
    }

    .results table th,
    .results table td {
        padding: 8px 6px !important;
        font-size: 0.8rem !important;
    }

    .submit-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 15px !important;
    }

    .submit-row input,
    .submit-row a {
        margin: 0 !important;
        width: 100% !important;
        height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .main-header {
        padding: 0.5rem !important;
    }
}

/* Fix pour les badges de statut dans l'admin */
.field-status .badge {
    padding: 5px 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Colonnes Score / TAB : réduction drastique pour petits inputs */
.results table td.field-score_home,
.results table td.field-score_away,
.results table td.field-penalties_home,
.results table td.field-penalties_away {
    width: 50px !important;
    max-width: 50px !important;
    min-width: 50px !important;
    padding: 4px 2px !important;
    vertical-align: middle !important;
}

/* Ciblage très fort des inputs (incluant les classes de Jazzmin/Bootstrap) */
.results table td.field-score_home input,
.results table td.field-score_away input,
.results table td.field-penalties_home input,
.results table td.field-penalties_away input,
input[name*="score_home"],
input[name*="score_away"],
input[name*="penalties_home"],
input[name*="penalties_away"] {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 2px 2px !important;
    text-align: center !important;
    display: inline-block !important;
    margin: 0 auto !important;
    height: 30px !important;
    font-size: 0.9rem !important;
}

/* Forcer le select de Statut à prendre toute la largeur de sa cellule */
.results table td.field-status select {
    width: 100% !important;
    min-width: 120px !important;
}
.results table th.column-score_home,
.results table th.column-score_away,
.results table th.column-penalties_home,
.results table th.column-penalties_away {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    text-align: center !important;
    padding: 4px 2px !important;
    font-size: 0.65rem !important;
    line-height: 1.1 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

.results table th.column-status,
.results table td.field-status {
    min-width: 150px !important;
    width: 150px !important;
}