/* Grilles de risques : styles propres à l'outil (variables du hub : --surface, --line, --accent, --muted...). */
.page-grids.wrap{max-width:1500px}
.page-grids h1{margin:.6em 0 .2em}
.page-grids .lead{color:var(--muted);margin:0 0 12px;max-width:80ch}
.gr-tabs{display:flex;flex-wrap:wrap;gap:10px 22px;margin:12px 0 4px}
.gr-tg{display:flex;flex-direction:column;gap:4px}
.gr-gl{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.gr-gb{display:flex;flex-wrap:wrap;gap:6px}
.gr-subs{display:flex;flex-wrap:wrap;gap:4px;margin:14px 0 8px;border-bottom:2px solid var(--line)}
.gr-sub{font:inherit;font-size:14px;padding:6px 12px;border:1px solid var(--line);border-bottom:0;border-radius:8px 8px 0 0;background:var(--surface);color:var(--text);cursor:pointer;margin-bottom:-2px}
.gr-sub[aria-selected=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}
.gr-sub:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.gr-mid{color:#9a3412;font-weight:700}
.gr-dl{font-weight:600;color:var(--accent)}
.gr-tab{font:inherit;padding:8px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);cursor:pointer}
.gr-tab[aria-selected=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.gr-desc{color:var(--muted);margin:4px 0 10px}
.gr-bar{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
#gr-app .btn{font:inherit;font-size:14px;padding:6px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);cursor:pointer}
#gr-app .btn.pri{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
#gr-app .btn:focus-visible,.gr-tab:focus-visible,.gr-ib:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.gr-msg{min-height:1.4em;font-size:14px;color:var(--muted)}
.gr-msg.bad{color:#b42318}
.gr-meta{display:grid;grid-template-columns:2fr 1fr 2fr;gap:10px;margin:6px 0 12px}
.gr-meta label,.gr-thr label{display:flex;flex-direction:column;gap:2px;font-size:13px;color:var(--muted)}
.gr-thr label{flex-direction:row;align-items:center;gap:6px;color:var(--text)}
.gr-meta input,.gr-t input,.gr-t textarea,.gr-t select,.gr-set select,.gr-set input{font:inherit;font-size:13px;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:4px 6px;width:100%}
.gr-thr input{width:90px}
.gr-wrap{overflow:auto;max-height:70vh;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.gr-t{border-collapse:separate;border-spacing:0;font-size:13px;min-width:100%}
.gr-t th,.gr-t td{border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:3px;vertical-align:top;background:var(--surface)}
.gr-t thead th{position:sticky;background:var(--tag);font-weight:600;text-align:center;padding:5px 4px}
.gr-t thead tr.gr-grp th{top:0;z-index:3;font-size:12px;color:var(--muted)}
.gr-t thead tr:not(.gr-grp) th{top:27px;z-index:2}
.gr-t th.gr-g0{background:transparent}
.gr-t .gr-c-long,.gr-t .gr-c-txt,.gr-t .gr-c-sel{min-width:150px}.gr-t .gr-c-long{min-width:200px}
.gr-t .gr-c-int,.gr-t .gr-c-calc{min-width:54px}.gr-t .gr-c-date{min-width:130px}.gr-t .gr-c-num{min-width:90px}
.gr-t th.gr-n{min-width:52px;width:56px}
.gr-t textarea{resize:vertical;min-height:2.6em}
.gr-t input[type=number]{text-align:center;padding:4px 2px}
.gr-t .bad,.gr-thr .bad{border-color:#b42318;background:#fff1f0;color:#7a1008}
.gr-calc{text-align:center;vertical-align:middle!important;background:var(--tag)!important;white-space:nowrap}
.gr-lv{display:inline-block;min-width:34px;padding:2px 6px;border-radius:6px;font-weight:700}
.gr-ok{color:#15803d;font-weight:600}.gr-warn{color:#b42318;font-weight:700}
.gr-act{width:62px;white-space:nowrap;text-align:center}
.gr-ib{font:inherit;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:6px;width:26px;height:26px;cursor:pointer}
.gr-none{padding:14px!important;color:var(--muted);text-align:center}
.gr-ro input,.gr-ro textarea,.gr-ro select{border-color:transparent;background:transparent;opacity:1;-webkit-text-fill-color:var(--text)}
.gr-ex,.gr-set{border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:8px;padding:8px 12px;margin:12px 0;background:var(--surface)}
.gr-ex summary,.gr-set summary{cursor:pointer;font-weight:600}
.gr-sum{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.gr-s{border-collapse:collapse;font-size:14px}
.gr-s caption{text-align:left;font-weight:600;padding-bottom:4px}
.gr-s th,.gr-s td{border:1px solid var(--line);padding:4px 10px;text-align:center}
.gr-s th:first-child{text-align:left}
.gr-mx td{width:52px;height:40px;font-weight:700}
.gr-hint{color:var(--muted);font-size:13px}
@media(max-width:700px){.gr-meta{grid-template-columns:1fr}}
@media print{.gr-bar,.gr-tabs,.gr-act,.gr-set,.gr-ex{display:none}.gr-wrap{max-height:none;overflow:visible}}
