/* FrostWave Fleet Sync - small additions on top of the Trezo theme + custom.css brand colors. */

.fs-11 { font-size: 11px !important; }
.fs-10 { font-size: 10px !important; }
.fw-tabular { font-variant-numeric: tabular-nums; }

/* Sidebar count pill (Detention Queue) */
.sidebar-area .menu-link .fs-count {
    margin-left: auto;
    min-width: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
}

/* Header bell count */
.notifications .fs-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #d63a3a;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
}

/* Clickable table rows */
.fs-row { cursor: pointer; }
.fs-row:hover > td { background-color: rgba(var(--bs-primary-rgb), .04); }
.fs-row.selected > td { background-color: rgba(var(--bs-primary-rgb), .08); }

/* Tabs used on the queue / setup / sync log */
.fs-tabs { gap: 6px; flex-wrap: wrap; border: 0; }
.fs-tabs .nav-link {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 14px;
    color: var(--bs-body-color);
    background: transparent;
}
.fs-tabs .nav-link.active {
    background: rgba(var(--bs-primary-rgb), .1);
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.fs-tabs .nav-link .count { font-size: 12px; opacity: .75; margin-left: 4px; }

/* Evidence map */
.fs-map {
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #eef3f6;
    border: 1px solid var(--bs-border-color);
}
[data-theme="dark"] .fs-map { background: #1d2733; }
.fs-map .fence { fill: rgba(50, 126, 150, .12); stroke: #327E96; stroke-width: 2; stroke-dasharray: 6 4; }
.fs-map .fence.other { fill: rgba(120, 120, 120, .08); stroke: #8a8f98; }
.fs-map .ping { stroke: #fff; stroke-width: 2; }
.fs-map .ping.enter { fill: #2e9d62; }
.fs-map .ping.exit { fill: #d0572d; }
.fs-map text { font-size: 12px; fill: currentColor; }

/* Calculation breakdown */
.fs-calc { border-left: 3px solid var(--bs-primary); padding-left: 12px; }
.fs-calc .row-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 3px 0; }
.fs-calc .row-line.total { border-top: 1px solid var(--bs-border-color); margin-top: 4px; padding-top: 6px; font-weight: 600; }

/* Timeline in evidence / audit */
.fs-timeline { list-style: none; padding-left: 0; margin: 0; }
.fs-timeline li { position: relative; padding: 0 0 12px 22px; font-size: 13px; }
.fs-timeline li::before { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--bs-primary); }
.fs-timeline li::after { content: ""; position: absolute; left: 8.5px; top: 15px; bottom: 0; width: 1px; background: var(--bs-border-color); }
.fs-timeline li:last-child::after { display: none; }

/* Onboarding checklist */
.fs-check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--bs-border-color); }
.fs-check:last-child { border-bottom: 0; }
.fs-check .material-symbols-outlined { font-size: 20px; }

.fs-sticky-actions {
    position: sticky;
    bottom: 12px;
    z-index: 5;
}

/* Printable documents (evidence sheet, driver statement) */
.fs-doc { max-width: 820px; margin: 0 auto; background: #fff; color: #222; padding: 40px; border-radius: 12px; }
.fs-doc h1 { font-size: 22px; margin-bottom: 4px; }
.fs-doc table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fs-doc th, .fs-doc td { border-bottom: 1px solid #e3e6ea; padding: 6px 8px; text-align: left; vertical-align: top; }
.fs-doc th { font-weight: 600; color: #555; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.fs-doc .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fs-doc .muted { color: #666; }
.fs-doc .total td { font-weight: 700; border-top: 2px solid #222; }
@media print {
    body { background: #fff !important; }
    .no-print { display: none !important; }
    .fs-doc { padding: 0; max-width: none; border-radius: 0; }
}
