/**
 * SGK Drive & Collect — Styles front-office v1.1.0
 */
#table_box { position: relative; padding: 10px 0; }
#table_dispo_overlay { display: none; position: absolute; inset: 0; background: rgba(255,255,255,.7); z-index: 10; }
#store_list { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; }
#store_list li.clickable { border: 2px solid #ddd; border-radius: 4px; padding: 10px 14px; cursor: pointer; flex: 1 1 180px; max-width: 260px; font-size: 13px; transition: border-color .15s; }
#store_list li.clickable:hover { border-color: #0070cd; background: #f0f7ff; }
#store_list li.active_store { border-color: #0070cd; background: #e8f2ff; }
#nav_buttons { margin: 10px 0; display: flex; gap: 8px; }
#nav_buttons .buttondays.disabled { opacity: .5; cursor: default; pointer-events: none; }
#table_dispo_head, #table_dispo { overflow-x: auto; }
#list_creneau, #table_creneau { width: 100%; border-collapse: collapse; font-size: 13px; }
#list_creneau td { padding: 4px 6px; border: 1px solid #e5e5e5; text-align: center; min-width: 80px; }
#list_creneau span.day_header { display: block; cursor: pointer; padding: 4px 2px; }
#list_creneau span.disabled { color: #ccc; }
#list_creneau span.active { font-weight: 700; color: #0070cd; }
#table_creneau thead td { background: #0070cd; color: #fff; padding: 6px 8px; text-align: center; font-size: 12px; white-space: nowrap; }
#table_creneau .hour_label { font-weight: 600; text-align: center; padding: 6px 4px; background: #f5f5f5; border: 1px solid #e5e5e5; }
#table_creneau td.creneau { text-align: center; padding: 0; border: 1px solid #e5e5e5; }
#table_creneau td.dispo { background: #e8f5e9; cursor: pointer; }
#table_creneau td.dispo:hover { background: #c8e6c9; }
#table_creneau td.dispo.selected { background: #0070cd; color: #fff; }
#table_creneau td.dispo:focus { outline: 3px solid #0070cd; outline-offset: -1px; }
#table_creneau td.indispo { background: #fafafa; color: #ccc; }
#table_creneau td.red, #table_creneau td.red.indispo { background: #ffebee; color: #c62828; }
#table_creneau td.busy { background: #fff8e1; }
#table_creneau td span { display: block; padding: 8px 4px; font-size: 12px; }
#table_legend { margin: 12px 0; }
#table_legend ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }
#table_legend li { font-size: 12px; padding: 3px 10px; border-radius: 3px; border: 1px solid #ddd; }
#table_legend li.dispo { background: #e8f5e9; }
#table_legend li.busy { background: #fff8e1; }
#table_legend li.vacation, #table_legend li.red { background: #ffebee; }
#creneau_selected { margin-top: 12px; }
@media (max-width: 600px) {
    #store_list li.clickable { max-width: 100%; }
    #table_creneau thead td, #table_creneau td span { font-size: 11px; padding: 4px 2px; }
}
