﻿/* GED-WEB-2E5 — Suivi et relances */

html.circ-2e5-open,
html.circ-2e5-open body {
  overflow: hidden;
}

.circ-2e5-modal {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: grid;
  place-items: center;
  background: rgba(16, 30, 50, .46);
  padding: 14px;
}

.circ-2e5-dialog {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(1250px, 100%);
  height: min(850px, calc(100vh - 28px));
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(10, 24, 45, .28);
}

.circ-2e5-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e4eaf1;
  padding: 13px 15px;
}

.circ-2e5-head > div:first-child {
  display: grid;
  gap: 2px;
}

.circ-2e5-head span {
  color: #5a7ead;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.circ-2e5-head h2 {
  margin: 0;
  color: #2d4058;
  font-size: 17px;
}

.circ-2e5-head p {
  margin: 0;
  color: #7d899a;
  font-size: 9px;
}

.circ-2e5-head-actions {
  display: flex;
  gap: 6px;
}

.circ-2e5-close {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  background: #fff;
  color: #6d7b8f;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.circ-2e5-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid #e4eaf1;
  background: #e3e9f0;
}

.circ-2e5-summary article {
  display: grid;
  gap: 2px;
  min-height: 76px;
  background: #fbfcfe;
  padding: 9px 10px;
}

.circ-2e5-summary span {
  color: #7f8b9c;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.circ-2e5-summary strong {
  color: #34475f;
  font-size: 16px;
}

.circ-2e5-summary small {
  color: #8b96a6;
  font-size: 7px;
  line-height: 1.3;
}

.circ-2e5-toolbar {
  display: flex;
  align-items: end;
  gap: 8px;
  border-bottom: 1px solid #e5eaf1;
  background: #fafbfd;
  padding: 8px 12px;
}

.circ-2e5-tabs {
  display: flex;
  gap: 3px;
  align-self: center;
  margin-right: auto;
}

.circ-2e5-tabs button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 6px 10px;
  color: #65748a;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.circ-2e5-tabs button.is-active {
  border-color: #cddbeb;
  background: #fff;
  color: #245fbd;
}

.circ-2e5-toolbar label {
  display: grid;
  gap: 3px;
}

.circ-2e5-toolbar label > span {
  color: #7c899a;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.circ-2e5-toolbar select,
.circ-2e5-toolbar input {
  min-height: 31px;
  border: 1px solid #d1dbe6;
  border-radius: 8px;
  background: #fff;
  padding: 5px 8px;
  color: #42536a;
  font: inherit;
  font-size: 9px;
}

.circ-2e5-toolbar input {
  width: 75px;
}

.circ-2e5-loading {
  height: 2px;
  overflow: hidden;
}

.circ-2e5-loading.is-visible::before {
  content: "";
  display: block;
  width: 28%;
  height: 100%;
  background: #2467c7;
  animation: circ2e5load .8s linear infinite alternate;
}

@keyframes circ2e5load {
  from { transform: translateX(0); }
  to { transform: translateX(255%); }
}

.circ-2e5-workspace {
  display: grid;
  grid-template-columns: minmax(410px, .95fr) minmax(0, 1.05fr);
  min-height: 0;
}

.circ-2e5-list-pane {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  border-right: 1px solid #e5eaf1;
}

.circ-2e5-list {
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.circ-2e5-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 125px 125px;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-bottom: 6px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #fff;
  padding: 8px 9px;
  color: #3b4d64;
  text-align: left;
  cursor: pointer;
}

.circ-2e5-row:hover {
  border-color: #abc1dc;
  background: #f9fbff;
}

.circ-2e5-row.is-selected {
  border-color: #94b5df;
  background: #f3f8ff;
}

.circ-2e5-row.is-late {
  border-left: 3px solid #c45656;
}

.circ-2e5-row-main {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.circ-2e5-row-main small {
  color: #5d7ea7;
  font-size: 7px;
  font-weight: 800;
}

.circ-2e5-row-main strong {
  overflow: hidden;
  color: #34475f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.circ-2e5-row-main em {
  overflow: hidden;
  color: #8390a1;
  font-size: 8px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.circ-2e5-row-state,
.circ-2e5-row-status {
  display: grid;
  gap: 2px;
}

.circ-2e5-row-state b,
.circ-2e5-row-status b {
  color: #51637a;
  font-size: 8px;
}

.circ-2e5-row-state small,
.circ-2e5-row-status small {
  color: #8a96a5;
  font-size: 7px;
}

.circ-2e5-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-top: 1px solid #e5eaf1;
  background: #fbfcfe;
}

.circ-2e5-pagination span {
  color: #718095;
  font-size: 8px;
}

.circ-2e5-detail-pane {
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.circ-2e5-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.circ-2e5-detail-head > div {
  min-width: 0;
}

.circ-2e5-detail-head span {
  color: #5d7ead;
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
}

.circ-2e5-detail-head strong {
  display: block;
  color: #687991;
  font-size: 8px;
}

.circ-2e5-detail-head h3 {
  margin: 2px 0 0;
  color: #31445c;
  font-size: 13px;
}

.circ-2e5-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.circ-2e5-detail-grid article {
  display: grid;
  gap: 2px;
  min-height: 67px;
  border: 1px solid #e1e7ef;
  border-radius: 9px;
  background: #fbfcfe;
  padding: 8px 9px;
}

.circ-2e5-detail-grid article.is-danger {
  border-color: #ebc1c1;
  background: #fff4f4;
}

.circ-2e5-detail-grid span {
  color: #8793a3;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.circ-2e5-detail-grid strong {
  color: #3a4c63;
  font-size: 10px;
}

.circ-2e5-detail-grid small {
  color: #8591a1;
  font-size: 8px;
}

.circ-2e5-reminder-actions {
  margin-top: 8px;
}

.circ-2e5-reminder-history {
  margin-top: 12px;
  border-top: 1px solid #e4eaf1;
  padding-top: 10px;
}

.circ-2e5-reminder-history > h3 {
  margin: 0 0 7px;
  color: #354860;
  font-size: 10px;
}

.circ-2e5-reminders {
  display: grid;
  gap: 6px;
}

.circ-2e5-reminder {
  border: 1px solid #e1e7ef;
  border-radius: 9px;
  background: #fff;
  padding: 8px 9px;
}

.circ-2e5-reminder.is-escalation {
  border-color: #edc17c;
  background: #fff9ed;
}

.circ-2e5-reminder header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.circ-2e5-reminder header strong {
  color: #3c5068;
  font-size: 8px;
}

.circ-2e5-reminder header time {
  color: #8995a5;
  font-size: 7px;
}

.circ-2e5-reminder p {
  margin: 5px 0;
  color: #53657c;
  font-size: 8px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.circ-2e5-reminder small {
  color: #8a96a5;
  font-size: 7px;
}

.circ-2e5-compose {
  margin-top: 10px;
  border: 1px solid #d9e3ee;
  border-radius: 10px;
  background: #f9fbfe;
  padding: 10px;
}

.circ-2e5-compose h3 {
  margin: 0 0 8px;
  color: #354860;
  font-size: 10px;
}

.circ-2e5-compose label {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.circ-2e5-compose label > span {
  color: #6c798d;
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
}

.circ-2e5-compose select,
.circ-2e5-compose textarea {
  width: 100%;
  border: 1px solid #d0d9e5;
  border-radius: 8px;
  background: #fff;
  padding: 7px 8px;
  color: #34475f;
  font: inherit;
  font-size: 9px;
}

.circ-2e5-compose textarea {
  min-height: 95px;
  resize: vertical;
}

.circ-2e5-compose-counter {
  display: block;
  color: #8995a5;
  font-size: 7px;
  text-align: right;
}

.circ-2e5-compose-warning {
  margin-bottom: 8px;
  border: 1px solid #eac887;
  border-radius: 8px;
  background: #fff8e9;
  padding: 7px 8px;
  color: #80591b;
  font-size: 8px;
}

.circ-2e5-compose-error {
  margin-bottom: 8px;
  border: 1px solid #edbbbb;
  border-radius: 8px;
  background: #fff1f1;
  padding: 7px 8px;
  color: #a03939;
}

.circ-2e5-compose-error strong,
.circ-2e5-compose-error small {
  display: block;
}

.circ-2e5-compose-error strong {
  font-size: 8px;
}

.circ-2e5-compose-error small {
  margin-top: 2px;
  font-size: 7px;
}

.circ-2e5-compose-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.circ-2e5-empty {
  padding: 28px 12px;
  color: #7b8899;
  font-size: 9px;
  text-align: center;
}

.circ-2e5-empty.is-compact {
  padding: 12px;
}

@media (max-width: 1050px) {
  .circ-2e5-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .circ-2e5-workspace {
    grid-template-columns: 1fr;
  }

  .circ-2e5-list-pane {
    min-height: 330px;
    border-right: 0;
    border-bottom: 1px solid #e5eaf1;
  }
}

@media (max-width: 700px) {
  .circ-2e5-modal {
    padding: 0;
  }

  .circ-2e5-dialog {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .circ-2e5-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .circ-2e5-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .circ-2e5-tabs {
    width: 100%;
  }

  .circ-2e5-tabs button {
    flex: 1 1 0;
  }

  .circ-2e5-toolbar label {
    flex: 1 1 130px;
  }

  .circ-2e5-toolbar input {
    width: 100%;
  }

  .circ-2e5-row {
    grid-template-columns: 1fr 100px;
  }

  .circ-2e5-row-status {
    grid-column: 1 / -1;
  }

  .circ-2e5-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

[hidden] {
  display: none !important;
}
