:root {
  --bg: #f6f7f9; --surface: #fff; --text: #1b2430; --muted: #6b7686; --line: #dfe3e9; --accent: #1d6fb8;
  --hk-dirty: #d92d20; --hk-cleaning: #f2994a; --hk-clean: #22b8cf; --hk-inspect: #8b95a5; --hk-verified: #2f8a52; --hk-closed: #7c4a21; --hk-need: #c2410c;
  --weekend: #fdeeee; --new: #f2b84b; --confirmed: #8250df; --paid: #2f8a52; --checked_in: #3b82c4; --checked_out: #aab3bf;
  --danger: #c0392b; --radius: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #14181d; --surface: #1c2229; --text: #e6eaf0; --muted: #94a0b0; --line: #2d3641; --weekend: #2e2226; --accent: #5aa4e6; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14181d; --surface: #1c2229; --text: #e6eaf0; --muted: #94a0b0; --line: #2d3641; --weekend: #2e2226; --accent: #5aa4e6; color-scheme: dark;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface); }
* { box-sizing: border-box; }
body { margin: 0; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); font: 14px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); }
header { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 0; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
header h1 { font-size: 16px; margin: 0; }
.demo-tag { background: var(--new); color: #000; font-size: 11px; padding: 2px 8px; border-radius: 99px; }
.controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
button.danger { color: var(--danger); }
input, select, textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 0; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.wrap { overflow: auto; max-height: calc(100vh - 150px); margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.grid { border-collapse: separate; border-spacing: 0; user-select: none; }
.grid th, .grid td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 30px; padding: 0; text-align: center; }
.grid thead th { position: sticky; top: 0; background: var(--surface); z-index: 5; font-weight: 500; font-size: 11px; min-width: 38px; height: 38px; }
.grid thead th.we, .grid td.we { background: var(--weekend); }
.grid thead th small { display: block; color: var(--muted); font-weight: 400; }
.grid .room { position: sticky; left: 0; background: var(--surface); z-index: 4; min-width: 150px; text-align: left; padding: 0 10px; font-size: 12px; border-right: 2px solid var(--line); white-space: nowrap; }
.grid thead .room { z-index: 6; }
.grid .room b { font-size: 13px; }
.grid .room span { color: var(--muted); margin-left: 6px; }
.grid tr.group td { background: var(--bg); text-align: left; font-weight: 600; padding: 4px 10px; position: sticky; left: 0; }
.grid td.cell { cursor: crosshair; min-width: 38px; }
.grid td.cell:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.grid td.sel { background: rgba(29,111,184,.3) !important; }
.grid td.bk { padding: 2px; cursor: pointer; }
.bar { height: 100%; border-radius: 5px; color: #fff; font-size: 12px; text-align: left; padding: 3px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.bar.new { background: var(--new); color: #1b2430; text-shadow: none; } .bar.confirmed { background: var(--confirmed); } .bar.paid { background: var(--paid); }
.bar.checked_in { background: var(--checked_in); } .bar.checked_out { background: var(--checked_out); color: #1b2430; text-shadow: none; }
.bar.debt::after { content: ' ₸'; font-weight: 700; }
tfoot td { position: sticky; bottom: 0; background: var(--surface); z-index: 5; font-size: 11px; color: var(--muted); height: 26px; }
tfoot .room { z-index: 6; bottom: 0; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 0; background: var(--surface); color: var(--text); width: min(560px, 94vw); max-height: 92vh; overflow: auto; }
dialog::backdrop { background: rgba(0,0,0,.45); }
.dlg { padding: 16px 18px; }
.dlg h2 { margin: 0 0 10px; font-size: 17px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.form label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }
.form label.full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; }
.quote { margin-top: 10px; padding: 10px; background: var(--bg); border-radius: var(--radius); font-size: 12px; }
.quote .total { font-size: 16px; font-weight: 700; margin-top: 4px; }
.quote .err { color: var(--danger); }
.quote ul { margin: 4px 0 0; padding-left: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.row span:first-child { color: var(--muted); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; background: var(--bg); }
table.rules { width: 100%; border-collapse: collapse; font-size: 13px; }
table.rules td, table.rules th { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.toast { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: #1b2430; color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .grid .room { min-width: 96px; } }

/* іздеу, белгілер, беттер */
.search { position: relative; }
.search input { width: 190px; }
.sres { position: absolute; right: 0; top: 100%; width: min(320px, 90vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.18); z-index: 40; max-height: 320px; overflow: auto; }
.sres div { padding: 7px 10px; cursor: pointer; font-size: 13px; border-bottom: 1px solid var(--line); }
.sres div:hover { background: var(--bg); }
.sres small { color: var(--muted); display: block; }
.tabs { display: flex; gap: 4px; margin: 0 0 10px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 6px 12px; }
.tabs button.on { border-bottom-color: var(--accent); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); font-size: 12px; cursor: pointer; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.bar .mk { font-size: 10px; opacity: .85; margin-left: 4px; }
.quote .viol { color: var(--danger); margin: 6px 0; }
.ah { font-size: 14px; margin: 14px 0 6px; display: flex; justify-content: space-between; align-items: center; }
button.sm { padding: 2px 8px; font-size: 12px; }
input.pr { width: 74px; }
.form small { color: var(--muted); }

/* Bnovo шахматкасынан: тегтер, байланысқан брондар, қарыз/баланс, ерте келу / кеш шығу */
.group small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.room .tg { display: inline-block; font-style: normal; font-size: 10px; padding: 0 5px; margin: 1px 3px 0 0; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
tr.hl td.room { background: rgba(60, 170, 200, .25); }
tr.hl td.cell { background: rgba(60, 170, 200, .1); }
.bar .due { margin-left: 6px; padding: 0 4px; border-radius: 4px; background: #c0392b; color: #fff; font-size: 11px; text-shadow: none; }
.bar .over { margin-left: 6px; padding: 0 4px; border-radius: 4px; background: #fff; color: #1e7a3f; font-size: 11px; text-shadow: none; }
.bar .lk { margin-right: 4px; cursor: pointer; }
.bar.early { border-left: 5px solid #d92d20; }
.bar.late { border-right: 5px solid #d92d20; }
td.bk.hlg .bar { outline: 2px solid var(--accent); outline-offset: -1px; }

/* Баптау: толық экранды бөлім */
dialog.full { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border: 0; border-radius: 0; margin: 0; }
dialog.full .dlg { padding: 0 max(16px, 4vw) 90px; max-width: 1320px; margin: 0 auto; }
.ahead { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 0 0; background: var(--surface); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.ahead h2 { margin: 0; font-size: 20px; }
.ahead .tabs { margin: 0; border: 0; }
.ahead #cancel { margin-left: auto; margin-bottom: 10px; }
.agrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; align-items: start; }
.asec.wide { grid-column: 1 / -1; }
@media (max-width: 960px) { .agrid { grid-template-columns: 1fr; } }
dialog.full table.rules { font-size: 14px; }
dialog.full table.rules td, dialog.full table.rules th { padding: 8px 8px; }
#af:not(:empty) { position: sticky; bottom: 0; margin-top: 14px; background: var(--surface); box-shadow: 0 -8px 24px rgba(0,0,0,.18); border-top: 1px solid var(--line); padding: 10px 0; z-index: 6; max-height: 70vh; overflow: auto; }

.form label.chk { flex-direction: row; align-items: center; gap: 8px; }
.form label.chk input { width: auto; }
input.pr { width: 96px; }
.asec.wide { order: -1; }

/* Bnovo үлгісі: ай жолы, санат жолы, демалыс қызғылт, бүгінгі сызық */
.wrap { position: relative; }
.grid thead tr.mo th { top: 0; height: 24px; font-size: 13px; font-weight: 600; text-align: left; padding-left: 10px; border-bottom: 0; }
.grid thead tr.dy th { top: 24px; }
.grid thead th.we { color: #d33; }
.grid thead th.we small { color: #d33; }
.grid .gl { cursor: pointer; }
.grid tr.group td.cnt { font-size: 10px; color: var(--muted); text-align: right; padding: 4px 4px 0; vertical-align: top; position: static; background: var(--bg); font-weight: 400; }
.grid tr.group td.cnt.we { background: var(--weekend); }
.grid tr.group td.room { background: var(--bg); }
.grid th.tdy { color: #d33; }
.todayline { position: absolute; top: 0; width: 2px; margin-left: -1px; background: #e0525e; pointer-events: none; z-index: 3; }
.seg { display: inline-flex; } .seg button { border-radius: 0; } .seg button:first-child { border-radius: 8px 0 0 8px; } .seg button:last-child { border-radius: 0 8px 8px 0; margin-left: -1px; }
.seg button.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* хабарландырулар */
.bellw { position: relative; }
#bell { position: relative; font-size: 16px; padding: 4px 10px; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 99px; background: #e0525e; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.npanel { position: absolute; right: 0; top: calc(100% + 6px); width: min(340px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2); z-index: 50; padding: 6px; }
.ni { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.ni:hover { background: var(--bg); }
.ni .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; }
.ni b { display: block; font-size: 14px; font-weight: 600; }
.ni small { color: var(--muted); font-size: 12px; }
.ni .cnt2 { margin-left: auto; font-style: normal; background: #e0525e; color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; }
.nrow { cursor: pointer; } .nrow:hover { background: var(--bg); }
.avail { display: block; color: var(--muted); margin-top: 3px; }

.splitbox{border:1px solid var(--line,#ddd);border-radius:10px;padding:10px;display:grid;gap:8px;background:var(--panel,#fafafa)}
.splitopt{display:flex;gap:8px;align-items:flex-start;padding:8px;border:1px solid var(--line,#ddd);border-radius:8px;cursor:pointer}
.splitopt:has(input:checked){border-color:#2f6fed;background:rgba(47,111,237,.08)}
#splitBox{grid-column:1/-1}

/* жолақтың шеттері, көк жолақ, hover-карточка */
.bar { position: relative; }
.rh { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; opacity: 0; background: rgba(255,255,255,.55); border-radius: 4px; }
.rh.l { left: 0; } .rh.r { right: 0; }
td.bk:hover .rh { opacity: 1; }
@media (pointer: coarse) { .rh { opacity: .6; width: 12px; } }
#band { position: fixed; z-index: 60; pointer-events: none; background: rgba(29,111,184,.18); border: 2px solid #3b82c4; border-radius: 5px; }
#band.act { pointer-events: auto; }
#band .bl, #band .br { position: absolute; bottom: -22px; background: #3b82c4; color: #fff; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
#band .bl { left: -2px; } #band .br { right: -2px; }
#band .bp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid #3b82c4; background: var(--surface); color: #3b82c4; font-size: 18px; line-height: 1; cursor: pointer; }
#hv { position: fixed; z-index: 70; pointer-events: none; width: 290px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.22); padding: 12px 14px; font-size: 13px; }
#hv .hh { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 14px; }
#hv .hs { padding: 3px 10px; border-radius: 5px; color: #fff; font-weight: 600; }
#hv .hs.new { background: var(--new); color: #1b2430; } #hv .hs.confirmed { background: var(--confirmed); } #hv .hs.paid { background: var(--paid); }
#hv .hs.checked_in { background: var(--checked_in); } #hv .hs.checked_out { background: var(--checked_out); color: #1b2430; }
#hv .hr { display: flex; gap: 10px; padding: 2px 0; } #hv .hr > span:first-child { color: var(--muted); width: 108px; flex: none; }
#hv hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
#hv .hm { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; } #hv .hm i { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); } #hv .hm i.t { border-style: dashed; }

/* кең брондау карточкасы (Bnovo үлгісі) */
dialog.wide { width: min(1080px, 96vw); }
.bhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .bhead h2 { margin: 0; flex: 1; }
.tabs .tsum { margin-left: auto; align-self: center; font-size: 12px; color: var(--muted); padding-right: 6px; }
.tsum .neg { color: var(--danger); } .tsum .pos { color: var(--paid); }
.bk2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; margin-top: 10px; align-items: start; }
@media (max-width: 800px) { .bk2 { grid-template-columns: 1fr; } }
.bsec { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.bsec h4 { margin: 0 0 8px; font-size: 14px; }
.sbtns { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 10px; } .sbtns button { border-radius: 0; margin-left: -1px; }
.sbtns button:first-child { border-radius: 6px 0 0 6px; margin: 0; } .sbtns button:last-child { border-radius: 0 6px 6px 0; }
.sbtns button.on { color: #fff; border-color: transparent; opacity: 1; } .sbtns button.on.new { background: var(--new); color: #1b2430; } .sbtns button.on.confirmed { background: var(--confirmed); }
.sbtns button.on.checked_in { background: var(--checked_in); } .sbtns button.on.checked_out { background: var(--checked_out); color: #1b2430; } .sbtns button.on.cancelled { background: var(--danger); }
.sbtns button.danger { margin-left: 8px; border-radius: 6px; }
.gline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.rowsel { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 3px 0; } .rowsel select { max-width: 60%; }
.emsg { font-size: 13px; margin: 6px 0; } .emsg .err { color: var(--danger); }
.grp { margin-top: 8px; font-size: 13px; }
.task { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; } .task small { display: block; color: var(--muted); } .task.done span { text-decoration: line-through; opacity: .6; }
#tText { width: 100%; margin: 8px 0 6px; } .trow { display: flex; gap: 6px; } .trow input { flex: 1; min-width: 0; }
@media print {
  body > *:not(dialog) { display: none !important; }
  dialog { position: static !important; width: 100% !important; max-height: none !important; border: 0 !important; box-shadow: none !important; }
  dialog button, dialog .tabs button { display: none !important; }
  .toast, #hv, #band { display: none !important; }
}
[hidden] { display: none !important; }

.fold { display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.fold .chev { font-style: normal; transition: transform .15s; } .open .fold .chev { transform: rotate(180deg); }
.occ { display: grid; grid-template-columns: 70px repeat(3, 1fr); gap: 6px; margin-bottom: 8px; align-items: center; } .occ input { min-width: 0; }
.occ > b { grid-row: span 2; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 10px; }
@media (max-width: 700px) { .occ { grid-template-columns: 1fr 1fr; } .occ > b { grid-column: 1 / -1; grid-row: auto; } }

.bpage .tsum { margin-left: auto; margin-bottom: 10px; }
.bpage #prn { margin-bottom: 10px; } .bpage #cancel { margin-left: 0; }
dialog.full .bk2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 800px) { dialog.full .bk2 { grid-template-columns: 1fr; } .bpage .tsum { margin-left: 0; width: 100%; order: 5; } }

/* құжаттар */
.docwrap { max-width: 820px; margin: 10px auto 20px; background: #fff; color: #111; padding: 28px 34px; border: 1px solid var(--line); border-radius: 6px; }
.doc h1 { font-size: 20px; margin: 10px 0 2px; } .doc h3 { font-size: 15px; margin: 14px 0 4px; } .doc .meta { color: #666; margin: 0 0 8px; }
.doc table { border-collapse: collapse; width: 100%; margin: 8px 0; } .doc th, .doc td { border-bottom: 1px solid #ccc; padding: 5px 8px; text-align: left; vertical-align: top; }
.doc th { width: 34%; font-weight: 600; color: #444; } .doc .grid th { width: auto; } .doc .sig { margin-top: 28px; } .doc .sigt td { border: 0; width: 50%; }
.doc .dh { border-bottom: 2px solid #111; padding-bottom: 8px; margin-bottom: 8px; }
.lg { background: #fff3cd; border-radius: 3px; padding: 0 3px; color: #7a5b00; font-weight: 600; } .nolg .lg { display: none; }
@media print { .noprint, .ahead { display: none !important; } .docwrap { border: 0; padding: 0; margin: 0; max-width: none; } dialog.full .dlg { padding: 0 !important; max-width: none !important; } }

/* жаңа брондау: толық бет, оң жақта баға мен сақтау */
.np { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.npq { position: sticky; top: 70px; }
@media (max-width: 800px) { .np { grid-template-columns: 1fr; } .npq { position: static; } }

/* есептер */
.rp, .wl { max-width: 1100px; margin: 0 auto; padding: 0 4px 30px; }
.rpbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 8px; }
.rpbar label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }
.rpnote { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.kpi b { font-size: 22px; } .kpi small { color: var(--muted); font-size: 12px; }
.rpsec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; }
.rpsec h3 { margin: 0 0 8px; font-size: 15px; }
.rp2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.rpsvg { width: 100%; height: auto; display: block; }
.hb { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; margin: 5px 0; font-size: 13px; }
.hb .ht { background: var(--bg); border-radius: 4px; height: 14px; overflow: hidden; } .hb .ht i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.hb .hv small { color: var(--muted); display: block; font-size: 11px; text-align: right; }
.payrow { display: flex; flex-wrap: wrap; gap: 24px; } .payrow span { display: flex; flex-direction: column; } .payrow small { color: var(--muted); font-size: 12px; }
.neg { color: var(--danger); }
.hint { color: var(--muted); font-size: 13px; }
/* күту тізімі */
.wform { margin-bottom: 16px; }
.wh3 { margin: 16px 0 8px; font-size: 15px; } .wh3.ok { color: #1e7a3f; }
.wcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 8px; display: grid; gap: 4px; font-size: 14px; }
.wcard.found { border-color: #2f8a52; box-shadow: inset 4px 0 0 #2f8a52; }
.wh { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; } .wh small { color: var(--muted); margin-left: auto; }
.wfound { color: #1e7a3f; font-weight: 600; } .wpast { color: var(--danger); font-size: 13px; }
.wact { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .wst { color: var(--muted); font-size: 13px; }

/* номер тазалығы */
.hk { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 5px; cursor: pointer; vertical-align: middle; color: var(--hk-c, #888); }
.hk svg { display: block; }
.grid .room .hk { float: right; margin: 3px 0 0 8px; }
.hk-dirty svg, .hk-cleaning svg { stroke-width: 2.1; } .hk-clean svg, .hk-inspect svg { fill: currentColor; fill-opacity: .18; } .hk-verified svg { fill: currentColor; fill-opacity: .15; } .hk-cleaning { animation: hkpulse 1.6s ease-in-out infinite; }
@keyframes hkpulse { 50% { opacity: .45; } }
.hk-clean { --hk-c: var(--hk-clean); } .hk-dirty { --hk-c: var(--hk-dirty); } .hk-cleaning { --hk-c: var(--hk-cleaning); } .hk-inspect { --hk-c: var(--hk-inspect); } .hk-verified { --hk-c: var(--hk-verified); } .hk-closed { --hk-c: var(--hk-closed); }
.hkrow { display: grid; grid-template-columns: 1.2fr 1.4fr auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 6px; }
.hkrow .hk { cursor: default; width: 20px; height: 20px; float: none; }
.hkinfo { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .hkinfo small { color: var(--muted); }
.hkinfo em { font-style: normal; font-size: 12px; padding: 1px 7px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); }
.hkinfo em.urg { background: #fde4e1; color: #b42318; border-color: #f4b3ac; font-weight: 600; }
.hkact { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 640px) { .hkrow { grid-template-columns: 1fr; } }

/* статистика панелі */
.stats { padding: 6px 12px 0; }
.sthead { text-align: right; } .stt { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 13px; padding: 2px 4px; }
.stbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; background: var(--line); border-radius: 10px; padding: 10px; margin-bottom: 6px; }
.stbody[hidden] { display: none; }
.stc { background: var(--surface); border-radius: 8px; padding: 10px 14px; min-height: 130px; }
.stc h4 { margin: 0 0 8px; font-size: 15px; }
.stload { display: flex; align-items: center; gap: 14px; }
.pct { font-size: 30px; font-weight: 600; width: 100px; height: 80px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: #1b2430; }
.pct.lo { background: #cfd8e3; } .pct.mid { background: #f2b84b; } .pct.hi { background: #7cc79a; }
.stn { display: flex; flex-direction: column; gap: 10px; } .stn b { font-size: 22px; } .stn small { color: var(--muted); }
.sti { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; cursor: pointer; border-bottom: 1px dashed var(--line); }
.sti .sd { width: 8px; height: 8px; border-radius: 2px; flex: none; } .sti a { flex: 1; color: var(--text); } .sti:hover a { color: var(--accent); text-decoration: underline; }
.sti.hkb a { width: 100px; flex: none; } .sti .ht { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; } .sti .ht i { display: block; height: 100%; border-radius: 4px; }
.sti b { min-width: 28px; text-align: right; }
@media print { .stats { display: none; } }

/* есеп кестелері */
.rptabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rptabs button { border-radius: 99px; } .rptabs button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.rpbar select { padding: 6px 8px; }
.tblw { overflow-x: auto; }
.rtbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.rtbl th, .rtbl td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.rtbl th { color: var(--muted); font-weight: 500; font-size: 12px; } .rtbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.rtbl tfoot td { font-weight: 600; border-top: 2px solid var(--line); border-bottom: none; }
.rtbl tr.clk, .rtbl tfoot tr.clk { cursor: pointer; } .rtbl tr.clk:hover td { background: var(--bg); }
.h4 { margin: 8px 0 4px; font-size: 13px; color: var(--muted); font-weight: 500; }
.rptabs.sub { margin: 0 0 10px; } .rptabs.sub button { font-size: 13px; }
.tpre { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .tpre button { font-size: 12px; padding: 2px 8px; border-radius: 99px; }
.rtbl small { color: var(--muted); }

/* қызметкерлер, рөл ауыстырғыш */
[hidden] { display: none !important; }
.rolesel { max-width: 190px; }
.mebtn { display: inline-flex; align-items: center; gap: 6px; }
.mebtn img, .ava { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
/* сатылымды жабу */
.grid td.cell.closed { cursor: pointer; font-size: 11px; text-align: center; color: #555; background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.10) 0 4px, transparent 4px 8px); }
.grid td.cell.closed.c-repair { background-color: #fde8c8; }
.grid td.cell.closed.c-unavailable { background-color: #dcdfe4; }
.grid td.cell.closed.c-quota { background-color: #dbeafe; }
.cfcat { margin: 6px 0; }
.cfcat .chip.busy { box-shadow: inset 0 0 0 1px #d97706; }
.cfcat .chip.busy::after { content: ' ⚠'; color: #b45309; }
.cfcat .chip.shut { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { .grid td.cell.closed.c-repair { background-color: #5a4320; } .grid td.cell.closed.c-unavailable { background-color: #3a3f47; } .grid td.cell.closed.c-quota { background-color: #1f3556; } }

/* қонаққа жіберу */
.sendrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.sendto { font-size: 13px; margin: 4px 0; }
.sendbtns a.btn { display: inline-block; padding: 6px 12px; border: 1px solid var(--line, #ccd); border-radius: 6px; text-decoration: none; color: inherit; background: var(--surface, #fff); }
.sendbtns a.btn:hover { background: #eef3ff; }

.senddocs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0; }
.sdoc { display: flex; align-items: center; gap: 6px; }
.docwrap .stampimg { height: 96px; vertical-align: middle; margin-left: -18px; }
.docwrap .sigimg { height: 44px; vertical-align: bottom; }
.filebox { border: 1px solid var(--line, #ccd); border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
.sealprev { max-height: 60px; max-width: 120px; vertical-align: middle; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 12px 12px; }

/* жоғарғы панель + бүйір мәзір (Bnovo үлгісі) */
:root { --sw: 220px; --tb: 52px; --top: calc(var(--tb) + env(safe-area-inset-top, 0px)); }
body.side-shut { --sw: 56px; }
body { padding-top: var(--top); --sx: 0px; }
body.side-right, body.side-left { --sx: var(--sw); }
body.side-right { margin-right: var(--sx); }
body.side-left { margin-left: var(--sx); }
header { top: var(--top); z-index: 10; }
header .controls { margin-left: 0; }
.wrap { max-height: calc(100vh - 210px); }
.topbar { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: var(--tb); z-index: 41; display: flex; align-items: center; gap: 12px; padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); background: var(--surface); border-bottom: 1px solid var(--line); box-sizing: border-box; }
.topbar h1 { font-size: 20px; font-weight: 500; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tright { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tbtn, .logobtn { border: 0; background: none; cursor: pointer; font-size: 20px; padding: 6px 8px; border-radius: 8px; color: inherit; position: relative; }
.tbtn:hover, .logobtn:hover { background: var(--bg); }
.logobtn { padding: 4px; }
.gearw { position: relative; }
.gearmenu { min-width: 250px; }
.gearmenu .sitem { font-size: 14px; }
.side { position: fixed; top: var(--top); bottom: 0; width: var(--sw); z-index: 35; background: var(--surface); border: 0 solid var(--line); display: flex; flex-direction: column; padding: 8px 6px; overflow-y: auto; overflow-x: hidden; transition: width .15s; box-sizing: border-box; }
body.side-right .side { right: 0; border-left-width: 1px; }
body.side-left .side { left: 0; border-right-width: 1px; }
.sidehd { display: flex; align-items: center; gap: 8px; padding: 6px; margin-bottom: 6px; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; border-radius: 8px; width: 100%; text-align: left; }
.sidehd:hover { background: var(--bg); }
.sava { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary, #2563eb); color: #fff; display: grid; place-items: center; font-weight: 700; overflow: hidden; }
.sava img { width: 100%; height: 100%; object-fit: cover; }
.sidehd b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgrp { margin-bottom: 6px; }
.sgt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px 2px; white-space: nowrap; }
.sitem { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 8px; border-radius: 8px; cursor: pointer; color: inherit; font: inherit; white-space: nowrap; }
.sitem:hover { background: var(--bg); }
.sitem.on { background: var(--bg); font-weight: 600; }
.sitem .ic, .tbtn .ic { flex: none; width: 22px; height: 22px; }
.sitem.soon { opacity: .45; cursor: default; }
.sfoot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 6px; }
body.side-shut .sl { display: none; }
body.side-shut .sitem { justify-content: center; padding: 8px 0; }
body.side-shut .sidehd { justify-content: center; }
dialog.full { position: fixed; top: var(--top); left: 0; right: 0; width: auto; max-width: none; height: calc(100vh - var(--top)); max-height: none; z-index: 20; }
body.side-right dialog.full { right: var(--sx); }
body.side-left dialog.full { left: var(--sx); }
@media (max-width: 800px) {
  body.side-right, body.side-left { margin: 0; --sx: 0px; }
  .topbar h1 { font-size: 16px; }
  .topbar .demo-tag { display: none; }
  .rolesel { max-width: 110px; }
  .side { width: 250px; transition: transform .15s; box-shadow: 0 0 18px rgba(0,0,0,.25); }
  body.side-right .side { transform: translateX(100%); }
  body.side-left .side { transform: translateX(-100%); }
  body.side-open .side { transform: none; }
  body.side-shut .sl { display: inline; }
  body.side-shut .sitem { justify-content: flex-start; padding: 8px; }
  body.side-shut .sidehd { justify-content: flex-start; }
}
@media print { .side, .topbar { display: none; } body.side-right, body.side-left { margin: 0; } body { padding-top: 0; } }

/* мәзір: бір стильдегі сызықты белгілер, белсенді пункт, бейдждер */
.sitem { position: relative; }
.sitem.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; }
.sitem.on::before { content: ""; position: absolute; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--accent); }
body.side-right .side .sitem.on::before { right: -6px; }
body.side-left .side .sitem.on::before { left: -6px; }
.sgt { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); opacity: .8; padding: 10px 8px 2px; }
.sitem.soon { opacity: .5; cursor: default; font-size: 13px; }
.soontog { color: var(--muted); }
.soontog .sch { margin-left: auto; display: inline-flex; transition: transform .15s; }
.soontog .sch .ic { width: 16px; height: 16px; }
.soontog .sch.up { transform: rotate(90deg); }
.soontog .sch:not(.up) { transform: rotate(90deg) scaleX(-1); }
.bdg { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; font-style: normal; font-weight: 600; line-height: 18px; text-align: center; color: #fff; background: #d92d20; box-sizing: border-box; }
.bdg.clean { background: #e0a100; }
body.side-shut .bdg { position: absolute; top: 2px; right: 6px; margin: 0; min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; padding: 0 3px; }
.colbtn .ic { transition: transform .15s; }
body.side-left:not(.side-shut) .colbtn .ic, body.side-right.side-shut .colbtn .ic { transform: scaleX(-1); }
.tbtn { display: inline-flex; align-items: center; }
.tbtn .badge { position: absolute; top: 0; right: 0; }
@media (max-width: 800px) { body .bdg, body.side-shut .bdg { position: static; margin-left: auto; height: 18px; line-height: 18px; font-size: 11px; } .colbtn { display: none; } }
body.side-shut .sitem.soon { display: none; }
@media (max-width: 800px) { body.side-shut .sitem.soon { display: flex; } }

.gbar label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }
.gtbl th { cursor: pointer; user-select: none; white-space: nowrap; }
.gtbl th.srt { color: var(--accent); }
.gtbl th i { font-style: normal; font-size: 10px; }
.gtbl tbody tr { cursor: pointer; }
.gtbl tbody tr:hover { background: var(--bg); }

/* жылдам әрекеттер панелі */
.qp { position: fixed; top: var(--top); bottom: 0; right: var(--sx); width: 460px; z-index: 18; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -6px 0 18px rgba(0,0,0,.12); display: flex; flex-direction: column; }
body.side-left .qp { right: 0; }
.qhd { display: flex; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.qhd small { display: block; color: var(--muted); margin-top: 2px; }
.qx { border: 0; background: none; font-size: 18px; cursor: pointer; color: inherit; }
.qbody { flex: 1; overflow-y: auto; padding: 4px 14px 14px; }
.qbody section { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.qbody h4 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; }
.qrow { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.qrow span { color: var(--muted); }
.qrow .neg { color: var(--danger); }
.qst { display: flex; flex-wrap: wrap; gap: 4px; }
.qst button { padding: 5px 9px; }
.qst button.on { font-weight: 600; }
.qbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.qb { padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: inherit; font-size: 13px; }
.qb.off { opacity: .4; }
.qwide { width: 100%; }
.qinl { display: flex; gap: 6px; }
.qinl input, .qinl select { min-width: 0; flex: 1; }
.qft { padding: 10px 14px; border-top: 1px solid var(--line); }
.qft button { width: 100%; }
td.bk.qsel .bar { outline: 2px solid var(--accent); outline-offset: -1px; }
@media (max-width: 800px) { .qp { left: 0; right: 0; top: auto; width: auto; max-height: 74vh; border-left: 0; border-top: 1px solid var(--line); border-radius: 14px 14px 0 0; box-shadow: 0 -8px 24px rgba(0,0,0,.2); } body.side-left .qp { right: 0; } }
@media print { .qp { display: none; } }
#qqty { flex: none; width: 56px; } .qinl select { flex: 2; }

.qname { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qic { display: inline-flex; gap: 4px; }
.qi { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; text-decoration: none; font-size: 12px; font-weight: 600; cursor: pointer; }
.qi.off { opacity: .35; cursor: default; }
.cxhint { margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: var(--soft, rgba(200,150,0,.12)); font-size: 12px; }
.qi svg { display: block; }

.qbody { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; align-content: start; padding: 0 14px 6px; }
.qbody section { grid-column: 1 / -1; padding: 6px 0; }
.qbody section.half { grid-column: auto; }
.qbody h4 { margin: 0 0 4px; }
.qrow { padding: 1px 0; }
.qft { padding: 8px 14px; }
.qhd { padding: 8px 14px; }
@media (max-width: 800px) { .qbody { grid-template-columns: 1fr; } .qbody section.half { grid-column: 1 / -1; } }
.qbody section.half { grid-column: 1 / -1; }
.qbody .chips { gap: 4px; }
.qbody .chip { padding: 2px 8px; font-size: 12px; }
.qst button { padding: 4px 7px; font-size: 13px; }
.qinl input, .qinl select { padding-top: 5px; padding-bottom: 5px; }

.qst button.blk, .sbtns button.blk { opacity: .45; cursor: not-allowed; }
.blkmsg { background: rgba(220,60,60,.10); }
.eqrow.ready { background: rgba(30,140,70,.12); } .eqrow.sent { background: rgba(30,140,70,.2); }
.eqb { display: inline-block; margin-right: 3px; padding: 0 3px; border-radius: 4px; font-size: 9px; font-weight: 700; background: #fff; color: #b26a00; }
.eqb.ready, .eqb.sent { color: #1b7a3d; }

input.miss, select.miss { border-color: #d33; box-shadow: 0 0 0 2px rgba(220,50,50,.2); }
.blkmsg.flash { animation: flash 1s ease 2; } @keyframes flash { 50% { background: rgba(220,60,60,.3); } }
.qst button.blk, .sbtns button.blk { opacity: .7; cursor: pointer; }

.hkpop { position: fixed; z-index: 60; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.hkpi { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 15px; white-space: nowrap; }
.hkpi input { position: absolute; opacity: 0; }
.hkpi .rd { width: 18px; height: 18px; border: 2px solid var(--muted); border-radius: 50%; flex: none; box-sizing: border-box; }
.hkpi input:checked + .rd { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); background: var(--accent); }
.hki { display: inline-flex; flex: none; color: var(--hk-c, #888); pointer-events: none; }
.hki svg { display: block; width: 18px; height: 18px; }
.hk-clean.hki svg, .hk-inspect.hki svg, .hk-verified.hki svg { fill: currentColor; fill-opacity: .18; }
.hkpi i { flex: none; }

.hkpage .seg { flex-wrap: wrap; row-gap: 6px; }
.hkpage .seg button[data-f] { --c: var(--muted); display: inline-flex; align-items: center; gap: 6px; border-color: var(--c); }
.hkpage .seg button[data-f] .hki svg { width: 16px; height: 16px; }
.hkpage .seg button[data-f="need"] { --c: var(--hk-need); } .hkpage .seg button[data-f="dirty"] { --c: var(--hk-dirty); } .hkpage .seg button[data-f="cleaning"] { --c: var(--hk-cleaning); }
.hkpage .seg button[data-f="clean"] { --c: var(--hk-clean); } .hkpage .seg button[data-f="inspect"] { --c: var(--hk-inspect); } .hkpage .seg button[data-f="verified"] { --c: var(--hk-verified); } .hkpage .seg button[data-f="closed"] { --c: var(--hk-closed); }
.hkpage .seg button[data-f].on { background: var(--c); border-color: var(--c); color: #fff; }
.hkpage .seg button[data-f].on::before { background: #fff; }
.hkpage .seg button[data-f="all"]::before { display: none; } .hkpage .seg button[data-f="all"].on { background: var(--accent); border-color: var(--accent); }

/* тазалау беті: қойындылар, чек-лист, ақау/зат, журнал, жабдықтау */
.hkpage .hktabs button[data-t] { --c: var(--accent); border-color: var(--c); }
.hkpage .hktabs button[data-t="rooms"] { --c: var(--hk-clean); } .hkpage .hktabs button[data-t="issues"] { --c: var(--hk-need); }
.hkpage .hktabs button[data-t="journal"] { --c: var(--hk-verified); } .hkpage .hktabs button[data-t="supply"] { --c: var(--confirmed); }
.hkpage .hktabs button[data-t].on { background: var(--c); border-color: var(--c); color: #fff; }
.hkpage .hkissf button[data-if].on { background: var(--hk-need); border-color: var(--hk-need); color: #fff; }
.hkwho { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 3px; }
.hkwho select, .hkwho input { font-size: 12px; padding: 2px 4px; }
.hkinfo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.hkdef { color: var(--hk-dirty); font-size: 12px; font-weight: 600; }
.hkact .ghost { background: transparent; }
.hkx { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 14px; padding: 8px 4px 2px; border-top: 1px dashed var(--line); }
.hkx[hidden] { display: none; } .hkx small { grid-column: 1 / -1; color: var(--muted); }
.hkx label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.hkissform { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.hkissform label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.hkissform label.wide { flex: 1 1 260px; }
.hkiss { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--hk-need); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 6px; }
.hkiss.lost { border-left-color: var(--confirmed); } .hkiss.done { opacity: .65; border-left-color: var(--hk-verified); }
.hkiss .ik { font-size: 20px; } .hkiss .ist { font-style: normal; font-size: 12px; background: var(--line); border-radius: 8px; padding: 1px 8px; margin-left: 6px; }
.phimg { max-width: min(360px, 100%); border-radius: 8px; margin-top: 6px; display: block; }
.hktable { width: 100%; border-collapse: collapse; font-size: 13px; }
.hktable th, .hktable td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.hktable th { color: var(--muted); font-weight: 600; font-size: 12px; }
.hkrow.sup { grid-template-columns: 1.2fr 1.4fr auto; } .hkrow.sup.low { border-left: 4px solid var(--hk-dirty); }
.hkrow.sup .qty { font-size: 18px; }
.hkfix { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hkfix .fxl { cursor: pointer; border: 1px dashed var(--hk-closed); color: var(--hk-closed); border-radius: 8px; padding: 5px 10px; font-size: 13px; }
.hkfix.ok .fxl { border-style: solid; color: var(--hk-verified); border-color: var(--hk-verified); }
.hkfix .fxn { color: var(--muted); font-size: 12px; flex-basis: 100%; }
.hkfix button:disabled { opacity: .5; cursor: not-allowed; }
.buildtag { position: fixed; left: 8px; bottom: 6px; z-index: 5; font-size: 11px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; opacity: .85; pointer-events: none; }
.bar .rpw { font-size: 11px; margin-right: 3px; background: var(--hk-closed); border-radius: 4px; padding: 0 3px; }
.cxhint.repmsg { border-left: 4px solid var(--hk-closed); }
td.cell.closed .rpcell { cursor: pointer; font-size: 13px; }
td.cell.closed:has(.rpcell) { cursor: pointer; }
.rptag { font-style: normal; font-size: 10px; background: var(--hk-closed); color: #fff; border-radius: 8px; padding: 0 6px; margin-left: 4px; cursor: pointer; white-space: nowrap; }
tr.rp-row td.room { box-shadow: inset 3px 0 0 var(--hk-closed); }
.bar:has(.rpw) { outline: 2px dashed var(--hk-closed); outline-offset: -2px; }

/* жылжыту: дұрыс емес орын қызыл */
#band.bad { background: rgba(200,50,50,.2); border-color: #c83232; }
#band.bad .bl, #band.bad .br { background: #c83232; }
.toast .undo { margin-left: 10px; background: #fff; color: #1b2430; border: 0; border-radius: 5px; padding: 3px 10px; font-weight: 600; cursor: pointer; }
td.bk { cursor: grab; }

.mvov { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 120; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mvbox { background: var(--surface, #fff); color: inherit; border-radius: 10px; padding: 18px; max-width: 420px; width: 100%; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.mvbox h3 { margin: 0 0 10px; } .mvbox p { margin: 6px 0; }
.mvr { display: block; margin: 8px 0; cursor: pointer; }
.mvb { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.mvb button { padding: 7px 14px; border-radius: 6px; border: 1px solid #aaa; background: transparent; color: inherit; cursor: pointer; }
.mvb .mvok { background: #1d6fb8; border-color: #1d6fb8; color: #fff; font-weight: 600; }

.mving tbody tr.mvok td.cell { background: rgba(60,170,90,.16); }
.mving tbody tr.mvno { opacity: .38; }
.mvft { display: flex; flex-direction: column; gap: 8px; }
.mvft button { padding: 9px 14px; border-radius: 6px; cursor: pointer; }
.mvft .mvcalc, .mvft .mvno2 { border: 1px solid #aaa; background: transparent; color: inherit; }

.grid td.room .rptag { float: right; background: none; color: inherit; padding: 0; margin: 0 0 0 6px; font-size: 14px; }
.grid td.room > span { font-size: 11px; }

.grid td.room .ci { display: inline-flex; align-items: center; gap: 2px; vertical-align: -2px; margin-left: 2px; }
.grid td.room .ci small { font-size: 10px; margin: 0 2px 0 0; }
.grid td.room svg.ico { height: 14px; flex: none; }
.grid td.room .tg { border: 0; background: none; padding: 0 2px; margin: 0; color: var(--muted); display: inline-flex; vertical-align: -2px; }

.chb { display: inline-block; min-width: 14px; height: 14px; line-height: 14px; margin-right: 4px; padding: 0 3px; border-radius: 3px; background: rgba(0,0,0,.55); color: #fff; font: 700 10px/14px sans-serif; font-style: normal; text-align: center; text-shadow: none; vertical-align: 1px; }
.chl { display: inline-flex; gap: 10px; align-items: center; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line); }
.chlk { cursor: pointer; display: inline-flex; align-items: center; padding: 1px 4px; border-radius: 5px; }
.chlk .chb { background: #4b5563; }
.chlk.on { background: rgba(29,111,184,.18); outline: 1px solid #3b82c4; }
.bar.chdim { opacity: .3; }

/* ерте келу / кеш шығу: қызыл «!», жолақ астында уақыт және қызыл сызық */
.bar.early, .bar.late { border: 0; }
td.bk.xt { position: relative; }
.exm { color: #d92d20; font-weight: 800; margin-right: 4px; text-shadow: none; }
.etm { position: absolute; bottom: 4px; font-size: 10px; font-weight: 700; color: #a8321c; line-height: 11px; padding: 0 3px; border-radius: 3px; background: rgba(255,255,255,.78); pointer-events: none; }
.etm.l { left: 8px; } .etm.r { right: 8px; }
.eln { position: absolute; bottom: 2px; height: 2px; background: #d92d20; pointer-events: none; }
.eln.both { left: 2px; right: 2px; } .eln.l { left: 2px; width: 50%; } .eln.r { right: 2px; width: 50%; }
.legend { flex-wrap: nowrap; gap: 8px; font-size: 11px; overflow-x: auto; white-space: nowrap; }
.legend > span { flex: none; }
.legend { gap: 7px; font-size: 10.5px; } .chl { gap: 6px; margin-left: 4px; padding-left: 7px; }
td.bk.xt .bar { padding-top: 1px; line-height: 13px; }
.etm { font-size: 9px; line-height: 10px; bottom: 4px; padding: 0 2px; }

.pmi { display: inline-flex; vertical-align: -2px; margin-left: 4px; color: var(--muted); }

/* баптау карталарындағы жол ішінде өңдеу: қарындаш → өріс → ✔ / ✕ */
.rules.edt td.pn { width: 64px; text-align: right; white-space: nowrap; }
.ib { border: 0; background: none; cursor: pointer; padding: 4px 6px; border-radius: 6px; color: var(--muted); line-height: 0; }
.ib:hover { background: var(--line, rgba(0,0,0,.08)); color: var(--text, inherit); }
.ib.ok { color: #2e7d32; } .ib.no { color: #c0392b; }
.rules.edt tr.editing td { vertical-align: top; }
.ied { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ied label { display: block; font-size: 12px; color: var(--muted); } .ied label > span { display: block; margin-bottom: 2px; }
.ied input:not([type=checkbox]):not([type=file]), .ied select, .ied textarea { width: 100%; box-sizing: border-box; }

/* номерлер ретін жылжыту: тұтқа мен түсетін орын сызығы */
#roomTbl td.drg, #typeTbl td.drg { width: 28px; padding: 0 4px; text-align: center; }
.dgrip { display: inline-block; cursor: grab; touch-action: none; user-select: none; color: var(--muted); font-weight: 700; letter-spacing: -2px; padding: 6px 4px; }
#roomTbl tr.dragging, #typeTbl tr.dragging { opacity: .45; }
#roomTbl tr.dropb td, #typeTbl tr.dropb td { box-shadow: inset 0 3px 0 var(--accent, #2563eb); } #roomTbl tr.dropa td, #typeTbl tr.dropa td { box-shadow: inset 0 -3px 0 var(--accent, #2563eb); }

/* номер түрінің фото/видео редакторы мен тізімдегі превью */
.mmth { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; background: var(--line, #e5e7eb); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.mmth video { width: 100%; height: 100%; object-fit: cover; } .mmth.vid { font-size: 14px; }
.mmcell { display: inline-flex; align-items: center; gap: 3px; }
.mmed .mmrow { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line, #e5e7eb); }
.mmed .mmnm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mmed .mmnm small { display: block; color: var(--muted); }
.mmed { display: block; padding: 14px 0 4px; margin-top: 6px; border-top: 1px solid var(--line, #e5e7eb); }
.mmed .mmh { font-weight: 600; font-size: 15px; margin-bottom: 4px; } .mmed .mmh small { font-weight: 400; color: var(--muted); }
.mmed .mmhint { color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.mmed .mmlist { margin-bottom: 14px; } .mmed .mmrow { padding: 8px 4px; gap: 10px; } .mmed .mmth { width: 48px; height: 48px; }
.mmed .mmempty { padding: 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line, #d1d5db); border-radius: 10px; }
.mmed .mmup { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px dashed var(--accent, #2563eb); border-radius: 12px; cursor: pointer; background: color-mix(in srgb, var(--accent, #2563eb) 6%, transparent); }
.mmed .mmup:hover { background: color-mix(in srgb, var(--accent, #2563eb) 12%, transparent); }
.mmed .mmupi { font-size: 28px; line-height: 1; } .mmed .mmup b { display: block; font-size: 15px; } .mmed .mmup small { color: var(--muted); }
.mmed .mmor { margin: 14px 0 8px; font-size: 13px; color: var(--muted); }
.mmed .mmadd { display: flex; gap: 10px; margin: 0 0 10px; } .mmed .mmurl { flex: 1; min-width: 0; } .mmed .mmaddurl { padding: 8px 16px; white-space: nowrap; }
.form .mmed { grid-column: 1 / -1; display: block; font-size: 14px; color: inherit; }
.form .mmed .mmup { display: flex; flex-direction: row; align-items: center; gap: 14px; font-size: 14px; color: inherit; }
.form .mmed .mmup > span:last-of-type { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.form .mmed .mmup b { color: var(--text); }
.form .mmed .mmadd .mmurl { width: auto; }
#typeTbl .tdesc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 260px; }
.form .mmch .chsw { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; color: var(--text); cursor: pointer; }
.chsw input { position: absolute; opacity: 0; width: 0; height: 0; }
.chsw i { width: 38px; height: 22px; border-radius: 999px; background: var(--line, #cbd5e1); position: relative; flex: none; transition: background .15s; }
.chsw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.chsw input:checked + i { background: var(--accent, #2563eb); } .chsw input:checked + i::after { transform: translateX(16px); }
.chsw input:focus-visible + i { outline: 2px solid var(--accent, #2563eb); outline-offset: 2px; }
#typeTbl .chtd { text-align: center; width: 76px; } #typeTbl .chtd .chsw { display: inline-flex; padding: 0; }
.pvbox { margin: 18px 0 6px; padding: 14px 16px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; }
.pvh { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pvg { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pvc { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; }
.pvi { width: 64px; height: 64px; flex: none; border-radius: 8px; overflow: hidden; background: var(--line, #e5e7eb); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.pvi img { width: 100%; height: 100%; object-fit: cover; }
.pvt { min-width: 0; } .pvt b { display: block; } .pvt small { color: var(--muted); display: block; }
.pvt p { margin: 4px 0 0; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pvn { margin-top: 10px; font-size: 12px; color: var(--muted); }
.ib.dl:hover { color: #c0392b; } .ib.sure { color: #fff; background: #c0392b; line-height: 1.2; font-size: 12px; padding: 4px 10px; }
.ib.sure:hover { background: #a93226; color: #fff; }
td > .ib + .ib { margin-left: 2px; }
.tdb { margin: 10px 0; padding: 12px 14px; border: 1px solid #e0b4b0; background: color-mix(in srgb, #c0392b 6%, transparent); border-radius: 10px; }
.tdb p { margin: 4px 0 8px; font-size: 13px; color: var(--muted); } .tdr { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.amg { display: flex; flex-wrap: wrap; gap: 8px; }
.amc { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line, #d1d5db); background: transparent; color: var(--text); font-size: 13px; cursor: pointer; }
.amc span { font-size: 17px; line-height: 1; filter: grayscale(1); opacity: .6; }
.amc:hover { border-color: var(--accent, #2563eb); }
.amc.on { background: color-mix(in srgb, var(--accent, #2563eb) 14%, transparent); border-color: var(--accent, #2563eb); font-weight: 600; }
.amc.on span { filter: none; opacity: 1; }
.amr { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 2px; } .amI { font-size: 14px; line-height: 1.3; cursor: default; }
.amd { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; margin: 8px 0; }
.amd summary { display: flex; align-items: center; gap: 6px; padding: 10px 14px; cursor: pointer; list-style: none; }
.amd summary::-webkit-details-marker { display: none; }
.amd summary::before { content: '▸'; color: var(--muted); transition: transform .15s; }
.amd[open] summary::before { transform: rotate(90deg); }
.amd .amn { color: var(--muted); flex: 1; } .amd.has .amn { color: var(--accent, #2563eb); font-weight: 600; }
.amd .amg { padding: 2px 14px 14px; }
dialog.tpage .agrid, dialog.tpage .ahead { display: none; }
dialog.tpage #af:not(:empty) { position: static; max-height: none; overflow: visible; box-shadow: none; border: 0; max-width: 980px; margin: 0 auto; padding: 18px 0 0; background: transparent; }
dialog.tpage #af .quote { background: transparent; padding: 0; margin: 0; font-size: 14px; }
dialog.tpage #af .quote > b { display: block; font-size: 22px; margin: 6px 0 14px; }
dialog.tpage .tpback { border: 0; background: none; color: var(--accent, #2563eb); font-size: 14px; cursor: pointer; padding: 4px 0; }
dialog.tpage .tpback:hover { text-decoration: underline; }
dialog.tpage #af .quote .actions { position: sticky; bottom: 0; z-index: 6; display: flex; justify-content: flex-end; gap: 10px; margin: 18px 0 0; padding: 12px 0; background: var(--surface); border-top: 1px solid var(--line, #e5e7eb); }
dialog.tpage #afm.form { gap: 12px 20px; }
dialog.tpage #afm input, dialog.tpage #afm select, dialog.tpage #afm textarea { font-size: 14px; }
.tpwarn { margin: 8px 0 4px; padding: 10px 14px; border: 1px solid #e0b4b0; background: color-mix(in srgb, #c0392b 8%, transparent); border-radius: 10px; font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tagbox .tagchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.tagbox .tagadd { display: flex; gap: 8px; max-width: 420px; } .tagbox .tagnew { flex: 1; }
#af .tpwarn { margin: 10px 0 0; }
.form .tagbox { grid-column: 1 / -1; }

/* тарифтер */
.chbs{display:inline-flex;gap:4px;flex-wrap:wrap}
.cgb{font-size:11px;padding:2px 7px;border-radius:10px;border:1px solid var(--line,#ddd)}
.cgb.cy{background:#e6f4ea;color:#1e6b35;border-color:#bfe0c8}
.cgb.cn{background:#f3f3f3;color:#999}
.tfp .tfs{margin:14px 0;padding:12px;border:1px solid var(--line,#e2e2e2);border-radius:10px}
.tfp .tfs h4{margin:0 0 8px;display:flex;gap:10px;align-items:center}
.tfp table input{width:100%;box-sizing:border-box}
#af2:not(:empty){margin-top:10px;padding:12px;border:1px dashed var(--line,#ccc);border-radius:10px}
.svrow{display:flex;gap:8px;align-items:center;margin:6px 0}.svrow select{flex:1;min-width:0}
.tmh{display:block;font-size:12px;margin:2px 0}.tmh input{width:80px}
/* тариф беті: жиналмалы секциялар */
.tfp { display: flex; flex-direction: column; }
.tfp > b { order: 0; }
.tfp .actions { order: 99; }
.tfp details.tfs { margin: 8px 0; padding: 0; border: 1px solid var(--line, #e2e2e2); border-radius: 10px; background: var(--surface, #fff); }
.tfp details.tfs > summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; cursor: pointer; list-style: none; }
.tfp details.tfs > summary::-webkit-details-marker { display: none; }
.tfp details.tfs > summary::before { content: '▸'; color: var(--muted, #6b7686); transition: transform .12s; }
.tfp details.tfs[open] > summary::before { transform: rotate(90deg); }
.tfp details.tfs > summary b { font-size: 15px; }
.tfp .tfsum { color: var(--muted, #6b7686); font-size: 13px; flex: 1; min-width: 0; }
.tfp .tfbt { margin-left: auto; }
.tfp details.tfs > :not(summary) { margin-left: 14px; margin-right: 14px; }
.tfp details.tfs > :last-child { margin-bottom: 14px; }
.tfp .mmhint { font-size: 12px; color: var(--muted, #6b7686); margin: 0 14px 8px; }
.tfp .form { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 16px; align-items: end; }
.tfp .form .full { grid-column: 1 / -1; }
.tfp .form label { margin: 0; }
.tfp table.rules { display: block; overflow-x: auto; max-width: 100%; }
.tfp table.rules input[type=number], .tfp table.rules input:not([type]) { min-width: 80px; }
.tfp table.rules select { min-width: 120px; }
@media (max-width: 640px) { .tfp .form { grid-template-columns: 1fr; } .tfp .tfbt { margin-left: 0; width: 100%; } .tfp details.tfs > summary { padding: 10px 12px; } .tfp details.tfs > :not(summary) { margin-left: 10px; margin-right: 10px; } }
/* тарифтер тізімі */
.tfl { width: 100%; min-width: 760px; }
.tfl th { font-weight: 500; font-size: 12px; color: var(--muted, #6b7686); text-align: center; vertical-align: bottom; }
.tfl th:nth-child(2) { text-align: left; }
.tfl td { vertical-align: middle; }
.tfl td:not(:nth-child(2)) { text-align: center; }
.seg { display: inline-flex; border: 1px solid var(--line, #d5dae2); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; background: var(--surface, #fff); padding: 5px 11px; font-size: 12px; cursor: pointer; color: var(--muted, #6b7686); line-height: 1; }
.seg button.on { background: #d9f2de; color: #17703a; }
.seg button.off { background: #eceef2; color: #3a4350; }
.seg.fx { opacity: .55; }
.seg.fx button { cursor: default; }
.tfl .dgrip { cursor: grab; color: var(--muted, #9aa3b0); user-select: none; touch-action: none; }
.tfl td small { color: var(--muted, #6b7686); }
/* баптау кестелері: Bnovo стилі, бағандар арасында жұқа сызық */
.agrid table.rules, .tfp table.rules { border-collapse: collapse; border: 1px solid var(--line, #dfe3e9); border-radius: 8px; }
.agrid table.rules th, .agrid table.rules td, .tfp table.rules th, .tfp table.rules td { border: 1px solid var(--line, #dfe3e9); }
.agrid table.rules th, .tfp table.rules th { background: #f3f5f8; font-weight: 600; color: #3a4350; border-bottom: 2px solid #d3d9e2; }
.agrid table.rules tr:hover td { background: #fafbfd; }
@media (prefers-color-scheme: dark) { .agrid table.rules th, .tfp table.rules th { background: rgba(255,255,255,.06); color: inherit; } .agrid table.rules tr:hover td { background: rgba(255,255,255,.03); } }
.tfl td.gl { border-right-color: transparent !important; } .tfl td.gr { border-left-color: transparent !important; } .tfl tr.sub th { font-weight: 500; font-size: 12px; border-bottom-width: 2px; }
.agrid table#tfTbl { display: table; width: 100%; }
.agrid > .asec:has(#tfTbl) { grid-column: 1 / -1; }

/* Онлайн брондау беті (қонаққа арналған) */
.onl{--onc:#1d6fb8;position:fixed;inset:0;z-index:300;overflow:auto;background:#f5f7fa;color:#1b2430;font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
.onl *{box-sizing:border-box}
.onh{background:#fff;border-bottom:1px solid #e3e8ee;position:sticky;top:0;z-index:2}
.onhi{max-width:980px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;gap:12px}
.onlogo{width:42px;height:42px;border-radius:10px;object-fit:cover;flex:none}
.onlogo.ph{display:grid;place-items:center;background:var(--onc);color:#fff;font-weight:700;font-size:20px}
.onhn{flex:1;min-width:0;display:flex;flex-direction:column}.onhn b{font-size:17px}.onhn small{color:#667}
.onhc a{color:var(--onc);text-decoration:none;font-weight:600;white-space:nowrap}
.onx{border:0;background:#eef1f5;border-radius:8px;width:34px;height:34px;cursor:pointer;font-size:15px}
.onb{max-width:980px;margin:0 auto;padding:16px}
.onwel{font-size:17px;margin:4px 0 14px;color:#334}
.onsf{background:#fff;border-radius:14px;padding:14px;box-shadow:0 1px 4px #0001;display:grid;grid-template-columns:repeat(4,1fr) auto;gap:10px;align-items:end}
.onsf label,.ong2 label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#556}
.onsf input,.onsf select,.ong2 input,.ong2 textarea{font:inherit;font-size:15px;padding:9px 10px;border:1px solid #cfd6df;border-radius:9px;background:#fff;color:#1b2430;width:100%}
.onsf .onages,.onsf .onpromo{grid-column:1/-1}.onages{display:flex;gap:10px;flex-wrap:wrap}.onages label{width:150px}
.onpromo label{max-width:260px}
.onbtn{background:var(--onc);color:#fff;border:0;border-radius:10px;padding:10px 18px;font:inherit;font-weight:600;cursor:pointer}
.onbtn:disabled{opacity:.6}.onbtn.big{width:100%;padding:13px;font-size:16px;margin-top:12px}
.onlink{background:none;border:0;color:var(--onc);cursor:pointer;font:inherit;padding:4px 0;text-decoration:underline}
.onerr{background:#fdecea;color:#a12a20;padding:10px 12px;border-radius:9px;margin-top:12px}
.onsum{margin:18px 0 8px;font-weight:600;color:#445}
.onempty{background:#fff;border-radius:14px;padding:24px;text-align:center;color:#667}
.ont{background:#fff;border-radius:14px;box-shadow:0 1px 4px #0001;margin:14px 0;display:grid;grid-template-columns:320px 1fr;overflow:hidden}
.ontm{min-width:0}#onres{scroll-margin-top:72px}.onph{height:100%;min-height:200px;max-height:260px;display:grid;place-items:center;background:var(--onc);opacity:.85;color:#fff;font-size:56px;font-weight:700}
.ong .ongm{aspect-ratio:4/3;background:#000;display:flex}.ong .ongm img,.ong .ongm video{width:100%;height:100%;object-fit:cover}
.ongt{display:flex;gap:4px;padding:4px;overflow-x:auto;background:#f0f2f5}.ongt button{border:2px solid transparent;padding:0;width:54px;height:40px;flex:none;border-radius:6px;overflow:hidden;cursor:pointer;background:#ddd}
.ongt button.on{border-color:var(--onc)}.ongt img{width:100%;height:100%;object-fit:cover}
.onti{padding:14px 16px;min-width:0}.onti h3{margin:0 0 4px;font-size:19px}
.onmeta{display:flex;gap:12px;flex-wrap:wrap;color:#556;font-size:13px}.onlow{color:#c0392b;font-weight:600}
.ond{margin:8px 0;color:#334}
.onams{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.onam{background:#eef2f6;border-radius:999px;padding:3px 10px;font-size:12.5px}.onam i{font-style:normal;margin-right:4px}
.ontf{margin-top:10px;border-top:1px solid #e6eaef}
.ontr{display:flex;gap:14px;justify-content:space-between;padding:12px 0;border-bottom:1px solid #e6eaef}.ontr:last-child{border-bottom:0}
.ontn{min-width:0}.ontl{font-size:13px;color:#556;margin-top:2px}.ontl.ok{color:#1d7a46}.ontl.nr{color:#b3412f}
.ontp{text-align:right;flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:3px}.ontp b{font-size:20px}.ontp small{color:#667}
.ongrid{display:grid;grid-template-columns:1fr 320px;gap:16px;margin-top:10px}
.ong2{background:#fff;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px}.ong2 h3{margin:6px 0 0}
.onrad{flex-direction:row!important;flex-wrap:wrap;align-items:center;gap:8px!important;border:1px solid #cfd6df;border-radius:10px;padding:10px 12px;color:#1b2430!important;font-size:15px!important}
.onrad input{width:auto!important}.onrad small{flex-basis:100%;color:#667;padding-left:26px}.onrad.dis{opacity:.5}
.onfine{font-size:12px;color:#889;margin:6px 0 0}
.onaside{background:#fff;border-radius:14px;padding:16px;align-self:start;display:flex;flex-direction:column;gap:6px}
.onrow{display:flex;justify-content:space-between;gap:10px;font-size:14px;border-top:1px solid #eef1f5;padding-top:6px}.onrow span{color:#667}.onrow b{text-align:right}
.onrow.tot{font-size:17px}
.ondone{max-width:460px;margin:30px auto;text-align:center;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.onok{width:64px;height:64px;border-radius:50%;background:#1d7a46;color:#fff;font-size:34px;display:grid;place-items:center;margin:0 auto}
.ondone .onaside{text-align:left}
.onlOpen{overflow:hidden}
@media(max-width:720px){.onsf{grid-template-columns:1fr 1fr}.onsf .onbtn{grid-column:1/-1}.ont{grid-template-columns:1fr}.ongrid{grid-template-columns:1fr}.ontr{flex-direction:column}.ontp{align-items:stretch;text-align:left;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}.ontp .onbtn{margin-left:auto}.onhc{display:none}}
.onincl{background:#eaf6ef;color:#1d7a46;border-radius:9px;padding:8px 12px;font-size:14px}
.onsv{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #cfd6df;border-radius:10px;padding:10px 12px}
.onsv label{flex-direction:row!important;align-items:center;gap:8px!important;color:#1b2430!important;font-size:15px!important;flex-wrap:wrap}.onsv input[type=checkbox]{width:auto!important}
.onsv small{color:#667;flex-basis:100%;padding-left:26px}
.onqty{font-size:13px;color:#556;white-space:nowrap}.onqty input{width:64px!important;padding:6px!important}

.onb { margin: 12px 0; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.onb h2 { margin: 0 0 4px; font-size: 16px; }
.onb p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.onb ol { margin: 0; padding-left: 20px; }
.onb li { margin: 6px 0; }
.onb li.done { color: var(--muted); text-decoration: line-through; }
.onb button { margin-left: 8px; }
/* жоғарғы панель: +Брондау, қолданушы аватары; құпиясөз көзі */
.tright #newBtn { padding: 7px 14px; }
.mew { position: relative; }
.mebtn { padding: 2px; }
.mebtn .sava { width: 32px; height: 32px; }
.memenu { right: 0; min-width: 240px; padding: 8px; }
.mecur { display: flex; gap: 10px; align-items: center; padding: 6px; }
.mecur small, .meu small { display: block; color: var(--muted); font-size: 12px; }
.mesw { font-size: 11px; text-transform: uppercase; color: var(--muted); padding: 8px 6px 2px; border-top: 1px solid var(--line, #e5e9ef); margin-top: 6px; }
.meu { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; background: none; padding: 6px; border-radius: 8px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.meu:hover:not(:disabled) { background: var(--bg); }
.meu:disabled { opacity: .5; cursor: not-allowed; }
.lgov { position: fixed; inset: 0; background: #0006; z-index: 500; display: grid; place-items: center; }
.lgbox { background: var(--surface); border-radius: 14px; padding: 18px; width: min(360px, 92vw); display: flex; flex-direction: column; gap: 10px; }
.lgbox h3 { margin: 0; }
.lgbox label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.lgdemo { color: var(--muted); }
.pww { position: relative; display: block; width: 100%; }
.pww input { width: 100%; padding-right: 38px; }
.pwe { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; color: var(--muted); padding: 4px 6px; border-radius: 6px; display: grid; place-items: center; }
.pwe:hover { color: inherit; background: var(--bg); }

/* өріс подсказкасы «?» */
.qh { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 6px; border-radius: 50%; background: #dfe5ec; color: #4a5667; font-size: 11px; font-weight: 700; cursor: help; position: relative; vertical-align: middle; }
.qh:hover, .qh:focus { background: var(--primary, #1d6fb8); color: #fff; outline: none; }
.qh::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-30%); width: max-content; max-width: 280px; background: #1b2430; color: #fff; font-size: 12.5px; font-weight: 400; line-height: 1.4; padding: 7px 10px; border-radius: 8px; z-index: 600; opacity: 0; pointer-events: none; transition: opacity .12s; white-space: normal; text-align: left; }
.qh:hover::after, .qh:focus::after { opacity: 1; }

.plsug{position:fixed;z-index:9999;background:var(--surface,#fff);border:1px solid var(--line,#d9dee3);border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.15);max-height:240px;overflow:auto}
.plsug button{display:flex;justify-content:space-between;gap:12px;width:100%;text-align:left;border:0;background:none;padding:7px 10px;cursor:pointer;font:inherit;color:inherit}
.plsug button:hover{background:var(--bg2,#eef2f6)}
.plsug small{color:var(--muted,#6b7785)}
.mapbox{height:220px;border-radius:8px;margin-top:8px;overflow:hidden;background:var(--bg2,#eef2f6);position:relative;z-index:0}
.mapbox.nomap{height:auto;padding:10px;font-size:12px;color:var(--muted,#6b7785)}
.mdp{display:inline-flex;gap:4px}.mdp select{min-width:0;padding:4px 6px}
#roomTbl th{position:sticky;top:calc(var(--ahh, 62px) + 34px);z-index:4;background:var(--surface,#fff);box-shadow:0 1px 0 var(--line,#dde3ea)}
.ah.stk{position:sticky;top:var(--ahh, 62px);z-index:4;background:var(--surface,#fff);height:40px;box-sizing:border-box;padding:0;margin:0;display:flex;align-items:center;justify-content:space-between}
.dragging{opacity:.6}
/* жаңа брондау беті */
.np { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); }
.nbf { display: flex; flex-direction: column; gap: 12px; }
.nbc { background: var(--surface, #fff); border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 3px #0001; }
.nbc h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6a7686); display: flex; justify-content: space-between; align-items: center; }
.nbc label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted, #6a7686); }
.nbc label.chk { flex-direction: row; align-items: center; gap: 6px; color: inherit; font-size: 14px; }
.nbc label.chk.dim { opacity: .45 }
.nbc label.chk input { width: auto; }
.nrow { display: grid; gap: 10px; } .nrow.r2 { grid-template-columns: 1fr 1fr; } .nrow.r3 { grid-template-columns: 1fr 1fr 1fr; } .nrow.r4 { grid-template-columns: 1.2fr .8fr 1.2fr .8fr; }
.tar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.tc { border: 1.5px solid var(--line, #dde3ea); border-radius: 10px; padding: 9px 11px; cursor: pointer; }
.tc b { display: block; } .tc small { color: var(--muted, #6a7686); }
.tc.on { border-color: #1d6fb8; background: rgba(29, 111, 184, .09); }
.night { background: rgba(29, 111, 184, .12); color: #1d6fb8; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.night:empty { display: none; }
.nhint { font-size: 12.5px; color: var(--muted, #6a7686); margin-top: 6px; }
.nhint b { color: inherit; }
.kid { display: grid; grid-template-columns: 24px 110px auto auto 1fr 28px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line, #eef1f5); }
.kid.xb { grid-template-columns: 130px 80px 1fr; border-top: 1px solid var(--line, #dde3ea); margin-top: 6px; }
.kid .num { color: var(--muted, #8a96a6); }
.tag { border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
.tag.free { background: #e6f5ec; color: #1d7a46; } .tag.paid { background: #fff1dc; color: #a86100; }
.nadd { color: #1d6fb8; background: none; border: 0; cursor: pointer; font: inherit; padding: 6px 0; }
.nmore summary { cursor: pointer; font-weight: 600; color: #1d6fb8; }
.nsum { position: sticky; top: 12px; }
.nsum .big { font-size: 26px; font-weight: 700; }
.nsum .ln { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line, #eef1f5); font-size: 13.5px; }
.nsum .ln.sub span:first-child { padding-left: 12px; font-size: 12.5px; }
.nsum .note { background: #fff8e6; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; margin-top: 10px; color: #7a5a00; }
.nsum .actions { margin-top: 12px; } .nsum .actions button { width: 100%; padding: 12px; font-size: 16px; }
@media (max-width: 800px) { .nrow.r4, .nrow.r3 { grid-template-columns: 1fr 1fr; } .kid { grid-template-columns: 24px 1fr auto auto; } .nsum { position: static; } }
.lt{display:inline-flex;align-items:center;gap:0}
/* брондау картасының жоғарғы жолы: әрекеттер бір қатарда, қойындылар астында */
.ahead.bpage { display: block; padding-top: 12px; }
.bph1, .bph2 { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.bph1 .sp { flex: 1; }
.bph1 h2 { margin: 0; }
.bph1 .debt { border-radius: 999px; padding: 3px 12px; font-weight: 600; font-size: 13px; }
.bph1 .debt.neg { background: #fdecea; color: #b42318; } .bph1 .debt.pos { background: #e6f5ec; color: #1d7a46; }
.bph2 { margin-top: 8px; }
.bph2 .tabs { flex: 1; margin: 0; }
.bph2 .tsum { margin-left: auto; margin-bottom: 0; }
.docw { position: relative; display: inline-block; }
.docw #prnMenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 99; padding: 8px; display: flex; flex-direction: column; gap: 6px; width: max-content; max-width: 320px; }
.bpage #cancel { margin: 0; }
.svadd select { width: 100%; }
.svr { display: flex; align-items: center; gap: 10px; padding: 6px 10px; margin-top: 6px; border: 1px solid var(--line, #dde3ea); border-radius: 8px; }
.svr > span { flex: 1; } .svr input { width: 64px; }
.ebp { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px !important; margin-right: 8px; }
.ebp input { width: 90px; }
.seg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line, #eef1f5); }
.seg select { flex: 1; min-width: 200px; } .sgd { min-width: 190px; } .sgd input { width: 140px; }
.langbtn { font-size: 12px; font-weight: 700; letter-spacing: .03em; width: auto; padding: 0 9px; }
.nbc .tc.off { opacity: .45; cursor: not-allowed; }

.lded { max-width: 560px; }
.lded .lrow { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.lded .lrow input[type=text] { flex: 1; }
.lded .lrow input[type=color] { width: 40px; height: 34px; padding: 2px; border-radius: 8px; flex: none; }
.gsug { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--card, #fff); border: 1px solid var(--line, #d7dee6); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); max-height: 260px; overflow: auto; }
.gsug div { padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.gsug div:hover, .gsug div.on { background: var(--bg, #f3f6f9); }
.gsug small { color: var(--muted, #6b7785); white-space: nowrap; }
.chip.mk { border-left: 4px solid var(--mc, #7f8c8d); }
.chip.mk.on { background: var(--mc, #7f8c8d); color: #fff; border-color: var(--mc, #7f8c8d); }
.mkdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mc, #7f8c8d); margin-right: 3px; vertical-align: middle; }
.sepage { max-width: 980px; padding: 0 4px; }
.serow { display: flex; gap: 14px; align-items: center; margin: 8px 0 14px; }
.serow select { min-width: 280px; }
table.se { width: 100%; border-collapse: collapse; }
table.se th { text-align: left; font-size: 13px; color: var(--muted, #6b7785); padding: 6px 8px; }
table.se td { padding: 5px 8px; border-top: 1px solid var(--line, #e3e8ee); }
table.se .n, table.se th.n { text-align: right; white-space: nowrap; }
table.se tr.all td { background: var(--bg, #f3f6f9); }
table.se select { width: 100%; min-width: 150px; }
table.se input[type=number] { width: 96px; }
.semo { width: 90px; color: var(--muted, #6b7785); } .sed2 { width: 80px; white-space: nowrap; }
.seseg button { border: 1px solid var(--line, #d0d7de); background: none; padding: 1px 8px; cursor: pointer; font-size: 12px; }
.seseg button.on { background: var(--blue, #1d6fb8); color: #fff; border-color: var(--blue, #1d6fb8); }
.setot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 12px 0; font-size: 14px; }
.seit { font-size: 16px; }
.nne summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.nne .nebody { margin-top: 8px; overflow-x: auto; }
.agrid form.dirty,#afm.dirty{outline:2px solid var(--warn,#d97706)}
.nbc details.nne { margin-top: 10px; }
.nbc details.nne > summary { color: var(--accent, #2563eb); font-weight: 500; }
.mchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
/* қонақ үй жұмыс істемейтін ай: сұр штрих, брондар көрінеді */
.grid th.shut, .grid td.shut { background: repeating-linear-gradient(135deg, #eceff3 0 6px, #f5f6f8 6px 12px) !important; color: #98a1ad; }
.grid td.cell.shut { cursor: not-allowed; }
/* Қонақ үй профилі: сол жақта бөлімдер мәзірі, оң жақта біркелкі карточкалар */
.agrid:has(.hpage) { display: block; }
.hpage { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.hnav { position: sticky; top: calc(var(--ahh, 62px) + 12px); display: flex; flex-direction: column; gap: 2px; }
.hnav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13px; }
.hnav a:hover { background: var(--bg); color: inherit; }
.hbody { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.hcard { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; background: var(--surface); scroll-margin-top: calc(var(--ahh, 62px) + 12px); }
.hch { margin-bottom: 8px; }
.hh { margin: 0; font-size: 15px; }
.hd { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.hcard table.rules { width: 100%; margin-bottom: 8px; }
.hcard table.rules td:first-child { width: 38%; color: var(--muted); }
.hcard .lded { margin: 0; }
@media (max-width: 900px) { .hpage { grid-template-columns: 1fr; } .hnav { position: static; flex-direction: row; flex-wrap: wrap; } }
.hcard .lded p small { display: block; margin-top: 8px; }
/* Жұмыс істейтін айлар: ықшам тор, қосулы = көк толтырылған, өшірулі = сұр контур */
.mchips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 4px 0 14px; }
.mchips .chip { padding: 7px 4px; border-radius: 8px; font-size: 13px; text-align: center; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.mchips .chip.on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.omrange { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.omrange select { min-width: 130px; }
.omhint { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.omfoot { display: flex; justify-content: flex-end; margin-top: 12px; }
@media (max-width: 600px) { .mchips { grid-template-columns: repeat(3, 1fr); } }

/* Қолданушылар: сүзгі, соңғы кіру, тарих */
.sufl { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; align-items: center; }
.sufl input[type=search] { flex: 1 1 180px; min-width: 140px; }
.sufl .shd { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.ll { font-size: 12px; white-space: nowrap; }
.ll.never, .ll.old { color: var(--muted); }
.ll.old { font-weight: 700; color: #b35c00; }
.ll.stale { color: #8a6d00; }
.suhist .shl { max-height: 46vh; overflow: auto; }
.shk { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; background: var(--bg2, #eef1f4); white-space: nowrap; }
.shk.login { background: #e3f1e6; color: #1c6b34; }
.shk.profile { background: #e4edf8; color: #1e4f8a; }
.shk.rights { background: #fbe9d4; color: #96520a; }

/* Сома өрісі: ₸ (немесе %) белгісі әрқашан өрістің оң жағында, бір қатарда */
.mny { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; max-width: 100%; }
.mny input { min-width: 0; flex: 1 1 auto; }
.mny i { font-style: normal; flex: none; color: var(--muted, #6b7785); }
label > .mny { display: flex; margin-top: 2px; }
.qinl > .mny { flex: 1; min-width: 0; }
table.se td { white-space: nowrap; }

/* Рөлдер: құқықтар кестесі, мұрағат, көру режимі, құпиясөз көзі */
table.pmx td, table.pmx th { vertical-align: middle; }
.pmc { text-align: center !important; width: 78px; }
.pmr { display: inline-flex; cursor: pointer; }
.pmr input { position: absolute; opacity: 0; width: 0; height: 0; }
.pmd { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line, #cfd5dc); background: var(--surface, #fff); position: relative; }
.pmr input:checked + .pmd.full { background: #1c8a45; border-color: #1c8a45; }
.pmr input:checked + .pmd.view { background: #2a6cb5; border-color: #2a6cb5; }
.pmr input:checked + .pmd.none { background: #8a929c; border-color: #8a929c; }
.pmr input:checked + .pmd::after { content: '✓'; position: absolute; inset: 0; color: #fff; font-size: 15px; line-height: 22px; text-align: center; }
.pmr input:checked + .pmd.view::after { content: '👁'; font-size: 13px; line-height: 22px; }
.pmr input:checked + .pmd.none::after { content: '—'; }
.pmr input:focus-visible + .pmd { outline: 2px solid var(--accent); outline-offset: 2px; }
.pmr input:disabled + .pmd { opacity: .75; cursor: default; }
tr.arch td { color: var(--muted); }
tr.arch .ava { filter: grayscale(1); opacity: .6; }
dialog.roview .ahead::after { content: '👁 Тек көру режимі: өзгерту мүмкін емес'; font-size: 12px; padding: 3px 10px; border-radius: 12px; background: #e4edf8; color: #1e4f8a; }
dialog.roview button.primary:not(#cancel):not(.keep), dialog.roview button.sm:not(.keep), dialog.roview button.ib:not(.keep), dialog.roview .actions button:not(#cancel):not(.keep), dialog.roview #addU, dialog.roview #addR, dialog.roview #rTpl { display: none !important; }
dialog.roview input:not(.keep), dialog.roview textarea, dialog.roview select:not(.keep) { pointer-events: none; opacity: .75; }

/* Менің профилім */
.prsec { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.prsec h3 { margin: 0 0 8px; font-size: 15px; }
.prhist { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.prhist li { padding: 4px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.prhist li span:first-child { color: var(--muted); min-width: 130px; }
.tchip { display: inline-block; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--c); color: var(--c); font-size: 12px; font-weight: 600; }
.hklin { font-size: 12px; color: #1a5fb4; }
.tcom { color: var(--muted); }
.hkrow.tsk .hkact { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.sti.hkb a { display: inline-flex; align-items: center; gap: 6px; } .sti.hkb .hki svg { width: 15px; height: 15px; }
.hkpage .seg button.on .hki { color: #fff; } .hkpage .seg button.on .hki svg { fill: none; }

/* телефон: ықшам жоғарғы жол, бір бағанды беттер, төменгі панель */
@media (max-width: 800px) {
  .topbar { gap: 6px; padding: 0 8px; }
  .topbar .tright { gap: 2px; margin-left: auto; }
  .topbar .langbtn { display: none; }
  #newBtn { white-space: nowrap; padding: 0 12px; height: 34px; font-size: 14px; }
  #pgTitle { flex: 1 1 0; min-width: 0; }
  header { padding-block: 8px; gap: 6px 8px; }
  header .controls { gap: 6px; width: 100%; }
  header .controls .search { flex: 1 1 100%; }
  header .controls .search input { width: 100%; box-sizing: border-box; }
  #from { min-width: 0; flex: 1 1 120px; }
  .np { grid-template-columns: minmax(0, 1fr); }
  .nbf, .nbc, .npq { min-width: 0; }
  .tar { grid-template-columns: 1fr; }
  .nrow.r2 { grid-template-columns: 1fr 1fr; }
  .ahead.bpage .bph1, .ahead .bph1 { gap: 8px; }
  .ahead h2 { font-size: 20px; }
  .qp { overflow-x: hidden; max-width: 100vw; box-sizing: border-box; }
  .qbody { min-width: 0; }
  .qbody > * { min-width: 0; max-width: 100%; }
  .stats { padding: 4px 8px 0; }
  .stbody { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  body:not(.side-open) .side { box-shadow: none; visibility: hidden; transition: transform .15s, visibility 0s .15s; }
  .nrow > *, .nrow label { min-width: 0; }
  .nbc input, .nbc select, .nbc textarea { width: 100%; box-sizing: border-box; min-width: 0; }
  .nbc label.chk input { width: auto; }
  .nrow.r3, .nrow.r4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  table.rules, table.rtbl, .tblw table, .agrid table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tabs, .ahead .tabs, .bph2 .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; white-space: nowrap; scrollbar-width: none; }
  .tabs > * { flex: none; }
  .ahead { flex-wrap: wrap; }
  .agrid, .asec, .np, .tfp, .docwrap { min-width: 0; max-width: 100%; }
}
