/* ==========================================================================
   Evenimente organizate — componentele specifice (Modul 12, redesign Modul 14)
   Baza vizuală (carduri, câmpuri, butoane, bannere, cronologie) este în presence.css.
   ========================================================================== */
.event-reports { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.event-reports > * { min-width: 0; }
.event-reports.hidden { display: none; }
.er-notice h3 { margin: 4px 0 8px; } .er-notice p { max-width: 720px; }
.er-connect { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 12px; max-width: 720px; margin-top: 14px; }
.er-connect .pz-btn { min-height: 46px; margin-bottom: 12px; }
.er-you { align-self: flex-start; }
.er-form { margin: 0; }
.er-edit-banner.hidden { display: none; }

/* selectorul de tip: căutare + creare directă + control separat pentru tip nou */
.er-type-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.er-combo { position: relative; }
.er-combo input { width: 100%; padding-right: 44px !important; }
.er-combo-toggle { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s ease, color .2s ease; }
.er-combo-toggle:hover { background: var(--surface-2); color: var(--theme-highlight); }
.er-new-btn { min-height: 46px; } .er-new-btn.on { border-color: var(--theme-accent); background: var(--theme-soft); color: var(--theme-highlight); }
.er-options { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 270px; margin: 0; padding: 6px; overflow-y: auto; list-style: none; border: 1px solid var(--theme-border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-pop); animation: pzIn .18s ease both; }
.er-options li { padding: 10px 12px; border-radius: 9px; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.er-options li:hover, .er-options li.on { background: var(--theme-soft); color: var(--theme-highlight); }
.er-options li.er-create { margin-top: 4px; border-top: 1px dashed var(--line-strong); border-radius: 0 0 9px 9px; color: var(--theme-highlight); font-weight: 700; }
.er-options li.er-disabled { color: var(--muted); cursor: default; font-size: 12.5px; } .er-options li.er-disabled:hover { background: none; color: var(--muted); }
.er-new-box { display: grid; gap: 8px; margin-top: 10px; padding: 14px; border: 1px dashed var(--theme-accent); border-radius: 14px; background: color-mix(in srgb, var(--theme-soft) 55%, transparent); animation: pzIn .25s ease both; }
.er-new-box label { color: var(--text); font-weight: 700; }
.er-new-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.er-new-row input { box-sizing: border-box; min-height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--field); color: var(--text); font: 500 14px Inter, Arial, sans-serif; }
.er-new-row input:focus { outline: 0; border-color: var(--theme-highlight); box-shadow: 0 0 0 3px var(--theme-soft); }
.er-new-row input.is-invalid { border-color: var(--danger-fg); }
.er-type-hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 500; }
.er-type-hint.er-new { color: var(--text); }

/* istoric */
.er-filters { margin-bottom: 8px; }
.er-count { margin: 0 0 12px; font-size: 12px; }
.er-versions summary { color: var(--theme-highlight); font-size: 12px; cursor: pointer; }
.er-versions ol { display: grid; gap: 6px; margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text-2); }
.er-versions li { display: grid; gap: 2px; }

/* administrare tipuri (panou lateral, doar administrator) */
.er-types { display: grid; gap: 16px; }
.er-type-add { display: flex; gap: 10px; flex-wrap: wrap; }
.er-type-add input { flex: 1 1 240px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--field); color: var(--text); font: inherit; }
.er-type-table { width: 100%; border-collapse: collapse; }
.er-type-table th, .er-type-table td { padding: 10px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.er-type-table tr.er-off td { opacity: .6; }
.er-type-name { width: 100%; min-width: 160px; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-weight: 700; }
.er-type-name:hover { border-color: var(--line-soft); } .er-type-name:focus { border-color: var(--theme-accent); background: var(--field); outline: 0; }
.er-audit { display: grid; gap: 6px; max-height: 320px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.er-audit li { display: grid; grid-template-columns: 130px auto 1fr; gap: 4px 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; }
.er-audit li span { grid-column: 1 / -1; color: var(--text-2); } .er-audit time { color: var(--muted); }

@media (max-width: 640px) {
  .er-connect { grid-template-columns: minmax(0, 1fr); } .er-connect .pz-btn { margin-bottom: 0; }
  .er-type-row { grid-template-columns: minmax(0, 1fr); } .er-new-btn { width: 100%; }
  .er-new-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .er-new-row input { grid-column: 1 / -1; }
}
