/* FekoCal 2 – vzhled. Barvy přes proměnné Bootstrapu, takže funguje světlý i tmavý režim. */

:root {
    --slot-h: 30px;        /* výška řádku mřížky (= slot_minutes v configu) */
    --axis-w: 50px;
    --nav-h: 48px;
    --toolbar-h: 44px;
    --sidebar-w: 264px;
}

html, body { height: 100%; }
body { background: var(--bs-body-bg); }
.min-w-0 { min-width: 0; }
.min-h-0 { min-height: 0; }
.btn-xs { --bs-btn-padding-y: .05rem; --bs-btn-padding-x: .4rem; --bs-btn-font-size: .72rem; }

/* ------------------------------------------------------------ navigace */
.app-nav { height: var(--nav-h); flex: none; }
.app-nav .nav-link.active { color: var(--bs-emphasis-color); }

/* ------------------------------------------------------------ rozvržení stránky kalendáře */
.page-calendar { display: flex; flex-direction: column; overflow: hidden; }
.cal-layout { flex: 1; display: flex; min-height: 0; }
.cal-sidebar { width: var(--sidebar-w); flex: none; border-right: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); }
@media (min-width: 992px) {
    .cal-sidebar { overflow-y: auto; }
}
.cal-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cal-toolbar { height: var(--toolbar-h); flex: none; display: flex; align-items: center; gap: .75rem; padding: 0 .75rem; }
.cal-title { flex: 1; }
.cal-date-input { width: 150px; }
.cal-scroll { flex: 1; overflow: auto; position: relative; overscroll-behavior: contain; }

/* ------------------------------------------------------------ mini kalendář */
.mini-cal { user-select: none; }
.mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .25rem; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; }
.mini-dow { font-size: .65rem; color: var(--bs-secondary-color); font-weight: 600; }
.mini-day { border: 0; background: transparent; font-size: .75rem; padding: .2rem 0; border-radius: .3rem; color: var(--bs-body-color); line-height: 1.2; }
.mini-day:hover { background: var(--bs-secondary-bg); }
.mini-day.is-other { color: var(--bs-tertiary-color); }
.mini-day.is-weekend:not(.is-other) { color: var(--bs-danger-text-emphasis); }
.mini-day.is-range { background: var(--bs-primary-bg-subtle); }
.mini-day.is-today { font-weight: 700; box-shadow: inset 0 0 0 1px var(--bs-primary); }
.mini-day.is-selected { background: var(--bs-primary); color: #fff; font-weight: 700; }

/* ------------------------------------------------------------ seznam vozidel vlevo */
.vehicle-list { display: flex; flex-direction: column; gap: 2px; }
.vehicle-row { display: flex; align-items: center; gap: .35rem; padding: .2rem .4rem; border-radius: .35rem; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); }
.vehicle-row .drag-handle { cursor: grab; color: var(--bs-tertiary-color); }
.vehicle-row.is-dragging-row { opacity: .4; }
.color-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: var(--c, #888); flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.tag-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); margin-right: .2rem; vertical-align: middle; }

/* ------------------------------------------------------------ MŘÍŽKA */
.cal-grid {
    display: grid;
    grid-template-rows: auto auto;
    min-width: 100%;
    --day-min: 125px;
    font-size: .8rem;
}
.cg-corner, .cg-vhead { position: sticky; top: 0; z-index: 20; background: var(--bs-body-bg); border-bottom: 1px solid var(--bs-border-color); }
.cg-corner { left: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; font-size: .65rem; color: var(--bs-secondary-color); padding: 2px; border-right: 1px solid var(--bs-border-color); }
.cg-axis { position: sticky; left: 0; z-index: 15; background: var(--bs-body-bg); border-right: 1px solid var(--bs-border-color); }
.cg-axis-label { position: absolute; right: 4px; transform: translateY(-50%); font-size: .68rem; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.cg-axis-label:first-child { transform: none; }

.cg-vhead { border-left: 2px solid var(--bs-border-color); display: flex; flex-direction: column; }
.cg-vhead::before { content: ""; height: 3px; background: var(--vc); }
.cg-vname { display: flex; align-items: center; gap: .35rem; padding: .25rem .4rem; font-weight: 700; min-width: 0; }
.cg-plate { font-weight: 500; font-size: .68rem; color: var(--bs-secondary-color); border: 1px solid var(--bs-border-color); border-radius: .2rem; padding: 0 .25rem; white-space: nowrap; }
.cg-days { display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); flex: 1; }
.cg-dayhead { border-left: 1px solid var(--bs-border-color-translucent); padding: 2px 3px 3px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cg-dayhead:first-child { border-left: 0; }
.cg-dayhead.is-today .cg-daylabel { background: var(--bs-primary); color: #fff; }
.cg-daylabel { font-weight: 600; font-size: .72rem; text-align: center; border-radius: .25rem; }
.cg-dayhead.is-weekend .cg-daylabel { color: var(--bs-danger-text-emphasis); }
.cg-dayhead.is-today.is-weekend .cg-daylabel { color: #fff; }
.cg-allday { min-height: calc(var(--ad-rows, 0) * 22px); display: flex; flex-direction: column; gap: 2px; }
.cg-dayhead.drop-target { background: var(--bs-primary-bg-subtle); }

.driver-chip { border: 1px dashed var(--bs-border-color); background: transparent; color: var(--bs-secondary-color); font-size: .68rem; border-radius: .25rem; padding: 0 .3rem; line-height: 1.5; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.driver-chip.has-driver { border-style: solid; background: var(--bs-secondary-bg); color: var(--bs-body-color); font-weight: 600; }
.driver-chip:disabled { opacity: 1; }
@media (hover: hover) {
    .cg-dayhead .driver-chip:not(.has-driver) { opacity: 0; transition: opacity .15s; }
    .cg-dayhead:hover .driver-chip { opacity: 1; }
}

.ad-ev {
    background: color-mix(in srgb, var(--vc) 32%, var(--bs-body-bg));
    border-left: 3px solid var(--vc);
    border-radius: .25rem; padding: 0 .3rem; height: 20px; line-height: 20px;
    font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.ad-ev.cont-left { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-style: dotted; }
.ad-ev.cont-right { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.cg-vbody { display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); border-left: 2px solid var(--bs-border-color); }
.cg-daycol {
    position: relative;
    border-left: 1px solid var(--bs-border-color-translucent);
    background-image:
        linear-gradient(to bottom, var(--bs-border-color-translucent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--bs-border-color) 40%, transparent) 1px, transparent 1px);
    background-size: 100% calc(var(--slot-h) * 2), 100% var(--slot-h);
    background-color: color-mix(in srgb, var(--vc) 5%, var(--bs-body-bg));
}
.cg-daycol:first-child { border-left: 0; }
.cg-daycol.is-weekend { background-color: color-mix(in srgb, var(--bs-secondary-bg) 70%, var(--bs-body-bg)); }
.cg-daycol.is-today { background-color: color-mix(in srgb, var(--bs-primary) 5%, var(--bs-body-bg)); }
.cg-daycol.drop-target { outline: 2px dashed var(--bs-primary); outline-offset: -2px; }
body:not(.is-dragging) .cg-daycol:hover { cursor: cell; }

.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--bs-danger); z-index: 6; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--bs-danger); }

/* karta jízdy */
.ev {
    position: absolute; z-index: 5;
    background: color-mix(in srgb, var(--vc) 26%, var(--bs-body-bg));
    border: 1px solid color-mix(in srgb, var(--vc) 55%, transparent);
    border-left: 4px solid var(--vc);
    border-radius: .3rem;
    padding: 1px 4px 2px;
    font-size: .72rem; line-height: 1.25;
    overflow: hidden; cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
    color: var(--bs-emphasis-color);
}
.ev:hover { z-index: 8; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.ev.can-drag { cursor: grab; }
.ev-line1 { display: flex; align-items: center; gap: .25rem; white-space: nowrap; }
.ev-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.ev-tag { background: var(--tc, #0d6efd); color: #fff; border-radius: .2rem; padding: 0 .25rem; font-size: .62rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ev-ico { font-size: .65rem; opacity: .75; }
.ev-main { display: flex; flex-wrap: wrap; column-gap: .3rem; }
.ev-main strong { font-weight: 700; }
.ev-action { font-weight: 600; opacity: .85; }
.ev-action::before { content: "["; } .ev-action::after { content: "]"; }
.ev-addr { font-size: .68rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-addr i { margin-right: .15rem; }
.ev.is-compact { display: flex; gap: .3rem; align-items: center; white-space: nowrap; }
.ev.is-compact .ev-main { flex-wrap: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.is-compact .ev-addr { display: none; }
.ev.is-done, .ad-ev.is-done { opacity: .55; }
.ev.is-cancelled, .ad-ev.is-cancelled { opacity: .45; text-decoration: line-through; background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0,0,0,.06) 6px 12px); }
.ev.is-clipped { border-style: dashed; border-left-style: solid; }
.ev-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.ev-resize::after { content: ""; position: absolute; left: 40%; right: 40%; bottom: 2px; height: 2px; border-radius: 1px; background: currentColor; opacity: 0; }
.ev:hover .ev-resize::after { opacity: .35; }

/* přetahování */
.is-dragging, .is-dragging * { cursor: grabbing !important; user-select: none; }
.drag-ghost { position: fixed !important; z-index: 3000; pointer-events: none; opacity: .92; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.is-drag-source { opacity: .3; }

/* kontextové menu */
.ctx-menu { position: fixed; z-index: 1080; }

/* ------------------------------------------------------------ formuláře */
.section-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--bs-secondary-color); margin-bottom: .4rem; padding-bottom: .2rem; border-bottom: 1px solid var(--bs-border-color-translucent); }
.sub-title { font-size: .75rem; font-weight: 600; color: var(--bs-secondary-color); margin-bottom: .25rem; }
.suggest-box { position: absolute; left: 0; right: 0; top: 100%; z-index: 1065; max-height: 280px; overflow-y: auto; display: none; }
.suggest-box.show { display: block; }
.address-group .position-relative .suggest-box { left: calc(var(--bs-gutter-x) * .5); right: calc(var(--bs-gutter-x) * .5); }
.client-card { border: 1px solid var(--bs-border-color); border-radius: .4rem; padding: .5rem .65rem; background: var(--bs-tertiary-bg); }
.site-options { display: flex; flex-direction: column; gap: .3rem; }
.site-option { display: flex; gap: .5rem; align-items: flex-start; padding: .35rem .55rem; border: 1px solid var(--bs-border-color); border-radius: .4rem; cursor: pointer; font-size: .85rem; }
.site-option.is-checked { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); }
fieldset:disabled .site-option { cursor: default; }

/* editor poznámek */
.rte-toolbar { margin-bottom: 2px; }
.rte-toolbar .btn { --bs-btn-padding-y: 0; --bs-btn-padding-x: .35rem; }
.rte-body { min-height: 160px; max-height: 60vh; overflow: auto; font-size: .85rem; border-top-left-radius: 0; }
.note-tabs { border-bottom: 0; }
.note-tabs .nav-link { padding: .3rem .7rem; font-size: .8rem; font-weight: 600; }
.note-dot { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--bs-primary); vertical-align: middle; margin-left: .2rem; }
.rich-editor .rte-toolbar { margin-top: .25rem; }
.rte-body:focus { outline: none; }
.rte-disabled .rte-body { background: var(--bs-secondary-bg); }
.rte-body p { margin: 0 0 .3rem; }
/* tabulky v poznámkách (z Excelu) – mřížka jako v Excelu, barvy buněk se zachovají */
.note-table, .rte-body table { border-collapse: collapse; margin: .3rem 0; font-size: .78rem; line-height: 1.25; max-width: none; }
.note-table:has(colgroup) { table-layout: fixed; }
.note-table td, .note-table th, .rte-body td, .rte-body th { border: 1px solid #8a8f96; padding: 1px 4px; vertical-align: bottom; overflow: hidden; word-wrap: break-word; }
.note-table p, .rte-body td p { margin: 0; }
[data-bs-theme="dark"] .rte-body table { background: #fff; color: #000; } /* barvy z Excelu jsou pro světlé pozadí */

/* stav vozidla – na firmě / pryč */
.presence-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--bs-body-bg); box-shadow: 0 0 0 1px var(--bs-border-color); padding: 0; flex: none; cursor: pointer; background: transparent; }
.presence-dot.is-small { width: .6rem; height: .6rem; border-width: 1px; }
.presence-dot.p-home { background: #1aa34a; box-shadow: 0 0 0 1px #1aa34a; }
.presence-dot.p-away { background: #9aa0a6; box-shadow: 0 0 0 1px #9aa0a6; }
.presence-dot.p-pending { background: #f0ad00; box-shadow: 0 0 0 1px #f0ad00; animation: p-blink 1.6s infinite; }
.presence-dot.p-unknown { background: transparent; box-shadow: 0 0 0 1px var(--bs-secondary-color); }
@keyframes p-blink { 50% { opacity: .35; } }
.lpr-reads { display: flex; flex-direction: column; gap: .35rem; }
.lpr-read { display: flex; gap: .6rem; align-items: center; border: 1px solid var(--bs-border-color-translucent); border-radius: .4rem; padding: .3rem; }
.lpr-read img, .lpr-noimg { width: 96px; height: 54px; object-fit: cover; border-radius: .25rem; flex: none; background: var(--bs-secondary-bg); display: flex; align-items: center; justify-content: center; color: var(--bs-tertiary-color); }

/* výběr řidičů */
.driver-pick { max-height: 260px; overflow-y: auto; border: 1px solid var(--bs-border-color); border-radius: .4rem; padding: .25rem; display: flex; flex-direction: column; gap: 2px; }
.driver-pick-row { display: flex; align-items: center; gap: .5rem; padding: .3rem .5rem; border-radius: .3rem; cursor: pointer; font-size: .875rem; }
.driver-pick-row:hover { background: var(--bs-tertiary-bg); }
.driver-pick-row.is-checked { background: var(--bs-primary-bg-subtle); font-weight: 600; }

/* tisk – výběr vozidel */
.print-vehicles { max-height: 160px; overflow-y: auto; border: 1px solid var(--bs-border-color); border-radius: .35rem; padding: .35rem .5rem; }

/* ------------------------------------------------------------ přihlášení */
.login-page { display: flex; align-items: center; justify-content: center; background: var(--bs-tertiary-bg); }
.login-wrap { width: 100%; padding: 1rem; display: flex; justify-content: center; }
.login-card { width: 100%; max-width: 400px; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 1rem; padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.login-logo { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; background: var(--bs-primary-bg-subtle); color: var(--bs-primary); }

/* ------------------------------------------------------------ nastavení (velké okno) */
.settings-dialog { --bs-modal-width: min(1200px, 96vw); }
.settings-body { display: flex; height: min(78vh, 820px); min-height: 420px; }
.settings-nav { width: 220px; flex: none; border-right: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); padding: .5rem; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.settings-nav-item { display: flex; align-items: center; gap: .6rem; border: 0; background: transparent; text-align: left; padding: .5rem .75rem; border-radius: .4rem; font-size: .9rem; color: var(--bs-body-color); }
.settings-nav-item:hover { background: var(--bs-secondary-bg); }
.settings-nav-item.active { background: var(--bs-primary); color: #fff; font-weight: 600; }
.settings-pane { flex: 1; min-width: 0; overflow-y: auto; padding: 1rem 1.25rem; }
.settings-form-body { max-width: 640px; }
.multi-pick { max-height: 220px; overflow-y: auto; border: 1px solid var(--bs-border-color); border-radius: .35rem; padding: .35rem .6rem; columns: 2; }
.table-settings .drag-cell { cursor: grab; color: var(--bs-tertiary-color); }
.table-settings tr.is-dragging-row { opacity: .4; }
@media (max-width: 991.98px) {
    .settings-body { flex-direction: column; height: auto; }
    .settings-nav { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--bs-border-color); }
    .settings-nav-item { white-space: nowrap; }
    .multi-pick { columns: 1; }
}

/* ------------------------------------------------------------ nastavení */
.page-settings .settings-wrap { max-width: 1200px; }
.table-settings td, .table-settings th { vertical-align: middle; }
.table-settings .color-swatch { display: inline-block; width: 1.4rem; height: 1rem; border-radius: .2rem; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.row-inactive { opacity: .55; }

/* ------------------------------------------------------------ klienti */
.page-clients { display: flex; flex-direction: column; overflow: hidden; }
.clients-layout { flex: 1; display: flex; min-height: 0; }
.clients-list { width: 400px; flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); }
.clients-list-head { padding: .75rem; border-bottom: 1px solid var(--bs-border-color); }
.clients-list-body { flex: 1; overflow-y: auto; }
.client-row { padding: .5rem .75rem; }
.clients-detail { flex: 1; min-width: 0; overflow-y: auto; padding: 1rem 1.25rem; }
.clients-detail > * { max-width: 900px; }
.clients-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--bs-secondary-color); }
.clients-empty i { font-size: 3rem; opacity: .4; }
.client-event.is-future { border-left: 3px solid var(--bs-primary); }
@media (max-width: 991.98px) {
    .clients-list { width: 100%; border-right: 0; }
    .clients-detail { display: none; }
    .clients-layout.has-detail .clients-list { display: none; }
    .clients-layout.has-detail .clients-detail { display: block; }
}

/* mobil */
@media (max-width: 991.98px) {
    .cal-sidebar { width: min(320px, 90vw); }
    .cal-date-input { width: 130px; }
}
@media (max-width: 575.98px) {
    .cal-toolbar { gap: .4rem; padding: 0 .4rem; }
    .cal-title { font-size: .8rem; }
    .cal-date-input { display: none; }
}

/* ===================== Rozesílky ===================== */
.page-mailing { display: flex; flex-direction: column; min-height: 100vh; }
.mailing-wrap { flex: 1; min-height: 0; }
.mailing-editor { display: flex; flex-direction: column; min-height: calc(100vh - 50px); }
.mailing-top { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-bottom: 1px solid var(--bs-border-color); background: var(--bs-body-bg); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.mailing-name { max-width: 340px; }
.mailing-tabs { padding-top: .5rem; background: var(--bs-tertiary-bg); }
.mailing-body { flex: 1; }
.mailing-content { display: flex; gap: 1rem; padding: 1rem; align-items: flex-start; }
.mailing-main { flex: 1; min-width: 0; }
.mailing-side { width: 300px; flex: none; position: sticky; top: 60px; }
@media (max-width: 991.98px) { .mailing-content { flex-direction: column; } .mailing-side { width: 100%; position: static; } }
.design-grid { display: grid; gap: .35rem; }
.design-color { display: flex; align-items: center; gap: .5rem; font-size: .85rem; cursor: pointer; }
.design-color input[type=color] { width: 34px; height: 26px; padding: 0; border: 1px solid var(--bs-border-color); border-radius: 4px; background: none; cursor: pointer; }
.rcpt-table { max-height: calc(100vh - 290px); overflow-y: auto; border: 1px solid var(--bs-border-color); border-radius: .375rem; }
.rcpt-table thead th { position: sticky; top: 0; background: var(--bs-body-bg); z-index: 1; }
.row-inactive td { opacity: .55; }
.send-list { max-height: 420px; overflow-y: auto; }

/* editor e-mailu */
.me-root { border: 1px solid var(--bs-border-color); border-radius: .5rem; overflow: hidden; background: var(--bs-body-bg); }
.me-toolbar, .me-imgbar { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; padding: .4rem; border-bottom: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); position: sticky; top: 0; z-index: 2; }
.me-imgbar { background: var(--bs-primary-bg-subtle); }
.me-w-auto { width: auto; }
.me-sep { width: 1px; align-self: stretch; background: var(--bs-border-color); margin: 0 .2rem; }
.me-color { position: relative; overflow: hidden; }
.me-color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.me-canvas { padding: 24px 12px; min-height: 480px; transition: background .2s; }
.me-card { margin: 0 auto; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.me-body { padding: 28px 32px; min-height: 420px; outline: none; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.me-body h1 { font-size: 30px; margin: 0 0 12px; } .me-body h2 { font-size: 24px; margin: 0 0 10px; } .me-body h3 { font-size: 19px; margin: 0 0 8px; }
.me-body p { margin: 0 0 12px; }
.me-body hr { border: 0; border-top: 1px solid currentColor; opacity: .25; margin: 18px 0; }
.me-body img { max-width: 100%; height: auto; cursor: pointer; }
.me-body img.me-sel { outline: 3px solid var(--bs-primary); outline-offset: 2px; }
.me-body a { color: inherit; }
.me-disabled .me-toolbar { pointer-events: none; opacity: .5; }

/* dialog obrázku */
.img-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; min-height: 340px; border: 2px dashed var(--bs-border-color); border-radius: .5rem; cursor: pointer; color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); }
.img-drop i { font-size: 3rem; }
.img-drop.is-over, .img-drop:hover { border-color: var(--bs-primary); color: var(--bs-primary); }
.img-crop-wrap { height: 60vh; max-height: 520px; background: #222; border-radius: .5rem; overflow: hidden; }
.img-crop-wrap img { display: block; max-width: 100%; }
.img-result { padding: .5rem .6rem; border-radius: .375rem; background: var(--bs-tertiary-bg); }

/* náhled */
.preview-frame-wrap { padding: 12px; display: flex; justify-content: center; }
#previewFrame { width: 100%; height: 72vh; border: 1px solid var(--bs-border-color); border-radius: .375rem; background: #fff; transition: width .2s; }

/* posun kalendáře: Ctrl + tažení */
body.pan-ready .cal-scroll, body.pan-ready .cal-scroll * { cursor: grab !important; }
body.is-panning, body.is-panning * { cursor: grabbing !important; user-select: none !important; }

/* tipy a zkratky */
.tips-grid { columns: 2 340px; column-gap: 2rem; }
.tips-group { break-inside: avoid; margin-bottom: 1.25rem; }
.tips-group h3 { font-size: .9rem; font-weight: 700; margin-bottom: .5rem; padding-bottom: .25rem; border-bottom: 1px solid var(--bs-border-color); }
.tips-group dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem .75rem; margin: 0; font-size: .85rem; align-items: baseline; }
.tips-group dt { font-weight: normal; white-space: nowrap; }
.tips-group dd { margin: 0; color: var(--bs-secondary-color); }
.tips-group kbd { background: var(--bs-tertiary-bg); color: var(--bs-body-color); border: 1px solid var(--bs-border-color); border-bottom-width: 2px; font-size: .75rem; padding: .05rem .4rem; }
.tips-group .tip-act { font-size: .8rem; font-style: italic; }
.tips-group .tip-plus { margin: 0 .2rem; color: var(--bs-secondary-color); font-size: .75rem; }
.tips-other { opacity: .75; }
