:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --panel-2: #f7f9fc;
  --line: #e3e8ef;
  --line-strong: #d4dbe5;
  --txt: #1c2433;
  --muted: #6b7686;
  --accent: #2563eb;       /* bleu pro */
  --accent-soft: #eaf1fe;
  --airbnb: #ff5a5f;
  --green: #16a34a;
  --green-soft: #e7f6ec;
  --red: #dc2626;
  --red-soft: #fdecec;
  --amber: #d97706;
  --amber-soft: #fdf0d9;
  --amber-txt: #b45309;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--accent); }
.brand span { color: var(--txt); }
.sync { display: flex; align-items: center; gap: 12px; }

main {
  max-width: 920px; margin: 0 auto; padding: 20px 16px 70px;
  display: flex; flex-direction: column; gap: 18px;
}

/* barre de mois */
.monthbar { display: flex; align-items: center; gap: 10px; margin: 4px 2px; }
.monthbar h1 { font-size: 20px; margin: 0; min-width: 150px; text-align: center; text-transform: capitalize; }
.monthbar .btn.ghost.small { margin-left: 6px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi-val { font-size: 26px; font-weight: 700; margin: 4px 0 2px; letter-spacing: -.01em; }
.kpi-sub { font-size: 12px; color: var(--muted); }
.kpi-sub .up { color: var(--green); font-weight: 600; }
.kpi-sub .down { color: var(--red); font-weight: 600; }
.kpi-val.pos { color: var(--green); }
.kpi-val.neg { color: var(--red); }

/* cartes */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--txt); }
.card-head h2 svg { color: var(--accent); }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); gap: 12px; }
.card-foot.total { background: var(--panel-2); }
.amount { font-size: 15px; }
.amount strong { color: var(--green); font-size: 18px; }

.muted { color: var(--muted); font-size: 13px; }

/* boutons */
.btn { display: inline-flex; align-items: center; gap: 7px; background: var(--panel); color: var(--txt); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--panel-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.04); background: var(--green); }
.btn.ghost { background: transparent; }
.btn.icon { padding: 5px 12px; font-size: 18px; line-height: 1; }
.btn.small { padding: 6px 10px; font-size: 13px; }

.weeknav { display: flex; align-items: center; gap: 8px; }
.weeklabel { font-size: 13px; color: var(--muted); min-width: 130px; text-align: center; }

/* whatsapp */
.wa { width: 100%; border: none; resize: vertical; background: var(--panel); color: var(--txt); padding: 16px; font-size: 14.5px; line-height: 1.6; font-family: inherit; }
.wa:focus { outline: none; }

/* sejours */
.staylist { display: flex; flex-direction: column; }
.stay { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.stay:last-child { border-bottom: none; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.rdc { background: var(--accent-soft); color: #1d4ed8; }
.badge.etage { background: #fdeced; color: #c2363b; }
.stay-info { flex: 1; min-width: 0; }
.stay-dates { font-size: 14px; }
.stay-sub { font-size: 12px; color: var(--muted); }
.toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.toggle button { border: none; background: var(--panel); color: var(--muted); padding: 7px 12px; font-size: 13px; cursor: pointer; }
.toggle button.active.isabelle { background: var(--green); color: #fff; font-weight: 600; }
.toggle button.active.moi { background: var(--accent); color: #fff; font-weight: 600; }

.empty { padding: 22px 16px; color: var(--muted); font-size: 14px; text-align: center; }

/* calendrier */
.cal-wrap { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cal-occ { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.cal-occ .oc { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; font-size: 13px; }
.cal-occ .oc.glob { background: var(--accent-soft); border-color: #cfe0fb; }
.cal-occ .oc .lab { color: var(--muted); }
.cal-occ .oc .pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-occ .oc .mini { width: 46px; height: 7px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.cal-occ .oc .mini > span { display: block; height: 100%; background: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
#calHead { margin-bottom: 5px; }
.cal-dow { font-size: 11px; color: var(--muted); text-align: center; padding: 2px 0; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.cal-cell { min-height: 58px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: var(--panel-2); display: flex; flex-direction: column; gap: 3px; }
.cal-cell.blank { border: none; background: transparent; }
.cal-cell.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cal-num { font-size: 11px; color: var(--muted); line-height: 1; }
.cal-cell.today .cal-num { color: var(--accent); font-weight: 700; }
.cal-l { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 600; padding: 2px 4px; border-radius: 4px; color: var(--muted); background: #eef1f5; }
.cal-l.booked { background: var(--green-soft); color: #15803d; }
.cal-l.blocked { background: #eceff3; color: #7a8597; }
.cal-l.free { background: var(--amber-soft); color: var(--amber-txt); }
.cal-l .m { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.cal-l .m.isa { background: var(--green); }
.cal-l .m.moi { background: var(--accent); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cal-legend .lg.booked { background: var(--green-soft); border: 1px solid #bfe3c9; }
.cal-legend .lg.blocked { background: #eceff3; border: 1px solid var(--line-strong); }
.cal-legend .lg.free { background: var(--amber-soft); border: 1px solid #f0d9b0; }
.cal-legend .lg.dot-isa { background: var(--green); border-radius: 50%; }
.cal-legend .lg.dot-moi { background: var(--accent); border-radius: 50%; }

.total-left { display: flex; flex-direction: column; gap: 8px; }
.exports { display: flex; gap: 8px; }

/* finances */
.fin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.fin-apt { padding: 16px; border-right: 1px solid var(--line); }
.fin-apt:last-child { border-right: none; }
.fin-apt h3 { margin: 0 0 12px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.fin-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13.5px; }
.fin-row label { color: var(--muted); }
.fin-row .val { font-variant-numeric: tabular-nums; }
.fin-row.calc { color: var(--muted); }
.fin-row.sep { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 10px; }
.fin-row.result { font-weight: 700; font-size: 15px; }
.fin-row.result .pos { color: var(--green); }
.fin-row.result .neg { color: var(--red); }
input.fin-input { width: 110px; text-align: right; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13.5px; font-family: inherit; background: var(--panel); color: var(--txt); font-variant-numeric: tabular-nums; }
input.fin-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fin-shared { padding: 16px; border-top: 1px solid var(--line); background: var(--panel-2); }
.fin-shared h3 { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.fin-shared-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.fin-field { display: flex; flex-direction: column; gap: 5px; }
.fin-field label { font-size: 12.5px; color: var(--muted); }
.fin-field input.fin-input { width: 100%; text-align: right; }
.fin-foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fin-foot-cell { display: flex; flex-direction: column; gap: 2px; }
.fin-foot-cell strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.fin-foot-cell strong.pos { color: var(--green); }
.fin-foot-cell strong.neg { color: var(--red); }

/* occupation */
.occ-table { padding: 4px 0; }
.occ-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.occ-row:last-child { border-bottom: none; }
.occ-row.head { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; background: var(--panel-2); }
.occ-row.tot { font-weight: 700; background: var(--panel-2); }
.occ-name { display: flex; flex-direction: column; gap: 6px; }
.occ-bar { display: flex; height: 9px; border-radius: 999px; background: #eef1f5; overflow: hidden; width: 140px; }
.occ-bar .seg { height: 100%; }
.occ-bar .seg.res { background: var(--green); }
.occ-bar .seg.blk { background: #c2cad6; }
.occ-bar .seg.fre { background: var(--amber); }
.occ-break { font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.occ-break b { font-weight: 600; }
.occ-break .k { display: inline-flex; align-items: center; gap: 4px; }
.occ-break .d { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.occ-break .d.res { background: var(--green); }
.occ-break .d.fre { background: var(--amber); }
.occ-break .d.blk { background: #c2cad6; }
.occ-pct { font-variant-numeric: tabular-nums; font-weight: 600; }
.occ-cmp { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.occ-cmp .up { color: var(--green); }
.occ-cmp .down { color: var(--red); }
.occ-na { color: #aeb6c2; font-size: 12px; }

/* whatsapp auto */
.wa-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #eceff3; color: #7a8597; }
.wa-badge.ok { background: var(--green-soft); color: #15803d; }
.wa-badge.warn { background: var(--amber-soft); color: var(--amber-txt); }
.wa-badge.off { background: var(--red-soft); color: #b91c1c; }
.wa-config { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wa-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wa-row label { font-size: 13.5px; color: var(--muted); min-width: 120px; }
.wa-row input { flex: 1; min-width: 180px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 14px; font-family: inherit; background: var(--panel); color: var(--txt); }
.wa-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wa-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wa-actions a.btn { text-decoration: none; }
.wa-sends { display: flex; flex-direction: column; gap: 4px; }
.wa-send { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.wa-send .s { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.wa-send .s.ok { background: var(--green); }
.wa-send .s.ko { background: var(--red); }
.wa-send .ack { margin-left: auto; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #eef1f5; color: var(--muted); }
.wa-send .ack.lu { background: var(--green-soft); color: #15803d; }

.wa-tracker { display: flex; flex-direction: column; gap: 12px; }
.tk-block { border-top: 1px solid var(--line); padding-top: 10px; }
.tk-block h4 { margin: 0 0 7px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tk-reply { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.tk-reply .meta { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.tk-summary { font-size: 13.5px; margin-bottom: 6px; }
.tk-days { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-day { font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.tk-day.oui { background: var(--green-soft); color: #15803d; }
.tk-day.non { background: var(--red-soft); color: #b91c1c; }
.tk-day.incertain { background: var(--amber-soft); color: var(--amber-txt); }

/* alertes */
.alertlist { display: flex; flex-direction: column; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.alert:last-child { border-bottom: none; }
.alert .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; margin-top: 6px; }

/* page de connexion */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.login-logo { display: block; margin: 0 auto 4px; border-radius: 18px; }
.login-title { text-align: center; font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.login-error { color: var(--red); background: var(--red-soft); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; text-align: center; margin: 0; }
.login-input { width: 100%; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 16px; font-family: inherit; background: var(--panel); color: var(--txt); }
.login-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.login-btn { width: 100%; padding: 13px 14px; border: none; border-radius: 10px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 4px; }
.login-btn:active { transform: translateY(1px); }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--txt); color: #fff; font-weight: 600; padding: 10px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 6px 20px rgba(16,24,40,.18); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* navigation par onglets (app-style, barre du bas) */
.hidden { display: none !important; }
.tabpage[hidden] { display: none; }
main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; color: var(--muted); font-size: 11px; font-weight: 500;
  padding: 8px 2px 7px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tabbar .tab.active { color: var(--accent); }
.tabbar .tab:active { transform: scale(.94); }

/* bouton depliant "Finances du mois" */
.fin-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; font-size: 15px; font-weight: 600;
  color: var(--txt); cursor: pointer; font-family: inherit;
}
.fin-toggle > svg:first-child { color: var(--accent); }
.fin-toggle span { flex: 1; text-align: left; }
.fin-toggle .chev { color: var(--muted); transition: transform .2s; }
.fin-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* onglet notifs : recap des push */
.notif-info { padding: 14px 16px; }
.notif-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.notif-list li { display: flex; align-items: flex-start; gap: 10px; }
.notif-list .d { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; margin-top: 6px; }
.notif-list .nt-title { font-size: 14px; font-weight: 500; }
.notif-list .nt-when { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

@media (max-width: 720px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .fin-grid { grid-template-columns: 1fr; }
  .fin-apt { border-right: none; border-bottom: 1px solid var(--line); }
  .fin-foot { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  main { padding: 14px 12px 60px; gap: 14px; }

  /* en-tete compact : marque sur une ligne, sync reduit a l'heure */
  .topbar { padding: 11px 14px; }
  .brand { font-size: 15px; gap: 7px; white-space: nowrap; }
  .brand svg { width: 19px; height: 19px; }
  .sync { gap: 8px; }
  #syncInfo { display: none; }   /* timestamp masque sur mobile, l'en-tete reste propre */
  #refreshBtn { padding: 8px 12px; }

  /* barre de mois */
  .monthbar { gap: 6px; }
  .monthbar h1 { font-size: 18px; min-width: 0; flex: 1; }
  .monthbar .btn.ghost.small { margin-left: 0; }

  /* KPI : chiffres qui ne debordent plus */
  .kpis { gap: 10px; }
  .kpi { padding: 12px 13px; }
  .kpi-val { font-size: 20px; white-space: nowrap; }
  .kpi-label { font-size: 12px; }

  /* titres de cartes au-dessus des fleches */
  .card-head { flex-wrap: wrap; row-gap: 8px; }
  .card-head h2 { flex: 1 1 100%; }
  .weeknav, .card-head .weeknav { width: 100%; justify-content: space-between; }
  .weeklabel { flex: 1; min-width: 0; }

  /* calendrier compact qui tient dans l'ecran */
  .cal-wrap { padding: 12px 10px; }
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 46px; padding: 3px; border-radius: 6px; gap: 2px; }
  .cal-dow { font-size: 10px; letter-spacing: 0; }
  .cal-num { font-size: 10px; }
  .cal-l { font-size: 9px; padding: 1px 3px; gap: 2px; }
  .cal-l .m { width: 6px; height: 6px; }
  .cal-occ { gap: 8px; }
  .cal-occ .oc { padding: 6px 9px; font-size: 12px; }
  .cal-occ .oc .mini { width: 38px; }

  /* sejours : badge + dates en haut, bascule en dessous, pleine largeur tactile */
  .stay { flex-wrap: wrap; row-gap: 8px; padding: 12px; }
  .stay-info { flex: 1 1 60%; order: 2; }
  .stay .badge { order: 1; }
  .stay .toggle { order: 3; flex: 1 1 100%; }
  .stay .toggle button { flex: 1; padding: 9px 12px; }

  /* WhatsApp : champ + bouton empiles */
  .wa-row { gap: 8px; }
  .wa-row label { min-width: 100%; }
  .wa-row input { flex: 1 1 70%; }
  .wa-actions .btn { flex: 1 1 auto; justify-content: center; }

  /* pied de carte menages */
  .card-foot.total { flex-wrap: wrap; row-gap: 10px; }
  .card-foot.total .amount { flex: 1 1 100%; }
}

@media (max-width: 560px) {
  /* occupation : appartement + barre a gauche, % a droite ; comparaisons masquees
     (n/a tant qu'il n'y a pas d'historique) pour rester lisible */
  .occ-row { grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
  .occ-row.head { display: none; }
  .occ-row .occ-cmp { display: none; }
}

/* Banniere globale d'etat d'envoi WhatsApp a Isabelle (visible sur tous les onglets) */
.wa-banner { margin: 0 0 12px; padding: 11px 15px; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.wa-banner.ok { background: var(--green-soft); color: #15803d; border: 1px solid #bbe6c8; }
.wa-banner.warn { background: var(--amber-soft); color: var(--amber-txt); border: 1px solid #f0d18a; }
.wa-banner.fail { background: var(--red-soft); color: #b91c1c; border: 2px solid #eaa9a9; font-size: 15px; animation: waPulse 1.6s ease-in-out infinite; }
.wa-banner a { color: inherit; font-weight: 700; text-decoration: underline; }
@keyframes waPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.30); } 50% { box-shadow: 0 0 0 7px rgba(185, 28, 28, 0); } }

/* ---------------------------------------------------------------- digicode */
.dg-code { padding: 20px 16px; text-align: center; }
.dg-code-val { font-size: 40px; font-weight: 700; letter-spacing: 4px; font-variant-numeric: tabular-nums; }
.dg-code-val.muted { font-size: 18px; letter-spacing: 0; font-weight: 600; }
.dg-code-sub { margin: 6px 0 14px; font-size: 13px; color: var(--muted); }
.dg-list { display: flex; flex-direction: column; }
.dg-row { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dg-row:last-child { border-bottom: none; }
.dg-row-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dg-dates { font-size: 14px; }
.dg-pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.dg-pill.ok { background: var(--green-soft); color: #15803d; }
.dg-pill.warn { background: var(--amber-soft); color: var(--amber-txt); }
.dg-msg { margin: 9px 0 11px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; line-height: 1.5; color: var(--txt); }
.dg-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Import CSV des revenus Airbnb */
.fin-import { border-top: 1px solid var(--line, #e3e3e3); margin-top: 14px; padding-top: 14px; }
.fin-import-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.fin-import-head .muted { font-size: 12.5px; }
.fin-import-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fin-import-row input[type=file] { flex: 1; min-width: 190px; font-size: 13px; }
.fin-import-result { margin-top: 12px; font-size: 13.5px; }
.fin-import-result table { width: 100%; border-collapse: collapse; }
.fin-import-result th, .fin-import-result td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line, #eee); }
.fin-import-result td.num { text-align: right; font-variant-numeric: tabular-nums; }
.fin-import-result .chg { color: #0e8a4f; font-weight: 600; }
.fin-import-result .warn { color: #b45309; }
