/* Mehmonxona dizayn tizimi (2026-10-25, tasdiqlangan maket: Main / Shaxmatka / Mobil).
   RASTA app.css dan MUSTAQIL: mehmonxona sahifalari faqat shu faylni yuklaydi.
   `--accent` - mehmonxona brend rangi (sozlama), shablon `:root` da almashtiradi. */
:root{
  --accent:#0E7490;
  --accent-soft:color-mix(in srgb, var(--accent) 12%, #fff);
  --accent-ink:color-mix(in srgb, var(--accent) 70%, #0B1726);
  --ground:#F3F5F7; --surface:#FFFFFF; --line:#E3E7EC; --line-soft:#EEF1F4;
  --ink:#0B1726; --ink-2:#374151; --muted:#5B6675; --muted-2:#93A1B2;
  --side:#0B1726; --side-active:#16263A; --side-ink:#C9D2DD;
  --st-in:#0E7490; --st-paid:#4F6BED; --st-out:#8A94A3;
  --ok:#22A06B; --ok-bg:#E7F6EC; --ok-ink:#166534;
  --warn:#E8890C; --warn-bg:#FEF3E2; --warn-ink:#92400E;
  --info:#4F6BED; --info-bg:#EEF1FE; --info-ink:#3730A3;
  --grey:#8A94A3; --grey-bg:#EDEFF2; --grey-ink:#374151;
  --bad:#B42318; --bad-bg:#FDECEA;
  --r:16px; --r-sm:12px;
}
*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; }
body.mx{ background:var(--ground); color:var(--ink); font-family:Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric:tabular-nums; font-size:14px; line-height:1.45; }
.mx a{ color:var(--accent); }
.mx a:hover{ color:var(--accent-ink); }
.mx h1{ margin:0; font-size:28px; font-weight:800; letter-spacing:-.02em; }
.mx h2{ margin:0; font-size:17px; font-weight:700; }
.mx h3{ margin:0 0 10px; font-size:15px; font-weight:700; }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- qobiq: yon menyu + asosiy maydon ---------- */
.mx-shell{ min-height:100vh; display:flex; align-items:stretch; }
/* Yon menyu foni sahifaning butun bo'yi bo'ylab cho'ziladi (qator `stretch`),
   ichidagi menyu esa ekranga yopishib turadi. */
.mx-side{ flex:0 0 256px; align-self:stretch; background:var(--side); color:var(--side-ink); padding:24px 16px; }
.mx-side-ic{ position:sticky; top:24px; min-height:calc(100vh - 48px); display:flex; flex-direction:column; gap:28px; }
.mx-brand{ display:flex; align-items:center; gap:12px; padding:0 8px; color:#fff; text-decoration:none; }
.mx-logo{ width:40px; height:40px; flex:none; border-radius:12px; background:var(--accent); color:#fff; display:flex; align-items:center;
  justify-content:center; font-weight:800; font-size:18px; overflow:hidden; }
.mx-logo img{ width:100%; height:100%; object-fit:cover; }
.mx-brand-nom{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.mx-brand-nom b{ color:#fff; font-size:15px; font-weight:700; }
.mx-brand-nom span{ font-size:12px; color:var(--muted-2); }
.mx-nav{ display:flex; flex-direction:column; gap:4px; }
.mx-nav a{ display:flex; align-items:center; gap:12px; padding:11px 12px; min-height:44px; border-radius:10px; color:var(--side-ink);
  text-decoration:none; font-weight:500; font-size:14px; }
.mx-nav a:hover{ background:var(--side-active); color:#fff; }
.mx-nav a.on{ background:var(--side-active); color:#fff; font-weight:600; }
.mx-nav a span.t{ flex:1; }
.mx-nav .grp{ margin:14px 12px 4px; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted-2); }
.mx-badge{ background:#F59E0B; color:var(--ink); font-weight:700; font-size:12px; border-radius:999px; padding:2px 8px; }
.mx-user{ margin-top:auto; display:flex; align-items:center; gap:10px; padding:12px; border-radius:12px; background:var(--side-active);
  color:#fff; text-decoration:none; }
.mx-user:hover{ color:#fff; }
.mx-user b{ font-size:13px; font-weight:600; display:block; }
.mx-user span{ font-size:12px; color:var(--muted-2); }
.mx-main{ flex:1; min-width:0; padding:28px 32px 40px; display:flex; flex-direction:column; gap:24px; }

/* ---------- umumiy komponentlar ---------- */
.mx-head{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 16px; }
.mx-head .sar{ flex:1 1 280px; display:flex; flex-direction:column; gap:4px; min-width:0; }
.mx-head .sana{ font-size:13px; color:var(--muted); font-weight:600; }
.mx-back{ display:inline-flex; align-items:center; gap:8px; text-decoration:none; color:var(--muted) !important; font-weight:600; padding:10px 4px; }
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:20px; display:flex; flex-direction:column; gap:14px; min-width:0; }
.card-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.card-head a{ font-size:13px; font-weight:700; text-decoration:none; }
.grid-kpi{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:16px; }
.grid-2{ display:grid; grid-template-columns:repeat(auto-fit, minmax(380px, 1fr)); gap:16px; align-items:start; }
.row-wrap{ display:flex; flex-wrap:wrap; gap:16px; align-items:stretch; }
.muted{ color:var(--muted); }
.small{ font-size:12px; }
.num{ text-align:right; white-space:nowrap; }
.hint{ font-size:13px; color:var(--muted); margin:0; line-height:1.5; }

.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 18px; border-radius:var(--r-sm);
  border:1px solid #D5DBE2; background:var(--surface); color:var(--ink) !important; font:inherit; font-weight:700; font-size:14px;
  text-decoration:none; cursor:pointer; white-space:nowrap; }
.btn:hover{ border-color:var(--muted-2); }
.btn-accent{ background:var(--accent); border-color:var(--accent); color:#fff !important; }
.btn-accent:hover{ background:var(--accent-ink); border-color:var(--accent-ink); }
.btn-dark{ background:var(--ink); border-color:var(--ink); color:#fff !important; }
.btn-sm{ min-height:38px; padding:0 14px; font-size:13px; border-radius:10px; }
.btn-lg{ min-height:46px; }
.btn-block{ width:100%; }
.btn-danger{ color:var(--bad) !important; }
.icon-btn{ width:44px; height:44px; padding:0; }
form.inline{ display:inline; margin:0; }

.pill{ display:inline-flex; align-items:center; font-size:12px; font-weight:700; padding:4px 10px; border-radius:999px; white-space:nowrap; }
.p-in{ background:var(--accent-soft); color:var(--accent-ink); }
.p-ok{ background:var(--ok-bg); color:var(--ok-ink); }
.p-warn{ background:var(--warn-bg); color:var(--warn-ink); }
.p-info{ background:var(--info-bg); color:var(--info-ink); }
.p-grey{ background:var(--grey-bg); color:var(--grey-ink); }
.p-bad{ background:var(--bad-bg); color:var(--bad); }

.avatar{ width:40px; height:40px; flex:none; border-radius:999px; background:var(--accent-soft); color:var(--accent-ink); display:flex;
  align-items:center; justify-content:center; font-weight:700; font-size:13px; }
.avatar.lg{ width:48px; height:48px; font-weight:800; font-size:15px; }

.flash{ border-radius:var(--r-sm); padding:12px 16px; font-weight:600; font-size:14px; }
.flash.success{ background:var(--ok-bg); color:var(--ok-ink); }
.flash.error{ background:var(--bad-bg); color:var(--bad); }
.flash.warning{ background:var(--warn-bg); color:var(--warn-ink); }
/* Demo: katta banner o'rniga ekran tepasida osilgan kichik belgi (izoh - title). */
.mx-demo-nishon{ position:fixed; top:0; left:50%; transform:translateX(-50%); z-index:60; padding:3px 12px 4px; border-radius:0 0 8px 8px;
  background:var(--warn); color:#fff; font-size:11px; font-weight:800; letter-spacing:.14em; cursor:help; }
.mx-toast{ position:fixed; right:24px; bottom:24px; z-index:70; max-width:440px; display:flex; align-items:center; gap:12px;
  padding:12px 8px 12px 18px; border-radius:14px; background:var(--ink); color:#fff; font-weight:600; font-size:14px; line-height:1.45;
  box-shadow:0 16px 40px rgba(11,23,38,.25); animation:mx-toast .3s ease-out; }
.mx-toast button{ flex:none; width:40px; height:40px; border:0; border-radius:10px; background:rgba(255,255,255,.1); color:#fff;
  font-size:20px; line-height:1; cursor:pointer; }
.mx-toast button:hover{ background:rgba(255,255,255,.2); }
@keyframes mx-toast{ from{ opacity:0; transform:translateY(12px); } }

.search{ flex:1 1 280px; max-width:400px; display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-sm); padding:0 14px; height:46px; margin:0; }
.search input{ flex:1; border:0; outline:none; font:inherit; font-size:14px; background:transparent; color:var(--ink); min-width:0; height:100%; }

/* formalar */
.f-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:12px 14px; }
.field{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.field label, .lbl{ font-size:12px; color:var(--muted); font-weight:700; }
.mx input[type=text], .mx input[type=number], .mx input[type=date], .mx input[type=month], .mx input[type=password],
.mx input[type=file], .mx input[type=search].f, .mx select, .mx textarea{ width:100%; min-height:44px; border:1px solid #D5DBE2;
  border-radius:10px; padding:0 12px; font:inherit; font-size:14px; background:#fff; color:var(--ink); }
.mx input[type=file]{ padding:9px 12px; }
.mx input[type=color]{ width:56px; height:44px; border:1px solid #D5DBE2; border-radius:10px; background:#fff; padding:4px; }
.mx input:focus, .mx select:focus{ outline:2px solid var(--accent); outline-offset:1px; }
.f-actions{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
details.fold > summary{ cursor:pointer; font-weight:700; padding:6px 0; list-style:none; }
details.fold > summary::-webkit-details-marker{ display:none; }
details.fold > summary::before{ content:"+ "; color:var(--accent); }
details.fold[open] > summary::before{ content:"− "; }

/* jadval */
.tbl-wrap{ overflow-x:auto; }
.tbl{ width:100%; border-collapse:collapse; font-size:14px; }
.tbl th{ text-align:left; font-size:12px; color:var(--muted); font-weight:700; padding:8px 10px; border-bottom:1px solid var(--line); white-space:nowrap; }
.tbl td{ padding:12px 10px; border-bottom:1px solid var(--line-soft); vertical-align:middle; }
.tbl tfoot th, .tbl tfoot td{ border-top:1px solid var(--line); border-bottom:0; font-weight:800; color:var(--ink); font-size:14px; }
.empty{ padding:28px; text-align:center; color:var(--muted); border:1px dashed var(--line); border-radius:var(--r-sm); }
.kv{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; background:#F7F9FA; border-radius:var(--r-sm); padding:14px; }
.kv > div{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.kv span{ font-size:12px; color:var(--muted); font-weight:600; }
.kv b{ font-weight:700; overflow-wrap:anywhere; }
.narx-oldi:empty{ display:none; }
.narx-oldi{ background:var(--accent-soft); border-radius:var(--r-sm); padding:12px 14px; font-size:14px; }
.narx-oldi b{ font-size:18px; font-weight:800; }
.narx-oldi span{ color:var(--muted); }

/* ---------- bosh sahifa ---------- */
.kpi{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:20px; display:flex; flex-direction:column; gap:8px; }
.kpi .l{ font-size:13px; color:var(--muted); font-weight:600; }
.kpi .v{ font-size:34px; font-weight:800; letter-spacing:-.02em; line-height:1.1; }
.kpi .s{ font-size:12px; font-weight:600; color:var(--muted); }
.kpi .s.up{ color:var(--ok-ink); } .kpi .s.down{ color:var(--bad); } .kpi .s.warn{ color:var(--warn-ink); } .kpi .s.bad{ color:var(--bad); }
.kpi.ring{ flex-direction:row; align-items:center; gap:18px; }
.kpi.ring .v{ font-size:22px; }
.kpi.dark{ background:var(--ink); border-color:var(--ink); color:#fff; }
.kpi.dark .l, .kpi.dark .s{ color:#A9B6C6; }
.kpi.dark .v{ font-size:30px; }
.kpi.dark .v small{ font-size:15px; font-weight:600; color:#A9B6C6; }
.ring-svg text{ font-family:Manrope, sans-serif; }

.tabs{ display:flex; gap:6px; background:var(--ground); padding:4px; border-radius:10px; }
.tabs label{ border-radius:8px; padding:7px 12px; font-size:13px; font-weight:600; color:var(--muted); cursor:pointer; min-height:34px; display:flex; align-items:center; }
.tab-in{ position:absolute; opacity:0; pointer-events:none; }
/* Qatorlar ustunlari bitta to'r (subgrid): belgi va tugma har qatorda bir chiziqda. */
.tab-panel{ display:none; grid-template-columns:auto 40px minmax(0, 1fr) auto auto; column-gap:14px; }
.tab-panel > .empty{ grid-column:1 / -1; }
#t-kel:checked ~ .card-head label[for=t-kel], #t-ket:checked ~ .card-head label[for=t-ket], #t-ich:checked ~ .card-head label[for=t-ich]{
  background:#fff; color:var(--ink); font-weight:700; }
#t-kel:checked ~ .p-kel, #t-ket:checked ~ .p-ket, #t-ich:checked ~ .p-ich{ display:grid; }
.act-row{ grid-column:1 / -1; display:grid; grid-template-columns:48px 40px minmax(0, 1fr) 124px 132px; grid-template-columns:subgrid;
  align-items:center; padding:12px 4px; border-top:1px solid var(--line-soft); }
.act-row > .pill{ justify-self:start; }
.act-row > .btn, .act-row > form, .act-row > form .btn{ width:100%; }
.act-row .vaqt{ font-size:13px; font-weight:700; }
.act-row .who{ min-width:0; display:flex; flex-direction:column; gap:2px; }
.act-row .who b{ font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.act-row .who span{ font-size:12px; color:var(--muted); }
.act-row .who a{ color:var(--ink); text-decoration:none; }

.legend{ display:flex; flex-wrap:wrap; gap:8px 16px; font-size:12px; color:var(--ink-2); font-weight:600; }
.legend > span{ display:flex; align-items:center; gap:6px; }
.sw{ width:10px; height:10px; border-radius:3px; display:inline-block; flex:none; }
.sw.toza{ background:var(--ok); } .sw.iflos{ background:var(--warn); } .sw.tekshirildi{ background:var(--info); } .sw.tamirda{ background:var(--grey); }
.room-grid{ display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:8px; }
.room{ position:relative; }
.room > summary{ list-style:none; height:56px; border-radius:12px; border:1px solid; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:2px; cursor:pointer; font-weight:800; font-size:14px; }
.room > summary::-webkit-details-marker{ display:none; }
.room.toza > summary{ background:var(--ok-bg); color:var(--ok-ink); border-color:#B8E3C7; }
.room.iflos > summary{ background:var(--warn-bg); color:var(--warn-ink); border-color:#F6D9A8; }
.room.tekshirildi > summary{ background:var(--info-bg); color:var(--info-ink); border-color:#C9D1FA; }
.room.tamirda > summary{ background:var(--grey-bg); color:var(--grey-ink); border-color:#D5DBE2; }
.room-menu{ position:absolute; z-index:20; top:60px; left:50%; transform:translateX(-50%); width:180px; background:#fff; border:1px solid var(--line);
  border-radius:12px; box-shadow:0 12px 32px rgba(11,23,38,.16); padding:6px; display:flex; flex-direction:column; gap:2px; }
.room-menu button{ min-height:40px; border:0; background:transparent; border-radius:8px; text-align:left; padding:0 10px; font:inherit;
  font-weight:600; font-size:13px; cursor:pointer; display:flex; align-items:center; gap:8px; color:var(--ink); }
.room-menu button:hover, .room-menu button.on{ background:var(--ground); }

.bars{ display:flex; align-items:flex-end; gap:8px; height:160px; }
.bars > div{ flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; gap:6px; height:100%; justify-content:flex-end; }
.bars .p{ font-size:11px; font-weight:700; color:var(--ink-2); }
.bars .b{ width:100%; max-width:40px; border-radius:8px 8px 4px 4px; background:color-mix(in srgb, var(--accent) 28%, #fff); min-height:3px; }
.bars .b.hi{ background:var(--accent); } .bars .b.today{ background:var(--ink); }
.bars .d{ font-size:11px; color:var(--muted); font-weight:600; white-space:nowrap; }
.emehmon-card{ background:#FFF7EB; border:1px solid #F6D9A8; border-radius:var(--r); padding:20px; display:flex; flex-direction:column; gap:12px; }
.emehmon-card p{ margin:0; font-size:14px; line-height:1.5; color:#4A3410; }
.warn-ic{ width:36px; height:36px; border-radius:10px; background:#F59E0B; color:var(--ink); display:flex; align-items:center; justify-content:center; flex:none; }

/* ---------- shaxmatka ---------- */
.seg{ display:flex; gap:4px; background:#E9EDF1; padding:4px; border-radius:12px; }
.seg a{ border-radius:9px; padding:8px 14px; font-size:13px; font-weight:600; color:var(--muted) !important; text-decoration:none; min-height:36px; display:flex; align-items:center; }
.seg a.on{ background:#fff; color:var(--ink) !important; font-weight:700; }
.period{ display:flex; align-items:center; gap:4px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:4px; }
.period a{ width:36px; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; color:var(--ink) !important; }
.period a:hover{ background:var(--ground); }
.period span{ font-size:14px; font-weight:700; padding:0 8px; white-space:nowrap; }
.lg-bar{ width:22px; height:12px; border-radius:4px; display:inline-block; }
.k-in{ background:var(--st-in); color:#fff; }
.k-paid{ background:var(--st-paid); color:#fff; }
.k-unpaid{ background:#fff; color:var(--info-ink); border:2px dashed var(--st-paid); }
.k-out{ background:var(--st-out); color:#fff; }
.k-fix{ background:repeating-linear-gradient(45deg, #D5DBE2 0 6px, #EDEFF2 6px 12px); color:var(--grey-ink); }
.shx-wrap{ display:flex; flex-wrap:wrap; gap:16px; align-items:flex-start; }
.shx-card{ flex:999 1 640px; min-width:0; background:#fff; border:1px solid var(--line); border-radius:var(--r); overflow-x:auto; }
.shx{ min-width:var(--shx-w, 1036px); }
.shx-r{ display:flex; border-bottom:1px solid var(--line-soft); }
.shx-r.head{ border-bottom:1px solid var(--line); position:sticky; top:0; background:#fff; z-index:3; }
.shx-x{ width:140px; flex:none; padding:0 16px; display:flex; align-items:center; gap:10px; position:sticky; left:0; background:#fff; z-index:2;
  border-right:1px solid var(--line-soft); }
.shx-x b{ font-size:15px; font-weight:800; }
.shx-r.head .shx-x{ font-size:12px; font-weight:700; color:var(--muted); padding:12px 16px; }
.shx-days{ flex:1; display:grid; grid-template-columns:repeat(var(--kun), minmax(0, 1fr)); position:relative; }
.shx-day{ display:flex; flex-direction:column; align-items:center; gap:1px; padding:8px 0; border-left:1px solid var(--line-soft); }
.shx-day .w{ font-size:11px; font-weight:700; color:var(--muted); }
.shx-day .w.dam{ color:#B45309; }
.shx-day .n{ font-size:15px; font-weight:800; }
.shx-day .o{ font-size:10px; font-weight:700; color:var(--muted); }
.shx-day.bugun{ background:var(--accent-soft); }
.shx-day.bugun .w, .shx-day.bugun .n{ color:var(--accent); }
.shx-grp{ padding:8px 16px; background:#F7F9FA; border-bottom:1px solid var(--line-soft); font-size:12px; font-weight:800; color:var(--ink-2);
  letter-spacing:.04em; text-transform:uppercase; position:sticky; left:0; }
.shx-r.room-row{ height:52px; }
.shx-c{ border-left:1px solid var(--line-soft); display:block; }
.shx-c:hover{ background:color-mix(in srgb, var(--accent) 10%, transparent); }
.shx-c.bugun{ background:#F2FAFB; }
.shx-r.tamir .shx-days{ background:repeating-linear-gradient(45deg, #EDEFF2 0 6px, #F7F8FA 6px 12px); }
.shx-bar{ position:absolute; top:7px; height:38px; border-radius:10px; padding:3px 10px; display:flex; flex-direction:column; justify-content:center;
  overflow:hidden; text-decoration:none; z-index:1; }
.shx-bar b{ font-weight:700; font-size:13px; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.shx-bar span{ font-size:11px; line-height:1.3; opacity:.85; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.shx-bar.k-in, .shx-bar.k-paid, .shx-bar.k-out{ color:#fff !important; }
.shx-bar.k-unpaid{ color:var(--info-ink) !important; }
.shx-bar.sel{ box-shadow:0 0 0 3px var(--ink); }
.panel{ flex:1 1 300px; max-width:380px; background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:20px; display:flex; flex-direction:column; gap:16px; }
.folio-l{ display:flex; justify-content:space-between; gap:12px; font-size:14px; }
.folio-l span:first-child{ color:var(--ink-2); }
.folio-l b.minus{ color:var(--ok-ink); }
.folio-sum{ display:flex; justify-content:space-between; align-items:baseline; border-top:1px solid var(--line); padding-top:12px; }
.folio-sum b{ font-size:22px; font-weight:800; }
.note-ok{ display:flex; align-items:center; gap:10px; padding:12px; border-radius:12px; background:var(--ok-bg); color:var(--ok-ink); font-size:13px; font-weight:700; }
.note-warn{ display:flex; align-items:center; gap:10px; padding:12px; border-radius:12px; background:var(--warn-bg); color:var(--warn-ink); font-size:13px; font-weight:700; }

/* ---------- xonalar holati sahifasi ---------- */
.hk-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:12px; }
.hk{ border-radius:14px; border:1px solid; padding:12px; display:flex; flex-direction:column; gap:10px; }
.hk.toza{ background:var(--ok-bg); border-color:#B8E3C7; } .hk.iflos{ background:var(--warn-bg); border-color:#F6D9A8; }
.hk.tekshirildi{ background:var(--info-bg); border-color:#C9D1FA; } .hk.tamirda{ background:var(--grey-bg); border-color:#D5DBE2; }
.hk-top{ display:flex; justify-content:space-between; align-items:center; gap:8px; }
.hk input[type=text]{ grid-column:1 / -1; min-height:40px; font-size:13px; }
.hk-tasks{ display:flex; flex-direction:column; gap:10px; }
.hk-task{ display:grid; grid-template-columns:72px minmax(0,1fr) auto; gap:14px; align-items:center; padding:12px 14px;
  border:1px solid var(--line); border-left:6px solid var(--warn); border-radius:var(--r-sm); background:var(--surface); }
.hk-task.toza{ border-left-color:var(--ok); }
.hk-task.kunlik{ border-left-color:var(--accent); }
.hk-task-xona{ display:flex; flex-direction:column; }
.hk-task-xona b{ font-size:24px; font-weight:800; line-height:1.1; }
.hk-task-xona span, .hk-task-nima > span{ font-size:12px; color:var(--muted); }
.hk-task-nima{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.hk-task-amal{ display:flex; gap:8px; margin:0; flex-wrap:wrap; justify-content:flex-end; }
.hk-top b{ font-size:22px; font-weight:800; }
.hk form{ display:grid; grid-template-columns:1fr 1fr; gap:6px; margin:0; }
.hk form button{ min-height:44px; border:1px solid rgba(11,23,38,.12); background:rgba(255,255,255,.7); border-radius:10px; font:inherit; font-size:12px;
  font-weight:700; color:var(--ink); cursor:pointer; }
.hk form button.on{ background:var(--ink); color:#fff; border-color:var(--ink); }

/* ---------- telefon ---------- */
.mx-top, .mx-tabbar, .only-m{ display:none; }
@media (max-width: 640px){
  .mx-side{ display:none; }
  .mx-main{ padding:16px 16px 96px; gap:16px; }
  .mx h1{ font-size:22px; }
  .only-d{ display:none !important; }
  .only-m{ display:flex; }
  .mx-top{ display:flex; flex-direction:column; gap:18px; background:var(--side); color:#fff; padding:24px 20px 22px; border-radius:0 0 24px 24px;
    margin:-16px -16px 0; }
  .mx-top .row{ display:flex; align-items:center; gap:12px; }
  .mx-top .row .mx-brand-nom span{ color:#A9B6C6; }
  .mx-top .ic{ width:44px; height:44px; border-radius:12px; background:var(--side-active); color:#fff; display:flex; align-items:center;
    justify-content:center; position:relative; }
  .mx-top .ic i{ position:absolute; top:9px; right:10px; width:8px; height:8px; border-radius:999px; background:#F59E0B; }
  .mx-stats{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
  .mx-stats div{ background:var(--side-active); border-radius:14px; padding:12px; display:flex; flex-direction:column; gap:2px; }
  .mx-stats b{ font-size:22px; font-weight:800; }
  .mx-stats span{ font-size:11px; color:#A9B6C6; font-weight:600; }
  .m-card{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px; display:flex; flex-direction:column; gap:12px; }
  .m-card .top{ display:flex; align-items:center; gap:12px; }
  .m-room{ width:44px; height:44px; border-radius:12px; background:var(--accent-soft); color:var(--accent-ink); display:flex; align-items:center;
    justify-content:center; font-size:15px; font-weight:800; flex:none; }
  .m-card .who{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .m-card .who b{ font-size:15px; font-weight:800; }
  .m-card .who span{ font-size:12px; color:var(--muted); }
  .m-card .acts{ display:flex; gap:8px; }
  .m-card .acts form{ flex:1; display:flex; margin:0; }
  .mx-tabbar{ display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); position:fixed; left:0; right:0; bottom:0; z-index:50;
    background:#fff; border-top:1px solid var(--line); padding:8px 6px calc(10px + env(safe-area-inset-bottom)); }
  .mx-tabbar a{ display:flex; flex-direction:column; align-items:center; gap:4px; padding:6px 0; min-height:48px; text-decoration:none;
    color:var(--muted) !important; font-size:11px; font-weight:600; }
  .mx-tabbar a.on{ color:var(--accent) !important; font-weight:700; }
  .mx-tabbar a.plus{ justify-content:center; }
  .mx-tabbar a.plus span{ width:52px; height:52px; margin-top:-24px; border-radius:18px; background:var(--ink); color:#fff; display:flex;
    align-items:center; justify-content:center; }
  .room-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
  .bars{ gap:4px; height:130px; }
  .bars .hk-w, .bars .p{ display:none; }
  .grid-2{ grid-template-columns:minmax(0, 1fr); }
  .act-row .vaqt{ display:none; }
  .panel{ max-width:none; }
  .kv{ grid-template-columns:minmax(0, 1fr); }
  .hk-task{ grid-template-columns:60px minmax(0,1fr); }
  .hk-task-amal{ grid-column:1 / -1; }
  .hk-task-amal .btn{ flex:1; }
}

/* ---------- kirish sahifasi ---------- */
.login{ min-height:100vh; display:grid; grid-template-columns:minmax(0, 1.15fr) minmax(0, 1fr); }
.login-hero{ display:flex; align-items:center; padding:56px clamp(32px, 5vw, 80px); color:#fff;
  background:radial-gradient(110% 90% at 0% 0%, color-mix(in srgb, var(--accent) 45%, var(--side)) 0%, var(--side) 62%); }
.login-hero-ic{ width:100%; max-width:540px; display:flex; flex-direction:column; gap:24px; }
.login-tag{ align-self:flex-start; padding:6px 12px; border:1px solid rgba(255,255,255,.2); border-radius:999px; color:#C9D8E6;
  font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.mx .login-hero h1{ color:#fff; font-size:clamp(32px, 3.4vw, 46px); line-height:1.08; }
.login-lead{ margin:0; color:#C9D2DD; font-size:16px; line-height:1.55; max-width:460px; }
.login-afzal{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:16px; }
.login-afzal li{ display:flex; align-items:flex-start; gap:14px; }
.login-afzal svg{ flex:none; width:40px; height:40px; padding:10px; border-radius:12px; background:rgba(255,255,255,.09); color:#fff; }
.login-afzal span{ display:flex; flex-direction:column; gap:2px; color:#A9B6C6; font-size:14px; line-height:1.45; }
.login-afzal b{ color:#fff; font-size:15px; font-weight:700; }
.login-vizual{ display:flex; flex-direction:column; gap:8px; padding:16px; border-radius:16px; background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1); }
.lv-r{ display:grid; grid-template-columns:34px minmax(0, 1fr); align-items:center; gap:10px; font-size:12px; color:#A9B6C6; }
.lv-d{ position:relative; height:24px; border-radius:6px; background:rgba(255,255,255,.04); }
.lv-d i{ position:absolute; top:2px; bottom:2px; margin-left:2px; border-radius:6px; }
.lv-d i.k-unpaid{ background:transparent; border:2px dashed #8EA2F5; }
.login-panel{ display:flex; align-items:center; justify-content:center; padding:40px 24px; }
.login-card{ width:100%; max-width:420px; background:#fff; border:1px solid var(--line); border-radius:20px; padding:32px 28px; display:flex;
  flex-direction:column; gap:18px; box-shadow:0 24px 48px rgba(11,23,38,.08); }
.login-card .mx-brand{ color:var(--ink); padding:0; }
.login-card .mx-brand-nom b{ color:var(--ink); font-size:17px; }
.login-card .mx-brand-nom span{ color:var(--muted); }
.login-demo{ display:flex; flex-direction:column; gap:10px; padding:16px; border-radius:14px; background:var(--accent-soft); }
.login-demo b{ color:var(--accent-ink); font-size:15px; }
.login-demo span{ color:var(--ink-2); font-size:13px; }
.login-demo form{ margin:0; }
.login-yoki{ display:flex; align-items:center; gap:12px; color:var(--muted); font-size:12px; font-weight:600; }
.login-yoki::before, .login-yoki::after{ content:""; flex:1; border-top:1px solid var(--line); }
.login-forma{ display:flex; flex-direction:column; gap:14px; margin:0; }
.login-alt{ display:flex; align-items:center; justify-content:center; min-height:44px; font-weight:700; text-decoration:none; }
.login-til{ display:flex; justify-content:center; gap:6px; margin:0; }
.login-til button{ min-height:44px; padding:0 16px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--muted);
  font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.login-til button.on{ background:var(--ink); border-color:var(--ink); color:#fff; }
@media (max-width: 900px){
  .login{ grid-template-columns:minmax(0, 1fr); }
  .login-panel{ order:-1; padding:24px 16px 8px; }
  .login-hero{ padding:32px 20px 40px; margin-top:16px; }
  .login-vizual{ display:none; }
  .mx .login-hero h1{ font-size:28px; }
}

/* ---------- chop etish ---------- */
@media print{
  .mx-side, .mx-tabbar, .mx-top, .no-print{ display:none !important; }
  .mx-main{ padding:0; }
  body.mx{ background:#fff; }
}

/* RASTA asosidagi sahifalar (/settings, /staff, /payroll) mehmonxona qobig'ida:
   app.css tokenlari mehmonxona palitrasiga, serif sarlavha va mono jadval - Manrope. */
.mx-rasta{ --paper:var(--ground); --card:var(--surface); --good:var(--ok); --nav-bg:var(--ink); --nav-fg:#fff;
  --shadow:rgba(11,23,38,.06); font-family:Manrope, system-ui, sans-serif; }
.mx-rasta h1, .mx-rasta h2, .mx-rasta h3, .mx-rasta h4{ font-family:Manrope, system-ui, sans-serif; font-weight:800; letter-spacing:-.01em; }
.mx-rasta *{ font-family:inherit; }
.mx-rasta .page-head{ border-bottom:0; padding-bottom:0; }
.mx-rasta .card{ border-radius:var(--r); border-color:var(--line); box-shadow:0 1px 2px var(--shadow); }
/* jadval ichidagi absolute (ko'rinmas) yorliqlar sahifani telefonda yonga surmasin */
.mx-rasta .table-scroll{ position:relative; }
.mx-rasta table.jadval th{ background:#F7F9FA; color:var(--muted); text-transform:none; letter-spacing:0; font-size:12px; font-weight:700; }
.mx-rasta .btn.primary{ box-shadow:none; }
.mx-rasta .holat.mid{ background:var(--accent-soft); }
.mx-rasta .btn.primary{ background:var(--accent); border-color:var(--accent); color:#fff; }

/* ---------- Sozlamalar bo'limi (2-bosqich): chap menyu + savol-kartalar ---------- */
.soz-shell{ display:grid; grid-template-columns:232px minmax(0, 1fr); gap:24px; align-items:start; }
.soz-menu{ position:sticky; top:24px; display:flex; flex-direction:column; gap:2px; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); padding:8px; }
.soz-menu a{ display:flex; flex-direction:column; gap:1px; padding:10px 12px; border-radius:10px; text-decoration:none; color:var(--ink) !important;
  font-weight:600; font-size:14px; min-height:44px; justify-content:center; }
.soz-menu a span{ font-size:11px; color:var(--muted); font-weight:500; }
.soz-menu a:hover{ background:var(--ground); }
.soz-menu a.on{ background:var(--accent-soft); color:var(--accent-ink) !important; }
.soz-menu hr{ border:0; border-top:1px solid var(--line-soft); margin:6px 4px; }
.soz-body{ display:flex; flex-direction:column; gap:16px; min-width:0; }
/* Uzun sahifa guruhi (details): kompyuterda ochiq, telefonda yopiq - sarlavhada yozuvlar soni */
.soz-guruh{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r); min-width:0; }
.soz-guruh > summary{ list-style:none; cursor:pointer; display:flex; align-items:center; gap:10px; min-height:44px; padding:14px 20px; }
.soz-guruh > summary::-webkit-details-marker{ display:none; }
.soz-guruh > summary h2{ margin:0; flex:1; min-width:0; }
.soz-guruh > summary::after{ content:""; flex:none; width:9px; height:9px; margin:0 4px 4px; border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted); transform:rotate(45deg); transition:transform .15s; }
.soz-guruh[open] > summary::after{ transform:rotate(-135deg); margin-bottom:-4px; }
.soz-guruh > summary:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; border-radius:var(--r); }
.soz-son{ flex:none; min-width:26px; height:24px; padding:0 8px; border-radius:999px; background:var(--accent-soft); color:var(--accent-ink);
  font-size:12px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; }
.soz-ichi{ padding:0 20px 20px; display:flex; flex-direction:column; gap:14px; }
.mx [hidden]{ display:none !important; }
.soz-rejim{ display:inline-flex; gap:4px; background:#E9EDF1; padding:4px; border-radius:12px; }
.soz-rejim button{ border:0; background:transparent; border-radius:9px; padding:0 14px; min-height:36px; font:inherit; font-size:13px;
  font-weight:600; color:var(--muted); cursor:pointer; }
.soz-rejim button.on{ background:#fff; color:var(--ink); font-weight:700; }
.sq-list{ display:flex; flex-direction:column; }
.sq{ display:grid; grid-template-columns:minmax(0, 1fr) minmax(200px, 300px); gap:12px 24px; padding:16px 0; border-top:1px solid var(--line-soft); }
.sq:first-child{ border-top:0; padding-top:4px; }
.sq-savol{ font-weight:700; font-size:14px; color:var(--ink); display:block; }
.sq-misol{ font-size:13px; color:var(--ink-2); background:#F7F9FA; border-left:3px solid var(--accent); border-radius:0 8px 8px 0;
  padding:6px 10px; margin-top:6px; }
.sq-help{ font-size:12px; color:var(--muted); margin-top:6px; line-height:1.5; }
.sq-meta{ display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.sq-ong{ display:flex; align-items:flex-start; gap:8px; }
.sq-ong > *{ flex:1 1 0; min-width:0; }
.sq-ong .birlik{ flex:none; align-self:center; font-size:13px; color:var(--muted); font-weight:600; }
.switch{ position:relative; display:inline-flex; align-items:center; gap:10px; cursor:pointer; min-height:44px; flex:none !important; }
.switch input{ position:absolute; opacity:0; width:1px; height:1px; }
.switch .sl{ width:46px; height:26px; border-radius:999px; background:#CBD3DC; position:relative; transition:background .15s; flex:none; }
.switch .sl::after{ content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:999px; background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.2); transition:left .15s; }
.switch input:checked + .sl{ background:var(--accent); }
.switch input:checked + .sl::after{ left:23px; }
.switch input:focus-visible + .sl{ outline:2px solid var(--accent); outline-offset:2px; }
.switch b{ font-size:13px; }
.hafta{ display:flex; flex-wrap:wrap; gap:6px; }
.hafta label{ display:inline-flex; align-items:center; gap:6px; border:1px solid #D5DBE2; border-radius:10px; padding:0 10px; min-height:40px;
  font-size:13px; font-weight:600; cursor:pointer; background:#fff; }
.hafta input{ width:16px; height:16px; accent-color:var(--accent); }
.hafta label:has(input:checked){ background:var(--accent-soft); border-color:var(--accent); color:var(--accent-ink); }
.soz-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:14px; }
.soz-tile{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:18px; display:flex; flex-direction:column;
  gap:6px; text-decoration:none; color:var(--ink) !important; min-height:118px; }
.soz-tile:hover{ border-color:var(--accent); box-shadow:0 6px 18px rgba(11,23,38,.06); }
.soz-tile b{ font-size:15px; }
.soz-tile span{ font-size:13px; color:var(--muted); }
.soz-tile em{ margin-top:auto; font-style:normal; font-size:12px; font-weight:700; color:var(--accent-ink); }
.usta-banner{ background:var(--ink); color:#fff; border-radius:var(--r); padding:18px 20px; display:flex; flex-wrap:wrap; gap:12px 20px;
  align-items:center; }
.usta-banner p{ margin:0; flex:1 1 280px; color:#C9D2DD; font-size:14px; }
.usta-banner b{ color:#fff; display:block; font-size:16px; margin-bottom:2px; }
.usta-qadamlar{ display:flex; gap:6px; flex-wrap:wrap; list-style:none; margin:0; padding:0; counter-reset:q; }
.usta-qadamlar li{ counter-increment:q; display:flex; align-items:center; gap:8px; padding:6px 12px 6px 6px; border-radius:999px; background:#E9EDF1;
  font-size:13px; font-weight:600; color:var(--muted); }
.usta-qadamlar li::before{ content:counter(q); width:24px; height:24px; border-radius:999px; background:#fff; display:flex; align-items:center;
  justify-content:center; font-size:12px; font-weight:800; color:var(--ink); }
.usta-qadamlar li.on{ background:var(--accent); color:#fff; }
.usta-qadamlar li.on::before{ color:var(--accent); }
.usta-qadamlar li.ok{ background:var(--ok-bg); color:var(--ok-ink); }
.row-edit{ border:1px solid var(--line-soft); border-radius:var(--r-sm); padding:12px; display:flex; flex-direction:column; gap:10px; }
.row-edit.off{ background:#F7F9FA; }
.row-edit.qator{ flex-direction:row; flex-wrap:wrap; align-items:flex-end; }
.row-edit.qator > form:first-child{ flex:1 1 560px; }
.opt-row{ display:grid; grid-template-columns:minmax(140px, 2fr) repeat(auto-fit, minmax(110px, 1fr)); gap:10px 12px;
  align-items:end; }
.row-edit > .top{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.jurnal-tbl td{ vertical-align:top; font-size:13px; }
.jurnal-tbl .q{ color:var(--muted); font-size:12px; overflow-wrap:anywhere; max-width:420px; }
.sahifalash{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
@media (max-width: 900px){
  .soz-shell{ grid-template-columns:minmax(0, 1fr); }
  .soz-menu{ position:static; flex-direction:row; overflow-x:auto; padding:6px; gap:4px; scrollbar-width:none; }
  .soz-menu a{ flex:none; min-height:40px; padding:8px 12px; white-space:nowrap; }
  .soz-menu a span, .soz-menu hr{ display:none; }
  .sq{ grid-template-columns:minmax(0, 1fr); }
}

/* Telefon: barmoq bilan bosiladigan hamma narsa kamida 44px (fayl oxirida - yuqoridagi qoidalardan ustun). */
@media (max-width: 640px){
  .btn-sm, .seg a, .tabs label, .soz-rejim button, .soz-menu a, .room-menu button, .hafta label{ min-height:44px; }
  .period a{ width:44px; height:44px; }
  .card-head a, .mx-back, .tbl td a{ display:inline-flex; align-items:center; min-height:44px; }
  .m-card .who{ min-height:44px; justify-content:center; }
  .mx input[type=text], .hk input[type=text]{ min-height:44px; }
  details.fold > summary{ display:flex; align-items:center; min-height:44px; }
  .shx-bar{ top:4px; height:44px; }
  .mx-toast{ left:16px; right:16px; bottom:calc(88px + env(safe-area-inset-bottom)); max-width:none; }
  .mx-toast button{ width:44px; height:44px; }
}
