/* Page-level custom styles extracted from inline blocks. */

.inventory-editor-table {
    min-height: 72vh;
    border-top: 0;
}

.inventory-editor-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 0.4rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.inventory-editor-thumb-placeholder {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
    color: var(--bs-secondary-color);
    font-size: 1rem;
}

.inventory-editor-collapsed-list {
    display: grid;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.inventory-editor-collapsed-row {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.inventory-editor-collapsed-label {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

.inventory-editor-collapsed-value {
    min-width: 0;
    word-break: break-word;
}

.inventory-editor-collapsed-row-name {
    grid-template-columns: minmax(0, 1fr);
}

.inventory-editor-empty {
    padding: 2rem 1rem;
    color: var(--bs-secondary-color);
}

.inventory-editor-column-menu {
    min-width: 15rem;
    max-height: 22rem;
    overflow-y: auto;
}

.inventory-editor-column-option {
    cursor: pointer;
    user-select: none;
}

.inventory-editor-compact-card {
    border-style: dashed;
}

.inventory-editor-compact-card .card-header {
    background: linear-gradient(180deg, #fcfcfd 0%, #f7f9fc 100%);
}

.inventory-editor-compact-form .form-control-sm,
.inventory-editor-compact-form .form-select-sm {
    border-radius: 0.5rem;
}

.inventory-editor-compact-actions {
    justify-content: flex-start;
}

.inventory-editor-results-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.inventory-editor-results-title {
    align-self: center;
}

.inventory-editor-results-batch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
    min-width: 0;
}

.inventory-editor-results-meta {
    display: flex;
    align-items: center;
    min-height: 2rem;
    padding-bottom: 0.15rem;
}

.inventory-editor-results-field {
    min-width: 4rem;
}

.inventory-editor-results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding-bottom: 0.05rem;
}

.inventory-editor-results-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.tabulator .tabulator-header .tabulator-col {
    background: #f8f9fa;
}

.tabulator-row.tabulator-selected {
    background-color: rgba(13, 110, 253, 0.08);
}

@media (max-width: 767.98px) {
    .inventory-editor-compact-actions {
        margin-top: 0.15rem;
    }

    .inventory-editor-results-header {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .inventory-editor-results-controls {
        justify-content: flex-start;
    }

    .inventory-editor-results-field {
        min-width: min(100%, 10rem);
    }
}
