/* Rozvrh: odpracovaný čas a běžící stopky v týdenní mřížce (f3/cal-time.js) a oprava stopek z horní lišty */
.f3 .f3-ctl .f3-timesw { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; user-select: none; margin-left: auto; }

/* two lanes: plan (tasks, meetings) on the left, what really happened on the right */
.cal-grid.with-time { grid-template-columns: 46px repeat(7, minmax(140px, 1fr)); min-width: 1026px; }
.cal-grid.with-time .cal-ev { right: calc(50% + 1px); }
.cal-te { position: absolute; left: calc(50% + (50% - 3px) * var(--l, 0) / var(--n, 1)); width: calc((50% - 3px) / var(--n, 1) - 1px); z-index: 3; display: flex; flex-direction: column; overflow: hidden; text-align: left; font: inherit; font-size: 11.5px; line-height: 1.25; color: var(--text);
  padding: 3px 6px; border-radius: 7px; border: 1.5px solid var(--c); cursor: pointer; touch-action: none;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 34%, var(--surface)) 0 7px, color-mix(in srgb, var(--c) 24%, var(--surface)) 7px 14px); }
.cal-te b { font-weight: 600; } .cal-te small { font-size: 10.5px; opacity: .9; font-variant-numeric: tabular-nums; }
.cal-te svg, .ag-it.tev b svg { display: inline-block; width: 11px; height: 11px; margin-right: 3px; vertical-align: -1px; }
.cal-te:hover { box-shadow: var(--shadow-sm); filter: brightness(.98); z-index: 5; }
.cal-te:focus-visible { outline: 2px solid var(--ring, var(--primary)); outline-offset: 1px; }
.cal-te.short { flex-direction: row; align-items: center; gap: 4px; padding-top: 0; padding-bottom: 0; } .cal-te.short small { display: none; }
.cal-te.mv { cursor: grab; }
.cal-te.ro { cursor: default; opacity: .8; }
.cal-te.cut-t { border-top-style: dashed; border-top-left-radius: 0; border-top-right-radius: 0; }
.cal-te.cut-b { border-bottom-style: dashed; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.cal-te.run { border-color: var(--danger); }
.cal-te.run-end { border-bottom: 3px solid var(--danger); animation: cal-te-pulse 2s ease-in-out infinite; }
@keyframes cal-te-pulse { 50% { border-bottom-color: color-mix(in srgb, var(--danger) 35%, transparent); } }
@media (prefers-reduced-motion: reduce) { .cal-te.run-end { animation: none; } }
.cal-te .te-rs { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.cal-te .te-rs::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: var(--c); opacity: 0; transition: opacity var(--t, .15s); }
.cal-te:hover .te-rs::after { opacity: .9; }
.cal-te.dragging { cursor: grabbing; box-shadow: var(--shadow); z-index: 6; opacity: .92; }
.lg.tev { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--primary) 45%, var(--surface)) 0 3px, color-mix(in srgb, var(--primary) 25%, var(--surface)) 3px 6px); border: 1.5px solid var(--primary); }
.lg.tev.run { border-color: var(--danger); border-bottom-width: 3px; }

/* phone list */
.ag-it.tev { border-left-style: solid; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, var(--surface)) 0 7px, color-mix(in srgb, var(--c) 14%, var(--surface)) 7px 14px); }
.ag-it.tev.run { border-left-color: var(--danger); }

/* „Upravit začátek“ under a running timer in the top bar */
.tp-item { flex-wrap: wrap; row-gap: 2px; }
.tp-adj { flex-basis: 100%; display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 2px 0 0; font: inherit; font-size: 12.5px; color: var(--primary); cursor: pointer; text-align: left; }
.tp-adj:hover { text-decoration: underline; }
.tp-adj svg { width: 13px; height: 13px; }
.tadj [hidden] { display: none !important; }

@media (max-width: 768px) { .f3 .f3-ctl .f3-timesw { margin-left: 0; } }
