/* ── Drill-Down Panel ───────────────────────────────────── */

.drill-down-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--bg-primary, #1a1a2e);
    border-left: 1px solid var(--border-color, #2a2a4a);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: right 0.25s ease;
}

.drill-down-panel.open {
    right: 0;
}

/* Header */
.drill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #2a2a4a);
    flex-shrink: 0;
}

.drill-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #e0e0e0);
}

.drill-close {
    background: none;
    border: none;
    color: var(--text-secondary, #8888aa);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.drill-close:hover {
    background: var(--bg-hover, #2a2a4a);
    color: var(--text-primary, #e0e0e0);
}

/* List */
.drill-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}

.drill-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary, #e0e0e0);
    transition: background 0.15s;
    cursor: pointer;
}

.drill-item:hover {
    background: var(--bg-hover, #2a2a4a);
}

.drill-code {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-secondary, #8888aa);
    flex-shrink: 0;
    min-width: 56px;
}

.drill-title {
    flex: 1;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drill-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

/* Clickable chart hint */
#statusChart,
#priorityChart,
#assigneeChart {
    cursor: pointer;
}

/* Loading & empty states */
.drill-loading,
.drill-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-secondary, #8888aa);
    font-size: 13px;
}
