/* === Layout plein écran (pages bureau) === */
body:has(.content-bureau) {
    height: 100vh;
    overflow: hidden;
}

body:has(.content-bureau) footer {
    display: none;
}

body:has(.content-bureau) .container {
    overflow: hidden;
}

body:has(.content-bureau) .content {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body:has(.content-bureau) .card {
    margin-bottom: 0;
    padding: 10px 15px;
}

body:has(.content-bureau) .card-title {
    font-size: 0.88rem;
    margin-bottom: 6px;
}

/* Suivi horaire compact */
body:has(.content-bureau) .bureau-header {
    margin-bottom: 8px;
}

body:has(.content-bureau) .bureau-header h2 {
    font-size: 1rem;
}

body:has(.content-bureau) .bureau-info {
    margin-bottom: 10px;
    gap: 8px;
}

body:has(.content-bureau) .bureau-info .info-chip {
    font-size: 0.78rem;
    padding: 4px 10px;
}

body:has(.content-bureau) .suivi-table td,
body:has(.content-bureau) .suivi-table th {
    padding: 5px 10px;
    font-size: 0.82rem;
}

/* Résultats compact */
body:has(.content-bureau) .res-titre {
    font-size: 1rem;
    margin-bottom: 4px;
}

body:has(.content-bureau) .res-stats td {
    padding: 5px 12px;
    font-size: 0.82rem;
}

body:has(.content-bureau) table td,
body:has(.content-bureau) table th {
    padding: 5px 10px;
    font-size: 0.82rem;
}

body:has(.content-bureau) .progress-bar {
    height: 10px !important;
}

/* === Page bureau de vote === */
.bureau-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bureau-header h2 {
    margin-bottom: 0;
}

.bureau-info {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.bureau-info .info-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ede7f6;
    color: var(--purple-mid);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Suivi horaire */
.suivi-table td:last-child {
    width: 40%;
}

.suivi-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.suivi-row .progress-bar {
    flex: 1;
}

.suivi-row .pct {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple-mid);
    min-width: 55px;
    text-align: right;
}

/* === Résultats bureau === */

/* Titre élection */
.res-titre {
    text-align: center;
    font-size: 1.3rem;
    color: var(--purple-dark);
    margin-bottom: 8px;
}

.res-bureau-nom {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--purple-mid);
    padding: 10px;
    background: #ede7f6;
    border-radius: var(--radius-sm);
}

/* Tableau statistiques */
.res-stats {
    max-width: 500px;
}

.res-stats td {
    padding: 8px 16px;
}

.res-stats .res-label {
    font-weight: 600;
    color: var(--text);
    width: 180px;
}

.res-stats .res-val {
    font-weight: 700;
    text-align: right;
    min-width: 80px;
}

.res-stats .res-pct {
    color: var(--purple-mid);
    font-weight: 600;
    text-align: right;
    min-width: 80px;
}

.res-stats .res-sep td {
    border-top: 2px solid var(--purple-mid);
}

.res-stats .res-total td {
    background: #ede7f6;
    font-weight: 700;
}

/* === Onglets Suivi horaire / Résultats === */
.bureau-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.bureau-tab {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-light);
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.bureau-tab:hover {
    color: var(--purple-mid);
    border-color: var(--purple-mid);
}

.bureau-tab.active {
    background: var(--purple-dark);
    color: var(--white);
    border-color: var(--purple-dark);
}

/* Candidats */
.resultat-candidat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resultat-candidat .color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}
