        /* =========================
   5) Pipeline View
   ========================= */
        /* =================== PIPELINE (KANBAN) VIEW =================== */
        .pipeline-view {
            flex: 1;
            overflow: auto;
            /* <-- restores vertical + horizontal scroll */
            padding: 16px 24px 24px 24px;
            background: var(--tech-blue-dark);
            min-width: 0;
            min-height: 0;
            /* <-- makes mouse wheel scroll work */
        }





        .pipeline-scroll {
            flex: 1;
            overflow: auto;
            /* scrolling stays here */
            padding: 0;
            /* <-- avoid double spacing */
            background: transparent;
        }



        .pipeline-board {
            display: flex;
            gap: 16px;
            align-items: flex-start;
            min-height: 200px;
            width: max-content;
            /* <-- forces board to be wider than container when needed */
        }


        .pipeline-stage {
            min-width: 230px;
            max-width: 230px;
            border-radius: 12px;
            background: transparent;
            overflow: visible;
            position: relative;
            z-index: 1;
        }

        .pipeline-stage:hover {
            z-index: 999998;
        }

        .pipeline-stage.drag-over {
            outline: 2px solid rgba(253, 169, 41, 0.75);
            outline-offset: -2px;
        }

        .pipeline-stage-header {
            padding: 12px 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(to bottom, var(--tech-blue), var(--tech-blue-dark));
            border: 1px solid rgba(58, 108, 147, 0.35);
            position: sticky;
            top: 0;
            z-index: 2;
            border-radius: 10px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);

        }

        .pipeline-stage-title {
            font-size: 13px;
            font-weight: 700;
            color: white;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .pipeline-stage-count {
            font-size: 12px;
            font-weight: 700;
            color: #d1d5db;
            padding: 2px 8px;
            border-radius: 9999px;
            border: 1px solid rgba(58, 108, 147, 0.35);
            background: rgba(58, 108, 147, 0.15);
        }

        .pipeline-stage-body {
            padding: 3px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-height: 60px;
            overflow: visible;

        }

        .pipeline-card {
            border-radius: 12px;
            border: 1px solid rgba(58, 108, 147, 0.35);
            background: rgba(8, 41, 69, 0.85);
            padding: 5px 12px;
            padding-top: 10px;
            min-height: 130px;
            /* taller cards */
            display: flex;
            flex-direction: column;
            cursor: grab;
            user-select: none;
            transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
            overflow: visible;

        }


        .pipeline-card:hover {
            border-color: rgba(253, 169, 41, 0.35);
            background: rgba(8, 41, 69, 0.95);
            transform: translateY(-1px);
            z-index: 999999;

        }

        .pipeline-card.dragging {
            opacity: 0.55;
            transform: scale(0.99);
        }

        .pipeline-card-title {
            width: 100%;
            background: transparent;
            border: none;
            outline: none;
            color: white;
            font-size: 11px;
            font-weight: 400;
            font-family: inherit;
            margin-bottom: 10px;

            display: block;
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            word-break: break-word;
            line-height: 1.25;

            resize: none;
            overflow: hidden;
            min-height: 34px;
        }




        .pipeline-mini-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-top: auto;
            /* <-- pushes this row to the bottom */
            padding-top: 8px;
            /* optional spacing above icons */
        }


        .pipeline-mini-left,
        .pipeline-mini-right {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            /* allows many column icons */
            row-gap: 6px;
        }


        .pipeline-mini-btn {
            width: 24px;
            height: 24px;
            border: 1px solid rgba(58, 108, 147, 0.35);
            background: rgba(58, 108, 147, 0.12);
            color: #d1d5db;
            border-radius: 5px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            position: relative;
            /* dropdown anchor */
            z-index: 10;

        }

        /* Hover tooltip panel for mini icons */
        .pipeline-mini-btn .mini-tooltip {
            position: absolute;
            left: 50%;
            bottom: calc(100% + 10px);
            transform: translateX(-50%);
            background: rgba(6, 30, 52, 0.96);
            border: 1px solid rgba(58, 108, 147, 0.35);
            border-radius: 5px;
            padding: 4px 10px;
            min-width: 150px;
            max-width: 200px;
            color: #e5e7eb;
            font-size: 11px;
            line-height: 1.15;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
            opacity: 0;
            visibility: hidden;
            pointer-events: auto;
            transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
            z-index: 9999999;
        }

        .pipeline-mini-btn:hover .mini-tooltip {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(-2px);
        }

        /* Ensure the date button is lifted above the sidebar/nearby layers on hover */
        .pipeline-mini-btn.due-date-btn:hover {
            z-index: 2147483647;
        }


        .mini-tooltip .tip-title {
            font-weight: 400;
            font-size: 10px;
            margin-bottom: 3px;
            color: #ffffff;
        }

        .mini-tooltip .tip-body {
            color: #d1d5db;
            font-weight: 500;
            white-space: normal;
            font-size: 9px;

        }


        /* ===== Interactive tooltip content (notes/files) ===== */
        .mini-tooltip .mini-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 180px;
            overflow: auto;
            padding-right: 4px;
        }

        .mini-item {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
            border: 1px solid rgba(58, 108, 147, 0.25);
            background: rgba(8, 41, 69, 0.45);
            border-radius: 10px;
            padding: 8px 10px;
        }

        .mini-item .mini-left {
            min-width: 0;
        }

        .mini-item .mini-title {
            font-weight: 800;
            font-size: 12px;
            color: #fff;
            margin-bottom: 4px;
        }

        .mini-item .mini-text {
            font-size: 11px;
            color: #d1d5db;
            white-space: normal;
            word-break: break-word;
        }

        .mini-x {
            width: 18px;
            height: 18px;
            border-radius: 6px;
            border: 1px solid rgba(239, 68, 68, 0.35);
            background: rgba(239, 68, 68, 0.18);
            color: #fecaca;
            font-weight: 900;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
        }

        .mini-x:hover {
            background: rgba(239, 68, 68, 0.28);
        }

        .mini-actions {
            display: flex;
            gap: 6px;
            margin-top: 8px;
        }

        .mini-action {
            font-size: 11px;
            padding: 6px 8px;
            border-radius: 8px;
            border: 1px solid rgba(58, 108, 147, 0.35);
            background: rgba(58, 108, 147, 0.12);
            color: #e5e7eb;
            cursor: pointer;
        }

        .mini-action:hover {
            border-color: rgba(253, 169, 41, 0.35);
            background: rgba(253, 169, 41, 0.10);
        }


        .pipeline-mini-btn:hover {
            border-color: rgba(253, 169, 41, 0.35);
            background: rgba(253, 169, 41, 0.10);
            color: white;
        }

        .pipeline-mini-btn svg {
            width: 14px;
            height: 14px;
        }

        .pipeline-note-count {
            font-size: 12px;
            font-weight: 800;
            color: #d1d5db;
            opacity: 0.95;
        }

        .pipeline-badge-dot {
            position: absolute;
            right: -1px;
            top: -1px;
            width: 7px;
            height: 7px;
            border-radius: 9999px;
            background: rgba(253, 169, 41, 0.9);
        }

        .pipeline-badge-count {
            position: absolute;
            right: -10px;
            top: -10px;
            min-width: 5px;
            height: 16px;
            padding: 0 5px;
            border-radius: 9999px;
            background: rgba(253, 169, 41, 0.95);
            color: #082945;
            font-size: 9px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid rgba(8, 41, 69, 0.95);
        }

        /* Ensure pipeline doesn’t clip dropdowns */
        .pipeline-container,
        .pipeline-board,
        .pipeline-stage,
        .pipeline-card {
            overflow: visible !important;
        }

        .pipeline-card {
            position: relative;
        }

