﻿.manager-sidebar {
    width: 252px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width .3s var(--ease), opacity .3s var(--ease);
    animation: slideRight .45s var(--ease) .08s both;
}

@keyframes slideRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.manager-sidebar.hidden {
    width: 0;
    opacity: 0;
    pointer-events: none;
}

.sidebar-hdr {
    padding: 14px 14px 8px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar-count {
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1px 6px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text3);
}

.sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 8px 16px;
}

    .sidebar-list::-webkit-scrollbar {
        width: 3px;
    }

    .sidebar-list::-webkit-scrollbar-thumb {
        background: var(--border2);
        border-radius: 2px;
    }

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: all .2s var(--ease);
    margin-bottom: 2px;
    position: relative;
}

    .sidebar-item:hover {
        background: var(--surface3);
    }

    .sidebar-item.active {
        background: var(--accent-dim);
    }

        .sidebar-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 20%;
            width: 2.5px;
            height: 60%;
            background: var(--accent);
            border-radius: 0 2px 2px 0;
        }

.si-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.si-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.sidebar-item.active .si-title {
    color: var(--accent);
}

.si-age {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text3);
    flex-shrink: 0;
}

.sidebar-sep {
    height: 1px;
    background: var(--border);
    margin: 8px 14px;
    flex-shrink: 0;
}

.projects-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.projects-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
}

    .projects-scroll::-webkit-scrollbar {
        width: 5px;
    }

    .projects-scroll::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 3px;
    }

.pipeline-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 4px;
    overflow: hidden;
}

.pipe-track {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .pipe-track::-webkit-scrollbar {
        display: none;
    }

    .pipe-track .p-stage {
        flex: 1 0 auto;
        min-width: 92px;
    }

.pipe-scroll-btn {
    flex: 0 0 auto;
    width: 22px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text2);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all .18s var(--ease);
    padding: 0;
}

    .pipe-scroll-btn:hover {
        background: var(--accent);
        color: #0d0d0d;
        border-color: var(--accent);
    }

.pipe-manage-btn {
    flex: 0 0 auto;
    width: 30px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text3);
    cursor: pointer;
    transition: all .18s var(--ease);
    padding: 0;
}

    .pipe-manage-btn:hover {
        background: var(--surface2);
        color: var(--accent);
        border-color: var(--accent);
    }

.pipe-archive-btn {
    flex: 0 0 auto;
    width: 30px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text3);
    cursor: pointer;
    transition: all .18s var(--ease);
    padding: 0;
}

    .pipe-archive-btn:hover {
        background: var(--surface2);
        color: var(--accent);
        border-color: var(--accent);
    }

    .pipe-archive-btn.active {
        background: var(--accent-dim);
        color: var(--accent);
        border-color: var(--accent);
    }

.p-card.archived {
    opacity: 0.78;
    border-style: dashed;
}

    .p-card.archived::before {
        opacity: 0.55;
    }

.pc-archived-chip {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 7px;
    border: 1px solid var(--accent);
    border-radius: var(--r-sm);
    color: var(--accent);
    background: var(--accent-dim);
}

.pc-shared-chip {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 7px;
    border: 1px solid var(--border2);
    border-radius: var(--r-sm);
    color: var(--text2);
    background: var(--surface3);
}

.dp-shared-by {
    font-size: 12px;
    color: var(--text2);
    padding: 8px 10px;
    margin-top: 10px;
    border: 1px dashed var(--border2);
    border-radius: var(--r-sm);
}

.dp-links {
    margin-top: 12px;
}

.dp-links-header {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--text3);
    font-family: var(--font-mono);
    margin-bottom: 5px;
}

.dp-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    margin-bottom: 5px;
    cursor: pointer;
    transition: border-color .15s var(--ease);
}

    .dp-link-item:hover {
        border-color: var(--accent);
    }

.dp-link-kind {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--accent);
    flex-shrink: 0;
}

.dp-link-name {
    font-size: 12px;
    color: var(--text2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sh-list {
    margin-bottom: 14px;
    max-height: 220px;
    overflow-y: auto;
}

.sh-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    margin-bottom: 6px;
}

    .sh-row.pending {
        border-style: dashed;
    }

.sh-who {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sh-name {
    font-size: 13px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sh-mail {
    font-size: 11px;
    color: var(--text3);
    font-family: var(--font-mono);
}

.sh-role-chip {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 7px;
    border: 1px solid var(--border2);
    border-radius: var(--r-sm);
    color: var(--text2);
    flex-shrink: 0;
}

.sh-row .act-btn {
    background: var(--surface3);
    border: 1px solid var(--border2);
    color: var(--text2);
    border-radius: var(--r-sm);
    padding: 4px 9px;
    font-size: 11.5px;
    cursor: pointer;
    flex-shrink: 0;
}

    .sh-row .act-btn:hover {
        color: var(--red, #e05050);
        border-color: var(--red, #e05050);
    }

.sh-invite-row {
    display: flex;
    gap: 8px;
}

    .sh-invite-row .form-input {
        flex: 1;
    }

.sh-role-sel {
    flex: 0 0 96px !important;
}

.sh-hint {
    font-size: 11.5px;
    color: var(--text3);
    margin-top: 7px;
    line-height: 1.5;
}

.pp-list {
    max-height: 300px;
    overflow-y: auto;
}

.pp-item {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--text);
    transition: border-color .15s var(--ease), background .15s var(--ease);
}

    .pp-item:hover {
        border-color: var(--accent);
        background: var(--accent-dim);
    }

    .pp-item.pp-clear {
        color: var(--text3);
        border-style: dashed;
    }

.scratch-card.sc-flash {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px var(--accent-dim), 0 10px 28px rgba(0,0,0,.35) !important;
}

.dp-pipe-track .dp-stage {
    flex: 1 0 auto;
    min-width: 78px;
}

.dp-pipeline .pipe-scroll-btn {
    height: 34px;
    width: 20px;
    font-size: 16px;
}

.wf-selector-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.wf-selector {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text2);
    font-size: 12px;
    cursor: pointer;
    transition: all .18s var(--ease);
}

    .wf-pill:hover {
        border-color: var(--accent);
        color: var(--text);
    }

    .wf-pill.active {
        background: var(--accent);
        color: #0d0d0d;
        border-color: var(--accent);
    }

.wf-default-tag {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .7;
}

.wf-pill.is-filter {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.wf-active-tag {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--accent);
    font-weight: 700;
}

.wf-pill.active .wf-active-tag {
    color: #0d0d0d;
}

.wf-active-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}

.wf-active-label {
    font-size: 12px;
    color: var(--text2);
}

.wf-use-btn {
    flex: 0 0 auto;
    padding: 6px 12px;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--r-sm);
    color: #0d0d0d;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s var(--ease);
}

    .wf-use-btn:hover:not(:disabled) {
        filter: brightness(1.08);
    }

    .wf-use-btn:disabled {
        background: transparent;
        color: var(--text3);
        border-color: var(--border);
        cursor: default;
    }

.wf-new-btn {
    flex: 0 0 auto;
    padding: 6px 12px;
    background: transparent;
    border: 1px dashed var(--border2);
    border-radius: var(--r-sm);
    color: var(--text2);
    font-size: 12px;
    cursor: pointer;
    transition: all .18s var(--ease);
}

    .wf-new-btn:hover:not(:disabled) {
        border-color: var(--accent);
        color: var(--accent);
    }

    .wf-new-btn:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

.wf-status-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wf-status-row {
    display: grid;
    grid-template-columns: auto 34px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 7px 10px;
}

.wf-reorder {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wf-move {
    width: 18px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text3);
    font-size: 10px;
    cursor: pointer;
    border-radius: 3px;
    padding: 0;
}

    .wf-move:hover:not(:disabled) {
        background: var(--surface);
        color: var(--accent);
    }

    .wf-move:disabled {
        opacity: .3;
        cursor: not-allowed;
    }

.wf-color {
    width: 34px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--border2);
    border-radius: var(--r-sm);
    background: transparent;
    cursor: pointer;
}

.wf-label {
    width: 100%;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: 13px;
    padding: 6px 9px;
}

    .wf-label:focus {
        outline: none;
        border-color: var(--accent);
    }

.wf-del {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text3);
    cursor: pointer;
    transition: all .18s var(--ease);
}

    .wf-del:hover:not(:disabled) {
        border-color: #f87171;
        color: #f87171;
    }

    .wf-del:disabled {
        opacity: .3;
        cursor: not-allowed;
    }

.wf-danger-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.wf-hint {
    font-size: 11px;
    color: var(--text3);
}

.wf-empty {
    font-size: 12px;
    color: var(--text3);
}

.manager-sidebar .sidebar-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

#proj-sidebar-collapse-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text3);
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: color .15s, border-color .15s, transform .2s ease;
}

    #proj-sidebar-collapse-btn:hover {
        color: var(--accent);
        border-color: var(--accent);
    }

.manager-sidebar.collapsed {
    width: 34px;
}

    .manager-sidebar.collapsed .sidebar-list,
    .manager-sidebar.collapsed #sidebarHdrLabel {
        display: none;
    }

    .manager-sidebar.collapsed .sidebar-hdr {
        justify-content: center;
        padding: 14px 0 8px;
    }

    .manager-sidebar.collapsed #proj-sidebar-collapse-btn svg {
        transform: rotate(180deg);
    }

.wf-cat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text2);
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 4px 5px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

    .wf-cat:hover,
    .wf-cat:focus {
        border-color: var(--accent);
        color: var(--text);
        outline: none;
    }
