:root {
    --bg: #f4f6f9;
    --panel: #fff;
    --ink: #1c2430;
    --muted: #6b7686;
    --line: #d9dfe7;
    --brand: #1f4e79;
    --brand-ink: #fff;
    --reserved: #d6e8f7;
    --reserved-line: #7fb0dc;
    --option: #fff1cc;
    --option-line: #e0a82e;
    --ps-printing: #3b82f6;
    --ps-agency: #f59e0b;
    --ps-installers: #22a559;
    --danger: #c0392b;
    --col: 76px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* Barre du haut */
.topbar { display: flex; align-items: center; gap: 24px; padding: 0 20px; height: 52px; background: var(--brand); color: var(--brand-ink); position: sticky; top: 0; z-index: 20; }
.topbar a { color: inherit; text-decoration: none; }
.brand { font-weight: 700; font-size: 16px; }
.cal-chip { margin-left: -12px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.2); font-weight: 600; font-size: 13px; text-transform: capitalize; white-space: nowrap; }
.topbar nav { display: flex; gap: 4px; flex: 1; }
.topbar nav a { padding: 6px 12px; border-radius: 6px; opacity: .85; }
.topbar nav a:hover, .topbar nav a.on { background: rgba(255,255,255,.16); opacity: 1; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.who a { opacity: .8; text-decoration: underline; }
.role { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,.2); }
main { padding: 16px 20px 60px; }

/* Boutons / champs */
.btn { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; font: inherit; text-decoration: none; }
.btn:hover { background: #f0f3f7; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #17405f; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: #fdecea; }
button.link { background: none; border: 0; color: var(--brand); cursor: pointer; font-size: 12px; margin-left: 8px; padding: 0; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; width: 100%; color: var(--ink); }
input:disabled, select:disabled, textarea:disabled { background: #f1f3f6; color: var(--ink); opacity: 1; }
input[readonly] { background: #f1f3f6; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
label > input, label > select, label > textarea { margin-top: 4px; font-weight: 400; }
.alert { background: #fdecea; color: #8c2a1f; border: 1px solid #f3b9b2; padding: 8px 12px; border-radius: 6px; margin: 10px 0; }

/* Login */
.login-card { max-width: 380px; margin: 12vh auto; background: var(--panel); padding: 28px; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.login-card h1 { margin: 0; font-size: 22px; color: var(--brand); }
.login-card label { margin-top: 14px; }
.login-card .btn { margin-top: 18px; width: 100%; }

/* Barre d'outils planning */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 14px; }
.yearform { display: flex; gap: 6px; align-items: center; }
.yearform select { width: 90px; }
#search { max-width: 300px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-left: auto; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line); display: inline-block; }
.lg.st-reserved { background: var(--reserved); border-color: var(--reserved-line); }
.lg.st-option { background: repeating-linear-gradient(45deg, var(--option), var(--option) 3px, #fff 3px, #fff 6px); border-color: var(--option-line); border-style: dashed; }
.lg.ps { height: 6px; border: 0; }
.ps-printing.lg { background: var(--ps-printing); }
.ps-agency.lg { background: var(--ps-agency); }
.ps-installers.lg { background: var(--ps-installers); }
.readonly-note { margin: 0 0 10px; }

/* Réseaux */
.network { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 6px; margin-bottom: 22px; }
.net-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.net-head h2 { margin: 0; font-size: 17px; color: var(--brand); text-transform: uppercase; letter-spacing: .02em; }
.net-head h2 small { font-size: 12px; color: var(--muted); font-weight: 400; text-transform: none; margin-left: 6px; }
.net-info { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; background: #eef2f7; border-radius: 12px; padding: 2px 10px; color: #3a4658; }
.chip.strong { background: #e3efe6; color: #1c5a30; font-weight: 600; }

/* Grille */
.scroll { overflow-x: auto; margin-bottom: 12px; }
table.grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 100%; width: calc(var(--col) * 27); }
.grid th { background: #eef2f7; border: 1px solid var(--line); font-size: 12px; padding: 4px 2px; text-align: center; font-weight: 600; }
.grid tr.months th { background: var(--brand); color: #fff; border-color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.grid tr.weeks th.now { background: #ffd54a; }
.grid td.cell { border: 1px solid var(--line); height: 112px; vertical-align: top; padding: 5px 6px; position: relative; overflow: hidden; font-size: 12px; cursor: default; }
.grid td.empty .dates { color: #aab3c0; font-size: 11px; }
.grid td.empty .plus { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; font-size: 26px; color: var(--brand); background: rgba(31,78,121,.06); }
.grid td.addable { cursor: pointer; }
.grid td.addable:hover .plus, .grid td.addable:focus .plus { display: flex; }
.grid td.booked { cursor: pointer; padding-bottom: 12px; }
.grid td.booked.st-reserved { background: var(--reserved); border-color: var(--reserved-line); }
.grid td.booked.st-option { background: repeating-linear-gradient(45deg, var(--option), var(--option) 6px, #fffaf0 6px, #fffaf0 12px); border: 1px dashed var(--option-line); }
.grid td.booked:hover, .grid td.booked:focus { outline: 2px solid var(--brand); outline-offset: -2px; }
.grid td.booked.hit { outline: 3px solid #e4572e; outline-offset: -3px; }
.grid td.booked.dim { opacity: .25; }
.client { font-weight: 700; font-size: 12px; line-height: 1.2; word-break: break-word; }
.dates { color: #44546a; font-size: 11px; margin-top: 2px; }
.meta { font-size: 11px; margin-top: 3px; color: #2c3a4e; }
.fin { font-size: 11px; margin-top: 3px; color: #1c5a30; font-weight: 600; }
.badge { display: inline-block; font-size: 10px; padding: 0 6px; border-radius: 8px; margin-top: 3px; margin-right: 3px; }
.badge.opt { background: var(--option-line); color: #fff; font-weight: 700; text-transform: uppercase; }
.badge.cmt { background: #fff; border: 1px solid var(--line); }
.pstat { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; }
.ps-printing .pstat { background: var(--ps-printing); }
.ps-agency .pstat { background: var(--ps-agency); }
.ps-installers .pstat { background: var(--ps-installers); }
.cont-left { border-left-style: dotted !important; }
.cont-right { border-right-style: dotted !important; }

/* Fiche */
dialog { border: 0; border-radius: 12px; padding: 0; width: min(720px, 94vw); max-height: 92vh; box-shadow: 0 20px 60px rgba(0,0,0,.3); color: var(--ink); }
dialog::backdrop { background: rgba(20,30,45,.45); }
dialog header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--brand); color: #fff; }
dialog header h3 { margin: 0; font-size: 16px; }
.close { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.fiche-body { padding: 16px 20px 4px; display: grid; gap: 12px; }
.net-name { font-weight: 600; color: var(--brand); }
.row2, .row3 { display: grid; gap: 12px; }
.row2 { grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: 1fr 1fr 1fr; }
.fin-group { background: #f1f8f3; padding: 10px; border-radius: 8px; }
dialog footer { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.spacer { flex: 1; }
.comments { padding: 4px 20px 18px; border-top: 1px solid var(--line); background: #fafbfc; }
.comments h4 { margin: 12px 0 6px; }
.comments ul { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.comments li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.c-body { white-space: pre-wrap; margin-top: 2px; }
.comments form { display: grid; gap: 8px; justify-items: end; }

/* Tables d'administration */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 20px; max-width: 960px; }
.panel h2 { margin-top: 0; font-size: 16px; color: var(--brand); }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.inline { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline select, .inline input { width: auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; }
.flash { background: #e3efe6; border: 1px solid #b6d9c0; color: #1c5a30; padding: 8px 12px; border-radius: 6px; margin-bottom: 14px; max-width: 960px; }
.tag-off { color: var(--danger); font-size: 12px; }

@media (max-width: 640px) {
    .row2, .row3 { grid-template-columns: 1fr; }
    .who .role { display: none; }
}

/* Jours fériés & vacances scolaires */
.grid tr.holidays th { background: #fff; font-size: 10px; font-weight: 600; height: 18px; padding: 1px 2px; color: transparent; line-height: 1.1; }
.grid tr.holidays th.has { background: #fdecea; color: #b3261e; }
.grid tr.school th { background: #fff; font-size: 10px; font-weight: 600; height: 17px; padding: 1px 4px; color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid tr.school th.vac { background: #fff3c4; color: #7a5b00; border-color: #e6cf7a; }
.lg.hol { background: #fdecea; border-color: #e8a9a4; }
.lg.vac { background: #fff3c4; border-color: #e6cf7a; }

/* Taux de remplissage */
.chip.fill { display: inline-flex; align-items: center; gap: 6px; background: #e8eefc; color: #1b3a73; }
.meter { display: inline-flex; width: 90px; height: 8px; border-radius: 4px; background: #fff; border: 1px solid #b9c6e6; overflow: hidden; }
.meter i { display: block; height: 100%; }
.meter .r { background: #2f6fd0; }
.meter .o { background: repeating-linear-gradient(45deg, #e0a82e, #e0a82e 3px, #f6dc9b 3px, #f6dc9b 6px); }

/* Sélecteur de client */
.client-pick { display: flex; gap: 8px; margin-top: 4px; }
.client-pick select { margin-top: 0; flex: 1; }
.client-pick .btn { white-space: nowrap; }
.new-client { display: flex; gap: 8px; margin-top: 8px; }
.new-client input { flex: 1; }
.mini { font-size: 12px; padding: 3px 8px; }

/* Cloche de notifications */
.bell { position: relative; }
.bell button { position: relative; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; border-radius: 6px; display: flex; align-items: center; }
.bell button:hover { background: rgba(255,255,255,.16); }
.bell button { gap: 6px; }
.bell .count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #e4572e; color: #fff; font-size: 13px; font-weight: 700; line-height: 22px; text-align: center; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.bell .count[hidden] { display: none; }
.bell.ring svg { animation: bell-ring .9s ease-in-out; transform-origin: 50% 10%; }
@keyframes bell-ring { 0%,100% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-16deg); } 45% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 75% { transform: rotate(4deg); } }
.bell-panel { position: absolute; right: 0; top: 40px; width: 360px; max-width: 92vw; max-height: 70vh; overflow-y: auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 36px rgba(0,0,0,.22); z-index: 40; }
.bell-head { padding: 10px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.bell-panel ul { list-style: none; margin: 0; padding: 0; }
.bell-panel li { border-bottom: 1px solid #eef1f5; }
.bell-panel li.empty { padding: 18px; color: var(--muted); text-align: center; }
.bell-panel li.unread { background: #eef5ff; box-shadow: inset 3px 0 0 var(--brand); }
.bell-panel .item { display: flex; gap: 10px; padding: 10px 14px; color: inherit; text-decoration: none; }
.bell-panel a.item:hover { background: #f4f6f9; }
.bell-panel .ico { font-size: 15px; width: 30px; flex: none; text-align: center; }
.bell-panel .txt { display: flex; flex-direction: column; min-width: 0; }
.bell-panel .sub { font-size: 13px; word-break: break-word; }
.bell-panel .meta { font-size: 11px; color: var(--muted); margin-top: 2px; }


/* Férié = jour de pose */
.grid tr.holidays th.warn { background: #ffe3d1; color: #a23b00; box-shadow: inset 0 0 0 2px #e4572e; }
.badge.warnb { background: #ffe3d1; color: #a23b00; border: 1px solid #e4572e; font-weight: 700; }
.lg.warnlg { background: #ffe3d1; border-color: #e4572e; }
.warn-box { background: #fff3e0; border: 1px solid #f0b36b; color: #7a4a00; padding: 8px 12px; border-radius: 6px; font-size: 13px; }
.warn-box[hidden] { display: none; }

/* Vue jour */
.cal-title { font-size: 18px; min-width: 150px; text-align: center; color: var(--brand); text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cal .dow { background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 8px; text-transform: uppercase; letter-spacing: .04em; }
.cal .day { background: #fff; min-height: 112px; padding: 4px 6px 6px; font-size: 12px; overflow: hidden; }
.cal .day.other { background: #f6f7f9; color: #a3acb9; }
.cal .day.weekend { background: #fafbfc; }
.cal .day.school { background: #fff8d6; }
.cal .day.holiday { background: #fdecea; }
.cal .day.today { outline: 3px solid var(--brand); outline-offset: -3px; }
.cal .day.warn { background: #ffe3d1; box-shadow: inset 0 0 0 2px #e4572e; }
.cal .dnum { font-weight: 700; color: #3a4658; }
.cal .day.other .dnum { color: #a3acb9; }
.cal .hol-label { color: #b3261e; font-weight: 700; margin: 2px 0; }
.cal .pose { margin-top: 3px; }
.cal .pose .tag { display: inline-block; background: var(--c); color: #fff; border-radius: 3px; padding: 0 5px; font-size: 10px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.cal .who-pose { display: block; font-size: 11px; margin-left: 4px; color: #2c3a4e; line-height: 1.25; }
.cal .who-pose.opt { color: #8a6a00; font-style: italic; }
.cal .warn-line { margin-top: 4px; color: #a23b00; font-weight: 700; font-size: 11px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.badge.alertb { background: #e4572e; color: #fff; font-weight: 700; margin-right: 6px; }
@media (max-width: 900px) { .cal .day { min-height: 76px; } .cal .who-pose { display: none; } }

/* Menu d'export */
.exp { position: relative; }
.exp > summary { list-style: none; cursor: pointer; user-select: none; }
.exp > summary::-webkit-details-marker { display: none; }
.exp-panel { position: absolute; z-index: 30; top: 42px; left: 0; width: 340px; display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 36px rgba(0,0,0,.2); padding: 14px; }
.exp-formats { display: flex; gap: 18px; font-size: 13px; }
.exp-formats label, .exp-chk { display: flex; align-items: center; gap: 6px; font-weight: 400; color: var(--ink); font-size: 13px; }
.exp-formats input, .exp-chk input { width: auto; margin: 0; }
.exp-chk { align-items: flex-start; }

/* Informations réseau (icône i + fenêtre) */
.info-btn { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; margin: 0 6px; width: 26px; height: 26px; padding: 0; border: 1px solid var(--brand); border-radius: 50%; background: #fff; color: var(--brand); cursor: pointer; }
.info-btn:hover, .info-btn:focus-visible { background: var(--brand); color: #fff; }
.netinfo { width: min(620px, 94vw); }
.netinfo-body { padding: 16px 20px 6px; display: grid; gap: 8px; max-height: 68vh; overflow-y: auto; }
.netinfo-body h4 { margin: 10px 0 2px; font-size: 13px; color: var(--brand); text-transform: uppercase; letter-spacing: .03em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 0; }
.facts > div { background: #f4f6f9; border-radius: 8px; padding: 8px 12px; }
.facts dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.facts dd small { font-size: 12px; font-weight: 400; color: var(--muted); }
.net-notes { margin: 0; padding: 10px 12px; background: #fafbfc; border-left: 3px solid var(--brand); border-radius: 0 6px 6px 0; line-height: 1.5; }
.net-weeks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.net-warns { margin: 0; padding-left: 18px; color: #a23b00; }
.netinfo footer { align-items: center; }
/* % de marge annuel */
.chip.strong .pct { margin-left: 4px; padding: 0 7px; border-radius: 9px; background: #1c5a30; color: #fff; font-size: 12px; }

.new-client[hidden] { display: none; }

/* Un élément marqué « hidden » doit toujours rester caché, même si une classe lui donne un affichage (boutons, panneaux…). */
[hidden] { display: none !important; }

/* Attente BDC : même hachure que l'option mais en bleu (comme les réservés) */
.lg.st-bdc { background: repeating-linear-gradient(45deg, var(--reserved), var(--reserved) 3px, #fff 3px, #fff 6px); border-color: var(--reserved-line); border-style: dashed; }
.grid td.booked.st-bdc { background: repeating-linear-gradient(45deg, var(--reserved), var(--reserved) 6px, #eef5fc 6px, #eef5fc 12px); border: 1px dashed var(--reserved-line); }
.badge.bdc { background: #2f6fd0; color: #fff; font-weight: 700; text-transform: uppercase; }
.meter .b { background: repeating-linear-gradient(45deg, #7fb0dc, #7fb0dc 3px, #d6e8f7 3px, #d6e8f7 6px); }
.cal .who-pose.bdc { color: #1f4e79; font-style: italic; }
/* Options à cocher d'un réseau */
.checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.checks label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; color: var(--ink); }
.checks input { width: auto; margin: 0; }

/* Vacances scolaires : zones A (jaune, par défaut), B (vert), C (violet) */
.grid tr.school.z-B th.vac { background: #dff3e4; color: #1c5a30; border-color: #a9d9b6; }
.grid tr.school.z-C th.vac { background: #ece4fa; color: #4b2a8a; border-color: #c9b8ec; }
.lg.vac-B { background: #dff3e4; border-color: #a9d9b6; }
.lg.vac-C { background: #ece4fa; border-color: #c9b8ec; }
.zchip { display: inline-block; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 4px; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; border: 1px solid; }
.zchip.z-A { background: #fff3c4; color: #7a5b00; border-color: #e6cf7a; }
.zchip.z-B { background: #dff3e4; color: #1c5a30; border-color: #a9d9b6; }
.zchip.z-C { background: #ece4fa; color: #4b2a8a; border-color: #c9b8ec; }
.cal .zones { display: flex; gap: 3px; margin: 2px 0; }
/* Poseur repéré en rouge (ex. Roger) : bandeau rouge en haut de la case */
.grid td.booked.inst-hi::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: #d32f2f; z-index: 1; }
.grid td.booked.inst-hi .client { margin-top: 4px; }
.lg.inst-hi { background: linear-gradient(to bottom, #d32f2f 0, #d32f2f 3px, var(--reserved) 3px); border-color: var(--reserved-line); }
.cal .who-pose.inst-hi { border-left: 3px solid #d32f2f; padding-left: 4px; }
.hl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; color: var(--ink); margin: 0 6px; white-space: nowrap; }
.hl input { width: auto; margin: 0; }
.hl .redbar { display: inline-block; width: 16px; height: 5px; background: #d32f2f; border-radius: 1px; }
/* Imprimeur et poseur dans la case de campagne */
.meta.prod { margin-top: 1px; font-size: 10px; color: #44546a; }
.meta.prod.hi { color: #b3261e; font-weight: 700; }

/* Page Utilisateurs : journal des connexions à gauche, gestion des comptes à droite. */
.users-layout { display: flex; align-items: flex-start; gap: 20px; }
.users-main { flex: 1; min-width: 0; }
.login-log { flex: 0 0 300px; position: sticky; top: 68px; max-height: calc(100vh - 90px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.login-log h2 { margin: 0 0 4px; font-size: 16px; color: var(--brand); }
.login-log ul { list-style: none; margin: 8px 0 0; padding: 0; }
.login-log li { padding: 8px 0 8px 10px; border-bottom: 1px solid var(--line); border-left: 3px solid #2e9b6a; }
.login-log li.ko { border-left-color: #e4572e; background: #fff6f2; }
.login-log .badge { margin-top: 0; }
.badge.okb { background: #e3efe6; color: #1c5a30; border: 1px solid #b6d9c0; font-weight: 700; }
@media (max-width: 900px) { .users-layout { flex-direction: column; } .login-log { position: static; flex-basis: auto; max-height: 300px; width: 100%; box-sizing: border-box; } }
.login-log section + section { margin-top: 22px; padding-top: 16px; border-top: 2px solid var(--line); }
.backups ul { list-style: none; margin: 10px 0 0; padding: 0; }
.backups li { padding: 8px 0 8px 10px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--brand); }
.backups .bk-actions { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.backups .bk-actions form { margin: 0; }
.badge.bk-auto { background: #e8eef7; color: var(--brand); border: 1px solid #c3d3e8; margin-top: 0; }
.badge.bk-manual { background: #e3efe6; color: #1c5a30; border: 1px solid #b6d9c0; margin-top: 0; }
.badge.bk-restore { background: #ffe3d1; color: #a23b00; border: 1px solid #e4572e; margin-top: 0; }

/* Vacances des poseurs (page Intervenants) et message dans la fiche. */
.absences { margin-top: 8px; padding: 8px 10px; background: #fafbfc; border: 1px dashed var(--line); border-radius: 6px; font-size: 12px; }
.absences .abs-title { font-weight: 600; margin-right: 8px; }
.absences .abs-chip { display: inline-flex; align-items: center; gap: 4px; margin: 0 6px 4px 0; padding: 2px 8px; background: #fff3e0; border: 1px solid #f0c27a; border-radius: 999px; }
.absences .abs-chip .link { margin: 0; color: var(--danger); }
.absences .abs-add { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.absences .abs-add input[type=date] { width: auto; }
.installer-hint { margin: 2px 0 0; color: #a23b00; font-weight: 600; }

/* Menu déroulant du titre : accès rapide à un réseau. */
html { scroll-behavior: smooth; }
.network { scroll-margin-top: 66px; }
.network:target { animation: netflash 1.6s ease-out; }
@keyframes netflash { 0% { box-shadow: 0 0 0 3px var(--brand); } 100% { box-shadow: 0 0 0 3px rgba(31,78,121,0); } }
.brand-menu { position: relative; }
.brand-menu summary { list-style: none; cursor: pointer; user-select: none; padding: 6px 10px; margin: 0 -10px; border-radius: 6px; }
.brand-menu summary::-webkit-details-marker { display: none; }
.brand-menu summary:hover, .brand-menu[open] summary { background: rgba(255,255,255,.16); }
.brand-menu .caret { font-size: 12px; opacity: .8; }
.brand-list { position: absolute; top: 40px; left: -10px; min-width: 340px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 6px; z-index: 30; }
.brand-list a { display: flex; justify-content: space-between; gap: 16px; padding: 8px 10px; border-radius: 6px; color: var(--ink); font-weight: 500; font-size: 14px; }
.brand-list a:hover, .brand-list a:focus-visible { background: #eef5ff; color: var(--brand); }
.brand-list a.all { border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-bottom: 4px; font-weight: 700; }
.brand-list .muted { font-size: 12px; white-space: nowrap; }
.brand-menu { flex-shrink: 0; } .brand-menu summary { white-space: nowrap; }
.brand-list a.cur { background: #eef5ff; color: var(--brand); font-weight: 700; }
.net-filter { margin: 0 0 14px; padding: 8px 12px; background: #eef5ff; border: 1px solid #c3d3e8; border-radius: 8px; font-size: 13px; }
.net-filter a { margin-left: 8px; font-weight: 600; }

/* Non vendu : semaine passée sans aucune fiche. */
.grid td.unsold { background: repeating-linear-gradient(135deg, #f1f2f4, #f1f2f4 5px, #e6e8eb 5px, #e6e8eb 10px); }
.grid td.unsold .dates { color: #8b94a3; }
.grid td.unsold .unsold-label { margin-top: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #6b7482; }
.lg.unsold-lg { background: repeating-linear-gradient(135deg, #f1f2f4, #f1f2f4 3px, #dcdfe3 3px, #dcdfe3 6px); border-color: #c4c9d0; }
.chip.unsold-chip { background: #eceef1; color: #4b5563; }
