/* Aggregation Builder Styles */

/* Fix z-index for sticky panels to not overlap navbar dropdowns */
.col-lg-3 .sticky-top {
    z-index: 990 !important;
}

.aggregation-zone {
    min-height: 100px;
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.aggregation-zone:empty::before {
    content: 'Drop items here';
    color: #6c757d;
    display: block;
    text-align: center;
    padding: 2rem;
}

.min-height-100 {
    min-height: 100px;
}

/* Packaging Items */
.packaging-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: grab;
    transition: all 0.2s ease;
}

.packaging-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.packaging-item:active {
    cursor: grabbing;
}

.packaging-pallet {
    border-left: 4px solid #ffc107;
    background-color: rgba(255, 193, 7, 0.05);
}

.packaging-case {
    border-left: 4px solid #198754;
    background-color: rgba(25, 135, 84, 0.05);
}

.packaging-item.packaging-item {
    border-left: 4px solid #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.packaging-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.packaging-label {
    font-weight: 500;
    font-size: 0.875rem;
}

.packaging-identifier {
    font-family: monospace;
    font-size: 0.75rem;
    color: #6c757d;
    max-width: 100%;
}

.packaging-children {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0,0,0,0.02);
    border-radius: 0.25rem;
    min-height: 50px;
    border: 1px dashed #dee2e6;
}

.pallet-children {
    background: rgba(255, 193, 7, 0.1);
}

.case-children {
    background: rgba(25, 135, 84, 0.1);
}

/* Sortable States */
.sortable-ghost {
    opacity: 0.4;
    background: #f0f0f0;
}

.sortable-chosen {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sortable-drag {
    opacity: 1;
}

/* Hierarchy Tree Preview */
.hierarchy-tree {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.8rem;
}

.hierarchy-tree ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 0.25rem 0;
    border-left: 1px solid #dee2e6;
}

.hierarchy-tree li {
    padding: 0.25rem 0;
    font-family: monospace;
}

.tree-pallet {
    color: #856404;
}

.tree-case {
    color: #155724;
}

.tree-item {
    color: #004085;
}

/* Empty message */
.empty-message {
    color: #6c757d;
}

/* Generated output */
#generatedOutput {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}
