/* Ügyfélportál – operátori felület a Hubban (Rendelések állapota, Raktár kiosztás, …).
   A portál stílusaiból átvéve, „po-” előtaggal, hogy ne ütközzön a Hub saját osztályaival. */

.po-page { display: grid; gap: 12px; }
.po-icon { width: 16px; height: 16px; flex: none; }
.po-icon-button { display: inline-grid; width: 32px; height: 32px; flex: none; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--blue-deep); cursor: pointer; font: inherit; font-size: 18px; line-height: 1; }
.po-icon-button:hover { border-color: var(--blue); background: var(--blue-soft); }
.po-spacer { flex: 1; }
.po-count { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.po-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--blue-soft); color: var(--ink); font-size: 12.5px; }
.po-note .po-icon { margin-top: 1px; color: var(--blue-dark); }
.badge.po-blue { background: var(--blue-soft); color: var(--blue-deep); }
.po-badge-icon { display: inline-flex; align-items: center; gap: 3px; }
.po-badge-icon .po-icon { width: 11px; height: 11px; }

/* --- Heti napválasztó --------------------------------------------------------- */
.po-week { display: flex; align-items: center; gap: 12px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.po-week-nav { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.po-week-nav strong { min-width: 120px; font-size: 13px; text-align: center; }
.po-week-days { display: grid; flex: 1; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.po-week-day { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 5px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; font: inherit; }
.po-week-day span { color: var(--muted); font-size: 10.5px; font-weight: 800; }
.po-week-day b { font-size: 14px; font-variant-numeric: tabular-nums; }
.po-week-day small { position: absolute; top: -6px; right: -4px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue-deep); color: #fff; font-size: 10px; font-weight: 800; line-height: 17px; }
.po-week-day.today { border-color: var(--blue); }
.po-week-day.selected { border-color: var(--blue-deep); background: var(--blue-deep); color: #fff; }
.po-week-day.selected span { color: rgba(255, 255, 255, .8); }
.po-week-day.selected small { background: #fff; color: var(--blue-deep); }
.po-week-tools { display: flex; align-items: center; gap: 8px; }
.po-week-picker { position: relative; display: inline-grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--blue-deep); cursor: pointer; }
.po-week-picker input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }

/* --- Statisztika, eszköztár, fülek, kereső ----------------------------------------- */
.po-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.po-stat { display: grid; gap: 1px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.po-stat span { color: var(--muted); font-size: 11px; font-weight: 700; }
.po-stat b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.po-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* Áttekintés és Szennyes-ellenőrzés: a számkártya egy sor (felirat balra, szám jobbra). */
.pc-stats .po-stat, .pp-stats .po-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pc-stats .po-stat span, .pp-stats .po-stat span { white-space: nowrap; }
.po-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.po-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; }
.po-tabs button b { color: var(--ink); }
.po-tabs button.active { background: var(--blue-deep); color: #fff; }
.po-tabs button.active b { color: #fff; }
.po-search { position: relative; display: flex; min-width: 220px; max-width: 420px; flex: 1 1 260px; align-items: center; }
.po-search .po-icon { position: absolute; left: 10px; color: var(--muted); }
.po-search input { width: 100%; min-height: 36px; padding-left: 32px; }
.po-toolbar .button .po-icon, .po-modal-foot .button .po-icon { width: 15px; height: 15px; margin-right: 2px; vertical-align: -3px; }

/* --- Ablakok --------------------------------------------------------------------- */
.po-modal { width: min(560px, calc(100vw - 30px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid #cbdde4; border-radius: 15px; color: var(--ink); box-shadow: 0 24px 75px rgba(24, 54, 66, .3); }
.po-modal.po-modal-narrow { width: min(560px, calc(100vw - 30px)); }
.po-modal::backdrop { background: rgba(13, 32, 40, .48); backdrop-filter: blur(2px); }
.po-modal form { display: flex; max-height: calc(100vh - 42px); flex-direction: column; }
.po-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.po-modal-head h2 { margin: 2px 0 0; font-size: 19px; }
.po-eyebrow { margin: 0; color: var(--blue-dark); font-size: 10.5px; font-weight: 800; letter-spacing: .6px; }
.po-modal-body { overflow: auto; padding: 16px 20px; }
.po-modal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: #fafcfc; }
.po-field { display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
.po-field textarea { width: 100%; min-height: 96px; }
.button.po-danger-ghost { border-color: #efc7c4; background: #fff; color: var(--bad); }
.button.po-danger-ghost:hover { background: var(--bad-bg); }
.po-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--blue-deep); border-radius: 50%; animation: po-spin .8s linear infinite; }
@keyframes po-spin { to { transform: rotate(360deg); } }
.po-empty-line { margin: 0; color: var(--muted); font-size: 12.5px; }
.po-empty-state { display: grid; justify-items: center; gap: 6px; padding: 24px; color: var(--muted); text-align: center; }
.po-empty-state .po-icon { width: 28px; height: 28px; }
.po-empty-state h3 { margin: 0; color: var(--ink); }
@media (max-width: 1199px) {
  .po-week { flex-wrap: wrap; }
  .po-week-tools { margin-left: auto; }
  .po-week-days { order: 3; flex: 1 1 100%; }
}

/* --- Rendelések állapota (#portal-orders) és Raktár kiosztás (#portal-packager) — a portál admin-orders.css-éből --- */

/* --- Közös: oszlopszínek, típuscímkék, frissítés ---------------------------- */
.ao-col-todo, .ao-colnav-todo { --ao-accent: #c4574c; --ao-tint: #fdf5f4; }
.ao-col-packing, .ao-colnav-packing { --ao-accent: #c08417; --ao-tint: #fdf8ec; }
.ao-col-done, .ao-colnav-done { --ao-accent: var(--good); --ao-tint: #f0f8f3; }
.ao-col-cancelled, .ao-colnav-cancelled { --ao-accent: #8a979e; --ao-tint: #f3f5f6; }

.ao-type { display: inline-flex; align-items: center; min-height: 20px; padding: 1px 8px; border-radius: 10px; font-size: 9.5px; font-weight: 800; letter-spacing: .2px; white-space: nowrap; }
.ao-type.textile { background: #e4f0f6; color: #24607a; }
.ao-type.comfort { background: #fbf0db; color: #85560f; }
.ao-type.mixed { background: #eee9f8; color: #5a4888; }
.ao-type.empty { background: #edf1f3; color: #697a82; }

.ao-refresh { width: 32px; height: 32px; }
.ao-refresh .po-icon { width: 16px; height: 16px; transition: transform .45s ease; }
.ao-refresh:hover .po-icon { transform: rotate(140deg); }
.ao-board.is-loading, .pk-board.is-loading { opacity: .55; pointer-events: none; transition: opacity .2s ease; }

.ao-animate .ao-card, .pk-animate .pk-card { animation: ao-card-in .32s cubic-bezier(.22, .8, .35, 1) both; animation-delay: calc(var(--ao-i, 0) * 18ms); }
@keyframes ao-card-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* --- Fejléc-statisztika ------------------------------------------------------ */
.ao-stats .po-stat, #pk-stats .po-stat { min-width: 0; align-items: center; }
.ao-stats .po-stat span, #pk-stats .po-stat span { min-width: 0; line-height: 1.25; }
.ao-stats .po-stat b small { margin-right: 2px; color: var(--muted); font-size: 10.5px; font-weight: 700; }
.ao-stat-progress { position: relative; overflow: hidden; }
.ao-stat-progress::before, .ao-stat-progress::after { position: absolute; bottom: 0; left: 0; height: 3px; content: ""; }
.ao-stat-progress::before { right: 0; background: #edf2f4; }
.ao-stat-progress::after { width: var(--ao-progress, 0%); border-radius: 0 3px 3px 0; background: linear-gradient(90deg, var(--blue), var(--good)); transition: width .6s cubic-bezier(.22, .8, .35, 1); }

/* --- Eszköztár --------------------------------------------------------------- */
.ao-toolbar .po-tabs { flex: 0 1 auto; }
.ao-tabs button { padding: 7px 12px; font-size: 12px; }
.ao-tab-short { display: none; }

/* --- Kanban ------------------------------------------------------------------ */
.ao-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }
.ao-col { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--ao-tint); }
.ao-col-head { position: sticky; z-index: 3; top: 0; padding: 10px 12px 9px; border-bottom: 1px solid var(--line); border-radius: 11px 11px 0 0; background: rgba(255, 255, 255, .96); box-shadow: inset 0 3px 0 var(--ao-accent); backdrop-filter: blur(8px); }
.ao-col-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ao-col-title h3 { margin: 0; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ao-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ao-accent); }
.ao-col-count { min-width: 26px; margin-left: auto; padding: 1px 8px; border-radius: 10px; background: var(--ao-tint); color: var(--ao-accent); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
.ao-col-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ao-col-tools select { width: auto; min-width: 0; min-height: 30px; flex: 1 1 140px; padding: 4px 8px; font-size: 11.5px; }
.ao-col-body { display: grid; gap: 7px; padding: 8px; }
.ao-col-empty { margin: 0; padding: 18px 8px; color: var(--muted); font-size: 11.5px; text-align: center; }

.ao-card { position: relative; display: grid; gap: 2px; min-width: 0; padding: 9px 10px 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(39, 74, 89, .04); cursor: pointer; outline: none; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.ao-card::before { position: absolute; top: 9px; bottom: 9px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--ao-accent); content: ""; opacity: .8; }
.ao-card:hover { border-color: #cbdfe6; box-shadow: 0 10px 22px -14px rgba(39, 74, 89, .4); transform: translateY(-1px); }
.ao-card:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(98, 165, 192, .25); }
.ao-card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.ao-num { overflow: hidden; color: var(--blue-deep); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.ao-card-badges { display: flex; flex: none; gap: 4px; }
.ao-card .badge { min-height: 19px; padding: 1px 7px; font-size: 9.5px; }
.ao-tenant { overflow: hidden; color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .2px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.ao-apt { display: grid; min-width: 0; }
.ao-apt span, .ao-apt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ao-apt span { color: var(--ink); font-size: 12.5px; font-weight: 700; }
.ao-apt small { color: var(--muted); font-size: 10.5px; }
.ao-meta { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 3px; color: #56666e; font-size: 11px; font-weight: 650; }
.ao-meta span { display: inline-flex; min-width: 0; align-items: center; gap: 4px; }
.ao-meta svg, .ao-timing svg { width: 13px; height: 13px; flex: none; color: var(--blue-dark); }
.ao-packer { color: var(--blue-deep); }
.ao-timing { display: flex; align-items: center; gap: 5px; margin-top: 5px; padding-top: 6px; border-top: 1px dashed var(--line); color: #56666e; font-size: 11px; font-variant-numeric: tabular-nums; }
.ao-timing span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ao-timing b { margin-left: auto; padding: 1px 7px; border-radius: 9px; background: var(--good-bg); color: var(--good); font-size: 10.5px; white-space: nowrap; }
.ao-col-packing .ao-timing svg { color: var(--warn); }
.ao-col-done .ao-timing svg { color: var(--good); }
.ao-col-cancelled .ao-card { background: #fbfcfc; }
.ao-col-cancelled .ao-num { color: var(--muted); text-decoration: line-through; }
.ao-col-cancelled .ao-apt span { color: var(--muted); }

.ao-colnav { display: none; }

/* --- Rendelés részletei és Összes termék ablak --------------------------------- */
.ao-modal { width: min(980px, calc(100vw - 30px)); }
.ao-modal.po-modal-narrow { width: min(680px, calc(100vw - 30px)); }
.ao-modal .po-modal-foot .po-spacer { flex: 1; }
.ao-detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ao-detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
.ao-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; margin: 0 0 16px; }
.ao-facts > div { min-width: 0; }
.ao-facts dt { color: var(--muted); font-size: 9.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.ao-facts dd { margin: 1px 0 0; font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
/* Termékek (#portal-products): cégenként bekapcsolható termékek, a szállodák webshopjával. */
.pp-toolbar { align-items: center; }
/* A jobb felső Chat fül ne takarja a számlálót (Operatív fiók). */
@media (min-width: 901px) { body:has(#runner-chat:not(.hidden)) .pp-toolbar { padding-right: 96px; } }
.pp-scope { display: flex; flex: 0 1 380px; min-width: 240px; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.pp-scope > div { flex: 1; }
.pp-table { padding: 0; overflow: hidden; }
.pp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px 240px; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.pp-row:first-child { border-top: 0; }
.pp-row.is-off .pp-name strong { color: var(--muted); }
.pp-name { display: flex; min-width: 0; align-items: center; gap: 12px; }
.pp-name > span:last-child { display: grid; min-width: 0; }
.pp-name strong { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.pp-name small { color: var(--muted); font-size: 11.5px; }
.pp-thumb { display: grid; flex: none; width: 40px; height: 40px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #f6f9fa; color: var(--muted); }
.pp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pp-thumb svg { width: 18px; height: 18px; }
.pp-badges { display: flex; gap: 6px; }
.pp-price { color: var(--muted); font-size: 12.5px; text-align: right; white-space: nowrap; }
.pp-who { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.pp-who .badge { overflow: hidden; max-width: 150px; text-overflow: ellipsis; white-space: nowrap; }
.pp-overview.is-open { background: #fbfdfe; }
.pp-companies { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; padding: 10px 0 4px 52px; }
.pp-switch { display: inline-flex; align-items: center; gap: 9px; justify-self: end; cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.pp-companies .pp-switch { justify-self: start; }
/* Termékek › Új termék: bértextília vagy áruházi termék, név, listaár, súly */
.pp-new-body { display: grid; gap: 14px; }
.pp-kinds { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.pp-kinds legend { margin-bottom: 6px; padding: 0; font-size: 13px; font-weight: 650; }
.pp-kind { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.pp-kind:has(input:checked) { border-color: var(--blue-dark); background: var(--blue-soft); }
.pp-kind input { margin-top: 3px; }
.pp-kind span { display: grid; gap: 2px; }
.pp-kind small { color: var(--muted); font-size: 12px; font-weight: 500; }
.pp-new-body input:not([type="radio"]) { width: 100%; min-height: 40px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; }
.pp-new-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pp-new-error { min-height: 1em; margin: 0; color: var(--bad); font-size: 13px; font-weight: 650; }
@media (max-width: 520px) { .pp-new-grid { grid-template-columns: 1fr; } }
.pp-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pp-track { position: relative; flex: none; width: 36px; height: 20px; border-radius: 999px; background: #cfd9de; transition: background .15s; }
.pp-track::after { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); content: ""; transition: transform .15s; }
.pp-switch.on { color: var(--blue-deep); }
.pp-switch.on .pp-track { background: var(--blue); }
.pp-switch.on .pp-track::after { transform: translateX(16px); }
.pp-switch input:focus-visible + .pp-track { outline: 2px solid var(--blue); outline-offset: 2px; }
.pp-switch.disabled { cursor: default; opacity: .55; }
.pp-switch small { color: var(--muted); font-weight: 600; }
@media (max-width: 900px) { .pp-row { grid-template-columns: minmax(0, 1fr) auto; } .pp-badges, .pp-price { display: none; } .pp-companies { padding-left: 0; } }
/* Kintlévőség kezelés (#portal-receivables). */
.rv-check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.rv-check input { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--blue-dark); }
.rv-table td { vertical-align: top; }
.rv-table tr.rv-restricted td { background: #fff7f6; }
.rv-badge { display: inline-flex; align-items: center; gap: 4px; }
.rv-badge svg { width: 12px; height: 12px; }
.rv-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.rv-files { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rv-files li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.rv-files a { display: inline-flex; min-width: 0; align-items: center; gap: 5px; color: var(--blue-dark); font-weight: 600; text-decoration: none; }
.rv-files a span { overflow: hidden; max-width: 220px; text-overflow: ellipsis; white-space: nowrap; }
.rv-files a svg { width: 14px; height: 14px; flex: none; }
.rv-files small { color: var(--muted); }
.rv-icon { display: inline-grid; width: 22px; height: 22px; padding: 0; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.rv-icon:hover { background: #fdecea; color: #b42318; }
.rv-icon svg { width: 13px; height: 13px; }
.rv-field { display: grid; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.rv-field textarea, .rv-field input[type=file] { font: inherit; font-size: 13px; }
.rv-field textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }
.rv-preview { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfe; font-size: 12.5px; }
.rv-preview summary { cursor: pointer; color: var(--blue-dark); font-weight: 700; }
.rv-preview p { margin: 8px 0 0; line-height: 1.5; }
.button.rv-danger { background: #b42318; border-color: #b42318; }
.ao-facts dd .badge { min-height: 18px; margin-left: 4px; padding: 1px 6px; font-size: 9px; vertical-align: 1px; }
/* Szállítás és átvevő módosítása a részletek ablakban (ceruza a Szállítás mellett). */
.ao-edit-pencil { display: inline-grid; width: 24px; height: 24px; margin-left: 4px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--blue-dark); vertical-align: -6px; cursor: pointer; }
.ao-edit-pencil:hover { border-color: var(--blue); background: var(--blue-soft); }
.ao-edit-pencil svg { width: 14px; height: 14px; }
.ao-delivery-edit { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--blue); border-radius: 12px; background: var(--blue-soft); }
.ao-delivery-edit legend { padding: 0 6px; color: var(--blue-deep); font-size: 12px; font-weight: 800; }
.ao-delivery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.ao-delivery-grid label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.ao-delivery-grid input, .ao-delivery-grid select { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; font-size: 13px; }
.ao-delivery-date { grid-column: 1 / -1; }
.ao-delivery-date input { max-width: 200px; }
.ao-delivery-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
@media (max-width: 760px) { .ao-delivery-grid { grid-template-columns: 1fr; } }
.ao-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 2px 0 8px; font-size: 13px; }
.ao-h small { color: var(--muted); font-size: 11px; font-weight: 650; }
.ao-items { display: grid; gap: 8px; }
.ao-items-group { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.ao-items-head { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; background: var(--blue-soft); color: var(--blue-deep); font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.ao-items-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-top: 1px solid var(--line); font-size: 12.5px; }
.ao-items-head + .ao-items-row { border-top: 0; }
.ao-items-row > span { min-width: 0; overflow-wrap: anywhere; }
.ao-items-row small { display: block; color: var(--muted); font-size: 10px; }
.ao-items-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ao-timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.ao-tl { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 0 0 12px; animation: ao-card-in .25s ease both; }
.ao-tl::before { position: absolute; top: 15px; bottom: 0; left: 8px; width: 2px; background: var(--line); content: ""; }
.ao-tl:last-child::before { display: none; }
.ao-tl-dot { z-index: 1; width: 12px; height: 12px; margin: 3px 0 0 3px; border: 2px solid var(--blue); border-radius: 50%; background: #fff; }
.ao-tl-packager .ao-tl-dot { border-color: var(--good); }
.ao-tl-operator .ao-tl-dot { border-color: var(--warn); background: var(--warn-bg); }
.ao-tl-runner .ao-tl-dot { border-color: var(--blue-deep); }
.ao-tl-migration .ao-tl-dot, .ao-tl-system .ao-tl-dot { border-color: #a5b3ba; }
.ao-tl strong { display: block; font-size: 12.5px; }
.ao-tl small { display: block; color: var(--muted); font-size: 10.5px; }
.ao-timeline-loading { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.ao-timeline-loading .po-spinner { width: 16px; height: 16px; border-width: 2px; }

.ao-sum-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.ao-sum-lead b { color: var(--blue-deep); font-size: 15px; font-variant-numeric: tabular-nums; }
.ao-sum-group { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.ao-sum-group header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--blue-soft); }
.ao-sum-group h3 { margin: 0; color: var(--blue-deep); font-size: 13px; }
.ao-sum-group header span { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.ao-sum-table th, .ao-sum-table td { padding: 7px 12px; }
.ao-sum-table th:first-child { width: 100%; }

/* --- Raktár kiosztás -------------------------------------------- */
.pk-types { display: inline-flex; gap: 4px; }
.pk-types .ao-type { min-height: 22px; font-size: 11px; }
.pk-note { margin: -2px 2px 10px; }
.pk-note span { line-height: 1.45; }
.pk-apply-count { min-width: 20px; padding: 0 6px; border-radius: 9px; background: rgba(255, 255, 255, .22); font-size: 11px; text-align: center; }
.pk-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.pk-col-DU { --pk-accent: #2f7fa1; }
.pk-col-none { --pk-accent: #7a6aa8; }
.pk-col-BP { --pk-accent: #b07a1c; }
.pk-col { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #f6f9fa; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.pk-col-head { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); border-radius: 11px 11px 0 0; background: rgba(255, 255, 255, .96); box-shadow: inset 0 3px 0 var(--pk-accent); backdrop-filter: blur(8px); }
.pk-col-icon { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--pk-accent); }
.pk-col-copy { min-width: 0; flex: 1; }
.pk-col-copy h3 { margin: 0; font-size: 13.5px; }
.pk-col-copy p { margin: 1px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.35; }
.pk-col-count { display: grid; flex: none; justify-items: end; }
.pk-col-count b { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pk-col-count small { color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.pk-col-body { display: grid; min-height: 120px; gap: 7px; padding: 8px; }
.pk-col.drop-over { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(98, 165, 192, .2); }
.pk-board.is-dragging .pk-col:not(.drop-over) .pk-col-body { border-radius: 10px; outline: 2px dashed #cddfe6; outline-offset: -5px; }
.pk-empty { display: grid; place-items: center; gap: 6px; margin: 0; padding: 22px 8px; border: 1.5px dashed #d3e1e7; border-radius: 10px; color: var(--muted); font-size: 11.5px; text-align: center; }
.pk-empty svg { width: 22px; height: 22px; opacity: .55; }

.pk-card { position: relative; display: grid; gap: 5px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(39, 74, 89, .04); cursor: grab; outline: none; transition: border-color .16s ease, box-shadow .16s ease, opacity .16s ease, transform .16s ease; user-select: none; }
.pk-card:hover { border-color: #cbdfe6; box-shadow: 0 10px 22px -14px rgba(39, 74, 89, .4); }
.pk-card:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(98, 165, 192, .25); }
.pk-card:active { cursor: grabbing; }
.pk-card.is-dragging { opacity: .4; transform: scale(.98); }
.pk-card.is-locked { background: #fafbfc; cursor: pointer; }
.pk-card.is-locked .pk-card-head strong { color: var(--muted); }
.pk-card.is-saving { opacity: .75; }
.pk-card.is-saving::after { position: absolute; top: -1px; right: 10px; left: 10px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); background-size: 200% 100%; animation: pk-saving 1s linear infinite; content: ""; }
.pk-card.is-arrived { animation: pk-arrive .6s ease; }
@keyframes pk-saving { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes pk-arrive { 0% { box-shadow: 0 0 0 0 rgba(98, 165, 192, .55); transform: scale(.98); } 60% { box-shadow: 0 0 0 7px rgba(98, 165, 192, 0); transform: none; } 100% { box-shadow: 0 1px 2px rgba(39, 74, 89, .04); } }
.pk-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.pk-card-head strong { overflow: hidden; color: var(--blue-deep); font-size: 12.5px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.pk-card-body { display: grid; min-width: 0; }
.pk-card-body > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-card-body .pk-tenant { color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .2px; text-transform: uppercase; }
.pk-apt { color: var(--ink); font-size: 12.5px; font-weight: 700; }
.pk-card-body small { color: var(--muted); font-size: 10.5px; }
.pk-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.pk-qty { display: inline-flex; align-items: center; gap: 4px; color: #56666e; font-size: 11px; font-weight: 650; white-space: nowrap; }
.pk-qty svg { width: 13px; height: 13px; color: var(--blue-dark); }
.pk-card .badge { gap: 3px; min-height: 20px; font-size: 9.5px; }
.pk-card .badge svg { width: 11px; height: 11px; }
.pk-moves { display: inline-flex; gap: 4px; margin-left: auto; }
.pk-move { display: inline-grid; min-width: 32px; height: 28px; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--blue-deep); cursor: pointer; font: inherit; font-size: 10.5px; font-weight: 800; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.pk-move:hover { border-color: var(--blue); background: var(--blue-soft); }
.pk-move:active { transform: scale(.96); }
.pk-move svg { width: 13px; height: 13px; }
.pk-unassign { padding: 0 6px; color: var(--muted); }
.pk-suggest { display: flex; width: 100%; min-height: 28px; align-items: center; gap: 6px; padding: 4px 8px; border: 1px dashed #b9d5e0; border-radius: 7px; background: #f5fafc; color: var(--blue-deep); cursor: pointer; font: inherit; font-size: 11px; font-weight: 650; text-align: left; transition: background-color .15s ease, border-color .15s ease; }
.pk-suggest:hover { border-style: solid; border-color: var(--blue); background: var(--blue-soft); }
.pk-suggest svg { width: 13px; height: 13px; flex: none; color: #d39d16; }
.pk-hint { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--warn); font-size: 10.5px; }
.pk-hint svg { width: 12px; height: 12px; flex: none; }

/* --- Reszponzív ---------------------------------------------------------------- */
@media (max-width: 1600px) {
  .ao-tab-long { display: none; }
  .ao-tab-short { display: inline; }
}
@media (max-width: 1199px) {
  .ao-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .pk-board { grid-template-columns: 1fr; }
  .pk-col-head { position: static; }
  .pk-col-body { min-height: 0; }
}
@media (max-width: 760px) {
  .ao-detail-grid, .ao-facts { grid-template-columns: 1fr; }
  .ao-toolbar .po-tabs { width: 100%; }
  .ao-toolbar .po-tabs button { flex: 1 0 auto; justify-content: center; padding: 7px 10px; }
  .ao-toolbar > .button, .pk-toolbar > .button { flex: 1 1 100%; }
  .ao-toolbar .po-spacer, .pk-toolbar .po-spacer { display: none; }
  .ao-colnav { position: sticky; z-index: 6; top: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0 0 8px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); }
  .ao-colnav button { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 10.5px; font-weight: 750; line-height: 1.2; text-align: center; transition: background-color .18s ease, color .18s ease; }
  .ao-colnav button b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
  .ao-colnav button.active { background: var(--ao-tint); box-shadow: inset 0 -2px 0 var(--ao-accent); color: var(--ink); }
  .ao-board { grid-template-columns: 1fr; }
  .ao-col-head { position: static; }
  .ao-board[data-mobile="todo"] .ao-col:not([data-col="todo"]),
  .ao-board[data-mobile="packing"] .ao-col:not([data-col="packing"]),
  .ao-board[data-mobile="done"] .ao-col:not([data-col="done"]),
  .ao-board[data-mobile="cancelled"] .ao-col:not([data-col="cancelled"]) { display: none; }
  .ao-modal .po-modal-foot > .button { flex: 1 1 auto; }
  .ao-modal .po-modal-foot .po-spacer { display: none; }
  .pk-move { min-width: 38px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .ao-animate .ao-card, .pk-animate .pk-card, .pk-card.is-arrived, .ao-tl { animation: none !important; }
  .ao-card, .pk-card, .pk-move, .ao-stat-progress::after, .ao-refresh svg { transition: none !important; }
  .ao-card:hover { transform: none; }
}

/* Hub-menü: az Ügyfélportál csoport címkéje, a teendők száma és az oldal tetején a csoport fülei. */
.nav-group-label { margin: 14px 0 4px; padding: 8px 20px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nav-count { min-width: 20px; margin-left: auto; padding: 1px 7px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.po-route-tabs { display: flex; gap: 4px; width: max-content; max-width: calc(100% - 52px); margin: 18px 26px -6px; padding: 4px; overflow-x: auto; border-radius: 10px; background: #e8f1f5; }
.po-route-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 7px; color: #5d6d75; font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.po-route-tabs a:hover { color: var(--blue-deep); }
.po-route-tabs a.active { background: #fff; color: var(--blue-deep); box-shadow: 0 1px 4px rgba(40, 71, 84, .15); }
.po-tab-count { min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center; }
@media (max-width: 760px) {
  .po-route-tabs { max-width: calc(100% - 28px); margin: 14px 14px -6px; }
}

/* Airbnb számlázás › Számlázási beállítások: ügyfelenként az ütemezés (havi / kétheti) és a számla módja; választáskor ment. */
.pbs-list { padding: 0; overflow: hidden; }
.pbs-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(190px, 1fr) minmax(220px, 1fr); align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); }
.pbs-head { border-top: 0; background: #f7f9fa; color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.pbs-customer { min-width: 0; }
.pbs-customer strong { font-size: 13.5px; }
.pbs-customer small { display: block; overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.pbs-tag { margin-left: 8px; padding: 0 6px; border-radius: 6px; background: #edf1f3; color: #697a82; font-size: 10px; font-weight: 800; vertical-align: 1px; }
.pbs-inactive .pbs-customer strong { color: var(--muted); }
.pbs-field { display: block; margin: 0; }
.pbs-field > span { display: none; }
.pbs-field select { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.pbs-field select:disabled { background: #f4f6f7; color: var(--muted); }
.pbs-empty { border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .pbs-head { display: none; }
  .pbs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; padding: 12px; }
  .pbs-customer { grid-column: 1 / -1; }
  .pbs-row:first-child { border-top: 0; }
  .pbs-field > span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 700; }
}
@media (max-width: 520px) { .pbs-row { grid-template-columns: minmax(0, 1fr); } }
