/* FJN System — D223 (SPEC 1.232) E3-01 on the phone: the day as the stations one under the other
   (tiles min. 64 px, a visit row 48 px | 1fr | auto, free windows 56 px dashed, the „teraz” line)
   and the week as day cards; the colours of the states from D155 (fjn-tyre.css). */
.fjn-tcalm, .fjn-tweekm { display: flex; flex-direction: column; gap: 10px; }
.fjn-tcalm__msg { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 20px; }
.fjn-tcalm__msg > svg { flex: none; margin-top: 2px; }
.fjn-tcalm__msg > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.fjn-tcalm__msg b { font-size: 15px; }
.fjn-tcalm__msg--info { background: var(--fjn-info-100); color: var(--fjn-info-700); }
.fjn-tcalm__msg--warn { background: var(--fjn-warning-100); color: var(--fjn-warning-700); }
.fjn-tcalm__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fjn-tcalm__tile { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 8px; border: 1px solid var(--fjn-border); border-radius: 8px; background: var(--fjn-surface); color: var(--fjn-text); font-size: 12px; font-weight: 400; text-decoration: none; }
.fjn-tcalm__tile b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fjn-tcalm__tile > span { color: var(--fjn-text-2); }
.fjn-tcalm__occ { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.fjn-tcalm__occ .fjn-bar { flex: 1; min-width: 0; height: 6px; }
.fjn-tcalm__occ b { font-size: 11px; color: var(--fjn-text); }
.fjn-tcalm__lane { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; scroll-margin-top: 64px; }
.fjn-tcalm__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fjn-tcalm__head h2 { margin: 0; font-size: 17px; line-height: 24px; white-space: nowrap; }
.fjn-tcalm__head span { font-size: 13px; color: var(--fjn-text-2); white-space: nowrap; }
.fjn-tcalm__visit { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 64px; padding: 8px 10px; border-left-width: 4px; border-left-style: solid; border-radius: 8px; box-sizing: border-box; font-weight: 400; text-decoration: none; }
.fjn-tcalm__time { display: flex; flex-direction: column; }
.fjn-tcalm__time b { font-size: 15px; line-height: 20px; }
.fjn-tcalm__time span { font-size: 13px; line-height: 18px; }
.fjn-tcalm__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fjn-tcalm__plate { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fjn-tcalm__plate b { font-size: 15px; line-height: 20px; white-space: nowrap; }
.fjn-tcalm__svc { font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fjn-tcalm__state { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--fjn-surface); font-size: 12px; font-weight: 700; white-space: nowrap; }
.fjn-tcalm__state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.fjn-tcalm__visit.fjn-tcal__visit--nie { opacity: 1; }
.fjn-tcalm__free { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px; border: 1.5px dashed #1E4F8A; border-radius: 8px; background: #F1F5FB; color: #1E4F8A; font-size: 15px; font-weight: 700; text-decoration: none; }
.fjn-tcalm__free > span { flex: 1; }
.fjn-tcalm__now { display: flex; align-items: center; gap: 8px; color: #B3261E; font-size: 12px; font-weight: 700; }
.fjn-tcalm__now::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #EE2E3C; }
.fjn-tcalm__now::after { content: ""; flex: 1; height: 2px; background: #EE2E3C; }
/* the week: day cards */
.fjn-tweekm__card { display: flex; flex-direction: column; border: 1px solid var(--fjn-border); border-radius: 10px; background: var(--fjn-surface); color: var(--fjn-text); font-weight: 400; text-decoration: none; overflow: hidden; }
.fjn-tweekm__head { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; background: var(--fjn-bg); border-bottom: 1px solid var(--fjn-border); }
.fjn-tweekm__card.is-today .fjn-tweekm__head { background: #E3ECF7; }
.fjn-tweekm__card.is-closed .fjn-tweekm__head { background: #FBE6E4; }
.fjn-tweekm__day { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fjn-tweekm__day b { font-size: 16px; }
.fjn-tweekm__day span, .fjn-tweekm__sum small { font-size: 12px; color: var(--fjn-text-2); }
.fjn-tweekm__sum { display: flex; flex-direction: column; align-items: flex-end; }
.fjn-tweekm__sum b { font-size: 14px; white-space: nowrap; }
.fjn-tweekm__st { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-top: 1px solid var(--fjn-surface-2); }
.fjn-tweekm__head + .fjn-tweekm__st { border-top: 0; }
.fjn-tweekm__top, .fjn-tweekm__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fjn-tweekm__top b { font-size: 14px; }
.fjn-tweekm__top span { font-size: 13px; color: var(--fjn-text-2); white-space: nowrap; }
.fjn-tweekm__bottom .fjn-bar { flex: 1; min-width: 0; height: 6px; }
.fjn-tweekm__free { font-size: 12px; color: var(--fjn-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.fjn-tweekm__st.is-full .fjn-tweekm__free { color: var(--fjn-danger-700); font-weight: 700; }
.fjn-tweekm__closed { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; font-size: 14px; }
