@charset "utf-8";
/* CalCorp 3.0 - feuille de style unique. Identité reprise de la v2 (CalCorp 2.0) : Roboto, bleu Google, lignes #dadce0,
   barre 65 px, en-tête des jours 90 px, panneau gauche 200 px, colonne des heures 28 px, pied de page bleu nuit 26 px. */

:root {
  --noir: #3c4043;
  --grey: #5f6368;
  --grey0: #707070;
  --grey1: #ebebec;
  --grey2: #f1f3f4;
  --grey3: #f6f6f6;
  --line: #dadce0;
  --blue: #1a73e8;
  --blue2: #EBF2FF;
  --blue3: #0F458B;
  --blue4: #75ABF1;
  --dark_blue: #0D1B33;
  --red: #ff4c4c;
  --red_2: #ff2000;
  --orange: #ffa500;
  --orange2: #FA464A;
  --green: #51C37C;
  --violet: #800080;
  --hint: rgba(0,0,0,0.05);
  --tip_focused: #7885ca;
  --bg: #ffffff;
  --bg2: #ffffff;
  --shadow: 0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2);
  --shadow2: 0 24px 38px 3px rgba(0,0,0,.14), 0 9px 46px 8px rgba(0,0,0,.12), 0 11px 15px -7px rgba(0,0,0,.2);
  --top-h: 65px;
  --side-w: 200px;
  --hours-w: 28px;
  --footer-h: 26px;
  --head-h: 155px;
  --hour-h: 50px;
  --grid-h: 750px;
  --cols: 7;
}
body[data-theme="dark"] { --noir: #e8eaed; --grey: #bdc1c6; --grey0: #9aa0a6; --grey1: #3c4043; --grey2: #303134; --grey3: #28292c; --line: #3c4043; --blue2: #1e2a3a; --hint: rgba(255,255,255,.06); --bg: #1f1f1f; --bg2: #2a2b2e; --dark_blue: #0b1526; }
@media (prefers-color-scheme: dark) {
  body[data-theme="auto"] { --noir: #e8eaed; --grey: #bdc1c6; --grey0: #9aa0a6; --grey1: #3c4043; --grey2: #303134; --grey3: #28292c; --line: #3c4043; --blue2: #1e2a3a; --hint: rgba(255,255,255,.06); --bg: #1f1f1f; --bg2: #2a2b2e; --dark_blue: #0b1526; }
}

* { margin: 0; padding: 0; border: 0; outline: none; box-sizing: border-box; -webkit-tap-highlight-color: transparent; scrollbar-width: thin; }
.noSelect { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.hidden { display: none !important; }
.sprite { display: none; }
svg { fill: currentColor; width: 1em; height: 1em; vertical-align: -0.15em; display: inline-block; }
o { display: inline; }
kbd { font: inherit; color: var(--grey0); font-size: 11px; margin-left: auto; padding-left: 14px; }

html { width: 100%; overflow-x: hidden; scroll-behavior: auto; }
body { font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif; position: relative; width: 100%; min-height: 100vh; color: var(--noir); background: var(--bg); padding-bottom: var(--footer-h); font-size: 14px; }
body.booting .content, body.booting .float { visibility: hidden; }
body.modal-open, body.open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; }

/* ---------- filigrane ---------- */
#filigrane { display: block; position: fixed; width: 350px; height: 350px; top: 0; bottom: 0; left: 0; right: 0; margin: auto; z-index: -1; pointer-events: none !important; }
#filigrane svg { width: 100%; height: 100%; display: block; fill: #000; opacity: .03; }
body[data-theme="dark"] #filigrane svg { fill: #fff; }
@media (prefers-color-scheme: dark) { body[data-theme="auto"] #filigrane svg { fill: #fff; } }

/* ---------- barre du haut ---------- */
.top { display: block; position: fixed; top: 0; left: 0; right: 0; height: var(--top-h); border-bottom: 1px solid var(--line); background: var(--bg); cursor: default; z-index: 20; }
.top .bar { display: flex; align-items: center; height: var(--top-h); padding: 0 8px 0 0; gap: 0; }
.top .bar > span { display: inline-flex; align-items: center; flex: none; }
.top .bar > .spacer { flex: 1 1 auto; min-width: 4px; }
.top .bars { padding-left: 10px; width: 60px; height: 100%; cursor: pointer; }
.top .bars > span { display: block; position: relative; border-radius: 50%; width: 50px; height: 50px; }
.top .bars > span:hover { background: var(--grey2); }
.top .bars > span:active { background: var(--grey1); }
.top .bars svg { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: 22px; height: 22px; color: var(--noir); }
.top .flip { background-image: url("../img/calspan.png"); background-size: contain; background-position: center 42%; background-repeat: no-repeat; width: 45px; height: 45px; justify-content: center; font-weight: 700; text-shadow: 0 3px 6px rgba(0,0,0,0.47); cursor: pointer; }
.top .flip span { color: #fff; font-size: 20px; line-height: 45px; }
.top .titre { font-size: 24px; color: var(--grey); padding: 0 15px 0 12px; }
.top .avatar { width: 58px; justify-content: center; cursor: pointer; }
.top .avatar span { display: block; width: 44px; height: 44px; background: var(--grey2) url("../img/icon.svg") center / 60% no-repeat; border-radius: 50%; }
.top .avatar span.photo { background-size: cover; }
.top .segment { padding: 0 10px; cursor: pointer; }
.top .segment span, .top .week-nav span, .top .monthDisplay span, .top .weekNum span, .top .viewSel { font-size: 15px; color: var(--noir); border: 1px solid var(--line); border-radius: 5px; height: 40px; line-height: 38px; display: inline-block; text-align: center; white-space: nowrap; background: var(--bg); }
.top .segment span { padding: 0 18px 0 16px; }
.top .segment span:hover, .top .week-nav span:hover, .top .monthDisplay span:hover, .top .weekNum span:hover, .top .viewSel:hover, .top .menuBtn:hover { background: var(--grey2); }
.top .week-nav { cursor: pointer; }
.top .week-nav[data-nav="back"] { padding: 0 3px 0 4px; }
.top .week-nav[data-nav="next"] { padding: 0 4px 0 3px; }
.top .week-nav span { width: 52px; }
.top .week-nav svg { width: 20px; height: 20px; vertical-align: -5px; }
.top .monthDisplay { padding-left: 10px; cursor: pointer; }
.top .monthDisplay span { padding: 0 14px; min-width: 70px; font-weight: 500; }
.top .weekNum { padding-left: 8px; }
.top .weekNum span { padding: 0 14px; }
.top .tools { gap: 6px; }
.search { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line); border-radius: 5px; padding: 0 8px 0 10px; background: var(--bg); transition: width .2s; width: 42px; overflow: hidden; }
.search svg { width: 20px; height: 20px; color: var(--grey); flex: none; }
.search input { border: 0; background: transparent; width: 0; height: 36px; margin-left: 6px; transition: width .2s; }
.search.on, .search:focus-within { width: 220px; }
.search.on input, .search:focus-within input { width: 160px; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.top .viewSel { position: relative; cursor: pointer; padding: 0 10px 0 14px; display: inline-flex; align-items: center; gap: 4px; }
.top .viewSel svg { width: 18px; height: 18px; }
.top .menuBtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; margin-left: 6px; }
.top .menuBtn svg { width: 22px; height: 22px; color: var(--noir); }
.dropdown { display: none; position: absolute; top: calc(100% + 4px); right: 0; min-width: 210px; background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow2); z-index: 60; padding: 6px 0; text-align: left; cursor: default; }
.dropdown.up { top: auto; bottom: calc(100% + 4px); }
.dropdown.on { display: block; }
.dropdown > div { display: flex; align-items: center; padding: 9px 16px; line-height: 20px; cursor: pointer; white-space: nowrap; color: var(--noir); font-size: 14px; }
.dropdown > div svg { width: 18px; height: 18px; margin-right: 12px; color: var(--grey); flex: none; }
.dropdown > div:hover { background: var(--grey2); }
.dropdown > div.on { color: var(--blue); font-weight: 500; }
.dropdown .sep { height: 1px; background: var(--line); margin: 6px 0; padding: 0; }

/* ---------- en-tête des jours ---------- */
.float { display: flex; position: fixed; top: var(--top-h); left: 0; right: 0; min-height: 90px; background: var(--bg); box-shadow: 0 4px 2px -2px rgba(0,0,0,0.17); z-index: 15; }
.float .left-pannel { width: var(--side-w); flex: none; position: relative; }
.float .left-pannel .add-rdv { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; margin: auto; width: 120px; height: 52px; line-height: 52px; border-radius: 24px; box-shadow: var(--shadow); text-align: center; cursor: pointer; font-size: 15px; background: var(--bg2); }
.float .left-pannel .add-rdv:hover { box-shadow: 0 1px 5px -3px rgba(0,0,0,0.2), 0 3px 4px 1px rgba(0,0,0,0.14), 0 2px 4px 2px rgba(0,0,0,0.12); background-color: var(--grey3); }
.float .left-pannel .add-rdv:active { top: 2px; bottom: -2px; }
.float .left-pannel .add-rdv svg { width: 18px; height: 18px; color: #f60; vertical-align: -3px; margin-right: 2px; }
.float .main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; }
.daysName { display: grid; grid-template-columns: var(--hours-w) repeat(var(--cols), minmax(0, 1fr)); min-height: 90px; }
.daysName .dayName { text-align: center; cursor: pointer; padding-top: 4px; color: var(--grey); }
.daysName .dayName.static { cursor: default; }
.daysName .jour { display: block; text-transform: uppercase; font-size: 11px; height: 32px; line-height: 32px; margin-bottom: 2px; }
.daysName .num_jour { display: inline-block; position: relative; width: 45px; height: 45px; line-height: 45px; text-align: center; font-size: 24px; border-radius: 50%; color: var(--noir); }
.daysName .dayName:hover .num_jour { background: var(--grey2); }
.daysName .dayName.active { color: var(--blue); }
.daysName .dayName.active .num_jour { background: var(--blue); color: #fff; text-shadow: 0 3px 6px rgba(0,0,0,0.37); }
.daysName .dayName.static .jour { height: 40px; line-height: 40px; margin: 0; font-weight: 500; }
body[data-view="month"] .daysName, body[data-view="planning"] .daysName { min-height: 40px; }
body[data-view="month"] .float, body[data-view="planning"] .float { min-height: 40px; }
.allday { display: grid; grid-template-columns: var(--hours-w) repeat(var(--cols), minmax(0, 1fr)); border-top: 1px solid var(--line); padding: 2px 0 3px; }
.allday.empty { display: none; }
.allday .adCell { min-height: 22px; padding: 0 2px; border-left: 1px solid var(--line); cursor: pointer; }
.allday .corner { font-size: 9px; color: var(--grey); text-align: right; padding-right: 3px; line-height: 22px; }
.chip { display: block; font-size: 12px; line-height: 20px; padding: 0 6px; margin: 1px 0; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.chip .ct { font-weight: 400; margin-right: 5px; opacity: .95; }
.chip .cn { font-weight: 500; }

/* ---------- contenu ---------- */
.content { position: relative; padding-top: var(--head-h); display: block; }
.content .left-pannel { position: fixed; top: var(--head-h); left: 0; bottom: var(--footer-h); width: var(--side-w); overflow-y: auto; overflow-x: hidden; background: var(--bg); z-index: 10; border-right: 2px solid var(--blue2); }
.grid { margin-left: var(--side-w); position: relative; background: var(--bg); min-height: 200px; }
body:not(.whide) .left-pannel { display: none; }
body:not(.whide) .grid { margin-left: 0; }

/* mini calendrier (panneau gauche) */
.small_cal { display: block; border-bottom: 1px solid var(--line); padding: 5px 0 6px; }
.small_cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.small_cal th { height: 40px; font-weight: 500; font-size: 13px; cursor: pointer; }
.small_cal th:first-of-type { text-align: left; padding-left: 5px; }
.small_cal th:last-of-type { text-align: right; padding-right: 5px; }
.small_cal .back_m, .small_cal .next_m { display: inline-block; height: 30px; line-height: 28px; width: 32px; text-align: center; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.small_cal .back_m svg, .small_cal .next_m svg { width: 18px; height: 18px; vertical-align: -4px; }
.small_cal .back_m:hover, .small_cal .next_m:hover { background: var(--grey2); }
.small_cal .back_m:active, .small_cal .next_m:active { background: var(--blue); color: #fff; }
.small_cal .mini_display:hover { color: var(--blue); }
.small_cal .mini_display:active { color: #fff; background: var(--blue); text-shadow: 0 3px 6px rgba(0,0,0,0.47); }
.small_cal td { font-size: 11px; text-align: center; height: 25px; cursor: pointer; position: relative; }
.small_cal tr:not(.dayRow) td:first-child { background-color: var(--blue2); cursor: default; color: var(--grey); }
.small_cal .dayRow td { color: var(--grey); cursor: default; }
.small_cal tr:not(.dayRow) td.off { background-color: var(--grey3); cursor: default; }
.small_cal tr:not(.dayRow):hover td:not(:first-child):not(.off) { background: var(--grey2); }
.small_cal td.inweek { background: var(--blue2); }
.small_cal td.sel { font-weight: 700; color: var(--blue); }
.small_cal td.today, .small_cal tr:not(.dayRow) td:not(.off):not(:first-child):hover { background: var(--blue) !important; text-shadow: 0 3px 6px rgba(0,0,0,0.47); color: #fff; }
.small_cal td.dot::after, #calender td.dot::after { content: ""; display: block; position: absolute; left: 0; right: 0; bottom: 2px; margin: auto; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.small_cal td.today.dot::after, .small_cal td:hover.dot::after { background: #fff; }

/* listes agendas / types */
.side-block { padding: 10px 8px 6px 12px; border-bottom: 1px solid var(--line); }
.side-block h4, .drawerBlock h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--grey); font-weight: 500; display: flex; align-items: center; justify-content: space-between; height: 26px; margin-bottom: 4px; }
.iconBtn { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--grey); }
.iconBtn:hover { background: var(--grey2); color: var(--noir); }
.iconBtn svg { width: 18px; height: 18px; }
.calList, .typeList, .toolList { list-style: none; }
.calList li, .typeList li { display: flex; align-items: center; height: 30px; cursor: pointer; border-radius: 4px; padding: 0 4px; font-size: 13px; }
.calList li:hover, .typeList li:hover { background: var(--grey2); }
.calList .sq { width: 16px; height: 16px; border-radius: 3px; margin-right: 10px; flex: none; border: 2px solid transparent; position: relative; }
.calList .sq svg { position: absolute; left: -1px; top: -1px; width: 14px; height: 14px; color: #fff; }
.calList li.off .sq { background: transparent !important; }
.calList li.off .sq svg { display: none; }
.calList li.off .nm, .typeList li.off .nm { color: var(--grey0); text-decoration: line-through; }
.calList .nm, .typeList .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calList .ed, .typeList .ed { visibility: hidden; color: var(--grey); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.calList li:hover .ed, .typeList li:hover .ed { visibility: visible; }
.calList .ed:hover, .typeList .ed:hover { background: var(--grey1); color: var(--noir); }
.calList .ed svg, .typeList .ed svg { width: 15px; height: 15px; }
.typeList .dot { width: 12px; height: 12px; border-radius: 50%; margin: 0 12px 0 2px; flex: none; }
.typeList li.off .dot { opacity: .3; }

/* ---------- grille horaire ---------- */
.timegrid { display: grid; grid-template-columns: var(--hours-w) repeat(var(--cols), minmax(0, 1fr)); padding: 8px 0 40px; }
.timegrid .hours { position: relative; height: var(--grid-h); }
.timegrid .plage { display: block; position: absolute; right: 3px; transform: translateY(-6px); font-size: 10px; color: var(--grey); white-space: nowrap; }
.timegrid .daycol { position: relative; height: var(--grid-h); border-left: 1px solid var(--line); cursor: pointer;
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--grey1) 1px, transparent 1px);
  background-size: 100% var(--hour-h), 100% var(--hour-h); background-position: 0 0, 0 calc(var(--hour-h) / 2); }
.timegrid.quart .daycol { background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--grey1) 1px, transparent 1px), linear-gradient(to bottom, var(--grey2) 1px, transparent 1px), linear-gradient(to bottom, var(--grey2) 1px, transparent 1px);
  background-size: 100% var(--hour-h), 100% var(--hour-h), 100% var(--hour-h), 100% var(--hour-h); background-position: 0 0, 0 calc(var(--hour-h) / 2), 0 calc(var(--hour-h) / 4), 0 calc(var(--hour-h) * .75); }
.timegrid .daycol.active { background-color: var(--grey3); }
.timegrid .daycol:hover { background-color: var(--grey3); }
.timegrid .daycol.active:hover { background-color: var(--grey2); }
.timegrid .daycol:last-child { border-right: 1px solid var(--line); }
.ev { position: absolute; border-radius: 4px; padding: 2px 4px 2px 5px; font-size: 12px; line-height: 15px; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.2); text-shadow: 0 1px 2px rgba(0,0,0,.35); border-left: 4px solid transparent; user-select: none; -webkit-user-select: none; touch-action: manipulation; z-index: 2; }
.ev:hover { filter: brightness(1.06); z-index: 3; box-shadow: 0 3px 6px rgba(0,0,0,.3); }
.ev .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; opacity: .95; }
.ev .t .ty { margin-left: 6px; font-weight: 700; }
.ev .n { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; opacity: .9; }
.ev .d { font-size: 11px; opacity: .85; white-space: pre-line; overflow: hidden; }
.ev.tiny { padding: 0 4px; line-height: 14px; display: flex; align-items: center; gap: 4px; }
.ev.tiny .t { flex: none; }
.ev.tiny .t .ty, .ev.tiny .p, .ev.tiny .d { display: none; }
.ev.tiny .n { flex: 1 1 auto; }
.ev.rec .n::after { content: " \21BB"; font-weight: 400; opacity: .8; }
.ev .rs { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.ev.dragging { opacity: .85; z-index: 9; box-shadow: var(--shadow2); }
.dragGhost { position: absolute; left: 2px; right: 2px; background: var(--tip_focused); opacity: .8; color: #fff; border-radius: 4px; font-size: 11px; padding: 2px 5px; pointer-events: none; z-index: 5; }
.nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); pointer-events: none; z-index: 4; }
.nowline::before { content: ""; position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.hiddenBadge { position: absolute; top: 2px; right: 4px; font-size: 10px; background: var(--grey2); color: var(--grey); padding: 1px 6px; border-radius: 10px; z-index: 5; cursor: help; }

/* ---------- vue mois ---------- */
.monthgrid { display: grid; grid-template-columns: var(--hours-w) repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(96px, auto); border-bottom: 1px solid var(--line); }
.monthgrid .wk { font-size: 10px; color: var(--grey); text-align: center; padding-top: 6px; background: var(--blue2); border-bottom: 1px solid var(--line); }
.monthgrid .mcell { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2px 3px 4px; cursor: pointer; min-width: 0; overflow: hidden; }
.monthgrid .mcell:hover { background: var(--grey3); }
.monthgrid .mcell.off { background: var(--grey3); color: var(--grey0); }
.monthgrid .mcell.off .chip { opacity: .6; }
.monthgrid .mnum { display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; font-size: 13px; margin-bottom: 2px; cursor: pointer; }
.monthgrid .mnum:hover { background: var(--grey1); }
.monthgrid .today .mnum { background: var(--blue); color: #fff; font-weight: 700; }
.monthgrid .more { font-size: 11px; color: var(--grey); padding-left: 6px; cursor: pointer; }
.monthgrid .more:hover { color: var(--blue); }

/* ---------- vue planning ---------- */
.planning { display: block; padding: 8px 16px 40px 16px; max-width: 900px; }
.planning .pTitle { font-size: 16px; font-weight: 500; color: var(--grey); margin: 8px 0 12px; }
.planning .empty { color: var(--grey0); padding: 30px 0; text-align: center; }
.planning .pDay { display: flex; align-items: flex-start; border-top: 1px solid var(--line); padding: 8px 0; }
.planning .pHead { flex: none; width: 150px; display: flex; align-items: center; cursor: pointer; color: var(--grey); }
.planning .pNum { display: inline-block; width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 50%; font-size: 20px; color: var(--noir); margin-right: 8px; }
.planning .pHead.today .pNum { background: var(--blue); color: #fff; }
.planning .pName { font-size: 12px; text-transform: uppercase; }
.planning .pRows { flex: 1 1 auto; min-width: 0; }
.planning .pRow { display: flex; align-items: center; min-height: 34px; padding: 4px 8px; border-radius: 6px; cursor: pointer; gap: 10px; }
.planning .pRow:hover { background: var(--grey2); }
.planning .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.planning .pTime { flex: none; width: 110px; color: var(--grey); font-size: 13px; }
.planning .pTxt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planning .pType { font-style: normal; font-weight: 700; font-size: 11px; margin-left: 8px; }
.planning .pPlace { color: var(--grey); }

/* ---------- barre du bas (téléphone) ---------- */
.app_menu { display: none; position: fixed; left: 0; right: 0; height: 50px; bottom: var(--footer-h); cursor: pointer; background: #000; z-index: 12; }
.app_menu .row { display: flex; height: 100%; }
.app_menu .user { flex: 1 1 0; position: relative; border-left: 3px solid transparent; min-width: 0; }
.app_menu .user:first-child { border-left: 0; }
.app_menu .user .nm { display: block; position: absolute; left: 0; right: 0; top: 0; height: 40px; line-height: 40px; text-align: center; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; font-size: 13px; }
.app_menu .user .bar { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; }
.app_menu .user.off .bar { height: 4px; opacity: .6; }
.app_menu .user.off .nm { color: rgba(255,255,255,.5); }

#mob_tool { display: none; position: fixed; bottom: 70px; right: 15px; z-index: 12; width: 60px; height: 60px; border-radius: 50%; background: var(--bg2); text-align: center; cursor: pointer; box-shadow: 0 1px 1px 0 rgba(0,0,0,0.27), 0 2px 1px -1px rgba(0,0,0,0.25), 0 1px 3px 0 rgba(0,0,0,0.2); }
#mob_tool:active { bottom: 66px; }
#mob_tool i::before, #mob_tool i::after { content: ""; display: block; position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: 28px; border-radius: 2px; height: 6px; background: var(--red_2); }
#mob_tool i::after { transform: rotate(-90deg); }
body:not(.whide) #mob_tool { display: block; bottom: 50px; }
body:not(.whide) #mob_tool:active { bottom: 46px; }

.bottom-push { display: block; height: 40px; pointer-events: none; }
.footer { display: block; position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark_blue); height: var(--footer-h); line-height: var(--footer-h); white-space: nowrap; z-index: 12; }
.footer span { display: block; position: absolute; right: 12px; color: #fff; font-size: 9px; }
.footer span svg { width: 18px; height: 18px; fill: #fff; vertical-align: -5px; margin: 0 2px; }

/* ---------- tiroir ---------- */
.overlay { display: none; position: fixed; background: rgba(0,0,0,.6); left: 0; right: 0; top: 0; bottom: 0; z-index: 30; }
.mobTools { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; right: -500px; width: 370px; padding-top: 5px; background: var(--bg); box-shadow: -6px 0 16px -8px rgba(0,0,0,.08), -9px 0 28px 0 rgba(0,0,0,.05), -12px 0 48px 16px rgba(0,0,0,.03); transition: right .3s ease; z-index: 40; }
.mobTools::before { content: ""; display: block; height: 5px; position: absolute; top: 0; left: 0; width: 100%; background: linear-gradient(to right, var(--blue) 0%, var(--blue3) 100%); }
.mobTools .first { display: flex; align-items: center; height: 50px; flex: none; }
.mobTools .version { flex: 1 1 auto; padding-left: 15px; text-transform: uppercase; font-weight: 700; font-size: 22px; color: var(--noir); }
.mobTools .version svg { width: 20px; height: 20px; vertical-align: -2px; margin-right: 4px; }
.mobTools .version o { font-size: 14px; color: var(--grey); font-weight: 500; }
#close_mob { width: 65px; height: 50px; position: relative; cursor: pointer; }
#close_mob i::before, #close_mob i::after { content: ""; display: block; position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: 28px; border-radius: 2px; height: 5px; background: var(--red); }
#close_mob i::before { transform: rotate(-45deg); }
#close_mob i::after { transform: rotate(-135deg); }
.drawerScroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 30px; }
.drawerBlock { padding: 12px 15px 6px; border-bottom: 1px solid var(--line); }
.drawerBlock .calList li, .drawerBlock .typeList li { height: 36px; font-size: 14px; }
.drawerBlock .ed { visibility: visible; }
.viewBtns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.viewBtns button { height: 38px; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; color: var(--noir); background: var(--bg2); }
.viewBtns button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.drawerSearch { width: 100%; }
.drawerSearch input { width: 100%; }
.toolList li { display: flex; align-items: center; height: 40px; cursor: pointer; border-radius: 4px; padding: 0 4px; font-size: 14px; }
.toolList li svg { width: 20px; height: 20px; color: var(--grey); margin-right: 14px; }
.toolList li:hover { background: var(--grey2); }

#calender { display: block; border-bottom: 1px solid var(--line); }
#calender .top_calender { display: flex; background: linear-gradient(to right, var(--blue3) 0%, var(--blue) 100%); height: 55px; color: #fff; }
#calender .top_calender div { font-size: 20px; font-weight: 700; text-transform: uppercase; height: 55px; line-height: 55px; text-align: center; cursor: pointer; }
#calender .top_calender .last_m, #calender .top_calender .next_m { width: 60px; flex: none; }
#calender .top_calender .last_m svg, #calender .top_calender .next_m svg { width: 26px; height: 26px; vertical-align: -6px; }
#calender .top_calender .show_m { flex: 1 1 auto; font-size: 18px; }
#calender table { width: 100%; border-collapse: collapse; table-layout: fixed; }
#calender th, #calender td { position: relative; text-align: center; vertical-align: middle; }
#calender th { color: var(--blue); height: 55px; font-weight: 500; }
#calender td { height: 50px; cursor: pointer; }
#calender td.off { background: var(--hint); cursor: default; }
#calender td span { display: block; position: relative; font-size: 14px; z-index: 1; }
#calender td.today, #calender td:not(.off):hover, #calender td.sel { color: #fff; font-weight: 700; text-shadow: 0 3px 4px rgba(0,0,0,0.27); }
#calender td.today::before, #calender td:not(.off):hover::before, #calender td.sel::before { content: ''; display: block; width: 38px; height: 38px; position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; border-radius: 50%; }
#calender td.today::before { background: var(--orange); }
#calender td.sel:not(.today)::before { background: var(--blue); }
#calender td:not(.off):not(.today):not(.sel):hover::before { background: var(--orange2); }
#calender td.dot::after { bottom: 3px; width: 5px; height: 5px; }
#calender td.today.dot::after, #calender td.sel.dot::after { background: #fff; }

body.open .overlay { display: block; }
body.open .mobTools { right: 0; }

/* ---------- fiche rendez-vous ---------- */
#bookeur { display: none; position: fixed; background: var(--bg); width: 520px; max-height: calc(100vh - 40px); overflow: hidden; overflow-y: auto; padding: 56px 18px 16px; box-shadow: var(--shadow2); z-index: 50; top: 0; bottom: 0; left: 0; right: 0; margin: auto; height: max-content; border-radius: 7px; border: 1px solid var(--grey1); }
#bookeur #drag-handle { display: flex; align-items: center; position: absolute; top: 0; left: 0; right: 0; height: 40px; background: var(--grey2); border-bottom: 1px solid var(--grey1); cursor: move; padding-left: 16px; color: var(--grey); font-size: 13px; text-transform: uppercase; letter-spacing: .3px; }
#bookeur .handleTitle { flex: 1 1 auto; pointer-events: none; }
#book-close { height: 40px; width: 40px; display: block; position: relative; cursor: pointer; background: var(--red); flex: none; }
#book-close:before, #book-close:after { content: ""; display: block; position: absolute; width: 40%; height: 4px; left: 0; right: 0; top: 0; bottom: 0; margin: auto; background: #fff; border-radius: 1.5px; }
#book-close:hover { background: var(--grey1); }
#book-close:hover:before, #book-close:hover:after { background: var(--red); }
#book-close:before { transform: rotate(-45deg); }
#book-close:after { transform: rotate(45deg); }
body.book { user-select: none; }
body.book #bookeur { display: block; }
#bookForm { display: block; }
#f_title { width: 100%; font-size: 22px; padding: 6px 6px 8px; border-bottom: 1px solid var(--line); background: transparent; margin-bottom: 12px; border-radius: 0; }
#f_title:focus { border-bottom: 2px solid var(--blue); padding-bottom: 7px; }
.frow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.frow o { color: var(--grey); padding: 0 5px; }
.fico { width: 24px; flex: none; color: var(--grey); display: inline-flex; justify-content: center; }
.fico svg { width: 20px; height: 20px; }
#bookeur select, #bookeur input[type="date"], .modal-card select, .modal-card input[type="date"], .modal-card input[type="number"], .modal-card input[type="text"] { cursor: pointer; font-weight: 500; color: var(--noir); line-height: 1.3; padding: 0 28px 0 10px; height: 36px; border: 1px solid var(--line); border-radius: .5em; background: var(--bg2); -moz-appearance: none; -webkit-appearance: none; appearance: none; }
#bookeur select, .modal-card select { background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'); background-repeat: no-repeat; background-position: right .7em top 50%; background-size: .6em auto; }
#bookeur input[type="date"], .modal-card input[type="date"], .modal-card input[type="number"], .modal-card input[type="text"] { padding-right: 10px; cursor: text; }
#bookeur select:focus, #bookeur input:focus, #bookeur textarea:focus, .modal-card select:focus, .modal-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
#bookeur select.typeChip { font-weight: 700; padding-left: 12px; min-width: 150px; max-width: 220px; }
#bookeur select.typeChip:focus { border-color: var(--chipColor, var(--blue)); box-shadow: 0 0 0 1px var(--chipColor, var(--blue)); }
#f_sh, #f_sm, #f_dh, #f_dm { width: 62px; padding-left: 8px; }
#f_date, #f_until { width: 150px; }
#f_cal { flex: 1 1 120px; min-width: 120px; max-width: 200px; }
#f_remind, #f_repeat { flex: 1 1 140px; min-width: 140px; max-width: 230px; }
#f_days { width: 110px; }
.alldayLbl { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; cursor: pointer; color: var(--grey); font-size: 13px; white-space: nowrap; }
.alldayLbl input { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
.endLbl { color: var(--grey); font-size: 13px; margin-left: 4px; }
#f_place { flex: 1 1 auto; height: 36px; border-bottom: 1px solid var(--line); background: transparent; padding: 0 6px; font-size: 15px; border-radius: 0; }
#f_place:focus { border-bottom: 2px solid var(--blue); }
#f_desc { display: block; width: 100%; background: var(--blue2); padding: 8px 10px; border-radius: 5px; resize: vertical; border: 1px solid var(--line); margin: 4px 0 10px; min-height: 80px; color: var(--noir); }
#f_desc:focus { border-color: var(--blue); }
.recNote { font-size: 12px; color: var(--grey); margin-bottom: 8px; }
.recNote svg { color: var(--blue); }
.btnRow { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.btnRow .spacer { flex: 1 1 auto; }
.btn { height: 38px; background-color: var(--blue); color: #fff; padding: 0 20px; border-radius: 4px; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { background-color: var(--blue3); }
.btn:active { transform: translateY(2px); }
.btn.danger { background-color: var(--red); }
.btn.danger:hover { background-color: #d93636; }
.btn.ghost { background: var(--bg2); color: var(--noir); border: 1px solid var(--line); box-shadow: none; padding: 0 10px; }
.btn.ghost:hover { background: var(--grey2); }
.btn.alt { background: var(--grey); }
.moreWrap { position: relative; display: inline-block; }
.moreWrap .dropdown { right: 0; min-width: 240px; }

/* ---------- modale générique ---------- */
#modal { position: fixed; left: 0; right: 0; top: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { background: var(--bg); border-radius: 8px; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow2); padding: 20px 22px; }
.modal-card.small { max-width: 440px; }
.modal-card h3 { font-size: 18px; font-weight: 500; margin-bottom: 14px; color: var(--noir); }
.modal-card h5 { font-size: 12px; text-transform: uppercase; color: var(--grey); letter-spacing: .4px; margin: 18px 0 8px; font-weight: 500; }
.modal-card p { line-height: 1.5; color: var(--noir); margin-bottom: 12px; }
.modal-card .btnRow { margin-top: 18px; justify-content: flex-end; }
.modal-card label.f { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 3px 0; border-bottom: 1px solid var(--grey2); font-size: 14px; }
.modal-card label.f > span:first-child { flex: 1 1 auto; color: var(--noir); }
.modal-card label.f select, .modal-card label.f input { width: 170px; }
.modal-card label.f input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--blue); }
.modal-card input[type="color"] { width: 44px; height: 36px; padding: 0 2px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg2); cursor: pointer; }
.modal-card .hint { font-size: 12px; color: var(--grey0); margin-top: 4px; }
.modal-card .list { list-style: none; }
.modal-card .list li { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 2px 0; border-bottom: 1px solid var(--grey2); }
.modal-card .list li .sw { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.modal-card .list li .nm { flex: 1 1 auto; }
.modal-card .about b { color: var(--blue); }
.modal-card .about table { border-collapse: collapse; width: 100%; font-size: 13px; }
.modal-card .about td { padding: 5px 4px; border-bottom: 1px solid var(--grey2); vertical-align: top; }
.modal-card .about td:first-child { color: var(--grey); width: 150px; }
.modal-card .radioRow { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 12px; }
.modal-card .radioRow label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.modal-card .avatarRow { display: flex; align-items: center; gap: 14px; }
.modal-card .avatarRow .prev { width: 56px; height: 56px; border-radius: 50%; background: var(--grey2) center / cover no-repeat; flex: none; }
.modal-card .avatarRow input[type="file"] { max-width: 220px; font-size: 12px; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: 60px; transform: translate(-50%, 30px); background: #323232; color: #fff; padding: 12px 20px; border-radius: 6px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 90; max-width: calc(100vw - 32px); box-shadow: var(--shadow2); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: #c62828; }
#toast.info { background: var(--blue3); }

/* ---------- responsive ---------- */
@media screen and (max-width: 1100px) {
  .top .bar > .titre, .top .bar > .modeChip { display: none; }
  .top .segment span { padding: 0 12px; }
  .search.on, .search:focus-within { width: 180px; }
  .search.on input, .search:focus-within input { width: 120px; }
}
@media screen and (max-width: 880px) {
  .float { min-height: 65px; }
  .daysName { min-height: 65px; }
  .daysName .jour { height: 25px; line-height: 25px; margin-bottom: 2px; }
  .daysName .num_jour { font-size: 18px; width: 40px; height: 40px; line-height: 40px; }
  .daysName .dayName.static .jour { height: 40px; line-height: 40px; }
  .planning .pHead { width: 110px; }
  .planning .pName { font-size: 10px; }
}
@media screen and (max-width: 980px) {
  .top .bar > .segment { display: none; }
}
@media screen and (max-width: 820px) {
  .top .monthDisplay span { min-width: 0; }
  .top .bar > .weekNum { display: none; }
}
@media screen and (max-width: 760px) and (min-width: 681px) {
  .top .bar > .avatar { display: none; }
  .top .monthDisplay span { padding: 0 10px; }
}
@media screen and (max-width: 680px) {
  .nophone { display: none !important; }
  .top .bar { padding: 0 4px 0 6px; }
  .top .flip { width: 44px; margin-left: 2px; }
  .top .avatar { width: 44px; }
  .top .avatar span { width: 36px; height: 36px; }
  .top .week-nav { padding: 0 3px; }
  .top .week-nav span { width: 44px; padding: 0; }
  .top .monthDisplay { padding-left: 4px; }
  .top .monthDisplay span { padding: 0 8px; font-size: 14px; }
  .top .bar > .weekNum { display: inline-flex; padding-left: 4px; }
  .top .weekNum span { padding: 0 8px; font-size: 14px; }
  .top .bars { width: 44px; padding: 0; justify-content: center; }
  .top .bars > span { width: 40px; height: 40px; }
  .content .left-pannel, .float .left-pannel { display: none; }
  .grid { margin-left: 0 !important; }
  .timegrid { padding-bottom: 90px; }
  .monthgrid { grid-auto-rows: minmax(72px, auto); }
  .monthgrid .mnum { width: 22px; height: 22px; line-height: 22px; font-size: 12px; }
  .chip { font-size: 10px; line-height: 16px; padding: 0 3px; }
  .chip .ct { display: none; }
  .ev { font-size: 10px; line-height: 13px; padding: 1px 2px 1px 3px; border-left-width: 3px; }
  .ev .t { font-size: 9px; }
  .ev .t .ty { display: none; }
  .ev .p { font-size: 9px; }
  .timegrid .plage { font-size: 9px; }
  .allday .adCell { min-height: 18px; }
  .planning { padding: 6px 8px 90px; }
  .planning .pDay { flex-direction: column; }
  .planning .pHead { width: auto; margin-bottom: 4px; }
  .planning .pTime { width: 96px; font-size: 12px; }
  .bottom-push { height: 60px; }
  .footer span { left: 0; right: 0; text-align: center; }
  #mob_tool { display: block; bottom: 90px !important; }
  #mob_tool:active { bottom: 86px !important; }
  .app_menu { display: block; }
  body[data-view="month"] .float, body[data-view="planning"] .float { min-height: 34px; }
  body[data-view="month"] .daysName, body[data-view="planning"] .daysName { min-height: 34px; }
  body[data-view="month"] .daysName .dayName.static .jour, body[data-view="planning"] .daysName .dayName.static .jour { height: 34px; line-height: 34px; }
  #bookeur { width: calc(100vw - 16px); padding: 56px 12px 14px; }
  .frow { gap: 6px; }
  #f_title { font-size: 19px; }
  .alldayLbl { margin-left: 0; }
  #f_cal, #f_remind, #f_repeat { max-width: none; }
}
@media screen and (max-width: 420px) {
  #filigrane { top: 200px; bottom: unset; }
  .mobTools { width: 100%; }
  #bookeur { position: fixed; top: 0; bottom: 0; left: 0; right: 0; border-radius: 0; max-height: none; width: auto; height: auto; padding-top: 62px; border: 0; }
  #bookeur #drag-handle { height: 50px; cursor: default; }
  #book-close { height: 50px; width: 50px; }
  .modal-card { max-height: calc(100vh - 16px); padding: 16px 14px; }
  .modal-card label.f select, .modal-card label.f input { width: 140px; }
  #f_sh, #f_sm, #f_dh, #f_dm { width: 58px; }
}
@media screen and (max-width: 440px) {
  .bigphone { display: none; }
}
@media screen and (max-width: 375px) {
  .top .bar > .avatar { display: none; }
  .top .monthDisplay span { font-size: 13px; padding: 0 6px; }
}
@media screen and (max-width: 340px) {
  .top .week-nav span { width: 38px; }
  .top .bar > .weekNum { display: none; }
}
@media screen and (min-width: 441px) { .smallphone { display: none; } }
@media screen and (min-width: 680px) {
  .dophone { display: none !important; }
  .mobTools { display: none; }
}

/* ---------- impression ---------- */
@media print {
  body { padding: 0 0 32px; background: #fff; color: #000; }
  .top, .float .left-pannel, .content .left-pannel, #mob_tool, .app_menu, .mobTools, .overlay, #filigrane, .bottom-push, #toast, #bookeur, #modal { display: none !important; }
  /* bandeau « Powered by E | Encorp Group » en bas de chaque page imprimée */
  .footer { display: block !important; position: fixed; bottom: 0; left: 0; right: 0; height: 26px; line-height: 26px; background: #0D1B33 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .footer span { color: #fff; right: 12px; left: auto; text-align: right; }
  .footer span svg { fill: #fff; }
  .daysName .dayName.active .num_jour { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .float { position: static; box-shadow: none; border-bottom: 1px solid #999; }
  .content { padding-top: 0; }
  .grid { margin-left: 0 !important; }
  .print-title { display: block !important; font-size: 16px; font-weight: 700; padding: 6px 0; }
  .ev, .chip { text-shadow: none; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .timegrid .daycol { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nowline { display: none; }
}
.print-title { display: none; }

/* ============ 3.1 - comptes, invitations, notifications ============ */
/* écran de connexion */
#loginBox { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 80; background: linear-gradient(135deg, var(--blue3) 0%, var(--blue) 100%); display: flex; padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.loginCard { background: #fff; color: #3c4043; border-radius: 10px; width: 100%; max-width: 400px; padding: 26px 28px 22px; box-shadow: var(--shadow2); text-align: left; margin: auto; }
.loginCard h1 { font-size: 26px; font-weight: 700; margin: 0 0 2px; color: var(--blue3); }
.loginSub { color: #5f6368; font-size: 13px; margin-bottom: 18px; }
.loginCard input { display: block; width: 100%; height: 44px; border: 1px solid #dadce0; border-radius: 6px; padding: 0 14px; margin-bottom: 10px; font-size: 15px; background: #fff; color: #3c4043; }
.loginCard input:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.loginCard .btn { width: 100%; justify-content: center; height: 44px; font-size: 15px; margin-top: 4px; }
.loginErr { color: var(--red); font-size: 13px; min-height: 18px; margin: 2px 0 6px; }
.loginLinks { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; }
.loginLinks a { color: var(--blue); text-decoration: none; }
.loginLinks a:hover { text-decoration: underline; }
body.login .top, body.login .float, body.login .content, body.login #mob_tool, body.login .app_menu { visibility: hidden; }
body.login .footer { z-index: 81; }
#loginBox { bottom: var(--footer-h); }

.top .modeChip { font-size: 11px; font-weight: 500; background: var(--orange); color: #fff; border-radius: 10px; padding: 0 9px; height: 20px; line-height: 20px; margin: 0 10px 0 -6px; cursor: pointer; white-space: nowrap; }
.top .modeChip:hover { background: var(--orange2); }

/* cloche + panneau de notifications */
.top .bellBtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; margin-left: 6px; }
.top .bellBtn:hover { background: var(--grey2); }
.top .bellBtn > svg { width: 22px; height: 22px; color: var(--noir); }
.notifBadge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; text-align: center; font-style: normal; }
.notifPanel { width: 370px; max-height: 70vh; overflow-y: auto; padding: 0; cursor: default; }
.notifPanel .nHead { display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 16px; border-bottom: 1px solid var(--line); font-weight: 500; position: sticky; top: 0; background: var(--bg2); z-index: 1; }
.notifPanel .nHead > span { flex: 1 1 auto; }
.nList { list-style: none; }
.nList .nItem { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--grey2); cursor: pointer; font-size: 13px; line-height: 1.35; }
.nList .nItem:hover { background: var(--grey2); }
.nList .nItem.unread { background: var(--blue2); }
.nList .nItem.unread .nTxt { font-weight: 500; }
.nList .nBody { flex: 1 1 auto; min-width: 0; }
.nList .nSub { color: var(--grey); font-size: 12px; margin-top: 2px; }
.nList .nEmpty { padding: 18px 16px; color: var(--grey0); font-size: 13px; }
.nBtns { display: inline-flex; gap: 6px; flex: none; }
.btn.small { height: 30px; padding: 0 12px; font-size: 12px; box-shadow: none; }
.nStatus { font-size: 11px; padding: 2px 8px; border-radius: 10px; color: #fff; flex: none; }
.nStatus.accepted { background: var(--green); }
.nStatus.declined { background: var(--red); }
.drawerBlock .nList .nItem { padding: 10px 4px; }

/* invités dans la fiche */
.attList { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.attList label { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 15px; padding: 4px 10px 4px 7px; cursor: pointer; font-size: 13px; color: var(--noir); background: var(--bg2); }
.attList label.on { background: var(--blue2); border-color: var(--blue); }
.attList input { width: 15px; height: 15px; accent-color: var(--blue); margin: 0; cursor: pointer; }
.attList .sw { width: 10px; height: 10px; border-radius: 50%; }
.attList .st { font-size: 10px; padding: 1px 6px; border-radius: 8px; color: #fff; }
.st.pending { background: var(--orange); }
.st.accepted { background: var(--green); }
.st.declined { background: var(--red); }
.ownerNote { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--blue2); border-radius: 6px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }
#bookeur.readonly #f_title, #bookeur.readonly select, #bookeur.readonly input, #bookeur.readonly textarea { opacity: .75; cursor: default; }
#bookeur.readonly .attList label { cursor: default; }

/* membres (super admin) */
.members .list li { gap: 8px; flex-wrap: wrap; }
.members .list li select { width: 150px; }
.members .list .nm small { color: var(--grey); }
.members .roleLbl { font-size: 12px; color: var(--grey); width: 150px; }
.members .newMember { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.members .newMember input[type="text"], .members .newMember input[type="password"], .members .newMember select { width: 100%; }

@media screen and (max-width: 680px) {
  body.srv .top .bar > .avatar { display: none; }
  .top .bellBtn { position: static; margin-left: 0; }
  .notifBadge { top: 10px; right: auto; margin-left: 20px; }
  .top .bellBtn .notifBadge { position: absolute; }
  .notifPanel { position: fixed; left: 0; right: 0; top: 65px; bottom: 26px; width: auto; max-height: none; border-radius: 0; border-left: 0; border-right: 0; }
}
@media screen and (max-width: 420px) {
  .members .newMember { grid-template-columns: 1fr; }
}

/* marque CAL·CORP : point dégradé orange (Comptasoft) entre les deux parties ; pour un point bleu : background: var(--blue) */
.brand { font-weight: 700; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }
.brand .dot { display: inline-block; width: .34em; height: .34em; border-radius: 50%; margin: 0 .14em; vertical-align: .1em; background: linear-gradient(135deg, #ff2000 0%, #ffa500 100%); box-shadow: 0 0.5px 1px rgba(0,0,0,.2); }
.loginCard .ver { display: inline-block; font-size: 12px; font-weight: 500; color: var(--grey); background: #f1f3f4; border: 1px solid #dadce0; border-radius: 4px; padding: 1px 7px; vertical-align: middle; letter-spacing: 0; text-transform: none; margin-left: 8px; position: relative; top: -2px; }
