/* ============================================================
   ABIBA App · surcouche au template (styles.css)
   Mobile-first 390 px · barre basse · badges Option · gros chiffres
   ============================================================ */
:root {
  --bottom-h: 64px;
}

/* ---- Coquille ---- */
.app.is-auth .sidebar, .app.is-auth .topbar, .app.is-auth #bottom-nav { display: none !important; }
.app.is-auth .main { min-height: 100vh; }
.app.is-auth .content { padding: 0; max-width: none; }
.content { max-width: 1240px; width: 100%; margin: 0 auto; }

/* Bandeau connexion perdue */
.offline-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--warn-bg); color: #7A3F0A; font-size: 13px; font-weight: 600; border-bottom: 1px solid #F0C9A8; }
.offline-bar svg { width: 17px; height: 17px; }

/* Barre basse mobile */
#bottom-nav { display: none; }
@media (max-width: 820px) {
  #bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; height: var(--bottom-h); background: var(--surface); border-top: 1px solid var(--border); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
  #bottom-nav button { border: none; background: none; font-family: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--text-3); cursor: pointer; padding: 6px 2px; min-width: 0; }
  #bottom-nav button span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  #bottom-nav button.is-active { color: var(--vert); }
  .bn__ico { position: relative; width: 24px; height: 24px; }
  .bn__ico svg { width: 24px; height: 24px; }
  .bn__opt { position: absolute; top: -3px; right: -6px; width: 7px; height: 7px; border-radius: 50%; background: var(--or); border: 1.5px solid #fff; }
  .bn__dot { position: absolute; top: -3px; left: -6px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 1.5px solid #fff; }
  .content { padding: 14px 16px calc(var(--bottom-h) + 20px); }
  .topbar { padding: 0 12px; }
  .role-switch { display: none; }
  .btn-demo { display: none; }
  .breadcrumb b { font-size: 15px; }
}
@media (min-width: 821px) { .topbar__menu { display: none; } }

/* ---- Badges Option ---- */
.opt-badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--or-100); color: #8A4A0A; border: 1px solid #F3C99F; line-height: 1.4; white-space: nowrap; }
.nav-item > span.opt-badge--nav { flex: 0 0 auto; overflow: visible; }
.opt-badge--nav { margin-left: 6px; font-size: 8.5px; padding: 1px 5px; letter-spacing: .04em; background: rgba(240,116,46,.18); color: #FFD3B5; border-color: rgba(240,116,46,.4); }
.nav-item .opt-badge--nav + .count { margin-left: 8px; }
.opt-banner { display: flex; align-items: center; gap: 9px; padding: 9px 13px; margin-bottom: 14px; border-radius: 10px; background: var(--or-100); color: #7A3F0A; font-size: 12.5px; border: 1px dashed #F3C99F; }
.opt-banner svg { width: 16px; height: 16px; flex-shrink: 0; }
.opt-banner span:first-of-type { flex: 1; }

/* ---- En-tête d'écran / meta données ---- */
.page-head { margin-bottom: 16px; }
.page-title { font-size: 22px; }
.data-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.data-meta span { display: inline-flex; align-items: center; gap: 5px; }
.data-meta svg { width: 13px; height: 13px; }
.back-lnk { border: none; background: none; font-family: inherit; color: var(--vert); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; padding: 0; margin-bottom: 8px; cursor: pointer; }
.back-lnk svg { width: 16px; height: 16px; }

/* ---- Gros chiffres ---- */
.big { padding: 4px 0 2px; }
.big__label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.big__val { font-family: var(--font-head); font-weight: 800; font-size: 34px; letter-spacing: -.02em; line-height: 1.15; margin: 4px 0; word-break: break-word; }
.big__val small { font-size: 16px; color: var(--text-3); font-weight: 600; }
.big__foot { font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.big--danger .big__val { color: var(--danger); }
.kpi__val { font-size: 24px; }
.kpi-grid { gap: 12px; }
@media (max-width: 480px) { .kpi-grid { grid-template-columns: 1fr 1fr; } .big__val { font-size: 30px; } }

/* ---- Listes mobiles ---- */
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; min-height: 60px; }
.lrow:last-child { border-bottom: none; }
.lrow:hover { background: var(--surface-2); }
.lrow__ico { width: 38px; height: 38px; border-radius: 10px; background: var(--vert-100); color: var(--vert); display: grid; place-items: center; flex-shrink: 0; }
.lrow__ico svg { width: 19px; height: 19px; }
.lrow__ico.o { background: var(--or-100); color: #B55A18; } .lrow__ico.t { background: var(--terre-100); color: var(--terre); } .lrow__ico.i { background: var(--info-bg); color: var(--info); } .lrow__ico.g { background: var(--surface-3); color: var(--text-2); }
.lrow__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lrow__txt b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow__txt span { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow__end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.lrow__end b { font-family: var(--font-head); font-size: 14px; white-space: nowrap; }
.lrow__arrow { color: var(--text-3); flex-shrink: 0; } .lrow__arrow svg { width: 16px; height: 16px; }
.in { color: var(--ok); } .out { color: var(--danger); }

/* ---- Alertes cockpit ---- */
.alert-row { padding: 12px 16px; gap: 12px; }
.alert-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.alert-ico svg { width: 18px; height: 18px; }
.alert-row--danger .alert-ico { background: var(--danger-bg); color: var(--danger); }
.alert-row--warn .alert-ico { background: var(--warn-bg); color: var(--warn); }
.alert-row--info .alert-ico { background: var(--info-bg); color: var(--info); }
.alert-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.alert-txt b { font-size: 14px; } .alert-txt span { font-size: 12px; color: var(--text-3); }
.alert-count { font-family: var(--font-head); font-weight: 800; font-size: 18px; }

/* ---- État vide ---- */
.empty { text-align: center; padding: 40px 20px; color: var(--text-3); }
.empty svg { width: 44px; height: 44px; margin-bottom: 12px; color: var(--text-3); }
.empty h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.empty p { font-size: 13px; max-width: 360px; margin: 0 auto; }
.card--locked { border-style: dashed; background: var(--surface-2); }
.card--locked svg { width: 22px; height: 22px; color: var(--text-3); flex-shrink: 0; margin-top: 2px; }

/* ---- Graphiques ---- */
.vbar__col { max-width: 40px; border-radius: 6px 6px 3px 3px; }
.vbar__val { font-size: 10px; color: var(--text-2); font-weight: 700; height: 12px; }
.line-chart { width: 100%; height: 150px; display: block; }
.line-lbls { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 4px; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.hbars .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.card__body { padding: 16px; }
.card__foot { padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }

/* ---- Formulaires ---- */
.inp { width: 100%; font-family: inherit; font-size: 15px; padding: 12px 14px; border-radius: 12px; background: var(--surface-3); border: 1px solid transparent; outline: none; color: var(--text); }
.inp:focus { border-color: var(--vert-clair); background: var(--surface); }
.btn { min-height: 44px; font-size: 14px; }
.btn--sm { min-height: 34px; }
.btn--block { width: 100%; justify-content: center; }
.modal--wide { max-width: 720px; }
.modal__text { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.switch { position: relative; width: 44px; height: 26px; display: inline-block; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: var(--border-2); border-radius: 26px; transition: .2s; cursor: pointer; }
.switch i::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + i { background: var(--vert); }
.switch input:checked + i::before { transform: translateX(18px); }
.switch.is-disabled i { opacity: .6; cursor: not-allowed; }
.tab__count { background: var(--surface-3); border-radius: 10px; padding: 1px 7px; font-size: 11px; margin-left: 4px; }
.tabs { -webkit-overflow-scrolling: touch; }
.tab { white-space: nowrap; }

/* ---- Toast ---- */
.toast { position: fixed; bottom: calc(var(--bottom-h) + 16px); left: 50%; transform: translate(-50%, 10px); background: var(--encre); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 13px; font-weight: 600; z-index: 100; box-shadow: var(--shadow); opacity: 0; transition: .2s; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); pointer-events: none; }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: var(--danger); }
@media (min-width: 821px) { .toast { bottom: 24px; } }

/* ---- Écrans d'authentification ---- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); }
.auth__card { width: 100%; max-width: 400px; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 28px 24px; }
.auth__logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; text-align: center; }
.auth__logo img { width: 64px; height: 64px; border-radius: 16px; }
.auth__logo b { font-family: var(--font-head); font-size: 20px; }
.auth__logo span { font-size: 12.5px; color: var(--text-3); }
.auth__card .fld { margin-bottom: 14px; }
.auth__links { text-align: center; margin-top: 16px; font-size: 13px; }
.auth__profile { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text-3); display: flex; flex-direction: column; gap: 8px; }
.pin { display: flex; justify-content: center; gap: 12px; margin: 18px 0 22px; }
.pin i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-2); transition: .15s; }
.pin i.is-on { background: var(--vert); border-color: var(--vert); }
.pin.is-error i { border-color: var(--danger); background: var(--danger-bg); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pinpad button { height: 58px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); font-family: var(--font-head); font-size: 22px; font-weight: 700; cursor: pointer; color: var(--text); }
.pinpad button:hover { background: var(--surface-3); }
.pinpad button.ghost { background: transparent; border-color: transparent; font-size: 13px; font-family: var(--font-body); font-weight: 600; color: var(--text-2); }
.auth__err { background: var(--danger-bg); color: var(--danger); padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; }

/* ---- Écran d'accueil de la maquette ---- */
.intro { max-width: 1100px; margin: 0 auto; padding: 28px 16px 60px; }
.intro__hero { background: var(--vert-800); color: #fff; border-radius: var(--r-xl); padding: 28px 24px; margin-bottom: 22px; }
.intro__hero h1 { font-family: var(--font-head); font-size: 26px; margin: 8px 0 6px; }
.intro__hero p { color: rgba(255,255,255,.75); max-width: 640px; font-size: 14px; line-height: 1.55; }
.intro__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.intro__legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.socle-badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--vert-100); color: var(--vert-800); border: 1px solid #C9D6F0; line-height: 1.4; }
.intro__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.intro__sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.intro__sec h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.intro__sec h3 svg { width: 17px; height: 17px; color: var(--vert); }
.intro__sec h3 .spacer { flex: 1; }
.intro__sec a { display: flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); cursor: pointer; text-decoration: none; }
.intro__sec a:last-child { border-bottom: none; }
.intro__sec a:hover { background: var(--surface-2); color: var(--vert); }
.intro__sec a .n { color: var(--text-3); font-size: 11.5px; font-family: var(--font-head); font-weight: 700; min-width: 28px; }
.intro__sec a .spacer { flex: 1; }
.intro__sec a svg { width: 14px; height: 14px; color: var(--text-3); }

/* ---- Cockpit ---- */
.cockpit-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cockpit-head__txt { flex: 1; min-width: 0; }
.cockpit-head__txt h1 { font-family: var(--font-head); font-size: 19px; font-weight: 800; }
.cockpit-head__txt p { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.accounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.account { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.account span { display: block; font-size: 11px; color: var(--text-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account b { display: block; font-family: var(--font-head); font-size: 14px; margin-top: 2px; white-space: nowrap; }
@media (max-width: 400px) { .accounts { grid-template-columns: 1fr; } .account { display: flex; justify-content: space-between; align-items: center; } .account b { margin-top: 0; } }
.cockpit-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 821px) { .cockpit-grid { grid-template-columns: 1fr 1fr; } .cockpit-grid .span2 { grid-column: 1 / -1; } }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick button { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; color: var(--text); min-height: 52px; }
.quick button svg { width: 18px; height: 18px; color: var(--vert); flex-shrink: 0; }
.quick button:hover { border-color: var(--vert-clair); background: var(--surface-2); }

/* ---- Rôle switch : ajout d'un libellé ---- */
.role-switch button[data-role="admin"].is-active { background: var(--or); color: #fff; }

/* Écran provisoire (étape suivante) */
.wip { border: 1px dashed var(--border-2); border-radius: var(--r-lg); padding: 36px 20px; text-align: center; color: var(--text-3); background: var(--surface-2); }
.wip b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* ---- Correctifs responsive (étape 2) ---- */
.kpi { min-width: 0; }
.kpi__val { word-break: break-word; overflow-wrap: anywhere; }
.kpi-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .kpi-grid--3 { grid-template-columns: 1fr; } .kpi-grid--3 .kpi { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; } .kpi-grid--3 .kpi__top { margin: 0; flex: 1; min-width: 140px; } .kpi-grid--3 .kpi__val { font-size: 20px; } .kpi-grid--3 .kpi__foot { width: 100%; margin-top: 2px; } }
.vbars { gap: 6px; } .vbar { min-width: 0; } .vbar__lbl { font-size: 10px; overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; } .vbar__val { white-space: nowrap; }
@media (max-width: 480px) { .vbars { gap: 3px; } .vbar__lbl { font-size: 9px; } }
.content { overflow-x: hidden; }
.cockpit-grid > *, .grid > * { min-width: 0; }
/* ---- Back-office ---- */
.dropzone { border: 2px dashed var(--border-2); border-radius: 14px; padding: 26px 16px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-3); background: var(--surface-2); }
.dropzone svg { width: 30px; height: 30px; margin-bottom: 6px; } .dropzone b { color: var(--text); font-size: 14px; } .dropzone span { font-size: 12px; }
.dropzone:hover, .dropzone.is-ok { border-color: var(--vert); background: var(--vert-100); color: var(--vert); }
code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--surface-3); padding: 2px 6px; border-radius: 6px; }
.cell-person span { display: block; }
.breadcrumb { white-space: nowrap; overflow: hidden; } @media (max-width: 1400px) { .breadcrumb .crumb-hide { display: none; } }
/* ---- Clients / factures ---- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters .search--full { margin: 0; flex: 1 1 200px; min-width: 0; }
.filters select { flex: 1 1 150px; width: auto; padding: 10px 12px; font-size: 14px; }
.tabs--chips { border: none; gap: 6px; margin-bottom: 12px; padding-bottom: 2px; }
.tabs--chips .tab { border: 1px solid var(--border); border-radius: 20px; padding: 7px 12px; font-size: 13px; }
.tabs--chips .tab.is-active { background: var(--vert); color: #fff; border-color: var(--vert); }
.tot { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.tot--ttc { border: none; font-size: 16px; padding-top: 12px; } .tot--ttc b { font-family: var(--font-head); font-size: 20px; color: var(--vert); }
.fline { display: grid; grid-template-columns: 1fr 70px 130px auto auto 36px; gap: 8px; align-items: center; }
.fline .inp { padding: 10px 12px; font-size: 14px; } .fline__tva { font-size: 11px; color: var(--text-3); white-space: nowrap; } .fline__tot { font-family: var(--font-head); white-space: nowrap; min-width: 70px; text-align: right; }
@media (max-width: 640px) { .fline { grid-template-columns: 1fr 1fr; } .fline .inp:first-child { grid-column: 1 / -1; } .fline__tva { display: none; } .fline__tot { grid-column: 1; } }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); margin-top: 12px; color: var(--text-2); }
.note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.note--danger { background: var(--danger-bg); color: #7A2A20; }
.steps { display: flex; gap: 6px; margin-top: 14px; }
.step { flex: 1; text-align: center; font-size: 11px; color: var(--text-3); font-weight: 600; }
.step i { display: block; height: 6px; border-radius: 4px; background: var(--surface-3); margin-bottom: 6px; }
.step.is-done i { background: var(--vert-clair); } .step.is-cur i { background: var(--vert); } .step.is-cur { color: var(--vert); }
.pdf { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 32px; max-width: 800px; margin: 0 auto; font-size: 13px; box-shadow: var(--shadow); }
.pdf__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 2px solid var(--vert); margin-bottom: 18px; }
.pdf__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; line-height: 1.5; }
.pdf__table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.pdf__table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding: 8px; border-bottom: 1px solid var(--border); }
.pdf__table td { padding: 9px 8px; border-bottom: 1px solid var(--border); }
.pdf__totals { margin-left: auto; width: 280px; max-width: 100%; }
.pdf__totals > div { display: flex; justify-content: space-between; padding: 6px 8px; }
.pdf__totals .ttc { background: var(--vert-100); border-radius: 8px; font-size: 15px; margin-top: 6px; } .pdf__totals .ttc b { color: var(--vert-800); }
.pdf__pay { margin-top: 18px; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; }
.pdf__legal { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 10.5px; color: var(--text-3); line-height: 1.5; text-align: center; }
@media (max-width: 640px) { .pdf { padding: 18px 14px; } .pdf__parties { grid-template-columns: 1fr; } }
/* ---- Stocks / inventaire ---- */
.inv-head, .inv-row { display: grid; grid-template-columns: 1fr 70px 90px 60px; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.inv-head { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 600; }
.inv-row:last-of-type { border-bottom: none; }
.inv-inp { padding: 8px 10px; font-size: 15px; text-align: right; font-weight: 600; }
@media (max-width: 480px) { .inv-head, .inv-row { grid-template-columns: 1fr 50px 80px 50px; gap: 6px; padding: 10px 12px; } }
/* ---- RH ---- */
.pt-ctl { display: flex; gap: 8px; width: 100%; padding-left: 42px; align-items: flex-end; flex-wrap: wrap; }
.pt-ctl .inp { padding: 8px 10px; font-size: 14px; } .pt-ctl .seg button { padding: 8px 4px; font-size: 12px; }
@media (max-width: 480px) { .pt-ctl { padding-left: 0; } .pt-ctl .seg { width: 100%; flex: 1 1 100%; } }
table.plan td, table.plan th { text-align: center; padding: 8px; } table.plan td:first-child, table.plan th:first-child { text-align: left; }
table.plan .is-today { background: var(--vert-100); } table.plan tbody tr:hover { background: none; cursor: default; }
.plan-cell { width: 44px; height: 40px; border-radius: 10px; border: none; font-family: var(--font-head); font-weight: 800; font-size: 15px; cursor: pointer; }
.plan-cell:hover { outline: 2px solid var(--vert-clair); }
.lrow .avatar { flex-shrink: 0; }
/* ---- Assistant IA ---- */
.chat { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); height: calc(100vh - var(--topbar-h) - 120px); min-height: 480px; overflow: hidden; }
@media (max-width: 820px) { .chat { height: calc(100vh - var(--topbar-h) - var(--bottom-h) - 100px); } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chat__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.msg { display: flex; flex-direction: column; max-width: 85%; }
.msg--user { align-self: flex-end; align-items: flex-end; } .msg--bot { align-self: flex-start; }
.msg__bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; background: var(--surface); border: 1px solid var(--border); }
.msg--user .msg__bubble { background: var(--vert); color: #fff; border-color: var(--vert); border-bottom-right-radius: 4px; }
.msg--bot .msg__bubble { border-bottom-left-radius: 4px; }
.msg__bubble ul { margin: 6px 0 6px 18px; } .msg__bubble .lnk { display: inline-block; margin-top: 4px; }
.msg__ts { font-size: 10.5px; color: var(--text-3); margin-top: 3px; padding: 0 4px; }
.msg__src { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--border); } .msg__src svg { width: 12px; height: 12px; }
.msg__typing { display: flex; gap: 4px; padding: 14px 16px; } .msg__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; } .msg__typing i:nth-child(2) { animation-delay: .2s; } .msg__typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.act { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--vert-100); border: 1px solid #C9D6F0; display: flex; flex-direction: column; gap: 10px; }
.act .info-grid { gap: 0 16px; } .act .info { padding: 5px 0; border-color: #C9D6F0; }
.act--done { background: var(--ok-bg); }
.chat__sugg { display: flex; gap: 8px; padding: 10px 16px 0; overflow-x: auto; flex-shrink: 0; }
.chat__sugg button { flex-shrink: 0; border: 1px solid var(--border); background: var(--surface); border-radius: 20px; padding: 7px 12px; font-family: inherit; font-size: 12.5px; cursor: pointer; color: var(--text-2); } .chat__sugg button:hover { border-color: var(--vert); color: var(--vert); }
.chat__input { display: flex; gap: 8px; padding: 10px 16px 14px; flex-shrink: 0; } .chat__input .btn { padding: 0 16px; }
/* ---- Notifications ---- */
.notif.is-unread { background: var(--vert-100); } .notif.is-unread:hover { background: #DCE5F6; }
.notif__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); flex-shrink: 0; }
@media (max-width: 640px) { #chat-down span, #chat-down { font-size: 0; } #chat-down svg { font-size: 14px; width: 16px; height: 16px; } .chat__head .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
/* ---- Sélecteur d'entreprise (admin) ---- */
.brand.is-switchable { cursor: pointer; border-radius: 12px; }
.brand.is-switchable:hover { background: rgba(255,255,255,.06); }
.brand__chev { display: inline-flex; vertical-align: middle; margin-left: 2px; } .brand__chev svg { width: 12px; height: 12px; }
.brand.is-switchable .brand__sub { color: #FFD3B5; }
