/* Welcome Call Pop-out Panel Styles */

.wcp-popout {
    position: fixed;
    z-index: 9999999999;
    background: #ffffff;
    border-radius: 12px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 480px;
    min-height: 60px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
}

/* Header - Draggable */
.wcp-popout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #0074C5;
    color: #fff;
    cursor: move;
    user-select: none;
    flex-shrink: 0;
}

.wcp-popout-header .header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.wcp-popout-header .header-title .material-symbols-rounded {
    font-size: 22px;
    flex-shrink: 0;
}

.wcp-popout-header .header-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wcp-popout-header .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.wcp-popout-header .btn-minimize,
.wcp-popout-header .btn-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;
}

.wcp-popout-header .btn-minimize:hover,
.wcp-popout-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wcp-popout-header .btn-minimize .material-symbols-rounded,
.wcp-popout-header .btn-close .material-symbols-rounded {
    font-size: 18px;
}

/* Content */
.wcp-popout-content {
    flex: 1 1 auto;
    overflow: auto;
    background: #f4f6f8;
    padding: 12px;
}

/* the trackers size themselves against the viewport, inside the panel they just fill it */
.wcp-popout-content .gwc-scroll,
.wcp-popout-content .cwc-scroll {
    max-height: none;
}

.wcp-popout-content .widget-no-panel {
    margin-bottom: 12px;
}

/* ---- 90 Day Experience step list ---- */

.ndx-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    color: #868e96;
}

.ndx-empty .material-symbols-rounded {
    font-size: 40px;
}

.ndx-empty p {
    margin: 0;
    font-size: 14px;
}

.ndx-empty .ndx-spin {
    animation: ndx-spin 1s linear infinite;
}

@keyframes ndx-spin {
    to { transform: rotate(360deg); }
}

.ndx-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid #adb5bd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ndx-summary.status-green { border-left-color: #34a853; }
.ndx-summary.status-yellow { border-left-color: #fbbc04; }
.ndx-summary.status-red { border-left-color: #ea4335; }

.ndx-summary-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #adb5bd;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.ndx-summary.status-green .ndx-summary-badge { background: #34a853; }
/* dark text on yellow - white fails contrast */
.ndx-summary.status-yellow .ndx-summary-badge { background: #fbbc04; color: #594300; }
.ndx-summary.status-red .ndx-summary-badge { background: #ea4335; }

.ndx-summary-text {
    flex: 1 1 auto;
    min-width: 0;
}

.ndx-summary-title {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

.ndx-summary-sub {
    font-size: 12px;
    color: #6c757d;
    margin-top: 1px;
}

.ndx-progress {
    height: 5px;
    margin-top: 8px;
    border-radius: 3px;
    background: #e9ecef;
    overflow: hidden;
}

.ndx-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: #0074C5;
    transition: width 0.2s ease;
}

.ndx-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    height: 34px;
    padding: 0 12px;
    background: #fff;
    color: #0074C5;
    border: 1px solid #0074C5;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ndx-profile-btn:hover {
    background: #0074C5;
    color: #fff;
}

.ndx-profile-btn .material-symbols-rounded {
    font-size: 18px;
}

.ndx-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ndx-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ndx-step:hover {
    border-color: #0074C5;
    box-shadow: 0 2px 8px rgba(0, 116, 197, 0.15);
    transform: translateY(-1px);
}

.ndx-step.is-overdue {
    border-color: #f1aeb5;
    background: #fdf2f3;
}

.ndx-step-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f3f5;
    color: #868e96;
    font-size: 12px;
    font-weight: 700;
}

.ndx-step.is-complete .ndx-step-marker {
    background: #34a853;
    color: #fff;
}

.ndx-step.is-overdue .ndx-step-marker {
    background: #ea4335;
    color: #fff;
}

.ndx-step-marker .material-symbols-rounded {
    font-size: 18px;
}

.ndx-step-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.ndx-step-label {
    font-size: 13px;
    font-weight: 600;
    color: #212529;
}

.ndx-step-meta {
    font-size: 11px;
    color: #868e96;
    margin-top: 1px;
}

.ndx-step-meta.is-overdue-text {
    color: #c92a2a;
    font-weight: 600;
}

.ndx-step-action {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: #868e96;
    background: #f8f9fa;
}

.ndx-step:hover .ndx-step-action {
    color: #0074C5;
    background: #e7f3fb;
}

.ndx-step.is-call .ndx-step-action {
    color: #0074C5;
}

.ndx-step-action .material-symbols-rounded {
    font-size: 18px;
}

/* Resize handle */
.wcp-popout-resize {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    background:
        linear-gradient(135deg, transparent 0 50%, #b8c2cc 50% 60%, transparent 60% 70%, #b8c2cc 70% 80%, transparent 80%);
}
