/*
 * Shared pills rendered across data pages (Inventory / Calendar / Primary Users).
 * Loaded site-wide via _Layout.cshtml so the pills work regardless of page-specific
 * stylesheets. Self-contained — does not rely on integration-hub.css variables.
 */

.ih-latest-sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1.2;
    color: #1e3a8a;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ih-latest-sync-pill:hover,
.ih-latest-sync-pill:focus {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
    text-decoration: none;
}

.ih-latest-sync-pill > i {
    font-size: 0.7rem;
    color: #3b82f6;
}

.ih-latest-sync-pill-primary {
    font-weight: 600;
}

.ih-latest-sync-pill-secondary {
    color: #475569;
    font-weight: 400;
    padding-left: 6px;
    border-left: 1px solid #bfdbfe;
    margin-left: 2px;
}

/* T2 — per-row "updated since last visit" marker.
   Deliberately small (single blue bullet, ~6px) so it reads as an annotation
   on an existing row rather than a second column. Row gets a faint
   background wash so the whole row is easy to spot when scrolling. */
.ih-row-dot {
    display: inline-block;
    color: #3b82f6;
    font-size: 1.25rem;
    line-height: 0.5;
    vertical-align: middle;
    margin-right: 4px;
    font-weight: 900;
}

.ih-row-changed {
    background-color: rgba(59, 130, 246, 0.04) !important;
    border-left: 3px solid #3b82f6 !important;
}

/* "Show only changed" filter toggle rendered alongside the latest-sync pill. */
.ih-changed-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: white;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 0.75rem;
    color: #1e3a8a;
    text-decoration: none;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ih-changed-toggle:hover {
    background: #eef6ff;
    color: #1e3a8a;
    text-decoration: none;
}

.ih-changed-toggle-active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.ih-changed-toggle-active:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.ih-changed-toggle > i {
    font-size: 0.7rem;
}

/* Gap 1 — "changed since last visit" marker on FullCalendar events.
   Matches the Inventory/PrimaryUsers row treatment: blue left-edge notch
   to keep it visible regardless of the event's backgroundColor, plus a
   small top-right dot as a secondary visual cue for low-contrast themes. */
.fc-event-changed {
    box-shadow: inset 3px 0 0 0 #3b82f6;
    position: relative;
}

.fc-event-changed::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}
