﻿/* Container for the pivot table UI */
.pvtUi {
    display: flex; /* Use Flexbox for flexible layout */
    flex-direction: column; /* Stacks children vertically: unused fields on top, table below */
}

    /* Styles for the container of unused fields */
    .pvtUi .pvtAxisContainer.pvtAxis {
        order: -1; /* This moves the element to the very top */
        display: flex; /* Makes the field list horizontal */
        flex-wrap: wrap; /* Allows fields to wrap if the screen is too narrow */
        justify-content: flex-start; /* Aligns items to the left */
        padding: 10px;
        background-color: #f7f7f7;
        border-bottom: 1px solid #ddd;
        margin-bottom: 10px; /* Space between the unused fields and the table */
    }

    /* Styles for the container of unused fields (the drag-and-drop area) */
    .pvtUi .pvtAxisContainer.pvtUnused {
        width: auto !important; /* Override the default fixed width */
        height: auto !important; /* Override the default fixed height */
    }

    /* Styles for the individual fields (the draggable items) */
    .pvtUi .pvtAxisContainer.pvtAxis label {
        display: inline-block;
        background-color: #e0e0e0;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 5px 10px;
        margin: 5px; /* Adds space between the fields */
        cursor: grab; /* Shows it's draggable */
    }

    /* Ensure the main pivot table content aligns correctly */
    .pvtUi .pvtMdl {
        width: 100% !important; /* Make sure the table takes up the full width */
    }
