body {
    background-color: #f7f7f9;
}

.navbar .nav-link.active {
    font-weight: 600;
}

.slot-image {
    height: 180px;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: default;
}

.slot-image img {
    max-height: 100%;
    object-fit: cover;
}

.placeholder {
    width: 100%;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    padding: 0.5rem;
    cursor: default;
}

.slot .card-body {
    background: #fff;
}


.flash-container {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999; /* ensure it's on top of everything */
    width: auto;
    max-width: 400px;
    pointer-events: none; /* allows clicks to pass through except for inner elements */
}

.flash-container .alert {
    pointer-events: auto; /* but buttons like 'close' still work */
}

.preview-tile {
    border: 1px dashed #ced4da;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: #fff;
}

.draft-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.pantone-overlay {
        position: fixed;
        inset: 0;
        z-index: 1050;
    }

.pantone-overlay.d-none {
    display: none;
}

.pantone-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.pantone-overlay-dialog {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.pantone-chip-card {
    cursor: pointer;
    text-align: center;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pantone-chip-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.pantone-chip-card img {
    max-width: 100%;
    border-radius: 0.25rem;
    border: 1px solid #eee;
}

/* Product Hierarchy Tree Styles */
.product-hierarchy {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: #fafafa;
}

.tree-node {
    margin-bottom: 0.5rem;
}

.tree-node-content {
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tree-node-content:hover {
    background-color: #f0f0f0;
}

.tree-node-content.active {
    background-color: #e3f2fd;
    border-left: 3px solid #1976d2;
}

.tree-node-icon {
    color: #6c757d;
    margin-right: 0.25rem;
}

.tree-node-label {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.tree-node-content .btn-link {
    color: #0d6efd;
    text-align: left;
}

.tree-node-content .btn-link:hover {
    color: #0a58ca;
}

.tree-expand-btn {
    color: #6c757d;
    transition: transform 0.2s ease;
}

.tree-expand-btn[aria-expanded="true"] i {
    transform: rotate(90deg);
}

.tree-expand-btn:hover {
    color: #495057;
}

/* Draft creation image slots */
.slot-image-small {
    height: 120px;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.25rem;
}

.slot-image-small img {
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.placeholder-small {
    text-align: center;
    color: #6c757d;
    font-size: 0.8rem;
    padding: 0.5rem;
}

.btn .active {
    color: #0959c6;
}