/* Dynamic Therapeutic Pipeline — 82c23e85 v5.0.0 */

.dtp-82c23e85-wrap {
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    position: relative;
}

/* ---- Header ---- */
.dtp-82c23e85-header {
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid #1E293B;
    padding-bottom: 14px;
    margin-bottom: 2px;
    gap: 20px;
}

.dtp-82c23e85-header-cell {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* ---- Layout: Program col + Pipeline col ---- */
.dtp-82c23e85-program-col {
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;
    padding-left: 14px;
    border-left: 3px solid #334155;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.dtp-82c23e85-header .dtp-82c23e85-program-col {
    border-left: none;
    padding-left: 0;
}

.dtp-82c23e85-pipeline-col {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

/* ---- Stages header ---- */
.dtp-82c23e85-stages-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    min-width: 0;
}

.dtp-82c23e85-stage-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
    padding: 0 2px;
}

/* ---- Body ---- */
.dtp-82c23e85-body {
    display: flex;
    flex-direction: column;
}

/* ---- Row wrapper ---- */
.dtp-82c23e85-row-wrapper {
    border-bottom: 1px solid #1E293B;
}

.dtp-82c23e85-row-wrapper:last-child {
    border-bottom: none;
}

/* ---- Rows ---- */
.dtp-82c23e85-row {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: background-color 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
    border-radius: 6px;
    padding: 18px 0;
    text-decoration: none;
    border-bottom: none;
}

/* Clickable row styles */
a.dtp-82c23e85-row-clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

a.dtp-82c23e85-row-clickable:hover {
    text-decoration: none;
}

a.dtp-82c23e85-row-clickable:hover .dtp-82c23e85-program-name {
    text-decoration: underline;
    text-underline-offset: 3px;
}

a.dtp-82c23e85-row-clickable::after {
    content: '';
    display: inline-flex;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.25 4.5l7.5 7.5-7.5 7.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateX(-4px);
}

a.dtp-82c23e85-row-clickable:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Program name & sub-text — DESKTOP TEXT WRAPPING ---- */
.dtp-82c23e85-program-name {
    font-size: 14px;
    font-weight: 600;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    transition: text-decoration 0.2s ease;
}

.dtp-82c23e85-sub-text {
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.35;
}

/* Indication sub-text */
.dtp-82c23e85-sub-indication {
    opacity: 0.7;
}

/* Therapy sub-text — no forced italic, fully controllable via typography control */
.dtp-82c23e85-sub-therapy {
    opacity: 0.55;
}

/* ---- Pipeline track ---- */
.dtp-82c23e85-pipeline-col .dtp-82c23e85-track {
    width: 100%;
}

.dtp-82c23e85-track {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    overflow: visible;
}

.dtp-82c23e85-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 999px;
    transition: width 0s linear;
    will-change: width;
}

.dtp-82c23e85-node {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #0B1120;
    transition: left 0s linear;
    will-change: left;
    z-index: 2;
}

/* Node pulse animation after bar animation completes */
.dtp-82c23e85-node.dtp-82c23e85-node-active {
    animation: dtp82c23e85Pulse 2s ease-in-out infinite;
}

@keyframes dtp82c23e85Pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.18); }
}

/* ---- Stage markers ---- */
.dtp-82c23e85-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 14px;
    border-radius: 1px;
    z-index: 1;
    pointer-events: none;
    transition: background-color 0.4s ease;
}

/* Color-coded marker states */
.dtp-82c23e85-marker-completed {
    width: 3px;
    height: 16px;
}

.dtp-82c23e85-marker-inprogress {
    width: 3px;
    height: 16px;
    animation: dtp82c23e85MarkerPulse 1.5s ease-in-out infinite;
}

@keyframes dtp82c23e85MarkerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.dtp-82c23e85-marker-upcoming {
    opacity: 0.5;
}

/* ===================== ACCORDION STYLES ===================== */

/* Toggle button */
.dtp-82c23e85-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: none;
    background-color: #1E293B;
    color: #64748B;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    padding: 0;
    margin-left: 8px;
}

.dtp-82c23e85-accordion-toggle:hover {
    background-color: #334155;
    color: #CBD5E1;
}

.dtp-82c23e85-accordion-toggle:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Icon rotation */
.dtp-82c23e85-accordion-icon {
    transition: transform 0.3s ease;
    display: block;
}

.dtp-82c23e85-accordion-toggle[aria-expanded="true"] .dtp-82c23e85-accordion-icon {
    transform: rotate(180deg);
}

/* Header spacer to align with toggle buttons */
.dtp-82c23e85-accordion-toggle-spacer {
    width: 36px;
    min-width: 36px;
    flex-shrink: 0;
    margin-left: 8px;
}

/* Accordion body */
.dtp-82c23e85-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #0F172A;
    border-radius: 0 0 8px 8px;
    margin-top: -4px;
}

.dtp-82c23e85-accordion-body[aria-hidden="false"] {
    margin-bottom: 4px;
}

.dtp-82c23e85-accordion-content {
    padding: 16px 20px 20px 20px;
    font-size: 13px;
    line-height: 1.65;
    color: #94A3B8;
}

/* Active row wrapper state */
.dtp-82c23e85-row-wrapper.dtp-82c23e85-row-expanded .dtp-82c23e85-row {
    border-radius: 8px 8px 0 0;
}

/* Accordion-enabled hover on row */
.dtp-82c23e85-accordion-enabled .dtp-82c23e85-row {
    cursor: default;
}

.dtp-82c23e85-accordion-enabled .dtp-82c23e85-row-wrapper:hover .dtp-82c23e85-row {
    background-color: #0F172A;
}

/* ---- Responsive: Tablet ---- */
@media (max-width: 1024px) {
    .dtp-82c23e85-header {
        gap: 12px;
    }

    .dtp-82c23e85-program-col {
        width: 180px;
        min-width: 180px;
    }

    .dtp-82c23e85-pipeline-col {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dtp-82c23e85-track {
        min-width: 300px;
    }

    .dtp-82c23e85-stages-header {
        min-width: 300px;
    }

    .dtp-82c23e85-stage-label {
        font-size: 10px;
        padding: 0 3px;
    }
}

/* ---- Responsive: Mobile ---- */
@media (max-width: 767px) {
    .dtp-82c23e85-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .dtp-82c23e85-header .dtp-82c23e85-program-col {
        width: auto;
        min-width: 0;
    }

    .dtp-82c23e85-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 0;
        position: relative;
    }

    .dtp-82c23e85-program-col {
        width: 100%;
        min-width: 0;
    }

    .dtp-82c23e85-program-name {
        font-size: 13px;
    }

    .dtp-82c23e85-sub-text {
        font-size: 11px;
    }

    .dtp-82c23e85-pipeline-col {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .dtp-82c23e85-track {
        min-width: 280px;
    }

    .dtp-82c23e85-stages-header {
        min-width: 280px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dtp-82c23e85-stage-label {
        font-size: 9px;
        padding: 0 2px;
        line-height: 1.35;
    }

    a.dtp-82c23e85-row-clickable::after {
        display: none;
    }

    /* Accordion toggle on mobile — position top-right */
    .dtp-82c23e85-accordion-toggle {
        position: absolute;
        top: 14px;
        right: 0;
        margin-left: 0;
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .dtp-82c23e85-accordion-toggle-spacer {
        display: none;
    }

    .dtp-82c23e85-accordion-content {
        padding: 12px 14px 16px 14px;
        font-size: 12px;
    }
}
