/* Proposer un calendrier (Coin du bureau, onglet « planif ») : frise des week-ends, cartes de sorties, bilan. */

#bu-tab-planif .bu-planif-liens{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
#bu-tab-planif .bu-planif-choix{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
#bu-tab-planif .bu-planif-choix .bu-field{min-width:140px}
#bu-planif-notice{margin-top:8px}
#bu-planif-notice .bu-notice-ok,#bu-planif-notice .bu-notice-err{margin-bottom:0}

#bu-planif-resultat{display:flex;flex-direction:column;gap:14px;margin-top:14px;min-width:0}
#bu-planif-resultat .bu-pl-bloc{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:8px;min-width:0}
#bu-planif-resultat .bu-pl-avert{background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:10px 14px;color:#92400e;font-size:14px;display:flex;flex-direction:column;gap:6px}
#bu-planif-resultat .bu-pl-avert div{display:flex;gap:6px;align-items:flex-start}
#bu-planif-resultat .bu-pl-avert svg{flex-shrink:0;margin-top:2px}

/* Frise : visible sur ordinateur seulement */
#bu-planif-resultat .bu-pl-frise-bloc{display:none}
#bu-planif-resultat .bu-pl-frise-tete{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}
#bu-planif-resultat .bu-pl-legende{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;color:#374151}
#bu-planif-resultat .bu-pl-legende span{display:flex;gap:6px;align-items:center}
#bu-planif-resultat .bu-pl-legende i{display:inline-block;width:16px;height:16px;border-radius:4px;border:1px solid #e5e7eb}
#bu-planif-resultat .bu-pl-frise{display:grid;grid-template-columns:repeat(auto-fill,minmax(38px,1fr));gap:4px}
#bu-planif-resultat .bu-pl-we{display:flex;flex-direction:column;align-items:center;justify-content:center;height:52px;border-radius:6px;font-size:12px;line-height:1.15;border:1px solid #e5e7eb;background:#fff;color:#374151}
#bu-planif-resultat .bu-pl-we-m{font-size:10px;opacity:.9}

/* Couleurs de la frise et de sa légende */
#bu-planif-resultat .we-remise{background:#0284c7;border-color:#0284c7;color:#fff;font-weight:700}
#bu-planif-resultat .we-form{background:#7c3aed;border-color:#7c3aed;color:#fff;font-weight:700}
#bu-planif-resultat .we-loin{background:#ea580c;border-color:#ea580c;color:#fff;font-weight:700}
#bu-planif-resultat .we-explo{background:#059669;border-color:#059669;color:#fff;font-weight:700}
#bu-planif-resultat .we-fixe{background:#1e3a5f;border-color:#1e3a5f;color:#fff;font-weight:700}
#bu-planif-resultat .we-ecarte{background:#fee2e2;border-color:#fecaca;color:#991b1b}
#bu-planif-resultat .we-treve{background:#e5e7eb;border-color:#e5e7eb;color:#6b7280}

/* Corps : bilan à gauche (ordinateur), cartes à droite */
#bu-planif-resultat .bu-pl-corps{display:flex;flex-direction:column;gap:14px;min-width:0}
#bu-planif-resultat .bu-pl-lateral{display:flex;flex-direction:column;gap:14px;min-width:0}
#bu-planif-resultat .bu-pl-cartes{display:flex;flex-direction:column;gap:12px;min-width:0}
#bu-planif-resultat .bu-pl-rangee{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;align-items:start;min-width:0}
#bu-planif-resultat .bu-pl-mois-titre{margin:6px 0 -4px;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#4b5563}
#bu-planif-resultat .bu-pl-treve{border:1px dashed #94a3b8;border-radius:12px;padding:12px 14px;font-size:14px;color:#334155;text-align:center}
#bu-planif-resultat .bu-pl-ecarte{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:#b91c1c;padding:0 4px}
#bu-planif-resultat .bu-pl-ecarte svg{flex-shrink:0;margin-top:2px}

/* Carte d'une sortie */
#bu-planif-resultat .bu-pl-carte{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:8px;min-width:0}
#bu-planif-resultat .bu-pl-retiree{opacity:.55;background:#f3f4f6}
#bu-planif-resultat .bu-pl-fixe{border-color:#1e3a5f;background:#f5f8fc}
#bu-planif-resultat .bu-pl-tete{display:flex;justify-content:space-between;align-items:center;gap:8px}
#bu-planif-resultat .bu-pl-plg{font-size:13px;font-weight:600;color:#374151;white-space:nowrap}
#bu-planif-resultat .bu-pl-chip{display:inline-block;font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px}
#bu-planif-resultat .bu-pl-chip-remise{background:#e0f2fe;color:#075985}
#bu-planif-resultat .bu-pl-chip-form{background:#ede9fe;color:#5b21b6}
#bu-planif-resultat .bu-pl-chip-loin{background:#ffedd5;color:#9a3412}
#bu-planif-resultat .bu-pl-chip-explo{background:#f1f5f9;color:#334155}
#bu-planif-resultat .bu-pl-chip-fixe{background:#dbeafe;color:#1e3a5f}
#bu-planif-resultat .bu-pl-dates{font-size:17px;font-weight:700;color:#111827}
#bu-planif-resultat .bu-pl-duree{font-size:13px;color:#4b5563}
#bu-planif-resultat .bu-pl-site{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:14px}
#bu-planif-resultat .bu-pl-site svg{flex-shrink:0}
#bu-planif-resultat .bu-pl-site span{color:#4b5563}
#bu-planif-resultat .bu-pl-meta{font-size:13px;color:#4b5563;line-height:1.4}
#bu-planif-resultat .bu-pl-det{font-size:13px;font-weight:600;color:#5b21b6}
#bu-planif-resultat .bu-pl-raisons{display:flex;flex-direction:column;gap:4px}
#bu-planif-resultat .bu-pl-ra{display:flex;gap:6px;align-items:flex-start;font-size:13px;line-height:1.35}
#bu-planif-resultat .bu-pl-ra svg{flex-shrink:0;margin-top:1px}
#bu-planif-resultat .bu-pl-ra-ok{color:#047857}
#bu-planif-resultat .bu-pl-ra-warn{color:#92400e}
#bu-planif-resultat .bu-pl-actions{display:flex;flex-wrap:wrap;gap:8px}
#bu-planif-resultat .bu-pl-autres{display:flex;flex-direction:column;gap:8px;border-top:1px solid #e5e7eb;padding-top:10px}
#bu-planif-resultat .bu-pl-autre{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
#bu-planif-resultat .bu-pl-autre-tete{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}
#bu-planif-resultat .bu-pl-autre-dates{font-size:15px;font-weight:700}

/* Bilan, voyage */
#bu-planif-resultat .bu-pl-bilan{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:14px}
#bu-planif-resultat .bu-pl-bilan .bu-pl-ra{font-weight:700;align-items:center;text-align:right}
#bu-planif-resultat .bu-pl-sous-titre{font-size:13px;font-weight:600;color:#374151;margin-top:4px}
#bu-planif-resultat .bu-pl-mois{display:flex;flex-wrap:wrap;gap:6px}
#bu-planif-resultat .bu-pl-mois span{font-size:12px;font-weight:600;padding:4px 8px;border-radius:6px;background:#f1f5f9;color:#334155}
#bu-planif-resultat .bu-pl-note{font-size:13px;color:#4b5563;line-height:1.45}
#bu-planif-resultat .bu-pl-voyage{border-color:#a7f3d0;background:#ecfdf5;color:#065f46;font-size:14px;line-height:1.45}

@media (min-width:900px){
    #bu-planif-resultat .bu-pl-frise-bloc{display:flex}
    #bu-planif-resultat .bu-pl-corps{flex-direction:row;align-items:flex-start}
    #bu-planif-resultat .bu-pl-lateral{flex:0 0 300px}
    #bu-planif-resultat .bu-pl-cartes{flex:1 1 0}
}

@media (max-width:720px){
    #bu-tab-planif .bu-planif-choix .bu-btn-save{flex:1 1 100%}
    #bu-planif-resultat .bu-pl-autre-tete .bu-btn-save{flex:1 1 100%}
}
