/* =========================================================
   QUARZEO PILOT V10.13
   CRM + MESSAGERIE + AGENDA + ICÔNES COLORÉES
   ========================================================= */

/* ---------- ICÔNES DU MENU ---------- */

.sidebar .navGroup a[data-page] .navIcon {
  transition:
    color .16s ease,
    border-color .16s ease,
    background .16s ease,
    transform .16s ease !important;
}

.sidebar .navGroup a[data-page="home"] .navIcon {
  color: #55ddf0 !important;
  background: rgba(38, 204, 231, .13) !important;
}

.sidebar .navGroup a[data-page="applications"] .navIcon,
.sidebar .navGroup a[data-page="documents"] .navIcon {
  color: #f4b45d !important;
  background: rgba(242, 161, 46, .14) !important;
}

.sidebar .navGroup a[data-page="crm"] .navIcon {
  color: #75adff !important;
  background: rgba(69, 132, 222, .15) !important;
}

.sidebar .navGroup a[data-page="followups"] .navIcon {
  color: #ff8c8f !important;
  background: rgba(235, 88, 99, .14) !important;
}

.sidebar .navGroup a[data-page="agenda"] .navIcon {
  color: #aaa1ff !important;
  background: rgba(115, 105, 231, .16) !important;
}

.sidebar .navGroup a[data-page="messages"] .navIcon {
  color: #5ddcb0 !important;
  background: rgba(38, 185, 125, .15) !important;
}

.sidebar .navGroup a[data-page="mail"] .navIcon {
  color: #5fdff0 !important;
  background: rgba(38, 204, 231, .14) !important;
}

.sidebar .navGroup a[data-page="billing"] .navIcon {
  color: #f5c45d !important;
  background: rgba(231, 174, 48, .14) !important;
}

.sidebar .navGroup a[data-page="zeo"] .navIcon {
  color: #b7a7ff !important;
  background: rgba(127, 101, 235, .16) !important;
}

.sidebar .navGroup a:hover .navIcon,
.sidebar .navGroup a.active .navIcon {
  transform: scale(1.05);
  filter: brightness(1.14);
}

/* =========================================================
   CRM
   ========================================================= */

.qz13-crm-enhanced {
  display: grid;
  gap: 15px;
}

.qz13-crm-radar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.qz13-radar-card {
  position: relative;
  min-height: 108px;
  padding: 16px 17px;
  overflow: hidden;

  border: 1px solid #dbe8ed;
  border-radius: 19px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.99),
      rgba(247,251,253,.98)
    );

  box-shadow: 0 12px 28px rgba(8, 43, 64, .055);
}

.qz13-radar-card::after {
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: var(--qz13-soft, rgba(38, 204, 231, .09));
  content: "";
}

.qz13-radar-card span,
.qz13-radar-card strong,
.qz13-radar-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.qz13-radar-card span {
  color: #688492;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.qz13-radar-card strong {
  margin-top: 8px;
  color: #12384d;
  font-size: 28px;
  line-height: 1;
}

.qz13-radar-card small {
  margin-top: 8px;
  color: #718894;
  font-size: 10px;
}

.qz13-radar-card.orange {
  --qz13-soft: rgba(242, 161, 46, .12);
}

.qz13-radar-card.blue {
  --qz13-soft: rgba(69, 132, 222, .11);
}

.qz13-radar-card.green {
  --qz13-soft: rgba(38, 185, 125, .11);
}

.qz13-radar-card.violet {
  --qz13-soft: rgba(115, 105, 231, .11);
}

.qz13-crm-tabs {
  display: flex;
  gap: 7px;
  width: fit-content;
  padding: 5px;

  border: 1px solid #dbe8ed;
  border-radius: 15px;

  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 25px rgba(8, 43, 64, .045);
}

.qz13-crm-tabs button {
  min-height: 34px;
  padding: 7px 13px;

  border: 0;
  border-radius: 11px;

  background: transparent;
  color: #66818f;

  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.qz13-crm-tabs button.active {
  background:
    linear-gradient(135deg, #0c7da1, #15abc2);
  color: #fff;
  box-shadow: 0 8px 18px rgba(12, 125, 161, .17);
}

.qz13-crm-view {
  display: none;
}

.qz13-crm-view.active {
  display: block;
}

.qz13-crm-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.qz13-crm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 168px;
  padding: 16px;

  border: 1px solid #dce8ed;
  border-radius: 19px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.99),
      rgba(248,252,253,.98)
    );

  box-shadow: 0 13px 31px rgba(8, 43, 64, .055);
}

.qz13-crm-card:hover {
  border-color: #b8dce5;
  transform: translateY(-1px);
}

.qz13-crm-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.qz13-crm-card h4 {
  margin: 13px 0 5px;
  color: #12384d;
  font-size: 15px;
}

.qz13-crm-card p {
  margin: 0;
  color: #69818e;
  font-size: 10px;
  line-height: 1.45;
}

.qz13-crm-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 13px;
}

.qz13-kind {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;

  border-radius: 999px;

  background: #ecf9fc;
  color: #168da7;

  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.qz13-pin {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;

  border: 1px solid #dbe7ec;
  border-radius: 10px;

  background: #fff;
  color: #97aab4;

  cursor: pointer;
}

.qz13-pin.pinned {
  border-color: #f3d9a4;
  background: #fff7e8;
  color: #df951e;
}

.qz13-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 11px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.qz13-stage {
  min-height: 390px;
  padding: 10px;

  border: 1px solid #dce8ed;
  border-radius: 18px;

  background: #f5f9fb;
}

.qz13-stage > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 5px 12px;
}

.qz13-stage > header strong {
  color: #23485c;
  font-size: 11px;
}

.qz13-stage > header span {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  border-radius: 8px;
  background: #e2f4f8;
  color: #128aa4;
  font-size: 9px;
  font-weight: 900;
}

.qz13-stage-card {
  margin-bottom: 8px;
  padding: 11px;

  border: 1px solid #dce8ed;
  border-radius: 14px;

  background: #fff;
  box-shadow: 0 7px 18px rgba(8, 43, 64, .04);
}

.qz13-stage-card strong,
.qz13-stage-card span {
  display: block;
}

.qz13-stage-card strong {
  color: #163c50;
  font-size: 10px;
}

.qz13-stage-card span {
  margin-top: 4px;
  color: #718894;
  font-size: 8px;
}

.qz13-directory-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.qz13-directory-toolbar input {
  width: 100%;
  min-height: 43px;
  padding: 10px 13px;

  border: 1px solid #d5e5eb;
  border-radius: 14px;

  background: #fff;
  color: #24495c;
  outline: none;
}

.qz13-directory-toolbar input:focus {
  border-color: #7dd4e2;
  box-shadow: 0 0 0 4px rgba(38, 204, 231, .09);
}

.qz13-directory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.qz13-directory-filters button {
  min-height: 31px;
  padding: 6px 10px;

  border: 1px solid #d8e6eb;
  border-radius: 999px;

  background: #fff;
  color: #557281;

  font: inherit;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.qz13-directory-filters button.active {
  border-color: #a8dce6;
  background: #eafafd;
  color: #0c819b;
}

/* =========================================================
   MESSAGERIE
   ========================================================= */

.qz13-messenger {
  display: grid !important;
  grid-template-columns:
    minmax(225px, .72fr)
    minmax(420px, 1.55fr)
    minmax(235px, .73fr) !important;

  min-height: 610px;

  overflow: hidden;
  padding: 0 !important;

  border: 1px solid #d9e7ec !important;
  border-radius: 22px !important;

  background: #fff !important;
  box-shadow: 0 17px 40px rgba(8, 43, 64, .06) !important;
}

.qz13-thread-pane {
  min-width: 0;
  padding: 12px;

  border-right: 1px solid #e0eaee;

  background:
    linear-gradient(180deg, #f3f8fa, #f7fafc);
}

.qz13-thread-tools {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.qz13-thread-tools input {
  min-height: 37px;
  width: 100%;
  padding: 8px 10px;

  border: 1px solid #d7e5ea;
  border-radius: 12px;

  background: #fff;
  outline: none;
}

.qz13-thread-filters {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

.qz13-thread-filters button {
  flex: 0 0 auto;
  padding: 5px 8px;

  border: 1px solid #dae7ec;
  border-radius: 999px;

  background: #fff;
  color: #667f8d;

  font: inherit;
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}

.qz13-thread-filters button.active {
  background: #e9f9fc;
  color: #0c819b;
}

.qz13-thread {
  position: relative;
  display: grid !important;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;

  width: 100%;
  margin-bottom: 6px;
  padding: 11px 10px !important;

  border: 1px solid transparent !important;
  border-radius: 14px !important;

  background: transparent !important;
  text-align: left;
  cursor: pointer;
}

.qz13-thread:hover {
  background: rgba(255,255,255,.8) !important;
}

.qz13-thread.active {
  border-color: #d3e6ec !important;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(8, 43, 64, .055);
}

.qz13-thread-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;

  border-radius: 50%;
  background: var(--thread-color, #39cbe5);

  box-shadow: 0 0 0 4px color-mix(
    in srgb,
    var(--thread-color, #39cbe5) 15%,
    transparent
  );
}

.qz13-thread[data-color="blue"] {
  --thread-color: #4e8fe7;
}

.qz13-thread[data-color="violet"] {
  --thread-color: #826fe8;
}

.qz13-thread[data-color="green"] {
  --thread-color: #39b982;
}

.qz13-thread[data-color="orange"] {
  --thread-color: #efa23e;
}

.qz13-thread[data-color="cyan"] {
  --thread-color: #34c7e2;
}

.qz13-thread[data-color="red"] {
  --thread-color: #e76570;
}

.qz13-thread strong,
.qz13-thread small,
.qz13-thread p {
  display: block;
}

.qz13-thread strong {
  color: #183f53;
  font-size: 10px;
}

.qz13-thread small {
  margin-top: 3px;
  color: #78909d;
  font-size: 8px;
}

.qz13-thread p {
  margin: 6px 0 0;
  overflow: hidden;

  color: #67808d;
  font-size: 8px;
  line-height: 1.35;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.qz13-conversation {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
}

.qz13-conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  min-height: 76px;
  padding: 12px 15px;

  border-bottom: 1px solid #e3ecef;
}

.qz13-conversation-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.qz13-conversation-head strong,
.qz13-conversation-head small {
  display: block;
}

.qz13-conversation-head strong {
  color: #153c50;
  font-size: 13px;
}

.qz13-conversation-head small {
  margin-top: 3px;
  color: #768e9a;
  font-size: 8px;
}

.qz13-chat-log {
  display: grid;
  align-content: start;
  gap: 11px;

  min-height: 390px;
  max-height: 500px;
  padding: 16px;

  overflow-y: auto;

  background:
    radial-gradient(
      circle at 95% 5%,
      rgba(38,204,231,.045),
      transparent 22%
    ),
    #fbfdfe;
}

.qz13-message {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  max-width: 78%;
}

.qz13-message.me {
  grid-template-columns: minmax(0, 1fr) 32px;
  justify-self: end;
}

.qz13-message.me .qz13-avatar {
  grid-column: 2;
}

.qz13-message.me > div:last-child {
  grid-row: 1;
  grid-column: 1;
}

.qz13-avatar {
  display: grid;
  place-items: center;

  width: 32px;
  height: 32px;

  border-radius: 11px;

  background:
    linear-gradient(135deg, #0d86a7, #35c8df);

  color: #fff;

  font-size: 9px;
  font-weight: 900;
}

.qz13-message > div:last-child {
  padding: 10px 12px;

  border: 1px solid #e0eaee;
  border-radius: 14px 14px 14px 5px;

  background: #fff;
}

.qz13-message.me > div:last-child {
  border-color: #cfe8ee;
  border-radius: 14px 14px 5px 14px;

  background: #eaf9fc;
}

.qz13-message header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.qz13-message header strong {
  color: #21485b;
  font-size: 9px;
}

.qz13-message header span {
  color: #8ba0aa;
  font-size: 7px;
}

.qz13-message p {
  margin: 6px 0 0;
  color: #506d7c;
  font-size: 9px;
  line-height: 1.5;
}

.qz13-chat-compose {
  padding: 11px 13px;

  border-top: 1px solid #e1ebee;

  background: #fff;
}

.qz13-chat-compose > div {
  display: flex;
  gap: 8px;
}

.qz13-chat-compose textarea {
  flex: 1;
  min-height: 48px;
  padding: 10px;

  border: 1px solid #d8e6eb;
  border-radius: 13px;

  resize: vertical;
}

.qz13-chat-compose small {
  display: block;
  margin-top: 6px;
  color: #8297a1;
  font-size: 7px;
}

.qz13-context {
  min-width: 0;
  padding: 15px;

  border-left: 1px solid #e0eaee;

  background:
    linear-gradient(180deg, #f5f9fb, #f9fbfc);
}

.qz13-context > span {
  color: #16a0ba;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}

.qz13-context h3 {
  margin: 7px 0 14px;
  color: #173e52;
  font-size: 15px;
}

.qz13-context-card {
  margin-bottom: 9px;
  padding: 11px;

  border: 1px solid #dce8ed;
  border-radius: 13px;

  background: #fff;
}

.qz13-context-card strong {
  display: block;
  color: #2f5669;
  font-size: 8px;
  text-transform: uppercase;
}

.qz13-context-card p {
  margin: 5px 0 0;
  color: #6a828f;
  font-size: 9px;
  line-height: 1.4;
}

.qz13-context-actions {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.qz13-context-actions button {
  min-height: 33px;

  border: 1px solid #d8e6eb;
  border-radius: 11px;

  background: #fff;
  color: #436578;

  font: inherit;
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}

.qz13-zeo-context {
  margin-top: 13px;
  padding: 12px;

  border: 1px solid #cfe9ef;
  border-radius: 14px;

  background:
    linear-gradient(135deg, #eefafd, #f8fcfd);
}

.qz13-zeo-context strong {
  color: #128aa5;
  font-size: 9px;
}

.qz13-zeo-context p {
  margin: 5px 0 0;
  color: #65808d;
  font-size: 8px;
  line-height: 1.45;
}

/* =========================================================
   AGENDA SEMAINE
   ========================================================= */

.qz13-week-shell {
  overflow: hidden;
  padding: 0 !important;

  border: 1px solid #d8e6eb !important;
  border-radius: 21px !important;

  background: #fff !important;
  box-shadow: 0 16px 38px rgba(8, 43, 64, .06) !important;
}

.qz13-week-title {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 55px;
  padding: 12px 15px;

  border-bottom: 1px solid #e1ebee;
}

.qz13-week-title strong {
  color: #163e52;
  font-size: 13px;
}

.qz13-week-title span {
  color: #78909c;
  font-size: 9px;
}

.qz13-week-grid {
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(130px, 1fr));

  min-width: 980px;
  overflow-x: auto;
}

.qz13-time-head,
.qz13-day-head {
  position: sticky;
  top: 0;
  z-index: 4;

  min-height: 58px;

  border-bottom: 1px solid #dfe9ed;
  background: #f7fafb;
}

.qz13-day-head {
  display: grid;
  place-items: center;

  border-left: 1px solid #e1ebee;
}

.qz13-day-head span,
.qz13-day-head strong {
  display: block;
  text-align: center;
}

.qz13-day-head span {
  color: #748d99;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.qz13-day-head strong {
  margin-top: 3px;
  color: #21495c;
  font-size: 16px;
}

.qz13-day-head.today {
  background:
    linear-gradient(180deg, #e9fafc, #f4fcfd);
}

.qz13-day-head.today strong {
  color: #0c94ae;
}

.qz13-time-axis {
  display: grid;
  grid-template-rows: repeat(12, 60px);

  background: #f8fafb;
}

.qz13-time-axis span {
  padding: 5px 8px 0 0;

  border-top: 1px solid #e4ecef;

  color: #8296a0;
  font-size: 8px;
  text-align: right;
}

.qz13-day-column {
  position: relative;

  height: 720px;

  border-left: 1px solid #e1ebee;
  background: #fff;
}

.qz13-day-column > i {
  display: block;
  height: 60px;

  border-top: 1px solid #e6edef;
}

.qz13-event {
  position: absolute;
  z-index: 2;
  left: 5px;
  right: 5px;

  min-height: 38px;
  padding: 6px 7px;
  overflow: hidden;

  border: 1px solid rgba(30, 163, 190, .20);
  border-left: 4px solid #25c6e1;
  border-radius: 10px;

  background:
    linear-gradient(135deg, #e8fafc, #f4fcfd);

  color: #21485a;
  text-align: left;
  cursor: pointer;
}

.qz13-event time,
.qz13-event b,
.qz13-event small {
  display: block;
}

.qz13-event time {
  color: #0b94ae;
  font-size: 7px;
  font-weight: 900;
}

.qz13-event b {
  margin-top: 2px;
  overflow: hidden;

  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qz13-event small {
  margin-top: 2px;
  overflow: hidden;

  color: #6b838e;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1250px) {
  .qz13-crm-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qz13-messenger {
    grid-template-columns: 225px minmax(420px, 1fr) !important;
  }

  .qz13-context {
    display: none;
  }
}

@media (max-width: 850px) {
  .qz13-crm-radar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qz13-crm-cards {
    grid-template-columns: 1fr;
  }

  .qz13-messenger {
    grid-template-columns: 1fr !important;
  }

  .qz13-thread-pane {
    max-height: 240px;
    border-right: 0;
    border-bottom: 1px solid #e0eaee;
  }
}
