/* ==========================================================================
   POS Monitor — mobile first
   Palette : encre #12213A · papier #F3F5F9 · vert #0F8F6B · ambre #E39A1C
             corail #E0554A · bleu #2F6BFF
   ========================================================================== */
:root {
  --ink: #12213A;
  --ink-2: #2A3A56;
  --ink-3: #6B7893;
  --paper: #F3F5F9;
  --white: #FFFFFF;
  --line: #E4E8F0;
  --green: #0F8F6B;
  --green-soft: #E3F5EE;
  --amber: #E39A1C;
  --amber-soft: #FBF1DC;
  --coral: #E0554A;
  --coral-soft: #FCE7E5;
  --blue: #2F6BFF;
  --blue-soft: #E6EDFF;
  --violet: #7A4DFF;
  --violet-soft: #EEE8FF;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  --shadow: 0 6px 24px rgba(18, 33, 58, .08);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2 { margin: 0; }
h2 { font-size: 15px; font-weight: 700; }
.muted { color: var(--ink-3); font-size: 12px; }
.warn { color: var(--amber); }
.skeleton { color: transparent; background: rgba(255,255,255,.14); border-radius: 8px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---- Barre du haut ------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: calc(10px + var(--safe-t)) 16px 12px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-brand img { border-radius: 10px; flex: none; }
.topbar-title { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-sub { font-size: 11px; opacity: .65; }
.icon-btn {
  width: 38px; height: 38px; border: 0; border-radius: 12px;
  background: rgba(255,255,255,.1); color: inherit;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex: none;
}
.sheet .icon-btn { background: var(--paper); color: var(--ink); }

.topbar-controls { display: flex; gap: 8px; margin-top: 12px; }
.select-wrap {
  position: relative; display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1); border-radius: 12px; padding: 0 10px; height: 40px; min-width: 0;
}
.select-wrap.grow { flex: 1; }
.select-wrap svg { flex: none; opacity: .8; }
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; color: #fff; font: inherit; font-weight: 700; font-size: 13px;
  width: 100%; min-width: 0; padding-right: 18px; height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}
.select-wrap select option { color: var(--ink); }
.date-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  background: var(--green); color: #fff; border: 0; border-radius: 12px; height: 40px; padding: 0 12px;
  font-weight: 700; font-size: 13px; max-width: 46%;
}
.date-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Page ---------------------------------------------------------------- */
.page { padding: 14px 14px calc(30px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }

/* Hero CA */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, #1C3358 100%);
  color: #fff; border-radius: var(--r-lg); padding: 18px 18px 14px;
  box-shadow: var(--shadow);
}
.hero-label { font-size: 12px; opacity: .7; }
.hero-amount { font-size: 34px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.hero-amount .cur { font-size: 15px; font-weight: 600; opacity: .7; margin-left: 4px; }
.hero-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; opacity: .85; margin-top: 4px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.trend.up { color: #5BE0B1; } .trend.down { color: #FF9A8F; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats div { min-width: 0; }
.hero-stats small { display: block; font-size: 10.5px; opacity: .65; white-space: nowrap; }
.hero-stats b { display: block; font-size: 13.5px; font-weight: 800; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* Cartes */
.card { background: var(--white); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.chart-wrap { position: relative; height: 170px; }
.link-btn { background: none; border: 0; color: var(--blue); font-weight: 700; font-size: 13px; padding: 0; }

/* Barres par boutique */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.bar-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-val { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; height: 7px; border-radius: 6px; background: var(--paper); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: var(--green); width: 0; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.bar-sub { grid-column: 1 / -1; font-size: 11px; color: var(--ink-3); margin-top: -2px; }

/* Cases */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  text-align: left; background: var(--white); border: 0; border-radius: var(--r-lg);
  padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; min-height: 128px;
  -webkit-tap-highlight-color: transparent; transition: transform .08s;
}
.tile:active { transform: scale(.97); }
.tile-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 8px; }
.tile-icon svg { width: 18px; height: 18px; }
.tile-icon.sales { background: var(--green-soft); color: var(--green); }
.tile-icon.stock { background: var(--blue-soft); color: var(--blue); }
.tile-icon.transfer { background: var(--violet-soft); color: var(--violet); }
.tile-icon.pay { background: var(--amber-soft); color: var(--amber); }
.tile-icon.expense { background: var(--coral-soft); color: var(--coral); }
.tile-icon.top { background: #FFF4D6; color: #C77F00; }
.tile-title { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.tile-value { font-size: 19px; font-weight: 800; letter-spacing: -.3px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub { font-size: 11px; color: var(--ink-3); }
.foot { text-align: center; margin: 6px 0 0; }

/* ---- Bottom sheet -------------------------------------------------------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(18,33,58,.45); z-index: 40; backdrop-filter: blur(2px); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--white); border-radius: 24px 24px 0 0;
  max-height: 92vh; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
  padding-bottom: var(--safe-b);
  max-width: 720px; margin: 0 auto;
}
.sheet.open { transform: translateY(0); }
.sheet[hidden] { display: none; }
.sheet-small { max-height: 80vh; }
.sheet-grip { width: 40px; height: 5px; border-radius: 5px; background: var(--line); margin: 10px auto 4px; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 8px; flex: none; }
.sheet-head h2 { font-size: 17px; font-weight: 800; }
.sheet-filters { padding: 0 16px 10px; display: flex; flex-direction: column; gap: 8px; flex: none; border-bottom: 1px solid var(--line); }
.sheet-filters:empty { display: none; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 16px 18px; flex: 1; }

.search {
  display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 12px; padding: 0 12px; height: 42px;
}
.search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 14px; min-width: 0; outline: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1.5px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Listes dans la sheet */
.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.summary-strip div { background: var(--paper); border-radius: var(--r-md); padding: 10px; }
.summary-strip small { display: block; font-size: 10.5px; color: var(--ink-3); }
.summary-strip b { display: block; font-size: 14px; font-weight: 800; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.list { display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%;
}
.row:last-child { border-bottom: 0; }
.row-badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--paper); color: var(--ink-2); }
.row-main { min-width: 0; }
.row-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.row-amount { text-align: right; }
.row-amount b { display: block; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-amount small { font-size: 11px; font-weight: 700; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 800; border-radius: 6px; padding: 2px 6px; }
.tag.paid, .tag.completed { background: var(--green-soft); color: var(--green); }
.tag.due, .tag.pending { background: var(--coral-soft); color: var(--coral); }
.tag.partial, .tag.in_transit { background: var(--amber-soft); color: var(--amber); }
.tag.low { background: var(--amber-soft); color: var(--amber); }
.tag.out { background: var(--coral-soft); color: var(--coral); }
.tag.ok { background: var(--green-soft); color: var(--green); }

.bar-row.compact .bar-fill { background: var(--blue); }
.detail { background: var(--paper); border-radius: var(--r-md); padding: 10px 12px; margin: 4px 0 8px; }
.detail .line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.detail .line:last-child { border-bottom: 0; }
.detail .line span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty { text-align: center; padding: 30px 10px; color: var(--ink-3); font-size: 14px; }
.empty b { display: block; color: var(--ink); font-weight: 800; margin-bottom: 4px; }
.loading { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.loading i { display: block; height: 52px; border-radius: 12px; background: linear-gradient(90deg, var(--paper), #E9EDF4, var(--paper)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.load-more { width: 100%; margin-top: 10px; border: 1.5px solid var(--line); background: var(--white); border-radius: 12px; padding: 11px; font-weight: 700; }

/* Sheet période */
.range-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.range-fields label { font-size: 12px; font-weight: 700; color: var(--ink-3); display: flex; flex-direction: column; gap: 6px; }
.range-fields input { font: inherit; font-size: 13px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; background: var(--paper); color: var(--ink); width: 100%; }
.btn-primary { width: 100%; border: 0; background: var(--green); color: #fff; border-radius: 14px; padding: 14px; font-weight: 800; font-size: 15px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 700; z-index: 60; box-shadow: var(--shadow); max-width: 90vw; }

/* ---- Login ---------------------------------------------------------------- */
.login-body { background: var(--ink); color: #fff; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { width: 100%; max-width: 360px; text-align: center; }
.login-mark img { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.login h1 { font-size: 24px; font-weight: 800; margin-top: 16px; }
.login .muted { color: rgba(255,255,255,.6); font-size: 14px; }
.login-form { margin-top: 26px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.login-form label { font-size: 13px; font-weight: 700; opacity: .8; }
.login-form input { font: inherit; font-size: 16px; padding: 14px; border-radius: 14px; border: 0; background: rgba(255,255,255,.1); color: #fff; outline: 2px solid transparent; }
.login-form input:focus { outline-color: var(--green); }
.login-form .btn-primary { margin-top: 8px; }
.error { color: #FF9A8F; font-size: 13px; font-weight: 700; margin: 0; }

/* Accessibilité */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   v2 — IA, notifications, pointage, admin
   ========================================================================== */
.topbar-actions { display: flex; gap: 4px; flex: none; }
#chatTopBtn { background: var(--violet); }
.badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
#bellBtn { position: relative; }
.tile-wide { grid-column: 1 / -1; min-height: 0; }
.tile-icon.att { background: #E6F4FF; color: #0B7BD6; }
.presence-bar { display: flex; height: 6px; border-radius: 6px; background: var(--paper); overflow: hidden; margin-top: 8px; }
.presence-bar i { display: block; height: 100%; transition: width .5s; }

/* Bandeau abonnement */
.banner { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; border-radius: var(--r-md); padding: 12px 14px; font-size: 13px; }
.banner.warn { background: var(--amber-soft); color: #7A4F00; }
.banner.danger { background: var(--coral-soft); color: #8F1F16; }
.banner b { font-weight: 800; } .banner span { grid-row: 2; font-size: 12px; opacity: .8; }
.banner a { grid-row: 1 / 3; background: var(--ink); color: #fff; text-decoration: none; font-weight: 800; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; }

/* Analyse IA */
.ai-card { background: linear-gradient(135deg, #FFFFFF 0%, #F3EEFF 100%); }
.insight { font-size: 13.5px; line-height: 1.5; }
.insight ul { margin: 4px 0 6px 0; padding-left: 18px; } .insight li { margin: 3px 0; }

/* FAB + chat */
.fab { position: fixed; right: 16px; bottom: calc(20px + var(--safe-b)); z-index: 45; -webkit-transform: translateZ(0); width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--violet); color: #fff; box-shadow: 0 10px 28px rgba(122,77,255,.4); display: grid; place-items: center; transition: transform .2s, opacity .2s; }
.fab.hide { transform: scale(.5); opacity: 0; pointer-events: none; }
.chat { position: fixed; inset: auto 0 0 0; z-index: 55; height: 82vh; max-width: 720px; margin: 0 auto; background: var(--white); border-radius: 24px 24px 0 0; display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(18,33,58,.25); transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); padding-bottom: var(--safe-b); }
.chat.open { transform: translateY(0); } .chat[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.chat-head b { font-size: 15px; font-weight: 800; } .chat-tools { display: flex; gap: 6px; }
.chat .icon-btn { background: var(--paper); color: var(--ink); width: 36px; height: 36px; } .chat .icon-btn.active { background: var(--violet); color: #fff; }
.chat-body { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.msg.bot { background: var(--paper); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.user { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg.err { background: var(--coral-soft); color: #8F1F16; }
.msg.typing i { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite; } .msg.typing i:nth-child(2) { animation-delay: .2s } .msg.typing i:nth-child(3) { animation-delay: .4s }
@keyframes blink { 50% { opacity: .2 } }
.msg-tools { display: flex; gap: 6px; margin-top: 6px; } .msg-tools button { border: 0; background: var(--white); border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.sqlbox { display: block; font-size: 11px; background: var(--ink); color: #BFE8D8; padding: 8px; border-radius: 8px; margin-top: 6px; white-space: pre-wrap; word-break: break-all; }
.tbl-wrap { overflow-x: auto; margin-top: 8px; border-radius: 8px; background: var(--white); }
.tbl-wrap table { border-collapse: collapse; font-size: 12px; min-width: 100%; } .tbl-wrap th, .tbl-wrap td { padding: 5px 8px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); } .tbl-wrap th { font-weight: 800; color: var(--ink-3); }
.chat-sugg { flex-wrap: wrap; }
.chat-input { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; border: 0; background: var(--paper); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 14px; outline: none; min-width: 0; }
.send-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; }
#micBtn.rec { background: var(--coral); color: #fff; animation: pulse 1s infinite; }

/* Pointage temps réel */
.zones { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.zone-pill { flex: none; display: flex; align-items: center; gap: 5px; background: var(--paper); border-radius: 999px; padding: 5px 10px; font-size: 12px; }
.zp { font-weight: 800; padding: 1px 6px; border-radius: 6px; } .zp.on { background: var(--green-soft); color: var(--green); } .zp.off { background: var(--amber-soft); color: var(--amber); } .zp.abs { background: var(--coral-soft); color: var(--coral); }
.tl-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); padding: 0 2px; margin-bottom: 4px; }
.tl { padding: 8px 0; border-bottom: 1px solid var(--line); }
.tl-head { display: flex; align-items: center; gap: 6px; font-size: 13px; } .tl-head b { font-weight: 800; } .tl-right { margin-left: auto; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; } .st.present { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); } .st.left { background: var(--amber); } .st.absent { background: var(--coral); }
.tl-track { position: relative; height: 12px; background: var(--paper); border-radius: 6px; margin-top: 6px; }
.tl-track b { position: absolute; top: 0; height: 100%; background: var(--green); border-radius: 6px; opacity: .85; }
.tl-track .mk { position: absolute; top: -2px; width: 4px; height: 16px; border-radius: 2px; background: var(--ink); transform: translateX(-50%); } .tl-track .mk.out { background: var(--amber); } .tl-track .mk.flag { background: var(--coral); }
.row-badge.in { background: var(--green-soft); color: var(--green); } .row-badge.out { background: var(--amber-soft); color: var(--amber); }
.row.unread .row-title::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 6px; vertical-align: middle; }

/* Calendrier */
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .cal-grid > i { font-style: normal; font-size: 11px; color: var(--ink-3); text-align: center; font-weight: 700; }
.cal-day { position: relative; aspect-ratio: 1; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--green) calc(var(--r) * 85%), var(--paper)); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.cal-day.none { background: var(--paper); color: var(--ink-3); font-weight: 600; }
.cal-day small { font-size: 9.5px; font-weight: 700; opacity: .8; } .cal-day em { position: absolute; top: 2px; right: 3px; font-style: normal; font-size: 9px; }

/* Espace pointage employé */
.net-pill { font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.12); } .net-pill.on { background: var(--green); } .net-pill.off { background: var(--coral); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; } .field label, .f > span { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.field input, .f input, .f select { font: inherit; font-size: 16px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; background: var(--paper); color: var(--ink); width: 100%; }
.f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; } .f.chk { flex-direction: row; align-items: center; font-size: 14px; } .f.chk input { width: auto; }
.recent { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.emp-card { display: flex; align-items: center; gap: 12px; } .emp-avatar { width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; } .emp-info { flex: 1; display: flex; flex-direction: column; min-width: 0; } .emp-info b { font-weight: 800; }
.clock-card { text-align: center; padding: 8px 0 4px; }
.clock-time { font-size: 54px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; line-height: 1; } .clock-date { color: var(--ink-3); font-size: 13px; text-transform: capitalize; margin-top: 4px; }
.gps-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 10px; background: var(--white); border-radius: 999px; padding: 6px 12px; box-shadow: var(--shadow); }
.gps-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); animation: pulse 1.2s infinite; } .gps-dot.ok { background: var(--green); animation: none; } .gps-dot.bad { background: var(--coral); animation: none; }
.punch-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.punch-btn { border: 0; border-radius: 22px; padding: 22px 10px; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: var(--shadow); transition: transform .08s; }
.punch-btn:active { transform: scale(.96); } .punch-btn span { font-size: 20px; font-weight: 800; } .punch-btn small { opacity: .8; font-size: 12px; }
.punch-btn.in { background: var(--green); } .punch-btn.out { background: var(--ink); }
.punch-status { text-align: center; font-size: 13px; font-weight: 700; min-height: 18px; margin: 0; } .punch-status.ok { color: var(--green); } .punch-status.warn { color: var(--amber); } .punch-status.err { color: var(--coral); }
.timeline { display: flex; flex-direction: column; } .tl-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .tl-row:last-child { border: 0; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; } .tl-dot.in { background: var(--green); } .tl-dot.out { background: var(--amber); } .tl-main { flex: 1; }

/* Admin */
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: rgba(255,255,255,.1); color: #fff; border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 700; } .tabs button.active { background: var(--white); color: var(--ink); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; } .btn-row .btn-primary { width: auto; flex: 1; padding: 12px; font-size: 14px; }
.btn-secondary { border: 1.5px solid var(--line); background: var(--white); border-radius: 12px; padding: 11px 14px; font-weight: 700; font-size: 13.5px; text-decoration: none; color: var(--ink); text-align: center; flex: 1; }
.zone { padding: 12px 0; border-bottom: 1px solid var(--line); } .zone:last-child { border: 0; }
.report-head { background: var(--paper); border-radius: var(--r-md); padding: 12px; margin: 14px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .report-head small { width: 100%; }
.sub-box { background: var(--green-soft); border-radius: var(--r-md); padding: 12px; font-size: 14px; line-height: 1.5; color: var(--ink); } .sub-box.warn { background: var(--amber-soft); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .stat-grid div { background: var(--paper); border-radius: var(--r-md); padding: 10px; } .stat-grid small { display: block; font-size: 11px; } .stat-grid b { font-size: 14px; font-weight: 800; color: var(--coral); } .stat-grid b.ok { color: var(--green); }
.range-fields select { font: inherit; font-size: 13px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; background: var(--paper); color: var(--ink); width: 100%; }
.search .link-btn { flex: none; }
code { font-size: 11.5px; background: var(--paper); padding: 1px 5px; border-radius: 5px; }

/* ==========================================================================
   v3 — décisions, questions rapides
   ========================================================================== */
.decide-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; background: linear-gradient(135deg, #12213A, #1C3358); color: #fff; }
.decide-card h2 { color: #fff; } .decide-card .muted { color: rgba(255,255,255,.7); font-size: 12px; margin: 4px 0 0; } .decide-arrow { font-size: 30px; opacity: .7; }
.verdict { background: var(--white); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow); }
.verdict-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; } .verdict-head small { display: block; font-size: 11px; color: var(--ink-3); } .verdict-head b { font-size: 15px; font-weight: 800; }
.qscore { text-align: center; border-radius: 14px; padding: 6px 12px; min-width: 64px; } .qscore b { display: block; font-size: 20px; font-weight: 800; line-height: 1; } .qscore small { font-size: 10px; font-weight: 700; }
.qscore.ok { background: var(--green-soft); color: var(--green); } .qscore.warn { background: var(--amber-soft); color: var(--amber); } .qscore.bad { background: var(--coral-soft); color: var(--coral); }
.verdict-cols { display: grid; gap: 10px; } @media (min-width: 640px) { .verdict-cols { grid-template-columns: 1fr 1fr; } }
.v-col { border-radius: var(--r-md); padding: 10px 12px; } .v-col.win { background: var(--green-soft); } .v-col.issue { background: var(--coral-soft); }
.v-col h3 { margin: 0 0 6px; font-size: 13px; font-weight: 800; }
.v-item { padding: 6px 0; border-top: 1px dashed rgba(0,0,0,.08); font-size: 13px; } .v-item:first-of-type { border-top: 0; } .v-item b { display: block; font-weight: 800; } .v-item span { display: block; color: var(--ink-2); font-size: 12.5px; } .v-item em { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--coral); margin-top: 2px; }
.verdict .btn-row { margin-top: 10px; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } @media (min-width: 520px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
.kpi { background: var(--paper); border-radius: var(--r-md); padding: 10px; display: flex; flex-direction: column; gap: 2px; } .kpi small { font-size: 11px; color: var(--ink-3); } .kpi b { font-size: 18px; font-weight: 800; letter-spacing: -.3px; } .kpi .muted { font-size: 11px; }
.dl { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 1px 6px; vertical-align: middle; } .dl.up { background: var(--green-soft); color: var(--green); } .dl.down { background: var(--coral-soft); color: var(--coral); } .dl.flat { background: var(--line); color: var(--ink-3); } .dl.na { color: var(--ink-3); }
.threshold { background: var(--paper); border-radius: var(--r-md); padding: 10px 12px; margin: 10px 0; } .threshold label { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .threshold input { width: 120px; font: inherit; font-size: 15px; font-weight: 800; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; }
.thr-res { font-size: 13px; margin-top: 8px; line-height: 1.5; }
h3.sub { font-size: 13px; font-weight: 800; margin: 14px 0 4px; }
.row-badge.ok { background: var(--green-soft); color: var(--green); } .row-badge.warn { background: var(--amber-soft); color: var(--amber); } .row-badge.bad { background: var(--coral-soft); color: var(--coral); } .row-badge.out { background: var(--coral-soft); color: var(--coral); }
.heat { margin-top: 8px; } .heat-row { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; } .heat-row i { height: 22px; border-radius: 4px; background: color-mix(in srgb, var(--green) calc(var(--v) * 100%), var(--paper)); } .heat-lbl { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); margin-top: 3px; }
.quick-panel { border-top: 1px solid var(--line); max-height: 45vh; overflow-y: auto; padding: 10px 14px; background: var(--paper); }
.quick-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 13px; }
.quick-cat { margin-bottom: 8px; } .quick-cat small { display: block; font-size: 11px; font-weight: 800; color: var(--ink-3); margin-bottom: 4px; text-transform: uppercase; } .quick-cat .chip { margin: 0 4px 4px 0; background: var(--white); }
.badge-src { margin-left: auto; font-size: 10.5px; color: var(--ink-3); font-weight: 700; align-self: center; }
#micBtn.busy { opacity: .6; animation: pulse 1s infinite; }

/* ==========================================================================
   v4 — objectifs, prévisions, actions, rentabilité, clients
   ========================================================================== */
.tg-row { padding: 10px 0; border-bottom: 1px solid var(--line); } .tg-row:last-child { border: 0; }
.tg-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; } .tg-vals { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gauge { margin-top: 6px; } .g-track { position: relative; height: 10px; border-radius: 6px; background: var(--paper); } .g-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 6px; background: var(--green); } .g-fill.close { background: var(--amber); } .g-fill.behind { background: var(--coral); }
.g-exp { position: absolute; top: -3px; width: 2px; height: 16px; background: var(--ink-3); } .g-lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.tg-edit { display: flex; gap: 6px; margin-top: 6px; } .tg-edit input { flex: 1; font: inherit; font-size: 13px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 10px; min-width: 0; }
table.pf td, table.pf th { font-size: 12px; } table.pf .pos { color: var(--green); } table.pf .neg { color: var(--coral); }
.seg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } @media (max-width: 380px) { .seg-grid { grid-template-columns: repeat(3, 1fr); } }
.seg { border: 1.5px solid var(--line); background: var(--white); border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; } .seg b { font-size: 18px; font-weight: 800; } .seg span { font-size: 11px; font-weight: 700; } .seg small { font-size: 10px; color: var(--ink-3); }
.seg.green b { color: var(--green); } .seg.blue b { color: var(--blue); } .seg.amber b { color: var(--amber); } .seg.coral b { color: var(--coral); } .seg.active { border-color: var(--ink); background: var(--paper); }
.row.task.done .row-title, .row.task.ignored .row-title { text-decoration: line-through; color: var(--ink-3); }
.row .row-amount .chip { padding: 5px 10px; font-size: 12px; }

/* ==========================================================================
   v5 — SaaS super-admin
   ========================================================================== */
.biz.current { outline: 2px solid var(--green); }
.biz-meta { font-size: 12.5px; color: var(--ink-2); margin: 2px 0 6px; }
.sub-line { font-size: 12.5px; background: var(--paper); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; }
.topbar .search input::placeholder { color: rgba(255,255,255,.6); }

/* ==========================================================================
   Bandeau d'installation PWA
   ========================================================================== */
#pwaBanner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--ink); color: #fff; padding: 12px 16px calc(12px + var(--safe-b)); box-shadow: 0 -6px 24px rgba(0,0,0,.35); transform: translateY(110%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
#pwaBanner.show { transform: translateY(0); }
.pwa-inner { display: flex; align-items: center; gap: 10px; max-width: 720px; margin: 0 auto; }
.pwa-inner img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.pwa-text { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pwa-text b { font-size: 14px; font-weight: 800; } .pwa-text span { font-size: 11.5px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwa-btn { flex: none; border: 0; border-radius: 10px; background: var(--green); color: #fff; font-weight: 800; font-size: 13px; padding: 9px 16px; }
.pwa-close { flex: none; border: 0; background: transparent; color: rgba(255,255,255,.6); font-size: 22px; line-height: 1; padding: 4px 6px; }
.pwa-ios { max-width: 720px; margin: 10px auto 0; font-size: 13px; background: rgba(255,255,255,.1); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.ios-share { display: inline-block; border: 1.5px solid #fff; border-radius: 4px; padding: 0 5px; font-size: 12px; }
body:has(#pwaBanner.show) .fab { bottom: calc(96px + var(--safe-b)); }

/* ==========================================================================
   v6 — onglets décisions, infobulles, troncatures, navigation basse
   ========================================================================== */
.filters-row { display: flex; gap: 8px; margin-top: 8px; }
.tip { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 4px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: 10px; font-style: normal; font-weight: 800; cursor: pointer; vertical-align: middle; }
.tip-pop { position: absolute; z-index: 80; max-width: 260px; background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; box-shadow: var(--shadow); }
.trunc { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl-wrap { max-width: 100%; } .tbl-wrap table th:first-child, .tbl-wrap table td:first-child { position: sticky; left: 0; background: var(--white); }
.donut-row { display: flex; gap: 12px; align-items: center; } .dotc { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.card-head h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-head .tag, .card-head .link-btn { flex: none; }
.kpi b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .kpi small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-strip b { min-width: 0; } .summary-strip .muted { display: block; font-size: 10.5px; }
.bar-name, .row-title, .tg-head b, .tl-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips .chip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-wrap canvas { max-width: 100%; }
.verdict-head > div:first-child { min-width: 0; } .verdict-head b { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.v-item b, .v-item span { overflow-wrap: anywhere; }
.page { overflow-x: hidden; }
/* Navigation basse commune */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--white); border-top: 1px solid var(--line); padding: 6px 0 calc(6px + var(--safe-b)); box-shadow: 0 -4px 16px rgba(18,33,58,.06); }
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: 10.5px; font-weight: 700; }
.bottomnav a.active { color: var(--ink); } .bottomnav a.active svg { stroke: var(--green); }
body.has-nav .page { padding-bottom: calc(84px + var(--safe-b)); }
body.has-nav .fab { bottom: calc(76px + var(--safe-b)); }
body.has-nav #pwaBanner { bottom: calc(58px + var(--safe-b)); }
body.has-nav:has(#pwaBanner.show) .fab { bottom: calc(150px + var(--safe-b)); }
@media (min-width: 900px) { .page { max-width: 960px; } .kpi-grid { grid-template-columns: repeat(4, 1fr); } .tiles { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   v6.1 — comparaisons accueil, impression
   ========================================================================== */
.cmp-row { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.cmp { display: inline-flex; align-items: baseline; gap: 5px; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px 10px; font-size: 11px; } .cmp small { opacity: .75; } .cmp b { font-weight: 800; font-size: 12px; } .cmp i { font-style: normal; opacity: .6; }
.cmp.up b { color: #5BE0B1; } .cmp.down b { color: #FF9A8F; }
@media print {
  .topbar, .bottomnav, .fab, .chat, #pwaBanner, .toast, .tip, [data-csv], .btn-row, .tg-edit, .chips, .search, .sheet, .sheet-backdrop { display: none !important; }
  body { background: #fff; } .page { max-width: none; padding: 0; gap: 8px; } .card, .verdict { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; padding: 10px; }
  #page section[hidden] { display: none !important; } .chart-wrap { height: 160px !important; }
}

/* ==========================================================================
   v6.2 — démarrage, journal
   ========================================================================== */
.onboard { border: 1.5px dashed var(--green); }
.ob-list { display: flex; flex-direction: column; }
.ob { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 600; } .ob:last-child { border: 0; }
.ob.done { color: var(--ink-3); text-decoration: line-through; }
.ob-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; } .ob.done .ob-check { background: var(--green); border-color: var(--green); color: #fff; }
.ob-arrow { margin-left: auto; color: var(--ink-3); font-size: 18px; }
.banner.warn span { display: block; }

/* ==========================================================================
   v7 — identité Geekcaisse (variables injectées par brandHead), menu bas 5 entrées
   ========================================================================== */
:root { --primary: var(--blue); --primary-soft: var(--blue-soft); --hero-2: #1C3358; }
.brand-logo { height: 34px; width: auto; max-width: 140px; object-fit: contain; border-radius: 8px; flex: none; }
.login-logo { height: 72px; max-width: 220px; border-radius: 14px; }
.hero { background: linear-gradient(160deg, var(--ink) 0%, var(--hero-2) 100%); }
.date-btn, .btn-primary, .send-btn, .fab, .pwa-btn, .punch-btn.in { background: var(--primary); }
.fab { box-shadow: 0 10px 28px rgba(var(--primary-rgb, 47,107,255), .4); }
.chip.active, .tabs button.active { background: var(--ink); }
.link-btn { color: var(--primary); }
.tile-icon.transfer { background: var(--primary-soft); color: var(--primary); }
.bottomnav a.active { color: var(--primary); } .bottomnav a.active svg { stroke: var(--primary); }
.bottomnav a.nav-assist .nav-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; margin-top: -18px; box-shadow: 0 6px 16px rgba(var(--primary-rgb, 47,107,255), .35); }
.bottomnav a.nav-assist .nav-ic svg { stroke: #fff; }
.bottomnav a { padding-top: 2px; }
body.has-nav .fab { display: none; }  /* le menu bas porte l'accès à l'assistant */

/* ==========================================================================
   v7.1 — charte Geekcaisse (bleu #1249B0 / cyan #AFF3FE)
   ========================================================================== */
.trend.up { color: var(--light, #AFF3FE); } .cmp.up b { color: var(--light, #AFF3FE); }
.hero-amount .cur { color: var(--light, #AFF3FE); opacity: .9; }
.topbar-sub { color: var(--light, #AFF3FE); opacity: .85; }
.login-body { background: linear-gradient(170deg, var(--ink) 0%, var(--primary) 100%); }
.login-form .btn-primary { background: var(--light, #AFF3FE); color: var(--ink); }
.login .muted a { color: var(--light, #AFF3FE) !important; }
.gauge .g-fill { background: var(--primary); } .g-fill.close { background: var(--amber); } .g-fill.behind { background: var(--coral); }

/* ==========================================================================
   v7.2 — multi-entreprises par utilisateur
   ========================================================================== */
.biz-choice { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; text-align: left; }
.biz-card { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.15); border-radius: 16px; padding: 12px 14px; color: #fff; text-decoration: none; }
.biz-card:active { background: rgba(255,255,255,.18); }
.biz-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--light, #AFF3FE); color: var(--ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.biz-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .biz-main b { font-size: 15px; } .biz-main small { font-size: 12px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-arrow { font-size: 26px; opacity: .6; }

/* ==========================================================================
   v7.3 — préférences de notification, activation push
   ========================================================================== */
.sw-list { display: flex; flex-direction: column; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.sw > span { display: flex; flex-direction: column; min-width: 0; } .sw b { font-size: 14px; } .sw small { font-size: 11.5px; color: var(--ink-3); }
.sw input { display: none; } .sw i { width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sw input:checked + i { background: var(--green); } .sw input:checked + i::after { left: 21px; }
.push-cta { display: flex; align-items: center; gap: 10px; background: var(--primary-soft, var(--blue-soft)); border-radius: var(--r-md); padding: 10px 12px; margin-bottom: 10px; }
.push-cta b { font-size: 13px; display: block; } .push-cta span { font-size: 11.5px; color: var(--ink-3); } .push-cta > b, .push-cta > span { flex: 1; } .push-cta .chip { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==========================================================================
   v7.4 — destinataires multiples, WhatsApp
   ========================================================================== */
.rcpt { border-bottom: 1px solid var(--line); padding: 8px 0; } .rcpt:last-child { border: 0; }
.rcpt-head { display: flex; align-items: center; gap: 10px; } .rcpt-head .row-main { flex: 1; min-width: 0; }
.rcpt-grid { margin: 8px 0 0 50px; } .rg-head, .rg-row { display: grid; grid-template-columns: 1fr 60px 70px; align-items: center; gap: 6px; font-size: 13px; }
.rg-head { font-size: 11px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; margin-bottom: 4px; } .rg-row { padding: 5px 0; border-top: 1px dashed var(--line); }
.sw.mini { padding: 0; border: 0; justify-content: center; } .sw.mini i { width: 36px; height: 22px; } .sw.mini i::after { width: 16px; height: 16px; } .sw.mini input:checked + i::after { left: 17px; } .sw.mini input:disabled + i { opacity: .35; }

/* ==========================================================================
   v7.5 — formules : verrous
   ========================================================================== */
.locked { position: relative; opacity: .55; filter: grayscale(.4); } .locked * { pointer-events: none; }
.lock-badge { position: absolute; top: 10px; right: 10px; font-size: 10.5px; font-weight: 800; background: var(--coral-soft); color: var(--coral); border-radius: 999px; padding: 3px 8px; }
.locked-card { opacity: .8; border: 1.5px dashed var(--line); }
.feat-grid { display: flex; flex-wrap: wrap; gap: 6px; } .feat { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 5px 10px; background: var(--paper); color: var(--ink-3); } .feat.on { background: var(--green-soft); color: var(--green); }

/* ==========================================================================
   v7.8 — bandeau supérieur « ma caisse Geekcaisse »
   ========================================================================== */
.topstrip { display: flex; align-items: center; justify-content: center; gap: 8px; margin: calc(-10px - var(--safe-t)) -16px 10px; padding: calc(7px + var(--safe-t)) 16px 7px; text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .2px; color: var(--light, #AFF3FE);
  background: linear-gradient(90deg, #061B45 0%, var(--primary) 55%, #4FA3FF 100%); border-bottom: 1px solid rgba(175,243,254,.25); }
.topstrip:active { filter: brightness(1.1); }
.ts-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--light, #AFF3FE); box-shadow: 0 0 0 3px rgba(175,243,254,.25); }
.ts-text { color: #fff; } .ts-arrow { color: var(--light, #AFF3FE); font-size: 13px; }
.login-body .topstrip, .login-body > .topstrip { position: fixed; top: 0; left: 0; right: 0; margin: 0; z-index: 5; }
.login-body { padding-top: 56px; }
@media (min-width: 720px) { .topstrip { border-radius: 0 0 12px 12px; } }
