/* Drobné opravy vzhľadu CRM (30. 9. 2026). Samostatný súbor, aby sa nemenil zdieľaný styles.css. */

/* Vybavenie nehnuteľnosti: vypnuté = svetlé a sivé, zapnuté = tmavé a výrazné. */
html body .amenity-option:not(.is-selected) {
  background: #f2f4f3 !important; color: #8f9893 !important; border-color: #dde2df !important; box-shadow: none !important;
}
html body .amenity-option:not(.is-selected) .amenity-icon,
html body .amenity-option:not(.is-selected) svg { background: transparent !important; color: #a3aba7 !important; }
html body .amenity-option:not(.is-selected):hover { background: #e7ebe9 !important; color: #5f6964 !important; border-color: #c3cac6 !important; }
html body .amenity-option.is-selected {
  background: #1f5c4a !important; color: #fff !important; border-color: #1f5c4a !important; box-shadow: 0 2px 8px rgba(31,92,74,.28) !important;
}
html body .amenity-option.is-selected .amenity-icon,
html body .amenity-option.is-selected svg { background: rgba(255,255,255,.16) !important; color: #fff !important; }

/* Lišta diktovania pod lepiacou hlavičkou okna: hlavička ju prekrývala (napr. Nová aktivita – asistentka). */
.editor-card > .editor-heading + .dictation-bar--top { margin-top: 22px; flex-wrap: wrap; row-gap: 6px; }
.dictation-bar .dictation-auto { align-self: center; }

/* Zabudnuté heslo pod prihlásením */
.login-forgot { margin: 8px 0 0; text-align: center; font-size: .9em; }
.login-forgot a { color: inherit; opacity: .75; }
.password-reset-dialog { border: 0; padding: 0; background: transparent; }
.password-reset-dialog::backdrop { background: rgba(10, 20, 18, .55); }
.password-reset-dialog .modal { width: min(420px, calc(100vw - 32px)); box-sizing: border-box; background: #fff; color: #1a1a1a; padding: 24px; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); display: grid; gap: 12px; }
.password-reset-dialog h2 { margin: 0; font-size: 1.25rem; }
.password-reset-dialog label { display: grid; gap: 6px; font-weight: 600; }
.password-reset-dialog input { padding: 10px 12px; border: 1px solid #cfd6d3; border-radius: 8px; font: inherit; }
.password-reset-dialog .editor-actions { display: flex; justify-content: flex-end; gap: 8px; }
.account-2fa { display: grid; gap: 4px; }
.account-2fa button { justify-self: start; margin-top: 4px; }
.two-factor-qr { display: flex; justify-content: center; }
.two-factor-qr svg { width: 180px; height: 180px; }
.gdpr-actions { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e3e7e5; }
.gdpr-actions h3 { margin: 0 0 4px; font-size: 1rem; }
.lead-ads-dialog .modal { width: min(640px, calc(100vw - 32px)); max-height: 85vh; overflow: auto; }
.lead-ads-dialog h3 { margin: 10px 0 0; font-size: 1rem; }
.lead-ads-row { display: flex; gap: 8px; }
.lead-ads-row input { flex: 1; font-family: monospace; font-size: .85em; }
.lead-ads-example { background: #f4f6f5; padding: 10px; border-radius: 8px; font-size: .8em; overflow: auto; }
.contract-fill-dialog .modal { width: min(560px, calc(100vw - 32px)); max-height: 88vh; overflow: auto; }
.contract-fill-dialog select { padding: 9px 10px; border: 1px solid #cfd6d3; border-radius: 8px; font: inherit; }
.contract-fill-dialog details table { font-size: .85em; }
.contract-fill-docs { display: flex; flex-wrap: wrap; gap: 8px; }
.contract-fill-dialog textarea.is-filled { background: #eef9ee; border-color: #9fd49f; }
.contract-fill-dialog textarea.is-empty { background: #fff3e6; border-color: #f2b36d; }
.contract-fill-override { background: #eef9ee; padding: 8px 10px; border-radius: 8px; }
/* Podklady k zmluve: zelené = doklad je, oranžové = chýba. */
.podklady-list { display: grid; gap: 6px; }
.podklad { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid #dfe5e2; border-radius: 8px; background: #fff; }
.podklad.is-ok { background: #eef9ee; border-color: #9fd49f; }
.podklad.is-missing { background: #fff3e6; border-color: #f2b36d; }
.podklad.is-optional { background: #f7f8f8; }
.podklad.is-busy { opacity: .6; pointer-events: none; }
.podklad-mark { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; background: #9aa5a0; }
.podklad.is-ok .podklad-mark { background: #2e8b57; }
.podklad.is-missing .podklad-mark { background: #e07b1a; }
.podklad-body { flex: 1; min-width: 0; }
.podklad-docs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; font-size: .9em; }
.podklad-docs small { color: #8a5a1f; }
.podklad.is-optional .podklad-docs small { color: #6b7570; }
.podklad-doc { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.podklad .podklad-doc button.link-button { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; color: var(--primary, #1a7a45) !important; text-decoration: underline; cursor: pointer; font: inherit; font-weight: 500; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podklad-read, .podklad-upload { padding: 4px 10px; font-size: .85rem; white-space: nowrap; }
.contract-fill-podklady { margin-bottom: 8px; }
.podklady-pending { border: 1px solid #dfe5e2; border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; }
.podklady-pending legend { font-weight: 600; padding: 0 4px; }
.podklady-have { color: #2e8b57; margin: 0; font-size: .9em; }
/* Nová zmluva: ponuka vzoru podľa typu zmluvy. */
.contract-template-offer { border: 1px solid #9fd49f; background: #eef9ee; border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; }
.contract-template-offer:has(> p.muted:only-child) { border-color: #dfe5e2; background: #f7f8f8; }
.contract-template-offer p { margin: 0; }
.contract-template-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.contract-fill-second { border-top: 1px dashed #cfd6d3; padding-top: 8px; }
/* Vzory: tlačidiel pri vzore je veľa (Vyplniť, Stiahnuť, Tlačiť…) — zalomia sa namiesto prekrytia stĺpcov Súbor a Pridané. */
table:has(tr[data-template-id]) { table-layout: auto; }
td.table-actions-cell:has(.tpl-action-row) { white-space: normal; width: 300px; }
td.table-actions-cell .tpl-action-row { display: flex; flex-wrap: wrap; justify-content: flex-start; }
/* Nahrať dokumenty — hromadné nahrávanie: zóna na pretiahnutie a riadok na každý súbor. */
.doc-upload-drop { border: 2px dashed #b9c6c0; border-radius: 10px; padding: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; text-align: center; background: #f7faf8; }
.doc-upload-drop.is-over { border-color: var(--primary, #1a7a45); background: #eef9ee; }
.doc-upload-drop small { flex-basis: 100%; }
.doc-upload-rows { display: grid; gap: 6px; }
.doc-upload-head, .doc-upload-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(150px, 1.3fr) minmax(150px, 1.3fr) minmax(110px, 1fr) 28px; gap: 6px; align-items: center; }
.doc-upload-head { font-size: .8em; text-transform: uppercase; letter-spacing: .04em; color: #6b7570; }
.doc-upload-row { padding: 6px; border: 1px solid #dfe5e2; border-radius: 8px; }
.doc-upload-row.is-done { background: #eef9ee; border-color: #9fd49f; }
.doc-upload-row.is-error { background: #fff3e6; border-color: #f2b36d; }
.doc-upload-row select, .doc-upload-row input { min-width: 0; width: 100%; padding: 6px 8px; font-size: .9em; }
.doc-upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9em; }
@media (max-width: 760px) { .doc-upload-head { display: none; } .doc-upload-row { grid-template-columns: 1fr 28px; } .doc-upload-row > :not(.doc-upload-name):not([data-remove]) { grid-column: 1 / -1; } }
.doc-upload-merge span { display: flex; gap: 8px; align-items: center; font-weight: 500; } .doc-upload-merge input[type="checkbox"] { width: auto; margin: 0; flex: 0 0 auto; }
/* Nová zmluva so vzorom: strany zmluvy a ďalší predávajúci / kupujúci. */
.contract-parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.contract-party-side { display: grid; gap: 6px; align-content: start; background: #fff; border: 1px solid #dfe5e2; border-radius: 8px; padding: 8px 10px; }
.contract-party-side > button { justify-self: start; }
.contract-party-extra { display: grid; grid-template-columns: auto 1fr 28px; gap: 6px; align-items: center; }
.contract-party-bsm, .contract-fill-side .check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.contract-party-bsm input, .contract-fill-side .check input { width: auto; margin: 0; }
.contract-template-offer .link-button { background: none; border: 0; padding: 0; color: var(--primary, #1a7a45); text-decoration: underline; cursor: pointer; font: inherit; }
.contract-fill-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px 12px; background: #f4f8f6; border: 1px solid #dfe5e2; border-radius: 8px; padding: 10px 12px; }
.contract-fill-summary span { display: block; font-size: .78em; color: #6b7570; text-transform: uppercase; letter-spacing: .04em; }
.contract-fill-side { display: grid; gap: 6px; margin-top: 8px; }
.contract-fill-side-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.contract-fill-person { border: 1px solid #dfe5e2; border-radius: 8px; padding: 8px 10px; }
.contract-fill-person legend { font-weight: 600; padding: 0 4px; }
.contract-fill-person-head { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.contract-fill-person-head select { flex: 1; min-width: 0; }
/* Karta nehnuteľnosti: Vlastník / klient a Nový majiteľ v jednom riadku (na PC vedľa seba). */
.owner-first-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 10px; align-items: end; }
.owner-first-section > label.field { margin: 0; }
.owner-first-section .quick-owner-section { display: contents; }
.owner-first-section .quick-owner-section > .property-section-title { display: none; }
.owner-first-section .quick-owner-toggle { align-self: end; white-space: nowrap; }
.owner-first-section .quick-owner-fields { grid-column: 1 / -1; }
@media (max-width: 640px) { .owner-first-section { grid-template-columns: 1fr; } }
.owner-first-section > label.field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 8px; align-items: center; } .owner-first-section > label.field > span { grid-column: 1 / -1; } .owner-first-section > label.field > * { margin: 0; } @media (max-width: 640px) { .owner-first-section > label.field { grid-template-columns: 1fr; } }
/* Karta nehnuteľnosti — dokumenty: riadok na dokument, viacstranový dokument so stranami 1, 2, 3… */
.property-doc-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eee; }
.property-doc-text { flex: 1; min-width: 0; }
.property-doc-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.property-doc-actions button { padding: 4px 10px; font-size: .85rem; }
.property-doc-pending { color: var(--primary, #1a7a45); }
.property-doc-pages { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-left: 6px; font-size: .82em; color: #6b7570; }
button.property-doc-page { min-width: 24px; height: 22px; padding: 0 5px; border-radius: 5px; border: 1px solid #cfd6d3; background: #fff; color: #24302b; font-size: .85em; line-height: 1; cursor: pointer; }
button.property-doc-page:hover { border-color: var(--primary, #1a7a45); color: var(--primary, #1a7a45); }
.property-doc-buttons { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.property-id-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px; border: 1px solid #9fd49f; background: #eef9ee; border-radius: 8px; }
.property-id-picker select { flex: 1 1 220px; min-width: 0; }
.property-id-picker small { flex-basis: 100%; }
.deal-document-card .property-doc-pages { display: flex; margin: 4px 0 0; }
/* Nahrať dokumenty — tlačidlá podľa druhu dokladu nad zónou na pretiahnutie. */
.doc-upload-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
/* Nahrať dokumenty: odobratie súboru ako malý krížik, nie veľké tlačidlo. */
button.doc-upload-remove { width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 6px; border: 1px solid #e3c6a0 !important; background: #fff !important; color: #a0521c !important; font-size: .9rem; line-height: 1; cursor: pointer; box-shadow: none; }
button.doc-upload-remove:hover { background: #fff3e6; }
/* Spoluvlastníci v karte nehnuteľnosti — rovnaký vzhľad ako riadok vlastníka. */
.owner-first-section .co-owners { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 10px; align-items: end; }
.owner-first-section .co-owners-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 8px; align-items: center; margin: 0; }
.owner-first-section .co-owners-field > span { grid-column: 1 / -1; }
.owner-first-section .co-owners-field > * { margin: 0; }
.owner-first-section .co-owners-field:not(:has(.searchable-select-filter)) select { grid-column: 1 / -1; }
.owner-first-section .co-owner-add-new { white-space: nowrap; }
.co-owner-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.co-owner-card { display: flex; align-items: center; gap: 14px; padding: 9px 14px; border: 1px solid #cfe3d6; border-radius: 10px; background: #f4faf6; font-size: .95rem; }
.co-owner-name { font-weight: 600; color: #1f2a25; }
button.co-owner-remove { background: none !important; border: 0 !important; box-shadow: none !important; padding: 2px 4px !important; min-height: 0 !important; color: #a0521c !important; font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: underline; }
.owner-first-section .co-owner-new { grid-column: 1 / -1; padding: 14px 16px; border: 1px solid #dfe5e2; border-radius: 12px; background: #f7faf8; }
.co-owner-new .property-grid { margin-top: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .co-owner-new .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.co-owner-new-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.co-owner-new-error { flex-basis: 100%; color: #b3261e; }
/* Hlavičky zoznamov (Klienti, Nehnuteľnosti, Leady, Úlohy…) na PC: popisok vedľa poľa, nie nad ním —
   hľadanie, filtre a tlačidlá sa zmestia do 1–2 riadkov namiesto štyroch. */
@media (min-width: 769px) {
  .list-toolbar { align-items: center !important; gap: 8px 10px !important; }
  .list-toolbar-title { align-self: center !important; margin: 0 4px 0 0 !important; }
  .list-toolbar > label:not(.list-toolbar-search) { display: flex !important; align-items: center; gap: 6px; white-space: nowrap; }
  .list-toolbar > label:not(.list-toolbar-search) select { min-width: 120px; max-width: 210px; }
  .list-toolbar-search { display: flex !important; align-items: center; gap: 6px; flex: 1 1 240px !important; min-width: 200px !important; }
  .list-toolbar-search input { flex: 1; min-width: 0; }
  .list-toolbar > button, .list-toolbar > label select, .list-toolbar > label input { min-height: 36px; }
  .properties-page-toolbar > label:not(.list-toolbar-search) { flex: 0 0 auto !important; }
  .properties-page-toolbar .list-toolbar-search { min-width: 260px !important; }
}
@media (max-width: 640px) { .owner-first-section .co-owners, .owner-first-section .co-owners-field { grid-template-columns: 1fr; } }
/* Strany dokumentu: veľké, čitateľné náhľady v mriežke (klik na náhľad otvorí stranu na úpravu). */
.document-pages-box .document-page-list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.document-pages-box .document-page-row { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; padding: 10px !important; align-items: start !important; border-radius: 12px; }
.document-pages-box .document-page-thumb { width: 100% !important; height: 300px !important; padding: 0 !important; border: 1px solid #dfe5e2 !important; border-radius: 8px !important; background: #f3f5f4 !important; overflow: hidden; cursor: zoom-in; display: flex !important; align-items: center; justify-content: center; font-weight: 700; color: #6b7570; }
.document-pages-box .document-page-thumb img { width: 100% !important; height: 100% !important; object-fit: contain !important; background: #fff; }
.document-pages-box .document-page-thumb:hover { border-color: var(--brand, #247a60) !important; }
.document-page-caption { display: flex; align-items: center; gap: 10px; min-width: 0; }
.document-pages-box .document-page-badge { position: static !important; flex: 0 0 auto; }
.document-page-actions { display: flex; gap: 8px; }
.document-page-actions button { flex: 1; }
/* Zmena šírky stĺpca ťahaním za pravý okraj hlavičky. */
.col-resize-handle { position: absolute; top: 0; right: 0; width: 10px; height: 100%; cursor: col-resize; z-index: 3; touch-action: none; }
.col-resize-handle::after { content: ''; position: absolute; top: 22%; bottom: 22%; right: 3px; width: 2px; border-radius: 2px; background: transparent; transition: background .15s; }
th:hover > .col-resize-handle::after { background: #c3d0ca; }
.col-resize-handle:hover::after, body.col-resizing .col-resize-handle::after { background: var(--brand, #247a60); }
body.col-resizing, body.col-resizing * { cursor: col-resize !important; user-select: none !important; }
/* Úchyt na zmenu šírky je jemne viditeľný stále (nie len pri prejdení myšou), aby bolo jasné, kde chytiť. */
th > .col-resize-handle::after { background: #d5dfda; }
/* Tlačidlo nastavenia stĺpcov (▤): všade rovnaké a vždy úplne vpravo v riadku hlavičky. */
.column-settings-trigger { order: 999 !important; width: 36px !important; min-width: 36px; height: 36px; min-height: 36px !important; padding: 0 !important; font-size: 16px !important; display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 auto; }
.list-toolbar-primary { order: 998; }
/* Export / Import z Excelu v hornej lište vedľa Obnoviť. */
.topbar-actions .topbar-excel { white-space: nowrap; }
@media (min-width: 769px) {
  /* Prázdne miesto nad hornou lištou „Vyhľadávanie v celom systéme“. */
  .content { padding-top: 10px !important; }
  .list-toolbar > label:not(.list-toolbar-search) select { max-width: 180px; }
}
/* Mriežka tabuliek (Vzhľad systému → Mriežka tabuliek): zvislé aj vodorovné čiary. Za zvislú čiaru v hlavičke sa ťahá šírka stĺpca. */
body[data-grid="jemna"] { --table-grid: #e3e9e6; }
body[data-grid="stredna"] { --table-grid: #c9d4cf; }
body[data-grid="vyrazna"] { --table-grid: #9aaba3; }
body:not([data-grid="none"]) .table-wrap table th, body:not([data-grid="none"]) .table-wrap table td,
body:not([data-grid="none"]) #page-content table th, body:not([data-grid="none"]) #page-content table td {
  border-right: 1px solid var(--table-grid, #e3e9e6) !important;
  border-bottom: 1px solid var(--table-grid, #e3e9e6) !important;
}
body:not([data-grid="none"]) .table-wrap table tr > :last-child, body:not([data-grid="none"]) #page-content table tr > :last-child { border-right: 0 !important; }
body:not([data-grid="none"]) th > .col-resize-handle::after { background: transparent; }
body:not([data-grid="none"]) th:hover > .col-resize-handle::after { background: var(--brand, #247a60); }
/* Hlavička stĺpca: názov sa skráti, A-Z a B sú vždy celé vpravo a klikateľné (nič ich neprekrýva). */
th > .th-inner { display: flex; align-items: center; gap: 4px; min-width: 0; padding-right: 8px; }
th > .th-inner > .table-sort-button { display: inline-flex !important; align-items: center; gap: 4px; min-width: 0; flex: 1 1 auto; overflow: hidden; padding: 0 !important; background: none !important; border: 0 !important; text-align: left; }
th .th-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
th .th-sort-mark { flex: 0 0 auto; font-size: 9px; opacity: .45; }
th .table-sort-button.is-active .th-sort-mark { opacity: 1; color: var(--brand, #247a60); }
th > .th-inner > .table-emphasis-button { flex: 0 0 auto; position: static !important; width: 20px; height: 20px; min-height: 0 !important; padding: 0 !important; margin: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 4px; font-size: 11px; line-height: 1; z-index: 5; }
th .col-resize-handle { width: 8px; }
/* Pripnuté stĺpce Akcie / Aktivity: majú vlastné pozadie a tieň zľava, aby nimi neprebíjal text. */
.col-pinned { background-color: var(--surface, #fff); }
th.col-pinned { background-color: var(--table-head, #f6f8f7); }
.col-pinned-edge { box-shadow: -8px 0 10px -8px rgba(23, 53, 74, .28); }
/* Upratanie hlavičiek a súhrnov v sekciách (Akvizícia, Provízie, Obchodné prípady, Leady…) — na PC v riadkoch, nie pod sebou. */
@media (min-width: 769px) {
  .app-section-header { display: flex !important; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px !important; }
  .app-section-header > h2, .app-section-header > h1 { flex: 0 0 auto; margin: 0 8px 0 0 !important; }
  .app-section-header > .app-section-actions { flex: 1 1 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; min-width: 0; }
  /* Súhrnné bunky (Nové 0, Na kontrolu 174…): popis a číslo v jednom riadku, nízke dlaždice. */
  .stat-cards, .stat-grid { gap: 10px !important; margin-bottom: 10px !important; }
  .stat-cards > .stat-card, .stat-grid > .card.stat { display: flex !important; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; padding: 10px 14px !important; min-height: 0 !important; }
  .stat-cards > .stat-card > span, .stat-grid > .card.stat > span { margin: 0 !important; }
  .stat-cards > .stat-card > strong, .stat-grid > .card.stat > strong { font-size: 22px !important; line-height: 1.1 !important; margin: 0 !important; }
  .stat-grid > .card.stat > small { flex-basis: 100%; margin: 0 !important; }
  /* Filtre nad tabuľkou (Provízie, Náklady…): popisok vedľa poľa, jeden riadok. */
  .field-grid.compact-form[class*="filters"] { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 12px !important; margin-bottom: 10px !important; }
  .field-grid.compact-form[class*="filters"] > label { display: flex !important; align-items: center; gap: 6px; margin: 0 !important; white-space: nowrap; }
  .field-grid.compact-form[class*="filters"] > label.operational-search { flex: 1 1 260px; }
  .field-grid.compact-form[class*="filters"] > label input, .field-grid.compact-form[class*="filters"] > label select { min-height: 36px; }
  .field-grid.compact-form[class*="filters"] > label.operational-search input { flex: 1; min-width: 0; }
  /* Akvizícia: vysvetľujúce boxy nižšie a hustejšie. */
  .info-box { padding: 10px 14px !important; margin-bottom: 10px !important; }
  .acquisition-flow { gap: 10px !important; margin-bottom: 10px !important; }
  .acquisition-flow > * { padding: 10px 14px !important; }
  .acquisition-flow > * p { margin: 4px 0 0 !important; font-size: .9em; line-height: 1.35; }
}
@media (min-width: 769px) {
  /* Ďalšie filtre s popiskom nad poľom (Leady, Kalendár, výber makléra v hlavičke) — popisok vedľa poľa. */
  .lead-filters, .activity-calendar-filter { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 12px !important; }
  .lead-filters > label, .activity-calendar-filter > label, .app-section-actions > label { display: flex !important; flex-direction: row !important; align-items: center; gap: 6px; margin: 0 !important; white-space: nowrap; }
  .lead-filters > label input[type="search"], .activity-calendar-filter > label input[type="search"] { min-width: 220px; }
  .lead-filters > label select, .activity-calendar-filter > label select, .app-section-actions > label select { min-height: 36px; }
  /* Obchodné prípady: súhrn v nízkych dlaždiciach. */
  .deal-cockpit-stats { gap: 10px !important; margin-bottom: 10px !important; }
  .deal-cockpit-stats > .deal-stat { display: flex !important; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 14px !important; min-height: 0 !important; }
  .deal-cockpit-stats > .deal-stat > strong { font-size: 20px !important; margin: 0 !important; }
}
/* Kalendár: úchyt na zmenu trvania (spodný okraj udalosti) a čiara „teraz“. */
.calendar-event { position: relative; }
.calendar-event-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; border-radius: 0 0 8px 8px; }
.calendar-event-resize::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 26px; height: 3px; margin-left: -13px; border-radius: 2px; background: currentColor; opacity: 0; transition: opacity .15s; }
.calendar-event:hover .calendar-event-resize::after { opacity: .35; }
.calendar-event-resize[data-label]::before { content: attr(data-label); position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); white-space: nowrap; padding: 2px 8px; border-radius: 6px; background: #17354a; color: #fff; font-size: 11px; font-weight: 700; z-index: 20; }
body.calendar-resizing, body.calendar-resizing * { cursor: ns-resize !important; user-select: none !important; }
.calendar-time-slot { position: relative; }
.calendar-now-line { position: absolute; left: 0; right: 0; height: 2px; background: #d93025; z-index: 6; pointer-events: none; }
.calendar-now-line::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #d93025; }
/* Kalendár: vybraná udalosť navrch, náhľad trvania, okno s údajmi, hláška, ponuka pravého tlačidla. */
.calendar-event.is-selected { z-index: 8 !important; outline: 2px solid var(--brand, #247a60); outline-offset: 1px; box-shadow: 0 8px 22px rgba(23, 53, 74, .22); }
.calendar-resize-ghost { position: fixed; z-index: 60; border: 2px dashed var(--brand, #247a60); background: rgba(36, 122, 96, .12); border-radius: 8px; pointer-events: none; }
.calendar-resize-ghost[data-label]::after { content: attr(data-label); position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); white-space: nowrap; padding: 3px 9px; border-radius: 6px; background: #17354a; color: #fff; font-size: 12px; font-weight: 700; }
.calendar-event-resize[data-label]::before { display: none; }
.calendar-event-popover { position: fixed; z-index: 70; width: 300px; max-width: calc(100vw - 16px); padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #dfe5e2; box-shadow: 0 16px 40px rgba(23, 53, 74, .22); display: grid; gap: 4px; font-size: 13px; line-height: 1.4; color: #1f2a25; pointer-events: none; }
.calendar-event-popover * { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; -webkit-line-clamp: unset !important; display: block; max-height: none !important; }
.calendar-event-popover strong { font-size: 15px; }
.calendar-event-popover-hint { margin-top: 6px; color: #6b7570; font-size: 11px; border-top: 1px solid #eef2f0; padding-top: 6px; }
.calendar-toast { position: fixed; z-index: 75; transform: translate(-50%, -100%); padding: 6px 12px; border-radius: 8px; background: #17354a; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; animation: calendarToast 2.6s ease forwards; }
@keyframes calendarToast { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.calendar-context-menu { z-index: 80; }
/* Kalendár — presné rozloženie: sloty majú pevnú výšku, udalosti ležia nad nimi podľa času (začiatok, trvanie),
   súbežné vedľa seba. Nič sa samo neposúva a karta má presne dĺžku udalosti. */
.calendar-day-timeline { position: relative; --cal-slot-h: 48px; --cal-label-w: 52px; display: block !important; padding: 0 !important; gap: 0 !important; }
.embedded-calendar.is-compact .calendar-day-timeline { --cal-slot-h: 40px; --cal-label-w: 44px; }
.calendar-day-timeline > .calendar-time-slot { height: var(--cal-slot-h) !important; min-height: var(--cal-slot-h) !important; max-height: var(--cal-slot-h) !important; box-sizing: border-box; overflow: hidden; }
.calendar-day-events { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.calendar-day-events > .calendar-event { position: absolute !important; pointer-events: auto; box-sizing: border-box; margin: 0 !important; min-height: 0 !important; max-height: none !important; overflow: hidden !important; padding: 3px 6px !important; display: block !important; text-align: left; line-height: 1.25; font-size: 11px; }
.calendar-day-events > .calendar-event > span { display: block; font-weight: 700; font-size: 10.5px; }
.calendar-day-events > .calendar-event > strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-day-events > .calendar-event > small, .calendar-day-events > .calendar-event > em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
.calendar-day-events > .calendar-event:hover, .calendar-day-events > .calendar-event.is-selected { z-index: 9 !important; }

/* Udalosti z Google kalendára — sivé, len na čítanie, so značkou G. */
.calendar-event.calendar-event--google { background: #eef0f2 !important; border-left-color: #8a939d !important; color: #414851 !important; cursor: default; }
.calendar-event.calendar-event--google:hover { background: #e4e7ea !important; }
.calendar-event.calendar-event--google > strong { font-weight: 600; }
.calendar-event .calendar-event-g { position: absolute; top: 3px; right: 4px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 1px solid #c3c9d0; color: #4a5560; font: 700 9.5px/14px system-ui, sans-serif; text-align: center; font-style: normal; pointer-events: none; }
.calendar-all-day .calendar-event--google, .calendar-month-day .calendar-event--google { position: relative; }
.calendar-event-popover .calendar-event-g { display: none; }

/* Filter vloženého kalendára (maklér / typ / stav) a rozsah zobrazených dní v jeho hlavičke. */
.embedded-calendar .section-heading { flex-wrap: wrap; gap: 8px; }
.embedded-calendar-range { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--ink, #1d2a26); white-space: nowrap; }
.embedded-calendar-filter { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; }
.embedded-calendar-filter select { height: 32px; min-height: 32px; padding: 2px 26px 2px 8px; font-size: 13px; width: auto; max-width: 180px; }
.embedded-calendar-filter.is-active select { border-color: var(--brand, #1f6f5b); }
.embedded-calendar-filter .embedded-cal-filter-clear { height: 32px; min-width: 32px; padding: 0 8px; font-size: 13px; }

/* Uloženie okna dvojitým Enterom — otázka pri hlavnom tlačidle. */
.enter-save-armed { outline: 3px solid #f0a020 !important; outline-offset: 2px; }
.enter-save-hint { position: fixed; z-index: 2147483000; padding: 7px 12px; border-radius: 8px; background: #1d2a26; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.25); pointer-events: none; white-space: nowrap; }
.embedded-calendar-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.embedded-calendar-filter input[type="search"] { height: 32px; min-height: 32px; padding: 2px 8px; font-size: 13px; width: 250px; max-width: 100%; }
.embedded-calendar-found { font-size: 12px; font-weight: 600; color: var(--brand, #1f6f5b); white-space: nowrap; }
.embedded-calendar .embedded-cal-add { height: 34px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
/* Hlavička s dátumami ostáva pri posúvaní kalendára hore (mriežka nesmie byť vlastný posuvný box). */
.embedded-calendar.is-compact .calendar-grid { overflow: visible !important; }
.embedded-calendar.is-compact .calendar-day > header { position: sticky; top: 0; z-index: 12; background: #fff; box-shadow: 0 1px 0 var(--line, #e3e6e3); }

/* Aktivity – Kalendár: celá hlavička v jednom riadku (na úzkej obrazovke sa zalomí). */
.activity-calendar-topline.is-one-row { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; padding: 0; }
.activity-calendar-topline.is-one-row .activity-calendar-toolbar { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.activity-calendar-topline.is-one-row .activity-calendar-filter { flex: 1 1 auto; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.activity-calendar-topline.is-one-row .activity-calendar-filter > label input[type="search"] { min-width: 150px; width: 190px; }
.activity-calendar-topline.is-one-row .activity-calendar-filter input,
.activity-calendar-topline.is-one-row .activity-calendar-filter select,
.activity-calendar-topline.is-one-row button { min-height: 36px; height: 36px; padding-top: 0; padding-bottom: 0; }
.activity-calendar-topline.is-one-row .activity-calendar-filter input:disabled { width: 130px; }
.activity-calendar-topline.is-one-row > #create-activities { margin-left: auto; white-space: nowrap; }
.topbar-actions .topbar-gcal { white-space: nowrap; height: 40px; padding: 0 14px; }
.activity-calendar-screen .calendar-empty-hint { margin: 0 0 6px; padding: 6px 10px; font-size: 12.5px; }
.activity-calendar-topline.is-one-row { flex-wrap: nowrap; }
.activity-calendar-topline.is-one-row .activity-calendar-toolbar { flex-wrap: nowrap; flex: 0 0 auto; }
.activity-calendar-topline.is-one-row .activity-calendar-toolbar button { padding-left: 10px; padding-right: 10px; min-width: 0; font-size: 13px; }
.activity-calendar-topline.is-one-row .activity-calendar-filter { flex: 1 1 0; min-width: 0; flex-wrap: nowrap !important; gap: 6px !important; }
.activity-calendar-topline.is-one-row .activity-calendar-filter > label { flex: 1 1 0; min-width: 0; }
.activity-calendar-topline.is-one-row .activity-calendar-filter > label input,
.activity-calendar-topline.is-one-row .activity-calendar-filter > label select { width: 100% !important; min-width: 0 !important; font-size: 13px; }
.activity-calendar-topline.is-one-row .is-hidden-submit { display: none !important; }
.activity-calendar-topline.is-one-row > #create-activities { flex: 0 0 auto; margin-left: 0; }
@media (max-width: 1100px) { .activity-calendar-topline.is-one-row, .activity-calendar-topline.is-one-row .activity-calendar-filter { flex-wrap: wrap !important; } .activity-calendar-topline.is-one-row .activity-calendar-filter { flex-basis: 100%; } }

/* Termíny vybavenia: zelená > 5 h, žltá 1–5 h, oranžová < 1 h, červená zmeškané. */
:root { --dl-ok: #dff3e4; --dl-ok-line: #5aa874; --dl-near: #fff3b8; --dl-near-line: #d4a900; --dl-soon: #ffd9a8; --dl-soon-line: #e07b00; --dl-late: #ffc9c4; --dl-late-line: #d1332a; }
.topbar-actions .deadline-button { white-space: nowrap; height: 40px; padding: 0 12px; font-weight: 700; }
.topbar-actions .deadline-button b { display: inline-block; min-width: 20px; margin-left: 4px; padding: 1px 6px; border-radius: 10px; background: rgba(0,0,0,.12); font-size: 12px; text-align: center; }
.deadline-button[data-level="ok"] { background: var(--dl-ok) !important; border-color: var(--dl-ok-line) !important; color: #1d4d2c !important; }
.deadline-button[data-level="near"] { background: var(--dl-near) !important; border-color: var(--dl-near-line) !important; color: #5c4a00 !important; }
.deadline-button[data-level="soon"] { background: var(--dl-soon) !important; border-color: var(--dl-soon-line) !important; color: #6b3900 !important; }
.deadline-button[data-level="late"] { background: var(--dl-late) !important; border-color: var(--dl-late-line) !important; color: #7a1410 !important; animation: deadline-pulse 2.4s ease-in-out infinite; }
@keyframes deadline-pulse { 50% { box-shadow: 0 0 0 4px rgba(209,51,42,.22); } }
.deadline-panel { min-width: min(760px, 86vw); }
.deadline-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; font-size: 12px; }
.deadline-legend span { padding: 3px 9px; border-radius: 10px; border: 1px solid; }
.deadline-legend [data-level="ok"], .deadline-row[data-level="ok"] { background: var(--dl-ok); border-color: var(--dl-ok-line); }
.deadline-legend [data-level="near"], .deadline-row[data-level="near"] { background: var(--dl-near); border-color: var(--dl-near-line); }
.deadline-legend [data-level="soon"], .deadline-row[data-level="soon"] { background: var(--dl-soon); border-color: var(--dl-soon-line); }
.deadline-legend [data-level="late"], .deadline-row[data-level="late"] { background: var(--dl-late); border-color: var(--dl-late-line); }
.deadline-group h3 { margin: 12px 0 6px; font-size: 14px; }
.deadline-group h3 span { font-weight: 600; color: var(--muted, #6b7772); }
.deadline-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; margin-bottom: 6px; border: 1px solid; border-left-width: 5px; border-radius: 8px; }
.deadline-when strong, .deadline-when small { display: block; }
.deadline-when small { font-size: 12px; opacity: .8; }
.deadline-what p { margin: 2px 0 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deadline-actions { display: flex; gap: 6px; }
.deadline-actions button { height: 32px; min-height: 32px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
@media (max-width: 720px) { .deadline-row { grid-template-columns: 1fr; } .deadline-actions { flex-wrap: wrap; } }
.deadline-toasts { position: fixed; right: 18px; bottom: 96px; z-index: 2147482000; display: grid; gap: 8px; max-width: 340px; }
.deadline-toast { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid; border-left-width: 6px; border-radius: 10px; text-align: left; font-size: 13px; box-shadow: 0 8px 22px rgba(0,0,0,.22); cursor: pointer; color: #2a1a00 !important; }
.deadline-toast[data-level="soon"] { background: var(--dl-soon) !important; border-color: var(--dl-soon-line) !important; }
.deadline-toast[data-level="late"] { background: var(--dl-late) !important; border-color: var(--dl-late-line) !important; }
/* Pole „Vybaviť do“ vo formulároch a termín v tabuľkách. */
.due-field .due-quick { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.due-field .due-quick button { height: 28px; min-height: 28px; padding: 0 9px; font-size: 12px; }
.activity-due[data-level] { display: inline-block; padding: 2px 8px; border-radius: 10px; border: 1px solid; font-weight: 600; white-space: nowrap; }
.activity-due[data-level="ok"] { background: var(--dl-ok); border-color: var(--dl-ok-line); color: #1d4d2c; }
.activity-due[data-level="near"] { background: var(--dl-near); border-color: var(--dl-near-line); color: #5c4a00; }
.activity-due[data-level="soon"] { background: var(--dl-soon); border-color: var(--dl-soon-line); color: #6b3900; }
.activity-due[data-level="late"] { background: var(--dl-late); border-color: var(--dl-late-line); color: #7a1410; }

/* Výsledky vyhľadávania v celom systéme: tri možnosti pri každom výsledku + rýchle INFO. */
.gsr-item .gsr-item-text { flex: 1 1 auto; min-width: 0; }
.gsr-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.gsr-actions button { height: 28px; min-height: 28px; padding: 0 9px; font-size: 12px; font-weight: 600; border-radius: 7px; border: 1px solid var(--line, #dfe4e0); background: #fff; color: var(--ink, #1d2a26); box-shadow: none; white-space: nowrap; }
.gsr-actions button:hover { background: var(--brand, #1f6f5b); border-color: var(--brand, #1f6f5b); color: #fff; }
.gsr-voice-hint { margin: 0; padding: 8px 14px; font-size: 12.5px; font-weight: 600; background: #fff3b8; color: #5c4a00; border-bottom: 1px solid #e8d77a; }
.gsr-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; min-width: min(560px, 80vw); }
.gsr-info > div { display: grid; gap: 2px; }
.gsr-info > div.full { grid-column: 1 / -1; }
.gsr-info p { margin: 0; white-space: pre-wrap; }
.gsr-info-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
@media (max-width: 640px) { .gsr-item { flex-wrap: wrap; } .gsr-actions { width: 100%; padding-left: 38px; } .gsr-info { grid-template-columns: 1fr; } }

/* Pole „Vybaviť do“ — celé v jednom riadku: názov, dátum a čas, rýchle voľby. */
label.due-field.full { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
label.due-field.full > input[type="datetime-local"] { flex: 0 0 230px; width: 230px; max-width: 100%; margin: 0; }
label.due-field .due-quick { margin-top: 0; flex: 1 1 auto; }
label.due-field--stack .due-quick { margin-top: 4px; }
label.due-field .due-quick button { height: 26px; min-height: 26px; padding: 0 8px; font-size: 11.5px; }
/* Posunutie termínu s dôvodom. */
.deadline-postpone { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: end; gap: 8px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,.75); }
.deadline-postpone label { display: grid; gap: 2px; font-size: 12px; font-weight: 600; margin: 0; }
.deadline-postpone label.wide { flex: 1 1 220px; }
.deadline-postpone input, .deadline-postpone select { height: 32px; min-height: 32px; padding: 2px 8px; font-size: 13px; }
.deadline-postpone button { height: 32px; min-height: 32px; padding: 0 12px; font-size: 13px; }

/* Informácie o nehnuteľnosti — interné pole hore v karte. */
.property-info-block { padding: 10px 16px !important; }
.property-info-block textarea { min-height: 54px; resize: vertical; }
.property-info-block .dictation-bar { margin: 4px 0; }
.deadline-late-note { align-self: center; font-size: 13px; }

/* Pošta: riadok zoznamu so zaškrtávadlom, zarovnaný kruh s iniciálami, upratovanie. */
.mail-list .mail-row { display: grid !important; grid-template-columns: 20px 40px minmax(0, 1fr) auto !important; gap: 10px !important; align-items: start; }
.mail-list .mail-row > .mail-pick, .mail-list .mail-row > span:first-child { grid-column: 1; width: 18px; height: 18px; margin: 10px 0 0; }
.mail-list .mail-row > .mail-avatar { grid-column: 2; position: static !important; margin: 0 !important; transform: none !important; flex: none; }
.mail-list .mail-row > .mail-row-main { grid-column: 3; }
.mail-list .mail-row > .mail-row-actions { grid-column: 4; opacity: 1; }
.mail-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; padding: 4px 6px; font-size: 13px; }
.mail-bulk label { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; margin: 0; cursor: pointer; }
.mail-bulk input { width: 18px; height: 18px; margin: 0; }
.mail-bulk button { height: 30px; min-height: 30px; padding: 0 10px; font-size: 13px; }
.mail-toolbar-right input[type="search"] { flex: 2 1 260px !important; min-width: 200px !important; }
/* Okno Termíny: posúva sa len zoznam, nadpis ostáva na mieste. */
#detail .editor-card:has(.deadline-panel) { overflow: hidden; display: flex; flex-direction: column; }
#detail .editor-card:has(.deadline-panel) #detail-content { overflow: auto; min-height: 0; }

/* Výkonnosť makléra. */
.perf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.perf-toolbar h2 { margin: 0 auto 0 0; font-size: 20px; }
.perf-toolbar select, .perf-toolbar input, .perf-toolbar button { height: 36px; min-height: 36px; width: auto; padding: 0 10px; font-size: 13px; }
.perf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.perf-card { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line, #dfe4e0); border-radius: 10px; background: #fff; }
.perf-card span { font-size: 12px; color: var(--muted, #6b7772); }
.perf-card strong { font-size: 22px; }
.perf-card small { font-size: 12px; color: var(--muted, #6b7772); }
.perf-badge { display: inline-block; min-width: 34px; padding: 1px 9px; border-radius: 10px; border: 1px solid; font-weight: 700; text-align: center; }
.perf-badge[data-level="ok"] { background: var(--dl-ok); border-color: var(--dl-ok-line); color: #1d4d2c; }
.perf-badge[data-level="near"] { background: var(--dl-near); border-color: var(--dl-near-line); color: #5c4a00; }
.perf-badge[data-level="soon"] { background: var(--dl-soon); border-color: var(--dl-soon-line); color: #6b3900; }
.perf-badge[data-level="late"] { background: var(--dl-late); border-color: var(--dl-late-line); color: #7a1410; }
.perf-table { width: 100%; font-size: 13px; }
.perf-table th { white-space: nowrap; font-size: 11.5px; }
.perf-table td { white-space: nowrap; text-align: right; }
.perf-table td:first-child { text-align: left; }
.perf-table tbody tr { cursor: pointer; }
.perf-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin: 14px 0; }
.perf-charts article { padding: 10px 14px; border: 1px solid var(--line, #dfe4e0); border-radius: 10px; background: #fff; }
.perf-charts h3 { margin: 0 0 6px; font-size: 14px; }
.perf-chart { position: relative; height: 260px; }
.perf-events { display: grid; gap: 6px; }
.perf-events article { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 2px 12px; padding: 7px 10px; border: 1px solid; border-left-width: 5px; border-radius: 8px; font-size: 13px; }
.perf-events article[data-level="near"] { background: var(--dl-near); border-color: var(--dl-near-line); }
.perf-events article[data-level="late"] { background: var(--dl-late); border-color: var(--dl-late-line); }
.perf-events small { grid-column: 1; opacity: .8; }
.perf-events em { grid-column: 2; font-style: normal; font-weight: 600; }
.perf-note { margin-top: 12px; font-size: 12px; }
@media (max-width: 720px) { .perf-events article { grid-template-columns: 1fr; } .perf-events small, .perf-events em { grid-column: 1; } }
.deadline-explain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--dl-late-line); border-left-width: 5px; border-radius: 8px; background: var(--dl-late); grid-column: 1 / -1; }
.deadline-explain button { height: 32px; min-height: 32px; padding: 0 10px; font-size: 13px; }
#office-charts { margin-top: 18px; }

/* Zdôvodnenie zmeškaného termínu (okno) a tabuľka zmeškaných termínov vo Výkonnosti. */
dialog.deadline-ask { width: min(520px, 94vw); padding: 18px 20px; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.deadline-ask h3 { margin: 0 0 6px; }
dialog.deadline-ask p { margin: 0 0 10px; font-size: 13px; }
dialog.deadline-ask label { display: grid; gap: 3px; margin-bottom: 10px; font-weight: 600; font-size: 13px; }
.deadline-ask-actions { display: flex; justify-content: flex-end; gap: 8px; }
.perf-missed { width: 100%; font-size: 13px; }
.perf-missed th { font-size: 11.5px; white-space: nowrap; text-align: left; }
.perf-missed td { vertical-align: top; }
.perf-missed td:nth-child(3), .perf-missed td:nth-child(5) { white-space: nowrap; }
.perf-missed .perf-why { cursor: help; max-width: 340px; }

/* Pole, kvôli ktorému sa formulár neuložil. */
.field-invalid { outline: 3px solid #d1332a !important; outline-offset: 1px; background: #fff4f3 !important; }
.step-add-expense { margin-left: 8px; }

/* Nehnuteľnosť označená „Nezverejňovať“ — jemne červený riadok v tabuľke. */
tr.row-no-publish > td { background: #fdeceb !important; }
tr.row-no-publish > td:first-child { box-shadow: inset 4px 0 0 #d1332a; }

/* Informácie o nehnuteľnosti v tabuľke: „i“ pri meste a stĺpec Informácie. */
.property-info-dot { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; background: #1f6f5b; color: #fff; font: italic 700 11px/1 Georgia, serif; cursor: help; vertical-align: middle; }
.property-info-cell { cursor: help; }

/* Firemný právnik. */
.legal-badge { font-size: 11.5px; font-weight: 600; white-space: nowrap; cursor: help; }
.contracts-documents-tab.legal-tab b { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: #f0a020; color: #fff; font-size: 11px; }
.legal-table td { vertical-align: top; }
.legal-table .table-actions-cell { display: flex; flex-wrap: wrap; gap: 6px; }
.legal-table .table-actions-cell button { height: 30px; min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.legal-send { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line, #dfe4e0); border-radius: 10px; background: #fff; }
.legal-send select { flex: 1 1 320px; min-width: 220px; height: 36px; min-height: 36px; }
.legal-send input { flex: 2 1 280px; height: 36px; min-height: 36px; }
.legal-send button { height: 36px; min-height: 36px; padding: 0 14px; white-space: nowrap; }
.property-info-dot.is-empty { background: #c9d0cc; }

/* Nehnuteľnosti — prepínač zobrazenia a karty (riadky s fotografiou / dlaždice). */
.pv-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line, #dfe4e0); border-radius: 10px; background: #fff; }
.pv-switch button { width: 36px; height: 34px; min-height: 34px; padding: 0; border: 0 !important; box-shadow: none !important; font-size: 16px; border-radius: 8px; }
.pv-switch button.active { background: var(--brand, #1f6f5b) !important; color: #fff !important; }
body[data-property-view="rows"] .properties-list-section [data-column-settings-key], body[data-property-view="grid"] .properties-list-section [data-column-settings-key],
body[data-property-view="rows"] #configure-operational-columns, body[data-property-view="grid"] #configure-operational-columns { display: none !important; }
.pv-rows { display: grid; gap: 8px; }
.pv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pv-grid { grid-template-columns: 1fr; } }
.pv-row, .pv-card { border: 1px solid var(--line, #dfe4e0); border-radius: 12px; background: #fff; cursor: pointer; overflow: hidden; transition: box-shadow .12s, border-color .12s; }
.pv-row:hover, .pv-card:hover { border-color: var(--brand, #1f6f5b); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.pv-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.pv-row.is-no-publish, .pv-card.is-no-publish { background: #fdeceb; box-shadow: inset 4px 0 0 #d1332a; }
.pv-photo { display: grid; place-items: center; background: #eef1ee; color: #a9b3ad; font-size: 34px; overflow: hidden; }
.pv-row .pv-photo { height: 100%; min-height: 96px; }
.pv-card .pv-photo { aspect-ratio: 16 / 9; }
.pv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-body { display: grid; gap: 5px; padding: 8px 12px; min-width: 0; align-content: start; }
.pv-body h3 { margin: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pv-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; font-size: 13px; }
.pv-price { font-size: 16px; white-space: nowrap; color: var(--brand, #1f6f5b); }
.pv-place { margin: 0; font-size: 12.5px; color: var(--muted, #6b7772); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-facts { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 12.5px; }
.pv-facts > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pv-facts i, .pv-owner i { font-style: normal; color: var(--muted, #6b7772); font-size: 11.5px; }
.pv-owner > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.pv-note { margin: 0; font-size: 12px; color: #1d4d2c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: help; }
@media (max-width: 700px) { .pv-row { grid-template-columns: 96px minmax(0, 1fr); } }

/* Výber zmluvy na posúdenie právnikom. */
dialog.legal-picker { width: min(1100px, 96vw); max-height: 88vh; padding: 0; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); display: none; flex-direction: column; }
dialog.legal-picker[open] { display: flex; }
.legal-picker-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 6px; }
.legal-picker-head h3 { margin: 0; }
.legal-picker-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 18px 10px; }
.legal-picker-tools input { flex: 1 1 280px; height: 36px; min-height: 36px; }
.legal-picker-list { overflow: auto; padding: 0 18px 16px; min-height: 0; }
.legal-picker-list td { vertical-align: top; }
.legal-picker-list button { height: 30px; min-height: 30px; padding: 0 10px; font-size: 12.5px; white-space: nowrap; }

/* Riadkové zobrazenie nehnuteľností: všetky karty rovnako vysoké, údaje v jednom riadku bez zalamovania. */
.pv-row { height: 104px; grid-template-columns: 156px minmax(0, 1fr); }
.pv-row .pv-photo { height: 104px; min-height: 0; }
.pv-row .pv-body { gap: 4px; padding: 8px 12px; overflow: hidden; }
.pv-row .pv-facts { flex-wrap: nowrap; overflow: hidden; gap: 3px 16px; height: 26px; align-items: center; }
.pv-row .pv-facts > span { flex: 0 1 auto; min-width: 0; }
.pv-row .pv-facts .pv-note { color: inherit; }
@media (max-width: 900px) { .pv-row { height: auto; } .pv-row .pv-photo { height: 100%; min-height: 104px; } .pv-row .pv-facts { flex-wrap: wrap; height: auto; } }
.pv-line-end { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.pv-actions .quick-action-open { height: 28px; min-height: 28px; padding: 0 10px; font-size: 12.5px; white-space: nowrap; }

/* Zoznamy ako karty (riadky / dlaždice) — table-cards.js. Karta = riadok tabuľky, údaj = bunka s názvom stĺpca. */
table.as-cards, table.as-cards > tbody { display: block; width: auto !important; min-width: 0 !important; }
table.as-cards > thead, table.as-cards > colgroup { display: none; }
table.as-cards > tbody { display: grid; grid-template-columns: 1fr; gap: 8px; }
table.as-cards.as-cards-grid > tbody { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { table.as-cards.as-cards-grid > tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { table.as-cards.as-cards-grid > tbody { grid-template-columns: 1fr; } }
table.as-cards > tbody > tr { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 18px; padding: 10px 14px; border: 1px solid var(--line, #dfe4e0); border-radius: 12px; background: #fff; cursor: pointer; transition: box-shadow .12s, border-color .12s; }
table.as-cards > tbody > tr:hover { border-color: var(--brand, #1f6f5b); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
table.as-cards > tbody > tr > td { display: inline-flex; align-items: center; gap: 6px; width: auto !important; min-width: 0; max-width: 100%; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; position: static !important; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.as-cards > tbody > tr > td::before { content: attr(data-label); flex: 0 0 auto; font-size: 11.5px; color: var(--muted, #6b7772); font-weight: 400; }
table.as-cards > tbody > tr > td[data-label=""]::before, table.as-cards > tbody > tr > td:not([data-label])::before { content: none; }
table.as-cards > tbody > tr > td:first-child { font-size: 15px; font-weight: 700; }
table.as-cards.as-cards-grid > tbody > tr { align-items: flex-start; align-content: flex-start; }
table.as-cards.as-cards-grid > tbody > tr > td { flex: 1 1 44%; }
table.as-cards.as-cards-grid > tbody > tr > td:first-child { flex-basis: 100%; }
table.as-cards > tbody > tr > td.table-actions-cell, table.as-cards > tbody > tr > td.row-actions { margin-left: auto; overflow: visible; }
table.as-cards.as-cards-grid > tbody > tr > td.table-actions-cell, table.as-cards.as-cards-grid > tbody > tr > td.row-actions { flex-basis: 100%; justify-content: flex-end; }
/* V kartách netreba vodorovný posun, horný posuvník ani nastavenie stĺpcov. */
body[data-list-view="rows"] #page-content .table-wrap, body[data-list-view="grid"] #page-content .table-wrap,
body[data-list-view="rows"] #page-content .table-scroll, body[data-list-view="grid"] #page-content .table-scroll,
body[data-list-view="rows"] #page-content .table-scroll-x, body[data-list-view="grid"] #page-content .table-scroll-x { overflow: visible !important; border: 0 !important; background: none !important; box-shadow: none !important; }
body[data-list-view="rows"] #page-content .table-scroll-top, body[data-list-view="grid"] #page-content .table-scroll-top,
body[data-list-view="rows"] #page-content .col-resize-handle, body[data-list-view="grid"] #page-content .col-resize-handle { display: none !important; }
.topbar-actions .list-view-switch { margin-right: 2px; }

/* Hypokalkulačka: kedy a odkiaľ je sadzba banky overená. */
.bank-rate-status { display: grid; gap: 3px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line, #dfe4e0); font-size: 12px; color: var(--muted, #6b7772); }
.bank-rate-status a { color: var(--brand, #1f6f5b); font-weight: 600; }
.bank-rate-status.needs-update { color: #7a1410; }
.bank-rate-status small { font-size: 11.5px; line-height: 1.35; }
.bank-rate-flag { font-weight: 700; color: #b42318; }
.bank-rate-status .bank-confirm { justify-self: start; height: 28px; min-height: 28px; padding: 0 10px; font-size: 12px; }
.bank-rate-notice { margin: 0 0 10px; padding: 8px 10px; border: 1px solid #f3b4ae; border-radius: 8px; background: #fdecea; color: #7a1410; font-size: 13px; font-weight: 600; }
.bank-rate-status .bank-apply { justify-self: start; height: 28px; min-height: 28px; padding: 0 10px; font-size: 12px; }

/* Zverejnenie ponuky: prepínač „kde má byť“ + jedno tlačidlo. */
.publish-switch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 10px; padding: 0; border: 0; }
.publish-switch.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.publish-switch legend { padding: 0; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.publish-switch legend small { font-weight: 400; color: var(--muted, #6b7772); }
.publish-switch-option:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.publish-switch-option { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--line, #dfe4e0); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 400; }
.publish-switch-option input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; flex: 0 0 auto; }
.publish-switch-option span { display: grid; gap: 2px; min-width: 0; }
.publish-switch-option small { color: var(--muted, #6b7772); font-size: 12px; line-height: 1.3; }
.publish-switch-option:has(input:checked) { border-color: var(--brand, #1f6f5b); background: var(--dl-ok, #eef7f0); box-shadow: 0 0 0 1px var(--brand, #1f6f5b) inset; }
.publish-switch-option.is-ban:has(input:checked) { border-color: #b42318; background: #fdecea; box-shadow: 0 0 0 1px #b42318 inset; }
.publish-switch-info { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
@media (max-width: 900px) { .publish-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Kontrola portálov: portál si ponuky dlho nestiahol → ikona „P“ (Portály) je oranžová s výkričníkom. */
body.portal-feed-stale span[title="Portály"] { background: #e65100 !important; box-shadow: 0 0 0 2px #ffd9b8; position: relative; }
body.portal-feed-stale span[title="Portály"]::after { content: "!"; position: absolute; top: -6px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: #b42318; color: #fff; font-size: 9px; line-height: 12px; text-align: center; font-weight: 800; }
.portal-watch-notice { margin: 0 0 10px; }

/* Termíny: mazanie a hromadné označovanie (admin a manažér). */
.deadline-row.with-pick { grid-template-columns: 22px 130px minmax(0, 1fr) auto; }
.deadline-pick, .deadline-bulk input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--brand, #1f6f5b); }
.deadline-bulk { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; }
.deadline-bulk label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.deadline-bulk button { height: 32px; min-height: 32px; padding: 0 12px; font-size: 13px; }
.deadline-actions .deadline-delete { padding: 0 9px; }
@media (max-width: 720px) { .deadline-row.with-pick { grid-template-columns: 22px minmax(0, 1fr); } .deadline-row.with-pick > .deadline-what, .deadline-row.with-pick > .deadline-actions, .deadline-row.with-pick > .deadline-postpone { grid-column: 1 / -1; } }

/* Povinné polia (celý systém): hviezdička pri názve, zvýraznenie chýbajúceho poľa a hláška, čo treba doplniť. */
.req-star { color: #c62828; font-weight: 700; }
.field-missing, .field-missing:focus { border-color: #c62828 !important; box-shadow: 0 0 0 3px #c6282826 !important; background-color: #fff7f7 !important; }
.req-summary { margin: 10px 0; padding: 10px 12px; border: 1px solid #e06a6a; border-left: 5px solid #c62828; border-radius: 8px; background: #fff1f1; color: #8a1c1c; font-weight: 600; font-size: 14px; }

/* GDPR prehľad (Zmluvy a dokumenty → GDPR) a fakturačné údaje v karte makléra */
dialog.gdpr-overview .editor-card { width: min(92vw, 640px); display: grid; gap: 12px; }
.gdpr-points { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.gdpr-list { display: grid; gap: 6px; max-height: 280px; overflow: auto; }
.gdpr-list button { text-align: left; }
fieldset.user-billing { margin: 4px 0; padding: 12px 14px; border: 1px solid var(--line, #dfe4e0); border-radius: 10px; }
fieldset.user-billing legend { padding: 0 6px; font-weight: 700; }
fieldset.user-billing .field-grid { margin-top: 8px; }

/* GDPR: riadok klienta s akciami, formulár súhlasu; zaškrtávacie pole fakturačných údajov v jednom riadku */
.gdpr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--line, #dfe4e0); border-radius: 8px; }
.gdpr-row button { height: 34px; min-height: 34px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
dialog.gdpr-consent .editor-card { width: min(94vw, 860px); }
dialog.gdpr-consent fieldset { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line, #dfe4e0); border-radius: 10px; }
dialog.gdpr-consent legend { padding: 0 6px; font-weight: 700; }
.gdpr-roles { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.gdpr-roles label, fieldset.user-billing label.checkbox-row { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.gdpr-roles input, fieldset.user-billing label.checkbox-row input { width: auto; flex: 0 0 auto; margin: 0; }
fieldset.user-billing label.checkbox-row { align-self: end; min-height: 42px; }

/* Energetický certifikát v karte nehnuteľnosti */
.energy-cert .energy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.energy-cert .energy-note { grid-column: 1 / -1; }
.energy-cert .energy-facts { margin: 10px 0 0; font-size: 14px; }
.energy-warnings { margin: 10px 0 0; padding: 10px 14px 10px 30px; border-radius: 10px; background: #fff6e0; border: 1px solid #ecd28a; color: #5c4300; font-size: 14px; display: grid; gap: 4px; }
.energy-ok { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #e8f5ec; border: 1px solid #b7dcc2; color: #1d5a33; font-size: 14px; }
.energy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.energy-actions button, .energy-actions .button-link { height: 38px; min-height: 38px; padding: 0 14px; font-size: 13.5px; display: inline-flex; align-items: center; white-space: nowrap; }
dialog.energy-dialog .editor-card { width: min(94vw, 720px); display: grid; gap: 12px; }
dialog.energy-dialog textarea { width: 100%; font: inherit; line-height: 1.45; }
.energy-warning { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; border: 1px solid #f1b9b3; color: #7a1f17; font-size: 14px; }
.energy-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.energy-checks label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.energy-checks input { width: auto; flex: 0 0 auto; margin: 0; }
.energy-result { padding: 12px 14px; border-radius: 10px; background: #f3f6f4; border: 1px solid var(--line, #dfe4e0); }
.energy-result p { margin: 0 0 4px; }
.energy-class { display: inline-block; min-width: 34px; padding: 2px 8px; border-radius: 6px; background: #17261f; color: #fff; text-align: center; }

.energy-actions .energy-read { cursor: pointer; }

/* Bazoš v karte nehnuteľnosti; označenie leadu z inzerátu */
.bazos-panel .bazos-state { margin: 0 0 10px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.bazos-panel .bazos-info { margin: 0 0 10px; padding: 9px 12px; border-radius: 10px; background: #eef3f8; border: 1px solid #c9d6e4; color: #24405c; font-size: 14px; }
.bazos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; margin-bottom: 8px; }
.bazos-grid .bazos-check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 600; min-height: 42px; }
.bazos-grid .bazos-check input { width: auto; flex: 0 0 auto; margin: 0; }
.bazos-inline { display: flex; align-items: end; }
.bazos-note { margin: 0 0 8px; font-size: 13px; }
.bazos-preview { margin: 10px 0 0; padding: 10px 14px; border: 1px solid var(--line, #dfe4e0); border-radius: 10px; background: #fafbfa; }
.bazos-preview summary { cursor: pointer; font-weight: 700; }
.bazos-preview .bazos-text { white-space: pre-wrap; max-height: 220px; overflow: auto; font-size: 14px; }
.lead-from-ad { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #fff0c9; border: 1px solid #e3c466; color: #5c4300; font-size: 11.5px; font-weight: 700; white-space: nowrap; }

/* Bazoš ako súčasť zverejnenia na portály */
.bazos-panel { margin: 12px 0 0; padding: 14px 16px; border: 1px solid var(--line, #dfe4e0); border-radius: 12px; background: #fff; }
.bazos-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; }
.bazos-head .bazos-check { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.bazos-head .bazos-check input { width: auto; margin: 0; }
.bazos-grid label > span { display: block; }

/* Portál nájomcu — okná v CRM */
dialog.pmp-dialog .editor-card { width: min(96vw, 980px); display: grid; gap: 12px; }
.pmp-request { border: 1px solid var(--line, #dfe4e0); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.pmp-request h3 { margin: 0; font-size: 15px; } .pmp-request p { margin: 0; }
.pmp-vendors { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pmp-vendors label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.pmp-vendors input { width: auto; margin: 0; }
/* Bazoš: jeden riadok, podrobnosti až po rozbalení */
.bazos-more { margin-top: 8px; } .bazos-more > summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: #44524c; }
.bazos-more[open] > summary { margin-bottom: 10px; }

/* Logo kancelárie: v ľavom menu namiesto iniciál a náhľad v Údajoch kancelárie. */
.brand-mark.has-office-logo { padding: 3px; overflow: hidden; }
.brand-mark img.office-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.office-logo-field { display: grid; gap: 8px; }
.office-logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.office-logo-preview { display: grid; place-items: center; width: 150px; height: 84px; padding: 8px; border: 1px solid var(--line, #dfe4e0); border-radius: 10px; background: #fff; }
.office-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Vizualizácia: štýl zariadenia sa vyberá kliknutím na obrázok (roleta ostáva skrytá ako zdroj hodnoty). */
.style-cards-source { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.style-cards-label { grid-column: 1 / -1; margin-bottom: -4px; font-weight: 700; }
.style-cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 4px; }
.style-cards button.style-card { display: grid; gap: 2px; align-content: start; min-height: 0; height: auto; padding: 0 0 8px; overflow: hidden; text-align: left; color: var(--ink, #17261f); background: #fff; border: 2px solid var(--line, #dfe4e0); border-radius: 12px; box-shadow: none; cursor: pointer; }
.style-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #eef1ee; }
.style-cards .style-card strong { padding: 6px 10px 0; color: var(--ink, #17261f); font-size: 14px; }
.style-card small { padding: 0 10px; color: var(--muted, #6c7a73); font-size: 11.5px; font-weight: 400; line-height: 1.35; white-space: normal; }
.style-cards button.style-card:hover { background: #fff; border-color: #9fc4b3; }
.style-cards button.style-card.is-selected { background: #f1f8f4; border-color: var(--brand, #1f6f5b); box-shadow: 0 0 0 3px #1f6f5b2e; }
.style-card.is-selected strong::after { content: " ✓"; color: var(--brand, #1f6f5b); }
.style-cards button.style-card:disabled { background: #fff; opacity: .55; cursor: default; }
@media (max-width: 760px) { .style-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Prázdne pomocné riadky (našepkávač adresy, nápoveda k obci) nesmú vo formulári robiť medzeru. */
#address-suggestions:empty, #city-lookup-hint:empty { display: none; }
.property-grid .floor-hint:empty { display: none; }
.property-grid .floor-hint { align-self: center; }
.ad-rule-note { color: #c62828; font-weight: 700; }
.website-settings-grid .check-line input.top-order { width: 130px; flex: 0 0 130px; min-height: 0; margin-left: auto; padding: 6px 8px; font-size: 14px; }

/* Značka kancelárie (Údaje kancelárie → Značka): výber farby, náhľad loga pre tmavý podklad a ikony, logo na prihlásení. */
.office-color-row { display: flex; gap: 8px; align-items: center; }
.office-color-row input:not([type="color"]) { flex: 1 1 auto; min-width: 0; }
.office-color-row input[type="color"] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line, #dfe4e0); border-radius: 8px; background: #fff; cursor: pointer; }
.office-logo-preview-dark { background: var(--nav, #111d1a); }
.office-logo-preview-dark .muted { color: #c9d1cd; }
.office-favicon-preview { width: 84px; }
.login-brand > span.has-office-logo { display: grid; place-items: center; height: 46px; max-width: 190px; padding: 5px 9px; border-radius: 10px; background: #fff; }
.login-brand > span img.office-logo { display: block; max-height: 36px; max-width: 172px; object-fit: contain; }
