/* Team Tracking page. Scoped under .tt-page - loads globally alongside every other page's CSS,
   same reasoning as every other per-page stylesheet in this app. */

.tt-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
}

.tt-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tt-title {
    margin: 0 0 6px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
}

.tt-subtitle {
    margin: 0;
    font-size: 0.92rem;
    color: #000;
}

.tt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}

.tt-btn-outline {
    background: #fff;
    border-color: #d1d5db;
    color: #374151;
}

.tt-btn-outline:hover {
    background: #f9fafb;
}

.tt-quick-search {
    width: 260px;
    max-width: 100%;
    padding: 0.45rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
}

.tt-jmdo-name {
    font-weight: 700;
    color: #111827;
}

.tt-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.tt-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tt-status-live {
    color: #15803d;
}

.tt-status-live .tt-status-dot {
    background: #22c55e;
}

.tt-status-stale {
    color: #b45309;
}

.tt-status-stale .tt-status-dot {
    background: #f59e0b;
}

.tt-status-offline {
    color: #334155;
}

.tt-status-offline .tt-status-dot {
    background: #9ca3af;
}

.tt-status-autoended {
    color: #b91c1c;
}

.tt-status-autoended .tt-status-dot {
    background: #ef4444;
}

.tt-status-stopped {
    color: #000;
}

.tt-status-stopped .tt-status-dot {
    background: #9ca3af;
}

.tt-status-notstarted {
    color: #1f2937;
}

.tt-status-notstarted .tt-status-dot {
    background: #d1d5db;
}

/* A session exists (manually or task-started) but zero GPS points have arrived yet - distinct from
   Stale/Offline, which both imply points arrived before and then stopped. Used by TrackPlayback's
   Live Tracking tab so a just-created session is never shown as "Live" before GPS actually confirms
   it. */
.tt-status-waiting {
    color: #92400e;
}

.tt-status-waiting .tt-status-dot {
    background: #fbbf24;
}

/* ---------- Phone (<= 767.98px) ---------- */
@media (max-width: 767.98px) {
    .tt-page {
        padding-top: 12px !important;
        padding-bottom: calc(16px + var(--safe-bottom, 0px)) !important;
    }

    .tt-title {
        font-size: 1.25rem;
    }
}
