/* styles/dashboard.css — Dashboard a realizace přehled */

/* ─── TOP NAVIGACE ──────────────────────────────────────────────────────────── */
.top-nav {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--c-surface); border-bottom: 1px solid var(--c-border);
  padding: 0 20px; height: 48px; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.top-nav-brand { font-size: 15px; color: var(--c-text); }
.top-nav-tabs  { display: flex; gap: 4px; }
.nav-tab {
  background: none; border: none; padding: 6px 18px; font-size: 13px;
  font-weight: 500; cursor: pointer; border-radius: 6px;
  color: var(--c-text-muted); transition: all 0.15s;
}
.nav-tab:hover  { background: var(--c-bg); color: var(--c-text); }
.nav-tab.active { background: var(--c-primary-bg); color: var(--c-primary); font-weight: 700; }

/* ─── BETA MÓD ──────────────────────────────────────────────────────────────── */
.top-nav-beta { border-top: 3px solid #f97316; }

.beta-banner {
  background: #fff7ed; border-bottom: 1px solid #fed7aa;
  padding: 6px 20px; font-size: 12px; color: #9a3412;
  text-align: center;
}
.beta-banner strong { font-weight: 700; }
.beta-banner a { color: #c2410c; font-weight: 600; }

/* UI přepínač Stable / Beta */
.ui-switcher {
  display: flex; gap: 0; background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: 6px; padding: 2px; margin: 0 6px;
}
.ui-switch-btn {
  border: none; background: none; padding: 3px 10px; font-size: 11px; font-weight: 600;
  cursor: pointer; border-radius: 4px; color: var(--c-text-muted); transition: all 0.15s;
  white-space: nowrap;
}
.ui-switch-btn.ui-switch-active {
  background: var(--c-surface); color: var(--c-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.ui-switch-btn.ui-switch-beta-active {
  background: #fff7ed; color: #c2410c;
}
.ui-switch-btn:not(.ui-switch-active):hover { color: var(--c-text); }

.nav-settings-btn {
  background: none; border: 1px solid var(--c-border); padding: 5px 12px; font-size: 12px;
  font-weight: 500; cursor: pointer; border-radius: 6px; color: var(--c-text-muted);
  transition: all 0.15s; margin-left: 8px; white-space: nowrap; flex-shrink: 0;
}
.nav-settings-btn:hover { background: var(--c-bg); border-color: var(--c-text-muted); color: var(--c-text); }

/* ─── STATUS TŘÍDY NABÍDEK ──────────────────────────────────────────────────── */
.offer-poptano    { background: #f3f4f6;          color: #6b7280;        border-color: #e5e7eb; }
.offer-navrh      { background: #fef9c3;          color: #854d0e;        border-color: #fde68a; }
.offer-poslano    { background: var(--c-blue-bg); color: var(--c-blue);  border-color: #bfdbfe; }
.offer-akceptovano{ background: #f0fdf4;          color: #15803d;        border-color: #86efac; }
.offer-accepted   { background: var(--c-green-bg);color: var(--c-green); border-color: #bbf7d0; }
.offer-rejected   { background: #fef2f2;          color: #dc2626;        border-color: #fecaca; }
/* zpětná kompatibilita */
.offer-draft    { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
.offer-sent     { background: var(--c-blue-bg); color: var(--c-blue); border-color: #bfdbfe; }
.offer-podklady { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
.offer-potvrzeno{ background: #f0fdf4; color: #15803d; border-color: #86efac; }

/* ─── OFFER FORM TOOLBAR – plovoucí tlačítko vpravo dole ────────────────────── */
.offer-form-toolbar {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  display: flex; align-items: center; gap: 10px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 32px; padding: 8px 16px 8px 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}
.offer-save-status { font-size: 12px; white-space: nowrap; }
#btn-save-offer {
  border-radius: 24px; padding: 8px 20px;
  font-size: 13px; font-weight: 700;
}
/* Dirty stav – oranžová + pulzující stín */
#btn-save-offer.btn-dirty {
  background: #ea580c;
  box-shadow: 0 0 0 3px rgba(234,88,12,0.3);
  animation: pulse-save 1.8s ease-in-out infinite;
}
@keyframes pulse-save {
  0%, 100% { box-shadow: 0 0 0 3px rgba(234,88,12,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(234,88,12,0.12); }
}
/* Saved stav – zelená */
#btn-save-offer.btn-saved { background: #16a34a; animation: none; box-shadow: none; }

/* ─── OFFER CHIPS BAR (workflow v detailu) ───────────────────────────────────── */
.offer-chips-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--c-radius); padding: 10px 16px;
  margin-bottom: 12px; flex-wrap: wrap; gap: 10px;
}
.offer-chips-steps {
  display: flex; gap: 6px; flex-wrap: wrap; flex: 1;
}
.offer-chips-date { font-size: 11px; color: var(--c-text-muted); white-space: nowrap; }

/* Klikací chip pro nabídky – větší než list chipy */
.offer-chip {
  cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 8px;
  border: 1.5px solid transparent;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
  line-height: 1.4;
}
.offer-chip:hover  { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.offer-chip:active { transform: translateY(0);    box-shadow: none; }

/* Aktivní krok v detailu – výrazná modrá, přebije obecný chip-active */
.offer-chips-bar .chip-active {
  background: #1d4ed8 !important;
  color: #fff !important;
  border-color: #1e40af !important;
  font-size: 14px;
  padding: 7px 18px;
  box-shadow: 0 2px 8px rgba(29,78,216,0.35);
}
.offer-chips-bar .chip-active .chip-mark { color: #93c5fd; }
.offer-chips-bar .chip-done    { opacity: 0.72; }
.offer-chips-bar .chip-waiting { opacity: 0.38; }

[data-theme="darker"] .offer-chips-bar .chip-active,
[data-theme="dark"]   .offer-chips-bar .chip-active {
  background: #2563eb !important; border-color: #3b82f6 !important;
  box-shadow: 0 2px 10px rgba(37,99,235,0.45);
}

/* ─── OFFER DETAIL ──────────────────────────────────────────────────────────── */
.offer-status-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--c-radius);
  padding: 10px 16px; margin-bottom: 12px; gap: 12px; flex-wrap: wrap;
}
.offer-status-bar-left { display: flex; align-items: center; gap: 10px; }
.offer-status-label    { font-size: 13px; font-weight: 600; white-space: nowrap; }
.offer-status-select   { width: auto; max-width: 200px; }
.offer-reject-btn      { color: #dc2626; border-color: #fecaca; }
.offer-reject-btn:hover { background: #fef2f2; }

.dashboard { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }

/* ─── HEADER ────────────────────────────────────────────────────────────────── */
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.dashboard-title  { display: flex; align-items: baseline; gap: 10px; }
.dashboard-version { font-size: 12px; color: var(--c-text-muted); }
.dashboard-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── FILTERS ───────────────────────────────────────────────────────────────── */
.dashboard-filters { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.filter-btn { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s; color: var(--c-text-muted); display: inline-flex; align-items: center; gap: 5px; }
.filter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-btn.active { background: var(--c-primary); border-color: var(--c-primary); color: white; }
.filter-count { font-size: 11px; font-weight: 700; background: rgba(0,0,0,0.1); border-radius: 10px; padding: 0 6px; min-width: 18px; text-align: center; line-height: 16px; }
.filter-btn.active .filter-count { background: rgba(255,255,255,0.25); }
.dashboard-search { margin-left: auto; padding: 6px 12px; border: 1px solid var(--c-border); border-radius: 20px; font-size: 13px; width: 200px; }
.dashboard-search:focus { outline: none; border-color: var(--c-primary); }
.sort-select { padding: 5px 10px; border: 1px solid var(--c-border); border-radius: 20px; font-size: 12px; font-weight: 500; color: var(--c-text-muted); background: var(--c-surface); cursor: pointer; }
.sort-select:focus { outline: none; border-color: var(--c-primary); }

/* ─── STATS ─────────────────────────────────────────────────────────────────── */
.dashboard-stats { display: flex; gap: 12px; margin-bottom: 16px; }
.stat-item { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--c-radius); padding: 10px 16px; display: flex; flex-direction: column; align-items: center; min-width: 80px; }
.stat-num  { font-size: 22px; font-weight: 700; color: var(--c-text); }
.stat-label { font-size: 11px; color: var(--c-text-muted); font-weight: 500; }
.stat-active .stat-num { color: var(--c-primary); }
.stat-done .stat-num   { color: var(--c-green); }

/* ─── REALIZATION ROWS ──────────────────────────────────────────────────────── */
.realization-list { display: flex; flex-direction: column; gap: 4px; }

.realization-row {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--c-radius);
  padding: 10px 16px; cursor: pointer; transition: all 0.15s;
  display: grid; align-items: center;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 16px;
}
/* Nabídky nemají progress sloupec – 3 sloupce */
.realization-row--offer {
  grid-template-columns: minmax(0,1fr) auto auto;
}
.realization-row:hover { border-color: var(--c-primary); box-shadow: var(--c-shadow); transform: translateX(2px); }
.row-done { opacity: 0.65; }
.row-done:hover { opacity: 1; }

/* ─── LEVÝ BLOK: jméno + tech info ──────────────────────────────────────────── */
.row-left  { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-line1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.row-name  { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; }
.row-id    { color: var(--c-text-light); font-weight: 400; font-size: 11px; font-variant-numeric: tabular-nums; font-family: monospace; flex-shrink: 0; }

/* Technická linka */
.row-tech {
  font-size: 12px; color: var(--c-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 0;
}
.tech-kwp   { font-weight: 700; color: var(--c-primary); }
.tech-ev    { color: #0369a1; font-weight: 600; }
.tech-bat   { color: #065f46; font-weight: 500; }
.tech-price { color: var(--c-text); font-weight: 700; }
.tech-sep   { display: inline-block; width: 1px; height: 11px; background: var(--c-border); margin: 0 4px; vertical-align: middle; flex-shrink: 0; }

/* Adresa v horním řádku */
.row-addr { font-size: 12px; color: var(--c-text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0; }

/* ─── PRAVÝ BLOK: chipsy workflow ────────────────────────────────────────────── */
.row-steps { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.row-chips-line { display: flex; gap: 3px; align-items: center; }

/* ─── FOLDER BTN ─────────────────────────────────────────────────────────────── */
.row-folder-btn {
  background: none; border: 1px solid var(--c-border); border-radius: 5px;
  padding: 1px 5px; font-size: 12px; cursor: pointer; line-height: 1.4;
  color: var(--c-text-muted); transition: all 0.15s; flex-shrink: 0;
}
.row-folder-btn:hover { background: var(--c-primary-bg); border-color: var(--c-primary); }

/* ─── OBLÍBENÉ ────────────────────────────���─────────────────────────────���───── */
.row-fav-btn {
  background: none; border: none; padding: 0 2px; font-size: 13px; cursor: pointer;
  opacity: 0.2; transition: opacity 0.15s; line-height: 1; margin-left: 2px;
  filter: grayscale(1);
}
.realization-row:hover .row-fav-btn { opacity: 0.5; }
.row-fav-btn.row-fav-btn-on { opacity: 1; filter: none; }
.row-fav-btn:hover { opacity: 1 !important; filter: none; }

.row-fav { border-left: 3px solid #f59e0b; }

/* ─── POZORNOST ─────────────────────────────────────────────────────────────── */
.row-attn-btn {
  background: none; border: none; padding: 0 2px; font-size: 12px; cursor: pointer;
  opacity: 0.15; transition: opacity 0.15s; line-height: 1; margin-left: 2px;
  filter: grayscale(1);
}
.realization-row:hover .row-attn-btn { opacity: 0.4; }
.row-attn-btn.row-attn-btn-on { opacity: 1; filter: none; }
.row-attn-btn:hover { opacity: 1 !important; filter: none; }

.row-attention {
  background: #fffbeb;
  border-color: #fcd34d;
  border-left: 3px solid #f59e0b;
}
.row-attention:hover { border-color: #f59e0b; }
[data-theme="dark"]   .row-attention,
[data-theme="darker"] .row-attention {
  background: rgba(251,191,36,0.07);
  border-color: #b45309;
  border-left-color: #f59e0b;
}

.fav-section { display: flex; flex-direction: column; gap: 4px; }
.fav-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: #92400e; margin-bottom: 2px; padding-left: 2px;
}
.fav-divider {
  height: 1px; background: var(--c-border); margin: 8px 0 10px;
  position: relative;
}
.fav-divider::after {
  content: 'ostatní'; position: absolute; left: 0; top: -9px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--c-text-light); background: var(--c-bg-page); padding-right: 8px;
}

/* ─── STEP CHIPS ────────────────────────────────────────────────────────────── */
.step-chip {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px 6px; border-radius: 4px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  line-height: 1.4; border: 1px solid transparent;
}
.chip-done      { background: var(--c-green-bg); color: #15803d; border-color: #bbf7d0; }
.chip-active    { background: #fff7ed;           color: #c2410c; border-color: #fed7aa; }
.chip-waiting   { background: var(--c-bg);       color: #b0b8c1; border-color: var(--c-border); opacity: 0.55; }
.chip-attention { background: #dbeafe;           color: #1d4ed8; border-color: #93c5fd; font-weight: 600; }
.chip-mark      { font-size: 10px; }

.row-progress {
  display: flex; flex-direction: column; align-items: stretch; gap: 3px; flex-shrink: 0;
}
.row-progress .progress-bar-bg { width: 100%; }
.progress-pct { font-size: 11px; font-weight: 600; color: var(--c-text-muted); text-align: center; }

.row-right   { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.row-updated { font-size: 11px; color: var(--c-text-light); white-space: nowrap; }
.row-arrow   { color: var(--c-text-light); font-size: 16px; }

/* ─── IMPORT MODAL ──────────────────────────────────────────────────────────── */
.import-result { padding: 10px 14px; border-radius: 6px; font-size: 13px; line-height: 1.6; }
.import-result.success { background: var(--c-green-bg); color: #14532d; }
.import-result.error   { background: #fef2f2; color: #991b1b; }

/* ─── OFFER TAB BAR ──────────────────────────────────────────────────────────── */
.offer-tab-bar {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--c-border);
  margin: 12px 0 0; padding: 0 2px;
}
.offer-tab-btn {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--c-text-muted); padding: 8px 18px;
  border-radius: 8px 8px 0 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.offer-tab-btn:hover { background: var(--c-bg); color: var(--c-text); }
.offer-tab-btn--active {
  color: #1d4ed8; border-bottom-color: #1d4ed8;
  background: var(--c-surface);
}

/* ─── OFFER TAB PANES ────────────────────────────────────────────────────────── */
.offer-tab-pane { padding-top: 4px; }
.offer-tab-pane--hidden { display: none; }

/* ─── VIZUÁLNÍ KARTY ─────────────────────────────────────────────────────────── */
.visual-tab-wrap { padding: 12px 0; }

.visual-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.vc-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.15s;
}
.vc-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.10); }

.vc-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px 8px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.vc-icon  { font-size: 22px; line-height: 1; }
.vc-title { font-size: 13px; font-weight: 700; color: var(--c-text); }

.vc-card-body {
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}

.vc-field {
  display: flex; flex-direction: column; gap: 3px;
}

.vc-label {
  font-size: 11px; font-weight: 600; color: var(--c-text-muted);
  text-transform: uppercase; letter-spacing: 0.4px;
}
.vc-star { color: #ea580c; }

/* Hint ⓘ ikona vedle labelu — hover ukáže popup s textem.
   Tooltip se schovává po `mouseleave` díky pointer-events:none na wrapperu. */
.vc-hint-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; margin-left: 5px;
  font-size: 10px; font-weight: 600; line-height: 1;
  color: var(--c-text-muted); background: var(--c-card);
  border: 1px solid var(--c-border); border-radius: 50%;
  cursor: help; user-select: none; vertical-align: middle;
  position: relative; text-transform: none; letter-spacing: 0;
}
.vc-hint-icon:hover { color: var(--c-primary); border-color: var(--c-primary); }
.vc-hint-icon:hover::after {
  content: attr(data-hint);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: #1f2937; color: white; padding: 7px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 400; line-height: 1.45;
  white-space: normal; min-width: 240px; max-width: 340px;
  z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  pointer-events: none; text-align: left;
  text-transform: none; letter-spacing: normal;
}
.vc-hint-icon:hover::before {
  content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #1f2937;
  z-index: 1001; pointer-events: none;
}

/* "vlastní" badge — výrobce/model mimo katalog komponent */
.vc-custom-badge {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  background: #fef3c7; color: #92400e;
  font-size: 9px; font-weight: 600; line-height: 13px;
  border-radius: 3px; text-transform: uppercase; letter-spacing: 0.3px;
  vertical-align: middle;
}

/* "+ Přidat do katalogu" tlačítko pod typ-inputem */
.vc-add-catalog {
  margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.vc-add-catalog-btn {
  padding: 3px 9px; font-size: 11px; font-weight: 600;
  background: #f0fdf4; color: #15803d; border: 1px solid #86efac;
  border-radius: 4px; cursor: pointer;
}
.vc-add-catalog-btn:hover { background: #dcfce7; }
.vc-add-catalog-hint {
  font-size: 10.5px; color: var(--c-text-muted); line-height: 1.35;
}

/* Modal pro přidání panelu do katalogu */
.rv-modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.rv-modal-box {
  background: var(--c-surface); color: var(--c-text);
  border-radius: 8px; width: 520px; max-width: 100%;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  border: 1px solid var(--c-border);
}
.rv-modal-hdr {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--c-border);
  font-weight: 600; font-size: 14px;
}
.rv-modal-close {
  background: none; border: none; cursor: pointer; font-size: 16px;
  color: var(--c-text-muted); padding: 2px 8px; line-height: 1;
}
.rv-modal-close:hover { color: var(--c-text); }
.rv-modal-body { padding: 14px 16px; }
.rv-modal-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px;
}
.rv-modal-form label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--c-text-muted);
  text-transform: uppercase; letter-spacing: 0.3px;
}
.rv-modal-form .rv-modal-full { grid-column: 1 / -1; }
.rv-modal-form .input { font-size: 13px; padding: 6px 8px; text-transform: none; }
.rv-modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--c-border);
}
.rv-modal-footer .btn-primary {
  padding: 7px 14px; background: #16a34a; color: white;
  border: none; border-radius: 5px; cursor: pointer; font-weight: 600; font-size: 13px;
}
.rv-modal-footer .btn-primary:hover { background: #15803d; }
.rv-modal-footer .btn-secondary {
  padding: 7px 14px; background: var(--c-card); color: var(--c-text);
  border: 1px solid var(--c-border); border-radius: 5px; cursor: pointer; font-size: 13px;
}
.rv-modal-footer .btn-secondary:hover { background: var(--c-border); }

/* Oranžové zvýraznění prázdných polí ve vizuálu */
.vc-field--empty > .input,
.vc-field--empty > select.input {
  border-color: #f97316;
  background: #fff7ed;
}
[data-theme="dark"] .vc-field--empty > .input,
[data-theme="darker"] .vc-field--empty > .input {
  border-color: #c2410c;
  background: rgba(249,115,22,0.08);
}

/* Poznámky – celá šířka pod kartami */
.visual-notes-section {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 20px;
}
.visual-notes-item {
  display: flex; flex-direction: column; gap: 4px;
}
.visual-notes-item .input {
  width: 100%; box-sizing: border-box;
}

/* Ostatní pole pod kartami */
.visual-remaining {
  border-top: 1px solid var(--c-border);
  padding-top: 16px;
  margin-top: 4px;
}

@media (max-width: 540px) {
  .visual-cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .visual-cards-grid { grid-template-columns: 1fr; }
  .offer-tab-btn { font-size: 12px; padding: 7px 12px; }
}

/* ─── VIZUÁLNÍ ZADÁVÁNÍ – REALIZACE ─────────────────────────────────────────── */
.rv-visual-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0 16px;
}
.rv-visual-status { font-size: 12px; white-space: nowrap; }

/* Dirty / Saved stav pro tlačítko uložení vizuálního zadávání */
#btn-rv-save-visual {
  border-radius: 24px; padding: 8px 20px;
  font-size: 13px; font-weight: 700;
}
#btn-rv-save-visual.btn-dirty {
  background: #ea580c;
  box-shadow: 0 0 0 3px rgba(234,88,12,0.3);
  animation: pulse-save 1.8s ease-in-out infinite;
}
#btn-rv-save-visual.btn-saved { background: #16a34a; animation: none; box-shadow: none; }

/* Sekce Technické detaily */
.visual-remaining-title {
  cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--c-text-muted); padding: 8px 0;
  list-style: none; user-select: none;
}
.visual-remaining-title:hover { color: var(--c-text); }
.visual-remaining-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  padding: 12px 0 4px;
}

/* ─── TODAY WIDGET (Tento týden) ──────────────────────────────────────────── */
.dashboard-today-widget {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.dtw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.dtw-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-text);
}
.dtw-link {
  background: none;
  border: none;
  color: var(--c-primary, #3b82f6);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.dtw-link:hover { background: var(--c-hover); }
.dtw-body {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dtw-loading, .dtw-empty {
  color: var(--c-text-muted);
  font-size: 0.88rem;
  font-style: italic;
}
.dtw-event {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  background: var(--c-hover, #f1f5f9);
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
  font-size: 0.85rem;
}
.dtw-date {
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
}
.dtw-icon { font-size: 0.95em; }
.dtw-title { color: var(--c-text); }
.dtw-rid {
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--c-card);
}
.dtw-rid:hover {
  background: var(--c-primary, #3b82f6);
  color: white;
}

/* Dvě pole na jednom řádku v rámci .vc-card-body (telefon+vzdalenost, RČ+datum) */
.vc-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.vc-pair > .vc-field {
  min-width: 0; /* aby input neexpandoval mimo grid cell */
}

/* Tři pole na jednom řádku (panely: počet, výkon, celkový výkon) */
.vc-triple {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.vc-triple > .vc-field { min-width: 0; }
