/* « Message aux parents délégués » dialog (APE file, public/delegate-guide-admin.js).
   Injected on /administration/ only, after Carlos's stylesheets. */
.ape-guide-status { margin-top: 6px !important; }
.ape-guide-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}
.ape-guide-dialog::backdrop { background: #24364299; }
.ape-guide-dialog .ape-guide-card { margin: 0; }
.ape-guide-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ape-guide-head h2 { margin: 0 !important; }
.ape-guide-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.portal-card .ape-guide-tabs button[aria-selected="true"] { background: #243642; color: #fff; border-color: #243642; }
.ape-guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ape-guide-editor { margin-top: 0 !important; }
.ape-guide-editor textarea { min-height: 360px !important; font: .92rem/1.55 Arial, Helvetica, sans-serif !important; }
.ape-guide-editor small { font-weight: 400; }
.ape-guide-preview h3 { margin-top: 0; }
.ape-guide-subject { font-weight: 700; color: #243642 !important; overflow-wrap: anywhere; }
.ape-guide-preview .prompt-box { max-height: 420px; overflow: auto; margin: 0; }
.ape-guide-recipients { margin-top: 18px; }
.ape-guide-recipients summary { cursor: pointer; font-weight: 650; }
.ape-guide-recipients .parent-table-scroll { max-height: 260px; overflow: auto; }
.ape-guide-recipients table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ape-guide-recipients th, .ape-guide-recipients td { padding: 6px 8px; border-bottom: 1px solid #dce5eb; text-align: left; overflow-wrap: anywhere; }
.ape-guide-test { display: inline-flex; gap: 6px; align-items: center; }
.ape-guide-test select { padding: 10px; border: 1px solid #bfcfd9; border-radius: 7px; background: #fff; font: inherit; width: auto; }
.ape-guide-notice { min-height: 1.5em; font-weight: 600; color: #365f79 !important; }
@media (max-width: 820px) {
  .ape-guide-grid { grid-template-columns: 1fr; }
  .ape-guide-editor textarea { min-height: 260px !important; }
}
