/* ==========================================================================
   Kaya Massage — style.css
   Mobile-first · Couleurs panneau : bleu clair / blanc
   ========================================================================== */

/* ---- Variables ---- */
:root {
  --blue-light: #5ab4e0;
  --blue-mid:   #2a7db5;
  --blue-dark:  #1a4f73;
  --white:      #ffffff;
  --bg:         #f0f7fd;
  --text:       #1a2636;
  --muted:      #5a6a7a;
  --gold:       #e8a020;
  --gold-dark:  #b5832a;
  --green-line: #06c755;
  --green-wa:   #25d366;
  --red-maps:   #ea4335;
  --nails-warm: #8b4a6b;
  --nails-accent: #d4a0b5;
}

/* ---- Reset minimal ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--blue-mid); }

/* ---- Layout ---- */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---- Site header / nav ---- */
.site-header {
  background: var(--blue-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.site-logo {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .5px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}

.site-nav a {
  color: #cde8f8;
  text-decoration: none;
  font-size: .85rem;
  padding: .3rem .55rem;
  border-radius: 4px;
  transition: background .2s;
}

.site-nav a:hover { background: rgba(255,255,255,.15); color: var(--white); }

/* Lien Staff discret dans la nav publique */
.site-nav-staff {
  color: rgba(200, 225, 245, .55) !important;
  font-size: .75rem !important;
  padding: .2rem .4rem !important;
}

.site-nav-staff:hover {
  color: #cde8f8 !important;
  background: rgba(255,255,255,.08) !important;
}

/* Language switcher (public). Summary text MUST match .site-nav a (#cde8f8).
   Cause of black text: body { color: var(--text) #1a2636 } inherits when
   summary color does not win or when a cached CSS without these rules is used.
   Specificity: .site-nav .lang-switcher > summary beats body/a defaults. */
.site-nav .lang-switcher {
  position: relative;
  display: inline-block;
  margin-left: .35rem;
  vertical-align: middle;
  max-width: 100%;
  color: #cde8f8;
}
.site-nav .lang-switcher > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: #cde8f8;
  font-size: .8rem;
  padding: .3rem .55rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  user-select: none;
  white-space: nowrap;
  max-width: min(16rem, 100%);
}
/* Hide native black disclosure triangle */
.site-nav .lang-switcher > summary::-webkit-details-marker {
  display: none;
}
.site-nav .lang-switcher > summary::marker {
  content: "";
  display: none;
}
/* Custom caret — same light color as nav (currentColor) */
.site-nav .lang-switcher > summary::after {
  content: "▾";
  color: currentColor;
  font-size: .65rem;
  line-height: 1;
  margin-left: .15rem;
  flex-shrink: 0;
}
.site-nav .lang-switcher[open] > summary::after {
  content: "▴";
  color: currentColor;
}
/* Force light color on every direct child (Language, active lang, globe).
   Do not rely only on inherit: body --text is dark (#1a2636). */
.site-nav .lang-switcher > summary > * {
  color: inherit;
}
.site-nav .lang-switcher > summary:hover,
.site-nav .lang-switcher > summary:focus-visible {
  color: #ffffff;
  background: rgba(255,255,255,.16);
}
.site-nav .lang-switcher > summary:hover > *,
.site-nav .lang-switcher > summary:focus-visible > * {
  color: inherit;
}
.site-nav .lang-switcher > summary:hover::after,
.site-nav .lang-switcher > summary:focus-visible::after {
  color: currentColor;
}
.site-nav .lang-switcher[open] > summary {
  color: #cde8f8;
  background: rgba(255,255,255,.16);
}
.site-nav .lang-switcher[open] > summary:hover {
  color: #ffffff;
}
.site-nav .lang-switcher > summary:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.site-nav .lang-switcher > summary:focus:not(:focus-visible) {
  outline: none;
}
.site-nav .lang-switcher > summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.site-nav .lang-switcher .lang-switcher-globe {
  flex-shrink: 0;
  font-size: .95rem;
  line-height: 1;
}
.site-nav .lang-switcher .lang-switcher-label {
  font-weight: 600;
  letter-spacing: .01em;
}
.site-nav .lang-switcher .lang-switcher-sep {
  opacity: .9;
  margin: 0 .05rem 0 0;
}
.site-nav .lang-switcher .lang-switcher-current {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Dropdown: dark text on white — .site-nav a would force #cde8f8, override it */
.site-nav .lang-switcher .lang-switcher-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 9rem;
  max-width: min(14rem, calc(100vw - 1.25rem));
  background: #ffffff;
  color: var(--blue-dark, #1a4f73);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  border: 1px solid rgba(0,0,0,.08);
  padding: .25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.site-nav .lang-switcher .lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .65rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--blue-dark, #1a4f73);
  font-size: .85rem;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.site-nav .lang-switcher .lang-option-name {
  min-width: 0;
  flex: 1 1 auto;
  color: inherit;
}
.site-nav .lang-switcher .lang-option:hover,
.site-nav .lang-switcher .lang-option:focus {
  background: rgba(10, 58, 85, .1);
  outline: none;
  color: var(--blue-dark, #1a4f73);
}
.site-nav .lang-switcher .lang-option:focus-visible {
  outline: 2px solid var(--blue-dark, #1a4f73);
  outline-offset: 1px;
}
.site-nav .lang-switcher .lang-option-active {
  font-weight: 700;
  background: rgba(10, 58, 85, .12);
  box-shadow: inset 3px 0 0 var(--blue-dark, #1a4f73);
  color: var(--blue-dark, #1a4f73);
}
.site-nav .lang-switcher .lang-option-mark {
  font-size: .75rem;
  opacity: .85;
  flex-shrink: 0;
  font-weight: 700;
  color: inherit;
}
@media (max-width: 520px) {
  .site-nav .lang-switcher .lang-switcher-sep,
  .site-nav .lang-switcher .lang-switcher-current {
    display: none;
  }
  .site-nav .lang-switcher > summary {
    font-size: .78rem;
    padding: .28rem .45rem;
    gap: .2rem;
    color: #cde8f8;
  }
  .site-nav .lang-switcher .lang-switcher-menu {
    right: 0;
    left: auto;
    min-width: 8.5rem;
  }
  .site-nav .lang-switcher {
    margin-left: .1rem;
  }
}
/* Thai / public text wrapping (no global keep-all) */
.public-site {
  word-break: normal;
  line-break: auto;
  white-space: normal;
}
.public-site .site-nav a,
.public-site .cta-btn,
.public-site .activity-title,
.public-site .section-title,
.public-site .hero-title {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 70vh;
  background-color: var(--blue-dark); /* fallback si image absente */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 35, 60, .25) 0%,
    rgba(10, 35, 60, .70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.5rem 1.5rem 3rem;
  color: var(--white);
  text-align: center;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.hero-tagline {
  font-size: 1.05rem;
  margin-top: .5rem;
  opacity: .92;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.hero-hours {
  display: inline-block;
  margin-top: .7rem;
  background: rgba(90, 180, 224, .25);
  border: 1px solid rgba(90, 180, 224, .5);
  border-radius: 20px;
  padding: .2rem .9rem;
  font-size: .9rem;
  letter-spacing: .3px;
}

.hero-cta {
  margin-top: 1.5rem;
}

/* ---- CTA buttons ---- */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .85rem .5rem;
  border-radius: 10px;
  font-size: .97rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  text-align: center;
  transition: opacity .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}

.cta-btn:hover { opacity: .88; color: var(--white); }
.cta-btn:active { transform: scale(.97); }

.cta-line     { background: var(--green-line); }
.cta-whatsapp { background: var(--green-wa); }
.cta-phone    { background: var(--blue-mid); }
.cta-maps     { background: var(--red-maps); }

/* ---- Sections ---- */
.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-title {
  font-size: 1.3rem;
  color: var(--blue-mid);
  border-left: 4px solid var(--blue-light);
  padding-left: .8rem;
  margin-bottom: 1.2rem;
}

/* ---- Price table ---- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  overflow-x: auto;
}

.price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}

.price-table th {
  background: var(--blue-mid);
  color: var(--white);
  padding: .65rem .8rem;
  text-align: left;
  white-space: nowrap;
}

.price-table th:not(:first-child) { text-align: right; }

.price-table td {
  padding: .55rem .8rem;
  border-bottom: 1px solid #dde8f0;
}

.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: #e8f3fb; }

.price-table td:not(:first-child) {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- Descriptions massages ---- */
.svc-details {
  margin-top: .25rem;
}

.svc-details-toggle {
  font-size: .75rem;
  color: var(--blue-mid);
  cursor: pointer;
  list-style: none;
  display: inline;
}

.svc-details-toggle::marker,
.svc-details-toggle::-webkit-details-marker {
  display: none;
}

.svc-details[open] .svc-details-toggle {
  color: var(--blue-dark);
}

.svc-desc {
  font-size: .8rem;
  color: var(--muted);
  margin: .25rem 0 .1rem;
  line-height: 1.45;
  max-width: 28rem;
}

/* ---- Cards (offres, why) ---- */
.card {
  background: var(--white);
  border: 1px solid #c8dff0;
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
}

.card + .card { margin-top: .9rem; }

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .35rem;
}

.card-body {
  color: var(--muted);
  font-size: .93rem;
}

/* ---- Loyalty banner ---- */
.loyalty-banner {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
  color: var(--white);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  text-align: center;
}

.loyalty-banner .loyalty-icon { font-size: 2.2rem; margin-bottom: .4rem; }
.loyalty-banner .loyalty-title { font-size: 1.15rem; font-weight: 700; }
.loyalty-banner .loyalty-body  { margin-top: .4rem; opacity: .9; font-size: .95rem; }

/* ---- Why grid ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.why-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.why-text strong { color: var(--blue-dark); }
.why-text p      { color: var(--muted); font-size: .93rem; margin-top: .1rem; }

/* ---- Location ---- */
.location-info p { margin-bottom: .35rem; }

.location-cta {
  margin-top: 1rem;
  display: inline-flex;
}

/* ---- Photo gallery (provisoire) ---- */
.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: 1.2rem;
}

.photo-row img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--blue-dark);
  color: #a8cce0;
  text-align: center;
  padding: 1.4rem 1rem;
  font-size: .85rem;
  margin-top: 0;
}

.site-footer a { color: #cde8f8; }

/* ---- Responsive ---- */
@media (min-width: 480px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .photo-row img { height: 160px; }
}

@media (min-width: 680px) {
  .hero-title   { font-size: 2.8rem; }
  .hero-tagline { font-size: 1.15rem; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   V2 — Nouvelles classes publiques (page-hero, activity-grid, galerie équipe)
   ========================================================================== */

/* ---- Badge hero ---- */
.hero-badge {
  display: inline-block;
  background: rgba(90, 180, 224, .25);
  border: 1px solid rgba(90, 180, 224, .5);
  border-radius: 20px;
  padding: .2rem .9rem;
  font-size: .9rem;
  letter-spacing: .3px;
  margin-bottom: .5rem;
}

.hero-badge--warm {
  background: rgba(232, 160, 32, .3);
  border-color: rgba(232, 160, 32, .5);
}

.hero-sub {
  font-size: .9rem;
  opacity: .8;
}

/* ---- Page hero (interne, moins haute que l'accueil) ---- */
.page-hero {
  position: relative;
  min-height: 40vh;
  background-color: var(--blue-dark);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.page-hero--nails {
  background-color: var(--nails-warm);
  background-position: center top;
}

.hero-overlay--warm {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(80, 20, 50, .2) 0%,
    rgba(80, 20, 50, .65) 100%
  );
}

.page-hero-content {
  padding: 1.8rem 1.5rem 2.5rem;
}

/* ---- Activity grid (home, deux cartes) ---- */
.activity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 640px) {
  .activity-grid { grid-template-columns: 1fr 1fr; }
}

.activity-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #c8dff0;
  box-shadow: 0 4px 16px rgba(26, 79, 115, .08);
  transition: transform .2s, box-shadow .2s;
}

.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(26, 79, 115, .14);
}

.activity-card--nails {
  border-color: #e0c0d0;
}

.activity-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--blue-dark);
}

.activity-card--nails .activity-card-img {
  background: var(--nails-warm);
}

.activity-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.activity-card:hover .activity-card-img img {
  transform: scale(1.04);
}

.activity-card-body {
  padding: 1.1rem 1.25rem 1.3rem;
  background: var(--white);
  flex: 1;
}

.activity-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue-mid);
  margin-bottom: .3rem;
}

.activity-card--nails .activity-label {
  color: var(--nails-warm);
}

.activity-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .4rem;
}

.activity-desc {
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: .5rem;
}

.activity-count {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .6rem;
}

.activity-cta-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--blue-mid);
}

.activity-card--nails .activity-cta-link {
  color: var(--nails-warm);
}

/* ---- Section action (lien "voir tout") ---- */
.section-action {
  margin-top: 1.1rem;
  text-align: center;
}

.btn-outline {
  display: inline-block;
  padding: .55rem 1.2rem;
  border: 2px solid var(--blue-mid);
  border-radius: 8px;
  font-weight: 600;
  color: var(--blue-mid);
  text-decoration: none;
  font-size: .9rem;
  transition: background .2s, color .2s;
}

.btn-outline:hover {
  background: var(--blue-mid);
  color: var(--white);
}

/* ---- Galerie équipe ---- */
.team-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

.team-photo {
  border-radius: 12px;
  overflow: hidden;
  background: var(--blue-dark);
}

.team-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center top;
}

/* Portrait #2 — recadrage légèrement plus bas pour la tête */
.team-photo--2 img {
  object-position: center 15%;
}

@media (min-width: 600px) {
  .team-gallery { grid-template-columns: repeat(3, 1fr); }
  .team-photo img { height: 240px; }
}

/* ---- Features list (certifications, équipements) ---- */
.salon-features,
.nails-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-top: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--muted);
}

.feature-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---- Galerie salon (massages.html) ---- */
.salon-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

@media (min-width: 600px) {
  .salon-gallery { grid-template-columns: repeat(3, 1fr); }
}

.salon-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

/* ---- Location block avec photo ---- */
.location-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .location-block { grid-template-columns: 1fr 1fr; align-items: center; }
}

.location-photo {
  border-radius: 10px;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ---- Nails intro block ---- */
.nails-intro-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .nails-intro-block { grid-template-columns: 1fr 1fr; align-items: start; }
}

.nails-intro-img img {
  width: 100%;
  border-radius: 14px;
  max-height: 340px;
  object-fit: cover;
}

.nails-contact-card {
  background: linear-gradient(135deg, #fdf5f9, #f5eef5);
  border: 1px solid var(--nails-accent);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
}

.nails-contact-text {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
}

/* ---- Cellule prix dans table Nails ---- */
.price-cell {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   V2 — Boss : Activity Dashboard (act-*)
   ========================================================================== */

.act-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

/* Activity: exactly two KPI blocks (Volume | Average tickets) */
.act-kpi-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.act-kpi-block {
  background: var(--white, #fff);
  border: 1px solid #d4cdc2;
  border-radius: 12px;
  padding: .9rem 1.05rem;
  box-shadow: 0 1px 2px rgba(40, 30, 20, 0.04);
}
.act-kpi-block-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b645c;
  margin-bottom: .65rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid #e8e2d8;
}
.act-kpi-block-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding: .35rem 0;
}
.act-kpi-block-row + .act-kpi-block-row {
  border-top: 1px dashed #ebe6de;
}
.act-kpi-block-label {
  font-size: .9rem;
  color: var(--muted, #7a7368);
  flex: 1;
}
.act-kpi-block-value {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  line-height: 1.25;
}
.act-kpi-block-value .money-eur {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  margin-top: .1rem;
}
@media (max-width: 640px) {
  .act-kpi-duo {
    grid-template-columns: 1fr;
  }
}

.period-filter-form {
  margin-bottom: 1.2rem;
}

.period-filter-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.act-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: .5rem;
}

@media (min-width: 600px) {
  .act-compare-grid { grid-template-columns: 1fr 1fr; }
}

.act-card {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid #c8dff0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(26, 79, 115, .07);
}

.act-card--nails {
  border-color: #e0c0d0;
}

.act-card-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: var(--white);
}

.act-card--nails .act-card-header {
  background: linear-gradient(135deg, var(--nails-warm), #b5406a);
}

.act-badge { font-size: 1.4rem; }
.act-name  { font-size: 1rem; font-weight: 700; }

.act-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.act-stat {
  padding: .75rem 1rem;
  border-right: 1px solid #e8f0f8;
  border-bottom: 1px solid #e8f0f8;
  display: flex;
  flex-direction: column;
}

.act-stat:nth-child(even) { border-right: none; }
.act-stat:nth-last-child(-n+2) { border-bottom: none; }

.act-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.act-card--nails .act-stat-value { color: var(--nails-warm); }

.act-stat-label {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .15rem;
}

.act-disclaimer {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .5rem;
  font-style: italic;
}

.boss-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .8rem;
  padding-bottom: .3rem;
  border-bottom: 2px solid var(--blue-light);
}

.act-help-box {
  background: #f3f9ff;
  border: 1px solid #d7e8f7;
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
}

.act-help-box h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .6rem;
}

.act-help-box ol {
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.8;
}

/* ==========================================================================
   Interface Boss / Team (boss-ui)
   ========================================================================== */

/* ---- Layout boss ---- */
.boss-ui {
  background:
    radial-gradient(circle at top, rgba(90, 180, 224, .18), transparent 26%),
    linear-gradient(180deg, #edf5fb 0%, #f7fbff 100%);
}

.boss-header {
  background: var(--blue-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.boss-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: .55rem 1rem;
  min-height: 3rem;
}

.boss-logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.2;
}

/* ---- Desktop nav: single row ---- */
.boss-nav-desktop {
  display: flex;
  align-items: center;
  gap: .1rem;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  justify-content: flex-end;
}

.boss-nav-desktop > a,
.boss-dropdown-summary {
  color: #cde8f8;
  text-decoration: none;
  font-size: .9rem;
  padding: .45rem .55rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
  line-height: 1.25;
}

.boss-nav-desktop > a:hover,
.boss-nav-desktop > a:focus-visible {
  background: rgba(255,255,255,.15);
  color: var(--white);
  outline: none;
}

.boss-nav-desktop > a:focus-visible,
.boss-dropdown-summary:focus-visible,
.boss-menu-toggle:focus-visible,
.boss-nav-logout:focus-visible {
  outline: 2px solid #9fd4f0;
  outline-offset: 2px;
}

.boss-nav-cta {
  background: rgba(255,255,255,.16) !important;
  color: var(--white) !important;
  font-weight: 700;
  margin-left: .15rem;
}

.boss-nav-cta:hover,
.boss-nav-cta:focus-visible {
  background: rgba(255,255,255,.26) !important;
}

/* Dropdowns (More / user) */
.boss-dropdown {
  position: relative;
  flex-shrink: 0;
}

.boss-dropdown-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  user-select: none;
  font-family: inherit;
  background: transparent;
  border: 0;
}

.boss-dropdown-summary::-webkit-details-marker { display: none; }
.boss-dropdown-summary::marker { content: ""; }

.boss-dropdown-summary:hover,
.boss-dropdown[open] > .boss-dropdown-summary {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

.boss-caret {
  font-size: .7rem;
  opacity: .85;
  line-height: 1;
}

.boss-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 13.5rem;
  max-width: min(18rem, calc(100vw - 1.5rem));
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(26, 79, 115, .12);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 40, 60, .18);
  padding: .45rem 0;
  z-index: 200;
}

.boss-dropdown-panel a,
.boss-dropdown-panel .boss-nav-logout {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--text) !important;
  text-decoration: none;
  font-size: .9rem;
  padding: .55rem .9rem;
  border: 0;
  background: none;
  border-radius: 0;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.3;
  margin: 0;
}

.boss-dropdown-panel a:hover,
.boss-dropdown-panel a:focus-visible,
.boss-dropdown-panel .boss-nav-logout:hover,
.boss-dropdown-panel .boss-nav-logout:focus-visible {
  background: #edf5fb;
  color: var(--blue-dark) !important;
  outline: none;
}

.boss-dropdown-heading {
  margin: .35rem .9rem .15rem;
  padding-top: .25rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid #e6eef5;
}

.boss-dropdown-heading:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.boss-dropdown-panel-user {
  min-width: 10rem;
}

.boss-nav-logout-form {
  display: block;
  margin: 0;
  padding: 0;
}

.boss-nav-logout {
  color: inherit;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  line-height: inherit;
}

/* Mobile toggle — hidden on desktop */
.boss-menu-toggle {
  display: none;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  margin-left: auto;
  min-height: 2.5rem;
  padding: .45rem .85rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.boss-menu-toggle:hover {
  background: rgba(255,255,255,.18);
}

.boss-menu-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* Mobile panel */
.boss-nav-mobile {
  display: none;
  flex-direction: column;
  gap: .1rem;
  padding: .35rem 1rem 1rem;
  background: var(--blue-dark);
  border-top: 1px solid rgba(255,255,255,.12);
  max-height: min(80vh, 36rem);
  overflow-y: auto;
  overflow-x: hidden;
}

.boss-nav-mobile[hidden] {
  display: none !important;
}

.boss-nav-mobile:not([hidden]) {
  display: flex;
}

.boss-mobile-heading {
  margin: .65rem 0 .2rem;
  padding: .35rem 0 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(205, 232, 248, .72);
  border-top: 1px solid rgba(255,255,255,.12);
}

.boss-mobile-heading:first-child {
  border-top: 0;
  margin-top: .15rem;
  padding-top: 0;
}

.boss-nav-mobile > a {
  color: #e8f4fc;
  text-decoration: none;
  font-size: 1rem;
  padding: .7rem .65rem;
  border-radius: 8px;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}

.boss-nav-mobile > a:hover,
.boss-nav-mobile > a:focus-visible {
  background: rgba(255,255,255,.12);
  color: var(--white);
  outline: none;
}

.boss-nav-cta-mobile {
  justify-content: center;
  margin: .25rem 0 .35rem;
  background: var(--blue-light) !important;
  color: var(--blue-dark) !important;
  font-weight: 700;
}

.boss-nav-cta-mobile:hover,
.boss-nav-cta-mobile:focus-visible {
  background: #7bc4e8 !important;
  color: var(--blue-dark) !important;
}

.boss-mobile-user {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.boss-mobile-user-label {
  color: #cde8f8;
  font-size: .92rem;
  font-weight: 600;
  padding: .2rem .65rem;
}

.boss-nav-logout-mobile {
  display: block;
  width: 100%;
  text-align: left;
  color: #e8f4fc !important;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  padding: .7rem .65rem;
  min-height: 2.75rem;
  cursor: pointer;
}

.boss-nav-logout-mobile:hover,
.boss-nav-logout-mobile:focus-visible {
  background: rgba(255,255,255,.12);
  color: var(--white) !important;
}

.boss-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.2rem 1rem 3rem;
}

/* Break before the bar wraps: tablet + phone use hamburger */
@media (max-width: 1024px) {
  .boss-nav-desktop {
    display: none;
  }

  .boss-menu-toggle {
    display: inline-flex;
  }

  .boss-header-inner {
    max-width: 100%;
  }
}

@media (min-width: 1025px) {
  .boss-nav-mobile,
  .boss-nav-mobile:not([hidden]) {
    display: none !important;
  }

  .boss-menu-toggle {
    display: none !important;
  }
}

/* ---- Page header ---- */
.boss-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: .5rem;
}

.boss-page-header h1 {
  font-size: 1.1rem;
  color: var(--blue-dark);
  font-weight: 700;
}

.today-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(241,248,254,.96));
  border: 1px solid rgba(42, 125, 181, .12);
  box-shadow: 0 14px 28px rgba(26, 79, 115, .08);
}

.today-kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: .25rem;
}

.today-subtitle {
  color: var(--muted);
  margin-top: .25rem;
  font-size: .92rem;
}

.btn-walkin {
  min-width: 148px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(42, 125, 181, .18);
}

/* ---- Résumé journée ---- */
.day-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.2rem;
}

.summary-card {
  background: rgba(255,255,255,.95);
  border-radius: 16px;
  padding: 1rem .85rem;
  text-align: center;
  border: 1px solid rgba(42, 125, 181, .08);
  box-shadow: 0 10px 22px rgba(26, 79, 115, .08);
}

.summary-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.1;
}

.summary-label {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .2rem;
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* ---- Cartes de réservation ---- */
.res-card {
  background: rgba(255,255,255,.98);
  border-radius: 16px;
  border-left: 5px solid #ccc;
  margin-bottom: .9rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(42, 125, 181, .08);
  box-shadow: 0 10px 24px rgba(26, 79, 115, .08);
}

/* Couleurs de statut — bordure gauche */
.res-card.status-requested { border-left-color: #f0ad4e; }
.res-card.status-confirmed { border-left-color: var(--blue-mid); }
.res-card.status-done      { border-left-color: #5cb85c; }
.res-card.status-cancelled { border-left-color: #aaa; opacity: .65; }
.res-card.status-noshow    { border-left-color: #d9534f; opacity: .6; }

.res-card-header {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .35rem;
  flex-wrap: wrap;
}

.res-time     { font-weight: 800; font-size: 1rem; color: var(--blue-dark); min-width: 2.8rem; }
.res-duration { font-size: .82rem; color: var(--muted); background: #e8f3fb; padding: .1rem .45rem; border-radius: 10px; }
.res-service  { font-weight: 600; flex: 1; }
.res-price    { font-weight: 700; color: var(--blue-mid); }

.res-card-body {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .75rem;
  line-height: 1.7;
}

.res-client    { font-weight: 600; color: var(--text); }
.res-masseuse  { }
.res-masseuse.unassigned { color: #f0ad4e; font-style: italic; }
.res-notes     { margin-top: .3rem; font-size: .85rem; color: var(--muted); }

.res-card-actions {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  padding-top: .15rem;
}

.res-card-actions form { margin: 0; }

/* ---- No reservations ---- */
.no-reservations {
  text-align: center;
  padding: 2.2rem 1.25rem;
  color: var(--muted);
  background: rgba(255,255,255,.96);
  border-radius: 18px;
  border: 1px solid rgba(42, 125, 181, .08);
  box-shadow: 0 12px 28px rgba(26, 79, 115, .08);
}

.no-reservations-icon {
  font-size: 2rem;
  margin-bottom: .55rem;
}

.no-reservations-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .3rem;
}

.no-reservations-text {
  margin-bottom: .95rem;
}

/* ---- Boutons ---- */
.btn {
  display: inline-block;
  padding: .42rem .9rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover, .btn:focus { opacity: .82; }
.btn:active { transform: scale(.97); }

.btn-primary  { background: var(--blue-mid); color: var(--white); }
.btn-confirm  { background: var(--blue-mid); color: var(--white); }
.btn-complete { background: #5cb85c; color: var(--white); }
.btn-cancel   { background: #f0f4f8; color: var(--muted); border: 1px solid #d0dde8; }

/* ---- Formulaire ---- */
.boss-form {
  background: rgba(255,255,255,.97);
  border-radius: 18px;
  padding: 1.35rem;
  border: 1px solid rgba(42, 125, 181, .08);
  box-shadow: 0 14px 32px rgba(26, 79, 115, .08);
}

.form-intro {
  margin-bottom: 1rem;
  padding: .8rem .95rem;
  background: #f3f9ff;
  border: 1px solid #d7e8f7;
  border-radius: 12px;
  color: var(--muted);
}

.form-section + .form-section {
  margin-top: 1.1rem;
}

.form-section-title {
  font-size: .92rem;
  color: var(--blue-dark);
  margin-bottom: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
}

.form-grid-3 {
  grid-template-columns: 1fr;
}

.form-group { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .3rem;
}

.form-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: .8rem;
  margin-left: .3rem;
}

.form-input {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid #c8dff0;
  border-radius: 6px;
  font-size: 1rem;
  background: #f8fbff;
  color: var(--text);
  appearance: auto;
}

.form-input:focus {
  outline: 2px solid var(--blue-light);
  border-color: var(--blue-mid);
  background: var(--white);
}

.form-errors {
  color: #c0392b;
  font-size: .83rem;
  margin-top: .25rem;
}

.form-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.35rem;
  flex-wrap: wrap;
}

.btn-save {
  flex: 1 1 220px;
  padding: .9rem 1.15rem;
  font-size: .98rem;
  font-weight: 700;
}

.form-actions .btn-cancel {
  flex: 0 0 auto;
  min-width: 120px;
  text-align: center;
}

/* ---- Login ---- */
.login-wrap  { max-width: 360px; margin: 3rem auto; padding: 0 1rem; }

.login-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 3px 12px rgba(0,0,0,.1);
}

.login-card h2 {
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: .3rem;
  font-size: 1.4rem;
}

.login-submit { width: 100%; margin-top: .5rem; padding: .75rem; font-size: 1rem; }

@media (min-width: 720px) {
  .form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .today-hero,
  .boss-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .day-summary {
    grid-template-columns: 1fr;
  }

  .btn-walkin,
  .form-actions .btn-cancel {
    width: 100%;
  }
}

/* ===========================================================================
   Cash split — Lot 4
   =========================================================================== */

/* ---- Header date + nav ---- */
.cash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1.4rem;
}

.cash-header-nav {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.cash-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.cash-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--white);
  border: 1px solid #c8dff0;
  border-radius: 6px;
  color: var(--blue-dark);
  font-size: 1.1rem;
  text-decoration: none;
  line-height: 1;
}

.cash-nav-btn:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
}

.btn-ghost {
  background: var(--white);
  border: 1px solid #c8dff0;
  color: var(--blue-dark);
}

.btn-ghost:hover {
  background: var(--blue-light);
}

.btn-sm {
  font-size: .8rem;
  padding: .3rem .7rem;
}

/* ---- KPI grid ---- */
.cash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.6rem;
}

.cash-kpi-card {
  background: var(--white);
  border: 1px solid #c8dff0;
  border-radius: 10px;
  padding: .9rem 1rem;
}

.cash-kpi-label {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .25rem;
}

.cash-kpi-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.cash-kpi-note {
  font-size: .72rem;
  color: #c0392b;
  margin-top: .2rem;
}

.cash-kpi-warning {
  border-color: #f5c6c6;
  background: #fff5f5;
}

.cash-kpi-warning .cash-kpi-value {
  color: #c0392b;
}

/* ---- Sections ---- */
.cash-section {
  margin-bottom: 2rem;
}

.cash-section-title {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: .8rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid #e3eff8;
}

/* ---- Therapist stacked cards (mobile-first) ---- */
.cash-therapist-table-wrap {
  display: none;  /* caché sur mobile, visible sur desktop */
}

.cash-therapist-cards {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.cash-therapist-card {
  background: var(--white);
  border: 1px solid #c8dff0;
  border-radius: 8px;
  padding: .75rem 1rem;
}

.cash-therapist-name {
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .2rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.cash-therapist-stats {
  font-size: .85rem;
  color: var(--text);
  margin-bottom: .2rem;
}

.cash-therapist-pay {
  font-size: .9rem;
  color: var(--text);
}

.cash-therapist-muted {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .1rem;
}

/* ---- Booking stacked cards (mobile-first) ---- */
.cash-booking-table-wrap {
  display: none;
}

.cash-booking-cards {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.cash-booking-card {
  background: var(--white);
  border: 1px solid #c8dff0;
  border-radius: 8px;
  padding: .65rem .9rem;
}

.cash-booking-header {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .2rem;
}

.cash-booking-time {
  font-weight: 700;
  color: var(--blue-dark);
  font-size: .9rem;
}

.cash-booking-service {
  font-weight: 600;
  color: var(--text);
  font-size: .9rem;
}

.cash-booking-dur {
  font-size: .75rem;
  color: var(--muted);
}

.cash-booking-client {
  font-size: .82rem;
  color: var(--text);
  margin-bottom: .25rem;
}

.cash-booking-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .7rem;
  font-size: .8rem;
}

.cash-booking-masseuse {
  color: var(--blue-mid);
  font-weight: 600;
}

.cash-booking-price {
  font-weight: 700;
  color: var(--blue-dark);
}

.cash-booking-split {
  color: var(--muted);
}

/* ---- Shared table styles ---- */
.cash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.cash-table th {
  text-align: left;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding: .5rem .7rem;
  border-bottom: 2px solid #e3eff8;
  white-space: nowrap;
}

.cash-table td {
  padding: .55rem .7rem;
  border-bottom: 1px solid #e8f3fb;
  color: var(--text);
}

.cash-table tr:last-child td {
  border-bottom: none;
}

.cash-num { text-align: right; }
.cash-bold { font-weight: 700; color: var(--blue-dark); }
.cash-muted { color: var(--muted); }

.cash-badge {
  display: inline-block;
  font-size: .68rem;
  padding: .1rem .45rem;
  border-radius: 99px;
  background: #e8f3fb;
  color: var(--blue-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.cash-badge-perm {
  background: #ddf0e8;
  color: #1a6b44;
}

.cash-badge-renfort {
  background: #fff0d5;
  color: #8a5a00;
}

.cash-guarantee {
  color: var(--blue-mid);
  font-size: .75rem;
  cursor: help;
}

.cash-footnote {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .6rem;
  line-height: 1.45;
}

/* ---- Empty state ---- */
.cash-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--white);
  border: 1px solid #c8dff0;
  border-radius: 10px;
}

.cash-empty-icon {
  font-size: 2rem;
  margin-bottom: .5rem;
}

.cash-empty-title {
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: .3rem;
}

.cash-empty-text {
  font-size: .85rem;
  color: var(--muted);
}

/* ---- Desktop : basculer vers tableaux ---- */
@media (min-width: 720px) {
  .cash-kpi-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .cash-therapist-cards,
  .cash-booking-cards {
    display: none;
  }

  .cash-therapist-table-wrap,
  .cash-booking-table-wrap {
    display: block;
  }
}

@media (max-width: 480px) {
  .cash-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cash-header {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---- Alert unassigned ---- */
.cash-alert {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: .7rem 1rem;
  margin-bottom: 1.2rem;
  font-size: .875rem;
  color: #664d03;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.cash-alert-link {
  color: #664d03;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.cash-unassigned {
  color: var(--muted);
  font-style: italic;
}

/* ---- Form help text ---- */
.form-help {
  font-size: .8rem;
  color: #b45300;
  margin-top: .3rem;
  line-height: 1.4;
}

/* ---- Reservations list ---- */
.res-list-table-wrap {
  overflow-x: auto;
}

.res-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.res-list-table th {
  text-align: left;
  padding: .5rem .75rem;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 600;
  white-space: nowrap;
}

.res-list-table td {
  padding: .45rem .75rem;
  border-bottom: 1px solid #e8f0f8;
  vertical-align: middle;
}

.res-list-table tr:hover td {
  background: #f5faff;
}

.res-list-unassigned {
  color: var(--muted);
  font-style: italic;
}

/* ---- Flash messages (success, etc.) ---- */
.flash-msgs { padding: .5rem 1.2rem 0; }
.flash {
  padding: .65rem 1rem;
  border-radius: 8px;
  font-size: .93rem;
  margin-bottom: .5rem;
}
.flash-success {
  background: #e8f7ee;
  border: 1px solid #a8dab5;
  color: #1a6636;
}

/* ---- Form error banner (form-level errors on edit/add) ---- */
.form-error-banner {
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  background: #fff0f0;
  border: 1px solid #f5aaaa;
  border-radius: 8px;
  color: #b71c1c;
  font-size: .93rem;
}
.form-error-banner-list {
  margin: .4rem 0 0 1.2rem;
  padding: 0;
}

/* ---- Edit button (Today cards) ---- */
.btn-edit {
  background: var(--white);
  border: 1px solid var(--blue-mid);
  color: var(--blue-mid);
  text-decoration: none;
}
.btn-edit:hover {
  background: var(--blue-mid);
  color: var(--white);
}

/* ---- Sort links (reservation list table headers) ---- */
.sort-link {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.sort-link:hover {
  color: var(--blue-mid);
  text-decoration: underline;
}

/* ===========================================================================
   Analytics dashboard — Lot 5B
   =========================================================================== */

.analytics-alert {
  background: #fff8e1;
  border: 1px solid #f9c74f;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: 1.2rem;
  font-size: .93rem;
  color: #6b4c00;
}

.analytics-alert-link {
  margin-left: .5rem;
  font-weight: 600;
  color: var(--blue-mid);
}

.analytics-filter-banner {
  background: #e8f3fb;
  border: 1px solid #b0d4ee;
  border-radius: 8px;
  padding: .65rem 1rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: var(--blue-dark);
}

/* ---- Split grid weekday / weekend ---- */
.analytics-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.analytics-split-card {
  background: var(--white);
  border: 1px solid #c8dff0;
  border-radius: 10px;
  padding: .9rem 1rem;
}

.analytics-split-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: .25rem;
}

.analytics-split-value {
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .5rem;
}

/* ---- Progress bars ---- */
.analytics-bar-track {
  background: #e8f2fb;
  border-radius: 4px;
  height: 8px;
  margin-top: .3rem;
  overflow: hidden;
}

.analytics-bar {
  height: 100%;
  border-radius: 4px;
  min-width: 2px;
}

.analytics-bar-legend {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .15rem;
  margin-bottom: .35rem;
}

.analytics-bar-wd-bk  { background: var(--blue-mid); }
.analytics-bar-wd-rev { background: var(--blue-light); }
.analytics-bar-we-bk  { background: var(--gold); }
.analytics-bar-we-rev { background: #f0c050; }
.analytics-bar-channel { background: var(--blue-mid); }

/* ---- Channel list ---- */
.analytics-channel-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.analytics-channel-row {
  background: var(--white);
  border: 1px solid #c8dff0;
  border-radius: 8px;
  padding: .7rem 1rem;
}

.analytics-channel-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .3rem;
}

.analytics-channel-label {
  font-weight: 600;
  color: var(--blue-dark);
  font-size: .95rem;
}

.analytics-channel-stats {
  display: flex;
  gap: .6rem;
  font-size: .83rem;
}

.analytics-channel-bk  { font-weight: 700; }
.analytics-channel-rev { color: var(--text); }

/* --- Objectif mensuel boss --- */
.analytics-goal-box {
  background: var(--white);
  border: 1px solid #d0e4f4;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  display: inline-block;
  min-width: 220px;
}
.analytics-goal-main {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.2rem;
}
.analytics-goal-eur {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.analytics-goal-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  max-width: 420px;
}

@media (max-width: 719px) {
  .analytics-split-grid { grid-template-columns: 1fr; }
}

/* --- Résultat réel estimé --- */
.analytics-result-box {
  background: var(--white);
  border: 1px solid #d0e4f4;
  border-radius: 10px;
  padding: 1rem 1.4rem;
  max-width: 480px;
}
.analytics-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.35rem 0;
  font-size: 0.97rem;
  color: var(--text);
}
.analytics-result-deduction {
  color: var(--muted);
}
.analytics-result-label {
  flex: 1;
}
.analytics-result-value {
  font-weight: 600;
  white-space: nowrap;
  margin-left: 1.2rem;
}
.analytics-result-separator {
  border-top: 1px solid #d0e4f4;
  margin: 0.4rem 0;
}
.analytics-result-total {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-dark);
}
.analytics-result-negative {
  color: #c0392b;
}
.analytics-result-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.6rem;
  max-width: 480px;
}

/* ---- Money display (THB + approx EUR) ---- */
.money-block {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}
.money-thb {
  font-weight: inherit;
  white-space: nowrap;
}
.money-eur,
.budget-eur-hint {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted, #7a7368);
  white-space: nowrap;
}
.summary-card .money-eur {
  margin-top: 0.15rem;
  text-align: center;
}
.summary-card .money-block {
  align-items: center;
  width: 100%;
}

/* ---- Contribution P&L table (management-style bordered grid) ---- */
.pl-wrap {
  overflow: hidden;
}
.pl-header-row {
  margin-bottom: .7rem;
}
.pl-title {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 700;
}
.pl-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #c9c0b3;
  border-radius: 8px;
  background: #fff;
}
.pl-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: .93rem;
}
.pl-table th,
.pl-table td {
  padding: .58rem .7rem;
  vertical-align: middle;
  border: 1px solid #d8d0c5;
}
.pl-table thead th {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #4a433c;
  background: #ebe4d9;
  border-bottom: 2px solid #bdb3a5;
}
.pl-table th.pl-col,
.pl-table td.pl-num {
  text-align: right;
  white-space: nowrap;
}
.pl-table th.pl-line-col,
.pl-table td:first-child {
  text-align: left;
  white-space: normal;
  min-width: 12rem;
  font-weight: 500;
}
.pl-table td.pl-na {
  text-align: center;
  color: #b0a89c;
  background: #faf9f7;
}
.pl-table tbody tr:nth-child(even):not(.pl-section):not(.pl-key):not(.pl-final) td {
  background: #fcfbf9;
}
.pl-table tr.pl-section td {
  background: #e4ddd2;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .045em;
  color: #3f3933;
  padding: .5rem .7rem;
  border-top: 2px solid #bdb3a5;
  border-bottom: 1px solid #bdb3a5;
}
.pl-table tr.pl-key td {
  font-weight: 700;
  background: #f3efe8;
  border-top: 1.5px solid #cfc5b6;
  border-bottom: 1.5px solid #cfc5b6;
}
.pl-table tr.pl-key td.pl-num,
.pl-table tr.pl-key td.pl-total,
.pl-table tr.pl-key td:first-child {
  font-weight: 700;
}
.pl-table tr.pl-final td {
  background: #e6f0ea;
  border-top: 2px solid #8faf9a;
  border-bottom: 2px solid #8faf9a;
  padding-top: .72rem;
  padding-bottom: .72rem;
}
.pl-table .pl-total {
  font-weight: 600;
  background: #f7f4ef;
}
.pl-table tr.pl-key td.pl-total,
.pl-table tr.pl-final td.pl-total {
  background: inherit;
}
.pl-table tr.pl-sub td {
  font-size: .88rem;
  color: #6b645c;
  background: #faf8f5;
}
.pl-table tr.pl-sub td:first-child {
  padding-left: 1.65rem;
  font-weight: 400;
}
.pl-table tr.pl-rate td {
  font-size: .9rem;
  color: #5a534b;
}
.pl-table .money-block--highlight,
.pl-table .money-block--final {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}
.pl-table .money-block--final .money-thb {
  font-size: 1.08em;
  font-weight: 700;
}
.pl-table .money-eur {
  font-size: .76rem;
  font-weight: 400;
  color: #7a7368;
}
.pl-notes {
  margin-top: .85rem;
  font-size: .82rem;
  color: var(--muted, #7a7368);
  line-height: 1.45;
}
.pl-notes p {
  margin: 0 0 .3rem;
}
.pl-notes p:last-child {
  margin-bottom: 0;
}

/* ---- Budget vs Actual ---- */
.budget-input {
  width: 7.5rem;
  max-width: 100%;
  text-align: right;
  padding: .25rem .4rem;
  font-size: .9rem;
}
.budget-field-hint {
  font-size: .72rem;
  color: var(--muted, #7a7368);
  margin-top: .15rem;
}
.budget-bva-table .var-favorable {
  color: #1b6b2a;
  font-weight: 600;
}
.budget-bva-table .var-unfavorable {
  color: #a33;
  font-weight: 600;
}
.budget-bva-table .var-neutral {
  color: #6b645c;
}
.var-label {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  opacity: .85;
}
.var-pct {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  opacity: .9;
}
.act-kpi-block-value.var-favorable { color: #1b6b2a; }
.act-kpi-block-value.var-unfavorable { color: #a33; }
