/* CRM ukážka (Strechy Brezina): vymyslená firma, statické pohľady prepínané cez :target, bez skriptu. Aplikácia je svetlý panel (ako snímka produktu) na čiernej stránke;
   jej farby a písmo sú ohraničené na .cx-app, zvyšok stránky používa tokeny nového webu. Pravidlá aplikácie sú zo starého webu (src/css/crm.css), upravené len na premenné. */
.cx-top{display:grid;gap:var(--sp-3);margin-top:var(--sp-4)}
.cx-tabs{display:flex;flex-wrap:wrap;gap:8px}
.cx-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:8px 20px;border-radius:var(--r-pill);box-shadow:inset 0 0 0 2px var(--outline);color:var(--fg);font-size:var(--fs-md);font-weight:500;text-decoration:none;transition:background-color var(--dur-1),color var(--dur-1)}
.cx-tabs a:first-child{background:var(--fg);color:var(--bg);box-shadow:none}
body:has(.cx-view:target:not(.cx-first)) .cx-tabs a:first-child{background:transparent;color:var(--fg);box-shadow:inset 0 0 0 2px var(--outline)}
body:has(#namieru:target) .cx-tabs a[href='#namieru'],body:has(#objednavka:target) .cx-tabs a[href='#objednavka']{background:var(--fg);color:var(--bg);box-shadow:none}
@media (hover:hover) and (pointer:fine){.cx-tabs a:hover{background:var(--surface-2)}}
.cx-tag-demo{display:inline-flex;align-items:center;min-height:28px;padding:2px 12px;margin-right:8px;border-radius:var(--r-pill);background:var(--fg);color:var(--bg);font-size:var(--fs-xs);font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.cx-views{margin-top:var(--sp-4)}
.cx-view{display:none;scroll-margin-top:84px}
.cx-first{display:block}
body:has(.cx-view:target:not(.cx-first)) .cx-first{display:none}
.cx-view:target{display:block}
.cx-app .vh{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cx-app .nb{white-space:nowrap}
.cx-app a{text-decoration:none}
.cx-app ul,.cx-app ol{list-style:none;margin:0;padding:0}
.cx-end{display:grid;gap:var(--sp-3);justify-items:start;margin-top:var(--scene-gap)}
.cx-end p{max-width:20ch;font-size:clamp(28px,7.4vw,48px);font-weight:600;letter-spacing:-.04em;line-height:1.05}

/* ---------------------------------------------------------------- aplikácia */
.cx-app{--ink:#070708;--night:#070708;--paper:#fff;--paper-3:#eaeaea;--soft:#f2f2f2;--ink-2:#4d4d4f;--hairline:rgb(7 7 8 / .14);--hairline-strong:rgb(7 7 8 / .3);--font:var(--f-sans);--btn-radius:999px}
.cx-app { --mute: color-mix(in srgb, var(--ink) 66%, var(--paper)); --rule: color-mix(in srgb, var(--ink) 16%, var(--paper)); --soft: color-mix(in srgb, var(--ink) 6%, var(--paper));
  --ring: var(--ink); background: var(--paper); color: var(--ink); font: 400 15px/1.35 var(--font); border: 1px solid var(--hairline); border-radius: var(--r-2); overflow: hidden; }
.cx-app h2 { font: 400 clamp(30px, 8vw, 40px)/1 var(--font); letter-spacing: -.02em; margin: 0; }
.cx-app h3 { font: 600 14px/1.2 var(--font); letter-spacing: 0; }
.cx-i { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: square; stroke-linejoin: miter; }
.cx-meta { margin-top: 6px; font-size: 14px; color: var(--mute); }
.cx-when { font-size: 13px; color: var(--mute); white-space: nowrap; }
.cx-brand { font: 500 20px/1.05 var(--font); letter-spacing: -.01em; }

.cx-st { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 13px/1.3 var(--font); white-space: nowrap;  }
.cx-st-new { background: var(--ink); color: var(--paper); }
.cx-st-work { background: var(--paper-3); color: var(--ink); }
.cx-st-offer { background: none; box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.cx-st-done { background: var(--rule); color: var(--ink); }
.cx-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--btn-radius); background: var(--ink); color: var(--paper); font: 600 14px/1 var(--font); white-space: nowrap;  }
.cx-btn-p { background: var(--ink); color: var(--paper); }
.cx-lh { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.cx-fil { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cx-fil li { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; background: var(--soft); font: 500 14px/1 var(--font); }
.cx-fil .is-on { background: var(--ink); color: var(--paper); }
.cx-search { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 14px; padding: 0 14px; background: var(--soft); color: var(--mute); font-size: 14px; }

/* the black sidebar, from 1100 px */
.cx-side { display: none; background: var(--night); color: var(--paper); padding: 22px 14px 20px; flex-direction: column; }
.cx-brand-s { margin-top: 4px; font-size: 13px; color: color-mix(in srgb, var(--paper) 66%, var(--night)); }
.cx-nav { display: grid; gap: 4px; margin-top: 26px; }
.cx-nav li { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; font: 500 16px/1 var(--font);  }
.cx-nav b { margin-left: auto; min-width: 24px; padding: 3px 7px; background: var(--paper-3); color: var(--ink); font: 600 13px/1.2 var(--font); text-align: center; }
.cx-nav .is-on { background: var(--paper-3); color: var(--ink); }
.cx-nav .is-on b { background: var(--ink); color: var(--paper); }
.cx-notif { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 2px solid color-mix(in srgb, var(--paper) 24%, var(--night)); font-size: 13px; line-height: 1.35; }
.cx-sw { position: relative; flex: none; width: 38px; height: 22px; background: var(--paper-3); }
.cx-sw::after { content: ''; position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; background: var(--ink); }

/* the phone's top bar and bottom tabs (a phone only) */
.cx-bar { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 20px; background: var(--night); color: var(--paper); }
.cx-bell { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.cx-bell b { min-width: 22px; padding: 2px 6px; background: var(--paper-3); color: var(--ink); font: 600 13px/1.3 var(--font); text-align: center; }
.cx-tabbar { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border-top: 1px solid var(--hairline-strong); }
.cx-tabbar li { display: grid; justify-items: center; gap: 3px; padding: 9px 0 10px; font: 500 12.5px/1.2 var(--font); color: var(--mute); }
.cx-tabbar .is-on { color: var(--ink); }
.cx-tabbar .is-on .cx-i { stroke-width: 2.8; }

/* the list of enquiries */
.cx-list { padding: 22px 20px 0; min-width: 0; }
.cx-rows { margin-top: 12px; }
.cx-row { border-top: 1px solid var(--rule); }
.cx-row > a, .cx-row > div { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 0 12px; min-height: 72px; padding: 10px 10px; color: inherit; text-decoration: none; }
.cx-src { color: var(--mute); }
.cx-rn { min-width: 0; display: grid; gap: 1px; }
.cx-rn b { font-weight: 600; font-size: 16px; }
.cx-rs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--mute); }
.cx-rr { display: grid; justify-items: end; gap: 4px; }
.cx-row.is-sel > a { background: var(--paper-3); color: var(--ink); }
.cx-row.is-sel .cx-src, .cx-row.is-sel .cx-rs, .cx-row.is-sel .cx-when { color: color-mix(in srgb, var(--ink) 78%, var(--paper-3)); }
.cx-row.is-sel .cx-st { background: var(--ink); color: var(--paper); }
.cx-row > a:focus-visible { outline: 1px solid var(--hairline-strong); outline-offset: -5px; }

/* the detail of an enquiry and of the customer */
.cx-detail { display: none; padding: 18px 20px 28px; min-width: 0; }
.cx-app:has(.cx-detail:target) .cx-detail { display: block; }
.cx-app:has(.cx-detail:target) .cx-list { display: none; }
.cx-backlink { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -6px; padding: 0 6px; font: 600 15px/1 var(--font); color: inherit; text-decoration: none; }
.cx-from { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--mute); }
.cx-detail h2 { margin-top: 8px; }
.cx-dm { margin-top: 6px; font-size: 14px; color: var(--mute); }
.cx-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cx-contact span { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; background: var(--soft); font: 600 14px/1 var(--font); overflow-wrap: anywhere; }
.cx-block { margin-top: 20px; }
.cx-block h3 { margin-bottom: 8px; color: var(--mute); }
.cx-seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.cx-seg li { display: grid; place-items: center; min-height: 44px; padding: 0 6px; background: var(--soft); font: 600 14px/1.2 var(--font); text-align: center; }
.cx-seg .is-on { background: var(--paper-3); color: var(--ink); }
.cx-msg { padding: 14px 16px; background: var(--soft); font-size: 15.5px; font-weight: 500; line-height: 1.5; }
.cx-att { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--mute); }
.cx-notes li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15px; font-weight: 500; line-height: 1.4; }
.cx-notes span { font-size: 12.5px; font-weight: 600; color: var(--mute); }
.cx-add { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; padding: 0 14px; border: 1px solid var(--rule); font-size: 14px; color: var(--mute); }
.cx-rem { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--paper-3); color: var(--ink);  }
.cx-rem .cx-i { width: 26px; height: 26px; }
.cx-rem h3 { margin-bottom: 2px; color: color-mix(in srgb, var(--ink) 78%, var(--paper-3)); }
.cx-rem p { font-size: 15px; }
.cx-hist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.cx-hist li > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the board and the calendar (Na mieru) */
.cx-boardwrap { padding: 22px 20px 24px; min-width: 0; }
.cx-board { display: grid; gap: 14px; margin-top: 18px; }
.cx-col { padding: 12px; background: var(--soft); }
.cx-ch { display: flex; align-items: baseline; gap: 8px; }
.cx-ch h3 { color: var(--ink); font-size: 15px; }
.cx-ch b { padding: 1px 7px; background: var(--ink); color: var(--paper); font: 600 12.5px/1.4 var(--font); }
.cx-ch span { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--mute); }
.cx-col ul { display: grid; gap: 8px; margin-top: 10px; }
.cx-card { padding: 11px 12px 12px; background: var(--paper); border-top: 2px solid var(--rule); }
.cx-col:nth-child(1) .cx-card { border-top-color: var(--ink); }
.cx-col:nth-child(2) .cx-card { border-top-color: var(--paper-3); }
.cx-col:nth-child(3) .cx-card { border-top-color: var(--ink); }
.cx-cn { font-weight: 600; font-size: 15px; }
.cx-cs { margin-top: 2px; font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-cf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 14px; }
.cx-role { padding: 2px 8px; background: var(--soft); font: 500 12.5px/1.4 var(--font); }
.cx-tag { display: flex; align-items: center; gap: 6px; margin-top: 8px; font: 500 12.5px/1.3 var(--font); color: var(--ink-2); }
.cx-tag .cx-i { width: 16px; height: 16px; }
.cx-cal { display: none; padding: 22px 20px; min-width: 0; }
.cx-slots { margin-top: 14px; }
.cx-slots li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 10px 0 10px 10px; border-top: 1px solid var(--rule); }
.cx-slots b { font-size: 15px; font-weight: 600; }
.cx-slots span { display: grid; gap: 1px; }
.cx-slots i { font-style: normal; font-weight: 600; font-size: 14.5px; }
.cx-slots em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--mute); }
.cx-slots .is-busy { background: var(--soft); border-left: 4px solid var(--ink); }
.cx-slots .is-free i { font-weight: 600; color: var(--mute); }
.cx-link { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--mute); }
.cx-link + .cx-link { margin-top: 8px; }
.cx-teamh { margin: 26px 0 8px; color: var(--mute); }
.cx-team li { display: grid; gap: 4px; justify-items: start; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--mute); }

/* the booking on the firm's own website (Na mieru) */
.cx-book { max-width: 520px; }
.cx-site { display: flex; align-items: center; min-height: 58px; padding: 0 22px; background: var(--night); color: var(--paper); }
.cx-bk { padding: 20px 22px 26px; }
.cx-bk h3 { margin: 18px 0 8px; color: var(--ink); font-size: 15px; }
.cx-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cx-days li { display: grid; place-items: center; gap: 2px; min-height: 62px; background: var(--soft); font-size: 13px; }
.cx-days b { font-size: 15px; font-weight: 600; }
.cx-days .is-on { background: var(--paper-3); color: var(--ink); }
.cx-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cx-times li { display: grid; place-items: center; min-height: 46px; background: var(--soft); font: 600 15px/1 var(--font); }
.cx-times .is-taken { background: none; border: 2px dashed var(--rule); color: var(--mute); text-decoration: line-through; }
.cx-times .is-on { background: var(--ink); color: var(--paper); }
.cx-fields > div { margin-bottom: 8px; }
.cx-fields dt { margin-bottom: 3px; font-size: 13px; font-weight: 500; color: var(--mute); }
.cx-fields dd { display: flex; align-items: center; min-height: 46px; padding: 0 14px; background: var(--soft); font-size: 15px; font-weight: 600; }
.cx-go { display: flex; align-items: center; justify-content: center; min-height: 56px; margin-top: 16px; background: var(--ink); color: var(--paper); font: 500 17px/1 var(--font); border-radius: var(--btn-radius);  }
.cx-bnote { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 14px; line-height: 1.4; color: var(--mute); }


/* a phone: one column, the list and the detail are two screens */
@media (max-width: 759px) {
  .cx-firma, .cx-namieru { display: flex; flex-direction: column; min-height: calc(100svh - 190px); }
  .cx-fil { flex-wrap: nowrap; overflow: hidden; margin-top: 14px; }
  .cx-fil li { flex: none; }
  .cx-search { margin-top: 10px; }
  .cx-app:has(.cx-detail:target) .cx-bar { display: none; }
  .cx-backlink { display: flex; min-height: 58px; margin: -18px -20px 14px; padding: 0 16px; background: var(--night); color: var(--paper); font-size: 16px; }
  .cx-contact { display: grid; gap: 6px; margin-top: 10px; }
  .cx-contact span { min-height: 0; padding: 0; background: none; }
  .cx-seg { grid-template-columns: repeat(4, 1fr); }
  .cx-seg li { min-height: 46px; padding: 0 2px; font-size: 13px; }
  .cx-block { margin-top: 16px; }
  .cx-msg { padding: 12px 14px; font-size: 15px; line-height: 1.45; }
  .cx-add, .cx-att, .cx-from { display: none; }
  .cx-detail h2 { margin-top: 0; }
  .cx-notes li { padding: 8px 0; }
  .cx-rem { margin-top: 14px; }
  .cx-bk { padding-top: 16px; }
  .cx-bk h3 { margin-top: 14px; }
  .cx-days li { min-height: 56px; }
  .cx-times li, .cx-fields dd { min-height: 42px; }
  .cx-detail { padding-bottom: 22px; }
  .cx-board { grid-template-columns: repeat(4, 76%); overflow: hidden; }
  .cx-namieru .cx-cal { display: block; border-top: 1px solid var(--hairline-strong); }
}
@media (min-width: 760px) {
  .cx-bar, .cx-tabbar { display: none; }
  .cx-backlink { display: none; }
  .cx-firma { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
  .cx-detail { display: block; padding: 24px 28px; border-left: 1px solid var(--hairline-strong); }
  .cx-list { padding: 24px 22px 0; }
  .cx-seg { grid-template-columns: repeat(4, 1fr); }
  .cx-namieru { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
  .cx-cal { display: block; border-left: 1px solid var(--hairline-strong); }
  .cx-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cx-boardwrap { display: flex; flex-direction: column; }
  .cx-board { flex: 1; min-height: 0; }
}
@media (min-width: 1100px) {
  .cx-side { display: flex; }
  .cx-firma { grid-template-columns: 232px minmax(0, 5fr) minmax(0, 6fr); }
  .cx-namieru { grid-template-columns: 232px minmax(0, 1fr) 320px; }
  .cx-list { padding: 28px 26px 0; }
  .cx-detail { padding: 28px 34px; }
  .cx-boardwrap { padding: 28px 26px 0; }
}
.cx-app.cx-book { display: block; }
