/* Compact event dialogs. Scoped to avoid changing other application forms. */
#event-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 24px 80px #0f172a38;color:#334155;overscroll-behavior:contain}
#event-dialog:not([open]){display:none}
#event-dialog::backdrop{background:#0f172aa6;backdrop-filter:blur(5px)}
.event-panel{padding:18px;font-size:13px;line-height:1.5;background:#fff}
.event-panel-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.event-eyebrow{margin:0;font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#0f766e}
.event-panel-heading{margin:0;font-size:16px;font-weight:700;color:#0f172a;display:flex;align-items:center;gap:8px}
.event-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;border-radius:7px;background:#e6f5f2;color:#0f766e;padding:0 6px;font-size:11px;font-weight:600}
.event-close{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:30px;height:30px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;color:#64748b;font-size:20px;line-height:1;cursor:pointer}
.event-close:hover{background:#e2e8f0;color:#0f172a}
.event-banner{position:relative;overflow:hidden;border-radius:12px;background:#0f766e;margin-bottom:16px}
.event-banner-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.event-banner-shade{position:absolute;inset:0;background:linear-gradient(100deg,#0f172acc,#0f172a66)}
.event-banner-content{position:relative;display:flex;align-items:center;gap:12px;min-height:130px;padding:18px}
.event-banner-logo{flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:6px;background:#fff;border:1px solid #ffffff80;border-radius:10px;box-shadow:0 4px 14px #0f172a1a}
.event-banner-logo img{display:block;width:48px;height:48px;object-fit:contain}
.event-banner-title{flex:1;min-width:0;margin:0;font-size:18px;font-weight:700;line-height:1.4;color:#fff;overflow-wrap:anywhere;text-shadow:0 1px 8px #0003}
.event-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.event-field label{display:block;margin-bottom:5px;color:#475569;font-size:11px;font-weight:600}
.event-required{color:#0d9488}
.event-panel input:not([type=hidden]):not([type=checkbox]),.event-panel select{box-sizing:border-box;width:100%;margin:0;min-height:36px;border:1px solid #dce3eb;border-radius:8px;background:#f8fafc;padding:7px 10px;font:inherit;font-size:13px;color:#1e293b;box-shadow:none;transition:border-color .15s,box-shadow .15s}
.event-panel input:focus,.event-panel select:focus{outline:none;border-color:#14b8a6;box-shadow:0 0 0 3px #14b8a61a;background:#fff}
.event-panel input[type=checkbox]{width:15px;height:15px;border-radius:4px;accent-color:#0f766e;cursor:pointer}
.event-field-errors{color:#dc2626;font-size:11px;margin-top:4px}
.event-field-errors ul{list-style:none;padding:0;margin:0}
.event-help{font-size:12px;color:#64748b;margin:0 0 12px}
.event-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid #edf2f7}
.event-btn{display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:34px;padding:7px 13px;border:1px solid #dce3eb;border-radius:8px;background:#fff;color:#475569;font-size:12px;font-weight:600;line-height:1.4;cursor:pointer;text-decoration:none;transition:background .15s,box-shadow .15s}
.event-btn:hover{background:#f1f5f9}
.event-btn:focus-visible,.event-close:focus-visible{outline:2px solid #14b8a6;outline-offset:3px}
.event-btn-primary{background:#0f766e;border-color:#0f766e;color:#fff;box-shadow:0 2px 5px #0f766e20}
.event-btn-primary:hover{background:#115e59;border-color:#115e59}
.event-btn.htmx-request{opacity:.6;pointer-events:none}
.event-notice{padding:10px 12px;border:1px solid #ccfbf1;border-radius:9px;background:#f0fdfa;color:#115e59;font-size:12px;margin-bottom:12px}
.event-notice-error{border-color:#fee2e2;background:#fff1f2;color:#be123c}
.event-table-wrap{position:relative;max-height:48dvh;overflow:auto;border:1px solid #e2e8f0;border-radius:10px;overscroll-behavior:contain}
.event-table{width:100%;border-collapse:separate;border-spacing:0;text-align:start;font-size:12px;white-space:nowrap}
.event-table th{position:sticky;top:0;z-index:1;padding:9px 10px;background:#f1f5f9;border-bottom:1px solid #e2e8f0;color:#64748b;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.event-table td{padding:6px 8px;border-bottom:1px solid #f1f5f9;vertical-align:middle;color:#475569}
.event-table tr:last-child td{border-bottom:0}
.event-table tbody tr:nth-child(even){background:#fafcfd}
.event-table tbody tr:hover{background:#f0fdfa}
.event-table td input:not([type=hidden]):not([type=checkbox]),.event-table td select{min-height:30px;font-size:12px;padding:5px 7px;background:transparent;border-color:transparent;border-radius:6px;min-width:110px}
.event-table td input[type=email]{min-width:185px}
.event-table td select{min-width:68px}
.event-table td input:hover,.event-table td select:hover{border-color:#cbd5e1;background:#fff}
.event-table .event-empty{padding:32px 16px;text-align:center;color:#94a3b8}
.event-detail-backdrop{background:#0f172aa6;backdrop-filter:blur(5px)}
.event-detail-shell{padding:12px}
.event-detail-card{max-width:640px;overflow:hidden;border:1px solid #ffffff30;border-radius:18px;box-shadow:0 24px 80px #0f172a38;font-size:13px}
.event-detail-header{padding:20px;background:#0f766e}
.event-detail-header>div.relative{gap:10px;align-items:center;min-height:90px}
.event-detail-header h3{font-size:18px;line-height:1.4}
.event-detail-header #eventModalOrganizerLogo{width:58px;height:58px;padding:6px;border-radius:10px}
.event-detail-header button{width:28px;height:28px;border-radius:8px;background:#ffffff20;display:flex;align-items:center;justify-content:center}
.event-detail-header button svg{width:16px;height:16px}
.event-detail-body{padding:18px;max-height:57dvh;overflow:auto;overscroll-behavior:contain}
.event-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.event-detail-grid>div{padding:10px;border:1px solid #edf2f7;border-radius:10px;background:#f8fafc;gap:9px}
.event-detail-grid>div>div:first-child{width:30px;height:30px;border-radius:8px;background:#e6f5f2}
.event-detail-grid svg{width:15px;height:15px}
.event-detail-grid>div>div:last-child{min-width:0;overflow-wrap:anywhere}
.event-detail-grid p:first-child,.event-detail-body h4{font-size:10px;font-weight:600;letter-spacing:.03em;color:#64748b;margin-bottom:3px}
.event-detail-grid p:last-child{font-size:12px;line-height:1.5;font-weight:600}
.event-detail-organizer{padding:0 2px;margin-bottom:14px;overflow-wrap:anywhere}
.event-detail-organizer p{font-size:12px}
.event-detail-documents{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
.event-detail-documents a{padding:6px 10px;border:1px solid #ccfbf1;border-radius:7px;background:#f0fdfa;color:#0f766e;font-size:11px;font-weight:600;text-decoration:none}
.event-detail-documents a:hover{background:#ccfbf1}
.event-detail-body #eventModalDescription{font-size:12px;line-height:1.75;overflow-wrap:anywhere}
.event-detail-body #eventModalDescription img{max-width:100%;height:auto;border-radius:8px}
.event-detail-footer{margin:0;padding:12px 18px;border-top:1px solid #edf2f7;background:#f8fafc;gap:7px}
@media(min-width:640px){.event-panel{padding:22px}.event-banner-content{min-height:145px;padding:20px}.event-banner-logo img{width:54px;height:54px}.event-banner-title{font-size:20px}}
@media(max-width:479px){.event-form-grid,.event-detail-grid{grid-template-columns:1fr}.event-banner-content{gap:10px;padding:14px;min-height:115px}.event-banner-title,.event-detail-header h3{font-size:16px}.event-banner-logo img{width:40px;height:40px}.event-panel{padding:14px}.event-detail-header{padding:16px}.event-detail-header #eventModalOrganizerLogo{width:46px;height:46px}.event-detail-body{padding:14px}.event-detail-footer{padding:10px 14px}.event-actions .event-btn{flex:1}.event-detail-footer .event-btn{flex:1}.event-table-wrap{position:relative;max-height:43dvh}}
@media(prefers-reduced-motion:reduce){.event-btn,.event-panel input,.event-panel select{transition:none}}
/* Wider columns keep participant records legible in the two-axis scroll area. */
.event-table{min-width:1560px;table-layout:fixed}
.event-table th,.event-table td{min-width:150px}
.event-table th:nth-child(1){width:65px;min-width:65px}
.event-table th:nth-child(2){width:100px;min-width:100px}
.event-table th:nth-child(3),.event-table th:nth-child(4){width:160px}
.event-table th:nth-child(5){width:210px}
.event-table th:nth-child(6){width:250px}
.event-table th:nth-child(7){width:180px}
.event-table th:nth-child(8){width:145px}
.event-table th:nth-child(9),.event-table th:nth-child(10){width:160px}
.event-cell-display{display:flex;align-items:center;gap:7px;width:100%;min-height:32px;padding:6px 8px;text-align:start;border:1px solid transparent;border-radius:6px;background:transparent;color:inherit;font:inherit;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.event-cell-display:hover{background:#fff;border-color:#cbd5e1}
.event-cell-display:focus-visible{outline:2px solid #14b8a6;outline-offset:1px;background:#fff}
.event-cell-display input[type=checkbox]{pointer-events:none;opacity:1}
.event-cell-empty{color:#94a3b8}
.event-table td form input:not([type=hidden]):not([type=checkbox]),.event-table td form select{width:100%;min-width:0;border-color:#99f6e4;background:#fff}
.event-table-wrap{overflow-x:auto;overflow-y:auto;scrollbar-gutter:stable}
.event-access{padding:20px}
.event-access .event-panel-top{margin-bottom:12px}
.event-access-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #ccfbf1;border-radius:10px;background:#f0fdfa;color:#0f766e}
.event-access .event-panel-heading{font-size:16px}
.event-access-name{margin:5px 0 10px;font-size:12px;font-weight:500;line-height:1.5;color:#475569;overflow-wrap:anywhere}
.event-access .event-help{font-size:11px;line-height:1.6;margin-bottom:14px}
.event-access .event-actions{margin-top:14px;padding-top:12px}
.event-access input[aria-invalid=true]{border-color:#fda4af;background:#fff1f2}
@media(max-width:479px){.event-access{padding:16px}}

.event-title-button{text-align:start}
