/* ============================================================
   TIME TRACKING
   (split from style.css, lines 2781-2970)
   ============================================================ */

/* ======================================================
   TIME TRACKING
   ====================================================== */

/* Tabs (Entries / Reports) */
.tt-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.tt-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-3);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 16px;
    cursor: pointer;
    transition: all var(--transition);
}
.tt-tab:hover { color: var(--text-2); }
.tt-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Topbar timer chip */
.timer-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    font-size: 0.85rem;
    color: var(--text-2);
    white-space: nowrap;
}
.timer-chip.active {
    border-color: rgba(78,203,140,0.35);
    background: var(--success-dim);
    color: var(--text-1);
}
.timer-chip.active.paused {
    border-color: var(--warning);
    background: var(--warning-dim);
}
.timer-chip .timer-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
    animation: timerPulse 1.6s ease-in-out infinite;
}
.timer-chip.paused .timer-dot { background: var(--warning); animation: none; }
@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}
.timer-chip .timer-elapsed {
    font-family: var(--font-head);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.timer-chip .timer-run-label {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 1px dashed transparent;
}
.timer-chip .timer-run-label:hover { border-bottom-color: var(--text-3); }
.timer-icon-btn {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.timer-icon-btn:hover { background: var(--bg-4); }

/* Dashboard running-timer banner */
.tt-running-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--success-dim);
    border: 1px solid rgba(78,203,140,0.3);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin-bottom: 18px;
}
.tt-running-banner .timer-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--success);
    animation: timerPulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

/* Report / dashboard panel cards */
.tt-panel-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
}
.tt-panel-title {
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-3);
    margin-bottom: 14px;
}

/* Bar rows used in dashboard widgets & reports table */
.tt-bar-row {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.82rem;
}
.tt-bar-row:last-child { margin-bottom: 0; }
.tt-bar-label {
    color: var(--text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.tt-bar-track {
    background: var(--bg-3);
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
}
.tt-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
    transition: width 0.3s ease;
}
.tt-bar-value {
    color: var(--text-1);
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}

/* ── CFO Company Time Overview ─────────────────────────────── */
.cfo-dashboard-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed var(--border);
}
.cfo-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.cfo-active-now-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cfo-active-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.cfo-active-row .timer-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
