/* LoopIQ additions on top of the Velzon theme. Plain CSS, no build step. */

/* Text wordmark used instead of Velzon's logo images. */
.loopiq-logo {
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
    font-size: 1.35rem;
    color: #fff;
}
.loopiq-logo .loopiq-logo-accent { color: var(--vz-primary, #405189); }
.logo-dark .loopiq-logo { color: var(--vz-heading-color, #212529); }
/* On the coloured sidebar (logo-light) the primary accent disappears into the background. */
.logo-light .loopiq-logo .loopiq-logo-accent { color: rgba(255, 255, 255, .6); }
.loopiq-logo-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--vz-primary, #405189);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
}
.auth-logo .loopiq-logo { font-size: 1.75rem; }

/* Auth pages: LoopIQ image instead of Velzon's auth-one-bg.jpg (layout unchanged). */
.auth-one-bg { background-image: url(../images/background.jpg); }

/* Initials avatar used in the topbar until users have photos. */
.loopiq-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 600;
    font-size: .8rem;
}

/* 2FA QR code box keeps a white background in dark mode (scanners need contrast). */
.qr-box { background: #fff; display: inline-block; padding: .5rem; border-radius: .375rem; }
.qr-box svg { display: block; }

[x-cloak] { display: none !important; }

/* Sortable table headers (<x-sort-th>) */
.sortable-th { cursor: pointer; user-select: none; }
.sortable-th:hover { color: var(--vz-primary); }

/* Live indicator dot (TrackDrive live calls) */
.live-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--vz-secondary); vertical-align: middle; }
.live-dot-on { background: var(--vz-success); box-shadow: 0 0 0 0 rgba(10, 179, 156, .6); animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 .5rem rgba(10, 179, 156, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 179, 156, 0); } }
.spin { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Small list tables: a subtle line between rows (user request 2026-11-11). Use .table-lined instead of .table-borderless. */
.table-lined > tbody > tr > * { border-bottom: 1px solid var(--vz-border-color); }
.table-lined > tbody > tr:last-child > * { border-bottom: 0; }
.table-lined > thead > tr > th { font-weight: 600; font-size: .8125rem; }

/* Ranked bar list (partials/bar-list): thin bar, values stay in text colour (dataviz: no text on colored marks). */
.bar-list-track { height: 6px; border-radius: 3px; background: var(--vz-light); }
.bar-list-bar { height: 6px; border-radius: 3px; background: #2a78d6; }
[data-bs-theme=dark] .bar-list-bar { background: #3987e5; }

/* Table row with negative revenue − payout (Calls page): translucent red, readable in light and dark mode. */
.table > tbody > tr.row-negative > * { background-color: rgba(var(--vz-danger-rgb), .12); box-shadow: none; }
.table-hover > tbody > tr.row-negative:hover > * { background-color: rgba(var(--vz-danger-rgb), .2); }

/* Name column that wraps inside .table-nowrap tables (with <x-long-text>), so long names never widen the table. */
.table-nowrap td.cell-wrap, .table-nowrap th.cell-wrap { white-space: normal; min-width: 14rem; max-width: 24rem; overflow-wrap: anywhere; }

/* ...and red text on those rows (user request 2026-11-11). */
.table > tbody > tr.row-negative > *, .table > tbody > tr.row-negative > * a, .table > tbody > tr.row-negative > * .text-muted { color: var(--vz-danger) !important; }

/* "show more" in <x-long-text>: blue (validated chart blue), underlined, 11px (user request 2026-11-11). */
.show-more-link { background: none; border: 0; padding: 0; margin-left: .25rem; font-size: 11px; font-weight: 400; line-height: inherit; color: #2a78d6 !important; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; vertical-align: baseline; cursor: pointer; }
[data-bs-theme=dark] .show-more-link { color: #3987e5 !important; }
.show-more-link:hover { text-decoration-thickness: 2px; }
