﻿/* GED-WEB-2E2 — Transmettre un document */

.transmit-content {
  max-width: 1400px;
  margin: 0 auto;
}

.transmit-head,
.transmit-guidance,
.transmit-card {
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  background: #fff;
}

.transmit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px;
  margin-bottom: 10px;
}

.transmit-head h1 {
  margin: 2px 0 5px;
  color: #263850;
  font-size: 22px;
}

.transmit-head p {
  max-width: 820px;
  margin: 0;
  color: #6e7a8d;
  font-size: 11px;
  line-height: 1.55;
}

.transmit-head-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.transmit-head-actions > * {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 10px;
}

.transmit-guidance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #e2e8ef;
}

.transmit-guidance > div {
  display: grid;
  gap: 3px;
  background: #f8fbff;
  padding: 11px 14px;
}

.transmit-guidance strong {
  color: #2e4f7b;
  font-size: 10px;
}

.transmit-guidance span {
  color: #6c788a;
  font-size: 9px;
  line-height: 1.45;
}

.transmit-card {
  overflow: hidden;
}

.transmit-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #e3e9f1;
  background: #f8fafc;
}

.transmit-steps button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  border: 0;
  border-right: 1px solid #e4e9f0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 9px 13px;
  color: #7a8799;
  font: inherit;
  cursor: pointer;
}

.transmit-steps button:last-child {
  border-right: 0;
}

.transmit-steps button b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e9eef5;
  color: #68778d;
  font-size: 10px;
}

.transmit-steps button span {
  font-size: 10px;
  font-weight: 800;
}

.transmit-steps button.is-active {
  border-bottom-color: #245fbd;
  background: #fff;
  color: #245fbd;
}

.transmit-steps button.is-active b {
  background: #245fbd;
  color: #fff;
}

.transmit-steps button.is-done {
  color: #277049;
}

.transmit-steps button.is-done b {
  background: #e8f6ee;
  color: #277049;
}

.transmit-steps button:disabled {
  cursor: default;
  opacity: .55;
}

.transmit-body {
  min-height: 480px;
}

.transmit-panel,
.transmit-success {
  padding: 18px;
}

.transmit-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.transmit-panel-head > div {
  max-width: 850px;
}

.transmit-panel-head span,
.transmit-selected-document > div > span {
  color: #5b7fac;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.transmit-panel-head h2 {
  margin: 3px 0 3px;
  color: #263850;
  font-size: 18px;
}

.transmit-panel-head p {
  margin: 0;
  color: #7a8698;
  font-size: 10px;
  line-height: 1.5;
}

.transmit-count {
  border: 1px solid #d9e1eb;
  border-radius: 999px;
  background: #f8fafc;
  padding: 5px 9px;
  color: #5f6f84 !important;
  font-size: 9px !important;
}

.transmit-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  max-width: 920px;
  margin-bottom: 14px;
}

.transmit-search label,
.transmit-settings label,
.transmit-service-picker > label {
  display: grid;
  gap: 4px;
}

.transmit-search label > span,
.transmit-settings label > span,
.transmit-service-picker > label > span {
  color: #69768a;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.transmit-search input,
.transmit-settings input,
.transmit-settings select,
.transmit-settings textarea,
.transmit-service-picker input {
  width: 100%;
  border: 1px solid #d0d9e5;
  border-radius: 9px;
  background: #fff;
  padding: 8px 9px;
  color: #2f415a;
  font: inherit;
  font-size: 11px;
}

.transmit-search input,
.transmit-settings input,
.transmit-settings select,
.transmit-service-picker input {
  min-height: 36px;
}

.transmit-settings textarea {
  resize: vertical;
}

.transmit-search input:focus,
.transmit-settings input:focus,
.transmit-settings select:focus,
.transmit-settings textarea:focus,
.transmit-service-picker input:focus {
  border-color: #7ea4d8;
  outline: 2px solid rgba(36, 95, 189, .10);
}

.transmit-document-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.transmit-doc-result,
.transmit-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  border: 1px solid #e0e6ee;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  color: #394b64;
  text-align: left;
  cursor: pointer;
}

.transmit-doc-result:hover,
.transmit-service-item:hover {
  border-color: #a9bfdd;
  background: #f9fbff;
}

.transmit-doc-result.is-disabled,
.transmit-service-item.is-blocked {
  opacity: .6;
  cursor: default;
}

.transmit-doc-result-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.transmit-doc-result-main strong {
  color: #275d9d;
  font-size: 9px;
}

.transmit-doc-result-main b {
  overflow: hidden;
  color: #30425b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transmit-doc-result-main small {
  color: #8190a3;
  font-size: 9px;
}

.transmit-doc-status {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f2f5f9;
  padding: 4px 7px;
  color: #66768b;
  font-size: 8px;
  font-weight: 800;
}

.transmit-selected-document {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(0, 2fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #bdd4ee;
  border-radius: 11px;
  background: #f6faff;
  padding: 12px;
}

.transmit-selected-document > div:first-child {
  display: grid;
  gap: 2px;
}

.transmit-selected-document strong {
  color: #2c405b;
  font-size: 12px;
}

.transmit-selected-document small {
  color: #718096;
  font-size: 9px;
}

.transmit-doc-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.transmit-doc-meta span {
  display: grid;
  gap: 1px;
  color: #586a81;
  font-size: 9px;
}

.transmit-doc-meta b {
  color: #8a96a6;
  font-size: 7px;
  text-transform: uppercase;
}

.transmit-recipient-layout {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 14px;
}

.transmit-service-picker,
.transmit-recipient-selected {
  border: 1px solid #e1e7ef;
  border-radius: 11px;
  background: #fbfcfe;
  padding: 12px;
}

.transmit-service-list {
  display: grid;
  gap: 5px;
  max-height: 390px;
  margin-top: 9px;
  overflow: auto;
}

.transmit-service-item span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.transmit-service-item strong {
  color: #33455f;
  font-size: 10px;
}

.transmit-service-item small {
  color: #8190a3;
  font-size: 8px;
}

.transmit-service-item b {
  color: #2d67ad;
  font-size: 8px;
  white-space: nowrap;
}

.transmit-service-item.is-selected {
  border-color: #b8d9c6;
  background: #f2fbf5;
}

.transmit-service-item.is-selected b {
  color: #277049;
}

.transmit-service-item.is-blocked b {
  color: #9a5b3e;
}

.transmit-subhead {
  display: grid;
  gap: 2px;
  margin-bottom: 9px;
}

.transmit-subhead strong {
  color: #33465f;
  font-size: 11px;
}

.transmit-subhead span {
  color: #7a8798;
  font-size: 8px;
}

.transmit-recipient-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #e1e7ef;
  border-radius: 9px;
  background: #fff;
  padding: 8px 9px;
  margin-bottom: 6px;
}

.transmit-recipient-item.is-principal {
  border-color: #acc8e7;
  background: #f7fbff;
}

.transmit-recipient-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}

.transmit-recipient-item label span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.transmit-recipient-item label strong {
  color: #33455e;
  font-size: 10px;
}

.transmit-recipient-item label small {
  color: #8290a2;
  font-size: 8px;
}

.transmit-principal-badge {
  border-radius: 999px;
  background: #edf3fa;
  padding: 4px 7px;
  color: #476889;
  font-size: 8px;
  font-weight: 800;
}

.transmit-recipient-item.is-principal .transmit-principal-badge {
  background: #e8f3ff;
  color: #245fbd;
}

.transmit-remove {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #e3e8ef;
  border-radius: 7px;
  background: #fff;
  color: #a35353;
  font: inherit;
  cursor: pointer;
}

.transmit-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 980px;
}

.transmit-settings label.is-wide {
  grid-column: 1 / -1;
}

.transmit-settings small {
  color: #8a96a7;
  font-size: 8px;
  line-height: 1.4;
}

.transmit-responsibility-warning {
  max-width: 980px;
  margin-top: 12px;
  border: 1px solid #efc985;
  border-radius: 10px;
  background: #fff9ec;
  padding: 10px 12px;
}

.transmit-responsibility-warning strong {
  display: block;
  color: #85591b;
  font-size: 10px;
}

.transmit-responsibility-warning span {
  color: #8d6b39;
  font-size: 9px;
}

.transmit-review {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.transmit-review > section {
  min-width: 0;
  border: 1px solid #e0e6ee;
  border-radius: 11px;
  background: #fbfcfe;
  padding: 11px;
}

.transmit-review h3 {
  margin: 0 0 8px;
  color: #33465f;
  font-size: 11px;
}

.transmit-review section > div > div {
  display: grid;
  gap: 1px;
  padding: 6px 0;
  border-bottom: 1px solid #edf1f5;
}

.transmit-review section > div > div:last-child {
  border-bottom: 0;
}

.transmit-review span {
  color: #8894a4;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.transmit-review strong {
  color: #3d4e64;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.transmit-review-recipient {
  grid-template-columns: auto 1fr !important;
  gap: 2px 7px !important;
}

.transmit-review-recipient small {
  grid-column: 2;
  color: #8490a0;
  font-size: 8px;
}

.transmit-confirm {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 980px;
  margin-top: 14px;
  border: 1px solid #e2b66d;
  border-radius: 10px;
  background: #fff8e8;
  padding: 11px;
  cursor: pointer;
}

.transmit-confirm span {
  display: grid;
  gap: 2px;
}

.transmit-confirm strong {
  color: #7c541c;
  font-size: 10px;
}

.transmit-confirm small {
  color: #8d6e42;
  font-size: 9px;
}

.transmit-submit-error {
  max-width: 980px;
  margin-top: 12px;
  border: 1px solid #efb7b7;
  border-radius: 9px;
  background: #fff1f1;
  padding: 9px 11px;
  color: #9d3838;
}

.transmit-submit-error strong,
.transmit-submit-error small {
  display: block;
}

.transmit-submit-error strong {
  font-size: 10px;
}

.transmit-submit-error small {
  margin-top: 3px;
  font-size: 8px;
}

.transmit-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  border-top: 1px solid #e5eaf1;
  background: #fbfcfe;
  padding: 10px 18px;
}

.transmit-footer-spacer {
  flex: 1 1 auto;
}

.transmit-footer .btn,
.transmit-footer .btn-secondary {
  min-width: 125px;
}

.transmit-success {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: 40px;
}

.transmit-success-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #e8f7ee;
  color: #267147;
  font-size: 24px;
  font-weight: 900;
}

.transmit-success > div:nth-child(2) > span {
  color: #4f7a61;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.transmit-success h2 {
  margin: 3px 0 4px;
  color: #2f435d;
  font-size: 20px;
}

.transmit-success p {
  max-width: 700px;
  margin: 0;
  color: #718095;
  font-size: 10px;
}

.transmit-success-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 1px;
  width: min(900px, 100%);
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e2e8ef;
  border-radius: 10px;
  background: #e2e8ef;
}

.transmit-success-grid > div {
  display: grid;
  gap: 2px;
  background: #fff;
  padding: 10px;
}

.transmit-success-grid span {
  color: #8995a5;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.transmit-success-grid strong {
  color: #3b4d64;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.transmit-success-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}

.transmit-empty {
  padding: 22px 12px;
  color: #7c8899;
  font-size: 10px;
  text-align: center;
}

.transmit-empty.is-warning {
  color: #8a611f;
}

.transmit-empty.is-error {
  color: #a43c3c;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .transmit-document-results,
  .transmit-review {
    grid-template-columns: 1fr;
  }

  .transmit-recipient-layout {
    grid-template-columns: 1fr;
  }

  .transmit-selected-document {
    grid-template-columns: 1fr;
  }

  .transmit-success-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .transmit-head {
    flex-direction: column;
  }

  .transmit-head-actions {
    width: 100%;
  }

  .transmit-head-actions > * {
    flex: 1 1 auto;
  }

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

  .transmit-settings label.is-wide {
    grid-column: auto;
  }

  .transmit-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .transmit-steps button {
    justify-content: center;
    padding: 8px 4px;
  }

  .transmit-steps button span {
    display: none;
  }

  .transmit-search {
    grid-template-columns: 1fr;
  }

  .transmit-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
  }

  .transmit-footer .btn,
  .transmit-footer .btn-secondary {
    min-width: 0;
    flex: 1 1 auto;
  }

  .transmit-success-grid {
    grid-template-columns: 1fr;
  }
}
