.drum-editor-bars {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.drum-editor-bar {
    overflow-x: auto;
    padding: 20px;
    margin-bottom: 50px;
    scroll-margin-top: 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid #eeeeee;
}

.drum-editor-bar:last-of-type {
    margin-bottom: 20px;
}

.drum-editor-bar-highlighted {
    border: 2px solid var(--color-primary);
}

.drum-editor-bar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}

.drum-editor-bar-title {
    white-space: nowrap;
}

.drum-editor-bar-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.drum-editor-grid {
    border-collapse: collapse;
}

.drum-editor-grid th {
    font-weight: normal;
    text-align: left;
    white-space: nowrap;
    padding-right: 10px;
    font-size: 0.9rem;
}

.drum-editor-grid thead select {
    width: 100%;
    margin-bottom: 10px;
}

.drum-editor-grid td {
    width: 30px;
    padding: 0;
}

.drum-editor-grid td:has(+ .drum-editor-beat-start),
.drum-editor-grid td:last-child {
    width: auto;
}

.drum-editor-grid tbody tr:hover {
    background: #f6f6f6;
}

.drum-editor-grid tr th:last-child {
    padding-right: 0;
}

.drum-editor-grid .drum-editor-beat-start {
    border-left: 1px solid #eee;
    padding-left: 10px;
}

.drum-editor-grid td:has(+ .drum-editor-beat-start) {
    padding-right: 10px;
}

.drum-editor-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    margin: 2px;
}

.drum-editor-cell-active {
    background: #000000;
    color: #fff;
}

.drum-editor-menu {
    position: fixed;
    z-index: 10;
}

.drum-editor-menu[hidden] {
    display: none;
}

.drum-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.drum-editor-history {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.drum-editor-tempo {
    white-space: nowrap;
}

.drum-editor-tempo input {
    width: 5rem;
}

.drum-editor-drag-handle {
    cursor: grab;
    padding: 0 4px;
    user-select: none;
}

.drum-editor-bar-drop-target {
    outline: 2px dashed #36c;
}

.drum-editor-add-bar {
    align-self: center;
}

.drum-editor-remove-row {
    margin: 0 5px;
    color: #999;
}

.drum-editor-remove-row:hover {
    color: #c00;
}
