/* ── Sidebar Layout (desktop only — on mobile, Bootstrap offcanvas applies) */
@media (min-width: 992px) {
    .app-sidebar {
        width: 280px;
        top: 56px; /* height of the fixed navbar */
        height: calc(100vh - 56px);
        position: fixed;
        overflow-y: auto;
        transition: transform 0.25s ease-in-out;
        z-index: 1030;
    }
}

/* Main content offset to account for sidebar on large screens */
@media (min-width: 992px) {
    .app-wrapper {
        margin-left: 280px;
    }
}

.main-content {
    min-height: calc(100vh - 56px);
    margin-top: 56px;
}

/* ── Kanban ─────────────────────────────────────────────────────────────── */
.kanban-column {
    min-width: 300px;
}

.kanban-dropzone {
    border: 2px dashed transparent;
    border-radius: 0.375rem;
}

.kanban-card {
    transition: opacity 0.15s, transform 0.15s;
}

.kanban-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 .25rem .5rem rgba(0,0,0,.1) !important;
}

/* ── Calendar ──────────────────────────────────────────────────────────── */
#calendar-table td:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

@media (max-width: 575.98px) {
    #calendar-table td {
        height: 60px !important;
        min-height: 60px !important;
        padding: 2px !important;
    }
}

/* ── Inventory image ────────────────────────────────────────────────────── */
.inventory-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ── Gallery ───────────────────────────────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ── Gantt bars ─────────────────────────────────────────────────────────── */
.gantt-row {
    position: relative;
    height: 36px;
}

.gantt-bar {
    position: absolute;
    height: 24px;
    top: 6px;
    border-radius: 12px;
    min-width: 4px;
    cursor: pointer;
    transition: filter 0.15s;
}

.gantt-bar:hover {
    filter: brightness(1.15);
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
