/* Kanban horizontal scroll */
.kanban-container {
    -webkit-overflow-scrolling: touch;
}

.kanban-container::-webkit-scrollbar {
    height: 6px;
}

.kanban-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.kanban-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* HTMX loading indicator */
.htmx-request {
    opacity: 0.5;
    transition: opacity 200ms;
}

/* ── Calendar ── */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.cal-header {
    background: #f9fafb;
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}
.cal-weekend-header {
    color: #ef4444;
    background: #fef2f2;
}
.cal-cell {
    background: white;
    min-height: 90px;
    padding: 4px;
    cursor: pointer;
    position: relative;
    transition: background 120ms;
}
.cal-cell:hover:not(.cal-empty) { background: #f0f9ff; }
.cal-weekend { background: #fafafa; }
.cal-weekend:hover:not(.cal-empty) { background: #f5f5f5; }
.cal-today { background: #eff6ff; }
.cal-selected { background: #dbeafe !important; box-shadow: inset 0 0 0 2px #3b82f6; }
.cal-empty { cursor: default; }
.cal-day { font-size: 12px; font-weight: 500; color: #374151; }
.cal-today-badge {
    background: #3b82f6; color: white; border-radius: 50%;
    width: 22px; height: 22px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 11px;
}
.cal-holiday-label {
    display: block; font-size: 9px; color: #ef4444;
    margin-top: 1px; line-height: 1.2;
}
.cal-pill {
    margin-top: 2px; padding: 1px 5px; font-size: 10px;
    border-radius: 3px; cursor: pointer; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; font-weight: 600;
    transition: opacity 120ms;
}
.cal-pill:hover { opacity: 0.75; }
.cal-pill-active { box-shadow: 0 0 0 2px rgba(59,130,246,0.5); }
.cal-date-chip {
    display: inline-flex; align-items: center; gap: 2px;
    background: #dbeafe; color: #1d4ed8; font-size: 11px;
    padding: 2px 6px; border-radius: 4px; font-weight: 500;
}
.cal-draft-item {
    padding: 8px 10px; margin-bottom: 4px; border-radius: 6px;
    cursor: pointer; transition: background 120ms;
}
.cal-draft-item:hover { background: #f9fafb; }
.cal-draft-item-active { background: #eff6ff; }
