@charset "UTF-8";
:root {
  --juwa-blue: #143c66;
  --juwa-blue-secondary: #2e6da4;
  --juwa-orange: #f2911f;
  --juwa-orange-soft: #fbb03b;
  --juwa-green: #4fa02a;
  --juwa-thermal: #56657a;
  --juwa-ink: #172033;
  --juwa-surface: #f5f7fb;
}

.bg-primary {
  background-color: var(--juwa-blue) !important;
}

.bg-secondary {
  background-color: var(--juwa-thermal) !important;
}

.nav-header .brand-logo {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 5rem;
  padding: 0.65rem 1rem;
}

.juwa-brand-logo {
  display: block;
  height: auto;
  max-height: 3.85rem;
  max-width: 10.5rem;
  width: 100%;
}

.header .dashboard_bar {
  font-weight: 800;
  letter-spacing: 0;
}

.juwa-menu-icon {
  display: inline-block;
  flex: 0 0 auto;
  height: 1.25rem;
  margin-right: 0.65rem;
  object-fit: contain;
  vertical-align: middle;
  width: 1.25rem;
}

.dlabnav .metismenu > li > a {
  align-items: center;
}

.dlabnav .metismenu > li > a .nav-text {
  line-height: 1.2;
}

.dlabnav .metismenu > li.mm-active > a .juwa-menu-icon,
.dlabnav .metismenu > li > a:hover .juwa-menu-icon {
  filter: saturate(1.25);
}

.juwa-login-brand {
  align-items: center;
  display: flex;
  justify-content: center;
}

.juwa-login-brand img {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 14px 30px rgba(20, 60, 102, 0.16);
  max-width: min(16rem, 100% - 3rem);
  padding: 0.85rem 1rem;
  width: 100%;
}

.telereleve-freshness-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.3rem;
  line-height: 1;
  min-height: 1.65rem;
  padding: 0.32rem 0.55rem;
  white-space: nowrap;
}

.telereleve-freshness-ok {
  background: #e8f6ee;
  color: #137a3d;
}

.telereleve-freshness-warning {
  background: #fff3cf;
  color: #9a5b00;
}

.telereleve-freshness-danger {
  background: #ffe5e5;
  color: #b42318;
}

.telereleve-freshness-unknown {
  background: #eef2f6;
  color: #475467;
}

.telereleve-freshness-cell {
  align-items: center;
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
}

.telereleve-freshness-date {
  color: #344054;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.select2-container--default .select2-selection--multiple {
  border: solid var(--primary) 1px !important;
  margin-bottom: 1rem !important;
  outline: none;
  height: 3.5rem;
  border-radius: 1rem;
}

@media (min-width: 1200px) {
  .modal-dialog.modal-xxl {
    width: calc(100vw - 3rem);
    max-width: calc(100vw - 3rem) !important;
  }
}
#faDossierListesTab.nav-tabs {
  align-items: flex-end;
  flex-wrap: wrap;
  border-bottom: 1px solid #d8dde8;
}

#faDossierListesTab .fa-dossier-tab {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8dde8;
  border-bottom: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  color: #111;
  margin-bottom: -1px;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
}

#faDossierListesTab .fa-dossier-tab.active {
  background-color: #fff;
  border-color: #cfd5df #cfd5df #fff;
  color: #111;
}

#faDossierListesTab .badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.8rem;
  height: 1.5rem;
  justify-content: center;
  line-height: 1;
  min-width: 1.5rem;
  padding: 0 0.45rem;
}

#contratListTabs .contrat-list-tabs {
  background: #f4f6fa;
  border: 1px solid #e6eaf2;
  border-radius: 999px;
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
}

#contratListTabs .contrat-list-tab {
  align-items: center;
  border-radius: 999px;
  color: #667085;
  display: inline-flex;
  min-height: 2rem;
  padding: 0.4rem 0.85rem;
}

#contratListTabs .contrat-list-tab.active {
  background: #0f448b;
  box-shadow: 0 8px 18px rgba(15, 68, 139, 0.18);
  color: #fff;
}

#contratListTabs .contrat-list-tab-label {
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.contrats-index-page {
  background: #f5f7fb;
  border-radius: 0.5rem;
  margin: -0.25rem;
  min-height: calc(100vh - 9rem);
  padding: 1rem;
}

.contrats-index-shell {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 0.5rem;
  box-shadow: 0 14px 34px rgba(21, 36, 64, 0.08);
  overflow: hidden;
}

.contrats-index-header {
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #f8fafd 100%);
  border-bottom: 1px solid #e4e9f2;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.contrats-index-kicker {
  color: #567;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.contrats-index-title {
  color: #172033;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.contrats-index-actions,
.contrats-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contrats-global-search {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.45rem;
  color: #667085;
  display: flex;
  flex: 1 1 22rem;
  gap: 0.55rem;
  max-width: 34rem;
  min-height: 2.7rem;
  padding: 0 0.8rem;
}

.contrats-global-search .form-control {
  border: 0;
  box-shadow: none;
  color: #243449;
  font-size: 0.9rem;
  font-weight: 700;
  height: 2.55rem;
  padding: 0;
}

.contrats-global-search .form-control::placeholder {
  color: #8a97a8;
  font-weight: 700;
}

.contrats-global-search:focus-within {
  border-color: #78a6d8;
  box-shadow: 0 0 0 0.2rem rgba(15, 68, 139, 0.1);
}

.contrats-view-tabs {
  background: #eef3f8;
  border: 1px solid #dde6ef;
  border-radius: 0.5rem;
  gap: 0.2rem;
  padding: 0.25rem;
}

.contrats-view-tabs .nav-link {
  align-items: center;
  border-radius: 0.35rem;
  color: #516175;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 800;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
}

.contrats-view-tabs .nav-link.active {
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 32, 56, 0.1);
  color: #123a5d;
}

.contrats-add-btn {
  align-items: center;
  background: #16735b;
  border: 1px solid #16735b;
  border-radius: 0.4rem;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0.55rem 0.9rem;
}

.contrats-add-btn:hover,
.contrats-add-btn:focus {
  background: #0f604b;
  border-color: #0f604b;
  color: #fff;
}

.contrat-view-body {
  background: #f7f9fc;
}

.contrat-view-layout {
  gap: 1rem;
}

.contrat-view-tabs {
  background: #fff;
  border: 1px solid #e0e7f0;
  border-radius: 0.5rem;
  box-shadow: 0 8px 22px rgba(21, 36, 64, 0.06);
  flex: 0 0 12rem;
  padding: 0.55rem;
}

.contrat-view-tabs .nav-link {
  border-radius: 0.35rem;
  color: #40536b;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.contrat-view-tabs .nav-link.active {
  background: #0f448b;
  box-shadow: 0 8px 18px rgba(15, 68, 139, 0.16);
  color: #fff;
}

.contrat-view-content {
  min-width: 0;
}

.contrat-view-summary,
.contrat-view-panel,
.contrat-view-metric {
  background: #fff;
  border: 1px solid #e2e8f1;
  border-radius: 0.5rem;
  box-shadow: 0 8px 22px rgba(21, 36, 64, 0.05);
}

.contrat-view-summary {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
}

.contrat-view-identity {
  border-bottom: 1px solid #e6ecf4;
  padding-bottom: 0.85rem;
}

.contrat-view-identity span,
.contrat-view-field span,
.contrat-view-kpis span {
  color: #667085;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.28rem;
  text-transform: uppercase;
}

.contrat-view-identity strong {
  color: #0f448b;
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
}

.contrat-view-identity p {
  color: #172033;
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0.3rem 0 0;
}

.contrat-view-field-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contrat-view-field,
.contrat-view-kpis div {
  background: #f8fafc;
  border: 1px solid #e6ecf4;
  border-radius: 0.45rem;
  min-height: 4rem;
  padding: 0.7rem;
}

.contrat-view-field strong,
.contrat-view-kpis strong {
  color: #172033;
  display: block;
  font-size: 0.9rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contrat-view-field-status {
  grid-column: 1/-1;
}

.contrat-view-kpis {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contrat-view-metric-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.contrat-view-metric {
  min-height: 5.4rem;
  padding: 0.85rem;
}

.contrat-view-metric span {
  color: #667085;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.contrat-view-metric strong {
  color: #172033;
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contrat-view-panel {
  overflow: hidden;
}

.contrat-view-panel-header {
  align-items: center;
  border-bottom: 1px solid #e6ecf4;
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.contrat-view-panel-header h4 {
  color: #172033;
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.contrat-view-empty {
  color: #667085;
  font-weight: 800;
  padding: 1rem;
}

.contrat-view-telereleve-table thead th {
  background: #eef3f8;
  color: #34465d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contrat-view-telereleve-journalier-table thead th {
  background: #eef3f8;
  color: #34465d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contrat-view-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
}

.contrat-view-timeline-item {
  border-left: 3px solid #0f448b;
  background: #f8fafc;
  border-radius: 0.4rem;
  padding: 0.75rem 0.85rem;
}

.contrat-view-timeline-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.contrat-view-timeline-meta strong {
  color: #172033;
  font-size: 0.9rem;
  font-weight: 900;
}

.contrat-view-timeline-meta span {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
}

.contrat-view-timeline-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.contrat-view-timeline-detail > span {
  background: #fff;
  border: 1px solid #e2e8f1;
  border-radius: 999px;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
}

.contrats-index-content {
  padding: 1rem 1.25rem 1.25rem;
}

.contrats-toolbar {
  justify-content: space-between;
  margin-bottom: 1rem;
}

.contrats-calendar-link {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.4rem;
  color: #31445c;
  display: inline-flex;
  font-weight: 800;
  gap: 0.45rem;
  min-height: 2.45rem;
  padding: 0.5rem 0.75rem;
}

.contrats-toolbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.contrats-warning-filter {
  align-items: center;
  background: #fff8e5;
  border: 1px solid #f1d492;
  border-radius: 0.4rem;
  color: #7a4a00;
  display: inline-flex;
  font-weight: 800;
  gap: 0.45rem;
  min-height: 2.45rem;
  padding: 0.5rem 0.75rem;
}

.contrats-warning-filter:hover,
.contrats-warning-filter:focus,
.contrats-warning-filter.active {
  background: #ffe8a6;
  border-color: #e5b83f;
  color: #513300;
}

.contrats-calendar-link:hover,
.contrats-calendar-link:focus {
  background: #f4f8fc;
  border-color: #c9d5e2;
  color: #123a5d;
}

.contrats-table-panel {
  border: 1px solid #e2e8f1;
  border-radius: 0.5rem;
  overflow: hidden;
}

.contrats-table-panel .dataTables_wrapper {
  padding: 0.9rem 0.9rem 0;
}

.contrats-table-panel .dataTables_info {
  color: #667085;
  font-size: 0.85rem;
  font-weight: 700;
}

.contrats-table {
  border-color: #e8edf4;
  margin-bottom: 0 !important;
}

.telereleve-page {
  background: #f5f7fb;
  border-radius: 0.5rem;
  margin: -0.25rem;
  min-height: calc(100vh - 9rem);
  padding: 1rem;
}

.telereleve-shell {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 0.5rem;
  box-shadow: 0 14px 34px rgba(21, 36, 64, 0.08);
  overflow: hidden;
}

.telereleve-header {
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #f8fafd 100%);
  border-bottom: 1px solid #e4e9f2;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.telereleve-kicker,
.telereleve-modal-kicker {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.telereleve-title {
  color: #172033;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.telereleve-header-icon {
  align-items: center;
  background: #0f448b;
  border-radius: 0.45rem;
  color: #fff;
  display: inline-flex;
  font-size: 1.15rem;
  height: 2.7rem;
  justify-content: center;
  width: 2.7rem;
}

.telereleve-metrics {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  padding: 1rem 1.25rem 0;
}

.telereleve-metric {
  background: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 0.5rem;
  min-height: 5rem;
  padding: 0.85rem;
}

.telereleve-metric span,
.telereleve-modal-summary span,
.telereleve-modal-meta span {
  color: #667085;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.telereleve-metric strong,
.telereleve-modal-summary strong,
.telereleve-modal-meta strong {
  color: #172033;
  display: block;
  font-size: 1rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.telereleve-metric strong {
  font-size: 1.35rem;
}

.telereleve-metric-warning {
  background: #fff8e5;
  border-color: #f2d28a;
}

.telereleve-metric-danger {
  background: #fff1f2;
  border-color: #f3c3ca;
}

.telereleve-table-panel {
  padding: 1rem 1.25rem 1.25rem;
}

.telereleve-table-panel .dt-layout-row {
  align-items: center;
  margin: 0 0 0.75rem;
}

.telereleve-table-panel .dt-layout-row:last-child {
  margin: 0.85rem 0 0;
}

.telereleve-table-panel .dt-search input,
.telereleve-table-panel .dt-length select {
  border: 1px solid #d8e0eb;
  border-radius: 0.4rem;
  color: #243449;
  font-weight: 700;
  min-height: 2.35rem;
}

.telereleve-table {
  border: 1px solid #e4eaf2;
  border-collapse: separate !important;
  border-radius: 0.5rem;
  border-spacing: 0;
  overflow: hidden;
}

.telereleve-table thead th {
  background: #f1f5f9;
  border-bottom: 1px solid #dbe3ee !important;
  color: #34465d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0.75rem 0.8rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.telereleve-table tbody td {
  border-color: #edf1f6;
  color: #344054;
  font-size: 0.86rem;
  padding: 0.7rem 0.8rem;
  vertical-align: middle;
}

.telereleve-file-cell {
  min-width: 15rem;
}

.telereleve-file-cell strong {
  color: #172033;
  font-weight: 900;
}

.telereleve-count-cell {
  color: #0f448b !important;
  font-weight: 900;
  white-space: nowrap;
}

.telereleve-summary-cell {
  max-width: 22rem;
}

.telereleve-cell-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.telereleve-cell-stack small {
  color: #667085;
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telereleve-status,
.telereleve-chip {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  min-height: 1.65rem;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
}

.telereleve-status-success,
.telereleve-chip-success {
  background: #e8f7ef;
  color: #13734b;
}

.telereleve-status-warning,
.telereleve-chip-warning {
  background: #fff4d6;
  color: #8a5a00;
}

.telereleve-status-danger,
.telereleve-chip-danger {
  background: #ffe3e7;
  color: #b42332;
}

.telereleve-status-info {
  background: #e7f0ff;
  color: #175cd3;
}

.telereleve-status-muted,
.telereleve-chip-muted {
  background: #eef2f6;
  color: #667085;
}

.telereleve-row-warning td {
  background: #fffdf7;
}

.telereleve-row-danger td {
  background: #fff8f9;
}

.telereleve-detail-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.4rem;
  color: #31445c;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.telereleve-detail-btn:hover,
.telereleve-detail-btn:focus {
  background: #0f448b;
  border-color: #0f448b;
  color: #fff;
}

.telereleve-modal .modal-content {
  border: 0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.telereleve-modal .modal-header {
  background: #0f448b;
  color: #fff;
}

.telereleve-modal .modal-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.telereleve-modal .telereleve-modal-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.telereleve-modal-summary,
.telereleve-modal-meta {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.85rem;
}

.telereleve-modal-summary > div,
.telereleve-modal-meta > div {
  background: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 0.45rem;
  min-height: 4.4rem;
  padding: 0.75rem;
}

.telereleve-modal-meta {
  grid-template-columns: 2fr 2fr 1fr 1fr;
}

.telereleve-detail-tabs {
  border-bottom-color: #dce3ed;
  margin-top: 1rem;
}

.telereleve-detail-tabs .nav-link {
  border-radius: 0.4rem 0.4rem 0 0;
  color: #516175;
  font-weight: 900;
}

.telereleve-detail-tabs .nav-link.active {
  color: #0f448b;
}

.telereleve-detail-content {
  border: 1px solid #dce3ed;
  border-top: 0;
  border-radius: 0 0 0.5rem 0.5rem;
  max-height: 56vh;
  overflow: auto;
  padding: 1rem;
}

.telereleve-detail-list {
  display: grid;
  gap: 0.55rem;
}

.telereleve-missing-item,
.telereleve-error-item {
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 0.45rem;
  color: #243449;
  font-weight: 900;
  padding: 0.65rem 0.75rem;
}

.telereleve-missing-item span {
  color: #667085;
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.telereleve-error-item {
  border-left: 4px solid #e5484d;
}

.telereleve-error-item strong {
  color: #b42332;
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}

.telereleve-error-item span {
  background: #fff8f9;
  border: 1px solid #f5cbd0;
  border-radius: 999px;
  color: #7a2d36;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  margin: 0.15rem 0.25rem 0.15rem 0;
  padding: 0.25rem 0.5rem;
}

.telereleve-file-content {
  background: #101828;
  border-radius: 0.45rem;
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  min-height: 20rem;
  overflow: auto;
  padding: 1rem;
  white-space: pre-wrap;
}

.telereleve-empty-state {
  background: #f8fafc;
  border: 1px dashed #cfd8e5;
  border-radius: 0.45rem;
  color: #667085;
  font-weight: 800;
  padding: 1rem;
  text-align: center;
}

.releves-page {
  background: #f5f7fb;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  min-height: var(--releves-page-height, calc(100vh - 9rem));
  margin: -0.25rem;
  padding: 1rem;
}

.content-body:has(.releves-page) {
  min-height: 0 !important;
}

.releves-shell {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 0.5rem;
  box-shadow: 0 14px 34px rgba(21, 36, 64, 0.08);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.releves-header {
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #f8fafd 100%);
  border-bottom: 1px solid #e4e9f2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
  padding: 0.8rem 1.25rem;
}

.releves-header-title {
  flex: 0 0 auto;
  min-width: 11rem;
}

.releves-kicker {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.releves-title {
  color: #172033;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.releves-header-controls {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 44rem;
  gap: 0.55rem;
  justify-content: flex-end;
  min-width: 0;
}

.releves-period {
  align-items: flex-end;
  display: flex;
  flex: 0 1 23rem;
  gap: 0.4rem;
  min-width: 0;
}

.releves-period-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.4rem;
  color: #31445c;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.releves-period-btn:hover,
.releves-period-btn:focus {
  background: #0f448b;
  border-color: #0f448b;
  color: #fff;
}

.releves-field {
  flex: 1 1 7.5rem;
  min-width: 7rem;
}

.releves-field-filter {
  flex: 1 1 12rem;
  min-width: 10rem;
}

/* Select2 est stylise globalement pour les formulaires (3.5rem de haut) : on le
   ramene au gabarit compact des autres filtres de l'en-tete. La liste des
   pastilles reste bornee a deux lignes et defile au dela. */
.releves-field-filter .select2-container {
  width: 100% !important;
}

.releves-field-filter .select2-container--default .select2-selection--multiple {
  background: #fff;
  border: 1px solid #d8e0eb !important;
  border-radius: 0.4rem;
  height: auto;
  margin-bottom: 0 !important;
  max-height: 4.6rem;
  min-height: 2.25rem;
  overflow-y: auto;
  padding: 0.2rem 0.35rem;
}

.releves-field-filter .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #78a6d8 !important;
  box-shadow: 0 0 0 0.2rem rgba(15, 68, 139, 0.1);
}

.releves-field-filter .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  width: 100%;
}

.releves-field-filter .select2-container--default .select2-selection--multiple .select2-selection__choice {
  border-radius: 0.3rem;
  color: #243449;
  float: none;
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0;
  padding: 0.1rem 0.4rem;
}

.releves-field-filter .select2-container--default .select2-selection--multiple .select2-search--inline {
  float: none;
}

.releves-field-filter .select2-container--default .select2-selection--multiple .select2-search__field {
  color: #243449;
  font-size: 0.82rem;
  font-weight: 800;
  height: 1.7rem;
  margin: 0;
}

.releves-field-filter .select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
  color: #8a97a8;
}

.releves-field label {
  color: #667085;
  display: block;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.releves-field .form-control,
.releves-field .nice-select {
  border: 1px solid #d8e0eb;
  border-radius: 0.4rem;
  color: #243449;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 2.25rem;
}

.releves-field .nice-select {
  align-items: center;
  display: flex;
  line-height: 1.2;
}

.releves-search {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.4rem;
  color: #667085;
  display: flex;
  flex: 1 1 16rem;
  gap: 0.55rem;
  min-height: 2.25rem;
  padding: 0 0.55rem 0 0.75rem;
}

.releves-search:focus-within {
  border-color: #78a6d8;
  box-shadow: 0 0 0 0.2rem rgba(15, 68, 139, 0.1);
}

.releves-search .form-control {
  border: 0;
  box-shadow: none;
  color: #243449;
  font-size: 0.82rem;
  font-weight: 800;
  height: 2.1rem;
  padding: 0;
}

.releves-search .form-control::placeholder {
  color: #8a97a8;
  font-weight: 700;
}

.releves-search button {
  align-items: center;
  background: #0f448b;
  border: 1px solid #0f448b;
  border-radius: 0.35rem;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 1.8rem;
  justify-content: center;
  width: 1.8rem;
}

.releves-search button:hover,
.releves-search button:focus {
  background: #123a5d;
  border-color: #123a5d;
}

.releves-waiting-filter {
  align-items: center;
  background: #fff8e5;
  border: 1px solid #f1d492;
  border-radius: 0.4rem;
  color: #7a4a00;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
}

.releves-waiting-filter .form-check-input {
  margin: 0;
}

.releves-waiting-filter strong {
  font: inherit;
}

.releves-metrics {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 1rem 1.25rem 0;
}

.releves-metric {
  background: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 0.5rem;
  min-height: 5.4rem;
  padding: 0.85rem;
}

.releves-metric span {
  color: #667085;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.releves-metric strong {
  color: #172033;
  display: block;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
  min-height: 1.35rem;
  overflow-wrap: anywhere;
}

.releves-metric .badge {
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1;
  margin-top: 0.45rem;
  min-height: 1.45rem;
  padding: 0.35rem 0.5rem;
}

.releves-metric-subvalue {
  color: #667085;
  display: block;
  font-style: normal;
  margin-top: 0.45rem;
}

.releves-metric-subvalue small {
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.releves-metric-subvalue b {
  color: #0f4f9a;
  display: block;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.15;
}

.releves-table-panel {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior-x: contain;
  padding: 1rem 1.25rem 1.25rem;
}

.releves-table-panel .dataTables_wrapper {
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 0.5rem;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior-x: contain;
  padding: 0.85rem 0.85rem 0;
  width: 100%;
}

.releves-table-panel .dataTables_scrollHead,
.releves-table-panel .dataTables_scrollBody {
  overscroll-behavior-x: contain;
}

.releves-table-panel .dataTables_scroll {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overscroll-behavior-x: contain;
}

.releves-table-panel .dataTables_scrollHead {
  flex: 0 0 auto;
}

.releves-table-panel .dataTables_scrollBody {
  flex: 1 1 auto;
  min-height: 0;
  touch-action: pan-x pan-y;
}

.releves-table-panel .dt-buttons,
.releves-table-panel .dataTables_info {
  margin-bottom: 0.75rem;
}

.releves-table-panel .dt-buttons .dt-button,
.releves-table-panel .dt-buttons .btn {
  border-radius: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  min-height: 2rem;
  padding: 0.38rem 0.65rem;
}

.releves-table-panel .dataTables_info {
  color: #667085;
  font-size: 0.85rem;
  font-weight: 700;
}

.releves-table {
  border-color: #e8edf4;
  margin-bottom: 0 !important;
}

.releves-table.dataTable thead th,
.releves-table.dataTable thead td {
  font-size: 0.7rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.releves-table-panel .dataTables_scrollHead thead th,
.releves-table-panel .dataTables_scrollHead thead td {
  background-color: #eef3f8 !important;
  border-bottom: 1px solid #d7e0ea;
  color: #34465d !important;
  vertical-align: middle;
}

.releves-table-panel .dataTables_scrollHead thead th.dtfc-fixed-left,
.releves-table-panel .dataTables_scrollHead thead td.dtfc-fixed-left {
  background-color: #e6eef7 !important;
  color: #243449 !important;
}

.releves-table-panel .dataTables_scrollHead .sorting::before,
.releves-table-panel .dataTables_scrollHead .sorting::after,
.releves-table-panel .dataTables_scrollHead .sorting_asc::before,
.releves-table-panel .dataTables_scrollHead .sorting_asc::after,
.releves-table-panel .dataTables_scrollHead .sorting_desc::before,
.releves-table-panel .dataTables_scrollHead .sorting_desc::after {
  color: #8a97a8;
  opacity: 0.55;
}

.releves-table tbody td {
  border-color: #edf1f6;
  color: #344054;
  font-size: 0.82rem;
  line-height: 1.2;
  max-height: 3rem;
  padding: 0.38rem 0.55rem;
  vertical-align: middle;
}

.releves-table .releve-contract-cell {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  max-width: 24rem;
  min-height: 2.15rem;
}

.releves-table .releve-contract-content {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.releves-table .releve-contract-title,
.releves-table .releve-contract-meta {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.releves-table .releve-contract-title {
  color: #172033;
  font-size: 0.83rem;
  font-weight: 900;
  line-height: 1.2;
}

.releves-table .releve-contract-meta {
  color: #34465d;
  font-size: 0.72rem;
  font-weight: 800;
}

.releves-table .releve-contract-actions {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.3rem;
}

.releves-table .releve-events-btn {
  align-items: center;
  background: #eef3f8;
  border: 1px solid #d8e0eb;
  border-radius: 0.35rem;
  color: #0f448b;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  height: 1.65rem;
  justify-content: center;
  padding: 0;
  width: 1.65rem;
}

.releves-table .releve-events-btn:hover,
.releves-table .releve-events-btn:focus {
  background: #0f448b;
  border-color: #0f448b;
  color: #fff;
}

.releves-table .releve-sync-indicator {
  font-size: 1rem;
  line-height: 1;
}

.releves-table .releves-number-cell {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1.15;
}

.releves-table .editable {
  cursor: pointer;
}

.releves-table .editable:hover {
  box-shadow: inset 0 0 0 2px rgba(15, 68, 139, 0.18);
}

.tdb-page {
  background: #f5f7fb;
  border-radius: 0.5rem;
  margin: -0.25rem;
  min-height: calc(100vh - 9rem);
  padding: 1rem;
}

.tdb-shell {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 0.5rem;
  box-shadow: 0 14px 34px rgba(21, 36, 64, 0.08);
  overflow: hidden;
}

.tdb-header {
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #f8fafd 100%);
  border-bottom: 1px solid #e4e9f2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
}

.tdb-header-title {
  min-width: 14rem;
}

.tdb-kicker,
.tdb-chart-kicker {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.tdb-title {
  color: #172033;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
}

.tdb-period-control {
  align-items: center;
  display: flex;
  gap: 0.45rem;
}

.tdb-period-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.4rem;
  color: #31445c;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.tdb-period-btn:hover,
.tdb-period-btn:focus {
  background: #0f448b;
  border-color: #0f448b;
  color: #fff;
}

.tdb-period-current {
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.45rem;
  min-width: 7rem;
  padding: 0.42rem 0.8rem;
  text-align: center;
}

.tdb-period-current span {
  color: #667085;
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
}

.tdb-period-current strong {
  color: #172033;
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.1;
}

.tdb-metrics {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 1rem 1.25rem 0;
}

.tdb-metric {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 0.5rem;
  display: flex;
  gap: 0.85rem;
  min-height: 5.25rem;
  padding: 0.85rem;
}

.tdb-metric-icon {
  align-items: center;
  background: #e8f0fb;
  border: 1px solid #d6e2f2;
  border-radius: 0.45rem;
  color: #0f448b;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1rem;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.tdb-metric span:not(.tdb-metric-icon) {
  color: #667085;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.28rem;
  text-transform: uppercase;
}

.tdb-metric strong {
  color: #172033;
  display: block;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tdb-tabs {
  align-items: center;
  border-bottom: 1px solid #e4e9f2;
  display: flex;
  gap: 0.45rem;
  padding: 1rem 1.25rem 0;
}

.tdb-tab {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-bottom-color: #cbd6e4;
  border-radius: 0.45rem 0.45rem 0 0;
  color: #34465d;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
}

.tdb-tab.active {
  background: #0f448b;
  border-color: #0f448b;
  color: #fff;
}

.tdb-view {
  display: none;
}

.tdb-view-active {
  display: block;
}

.tdb-chart-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  padding: 1rem 1.25rem 1.25rem;
}

.tdb-chart-panel {
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 0.5rem;
  overflow: hidden;
}

.tdb-table-panel {
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 0.5rem;
  margin: 1rem 1.25rem 1.25rem;
  overflow: hidden;
}

.tdb-chart-header {
  align-items: center;
  border-bottom: 1px solid #e8edf4;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.tdb-chart-header h2 {
  color: #172033;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.tdb-chart-header > span {
  background: #f3f6fa;
  border: 1px solid #dfe7f1;
  border-radius: 999px;
  color: #34465d;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.6rem;
}

.tdb-chart {
  min-height: 22rem;
  padding: 0.65rem 0.8rem 0.4rem;
}

.tdb-chart .apexcharts-tooltip,
.tdb-chart .apexcharts-xaxistooltip {
  border-color: #d8e0eb;
  box-shadow: 0 12px 28px rgba(21, 36, 64, 0.12);
}

.tdb-table-scroll {
  overflow: auto;
  overscroll-behavior-x: contain;
}

.tdb-summary-table {
  border-collapse: separate;
  border-spacing: 0;
  color: #172033;
  font-size: 0.82rem;
  min-width: 92rem;
  table-layout: fixed;
  width: 100%;
}

.tdb-summary-table th,
.tdb-summary-table td {
  border-bottom: 1px solid #1d2430;
  border-right: 1px solid #1d2430;
  height: 2.15rem;
  padding: 0.35rem 0.45rem;
  text-align: right;
  white-space: nowrap;
}

.tdb-summary-table thead th {
  background: #2f3192;
  border-bottom-width: 2px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  height: 3rem;
  position: sticky;
  top: 0;
  z-index: 3;
}

.tdb-summary-table thead th:first-child,
.tdb-summary-table thead th:nth-child(2) {
  background: #fff;
  color: #172033;
}

.tdb-summary-table th:first-child,
.tdb-summary-table td:first-child {
  border-left: 1px solid #1d2430;
}

.tdb-summary-table tbody th {
  background: #f7f8fa;
  font-weight: 800;
  left: 0;
  position: sticky;
  text-align: left;
  width: 14rem;
  z-index: 2;
}

.tdb-summary-table thead th:first-child {
  left: 0;
  position: sticky;
  width: 14rem;
  z-index: 4;
}

.tdb-summary-table thead th:nth-child(2),
.tdb-summary-table tbody td:nth-child(2) {
  width: 7.5rem;
}

.tdb-summary-main-row td {
  background: #fff;
  font-weight: 800;
}

.tdb-summary-emphasis-row td {
  color: #f20d26;
  font-size: 0.95rem;
  font-weight: 900;
}

.tdb-summary-cumul-row th,
.tdb-summary-cumul-row td {
  background: #fbfcfe;
  border-bottom-width: 2px;
  color: #26364c;
  font-size: 0.76rem;
  font-weight: 800;
}

.tdb-summary-cumul-row th span {
  color: #31547d;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  padding-left: 6rem;
}

.tdb-summary-previous {
  color: #8a97a8;
}

@media (max-width: 1199px) {
  .telereleve-metrics,
  .telereleve-modal-summary,
  .telereleve-modal-meta,
  .releves-metrics,
  .tdb-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .telereleve-page,
  .releves-page,
  .tdb-page {
    padding: 0.75rem;
  }
  .telereleve-header,
  .telereleve-table-panel,
  .releves-header,
  .releves-table-panel,
  .tdb-header {
    padding: 0.85rem;
  }
  .telereleve-metrics,
  .telereleve-modal-summary,
  .telereleve-modal-meta,
  .releves-metrics,
  .tdb-metrics {
    grid-template-columns: 1fr;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .tdb-chart-grid {
    padding: 0.85rem;
  }
  .releves-header-controls {
    flex-basis: 100%;
    justify-content: stretch;
  }
  .releves-period,
  .releves-search,
  .releves-waiting-filter {
    flex-basis: 100%;
  }
  .releves-field {
    min-width: 0;
  }
}
.contrats-table thead th {
  background: #eef3f8;
  border-bottom: 1px solid #d7e0ea;
  border-top: 0;
  color: #34465d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0.8rem 0.7rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.contrats-table.dataTable > thead > tr > th,
.contrats-table.dataTable > thead > tr > td {
  box-shadow: none;
  outline: 0;
}

.contrats-table.dataTable > thead > tr > th:first-child {
  border-top-left-radius: 0.35rem;
}

.contrats-table.dataTable > thead > tr > th:last-child {
  border-top-right-radius: 0.35rem;
}

.contrats-table.dataTable thead .dt-column-title {
  align-items: center;
  display: inline-flex;
  min-height: 1rem;
}

.contrats-table.dataTable thead .dt-column-order {
  color: #7d8da3;
  opacity: 0.8;
}

.contrats-table.dataTable thead th.dt-ordering-asc,
.contrats-table.dataTable thead th.dt-ordering-desc,
.contrats-table.dataTable thead th.sorting_asc,
.contrats-table.dataTable thead th.sorting_desc {
  background: #e2ecf6;
  color: #143a5a;
}

.contrats-table.dataTable thead th.dt-orderable-asc:hover,
.contrats-table.dataTable thead th.dt-orderable-desc:hover,
.contrats-table.dataTable thead th.sorting:hover {
  background: #e7eff8;
  color: #123a5d;
}

.contrats-table tbody td {
  border-color: #edf1f6;
  color: #1f2937;
  font-size: 0.86rem;
  padding: 0.72rem 0.7rem;
  vertical-align: middle;
}

.contrats-table tbody tr:hover td,
.contrats-table tbody tr.selected td {
  background: #eef7f4;
}

.contrats-table tbody td:first-child strong {
  background: #e9f2ff;
  border: 1px solid #cfe2ff;
  border-radius: 999px;
  color: #134e8a;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.35rem 0.55rem;
}

.contrats-tarif-warning {
  align-items: center;
  background: #fff4d6;
  border: 1px solid #f0c66b;
  border-radius: 999px;
  color: #815000;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 900;
  gap: 0.35rem;
  line-height: 1;
  padding: 0.32rem 0.5rem;
  white-space: nowrap;
}

.contrat-row-warning > td {
  background-color: #fff4d6;
}

.contrat-row-warning:hover > td {
  background-color: #ffedbf;
}

.contrats-map-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr);
}

.contrats-map-sidebar,
.contrats-map-panel {
  border: 1px solid #e2e8f1;
  border-radius: 0.5rem;
  overflow: hidden;
}

.contrats-map-sidebar {
  background: #fff;
  padding: 0.85rem;
}

.contrats-select-all {
  align-items: center;
  color: #31445c;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.contrats-map-table {
  font-size: 0.84rem;
}

.contrats-map-panel {
  background: #f1f5f9;
  min-height: 36rem;
}

.contrats-map-panel #contrat_map_liste_site_production {
  min-height: 36rem;
}

@media (max-width: 991.98px) {
  .contrats-index-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .contrats-global-search {
    max-width: none;
    width: 100%;
  }
  .contrats-index-actions,
  .contrats-toolbar {
    width: 100%;
  }
  .contrat-view-layout {
    flex-direction: column;
  }
  .contrat-view-tabs {
    flex: 0 0 auto;
    width: 100%;
  }
  .contrat-view-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contrats-add-btn,
  .contrats-toolbar-actions,
  .contrats-calendar-link {
    justify-content: center;
  }
  .contrats-toolbar-actions {
    width: 100%;
  }
  .contrats-map-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 575.98px) {
  .contrats-index-page {
    margin: 0;
    padding: 0.65rem;
  }
  .contrats-index-content,
  .contrats-index-header {
    padding: 0.85rem;
  }
  .contrats-view-tabs,
  #contratListTabs .contrat-list-tabs {
    width: 100%;
  }
  .contrats-view-tabs .nav-link,
  #contratListTabs .contrat-list-tab {
    flex: 1 1 auto;
    justify-content: center;
  }
  .contrat-view-metric-grid {
    grid-template-columns: 1fr;
  }
}
#liste_fa_dossiers tr.dtrg-group th {
  background: #f6f8fc;
  border-color: #d8dde8;
  padding: 0.65rem 0.75rem;
}

.fa-dossier-contract-group {
  align-items: center;
  display: inline-flex;
  gap: 0.55rem;
}

.fa-dossier-contract-group strong {
  font-weight: 900;
}

.fa-dossier-contract-group em {
  border-radius: 999px;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
}

.fa-dossier-contract-group-missing strong {
  color: #b42318;
}

.fa-dossier-contract-group-missing em {
  background: #fee4e2;
  color: #b42318;
}

.fa-dossier-contract-group-linked strong {
  color: #137333;
}

.fa-dossier-contract-group-linked em {
  background: #e9fbec;
  color: #137333;
}

.fa-dossier-view-tabs {
  align-items: center;
  background: #f3f6fb;
  border: 1px solid #dde4ef;
  border-radius: 999px;
  gap: 0.2rem;
  padding: 0.25rem;
}

.fa-dossier-view-tabs .nav-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #3b4351;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 2.25rem;
  min-width: 5rem;
  padding: 0.55rem 1rem;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.fa-dossier-view-tabs .nav-link.active {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(15, 68, 139, 0.16);
  color: var(--primary);
}

#entreprisesSearchModal .entreprise-search-dialog {
  align-items: center;
  display: flex;
  max-height: calc(100vh - 3rem);
  min-height: auto;
  margin: 1.5rem auto;
}

#entreprisesSearchModal .modal-content {
  border: none;
  border-radius: 0.9rem;
  box-shadow: 0 24px 60px rgba(15, 36, 64, 0.28);
  max-height: calc(100vh - 3rem);
  overflow: hidden;
}

#entreprisesSearchModal .modal-header {
  align-items: center;
  background: linear-gradient(135deg, var(--juwa-blue) 0%, var(--juwa-blue-secondary) 100%);
  border-bottom: none;
  color: #fff;
  padding: 1rem 1.5rem;
}

#entreprisesSearchModal .modal-header .modal-title {
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 600;
}

#entreprisesSearchModal .modal-header .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.85;
}

#entreprisesSearchModal .modal-header .btn-close:hover {
  opacity: 1;
}

#entreprisesSearchModal .modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.25rem 1.5rem;
}

#entreprisesSearchModal .modal-body > p {
  color: #6b7688;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

#entreprisesSearchModal .entreprise-search-table-wrap {
  border: 1px solid #e4e9f2;
  border-radius: 0.65rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

/* Barre de filtre DataTables */
#entreprisesSearchModal .dt-layout-row:first-child {
  margin-bottom: 0.85rem;
}

#entreprisesSearchModal .dt-search {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  justify-content: flex-start;
  margin-left: 0 !important;
  width: 100%;
}

#entreprisesSearchModal .dt-search label {
  color: var(--juwa-ink);
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

#entreprisesSearchModal .dt-search input {
  border: 1px solid #d3dae6;
  border-radius: 0.55rem;
  flex: 1 1 auto;
  max-width: 22rem;
  padding: 0.5rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#entreprisesSearchModal .dt-search input:focus {
  border-color: var(--juwa-blue-secondary);
  box-shadow: 0 0 0 0.18rem rgba(46, 109, 164, 0.2);
  outline: none;
}

#entreprisesSearchModal .dt-container,
#entreprisesSearchModal .dt-layout-row,
#entreprisesSearchModal .dt-layout-table,
#entreprisesSearchModal .dt-layout-cell,
#entreprisesSearchModal .dt-scroll,
#entreprisesSearchModal .dt-scroll-head,
#entreprisesSearchModal .dt-scroll-headInner,
#entreprisesSearchModal .dt-scroll-body {
  width: 100% !important;
}

#entreprisesSearchModal div.dt-scroll-body {
  min-height: 18rem;
}

/* Tableau des producteurs */
#entreprisesSearchModal #liste_search_entreprises {
  border-collapse: separate;
  margin-bottom: 0 !important;
}

#entreprisesSearchModal #liste_search_entreprises > thead th {
  background: var(--juwa-surface);
  border-bottom: 2px solid #e4e9f2;
  border-top: none;
  color: var(--juwa-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
}

#entreprisesSearchModal #liste_search_entreprises > tbody td {
  border-color: #eef1f6;
  color: #384457;
  padding: 0.65rem 1rem;
  vertical-align: middle;
}

#entreprisesSearchModal #liste_search_entreprises > tbody tr {
  cursor: pointer;
  transition: background-color 0.12s ease;
}

#entreprisesSearchModal #liste_search_entreprises > tbody tr:hover {
  background-color: rgba(46, 109, 164, 0.08) !important;
}

#entreprisesSearchModal #liste_search_entreprises > tbody tr.selected {
  background-color: rgba(46, 109, 164, 0.16) !important;
  box-shadow: inset 3px 0 0 var(--juwa-blue-secondary);
}

/* Cellule producteur combinée (raison + tél + adresse) */
#entreprisesSearchModal .entreprise-search-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

#entreprisesSearchModal .entreprise-search-name {
  color: var(--juwa-ink);
  font-size: 0.95rem;
  font-weight: 600;
}

#entreprisesSearchModal .entreprise-search-meta {
  color: #8590a3;
  column-gap: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  row-gap: 0.1rem;
}

#entreprisesSearchModal .entreprise-search-meta-item {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

#entreprisesSearchModal .entreprise-search-meta-item i {
  color: #b3bccb;
  font-size: 0.72rem;
}

/* Colonne action */
#entreprisesSearchModal .entreprise-search-action-col {
  white-space: nowrap;
  width: 1%;
}

#entreprisesSearchModal .entreprise-search-actions {
  display: inline-flex;
  gap: 0.4rem;
  justify-content: flex-end;
}

#entreprisesSearchModal .entreprise-search-actions .btn {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

#entreprisesSearchModal .entreprise-search-actions .entreprise-search-select {
  font-weight: 600;
}

#entreprisesSearchModal .dt-info {
  color: #8590a3;
  font-size: 0.8rem;
  padding-top: 0.75rem;
}

#entreprisesSearchModal .modal-footer {
  border-top: 1px solid #eef1f6;
  padding: 0.85rem 1.5rem;
}

.entreprises-index-page {
  background: #f5f7fb;
  border-radius: 0.5rem;
  margin: -0.25rem;
  min-height: calc(100vh - 9rem);
  padding: 1rem;
}

.entreprises-index-shell {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 0.5rem;
  box-shadow: 0 14px 34px rgba(21, 36, 64, 0.08);
  overflow: hidden;
}

.entreprises-index-header {
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #f8fafd 100%);
  border-bottom: 1px solid #e4e9f2;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.entreprises-index-actions {
  align-items: center;
  display: flex;
  flex: 1 1 28rem;
  gap: 0.75rem;
  justify-content: flex-end;
  min-width: 18rem;
}

.entreprises-global-search {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.45rem;
  color: #667085;
  display: flex;
  flex: 1 1 24rem;
  gap: 0.55rem;
  max-width: 34rem;
  min-height: 2.55rem;
  padding: 0 0.8rem;
}

.entreprises-global-search .form-control {
  border: 0;
  box-shadow: none;
  color: #243449;
  font-size: 0.9rem;
  font-weight: 700;
  height: 2.4rem;
  padding: 0;
}

.entreprises-global-search .form-control::placeholder {
  color: #8a97a8;
  font-weight: 700;
}

.entreprises-global-search:focus-within {
  border-color: #78a6d8;
  box-shadow: 0 0 0 0.2rem rgba(15, 68, 139, 0.1);
}

.entreprises-index-kicker {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.entreprises-index-title {
  color: #172033;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.entreprises-add-btn {
  align-items: center;
  background: #16735b;
  border: 1px solid #16735b;
  border-radius: 0.4rem;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0.55rem 0.9rem;
}

.entreprises-add-btn:hover,
.entreprises-add-btn:focus {
  background: #0f604b;
  border-color: #0f604b;
  color: #fff;
}

.entreprises-index-metrics {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1rem 1.25rem 0;
}

.entreprises-index-metric {
  background: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 0.5rem;
  min-height: 5rem;
  padding: 0.85rem;
}

.entreprises-index-metric span {
  color: #667085;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.entreprises-index-metric strong {
  color: #172033;
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
}

.entreprises-index-metric-active {
  background: #e8f7ef;
  border-color: #bde8ce;
}

.entreprises-index-metric-active strong {
  color: #13734b;
}

.entreprises-index-metric-muted {
  background: #f3f6fa;
}

.entreprises-table-panel {
  padding: 1rem 1.25rem 1.25rem;
}

.entreprises-table-panel .dt-layout-row {
  align-items: center;
  margin: 0 0 0.75rem;
}

.entreprises-table-panel .dt-layout-row:last-child {
  margin: 0.85rem 0 0;
}

.entreprises-table {
  border: 1px solid #e4eaf2;
  border-collapse: separate !important;
  border-radius: 0.5rem;
  border-spacing: 0;
  overflow: hidden;
}

.entreprises-table thead th {
  background: #f1f5f9;
  border-bottom: 1px solid #dbe3ee !important;
  color: #34465d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0.75rem 0.8rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.entreprises-table tbody td {
  border-color: #edf1f6;
  color: #344054;
  font-size: 0.88rem;
  padding: 0.72rem 0.8rem;
  vertical-align: middle;
}

.entreprises-name-cell {
  min-width: 16rem;
}

.entreprises-name-stack,
.entreprises-address-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.entreprises-name-stack strong {
  color: #172033;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.entreprises-name-stack small,
.entreprises-address-stack small,
.entreprises-muted {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 700;
}

.entreprises-address-cell {
  max-width: 34rem;
}

.entreprises-address-stack span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entreprises-phone {
  align-items: center;
  color: #31445c;
  display: inline-flex;
  font-weight: 800;
  gap: 0.45rem;
  white-space: nowrap;
}

.entreprises-phone i {
  color: #0f448b;
}

.entreprises-detail-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.4rem;
  color: #31445c;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.entreprises-detail-btn:hover,
.entreprises-detail-btn:focus {
  background: #0f448b;
  border-color: #0f448b;
  color: #fff;
}

.entreprise-editor-modal .modal-content,
.entreprise-view-modal .modal-content {
  background: #f7f9fc;
  border: 0;
  border-radius: 0.65rem;
  box-shadow: 0 22px 60px rgba(15, 30, 55, 0.2);
  overflow: hidden;
}

.entreprise-editor-modal .modal-header,
.entreprise-view-modal .modal-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e1e7f0;
  padding: 1rem 1.25rem;
}

.entreprise-editor-modal .modal-title,
.entreprise-view-modal .modal-title {
  color: #172033;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
}

.entreprise-modal-kicker {
  color: #667085;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.entreprise-editor-modal .modal-body,
.entreprise-view-modal .modal-body {
  padding: 1.25rem;
}

.entreprise-editor-modal .modal-footer,
.entreprise-view-modal .modal-footer {
  background: #fff;
  border-top: 1px solid #e1e7f0;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
}

.entreprise-editor-modal .modal-footer .btn,
.entreprise-view-modal .modal-footer .btn {
  align-items: center;
  border-radius: 0.45rem;
  display: inline-flex;
  font-weight: 800;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
}

.entreprise-form-layout {
  display: grid;
  gap: 1rem;
}

.entreprise-form-section {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 0.55rem;
  padding: 1rem;
}

.entreprise-form-section-title {
  align-items: center;
  color: #172033;
  display: flex;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.entreprise-form-section-title i {
  color: #0f448b;
}

.entreprise-form-grid {
  display: grid;
  gap: 0.9rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entreprise-form-wide {
  grid-column: 1/-1;
}

.entreprise-form-grid label,
.entreprise-form-section label {
  color: #4f5f73;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.entreprise-form-grid .form-control,
.entreprise-form-section .form-control {
  border: 1px solid #d8e0eb;
  border-radius: 0.45rem;
  color: #243449;
  font-weight: 700;
  min-height: 2.55rem;
}

.entreprise-form-grid textarea.form-control {
  min-height: 6rem;
}

.entreprise-form-switch {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e1e7f0;
  border-radius: 0.45rem;
  display: flex;
  min-height: 2.55rem;
  padding: 0.6rem 0.75rem;
}

.entreprise-view-tabs {
  background: #eef3f8;
  border: 1px solid #dde6ef;
  border-radius: 0.55rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
}

.entreprise-view-tabs .nav-link {
  align-items: center;
  border-radius: 0.4rem;
  color: #516175;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 900;
  gap: 0.45rem;
  min-height: 2.3rem;
  padding: 0.45rem 0.75rem;
}

.entreprise-view-tabs .nav-link.active {
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 32, 56, 0.1);
  color: #123a5d;
}

.entreprise-info-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.entreprise-info-item {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 0.5rem;
  min-height: 5rem;
  padding: 0.85rem;
}

.entreprise-info-primary,
.entreprise-info-wide {
  grid-column: span 2;
}

.entreprise-info-item span {
  color: #667085;
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.entreprise-info-item strong {
  color: #172033;
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.entreprise-view-content {
  min-height: 28rem;
}

.entreprise-tab-header {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.entreprise-tab-header h4 {
  color: #172033;
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.entreprise-tab-panel {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 0.55rem;
  overflow: hidden;
  padding: 0.75rem;
}

.entreprise-modal-table {
  margin-bottom: 0 !important;
}

.entreprise-modal-table thead th {
  background: #f1f5f9;
  color: #34465d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.entreprise-modal-table tbody td {
  color: #344054;
  font-size: 0.86rem;
  vertical-align: middle;
}

.entreprise-map-panel {
  background: #dfe7f0;
  border: 1px solid #d5deea;
  border-radius: 0.55rem;
  min-height: 28rem;
  overflow: hidden;
}

@media (max-width: 991px) {
  .entreprises-index-metrics {
    grid-template-columns: 1fr;
  }
  .entreprises-index-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .entreprises-index-actions {
    align-items: stretch;
    flex-direction: column;
    min-width: 100%;
    width: 100%;
  }
  .entreprises-global-search {
    max-width: none;
    width: 100%;
  }
  .entreprise-form-grid,
  .entreprise-info-grid {
    grid-template-columns: 1fr;
  }
  .entreprise-info-primary,
  .entreprise-info-wide {
    grid-column: auto;
  }
}
.fa-dossier-view-tabs .nav-link:hover {
  color: var(--primary);
}

.fa-dossier-actions {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.fa-dossier-view-content {
  --fa-dossier-card-border: #e4e9f2;
  --fa-dossier-soft-bg: #f6f8fc;
}

.fa-dossier-modal-header {
  align-items: stretch;
  background: linear-gradient(135deg, #0f448b 0%, #1e5da8 100%);
  border-bottom: 0;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
}

#FaDossierModal .modal-content {
  overflow: hidden;
}

.fa-dossier-modal-header .btn-close {
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  flex: 0 0 auto;
  margin: 0.25rem 0.25rem 0 0;
  opacity: 0.85;
  padding: 0.7rem;
}

.fa-dossier-identity {
  align-items: stretch;
  color: #fff;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  flex: 1 1 auto;
  overflow: hidden;
}

.fa-dossier-identity-main {
  min-width: 0;
}

.fa-dossier-identity-kicker {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.fa-dossier-identity h4 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}

.fa-dossier-identity-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.fa-dossier-identity-meta span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.45rem 0.6rem;
}

.fa-dossier-identity-stats {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(7rem, 1fr));
}

.fa-dossier-identity-stats div {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 0.8rem;
  color: #202124;
  min-width: 7rem;
  padding: 0.8rem;
}

.fa-dossier-identity-stats span {
  color: #667085;
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.fa-dossier-identity-stats strong {
  color: var(--primary);
  display: block;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
}

.fa-dossier-info-card {
  background: #fff;
  border: 1px solid var(--fa-dossier-card-border);
  border-radius: 0.9rem;
  box-shadow: 0 6px 18px rgba(15, 68, 139, 0.05);
  padding: 1rem;
}

.fa-dossier-info-card h6 {
  align-items: center;
  color: #202124;
  display: flex;
  font-size: 0.92rem;
  font-weight: 900;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
}

.fa-dossier-info-card h6::before {
  background: var(--primary);
  border-radius: 999px;
  content: "";
  display: inline-flex;
  height: 0.55rem;
  width: 0.55rem;
}

.fa-dossier-info-card dl {
  display: grid;
  gap: 0.55rem 0.85rem;
  grid-template-columns: minmax(7rem, 0.9fr) minmax(0, 1.1fr);
  margin: 0;
}

.fa-dossier-info-card dt {
  color: #7f7c99;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
}

.fa-dossier-info-card dd {
  color: #2f3440;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.fa-dossier-info-card dd.fa-dossier-description-preview {
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fa-dossier-form-section {
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 0.9rem;
  box-shadow: 0 6px 18px rgba(15, 68, 139, 0.05);
  padding: 1rem;
}

.fa-dossier-form-section h6 {
  align-items: center;
  color: #202124;
  display: flex;
  font-size: 0.92rem;
  font-weight: 900;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.fa-dossier-form-section h6::before {
  background: var(--primary);
  border-radius: 999px;
  content: "";
  display: inline-flex;
  height: 0.55rem;
  width: 0.55rem;
}

.fa-dossier-create-form label {
  color: #62677a;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.fa-dossier-create-form .form-control,
.fa-dossier-create-form .form-select {
  border-color: #dfe5ef;
  border-radius: 0.65rem;
  min-height: 2.55rem;
}

.fa-dossier-create-form .fa-dossier-import-value {
  background: #fff7f7;
  border-color: #e5484d;
  color: #b42318;
  font-weight: 800;
}

.fa-dossier-edit-map-wrap {
  border: 1px solid #dfe5ef;
  border-radius: 0.8rem;
  overflow: hidden;
}

.fa-dossier-edit-map-head {
  align-items: center;
  background: #f6f8fc;
  border-bottom: 1px solid #dfe5ef;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
}

.fa-dossier-edit-map-head span {
  color: #202124;
  font-size: 0.82rem;
  font-weight: 900;
}

.fa-dossier-edit-map-head small {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 700;
}

.fa-dossier-edit-map {
  height: 280px;
  min-height: 280px;
  width: 100%;
}

.fa-dossier-lifecycle-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fa-dossier-lifecycle-overview {
  align-items: stretch;
  background: linear-gradient(180deg, #f9fbff 0%, #f4f7fc 100%);
  border: 1px solid #e2e8f2;
  border-radius: 0.9rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 9rem minmax(220px, 1fr) 9rem;
  padding: 0.9rem;
}

.fa-dossier-lifecycle-score-card,
.fa-dossier-lifecycle-overview-main,
.fa-dossier-lifecycle-alert {
  background: #fff;
  border: 1px solid #e5e9f1;
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(15, 68, 139, 0.06);
}

.fa-dossier-lifecycle-score-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 5rem;
  padding: 0.8rem;
}

.fa-dossier-lifecycle-score-value {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.fa-dossier-lifecycle-score-label {
  color: #667085;
  font-size: 0.85rem;
  font-weight: 700;
}

.fa-dossier-lifecycle-overview-main {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
  padding: 0.85rem 1rem;
}

.fa-dossier-lifecycle-overview-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.fa-dossier-lifecycle-overview-head span {
  color: #202124;
  font-size: 0.98rem;
  font-weight: 900;
}

.fa-dossier-lifecycle-overview-head strong {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.fa-dossier-lifecycle-progress {
  background: #e8edf5;
  border-radius: 999px;
  height: 0.55rem;
  overflow: hidden;
}

.fa-dossier-lifecycle-progress-bar {
  background: var(--primary);
  border-radius: inherit;
  height: 100%;
}

.fa-dossier-lifecycle-next {
  color: #667085;
  font-size: 0.8rem;
  font-weight: 700;
}

.fa-dossier-lifecycle-next strong {
  color: var(--primary);
}

.fa-dossier-lifecycle-alert {
  align-items: center;
  border-color: #d9f2dd;
  color: #155e13;
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1.15;
  padding: 0.8rem;
  text-align: center;
}

.fa-dossier-lifecycle-alert-value {
  color: #155e13;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.fa-dossier-lifecycle-alert.is-late {
  background: #fff7f7;
  border-color: #ffd0d0;
  color: #b42318;
}

.fa-dossier-lifecycle-alert.is-late .fa-dossier-lifecycle-alert-value {
  color: #b42318;
}

.fa-dossier-lifecycle-flow {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.fa-dossier-lifecycle-phase {
  background: #fff;
  border: 1px solid #e5e9f1;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(15, 68, 139, 0.06);
  min-height: 9.5rem;
  padding: 0.85rem;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fa-dossier-lifecycle-phase::after {
  background: #d8deea;
  content: "";
  height: 2px;
  left: calc(100% + 1px);
  position: absolute;
  top: 1.45rem;
  width: 0.75rem;
}

.fa-dossier-lifecycle-phase:last-child::after {
  display: none;
}

.fa-dossier-lifecycle-phase-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.fa-dossier-lifecycle-phase-index {
  align-items: center;
  background: #d9dee8;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(15, 68, 139, 0.14);
  color: #4b5563;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 1.65rem;
  justify-content: center;
  width: 1.65rem;
}

.fa-dossier-lifecycle-phase-title {
  color: #202124;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.15;
  margin-top: 0.75rem;
}

.fa-dossier-lifecycle-status {
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.28rem 0.45rem;
}

.fa-dossier-lifecycle-phase-details {
  color: #667085;
  display: flex;
  flex-direction: column;
  font-size: 0.76rem;
  gap: 0.38rem;
  line-height: 1.2;
  margin-top: 0.75rem;
}

.fa-dossier-lifecycle-detail {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #edf1f7;
  border-radius: 0.65rem;
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0.45rem 0.5rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fa-dossier-lifecycle-detail-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.fa-dossier-lifecycle-detail-main span,
.fa-dossier-lifecycle-detail-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fa-dossier-lifecycle-detail strong {
  color: #303846;
  font-size: 0.78rem;
}

.fa-dossier-lifecycle-detail-status {
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.26rem 0.42rem;
}

.fa-dossier-lifecycle-detail.is-actionable {
  cursor: pointer;
}

.fa-dossier-lifecycle-detail.is-actionable:hover,
.fa-dossier-lifecycle-detail.is-actionable:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(15, 68, 139, 0.14);
  outline: 0;
  transform: translateY(-2px);
}

.fa-dossier-lifecycle-detail.is-actionable:active {
  transform: translateY(0) scale(0.99);
}

.fa-dossier-lifecycle-detail-done {
  background: #f2fff3;
  border-color: rgba(104, 227, 101, 0.35);
}

.fa-dossier-lifecycle-detail-done .fa-dossier-lifecycle-detail-status {
  background: #68e365;
  color: #155e13;
}

.fa-dossier-lifecycle-detail-late {
  background: #fff6f6;
  border-color: rgba(242, 87, 87, 0.32);
}

.fa-dossier-lifecycle-detail-late .fa-dossier-lifecycle-detail-status {
  background: #f25757;
  color: #fff;
}

.fa-dossier-lifecycle-detail-planned {
  background: #fff9f1;
  border-color: rgba(255, 167, 85, 0.36);
}

.fa-dossier-lifecycle-detail-planned .fa-dossier-lifecycle-detail-status {
  background: #ffa755;
  color: #7a3d00;
}

.fa-dossier-lifecycle-detail-future .fa-dossier-lifecycle-detail-status {
  background: #d9dee8;
  color: #4b5563;
}

.fa-dossier-lifecycle-phase.is-actionable {
  cursor: pointer;
}

.fa-dossier-lifecycle-phase.is-actionable:hover,
.fa-dossier-lifecycle-phase.is-actionable:focus {
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(15, 68, 139, 0.18);
  outline: 0;
  transform: translateY(-3px);
}

.fa-dossier-lifecycle-phase.is-actionable:active {
  transform: translateY(-1px) scale(0.99);
}

.fa-dossier-lifecycle-action-hint {
  background: #eef4fb;
  border: 1px solid #d8e4f2;
  border-radius: 0.65rem;
  color: var(--primary);
  line-height: 1.1;
  margin-top: 0.85rem;
  padding: 0.5rem 0.6rem;
}

.fa-dossier-lifecycle-action-hint span {
  color: #667085;
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.fa-dossier-lifecycle-action-hint strong {
  color: var(--primary);
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
}

.fa-dossier-lifecycle-action-summary {
  background: #f2f6fc;
  border: 1px solid #dce6f3;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
}

.fa-dossier-lifecycle-action-summary span {
  color: #667085;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.fa-dossier-lifecycle-action-summary strong {
  color: var(--primary);
  display: block;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.fa-dossier-lifecycle-action-summary p {
  color: #495466;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.45rem 0 0;
}

.fa-dossier-lifecycle-action-summary div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.fa-dossier-lifecycle-action-summary em {
  background: #fff;
  border: 1px solid #dce6f3;
  border-radius: 999px;
  color: #2f3440;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
  padding: 0.4rem 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#FaDossierLifecycleActionFields label,
#FaDossierLifecycleActionForm label {
  color: #62677a;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

#FaDossierLifecycleActionFields .form-control,
#FaDossierLifecycleActionForm textarea.form-control {
  border-color: #dfe5ef;
  border-radius: 0.65rem;
  min-height: 2.55rem;
}

#FaDossierLifecycleActionFields small {
  color: #667085;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0.35rem;
}

.fa-dossier-lifecycle-phase-done {
  border-color: rgba(104, 227, 101, 0.45);
}

.fa-dossier-lifecycle-phase-done .fa-dossier-lifecycle-phase-index,
.fa-dossier-lifecycle-phase-done .fa-dossier-lifecycle-status {
  background: #68e365;
  color: #155e13;
}

.fa-dossier-lifecycle-phase-late {
  border-color: rgba(242, 87, 87, 0.45);
}

.fa-dossier-lifecycle-phase-late .fa-dossier-lifecycle-phase-index,
.fa-dossier-lifecycle-phase-late .fa-dossier-lifecycle-status {
  background: #f25757;
  color: #fff;
}

.fa-dossier-lifecycle-phase-planned {
  border-color: rgba(255, 167, 85, 0.5);
}

.fa-dossier-lifecycle-phase-planned .fa-dossier-lifecycle-phase-index,
.fa-dossier-lifecycle-phase-planned .fa-dossier-lifecycle-status {
  background: #ffa755;
  color: #7a3d00;
}

.fa-dossier-lifecycle-phase-future {
  background: #fbfcfe;
}

.fa-dossier-lifecycle-phase-future .fa-dossier-lifecycle-status {
  background: #d9dee8;
  color: #4b5563;
}

.fa-dossier-list-cycle {
  border-left: 3px solid #d9dee8;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 9rem;
  padding-left: 0.55rem;
}

.fa-dossier-list-cycle span {
  color: #667085;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.fa-dossier-list-cycle strong {
  color: #202124;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
}

.fa-dossier-list-cycle-done {
  border-left-color: #68e365;
}

.fa-dossier-list-cycle-late {
  border-left-color: #f25757;
}

.fa-dossier-list-cycle-planned {
  border-left-color: #ffa755;
}

.fa-dossier-list-cycle-future {
  border-left-color: #d9dee8;
}

.fa-dossier-list-due {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.38rem 0.5rem;
  white-space: nowrap;
}

.fa-dossier-list-due-empty {
  background: #f1f5fb;
  color: #98a2b3;
}

.fa-dossier-list-due-ok {
  background: #edf7ff;
  color: var(--primary);
}

.fa-dossier-list-due-soon {
  background: #fff4e8;
  color: #9a4d00;
}

.fa-dossier-list-due-late {
  background: #fff0f0;
  color: #b42318;
}

.fa-dossier-list-progress {
  min-width: 5.5rem;
}

.fa-dossier-list-progress-meta {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.fa-dossier-list-progress-meta strong {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.fa-dossier-list-progress-meta span {
  color: #667085;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.fa-dossier-list-progress-track {
  background: #e8edf5;
  border-radius: 999px;
  height: 0.35rem;
  overflow: hidden;
}

.fa-dossier-list-progress-bar {
  background: var(--primary);
  border-radius: inherit;
  height: 100%;
}

.fa-dossier-producteur-import-missing {
  align-items: center;
  color: #b42318;
  cursor: help;
  display: inline-flex;
  font-weight: 900;
  gap: 0.35rem;
  line-height: 1.2;
}

.fa-dossier-producteur-import-missing i {
  font-size: 0.8rem;
}

.fa-dossier-list-filters {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fa-dossier-list-filter {
  min-width: 12rem;
}

.fa-dossier-list-filter-search {
  flex: 1 1 18rem;
}

.fa-dossier-list-filter label {
  color: #667085;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.fa-dossier-list-filter .form-select {
  border-color: #dfe5ef;
  border-radius: 0.65rem;
  font-weight: 800;
  height: 2.35rem;
  min-height: 2.35rem;
  padding-bottom: 0.45rem;
  padding-top: 0.45rem;
}

.fa-dossier-list-filter .form-control {
  border-color: #dfe5ef;
  border-radius: 0.65rem;
  font-weight: 800;
  height: 2.35rem;
  min-height: 2.35rem;
  padding-bottom: 0.45rem;
  padding-top: 0.45rem;
}

.fa-dossier-list-filter .select2-container--default .select2-selection--single {
  align-items: center;
  border: 1px solid #dfe5ef !important;
  border-radius: 0.65rem;
  display: flex;
  height: 2.35rem;
  margin-bottom: 0 !important;
  min-height: 2.35rem;
  position: relative;
}

.fa-dossier-list-filter .select2-container--default .select2-selection--single .select2-selection__rendered {
  align-items: center;
  color: #202124;
  display: flex;
  font-weight: 800;
  height: 100%;
  line-height: 1;
  padding-left: 1rem;
  padding-right: 3rem;
}

.fa-dossier-list-filter .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 2.35rem;
}

.fa-dossier-list-filter .select2-container--default .select2-selection--single .select2-selection__clear {
  align-items: center;
  background: #eef2f7;
  border: 0;
  border-radius: 999px;
  color: #667085;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 1.25rem;
  justify-content: center;
  line-height: 1;
  margin: 0;
  position: absolute;
  right: 1.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
}

.fa-dossier-list-filter .select2-container--default .select2-selection--single .select2-selection__clear:hover {
  background: #dfe5ef;
  color: #202124;
}

.fa-dossier-number-button {
  align-items: center;
  background: #f7fbff;
  border: 1px solid #b8d5ff;
  border-radius: 8px;
  color: #155bb7;
  display: inline-flex;
  flex-direction: column;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.12rem;
  line-height: 1.1;
  min-width: 5.8rem;
  padding: 0.42rem 0.58rem;
  text-align: center;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.fa-dossier-number-button:hover,
.fa-dossier-number-button:focus {
  background: #edf6ff;
  border-color: #2f6fed;
  box-shadow: 0 8px 18px rgba(47, 111, 237, 0.18);
  color: #0f4ea6;
  transform: translateY(-1px);
}

.fa-dossier-number-button small {
  color: #667085;
  font-size: 0.68rem;
  font-weight: 800;
}

.fa-dossier-reference-badge {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fa-dossier-reference-badge strong {
  background: #edf6ff;
  border: 1px solid #b8d5ff;
  border-radius: 8px;
  color: #155bb7;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.35rem 0.55rem;
}

.fa-dossier-reference-badge em {
  color: #667085;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.fa-dossier-list-message-count {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: #475467;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 0.35rem;
  justify-content: center;
  line-height: 1;
  min-width: 3.6rem;
  padding: 0.38rem 0.5rem;
  position: relative;
}

.fa-dossier-list-message-count i {
  color: #667085;
  font-size: 0.8rem;
}

.fa-dossier-list-message-count strong {
  color: #1d2939;
  font-size: 0.82rem;
}

.fa-dossier-list-message-count em {
  align-items: center;
  background: #dc3545;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.68rem;
  font-style: normal;
  height: 1.05rem;
  justify-content: center;
  min-width: 1.05rem;
  padding: 0 0.25rem;
}

.fa-dossier-list-message-count.has-unread {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.fa-dossier-list-message-count.has-unread i,
.fa-dossier-list-message-count.has-unread strong {
  color: #c2410c;
}

.fa-dossier-list-message-count.is-empty {
  opacity: 0.58;
}

.fa-dossier-list-table-wrap {
  min-height: 12rem;
  position: relative;
}

.fa-dossier-list-table-wrap #liste_fa_dossiers {
  transition: opacity 0.16s ease;
}

.fa-dossier-list-table-wrap.is-loading #liste_fa_dossiers {
  opacity: 0.38;
}

.fa-dossier-list-loader {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
  color: #344054;
  display: none;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.6rem;
  left: 50%;
  line-height: 1;
  padding: 0.75rem 0.9rem;
  position: absolute;
  top: 5.5rem;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 4;
}

.fa-dossier-list-table-wrap.is-loading .fa-dossier-list-loader {
  display: inline-flex;
}

.fa-dossier-list-loader-spinner {
  animation: fa-dossier-list-spin 0.72s linear infinite;
  border: 3px solid #d0d5dd;
  border-radius: 50%;
  border-top-color: #2f6fed;
  display: inline-block;
  height: 1.25rem;
  width: 1.25rem;
}

@keyframes fa-dossier-list-spin {
  to {
    transform: rotate(360deg);
  }
}
.fa-dossier-event-stream {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.fa-dossier-event-stream::before {
  background: #dbe3ef;
  bottom: 0.7rem;
  content: "";
  left: 0.52rem;
  position: absolute;
  top: 0.7rem;
  width: 2px;
}

.fa-dossier-event-empty {
  background: #f7f9fc;
  border: 1px dashed #d8deea;
  border-radius: 0.75rem;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.9rem 1rem;
}

.fa-dossier-event-item {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  position: relative;
}

.fa-dossier-event-dot {
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(15, 68, 139, 0.18);
  height: 1.05rem;
  margin-top: 0.85rem;
  position: relative;
  width: 1.05rem;
  z-index: 1;
}

.fa-dossier-event-card {
  background: #fff;
  border: 1px solid #e5e9f1;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(15, 68, 139, 0.06);
  padding: 0.8rem 0.9rem;
}

.fa-dossier-event-head {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.fa-dossier-event-head strong {
  color: #202124;
  display: block;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.2;
}

.fa-dossier-event-head span {
  color: #667085;
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.fa-dossier-event-head em {
  background: #f1f5fb;
  border-radius: 999px;
  color: var(--primary);
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  padding: 0.38rem 0.5rem;
}

.fa-dossier-event-etat {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.fa-dossier-event-arrow {
  color: #98a2b3;
  font-size: 0.8rem;
  font-weight: 900;
}

.fa-dossier-event-comment {
  background: #f7f9fc;
  border-left: 3px solid var(--primary);
  border-radius: 0.45rem;
  color: #3d4451;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0.7rem;
  padding: 0.6rem 0.7rem;
  white-space: pre-wrap;
}

@media (max-width: 767.98px) {
  .fa-dossier-identity {
    grid-template-columns: 1fr;
  }
  .fa-dossier-identity-stats {
    grid-template-columns: 1fr;
  }
  .fa-dossier-info-card dl {
    grid-template-columns: 1fr;
  }
  .fa-dossier-info-card dt {
    margin-bottom: -0.35rem;
  }
  .fa-dossier-lifecycle-overview {
    grid-template-columns: 1fr;
  }
  .fa-dossier-lifecycle-alert {
    justify-self: start;
  }
  .fa-dossier-lifecycle-phase::after {
    display: none;
  }
}
#faDossierMapPanel {
  min-height: 480px;
}

#faDossierMap {
  display: block;
  height: calc(100vh - 430px);
  min-height: 480px;
  width: 100%;
}

.fa-dossier-map-legend {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.35rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  color: #222;
  font-size: 0.8rem;
  margin: 0 0 1rem 1rem;
  padding: 0.65rem 0.75rem;
}

.fa-dossier-map-legend-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.fa-dossier-map-legend-item {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  min-height: 1.35rem;
}

.fa-dossier-map-legend-dot {
  background: rgba(255, 0, 0, 0.6);
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: var(--rgba-primary-1) !important;
  border: 1px solid var(--primary) !important;
  border-radius: 1rem;
  cursor: default;
  float: left;
  margin-right: 5px;
  margin-top: 15px;
  padding: 5 15px;
}

.select2-container--default .select2-selection--single {
  border: solid var(--primary) 1px !important;
  margin-bottom: 1rem !important;
  outline: none;
  height: 3.5rem;
  border-radius: 1rem;
}

.select2-container--default .select2-selection--single .select2-selection__choice {
  background-color: var(--rgba-primary-1) !important;
  border: 1px solid var(--primary) !important;
  border-radius: 1rem;
  cursor: default;
  float: left;
  margin-right: 5px;
  margin-top: 15px;
  padding: 5 15px;
}

.select2-container--default .selection {
  margin: 0;
}

/* datatabl e*/
table.dataTable tbody tr.selected {
  background-color: #B0BED9 !important;
}

/* FORMS */
.input {
  margin-top: 15px;
}

label {
  font-weight: 600;
}

label.error {
  color: red;
}

/* custom google maps  infowindows css */
.gm-style .gm-style-iw-c {
  padding: 0px !important;
}

.clear-status-prefact-filter:hover {
  cursor: pointer;
}

#releve-export-excel:hover {
  cursor: pointer;
}

/* CUSTOM LOADER */
#loader-spin {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 9999;
  display: none;
}

#loader-spin::after {
  content: "";
  display: block;
  position: absolute;
  left: 48%;
  top: 40%;
  width: 40px;
  height: 40px;
  border-style: solid;
  border-color: black;
  border-top-color: transparent;
  border-width: 4px;
  border-radius: 50%;
  -webkit-animation: spin 0.8s linear infinite;
  animation: spin 0.8s linear infinite;
}

/* Datatable Danger light */
.bg-danger-light {
  background-color: rgba(225, 63, 63, 0.6666666667) !important;
}

.required-asterisk::after {
  content: "*";
  color: red;
  margin-left: 5px;
}

#contratsModal .contrat-create-modal {
  background: #f5f7fb;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 24px 70px rgba(15, 35, 65, 0.22);
  overflow: hidden;
}

#contratsModal .contrat-create-header {
  align-items: center;
  background: linear-gradient(135deg, #0f448b 0%, #137333 100%);
  border-bottom: 0;
  color: #fff;
  padding: 1rem 1.25rem;
}

#contratsModal .contrat-create-title {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  min-width: 0;
}

#contratsModal .contrat-create-title-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.85rem;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.8rem;
  justify-content: center;
  width: 2.8rem;
}

#contratsModal .contrat-create-title span:not(.contrat-create-title-icon) {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0.32rem;
  text-transform: uppercase;
}

#contratsModal .modal-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
}

#contratsModal .btn-close {
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  flex: 0 0 auto;
  opacity: 0.9;
  padding: 0.7rem;
}

#contratsModal .contrat-create-body {
  background: #f5f7fb;
  padding: 1rem 1.15rem 1.2rem;
}

#contratsModal .contrat-create-tabs {
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
}

#contratsModal .contrat-create-tabs .nav-tabs {
  border-bottom: 0;
  gap: 0.35rem;
}

#contratsModal .contrat-create-tabs .nav-item {
  margin-bottom: 0;
}

#contratsModal .contrat-create-tabs .nav-link {
  align-items: center;
  border: 0;
  border-radius: 0.65rem;
  color: #4c5668;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 900;
  min-height: 2.55rem;
  padding: 0.65rem 0.85rem;
}

#contratsModal .contrat-create-tabs .nav-link.active {
  background: #eaf3ff;
  box-shadow: inset 0 0 0 1px rgba(15, 68, 139, 0.12);
  color: var(--primary);
}

#contratsModal .contrat-create-section {
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: 0.95rem;
  box-shadow: 0 10px 26px rgba(15, 68, 139, 0.07);
  margin-bottom: 0;
}

#contratsModal .contrat-create-section .card-body {
  padding: 1.15rem;
}

#contratsModal .contrat-create-section h6 {
  align-items: center;
  color: #202124;
  display: flex;
  font-size: 0.92rem;
  font-weight: 900;
  gap: 0.5rem;
  margin: 0.35rem 0 0.85rem;
}

#contratsModal .contrat-create-section h6:first-child {
  margin-top: 0;
}

#contratsModal .contrat-create-section h6 i {
  align-items: center;
  background: #edf5ff;
  border-radius: 0.55rem;
  color: var(--primary);
  display: inline-flex;
  height: 1.8rem;
  justify-content: center;
  width: 1.8rem;
}

#contratsModal .contrat-create-form .row {
  row-gap: 0.75rem;
}

#contratsModal .contrat-create-form label {
  color: #626b7c;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

#contratsModal .contrat-create-form .form-control,
#contratsModal .contrat-create-form .form-select,
#contratsModal .contrat-create-form select {
  border-color: #dce3ee;
  border-radius: 0.65rem;
  min-height: 2.55rem;
}

#contratsModal .contrat-create-form textarea.form-control {
  min-height: 7rem;
}

/* Messages de validation (jQuery Validate) bien visibles */
#contratsModal .contrat-create-form label.error,
#contratsModal .contrat-create-form .invalid-feedback {
  color: #dc3545 !important;
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.3rem;
}

/* Champs invalides : bordure rouge marquée */
#contratsModal .contrat-create-form .form-control.error,
#contratsModal .contrat-create-form .form-select.error,
#contratsModal .contrat-create-form select.error,
#contratsModal .contrat-create-form textarea.error {
  background-color: #fff5f5;
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.15);
}

#contratsModal .contrat-create-form .select2-container.error .select2-selection--single,
#contratsModal .contrat-create-form select.error + .select2-container .select2-selection--single {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.15);
}

/* Astérisque requis plus visible */
#contratsModal .contrat-create-form .required-asterisk::after {
  color: #dc3545;
  font-weight: 700;
}

/* Sélecteur commune (Select2) aligné sur les champs du formulaire de contrat */
#contratsModal .contrat-create-form .select2-container {
  display: block;
  width: 100% !important;
}

#contratsModal .contrat-create-form .select2-container--default .select2-selection--single {
  border: 1px solid #dce3ee !important;
  border-radius: 0.65rem !important;
  height: 2.55rem !important;
  margin-bottom: 0 !important;
  outline: none;
}

#contratsModal .contrat-create-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #212529;
  line-height: 2.55rem;
  padding-left: 0.85rem;
  padding-right: 2.25rem;
}

#contratsModal .contrat-create-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #8a94a6;
}

#contratsModal .contrat-create-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 2.4rem;
  right: 0.55rem;
}

#contratsModal .contrat-create-form .select2-container--default .select2-selection--single .select2-selection__clear {
  color: #8a94a6;
  margin-right: 1.3rem;
}

#contratsModal .contrat-create-form .select2-container--default.select2-container--focus .select2-selection--single,
#contratsModal .contrat-create-form .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #0f448b !important;
  box-shadow: 0 0 0 0.18rem rgba(15, 68, 139, 0.15);
}

/* Panneau déroulant (rendu dans le modal via dropdownParent) */
#contratsModal .select2-dropdown {
  border-color: #dce3ee;
  border-radius: 0.65rem;
  overflow: hidden;
}

#contratsModal .select2-search--dropdown .select2-search__field {
  border: 1px solid #dce3ee;
  border-radius: 0.45rem;
  outline: none;
  padding: 0.35rem 0.55rem;
}

#contratsModal .select2-results__option {
  padding: 0.45rem 0.85rem;
}

#contratsModal .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #0f448b;
}

#contratsModal .contrat-create-form .input-group .form-control {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

#contratsModal .contrat-create-form .input-group .btn {
  border-bottom-right-radius: 0.65rem;
  border-top-right-radius: 0.65rem;
  min-width: 2.8rem;
}

#contratsModal .contrat-create-form .checkbox {
  align-items: center;
  background: #f7fafc;
  border: 1px solid #dfe6f0;
  border-radius: 0.7rem;
  display: inline-flex;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.55rem 0.75rem;
}

#contratsModal .contrat-create-form .checkbox label {
  margin: 0;
}

#contratsModal #contrat_map {
  border: 1px solid #dfe6f0;
  border-radius: 0.85rem;
  min-height: 18rem;
  overflow: hidden;
}

#contratsModal .contrat-create-footer {
  background: #fff;
  border-top: 1px solid #dfe6f0;
  padding: 0.85rem 1.15rem;
}

#contratsModal .contrat-create-footer .btn {
  border-radius: 0.65rem;
  font-weight: 800;
  min-height: 2.35rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

@media (max-width: 991.98px) {
  #contratsModal .contrat-create-tabs .nav-link {
    width: 100%;
  }
  #contratsModal .contrat-create-tabs .nav-item {
    flex: 1 1 100%;
  }
}
.fa-dossier-message-thread {
  background: #f6f8fc;
  border: 1px solid #dfe6f0;
  border-radius: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 22rem;
  min-height: 10rem;
  overflow-y: auto;
  padding: 0.85rem;
}

.fa-dossier-message-empty {
  align-items: center;
  color: #667085;
  display: flex;
  font-size: 0.86rem;
  font-weight: 700;
  justify-content: center;
  min-height: 8rem;
  text-align: center;
}

.fa-dossier-message-item {
  display: flex;
}

.fa-dossier-message-item.is-edm {
  justify-content: flex-end;
}

.fa-dossier-message-item.is-producteur {
  justify-content: flex-start;
}

.fa-dossier-message-bubble {
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: 0.85rem;
  box-shadow: 0 4px 14px rgba(15, 68, 139, 0.05);
  max-width: min(44rem, 82%);
  padding: 0.75rem 0.85rem;
}

.fa-dossier-message-item.is-edm .fa-dossier-message-bubble {
  background: #eaf3ff;
  border-color: #c8ddf7;
}

.fa-dossier-message-item.is-unread .fa-dossier-message-bubble {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22), 0 4px 14px rgba(15, 68, 139, 0.05);
}

.fa-dossier-message-meta {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.fa-dossier-message-meta strong {
  color: #202124;
  font-size: 0.82rem;
  font-weight: 900;
}

.fa-dossier-message-meta span {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.fa-dossier-message-unread {
  align-items: center;
  background: #f59e0b;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.1rem 0.45rem;
}

.fa-dossier-message-body {
  color: #303642;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.fa-dossier-message-form textarea {
  border-color: #dfe6f0;
  border-radius: 0.75rem;
  resize: vertical;
}

.event-history-modal {
  border: 0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.event-history-modal .modal-header {
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #f8fafd 100%);
  border-bottom: 1px solid #e4e9f2;
}

.event-history-modal .modal-title {
  color: #172033;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.event-history-kicker {
  color: #667085;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.event-history-modal .modal-body {
  background: #f7f9fc;
}

.event-history-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.event-history-item {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  position: relative;
}

.event-history-item:not(:last-child)::before {
  background: #d9e2ee;
  bottom: -0.75rem;
  content: "";
  left: 1rem;
  position: absolute;
  top: 2.2rem;
  width: 2px;
}

.event-history-marker {
  align-items: center;
  background: #0f448b;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 68, 139, 0.16);
  color: #fff;
  display: inline-flex;
  height: 2.1rem;
  justify-content: center;
  position: relative;
  width: 2.1rem;
  z-index: 1;
}

.event-history-card {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 0.5rem;
  box-shadow: 0 8px 22px rgba(21, 36, 64, 0.05);
  overflow: hidden;
}

.event-history-card-header {
  align-items: flex-start;
  border-bottom: 1px solid #edf1f6;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
}

.event-history-card-header strong {
  color: #172033;
  display: block;
  font-size: 0.9rem;
  font-weight: 900;
  margin-top: 0.35rem;
}

.event-history-type {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  min-height: 1.5rem;
  padding: 0.32rem 0.55rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-history-type-create {
  background: #e8f7ef;
  color: #13734b;
}

.event-history-type-update {
  background: #e7f0ff;
  color: #175cd3;
}

.event-history-type-delete {
  background: #ffe3e7;
  color: #b42332;
}

.event-history-type-default {
  background: #eef2f6;
  color: #667085;
}

.event-history-user {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 999px;
  color: #526173;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.35rem;
  min-height: 1.8rem;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
}

.event-history-details {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  padding: 0.85rem 0.9rem;
}

.event-history-field,
.event-history-raw,
.event-history-empty-detail {
  background: #f8fafc;
  border: 1px solid #e6ecf4;
  border-radius: 0.45rem;
  padding: 0.65rem 0.7rem;
}

.event-history-field span {
  color: #667085;
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.event-history-field strong,
.event-history-raw,
.event-history-empty-detail {
  color: #243449;
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.event-history-empty-detail {
  color: #667085;
}

.event-history-empty {
  align-items: center;
  background: #fff;
  border: 1px dashed #cfd8e5;
  border-radius: 0.5rem;
  color: #667085;
  display: flex;
  font-weight: 900;
  gap: 0.55rem;
  justify-content: center;
  min-height: 7rem;
  padding: 1rem;
  text-align: center;
}

@media (max-width: 767px) {
  .event-history-card-header {
    flex-direction: column;
  }
  .event-history-user {
    white-space: normal;
  }
  .event-history-details {
    grid-template-columns: 1fr;
  }
}
.footer .copyright {
  margin-top: 0;
}

#TypeContratDocumentsPane {
  --type-contrat-editor-height: clamp(38rem, 72vh, 64rem);
}

#TypeContratDocumentsPane .ck.ck-editor__main > .ck-editor__editable {
  height: var(--type-contrat-editor-height);
  min-height: var(--type-contrat-editor-height);
  overflow-y: auto;
  border-bottom-left-radius: 0.55rem;
  border-bottom-right-radius: 0.55rem;
}

#TypeContratDocumentsPane .ck.ck-toolbar {
  border-top-left-radius: 0.55rem;
  border-top-right-radius: 0.55rem;
}

.type-contrat-mail-merge-panel {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 11rem);
  overflow-y: auto;
}

@media (max-width: 767.98px) {
  #TypeContratDocumentsPane {
    --type-contrat-editor-height: 32rem;
  }
  .type-contrat-mail-merge-panel {
    position: static;
    height: auto;
    max-height: 18rem;
  }
}
/* Calendrier de facturation producteur — même langage visuel que Tdb et Contrats index. */
.calendrier-page {
  background: #f5f7fb;
  border-radius: 0.5rem;
  margin: -0.25rem;
  min-height: calc(100vh - 9rem);
  padding: 1rem;
}

.calendrier-shell {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 0.5rem;
  box-shadow: 0 14px 34px rgba(21, 36, 64, 0.08);
  overflow: hidden;
}

.calendrier-header {
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #f8fafd 100%);
  border-bottom: 1px solid #e4e9f2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
}

.calendrier-header-title {
  min-width: 14rem;
}

.calendrier-kicker {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.calendrier-title {
  color: #172033;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
}

.calendrier-period-control {
  align-items: center;
  display: flex;
  gap: 0.45rem;
}

.calendrier-period-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.4rem;
  color: #31445c;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 900;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.calendrier-period-btn:hover,
.calendrier-period-btn:focus {
  background: #0f448b;
  border-color: #0f448b;
  color: #fff;
}

.calendrier-period-current {
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.45rem;
  min-width: 9.75rem;
  padding: 0.42rem 0.8rem;
  text-align: center;
}

.calendrier-period-current span {
  color: #667085;
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
}

.calendrier-period-current strong {
  color: #172033;
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.1;
}

.calendrier-today-btn {
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.4rem;
  color: #31445c;
  font-size: 0.78rem;
  font-weight: 800;
  height: 2.25rem;
  margin-left: 0.25rem;
  padding: 0 0.8rem;
}

.calendrier-today-btn:hover,
.calendrier-today-btn:focus {
  background: #eef3f8;
  border-color: #b9c8dc;
}

.calendrier-header-actions {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}

.calendrier-search {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.45rem;
  display: flex;
  gap: 0.5rem;
  min-height: 2.375rem;
  padding: 0 0.75rem;
  width: 16.75rem;
}

.calendrier-search:focus-within {
  border-color: #78a6d8;
  box-shadow: 0 0 0 3px rgba(15, 68, 139, 0.1);
}

.calendrier-search img {
  height: 0.95rem;
  opacity: 0.65;
  width: 0.95rem;
}

.calendrier-search input {
  background: transparent;
  border: 0;
  color: #243449;
  flex: 1 1 auto;
  font-size: 0.78rem;
  font-weight: 700;
  height: 2.25rem;
  min-width: 0;
  outline: none;
  padding: 0;
}

.calendrier-export-btn {
  align-items: center;
  background: #16735b;
  border: 1px solid #16735b;
  border-radius: 0.4rem;
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.45rem;
  min-height: 2.375rem;
  padding: 0 0.9rem;
}

.calendrier-export-btn:hover,
.calendrier-export-btn:focus {
  background: #0f604b;
  border-color: #0f604b;
  color: #fff;
}

.calendrier-export-btn img {
  filter: brightness(0) invert(1);
  height: 0.95rem;
  width: 0.95rem;
}

.calendrier-metrics {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 1rem 1.25rem 0;
}

.calendrier-metric {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 0.5rem;
  display: flex;
  gap: 0.85rem;
  min-height: 5.25rem;
  padding: 0.85rem;
}

.calendrier-metric > div {
  min-width: 0;
}

.calendrier-metric-icon {
  align-items: center;
  background: #e8f0fb;
  border: 1px solid #d6e2f2;
  border-radius: 0.45rem;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.calendrier-metric-icon img {
  height: 1.2rem;
  width: 1.2rem;
}

.calendrier-metric span:not(.calendrier-metric-icon) {
  color: #667085;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.28rem;
  text-transform: uppercase;
}

.calendrier-metric strong {
  color: #172033;
  display: block;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.calendrier-metric .calendrier-metric-hint {
  color: #8a97a8;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0.12rem 0 0;
  text-transform: none;
}

.calendrier-filtres {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 1.25rem 0;
  padding: 0.7rem 0.85rem;
}

.calendrier-filtres-label {
  align-items: center;
  border-right: 1px solid #e0e7f0;
  color: #4a5b71;
  display: inline-flex;
  font-size: 0.69rem;
  font-weight: 900;
  gap: 0.45rem;
  letter-spacing: 0.06em;
  margin-right: 0.15rem;
  padding-right: 0.25rem;
  text-transform: uppercase;
}

.calendrier-filtres-label img {
  height: 0.88rem;
  width: 0.88rem;
}

.calendrier-chips {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.calendrier-chip {
  align-items: center;
  background: #fff;
  border: 1px solid #e0e7f0;
  border-radius: 999px;
  color: #4a5b71;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.45rem;
  line-height: 1;
  padding: 0.45rem 0.7rem 0.45rem 0.55rem;
}

.calendrier-chip-active {
  border-color: #0f448b;
  box-shadow: 0 0 0 2px rgba(15, 68, 139, 0.14);
  color: #0f448b;
}

.calendrier-chip-dot {
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  flex: 0 0 auto;
  height: 0.56rem;
  width: 0.56rem;
}

.calendrier-chip-count {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  opacity: 0.62;
}

.calendrier-chips-reset {
  background: transparent;
  border: 0;
  color: #b3bdca;
  font-size: 0.72rem;
  font-weight: 800;
  margin-left: auto;
  padding: 0.38rem 0.12rem;
  text-decoration: underline;
}

.calendrier-chips-reset-active {
  color: #0f448b;
}

.calendrier-tabs {
  align-items: center;
  border-bottom: 1px solid #e4e9f2;
  display: flex;
  gap: 0.45rem;
  padding: 1rem 1.25rem 0;
}

.calendrier-tab {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.45rem 0.45rem 0 0;
  color: #34465d;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.5rem;
  margin-bottom: -1px;
  min-height: 2.375rem;
  padding: 0 0.95rem;
}

.calendrier-tab img {
  height: 0.95rem;
  width: 0.95rem;
}

.calendrier-tab-active {
  background: #0f448b;
  border-color: #0f448b;
  color: #fff;
}

.calendrier-tab-active img {
  filter: brightness(0) invert(1);
}

.calendrier-result {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 800;
  margin-left: auto;
  padding-bottom: 0.5rem;
}

.calendrier-view {
  padding: 1rem 1.25rem 1.25rem;
}

.calendrier-grid {
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 0.5rem;
  overflow: hidden;
}

.calendrier-grid {
  --calendrier-colonnes: 7;
}

.calendrier-grid-head {
  background: #f3f6fa;
  border-bottom: 1px solid #dde5ef;
  display: grid;
  grid-template-columns: 2.875rem repeat(var(--calendrier-colonnes), minmax(0, 1fr));
}

.calendrier-grid-head > div {
  border-right: 1px solid #e6ecf4;
  color: #4a5b71;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.58rem 0.65rem;
  text-transform: uppercase;
}

.calendrier-grid-head > div:first-child {
  color: #8a97a8;
  font-size: 0.62rem;
  padding: 0.58rem 0.38rem;
  text-align: center;
}

.calendrier-week {
  border-top: 1px solid #e6ecf4;
  display: grid;
  grid-template-columns: 2.875rem repeat(var(--calendrier-colonnes), minmax(0, 1fr));
}

.calendrier-week-num {
  align-items: flex-start;
  background: #fafbfd;
  border: 0;
  border-right: 1px solid #e6ecf4;
  color: #98a4b5;
  display: flex;
  font-size: 0.69rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  justify-content: center;
  padding: 0.5rem 0.25rem;
}

.calendrier-day {
  background: #fff;
  border-right: 1px solid #e6ecf4;
  min-height: 7.5rem;
  padding: 0.45rem 0.45rem 0.5rem;
}

.calendrier-day-hors-mois {
  background: #fafbfd;
}

.calendrier-day-aujourdhui {
  background: #f4f8ff;
}

.calendrier-day-head {
  align-items: center;
  display: flex;
  gap: 0.38rem;
  justify-content: space-between;
  margin-bottom: 0.38rem;
}

.calendrier-day-num {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.38rem;
  color: #26364c;
  display: inline-flex;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  height: 1.375rem;
  justify-content: center;
  min-width: 1.375rem;
  padding: 0 0.38rem;
}

.calendrier-day-hors-mois .calendrier-day-num {
  color: #b8c2ce;
}

.calendrier-day-aujourdhui .calendrier-day-num {
  background: #0f448b;
  color: #fff;
}

.calendrier-week-num:hover,
.calendrier-week-num:focus,
.calendrier-day-num:hover,
.calendrier-day-num:focus {
  color: #0f448b;
  text-decoration: underline;
}

.calendrier-day-aujourdhui .calendrier-day-num:hover,
.calendrier-day-aujourdhui .calendrier-day-num:focus {
  color: #fff;
}

.calendrier-day-badge {
  color: #98a4b5;
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.calendrier-day-events {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.calendrier-event {
  align-items: center;
  border-radius: 0.25rem;
  cursor: pointer;
  display: flex;
  font-size: 0.69rem;
  font-weight: 800;
  gap: 0.38rem;
  line-height: 1.3;
  overflow: hidden;
  padding: 0.2rem 0.38rem 0.2rem 0.32rem;
}

.calendrier-event:hover {
  filter: brightness(0.96);
}

.calendrier-event-titre {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendrier-event-montant {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  opacity: 0.7;
}

.calendrier-table-panel {
  border: 1px solid #e4eaf2;
  border-radius: 0.5rem;
  overflow: hidden;
}

.calendrier-table-scroll {
  overflow: auto;
}

.calendrier-table {
  border-collapse: separate;
  border-spacing: 0;
  color: #172033;
  font-size: 0.78rem;
  width: 100%;
}

.calendrier-table thead th {
  background: #f3f6fa;
  border-bottom: 1px solid #dde5ef;
  color: #4a5b71;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.7rem 0.75rem;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.calendrier-table tbody tr {
  cursor: pointer;
}

.calendrier-table tbody tr:hover {
  background: #eef4fc;
}

.calendrier-table tbody td {
  border-bottom: 1px solid #edf1f7;
  padding: 0.62rem 0.75rem;
}

.calendrier-table .calendrier-cell-right {
  text-align: right;
}

.calendrier-table-echeance,
.calendrier-table-contrat {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.calendrier-table-producteur,
.calendrier-table-periode {
  color: #4a5b71;
  font-weight: 700;
}

.calendrier-table-periode {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.calendrier-table-kwh {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.calendrier-table-montant {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  white-space: nowrap;
}

.calendrier-statut {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 900;
  gap: 0.38rem;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.58rem 0.25rem 0.45rem;
  white-space: nowrap;
}

.calendrier-statut-dot {
  border-radius: 50%;
  height: 0.5rem;
  width: 0.5rem;
}

.calendrier-vide {
  color: #8a97a8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 1.5rem 0.85rem;
  text-align: center;
}

@media (max-width: 1199.98px) {
  .calendrier-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px) {
  .calendrier-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .calendrier-header-actions,
  .calendrier-search {
    width: 100%;
  }
  .calendrier-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
  .calendrier-grid-head,
  .calendrier-week {
    grid-template-columns: 2rem repeat(var(--calendrier-colonnes), minmax(4.5rem, 1fr));
  }
  .calendrier-grid {
    overflow-x: auto;
  }
}
/* Modale de consultation d'un état de pré-facturation. */
.prefact-vue-modal .modal-content {
  border: 0;
  border-radius: 0.625rem;
  overflow: hidden;
}

.prefact-vue-header {
  align-items: flex-start;
  background: #143c66;
  color: #fff;
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.prefact-vue-header-main {
  flex: 1 1 auto;
  min-width: 0;
}

.prefact-vue-kicker {
  align-items: center;
  color: #a9c4e0;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.69rem;
  font-weight: 900;
  gap: 0.5rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.3rem;
  text-transform: uppercase;
}

.prefact-vue-kicker-sep {
  opacity: 0.5;
}

.prefact-vue-titre {
  color: #fff;
  font-size: 1.19rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
}

.prefact-vue-tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.56rem;
}

.prefact-vue-tag {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #eaf2fa;
  font-size: 0.69rem;
  font-weight: 800;
  padding: 0.25rem 0.62rem;
}

.prefact-vue-tag:empty {
  display: none;
}

.prefact-vue-header-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
}

.prefact-vue-statut {
  align-items: center;
  border-radius: 0.4rem;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.8rem;
  text-transform: uppercase;
}

.prefact-vue-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.4rem;
  color: #fff;
  display: inline-flex;
  font-size: 1.06rem;
  font-weight: 700;
  height: 2.125rem;
  justify-content: center;
  width: 2.125rem;
}

.prefact-vue-close:hover,
.prefact-vue-close:focus {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.prefact-vue-stepper {
  align-items: center;
  background: #f8fafd;
  border-bottom: 1px solid #e4e9f2;
  display: flex;
  overflow: auto;
  padding: 0.8rem 1.25rem;
}

.prefact-vue-step {
  align-items: center;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
}

.prefact-vue-step-dot {
  align-items: center;
  background: #fff;
  border: 2px solid #dbe2ec;
  border-radius: 50%;
  color: #a3aeba;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.69rem;
  font-weight: 900;
  height: 1.375rem;
  justify-content: center;
  width: 1.375rem;
}

.prefact-vue-step-label {
  color: #a3aeba;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.prefact-vue-step-line {
  background: #e4e9f2;
  flex: 1 1 auto;
  height: 2px;
  margin: 0 0.5rem;
  min-width: 0.625rem;
}

.prefact-vue-step-faite .prefact-vue-step-dot {
  background: #16735b;
  border-color: #16735b;
  color: #fff;
}

.prefact-vue-step-faite .prefact-vue-step-label {
  color: #26364c;
}

.prefact-vue-step-faite .prefact-vue-step-line {
  background: #16735b;
}

.prefact-vue-step-courante .prefact-vue-step-dot {
  background: #0f448b;
  border-color: #0f448b;
  color: #fff;
}

.prefact-vue-step-courante .prefact-vue-step-label {
  color: #0f448b;
}

.prefact-vue-body {
  background: #f5f7fb;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem 1.25rem;
}

.prefact-vue-grid {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.prefact-vue-panel {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prefact-vue-panel-header {
  align-items: center;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  gap: 0.625rem;
  justify-content: space-between;
  padding: 0.7rem 0.875rem;
}

.prefact-vue-panel-header h3 {
  color: #172033;
  font-size: 0.84rem;
  font-weight: 900;
  margin: 0;
}

.prefact-vue-pill {
  background: #f3f6fa;
  border: 1px solid #dfe7f1;
  border-radius: 999px;
  color: #34465d;
  font-size: 0.66rem;
  font-weight: 900;
  padding: 0.25rem 0.56rem;
}

.prefact-vue-index-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
  width: 100%;
}

.prefact-vue-index-table thead th {
  background: #fafbfd;
  border-bottom: 1px solid #eef2f7;
  color: #8a97a8;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.875rem;
  text-align: left;
  text-transform: uppercase;
}

.prefact-vue-index-table tbody th {
  color: #172033;
  font-weight: 800;
  padding: 0.62rem 0.875rem;
  text-align: left;
  white-space: nowrap;
}

.prefact-vue-index-table tbody th span {
  color: #8a97a8;
  font-weight: 700;
}

.prefact-vue-index-table tbody td {
  border-bottom: 1px solid #f2f5f9;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  padding: 0.62rem 0.875rem;
}

.prefact-vue-index-table tbody th {
  border-bottom: 1px solid #f2f5f9;
}

.prefact-vue-right {
  text-align: right;
}

.prefact-vue-gain {
  color: #16735b;
  font-weight: 900;
}

.prefact-vue-perte {
  color: #a94b06;
  font-weight: 900;
}

.prefact-vue-index-total td {
  background: #f4f8ff;
  border-bottom: 0;
  color: #172033;
  font-weight: 900;
}

.prefact-vue-index-total td:last-child {
  color: #0f448b;
  font-size: 0.94rem;
}

.prefact-vue-side {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.prefact-vue-card {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 0.5rem;
  padding: 0.875rem;
}

.prefact-vue-card-head {
  align-items: baseline;
  display: flex;
  gap: 0.625rem;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.prefact-vue-card-head > span:first-child {
  color: #667085;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prefact-vue-card-meta {
  color: #8a97a8;
  font-size: 0.69rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.prefact-vue-montant {
  color: #143c66;
  display: block;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.prefact-vue-card-split {
  border-top: 1px solid #eef2f7;
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.prefact-vue-card-split > div {
  flex: 1 1 0;
  min-width: 0;
}

.prefact-vue-card-split span {
  color: #8a97a8;
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 0.18rem;
  text-transform: uppercase;
}

.prefact-vue-card-split strong {
  color: #26364c;
  display: block;
  font-size: 0.81rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.prefact-vue-plafond-pct {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.prefact-vue-jauge {
  background: #eef2f7;
  border-radius: 999px;
  height: 0.56rem;
  overflow: hidden;
}

.prefact-vue-jauge-barre {
  border-radius: 999px;
  height: 100%;
  width: 0;
}

.prefact-vue-card-foot {
  align-items: baseline;
  display: flex;
  gap: 0.625rem;
  justify-content: space-between;
  margin-top: 0.56rem;
}

.prefact-vue-card-foot span:first-child {
  color: #4a5b71;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.prefact-vue-card-foot span:last-child {
  color: #8a97a8;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.prefact-vue-penalites {
  align-items: center;
  background: #fff8ee;
  border: 1px solid #ffd9b8;
  border-left: 4px solid #ff7f27;
  border-radius: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0.8rem 1rem;
}

.prefact-vue-penalites > strong {
  color: #8a4506;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prefact-vue-penalites span {
  color: #a06534;
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 0.12rem;
  text-transform: uppercase;
}

.prefact-vue-penalites div strong {
  color: #8a4506;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.prefact-vue-btn-doc {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.4rem;
  color: #0f448b;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 0.38rem;
  min-height: 2rem;
  padding: 0 0.7rem;
}

.prefact-vue-btn-doc:hover,
.prefact-vue-btn-doc:focus {
  background: #eef3f8;
  border-color: #b9c8dc;
  color: #0f448b;
}

.prefact-vue-doc-table {
  font-size: 0.78rem;
  margin: 0;
}

.prefact-vue-doc-table thead th {
  background: #fafbfd;
  border-bottom: 1px solid #eef2f7;
  color: #8a97a8;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.875rem;
  text-transform: uppercase;
}

.prefact-vue-doc-table tbody td {
  border-bottom: 1px solid #f2f5f9;
  padding: 0.62rem 0.875rem;
}

.prefact-vue-footer {
  align-items: center;
  background: #fff;
  border-top: 1px solid #e4e9f2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
}

.prefact-vue-footer-spacer {
  flex: 1 1 auto;
}

.prefact-vue-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.4rem;
  color: #34465d;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0 0.75rem;
}

.prefact-vue-btn:hover,
.prefact-vue-btn:focus {
  background: #eef3f8;
  border-color: #b9c8dc;
  color: #34465d;
}

.prefact-vue-btn-danger {
  border-color: #f0cfcf;
  color: #a02020;
}

.prefact-vue-btn-danger:hover,
.prefact-vue-btn-danger:focus {
  background: #fdf1f1;
  border-color: #e3b3b3;
  color: #a02020;
}

.prefact-vue-btn-primary {
  align-items: center;
  background: #16735b;
  border: 1px solid #16735b;
  border-radius: 0.4rem;
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0 1rem;
}

.prefact-vue-btn-primary:hover,
.prefact-vue-btn-primary:focus {
  background: #0f604b;
  border-color: #0f604b;
  color: #fff;
}

.prefact-vue-btn-primary-arrow {
  opacity: 0.75;
}

@media (max-width: 991.98px) {
  .prefact-vue-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .prefact-vue-header {
    flex-direction: column;
  }
}
/* Modale de saisie d'un état de pré-facturation. */
.prefact-saisie-modal .modal-content {
  border: 0;
  border-radius: 0.625rem;
  overflow: hidden;
}

.prefact-saisie-header {
  align-items: flex-start;
  background: #143c66;
  color: #fff;
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.prefact-saisie-header-main {
  flex: 1 1 auto;
  min-width: 0;
}

.prefact-saisie-kicker {
  color: #a9c4e0;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 0 0 0.3rem;
  text-transform: uppercase;
}

.prefact-saisie-kicker-sep {
  opacity: 0.5;
}

.prefact-saisie-titre {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
}

.prefact-saisie-sous-titre {
  color: #c6d8ea;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0.38rem 0 0;
}

.prefact-saisie-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.4rem;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.06rem;
  font-weight: 700;
  height: 2.125rem;
  justify-content: center;
  width: 2.125rem;
}

.prefact-saisie-close:hover,
.prefact-saisie-close:focus {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.prefact-saisie-body {
  background: #f5f7fb;
  padding: 0;
}

.prefact-saisie-grid {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}

.prefact-saisie-colonne {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem 1.25rem;
}

.prefact-saisie-recap {
  background: #f0f4fa;
  border-left: 1px solid #e4e9f2;
}

.prefact-saisie-panel {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prefact-saisie-panel-header {
  align-items: baseline;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  gap: 0.625rem;
  justify-content: space-between;
  padding: 0.7rem 0.875rem;
}

.prefact-saisie-panel-header h3 {
  color: #172033;
  font-size: 0.84rem;
  font-weight: 900;
  margin: 0;
}

.prefact-saisie-note {
  color: #8a97a8;
  font-size: 0.66rem;
  font-weight: 800;
}

.prefact-saisie-panel-body {
  padding: 0.875rem;
}

.prefact-saisie-champs {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prefact-saisie-champs > div {
  min-width: 0;
}

.prefact-saisie-champs label,
.prefact-saisie-index-entete,
.prefact-saisie-index-libelle {
  color: #667085;
  display: block;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.prefact-saisie-body .form-control {
  border: 1px solid #d8e0eb;
  border-radius: 0.4rem;
  color: #172033;
  font-size: 0.81rem;
  font-weight: 800;
  min-height: 2.25rem;
  padding: 0.3rem 0.55rem;
}

.prefact-saisie-body .form-control:focus {
  border-color: #78a6d8;
  box-shadow: 0 0 0 3px rgba(15, 68, 139, 0.1);
}

/* Champ calculé : non saisissable, signalé par un pointillé. */
.prefact-saisie-body .prefact-saisie-calcule,
.prefact-saisie-body .form-control[readonly] {
  background: #f8fafd;
  border-style: dashed;
  color: #26364c;
}

.prefact-saisie-index {
  align-items: end;
  display: grid;
  gap: 0.38rem 0.5rem;
  grid-template-columns: minmax(4.5rem, auto) repeat(3, minmax(0, 1fr));
}

.prefact-saisie-index-entete,
.prefact-saisie-index-libelle {
  margin-bottom: 0;
}

.prefact-saisie-index-libelle {
  color: #172033;
  font-size: 0.78rem;
  letter-spacing: 0;
  padding-bottom: 0.45rem;
  text-transform: none;
}

.prefact-saisie-index .input,
.prefact-saisie-index > div {
  min-width: 0;
}

.prefact-saisie-index .form-control {
  text-align: right;
}

.prefact-saisie-pnet {
  align-items: center;
  background: #f4f8ff;
  border: 1px solid #dbe7fa;
  border-radius: 0.45rem;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 0.875rem;
  padding: 0.62rem 0.75rem;
}

.prefact-saisie-pnet > span {
  color: #26364c;
  font-size: 0.72rem;
  font-weight: 900;
}

.prefact-saisie-pnet .input,
.prefact-saisie-pnet > div {
  flex: 0 0 auto;
  width: 9rem;
}

.prefact-saisie-pnet-champ {
  color: #0f448b !important;
  font-size: 0.94rem !important;
  font-weight: 900 !important;
  text-align: right;
}

.prefact-saisie-avertissement {
  color: #a02020;
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0.5rem 0 0;
}

.prefact-saisie-alerte {
  background: #fff8ee;
  border: 1px solid #ffd9b8;
  border-left: 4px solid #ff7f27;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prefact-saisie-alerte-head {
  border-bottom: 1px solid #ffe4cb;
  padding: 0.7rem 0.875rem;
}

.prefact-saisie-alerte-head strong {
  color: #8a4506;
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
}

.prefact-saisie-alerte-head span {
  color: #a06534;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.18rem;
}

.prefact-saisie-alerte .table-responsive {
  padding: 0.5rem 0.875rem 0.75rem;
}

.prefact-saisie-montant {
  align-items: center;
  border-top: 1px solid #eef2f7;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.875rem;
}

.prefact-saisie-montant > span {
  color: #667085;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prefact-saisie-montant .input,
.prefact-saisie-montant > div {
  flex: 0 0 auto;
  width: 10.5rem;
}

.prefact-saisie-montant-champ {
  background: #fff !important;
  border-style: solid !important;
  color: #143c66 !important;
  font-size: 1.19rem !important;
  font-weight: 900 !important;
  text-align: right;
}

.prefact-saisie-plafond-pct {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.prefact-saisie-jauge {
  background: #eef2f7;
  border-radius: 999px;
  height: 0.56rem;
  overflow: hidden;
}

.prefact-saisie-jauge-barre {
  border-radius: 999px;
  height: 100%;
  width: 0;
}

.prefact-saisie-plafond-texte {
  color: #4a5b71;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0.56rem 0 0;
}

.prefact-saisie-note-calcul {
  color: #8a97a8;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.prefact-saisie-footer {
  background: #fff;
  border-top: 1px solid #e4e9f2;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0.8rem 1.25rem;
}

.prefact-saisie-btn {
  background: #fff;
  border: 1px solid #d8e0eb;
  border-radius: 0.4rem;
  color: #34465d;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 2.375rem;
  padding: 0 1rem;
}

.prefact-saisie-btn:hover,
.prefact-saisie-btn:focus {
  background: #eef3f8;
  border-color: #b9c8dc;
  color: #34465d;
}

.prefact-saisie-btn-primary {
  background: #16735b;
  border: 1px solid #16735b;
  border-radius: 0.4rem;
  color: #fff;
  font-size: 0.81rem;
  font-weight: 900;
  min-height: 2.375rem;
  padding: 0 1.25rem;
}

.prefact-saisie-btn-primary:hover,
.prefact-saisie-btn-primary:focus {
  background: #0f604b;
  border-color: #0f604b;
  color: #fff;
}

@media (max-width: 1199.98px) {
  .prefact-saisie-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .prefact-saisie-recap {
    border-left: 0;
    border-top: 1px solid #e4e9f2;
  }
}
@media (max-width: 767.98px) {
  .prefact-saisie-champs {
    grid-template-columns: minmax(0, 1fr);
  }
  .prefact-saisie-index {
    grid-template-columns: minmax(3.5rem, auto) repeat(3, minmax(0, 1fr));
  }
}
.prefact-saisie-recap-lignes {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.prefact-saisie-recap-ligne {
  align-items: baseline;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.prefact-saisie-recap-ligne > span {
  color: #26364c;
  font-size: 0.75rem;
  font-weight: 800;
}

.prefact-saisie-recap-ligne > strong {
  color: #172033;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  white-space: nowrap;
}

.prefact-saisie-recap-discret > span {
  color: #667085;
  font-weight: 700;
  padding-left: 0.5rem;
}

.prefact-saisie-recap-discret > strong {
  color: #4a5b71;
  font-weight: 700;
}

.prefact-saisie-recap-alerte {
  color: #a94b06 !important;
}

.prefact-saisie-montant > strong {
  color: #143c66;
  font-size: 1.31rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  white-space: nowrap;
}

/* Tableaux des encarts de la modale de saisie : changement de compteur, télérelève. */
.prefact-saisie-tableau {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.75rem;
  width: 100%;
}

.prefact-saisie-tableau thead th {
  background: #fafbfd;
  border-bottom: 1px solid #eef2f7;
  color: #8a97a8;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.55rem;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.prefact-saisie-tableau tbody th {
  color: #172033;
  font-weight: 800;
  padding: 0.5rem 0.55rem;
  text-align: left;
  white-space: nowrap;
}

.prefact-saisie-tableau tbody td {
  color: #26364c;
  font-weight: 700;
  padding: 0.5rem 0.55rem;
}

.prefact-saisie-tableau tbody th,
.prefact-saisie-tableau tbody td {
  border-bottom: 1px solid #f2f5f9;
}

.prefact-saisie-tableau tbody tr:last-child th,
.prefact-saisie-tableau tbody tr:last-child td {
  border-bottom: 0;
}

.prefact-saisie-tableau-nombre {
  font-variant-numeric: tabular-nums;
  text-align: right !important;
  white-space: nowrap;
}

.prefact-saisie-tableau-ecart {
  color: #8a97a8;
  font-weight: 800;
}

.prefact-saisie-tableau-ecart-actif {
  color: #a94b06;
  font-weight: 900;
}

.prefact-saisie-tableau-vide {
  color: #8a97a8;
  font-style: italic;
  font-weight: 700;
}

.prefact-saisie-message {
  color: #4a5b71;
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.prefact-saisie-message-alerte {
  color: #8a4506;
}

/* L'encart télérelève partage la mise en page des panneaux de saisie. */
#prefactTelereleve .prefact-saisie-panel-body {
  padding: 0;
}

#prefactTelereleve .prefact-saisie-message {
  margin: 0;
  padding: 0.62rem 0.875rem;
}

#prefactTelereleve .prefact-saisie-message + .prefact-saisie-message {
  border-top: 1px solid #f2f5f9;
}

#prefactTelereleve .prefact-saisie-tableau {
  border-top: 1px solid #eef2f7;
}

/* Puces de statut de la liste des préfactures de la fiche contrat. */
#liste_prefacts .prefact-status-group {
  border-radius: 1rem;
  overflow: hidden;
}

#liste_prefacts .prefact-status-group > .btn:first-child {
  border-bottom-left-radius: 1rem;
  border-top-left-radius: 1rem;
}

#liste_prefacts .prefact-status-group > .btn:last-child {
  border-bottom-right-radius: 1rem;
  border-top-right-radius: 1rem;
}

.prefact-saisie-blocage {
  background: #fdf1f1;
  border: 1px solid #f0cfcf;
  border-left: 4px solid #a02020;
  border-radius: 0.5rem;
  padding: 0.7rem 0.875rem;
}

.prefact-saisie-blocage strong {
  color: #7d1a1a;
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
}

.prefact-saisie-blocage span {
  color: #9a3b3b;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.18rem;
}

.prefact-saisie-btn-primary:disabled {
  background: #b9c8dc;
  border-color: #b9c8dc;
  cursor: not-allowed;
}
