/* Piléo portail 0.99.1 — styles des modules équipe */
[hidden]{display:none!important}
.b97-head{display:flex;align-items:center;flex-wrap:wrap;gap:12px;justify-content:space-between}
.b97-head h1,.b97-head h2{margin:0;min-width:0;overflow-wrap:anywhere}
.b97-page-head{margin:0 0 12px;justify-content:flex-start}
.b97-page-head h1{flex:1 1 340px;font-size:clamp(25px,3vw,34px);line-height:1.2}
.b97-note{font-size:13px;color:#52756c;margin:0 0 22px}
#main:has(.b97-page-head)>h2{margin:26px 0 12px}
#main:has(.b97-page-head)>label{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:14px}
#main:has(.b97-page-head)>label select{font:inherit;padding:9px 12px;border:1px solid #cddcd6;border-radius:8px;background:#fff;color:#203d43}
.b97-button{appearance:none;box-sizing:border-box;font:inherit;font-size:14px;line-height:1.35;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 15px;border:1px solid #cddcd6;border-radius:9px;background:#fff;color:#203d43;cursor:pointer;text-align:center;text-decoration:none}
.b97-button:hover{background:#edf5f2;border-color:#94b9ae}
.b97-button.primary{background:#087f80;color:#fff;border-color:#087f80}
.b97-button.primary:hover{background:#066b6d}
.b97-button:disabled{opacity:.6;cursor:wait}
.b97-button:focus-visible,.b97-dialog input:focus-visible,.b97-dialog select:focus-visible,.b97-dialog textarea:focus-visible{outline:3px solid #47ada5;outline-offset:3px}
.b97-table{overflow:auto;border:1px solid #dfe8e7;border-radius:12px;background:white;margin:12px 0 22px;max-height:65vh}
.b97-table table{width:100%;border-collapse:collapse;font-size:14px;min-width:620px}
.b97-table td,.b97-table th{padding:12px 14px;border-bottom:1px solid #e2eae7;text-align:left;vertical-align:top}
.b97-table tr:last-child td{border-bottom:0}
.b97-table th{position:sticky;top:0;z-index:1;background:#eef5f2;font-size:13px}
.b97-table p{white-space:pre-wrap;max-width:430px;font-size:13px;margin:6px 0;overflow-wrap:anywhere}
.b97-table .b97-button{font-size:13px;min-height:34px;padding:7px 10px}
.b97-table .b97-empty{text-align:center;color:#667b7f;padding:24px}
.b97-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}
.b97-stats>span{min-width:0;padding:20px;border:1px solid #ceded8;background:#edf6f1;border-radius:12px;font-size:14px}
.b97-stats strong{display:block;font-size:clamp(20px,2.6vw,27px);margin-top:9px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.b97-actions{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0 24px}
.b97-dialog{box-sizing:border-box;width:min(820px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:16px;color:#203d43;background:white;overflow:hidden}
.b97-dialog[open]{display:flex;flex-direction:column}
.b97-dialog .modal-head{flex:0 0 auto;padding:18px 24px;border-bottom:1px solid #dfe8e7}
.b97-dialog .modal-head h2{font-size:22px;line-height:1.3;margin:0}
.b97-dialog .close{flex-shrink:0;display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:#eef4f1;color:#52756c;padding:0;font-size:23px;line-height:1;cursor:pointer}
.b97-dialog-body{display:flex;flex-direction:column;min-height:0;overflow:auto;flex:1 1 auto}
.b97-dialog-body>p{padding:0 24px;font-size:14px}
#b97NeedForm,#b97CoopForm,#b97LegacyForm{display:flex;flex-direction:column;gap:0;min-height:0;min-width:0;width:100%;margin:0;overflow:hidden}
.b97-form-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px 24px;overflow:auto;min-height:0;overscroll-behavior:contain}
.b97-form-fields>label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:14px;line-height:1.4}
.b97-form-fields>label:has(textarea),.b97-form-fields>label:has(input[type=file]),.b97-form-fields>label:has(input[name=title]),.b97-form-fields>p,.b97-legacy{grid-column:1/-1}
.b97-form-fields>p{margin:0;line-height:1.5;font-size:14px}
.b97-form-fields input:not([type=checkbox]),.b97-form-fields select,.b97-form-fields textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:10px 12px;font:inherit;font-size:16px;line-height:1.4;border:1px solid #a7c4be;border-radius:8px;background:white;color:#203d43}
.b97-form-fields textarea{min-height:100px;resize:vertical}
.b97-form-fields input[type=file]{font-size:13px}
.b97-form-fields input[type=file]::file-selector-button{border:0;border-radius:5px;background:#eaf3ee;color:#203d43;padding:7px 10px;margin-right:10px;cursor:pointer}
.b97-form-actions{flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:14px 24px;background:#f5f8f6;border-top:1px solid #dfe8e7}
[data-b97-error]{color:#a32e2e;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
.b97-form-actions [data-b97-error]{flex-basis:100%;margin:0}
.b97-form-actions [data-b97-error]:empty{display:none}
.b97-legacy{padding:14px;border:1px solid #bbcfc7;border-radius:9px}
.b97-legacy>label{display:flex;flex-direction:column;gap:7px;margin:8px 0}
.b97-legacy label:has(input[type=checkbox]){flex-direction:row;align-items:start}
.nav{flex-wrap:wrap;column-gap:20px;row-gap:0;overflow:visible}
.nav button{max-width:100%;padding-top:13px;padding-bottom:13px;white-space:nowrap}
.footer{flex-wrap:wrap}
#b97Remember{font:inherit;font-size:12px;border:0;background:transparent;color:#52756c;padding:4px 0;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
body:has(#main):not(:has(#nav)){font-family:system-ui;background:#edf3f1;color:#183a40;max-width:900px;padding:32px;margin:auto}
@media(max-width:700px){.b97-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.b97-stats>span{padding:15px}.b97-form-fields{grid-template-columns:1fr;padding:16px;gap:14px}.b97-dialog .modal-head{padding:16px}.b97-form-actions{padding:12px 16px}.b97-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.b97-dialog .modal-head h2{font-size:20px}.b97-page-head h1{flex-basis:100%}.b97-table td,.b97-table th{padding:10px}.nav{gap:0 16px}.nav button{font-size:13px;padding:11px 0}}
@media(max-width:380px){.b97-form-actions>.b97-button{width:100%}.b97-actions>.b97-button{flex:1 1 auto}}
@media(max-width:700px){.bar{flex-wrap:wrap;gap:10px}.bar .logo{flex-shrink:0}.bar .brand{flex:1 1 calc(100% - 65px);min-width:0}.bar .brand span{overflow-wrap:anywhere}.bar #refresh,.bar #logout{font-size:13px;padding:9px 12px}.footer>span{min-width:0;overflow-wrap:anywhere}}

/* PILEO_CALENDAR0992 */
.calendar-domain0992{background:var(--event-bg0992)!important;color:var(--event-ink0992)!important;border-left:4px solid var(--event-ink0992)!important}
.calendar-domain0992 .meta,.calendar-domain0992 .link{color:var(--event-ink0992)}
.calendar-legend0992{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}
.calendar-legend0992 span{font-size:12px;padding:7px 10px;border-radius:7px;background:var(--event-bg0992);color:var(--event-ink0992);border-left:3px solid var(--event-ink0992)}
#pileoVersion0992{font-size:12px;white-space:nowrap}
