/* Горизонтальный скролл широкой таблицы внутри контейнера */
.container {
    overflow-x: clip;
}
#eventResultsTableWrap.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
}
#eventResultsTableWrap.is-columns-loading {
    visibility: hidden;
}
#eventResultsTable .col-group-hidden {
    display: none !important;
}
#eventResultsTable {
    width: max-content;
    max-width: none;
    margin-top: 0;
}

.event-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 12px 0 16px;
}
.event-export-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}
.event-modal__actions--sticky {
    position: sticky;
    bottom: 0;
    background: #f5efe3;
    padding-top: 12px;
    padding-bottom: 4px;
    margin-top: 16px;
    border-top: 1px solid #e0d5c0;
    z-index: 2;
}
.inline-select-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.toolbar-hint {
    font-size: 13px;
    color: #666;
    margin-left: 8px;
}
.event-modal[hidden] {
    display: none !important;
}
.event-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.event-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.event-modal__panel {
    position: relative;
    background: #fffef8;
    border-radius: 10px;
    padding: 20px 24px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 1;
}
.event-modal__panel--wide {
    max-width: 780px;
}
.event-modal__panel h2 {
    margin: 0 0 12px;
    font-size: 1.35em;
}
.event-modal__panel h3 {
    margin: 18px 0 8px;
    font-size: 1.05em;
}
.event-modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.event-settings-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.event-settings-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}
.event-settings-form .checkbox-label {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.event-settings-form input[type="number"],
.event-settings-form select {
    padding: 6px 8px;
    max-width: 280px;
}
.event-norms-list,
.event-periods-list,
.event-overflow-list,
.event-global-versions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 8px;
}
.event-norm-form,
.event-period-form,
.event-global-form,
.event-overflow-form,
.event-global-version-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.event-norm-form .norm-label,
.event-global-form .norm-label {
    min-width: 140px;
    font-weight: 600;
    font-size: 13px;
}
.event-norm-form input[type="number"],
.event-period-form input[type="number"],
.event-global-form input[type="number"],
.event-overflow-form input[type="number"],
.event-global-version-form input[type="number"] {
    width: 110px;
    padding: 4px 8px;
}
.event-norm-form select,
.event-period-form select,
.event-global-form select,
.event-overflow-form select,
.event-global-version-form select {
    padding: 4px 6px;
}
.event-norm-form button,
.event-period-form button,
.event-global-form button,
.event-overflow-form button,
.event-global-version-form button {
    padding: 6px 12px;
    cursor: pointer;
}
.event-period-row,
.event-overflow-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #e8e0d0;
    font-size: 13px;
}
.overflow-ratio-sep {
    font-weight: 600;
}
.inline-delete {
    display: inline;
}
.source-tag {
    font-weight: 400;
    color: #666;
    font-size: 12px;
}
.hint {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
}
.avg-col {
    background: rgba(52, 152, 219, 0.06);
}
.event-empty {
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    text-align: center;
}
.message-list {
    list-style: none;
    padding: 0;
}
.message-list li {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 4px;
}
.message-list .success { background: #d4edda; }
.message-list .error { background: #f8d7da; }
.message-list .warning { background: #fff3cd; }
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 12px 0;
}
.player-filter-input {
    padding: 8px 12px;
    min-width: 220px;
}
.filter-btn {
    padding: 6px 12px;
    cursor: pointer;
}
.event-points-cell {
    text-align: center;
}
.event-points-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #1a5f8a;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    font: inherit;
}
.event-points-btn:hover {
    color: #0d3d5c;
}
.event-detail-list {
    display: grid;
    grid-template-columns: minmax(140px, 40%) 1fr;
    gap: 8px 16px;
    margin: 12px 0 0;
}
.event-detail-list dt {
    font-weight: 600;
    color: #555;
}
.event-detail-list dd {
    margin: 0;
    word-break: break-word;
}
