﻿/* GED-WEB-2E3 — Réception et traitement */

.circ-2e3-zone {
  margin-top: 12px;
  border: 1px solid #dfe7f0;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.circ-2e3-zone-head {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}

.circ-2e3-zone-head strong {
  color: #354960;
  font-size: 10px;
}

.circ-2e3-zone-head span {
  color: #7c8899;
  font-size: 8px;
  line-height: 1.4;
}

.circ-2e3-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.circ-2e3-action {
  min-height: 32px;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  background: #fff;
  padding: 6px 10px;
  color: #3b4d64;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.circ-2e3-action:hover:not(:disabled) {
  background: #f7faff;
}

.circ-2e3-action.is-primary {
  border-color: #a8c4e8;
  background: #f2f7ff;
  color: #245fbd;
}

.circ-2e3-action.is-success {
  border-color: #b7d9c4;
  background: #f0faf4;
  color: #277049;
}

.circ-2e3-action.is-warning {
  border-color: #e8c78e;
  background: #fff8e9;
  color: #845a17;
}

.circ-2e3-action.is-danger {
  border-color: #e7b9b9;
  background: #fff1f1;
  color: #a23939;
}

.circ-2e3-action:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.circ-2e3-note {
  display: block;
  margin-top: 7px;
  color: #7a8798;
  font-size: 8px;
  line-height: 1.4;
}

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

.circ-2e3-dialog {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(10, 24, 45, .25);
}

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

.circ-2e3-dialog-head > div {
  display: grid;
  gap: 3px;
}

.circ-2e3-dialog-head h3 {
  margin: 0;
  color: #2d4059;
  font-size: 15px;
}

.circ-2e3-dialog-head p {
  margin: 0;
  color: #7b8798;
  font-size: 9px;
}

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

.circ-2e3-dialog-body {
  padding: 14px 15px;
}

.circ-2e3-dialog-body label {
  display: grid;
  gap: 5px;
}

.circ-2e3-dialog-body label > span {
  color: #65748a;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.circ-2e3-dialog-body textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid #cfd9e5;
  border-radius: 9px;
  padding: 9px;
  color: #34475f;
  font: inherit;
  font-size: 10px;
}

.circ-2e3-warning {
  margin-top: 10px;
  border: 1px solid #ebcb92;
  border-radius: 8px;
  background: #fff9ec;
  padding: 8px 9px;
  color: #835b1d;
  font-size: 8px;
  line-height: 1.45;
}

.circ-2e3-error {
  margin-top: 10px;
  border: 1px solid #edbbbb;
  border-radius: 8px;
  background: #fff1f1;
  padding: 8px 9px;
  color: #a03939;
}

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

.circ-2e3-error strong {
  font-size: 9px;
}

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

.circ-2e3-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 11px 15px;
  border-top: 1px solid #e5eaf1;
  background: #fbfcfe;
}

.circ-2e3-dialog-footer .btn,
.circ-2e3-dialog-footer .btn-secondary {
  min-width: 120px;
}

@media (max-width: 650px) {
  .circ-2e3-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .circ-2e3-dialog-footer {
    position: sticky;
    bottom: 0;
  }

  .circ-2e3-dialog-footer > * {
    flex: 1 1 0;
    min-width: 0 !important;
  }
}

[hidden] {
  display: none !important;
}
