/* =====================================================================
   ImportPanel, portal klienta E: Historia zmian i stopka dzwonka
   (quick 261110-fvk, 10.11.2026). Ładowany po css/portal-e.css, korzysta
   wyłącznie z tokenów --e-* i --cl-* (bez nowych kolorów na sztywno).
   Klasy: .e-hist-* (strona #/historia), .portal-notif-footer / -all / -ctx (dzwonek).
   ===================================================================== */

/* ---------- dzwonek: stopka i linia kontekstu ---------- */
.portal-notif-footer { flex-shrink: 0; border-top: 1px solid var(--cl-line2, var(--e-line)); padding: 6px; display: flex; }
.portal-notif-footer[hidden] { display: none; }
.portal-notif-all {
    flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 14px;
    font: 700 13.5px var(--e-body); color: var(--e-sea-2); text-decoration: none;
}
.portal-notif-all:hover { background: var(--e-sea-tint); color: var(--e-sea-ink); }
.portal-notif-all:focus-visible { outline: 3px solid var(--e-sea-2); outline-offset: -3px; }
.portal-notif-ctx { font-size: 11.5px; font-weight: 600; color: var(--e-ink-3); line-height: 1.35; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.portal-notif-item { text-decoration: none; color: inherit; }

/* ---------- strona: nagłówek, filtry ---------- */
.e-hist { max-width: 860px; }
.e-hist-sub { margin: -10px 0 22px; color: var(--e-ink-3); font-size: 15px; max-width: 60ch; }
.e-hist .e-page-h { flex-wrap: wrap; }
.e-hist-bar { display: flex; flex-direction: column; gap: 14px; margin: 0 0 22px; }
.e-hist-sel { display: flex; flex-direction: column; gap: 6px; max-width: 460px; }
.e-hist-sel span { font: 700 13px var(--e-body); color: var(--e-ink-3); }
.e-hist-sel select {
    width: 100%; min-height: 46px; border-radius: 14px; border: 1.5px solid var(--e-line-2); background: var(--e-surface);
    padding: 0 14px; font: 600 14.5px var(--e-body); color: var(--e-ink);
}
.e-hist-sel select:focus { outline: none; border-color: var(--e-sea-2); box-shadow: 0 0 0 3px rgba(24, 81, 112, .18); }
.e-hist-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.e-hist-chip {
    min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--e-surface); color: var(--e-ink-2);
    box-shadow: inset 0 0 0 1.5px var(--e-line); font: 700 13.5px var(--e-body); cursor: pointer; white-space: nowrap;
}
.e-hist-chip:hover { color: var(--e-ink); }
.e-hist-chip[aria-pressed="true"] { background: var(--e-ink); color: #fff; box-shadow: none; }
.e-hist-chip:focus-visible { outline: 3px solid var(--e-sea-2); outline-offset: 2px; }

/* ---------- lista dni i wpisów ---------- */
.e-hist-day { font: 700 13.5px var(--e-body) !important; letter-spacing: .02em !important; text-transform: uppercase; color: var(--e-ink-3); margin: 26px 0 10px !important; }
.e-hist-day:first-child { margin-top: 0 !important; }
.e-hist-list { display: flex; flex-direction: column; gap: 10px; }
.e-hist-row {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start;
    background: var(--e-surface); border-radius: var(--e-radius-s); padding: 14px 16px; box-shadow: var(--e-shadow);
    text-decoration: none; color: inherit; transition: background .15s;
}
a.e-hist-row:hover { background: var(--e-surface-2); }
a.e-hist-row:focus-visible { outline: 3px solid var(--e-sea-2); outline-offset: 2px; }
.e-hist-row.unread { background: var(--e-sea-tint); }
a.e-hist-row.unread:hover { background: var(--e-surface-2); }
.e-hist-main { min-width: 0; }
.e-hist-title { font: 700 15px/1.35 var(--e-body); color: var(--e-ink); overflow-wrap: anywhere; }
.e-hist-body { margin-top: 3px; font: 500 14px/1.45 var(--e-body); color: var(--e-ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.e-hist-ctx { margin-top: 6px; font: 600 12.5px var(--e-body); color: var(--e-ink-3); overflow-wrap: anywhere; }
.e-hist-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-top: 2px; }
.e-hist-time { font: 600 12.5px var(--e-body); color: var(--e-ink-3); font-variant-numeric: tabular-nums; }
.e-hist-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--e-sea-2); box-shadow: 0 0 0 3px rgba(24, 81, 112, .16); }
.e-hist-more { display: flex; justify-content: center; margin: 22px 0 6px; }
.e-hist-err { background: var(--e-late-tint); color: var(--e-late); border-radius: var(--e-radius-s); padding: 18px 20px; }
.e-hist-err p { margin: 0 0 12px; font-weight: 700; }

/* ---------- telefon ---------- */
@media (max-width: 760px) {
    .e-hist .e-page-h h1 { font-size: 32px; }
    .e-hist-sub { margin-top: -6px; }
    .e-hist-sel { max-width: none; }
    .e-hist-chip { white-space: normal; text-align: left; }
    .e-hist-row { grid-template-columns: auto minmax(0, 1fr); padding: 13px 14px; gap: 12px; }
    .e-hist-side { grid-column: 2; flex-direction: row-reverse; justify-content: flex-end; align-items: center; padding-top: 0; }
    .e-hist .e-page-h .e-btn { width: 100%; }
}
@media (max-width: 480px) {
    .e-hist-sel select { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .e-hist-row, .portal-notif-all { transition: none; }
}
