.root {
    display: flex;
    height: calc(100vh - var(--header-height) - var(--space-8) - var(--space-4));
    height: calc(100dvh - var(--header-height) - var(--space-8) - var(--space-4));
    min-height: 0;
    flex-direction: column;
}

.contentPanel {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--bg-card);
}

.contentPanel :global(.data-state),
.contentPanel :global(.table-frame) {
    flex: 1;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.contentPanel :global(.table-scroll) {
    overflow: auto;
}

.contentPanel :global(.admin-row--head) {
    position: sticky;
    top: 0;
    z-index: 1;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
}

.toolbarLeft {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: var(--space-3);
}

.toolbarActions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--space-2);
    margin-left: auto;
}

.filters {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.search {
    flex: 0 1 300px;
}

.statusSelect {
    flex: 0 0 150px;
}

.resetButton {
    flex: 0 0 auto;
}

.listBlock {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    background: var(--bg-card);
}

.listBlock :global(.pagination-bar) {
    margin: var(--space-3) var(--space-5) var(--space-4);
}

.rowActions {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.dragRow {
    cursor: grab;
}

.dragRow:active {
    cursor: grabbing;
}

.dragRowActive {
    background: var(--primary-hover);
}

.dragHandle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    cursor: grab;
}

@media (max-width: 760px) {
    .toolbar,
    .toolbarLeft,
    .filters {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbarActions {
        align-self: flex-end;
    }

    .search,
    .statusSelect {
        flex: 1 1 auto;
        width: 100%;
    }
}
