/* Emglare Calendar — doplňky ke stylům Workspace/Trackeru (style.css, work.css): kalendářové pohledy, editor, sdílení. */

/* vlastní tlačítka bez globálního oranžového stylu ze style.css */
.cal-new, .pbtn, .chip, .dlink, .more, .mini button, .side-add, .sw, .lv-row, .pg-m, .att-sug button, .att-chip .att-x, .ed-days label, .tv-t button { box-shadow: none; transform: none !important; font-family: inherit; }
.chip, .dlink, .more, .mini button, .side-add, .lv-row, .pg-m, .att-sug button, .tv-t button { background: none; color: inherit; border-radius: 6px; padding: 0; font-weight: inherit; font-size: inherit; text-align: left; }
.chip:hover, .dlink:hover, .more:hover, .lv-row:hover, .pg-m:hover, .tv-t button:hover { transform: none; }

/* ---------- levý panel ---------- */
.cal-new { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 6px 16px rgba(241,140,21,.30); }
.cal-new:hover { background: var(--orange-dark); }
.nbadge { background: var(--orange); color: #fff !important; border-radius: 99px; padding: 1px 7px; font-size: 10.5px !important; font-weight: 700; }
.mini { margin: 0 2px 14px; color: #c9ccd1; }
.mini-h { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 6px; }
.mini-h b { color: #fff; font-size: 12.5px; font-weight: 600; }
.mini-h .ibtn { color: #8b9098; background: none; }
.mini-h .ibtn:hover { color: #fff; background: rgba(255,255,255,.07); }
.mini-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; }
.mini-g i { font-style: normal; font-size: 9.5px; color: #6f757e; text-transform: uppercase; padding: 2px 0 4px; }
.mini button { height: 25px; font-size: 11.5px; color: #c9ccd1; text-align: center; border-radius: 7px; font-variant-numeric: tabular-nums; }
.mini button:hover { background: rgba(255,255,255,.08); color: #fff; }
.mini button.out { color: #5f656e; }
.mini button.today { color: var(--orange); font-weight: 700; }
.mini button.sel { background: var(--orange); color: #fff; font-weight: 700; }
.side-h { display: flex; align-items: center; justify-content: space-between; }
.side-add { color: #8b9098; padding: 3px; border-radius: 6px; display: inline-flex; }
.side-add:hover { color: #fff; background: rgba(255,255,255,.08); }
.cal-list { display: flex; flex-direction: column; gap: 1px; }
.cal-it { display: flex; align-items: center; gap: 4px; padding-right: 4px; border-radius: 8px; }
.cal-it:hover { background: rgba(255,255,255,.05); }
.cal-it .side-add { visibility: hidden; }
.cal-it:hover .side-add { visibility: visible; }
.cal-it label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; margin: 0; padding: 6px 10px; color: #c9ccd1; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.cal-it label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-it input { appearance: none; width: 15px; height: 15px; margin: 0; border-radius: 4px; border: 2px solid var(--c); flex-shrink: 0; cursor: pointer; display: grid; place-items: center; }
.cal-it input:checked { background: var(--c); }
.cal-it input:checked::after { content: ''; width: 7px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }

/* ---------- hlavička ---------- */
.cal-head { align-items: center; }
.cal-head h1 { font-size: 20px; }
.navbtns { display: inline-flex; gap: 4px; }
.navbtns .tbtn { padding: 6px 9px; }
.pbtn { display: inline-flex; align-items: center; gap: 6px; background: var(--orange); color: #fff; border-radius: 8px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; }
.pbtn:hover { background: var(--orange-dark); }
.pbtn:disabled { opacity: .5; }
.mob-new { display: none; }
.cal-notice { margin: 10px 28px 0; padding: 9px 12px; border-radius: 10px; background: #f4f5f7; color: #5b6270; font-size: 12.5px; display: flex; gap: 8px; align-items: flex-start; }
.cal-notice.warn { background: #fff4e5; color: #8a4b00; display: block; margin: 10px 0 0; }
.cal-notice ul { margin: 6px 0 0; padding-left: 18px; }
.tbtn.danger-t { color: var(--red); }
.tbtn.danger-t:hover { border-color: #f1b9b9; background: var(--red-soft); }
.hol { display: block; font-size: 10px; color: var(--red); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlink:hover b, .dlink:hover { color: var(--orange-dark); }

/* ---------- časová mřížka (den, týden) ---------- */
.tg { flex: 1; min-height: 0; display: flex; }
.tg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.tg-head { display: flex; border-bottom: 1px solid #eef0f2; }
.tg-lane { display: flex; border-bottom: 1px solid #e3e5e8; }
.tg-gutter { width: 56px; flex-shrink: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 8px 6px 0; }
.tg-gutter small { font-size: 9.5px; color: var(--gray); text-transform: uppercase; letter-spacing: .04em; }
.tg-dh { flex: 1; min-width: 0; padding: 8px 6px 6px; border-left: 1px solid #f1f2f4; text-align: center; }
.tg-dh .dlink { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; }
.tg-dh small { font-size: 10.5px; color: var(--gray); text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.tg-dh b { font-size: 20px; font-weight: 500; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.tg-dh.today b { background: var(--orange); color: #fff; }
.tg-dh.today small { color: var(--orange-dark); }
.tg-dh.we { background: #fafafb; }
.tg-ad { flex: 1; min-width: 0; border-left: 1px solid #f1f2f4; padding: 4px 3px; display: flex; flex-direction: column; gap: 2px; min-height: 30px; }
.tg-ad.we { background: #fafafb; }
.tg-scroll { flex: 1; overflow-y: auto; min-height: 0; position: relative; }
.tg-body { display: flex; position: relative; }
.tg-hours { width: 56px; flex-shrink: 0; }
.tg-hours div { position: relative; text-align: right; padding-right: 8px; }
.tg-hours small { position: relative; top: -7px; font-size: 10px; color: var(--gray); font-variant-numeric: tabular-nums; }
.tg-cols { flex: 1; display: grid; position: relative; background-image: repeating-linear-gradient(to bottom, #f0f1f3 0, #f0f1f3 1px, transparent 1px, transparent 44px); }
.tg-col { position: relative; border-left: 1px solid #eef0f2; cursor: crosshair; user-select: none; }
.tg-col.we { background: rgba(23,25,28,.018); }
.now-line { position: absolute; left: -1px; right: 0; height: 2px; background: #e0352b; z-index: 4; pointer-events: none; }
.now-line::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #e0352b; }

/* události */
.ev { position: absolute; overflow: hidden; border-radius: 7px; padding: 3px 6px; font-size: 11.5px; line-height: 1.3; cursor: pointer; z-index: 2;
  background: color-mix(in srgb, var(--c) 16%, #fff); border-left: 3px solid var(--c); color: color-mix(in srgb, var(--c) 55%, #17191c); }
.ev:hover { z-index: 5; box-shadow: 0 6px 18px rgba(23,25,28,.14); }
.ev b { display: flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev b svg { flex-shrink: 0; }
.ev small { display: block; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; }
.ev.ev-other { background: color-mix(in srgb, var(--c) 8%, #fff); border-left-style: solid; opacity: .92; }
.ev.ev-masked { background: repeating-linear-gradient(135deg, #f1f2f4 0 6px, #e8eaed 6px 12px); border-left-color: #b2b6bc; color: #5b6270; }
.ev.ev-out { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, #fff) 0 6px, color-mix(in srgb, var(--c) 20%, #fff) 6px 12px); }
.ev.ev-needs { background: #fff; border: 1px dashed var(--c); border-left: 3px solid var(--c); }
.ev.ev-tent { background: repeating-linear-gradient(135deg, #fff 0 5px, color-mix(in srgb, var(--c) 12%, #fff) 5px 10px); }
.ev.ev-declined { background: #fff; opacity: .55; text-decoration: line-through; }
.ev.ev-free { opacity: .75; border-left-style: dotted; }
.ev-ghost { background: color-mix(in srgb, var(--orange) 22%, #fff); border-left: 3px solid var(--orange); color: var(--orange-dark); font-weight: 600; pointer-events: none; left: 2px; right: 3px; }

/* štítky v celodenním pruhu, v měsíci a v seznamu */
.chip { display: flex; align-items: center; gap: 4px; width: 100%; min-width: 0; padding: 2px 6px; border-radius: 6px; font-size: 11.5px; line-height: 1.35; cursor: pointer; color: #17191c;
  background: color-mix(in srgb, var(--c, #5b8def) 14%, #fff); border-left: 3px solid var(--c, #5b8def); position: static; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.chip em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--c) 60%, #17191c); }
.chip svg { flex-shrink: 0; }
.chip.ev-masked { background: repeating-linear-gradient(135deg, #f1f2f4 0 5px, #e8eaed 5px 10px); border-left-color: #b2b6bc; color: #5b6270; }
.chip.ev-needs { background: #fff; border: 1px dashed var(--c); border-left: 3px solid var(--c); }
.chip.ev-declined { opacity: .5; text-decoration: line-through; }
.chip.ev-out { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, #fff) 0 5px, color-mix(in srgb, var(--c) 18%, #fff) 5px 10px); }
.task-chip { --c: #8a8f96; background: #f4f5f7; border-left: 3px solid #b2b6bc; color: #3a4250; text-decoration: none; }
.task-chip:hover { background: #eceef1; }
.abs { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 1px 7px 1px 4px; border-radius: 99px; font-size: 11px; font-weight: 500; color: #3a4250; background: #eef4ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abs i { font-style: normal; font-size: 11px; }
.abs-vacation { background: #e7f6ee; color: #1e6a43; }
.abs-homeoffice { background: #eef1ff; color: #3d46a3; }
.abs-trip { background: #fdf1e3; color: #9a5a0a; }
.abs-absent, .abs-sick, .abs-ocr, .abs-unpaid { background: #f1f2f4; color: #4a4e54; }
.abs-doctor, .abs-sickday { background: #fdeef3; color: #9b2c55; }
.abs.pending { background: #fff; border: 1px dashed #c9cdd3; }
.more { font-size: 11px; color: var(--gray); font-weight: 600; padding: 1px 6px; }
.more:hover { color: var(--orange-dark); }

/* docházka dnes */
.pres-strip { display: flex; align-items: center; justify-content: center; margin-top: 4px; gap: 0; }
.pres-strip small { font-size: 10px; color: var(--gray); margin-left: 5px; white-space: nowrap; }
.pav { position: relative; margin-left: -4px; }
.pav .av { border: 2px solid #fff; }
.pav::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #fff; background: #b2b6bc; }
.pav.in::after { background: #1baf7a; }
.pav.pause::after { background: #eda100; }
.pav.ho::after { background: #5b6bff; }
.pav.left::after { background: #8a8f96; }
.pdot2 { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c9cdd3; flex-shrink: 0; }
.pdot2.in { background: #1baf7a; }
.pdot2.pause { background: #eda100; }
.pdot2.ho { background: #5b6bff; }
.pdot2.left { background: #8a8f96; }
.pdot2.out { background: #e34948; }

/* panel u dne */
.day-side { width: 280px; flex-shrink: 0; border-left: 1px solid #eef0f2; padding: 16px 18px; overflow-y: auto; }
.day-side h4 { display: flex; align-items: center; gap: 7px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); margin: 4px 0 10px; }
.day-side h4 + * { margin-bottom: 20px; }
.pres-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pres-list li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; }
.pres-list li > span { flex: 1; min-width: 0; }
.pres-list small { display: block; color: var(--gray); font-size: 11px; font-weight: 400; }
.side-chips { display: flex; flex-direction: column; gap: 4px; }

/* ---------- měsíc ---------- */
.mv { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 0 4px; }
.mv-h { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid #eef0f2; }
.mv-h div { padding: 8px 8px 6px; font-size: 10.5px; text-transform: uppercase; font-weight: 600; color: var(--gray); letter-spacing: .04em; }
.mv-g { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(96px, 1fr)); overflow-y: auto; }
.mv-c { border-right: 1px solid #f0f1f3; border-bottom: 1px solid #f0f1f3; padding: 4px 4px 6px; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
.mv-c.we { background: #fafafb; }
.mv-c.out { background: #fbfbfc; }
.mv-c.out .mv-d .dlink { color: #b2b6bc; }
.mv-d { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 2px 2px; }
.mv-d .dlink { font-size: 12.5px; font-weight: 600; min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; text-align: center; }
.mv-c.today .mv-d .dlink { background: var(--orange); color: #fff; }
.mv-abs { display: flex; flex-wrap: wrap; gap: 2px; }
.mv-abs .abs { font-size: 10.5px; padding: 0 6px 0 3px; }

/* ---------- seznam ---------- */
.lv { max-width: 900px; }
.lv-day { margin-bottom: 18px; }
.lv-day h3 { display: flex; align-items: baseline; gap: 10px; font-size: 14px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid #eef0f2; }
.lv-day.today h3 .dlink { color: var(--orange-dark); }
.lv-day h3 .hol { display: inline; }
.lv-abs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.lv-abs .chip { width: auto; }
.lv-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.lv-row:hover { background: #f6f7f8; }
.lv-t { width: 92px; flex-shrink: 0; font-size: 12px; font-weight: 600; color: #4a4e54; font-variant-numeric: tabular-nums; }
.lv-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex-shrink: 0; }
.lv-m { flex: 1; min-width: 0; }
.lv-m b { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.lv-m small { display: block; font-size: 11.5px; color: var(--gray); margin-top: 1px; }
.lv-row .av { margin-left: -5px; border: 2px solid #fff; }
.lv-row.ev-masked .lv-dot { background: repeating-linear-gradient(135deg, #c9cdd3 0 3px, #e8eaed 3px 6px); }
.lv-row.ev-declined b { text-decoration: line-through; opacity: .6; }
.lv-row.ev-needs .lv-dot { background: #fff; border: 2px dashed var(--c); }
.lv-row.ev, .pg-row.ev { position: static; background: none; border: 0; color: inherit; padding: 8px 10px; }

/* ---------- tým a kancelář ---------- */
.tv-today { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 6px 0 18px; }
.tv-grp > small { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.tv-grp > div { display: flex; gap: 12px; flex-wrap: wrap; }
.tv-p { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.tv-p em { display: block; font-style: normal; font-weight: 400; font-size: 11px; color: var(--gray); }
.tv-wrap { overflow-x: auto; border: 1px solid #eef0f2; border-radius: 12px; }
.tv-t { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 12px; }
.tv-t th, .tv-t td { border-bottom: 1px solid #f0f1f3; border-left: 1px solid #f3f4f5; text-align: center; padding: 0; }
.tv-t thead th { padding: 6px 2px; font-weight: 600; font-size: 12px; background: #fafafb; position: sticky; top: 0; }
.tv-t thead th small { display: block; font-size: 9.5px; text-transform: uppercase; color: var(--gray); }
.tv-t thead th.today { color: var(--orange-dark); }
.tv-t th:first-child { text-align: left; padding: 6px 12px; min-width: 190px; border-left: 0; background: #fff; position: sticky; left: 0; z-index: 1; }
.tv-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; }
.tv-t td { height: 38px; position: relative; cursor: pointer; font-size: 14px; }
.tv-t td:hover { background: #f6f7f8; }
.tv-t td.we { background: #fafafb; }
.tv-t td.today { box-shadow: inset 2px 0 0 var(--orange), inset -2px 0 0 var(--orange); }
.tv-t td.abs { display: table-cell; border-radius: 0; padding: 0; max-width: none; }
.tv-t td.abs-vacation { background: #e7f6ee; }
.tv-t td.abs-homeoffice { background: #eef1ff; }
.tv-t td.abs-trip { background: #fdf1e3; }
.tv-t td.abs-absent, .tv-t td.abs-sick, .tv-t td.abs-ocr, .tv-t td.abs-unpaid { background: #eceef1; }
.tv-t td.abs-doctor, .tv-t td.abs-sickday { background: #fdeef3; }
.tv-t td.pending { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.7) 0 4px, transparent 4px 8px); }
.tv-t td.outev { background: repeating-linear-gradient(135deg, #f6f0ff 0 5px, #ece3ff 5px 10px); color: #5a3fb0; font-weight: 700; }
.busy { position: absolute; left: 4px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--orange); opacity: .75; }
.tv-t td .pdot2 { position: absolute; top: 5px; right: 5px; }
.tv-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 11.5px; color: var(--gray); align-items: center; }
.tv-legend span { display: inline-flex; align-items: center; gap: 5px; position: relative; }
.tv-legend .pending-l::before { content: ''; width: 14px; height: 12px; border-radius: 3px; background: repeating-linear-gradient(135deg, #e7f6ee 0 3px, #fff 3px 6px); border: 1px dashed #c9cdd3; }

/* ---------- modální okna ---------- */
.modal.wide { width: 760px; }
.modal.narrow { width: 460px; }
.ask-foot { flex-wrap: wrap; }
.ev-head .ev-sq { width: 14px; height: 14px; border-radius: 4px; background: var(--c); margin-top: 3px; flex-shrink: 0; }
.ev-detail { font-size: 13px; }
.ed-row { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; color: #3a4250; }
.ed-row svg { color: var(--gray); flex-shrink: 0; margin-top: 1px; }
.ed-row a { color: var(--orange-dark); word-break: break-all; }
.ed-row .pdot { vertical-align: 0; }
.bill { font-style: normal; color: var(--green); font-weight: 600; }
.ed-h { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); margin: 16px 0 8px; font-weight: 700; }
.att-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.att-list li { display: flex; align-items: center; gap: 10px; }
.att-list li > span { flex: 1; min-width: 0; font-weight: 500; }
.att-list small { color: var(--gray); font-weight: 400; display: block; font-size: 11px; }
.av.ext { background: #b2b6bc; color: #fff; font-size: 11px; }
.st { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #f1f2f4; color: #5b6270; }
.st.ok { background: var(--green-soft); color: var(--green); }
.st.no { background: var(--red-soft); color: var(--red); }
.st.maybe { background: #fff4e5; color: #8a4b00; }
.ed-desc { white-space: normal; line-height: 1.55; color: #3a4250; background: #f8f9fa; border-radius: 10px; padding: 10px 12px; }
.ed-track { margin-top: 14px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--green); font-weight: 600; }
.ev-foot { flex-wrap: wrap; align-items: center; }
.rsvp { display: flex; align-items: center; gap: 5px; }
.rsvp small { color: var(--gray); margin-right: 4px; font-size: 12px; }
.muted { color: var(--gray); }

/* ---------- editor ---------- */
.ed .seg.ed-kind { margin-bottom: 12px; flex-wrap: wrap; }
.ed-title { font-size: 17px !important; font-weight: 600; padding: 10px 12px !important; }
.ed-time, .ed-rep { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ed-time > svg, .ed-rep > svg { color: var(--gray); flex-shrink: 0; }
.ed-time input[type=date] { width: 150px; padding: 8px 10px; }
.ed-time input[type=time] { width: 104px; padding: 8px 10px; }
.ed-rep select { width: auto; padding: 8px 10px; }
.ed-custom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; width: 100%; padding: 8px 0 0 23px; }
.ed-custom input[type=number] { width: 64px; padding: 6px 8px; }
.ed-custom select, .ed-custom input[type=date] { width: auto; padding: 6px 8px; }
.ed-days { display: inline-flex; gap: 3px; }
.ed-days label { margin: 0; display: inline-flex; align-items: center; cursor: pointer; }
.ed-days input { display: none; }
.ed-days label:has(input) { padding: 4px 7px; border-radius: 7px; background: #f2f3f5; font-size: 11.5px; font-weight: 600; color: #5b6270; }
.ed-days label:has(input:checked) { background: var(--orange); color: #fff; }
.ck-line { display: flex !important; align-items: center; gap: 7px; font-size: 12.5px !important; font-weight: 500 !important; color: #3a4250 !important; margin: 8px 0 0 !important; cursor: pointer; }
.ck-line input { width: auto; margin: 0; }
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ed-grid > div { min-width: 0; }
.ed label { display: flex; align-items: center; gap: 6px; }
.ed label svg { color: var(--gray); }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; justify-content: center; }
.ed small.hint { display: block; }
.att-box { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 6px; min-height: 44px; border: 1px solid #d3d7dc; border-radius: 12px; cursor: text; }
.att-box:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 15%, transparent); }
.att-box input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 160px; padding: 6px !important; }
.att-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 3px; border-radius: 99px; background: #f2f3f5; font-size: 12.5px; font-weight: 500; }
.att-chip .att-x { background: none; color: var(--gray); padding: 2px; border-radius: 50%; display: inline-flex; }
.att-chip .att-x:hover { background: #e2e4e8; color: var(--ink); }
.avail { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.avail.free { background: #1baf7a; }
.avail.busy { background: #eda100; }
.avail.out { background: #e34948; }
.att-sug { position: absolute; z-index: 70; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.18); padding: 6px; min-width: 300px; margin-top: 4px; }
.ed-people { position: relative; }
.att-sug button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 9px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.att-sug button small { display: block; font-size: 11px; color: var(--gray); font-weight: 400; }
.att-sug button.on, .att-sug button:hover { background: var(--orange-soft); }
#ed-avail { margin-top: 6px; }
#ed-avail .ok { color: var(--green); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 26px; height: 26px; border-radius: 50%; padding: 0; border: 3px solid #fff; outline: 1px solid #e2e4e8; }
.sw.on { outline: 2px solid var(--ink); }

/* zápis do trackeru */
.tk-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0 14px; }
.tk-people { display: flex; flex-direction: column; gap: 6px; }
.tk-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #eceef1; border-radius: 10px; }
.tk-row label { flex: 1; display: flex !important; align-items: center; gap: 9px; margin: 0 !important; font-size: 13px !important; color: var(--ink) !important; cursor: pointer; }
.tk-row label input { width: auto; margin: 0; }
.tk-row label small { color: var(--gray); }
.tk-row input[type=time] { width: 96px; padding: 6px 8px; }
.tk-row:has(input[type=checkbox]:not(:checked)) { opacity: .5; }

/* ---------- stránky ---------- */
.pg-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #eef0f2; border-radius: 12px; margin-bottom: 8px; }
.pg-m { flex: 1; min-width: 0; cursor: pointer; }
.pg-m b { display: block; font-size: 13.5px; font-weight: 600; }
.pg-m small { display: block; color: var(--gray); font-size: 12px; margin-top: 2px; }
.pg-act { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-card { border: 1px solid #eef0f2; border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; max-width: 920px; }
.sh-card h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 4px; }
.sh-card h3 svg { color: var(--orange); }
.sh-card.soon { background: #fafafb; }
.sh-card.soon h3 svg { color: var(--gray); }
.sh-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #f0f1f3; flex-wrap: wrap; }
.sh-m { flex: 1; min-width: 240px; }
.sh-m b { font-size: 13.5px; }
.sh-m small { display: block; color: var(--gray); font-size: 11.5px; margin: 2px 0 4px; }
.sh-m code { display: block; font-size: 11px; color: #5b6270; background: #f4f5f7; padding: 4px 8px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.sh-act { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-act a.tbtn { text-decoration: none; }
.sh-new { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 12px; border-top: 1px solid #f0f1f3; }
.sh-sel { width: auto !important; padding: 6px 10px !important; font-size: 12px !important; border-radius: 8px !important; }
.sh-help { margin-top: 12px; font-size: 12.5px; color: #4a4e54; }
.sh-help summary { cursor: pointer; font-weight: 600; color: var(--orange-dark); }
.sh-help ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; }
.sh-share { border-top: 1px solid #f0f1f3; margin-top: 4px; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-it { display: inline-flex !important; align-items: center; gap: 7px; margin: 0 !important; padding: 5px 10px 5px 6px; border-radius: 99px; background: #f2f3f5; cursor: pointer; font-size: 12.5px !important; color: var(--ink) !important; }
.pick-it input { width: auto; margin: 0; }
.pick-it:has(input:checked) { background: var(--orange-soft); outline: 1px solid #f6c48a; }
.sh-line { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.sh-line > div { min-width: 180px; }
.wk-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 60px 20px; color: var(--gray); text-align: center; }
.wk-empty svg { color: #c9cdd3; }
.wk-empty b { color: var(--ink); font-size: 15px; }

/* ---------- menší obrazovky ---------- */
@media (max-width: 1180px) {
  .day-side { display: none; }
}
@media (max-width: 760px) {
  .mob-new { display: inline-flex; }
  .cal-head h1 { font-size: 17px; }
  .cal-head .seg button { padding: 5px 8px; }
  .cal-notice { margin: 8px 16px 0; }
  .tg-gutter, .tg-hours { width: 40px; }
  .tg-dh b { font-size: 16px; width: 28px; height: 28px; }
  .pres-strip { display: none; }
  .tg-ad .abs { font-size: 10px; }
  .mv-g { grid-template-rows: repeat(6, minmax(64px, 1fr)); }
  .mv-c .chip span, .mv-c .chip em { font-size: 10px; }
  .mv-c .chip { padding: 1px 3px; }
  .mv-abs .abs { font-size: 9.5px; }
  .ed-grid, .tk-grid { grid-template-columns: 1fr; }
  .modal.wide, .modal.narrow { width: 100%; }
  .lv-t { width: 70px; }
  .lv-row .av { display: none; }
}

/* avatary nesmí růst v řádcích s flex: 1 (seznamy lidí) */
.av { flex: 0 0 auto !important; }
.tv-t th { text-transform: none; letter-spacing: normal; color: var(--ink); }
.tv-t thead th { color: #4a4e54; }
