/* retoor <retoor@molodetz.nl> */

[hidden] {
    display: none !important;
}

.planning-header h1 {
    margin: 0;
}

.planning-subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 60ch;
}

.planning-select {
    margin: 1.5rem 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.planning-select-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.planning-select-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.planning-select-count {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.planning-ticket-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 26rem;
    overflow-y: auto;
}

.planning-ticket {
    border-bottom: 1px solid var(--border-light);
}

.planning-ticket:last-child {
    border-bottom: none;
}

.planning-ticket label {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.25rem;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
}

.planning-ticket label:hover {
    background: var(--bg-secondary);
}

.planning-ticket input {
    margin: 0;
}

.planning-ticket-number {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.planning-ticket-title {
    min-width: 0;
    color: var(--text-primary);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.planning-ticket-labels {
    grid-column: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.planning-ticket-label {
    padding: 0.05rem 0.5rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.planning-select-foot {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border);
}

.planning-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.planning-output {
    margin: 1.5rem 0;
}

.planning-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.planning-spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: planning-spin 0.8s linear infinite;
    flex-shrink: 0;
}

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

.planning-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.planning-report {
    display: block;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .planning-ticket label {
        column-gap: 0.5rem;
        padding: 0.6rem 1rem;
    }

    .planning-report {
        padding: 1rem;
    }
}
