/**
 * employee-dashboard-extras.css
 * Period switch, career/salary chart captions, and the "what this changes"
 * callouts on the promotion and salary forms.
 */

/* --------------------------------------------- overall / month switch --- */

.period-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--bg-sunken);
    border: 1px solid var(--border);
}

.period-switch-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.period-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 3px;
    border-radius: 9px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
}

.period-tab {
    padding: 6px 13px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .14s ease, color .14s ease;
}

.period-tab:hover { background: var(--bg-hover); color: var(--text-primary); }
.period-tab.active { background: var(--accent); color: var(--text-inverse); }

/* ------------------------------------------------------ chart caption --- */

.chart-caption {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.chart-caption .tl-delta { margin-left: 0; margin-right: 4px; }

/* ---------------------------------------------------- sync explainer --- */

/*
 * States plainly that these forms write through to the employee master record.
 * Without it the history reads like a log that sits alongside the record rather
 * than one that changes it.
 */
.sync-explainer {
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    color: var(--accent-text);
}

.sync-explainer > strong {
    display: block;
    font-size: 13px;
    margin-bottom: 9px;
}

.sync-explainer ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.sync-explainer li { font-size: 12.5px; line-height: 1.6; }
.sync-explainer b { font-weight: 800; }

/* Same message, restated at the point of action inside each form. */
.modal-consequence {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--warning-soft);
    border: 1px solid var(--warning);
    color: var(--warning);
    font-size: 12.5px;
    line-height: 1.6;
}

.modal-consequence strong { display: block; margin-bottom: 3px; }
.modal-consequence b { font-weight: 800; }


/* ------------------------------------------- richer timeline entries --- */

.emp-timeline li.is-current {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.tl-now {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--text-inverse);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
}

/* The specific before/after values, which is what makes an entry auditable. */
.tl-changes { display: grid; gap: 3px; margin-top: 5px; }

.tl-changes span {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tl-changes b { color: var(--text-primary); font-weight: 800; }

.tl-meta {
    display: block;
    margin-top: 6px;
    font-size: 10.5px;
    color: var(--text-muted);
    line-height: 1.5;
}
