/* Shared .calendar-exc-list* chrome for the Exceptions card. Used by both the personal
   availability surface (Django-rendered via _exceptions_list.html) and the
   org availability surface (Alpine-rendered via _org_exceptions.html). Loaded
   from base/base.html so it's in scope for both page.html and the settings exceptions page. */

.calendar-exc-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #f1f5f9;
}
.calendar-exc-list__item:last-child { border-bottom: 0; }

.calendar-exc-list__info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xsm);
    min-width: 0;
}

.calendar-exc-list__date {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-md);
    color: #1e293b;
}

.calendar-exc-list__time {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    font-variant-numeric: tabular-nums;
}

/* The Open / Blocked / Override tags on an exception row are the shared
   .global-badge (components/badge.css) in its dense --sm size. The old local
   .exc-list__badge clone, its three hairline-bordered colour pairs, and the
   never-rendered --mode variant are all gone. */

.calendar-exc-list__note {
    font-size: var(--font-size-sm);
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.calendar-exc-list__remove {
    appearance: none;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-card);
    color: #94a3b8;
    font-size: var(--font-size-sm);
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}
.calendar-exc-list__remove:hover {
    color: var(--color-error);
    background: #fef2f2;
    border-color: var(--color-error-subtle);
}
.calendar-exc-list__remove:focus-visible {
    outline: 2px solid var(--color-error);
    outline-offset: 2px;
}

/* The add-exception drawer chrome moved to the shared overlay-drawer primitive
   (.global-drawer-panel--overlay + .global-drawer-overlay-scrim) in components/drawer.css. */
