/* "Export amendments" dialog (amendments-export.js), opened from the Amendments tab of a MEP. */
.max-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28); color: var(--ma-ink, #15211c); }
.max-dialog::backdrop { background: rgba(15, 23, 42, .35); }
.max-box { display: grid; gap: 14px; padding: 20px 22px 18px; margin: 0; font-size: 14px; }
.max-head { display: flex; justify-content: space-between; align-items: center; }
.max-head h3 { margin: 0; font-size: 18px; }
.max-x { width: 30px; height: 30px; border: 0; border-radius: 6px; background: none; color: #5d6c65; cursor: pointer; font-size: 15px; }
.max-x:hover { background: #f2f6f4; }
.max-help { margin: -6px 0 0; color: #5d6c65; font-size: 13px; }
.max-field { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
.max-label, .max-filters > summary { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #5d6c65; padding: 0; }
.max-label em, .max-filters > summary em, .max-radio em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: #8a9893; }
.max-filters > summary { cursor: pointer; }
.max-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.max-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; background: #eef4ff; border: 1px solid #c9dafc; font-size: 13px; }
.max-chip i { font-style: normal; color: #5d6c65; font-size: 12px; }
.max-chip button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: #5d6c65; font-size: 11px; }
.max-chip button:hover { background: #dbe7fd; color: #15211c; }
.max-empty { color: #8a9893; font-size: 13px; }
.max-search { position: relative; }
.max-search input, .max-grid input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid rgba(83, 103, 94, .34); border-radius: 8px; font: inherit; font-size: 13px; background: #fff; color: inherit; }
.max-search input:focus, .max-grid input:focus { outline: 2px solid #276ef1; outline-offset: 1px; }
.max-hits { position: absolute; left: 0; right: 0; top: 38px; z-index: 3; margin: 0; padding: 4px; list-style: none; background: #fff;
  border: 1px solid rgba(83, 103, 94, .28); border-radius: 10px; box-shadow: 0 12px 28px rgba(21, 33, 28, .14); max-height: 260px; overflow-y: auto; }
.max-hits button { display: block; width: 100%; padding: 7px 9px; border: 0; border-radius: 6px; background: none; text-align: left; font: inherit; font-size: 13px; cursor: pointer; color: inherit; }
.max-hits button:hover, .max-hits button:focus-visible { background: #f2f6f4; outline: none; }
.max-hits i { font-style: normal; color: #5d6c65; font-size: 12px; }
.max-hits .max-empty { padding: 7px 9px; }
.max-radio { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; cursor: pointer; }
.max-radio input:disabled + span { color: #a2aeaa; }
.max-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 8px; }
.max-grid label { display: grid; gap: 4px; font-size: 12px; color: #5d6c65; }
.max-count { margin: 0; min-height: 20px; font-size: 13px; color: #2c3a34; }
.max-warn { display: block; margin-top: 3px; color: #8a5a12; }
.max-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
@media (max-width: 520px) { .max-grid { grid-template-columns: 1fr; } }
.max-actions button { height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(83, 103, 94, .34); background: #fff; color: #15211c; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.max-actions button:hover:not(:disabled) { border-color: #276ef1; color: #1859cc; }
.max-actions button.primary { background: #276ef1; border-color: #276ef1; color: #fff; }
.max-actions button.primary:hover:not(:disabled) { background: #1859cc; color: #fff; }
.max-actions button:disabled { opacity: .5; cursor: default; }
