/* Pièces jointes PDF — layout type agenda home */

.pan-attachments {
  margin-top: 1.5rem;
  clear: both;
}

.pan-attachments > p {
  margin-bottom: 0.75rem;
  color: var(--bleu-fonce, #1c3745);
  font-size: 1.25rem;
  font-weight: 700;
}

.pan-attachments > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pan-attachments__item--pdf {
  margin: 0;
  padding-top: 1rem;
  overflow: hidden;
  border-top: 1px solid rgb(0 0 0 / 8%);
}

.pan-attachments__item--pdf:first-child {
  border-top: 0;
  padding-top: 0;
}

.pan-attachments__row {
  display: flow-root;
}

.pan-attachments__image {
  float: left;
  width: 100px;
  margin: 0 1rem 0.5rem 0;
}

.pan-attachments__thumb-btn {
  display: block;
  padding: 0;
  border: 1px solid rgb(0 0 0 / 12%);
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.pan-attachments__thumb {
  display: block;
  width: 100px;
  height: auto;
}

.pan-attachments__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  color: var(--orange, #fb4d00);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.pan-attachments__title--icon-only {
  margin-bottom: 0.5rem;
}

.pan-attachments__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  color: var(--rouge, #ff0000);
  font-size: 2.75rem;
  line-height: 1;
}

.pan-attachments__icon .fa-file-pdf {
  font-size: inherit;
  line-height: 1;
}

.pan-pdf-modal .modal-title .pan-attachments__icon {
  font-size: 1.5rem;
}

.pan-attachments__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pan-attachments__actions .btn,
.pan-attachments__actions .btn-primary,
.pan-attachments__actions a.btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none !important;
  border: 0;
  border-radius: 0;
  background-color: var(--bleu, #00a0eb) !important;
  color: var(--blanc, #ffffff) !important;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.pan-attachments__actions .btn:hover,
.pan-attachments__actions .btn:focus,
.pan-attachments__actions .btn-primary:hover,
.pan-attachments__actions .btn-primary:focus,
.pan-attachments__actions a.btn:hover,
.pan-attachments__actions a.btn:focus {
  background-color: var(--bleu-fonce, #163645) !important;
  color: var(--blanc, #ffffff) !important;
}

.pan-pdf-preview__toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.pan-pdf-preview__toolbar .btn,
.pan-pdf-preview__toolbar a.btn {
  border-radius: 0;
  color: var(--blanc, #ffffff) !important;
  background-color: var(--bleu, #00a0eb) !important;
  border: 0;
}

.pan-pdf-preview__toolbar .btn:hover,
.pan-pdf-preview__toolbar .btn:focus,
.pan-pdf-preview__toolbar a.btn:hover,
.pan-pdf-preview__toolbar a.btn:focus {
  background-color: var(--bleu-fonce, #163645) !important;
  color: var(--blanc, #ffffff) !important;
}

.pan-pdf-preview__counter {
  margin-inline: 0.25rem;
  font-size: 0.9rem;
}

.pan-pdf-preview__stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: auto;
  max-height: 75vh;
}

.pan-pdf-preview__img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 10px rgb(0 0 0 / 12%);
}

.pan-pdf-modal .modal-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
