:root {
  --sidebar-width: 220px;
  --topbar-height: 74px;
  --bg-app: #ececec;
  --bg-card: #ffffff;
  --border: #d9d9d9;
  --border-soft: #eceff2;
  --text-main: #20242a;
  --text-soft: #6b7280;
  --sidebar-top: #343a42;
  --sidebar-bottom: #232a32;
  --header-bg: #efefef;
  --accent: #f97316;
  --accent-dark: #ea6a10;
  --radius-card: 14px;
  --radius-soft: 12px;
  --shadow-card: 0 10px 24px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 18px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Roboto Condensed', Arial, sans-serif;
  background: var(--bg-app);
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: none;
  background: none;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 14px 12px;
  background: linear-gradient(180deg, rgba(20, 24, 30, 0.88) 0%, rgba(10, 13, 18, 0.94) 100%), url('../Images/sidebar-monstera.jpg') center/cover no-repeat;
  color: #fff;
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-brand {
  width: 100%;
  height: 110px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  overflow: hidden;
}

.sidebar-brand-logo {
  width: 300%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 12px;
  color: #f3f4f6;
  font-size: 1.15rem;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(3px);
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 4px 0 0 var(--accent);
}

.nav-icon {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-size: 1.35rem;
  color: #d5d9de;
}

.nav-item.active .nav-icon {
  color: var(--accent);
}

.nav-item:hover .nav-icon {
  color: #fff;
}

.main-wrapper {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
}

.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  padding: 0 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    url("../Images/header-monstera.avif") center / cover no-repeat;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 16px;
  z-index: 900;
  backdrop-filter: saturate(120%) blur(2px);
}

.topbar-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.page-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.topbar-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.topbar-datetime {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.header-date,
.topbar-date {
  color: #6b7280;
  font-size: 0.98rem;
  font-weight: 400;
}

.header-separator,
.topbar-separator {
  color: #9ca3af;
  font-size: 0.95rem;
}

.header-time,
.topbar-time {
  color: #1f2937;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  position: relative;
}

.main-content {
  flex: 1;
  margin-top: var(--topbar-height);
  padding: 18px;
}

.page-shell {
  width: 100%;
  min-height: calc(100vh - var(--topbar-height));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.btn-primary,
.btn-secondary,
.filter-btn,
.pagination-btn,
.square-btn,
.contacts-tab,
.stats-segment-btn,
.settings-tab,
.icon-btn,
.dashboard-link-card,
.dropdown-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.22);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.26);
}

.btn-secondary,
.filter-btn,
.pagination-btn,
.square-btn,
.stats-segment-btn,
.settings-tab {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text-main);
  font-weight: 400;
  cursor: pointer;
}

.btn-secondary:hover,
.filter-btn:hover,
.pagination-btn:hover,
.square-btn:hover,
.stats-segment-btn:hover,
.settings-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}

.topbar-cta {
  min-height: 46px;
  padding: 0 18px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.35rem;
  position: relative;
  z-index: 2;
}

.icon-btn:hover,
.icon-btn.is-open {
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.topbar-dropdown-group {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 30;
}

.dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-panel-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: #fcfcfc;
}

.dropdown-panel-header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-panel-kicker {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.dropdown-panel-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #23272f;
}

.dropdown-panel-title span {
  color: var(--accent);
}

.dropdown-panel-title-profile {
  font-size: 1.05rem;
}

.dropdown-panel-subtitle {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.dropdown-panel-list {
  padding: 8px;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
}

.dropdown-item:hover {
  background: #fff7f1;
  transform: translateY(-1px);
}

.dropdown-item-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-item-content strong {
  color: #242933;
  font-size: 0.98rem;
  font-weight: 700;
}

.dropdown-item-content small {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.35;
}

.profile-mini-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.14);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.profile-mini-text {
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d5d9de;
  border-radius: 12px;
  background: #fff;
  color: var(--text-main);
}

input::placeholder,
textarea::placeholder {
  color: rgba(32, 36, 42, 0.45);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.kpi-card,
.dashboard-card,
.dashboard-card-half,
.prestations-card,
.stats-kpi-card,
.stats-panel,
.settings-panel {
  cursor: default;
}

/* ========================= DASHBOARD V2 ========================= */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.kpi-card,
.dashboard-card,
.dashboard-card-half {
  padding: 16px 18px;
}

.kpi-card {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prestations-card {
  grid-column: 1 / -1;
}

.dashboard-card-half {
  min-height: 220px;
}

.card-head {
  margin-bottom: 14px;
}

.card-head-row {
  display: flex;
  align-items: flex-start;
}

.card-head-row-spread {
  justify-content: space-between;
}

.card-head-main {
  min-width: 0;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.card-date {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.card-divider {
  width: 100%;
  height: 1px;
  margin-top: 10px;
  background: var(--border);
}

.kpi-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.kpi-icon {
  font-size: 2rem;
  color: var(--accent);
}

.kpi-label {
  margin: 0;
  font-size: 1rem;
  color: #2d3137;
}

.kpi-value {
  margin: 0;
  padding-left: 42px;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.1;
}

.dashboard-badge {
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.dashboard-table-head {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
  margin: 0 0 6px;
  border: 1px solid #eceff3;
  border-radius: 12px;
  background: #f7f8fa;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dashboard-table-head-prestations,
.dashboard-row-link-prestation {
  grid-template-columns: 88px 64px minmax(130px, 1fr) minmax(260px, 2.3fr) 92px 88px 110px;
}

.dashboard-table-head-activity,
.dashboard-row-link-activity {
  grid-template-columns: 88px 64px minmax(110px, 1fr) minmax(110px, 0.9fr);
}

.dashboard-table-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #edf0f3;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.dashboard-table-item {
  border-bottom: 1px solid #edf0f3;
  background: #fff;
}

.dashboard-table-item:nth-child(even) {
  background: #fbfcfd;
}

.dashboard-table-item:last-child {
  border-bottom: none;
}

.dashboard-table-item-clickable:hover {
  background: #fff7f1;
}

.dashboard-row-link {
  min-height: 54px;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
}

.dashboard-row-link-prestation {
  min-height: 56px;
}

.dashboard-row-link-activity {
  min-height: 50px;
}

.dashboard-cell {
  min-width: 0;
  color: #353a40;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-cell-date,
.dashboard-cell-time,
.dashboard-cell-prestation-id {
  font-weight: 700;
  color: #1f2937;
}

.dashboard-cell-client,
.dashboard-cell-location,
.dashboard-cell-service,
.dashboard-cell-activity {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-inline-link {
  color: #1f2937;
  text-decoration: none;
}

.dashboard-inline-link:hover {
  color: var(--accent);
}

.dashboard-link-muted {
  color: #374151;
}

.dashboard-event-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-event-badge-contact {
  color: #475569;
  background: #eef2f7;
}

.dashboard-event-badge-done {
  color: #0f7a47;
  background: #e8f6ee;
}

.dashboard-event-badge-negative {
  color: #c2410c;
  background: #fff0eb;
}

.dashboard-charge-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dashboard-charge-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-charge-ratio,
.dashboard-charge-percent,
.dashboard-charge-state,
.dashboard-charge-next {
  margin: 0;
}

.dashboard-charge-ratio {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
}

.dashboard-charge-percent {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
}

.dashboard-charge-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #eceff3;
  overflow: hidden;
}

.dashboard-charge-bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

.dashboard-charge-bar-fill.is-low {
  background: #16a34a;
}

.dashboard-charge-bar-fill.is-medium {
  background: var(--accent);
}

.dashboard-charge-bar-fill.is-high {
  background: #dc2626;
}

.dashboard-charge-state {
  font-weight: 700;
  color: #374151;
}

.dashboard-charge-next {
  color: var(--text-soft);
  line-height: 1.45;
}

.dashboard-empty-state {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-soft);
}

.dashboard-empty-state i {
  font-size: 1.6rem;
  color: #a8b0ba;
}

.dashboard-empty-state p {
  margin: 0;
}

.dashboard-empty-state-compact {
  min-height: 120px;
}

.dashboard-link-card {
  display: block;
  cursor: pointer;
}

.dashboard-link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #d6d9de;
}

.dashboard-link-card:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.26);
  outline-offset: 2px;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

@media (max-width: 1100px) {
  .dashboard-table-head-prestations,
  .dashboard-row-link-prestation {
    grid-template-columns: 80px 60px minmax(120px, 1fr) 80px 88px 80px 100px;
    font-size: 0.9rem;
  }

  .dashboard-table-head-activity,
  .dashboard-row-link-activity {
    grid-template-columns: 80px 60px minmax(100px, 1fr) minmax(90px, 0.9fr);
    font-size: 0.9rem;
  }
}


/* planning */
.planning-card {
  padding: 18px;
  min-height: calc(100vh - var(--topbar-height) - 36px);
}

.planning-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e3e3e3;
}

.planning-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f7f7f7;
  color: #2c3138;
  cursor: pointer;
}

.planning-action-btn:hover {
  background: #fff;
}

.planning-action-btn i {
  color: var(--accent);
  font-size: 1.2rem;
}

.planning-action-btn-split {
  justify-content: space-between;
  min-width: 290px;
}

.planning-action-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.planning-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #f3f3f3;
}

.planning-toolbar-left,
.planning-toolbar-right,
.planning-nav-arrows {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.planning-nav-arrows {
  gap: 8px;
}

.square-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #ececec;
  color: #7b8390;
  cursor: pointer;
}

.planning-current-range {
  font-weight: 700;
  font-size: 1.1rem;
}

.planning-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eaeaea;
  border-radius: 999px;
  padding: 4px;
}

.planning-view-btn {
  min-width: 72px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  color: #5b616b;
}

.planning-view-btn.active {
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.planning-calendar-wrap {
  overflow: auto;
  border: 1px solid #dfdfdf;
  border-radius: 16px;
  background: #fafafa;
}

.planning-calendar {
  min-width: 1020px;
}

.planning-calendar-head {
  display: grid;
  grid-template-columns: 82px repeat(7, minmax(120px, 1fr));
  background: #2e3339;
  color: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.planning-hour-head,
.planning-day-head {
  padding: 14px 12px;
  font-weight: 700;
}

.planning-day-head {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.planning-day-name {
  display: block;
}

.planning-day-date {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.planning-calendar-body {
  display: grid;
  grid-template-columns: 82px repeat(7, minmax(120px, 1fr));
}

.planning-hour-col {
  background: #f1f1f1;
  border-right: 1px solid #dfdfdf;
}

.planning-hour-slot {
  height: 78px;
  padding: 10px 10px 0;
  border-bottom: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.92rem;
}

.planning-day-col {
  background: #fff;
  border-right: 1px solid #eceff2;
}

.planning-day-col:last-child {
  border-right: none;
}

.planning-slot {
  position: relative;
  height: 78px;
  border-bottom: 1px solid #eceff2;
  padding: 8px;
}

.planning-event {
  width: 100%;
  min-height: 62px;
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.planning-event.orange {
  background: linear-gradient(180deg, #fb8b2a 0%, #f97316 100%);
}

.planning-event.blue {
  background: linear-gradient(180deg, #5aa9ff 0%, #367df0 100%);
}

.planning-event.green {
  background: linear-gradient(180deg, #45c98f 0%, #1fa971 100%);
}

.planning-event.purple {
  background: linear-gradient(180deg, #ac8cf7 0%, #8b5cf6 100%);
}

.planning-event-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.planning-event-meta {
  font-size: 0.9rem;
  opacity: 0.92;
}

/* contacts + prestations list pages */
.contacts-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contacts-tab {
  min-width: 120px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f6f6f6;
  color: #363b42;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.contacts-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.18);
}

.contacts-card {
  padding: 18px 0 0;
  overflow: hidden;
}

.contacts-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 0 18px 18px;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap input {
  padding-left: 48px;
  min-height: 52px;
}

.search-input-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #8b93a1;
  font-size: 1.2rem;
}

.contacts-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 18px 18px;
}

.contacts-list-title {
  margin: 0;
  font-size: 1.25rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8f8f8;
  cursor: pointer;
  color: #363b42;
}

.contacts-table-wrap {
  overflow-x: auto;
}

.contacts-table {
  width: 100%;
  border-collapse: collapse;
}

.contacts-table thead th {
  background: #2e3339;
  color: #fff;
  text-align: left;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 700;
}

.contacts-table thead th:first-child {
  border-top-left-radius: 16px;
}

.contacts-table thead th:last-child {
  border-top-right-radius: 16px;
}

.contacts-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
}

.contacts-table tbody tr:hover {
  background: #fff7f1;
}

.contact-name {
  font-weight: 700;
  font-size: 1rem;
}

.contact-subline {
  color: var(--text-soft);
  margin-top: 4px;
}

.col-action {
  width: 56px;
}

.cell-arrow {
  text-align: right;
  color: #6d7380;
  font-size: 1.1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: #e8f5ec;
  color: #23804b;
  font-weight: 700;
}

.status-badge--coming {
  background: #eaf2ff;
  color: #2f69d6;
}

.status-badge--done {
  background: #e8f5ec;
  color: #23804b;
}

.status-badge--cancel {
  background: #fdecec;
  color: #be3b3b;
}

.contacts-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f7f7f7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6f7683;
}

.pagination-current {
  min-width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f1f1f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* statistiques */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stats-kpi-card {
  padding: 22px 24px;
  min-height: 164px;
}

.stats-kpi-label {
  color: #59606b;
  font-size: 1rem;
}

.stats-kpi-value {
  margin-top: 14px;
  font-size: 2.3rem;
  font-weight: 700;
}

.stats-kpi-trend {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1rem;
  color: #2f8f5b;
}

.stats-kpi-trend i {
  font-size: 1.2rem;
}

.stats-panel {
  padding: 0;
  overflow: hidden;
}

.stats-panel-wide {
  grid-column: span 2;
}

.stats-panel-side {
  grid-column: span 1;
}

.stats-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-soft);
}

.stats-panel-title {
  margin: 0;
  font-size: 1.2rem;
}

.stats-segmented {
  display: inline-flex;
  gap: 8px;
}

.stats-segment-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f6f6f6;
  cursor: pointer;
  color: #5b616b;
}

.stats-segment-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.stats-line-chart {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 18px 24px 12px;
  min-height: 320px;
}

.stats-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #7b8190;
  font-size: 0.95rem;
  padding-top: 8px;
}

.stats-plot-area {
  position: relative;
  min-height: 240px;
}

.stats-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 100% 25%, 14.285% 100%;
}

.stats-line-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stats-chart-badge {
  position: absolute;
  top: 8px;
  right: 24px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.22);
}

.stats-x-axis {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  color: #6b7280;
  padding: 0 24px 22px 106px;
}

.stats-donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
}

.stats-donut-chart {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: conic-gradient(#f97316 0 45%, #40b66f 45% 70%, #6bc1d8 70% 90%, #f2cf4a 90% 100%);
  position: relative;
  flex-shrink: 0;
}

.stats-donut-chart::after {
  content: '';
  position: absolute;
  inset: 28px;
  background: #fff;
  border-radius: 50%;
}

.stats-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-weight: 700;
  font-size: 1.3rem;
}

.stats-legend {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stats-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.stats-legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.dot-orange { background: #f97316; }
.dot-green { background: #40b66f; }
.dot-blue { background: #6bc1d8; }
.dot-yellow { background: #f2cf4a; }

.stats-weather-box {
  margin: 0 24px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.stats-weather-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.stats-weather-icon {
  font-size: 2rem;
}

.stats-weather-state {
  font-size: 1.15rem;
  font-weight: 700;
}

.stats-weather-text {
  margin: 0;
  color: #4c5561;
  line-height: 1.45;
}

/* paramètres */
.settings-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.settings-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-tab {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f7f7f7;
  cursor: pointer;
  color: #404750;
  font-weight: 700;
}

.settings-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.settings-panel {
  padding: 22px;
}

.settings-panel-title {
  margin: 0 0 18px;
  font-size: 1.2rem;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-field.full {
  grid-column: 1 / -1;
}

.settings-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.settings-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}

.settings-switch-row:last-child {
  border-bottom: none;
}

.settings-switch-text strong {
  display: block;
  margin-bottom: 4px;
}

.settings-switch-text span {
  color: var(--text-soft);
}

.toggle-switch {
  position: relative;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: #d5d9de;
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.toggle-switch.active {
  background: rgba(249, 115, 22, 0.34);
}

.toggle-switch.active::after {
  left: 30px;
  background: var(--accent);
}

.settings-hours-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-hours-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.settings-day {
  font-weight: 700;
}

.settings-status {
  color: var(--text-soft);
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

/* responsive */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-panel-wide {
    grid-column: span 2;
  }

  .stats-panel-side {
    grid-column: span 2;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: minmax(140px, 1fr) auto auto;
  }

  .topbar-datetime {
    padding: 10px 14px;
  }
}

@media (max-width: 992px) {
  :root {
    --sidebar-width: 86px;
  }

  .sidebar {
    padding: 14px 10px;
  }

  .sidebar-brand {
    height: 70px;
    margin-bottom: 16px;
    padding: 0;
  }

  .sidebar-brand-logo {
    width: 260%;
    max-width: 90px;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
    gap: 0;
  }

  .nav-item span,
  .topbar-cta span {
    display: none;
  }

  .nav-icon {
    width: auto;
    font-size: 1.4rem;
  }

  .topbar {
    padding: 0 16px;
    grid-template-columns: auto 1fr auto;
  }

  .topbar-cta {
    width: 46px;
    min-width: 46px;
    padding: 0;
  }

  .dashboard-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .prestations-card,
  .stats-panel-wide,
  .stats-panel-side {
    grid-column: auto;
  }

  .contacts-toolbar {
    grid-template-columns: 1fr;
  }

  .contacts-list-head {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-donut-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown-panel {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.55rem;
  }

  .main-content {
    padding: 16px;
  }

  .kpi-value {
    font-size: 1.9rem;
    padding-left: 38px;
  }

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

  .settings-hours-row {
    grid-template-columns: 1fr;
  }

  .stats-line-chart {
    grid-template-columns: 1fr;
  }

  .stats-y-axis {
    display: none;
  }

  .stats-x-axis {
    padding: 0 24px 22px;
    font-size: 0.9rem;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "left right"
      "center center";
    height: auto;
    min-height: var(--topbar-height);
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .topbar-left {
    grid-area: left;
  }

  .topbar-right {
    grid-area: right;
  }

  .topbar-center {
    grid-area: center;
    justify-content: flex-start;
  }

  .topbar-datetime {
    margin-top: 4px;
    max-width: 100%;
  }

  .main-content {
    margin-top: 0;
  }

  .main-wrapper {
    padding-top: 108px;
  }
}

@media (max-width: 576px) {
  :root {
    --sidebar-width: 72px;
    --topbar-height: 70px;
  }

  .topbar {
    padding: 10px 12px;
    gap: 12px;
  }

  .page-title {
    font-size: 1.35rem;
  }

  .topbar-right {
    gap: 8px;
  }

  .icon-btn,
  .topbar-cta {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .main-content {
    padding: 12px;
  }

  .kpi-card,
  .dashboard-card,
  .stats-kpi-card,
  .settings-panel {
    padding: 14px;
  }

  .contacts-tab,
  .settings-tab {
    min-width: auto;
    padding: 0 14px;
  }

  .topbar-datetime {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.95rem;
  }

  .topbar-date {
    font-size: 0.92rem;
  }

  .topbar-time {
    font-size: 1rem;
  }

  .dropdown-panel {
    width: min(300px, calc(100vw - 110px));
  }

  .main-wrapper {
    padding-top: 112px;
  }
}
/* =========================================
   PAGE PLANNING
========================================= */

.planning-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================================
   SECTIONS PLANNING
========================================= */

.planning-actions-section,
.planning-toolbar-section,
.planning-calendar-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.planning-actions-section,
.planning-toolbar-section {
  padding: 24px;
}

.planning-calendar-section {
  padding: 0;
  overflow: hidden;
}

.planning-actions-header {
  margin-bottom: 18px;
}

.planning-section-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f97316;
}

.planning-section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

/* =========================================
   CARTES ACTIONS
========================================= */

.planning-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.planning-action-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.planning-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
  filter: brightness(0.99);
}

.planning-action-card strong {
  font-size: 17px;
  font-weight: 700;
}

.planning-action-card small {
  font-size: 14px;
  line-height: 1.45;
}

/* Badge commun */
.planning-action-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Rendez-vous */
/* =========================================
   CARTES ACTIONS PLANNING — NUANCES ORANGE
========================================= */

/* =========================================
   CARTES ACTIONS PLANNING — NUANCES ORANGE
========================================= */

/* Rendez-vous */
#openAppointmentDrawer.planning-action-card {
  background: linear-gradient(180deg, #fff4eb 0%, #ffe4cf 100%);
  border-color: #fb923c;
}

#openAppointmentDrawer strong {
  color: #c2410c;
}

#openAppointmentDrawer small {
  color: #9a3412;
}

#openAppointmentDrawer .planning-action-badge {
  background: rgba(255,255,255,0.6);
  color: #ea580c;
}


/* Événement */
#openEventDrawer.planning-action-card {
  background: linear-gradient(180deg, #fff7f0 0%, #ffeede 100%);
  border-color: #fdba74;
}

#openEventDrawer strong {
  color: #d97706;
}

#openEventDrawer small {
  color: #b45309;
}

#openEventDrawer .planning-action-badge {
  background: rgba(255,255,255,0.6);
  color: #ea580c;
}


/* Tâche */
#openTaskDrawer.planning-action-card {
  background: linear-gradient(180deg, #fffaf6 0%, #fff3e8 100%);
  border-color: #fed7aa;
}

#openTaskDrawer strong {
  color: #ea580c;
}

#openTaskDrawer small {
  color: #c2410c;
}

#openTaskDrawer .planning-action-badge {
  background: rgba(255,255,255,0.6);
  color: #f97316;
}
/* =========================================
   BARRE OUTILS CALENDRIER
========================================= */

.planning-toolbar-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.planning-toolbar-left,
.planning-toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.planning-nav-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.planning-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.planning-nav-btn:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.planning-period-label {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.planning-today-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.planning-today-btn:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.planning-view-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.planning-view-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: transparent;
  color: #6b7280;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.planning-view-btn:hover {
  background: #ffffff;
  color: #111827;
}

.planning-view-btn.active {
  background: #f97316;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.22);
}

/* =========================================
   CALENDRIER
========================================= */

.planning-calendar-shell {
  width: 100%;
  background: #ffffff;
}

.planning-calendar-header,
.planning-calendar-body {
  display: grid;
}

.planning-calendar-header {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.planning-calendar-body {
  min-width: 920px;
}

.planning-time-head,
.planning-day-head,
.planning-time-cell,
.planning-slot-cell,
.planning-month-cell {
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.planning-time-head {
  min-height: 72px;
  padding: 14px 12px 14px 18px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}

.planning-day-head {
  min-height: 72px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.planning-day-name {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.planning-day-number {
  margin-top: 6px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.planning-day-number.is-today {
  background: #f97316;
  color: #ffffff;
}

.planning-time-cell {
  min-height: 76px;
  padding: 10px 12px 10px 18px;
  background: #fcfdff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.planning-slot-cell {
  min-height: 76px;
  background: #ffffff;
  padding: 8px;
  position: relative;
  transition: background-color 0.18s ease;
}

.planning-slot-cell:hover {
  background: #fbfdff;
}

.planning-slot-cell.is-current {
  background: #fffaf5;
}

.planning-slot-button {
  width: 100%;
  min-height: 58px;
  border-radius: 12px;
  border: 1px dashed transparent;
  background: transparent;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.planning-slot-cell:hover .planning-slot-button,
.planning-month-cell:hover .planning-slot-button {
  border-color: #d7dee8;
  background: #fafcff;
}

/* =========================================
   EVENEMENTS
========================================= */

.planning-event {
  width: 100%;
  border-radius: 14px;
  padding: 10px 12px;
  color: #ffffff;
  text-align: left;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.planning-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.15);
}

.planning-event-title {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
}

.planning-event-meta {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.98;
}

.planning-event.appointment {
  background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
}

.planning-event.event {
  background: linear-gradient(180deg, #a78bfa 0%, #8b5cf6 100%);
}

.planning-event.service-blue {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.planning-event.service-green {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
}

/* =========================================
   VUE MOIS
========================================= */

.planning-calendar-body.month-view {
  min-width: 100%;
}

.planning-month-cell {
  min-height: 140px;
  background: #ffffff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.planning-month-cell.is-other-month {
  background: #f9fafb;
}

.planning-month-cell.is-today {
  background: #fffaf5;
}

.planning-month-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.planning-month-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.planning-month-cell.is-today .planning-month-number {
  background: #f97316;
  color: #ffffff;
}

.planning-month-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.planning-month-chip {
  width: 100%;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.planning-month-chip.appointment {
  background: #f97316;
}

.planning-month-chip.event {
  background: #8b5cf6;
}

.planning-month-chip.service-blue {
  background: #2563eb;
}

.planning-month-chip.service-green {
  background: #16a34a;
}

/* =========================================
   DRAWER
========================================= */

.planning-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 70;
}

.planning-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.planning-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: #ffffff;
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 80;
  display: flex;
  flex-direction: column;
}

.planning-drawer.open {
  transform: translateX(0);
}

.planning-drawer-header {
  padding: 24px 24px 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.planning-drawer-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f97316;
}

.planning-drawer-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.planning-drawer-close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.planning-drawer-close:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.planning-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px 28px;
}

/* =========================================
   FORMULAIRES
========================================= */

.planning-drawer-form,
.planning-drawer-detail {
  display: none;
}

.planning-drawer-form.active,
.planning-drawer-detail.active {
  display: block;
}

.planning-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.planning-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.planning-form-group label {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.planning-form-group input,
.planning-form-group select,
.planning-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.planning-form-group input::placeholder,
.planning-form-group textarea::placeholder {
  color: #9ca3af;
}

.planning-form-group input:focus,
.planning-form-group select:focus,
.planning-form-group textarea:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.planning-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.planning-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.planning-submit-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   DETAIL
========================================= */

.planning-detail-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
}

.planning-detail-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.planning-detail-title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.planning-detail-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.planning-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.planning-detail-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.planning-detail-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.planning-detail-value {
  font-size: 14px;
  line-height: 1.5;
  color: #111827;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1200px) {
  .planning-actions-grid {
    grid-template-columns: 1fr;
  }

  .planning-toolbar-section {
    flex-direction: column;
    align-items: stretch;
  }

  .planning-toolbar-left,
  .planning-toolbar-right {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .planning-actions-section,
  .planning-toolbar-section {
    padding: 18px;
  }

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

  .planning-calendar-body {
    min-width: 760px;
  }

  .planning-drawer {
    width: 100vw;
  }
}

/* =========================================
   CONTACTS CRM V1.5
========================================= */
.contacts-page-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contacts-module-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contacts-module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contacts-tabs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contacts-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 150px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid #d8dde3;
  border-radius: 14px;
  background: #f7f8fa;
  color: #374151;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.contacts-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.contacts-tab.is-active {
  background: linear-gradient(180deg, #fb923c 0%, var(--accent) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.22);
}

.contacts-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
}

.contacts-tab.is-active .contacts-tab-count {
  background: rgba(255, 255, 255, 0.18);
}

.contacts-module-card {
  padding-top: 20px;
  overflow: hidden;
}

.contacts-toolbar-v2 {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 14px;
  padding: 0 20px 20px;
  align-items: center;
}

.contacts-search-wrap input,
.contacts-filter-select,
.planning-form-group input,
.planning-form-group select,
.planning-form-group textarea {
  width: 100%;
}

.contacts-search-wrap input {
  min-height: 54px;
  padding: 0 18px 0 48px;
  border: 1px solid #d8dde3;
  border-radius: 14px;
  background: #fbfcfd;
  color: #111827;
}

.contacts-search-wrap input::placeholder {
  color: #9ca3af;
}

.contacts-search-wrap input:focus,
.contacts-filter-select:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.contacts-add-btn {
  min-height: 54px;
  padding: 0 22px;
}

.contacts-list-head-v2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 0 20px 18px;
}

.contacts-list-kicker {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.contacts-list-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.contacts-filters-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contacts-filter-label {
  font-size: 0.96rem;
  font-weight: 700;
  color: #4b5563;
}

.contacts-filter-select-wrap {
  position: relative;
  min-width: 210px;
}

.contacts-filter-select-wrap i {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

.contacts-filter-select {
  min-height: 50px;
  padding: 0 42px 0 16px;
  border: 1px solid #d8dde3;
  border-radius: 12px;
  background: #f8fafc;
  color: #111827;
  cursor: pointer;
  appearance: none;
}

.contacts-table-v2 thead th {
  background: linear-gradient(180deg, #353b44 0%, #2b3138 100%);
  white-space: nowrap;
}

.contacts-table-v2 tbody tr {
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contacts-table-v2 tbody tr:hover {
  background: #fff7f1;
}

.contacts-table-v2 tbody tr:focus-within {
  outline: 2px solid rgba(249, 115, 22, 0.25);
  outline-offset: -2px;
  background: #fff7f1;
}

.contact-row td {
  vertical-align: middle;
}

.contact-name {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.contact-subline {
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.92rem;
}

.contact-interaction {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-interaction--fresh {
  background: #ecfdf3;
  color: #1f8f51;
}

.contact-interaction--warm {
  background: #eff6ff;
  color: #2563eb;
}

.contact-interaction--stale {
  background: #f3f4f6;
  color: #6b7280;
}

.status-badge {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
}

.status-badge--client {
  background: #fff2e8;
  color: #c95f13;
}

.status-badge--prospect {
  background: #ecfdf3;
  color: #18794e;
}

.contacts-row-action {
  width: 40px;
  height: 40px;
  border: 1px solid #dde3ea;
  border-radius: 12px;
  background: #f8fafc;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.contacts-row-action:hover {
  background: #fff2e8;
  color: var(--accent);
  border-color: rgba(249, 115, 22, 0.24);
}

.contacts-empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 300px;
  padding: 32px 20px 40px;
  text-align: center;
}

.contacts-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #fff2e8;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.contacts-empty-state h3 {
  margin: 0;
  font-size: 1.3rem;
}

.contacts-empty-state p {
  max-width: 420px;
  margin: 0;
  color: #6b7280;
  line-height: 1.5;
}

.contacts-pagination {
  border-top: 1px solid #eef2f7;
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contacts-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1090;
}

.contacts-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contacts-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 100vw);
  height: 100vh;
  background: #ffffff;
  box-shadow: -20px 0 40px rgba(15, 23, 42, 0.16);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

.contacts-drawer.open {
  transform: translateX(0);
}

.contacts-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid #eef2f7;
}

.contacts-drawer-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.contacts-drawer-title {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.contacts-drawer-close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f8fafc;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.contacts-drawer-close:hover {
  background: #fff2e8;
  color: var(--accent);
}

.contacts-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px 28px;
}

.contacts-drawer-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contacts-form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contacts-drawer-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #f8fafc;
}

.contacts-drawer-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contacts-drawer-meta-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.contacts-drawer-meta-value {
  color: #111827;
  font-weight: 700;
}

.contacts-drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.contacts-cancel-btn,
.contacts-save-btn {
  min-height: 50px;
  padding: 0 20px;
}

body.drawer-open {
  overflow: hidden;
}

@media (max-width: 1200px) {
  .contacts-toolbar-v2 {
    grid-template-columns: 1fr;
  }

  .contacts-list-head-v2 {
    align-items: stretch;
    flex-direction: column;
  }

  .contacts-filters-right {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .contacts-tab {
    width: 100%;
  }

  .contacts-filters-right {
    flex-direction: column;
    align-items: stretch;
  }

  .contacts-filter-select-wrap {
    width: 100%;
    min-width: 0;
  }

  .contacts-form-row,
  .contacts-drawer-meta {
    grid-template-columns: 1fr;
  }

  .contacts-drawer {
    width: 100vw;
  }
}
/* =========================================================
   PAGE PRESTATIONS
========================================================= */

.prestations-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prestations-card {
  padding: 18px 0 0;
  overflow: hidden;
}

.prestations-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 0 18px 18px;
}

.prestations-add-btn {
  white-space: nowrap;
}

.prestations-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 18px;
}

.prestations-list-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-strong);
}

.prestations-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--border);
}

.prestations-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.prestations-table thead th {
  text-align: left;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-soft);
  padding: 14px 18px;
  background: #faf7f4;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.prestations-table tbody tr {
  transition: background 0.2s ease;
  cursor: pointer;
}

.prestations-table tbody tr:hover {
  background: #fff8f1;
}

.prestations-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.95rem;
  vertical-align: middle;
}

.prestation-name {
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 4px;
}

.prestation-subline {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.col-action {
  width: 56px;
}

.cell-arrow {
  text-align: right;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.prestations-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 18px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* =========================================================
   BADGES STATUT PRESTATIONS
========================================================= */

.status-badge.neutral {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

/* =========================================================
   RESPONSIVE PRESTATIONS
========================================================= */

@media (max-width: 900px) {
  .prestation-quickview-fields {
    grid-template-columns: 1fr;
  }

  .prestation-quickview-field,
  .prestation-quickview-field-full,
  .prestation-quickview-block-full {
    grid-column: auto;
  }

  .prestations-toolbar {
    grid-template-columns: 1fr;
  }

  .prestations-list-head {
    flex-direction: column;
    align-items: stretch;
  }

  .prestations-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   MONSTERA PRESTATIONS V1.5 - CORRECTIONS COMPLÈTES
========================================================= */

.prestations-page-main {
  padding: 18px;
}

.prestations-module-shell {
  min-height: calc(100vh - var(--topbar-height) - 36px);
}

.prestations-module-card {
  overflow: hidden;
}

.prestations-toolbar-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.prestations-search-wrap {
  position: relative;
}

.prestations-search-wrap i {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.4rem;
}

.prestations-search-wrap input {
  width: 100%;
  min-height: 68px;
  padding: 0 20px 0 56px;
  border: 1px solid #ccd3da;
  border-radius: 18px;
  background: #fbfcfd;
  color: #111827;
  font-size: 1rem;
}

.prestations-search-wrap input::placeholder {
  color: #98a2b3;
}

.prestations-segmented {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 246px;
  min-width: 246px;
  height: 68px;
  padding: 5px;
  border-radius: 999px;
  background: #eef2f5;
  border: 1px solid #cfd7df;
  overflow: hidden;
  isolation: isolate;
}

.prestations-segment-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9736 0%, #ff7b19 100%);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.24), 0 2px 6px rgba(249, 115, 22, 0.18);
  transform: translateX(0);
  transition: transform 0.26s ease;
  z-index: 0;
}

.prestations-segmented.is-total .prestations-segment-slider {
  transform: translateX(100%);
}

.prestations-segment-btn {
  position: relative;
  z-index: 1;
  height: 100%;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: color 0.22s ease, transform 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.prestations-segment-btn:hover {
  color: #111827;
}

.prestations-segment-btn:active {
  transform: scale(0.985);
}

.prestations-segment-btn[aria-pressed="true"] {
  color: #ffffff;
}

.prestations-segment-btn.is-active {
  color: #ffffff;
}

.prestations-segment-btn:not([aria-pressed="true"]) {
  background: transparent !important;
  box-shadow: none !important;
}

.prestations-quick-add {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9736 0%, #ff7b19 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.24);
}

.prestations-quick-add:hover {
  transform: translateY(-1px);
}

.prestations-list-head-v2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 10px 18px 18px;
}

.prestations-list-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.prestations-list-title-v2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.prestations-page-main .prestations-filters-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.prestations-filter-label {
  color: #475569;
  font-weight: 700;
}

.prestations-filter-select-wrap {
  position: relative;
  min-width: 190px;
}

.prestations-filter-select {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 18px;
  border-radius: 16px;
  border: 1px solid #ccd3da;
  background: #fbfcfd;
  color: #111827;
  appearance: none;
  cursor: pointer;
}

.prestations-filter-select-wrap i {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.prestations-table-shell {
  position: relative;
  min-height: 420px;
}

.prestations-table-v2 {
  width: 100%;
  border-collapse: collapse;
}

.prestations-table-v2 thead th {
  padding: 16px 18px;
  text-align: left;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  background: linear-gradient(90deg, #343a42 0%, #232a32 100%);
}

.prestations-table-v2 thead th:last-child {
  width: 78px;
}

.prestations-table-v2 tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid #e6ebf1;
  vertical-align: middle;
}

.prestation-row {
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.prestation-row:hover {
  background: #fff8f1;
}

.prestations-nom-cell {
  min-width: 300px;
}

.prestation-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.prestation-client {
  margin-top: 4px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--accent);
}

.prestation-sub {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.4;
}

.prestation-row-action {
  text-align: right;
}

.prestation-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #d7dee6;
  background: #f8fafc;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.prestation-arrow-btn:hover {
  background: #ffffff;
  color: #111827;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.status-badge--active {
  background: #e7f4ea;
  color: #1f7a39;
}

.status-badge--draft {
  background: #f1f3f5;
  color: #64748b;
}

.status-badge--paused {
  background: #e8f2eb;
  color: #22704b;
}

.status-badge--archived {
  background: #fff0e6;
  color: #cf6a13;
}

.prestations-empty-state {
  position: absolute;
  inset: 76px 0 0;
  display: grid;
  place-items: center;
  padding: 40px 20px 24px;
  text-align: center;
  background: #ffffff;
}

.prestations-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: #fff1e6;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.prestations-empty-state h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.prestations-empty-state p {
  max-width: 460px;
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.prestations-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid #edf1f5;
}

.prestations-pagination-label {
  color: #64748b;
}

.prestations-pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prestations-pagination-current {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.prestations-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 1090;
}

.prestations-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.prestations-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100vh;
  padding: 20px;
  background: #ffffff;
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.16);
  transform: translateX(100%);
  transition: transform 0.26s ease;
  z-index: 1100;
  overflow-y: auto;
}

.prestations-drawer.open {
  transform: translateX(0);
}

.prestations-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.prestations-drawer-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
}

.prestations-drawer-title {
  margin: 0;
  font-size: 1.55rem;
}

.prestations-drawer-section {
  display: none;
}

.prestations-drawer-section.active {
  display: block;
}

.prestation-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.prestation-detail-name {
  margin: 0;
  font-size: 1.45rem;
}

.prestation-detail-client {
  margin: 8px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.prestation-detail-subline {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.55;
}

.prestation-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.prestation-detail-card {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e7ecf2;
}

.prestation-detail-card span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 0.88rem;
}

.prestation-detail-card strong {
  color: #111827;
  font-size: 1rem;
}

.prestation-detail-note-box {
  padding: 16px;
  border-radius: 16px;
  background: #fffaf5;
  border: 1px solid #ffe2cc;
}

.prestation-detail-note-box span {
  display: block;
  margin-bottom: 8px;
  color: #cf6a13;
  font-weight: 700;
}

.prestation-detail-note-box p {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.prestation-create-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prestation-form-grid,
.prestation-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.prestation-form-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prestation-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prestation-form-group label {
  font-weight: 700;
  color: #374151;
}

.prestation-form-group input,
.prestation-form-group select,
.prestation-form-group textarea {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #d8dde3;
  border-radius: 12px;
  background: #fbfcfd;
  color: #111827;
}

.prestation-form-group textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.prestation-form-helper {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.prestation-drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.prestation-secondary-btn,
.prestation-primary-btn {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.prestation-secondary-btn {
  border: 1px solid #d8dde3;
  background: #f8fafc;
  color: #374151;
}

.prestation-primary-btn {
  background: linear-gradient(180deg, #fb923c 0%, var(--accent) 100%);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(249, 115, 22, 0.2);
}

.prestation-secondary-btn:hover,
.prestation-primary-btn:hover {
  transform: translateY(-1px);
}

body.drawer-open {
  overflow: hidden;
}

@media (max-width: 1200px) {
  .prestations-toolbar-v2 {
    grid-template-columns: 1fr;
  }

  .prestations-list-head-v2 {
    flex-direction: column;
    align-items: stretch;
  }

  .prestations-page-main .prestations-filters-right {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 14px;
  }

  .prestations-toolbar-v2 {
    gap: 14px;
    padding: 14px;
  }

  .prestations-search-wrap input {
    min-height: 60px;
  }

  .prestations-segmented {
    width: 100%;
    min-width: 0;
    height: 60px;
  }

  .prestations-page-main .prestations-quick-add {
    width: 60px;
    height: 60px;
    justify-self: end;
  }

  .prestations-page-main .prestations-filters-right {
    flex-direction: column;
    align-items: stretch;
  }

  .prestations-filter-select-wrap {
    width: 100%;
  }

  .prestations-table-shell {
    overflow-x: auto;
  }

  .prestations-table-v2 {
    min-width: 760px;
  }

  .prestation-detail-meta,
  .prestation-form-grid,
  .prestation-form-row {
    grid-template-columns: 1fr;
  }

  .prestations-drawer {
    width: 100vw;
    padding: 16px;
  }
}
/* ================================
   FIX TABLE PRESTATIONS
================================ */

/* conteneur catalogue */
.prestations-catalogue {
height: auto;
overflow: visible;
display: flex;
flex-direction: column;
}

/* wrapper du tableau */
.prestations-table-wrapper {
width: 100%;
overflow-x: auto;
overflow-y: visible;
flex: 1;
}

/* table */
.prestations-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}

/* body tableau */
.prestations-table tbody {
display: table-row-group;
}

/* lignes */
.prestations-table tr {
height: auto;
}

/* état vide */
.prestations-empty {
padding: 60px 20px;
text-align: center;
color: #64748b;
}
.settings-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  padding: 14px 18px;
  border-radius: 14px;
  background: #111827;
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.settings-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.settings-toast.is-error {
  background: #b91c1c;
}

.toggle-switch {
  cursor: pointer;
}

.settings-hours-row.is-closed input {
  opacity: 0.55;
}
.prestations-empty-state[hidden] {
  display: none !important;
}
.dashboard-card {
  padding:  24px 24px 24px;
}
[hidden] {
  display: none !important;
}
/* =========================================================
   MONSTERA - MODULE PLANNING V2
   À intégrer dans style.css
========================================================= */

.planning-page-v2 {
  display: grid;
  gap: 18px;
}

.planning-hero,
.planning-actions-section,
.planning-toolbar-section,
.planning-calendar-section {
  padding: 22px;
}

.planning-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.planning-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.planning-hero-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
}

.planning-hero-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 720px;
}

.planning-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.planning-hero-stat {
  min-height: 132px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.planning-hero-stat-label {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.planning-hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
}

.planning-hero-stat-meta {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.planning-actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.planning-section-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}

.planning-section-title {
  margin: 0;
  font-size: 1.4rem;
}

.planning-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.planning-action-card {
  min-height: 118px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: #fff;
  padding: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.planning-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.planning-action-card strong {
  font-size: 1.06rem;
  font-weight: 700;
}

.planning-action-card small {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.planning-action-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fff7ed;
  color: var(--accent-dark);
}

.planning-action-card-prestation {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.planning-action-card-event {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.planning-action-card-event .planning-action-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.planning-action-card-task {
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
}

.planning-action-card-task .planning-action-badge {
  background: #ede9fe;
  color: #6d28d9;
}

.planning-toolbar-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.planning-toolbar-left,
.planning-toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.planning-nav-arrows {
  display: flex;
  gap: 10px;
}

.planning-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}

.planning-nav-btn:hover,
.planning-today-btn:hover,
.planning-view-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.07);
}

.planning-period-label {
  font-size: 1.08rem;
  font-weight: 700;
  color: #111827;
}

.planning-today-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.planning-view-switcher {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 14px;
  background: #f3f4f6;
  gap: 4px;
}

.planning-view-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font-weight: 600;
}

.planning-view-btn.active {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.planning-calendar-section {
  overflow: hidden;
}

.planning-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 16px;
}

.planning-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.planning-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.planning-dot-planifiee { background: #f97316; }
.planning-dot-realisee { background: #16a34a; }
.planning-dot-fermee { background: #6b7280; }
.planning-dot-event { background: #2563eb; }
.planning-dot-task { background: #7c3aed; }

.planning-calendar-shell {
  width: 100%;
  overflow-x: auto;
}

.planning-calendar-header,
.planning-calendar-body {
  display: grid;
  min-width: 1180px;
}

.planning-calendar-header {
  border-bottom: 1px solid #e5e7eb;
}

.planning-time-head,
.planning-day-head,
.planning-time-cell,
.planning-slot-cell,
.planning-month-cell {
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.planning-time-head {
  min-height: 76px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-weight: 700;
}

.planning-day-head {
  min-height: 76px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: #fbfbfc;
}

.planning-day-name {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.planning-day-number {
  width: fit-content;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
}

.planning-day-number.is-today {
  background: #fff7ed;
  color: var(--accent-dark);
}

.planning-time-cell {
  min-height: 94px;
  padding: 12px 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  background: #fcfcfd;
}

.planning-slot-cell {
  position: relative;
  min-height: 94px;
  padding: 10px;
  background: #fff;
}

.planning-slot-cell:hover {
  background: #fffaf5;
}

.planning-slot-cell.is-current {
  background: #fff7ed;
}

.planning-slot-button {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.planning-entry {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  margin-bottom: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.planning-entry:hover {
  transform: translateY(-1px);
}

.planning-entry-time {
  font-size: 0.8rem;
  opacity: 0.88;
}

.planning-entry-title {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
}

.planning-entry-meta {
  font-size: 0.88rem;
  opacity: 0.9;
}

.planning-entry-planifiee {
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  color: #fff;
}

.planning-entry-realisee {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
}

.planning-entry-fermee {
  background: linear-gradient(180deg, #9ca3af 0%, #6b7280 100%);
  color: #fff;
}

.planning-entry-event {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}

.planning-entry-task {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
}

.planning-calendar-body.month-view {
  min-width: 100%;
}

.planning-month-head {
  align-items: center;
}

.planning-month-cell {
  position: relative;
  min-height: 148px;
  padding: 10px;
  background: #fff;
}

.planning-month-cell.is-other-month {
  background: #fafafa;
}

.planning-month-cell.is-today {
  background: #fffaf5;
}

.planning-month-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.planning-month-number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.planning-month-cell.is-today .planning-month-number {
  background: #f97316;
  color: #fff;
}

.planning-month-count {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.planning-slot-button-month {
  min-height: 40px;
}

.planning-month-events {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.planning-month-chip {
  width: 100%;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  text-align: left;
  font-size: 0.78rem;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.planning-month-chip-planifiee { background: #fff7ed; color: #c2410c; }
.planning-month-chip-realisee { background: #dcfce7; color: #166534; }
.planning-month-chip-fermee { background: #f3f4f6; color: #374151; }
.planning-month-chip-event { background: #dbeafe; color: #1d4ed8; }
.planning-month-chip-task { background: #ede9fe; color: #6d28d9; }

.planning-month-more {
  color: var(--text-soft);
  font-size: 0.78rem;
  padding: 2px 4px;
}

.planning-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 1200;
}

.planning-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.planning-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100vh;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 1300;
  box-shadow: -12px 0 28px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
}

.planning-drawer.open {
  transform: translateX(0);
}

.planning-drawer-header {
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.planning-drawer-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.planning-drawer-title {
  margin: 0;
  font-size: 1.45rem;
}

.planning-drawer-close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.planning-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
}

.planning-drawer-form,
.planning-drawer-detail {
  display: none;
}

.planning-drawer-form.active,
.planning-drawer-detail.active {
  display: block;
}

.planning-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.planning-form-row + .planning-form-row,
.planning-form-group + .planning-form-row,
.planning-form-row + .planning-form-group,
.planning-form-group + .planning-form-group {
  margin-top: 14px;
}

.planning-form-row:has(.planning-form-group:nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.planning-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.planning-form-group label {
  color: #374151;
  font-size: 0.92rem;
  font-weight: 700;
}

.planning-form-group input,
.planning-form-group select,
.planning-form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text-main);
}

.planning-form-group textarea {
  min-height: 116px;
  padding: 12px 14px;
  resize: vertical;
}

.planning-form-group input:focus,
.planning-form-group select:focus,
.planning-form-group textarea:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.58);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.planning-form-actions {
  margin-top: 18px;
}

.planning-submit-btn {
  width: 100%;
}

.planning-detail-card {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.planning-detail-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.planning-detail-title {
  margin: 14px 0 18px;
  font-size: 1.3rem;
}

.planning-detail-list {
  display: flex;
  flex-direction: column;
}

.planning-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}

.planning-detail-item:last-child {
  border-bottom: 0;
}

.planning-detail-label {
  color: var(--text-soft);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.planning-detail-value {
  color: #111827;
  font-size: 1rem;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .planning-hero {
    grid-template-columns: 1fr;
  }

  .planning-hero-stats,
  .planning-actions-grid {
    grid-template-columns: 1fr;
  }

  .planning-toolbar-section {
    flex-direction: column;
    align-items: stretch;
  }

  .planning-toolbar-left,
  .planning-toolbar-right {
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .planning-page-v2 {
    gap: 14px;
  }

  .planning-hero,
  .planning-actions-section,
  .planning-toolbar-section,
  .planning-calendar-section {
    padding: 16px;
  }

  .planning-form-row,
  .planning-form-row:has(.planning-form-group:nth-child(3)) {
    grid-template-columns: 1fr;
  }

  .planning-drawer {
    width: 100%;
  }
}
/* =========================================================
   MONSTERA V2 - MODULE PRESTATIONS + FICHE PRESTATION
   À ajouter à la FIN du style.css global actuel
========================================================= */

/* =========================
   PRESTATIONS - PAGE LISTE
========================= */

.prestations-page-main {
  padding: 18px;
}

.prestations-module-shell {
  min-height: calc(100vh - var(--topbar-height) - 36px);
}

.prestations-module-card {
  overflow: hidden;
}

.prestations-hero {
  padding: 20px 18px 8px;
}

.prestations-hero-text {
  margin: 10px 0 0;
  max-width: 760px;
  color: #64748b;
  line-height: 1.6;
}

.prestations-toolbar-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.prestations-search-wrap {
  position: relative;
}

.prestations-search-wrap i {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.4rem;
}

.prestations-search-wrap input {
  width: 100%;
  min-height: 68px;
  padding: 0 20px 0 56px;
  border: 1px solid #ccd3da;
  border-radius: 18px;
  background: #fbfcfd;
  color: #111827;
  font-size: 1rem;
}

.prestations-search-wrap input::placeholder {
  color: #98a2b3;
}

.prestations-search-wrap input:focus,
.prestations-filter-select:focus,
.prestation-form-group input:focus,
.prestation-form-group textarea:focus,
.prestation-form-group select:focus,
.fiche-field input:focus,
.fiche-field select:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.prestations-segmented {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 246px;
  min-width: 246px;
  height: 68px;
  padding: 5px;
  border-radius: 999px;
  background: #eef2f5;
  border: 1px solid #cfd7df;
  overflow: hidden;
  isolation: isolate;
}

.prestations-segment-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9736 0%, #ff7b19 100%);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.24), 0 2px 6px rgba(249, 115, 22, 0.18);
  transform: translateX(0);
  transition: transform 0.26s ease;
  z-index: 0;
}

.prestations-segmented.is-total .prestations-segment-slider {
  transform: translateX(100%);
}

.prestations-segment-btn {
  position: relative;
  z-index: 1;
  height: 100%;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: color 0.22s ease, transform 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.prestations-segment-btn:hover {
  color: #111827;
}

.prestations-segment-btn:active {
  transform: scale(0.985);
}

.prestations-segment-btn[aria-pressed="true"],
.prestations-segment-btn.is-active {
  color: #ffffff;
}

.prestations-quick-add {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9736 0%, #ff7b19 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.24);
}

.prestations-quick-add:hover {
  transform: translateY(-1px);
}

.prestations-list-head-v2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 10px 18px 18px;
}

.prestations-list-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.82rem;
}

.prestations-list-title-v2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.prestations-page-main .prestations-filters-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.prestations-filter-label {
  color: #475569;
  font-weight: 700;
}

.prestations-filter-select-wrap {
  position: relative;
  min-width: 190px;
}

.prestations-filter-select {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 18px;
  border-radius: 16px;
  border: 1px solid #ccd3da;
  background: #fbfcfd;
  color: #111827;
  appearance: none;
  cursor: pointer;
}

.prestations-filter-select-wrap i {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.prestations-table-shell {
  position: relative;
  min-height: 420px;
  overflow-x: auto;
}

.prestations-table-v2 {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.prestations-table-v2 thead th {
  padding: 16px 18px;
  text-align: left;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  background: linear-gradient(90deg, #343a42 0%, #232a32 100%);
  white-space: nowrap;
}

.prestations-table-v2 thead th:last-child {
  width: 78px;
}

.prestations-table-v2 tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid #e6ebf1;
  vertical-align: middle;
  background: #ffffff;
}

.prestation-row {
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.prestation-row:hover td {
  background: #fff8f1;
}

.prestations-nom-cell {
  min-width: 300px;
}

.prestation-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.prestation-client {
  margin-top: 4px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--accent);
}

.prestation-sub {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.4;
}

.prestation-row-action {
  text-align: right;
}

.prestation-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #d7dee6;
  background: #f8fafc;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.prestation-arrow-btn:hover {
  background: #ffffff;
  color: #111827;
}

.status-badge,
.status-pill,
.prestation-intensity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.status-badge--active,
.status-pill[data-status="Planifiée"],
.status-pill[data-status="En attente"] {
  background: #eef2ff;
  color: #4338ca;
}

.status-pill[data-status="Réalisée"] {
  background: #e7f4ea;
  color: #1f7a39;
}

.status-badge--archived,
.status-pill[data-status="Fermée"] {
  background: #fff0e6;
  color: #cf6a13;
}

.status-badge--draft {
  background: #f1f3f5;
  color: #64748b;
}

.status-badge--paused {
  background: #e8f2eb;
  color: #22704b;
}

.prestation-intensity[data-intensity="Soft"] {
  background: #fff5eb;
  color: #c96a12;
}

.prestation-intensity[data-intensity="Total"] {
  background: #ffe8d6;
  color: #9a3412;
}

.prestations-empty-state {
  position: absolute;
  inset: 76px 0 0;
  display: grid;
  place-items: center;
  padding: 40px 20px 24px;
  text-align: center;
  background: #ffffff;
}

.prestations-empty-state[hidden] {
  display: none !important;
}

.prestations-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: #fff1e6;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.prestations-empty-state h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.prestations-empty-state p {
  max-width: 460px;
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.prestations-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid #edf1f5;
}

.prestations-pagination-label {
  color: #64748b;
}

.prestations-pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prestations-pagination-current {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}

.prestations-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 1090;
}

.prestations-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.prestations-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100vh;
  padding: 20px;
  background: #ffffff;
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.16);
  transform: translateX(100%);
  transition: transform 0.26s ease;
  z-index: 1100;
  overflow-y: auto;
}

.prestations-drawer.open {
  transform: translateX(0);
}

.prestations-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.prestations-drawer-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
}

.prestations-drawer-title {
  margin: 0;
  font-size: 1.55rem;
}

.prestations-drawer-section {
  display: none;
}

.prestations-drawer-section.active {
  display: block;
}

.prestation-create-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prestation-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.prestation-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prestation-form-group label {
  font-weight: 700;
  color: #374151;
}

.prestation-form-group input,
.prestation-form-group select,
.prestation-form-group textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #d8dde3;
  border-radius: 12px;
  background: #fbfcfd;
  color: #111827;
}

.prestation-form-group textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.prestation-form-helper {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.prestation-toggle-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.prestation-toggle-btn {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #d8dde3;
  background: #f8fafc;
  color: #374151;
  font-weight: 700;
  cursor: pointer;
}

.prestation-toggle-btn[aria-pressed="true"],
.prestation-toggle-btn.is-active {
  border-color: rgba(249, 115, 22, 0.35);
  background: #fff3e8;
  color: #c65e00;
}

.prestation-client-results {
  display: grid;
  gap: 10px;
}

.prestation-client-result {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.prestation-client-result:hover {
  border-color: rgba(249, 115, 22, 0.35);
  background: #fffaf5;
}

.prestation-client-result strong {
  display: block;
  color: #111827;
}

.prestation-client-result span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.92rem;
}

.prestation-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
}

.prestation-drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.prestation-secondary-btn,
.prestation-primary-btn {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.prestation-secondary-btn {
  border: 1px solid #d8dde3;
  background: #f8fafc;
  color: #374151;
}

.prestation-primary-btn {
  background: linear-gradient(180deg, #fb923c 0%, var(--accent) 100%);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(249, 115, 22, 0.2);
}

.prestation-secondary-btn:hover,
.prestation-primary-btn:hover {
  transform: translateY(-1px);
}

body.drawer-open {
  overflow: hidden;
}

/* =========================
   FICHE PRESTATION
========================= */

.fiche-prestation-main {
  padding: 18px;
}

.fiche-prestation-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.archive-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 700;
}

.archive-banner[hidden] {
  display: none !important;
}

.fiche-hero-card {
  overflow: visible;
}

.fiche-hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
}

.fiche-hero-title {
  margin: 0;
  font-size: 1.65rem;
  color: #111827;
}

.fiche-hero-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fiche-hero-id {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
}

.fiche-hero-actions {
  position: relative;
}

.fiche-actions-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fiche-actions-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
  display: none;
  z-index: 20;
}

.fiche-actions-menu.open {
  display: grid;
  gap: 8px;
}

.fiche-actions-menu button {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: #f8fafc;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.fiche-actions-menu button:hover {
  background: #fff7ed;
  color: #9a3412;
}

.fiche-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fiche-block {
  padding: 20px;
}

.fiche-block-full {
  grid-column: 1 / -1;
}

.fiche-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.fiche-block-header h3 {
  margin: 0;
  font-size: 1.18rem;
  color: #111827;
}

.fiche-block-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.fiche-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fiche-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fiche-field span {
  font-weight: 700;
  color: #374151;
}

.fiche-field input,
.fiche-field select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #d8dde3;
  border-radius: 12px;
  background: #fbfcfd;
  color: #111827;
}

.fiche-field input[readonly],
.fiche-field select:disabled {
  background: #f8fafc;
  color: #334155;
}

.fiche-field-full {
  grid-column: 1 / -1;
}

.fiche-client-grid,
.fiche-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fiche-client-card,
.fiche-status-card {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e7ecf2;
}

.fiche-client-card span,
.fiche-status-card span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 0.9rem;
}

.fiche-client-card strong,
.fiche-status-card strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.45;
}

.fiche-status-card-full {
  grid-column: 1 / -1;
}

.fiche-notes-list {
  display: grid;
  gap: 12px;
}

.fiche-note-item {
  padding: 16px;
  border-radius: 16px;
  background: #fffaf5;
  border: 1px solid #ffe1c7;
}

.fiche-note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  color: #9a3412;
  font-size: 0.9rem;
  font-weight: 700;
}

.fiche-note-item p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.fiche-notes-empty {
  margin: 0;
  color: #64748b;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .prestations-toolbar-v2 {
    grid-template-columns: 1fr;
  }

  .prestations-list-head-v2,
  .fiche-block-header,
  .fiche-hero-content {
    flex-direction: column;
    align-items: stretch;
  }

  .prestations-filters-right,
  .fiche-block-actions {
    justify-content: space-between;
  }

  .fiche-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-content,
  .fiche-prestation-main,
  .prestations-page-main {
    padding: 14px;
  }

  .prestations-toolbar-v2 {
    gap: 14px;
    padding: 14px;
  }

  .prestations-search-wrap input {
    min-height: 60px;
  }

  .prestations-segmented {
    width: 100%;
    min-width: 0;
    height: 60px;
  }

  .prestations-page-main .prestations-quick-add {
    width: 60px;
    height: 60px;
    justify-self: end;
  }

  .prestations-filters-right,
  .fiche-client-grid,
  .fiche-status-grid,
  .fiche-form-grid,
  .prestation-form-row {
    grid-template-columns: 1fr;
  }

  .prestations-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .prestations-pagination-controls {
    justify-content: center;
  }

  .prestations-drawer {
    width: 100vw;
    padding: 16px;
  }

  .fiche-block,
  .fiche-hero-content {
    padding: 16px;
  }

  .fiche-actions-menu {
    position: static;
    margin-top: 12px;
  }
}
/* =========================================
   CONTACTS + FICHE CONTACT V2 - MONSTERA
   À AJOUTER À LA SUITE DU style.css EXISTANT
========================================= */

.contacts-v2-page,
.fiche-contact-v2-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contacts-v2-hero,
.fiche-contact-v2-hero {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.contacts-v2-kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.contacts-v2-title,
.fiche-contact-v2-title {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
}

.contacts-v2-subtitle,
.fiche-contact-v2-code {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.contacts-v2-hero-actions,
.fiche-contact-v2-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contacts-v2-shell,
.fiche-contact-v2-card {
  padding: 20px;
}

.contacts-v2-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.contacts-v2-search {
  position: relative;
  display: block;
}

.contacts-v2-search i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #8a94a3;
}

.contacts-v2-search input {
  min-height: 54px;
  padding-left: 46px;
  border-radius: 14px;
  background: #fbfcfd;
}

.contacts-v2-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.contacts-v2-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.contacts-v2-tab {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #d8dde3;
  border-radius: 999px;
  background: #f7f8fa;
  color: #374151;
  font-weight: 700;
  cursor: pointer;
}

.contacts-v2-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  font-size: 0.88rem;
}

.contacts-v2-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #fb923c 0%, var(--accent) 100%);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.22);
}

.contacts-v2-tab.is-active span {
  background: rgba(255, 255, 255, 0.18);
}

.contacts-v2-select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contacts-v2-select-label,
.contacts-v2-sort-label {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.contacts-v2-select {
  min-width: 230px;
  min-height: 46px;
  border-radius: 12px;
  background: #f8fafc;
}

.contacts-v2-table-head,
.fiche-contact-v2-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.contacts-v2-section-title,
.fiche-contact-v2-card-title {
  margin: 0;
  font-size: 1.25rem;
}

.contacts-v2-table-wrap,
.fiche-contact-v2-table-wrap {
  overflow: auto;
  border: 1px solid #e6ebf1;
  border-radius: 16px;
  background: #fff;
}

.contacts-v2-table,
.fiche-contact-v2-table {
  width: 100%;
  border-collapse: collapse;
}

.contacts-v2-table th,
.contacts-v2-table td,
.fiche-contact-v2-table th,
.fiche-contact-v2-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}

.contacts-v2-table thead th,
.fiche-contact-v2-table thead th {
  background: linear-gradient(180deg, #353b44 0%, #2b3138 100%);
  color: #fff;
  white-space: nowrap;
}

.contacts-v2-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contacts-v2-row:hover,
.fiche-contact-v2-prestation-row:hover {
  background: #fff7f1;
}

.contacts-v2-identity-main {
  font-weight: 700;
  color: #111827;
}

.contacts-v2-identity-pseudo {
  color: var(--accent);
}

.contacts-v2-identity-meta {
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.92rem;
}

.contacts-v2-status,
.fiche-contact-v2-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.contacts-v2-status--client {
  background: #fff2e8;
  color: #c95f13;
}

.contacts-v2-status--prospect {
  background: #3a3a3a;
  color: #f5f5f5;
  border: 1px solid #1f1f1f;
}

.contacts-v2-col-action,
.contacts-v2-cell-action {
  width: 86px;
  text-align: center;
}

.contacts-v2-open-btn,
.contacts-v2-drawer-close {
  width: 42px;
  height: 42px;
  border: 1px solid #dde3ea;
  border-radius: 12px;
  background: #f8fafc;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.contacts-v2-open-btn:hover,
.contacts-v2-drawer-close:hover {
  background: #fff2e8;
  color: var(--accent);
  border-color: rgba(249, 115, 22, 0.24);
}

.contacts-v2-empty,
.fiche-contact-v2-empty-inline,
.fiche-contact-v2-placeholder {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
  text-align: center;
  color: var(--text-soft);
}

.contacts-v2-empty-icon,
.fiche-contact-v2-placeholder i {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: #fff2e8;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.contacts-v2-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1090;
}

.contacts-v2-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.contacts-v2-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 100vw);
  height: 100vh;
  padding: 24px;
  background: #fff;
  box-shadow: -20px 0 40px rgba(15, 23, 42, 0.16);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
}

.contacts-v2-drawer.is-open {
  transform: translateX(0);
}

.contacts-v2-drawer-header,
.fiche-contact-v2-card-head-stack {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.contacts-v2-drawer-title {
  margin: 0;
  font-size: 1.5rem;
}

.contacts-v2-drawer-subtitle {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.contacts-v2-drawer-form,
.fiche-contact-v2-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts-v2-form-grid,
.fiche-contact-v2-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contacts-v2-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contacts-v2-field label,
.contacts-v2-field span {
  font-weight: 700;
  color: #394150;
}

.contacts-v2-drawer-actions,
.fiche-contact-v2-note-actions,
.fiche-contact-v2-inline-actions,
.fiche-contact-v2-edit-actions,
.fiche-contact-v2-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fiche-contact-v2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.fiche-contact-v2-card-wide {
  grid-column: 1 / -1;
}

.fiche-contact-v2-backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-weight: 700;
}

.fiche-contact-v2-tag-soft {
  background: #f3f4f6;
  color: #4b5563;
}

.fiche-contact-v2-note-composer {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #e6ebf1;
  border-radius: 14px;
  background: #fafafa;
}

.fiche-contact-v2-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fiche-contact-v2-timeline-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 14px;
}

.fiche-contact-v2-timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.12);
}

.fiche-contact-v2-timeline-content {
  padding: 14px 16px;
  border: 1px solid #e6ebf1;
  border-radius: 14px;
  background: #fff;
}

.fiche-contact-v2-timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.fiche-contact-v2-timeline-content p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .contacts-v2-toolbar,
  .fiche-contact-v2-grid {
    grid-template-columns: 1fr;
  }

  .contacts-v2-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .contacts-v2-form-grid,
  .fiche-contact-v2-form-grid {
    grid-template-columns: 1fr;
  }

  .contacts-v2-shell,
  .fiche-contact-v2-card,
  .contacts-v2-hero,
  .fiche-contact-v2-hero {
    padding: 18px;
  }

  .contacts-v2-select {
    min-width: 100%;
  }
}
/* ===========================
CASHFLOW MODULE
=========================== */

.cashflow-kpi {

display: grid;
grid-template-columns: repeat(3,1fr);
gap: 20px;
margin-bottom: 25px;

}

.kpi-value {

font-size: 28px;
font-weight: 600;
margin-top: 8px;

}

.cashflow-grid {

display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-top: 20px;
margin-bottom: 20px;

}

.cashflow-table {

width: 100%;
border-collapse: collapse;

}

.cashflow-table th,
.cashflow-table td {

padding: 12px;
border-bottom: 1px solid #e5e7eb;
text-align: left;

}
/* =========================================================
   CASHFLOW V1 - MODULE COMPLEMENTAIRE
   A AJOUTER A LA FIN DU style.css EXISTANT
========================================================= */

.cashflow-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cashflow-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
}

.page-back-link {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #6b7280;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-back-link:hover {
  background: #f3f4f6;
  color: #111827;
}

.cashflow-header-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  font-weight: 500;
}

.cashflow-header-date-text,
.cashflow-header-time-text,
.cashflow-header-date-separator {
  white-space: nowrap;
}

.cashflow-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cashflow-kpi-card {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 20px;
}

.cashflow-kpi-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cashflow-kpi-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 17px;
}

.cashflow-kpi-icon-green {
  background: #91c58f;
  color: #ffffff;
}

.cashflow-kpi-icon-slate {
  background: #97a2b1;
  color: #ffffff;
}

.cashflow-kpi-icon-orange {
  background: #f2a55f;
  color: #ffffff;
}

.cashflow-kpi-label {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  color: #374151;
}

.cashflow-kpi-value {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: #374151;
  letter-spacing: -0.02em;
}

.cashflow-kpi-value-accent {
  color: #dd6b2f;
}

.cashflow-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.cashflow-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}

.cashflow-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.cashflow-card-header-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.cashflow-chart-card,
.cashflow-table-card,
.cashflow-top-clients-card,
.cashflow-projection-card {
  overflow: hidden;
}

.cashflow-segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 3px;
  flex-wrap: nowrap;
}

.cashflow-segmented-control-compact {
  align-self: flex-start;
}

.cashflow-segment-btn {
  border: none;
  background: transparent;
  color: #4b5563;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.cashflow-segment-btn:hover {
  color: #111827;
}

.cashflow-segment-btn.is-active {
  background: #ff7a1a;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(255, 122, 26, 0.22);
}

.cashflow-segment-btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cashflow-chart-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cashflow-chart-visual {
  position: relative;
  width: 100%;
  min-height: 250px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.82), rgba(255,255,255,0.96)),
    #ffffff;
}

.cashflow-chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(229,231,235,0.75) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(229,231,235,0.75) 1px, transparent 1px);
  background-size: calc(100% / 8) calc(100% / 5);
  pointer-events: none;
}

.cashflow-chart-lines {
  position: absolute;
  inset: 0;
}

.cashflow-line {
  position: absolute;
  left: 5%;
  right: 4%;
  border-radius: 999px;
  filter: drop-shadow(0 6px 14px rgba(17, 24, 39, 0.08));
}

.cashflow-line-revenue {
  top: 33%;
  height: 90px;
  background: linear-gradient(180deg, rgba(146, 198, 137, 0.26) 0%, rgba(146, 198, 137, 0.08) 100%);
  clip-path: polygon(
    0% 62%, 10% 56%, 23% 61%, 35% 44%, 47% 32%, 58% 22%, 69% 36%, 79% 27%, 91% 12%, 100% 15%,
    100% 100%, 0% 100%
  );
}

.cashflow-line-expense {
  top: 48%;
  height: 80px;
  background: linear-gradient(180deg, rgba(228, 125, 92, 0.24) 0%, rgba(228, 125, 92, 0.08) 100%);
  clip-path: polygon(
    0% 30%, 12% 34%, 24% 28%, 37% 22%, 49% 15%, 59% 8%, 71% 18%, 82% 13%, 92% 7%, 100% 5%,
    100% 100%, 0% 100%
  );
}

.cashflow-line-balance {
  top: 41%;
  height: 95px;
  background: linear-gradient(180deg, rgba(243, 180, 95, 0.28) 0%, rgba(243, 180, 95, 0.08) 100%);
  clip-path: polygon(
    0% 47%, 12% 49%, 23% 42%, 35% 38%, 47% 31%, 58% 14%, 69% 23%, 79% 19%, 91% 12%, 100% 9%,
    100% 100%, 0% 100%
  );
}

.cashflow-chart-legend {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cashflow-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  font-size: 16px;
  font-weight: 500;
}

.cashflow-legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
}

.cashflow-legend-dot-green {
  background: #92c689;
}

.cashflow-legend-dot-red {
  background: #e47d5c;
}

.cashflow-legend-dot-orange {
  background: #f2bf67;
}

.cashflow-top-clients-list {
  display: flex;
  flex-direction: column;
  margin-top: 2px;
}

.cashflow-top-client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #edf0f3;
}

.cashflow-top-client-row:last-child {
  border-bottom: none;
}

.cashflow-top-client-name {
  font-size: 20px;
  line-height: 1.2;
  color: #374151;
  font-weight: 500;
}

.cashflow-top-client-amount {
  font-size: 20px;
  line-height: 1.2;
  color: #374151;
  font-weight: 600;
  white-space: nowrap;
}

.cashflow-top-clients-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  color: #9ca3af;
  font-size: 18px;
}

.cashflow-footer-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cashflow-table-shell {
  overflow-x: auto;
}

.cashflow-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.cashflow-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.cashflow-table tbody td {
  padding: 16px;
  font-size: 15px;
  color: #374151;
  border-bottom: 1px solid #edf0f3;
  vertical-align: middle;
}

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

.cashflow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.cashflow-badge-income {
  background: #e5f3e1;
  color: #5f8d5b;
}

.cashflow-badge-expense {
  background: #f7dfd8;
  color: #c56f52;
}

.cashflow-value-positive {
  color: #6ba466;
  font-weight: 600;
}

.cashflow-value-negative {
  color: #dc7a52;
  font-weight: 600;
}

.cashflow-table-pagination {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cashflow-pagination-btn {
  min-width: 38px;
  height: 38px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cashflow-pagination-btn:hover {
  border-color: #d1d5db;
  color: #111827;
  background: #f9fafb;
}

.cashflow-pagination-btn.is-active {
  background: #f3f4f6;
  color: #111827;
  border-color: #e5e7eb;
}

.cashflow-projection-box {
  border: 1px solid #edf0f3;
  border-radius: 18px;
  padding: 20px 18px;
  background: #ffffff;
}

.cashflow-projection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #edf0f3;
}

.cashflow-projection-row:first-child {
  padding-top: 6px;
}

.cashflow-projection-row:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.cashflow-projection-row-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.cashflow-projection-label {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
}

.cashflow-projection-strong {
  color: #111827;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.cashflow-projection-value {
  color: #374151;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.cashflow-projection-total {
  color: #dd6b2f;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.cashflow-projection-row-total {
  padding-top: 22px;
}

@media (max-width: 1380px) {
  .cashflow-main-grid,
  .cashflow-bottom-grid {
    grid-template-columns: 1fr;
  }

  .cashflow-top-clients-card,
  .cashflow-projection-card {
    min-height: auto;
  }
}

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

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

  .cashflow-segmented-control {
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .cashflow-header-row {
    flex-wrap: wrap;
  }

  .cashflow-kpi-card {
    min-height: 112px;
    padding: 20px 18px 18px;
  }

  .cashflow-kpi-label {
    font-size: 18px;
  }

  .cashflow-kpi-value {
    font-size: 30px;
  }

  .cashflow-top-client-name,
  .cashflow-top-client-amount {
    font-size: 18px;
  }

  .cashflow-chart-legend {
    gap: 14px;
  }
}
/* =========================================================
   DASHBOARD - QUICK PRESTATION DRAWER
   À AJOUTER TOUT EN BAS DU style.css
========================================================= */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 1200;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.quick-prestation-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 100vw);
  height: 100vh;
  background: #ffffff;
  box-shadow: -18px 0 42px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 1210;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quick-prestation-drawer.open {
  transform: translateX(0);
}

.quick-prestation-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
}

.quick-prestation-drawer__heading {
  min-width: 0;
}

.quick-prestation-drawer__kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.quick-prestation-drawer__title {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.1;
  color: #111827;
}

.quick-prestation-drawer__subtitle {
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.5;
}

.quick-prestation-drawer__close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid #dde3ea;
  border-radius: 12px;
  background: #f8fafc;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.quick-prestation-drawer__close:hover {
  background: #fff2e8;
  color: var(--accent);
  border-color: rgba(249, 115, 22, 0.25);
  transform: translateY(-1px);
}

.quick-prestation-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px 28px;
}

.quick-prestation-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quick-prestation-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quick-prestation-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-prestation-form__group label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #374151;
}

.quick-prestation-form__group input,
.quick-prestation-form__group textarea,
.quick-prestation-form__group select {
  width: 100%;
  border: 1px solid #d8dde3;
  border-radius: 12px;
  background: #fbfcfd;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.quick-prestation-form__group input,
.quick-prestation-form__group select {
  min-height: 50px;
  padding: 0 14px;
}

.quick-prestation-form__group textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.quick-prestation-form__group input::placeholder,
.quick-prestation-form__group textarea::placeholder {
  color: #9ca3af;
}

.quick-prestation-form__group input:focus,
.quick-prestation-form__group textarea:focus,
.quick-prestation-form__group select:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.58);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
  background: #ffffff;
}

.quick-prestation-drawer__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.quick-prestation-drawer__actions .btn-secondary,
.quick-prestation-drawer__actions .btn-primary {
  min-height: 50px;
  padding: 0 20px;
}

body.drawer-open {
  overflow: hidden;
}

/* petit confort visuel du bouton header quand il sert à ouvrir le drawer */
#openQuickPrestation {
  cursor: pointer;
}

/* responsive */
@media (max-width: 768px) {
  .quick-prestation-drawer {
    width: 100vw;
  }

  .quick-prestation-drawer__header {
    padding: 20px 18px 16px;
  }

  .quick-prestation-drawer__body {
    padding: 18px 18px 24px;
  }

  .quick-prestation-form__row {
    grid-template-columns: 1fr;
  }

  .quick-prestation-drawer__actions {
    flex-direction: column-reverse;
  }

  .quick-prestation-drawer__actions .btn-secondary,
  .quick-prestation-drawer__actions .btn-primary {
    width: 100%;
  }
}


/* MONSTERA V3.2.2 - panneau création prestation clair */
.prestations-drawer {
  background: linear-gradient(180deg, #f4f6fa 0%, #eef2f7 100%);
  color: #243041;
  box-shadow: -20px 0 44px rgba(15, 23, 42, 0.18);
}

.prestations-drawer-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dbe2ea;
}

.prestations-drawer-kicker {
  color: var(--accent);
}

.prestations-drawer-title,
.prestation-form-group label,
.prestations-drawer-close,
.prestations-drawer-close i {
  color: #243041;
}

.prestations-drawer-close {
  background: #ffffff;
  border: 1px solid #d7dee8;
}

.prestations-drawer-close:hover {
  background: #fff4ea;
  border-color: rgba(249, 115, 22, 0.28);
}

.prestation-form-group input,
.prestation-form-group select,
.prestation-form-group textarea {
  border: 1px solid #d7dee8;
  background: #ffffff;
  color: #243041;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.prestation-form-group select,
.prestation-form-group select option {
  color: #243041;
  background: #ffffff;
}

.prestation-form-group input::placeholder,
.prestation-form-group textarea::placeholder {
  color: #8a94a6;
}

.prestation-form-group input:focus,
.prestation-form-group select:focus,
.prestation-form-group textarea:focus {
  border-color: rgba(249, 115, 22, 0.52);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
  background: #ffffff;
}

.prestation-form-helper,
.prestations-drawer .form-helper {
  color: #5f6b7d;
}

.prestation-secondary-btn,
.prestations-drawer .btn-secondary {
  border: 1px solid #d7dee8;
  background: #ffffff;
  color: #243041;
}

.prestation-secondary-btn:hover,
.prestations-drawer .btn-secondary:hover {
  border-color: rgba(249, 115, 22, 0.24);
  background: #fff7f1;
  color: var(--accent);
}

.prestation-client-search-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 12px;
  align-items: start;
}

.prestation-client-search-box {
  position: relative;
}

.prestation-client-search-box input {
  padding-right: 42px;
}

.prestation-client-search-box::after {
  content: '\F282';
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #7a8597;
  pointer-events: none;
}

.prestation-add-client-btn {
  min-height: 50px;
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 16px;
  background: #fff4ea;
  color: var(--accent);
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.prestation-add-client-btn:hover {
  transform: translateY(-1px);
  background: #ffe8d5;
  border-color: rgba(249, 115, 22, 0.72);
}

.prestation-client-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 228px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid #d7dee8;
  background: #ffffff;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
  z-index: 25;
}

.prestation-client-suggestion {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #243041;
  text-align: left;
  cursor: pointer;
}

.prestation-client-suggestion:hover,
.prestation-client-suggestion.is-active {
  background: #fff4ea;
}

.prestation-client-suggestion-name {
  display: block;
  font-weight: 700;
}

.prestation-client-suggestion-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.87rem;
  color: #7a8597;
}

.prestations-drawer .form-grid-2,
.prestations-drawer .prestation-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 680px) {
  .prestation-client-search-shell,
  .prestations-drawer .form-grid-2,
  .prestations-drawer .prestation-form-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   V3.2.2.1 - Correctifs UI ciblés
   - segment Jour / Semaine / Mois lisible en état actif/focus
   - sélecteurs date/heure plus cohérents avec la DA Monstera
========================================================= */

.prestations-segment-btn,
.cashflow-segment-btn,
.stats-segment-btn,
.filter-btn,
button[aria-pressed="true"] {
  -webkit-tap-highlight-color: transparent;
}

.prestations-segment-btn:focus-visible,
.prestations-segment-btn.active:focus-visible,
.prestations-segment-btn.is-active:focus-visible,
.cashflow-segment-btn:focus-visible,
.cashflow-segment-btn.is-active:focus-visible,
.stats-segment-btn:focus-visible,
.stats-segment-btn.active:focus-visible,
.filter-btn:focus-visible,
.filter-btn.active:focus-visible {
  outline: none;
  color: #1f2937 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18) !important;
  border-color: rgba(249, 115, 22, 0.45) !important;
}

.prestations-segment-btn:active,
.cashflow-segment-btn:active,
.stats-segment-btn:active,
.filter-btn:active {
  color: #1f2937;
}

.quick-prestation-drawer {
  background: #f5f6f8;
}

.quick-prestation-drawer__header {
  background: linear-gradient(180deg, #fff7ef 0%, #f7f8fa 100%);
}

.quick-prestation-form__group input,
.quick-prestation-form__group textarea,
.quick-prestation-form__group select {
  background: #ffffff;
}

.quick-prestation-form__group select option {
  color: #1f2937;
  background: #ffffff;
}

.quick-prestation-form__group input[type="date"],
.quick-prestation-form__group input[type="time"] {
  accent-color: #f97316;
  color-scheme: light;
}

.quick-prestation-form__group input[type="date"]::-webkit-calendar-picker-indicator,
.quick-prestation-form__group input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.95;
  cursor: pointer;
  filter: invert(52%) sepia(87%) saturate(1644%) hue-rotate(350deg) brightness(101%) contrast(96%);
}

.quick-prestation-form__group input[type="date"]:hover::-webkit-calendar-picker-indicator,
.quick-prestation-form__group input[type="time"]:hover::-webkit-calendar-picker-indicator,
.quick-prestation-form__group input[type="date"]:focus::-webkit-calendar-picker-indicator,
.quick-prestation-form__group input[type="time"]:focus::-webkit-calendar-picker-indicator {
  filter: invert(49%) sepia(98%) saturate(1810%) hue-rotate(355deg) brightness(98%) contrast(94%);
}

.quick-prestation-form__group input[type="date"]::-webkit-datetime-edit,
.quick-prestation-form__group input[type="time"]::-webkit-datetime-edit,
.quick-prestation-form__group input[type="date"]::-webkit-datetime-edit-text,
.quick-prestation-form__group input[type="time"]::-webkit-datetime-edit-text,
.quick-prestation-form__group input[type="date"]::-webkit-datetime-edit-hour-field,
.quick-prestation-form__group input[type="time"]::-webkit-datetime-edit-hour-field,
.quick-prestation-form__group input[type="date"]::-webkit-datetime-edit-minute-field,
.quick-prestation-form__group input[type="time"]::-webkit-datetime-edit-minute-field,
.quick-prestation-form__group input[type="date"]::-webkit-datetime-edit-day-field,
.quick-prestation-form__group input[type="date"]::-webkit-datetime-edit-month-field,
.quick-prestation-form__group input[type="date"]::-webkit-datetime-edit-year-field {
  color: #1f2937;
}

.quick-prestation-form__group input[type="date"]::-webkit-datetime-edit-hour-field:focus,
.quick-prestation-form__group input[type="time"]::-webkit-datetime-edit-hour-field:focus,
.quick-prestation-form__group input[type="date"]::-webkit-datetime-edit-minute-field:focus,
.quick-prestation-form__group input[type="time"]::-webkit-datetime-edit-minute-field:focus,
.quick-prestation-form__group input[type="date"]::-webkit-datetime-edit-day-field:focus,
.quick-prestation-form__group input[type="date"]::-webkit-datetime-edit-month-field:focus,
.quick-prestation-form__group input[type="date"]::-webkit-datetime-edit-year-field:focus {
  background: rgba(249, 115, 22, 0.16);
  color: #b45309;
  border-radius: 8px;
}

.quick-prestation-form__group input[type="time"] {
  font-variant-numeric: tabular-nums;
}

::selection {
  background: rgba(249, 115, 22, 0.24);
  color: #111827;
}


/* =========================================================
   HOTFIX V3.2.2.3
   - Segments Jour / Semaine / Mois visibles et cohérents
   - Etat actif orange, texte blanc, jamais blanc sur blanc
========================================================= */

.cashflow-segmented-control-compact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #f4f6f9;
  border: 1px solid #e2e8f0;
}

.cashflow-segmented-control-compact .prestations-segment-btn,
.cashflow-segmented-control-compact .cashflow-segment-btn {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  color: #475569 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cashflow-segmented-control-compact .prestations-segment-btn:hover,
.cashflow-segmented-control-compact .cashflow-segment-btn:hover {
  color: #1f2937 !important;
  background: rgba(255, 122, 26, 0.10) !important;
}

.cashflow-segmented-control-compact .prestations-segment-btn[aria-pressed="true"],
.cashflow-segmented-control-compact .prestations-segment-btn.is-active,
.cashflow-segmented-control-compact .cashflow-segment-btn[aria-selected="true"],
.cashflow-segmented-control-compact .cashflow-segment-btn.is-active {
  color: #ffffff !important;
  background: linear-gradient(180deg, #ff9736 0%, #ff7a1a 100%) !important;
  box-shadow: 0 8px 18px rgba(255, 122, 26, 0.24) !important;
}

.cashflow-segmented-control-compact .prestations-segment-btn:focus-visible,
.cashflow-segmented-control-compact .prestations-segment-btn.is-active:focus-visible,
.cashflow-segmented-control-compact .cashflow-segment-btn:focus-visible,
.cashflow-segmented-control-compact .cashflow-segment-btn.is-active:focus-visible {
  outline: none;
  color: #ffffff !important;
  background: linear-gradient(180deg, #ff9736 0%, #ff7a1a 100%) !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.20), 0 8px 18px rgba(255, 122, 26, 0.24) !important;
}

.quick-prestation-drawer {
  background: #f4f6f9 !important;
}

.quick-prestation-drawer .quick-prestation-panel,
.quick-prestation-drawer .quick-prestation-body {
  background: #f4f6f9 !important;
  color: #243044 !important;
}

.quick-prestation-drawer .quick-prestation-field,
.quick-prestation-drawer .quick-prestation-input,
.quick-prestation-drawer .quick-prestation-select,
.quick-prestation-drawer input,
.quick-prestation-drawer select,
.quick-prestation-drawer textarea {
  background: #ffffff !important;
  color: #243044 !important;
  border-color: #d7dee8 !important;
}

.quick-prestation-drawer input:focus,
.quick-prestation-drawer select:focus,
.quick-prestation-drawer textarea:focus {
  border-color: #ff7a1a !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.16) !important;
}


/* MONSTERA V3.25.3 - corrective fiche prestation */
.fiche-actions-menu.is-open {
  display: grid;
  gap: 8px;
}

.fiche-hero-meta--triple {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.fiche-hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid transparent;
}

.fiche-hero-chip-type {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.fiche-hero-chip-name {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.status-pill-planned,
.status-pill[data-status="Planifiée"] {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.status-pill-closed,
.status-pill[data-status="Fermée"] {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.fiche-actions-menu button {
  border: 1px solid #e5e7eb;
}

.fiche-actions-trigger[aria-expanded="true"] {
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.22);
}

.fiche-block-locked {
  opacity: 0.72;
}

/* MONSTERA V3.25.5 - correctifs fiche prestation */
.fiche-hero-card,
.fiche-hero-content,
.fiche-hero-actions {
  position: relative;
}

.fiche-hero-card {
  overflow: visible;
  z-index: 30;
}

.fiche-grid,
.fiche-block {
  overflow: visible;
}

.fiche-actions-menu {
  top: calc(100% + 12px);
  right: 0;
  min-width: 260px;
  display: none;
  z-index: 5000;
}

.fiche-actions-menu.is-open,
.fiche-actions-menu.open {
  display: grid;
  gap: 8px;
}

.fiche-actions-menu button[hidden] {
  display: none !important;
}

.fiche-actions-menu button {
  width: 100%;
  justify-content: flex-start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.fiche-actions-menu button:hover {
  background: #fff7ed;
}

.fiche-block-locked {
  opacity: 0.68;
}

.fiche-block-locked .fiche-field input,
.fiche-block-locked .fiche-field select,
.fiche-block-locked .fiche-note-editor textarea,
.fiche-block-locked .fiche-inline-select,
.fiche-block-locked .prestation-secondary-btn,
.fiche-block-locked .prestation-primary-btn {
  cursor: not-allowed;
}

.fiche-prestation-locked .fiche-inline-select,
.fiche-prestation-locked .fiche-field input,
.fiche-prestation-locked .fiche-field select,
.fiche-prestation-locked .fiche-note-editor textarea {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
}


/* MONSTERA V3.5 - module prestations */
.prestations-page-main .prestations-module-card-v35 {
  overflow: visible;
}

.prestations-page-main .prestations-toolbar-v35 {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 32px;
}

.prestations-view-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: #eef3f8;
  border: 1px solid #d9e2ec;
}

.prestations-view-slider {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9736 0%, #ff7a1a 100%);
  box-shadow: 0 8px 18px rgba(255, 122, 26, 0.24);
  transition: transform .22s ease, width .22s ease;
}

.prestations-view-btn {
  position: relative;
  z-index: 1;
  min-width: 136px;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 999px;
}

.prestations-view-btn[aria-pressed="true"] {
  color:#ffffff;
  background:#f97316;
}

.prestations-view-btn{
  color:#344054;
}

.prestations-view-switch{
  background:#e8eef5;
  border:1px solid #d0d7e2;
}

.prestations-view-slider{
  background:#f97316;
}

.prestations-view-panel[hidden] {
  display: none !important;
}

.prestations-table-v35 th:nth-child(1) { width: 12%; }
.prestations-table-v35 th:nth-child(2) { width: 18%; }
.prestations-table-v35 th:nth-child(3) { width: 14%; }
.prestations-table-v35 th:nth-child(4) { width: 15%; }
.prestations-table-v35 th:nth-child(5) { width: 10%; }
.prestations-table-v35 th:nth-child(6) { width: 13%; }
.prestations-table-v35 th:nth-child(7) { width: 10%; }
.prestations-table-v35 th:nth-child(8) { width: 12%; }

.prestation-row-v35.is-locked {
  background: #f6f7f9;
  opacity: .82;
}

.table-deeplink {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

.table-deeplink:hover {
  color: #ff7a1a;
}

.table-code {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .02em;
  color: #0f172a;
}

.prestations-view-panel-fiche {
  display: grid;
  gap: 24px;
}

.prestations-fiche-topcard {
  margin-bottom: 0;
}

.dashboard-table-row-prestations.is-selected {
  border-color: rgba(255,122,26,.45);
  background: rgba(255,122,26,.08);
}

.dashboard-table-row-prestations {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: #fff;
  border-radius: 14px;
}

.prestations-embedded-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.prestations-fiche-embed-shell {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.prestation-quickview {
  min-height: 760px;
}

.prestation-quickview-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.prestation-quickview-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff8f1 0%, #ffffff 100%);
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.prestation-quickview-title {
  margin: 6px 0 0;
  font-size: 1.42rem;
  color: #111827;
}

.prestation-quickview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.prestation-quickview-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.prestation-quickview-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #c65e00;
}

.prestation-quickview-rule {
  color: #64748b;
  font-weight: 700;
}

.prestation-quickview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.prestation-quickview-block {
  padding: 20px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.prestation-quickview-block-full {
  grid-column: 1 / -1;
}

.prestation-quickview-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.prestation-quickview-block-head h4 {
  margin: 4px 0 0;
  font-size: 1.08rem;
  color: #0f172a;
}

.prestation-quickview-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prestation-quickview-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 82px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5ebf2;
}

.prestation-quickview-field-full {
  grid-column: 1 / -1;
}

.prestation-quickview-field span {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
}

.prestation-quickview-field strong {
  color: #111827;
  line-height: 1.55;
  word-break: break-word;
}

.prestation-quickview-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 16px;
}

.prestation-quickview-empty {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 22px;
  background: #fff;
  border: 1px dashed #d8e0e8;
  color: #64748b;
  text-align: center;
  padding: 24px;
}

.prestation-quickview-empty h3 {
  margin: 0;
  color: #111827;
}

.prestation-quickview-empty p {
  margin: 0;
  max-width: 420px;
  line-height: 1.6;
}

.prestation-quickview-empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff7ed;
  color: #c65e00;
  font-size: 1.4rem;
}

.fiche-prestation-embed {
  background: transparent;
}

.fiche-prestation-embed .main-wrapper,
.fiche-prestation-embed .main-content,
.fiche-prestation-embed .page-shell,
.fiche-prestation-embed .fiche-prestation-shell {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

.fiche-prestation-embed .fiche-hero-card,
.fiche-prestation-embed .fiche-block {
  box-shadow: none;
}


.fiche-contact-embed {
  background: transparent;
}

.fiche-contact-embed .main-wrapper,
.fiche-contact-embed .main-content,
.fiche-contact-embed .fiche-contact-v2-page {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

.fiche-contact-embed .fiche-contact-v2-hero,
.fiche-contact-embed .fiche-contact-v2-card {
  border-radius: 22px;
}

.fiche-contact-embed-layout {
  display: block;
}

.fiche-prestation-embed-layout {
  display: block !important;
}

@media (max-width: 1200px) {
  .prestations-page-main .prestations-toolbar-v35 {
    grid-template-columns: 1fr;
  }

  .prestations-view-switch {
    justify-self: start;
  }

  .prestation-focus-frame {
    min-height: 1400px;
  }
}


/* V3.55 – Prestations refinements */
.prestations-page-main .prestations-module-card-v35 {
  padding: 26px 28px 22px;
}

.prestations-page-main .prestations-toolbar-v35 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 22px;
  margin-bottom: 30px;
}

.prestations-search-wrap {
  min-height: 86px;
}

.prestations-view-switch {
  margin-top: 4px;
}

.prestations-quick-add {
  margin-top: 4px;
  align-self: start;
}

.prestations-list-head-v2 {
  margin-bottom: 18px;
}

.prestations-table-v35 thead th {
  padding-top: 18px;
  padding-bottom: 18px;
}

.prestations-table-v35 tbody td {
  padding-top: 24px;
  padding-bottom: 24px;
}

.prestations-table-v35 td:nth-child(1) {
  width: 180px;
}

.prestations-table-v35 td:nth-child(2) {
  width: 260px;
}

.prestations-table-v35 td:nth-child(3) {
  width: 190px;
}

.prestations-table-v35 td:nth-child(4) {
  width: 190px;
}

.prestations-table-v35 td:nth-child(5) {
  width: 140px;
}

.prestations-table-v35 td:nth-child(6) {
  width: 190px;
}

.prestations-table-v35 td:nth-child(7),
.prestations-table-v35 td:nth-child(8) {
  width: 150px;
}

.prestations-view-panel-fiche {
  gap: 26px;
}

.prestations-fiche-topcard {
  padding: 18px 18px 20px;
}

.prestations-fiche-topcard .card-head-row {
  margin-bottom: 16px;
}

.dashboard-table-head-prestations {
  padding: 0 18px;
}

.dashboard-table-list-prestations {
  border-radius: 18px;
}

.dashboard-table-list-prestations > li {
  border-bottom: 1px solid #edf0f3;
  background: #fff;
}

.dashboard-table-list-prestations > li:nth-child(even) {
  background: #fbfcfd;
}

.dashboard-table-list-prestations > li:last-child {
  border-bottom: none;
}

.dashboard-table-row-prestations {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 96px 72px minmax(150px, 1fr) minmax(320px, 2.4fr) 112px 110px 132px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
}

.dashboard-table-row-prestations span {
  min-width: 0;
  color: #353a40;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-table-row-prestations span:nth-child(1),
.dashboard-table-row-prestations span:nth-child(2),
.dashboard-table-row-prestations span:nth-child(7) {
  font-weight: 700;
  color: #1f2937;
}

.dashboard-table-row-prestations span:nth-child(3) {
  font-weight: 500;
}

.dashboard-table-row-prestations span:nth-child(6) {
  text-transform: capitalize;
}

.dashboard-table-row-prestations.is-selected {
  border-color: rgba(255,122,26,.45);
  background: rgba(255,122,26,.08);
  border-radius: 14px;
}

.prestations-fiche-embed-shell {
  padding: 28px;
}

@media (max-width: 1200px) {
  .prestation-quickview-grid {
    grid-template-columns: 1fr;
  }

  .prestation-quickview-hero {
    flex-direction: column;
  }

  .prestation-quickview-hero-side {
    align-items: flex-start;
    text-align: left;
  }

  .prestations-page-main .prestations-module-card-v35 {
    padding: 22px 22px 20px;
  }

  .prestations-page-main .prestations-toolbar-v35 {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .prestations-view-switch,
  .prestations-page-main .prestations-quick-add {
    margin-top: 0;
  }
}

@media (max-width: 920px) {
  .dashboard-table-row-prestations {
    grid-template-columns: 88px 64px minmax(120px, 1fr) 96px 96px 96px 116px;
    gap: 10px;
    padding: 12px 14px;
  }

  .prestations-fiche-topcard {
    padding: 16px;
  }
}

/* Contacts V3.6 */
.contacts-module-card-v36 {
  gap: 1.25rem;
}

.contacts-v36-headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.contacts-v36-subtitle {
  margin: 0.35rem 0 0;
  color: #98a2b3;
  max-width: 680px;
}

.contacts-v36-head-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contacts-v36-select-wrap {
  min-width: 240px;
}

.contacts-v36-toolbar {
  padding-top: 0.2rem;
}

.contacts-v36-search {
  flex: 1 1 440px;
}

.contacts-v36-sort-info {
  color: #667085;
  font-size: 0.9rem;
}

.contacts-v36-table-shell {
  margin-top: 0.4rem;
}

.contacts-v36-table tbody td {
  vertical-align: middle;
}

.contact-inline-trigger {
  cursor: pointer;
}

.contacts-focus-table-head,
.contacts-focus-row {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr 0.9fr;
  gap: 0.8rem;
  align-items: center;
}

.contacts-focus-table-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contacts-focus-table-list > li {
  list-style: none;
}

.contacts-focus-row {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  color: #f5f5f5;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.contacts-focus-row:hover,
.contacts-focus-row.is-selected {
  border-color: rgba(255, 140, 66, 0.65);
  background: rgba(255, 140, 66, 0.12);
}

.contacts-v2-identity-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

@media (max-width: 1180px) {
  .contacts-v36-headline {
    flex-direction: column;
  }

  .contacts-v36-head-meta {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .prestation-quickview-fields {
    grid-template-columns: 1fr;
  }

  .prestation-quickview-field,
  .prestation-quickview-field-full,
  .prestation-quickview-block-full {
    grid-column: auto;
  }

  .contacts-focus-table-head,
  .contacts-focus-row {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .contacts-focus-table-head span:nth-child(4),
  .contacts-focus-table-head span:nth-child(5),
  .contacts-focus-row span:nth-child(4),
  .contacts-focus-row span:nth-child(5) {
    display: none;
  }
}


/* V3.6.2.1 - contacts readability hotfix */
.contacts-v36-search .prestations-search-wrap,
.contacts-v36-search {
  color: #111827;
}

.contacts-v36-search input {
  background: #fbfcfd;
  color: #111827;
  border-color: #cfd6df;
}

.contacts-v36-search input::placeholder {
  color: #94a3b8;
}

.contacts-focus-table-head {
  color: #6b7280;
}

.contacts-focus-row {
  border: 1px solid #e6ebf1;
  background: #ffffff;
  color: #374151;
}

.contacts-focus-row span {
  color: #374151;
}

.contacts-focus-row span:nth-child(1),
.contacts-focus-row span:nth-child(5) {
  font-weight: 700;
  color: #111827;
}

.contacts-focus-row:hover,
.contacts-focus-row.is-selected {
  border-color: rgba(255, 140, 66, 0.55);
  background: rgba(255, 140, 66, 0.12);
}

/* =========================================
   FICHE CONTACT V3.7
========================================= */

.fiche-contact-v37-main {
  padding: 18px;
}

.fiche-contact-v37-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fiche-contact-v37-hero-subline {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 1.02rem;
}

.fiche-contact-v37-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fiche-contact-v37-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fiche-contact-v37-summary-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.fiche-contact-v37-status-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fiche-contact-v37-status-current {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fiche-contact-v37-status-current span {
  color: #64748b;
  font-size: 0.92rem;
}

.fiche-contact-v37-status-current strong {
  font-size: 1.08rem;
  color: #111827;
}

.fiche-contact-v37-status-actions {
  position: relative;
}

.fiche-contact-v37-events-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fiche-contact-v37-events-count {
  color: #64748b;
  font-weight: 700;
}

.fiche-contact-v37-events-list {
  display: grid;
  gap: 12px;
}

.fiche-contact-v37-event-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
}

.fiche-contact-v37-event-dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.12);
}

.fiche-contact-v37-event-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e7ecf2;
}

.fiche-contact-v37-event-content strong {
  color: #111827;
}

.fiche-contact-v37-event-content span {
  color: #64748b;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .fiche-contact-v37-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .fiche-contact-v37-main {
    padding: 14px;
  }

  .fiche-contact-v37-event-content {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =========================================
   TRANSITIONS INTER-PAGES CRM
========================================= */

body {
  animation: monsteraPageFadeIn 180ms ease both;
}

body.page-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

@keyframes monsteraPageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




.prestations-quickview-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prestation-quickview-summary {
  margin-top: 14px;
}

.prestation-quickview-summary-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.prestation-quickview-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.prestation-quickview-summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(249,115,22,.12);
}

.prestation-quickview-summary-item span {
  font-size: 0.83rem;
  color: #64748b;
}

.prestation-quickview-summary-item strong {
  color: #111827;
  font-size: 1rem;
}

.contact-hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid #dbe2ea;
  background: #f8fafc;
  color: #1f2937;
}

.contact-hero-badge--success {
  background: #edf8ef;
  border-color: #cfe7d5;
  color: #18794e;
}

.contact-hero-badge--neutral {
  background: #f4f8ff;
  border-color: #d6e0f5;
  color: #36598d;
}

.contact-hero-badge--info {
  background: #f3f4ff;
  border-color: #d7d9fa;
  color: #5563c1;
}

.contact-hero-badge--count {
  background: #fff;
  border-color: #dbe2ea;
  color: #374151;
}

.fiche-contact-v37-notes-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fiche-contact-v37-note-label {
  color: #64748b;
  font-size: .92rem;
  font-weight: 700;
}

.fiche-contact-v37-note-compose {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fiche-contact-v37-note-compose textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid #d8e0e8;
  background: #fbfcfd;
  padding: 14px 16px;
  font: inherit;
  color: #111827;
}

.fiche-contact-v37-note-compose textarea:focus {
  outline: none;
  border-color: rgba(249,115,22,.48);
  box-shadow: 0 0 0 4px rgba(249,115,22,.12);
}

.fiche-contact-v37-note-compose .prestation-secondary-btn {
  align-self: flex-end;
}

.fiche-contact-v37-notes-list {
  display: grid;
  gap: 10px;
}

.fiche-contact-v37-note-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e7ecf2;
}

.fiche-contact-v37-note-text {
  color: #111827;
  font-weight: 600;
  line-height: 1.45;
}

.fiche-contact-v37-note-meta {
  color: #64748b;
  font-size: .9rem;
}

.interaction-log-btn {
  min-width: 116px;
  justify-content: center;
  background: #f3f5f8;
  border-color: #cfd6df;
  color: #1e2a36;
  box-shadow: none;
}

.interaction-log-btn:hover,
.interaction-log-btn:focus-visible {
  border-color: #ff7a1a;
  color: #ff7a1a;
  background: #fff7f0;
}

.interaction-log-btn i {
  font-size: .98rem;
}

@media (max-width: 1100px) {
  .prestation-quickview-summary-row {
    grid-template-columns: 1fr;
  }
}

/* MONSTERA V3.7.3 rebase - vue fiche contact simplifiée native */
.contact-hero-badge--warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.contact-hero-badge--danger {
  background: #3a3a3a;
  border-color: #1f1f1f;
  color: #f5f5f5;
}

.contacts-quickview-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-quickview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-quickview-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-quickview-hero {
  padding: 22px;
}

.contact-quickview-id {
  margin: 8px 0 0;
  color: #64748b;
  font-weight: 700;
}

.contact-quickview-chips {
  margin-top: 14px;
}

.contact-quickview-hero-actions {
  justify-content: flex-end;
}

.contact-quickview-cta {
  min-width: 220px;
}

.contact-quickview-grid {
  align-items: start;
}

.contact-quickview-summary-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-quickview-actions-row {
  justify-content: flex-end;
  margin-top: 18px;
}

.contact-quickview-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-quickview-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5ebf2;
}

.contact-quickview-timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
  flex: 0 0 auto;
}

.contact-quickview-timeline-item strong {
  display: block;
  color: #111827;
  margin-bottom: 4px;
}

.contact-quickview-timeline-item span {
  color: #64748b;
}

.contact-quickview-timeline-empty {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px dashed #d9e2ec;
  color: #64748b;
  text-align: center;
}

@media (max-width: 1100px) {
  .contact-quickview-summary-row {
    grid-template-columns: 1fr;
  }

  .contact-quickview-hero {
    flex-direction: column;
  }

  .contact-quickview-hero-actions,
  .contact-quickview-actions-row {
    justify-content: stretch;
  }

  .contact-quickview-cta,
  .contact-quickview-actions-row .prestation-primary-btn,
  .contact-quickview-actions-row .prestation-secondary-btn {
    width: 100%;
  }
}


.app-layout {
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  min-height: 100vh;
  align-self: stretch;
}

.contacts-v36-table .contacts-v2-status {
  min-width: 88px;
  justify-content: center;
}

.contacts-focus-table-head,
.contacts-focus-row {
  grid-template-columns: minmax(0, 1.35fr) 120px 150px 120px 110px;
}

.fiche-contact-v37-grid,
.fiche-grid {
  align-items: start;
}

#contactBlockStatus,
#contactBlockNotes {
  align-self: start;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

#contactBlockStatus .fiche-contact-v37-status-shell,
#contactBlockNotes .fiche-contact-v37-notes-shell {
  flex: 1;
}

#contactBlockStatus .fiche-block-header,
#contactBlockNotes .fiche-block-header {
  margin-bottom: 12px;
}

.fiche-contact-v37-status-shell {
  min-height: 132px;
  align-items: stretch;
}

.fiche-contact-v37-notes-shell {
  gap: 10px;
}

.fiche-contact-v37-note-compose textarea {
  min-height: 88px;
  max-height: 88px;
  resize: none;
}

.fiche-contact-v37-notes-list {
  gap: 8px;
  max-height: 118px;
  overflow: auto;
}

.fiche-contact-v37-note-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 10px 12px;
  gap: 6px;
}

.fiche-contact-v37-note-item.is-selected {
  border-color: rgba(249,115,22,.35);
  background: #fff7f0;
}

.fiche-contact-v37-note-detail {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffaf5;
  border: 1px solid #ffe1c7;
}

.fiche-contact-v37-note-detail-meta {
  color: #9a3412;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.fiche-contact-v37-note-detail-text {
  color: #475569;
  line-height: 1.45;
}

.contact-hero-badge--danger {
  background: #3a3a3a;
  border-color: #1f1f1f;
  color: #f5f5f5;
}

.contact-quickview-actions-row .prestation-secondary-btn {
  min-width: 0;
}

.contact-quickview-hero-actions {
  display: none;
}


/* =========================================
   V3.8.1 - Sidebar full-height fix + fiche contact journal notes
========================================= */
.app-layout {
  position: relative;
  align-items: stretch;
  min-height: 100vh;
}

.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar-top {
  flex: 1;
  min-height: 100%;
}

.sidebar-nav {
  flex: 1;
}

.sidebar-nav .nav-item:last-child {
  margin-top: auto;
}

.fiche-contact-v37-journal-tools {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fiche-contact-v37-note-compose-inline {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #f8fafc;
}

.fiche-contact-v37-note-compose-inline.is-open {
  display: grid;
}

.fiche-contact-v37-note-compose-inline textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
}

.fiche-contact-v37-note-compose-actions {
  display: flex;
  gap: 10px;
  align-self: flex-end;
}

.fiche-contact-v37-event-item--note {
  border-left: 4px solid var(--accent);
  padding-left: 14px;
}

.fiche-contact-v37-event-text {
  margin-top: 6px;
  color: var(--text-main);
  white-space: pre-wrap;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    min-height: 100vh;
  }

  .fiche-contact-v37-note-compose-inline,
  .fiche-contact-v37-note-compose-inline.is-open {
    grid-template-columns: 1fr;
  }

  .fiche-contact-v37-note-compose-actions {
    justify-content: flex-end;
  }
}


/* MONSTERA V3.8.2 - fiche contact simplifiée + hiérarchie sidebar */
.fiche-contact-v37-hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.fiche-contact-v37-lock-toggle {
  min-width: 132px;
  justify-content: center;
}

.fiche-contact-v37-lock-toggle.is-unlock {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.is-contact-blocked .fiche-hero-card,
.is-contact-blocked .fiche-block {
  filter: grayscale(1);
}

.is-contact-blocked .fiche-hero-card,
.is-contact-blocked .fiche-block,
.is-contact-blocked .fiche-client-card,
.is-contact-blocked .fiche-contact-v2-table-wrap {
  opacity: .62;
}

.is-contact-blocked .fiche-contact-v37-lock-toggle,
.is-contact-blocked .fiche-contact-v37-hero-actions {
  opacity: 1;
  filter: none;
}

.is-contact-blocked .fiche-contact-v37-lock-toggle {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .fiche-contact-v37-hero-content {
    flex-direction: column;
    align-items: stretch;
  }

  .fiche-contact-v37-lock-toggle {
    width: 100%;
  }
}


/* MONSTERA V4 - sidebar image test + activity pager + embedded contact drawer */

.sidebar {
  background-color: #11161c;
  background-attachment: scroll;
}

.sidebar .nav-item {
  backdrop-filter: blur(2px);
}

.sidebar .nav-item:not(.active) {
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-table-list-activity {
  min-height: 192px;
}

.dashboard-card-half #activityContent {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dashboard-activity-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 6px;
}

.dashboard-activity-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.dashboard-activity-arrow:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.dashboard-activity-arrow:disabled {
  opacity: .4;
  cursor: default;
  box-shadow: none;
}

.dashboard-activity-page {
  min-width: 70px;
  text-align: center;
  font-size: .92rem;
  font-weight: 700;
  color: #64748b;
}

.prestation-drawer-section[hidden] {
  display: none !important;
}

.prestation-contact-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.prestation-contact-inline-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-main);
}

.prestation-contact-inline-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prestation-contact-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.prestation-contact-inline-grid .form-group.full {
  grid-column: 1 / -1;
}

.prestation-contact-inline-back {
  min-width: 118px;
}

@media (max-width: 768px) {
  .prestation-contact-inline-grid {
    grid-template-columns: 1fr;
  }

  .prestation-contact-inline-header {
    flex-direction: column;
    align-items: stretch;
  }
}


.fiche-prestation-shell .fiche-grid {
  align-items: stretch;
}

.fiche-prestation-shell #blockPrestation,
.fiche-prestation-shell #blockClient {
  height: 100%;
}

.fiche-prestation-shell #blockStatus,
.fiche-prestation-shell #blockNote {
  grid-column: 1 / -1;
}

/* CASHFLOW V4.2 */
.cashflow-module-main {
  align-items: flex-start;
}

.cashflow-module-card {
  gap: 1.5rem;
}

.cashflow-v42-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.cashflow-v42-subtitle {
  margin: 0.45rem 0 0;
  color: rgba(20, 28, 38, 0.72);
  max-width: 920px;
}

.cashflow-v42-toolbar {
  align-items: center;
}

.cashflow-v42-search {
  flex: 1 1 460px;
}

.cashflow-v42-list-head {
  margin-bottom: 0.95rem;
}

.cashflow-v42-list-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.cashflow-v42-sort-info {
  font-size: 0.9rem;
  color: rgba(20, 28, 38, 0.6);
}

.cashflow-v42-table-shell {
  overflow: hidden;
}

.cashflow-v42-table {
  width: 100%;
  border-collapse: collapse;
}

.cashflow-v42-table thead th {
  text-align: left;
  padding: 0.95rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(20, 28, 38, 0.56);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(245, 247, 250, 0.92);
}

.cashflow-v42-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  color: #182230;
  vertical-align: middle;
}

.cashflow-v42-row {
  transition: background 0.18s ease;
}

.cashflow-v42-row:hover {
  background: rgba(255, 247, 240, 0.66);
}

.cashflow-v42-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: #d96a1d;
  cursor: pointer;
  text-align: left;
}

.cashflow-v42-link:hover {
  text-decoration: underline;
}

.cashflow-v42-link-strong {
  font-weight: 700;
  color: #101828;
}

.cashflow-v42-amount {
  font-weight: 700;
  color: #0f7a4c;
  white-space: nowrap;
}

.cashflow-v42-col-action {
  width: 104px;
}

.cashflow-v42-open-btn {
  min-width: 74px;
}

.cashflow-focus-table-head,
.cashflow-focus-row {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1.1fr 0.9fr 1fr 0.9fr;
  gap: 0.8rem;
  align-items: center;
}

.cashflow-focus-row {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.9rem 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.cashflow-focus-row.is-active {
  color: #d96a1d;
  font-weight: 700;
}

.cashflow-quickview-shell {
  padding-top: 1rem;
}

.cashflow-quickview {
  min-height: 340px;
}

.cashflow-quickview-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cashflow-quickview-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.3rem 1.35rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(255, 247, 240, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(217, 106, 29, 0.14);
}

.cashflow-quickview-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 28, 38, 0.54);
  margin-bottom: 0.3rem;
}

.cashflow-quickview-title {
  margin: 0;
  font-size: 1.8rem;
  color: #101828;
}

.cashflow-quickview-subtitle,
.cashflow-quickview-date {
  margin: 0.32rem 0 0;
  color: rgba(20, 28, 38, 0.7);
}

.cashflow-quickview-hero-side {
  min-width: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.65rem;
}

.cashflow-quickview-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f7a4c;
}

.cashflow-quickview-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 122, 76, 0.12);
  color: #0f7a4c;
  font-weight: 700;
}

.cashflow-quickview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cashflow-quickview-block {
  padding: 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.cashflow-quickview-block-head {
  margin-bottom: 0.95rem;
}

.cashflow-quickview-block-head h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #101828;
}

.cashflow-quickview-fields {
  display: grid;
  gap: 0.75rem;
}

.cashflow-quickview-field {
  display: grid;
  gap: 0.18rem;
}

.cashflow-quickview-field span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(20, 28, 38, 0.52);
}

.cashflow-quickview-field strong {
  font-size: 1rem;
  color: #101828;
}

.cashflow-quickview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cashflow-delete-btn {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.18);
}

.cashflow-payment-hero-card {
  padding: 0;
}

.cashflow-payment-hero-content {
  align-items: center;
}

.cashflow-payment-hero-subline {
  margin: 0.55rem 0 0;
  color: rgba(20, 28, 38, 0.72);
  font-size: 1rem;
}

.cashflow-payment-hero-side {
  align-items: flex-end;
  gap: 0.65rem;
}

.cashflow-payment-detail-card {
  gap: 1.4rem;
}

.cashflow-payment-actions {
  padding: 0.25rem 0.45rem 0.35rem;
  margin-top: 0.1rem;
}

.cashflow-quickview-empty {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  min-height: 280px;
  padding: 2.2rem 1rem;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.cashflow-quickview-empty h3,
.cashflow-quickview-empty p {
  margin: 0;
}

@media (max-width: 1200px) {
  .cashflow-quickview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .cashflow-focus-table-head,
  .cashflow-focus-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cashflow-quickview-hero {
    flex-direction: column;
  }

  .cashflow-quickview-hero-side {
    align-items: flex-start;
  }

  .cashflow-payment-hero-side {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .cashflow-v42-table thead {
    display: none;
  }

  .cashflow-v42-table,
  .cashflow-v42-table tbody,
  .cashflow-v42-table tr,
  .cashflow-v42-table td {
    display: block;
    width: 100%;
  }

  .cashflow-v42-row {
    padding: 0.85rem 0;
  }

  .cashflow-v42-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
  }

  .cashflow-v42-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: rgba(20, 28, 38, 0.58);
    margin-right: 1rem;
  }

  .cashflow-v42-col-action {
    width: 100%;
  }

  .cashflow-quickview-actions {
    justify-content: stretch;
  }

  .cashflow-quickview-actions .prestation-secondary-btn,
  .cashflow-quickview-actions .prestation-primary-btn {
    width: 100%;
  }
}


/* ========================= DASHBOARD GLOBAL SEARCH V4.5 ========================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dashboard-search-section {
  margin-bottom: 16px;
}

.dashboard-search {
  position: relative;
}

.dashboard-search-input-wrap {
  position: relative;
}

.dashboard-search-input-wrap i {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.2rem;
}

.dashboard-search input {
  width: 100%;
  min-height: 68px;
  padding: 0 20px 0 54px;
  border: 1px solid #ccd3da;
  border-radius: 18px;
  background: #fbfcfd;
  color: #111827;
  font-size: 1rem;
}

.dashboard-search input::placeholder {
  color: #98a2b3;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
}

.search-results-section + .search-results-section {
  margin-top: 10px;
}

.search-results-title {
  margin: 0 0 8px;
  padding: 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.search-result-item:hover,
.search-result-item:focus-visible {
  background: #fff8f1;
  outline: none;
}

.search-result-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.search-result-label {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-strong);
}

.search-result-meta {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.search-result-tag {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.search-results-empty {
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .search-result-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-result-tag {
    align-self: flex-start;
  }
}

/* ======================================================
   MONSTERA V4.6 - Planning dérivé des prestations
   ====================================================== */

.planning-derived-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.planning-derived-hero,
.planning-derived-toolbar,
.planning-derived-board,
.planning-derived-sidecard {
  border-radius: 24px;
}

.planning-derived-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.planning-derived-title {
  margin: 0.15rem 0 0.6rem;
  font-size: clamp(1.6rem, 2vw, 2.15rem);
}

.planning-derived-text {
  margin: 0;
  color: #5b6477;
  line-height: 1.6;
}

.planning-derived-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.planning-derived-stat {
  background: rgba(249, 244, 236, 0.95);
  border: 1px solid rgba(214, 192, 165, 0.55);
  border-radius: 20px;
  padding: 1rem;
  min-height: 122px;
}

.planning-derived-stat-label,
.planning-section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f5f2f;
}

.planning-derived-stat-value {
  display: block;
  margin-top: 0.55rem;
  font-size: 2rem;
  line-height: 1;
  color: #1f2937;
}

.planning-derived-stat-meta {
  display: block;
  margin-top: 0.45rem;
  color: #667085;
}

.planning-derived-toolbar,
.planning-derived-toolbar-left,
.planning-derived-toolbar-right,
.planning-derived-nav,
.planning-derived-view-switcher,
.planning-derived-filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.planning-derived-toolbar {
  justify-content: space-between;
}

.planning-derived-nav-btn,
.planning-derived-today,
.planning-derived-view-btn,
.planning-filter-btn {
  border: 1px solid rgba(209, 187, 160, 0.72);
  background: #fff;
  color: #2f3a4c;
  border-radius: 14px;
  min-height: 42px;
  padding: 0 0.95rem;
  font: inherit;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.planning-derived-nav-btn {
  width: 42px;
  padding: 0;
  display: inline-flex;
  justify-content: center;
}

.planning-derived-view-btn.is-active,
.planning-filter-btn.is-active,
.planning-derived-today:hover,
.planning-derived-nav-btn:hover,
.planning-derived-view-btn:hover,
.planning-filter-btn:hover {
  border-color: rgba(220, 106, 24, 0.48);
  box-shadow: 0 10px 25px rgba(154, 108, 61, 0.12);
  transform: translateY(-1px);
}

.planning-derived-view-btn.is-active,
.planning-filter-btn.is-active {
  background: linear-gradient(135deg, rgba(229, 116, 42, 0.18), rgba(255, 255, 255, 0.98));
  color: #9a3f0c;
}

.planning-derived-period {
  font-size: 1rem;
  font-weight: 600;
  color: #2f3a4c;
}

.planning-derived-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.72fr);
  gap: 1.25rem;
  align-items: start;
}

.planning-derived-board-header,
.planning-derived-sidecard-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.planning-derived-board-title,
.planning-derived-sidecard-title {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
}

.planning-derived-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: flex-end;
}

.planning-derived-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #5b6477;
  font-size: 0.92rem;
}

.planning-derived-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dot-open { background: #e67b2d; }
.dot-closed { background: #2563eb; }
.dot-cancelled { background: #4b5563; }

.planning-derived-board-shell {
  min-height: 540px;
}

.planning-derived-empty,
.planning-derived-column-empty {
  color: #667085;
  background: rgba(248, 244, 238, 0.95);
  border: 1px dashed rgba(186, 155, 121, 0.45);
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
}

.planning-derived-day,
.planning-derived-list,
.planning-derived-upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.planning-derived-timeline-card,
.planning-derived-upcoming-item,
.planning-derived-list-item,
.planning-derived-compact-card,
.planning-derived-month-pill {
  border: 1px solid rgba(214, 192, 165, 0.55);
  background: #fff;
  border-radius: 18px;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.planning-derived-timeline-card:hover,
.planning-derived-upcoming-item:hover,
.planning-derived-list-item:hover,
.planning-derived-compact-card:hover,
.planning-derived-month-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 106, 24, 0.48);
  box-shadow: 0 16px 34px rgba(31, 41, 55, 0.08);
}

.planning-derived-timeline-card,
.planning-derived-list-item,
.planning-derived-upcoming-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.05rem;
}

.planning-derived-timeline-hour,
.planning-derived-list-hour,
.planning-derived-upcoming-hour,
.planning-derived-compact-hour {
  font-weight: 700;
  color: #9a3f0c;
}

.planning-derived-timeline-content,
.planning-derived-list-main,
.planning-derived-upcoming-main {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.planning-derived-timeline-content strong,
.planning-derived-list-main strong,
.planning-derived-upcoming-main strong,
.planning-derived-compact-card strong {
  color: #1f2937;
}

.planning-derived-timeline-content small,
.planning-derived-list-main small,
.planning-derived-upcoming-main small,
.planning-derived-compact-card small {
  color: #667085;
}

.planning-derived-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-open {
  background: rgba(230, 123, 45, 0.14);
  color: #aa5312;
}

.badge-closed {
  background: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
}

.badge-cancelled {
  background: rgba(75, 85, 99, 0.16);
  color: #1f2937;
}

.planning-derived-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.9rem;
}

.planning-derived-day-column {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 420px;
  background: rgba(250, 247, 242, 0.9);
  border: 1px solid rgba(214, 192, 165, 0.48);
  border-radius: 20px;
  padding: 0.9rem;
}

.planning-derived-day-column-head {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  color: #5b6477;
}

.planning-derived-day-column-head strong {
  color: #1f2937;
}

.planning-derived-day-column-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.planning-derived-compact-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem;
}

.planning-derived-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
}

.planning-derived-month-head,
.planning-derived-month-cell {
  border-radius: 18px;
}

.planning-derived-month-head {
  padding: 0.7rem 0.5rem;
  text-align: center;
  background: rgba(244, 236, 225, 0.9);
  color: #6b7280;
  font-weight: 700;
}

.planning-derived-month-cell {
  min-height: 138px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(214, 192, 165, 0.5);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.planning-derived-month-cell.is-muted {
  opacity: 0.5;
}

.planning-derived-month-date {
  font-weight: 700;
  color: #1f2937;
}

.planning-derived-month-items {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.planning-derived-month-pill {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
}

.planning-derived-month-pill strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.planning-derived-month-more {
  font-size: 0.8rem;
  color: #667085;
}

.planning-derived-list-date {
  font-size: 0.92rem;
  font-weight: 700;
  color: #8f5f2f;
  padding-top: 0.45rem;
}

.planning-notification-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

@media (max-width: 1280px) {
  .planning-derived-hero,
  .planning-derived-grid {
    grid-template-columns: 1fr;
  }

  .planning-derived-week {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .planning-derived-stats {
    grid-template-columns: 1fr;
  }

  .planning-derived-week,
  .planning-derived-month {
    grid-template-columns: 1fr;
  }

  .planning-derived-month-head {
    display: none;
  }

  .planning-derived-timeline-card,
  .planning-derived-list-item,
  .planning-derived-upcoming-item {
    grid-template-columns: 1fr;
    align-items: start;
  }
}


/* ==============================
   MONSTERA V4.6.1 - Planning simplifié
   ============================== */
.planning-simple-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.planning-simple-hero,
.planning-simple-toolbar,
.planning-simple-board-card {
  border-radius: 24px;
}

.planning-simple-hero {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 24px;
  align-items: stretch;
}

.planning-simple-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b86f39;
  font-weight: 700;
}

.planning-simple-title {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.05;
}

.planning-simple-text {
  margin: 0;
  color: #5f5a54;
  max-width: 70ch;
}

.planning-simple-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.planning-simple-stat {
  min-height: 112px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(191, 149, 111, .2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.planning-simple-stat-label {
  font-size: 13px;
  color: #7b7067;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.planning-simple-stat-value {
  font-size: 34px;
  line-height: 1;
}

.planning-simple-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.planning-simple-toolbar-left,
.planning-simple-toolbar-right,
.planning-simple-nav,
.planning-simple-view-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
}

.planning-simple-nav-btn,
.planning-simple-today,
.planning-simple-view-btn {
  border: 1px solid rgba(191,149,111,.25);
  background: rgba(255,255,255,.88);
  color: #352d27;
  border-radius: 14px;
  min-height: 42px;
  padding: 0 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.planning-simple-nav-btn {
  width: 42px;
  padding: 0;
}

.planning-simple-view-btn.is-active,
.planning-simple-today {
  background: linear-gradient(135deg, #c96f31, #d5854b);
  border-color: #c96f31;
  color: #fff;
}

.planning-simple-period {
  font-size: 15px;
  font-weight: 600;
  color: #4f4740;
}

.planning-simple-board-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.planning-simple-board-title {
  margin: 0;
  font-size: 24px;
}

.planning-simple-board-note {
  color: #7b7067;
  font-size: 14px;
}

.planning-simple-board {
  min-height: 420px;
}

.planning-simple-empty,
.planning-simple-column-empty {
  border: 1px dashed rgba(191,149,111,.35);
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  color: #7b7067;
  background: rgba(255,255,255,.56);
}

.planning-simple-day {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.planning-simple-timeline-card,
.planning-simple-compact-card,
.planning-simple-month-pill {
  width: 100%;
  border: 1px solid rgba(191,149,111,.22);
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.planning-simple-timeline-card {
  display: grid;
  grid-template-columns: 94px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  text-align: left;
}

.planning-simple-timeline-time {
  font-size: 20px;
  font-weight: 700;
  color: #bf6d2d;
}

.planning-simple-timeline-main,
.planning-simple-compact-card {
  text-align: left;
}

.planning-simple-timeline-main strong,
.planning-simple-compact-card strong,
.planning-simple-month-pill strong {
  display: block;
}

.planning-simple-timeline-main small,
.planning-simple-compact-card small {
  color: #7b7067;
}

.planning-simple-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(201, 111, 49, .12);
  color: #9d531f;
  font-weight: 700;
}

.planning-simple-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.planning-simple-day-column {
  min-height: 300px;
  border: 1px solid rgba(191,149,111,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  overflow: hidden;
}

.planning-simple-day-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 12px;
  background: rgba(201,111,49,.08);
  border-bottom: 1px solid rgba(191,149,111,.16);
}

.planning-simple-day-column-head span {
  font-size: 13px;
  text-transform: uppercase;
  color: #7b7067;
}

.planning-simple-day-column-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.planning-simple-compact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.planning-simple-compact-card span {
  font-weight: 700;
}

.planning-simple-compact-card small {
  display: block;
}

.planning-simple-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.planning-simple-month-head {
  padding: 8px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #7b7067;
  text-transform: uppercase;
}

.planning-simple-month-cell {
  min-height: 126px;
  border: 1px solid rgba(191,149,111,.18);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255,255,255,.72);
}

.planning-simple-month-cell.is-muted {
  opacity: .5;
}

.planning-simple-month-date {
  font-weight: 700;
  margin-bottom: 8px;
}

.planning-simple-month-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.planning-simple-month-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  text-align: left;
}

.planning-simple-month-pill span {
  font-size: 12px;
  color: #bf6d2d;
  font-weight: 700;
}

.planning-simple-month-more {
  font-size: 12px;
  color: #7b7067;
  padding: 4px 2px;
}

@media (max-width: 1200px) {
  .planning-simple-hero {
    grid-template-columns: 1fr;
  }

  .planning-simple-week,
  .planning-simple-month {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .planning-simple-stats {
    grid-template-columns: 1fr;
  }

  .planning-simple-timeline-card {
    grid-template-columns: 1fr;
  }

  .planning-simple-week,
  .planning-simple-month {
    grid-template-columns: 1fr;
  }

  .planning-simple-toolbar {
    align-items: stretch;
  }

  .planning-simple-toolbar-left,
  .planning-simple-toolbar-right,
  .planning-simple-view-switcher {
    flex-wrap: wrap;
  }
}


/* statistiques v4.7 */
.stats-v47-shell {
  padding-top: 0;
}

.stats-v47-grid {
  display: grid;
  gap: 18px;
}

.stats-v47-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stats-v47-kpi {
  min-height: 148px;
  border: none;
  color: #fff;
  padding: 24px 26px;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.stats-v47-kpi-orange-light { background: linear-gradient(135deg, #f59e0b, #fb923c); }
.stats-v47-kpi-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.stats-v47-kpi-orange-deep { background: linear-gradient(135deg, #c2410c, #9a3412); }
.stats-v47-kpi-graphite { background: linear-gradient(135deg, #374151, #111827); }
.stats-v47-kpi-emerald { background: linear-gradient(135deg, #0f9f6e, #0b6b55); }
.stats-v47-kpi-alert { background: linear-gradient(135deg, #b45309, #7c2d12); }

.stats-v47-kpi-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 1.6rem;
  font-weight: 700;
}

.stats-v47-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.4rem;
}

.stats-v47-kpi-title {
  font-size: 1.05rem;
}

.stats-v47-kpi-value {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.stats-v47-kpi-sub {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.stats-v47-panel {
  padding: 0;
  overflow: hidden;
}

.stats-v47-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-soft);
}

.stats-v47-panel-title {
  margin: 0;
  font-size: 1.22rem;
}

.stats-v47-panel-subtitle {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.stats-v47-chart-wrap {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 18px 24px 10px;
  min-height: 360px;
}

.stats-v47-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  color: #7b8190;
  font-size: 0.92rem;
  padding: 4px 0 32px;
}

.stats-v47-chart-stage {
  position: relative;
  min-height: 300px;
}

.stats-v47-grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: 100% 25%;
}

.stats-v47-bars {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
  padding: 8px 10px 0;
}

.stats-v47-bar-col {
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.stats-v47-bar-track {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.stats-v47-bar-fill {
  width: 100%;
  min-height: 8px;
  border-radius: 0;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.22);
}

.stats-v47-line-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.stats-v47-line-layer path {
  fill: none;
  stroke: #9a3412;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats-v47-line-points {
  position: absolute;
  inset: 0;
}

.stats-v47-point {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ea580c;
  border: 3px solid #f3f4f6;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.28);
}

.stats-v47-x-axis {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  padding: 0 34px 22px 122px;
  color: #566074;
  font-size: 0.96rem;
}

.stats-v47-x-axis span {
  text-align: center;
}

.stats-v47-bottom-panel {
  min-height: 250px;
}

.stats-v47-top-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 24px 24px;
}

.stats-v47-top-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-soft);
}

.stats-v47-top-item:last-child {
  border-bottom: none;
}

.stats-v47-rank {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #c2410c);
}

.stats-v47-top-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-v47-top-main strong {
  font-size: 1rem;
}

.stats-v47-top-main small {
  color: #6b7280;
}

.stats-v47-top-amount {
  font-weight: 700;
  color: #1f2937;
}

.stats-v47-summary-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding: 24px;
}

.stats-v47-summary-card {
  border-radius: 16px;
  background: linear-gradient(135deg, #f97316, #c2410c);
  color: #fff;
  padding: 24px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats-v47-summary-title {
  font-size: 1.12rem;
  font-weight: 700;
}

.stats-v47-summary-value {
  margin-top: 14px;
  font-size: 2.4rem;
  font-weight: 700;
}

.stats-v47-summary-mini {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
}

.stats-v47-summary-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.stats-v47-summary-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stats-v47-summary-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stats-v47-summary-label {
  color: #6b7280;
}

.stats-v47-summary-item strong {
  font-size: 1.12rem;
  color: #1f2937;
}

.stats-v47-empty {
  color: #6b7280;
  padding: 28px 0 10px;
}

@media (max-width: 1200px) {
  .stats-v47-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .stats-v47-chart-wrap {
    grid-template-columns: 1fr;
  }

  .stats-v47-y-axis {
    display: none;
  }

  .stats-v47-x-axis {
    padding-left: 34px;
  }
}

@media (max-width: 720px) {
  .stats-v47-kpis {
    grid-template-columns: 1fr;
  }

  .stats-v47-bars,
  .stats-v47-x-axis {
    gap: 10px;
  }

  .stats-v47-top-item {
    grid-template-columns: 36px 1fr;
  }

  .stats-v47-top-amount {
    grid-column: 2;
  }
}


/* MONSTERA V5 header + actions */
.topbar-dropdown-group { position: relative; }
.icon-btn.has-badge::after { content: attr(data-badge); position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ea580c; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(234,88,12,.28); }
.icon-btn.has-badge[data-badge='0']::after, .icon-btn:not(.has-badge)::after { display:none; }
.icon-btn-agenda { color: #c2410c; }
.icon-btn-agenda[data-severity='danger'] { color: #b91c1c; }
.dropdown-item-content small.is-warning { color: #b45309; }
.dropdown-item-content small.is-danger { color: #b91c1c; }
.dropdown-item-content strong.is-danger { color: #991b1b; }
.profile-menu-identity { padding: 0 0 10px; border-bottom: 1px solid rgba(148,163,184,.16); margin-bottom: 4px; }
.profile-menu-identity strong, .profile-menu-identity small { display:block; }
.prestation-danger-btn { border: 1px solid rgba(185, 28, 28, 0.22); background: rgba(185, 28, 28, 0.08); color: #991b1b; border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.prestation-danger-btn:hover { background: rgba(185, 28, 28, 0.14); }
.prestation-anomaly-banner { display:flex; flex-direction:column; gap:6px; padding:12px 14px; margin-bottom:16px; border-radius:14px; border:1px solid rgba(180,83,9,.18); background: linear-gradient(180deg, rgba(255,237,213,.95), rgba(255,247,237,.92)); color:#9a3412; }
.prestation-anomaly-banner strong { font-size:14px; }


/* MONSTERA V5.6 - assainissement prestations */
.prestations-anomaly-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(226, 108, 10, 0.22);
  background: rgba(226, 108, 10, 0.08);
  color: #9a4d08;
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}
.prestations-anomaly-btn:hover {
  background: rgba(226, 108, 10, 0.14);
}
.prestations-anomaly-btn.is-alert {
  box-shadow: 0 0 0 3px rgba(226, 108, 10, 0.10);
}
.prestations-anomaly-btn-count {
  min-width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e26c0a;
  color: #fff;
  font-size: 0.85rem;
  padding: 0 0.45rem;
}
.prestations-page-main .prestations-bulk-panel {
  margin: 0.9rem 0 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fff 0%, #fff9f4 100%);
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.prestations-bulk-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.prestations-bulk-panel-title {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  color: #1f2937;
}
.prestations-bulk-panel-text {
  margin: 0.8rem 0 0;
  color: #5b6472;
  line-height: 1.5;
}
.prestations-bulk-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.prestations-bulk-panel-close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #1f2937;
  cursor: pointer;
}
.prestation-danger-btn {
  border: none;
  border-radius: 0.95rem;
  padding: 0.8rem 1rem;
  background: #b42318;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.prestation-danger-btn:disabled,
.prestation-secondary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.prestations-bulk-cancel {
  border: 1px solid rgba(226, 108, 10, 0.18);
  background: rgba(226, 108, 10, 0.08);
  color: #9a4d08;
}


/* MONSTERA V5.6.1 - repositionnement du contrôle des prestations non clôturées */
.prestations-page-main .prestations-toolbar-v35 {
  align-items: center;
  gap: 0.9rem;
}

.prestations-page-main .prestations-search-wrap-compact {
  flex: 1 1 auto;
  max-width: min(100%, 62rem);
}

.prestations-page-main .prestations-anomaly-btn-hero {
  flex: 0 0 auto;
  white-space: nowrap;
  margin-left: auto;
  order: 2;
}

#prestationsViewSwitch {
  order: 3;
}

.prestations-quick-add {
  order: 4;
}

.prestations-page-main .prestations-filters-right {
  gap: 0.85rem;
}

.prestations-anomaly-btn.is-empty {
  opacity: 0.92;
}

@media (max-width: 1320px) {
  .prestations-page-main .prestations-toolbar-v35 {
    flex-wrap: wrap;
  }

  .prestations-page-main .prestations-search-wrap-compact {
    max-width: none;
    min-width: 16rem;
  }

  .prestations-page-main .prestations-anomaly-btn-hero {
    margin-left: 0;
  }
}

@media (max-width: 920px) {
  .prestations-page-main .prestations-toolbar-v35 {
    align-items: stretch;
  }

  .prestations-search-wrap-compact,
  .prestations-anomaly-btn-hero,
  #prestationsViewSwitch {
    width: 100%;
  }

  .prestations-page-main .prestations-anomaly-btn-hero {
    justify-content: center;
  }
}


/* MONSTERA V5.7 - module prestations propre */
.prestations-page-main .prestations-module-card-v35 {
  overflow: visible;
}

.prestations-page-main .prestations-toolbar-v35 {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(16rem, 1fr) auto auto auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.prestations-page-main .prestations-module-intro {
  min-width: 15rem;
}

.prestations-page-main .prestations-module-intro-meta {
  margin: 0.35rem 0 0;
  color: #475569;
  font-weight: 700;
}

.prestations-page-main .prestations-search-wrap-compact {
  width: 100%;
  max-width: 42rem;
}

.prestations-page-main .prestations-admin-wrap {
  position: relative;
  justify-self: end;
}

.prestations-page-main .prestations-anomaly-btn-hero {
  margin-left: 0;
  white-space: nowrap;
}

.prestations-page-main .prestations-bulk-popover {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  width: 21rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fff 0%, #fff9f4 100%);
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
  z-index: 120;
}

.prestations-page-main .prestations-list-head-v2-compact {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: 0 0 1rem;
}

.prestations-page-main .prestations-filters-right {
  margin-left: auto;
}

.prestations-page-main .prestations-bulk-panel {
  display: none !important;
}

@media (max-width: 1380px) {
  .prestations-page-main .prestations-toolbar-v35 {
    grid-template-columns: 1fr 1fr auto auto;
    align-items: start;
  }

  .prestations-page-main .prestations-module-intro {
    grid-column: 1 / -1;
  }

  .prestations-page-main .prestations-search-wrap-compact {
    max-width: none;
  }
}

@media (max-width: 980px) {
  .prestations-page-main .prestations-toolbar-v35 {
    grid-template-columns: 1fr;
  }

  .prestations-admin-wrap,
  .prestations-view-switch,
  .prestations-quick-add,
  .prestations-page-main .prestations-search-wrap-compact {
    justify-self: stretch;
  }

  .prestations-page-main .prestations-anomaly-btn-hero {
    width: 100%;
    justify-content: center;
  }

  .prestations-page-main .prestations-bulk-popover {
    left: 0;
    right: auto;
    width: min(100%, 21rem);
  }

  .prestations-page-main .prestations-quick-add {
    width: 3.5rem;
    justify-self: start;
  }
}


.fiche-contact-v37-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.fiche-contact-v37-merge-toggle {
  min-width: 164px;
}

.contact-merge-modal[hidden] {
  display: none !important;
}

.contact-merge-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
}

.contact-merge-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.contact-merge-modal__dialog {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: min(84vh, 860px);
  margin: 6vh auto 0;
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.contact-merge-modal__header,
.contact-merge-modal__footer {
  padding: 24px 28px;
}

.contact-merge-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #eef2f7;
}

.contact-merge-modal__subtitle {
  margin: 8px 0 0;
  color: #667085;
}

.contact-merge-modal__close {
  border: 1px solid #d9dee7;
  background: #fff;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #344054;
  flex: 0 0 auto;
}

.contact-merge-modal__body {
  padding: 24px 28px;
  overflow: auto;
}

.contact-merge-modal__search {
  margin-bottom: 18px;
}

.contact-merge-modal__results {
  display: grid;
  gap: 12px;
}

.contact-merge-option {
  width: 100%;
  text-align: left;
  border: 1px solid #d9dee7;
  background: #fff;
  border-radius: 20px;
  padding: 18px 20px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.contact-merge-option:hover {
  border-color: #f97316;
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.10);
  transform: translateY(-1px);
}

.contact-merge-option.is-selected {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.contact-merge-option__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.contact-merge-option__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.contact-merge-option__code {
  color: #667085;
  font-weight: 600;
}

.contact-merge-option__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-merge-option__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #344054;
  font-size: .93rem;
  font-weight: 600;
}

.contact-merge-modal__empty {
  padding: 22px;
  border: 1px dashed #d0d5dd;
  border-radius: 18px;
  color: #667085;
  background: #fcfcfd;
}

.contact-merge-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #eef2f7;
  background: #fff;
}


/* =========================================================
   MONSTERA V8 MOBILE - responsive refonte iPhone / Android
========================================================= */
.mobile-bottom-nav {
  display: none;
}

.mobile-bottom-nav__item,
.mobile-bottom-nav__action {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
  }

  html,
  body {
    overflow-x: hidden;
  }

  body {
    background: #f1f3f6;
  }

  .app-layout {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main-wrapper {
    margin-left: 0;
    padding-top: 0;
    min-height: 100vh;
  }

  .topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "left right"
      "center center";
    align-items: center;
    min-height: 84px;
    height: auto;
    padding: 14px 14px 12px;
    gap: 10px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(10px);
  }

  .topbar-left {
    grid-area: left;
    min-width: 0;
  }

  .topbar-right {
    grid-area: right;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .topbar-center {
    grid-area: center;
    justify-content: flex-start;
    min-width: 0;
  }

  .topbar-datetime {
    width: 100%;
    margin-top: 0;
    padding: 10px 12px;
    justify-content: flex-start;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.94rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
  }

  .topbar-date,
  .topbar-time,
  .topbar-separator {
    white-space: nowrap;
  }

  .page-title {
    font-size: 1.65rem;
    line-height: 1;
  }

  .topbar-cta,
  .icon-btn {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    border-radius: 14px;
  }

  .topbar-cta span,
  .dropdown-item small,
  .profile-mini-text p {
    display: none;
  }

  .main-content {
    margin-top: 0;
    padding: 14px 14px 96px;
  }

  .page-shell {
    min-height: auto;
  }

  .card,
  .kpi-card,
  .dashboard-card,
  .prestations-module-card,
  .settings-panel,
  .stats-panel,
  .fiche-client-card,
  .fiche-prestation-card {
    border-radius: 20px;
  }

  .dashboard-grid,
  .stats-grid,
  .settings-grid,
  .dashboard-hero-grid,
  .cashflow-quickview-grid,
  .prestation-quickview-grid,
  .contact-quickview-grid,
  .fiche-client-grid,
  .fiche-prestation-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-search-input-wrap,
  .prestations-search-wrap,
  .cashflow-v42-search,
  .contacts-v36-search,
  .contacts-search-wrap {
    min-height: 58px;
    border-radius: 18px;
  }

  .dashboard-search-input-wrap input,
  .prestations-search-wrap input,
  .cashflow-v42-search input,
  .contacts-v36-search input,
  .contacts-search-wrap input {
    font-size: 1.08rem;
  }

  .prestations-toolbar-v35,
  .cashflow-v42-toolbar,
  .contacts-toolbar,
  .contacts-v36-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .prestations-module-intro,
  .cashflow-v42-headline,
  .contacts-module-intro {
    width: 100%;
  }

  .prestations-admin-wrap,
  .prestations-view-switch,
  .prestations-quick-add,
  .prestations-filters-right,
  .cashflow-v42-list-controls,
  .contacts-v36-toolbar-meta,
  .contacts-v36-controls {
    width: 100%;
  }

  .prestations-admin-wrap {
    order: -1;
  }

  .prestations-anomaly-btn,
  .prestations-anomaly-btn-hero {
    width: 100%;
    justify-content: space-between;
    min-height: 60px;
    border-radius: 18px;
  }

  .prestations-view-switch {
    min-height: 58px;
    border-radius: 18px;
  }

  .prestations-view-btn {
    min-height: 58px;
    font-size: 1.05rem;
  }

  .prestations-quick-add {
    width: 100%;
    height: 58px;
    border-radius: 18px;
  }

  .prestations-quick-add i {
    font-size: 1.45rem;
  }

  .prestations-list-head-v2,
  .cashflow-v42-list-head,
  .contacts-list-head,
  .contacts-v36-list-head,
  .card-head-row-spread,
  .card-head-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .dashboard-table-head,
  .prestations-table-v2 thead,
  .contacts-v2-table thead {
    display: none;
  }

  .prestations-table-shell,
  .contacts-v36-table-shell,
  .cashflow-v42-table-shell {
    overflow: visible;
  }

  .prestations-table-v35,
  .prestations-table-v35 tbody,
  .prestations-table-v35 tr,
  .prestations-table-v35 td,
  .contacts-v36-table,
  .contacts-v36-table tbody,
  .contacts-v36-table tr,
  .contacts-v36-table td,
  .contacts-v2-table,
  .contacts-v2-table tbody,
  .contacts-v2-table tr,
  .contacts-v2-table td {
    display: block;
    width: 100%;
  }

  .prestation-row-v35,
  .contacts-v2-row,
  .cashflow-v42-row {
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  }

  .prestation-row-v35:first-child,
  .contacts-v2-row:first-child,
  .cashflow-v42-row:first-child {
    padding-top: 4px;
  }

  .prestation-row-v35:last-child,
  .contacts-v2-row:last-child,
  .cashflow-v42-row:last-child {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .prestations-table-v35 tbody td,
  .contacts-v36-table tbody td,
  .contacts-v2-table tbody td,
  .cashflow-v42-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 0;
    text-align: right;
  }

  .prestations-table-v35 tbody td::before,
  .contacts-v36-table tbody td::before,
  .contacts-v2-table tbody td::before,
  .cashflow-v42-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    max-width: 42%;
    text-align: left;
    font-weight: 700;
    color: rgba(20, 28, 38, 0.56);
  }

  .prestations-table-v35 tbody td > *,
  .contacts-v2-table tbody td > *,
  .cashflow-v42-table tbody td > * {
    margin-left: auto;
  }

  .contacts-v2-cell-action,
  .cashflow-v42-col-action,
  .cell-arrow {
    width: 100%;
  }

  .prestation-row-open,
  .contacts-v2-open-btn,
  .cashflow-v42-open-btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    border-radius: 14px;
  }

  .dashboard-table-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .dashboard-table-item {
    border: 1px solid rgba(217, 217, 217, 0.9);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    overflow: hidden;
  }

  .dashboard-row-link,
  .dashboard-row-link-prestation,
  .dashboard-row-link-activity,
  .dashboard-table-row,
  .cashflow-focus-row,
  .contacts-focus-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }

  .dashboard-row-link .dashboard-cell,
  .dashboard-table-row > span,
  .cashflow-focus-row > span,
  .contacts-focus-row > span {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
  }

  .dashboard-row-link .dashboard-cell::before,
  .dashboard-table-row > span::before,
  .cashflow-focus-row > span::before,
  .contacts-focus-row > span::before {
    font-weight: 700;
    color: rgba(20, 28, 38, 0.56);
  }

  .dashboard-row-link-prestation .dashboard-cell:nth-child(1)::before { content: 'Date'; }
  .dashboard-row-link-prestation .dashboard-cell:nth-child(2)::before { content: 'Heure'; }
  .dashboard-row-link-prestation .dashboard-cell:nth-child(3)::before { content: 'Client'; }
  .dashboard-row-link-prestation .dashboard-cell:nth-child(4)::before { content: 'Lieu'; }
  .dashboard-row-link-prestation .dashboard-cell:nth-child(5)::before { content: 'Type'; }
  .dashboard-row-link-prestation .dashboard-cell:nth-child(6)::before { content: 'Intensité'; }
  .dashboard-row-link-prestation .dashboard-cell:nth-child(7)::before { content: 'Réf.'; }

  .dashboard-row-link-activity .dashboard-cell:nth-child(1)::before { content: 'Date'; }
  .dashboard-row-link-activity .dashboard-cell:nth-child(2)::before { content: 'Heure'; }
  .dashboard-row-link-activity .dashboard-cell:nth-child(3)::before { content: 'Événement'; }
  .dashboard-row-link-activity .dashboard-cell:nth-child(4)::before { content: 'Client'; }

  .contacts-focus-row > span:nth-child(1)::before { content: 'Identité'; }
  .contacts-focus-row > span:nth-child(2)::before { content: 'Statut'; }
  .contacts-focus-row > span:nth-child(3)::before { content: 'Téléphone'; }
  .contacts-focus-row > span:nth-child(4)::before { content: 'Ville'; }
  .contacts-focus-row > span:nth-child(5)::before { content: 'Code'; }

  .cashflow-focus-row > span:nth-child(1)::before { content: 'Réf. paiement'; }
  .cashflow-focus-row > span:nth-child(2)::before { content: 'Date'; }
  .cashflow-focus-row > span:nth-child(3)::before { content: 'Client'; }
  .cashflow-focus-row > span:nth-child(4)::before { content: 'Montant'; }
  .cashflow-focus-row > span:nth-child(5)::before { content: 'Réf. prestation'; }
  .cashflow-focus-row > span:nth-child(6)::before { content: 'Réf. client'; }

  .dashboard-card-half,
  .prestations-card,
  .stats-panel-wide,
  .stats-panel-side {
    grid-column: auto;
  }

  .cashflow-segmented-control-compact,
  .stats-segmented-control,
  .contacts-tabs,
  .settings-tabs,
  .planning-segmented-control {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .cashflow-segmented-control-compact::-webkit-scrollbar,
  .stats-segmented-control::-webkit-scrollbar,
  .contacts-tabs::-webkit-scrollbar,
  .settings-tabs::-webkit-scrollbar,
  .planning-segmented-control::-webkit-scrollbar {
    display: none;
  }

  .prestations-bulk-popover,
  .dropdown-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 92px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
  }

  .prestations-drawer-overlay {
    z-index: 1300;
  }

  .prestations-drawer {
    top: 0;
    right: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    padding: 16px 16px 100px;
    border-radius: 0;
    z-index: 1310;
  }

  .prestations-drawer-header {
    position: sticky;
    top: -16px;
    z-index: 3;
    padding-top: 16px;
    background: linear-gradient(180deg, #f4f6fa 0%, #eef2f7 100%);
  }

  .prestation-client-search-shell,
  .prestations-drawer .form-grid-2,
  .prestations-drawer .prestation-form-grid,
  .prestation-contact-inline-grid,
  .settings-form-grid,
  .settings-hours-row,
  .contact-quickview-grid,
  .prestation-quickview-grid {
    grid-template-columns: 1fr;
  }

  .drawer-actions,
  .prestation-drawer-actions,
  .cashflow-quickview-actions,
  .prestation-quickview-actions,
  .contact-quickview-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .drawer-actions > *,
  .prestation-drawer-actions > *,
  .cashflow-quickview-actions > *,
  .prestation-quickview-actions > *,
  .contact-quickview-actions > * {
    width: 100%;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    background: rgba(20, 24, 30, 0.92);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    z-index: 1250;
  }

  .mobile-bottom-nav__item,
  .mobile-bottom-nav__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 54px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
  }

  .mobile-bottom-nav__item i,
  .mobile-bottom-nav__action i {
    font-size: 1.22rem;
  }

  .mobile-bottom-nav__item.is-active,
  .mobile-bottom-nav__action.is-active {
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.98) 0%, rgba(255, 140, 50, 0.92) 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
  }

  .mobile-bottom-nav__item span,
  .mobile-bottom-nav__action span {
    line-height: 1;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 12px 12px 10px;
  }

  .page-title {
    font-size: 1.45rem;
  }

  .topbar-date {
    max-width: 68vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .prestations-table-v35 tbody td,
  .contacts-v36-table tbody td,
  .contacts-v2-table tbody td,
  .cashflow-v42-table tbody td,
  .dashboard-row-link .dashboard-cell,
  .dashboard-table-row > span,
  .cashflow-focus-row > span,
  .contacts-focus-row > span {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .prestations-table-v35 tbody td::before,
  .contacts-v36-table tbody td::before,
  .contacts-v2-table tbody td::before,
  .cashflow-v42-table tbody td::before {
    flex-basis: auto;
    max-width: 100%;
  }

  .prestations-table-v35 tbody td > *,
  .contacts-v2-table tbody td > *,
  .cashflow-v42-table tbody td > * {
    margin-left: 0;
  }

  .mobile-bottom-nav {
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 6px;
    padding: 8px;
  }

  .mobile-bottom-nav__item,
  .mobile-bottom-nav__action {
    min-height: 50px;
    font-size: 0.66rem;
  }
}


.settings-switch-row--appearance {
  align-items: flex-start;
  gap: 18px;
}

.settings-appearance-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.settings-appearance-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-main);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.settings-appearance-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.settings-appearance-btn.is-active {
  border-color: var(--brand-primary);
  background: rgba(240, 127, 26, 0.14);
  color: var(--text-main);
}

@media (max-width: 900px) {
  .settings-switch-row--appearance {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-appearance-group {
    margin-left: 0;
  }
}


@media (prefers-color-scheme: dark) {
  :root {
    --bg-app: #0f1115;
    --bg-card: #171a1f;
    --border: #2b313a;
    --border-soft: #20242b;
    --text-main: #f5f7fb;
    --text-soft: #a5adba;
    --header-bg: #161a20;
    --shadow-card: 0 10px 24px rgba(0, 0, 0, 0.32);
    --shadow-soft: 0 8px 18px rgba(0, 0, 0, 0.28);
    --shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.4);
  }
  body { background: var(--bg-app); color: var(--text-main); }
  .topbar, .page-header, .app-header, .toolbar, .search-hero, .hero-card, .module-card, .content-card { background: var(--bg-card) !important; color: var(--text-main); border-color: var(--border) !important; }
  input, select, textarea { background: #20242b !important; color: var(--text-main) !important; border-color: var(--border) !important; }
}


/* Thème forcé desktop/mobile via paramètre backend */
:root[data-theme="dark"] {
  --bg-app: #0f1115;
  --bg-card: #171a1f;
  --border: #2b313a;
  --border-soft: #20242b;
  --text-main: #f5f7fb;
  --text-soft: #a5adba;
  --header-bg: #161a20;
  --shadow-card: 0 10px 24px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 8px 18px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.4);
}
:root[data-theme="dark"] body { background: var(--bg-app); color: var(--text-main); }
:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .page-header,
:root[data-theme="dark"] .app-header,
:root[data-theme="dark"] .toolbar,
:root[data-theme="dark"] .search-hero,
:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .module-card,
:root[data-theme="dark"] .content-card,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .settings-panel,
:root[data-theme="dark"] .dropdown-panel,
:root[data-theme="dark"] .table-wrapper,
:root[data-theme="dark"] .stats-v47-panel {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .search-input,
:root[data-theme="dark"] .search-box input {
  background: #20242b !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}
:root[data-theme="dark"] .page-title,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] strong,
:root[data-theme="dark"] th,
:root[data-theme="dark"] td,
:root[data-theme="dark"] label,
:root[data-theme="dark"] .settings-switch-text strong,
:root[data-theme="dark"] .stats-v47-panel-title,
:root[data-theme="dark"] .contact-name,
:root[data-theme="dark"] .client-name {
  color: var(--text-main) !important;
}
:root[data-theme="dark"] .sidebar { background: #0c0f13 !important; }
:root[data-theme="dark"] .sidebar .nav-item,
:root[data-theme="dark"] .sidebar .nav-item span,
:root[data-theme="dark"] .topbar-date,
:root[data-theme="dark"] .topbar-hour,
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] small,
:root[data-theme="dark"] .settings-switch-text span,
:root[data-theme="dark"] .contact-subline,
:root[data-theme="dark"] .stats-v47-empty {
  color: var(--text-soft) !important;
}
:root[data-theme="dark"] .contacts-table-v2 thead th,
:root[data-theme="dark"] table thead th {
  background: #0f141b !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}
:root[data-theme="dark"] .contacts-table-v2 tbody tr:hover,
:root[data-theme="dark"] table tbody tr:hover {
  background: rgba(255,255,255,0.03) !important;
}

:root[data-theme="dark"] .table-wrapper,
:root[data-theme="dark"] .contacts-table-wrap,
:root[data-theme="dark"] .prestations-table-wrap,
:root[data-theme="dark"] .prestations-table-shell,
:root[data-theme="dark"] .prestations-table-wrapper {
  background: #12171d !important;
  border-color: var(--border) !important;
}
:root[data-theme="dark"] table,
:root[data-theme="dark"] .contacts-table,
:root[data-theme="dark"] .contacts-table-v2,
:root[data-theme="dark"] .prestations-table,
:root[data-theme="dark"] .prestations-table-v2 {
  background: #12171d !important;
  color: var(--text-main) !important;
}
:root[data-theme="dark"] table thead,
:root[data-theme="dark"] .contacts-table thead,
:root[data-theme="dark"] .contacts-table-v2 thead,
:root[data-theme="dark"] .prestations-table thead,
:root[data-theme="dark"] .prestations-table-v2 thead {
  background: #0f141b !important;
}
:root[data-theme="dark"] .contacts-table-v2 thead th,
:root[data-theme="dark"] .contacts-table thead th,
:root[data-theme="dark"] .prestations-table thead th,
:root[data-theme="dark"] .prestations-table-v2 thead th,
:root[data-theme="dark"] table thead th {
  background: #0f141b !important;
  color: #f5f7fb !important;
  border-bottom: 1px solid var(--border) !important;
}
:root[data-theme="dark"] table tbody tr,
:root[data-theme="dark"] .contacts-table tbody tr,
:root[data-theme="dark"] .contacts-table-v2 tbody tr,
:root[data-theme="dark"] .prestations-table tbody tr,
:root[data-theme="dark"] .prestations-table-v2 tbody tr {
  background: #12171d !important;
  border-color: var(--border-soft) !important;
}
:root[data-theme="dark"] table tbody tr:nth-child(even),
:root[data-theme="dark"] .contacts-table tbody tr:nth-child(even),
:root[data-theme="dark"] .contacts-table-v2 tbody tr:nth-child(even),
:root[data-theme="dark"] .prestations-table tbody tr:nth-child(even),
:root[data-theme="dark"] .prestations-table-v2 tbody tr:nth-child(even) {
  background: #0f141b !important;
}
:root[data-theme="dark"] table tbody td,
:root[data-theme="dark"] .contacts-table tbody td,
:root[data-theme="dark"] .contacts-table-v2 tbody td,
:root[data-theme="dark"] .prestations-table tbody td,
:root[data-theme="dark"] .prestations-table-v2 tbody td {
  background: transparent !important;
  color: #e8edf5 !important;
  border-bottom: 1px solid var(--border-soft) !important;
}
:root[data-theme="dark"] .prestations-page-main .prestations-module-intro-meta,
:root[data-theme="dark"] .prestation-sub,
:root[data-theme="dark"] .prestation-subline,
:root[data-theme="dark"] .contact-subline,
:root[data-theme="dark"] .card-date,
:root[data-theme="dark"] .prestations-empty-state p,
:root[data-theme="dark"] .prestations-pagination,
:root[data-theme="dark"] .pagination-page,
:root[data-theme="dark"] .cell-arrow,
:root[data-theme="dark"] .prestation-meta,
:root[data-theme="dark"] .prestation-date,
:root[data-theme="dark"] .prestation-status-note {
  color: var(--text-soft) !important;
}
:root[data-theme="dark"] .prestation-main,
:root[data-theme="dark"] .prestation-name,
:root[data-theme="dark"] .prestations-empty-state h3,
:root[data-theme="dark"] .prestation-price,
:root[data-theme="dark"] .client-name {
  color: var(--text-main) !important;
}
:root[data-theme="dark"] .prestations-filter-select,
:root[data-theme="dark"] .pagination-btn,
:root[data-theme="dark"] .prestations-bulk-popover {
  background: #161b22 !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}
:root[data-theme="dark"] .prestations-filter-select-wrap i {
  color: var(--text-soft) !important;
}
:root[data-theme="dark"] .contacts-table-v2 tbody tr:hover,
:root[data-theme="dark"] .contacts-table tbody tr:hover,
:root[data-theme="dark"] .prestations-table tbody tr:hover,
:root[data-theme="dark"] .prestations-table-v2 tbody tr:hover,
:root[data-theme="dark"] table tbody tr:hover {
  background: #1b2330 !important;
}
:root[data-theme="dark"] .contacts-table-v2 tbody tr:focus-within,
:root[data-theme="dark"] .prestations-table-v2 tbody tr:focus-within {
  background: #1b2330 !important;
}

:root[data-theme="dark"] .stats-v47-grid-lines::before,
:root[data-theme="dark"] .stats-v47-grid-lines::after {
  border-color: rgba(255,255,255,0.08) !important;
}


:root[data-theme="dark"] .settings-appearance-btn {
  background: #161b22;
  color: var(--text-main);
  border-color: var(--border);
}
:root[data-theme="dark"] .settings-appearance-btn.is-active {
  background: rgba(240, 127, 26, 0.22);
  border-color: #f07f1a;
}
:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .hours-toggle,
:root[data-theme="dark"] .settings-tab,
:root[data-theme="dark"] .prestation-secondary-btn {
  background: #1a2028 !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}
:root[data-theme="dark"] .settings-tab.active,
:root[data-theme="dark"] .sidebar .nav-item.active,
:root[data-theme="dark"] .sidebar .nav-item[aria-current="page"] {
  background: rgba(240, 127, 26, 0.16) !important;
  color: var(--text-main) !important;
}
:root[data-theme="dark"] .topbar-search,
:root[data-theme="dark"] .settings-tabs,
:root[data-theme="dark"] .settings-hours-row,
:root[data-theme="dark"] .stats-v47-chart-shell,
:root[data-theme="dark"] .stats-v47-summary-item,
:root[data-theme="dark"] .stats-v47-top-item,
:root[data-theme="dark"] .stats-v47-kpi,
:root[data-theme="dark"] .dashboard-card,
:root[data-theme="dark"] .dashboard-section,
:root[data-theme="dark"] .calendar-card,
:root[data-theme="dark"] .modal-panel,
:root[data-theme="dark"] .drawer-panel {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}
:root[data-theme="dark"] .table-wrapper table tbody tr,
:root[data-theme="dark"] .contacts-table-v2 tbody tr,
:root[data-theme="dark"] .stats-v47-top-item,
:root[data-theme="dark"] .stats-v47-summary-item {
  background: transparent !important;
  border-color: var(--border-soft) !important;
}
:root[data-theme="dark"] .dropdown-item:hover,
:root[data-theme="dark"] .settings-tab:hover,
:root[data-theme="dark"] .btn-secondary:hover,
:root[data-theme="dark"] .hours-toggle:hover {
  background: rgba(255,255,255,0.04) !important;
}


/* IT14 - palette dark mode unifiée MONSTERA uniquement avec FFFCF2 / CCC5B9 / 403D39 / 252422 / EB5E28 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-app: #252422;
    --bg-card: #403D39;
    --border: #CCC5B9;
    --border-soft: #403D39;
    --text-main: #FFFCF2;
    --text-soft: #CCC5B9;
    --header-bg: #403D39;
    --accent: #EB5E28;
    --accent-dark: #EB5E28;
    --shadow-card: 0 10px 24px rgba(37, 36, 34, 0.42);
    --shadow-soft: 0 8px 18px rgba(37, 36, 34, 0.34);
    --shadow-hover: 0 14px 28px rgba(37, 36, 34, 0.5);
  }
}

:root[data-theme="dark"] {
  --bg-app: #252422;
  --bg-card: #403D39;
  --border: #CCC5B9;
  --border-soft: #403D39;
  --text-main: #FFFCF2;
  --text-soft: #CCC5B9;
  --header-bg: #403D39;
  --accent: #EB5E28;
  --accent-dark: #EB5E28;
  --shadow-card: 0 10px 24px rgba(37, 36, 34, 0.42);
  --shadow-soft: 0 8px 18px rgba(37, 36, 34, 0.34);
  --shadow-hover: 0 14px 28px rgba(37, 36, 34, 0.5);
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .main-content,
:root[data-theme="dark"] .page-shell,
:root[data-theme="dark"] .main-wrapper {
  background: #252422 !important;
  color: #FFFCF2 !important;
}

:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .main-sidebar,
:root[data-theme="dark"] .sidebar-shell {
  background: #252422 !important;
  color: #FFFCF2 !important;
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .page-header,
:root[data-theme="dark"] .app-header,
:root[data-theme="dark"] .toolbar,
:root[data-theme="dark"] .search-hero,
:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .module-card,
:root[data-theme="dark"] .content-card,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .settings-panel,
:root[data-theme="dark"] .dropdown-panel,
:root[data-theme="dark"] .table-wrapper,
:root[data-theme="dark"] .stats-v47-panel,
:root[data-theme="dark"] .dashboard-card,
:root[data-theme="dark"] .dashboard-card-half,
:root[data-theme="dark"] .dashboard-section,
:root[data-theme="dark"] .calendar-card,
:root[data-theme="dark"] .modal-panel,
:root[data-theme="dark"] .drawer-panel,
:root[data-theme="dark"] .contacts-table-wrap,
:root[data-theme="dark"] .prestations-table-wrap,
:root[data-theme="dark"] .prestations-table-shell,
:root[data-theme="dark"] .prestations-table-wrapper,
:root[data-theme="dark"] .dashboard-search-input-wrap,
:root[data-theme="dark"] .topbar-search,
:root[data-theme="dark"] .settings-tabs,
:root[data-theme="dark"] .settings-hours-row,
:root[data-theme="dark"] .stats-v47-chart-shell,
:root[data-theme="dark"] .stats-v47-summary-item,
:root[data-theme="dark"] .stats-v47-top-item,
:root[data-theme="dark"] .stats-v47-kpi {
  background: #403D39 !important;
  color: #FFFCF2 !important;
  border-color: #CCC5B9 !important;
}

:root[data-theme="dark"] .page-title,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] strong,
:root[data-theme="dark"] th,
:root[data-theme="dark"] td,
:root[data-theme="dark"] label,
:root[data-theme="dark"] .settings-switch-text strong,
:root[data-theme="dark"] .stats-v47-panel-title,
:root[data-theme="dark"] .contact-name,
:root[data-theme="dark"] .client-name,
:root[data-theme="dark"] .table-deeplink,
:root[data-theme="dark"] .table-code,
:root[data-theme="dark"] .dashboard-cell,
:root[data-theme="dark"] .dashboard-cell-date,
:root[data-theme="dark"] .dashboard-cell-time,
:root[data-theme="dark"] .dashboard-cell-prestation-id,
:root[data-theme="dark"] .dashboard-inline-link,
:root[data-theme="dark"] .dashboard-link-muted,
:root[data-theme="dark"] .header-time,
:root[data-theme="dark"] .topbar-time,
:root[data-theme="dark"] .header-date,
:root[data-theme="dark"] .topbar-date,
:root[data-theme="dark"] .header-separator,
:root[data-theme="dark"] .topbar-separator {
  color: #FFFCF2 !important;
}

:root[data-theme="dark"] .muted,
:root[data-theme="dark"] small,
:root[data-theme="dark"] .settings-switch-text span,
:root[data-theme="dark"] .contact-subline,
:root[data-theme="dark"] .stats-v47-empty,
:root[data-theme="dark"] .prestation-sub,
:root[data-theme="dark"] .prestation-subline,
:root[data-theme="dark"] .card-date,
:root[data-theme="dark"] .prestations-empty-state p,
:root[data-theme="dark"] .prestations-pagination,
:root[data-theme="dark"] .pagination-page,
:root[data-theme="dark"] .cell-arrow,
:root[data-theme="dark"] .prestation-meta,
:root[data-theme="dark"] .prestation-date,
:root[data-theme="dark"] .prestation-status-note,
:root[data-theme="dark"] .dashboard-charge-next,
:root[data-theme="dark"] .dashboard-empty-state,
:root[data-theme="dark"] .dashboard-empty-state i,
:root[data-theme="dark"] .dashboard-badge {
  color: #CCC5B9 !important;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .search-input,
:root[data-theme="dark"] .search-box input,
:root[data-theme="dark"] .prestations-filter-select,
:root[data-theme="dark"] .pagination-btn,
:root[data-theme="dark"] .prestations-bulk-popover,
:root[data-theme="dark"] .settings-appearance-btn,
:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .hours-toggle,
:root[data-theme="dark"] .settings-tab,
:root[data-theme="dark"] .prestation-secondary-btn,
:root[data-theme="dark"] .dashboard-search input {
  background: #403D39 !important;
  color: #FFFCF2 !important;
  border-color: #CCC5B9 !important;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder,
:root[data-theme="dark"] .dashboard-search input::placeholder,
:root[data-theme="dark"] .search-input::placeholder {
  color: #CCC5B9 !important;
}

:root[data-theme="dark"] table,
:root[data-theme="dark"] .contacts-table,
:root[data-theme="dark"] .contacts-table-v2,
:root[data-theme="dark"] .prestations-table,
:root[data-theme="dark"] .prestations-table-v2,
:root[data-theme="dark"] .dashboard-table-list,
:root[data-theme="dark"] .dashboard-table-list-prestations,
:root[data-theme="dark"] .dashboard-table-list-activity,
:root[data-theme="dark"] #activityContent,
:root[data-theme="dark"] #activityList,
:root[data-theme="dark"] #prestationsList {
  background: #403D39 !important;
  color: #FFFCF2 !important;
  border-color: #CCC5B9 !important;
}

:root[data-theme="dark"] table thead,
:root[data-theme="dark"] .contacts-table thead,
:root[data-theme="dark"] .contacts-table-v2 thead,
:root[data-theme="dark"] .prestations-table thead,
:root[data-theme="dark"] .prestations-table-v2 thead,
:root[data-theme="dark"] .dashboard-table-head,
:root[data-theme="dark"] .dashboard-table-head-prestations,
:root[data-theme="dark"] .dashboard-table-head-activity {
  background: #CCC5B9 !important;
  color: #252422 !important;
  border-color: #CCC5B9 !important;
}

:root[data-theme="dark"] .contacts-table-v2 thead th,
:root[data-theme="dark"] .contacts-table thead th,
:root[data-theme="dark"] .prestations-table thead th,
:root[data-theme="dark"] .prestations-table-v2 thead th,
:root[data-theme="dark"] table thead th {
  background: #CCC5B9 !important;
  color: #252422 !important;
  border-bottom: 1px solid #403D39 !important;
}

:root[data-theme="dark"] table tbody tr,
:root[data-theme="dark"] .contacts-table tbody tr,
:root[data-theme="dark"] .contacts-table-v2 tbody tr,
:root[data-theme="dark"] .prestations-table tbody tr,
:root[data-theme="dark"] .prestations-table-v2 tbody tr,
:root[data-theme="dark"] .dashboard-table-item,
:root[data-theme="dark"] .dashboard-table-list-prestations > li,
:root[data-theme="dark"] .dashboard-table-list-activity > li {
  background: #403D39 !important;
  border-color: #CCC5B9 !important;
}

:root[data-theme="dark"] table tbody tr:nth-child(even),
:root[data-theme="dark"] .contacts-table tbody tr:nth-child(even),
:root[data-theme="dark"] .contacts-table-v2 tbody tr:nth-child(even),
:root[data-theme="dark"] .prestations-table tbody tr:nth-child(even),
:root[data-theme="dark"] .prestations-table-v2 tbody tr:nth-child(even),
:root[data-theme="dark"] .dashboard-table-item:nth-child(even),
:root[data-theme="dark"] .dashboard-table-list-prestations > li:nth-child(even) {
  background: #252422 !important;
}

:root[data-theme="dark"] table tbody td,
:root[data-theme="dark"] .contacts-table tbody td,
:root[data-theme="dark"] .contacts-table-v2 tbody td,
:root[data-theme="dark"] .prestations-table tbody td,
:root[data-theme="dark"] .prestations-table-v2 tbody td {
  background: transparent !important;
  color: #FFFCF2 !important;
  border-bottom: 1px solid #CCC5B9 !important;
}

:root[data-theme="dark"] .contacts-table-v2 tbody tr:hover,
:root[data-theme="dark"] .contacts-table tbody tr:hover,
:root[data-theme="dark"] .prestations-table tbody tr:hover,
:root[data-theme="dark"] .prestations-table-v2 tbody tr:hover,
:root[data-theme="dark"] table tbody tr:hover,
:root[data-theme="dark"] .dashboard-table-item-clickable:hover,
:root[data-theme="dark"] .dropdown-item:hover,
:root[data-theme="dark"] .settings-tab:hover,
:root[data-theme="dark"] .btn-secondary:hover,
:root[data-theme="dark"] .hours-toggle:hover {
  background: #252422 !important;
  color: #FFFCF2 !important;
}

:root[data-theme="dark"] .status-pill,
:root[data-theme="dark"] .status-pill-planned,
:root[data-theme="dark"] .status-pill-closed,
:root[data-theme="dark"] .status-pill-done,
:root[data-theme="dark"] .dashboard-event-badge,
:root[data-theme="dark"] .dashboard-event-badge-contact,
:root[data-theme="dark"] .dashboard-event-badge-done,
:root[data-theme="dark"] .dashboard-event-badge-negative {
  background: #EB5E28 !important;
  color: #FFFCF2 !important;
  border: 1px solid #EB5E28 !important;
}

:root[data-theme="dark"] .dashboard-charge-ratio,
:root[data-theme="dark"] .dashboard-charge-state,
:root[data-theme="dark"] .dashboard-charge-main,
:root[data-theme="dark"] .dashboard-charge-card {
  color: #FFFCF2 !important;
}

:root[data-theme="dark"] .dashboard-charge-percent,
:root[data-theme="dark"] .dashboard-inline-link:hover,
:root[data-theme="dark"] .table-deeplink:hover,
:root[data-theme="dark"] .dashboard-badge,
:root[data-theme="dark"] .settings-appearance-btn.is-active,
:root[data-theme="dark"] .settings-tab.active,
:root[data-theme="dark"] .sidebar .nav-item.active,
:root[data-theme="dark"] .sidebar .nav-item[aria-current="page"] {
  color: #FFFCF2 !important;
  background: #EB5E28 !important;
  border-color: #EB5E28 !important;
}

:root[data-theme="dark"] .dashboard-charge-bar {
  background: #CCC5B9 !important;
}

:root[data-theme="dark"] .dashboard-charge-bar-fill,
:root[data-theme="dark"] .dashboard-charge-bar-fill.is-low,
:root[data-theme="dark"] .dashboard-charge-bar-fill.is-medium,
:root[data-theme="dark"] .dashboard-charge-bar-fill.is-high {
  background: #EB5E28 !important;
}

:root[data-theme="dark"] .stats-v47-grid-lines::before,
:root[data-theme="dark"] .stats-v47-grid-lines::after {
  border-color: #CCC5B9 !important;
  opacity: 0.28;
}


/* IT15 - alignement du dark desktop sur le dark mobile validé */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-app: #0f1115;
    --bg-card: #171a1f;
    --bg-card-2: #20242b;
    --bg-card-3: #292e36;
    --border: #2c3139;
    --border-soft: #2c3139;
    --text-main: #f7f8fb;
    --text-soft: #a0a6b2;
    --header-bg: #171a1f;
    --accent: #f07f1a;
    --accent-dark: #d96d0f;
    --accent-soft: #f6c6a6;
    --shadow-card: 0 18px 38px rgba(0, 0, 0, 0.36);
    --shadow-soft: 0 12px 24px rgba(0, 0, 0, 0.28);
    --shadow-hover: 0 22px 44px rgba(0, 0, 0, 0.42);
  }
}

:root[data-theme="dark"] {
  --bg-app: #0f1115;
  --bg-card: #171a1f;
  --bg-card-2: #20242b;
  --bg-card-3: #292e36;
  --border: #2c3139;
  --border-soft: #2c3139;
  --text-main: #f7f8fb;
  --text-soft: #a0a6b2;
  --header-bg: #171a1f;
  --accent: #f07f1a;
  --accent-dark: #d96d0f;
  --accent-soft: #f6c6a6;
  --shadow-card: 0 18px 38px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 12px 24px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 22px 44px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .main-content,
:root[data-theme="dark"] .page-shell,
:root[data-theme="dark"] .main-wrapper,
:root[data-theme="dark"] .content-wrapper,
:root[data-theme="dark"] .page-content {
  background: var(--bg-app) !important;
  color: var(--text-main) !important;
}

:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .main-sidebar,
:root[data-theme="dark"] .sidebar-shell {
  background: #090b0f !important;
  color: var(--text-main) !important;
  border-right: 1px solid var(--border) !important;
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .page-header,
:root[data-theme="dark"] .app-header,
:root[data-theme="dark"] .toolbar {
  background: #10141a !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}

:root[data-theme="dark"] .search-hero,
:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .module-card,
:root[data-theme="dark"] .content-card,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .settings-panel,
:root[data-theme="dark"] .dropdown-panel,
:root[data-theme="dark"] .table-wrapper,
:root[data-theme="dark"] .stats-v47-panel,
:root[data-theme="dark"] .dashboard-card,
:root[data-theme="dark"] .dashboard-card-half,
:root[data-theme="dark"] .dashboard-section,
:root[data-theme="dark"] .calendar-card,
:root[data-theme="dark"] .modal-panel,
:root[data-theme="dark"] .drawer-panel,
:root[data-theme="dark"] .contacts-table-wrap,
:root[data-theme="dark"] .prestations-table-wrap,
:root[data-theme="dark"] .prestations-table-shell,
:root[data-theme="dark"] .prestations-table-wrapper,
:root[data-theme="dark"] .dashboard-search-input-wrap,
:root[data-theme="dark"] .topbar-search,
:root[data-theme="dark"] .settings-tabs,
:root[data-theme="dark"] .settings-hours-row,
:root[data-theme="dark"] .stats-v47-chart-shell,
:root[data-theme="dark"] .stats-v47-summary-item,
:root[data-theme="dark"] .stats-v47-top-item,
:root[data-theme="dark"] .stats-v47-kpi,
:root[data-theme="dark"] .dashboard-activity,
:root[data-theme="dark"] .dashboard-prestations,
:root[data-theme="dark"] .cashflow-card,
:root[data-theme="dark"] .client-card,
:root[data-theme="dark"] .prestation-card {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-card) !important;
}

:root[data-theme="dark"] .page-title,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] strong,
:root[data-theme="dark"] th,
:root[data-theme="dark"] td,
:root[data-theme="dark"] label,
:root[data-theme="dark"] .settings-switch-text strong,
:root[data-theme="dark"] .stats-v47-panel-title,
:root[data-theme="dark"] .contact-name,
:root[data-theme="dark"] .client-name,
:root[data-theme="dark"] .table-deeplink,
:root[data-theme="dark"] .table-code,
:root[data-theme="dark"] .dashboard-cell,
:root[data-theme="dark"] .dashboard-cell-date,
:root[data-theme="dark"] .dashboard-cell-time,
:root[data-theme="dark"] .dashboard-cell-prestation-id,
:root[data-theme="dark"] .dashboard-inline-link,
:root[data-theme="dark"] .dashboard-link-muted,
:root[data-theme="dark"] .header-time,
:root[data-theme="dark"] .topbar-time,
:root[data-theme="dark"] .header-date,
:root[data-theme="dark"] .topbar-date,
:root[data-theme="dark"] .header-separator,
:root[data-theme="dark"] .topbar-separator,
:root[data-theme="dark"] .prestation-main,
:root[data-theme="dark"] .prestation-name,
:root[data-theme="dark"] .prestation-price,
:root[data-theme="dark"] a {
  color: var(--text-main) !important;
}

:root[data-theme="dark"] .muted,
:root[data-theme="dark"] small,
:root[data-theme="dark"] .settings-switch-text span,
:root[data-theme="dark"] .contact-subline,
:root[data-theme="dark"] .stats-v47-empty,
:root[data-theme="dark"] .prestation-sub,
:root[data-theme="dark"] .prestation-subline,
:root[data-theme="dark"] .card-date,
:root[data-theme="dark"] .prestations-empty-state p,
:root[data-theme="dark"] .prestations-pagination,
:root[data-theme="dark"] .pagination-page,
:root[data-theme="dark"] .cell-arrow,
:root[data-theme="dark"] .prestation-meta,
:root[data-theme="dark"] .prestation-date,
:root[data-theme="dark"] .prestation-status-note,
:root[data-theme="dark"] .dashboard-charge-next,
:root[data-theme="dark"] .dashboard-empty-state,
:root[data-theme="dark"] .dashboard-empty-state i,
:root[data-theme="dark"] .dashboard-badge,
:root[data-theme="dark"] .topbar-hour,
:root[data-theme="dark"] .hero-context,
:root[data-theme="dark"] .topbar-date,
:root[data-theme="dark"] .topbar-separator {
  color: var(--text-soft) !important;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .search-input,
:root[data-theme="dark"] .search-box input,
:root[data-theme="dark"] .prestations-filter-select,
:root[data-theme="dark"] .pagination-btn,
:root[data-theme="dark"] .prestations-bulk-popover,
:root[data-theme="dark"] .settings-appearance-btn,
:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .hours-toggle,
:root[data-theme="dark"] .settings-tab,
:root[data-theme="dark"] .prestation-secondary-btn,
:root[data-theme="dark"] .dashboard-search input,
:root[data-theme="dark"] .search-bar,
:root[data-theme="dark"] .search-field {
  background: var(--bg-card-2) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder,
:root[data-theme="dark"] .dashboard-search input::placeholder,
:root[data-theme="dark"] .search-input::placeholder {
  color: var(--text-soft) !important;
}

:root[data-theme="dark"] table,
:root[data-theme="dark"] .contacts-table,
:root[data-theme="dark"] .contacts-table-v2,
:root[data-theme="dark"] .prestations-table,
:root[data-theme="dark"] .prestations-table-v2,
:root[data-theme="dark"] .dashboard-table-list,
:root[data-theme="dark"] .dashboard-table-list-prestations,
:root[data-theme="dark"] .dashboard-table-list-activity,
:root[data-theme="dark"] #activityContent,
:root[data-theme="dark"] #activityList,
:root[data-theme="dark"] #prestationsList {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}

:root[data-theme="dark"] table thead,
:root[data-theme="dark"] .contacts-table thead,
:root[data-theme="dark"] .contacts-table-v2 thead,
:root[data-theme="dark"] .prestations-table thead,
:root[data-theme="dark"] .prestations-table-v2 thead,
:root[data-theme="dark"] .dashboard-table-head,
:root[data-theme="dark"] .dashboard-table-head-prestations,
:root[data-theme="dark"] .dashboard-table-head-activity {
  background: var(--bg-card-2) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}

:root[data-theme="dark"] .contacts-table-v2 thead th,
:root[data-theme="dark"] .contacts-table thead th,
:root[data-theme="dark"] .prestations-table thead th,
:root[data-theme="dark"] .prestations-table-v2 thead th,
:root[data-theme="dark"] table thead th {
  background: var(--bg-card-2) !important;
  color: var(--text-main) !important;
  border-bottom: 1px solid var(--border) !important;
}

:root[data-theme="dark"] table tbody tr,
:root[data-theme="dark"] .contacts-table tbody tr,
:root[data-theme="dark"] .contacts-table-v2 tbody tr,
:root[data-theme="dark"] .prestations-table tbody tr,
:root[data-theme="dark"] .prestations-table-v2 tbody tr,
:root[data-theme="dark"] .dashboard-table-item,
:root[data-theme="dark"] .dashboard-table-list-prestations > li,
:root[data-theme="dark"] .dashboard-table-list-activity > li {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
}

:root[data-theme="dark"] table tbody tr:nth-child(even),
:root[data-theme="dark"] .contacts-table tbody tr:nth-child(even),
:root[data-theme="dark"] .contacts-table-v2 tbody tr:nth-child(even),
:root[data-theme="dark"] .prestations-table tbody tr:nth-child(even),
:root[data-theme="dark"] .prestations-table-v2 tbody tr:nth-child(even),
:root[data-theme="dark"] .dashboard-table-item:nth-child(even),
:root[data-theme="dark"] .dashboard-table-list-prestations > li:nth-child(even) {
  background: var(--bg-card-2) !important;
}

:root[data-theme="dark"] table tbody td,
:root[data-theme="dark"] .contacts-table tbody td,
:root[data-theme="dark"] .contacts-table-v2 tbody td,
:root[data-theme="dark"] .prestations-table tbody td,
:root[data-theme="dark"] .prestations-table-v2 tbody td {
  background: transparent !important;
  color: var(--text-main) !important;
  border-bottom: 1px solid var(--border) !important;
}

:root[data-theme="dark"] .contacts-table-v2 tbody tr:hover,
:root[data-theme="dark"] .contacts-table tbody tr:hover,
:root[data-theme="dark"] .prestations-table tbody tr:hover,
:root[data-theme="dark"] .prestations-table-v2 tbody tr:hover,
:root[data-theme="dark"] table tbody tr:hover,
:root[data-theme="dark"] .dashboard-table-item-clickable:hover,
:root[data-theme="dark"] .dropdown-item:hover,
:root[data-theme="dark"] .settings-tab:hover,
:root[data-theme="dark"] .btn-secondary:hover,
:root[data-theme="dark"] .hours-toggle:hover {
  background: var(--bg-card-3) !important;
  color: var(--text-main) !important;
}

:root[data-theme="dark"] .status-pill,
:root[data-theme="dark"] .status-pill-planned,
:root[data-theme="dark"] .status-pill-closed,
:root[data-theme="dark"] .status-pill-done,
:root[data-theme="dark"] .dashboard-event-badge,
:root[data-theme="dark"] .dashboard-event-badge-contact,
:root[data-theme="dark"] .dashboard-event-badge-done,
:root[data-theme="dark"] .dashboard-event-badge-negative {
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-card)) !important;
  color: var(--accent) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--bg-card)) !important;
}

:root[data-theme="dark"] .dashboard-charge-ratio,
:root[data-theme="dark"] .dashboard-charge-state,
:root[data-theme="dark"] .dashboard-charge-main,
:root[data-theme="dark"] .dashboard-charge-card {
  color: var(--text-main) !important;
}

:root[data-theme="dark"] .dashboard-charge-percent,
:root[data-theme="dark"] .dashboard-inline-link:hover,
:root[data-theme="dark"] .table-deeplink:hover,
:root[data-theme="dark"] .settings-appearance-btn.is-active,
:root[data-theme="dark"] .settings-tab.active,
:root[data-theme="dark"] .sidebar .nav-item.active,
:root[data-theme="dark"] .sidebar .nav-item[aria-current="page"],
:root[data-theme="dark"] .pagination-btn.active,
:root[data-theme="dark"] .pagination-page.active {
  color: #fff !important;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark)) !important;
  border-color: var(--accent) !important;
}

:root[data-theme="dark"] .dashboard-badge,
:root[data-theme="dark"] .badge,
:root[data-theme="dark"] .notif-badge {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}

:root[data-theme="dark"] .dashboard-charge-bar,
:root[data-theme="dark"] .progress-track,
:root[data-theme="dark"] .meter-track {
  background: var(--bg-card-3) !important;
}

:root[data-theme="dark"] .dashboard-charge-bar-fill,
:root[data-theme="dark"] .dashboard-charge-bar-fill.is-low,
:root[data-theme="dark"] .dashboard-charge-bar-fill.is-medium,
:root[data-theme="dark"] .dashboard-charge-bar-fill.is-high,
:root[data-theme="dark"] .progress-fill,
:root[data-theme="dark"] .meter-fill {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark)) !important;
}

:root[data-theme="dark"] .stats-v47-grid-lines::before,
:root[data-theme="dark"] .stats-v47-grid-lines::after {
  border-color: var(--border) !important;
  opacity: 0.28;
}


/* =========================================
   IT16 - dark mode desktop fully aligned on mobile
========================================= */
:root[data-theme="dark"] {
  --bg-app: #252422;
  --bg-card: #403D39;
  --border: rgba(204, 197, 185, 0.28);
  --border-soft: rgba(204, 197, 185, 0.18);
  --text-main: #FFFCF2;
  --text-soft: #CCC5B9;
  --header-bg: #252422;
  --accent: #EB5E28;
  --accent-dark: #EB5E28;
}
:root[data-theme="dark"] body,
:root[data-theme="dark"] .app-shell,
:root[data-theme="dark"] .page-shell,
:root[data-theme="dark"] .main-content,
:root[data-theme="dark"] .content-area,
:root[data-theme="dark"] .dashboard-main,
:root[data-theme="dark"] .prestations-page-main,
:root[data-theme="dark"] .contacts-page-main,
:root[data-theme="dark"] .cashflow-page-main,
:root[data-theme="dark"] .stats-v47-main {
  background: #252422 !important;
  color: #FFFCF2 !important;
}
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .page-header,
:root[data-theme="dark"] .app-header {
  background: #252422 !important;
  color: #FFFCF2 !important;
  border-color: rgba(204, 197, 185, 0.16) !important;
}
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .dashboard-card,
:root[data-theme="dark"] .dashboard-section,
:root[data-theme="dark"] .calendar-card,
:root[data-theme="dark"] .module-card,
:root[data-theme="dark"] .content-card,
:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .stats-v47-panel,
:root[data-theme="dark"] .stats-v47-kpi,
:root[data-theme="dark"] .stats-v47-chart-shell,
:root[data-theme="dark"] .stats-v47-summary-item,
:root[data-theme="dark"] .stats-v47-top-item,
:root[data-theme="dark"] .fiche-block,
:root[data-theme="dark"] .fiche-client-card,
:root[data-theme="dark"] .fiche-status-card,
:root[data-theme="dark"] .cashflow-quickview-card,
:root[data-theme="dark"] .cashflow-quickview-block,
:root[data-theme="dark"] .contact-quickview-card,
:root[data-theme="dark"] .prestation-quickview-card,
:root[data-theme="dark"] .prestation-quickview-block,
:root[data-theme="dark"] .quick-prestation-drawer,
:root[data-theme="dark"] .drawer-panel,
:root[data-theme="dark"] .modal-panel,
:root[data-theme="dark"] .settings-panel {
  background: #403D39 !important;
  color: #FFFCF2 !important;
  border-color: rgba(204, 197, 185, 0.22) !important;
  box-shadow: 0 14px 28px rgba(0,0,0,0.22) !important;
}
:root[data-theme="dark"] .stats-v47-kpi-icon,
:root[data-theme="dark"] .stats-v47-kpi-head,
:root[data-theme="dark"] .stats-v47-kpi-value,
:root[data-theme="dark"] .stats-v47-kpi-title,
:root[data-theme="dark"] .stats-v47-kpi-sub,
:root[data-theme="dark"] .stats-v47-panel-title,
:root[data-theme="dark"] .stats-v47-panel-subtitle,
:root[data-theme="dark"] .stats-v47-top-rank,
:root[data-theme="dark"] .stats-v47-top-name,
:root[data-theme="dark"] .stats-v47-top-value,
:root[data-theme="dark"] .stats-v47-summary-value,
:root[data-theme="dark"] .stats-v47-summary-label,
:root[data-theme="dark"] .stats-v47-axis,
:root[data-theme="dark"] .stats-v47-legend,
:root[data-theme="dark"] .chart-title {
  color: #FFFCF2 !important;
}
:root[data-theme="dark"] .stats-v47-panel-subtitle,
:root[data-theme="dark"] .stats-v47-kpi-sub,
:root[data-theme="dark"] .stats-v47-summary-label,
:root[data-theme="dark"] .stats-v47-top-rank,
:root[data-theme="dark"] .stats-v47-empty {
  color: #CCC5B9 !important;
}
:root[data-theme="dark"] .stats-v47-chart-shell,
:root[data-theme="dark"] .stats-v47-grid,
:root[data-theme="dark"] .stats-v47-chart-stage,
:root[data-theme="dark"] .stats-v47-chart-card {
  background: #403D39 !important;
}
:root[data-theme="dark"] .stats-v47-grid-lines::before,
:root[data-theme="dark"] .stats-v47-grid-lines::after,
:root[data-theme="dark"] .stats-v47-panel hr,
:root[data-theme="dark"] .card-divider {
  border-color: rgba(204, 197, 185, 0.18) !important;
}
:root[data-theme="dark"] .contacts-v2-table-wrap,
:root[data-theme="dark"] .fiche-contact-v2-table-wrap,
:root[data-theme="dark"] .table-wrapper,
:root[data-theme="dark"] .contacts-table-wrap,
:root[data-theme="dark"] .prestations-table-wrap,
:root[data-theme="dark"] .prestations-table-shell,
:root[data-theme="dark"] .prestations-table-wrapper {
  background: #403D39 !important;
  border-color: rgba(204, 197, 185, 0.22) !important;
}
:root[data-theme="dark"] table,
:root[data-theme="dark"] .contacts-table,
:root[data-theme="dark"] .contacts-v2-table,
:root[data-theme="dark"] .contacts-table-v2,
:root[data-theme="dark"] .prestations-table,
:root[data-theme="dark"] .prestations-table-v2,
:root[data-theme="dark"] .cashflow-v42-table {
  background: #403D39 !important;
  color: #FFFCF2 !important;
}
:root[data-theme="dark"] table thead th,
:root[data-theme="dark"] .contacts-v2-table thead th,
:root[data-theme="dark"] .contacts-table-v2 thead th,
:root[data-theme="dark"] .prestations-table thead th,
:root[data-theme="dark"] .prestations-table-v2 thead th,
:root[data-theme="dark"] .cashflow-v42-table thead th,
:root[data-theme="dark"] .dashboard-table-head {
  background: #252422 !important;
  color: #CCC5B9 !important;
  border-bottom: 1px solid rgba(204, 197, 185, 0.18) !important;
}
:root[data-theme="dark"] table tbody tr,
:root[data-theme="dark"] .contacts-v2-table tbody tr,
:root[data-theme="dark"] .contacts-table-v2 tbody tr,
:root[data-theme="dark"] .prestations-table tbody tr,
:root[data-theme="dark"] .prestations-table-v2 tbody tr,
:root[data-theme="dark"] .cashflow-v42-table tbody tr {
  background: #403D39 !important;
}
:root[data-theme="dark"] table tbody tr:nth-child(even),
:root[data-theme="dark"] .contacts-v2-table tbody tr:nth-child(even),
:root[data-theme="dark"] .contacts-table-v2 tbody tr:nth-child(even),
:root[data-theme="dark"] .prestations-table tbody tr:nth-child(even),
:root[data-theme="dark"] .prestations-table-v2 tbody tr:nth-child(even),
:root[data-theme="dark"] .cashflow-v42-table tbody tr:nth-child(even) {
  background: #252422 !important;
}
:root[data-theme="dark"] table tbody td,
:root[data-theme="dark"] .contacts-v2-table tbody td,
:root[data-theme="dark"] .contacts-table-v2 tbody td,
:root[data-theme="dark"] .prestations-table tbody td,
:root[data-theme="dark"] .prestations-table-v2 tbody td,
:root[data-theme="dark"] .cashflow-v42-table tbody td {
  color: #FFFCF2 !important;
  border-bottom: 1px solid rgba(204, 197, 185, 0.14) !important;
}
:root[data-theme="dark"] .contacts-v2-identity-main,
:root[data-theme="dark"] .contacts-v2-identity-block,
:root[data-theme="dark"] .contacts-v2-identity-block * {
  color: #FFFCF2 !important;
}
:root[data-theme="dark"] .contacts-v2-identity-meta,
:root[data-theme="dark"] .contact-subline,
:root[data-theme="dark"] .contacts-v2-empty p,
:root[data-theme="dark"] .contacts-v36-sort-info,
:root[data-theme="dark"] .prestation-subline,
:root[data-theme="dark"] .prestation-meta,
:root[data-theme="dark"] .cashflow-v42-search-meta,
:root[data-theme="dark"] .cashflow-v42-result-count,
:root[data-theme="dark"] .cashflow-v42-title-count,
:root[data-theme="dark"] .cashflow-v42-link-sub,
:root[data-theme="dark"] .cashflow-quickview-subtitle,
:root[data-theme="dark"] .cashflow-quickview-date,
:root[data-theme="dark"] .fiche-contact-v37-events-count,
:root[data-theme="dark"] .fiche-contact-v37-event-content span,
:root[data-theme="dark"] .fiche-contact-v37-event-text,
:root[data-theme="dark"] .quick-prestation-drawer__subtitle,
:root[data-theme="dark"] .quick-prestation-form__group label,
:root[data-theme="dark"] .fiche-field span,
:root[data-theme="dark"] .fiche-client-card span,
:root[data-theme="dark"] .fiche-status-card span,
:root[data-theme="dark"] .cashflow-quickview-field span,
:root[data-theme="dark"] .cashflow-quickview-kicker,
:root[data-theme="dark"] .cashflow-payment-hero-subline {
  color: #CCC5B9 !important;
}
:root[data-theme="dark"] .cashflow-v42-payment-ref,
:root[data-theme="dark"] .cashflow-v42-table td[data-label="Réf. paiement"],
:root[data-theme="dark"] .cashflow-v42-table tbody td:first-child,
:root[data-theme="dark"] .cashflow-v42-reference,
:root[data-theme="dark"] .cashflow-v42-ref,
:root[data-theme="dark"] .cashflow-v42-link-strong,
:root[data-theme="dark"] .cashflow-v42-link,
:root[data-theme="dark"] .cashflow-v42-open-inline,
:root[data-theme="dark"] .cashflow-quickview-title,
:root[data-theme="dark"] .cashflow-quickview-field strong,
:root[data-theme="dark"] .cashflow-quickview-block-head h4,
:root[data-theme="dark"] .fiche-contact-v37-event-content strong,
:root[data-theme="dark"] .fiche-client-card strong,
:root[data-theme="dark"] .fiche-status-card strong,
:root[data-theme="dark"] .fiche-field input,
:root[data-theme="dark"] .fiche-field select,
:root[data-theme="dark"] .quick-prestation-drawer__title,
:root[data-theme="dark"] .quick-prestation-drawer__heading,
:root[data-theme="dark"] .quick-prestation-drawer__body,
:root[data-theme="dark"] .quick-prestation-form,
:root[data-theme="dark"] .quick-prestation-form__group input,
:root[data-theme="dark"] .quick-prestation-form__group select,
:root[data-theme="dark"] .quick-prestation-form__group textarea,
:root[data-theme="dark"] .cashflow-v42-open-btn,
:root[data-theme="dark"] .contacts-v2-open-btn,
:root[data-theme="dark"] .pagination-page,
:root[data-theme="dark"] .card-date,
:root[data-theme="dark"] .dashboard-card h2,
:root[data-theme="dark"] .dashboard-card h3,
:root[data-theme="dark"] .dashboard-card strong {
  color: #FFFCF2 !important;
}
:root[data-theme="dark"] .cashflow-quickview-hero,
:root[data-theme="dark"] .cashflow-quickview-block,
:root[data-theme="dark"] .cashflow-quickview-empty,
:root[data-theme="dark"] .fiche-contact-v37-event-content,
:root[data-theme="dark"] .fiche-contact-v2-timeline-content,
:root[data-theme="dark"] .fiche-client-card,
:root[data-theme="dark"] .fiche-status-card,
:root[data-theme="dark"] .fiche-field input[readonly],
:root[data-theme="dark"] .fiche-field select:disabled,
:root[data-theme="dark"] .quick-prestation-drawer,
:root[data-theme="dark"] .quick-prestation-drawer__header,
:root[data-theme="dark"] .quick-prestation-drawer__body,
:root[data-theme="dark"] .quick-prestation-form__group input,
:root[data-theme="dark"] .quick-prestation-form__group select,
:root[data-theme="dark"] .quick-prestation-form__group textarea,
:root[data-theme="dark"] .quick-prestation-form__group input:focus,
:root[data-theme="dark"] .quick-prestation-form__group select:focus,
:root[data-theme="dark"] .quick-prestation-form__group textarea:focus,
:root[data-theme="dark"] .contacts-focus-row,
:root[data-theme="dark"] .dashboard-table-list li,
:root[data-theme="dark"] .dashboard-empty-state,
:root[data-theme="dark"] .search-hero,
:root[data-theme="dark"] .topbar-search,
:root[data-theme="dark"] .search-input,
:root[data-theme="dark"] .search-box input {
  background: #252422 !important;
  color: #FFFCF2 !important;
  border-color: rgba(204, 197, 185, 0.2) !important;
}
:root[data-theme="dark"] .quick-prestation-drawer__header {
  background: #403D39 !important;
}
:root[data-theme="dark"] .quick-prestation-drawer__close,
:root[data-theme="dark"] .contacts-v2-open-btn,
:root[data-theme="dark"] .cashflow-v42-open-btn,
:root[data-theme="dark"] .pagination-btn,
:root[data-theme="dark"] .prestation-secondary-btn,
:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .hours-toggle,
:root[data-theme="dark"] .settings-tab {
  background: #252422 !important;
  color: #FFFCF2 !important;
  border-color: rgba(204, 197, 185, 0.2) !important;
}
:root[data-theme="dark"] .quick-prestation-drawer__close:hover,
:root[data-theme="dark"] .contacts-v2-open-btn:hover,
:root[data-theme="dark"] .cashflow-v42-open-btn:hover,
:root[data-theme="dark"] .pagination-btn:hover,
:root[data-theme="dark"] .prestation-secondary-btn:hover,
:root[data-theme="dark"] .btn-secondary:hover,
:root[data-theme="dark"] .hours-toggle:hover,
:root[data-theme="dark"] .settings-tab:hover,
:root[data-theme="dark"] table tbody tr:hover,
:root[data-theme="dark"] .contacts-v2-table tbody tr:hover,
:root[data-theme="dark"] .cashflow-v42-table tbody tr:hover,
:root[data-theme="dark"] .prestations-table tbody tr:hover {
  background: rgba(235, 94, 40, 0.12) !important;
}
:root[data-theme="dark"] .prestation-primary-btn,
:root[data-theme="dark"] .topbar-cta,
:root[data-theme="dark"] .sidebar .nav-item.active,
:root[data-theme="dark"] .sidebar .nav-item[aria-current="page"],
:root[data-theme="dark"] .settings-tab.active,
:root[data-theme="dark"] .settings-appearance-btn.is-active {
  background: #EB5E28 !important;
  color: #FFFCF2 !important;
  border-color: #EB5E28 !important;
}
:root[data-theme="dark"] .prestation-primary-btn *,
:root[data-theme="dark"] .topbar-cta *,
:root[data-theme="dark"] .settings-tab.active * {
  color: #FFFCF2 !important;
}
:root[data-theme="dark"] .contacts-v2-status--client,
:root[data-theme="dark"] .cashflow-v42-link,
:root[data-theme="dark"] .cashflow-v42-link-strong,
:root[data-theme="dark"] .cashflow-v42-client,
:root[data-theme="dark"] .cashflow-v42-client a,
:root[data-theme="dark"] .cashflow-v42-prestation-ref,
:root[data-theme="dark"] .cashflow-v42-client-ref,
:root[data-theme="dark"] .cashflow-v42-open-link,
:root[data-theme="dark"] .contacts-v2-identity-pseudo,
:root[data-theme="dark"] a[data-open-client],
:root[data-theme="dark"] a[data-open-prestation] {
  color: #EB5E28 !important;
}
:root[data-theme="dark"] .cashflow-quickview-amount,
:root[data-theme="dark"] .cashflow-v42-montant,
:root[data-theme="dark"] .cashflow-v42-amount {
  color: #14b86c !important;
}
:root[data-theme="dark"] .dashboard-event-badge,
:root[data-theme="dark"] .cashflow-quickview-status,
:root[data-theme="dark"] .fiche-contact-v2-tag,
:root[data-theme="dark"] .contacts-v2-status,
:root[data-theme="dark"] .dashboard-badge,
:root[data-theme="dark"] .planning-chip {
  border-color: transparent !important;
}
:root[data-theme="dark"] .drawer-overlay,
:root[data-theme="dark"] .prestations-drawer-overlay {
  background: rgba(0,0,0,0.55) !important;
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #CCC5B9 !important;
}
:root[data-theme="dark"] .quick-prestation-form__group select option {
  background: #252422 !important;
  color: #FFFCF2 !important;
}
test

/* V13_IT0 - alignement dark mode desktop sur la palette mobile + widgets premium */
:root[data-theme="dark"] {
  --bg-app: #0f1115 !important;
  --bg-card: #171a1f !important;
  --border: #2c3139 !important;
  --border-soft: #20242b !important;
  --text-main: #f7f8fb !important;
  --text-soft: #a0a6b2 !important;
  --header-bg: #171a1f !important;
  --accent: #f07f1a !important;
  --accent-dark: #d96d0f !important;
  --surface-2-desktop: #20242b;
  --surface-3-desktop: #292e36;
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .main-content,
:root[data-theme="dark"] .page-shell,
:root[data-theme="dark"] .main-wrapper {
  background: radial-gradient(circle at top, rgba(240,127,26,.08), transparent 28%), var(--bg-app) !important;
  color: var(--text-main) !important;
}

:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .main-sidebar,
:root[data-theme="dark"] .sidebar-shell {
  background: linear-gradient(180deg, rgba(20,24,30,.92) 0%, rgba(10,13,18,.96) 100%), url('../Images/sidebar-monstera.jpg') center/cover no-repeat !important;
  color: var(--text-main) !important;
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .page-header,
:root[data-theme="dark"] .app-header,
:root[data-theme="dark"] .toolbar,
:root[data-theme="dark"] .search-hero,
:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .module-card,
:root[data-theme="dark"] .content-card,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .settings-panel,
:root[data-theme="dark"] .dropdown-panel,
:root[data-theme="dark"] .table-wrapper,
:root[data-theme="dark"] .stats-v47-panel,
:root[data-theme="dark"] .dashboard-card,
:root[data-theme="dark"] .dashboard-card-half,
:root[data-theme="dark"] .dashboard-section,
:root[data-theme="dark"] .calendar-card,
:root[data-theme="dark"] .modal-panel,
:root[data-theme="dark"] .drawer-panel,
:root[data-theme="dark"] .contacts-table-wrap,
:root[data-theme="dark"] .prestations-table-wrap,
:root[data-theme="dark"] .prestations-table-shell,
:root[data-theme="dark"] .prestations-table-wrapper,
:root[data-theme="dark"] .dashboard-search-input-wrap,
:root[data-theme="dark"] .topbar-search,
:root[data-theme="dark"] .settings-tabs,
:root[data-theme="dark"] .settings-hours-row,
:root[data-theme="dark"] .stats-v47-chart-shell,
:root[data-theme="dark"] .stats-v47-summary-item,
:root[data-theme="dark"] .stats-v47-top-item,
:root[data-theme="dark"] .stats-v47-kpi,
:root[data-theme="dark"] .cashflow-quickview-card,
:root[data-theme="dark"] .contact-quickview-card,
:root[data-theme="dark"] .prestation-quickview-card,
:root[data-theme="dark"] .contact-quickview-summary-row,
:root[data-theme="dark"] .contact-quickview-timeline-item,
:root[data-theme="dark"] .prestation-quickview-field,
:root[data-theme="dark"] .prestation-quickview-field-full,
:root[data-theme="dark"] .prestation-quickview-block,
:root[data-theme="dark"] .prestation-quickview-block-full,
:root[data-theme="dark"] .cashflow-quickview-field,
:root[data-theme="dark"] .cashflow-quickview-block,
:root[data-theme="dark"] .contact-quickview-timeline,
:root[data-theme="dark"] .contact-quickview,
:root[data-theme="dark"] .prestation-quickview,
:root[data-theme="dark"] .quick-prestation-drawer,
:root[data-theme="dark"] .prestations-drawer,
:root[data-theme="dark"] .prestation-drawer-section,
:root[data-theme="dark"] .quick-prestation-panel,
:root[data-theme="dark"] .quick-prestation-body,
:root[data-theme="dark"] .cashflow-v42-table-shell,
:root[data-theme="dark"] .cashflow-focus-row {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}

:root[data-theme="dark"] .topbar {
  background:
    linear-gradient(rgba(15,17,21,.92), rgba(15,17,21,.92)),
    url("../Images/header-monstera.avif") center / cover no-repeat !important;
  border-bottom-color: var(--border) !important;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .search-input,
:root[data-theme="dark"] .search-box input,
:root[data-theme="dark"] .prestations-filter-select,
:root[data-theme="dark"] .pagination-btn,
:root[data-theme="dark"] .prestations-bulk-popover,
:root[data-theme="dark"] .settings-appearance-btn,
:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .hours-toggle,
:root[data-theme="dark"] .settings-tab,
:root[data-theme="dark"] .prestation-secondary-btn,
:root[data-theme="dark"] .dashboard-search input,
:root[data-theme="dark"] .quick-prestation-form__group input,
:root[data-theme="dark"] .quick-prestation-form__group textarea,
:root[data-theme="dark"] .quick-prestation-form__group select,
:root[data-theme="dark"] .prestation-form input,
:root[data-theme="dark"] .prestation-form select,
:root[data-theme="dark"] .prestation-form textarea {
  background: var(--surface-2-desktop) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder,
:root[data-theme="dark"] .dashboard-search input::placeholder,
:root[data-theme="dark"] .search-input::placeholder {
  color: var(--text-soft) !important;
}

:root[data-theme="dark"] table,
:root[data-theme="dark"] .contacts-table,
:root[data-theme="dark"] .contacts-table-v2,
:root[data-theme="dark"] .prestations-table,
:root[data-theme="dark"] .prestations-table-v2,
:root[data-theme="dark"] .dashboard-table-list,
:root[data-theme="dark"] .dashboard-table-list-prestations,
:root[data-theme="dark"] .dashboard-table-list-activity,
:root[data-theme="dark"] #activityContent,
:root[data-theme="dark"] #activityList,
:root[data-theme="dark"] #prestationsList,
:root[data-theme="dark"] .cashflow-v42-table {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}

:root[data-theme="dark"] table thead,
:root[data-theme="dark"] .contacts-table thead,
:root[data-theme="dark"] .contacts-table-v2 thead,
:root[data-theme="dark"] .prestations-table thead,
:root[data-theme="dark"] .prestations-table-v2 thead,
:root[data-theme="dark"] .dashboard-table-head,
:root[data-theme="dark"] .dashboard-table-head-prestations,
:root[data-theme="dark"] .dashboard-table-head-activity,
:root[data-theme="dark"] .cashflow-v42-table thead {
  background: var(--surface-2-desktop) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}

:root[data-theme="dark"] .contacts-table-v2 thead th,
:root[data-theme="dark"] .contacts-table thead th,
:root[data-theme="dark"] .prestations-table thead th,
:root[data-theme="dark"] .prestations-table-v2 thead th,
:root[data-theme="dark"] table thead th,
:root[data-theme="dark"] .cashflow-v42-table thead th {
  background: var(--surface-2-desktop) !important;
  color: var(--text-main) !important;
  border-bottom: 1px solid var(--border) !important;
}

:root[data-theme="dark"] table tbody tr,
:root[data-theme="dark"] .contacts-table tbody tr,
:root[data-theme="dark"] .contacts-table-v2 tbody tr,
:root[data-theme="dark"] .prestations-table tbody tr,
:root[data-theme="dark"] .prestations-table-v2 tbody tr,
:root[data-theme="dark"] .cashflow-v42-table tbody tr {
  background: var(--bg-card) !important;
  border-color: var(--border-soft) !important;
}
:root[data-theme="dark"] table tbody tr:nth-child(even),
:root[data-theme="dark"] .contacts-table tbody tr:nth-child(even),
:root[data-theme="dark"] .contacts-table-v2 tbody tr:nth-child(even),
:root[data-theme="dark"] .prestations-table tbody tr:nth-child(even),
:root[data-theme="dark"] .prestations-table-v2 tbody tr:nth-child(even),
:root[data-theme="dark"] .cashflow-v42-table tbody tr:nth-child(even) {
  background: #13171d !important;
}
:root[data-theme="dark"] table tbody td,
:root[data-theme="dark"] .contacts-table tbody td,
:root[data-theme="dark"] .contacts-table-v2 tbody td,
:root[data-theme="dark"] .prestations-table tbody td,
:root[data-theme="dark"] .prestations-table-v2 tbody td,
:root[data-theme="dark"] .cashflow-v42-table tbody td,
:root[data-theme="dark"] .cashflow-v42-link,
:root[data-theme="dark"] .cashflow-v42-link-strong,
:root[data-theme="dark"] .contact-name,
:root[data-theme="dark"] .client-name,
:root[data-theme="dark"] .table-deeplink,
:root[data-theme="dark"] .table-code {
  color: var(--text-main) !important;
}
:root[data-theme="dark"] .cashflow-v42-table tbody tr:hover,
:root[data-theme="dark"] .contacts-table-v2 tbody tr:hover,
:root[data-theme="dark"] .contacts-table tbody tr:hover,
:root[data-theme="dark"] .prestations-table tbody tr:hover,
:root[data-theme="dark"] .prestations-table-v2 tbody tr:hover,
:root[data-theme="dark"] table tbody tr:hover {
  background: #1b2129 !important;
}

:root[data-theme="dark"] .muted,
:root[data-theme="dark"] small,
:root[data-theme="dark"] .settings-switch-text span,
:root[data-theme="dark"] .contact-subline,
:root[data-theme="dark"] .stats-v47-empty,
:root[data-theme="dark"] .prestation-sub,
:root[data-theme="dark"] .prestation-subline,
:root[data-theme="dark"] .card-date,
:root[data-theme="dark"] .prestations-empty-state p,
:root[data-theme="dark"] .prestations-pagination,
:root[data-theme="dark"] .pagination-page,
:root[data-theme="dark"] .cell-arrow,
:root[data-theme="dark"] .prestation-meta,
:root[data-theme="dark"] .prestation-date,
:root[data-theme="dark"] .prestation-status-note,
:root[data-theme="dark"] .dashboard-charge-next,
:root[data-theme="dark"] .dashboard-empty-state,
:root[data-theme="dark"] .dashboard-empty-state i,
:root[data-theme="dark"] .dashboard-badge,
:root[data-theme="dark"] .cashflow-quickview-subtitle,
:root[data-theme="dark"] .cashflow-quickview-date,
:root[data-theme="dark"] .cashflow-quickview-field span,
:root[data-theme="dark"] .contact-quickview-timeline-item span,
:root[data-theme="dark"] .contact-quickview-id,
:root[data-theme="dark"] .quick-prestation-drawer__subtitle,
:root[data-theme="dark"] .quick-prestation-drawer__kicker {
  color: var(--text-soft) !important;
}

:root[data-theme="dark"] .cashflow-quickview-field strong,
:root[data-theme="dark"] .contact-quickview-timeline-item strong,
:root[data-theme="dark"] .contact-quickview-summary-item strong,
:root[data-theme="dark"] .prestation-quickview-field strong,
:root[data-theme="dark"] .cashflow-v42-amount {
  color: var(--text-main) !important;
}

:root[data-theme="dark"] .quick-prestation-drawer__actions .btn-secondary,
:root[data-theme="dark"] .contact-quickview-actions-row .prestation-secondary-btn,
:root[data-theme="dark"] .cashflow-quickview-actions .prestation-secondary-btn {
  background: var(--surface-2-desktop) !important;
}
:root[data-theme="dark"] .quick-prestation-drawer__actions .btn-primary,
:root[data-theme="dark"] .contact-quickview-cta,
:root[data-theme="dark"] .cashflow-quickview-actions .prestation-primary-btn,
:root[data-theme="dark"] .btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark)) !important;
  color: #fff !important;
}

:root[data-theme="dark"] .quick-prestation-drawer__close,
:root[data-theme="dark"] .prestations-drawer-close {
  background: var(--surface-2-desktop) !important;
  color: var(--text-main) !important;
}

:root[data-theme="dark"] .settings-appearance-btn.is-active,
:root[data-theme="dark"] .settings-tab.active,
:root[data-theme="dark"] .sidebar .nav-item.active,
:root[data-theme="dark"] .sidebar .nav-item[aria-current="page"],
:root[data-theme="dark"] .toggle-switch.active,
:root[data-theme="dark"] .hours-toggle[data-open="true"] {
  background: color-mix(in srgb, var(--accent) 18%, var(--bg-card)) !important;
  border-color: color-mix(in srgb, var(--accent) 56%, var(--border)) !important;
  color: var(--text-main) !important;
}

:root[data-theme="dark"] .stats-v47-kpi.stats-v47-kpi-orange-light {
  background: linear-gradient(180deg, rgba(240,127,26,.24), rgba(240,127,26,.10)), var(--bg-card) !important;
}
:root[data-theme="dark"] .stats-v47-kpi.stats-v47-kpi-orange {
  background: linear-gradient(135deg, rgba(240,127,26,.26), rgba(217,109,15,.16)), var(--bg-card) !important;
}
:root[data-theme="dark"] .stats-v47-kpi.stats-v47-kpi-orange-deep {
  background: linear-gradient(180deg, rgba(217,109,15,.28), rgba(217,109,15,.12)), var(--bg-card) !important;
}
:root[data-theme="dark"] .stats-v47-kpi.stats-v47-kpi-graphite {
  background: linear-gradient(180deg, rgba(61,96,143,.26), rgba(39,50,69,.18)), var(--bg-card) !important;
}

:root[data-theme="dark"] .stats-v47-kpi,
:root[data-theme="dark"] .stats-v47-panel {
  overflow: hidden;
}
.stats-v47-panel.is-entering,
.stats-v47-kpi.is-entering {
  opacity: 0;
  transform: translateY(10px);
}
.stats-v47-panel.is-ready,
.stats-v47-kpi.is-ready {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .42s ease, transform .42s ease;
}
.stats-v47-chart-panel .stats-v47-bar-fill {
  transform-origin: bottom center;
  animation: monsteraBarRise .72s ease both;
}
@keyframes monsteraBarRise {
  from { transform: scaleY(0.08); opacity: .3; }
  to { transform: scaleY(1); opacity: 1; }
}

.stats-v47-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.stats-v47-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}
.stats-v47-toggle input {
  accent-color: var(--accent);
}
.stats-v47-line-layer-secondary path {
  stroke: rgba(160,166,178,.85);
  stroke-dasharray: 10 8;
}
.stats-v47-line-layer-main path {
  stroke: var(--accent);
}
.stats-v47-chart-stage {
  position: relative;
}
.stats-v47-line-layer-secondary,
.stats-v47-line-layer-main {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stats-v47-line-layer-secondary path,
.stats-v47-line-layer-main path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stats-v47-point.stats-v47-point-secondary {
  background: rgba(160,166,178,.9);
  border-color: rgba(255,255,255,.2);
}
.stats-v47-kpi-value[data-animated="true"],
.kpi-value[data-animated="true"],
.hero-value[data-animated="true"] {
  font-variant-numeric: tabular-nums;
}
.cashflow-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px 0;
}
.cashflow-pagination__meta {
  color: var(--text-soft);
  font-size: .95rem;
}
.cashflow-pagination__controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* =========================================
   V13 IT1 - final dark alignment on mobile palette
========================================= */
:root[data-theme="dark"] {
  --bg-app: #0f141b;
  --bg-card: #161b22;
  --bg-elevated: #1f2933;
  --border: #2b3642;
  --border-soft: rgba(43,54,66,.7);
  --text-main: #e6edf3;
  --text-soft: #9aa4af;
  --header-bg: #0f141b;
  --accent: #eb5e28;
  --accent-dark: #d94f15;
}
:root[data-theme="dark"] body,
:root[data-theme="dark"] .app-shell,
:root[data-theme="dark"] .page-shell,
:root[data-theme="dark"] .main-content,
:root[data-theme="dark"] .content-area,
:root[data-theme="dark"] .dashboard-main,
:root[data-theme="dark"] .prestations-page-main,
:root[data-theme="dark"] .contacts-page-main,
:root[data-theme="dark"] .cashflow-page-main,
:root[data-theme="dark"] .stats-v47-main,
:root[data-theme="dark"] .main-wrapper {
  background: #0f141b !important;
  color: #e6edf3 !important;
}
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .main-sidebar,
:root[data-theme="dark"] .sidebar-shell,
:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .page-header,
:root[data-theme="dark"] .app-header,
:root[data-theme="dark"] .toolbar {
  background: #0f141b !important;
  color: #e6edf3 !important;
  border-color: #1b2632 !important;
}
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .dashboard-card,
:root[data-theme="dark"] .dashboard-section,
:root[data-theme="dark"] .calendar-card,
:root[data-theme="dark"] .module-card,
:root[data-theme="dark"] .content-card,
:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .stats-v47-panel,
:root[data-theme="dark"] .stats-v47-chart-shell,
:root[data-theme="dark"] .stats-v47-summary-item,
:root[data-theme="dark"] .stats-v47-top-item,
:root[data-theme="dark"] .stats-v47-bottom-panel,
:root[data-theme="dark"] .stats-v47-kpi,
:root[data-theme="dark"] .fiche-block,
:root[data-theme="dark"] .fiche-client-card,
:root[data-theme="dark"] .fiche-status-card,
:root[data-theme="dark"] .cashflow-quickview-card,
:root[data-theme="dark"] .cashflow-quickview-block,
:root[data-theme="dark"] .contact-quickview-card,
:root[data-theme="dark"] .prestation-quickview-card,
:root[data-theme="dark"] .prestation-quickview-block,
:root[data-theme="dark"] .quick-prestation-drawer,
:root[data-theme="dark"] .quick-contact-drawer,
:root[data-theme="dark"] .drawer-panel,
:root[data-theme="dark"] .modal-panel,
:root[data-theme="dark"] .settings-panel,
:root[data-theme="dark"] .contacts-table-wrap,
:root[data-theme="dark"] .prestations-table-wrap,
:root[data-theme="dark"] .prestations-table-shell,
:root[data-theme="dark"] .prestations-table-wrapper,
:root[data-theme="dark"] .table-wrapper,
:root[data-theme="dark"] .dashboard-search-input-wrap,
:root[data-theme="dark"] .topbar-search,
:root[data-theme="dark"] .search-hero,
:root[data-theme="dark"] .stats-v47-chart-panel {
  background: #161b22 !important;
  color: #e6edf3 !important;
  border-color: #2b3642 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .22) !important;
}
:root[data-theme="dark"] .search-input,
:root[data-theme="dark"] .search-box input,
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .dashboard-search input,
:root[data-theme="dark"] .quick-prestation-form__group input,
:root[data-theme="dark"] .quick-prestation-form__group select,
:root[data-theme="dark"] .quick-prestation-form__group textarea,
:root[data-theme="dark"] .fiche-field input,
:root[data-theme="dark"] .fiche-field select,
:root[data-theme="dark"] .cashflow-quickview-hero,
:root[data-theme="dark"] .cashflow-quickview-empty,
:root[data-theme="dark"] .fiche-contact-v37-event-content,
:root[data-theme="dark"] .fiche-contact-v2-timeline-content,
:root[data-theme="dark"] .dashboard-empty-state,
:root[data-theme="dark"] .dashboard-table-list li,
:root[data-theme="dark"] .contacts-focus-row {
  background: #1f2933 !important;
  color: #e6edf3 !important;
  border-color: #2b3642 !important;
}
:root[data-theme="dark"] table,
:root[data-theme="dark"] .contacts-table,
:root[data-theme="dark"] .contacts-v2-table,
:root[data-theme="dark"] .contacts-table-v2,
:root[data-theme="dark"] .prestations-table,
:root[data-theme="dark"] .prestations-table-v2,
:root[data-theme="dark"] .cashflow-v42-table {
  background: #161b22 !important;
  color: #e6edf3 !important;
}
:root[data-theme="dark"] table thead th,
:root[data-theme="dark"] .contacts-v2-table thead th,
:root[data-theme="dark"] .contacts-table-v2 thead th,
:root[data-theme="dark"] .prestations-table thead th,
:root[data-theme="dark"] .prestations-table-v2 thead th,
:root[data-theme="dark"] .cashflow-v42-table thead th,
:root[data-theme="dark"] .dashboard-table-head {
  background: #0f141b !important;
  color: #9aa4af !important;
  border-bottom: 1px solid #2b3642 !important;
}
:root[data-theme="dark"] table tbody tr,
:root[data-theme="dark"] .contacts-v2-table tbody tr,
:root[data-theme="dark"] .contacts-table-v2 tbody tr,
:root[data-theme="dark"] .prestations-table tbody tr,
:root[data-theme="dark"] .prestations-table-v2 tbody tr,
:root[data-theme="dark"] .cashflow-v42-table tbody tr { background: #161b22 !important; }
:root[data-theme="dark"] table tbody tr:nth-child(even),
:root[data-theme="dark"] .contacts-v2-table tbody tr:nth-child(even),
:root[data-theme="dark"] .contacts-table-v2 tbody tr:nth-child(even),
:root[data-theme="dark"] .prestations-table tbody tr:nth-child(even),
:root[data-theme="dark"] .prestations-table-v2 tbody tr:nth-child(even),
:root[data-theme="dark"] .cashflow-v42-table tbody tr:nth-child(even) { background: #1f2933 !important; }
:root[data-theme="dark"] table tbody td,
:root[data-theme="dark"] .contacts-v2-table tbody td,
:root[data-theme="dark"] .contacts-table-v2 tbody td,
:root[data-theme="dark"] .prestations-table tbody td,
:root[data-theme="dark"] .prestations-table-v2 tbody td,
:root[data-theme="dark"] .cashflow-v42-table tbody td {
  color: #e6edf3 !important;
  border-bottom: 1px solid rgba(43,54,66,.55) !important;
}
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] small,
:root[data-theme="dark"] .settings-switch-text span,
:root[data-theme="dark"] .contact-subline,
:root[data-theme="dark"] .stats-v47-empty,
:root[data-theme="dark"] .prestation-sub,
:root[data-theme="dark"] .prestation-subline,
:root[data-theme="dark"] .card-date,
:root[data-theme="dark"] .prestations-empty-state p,
:root[data-theme="dark"] .prestations-pagination,
:root[data-theme="dark"] .pagination-page,
:root[data-theme="dark"] .cell-arrow,
:root[data-theme="dark"] .prestation-meta,
:root[data-theme="dark"] .prestation-date,
:root[data-theme="dark"] .prestation-status-note,
:root[data-theme="dark"] .dashboard-charge-next,
:root[data-theme="dark"] .dashboard-empty-state,
:root[data-theme="dark"] .dashboard-empty-state i,
:root[data-theme="dark"] .dashboard-badge,
:root[data-theme="dark"] .quick-prestation-form__group label,
:root[data-theme="dark"] .cashflow-quickview-subtitle,
:root[data-theme="dark"] .cashflow-quickview-date,
:root[data-theme="dark"] .cashflow-quickview-kicker,
:root[data-theme="dark"] .cashflow-payment-hero-subline,
:root[data-theme="dark"] .fiche-field span,
:root[data-theme="dark"] .fiche-client-card span,
:root[data-theme="dark"] .fiche-status-card span {
  color: #9aa4af !important;
}
:root[data-theme="dark"] .dashboard-card,
:root[data-theme="dark"] .dashboard-section,
:root[data-theme="dark"] .stats-v47-summary-card { background: #161b22 !important; }
:root[data-theme="dark"] .dashboard-card h2,
:root[data-theme="dark"] .dashboard-card h3,
:root[data-theme="dark"] .dashboard-card strong,
:root[data-theme="dark"] .page-title,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] strong,
:root[data-theme="dark"] th,
:root[data-theme="dark"] td,
:root[data-theme="dark"] label,
:root[data-theme="dark"] .settings-switch-text strong,
:root[data-theme="dark"] .stats-v47-panel-title,
:root[data-theme="dark"] .contact-name,
:root[data-theme="dark"] .client-name,
:root[data-theme="dark"] .table-deeplink,
:root[data-theme="dark"] .table-code,
:root[data-theme="dark"] .dashboard-cell,
:root[data-theme="dark"] .dashboard-cell-date,
:root[data-theme="dark"] .dashboard-cell-time,
:root[data-theme="dark"] .dashboard-cell-prestation-id,
:root[data-theme="dark"] .dashboard-inline-link,
:root[data-theme="dark"] .dashboard-link-muted,
:root[data-theme="dark"] .header-time,
:root[data-theme="dark"] .topbar-time,
:root[data-theme="dark"] .header-date,
:root[data-theme="dark"] .topbar-date,
:root[data-theme="dark"] .header-separator,
:root[data-theme="dark"] .topbar-separator,
:root[data-theme="dark"] .cashflow-v42-link,
:root[data-theme="dark"] .cashflow-v42-link-strong,
:root[data-theme="dark"] .cashflow-v42-open-inline,
:root[data-theme="dark"] .cashflow-quickview-title,
:root[data-theme="dark"] .cashflow-quickview-field strong,
:root[data-theme="dark"] .cashflow-quickview-block-head h4 {
  color: #e6edf3 !important;
}
:root[data-theme="dark"] .quick-prestation-drawer__close,
:root[data-theme="dark"] .contacts-v2-open-btn,
:root[data-theme="dark"] .cashflow-v42-open-btn,
:root[data-theme="dark"] .pagination-btn,
:root[data-theme="dark"] .prestation-secondary-btn,
:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .hours-toggle,
:root[data-theme="dark"] .settings-tab,
:root[data-theme="dark"] .settings-appearance-btn {
  background: #1f2933 !important;
  color: #e6edf3 !important;
  border-color: #2b3642 !important;
}
:root[data-theme="dark"] .btn-secondary:hover,
:root[data-theme="dark"] .hours-toggle:hover,
:root[data-theme="dark"] .settings-tab:hover,
:root[data-theme="dark"] .settings-appearance-btn:hover,
:root[data-theme="dark"] .pagination-btn:hover { background: #253142 !important; }
:root[data-theme="dark"] .sidebar .nav-item.active,
:root[data-theme="dark"] .sidebar .nav-item[aria-current="page"] {
  background: #eb5e28 !important;
  color: #fff !important;
}
:root[data-theme="dark"] .sidebar .nav-item { background: #121923 !important; }
:root[data-theme="dark"] .sidebar::before {
  background: radial-gradient(circle at 20% 20%, rgba(28,80,150,.16), transparent 35%), radial-gradient(circle at 80% 75%, rgba(235,94,40,.08), transparent 26%) !important;
}
:root[data-theme="dark"] .stats-v47-controls { gap: 10px; }
.stats-v47-switch {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  min-height: 36px;
  padding: 0 14px 0 44px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.stats-v47-switch::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 24px;
  height: 14px;
  border-radius: 999px;
  background: rgba(154,164,175,.35);
  transform: translateY(-50%);
}
.stats-v47-switch::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  transition: transform .18s ease, background .18s ease;
}
.stats-v47-switch.is-active {
  color: var(--text-main);
  border-color: rgba(235,94,40,.45);
  box-shadow: 0 0 0 1px rgba(235,94,40,.08) inset;
}
.stats-v47-switch.is-active::before { background: rgba(235,94,40,.35); }
.stats-v47-switch.is-active::after { transform: translate(10px,-50%); background: var(--accent); }
:root[data-theme="dark"] .stats-v47-switch {
  background: #1f2933;
  color: #9aa4af;
  border-color: #2b3642;
}
:root[data-theme="dark"] .stats-v47-switch.is-active {
  background: #161b22;
  color: #e6edf3;
}
:root[data-theme="dark"] .stats-v47-kpi:nth-of-type(1) { background: linear-gradient(135deg, #ff8a2a, #eb5e28) !important; }
:root[data-theme="dark"] .stats-v47-kpi:nth-of-type(2) { background: linear-gradient(135deg, #ff7a1a, #d94f15) !important; }
:root[data-theme="dark"] .stats-v47-kpi:nth-of-type(3) { background: linear-gradient(135deg, #cc4d18, #9f3410) !important; }
:root[data-theme="dark"] .stats-v47-kpi:nth-of-type(4) { background: linear-gradient(135deg, #1b2a40, #22324b) !important; }
:root[data-theme="dark"] .stats-v47-kpi.stats-v47-kpi-emerald { background: linear-gradient(135deg, rgba(16, 185, 129, .28), rgba(5, 150, 105, .16)), var(--bg-card) !important; }
:root[data-theme="dark"] .stats-v47-kpi.stats-v47-kpi-alert { background: linear-gradient(135deg, rgba(245, 158, 11, .26), rgba(153, 27, 27, .18)), var(--bg-card) !important; }
:root[data-theme="dark"] .stats-v47-kpi,
:root[data-theme="dark"] .stats-v47-kpi * { color: #fff !important; }
.quick-prestation-form__toggle-row {
  margin-top: 8px;
  margin-bottom: 2px;
}
.quick-prestation-form__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 700;
}
.quick-prestation-form__toggle input { accent-color: var(--accent); }
:root[data-theme="dark"] .quick-prestation-form__toggle { color: #9aa4af; }


/* V13 IT2 - unification dark desktop, fiches, cashflow pagination, stats toggles */
:root[data-theme="dark"] .cashflow-pagination,
:root[data-theme="dark"] .cashflow-pagination__meta,
:root[data-theme="dark"] .cashflow-pagination__controls {
  color: #9aa4af !important;
}
:root[data-theme="dark"] .fiche-prestation-main,
:root[data-theme="dark"] .fiche-contact-v37-main,
:root[data-theme="dark"] .fiche-prestation-shell,
:root[data-theme="dark"] .fiche-contact-v37-shell,
:root[data-theme="dark"] .fiche-hero-card,
:root[data-theme="dark"] .fiche-hero-content,
:root[data-theme="dark"] .fiche-grid,
:root[data-theme="dark"] .fiche-block,
:root[data-theme="dark"] .fiche-block-full,
:root[data-theme="dark"] .fiche-form-grid,
:root[data-theme="dark"] .fiche-client-grid,
:root[data-theme="dark"] .fiche-status-grid,
:root[data-theme="dark"] .fiche-note-editor,
:root[data-theme="dark"] .fiche-contact-v37-summary-grid,
:root[data-theme="dark"] .fiche-contact-v37-events-shell,
:root[data-theme="dark"] .fiche-contact-v37-note-compose-inline,
:root[data-theme="dark"] .fiche-contact-v37-event-item,
:root[data-theme="dark"] .fiche-contact-v2-timeline-item,
:root[data-theme="dark"] .fiche-contact-v2-timeline-content,
:root[data-theme="dark"] .fiche-contact-v37-event-content,
:root[data-theme="dark"] .fiche-inline-select,
:root[data-theme="dark"] .fiche-note-editor textarea,
:root[data-theme="dark"] .fiche-contact-v37-note-compose-inline textarea {
  background: #161b22 !important;
  color: #e6edf3 !important;
  border-color: #2b3642 !important;
}
:root[data-theme="dark"] .fiche-field input,
:root[data-theme="dark"] .fiche-field select,
:root[data-theme="dark"] .fiche-field textarea,
:root[data-theme="dark"] .fiche-inline-select,
:root[data-theme="dark"] .fiche-note-editor textarea,
:root[data-theme="dark"] .fiche-contact-v37-note-compose-inline textarea {
  background: #1f2933 !important;
  color: #e6edf3 !important;
  border-color: #2b3642 !important;
}
:root[data-theme="dark"] .fiche-block h3,
:root[data-theme="dark"] .fiche-hero-title,
:root[data-theme="dark"] .fiche-client-card strong,
:root[data-theme="dark"] .fiche-status-card strong,
:root[data-theme="dark"] .fiche-contact-v37-events-count,
:root[data-theme="dark"] .fiche-contact-v2-backlink,
:root[data-theme="dark"] .fiche-contact-v37-hero-subline,
:root[data-theme="dark"] .fiche-contact-v37-event-content strong {
  color: #e6edf3 !important;
}
:root[data-theme="dark"] .fiche-block .prestations-list-kicker,
:root[data-theme="dark"] .fiche-field span,
:root[data-theme="dark"] .fiche-client-card span,
:root[data-theme="dark"] .fiche-status-card span,
:root[data-theme="dark"] .fiche-contact-v37-event-content small,
:root[data-theme="dark"] .fiche-contact-v37-hero-subline {
  color: #9aa4af !important;
}
:root[data-theme="dark"] .dropdown-panel,
:root[data-theme="dark"] .dropdown-item {
  background: #161b22 !important;
  color: #e6edf3 !important;
  border-color: #2b3642 !important;
}
:root[data-theme="dark"] .dropdown-item:hover {
  background: #1f2933 !important;
}
:root[data-theme="dark"] .quick-prestation-drawer,
:root[data-theme="dark"] .quick-contact-drawer,
:root[data-theme="dark"] .quick-prestation-drawer__header,
:root[data-theme="dark"] .quick-contact-drawer__header,
:root[data-theme="dark"] .quick-prestation-drawer__body,
:root[data-theme="dark"] .quick-contact-drawer__body,
:root[data-theme="dark"] .quick-prestation-drawer__footer,
:root[data-theme="dark"] .quick-contact-drawer__footer,
:root[data-theme="dark"] .quick-prestation-form__group,
:root[data-theme="dark"] .quick-contact-form__group {
  background: #161b22 !important;
  color: #e6edf3 !important;
  border-color: #2b3642 !important;
}
:root[data-theme="dark"] .prestations-pagination,
:root[data-theme="dark"] .prestations-pagination-label,
:root[data-theme="dark"] .prestations-pagination-controls,
:root[data-theme="dark"] .pagination-page {
  color: #9aa4af !important;
}
:root[data-theme="dark"] .pagination-btn {
  background: #1f2933 !important;
  border-color: #2b3642 !important;
  color: #e6edf3 !important;
}
:root[data-theme="dark"] .pagination-btn:hover {
  background: #253142 !important;
}
.stats-v47-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}


/* MONSTERA V13_IT3 - harmonisation dark mode quickviews, drawer close, dashboard charge, stats bars only */
:root[data-theme="dark"] .prestation-quickview-card,
:root[data-theme="dark"] .contact-quickview-card {
  display:flex !important;
  flex-direction:column !important;
  gap:1.25rem !important;
  padding:0 !important;
  border:none !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

:root[data-theme="dark"] .prestation-quickview,
:root[data-theme="dark"] .contact-quickview {
  background: transparent !important;
}

:root[data-theme="dark"] .prestation-quickview-hero,
:root[data-theme="dark"] .contact-quickview-hero {
  display:flex !important;
  justify-content:space-between !important;
  gap:1.25rem !important;
  padding:1.3rem 1.35rem !important;
  border-radius:1.1rem !important;
  background:#1f2933 !important;
  border:1px solid #2b3642 !important;
  box-shadow:0 12px 30px rgba(0,0,0,.18) !important;
}

:root[data-theme="dark"] .prestation-quickview-block,
:root[data-theme="dark"] .prestation-quickview-block-full,
:root[data-theme="dark"] .contact-quickview-timeline-item,
:root[data-theme="dark"] .prestation-quickview-summary-item {
  background:#161b22 !important;
  border:1px solid #2b3642 !important;
  box-shadow:0 12px 30px rgba(0,0,0,.16) !important;
}

:root[data-theme="dark"] .prestation-quickview-title,
:root[data-theme="dark"] .contact-quickview-id,
:root[data-theme="dark"] .prestation-quickview-price,
:root[data-theme="dark"] .prestation-quickview-rule,
:root[data-theme="dark"] .prestation-quickview-block-head h4,
:root[data-theme="dark"] .prestation-quickview-field strong,
:root[data-theme="dark"] .contact-quickview-timeline-item strong,
:root[data-theme="dark"] .prestation-quickview-summary-item strong,
:root[data-theme="dark"] .contact-quickview-cta,
:root[data-theme="dark"] .prestation-primary-btn {
  color:#e6edf3 !important;
}

:root[data-theme="dark"] .prestation-quickview-summary-title,
:root[data-theme="dark"] .prestation-quickview-field span,
:root[data-theme="dark"] .contact-quickview-timeline-item span,
:root[data-theme="dark"] .prestation-quickview-kicker,
:root[data-theme="dark"] .prestation-quickview-subtitle,
:root[data-theme="dark"] .contact-quickview-id,
:root[data-theme="dark"] .prestation-quickview-rule {
  color:#9aa4af !important;
}

:root[data-theme="dark"] .prestations-drawer-close,
:root[data-theme="dark"] .prestations-drawer-close i,
:root[data-theme="dark"] .quick-prestation-drawer__close,
:root[data-theme="dark"] .quick-prestation-drawer__close i {
  background:#1f2933 !important;
  color:#e6edf3 !important;
  border:1px solid #2b3642 !important;
  box-shadow:none !important;
  opacity:1 !important;
}

:root[data-theme="dark"] .prestations-drawer-close:hover,
:root[data-theme="dark"] .quick-prestation-drawer__close:hover {
  background:#263241 !important;
  color:#ffffff !important;
  border-color:#3b4b5d !important;
}

:root[data-theme="dark"] .dashboard-charge-card,
:root[data-theme="dark"] .dashboard-charge-main,
:root[data-theme="dark"] .dashboard-charge-ratio,
:root[data-theme="dark"] .dashboard-charge-state {
  color:#e6edf3 !important;
  background:transparent !important;
  border-color:transparent !important;
}

:root[data-theme="dark"] .dashboard-charge-percent {
  color:var(--accent) !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  display:block !important;
  width:auto !important;
  padding:0 !important;
  border-radius:0 !important;
}

:root[data-theme="dark"] .dashboard-charge-bar {
  background:#2b3642 !important;
}

:root[data-theme="dark"] .dashboard-charge-bar-fill,
:root[data-theme="dark"] .dashboard-charge-bar-fill.is-low {
  background:#16a34a !important;
}

:root[data-theme="dark"] .dashboard-charge-bar-fill.is-medium {
  background:linear-gradient(180deg, var(--accent), var(--accent-dark)) !important;
}

:root[data-theme="dark"] .dashboard-charge-bar-fill.is-high {
  background:#dc2626 !important;
}

:root[data-theme="dark"] .stats-v47-line-layer,
:root[data-theme="dark"] .stats-v47-line-points {
  display:none !important;
}


/* MONSTERA V13_IT3.1 - final dark polish fixes */
:root[data-theme="dark"] .dropdown-panel,
:root[data-theme="dark"] .dropdown-panel-header,
:root[data-theme="dark"] .dropdown-panel-list,
:root[data-theme="dark"] .dropdown-panel-notifications,
:root[data-theme="dark"] .dropdown-panel-notifications .dropdown-panel-header,
:root[data-theme="dark"] .dropdown-panel-notifications .dropdown-panel-list,
:root[data-theme="dark"] .dropdown-panel-notifications .dropdown-item {
  background: #1f2933 !important;
  color: #e6edf3 !important;
  border-color: #2b3642 !important;
}
:root[data-theme="dark"] .dropdown-panel-notifications .dropdown-panel-kicker,
:root[data-theme="dark"] .dropdown-panel-notifications .dropdown-panel-subtitle,
:root[data-theme="dark"] .dropdown-panel-notifications .dropdown-item-content small {
  color: #9aa4af !important;
}
:root[data-theme="dark"] .dropdown-panel-notifications .dropdown-panel-title,
:root[data-theme="dark"] .dropdown-panel-notifications .dropdown-item-content strong {
  color: #e6edf3 !important;
}
:root[data-theme="dark"] .dropdown-panel-notifications .dropdown-item:hover,
:root[data-theme="dark"] .dropdown-item:hover {
  background: #263241 !important;
}
:root[data-theme="dark"] .contacts-v2-select,
:root[data-theme="dark"] .contacts-v2-select option,
:root[data-theme="dark"] .prestations-filter-select,
:root[data-theme="dark"] .prestations-filter-select option,
:root[data-theme="dark"] .stats-v47-year-filter,
:root[data-theme="dark"] .stats-v47-year-filter option,
:root[data-theme="dark"] .fiche-field select,
:root[data-theme="dark"] .fiche-field select option,
:root[data-theme="dark"] select,
:root[data-theme="dark"] select option {
  background: #1f2933 !important;
  color: #e6edf3 !important;
  border-color: #2b3642 !important;
}
:root[data-theme="dark"] .contacts-v2-select option:checked,
:root[data-theme="dark"] .prestations-filter-select option:checked,
:root[data-theme="dark"] .stats-v47-year-filter option:checked,
:root[data-theme="dark"] .fiche-field select option:checked,
:root[data-theme="dark"] select option:checked {
  background: #ff7a1a !important;
  color: #ffffff !important;
}
:root[data-theme="dark"] .cashflow-segmented-control,
:root[data-theme="dark"] .cashflow-segmented-control-compact,
:root[data-theme="dark"] .prestations-segmented,
:root[data-theme="dark"] .prestations-view-switch,
:root[data-theme="dark"] .planning-view-switcher {
  background: #1f2933 !important;
  border-color: #2b3642 !important;
}
:root[data-theme="dark"] .cashflow-segment-btn,
:root[data-theme="dark"] .prestations-segment-btn,
:root[data-theme="dark"] .planning-view-switcher button {
  background: transparent !important;
  color: #c7d0da !important;
}
:root[data-theme="dark"] .cashflow-segment-btn.is-active,
:root[data-theme="dark"] .cashflow-segment-btn[aria-selected="true"],
:root[data-theme="dark"] .prestations-segment-btn.is-active,
:root[data-theme="dark"] .prestations-segment-btn[aria-pressed="true"],
:root[data-theme="dark"] .planning-view-switcher button.is-active,
:root[data-theme="dark"] .planning-view-switcher button[aria-pressed="true"] {
  background: #ff7a1a !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(255,122,26,.24) !important;
}
:root[data-theme="dark"] .dashboard-table-list-prestations > li,
:root[data-theme="dark"] .dashboard-table-list-prestations > li:nth-child(even),
:root[data-theme="dark"] .dashboard-table-row-prestations,
:root[data-theme="dark"] .dashboard-table-row-prestations.is-selected {
  background: #1f2933 !important;
  border-color: #2b3642 !important;
}
:root[data-theme="dark"] .dashboard-table-row-prestations:hover,
:root[data-theme="dark"] .dashboard-table-row-prestations.is-selected {
  background: #263241 !important;
  border-color: rgba(255,122,26,.55) !important;
}
:root[data-theme="dark"] .dashboard-table-row-prestations span {
  color: #e6edf3 !important;
}
:root[data-theme="dark"] .dashboard-table-row-prestations span:nth-child(3),
:root[data-theme="dark"] .dashboard-table-row-prestations a {
  color: #ff7a1a !important;
}
:root[data-theme="dark"] .contacts-focus-row,
:root[data-theme="dark"] .contacts-focus-row.is-selected {
  background: #1f2933 !important;
  border-color: #2b3642 !important;
}
:root[data-theme="dark"] .contacts-focus-row:hover,
:root[data-theme="dark"] .contacts-focus-row.is-selected {
  background: #263241 !important;
  border-color: rgba(255,122,26,.55) !important;
}
:root[data-theme="dark"] .contacts-focus-row span,
:root[data-theme="dark"] .contacts-v2-identity-block,
:root[data-theme="dark"] .contacts-v2-identity-main,
:root[data-theme="dark"] .contacts-v2-identity-meta {
  color: #e6edf3 !important;
}
:root[data-theme="dark"] .contacts-focus-row span:nth-child(1),
:root[data-theme="dark"] .contacts-focus-row span:last-child {
  color: #ff7a1a !important;
}
:root[data-theme="dark"] .fiche-field input,
:root[data-theme="dark"] .fiche-field select,
:root[data-theme="dark"] .fiche-field textarea,
:root[data-theme="dark"] .fiche-field input[readonly],
:root[data-theme="dark"] .fiche-field select:disabled,
:root[data-theme="dark"] .fiche-inline-select {
  background: #24303b !important;
  color: #e6edf3 !important;
  border-color: #314152 !important;
}
:root[data-theme="dark"] .fiche-client-card,
:root[data-theme="dark"] .fiche-status-card,
:root[data-theme="dark"] .prestation-quickview-field,
:root[data-theme="dark"] .prestation-quickview-summary-item,
:root[data-theme="dark"] .prestation-quickview-block,
:root[data-theme="dark"] .prestation-quickview-block-full,
:root[data-theme="dark"] .contact-quickview-timeline-item,
:root[data-theme="dark"] .contact-quickview-hero,
:root[data-theme="dark"] .prestation-quickview-hero {
  background: #1f2933 !important;
  border-color: #2b3642 !important;
}
:root[data-theme="dark"] .prestation-quickview-field strong,
:root[data-theme="dark"] .prestation-quickview-title,
:root[data-theme="dark"] .contact-quickview-id,
:root[data-theme="dark"] .fiche-client-card strong,
:root[data-theme="dark"] .fiche-status-card strong {
  color: #e6edf3 !important;
}
:root[data-theme="dark"] .prestation-quickview-summary-item:nth-child(2) strong,
:root[data-theme="dark"] .prestation-quickview-field:nth-child(1) strong a,
:root[data-theme="dark"] .prestation-quickview-actions a,
:root[data-theme="dark"] .prestation-quickview-actions button.is-client,
:root[data-theme="dark"] .contact-quickview-cta {
  color: #ff7a1a !important;
}
:root[data-theme="dark"] .stats-v47-controls {
  display: none !important;
}
:root[data-theme="dark"] .stats-v47-top-item:first-child {
  grid-template-columns: 56px 1fr auto !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  background: linear-gradient(90deg, rgba(255,122,26,.12), rgba(255,122,26,0)) !important;
}
:root[data-theme="dark"] .stats-v47-top-item:first-child .stats-v47-rank {
  width: 42px !important;
  height: 42px !important;
  font-size: 1.1rem !important;
}
:root[data-theme="dark"] .stats-v47-top-item:first-child .stats-v47-top-main strong,
:root[data-theme="dark"] .stats-v47-top-item:first-child .stats-v47-top-amount {
  font-size: 1.18rem !important;
  font-weight: 800 !important;
}


/* MONSTERA V13 IT5 - final visual polish */
:root[data-theme="dark"] .contacts-segment-btn {
  position: relative;
  z-index: 1;
  border: none;
  border-radius: 999px;
  background: transparent !important;
  color: #c7d0da !important;
  font-weight: 700;
}
:root[data-theme="dark"] .contacts-segment-btn.is-active,
:root[data-theme="dark"] .contacts-segment-btn[aria-pressed="true"] {
  background: #ff7a1a !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(255,122,26,.24) !important;
}
:root[data-theme="dark"] .contacts-segment-btn:hover {
  color: #ffffff !important;
}

:root[data-theme="dark"] .contacts-v36-select-wrap,
:root[data-theme="dark"] .prestations-filter-select-wrap,
:root[data-theme="dark"] .contacts-v2-select-wrap {
  border-color: rgba(255,122,26,.55) !important;
}
:root[data-theme="dark"] .contacts-v36-select-wrap select,
:root[data-theme="dark"] .prestations-filter-select-wrap select,
:root[data-theme="dark"] #contactsSecondaryFilter,
:root[data-theme="dark"] select#contactsSecondaryFilter {
  color: #ffffff !important;
}
:root[data-theme="dark"] select option:hover,
:root[data-theme="dark"] select option:focus,
:root[data-theme="dark"] select option:active,
:root[data-theme="dark"] .contacts-v2-select option:hover,
:root[data-theme="dark"] .contacts-v2-select option:focus,
:root[data-theme="dark"] .prestations-filter-select option:hover,
:root[data-theme="dark"] .prestations-filter-select option:focus {
  background: #ff7a1a !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px 1000px #ff7a1a inset !important;
}

:root[data-theme="dark"] .dropdown-panel-profile,
:root[data-theme="dark"] #profilePanel {
  background: #1f2933 !important;
  border: 1px solid rgba(255,122,26,.55) !important;
  box-shadow: 0 20px 36px rgba(0,0,0,.34) !important;
}
:root[data-theme="dark"] .dropdown-panel-profile .dropdown-panel-header,
:root[data-theme="dark"] .dropdown-panel-profile .dropdown-panel-list,
:root[data-theme="dark"] .dropdown-panel-profile .dropdown-item {
  background: #1f2933 !important;
  border-color: #2b3642 !important;
}
:root[data-theme="dark"] .dropdown-panel-profile .dropdown-panel-title,
:root[data-theme="dark"] .dropdown-panel-profile .dropdown-panel-subtitle,
:root[data-theme="dark"] .dropdown-panel-profile .dropdown-item-content strong,
:root[data-theme="dark"] .dropdown-panel-profile .dropdown-item-content small {
  color: #e6edf3 !important;
}
:root[data-theme="dark"] .dropdown-panel-profile .dropdown-item:hover {
  background: #263241 !important;
}


/* MONSTERA V13 IT6 - final desktop harmonization */
:root[data-theme="dark"] .cashflow-segmented-control-compact .contacts-segment-btn {
  min-height: 36px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  color: #c7d0da !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  font-weight: 700 !important;
}
:root[data-theme="dark"] .cashflow-segmented-control-compact .contacts-segment-btn:hover {
  color: #ffffff !important;
  background: rgba(255,122,26,.10) !important;
}
:root[data-theme="dark"] .cashflow-segmented-control-compact .contacts-segment-btn.is-active,
:root[data-theme="dark"] .cashflow-segmented-control-compact .contacts-segment-btn[aria-pressed="true"] {
  color: #ffffff !important;
  background: linear-gradient(180deg, #ff9736 0%, #ff7a1a 100%) !important;
  box-shadow: 0 8px 18px rgba(255,122,26,.24) !important;
}
:root[data-theme="dark"] .contacts-focus-row {
  min-height: 64px !important;
  display: grid !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 18px !important;
  border-radius: 18px !important;
}
:root[data-theme="dark"] .dashboard-table-list-prestations {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  background: transparent !important;
}
:root[data-theme="dark"] .dashboard-table-list-prestations > li,
:root[data-theme="dark"] .dashboard-table-list-prestations > li:nth-child(even) {
  background: transparent !important;
  border-bottom: 0 !important;
}
:root[data-theme="dark"] .dashboard-table-row-prestations {
  min-height: 64px !important;
  border-radius: 18px !important;
  border: 1px solid #2b3642 !important;
  background: #1f2933 !important;
}
:root[data-theme="dark"] .dashboard-table-row-prestations:hover,
:root[data-theme="dark"] .dashboard-table-row-prestations.is-selected {
  background: #263241 !important;
  border-color: rgba(255,122,26,.55) !important;
  box-shadow: inset 0 0 0 1px rgba(255,122,26,.08) !important;
}
:root[data-theme="dark"] .icon-btn.is-open,
:root[data-theme="dark"] .topbar-dropdown-group .icon-btn.is-open,
:root[data-theme="dark"] .topbar-dropdown-group .icon-btn[aria-expanded="true"] {
  background: #1f2933 !important;
  border: 1px solid rgba(255,122,26,.55) !important;
  color: #e6edf3 !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.24) !important;
}
:root[data-theme="dark"] .dropdown-panel-profile,
:root[data-theme="dark"] .dropdown-panel-profile.is-open,
:root[data-theme="dark"] #profilePanel,
:root[data-theme="dark"] #profilePanel.is-open {
  background: #1f2933 !important;
  border: 1px solid rgba(255,122,26,.65) !important;
  box-shadow: 0 20px 36px rgba(0,0,0,.34) !important;
}
:root[data-theme="dark"] .dropdown-panel-profile .dropdown-item[data-auth-logout],
:root[data-theme="dark"] .dropdown-panel-profile .dropdown-item[href="#logout"],
:root[data-theme="dark"] .dropdown-panel-profile .dropdown-item[href="#logout"] strong {
  color: #ff7a1a !important;
}
