/* Procurement Kanban & Timeline */
.procurement-kanban-wrap {
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.procurement-kanban {
    display: flex;
    gap: 0.75rem;
    min-width: max-content;
    padding: 0.25rem;
}

.kanban-column {
    width: 200px;
    flex-shrink: 0;
    background: var(--kanban-col-bg, #f8f9fa);
    border: 1px solid var(--kanban-border, #dee2e6);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    max-height: 420px;
}

.kanban-column--active {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

.kanban-column--done {
    opacity: 0.75;
    background: #f6fff9;
}

.kanban-column-header {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--kanban-border, #dee2e6);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
}

.kanban-column-num {
    display: inline-flex;
    width: 1.4rem;
    height: 1.4rem;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border-radius: 999px;
    font-size: 0.7rem;
    margin-right: 0.35rem;
}

.kanban-column--active .kanban-column-num {
    background: #0d6efd;
    color: #fff;
}

.kanban-column-body {
    padding: 0.5rem;
    overflow-y: auto;
    flex: 1;
}

.kanban-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.65rem;
    cursor: grab;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.kanban-card:active { cursor: grabbing; }

.kanban-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.kanban-card-meta, .kanban-card-assignee, .kanban-card-deadline {
    font-size: 0.72rem;
    color: #6c757d;
}

.procurement-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 1.5rem;
}

.procurement-timeline::before {
    content: "";
    position: absolute;
    left: 0.45rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding: 0.5rem 0 0.75rem 1rem;
}

.timeline-dot {
    position: absolute;
    left: -1.15rem;
    top: 0.75rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #adb5bd;
    border: 2px solid #fff;
}

.timeline-item--faza-aktuale .timeline-dot { background: #0d6efd; }
.timeline-item--faza-perfunduar .timeline-dot { background: #198754; }

.procurement-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    min-height: 120px;
    padding-top: 1rem;
}

.chart-bar-item { text-align: center; min-width: 48px; }
.chart-bar {
    width: 36px;
    margin: 0 auto;
    background: linear-gradient(180deg, #0d6efd, #0a58ca);
    border-radius: 4px 4px 0 0;
}
.chart-bar-label { font-size: 0.75rem; margin-top: 0.35rem; }
.chart-bar-value { font-size: 0.8rem; font-weight: 600; }

.calendar-event {
    padding: 0.35rem 0.5rem;
    border-radius: 0.35rem;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    background: #e7f1ff;
}
.calendar-event-type { font-weight: 600; font-size: 0.7rem; text-transform: uppercase; }

/* Dark mode */
body.theme-dark {
    --kanban-col-bg: #1e2530;
    --kanban-border: #2d3748;
    color-scheme: dark;
}

body.theme-dark .app-content,
body.theme-dark .card,
body.theme-dark .kanban-card {
    background: #151a22;
    color: #e2e8f0;
    border-color: #2d3748;
}

body.theme-dark .table { --bs-table-bg: transparent; color: #e2e8f0; }
body.theme-dark .text-muted { color: #94a3b8 !important; }
body.theme-dark .form-control,
body.theme-dark .form-select {
    background: #1e2530;
    border-color: #2d3748;
    color: #e2e8f0;
}
