:root {
  --bg: #e8edf2;
  --panel: #fff;
  --ink: #1a2433;
  --muted: #5c6b7a;
  --line: #cfd8e3;
  --accent: #1e4d8c;
  --accent-2: #163a6b;
  --ok: #1f7a4d;
  --warn: #b45309;
  --bad: #b42318;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  background: linear-gradient(var(--nav-bar, #245aa3), var(--nav-bar2, var(--accent-2)));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 48px;
}
.topbar-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 16px;
}
.kezelosav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  width: 100%;
  padding: 6px 12px 8px;
  border-top: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.12);
  align-items: center;
}
.nav-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  padding: 2px 8px 2px 4px;
  border-right: 1px solid rgba(255,255,255,.18);
  border-left: 3px solid var(--nav-group, rgba(255,255,255,.35));
  background: var(--nav-field-bg, #f0f4f8);
  color: var(--nav-field-text, #1a2433);
  border-radius: 4px;
}
.nav-group:last-child {
  border-right: 0;
}
.nav-group-label {
  display: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--nav-group, #4a5a6a);
  padding: 0 4px;
  white-space: nowrap;
}
.kezelosav .nav-group-label {
  display: inline;
}
.nav-group a {
  color: var(--nav-field-text, #1a2433) !important;
}
.nav-group a.active,
.nav-group a:hover {
  background: color-mix(in srgb, var(--nav-group, #4a5a6a) 22%, var(--nav-field-bg, #f0f4f8));
  color: var(--nav-field-text, #1a2433) !important;
}
.nav-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.nav-edit-col {
  border-left: 4px solid var(--nav-group, #4a5a6a);
  margin: 0;
}
.nav-edit-head {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.nav-edit-head label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.nav-edit-head input[type="color"] {
  width: 100%;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.nav-edit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-edit-list.drag-over {
  outline: 2px dashed var(--nav-group, var(--accent));
  outline-offset: 2px;
}
.nav-edit-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: grab;
}
.nav-edit-chip.dragging { opacity: .55; }
.nav-edit-chip .nav-move {
  max-width: 42%;
  font-size: 12px;
  padding: 4px 6px;
}
.nav-edit-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 6px;
}
.nav-theme-box {
  margin-top: 12px;
  padding: 12px 14px;
}
.nav-theme-box h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.nav-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px 14px;
}
.nav-theme-grid label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}
.nav-theme-grid input[type="color"] {
  width: 100%;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.nav-flyout {
  position: relative;
  display: inline-block;
  border-left: 3px solid var(--nav-group, #5c5f78);
  border-radius: 4px;
  background: var(--nav-field-bg, #f0f4f8);
  color: var(--nav-field-text, #1a2433);
}
.nav-flyout > summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 10px;
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
}
.nav-flyout > summary::-webkit-details-marker { display: none; }
.nav-flyout[open] > summary,
.nav-flyout > summary:hover {
  background: color-mix(in srgb, var(--nav-group, #5c5f78) 18%, var(--nav-field-bg, #f0f4f8));
}
.nav-flyout-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 45;
  min-width: 220px;
  padding: 6px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-flyout-panel a {
  padding: 8px 10px !important;
  border-radius: 4px;
  color: var(--ink) !important;
  text-decoration: none;
  font-weight: 600;
  background: transparent !important;
}
.nav-flyout-panel a:hover,
.nav-flyout-panel a.active {
  background: #eef3f9 !important;
  color: var(--accent) !important;
}
.kezelosav .nav-flyout { margin-left: 4px; }
.brand { font-weight: 700; letter-spacing: .4px; white-space: nowrap; }
.brand small { font-weight: 400; opacity: .8; margin-left: 8px; }
.surface-switch {
  display: inline-flex;
  align-items: stretch;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.35);
}
.surface-switch-btn {
  padding: 6px 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.1);
}
.surface-switch-btn:hover { background: rgba(255,255,255,.22); text-decoration: none; color: #fff; }
.surface-switch-btn.on { background: #fff; color: var(--accent-2); }
.surface-home-card { margin-bottom: 1rem; }
.surface-home-card h2 { margin-top: 0; }
.home-ict-title {
  margin: 0 0 0.85rem;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
a.brand { color: inherit; text-decoration: none; }
a.brand:hover { text-decoration: none; color: inherit; opacity: .95; }
.surface-switch-dark {
  border-color: rgba(255,255,255,.25);
  margin-bottom: 0.5rem;
  width: 100%;
}
.surface-switch-dark .surface-switch-btn { flex: 1; text-align: center; font-size: 0.85rem; }
.surface-switch-dark .surface-switch-btn.on { background: #e8f0ea; color: #14241c; }
.quick-menu { position: relative; }
.quick-menu > summary,
a.top-action {
  list-style: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
a.top-action { display: inline-block; }
a.top-action:hover { background: rgba(255,255,255,.22); text-decoration: none; color: #fff; }
a.top-action.active { background: rgba(255,255,255,.28); }
a.top-action.late { background: var(--bad); color: #fff; }
.quick-menu > summary::-webkit-details-marker { display: none; }
.quick-menu[open] > summary { background: rgba(255,255,255,.22); }
.quick-menu-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  min-width: 160px;
  padding: 6px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quick-menu-panel a {
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.quick-menu-panel a:hover { background: #eef3f9; text-decoration: none; }
.help-page {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 16px;
  align-items: start;
}
.help-nav h2 { margin: 0 0 8px; font-size: 1.1rem; }
.help-topic-list { list-style: none; margin: 12px 0 0; padding: 0; }
.help-topic-list li { margin: 0; }
.help-topic-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.help-topic-list a:hover { background: #eef3f9; text-decoration: none; }
.help-topic-list a.active { background: #e8f0fa; color: var(--accent); }
.help-body h1 { margin-top: 0; }
.help-body p { line-height: 1.45; max-width: 42rem; }
@media (max-width: 720px) {
  .help-page { grid-template-columns: 1fr; }
}
.user { margin-left: auto; }
.mark-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; color: var(--muted); }
.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.chip.on, .chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; background: #f3f8ff; }
.tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-right: 4px;
}
.tag.late { background: #fde8e6; color: var(--bad); }
.tag.ok { background: #e6f5ea; color: #1f7a3a; }
.mark.quote-mark { margin-right: 4px; vertical-align: -2px; }
.mark.quote-mark.indikativ { background: #2f6fad; }
.mark.quote-mark.elfogadott { background: #2f9e44; }
.mark.quote-mark.felfuggesztett { background: #c4a035; }
.mark.quote-mark.munkalap { background: #7c5cbf; }
.mark.quote-mark.lezart { background: #8b95a1; }
.quote-folder {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}
.quote-folder-indikativ { background: #e8f1fa; color: #1a4f8c; border-color: #9bb8d8; }
.quote-folder-elfogadott { background: #e6f5ea; color: #1f7a3a; border-color: #8fce9f; }
.quote-folder-felfuggesztett { background: #f8f1d8; color: #7a5c12; border-color: #d4bf6a; }
.quote-folder-munkalap { background: #efe8fa; color: #5a3d9a; border-color: #b5a0db; }
.quote-folder-lezart { background: #eef0f3; color: #4a5564; border-color: #c0c6ce; }
.quote-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 4px 8px;
  border-bottom: 1px solid #c8c8c8;
  background: #f3f3f3;
  font-size: 11px;
  color: #445066;
}
.quote-legend span { display: inline-flex; align-items: center; gap: 5px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline-form { display: inline; margin: 0; }
.nav-menu {
  display: none;
  margin: 0;
}
.nav-menu-toggle {
  display: inline-block;
  list-style: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 600;
}
.nav-menu-toggle::-webkit-details-marker { display: none; }
.nav-menu[open] > .nav-menu-toggle { background: rgba(255,255,255,.22); }
.mods {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.mods a, .user a, .btn {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.mods a { color: #e8f0ff; }
.mods a.active, .mods a:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.mods a.late, .mods a.late.active, .mods a.late:hover { background: var(--bad); color: #fff; }
.user { display: flex; align-items: center; gap: 8px; }
.wrap { padding: 16px; }
body.popup { background: #e4e7ec; }
body.popup .wrap { padding: 12px; }
dialog.record-dialog:not([open]) { display: none; }
dialog.record-dialog[open] {
  width: min(1040px, 96vw);
  height: min(760px, 92vh);
  min-width: 420px;
  min-height: 280px;
  max-width: 98vw;
  max-height: 96vh;
  padding: 0;
  border: 1px solid #9aa8b8;
  border-radius: 6px;
  background: #e4e7ec;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.record-dialog::backdrop { background: rgba(24, 32, 42, .45); }
.record-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 6px 8px;
  flex: 0 0 auto;
}
.record-dialog .record-close { margin: 0; }
.record-dialog-hint { color: var(--muted); font-size: 12px; margin-right: auto; }
.record-dialog iframe { width: 100%; flex: 1; min-height: 0; border: 0; background: #e4e7ec; }
.record-resize-grip {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  z-index: 6;
  cursor: nwse-resize;
  touch-action: none;
  background:
    linear-gradient(135deg, transparent 55%, #6b7a8c 55%) bottom right / 12px 12px no-repeat,
    linear-gradient(135deg, transparent 55%, #6b7a8c 55%) bottom 3px right 3px / 8px 8px no-repeat;
}
.item-title { margin: 0 0 8px; font-size: 16px; }
tr.bill-closed td, .bill-status.bill-closed { background: #e7f6ec; color: #14301c; }
/* Nyitott számla — Yettel-szerű magenta, jól látható */
tr.bill-open td, .bill-status.bill-open, a.btn.bill-open {
  background: #f7a0c8;
  color: #5c0630;
  border-color: #e20074;
  font-weight: 600;
}
a.btn.bill-open:hover {
  background: #f284b8;
  border-color: #c10062;
  color: #5c0630;
  text-decoration: none;
}
tr.bill-closed a, tr.bill-open a { color: inherit; }
.bill-status { display: inline-block; margin: 0; padding: 4px 8px; border-radius: 4px; }
.pay-due, .pay-saved { margin-left: 8px; }
.pay-mark { display: inline; margin-left: 8px; }
td .pay-mark { margin-left: 0; }
.pay-mark input[type="date"] { width: auto; }
.pay-mark .btn { margin-left: 4px; }
.buy-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 0 0 4px; }
.buy-row .buy-line { margin: 0; }
.buy-line { display: block; margin: 0 0 4px; white-space: normal; }
.item-sheet { display: grid; grid-template-columns: minmax(200px, 250px) 1fr; gap: 8px; align-items: start; }
.item-side, .item-main { background: transparent; border: 0; padding: 0; }
.item-box {
  background: #fff;
  border: 1px solid #b7c3d0;
  border-radius: 6px;
  padding: 6px 8px 2px;
  margin-bottom: 8px;
}
.item-row { display: grid; grid-template-columns: 108px 1fr; gap: 6px 8px; align-items: center; margin-bottom: 8px; }
.item-window .item-row { grid-template-columns: 92px 1fr; gap: 2px 6px; margin-bottom: 4px; }
.item-row[hidden] { display: none; }
.item-row label { text-align: right; }
.item-window input.input,
.item-window select.input,
.item-window textarea.input,
.item-extra textarea {
  border: 1px solid #b7c3d0;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  padding: 2px 6px;
}
.item-window textarea.input,
.item-window .item-row textarea { min-height: 34px; }
.item-kicker { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.item-extra { margin-top: 0; background: #fff; padding: 6px 8px; }
.item-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.item-tab { border: 1px solid #c5d0dc; background: #f4f7fa; border-radius: 4px 4px 0 0; padding: 2px 8px; font-size: 12px; cursor: pointer; }
.item-tab.active { background: #fff; color: var(--bad); border: 3px solid var(--bad); font-weight: 700; }
.item-data .item-row { grid-template-columns: 90px 1fr 90px 1fr; }
.item-row input, .item-row select, .item-row textarea { width: 100%; }
.item-row textarea { min-height: 72px; resize: vertical; }
#id_notes { min-height: 40px; }
.item-span { grid-column: 1 / -1; }
.item-actions { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.price-bits { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.price-bits input { width: 5.6em; }
.price-bits .money-out {
  display: inline-block;
  box-sizing: border-box;
  width: 5.6em;
  padding: 2px 6px;
  border: 1px solid #c5d0dc;
  border-radius: 4px;
  background: #f7f9fb;
}
.price-bits select.vat-choice { width: 8.2rem; max-width: 100%; }
.item-browser { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 12px; align-items: start; }
.folder-panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.folder-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.folder-tools { display: flex; gap: 4px; }
.icon-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.icon-btn svg { width: 14px; height: 14px; fill: currentColor; }
.icon-btn:disabled { opacity: .4; cursor: default; }
.folder-row { display: flex; align-items: center; gap: 2px; }
.folder-toggle, .folder-spacer { width: 18px; height: 22px; flex: 0 0 18px; }
.folder-toggle { border: 0; background: transparent; padding: 0; cursor: pointer; color: inherit; }
.folder-children { margin-left: 16px; }
.folder-link { display: block; flex: 1; padding: 3px 8px; border-radius: 4px; text-decoration: none; color: inherit; }
.folder-link.active { background: #d6e6f5; }
.folder-dialog { border: 1px solid #9aa8b8; border-radius: 6px; padding: 16px; width: min(420px, 92vw); }
.folder-dialog::backdrop { background: rgba(24, 32, 42, .45); }
.folder-path { margin: 0 0 8px; color: var(--muted); min-height: 1.2em; }
@media (max-width: 760px) {
  .item-browser { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .item-sheet { grid-template-columns: 1fr; }
  .item-row { grid-template-columns: 1fr; }
  .item-row label { text-align: left; }
}
.quote-sheet { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 8px; align-items: start; max-width: none; }
body.popup .quote-sheet { max-width: none; }
#quote-form, #delivery-form, #ws-form { display: contents; }
.quote-side, .quote-main, .quote-tabs, .quote-bottom {
  background: #fff;
  border: 1px solid #b7c3d0;
  border-radius: 6px;
  padding: 8px;
}
.quote-side { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
.quote-side .quote-field > div { min-width: 0; }
.quote-lock { margin: 8px 0; min-width: 0; }
.quote-until { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; align-items: center; margin-top: 4px; min-width: 0; }
.quote-until input { width: 100%; min-width: 0; max-width: 100%; }
.quote-main { grid-column: 2; grid-row: 1; }
.quote-tabs { grid-column: 2; grid-row: 2; min-width: 0; overflow: visible; position: relative; z-index: 3; }
.doc-scroll { overflow-x: auto; max-width: 100%; }
.quote-bottom { grid-column: 1 / -1; position: relative; z-index: 1; }
.quote-tabs .wl-sec { margin: 0 0 4px; }
.quote-tabs .doc-grid { width: max-content; min-width: 100%; }
.quote-tabs .doc-grid th,
.quote-tabs .doc-grid td { white-space: nowrap; vertical-align: middle; line-height: 1.25; padding: 2px 6px; }
.quote-tabs .item-extra-bits { display: inline; margin: 0 0 0 6px; }
.quote-tabs .item-extra-bits p { display: inline; margin: 0 0 0 6px; white-space: nowrap; }
.quote-tabs .item-extra-bits img { height: 18px; }
.quote-tabs .line-edit { margin-top: 6px; }
.quote-tabs .picker-row { flex-wrap: wrap; }
.quote-tabs .doc-grid .btn { padding: 1px 8px; }
.quote-kicker { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.quote-field { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 2px 8px; align-items: center; margin-bottom: 4px; }
.quote-field label { text-align: right; }
.quote-field input, .quote-field textarea, .quote-field select { width: 100%; }
.quote-sheet textarea.textarea { min-height: 40px; height: 44px; }
.quote-sum { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.quote-sum div { display: flex; justify-content: space-between; gap: 8px; margin: 3px 0; }
.quote-sum .gross { font-weight: 700; font-size: 16px; }
#discard-new { display: none; }
@media (max-width: 860px) {
  .quote-sheet { grid-template-columns: 1fr; }
  .quote-side, .quote-main, .quote-tabs, .quote-bottom { grid-column: 1; grid-row: auto; }
  .quote-field { grid-template-columns: 1fr; }
  .quote-field label { text-align: left; }
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.kpi { flex: 1; min-width: 160px; }
.kpi b { display: block; font-size: 24px; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.site-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px 16px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.site-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.site-search label, .site-manage-label { white-space: nowrap; }
.site-manage-label { font-weight: 700; }
.site-search .input { width: 148px; padding: 4px 8px; }
.site-search .picker-anchor { position: relative; }
.site-name-pick { display: flex; align-items: stretch; }
.site-name-pick .input { width: 132px; border-radius: 4px 0 0 4px; }
.site-name-open {
  border: 1px solid var(--line);
  border-left: 0;
  background: #fff;
  color: var(--ink);
  padding: 0 8px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}
.site-manage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  max-width: 560px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.site-manage-note { margin: 0; }
.site-manage-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-manage form { margin: 0; }
.btn.ghost.site-archive { border-color: var(--warn); }
button.btn:disabled { opacity: .45; cursor: default; }
.input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 9px;
  font: inherit;
  background: #fff;
}
.textarea { min-height: 90px; width: 100%; }
.btn {
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  border: 0;
}
.btn.ghost { background: #fff; color: var(--ink) !important; border: 1px solid var(--line); }
.btn.danger { background: var(--bad); }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
tr.pick { cursor: pointer; }
tr.pick.selected td { background: #2a6cb0; color: #fff; }
tr.pick.selected a { color: #fff; }
.wrap-sheet {
  height: calc(100vh - 96px);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  box-sizing: border-box;
  overflow: hidden;
  background: #d6d6d6;
}
.sheet-home {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #8f8f8f;
  background: #ececec;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #f5f5f5;
}
.sheet-home > .tile-board {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #b0b0b0;
  background: #e8e8e8;
}
.sheet-home > .tile-board .tile {
  min-height: 0;
  flex: 1 1 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid #b8b8b8;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.sheet-home > .tile-board .tile-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
}
.sheet-home > .tile-board .tile-link b {
  display: inline;
  margin: 0;
  font-size: 13px;
}
.sheet-home > .tile-board .tile.on {
  background: #fff;
  box-shadow: inset 0 -2px 0 #c62828;
}
.sheet-home > .tile-board .tile.on .tile-link,
.sheet-home > .tile-board .tile.on .tile-link b { color: #b42318; }
.sheet-home > .sheet-inline-sum {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 10px;
  border: 0;
  border-bottom: 1px solid #b0b0b0;
  border-radius: 0;
  background: #e8eef6;
  max-height: 28vh;
  overflow: auto;
}
.sheet-home > .sheet-inline-sum .point-kind-global-sum { margin-bottom: 6px; }
.sheet-home > .sheet-inline-sum .point-kind-global-kinds { margin-bottom: 6px; }
.sheet-folder-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px;
  background: #ececec;
}
.sheet-folder-area .folder-board-kinds {
  min-height: 100%;
  align-content: flex-start;
}
.sheet-tools {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 4px 6px;
  background: linear-gradient(#f7f7f7, #e9e9e9);
  border-bottom: 1px solid #b5b5b5;
}
.sheet-tools-title {
  margin-right: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #2a2a2a;
}
.sheet-tools .btn { padding: 4px 10px; border-radius: 2px; font-size: 12px; }
.sheet-gear {
  min-width: 32px;
  padding-left: 8px !important;
  padding-right: 8px !important;
  font-size: 13px !important;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sheet-gear-hint {
  font-size: 12px;
  color: #5a6575;
  white-space: nowrap;
}
.col-dialog {
  border: 1px solid #8a8a8a;
  border-radius: 4px;
  padding: 0;
  max-width: 360px;
  width: calc(100% - 24px);
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
}
.col-dialog::backdrop { background: rgba(20, 30, 45, 0.35); }
.col-dialog form { margin: 0; padding: 14px 16px 12px; }
.col-dialog h3 { margin: 0 0 6px; font-size: 15px; }
.col-check-list {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  max-height: 280px;
  overflow: auto;
  border: 1px solid #c8c8c8;
  background: #fff;
}
.col-check-list li { border-bottom: 1px solid #e4e4e4; }
.col-check-list li:last-child { border-bottom: 0; }
.col-check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 13px;
  cursor: pointer;
}
.col-check-list label:hover { background: #f3f7fb; }
.sheet-tools label { font-size: 12px; color: #334155; }
.sheet-tools select {
  padding: 3px 6px;
  border: 1px solid #9a9a9a;
  border-radius: 2px;
  background: #fff;
  font-size: 12px;
}
.sheet-tools > .sheet-search,
.sheet-search {
  margin-left: 0 !important;
  margin-right: 0;
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sheet-search .input {
  width: 100%;
  max-width: 320px;
  min-width: 0;
  padding: 4px 8px;
  border: 1px solid #9a9a9a;
  border-radius: 2px;
  font-size: 12px;
}
.sheet-grid {
  flex: 1 1 48%;
  min-height: 120px;
  min-width: 0;
  overflow: auto;
  background: #fff;
  border-bottom: 1px solid #7a7a7a;
}
.sheet-grid table.data {
  min-width: 980px;
  border-collapse: collapse;
  font-size: 12px;
}
.sheet-grid table.data th,
.sheet-grid table.data td {
  padding: 3px 6px;
  border: 1px solid #c4c4c4;
  line-height: 1.3;
  white-space: nowrap;
}
.sheet-grid table.data th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(#f3f3f3, #e4e4e4);
  color: #222;
  font-weight: 600;
  text-align: left;
  border-color: #b0b0b0;
}
.sheet-grid table.data tbody tr:nth-child(even) td { background: #f7f9fc; }
.sheet-grid table.data tbody tr:hover td { background: #e8f0fa; }
.sheet-grid table.data tr.pick.selected td {
  background: #1f5fa8 !important;
  color: #fff;
  border-color: #1a4f8c;
}
.sheet-grid table.data tr.pick.selected a { color: #fff; }
.sheet-grid .mark { width: 14px; height: 14px; border: 1px solid rgba(0,0,0,.25); }
.sheet-inline-warn {
  margin: 0;
  padding: 4px 8px;
  border-bottom: 1px solid #d0b0b0;
  font-size: 12px;
}
.sheet-inline-warn p { margin: 0; }
.sheet-tools-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: 1 1 auto;
}
.sheet-item-browser {
  flex: 1 1 48%;
  min-height: 120px;
  min-width: 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border-bottom: 1px solid #7a7a7a;
  background: #fff;
}
.sheet-item-browser .folder-panel {
  overflow: auto;
  border-right: 1px solid #b0b0b0;
  background: #f3f3f3;
}
.sheet-item-browser .sheet-grid {
  flex: 1 1 auto;
  border-bottom: 0;
  min-height: 0;
}
.sheet-split {
  flex: 0 0 6px;
  cursor: row-resize;
  background:
    linear-gradient(#cfcfcf, #b8b8b8) padding-box,
    repeating-linear-gradient(90deg, #8f8f8f 0 2px, transparent 2px 5px) border-box;
  border-top: 1px solid #9a9a9a;
  border-bottom: 1px solid #9a9a9a;
}
.sheet-dock {
  flex: 1 1 44%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  background: #e8e8e8;
}
.dock-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 4px 4px 0;
  background: #d4d4d4;
  border-bottom: 1px solid #9a9a9a;
  flex-shrink: 0;
}
.dock-tabs a {
  padding: 5px 12px 6px;
  border: 1px solid #9a9a9a;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#ececec, #d8d8d8);
  color: #1a2433;
  white-space: nowrap;
  font-size: 12px;
  text-decoration: none;
}
.dock-tabs a.active {
  background: #f4f4f4;
  font-weight: 600;
  margin-bottom: -1px;
  padding-bottom: 7px;
  border-color: #8a8a8a;
  color: #0d2b4a;
}
.dock-main {
  flex: 1;
  min-height: 0;
  display: flex;
  background: #f4f4f4;
  border-left: 1px solid #b0b0b0;
  border-right: 1px solid #b0b0b0;
}
.dock-side {
  width: 132px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 5px;
  border-right: 1px solid #a8a8a8;
  background: #dedede;
  overflow-y: auto;
}
.dock-side a,
.dock-side-disabled span {
  display: block;
  padding: 10px 8px;
  border: 1px solid #9a9a9a;
  border-radius: 2px;
  background: linear-gradient(#f8f8f8, #e4e4e4);
  color: #1a2433;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  box-shadow: inset 0 1px 0 #fff;
}
.dock-side a:hover { background: linear-gradient(#fff, #ececec); }
.dock-side a.active {
  background: #fff;
  border-color: #5a5a5a;
  box-shadow: inset 0 0 0 1px #2f6fad, inset 0 2px 4px rgba(0,0,0,.08);
  font-weight: 700;
}
.dock-side-disabled span { color: #8a8a8a; opacity: 0.65; }
.dock-frame {
  flex: 1;
  min-width: 0;
  margin: 5px;
  padding: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid #8f8f8f;
  box-shadow: inset 0 0 0 1px #fff;
}
.dock-frame > .dock-fields,
.dock-frame > .dock-table,
.dock-frame > .dock-form,
.dock-frame > .dock-empty,
.dock-frame > p {
  margin: 0;
}
.dock-fields {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.dock-fields th,
.dock-fields td {
  padding: 4px 8px;
  border: 1px solid #c8c8c8;
  vertical-align: top;
}
.dock-fields th {
  width: 128px;
  text-align: left;
  background: #eef1f5;
  color: #2a3648;
  font-weight: 600;
}
.dock-fields td { background: #fff; }
.dock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.dock-table th,
.dock-table td {
  padding: 3px 6px;
  border: 1px solid #c4c4c4;
}
.dock-table th {
  background: linear-gradient(#f3f3f3, #e4e4e4);
  font-weight: 600;
}
.dock-form { display: flex; flex-direction: column; height: 100%; min-height: 160px; }
.dock-note {
  flex: 1;
  width: 100%;
  min-height: 160px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 0;
  background: #e8f2fa;
  box-shadow: inset 0 0 0 1px #9eb4c8;
  resize: none;
  font-size: 13px;
}
.dock-actions {
  margin: 0;
  padding: 6px 8px;
  border-top: 1px solid #c8c8c8;
  background: #ececec;
}
.dock-upload {
  margin: 0;
  padding: 8px;
  border-top: 1px solid #c8c8c8;
  background: #f3f3f3;
}
.dock-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.dock-upload-row .input { flex: 1 1 160px; padding: 4px 8px; border-radius: 2px; }
.dock-empty { margin: 0; padding: 10px; color: var(--muted); }
.dock-empty-state .dock-frame {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
}
.dock-body { flex: 1; overflow: auto; padding: 8px 10px; }
.sheet-status {
  margin: 0;
  padding: 3px 8px;
  background: linear-gradient(#efefef, #e0e0e0);
  border-top: 1px solid #b0b0b0;
  color: #334155;
  font-size: 11px;
  flex-shrink: 0;
}
.mark { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: #8aa0b8; vertical-align: middle; }
.mark.bejelentett { background: #2f6fad; }
.mark.fuggo { background: #c4a035; }
.mark.nyitott { background: #3d8f4a; }
.mark.elkeszult { background: #8a7a2b; }
.mark.lezart { background: #8b95a1; }
.mark.ervenytelen { background: #b42318; }
.sheet-panel { margin-top: 12px; }
.sheet-sum { float: right; }
.sheet-meta { margin: 12px 0 0; color: var(--muted); }
table.data th { background: #f4f7fb; font-weight: 600; }
table.data th .col-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-align: inherit;
  color: inherit;
  cursor: pointer;
}
table.data th .col-sort-icons {
  display: inline-flex;
  flex-direction: row;
  gap: 2px;
  line-height: 1;
  font-size: 11px;
  color: #8a97a8;
}
table.data th .col-sort-up,
table.data th .col-sort-down { display: inline; opacity: .35; }
table.data th[aria-sort="ascending"] .col-sort-up,
table.data th[aria-sort="descending"] .col-sort-down { opacity: 1; color: var(--ink); }
table.data th .col-filter-wrap { margin-top: 4px; }
table.data th .col-filter {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
}
.col-suggest {
  position: fixed;
  z-index: 80;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-height: 240px;
  overflow: auto;
}
.col-suggest li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 10px;
  cursor: pointer;
}
.col-suggest li.on,
.col-suggest li:hover { background: #eef4fb; }
.col-suggest-main { font-weight: 600; color: var(--ink); }
.col-suggest-extra { font-size: 12px; color: var(--muted); }
.list-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  margin: 0 0 8px;
}
.list-tools label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}
.list-tools input[type="date"] {
  font: inherit;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
.list-tools-note {
  font-size: 12px;
  color: var(--muted);
  align-self: center;
  max-width: 320px;
  line-height: 1.3;
}
.list-export-menu {
  position: relative;
  display: inline-block;
}
.list-export-menu > summary {
  list-style: none;
  cursor: pointer;
}
.list-export-menu > summary::-webkit-details-marker { display: none; }
.list-export-actions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.list-export-actions .btn {
  width: 100%;
  text-align: left;
}
table.data tr.col-filtered-out { display: none; }
table.data tr.list-filter-empty td { color: var(--muted); font-style: italic; }
.access-sheet { overflow: auto; max-height: calc(100vh - 240px); }
.access-sheet table.data { min-width: 1680px; }
.access-sheet thead th { position: sticky; top: 0; z-index: 1; }
.access-sheet th a { color: inherit; text-decoration: none; }
.point-note td { background: #f7f9fc; }
.point-note .input { max-width: 720px; }
.entry-block { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.entry-block h3 { margin: 0 0 10px; font-size: 16px; }
.edit-lock-warn,
.edit-lock-mine {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #e0b44a;
  background: #fff8e8;
  color: #7a4a00;
  line-height: 1.45;
}
.edit-lock-mine {
  border-color: #8ab4d9;
  background: #eef6fc;
  color: #1a4a6e;
}
.share-warn { margin: 0 0 16px; padding: 10px 12px; border: 1px solid #e0b44a; background: #fff8e8; }
.share-warn p { margin: 0 0 8px; }
.share-warn summary { cursor: pointer; }
.place-warn-row { margin-top: 12px; line-height: 1.5; }
.place-warn-row details { display: inline-block; vertical-align: middle; }
.place-warn-row summary.btn,
.place-warn-row summary.btn.ghost {
  display: inline-block;
  color: #b42318 !important;
  background: #fdeeee !important;
  border: 1px solid #e8a0a0 !important;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.place-warn-row summary.btn::-webkit-details-marker { display: none; }
.place-warn-row details[open] summary.btn { margin-bottom: 8px; }
.place-warn-row details ul { margin: 8px 0 0; padding-left: 1.2rem; }
.place-warn-row details li { margin: 4px 0; }
.place-warn-card {
  border-color: #b42318 !important;
  background: #fdeeee !important;
  color: #b42318;
}
.place-warn-card summary {
  cursor: pointer;
  font-weight: 700;
  color: #b42318;
  list-style: none;
}
.place-warn-card summary::-webkit-details-marker { display: none; }
.place-warn-card summary::before { content: "▸ "; }
.place-warn-card[open] summary::before { content: "▾ "; }
.place-warn-card summary + .picker-address { margin-top: 10px; }
.place-warn-card h3 { color: #b42318; margin-top: 0; }
.place-warn-card .picker-address { color: #8a3a32; }
.place-warn-card a { color: #8a1a12; font-weight: 600; }
.place-warn-card ul { margin: 8px 0 0; padding-left: 1.2rem; }
.place-warn-card li { margin: 4px 0; }
.assemble-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 960px) {
  .assemble-layout { grid-template-columns: 1fr; }
}
.map-level-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.map-floor-sides {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 6px;
}
.map-floor-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.map-point-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.map-point-list li {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fb;
}
.assemble-chip-open {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
}
a.assemble-pin {
  text-decoration: none;
  color: inherit;
}
.assemble-pin-point .assemble-pin-mark {
  background: #1e4d8c;
  color: #fff;
}
.assemble-title { margin: 0 0 8px; font-size: 18px; }
.assemble-side-title { margin: 16px 0 4px; font-size: 15px; }
.assemble-master {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.assemble-master > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  align-items: start;
}
.assemble-master span { color: var(--muted); font-size: 12px; }
.assemble-master b { font-weight: 600; word-break: break-word; }
.assemble-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.assemble-head h2 { margin: 0; margin-right: auto; }
.assemble-stage {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: auto;
  min-height: 280px;
  text-align: center;
}
.assemble-plan {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  line-height: 0;
}
.assemble-under {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(70vh, 640px);
  background: #fff;
  -webkit-user-drag: none;
  user-select: none;
}
.assemble-pdf { width: 100%; height: 480px; border: 0; display: block; background: #fff; }
.assemble-blank {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  border: 1px dashed #8ea0b3;
  margin: 16px;
  border-radius: 12px;
  background: #f4f7fb;
  line-height: 1.3;
}
.assemble-blank span { font-weight: 700; color: var(--ink); }
.assemble-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.15;
  font: inherit;
  color: inherit;
}
.assemble-pin[draggable="true"] { cursor: grab; }
.assemble-pin-mark {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 2px 8px;
  font-weight: 700;
  white-space: nowrap;
}
.assemble-pin:hover .assemble-pin-mark,
.assemble-pin:focus-visible .assemble-pin-mark {
  background: var(--accent);
  color: #fff;
}
.assemble-pin-mark-stair {
  border-color: #5c6b7a;
  color: var(--ink);
  background: #eef2f6;
  font-size: 12px;
}
.assemble-pin-stair-mark:hover .assemble-pin-mark-stair,
.assemble-pin-stair-mark:focus-visible .assemble-pin-mark-stair {
  background: #5c6b7a;
  color: #fff;
  border-color: #5c6b7a;
}
.assemble-chip-stair { border-style: dashed; }
.assemble-edit-card.is-focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(30, 77, 140, 0.18);
  background: #fff;
}
.assemble-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.assemble-chip {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 56px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: grab;
  line-height: 1.25;
  text-align: left;
}
.assemble-chip.is-placed { border-color: var(--accent); background: #eef4fb; }
.assemble-chip b { display: block; font-size: 16px; }
.assemble-chip small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; }
.assemble-chip[draggable="false"] { cursor: default; opacity: .85; }
.assemble-clear { margin-top: 10px; }
.assemble-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.assemble-map-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.assemble-tree { list-style: none; margin: 8px 0 0; padding: 0; }
.assemble-tree li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.35;
}
.assemble-tree-name { font-weight: 700; margin-right: 4px; }
.assemble-edit-card {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfd;
}
.assemble-edit-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.assemble-edit-sub { margin: 14px 0 6px; font-size: 14px; }
.assemble-edit-grid { margin-top: 8px; }
.assemble-edit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 8px;
}
.assemble-edit-inline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
}
.assemble-drop-form {
  display: inline-flex;
  margin: 0;
}
.inline-form { display: inline; margin: 0; }
.place-note { margin: 0 0 12px; }
.assemble-dialog {
  border: 1px solid #9aa8b8;
  border-radius: 8px;
  padding: 0;
  width: min(760px, 96vw);
  height: min(86vh, 900px);
  min-width: 420px;
  min-height: 280px;
  max-width: 98vw;
  max-height: 96vh;
  background: #e4e7ec;
  overflow: auto;
}
.assemble-dialog .sheet {
  background: #fff;
  margin: 12px;
  border-radius: 8px;
  padding: 16px;
  min-height: calc(100% - 24px);
  box-sizing: border-box;
}
.site-edit-folders { max-width: 520px; margin: 0 0 16px; }
.home-warn-folder.has-warn > button.mod-folder-tab {
  color: #b42318;
  background: #fdeeee;
  border-color: #e8a0a0;
}
.home-warn-folder.has-warn > button.mod-folder-tab.late { color: #fff; background: var(--bad); border-color: var(--bad); }
.home-warn-count {
  display: inline-block;
  min-width: 1.4em;
  padding: 0 6px;
  border-radius: 999px;
  background: #fdeeee;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
button.mod-folder-tab.late .home-warn-count { background: rgba(255,255,255,.25); color: #fff; }
.home-warn-group { margin: 0 0 12px; }
.home-warn-group h3 { margin: 0 0 6px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.home-warn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.home-warn-list a {
  display: block;
  padding: 8px 10px;
  border: 1px solid #e8a0a0;
  background: #fff7f7;
  color: #8a1a12;
  text-decoration: none;
  border-radius: 4px;
}
.home-warn-list a:hover { border-color: #b42318; background: #fdeeee; }
.share-mark { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid #e0b44a; background: #fff8e8; font-size: 12px; }
.share-panel { margin: 0 0 16px; }
.partner-note { display: none; margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--line); background: #f4f7fb; }
.partner-note p { margin: 0 0 8px; }
.partner-note p:last-child { margin-bottom: 0; }
.profile-photo-field .profile-photo-preview img,
.profile-photo-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.profile-photo-field .profile-photo-preview img {
  width: 96px;
  height: 96px;
}
.profile-photo-field .inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}
.profile-photo-cell {
  width: 56px;
}
.user-form.show-partner .partner-note { display: block; }
.user-form .partner-only { display: none; }
.user-form.show-partner .partner-only { display: block; }
.user-form.show-partner .partner-company { display: none; }
.user-form.show-partner.show-company .partner-company { display: block; }
.user-form .technician-only { display: none; }
.user-form.show-technician .technician-only { display: block; grid-column: 1 / -1; }
.user-form .operator-only { display: none; }
.user-form.show-operator .operator-only { display: block; grid-column: 1 / -1; }
.user-form .end-user-only { display: none; }
.user-form.show-end .end-user-only { display: block; grid-column: 1 / -1; }
.dedicate-sheet { overflow: auto; max-height: 420px; margin: 8px 0 18px; border: 1px solid var(--line); }
.dedicate-sheet thead th { position: sticky; top: 0; z-index: 1; }
.mail-picks { display: flex; flex-direction: column; gap: 4px; }
.mail-pick { display: flex; gap: 8px; align-items: center; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
}
.tabs a.active {
  background: #fff;
  color: var(--bad);
  border: 3px solid var(--bad);
  font-weight: 700;
  text-decoration: none;
}
.form-sheet {
  border: 1px solid #8f8f8f;
  background: #ececec;
  box-shadow: inset 0 0 0 1px #f5f5f5;
  max-width: 920px;
}
.form-sheet-head {
  padding: 8px 12px;
  background: linear-gradient(#f7f7f7, #e9e9e9);
  border-bottom: 1px solid #b5b5b5;
}
.form-sheet-head h2 { margin: 0; font-size: 16px; }
.form-sheet-body { padding: 12px; background: #fff; }
.form-sheet-popup { max-width: none; border: 0; box-shadow: none; background: transparent; }
.form-sheet-popup .form-sheet-body { border: 1px solid #c8c8c8; }
.level-module-board { display: flex; flex-direction: column; gap: 10px; }
.level-module-folder {
  border: 1px solid #c8c8c8;
  background: #f7f9fc;
  padding: 8px 10px;
}
.level-module-folder h3 { margin: 0 0 2px; font-size: 13px; }
.level-module-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 6px;
}
.level-module-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #b8c4d4;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
}
.form-grid { display: grid; grid-template-columns: 180px 1fr; gap: 10px 12px; max-width: 760px; align-items: start; }
.address-chain { margin: 8px 0 16px; }
.form-grid > .address-slot { grid-column: 1 / -1; }
.form-grid label { padding-top: 8px; color: var(--muted); }
.form-grid .input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.form-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
body.popup .form-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 16px -4px 0;
  padding: 10px 4px;
  background: #e4e7ec;
  border-top: 1px solid var(--line);
}
.messages { list-style: none; padding: 0; }
.messages li { padding: 8px 12px; border-radius: 4px; background: #e7f6ee; margin-bottom: 8px; }
.messages li.error, .messages li.warning { background: #fdeeee; color: var(--bad); }
.errorlist { list-style: none; margin: 2px 0 0; padding: 0; color: var(--bad); }
.errorlist li { color: var(--bad); font-size: 12px; }
.status { padding: 2px 8px; border-radius: 99px; font-size: 12px; background: #e8eef8; }
.status.elkeszult { background: #dcfce7; }
.status.lezart { background: #e5e7eb; }
.status.kifizetetlen, .status.fuggo { background: #fef3c7; }
.status.ervenytelen { background: #fee2e2; }
.split { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.print-sheet { max-width: 800px; margin: 24px auto; background: #fff; padding: 32px; }
@media print {
  .no-print, table.data th .col-filter-wrap, table.data tr.list-filter-empty, .col-suggest { display: none !important; }
  table.data th .col-sort { cursor: default; }
  table.data th .col-sort-icons { display: none; }
  body { background: #fff; }
}
.login-box {
  max-width: 420px;
  width: calc(100% - 24px);
  margin: 48px auto 24px;
  box-sizing: border-box;
  overflow: visible;
}
.login-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  max-width: 100%;
}
.login-stack > label {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
}
.login-stack > .input,
.login-stack > input {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
  font-size: 16px;
}
.login-stack > .btn {
  width: 100%;
  margin-top: 14px;
  min-height: 44px;
}
.login-extra { margin-top: 16px; }
.ask-box { margin-top: 12px; padding: 12px; border: 1px solid #e0b44a; border-radius: 8px; background: #fff8e8; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ask-box[hidden] { display: none; }
.ask-box p { margin: 0; }
.picker-anchor { position: relative; z-index: 1; }
.picker-anchor:focus-within { z-index: 8; }
.picker-row { display: flex; gap: 6px; align-items: center; }
.picker-row .picker-text { flex: 1; }
.picker-list {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(16, 32, 56, .12);
  max-height: 240px;
  overflow: auto;
}
.picker-item, .picker-empty {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.picker-empty { cursor: default; color: var(--muted); }
.picker-item:hover, .picker-item.active { background: #e8eef8; }
.picker-address { margin: 6px 0 0; color: var(--muted); min-height: 1.2em; }
.doc {
  max-width: 980px;
  margin: 0 auto 16px;
  color: #000;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 14px;
}
.a4 {
  width: 210mm;
  min-height: 297mm;
  margin: 12px auto 24px;
  background: #fff;
  color: #000;
  padding: 12mm;
  box-sizing: border-box;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
}
.a4 .doc, .a4 .sheet-author { max-width: none; width: auto; margin: 0; }
.a4 .doc-grid th, .a4 .doc-grid td { white-space: normal; }
.wl-title { margin: 0 0 12px; font-size: 22px; font-weight: 700; }
.wl { width: 100%; border-collapse: collapse; background: #fff; }
.wl td { width: 50%; border: 1px solid #000; vertical-align: top; padding: 8px 12px; }
.wl p { margin: 0 0 2px; line-height: 1.4; }
.wl-h { font-weight: 700; margin-bottom: 8px; }
.wl-name { font-weight: 700; }
.wl-gap { margin-top: 10px; }
.wl-sec { margin: 16px 0 6px; font-size: 15px; }
.wl-total { margin: 12px 0 0; font-weight: 700; }
.doc-grid { width: 100%; border-collapse: collapse; background: #fff; }
.doc-grid th, .doc-grid td { border: 1px solid #000; padding: 4px 6px; text-align: left; font-size: 12px; font-weight: 400; background: #fff; }
.doc-grid th { font-weight: 700; }
.doc-grid td.num, .doc-grid th.num { text-align: right; white-space: nowrap; }
.doc-grid td.mid { text-align: center; width: 36px; }
.doc-grid tr.doc-sum td { font-weight: 700; }
.sheet-author { max-width: 980px; margin: 28px auto 16px; line-height: 1.45; }
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  .doc, .sheet-author { max-width: none; }
  body, .wrap { background: #fff; }
  .wrap { padding: 0; }
  .a4 { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
  header.topbar, .no-print { display: none !important; }
}
.picker-clear { min-width: 36px; padding-left: 0; padding-right: 0; }
.home-split {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.home-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.home-left.folder-board-kinds,
.home-right.folder-board-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.home-right { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.home-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mod-folder[data-folder="allapot"] { max-width: 520px; }
.mod-folder[data-folder="allapot"] .mod-folder-inner { padding: 8px 10px; }
.mod-folder[data-folder="allapot"] .mod-folder-hint { margin-bottom: 6px; }
.mod-folder[data-folder="allapot"] .tile-board {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.mod-folder[data-folder="allapot"] .tile { min-height: 0; padding: 8px 10px; gap: 2px; }
.mod-folder[data-folder="allapot"] .tile-link { font-size: 13px; }
.mod-folder[data-folder="allapot"] .tile-link b { font-size: 18px; margin-top: 2px; }
.mod-folder[data-folder="allapot"] .home-kpis { gap: 8px; }
.mod-folder[data-folder="allapot"] .kpi { padding: 8px 10px; min-width: 0; }
.mod-folder[data-folder="allapot"] .kpi b { font-size: 18px; }
a.card.kpi { display: block; color: inherit; text-decoration: none; }
a.card.kpi:hover { border-color: var(--accent); text-decoration: none; }
.mod-folder-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.mod-folder-tools span, .pick-note { color: var(--muted); font-size: 12px; line-height: 1.35; }
.mod-pick form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 0; }
.mod-pick.on > a { border-color: var(--accent); }
.home-scroll { overflow-x: auto; }
@media (max-width: 900px) {
  .home-split { grid-template-columns: 1fr; }
  .home-kpis { grid-template-columns: 1fr; }
}
.folder-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px 14px;
  margin: 0 0 20px;
  align-items: stretch;
}
/* Vezérelt pont fajták: nyitva = teljes szélesség, többi összehúzva */
.folder-board-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.folder-board-kinds .mod-folder {
  flex: 1 1 200px;
  max-width: 100%;
  transition: flex-basis .18s ease, max-width .18s ease, border-color .15s ease;
}
.folder-board-kinds .mod-folder:not(.is-open) {
  flex: 0 1 auto;
  min-width: 0;
}
.folder-board-kinds .mod-folder:not(.is-open) > button.mod-folder-tab {
  white-space: nowrap;
}
.folder-board-kinds .mod-folder.is-open {
  flex: 1 0 100%;
  width: 100%;
  max-width: 100%;
}
.point-kind-notes {
  margin: 0 0 10px;
  padding: 8px 10px;
}
.point-kind-notes strong { display: block; margin-bottom: 4px; font-size: 12px; color: #445066; }
.point-kind-notes p { margin: 0; white-space: pre-wrap; font-size: 13px; line-height: 1.4; }
.point-kind-global {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #c8c8c8;
  background: #f7f9fc;
  border-radius: 6px;
}
.point-kind-global-sum { margin: 0 0 8px; font-size: 13px; }
.point-kind-global-kinds {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.point-kind-global-kinds li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #b8c4d4;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
}
.point-kind-global-kinds b {
  min-width: 1.4em;
  text-align: center;
  color: #1a4f8c;
}
.point-kind-usage-title { margin: 0 0 6px; font-size: 14px; }
.point-kind-usage { margin: 0 0 10px; }
.point-kind-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.point-kind-jump label { font-size: 12px; color: #445066; }
.point-kind-jump select { min-width: 240px; max-width: 100%; }
.point-kind-sites { margin: 0 0 10px; padding: 8px 10px; }
.point-kind-sites strong { display: block; margin-bottom: 6px; font-size: 12px; color: #445066; }
.point-kind-sites ul { list-style: none; margin: 0; padding: 0; }
.point-kind-sites li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #e4e4e4;
  font-size: 13px;
}
.point-kind-sites li:last-child { border-bottom: 0; }
.folder-count.use { background: #e8f1fa; color: #1a4f8c; }
.mod-folder {
  margin: 0;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
button.mod-folder-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 4px 8px;
  background: #f3f6fb;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
button.mod-folder-tab::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--accent);
}
.mod-folder.is-open { border: 3px solid var(--accent); }
.mod-folder.is-open > button.mod-folder-tab {
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}
.mod-folder.is-open > button.mod-folder-tab.late { color: #fff; }
.mod-folder.is-open > button.mod-folder-tab::before {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent);
  border-bottom: 0;
}
.mod-folder.is-open.has-warn { border-color: var(--bad); }
.mod-folder.is-open.has-warn > button.mod-folder-tab { color: var(--bad); }
.mod-folder.is-open.has-warn > button.mod-folder-tab.late { color: #fff; }
.mod-folder.is-open.has-warn > button.mod-folder-tab::before { border-top-color: var(--bad); }
.mod-folder:not(.is-open) > .mod-folder-inner { display: none; }
button.mod-folder-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mod-folder-inner { padding: 12px; }
.mod-folder-hint { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.mod-folder-body { display: flex; flex-direction: column; gap: 6px; }
.mod-folder-body a {
  display: block;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #eef3f9;
  color: var(--ink);
  text-decoration: none;
}
.mod-folder-body a b { display: block; font-weight: 600; }
.mod-folder-body a span, .tile-link span, .kpi small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}
.mod-folder-body a:hover { border-color: var(--accent); text-decoration: none; }
.mod-folder-body a:hover b { color: var(--accent); }
.kpi small { margin: 2px 0 4px; }
.home-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; flex-wrap: wrap; }
.home-head h2 { margin: 0; font-size: 18px; }
.tile-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 0;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.tile.on { border: 3px solid var(--bad); background: #fff; }
.tile.on .tile-link, .tile.on .tile-link b { color: var(--bad); }
.tile.late { background: #fdeeee; border-color: var(--bad); }
.tile.on.late { border: 3px solid var(--bad); background: #fff; }
.tile.late .tile-link, .tile.late .tile-link b { color: var(--bad); }
tr.late td { background: #fdeeee; color: var(--bad); }
tr.is-unread td { background: #f7fafc; font-weight: 600; }
.tile-link { display: block; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.tile-link:hover { color: var(--accent); text-decoration: none; }
.tile.on .tile-link:hover, .tile.on .tile-link:hover b { color: var(--bad); }
.tile-link b { display: block; font-size: 16px; margin-top: 2px; }
.folder-board {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.folder-tile {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 3px 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 1px 1px rgba(0,0,0,.03);
}
.folder-tile:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.folder-tile.on { border: 3px solid var(--bad); background: #fff; color: var(--bad); }
.folder-ico { font-size: 20px; line-height: 1; }
.folder-name { white-space: nowrap; }
.folder-count {
  margin-left: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.folder-tile.on .folder-count { background: #dceaff; color: var(--accent); }
.folder-month .folder-ico { font-size: 18px; }
.folder-board-slim {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.folder-board-slim .folder-tile {
  padding: 4px 8px;
  font-size: 12px;
  box-shadow: none;
}
.folder-board-slim .folder-count {
  font-size: 11px;
  padding: 0 5px;
}
.hint { color: var(--muted); margin: 0 0 16px; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; flex-wrap: wrap; }
.steps li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fb; color: var(--muted); }
.steps li.on { border-color: var(--accent); background: #fff; color: var(--ink); font-weight: 600; }
.steps li.done { color: var(--ok); border-color: #b7d7c6; }
.tech-counts { display: grid; grid-template-columns: 1fr; gap: 8px; align-content: start; }
.site-beside { display: grid; grid-template-columns: minmax(0, 760px) 168px; gap: 16px; align-items: start; }
@media (max-width: 800px) { .site-beside { grid-template-columns: 1fr; } }
.tech-count { display: block; background: #f7f9fb; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--ink); text-decoration: none; }
.tech-count b { display: block; font-size: 22px; }
form[data-locked] .picker-address { display: none; }
.tech-count:hover { border-color: var(--accent); text-decoration: none; }
#tech-customers { cursor: pointer; }
.tech-ports { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr); gap: 12px; align-items: start; }
.port-row { cursor: pointer; }
.port-row.on td { background: #e8eef8; }
#port-customer { margin: 0; }
@media (max-width: 720px) { .tech-ports { grid-template-columns: 1fr; } }
.window-choice { display: flex; gap: 12px; align-items: center; margin: 12px 0 4px; }
.window-choice .input { min-width: 240px; }
.window-block { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.window-setup { display: grid; grid-template-columns: minmax(260px, 440px) minmax(280px, 1fr); gap: 16px; align-items: start; }
.window-preview { background: #e7ebf0; border: 1px solid #8ea0b3; border-radius: 8px; padding: 12px; }
.window-preview h4 { margin: 0 0 8px; }
.pv-field { display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: center; background: #fff; border-radius: 4px; padding: 6px 8px; margin-bottom: 6px; }
.pv-sort .pv-field { cursor: grab; }
.pv-sort .pv-field.dragging { opacity: 0.45; }
.pv-fixed { color: #667085; font-size: 13px; }
.window-add { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.window-add .input { flex: 1; }
.window-custom p { margin: 8px 0 0; }
.window-extras { display: grid; gap: 8px; margin: 12px 0; }
.window-extras .quote-field { display: grid; grid-template-columns: 140px 1fr; gap: 8px; align-items: center; }
.item-picture { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; }
.item-picture img, .item-extra-bits img { height: 56px; width: auto; border: 1px solid var(--line); border-radius: 4px; vertical-align: middle; }
.item-extra-bits { margin-top: 4px; }
.item-extra-bits p { margin: 2px 0; white-space: pre-wrap; }
@media (max-width: 800px) { .window-setup { grid-template-columns: 1fr; } }

/* —— Mobil / keskeny képernyő (app előtt a webes használathoz) —— */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 12px; }
  .topbar-main {
    padding: 8px 10px;
    gap: 8px;
  }
  .brand small { display: none; }
  .kezelosav { display: none; }
  .nav-menu {
    display: block;
    position: relative;
  }
  .nav-menu:not([open]) .mods { display: none; }
  .nav-menu[open] .mods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 50;
    min-width: min(280px, 92vw);
    max-height: 70vh;
    overflow: auto;
    padding: 8px;
    background: var(--nav-bar2, #163a6b);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
  }
  .nav-menu[open] .mods a {
    padding: 10px 12px;
    border-radius: 6px;
  }
  .nav-menu[open] .nav-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-right: 0;
    padding-right: 0;
    gap: 2px;
  }
  .nav-menu[open] .nav-group-label {
    display: block;
    padding: 6px 8px 2px;
    opacity: .7;
  }
  .nav-menu[open] .nav-flyout {
    display: block;
    width: 100%;
    border-left: 3px solid var(--nav-group, #5c5f78);
    background: var(--nav-field-bg, #f0f4f8);
    color: var(--nav-field-text, #1a2433);
  }
  .nav-menu[open] .nav-flyout > summary {
    padding: 10px 12px;
    border-radius: 6px;
  }
  .nav-menu[open] .nav-flyout-panel {
    position: static;
    box-shadow: none;
    background: color-mix(in srgb, var(--nav-group, #5c5f78) 10%, var(--nav-field-bg, #f0f4f8));
    border: 0;
    margin-top: 4px;
  }
  .nav-menu[open] .nav-flyout-panel a {
    color: var(--nav-field-text, #1a2433) !important;
  }
  .nav-menu[open] .nav-flyout-panel a:hover,
  .nav-menu[open] .nav-flyout-panel a.active {
    background: color-mix(in srgb, var(--nav-group, #5c5f78) 18%, var(--nav-field-bg, #f0f4f8)) !important;
    color: var(--nav-field-text, #1a2433) !important;
  }
  .user {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .user-label {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 4px 0;
  }
  .form-grid > label { padding-top: 10px; }
  .form-grid .input,
  .form-grid select,
  .form-grid textarea,
  .input, select.input, textarea.input {
    width: 100%;
    max-width: 100%;
    font-size: 16px; /* iOS zoom elkerülés */
  }
  .btn, .mods a, .chip {
    padding: 10px 14px;
    min-height: 40px;
  }
  .tabs a, .item-tab, .folder-tile {
    padding: 4px 8px;
    min-height: 0;
    font-size: 12px;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .site-bar { grid-template-columns: 1fr; }
  .site-manage { padding-left: 0; border-left: 0; padding-top: 8px; border-top: 1px solid var(--line); }
  .site-search .input { width: 100%; }
  .site-name-pick { width: 100%; }
  .site-name-pick .input { width: auto; flex: 1; }
  .toolbar .input { width: 100%; max-width: none; }
  .sheet-search { width: 100%; }
  .sheet-search .input { max-width: none; }
  .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card.login-box { overflow: visible; }
  table.data {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tile-board {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .folder-board {
    grid-template-columns: 1fr;
  }
  .login-box {
    max-width: none;
    width: calc(100% - 8px);
    margin: 12px auto;
  }
  .quote-field { grid-template-columns: 1fr; }
  .quote-field label { text-align: left; }
  .home-kpis { grid-template-columns: 1fr; }
  .picker-row { flex-wrap: wrap; }
  .row-actions { flex-direction: column; align-items: stretch; }
  .row-actions .btn { width: 100%; text-align: center; }
  .quick-menu-panel {
    left: auto;
    right: 0;
    min-width: min(220px, 90vw);
  }
}
@media (max-width: 420px) {
  .tile-board { grid-template-columns: 1fr; }
}
