/* To‘yxona sahifalari (views/toy/*, toyBronKarta, toyPanelBlok). Faqat html.theme-toyxona da yuklanadi
   (views/partials/head.hbs). Ranglar — tokenlar (public/css/toyxona-theme.css). Telefon birinchi:
   360px da gorizontal siljish yo‘q, tugmalar ≥44px, matn ≥0.75rem. Rangli chekka chizig‘i yo‘q. */

/* ——— Tepa panel: ravoq va qandil banneri (salon-shell.css dagi kelin o‘rniga) ———
   Qisqartma + !important — salon-shell.css dagi qoida ham shunday (style.css `.navbar` qisqartmasi). */
html.theme-toyxona .navbar.fixed-top {
  background:
    url('/images/toyxona-banner-ravoq.svg') left center / auto 100% no-repeat,
    var(--bg-surface) !important;
  border-bottom: 1px solid var(--primary-tint);
}
html.theme-toyxona .navbar-brand { color: var(--primary); -webkit-text-fill-color: var(--primary); }
html.theme-toyxona .navbar .nav-link.active { color: var(--primary); }

/* ——— Umumiy ——— */

.toy-sahifa {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  min-width: 0;
}

.toy-orqaga {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 44px;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}
.toy-orqaga:hover { color: var(--primary); }

.toy-bosh {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
}
.toy-bosh p { margin: 0; }
.toy-bosh .bi { font-size: 2rem; color: var(--primary); }
.toy-bosh__izoh { font-size: 0.875rem; }

.toy-izoh { margin: 0; color: var(--text-muted); font-size: 0.875rem; }

.toy-bolim-sarlavha {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.toy-bolim-sarlavha span { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; }

/* Holat yorlig‘i — matn rangi bilan (chekka chizig‘i emas) */
.toy-yorliq {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.toy-yorliq--asosiy,
.toy-yorliq--tasdiqlangan { background: var(--primary-soft); color: var(--primary); }
.toy-yorliq--bosh,
.toy-yorliq--otkazildi { background: var(--success-soft); color: var(--success-strong); }
.toy-yorliq--ogoh,
.toy-yorliq--kutilmoqda { background: var(--warning-soft); color: var(--warning-strong); }
.toy-yorliq--band { background: var(--bg-subtle); color: var(--text-strong); }
.toy-yorliq--xavf,
.toy-yorliq--bekor,
.toy-yorliq--kelmadi { background: var(--danger-soft); color: var(--danger-strong); }

/* ——— Kalendar (bosh sahifa) ——— */

.toy-kalendar {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}
@media (min-width: 992px) {
  .toy-kalendar {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
  }
  .toy-kun-panellar { position: sticky; top: calc(var(--navbar-h, 58px) + 0.75rem); }
}

.toy-oy-karta,
.toy-kun-panel,
.toy-bolim,
.toy-bosh-karta,
.toy-pul-karta,
.toy-tarix,
.toy-katalog,
.toy-zal,
.toy-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
}

.toy-oy-karta { padding: 0.75rem; }

.toy-oy-bosh {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.toy-oy-bosh__nom {
  margin: 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}
.toy-oy-bosh__tugma {
  width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.toy-oy-bugun {
  display: block;
  margin: -0.25rem 0 0.4rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.toy-hafta,
.toy-oy {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}
.toy-hafta span {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 0.15rem;
}
.toy-hafta .is-dam { color: var(--accent-hover); }

.toy-kun {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.1rem;
  padding: 0.25rem 0.1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-surface);
  color: var(--text-main);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.toy-kun:hover { border-color: var(--primary-light); color: var(--text-main); }
.toy-kun:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.toy-kun__son { font-weight: 700; font-size: 1rem; line-height: 1; }
.toy-kun__smenalar { display: flex; gap: 2px; width: 70%; max-width: 2.2rem; }
.toy-kun--bosh { border-color: transparent; background: transparent; cursor: default; }
.toy-kun--bugun .toy-kun__son { color: var(--primary); }
.toy-kun--bugun { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.toy-kun--otgan { background: var(--bg-muted); color: var(--text-light); }
.toy-kun--otgan .toy-kun__smenalar { opacity: 0.55; }
.toy-kun--tola { background: var(--bg-subtle); }
.toy-kun--tanlangan,
.toy-kun--tanlangan:hover {
  border-color: transparent;
  background: var(--grad-primary);
  color: var(--text-white);
}
.toy-kun--tanlangan .toy-kun__son { color: var(--text-white); }
.toy-kun--tanlangan .toy-chiziq--bosh { background: rgb(255 255 255 / 0.45); }
.toy-kun--tanlangan .toy-chiziq--qisman,
.toy-kun--tanlangan .toy-chiziq--tola { background: var(--text-white); }
button.toy-kun:disabled { cursor: not-allowed; }
button.toy-kun:disabled .toy-kun__son { color: var(--text-light); }
button.toy-kun--tola:disabled .toy-kun__son { text-decoration: line-through; }

/* Smena chizig‘i: bo‘sh — och, qisman — yarim, band — to‘liq rang */
.toy-chiziq {
  display: inline-block;
  flex: 1 1 0;
  height: 5px;
  min-width: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--success) 50%, white);
}
.toy-chiziq--bosh { background: color-mix(in srgb, var(--success) 50%, white); }
.toy-chiziq--qisman { background: var(--primary-light); }
.toy-chiziq--tola { background: var(--primary); }

.toy-izoh-qator {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  margin: 0.6rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.toy-izoh-qator span { display: inline-flex; align-items: center; gap: 0.3rem; }
.toy-izoh-qator .toy-chiziq { flex: 0 0 1rem; width: 1rem; }
.toy-izoh-qator__iz { flex-basis: 100%; }

.toy-kun-panel { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.75rem; scroll-margin-top: calc(var(--navbar-h, 58px) + 0.5rem); }
.toy-kun-panel__bosh {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.6rem;
}
.toy-kun-panel__bosh h2 { margin: 0; font-size: 1.1rem; font-weight: 700; }

.toy-smena { display: flex; flex-direction: column; gap: 0.4rem; }
.toy-smena__nom {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}
.toy-smena__nom span { color: var(--text-muted); font-weight: 500; font-size: 0.85rem; }

.toy-joy {
  display: grid;
  grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-body-alt);
  color: var(--text-main);
  text-decoration: none;
}
.toy-joy--band { background: var(--bg-surface); }
a.toy-joy:hover { border-color: var(--primary-light); color: var(--text-main); }
.toy-joy__zal {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
.toy-joy__kim { display: flex; flex-direction: column; min-width: 0; }
.toy-joy__kim strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toy-joy__kim small { color: var(--text-muted); font-size: 0.8rem; }
.toy-joy__bosh { color: var(--success-strong); font-weight: 700; }
.toy-joy__pul { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.toy-joy__pul small { color: var(--text-muted); font-size: 0.75rem; }
.toy-joy__pul b { font-size: 0.95rem; }
.toy-joy__tugma { min-height: 40px; padding-inline: 0.8rem; white-space: nowrap; }
@media (max-width: 520px) {
  .toy-joy { grid-template-columns: minmax(0, 1fr) auto; }
  .toy-joy__zal { grid-column: 1 / -1; font-size: 0.8rem; }
  .toy-joy__tugma { grid-column: 1 / -1; justify-self: stretch; min-height: 44px; }
}

/* ——— Bronlar ro‘yxati ——— */

.toy-qidiruv {
  position: relative;
  display: flex;
  align-items: center;
}
.toy-qidiruv > .bi-search {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
}
.toy-qidiruv .form-control { padding-left: 2.4rem; padding-right: 2.6rem; min-height: 46px; font-size: 1rem; }
.toy-qidiruv__tozala {
  position: absolute;
  right: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}

.toy-tablar {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.1rem;
}
.toy-tablar::-webkit-scrollbar { display: none; }
.toy-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}
.toy-tab.is-active {
  background: var(--grad-primary);
  color: var(--text-white);
  border-color: transparent;
}

.toy-royxat {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}
@media (min-width: 1200px) {
  .toy-sahifa > .toy-royxat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.toy-karta {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  color: var(--text-main);
  text-decoration: none;
}
.toy-karta:hover { border-color: var(--primary-light); color: var(--text-main); box-shadow: var(--shadow-sm); }
.toy-karta--yopiq { background: var(--bg-body-alt); }
.toy-karta--yopiq .toy-karta__ism { color: var(--text-muted); }

.toy-karta__sana {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0;
  border-radius: 10px;
  background: var(--primary-wash);
  border: 1px solid var(--primary-tint);
  color: var(--primary);
  line-height: 1.1;
}
.toy-karta__sana b { font-size: 1.3rem; }
.toy-karta__sana span { font-size: 0.75rem; font-weight: 700; text-transform: lowercase; }
.toy-karta__sana small { font-size: 0.75rem; color: var(--text-muted); }

.toy-karta__asosiy { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.toy-karta__ism {
  font-weight: 700;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toy-karta__qator { color: var(--text-secondary); font-size: 0.875rem; overflow-wrap: anywhere; }
.toy-karta__belgilar { display: flex; flex-wrap: wrap; gap: 0.25rem 0.35rem; align-items: center; }
.toy-karta__tadbir { color: var(--text-muted); font-size: 0.8rem; }

.toy-karta__pul { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.toy-karta__pul small { color: var(--text-muted); font-size: 0.75rem; }
.toy-karta__pul b { font-size: 1rem; white-space: nowrap; }
.toy-karta__tolandi { color: var(--success-strong); font-weight: 700; font-size: 0.8rem; white-space: nowrap; }

@media (max-width: 400px) {
  .toy-karta { grid-template-columns: 3rem minmax(0, 1fr); }
  .toy-karta__pul { grid-column: 2; flex-direction: row; gap: 0.35rem; align-items: baseline; justify-content: flex-start; }
}

.toy-yana { align-self: center; min-height: 44px; }

/* ——— Bron sahifasi ——— */

.toy-bosh-karta { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; }
.toy-bosh-karta__yuqori {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
}
.toy-bosh-karta__yuqori .page-toolbar__title { margin: 0; overflow-wrap: anywhere; }
.toy-bosh-karta__sana {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.toy-bosh-karta__izoh {
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: var(--bg-muted);
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.toy-malumot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
}
.toy-malumot div { min-width: 0; }
.toy-malumot dt { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.toy-malumot dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.toy-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .toy-malumot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.toy-pul-karta { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.9rem; }
.toy-hisob { display: flex; flex-direction: column; }
.toy-hisob__qator {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border-dashed);
}
.toy-hisob__qator span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.toy-hisob__qator small { color: var(--text-muted); font-size: 0.8rem; }
.toy-hisob__qator b { white-space: nowrap; }
.toy-hisob__qator--jami { border-bottom-style: solid; font-size: 1.05rem; }
.toy-hisob__qator--qoldi { border-bottom: 0; font-size: 1.2rem; color: var(--primary); }
.toy-hisob__qator--qoldi.is-yopiq { color: var(--success-strong); }

.toy-amallar { display: flex; flex-direction: column; gap: 0.5rem; }
.toy-amallar__asosiy { min-height: 3.1rem; font-size: 1.05rem; font-weight: 700; }
.toy-amallar__qator {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.25rem), 1fr));
  gap: 0.5rem;
}
.toy-amallar__qator > .btn,
.toy-amallar__yana { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; }
.toy-amallar__qator .dropdown { display: flex; justify-self: end; width: 48px; }
.toy-amallar__yana { width: 100%; padding: 0; }
.toy-amallar__yana-matn { display: none; }
@media (max-width: 575.98px) {
  .toy-amallar__qator { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .toy-amallar__qator > .dropdown { grid-column: 1 / -1; width: auto; justify-self: stretch; }
  .toy-amallar__yana-matn { display: inline; }
}

.toy-tarix { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.25rem; }
.toy-tarix__qator {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border-dashed);
}
.toy-tarix__qator:last-child { border-bottom: 0; }
.toy-tarix__qator span { display: flex; flex-direction: column; }
.toy-tarix__qator small { color: var(--text-muted); font-size: 0.8rem; }
.toy-tarix__qator b { white-space: nowrap; color: var(--success-strong); }
.toy-tarix__qator.is-chiqim b { color: var(--danger); }

.toy-modal-izoh { margin: 0; color: var(--text-secondary); }
.toy-tez { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.toy-tez .btn { min-height: 40px; }

@media (min-width: 992px) {
  .toy-bron-sahifa {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.9fr);
    align-items: start;
  }
  .toy-bron-sahifa > .toy-orqaga,
  .toy-bron-sahifa > .toy-tarix,
  .toy-bron-sahifa > .toy-idish { grid-column: 1 / -1; }
  .toy-bron-sahifa > .toy-pul-karta {
    position: sticky;
    top: calc(var(--navbar-h, 58px) + 0.75rem);
  }
}

.toy-idish__qator {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border-dashed);
}
.toy-idish__qator:last-child { border-bottom: 0; }
.toy-idish__nom { display: flex; flex-direction: column; }
.toy-idish__nom small { color: var(--text-muted); font-size: 0.875rem; }
.toy-idish__topshir { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.toy-idish__topshir .form-control { flex: 1 1 8rem; min-width: 0; }
.toy-idish__topshir .btn { min-height: 44px; }
.toy-idish__ochir { min-height: 44px; padding-inline: 0; }
.toy-idish-tanlov { display: flex; flex-direction: column; gap: 0.4rem; max-height: 16rem; overflow: auto; }
.toy-idish-opt { position: relative; display: block; margin: 0; cursor: pointer; }
.toy-idish-opt input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.toy-idish-opt span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-surface);
}
.toy-idish-opt small { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; }
.toy-idish-opt input:checked + span {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.toy-idish-opt input:checked + span b { color: var(--primary); }
.toy-idish-opt input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.toy-ombor-son {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.toy-ombor-son b { color: var(--primary); font-weight: 700; }

/* ——— Bron formasi ——— */

.toy-forma-sahifa .page-toolbar__title { margin: 0; }
@media (max-width: 991.98px) {
  /* Yopishqoq «Saqlash» va pastki menyu oxirgi maydonni yopmasin */
  .toy-forma-bron { padding-bottom: calc(var(--bottomnav-h, 3.6rem) + 5.75rem); }
}
.toy-xato { margin: 0; display: flex; gap: 0.5rem; align-items: flex-start; }

.toy-forma-ustunlar { display: grid; gap: 0.85rem; min-width: 0; }
.toy-forma-ustun { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
@media (min-width: 992px) {
  .toy-forma-ustunlar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .toy-forma-ustun:first-child { position: sticky; top: calc(var(--navbar-h, 58px) + 0.75rem); }
}

.toy-bolim { padding: 0.85rem; display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }
.toy-bolim .form-label { margin: 0.2rem 0 0; font-weight: 600; }
.toy-bolim__nom { margin: 0; font-size: 1.05rem; font-weight: 700; }
.toy-bolim__nom small { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; }

.toy-zal-karta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  background: var(--bg-surface);
  min-width: 0;
}
.toy-zal-karta__bosh { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.toy-zal-karta__nom { margin: 0; font-size: 1.05rem; font-weight: 700; }
.toy-zal-karta__ol { min-height: 44px; padding: 0 0.25rem; }
.toy-zal-qosh { width: 100%; min-height: 44px; }
.toy-hisob__zal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-color);
}
.toy-hisob__zal b { font-size: 1rem; }
.toy-hisob__zal small { color: var(--text-muted); }
.toy-hisob__bekor { min-height: 44px; padding: 0; }
.toy-hisob__zal-nom { margin: 0.75rem 0 0.25rem; font-size: 1rem; font-weight: 700; }

.toy-chiplar { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.toy-chiplar--ixcham { gap: 0.35rem; }
.toy-chip { position: relative; margin: 0; }
.toy-chip input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.toy-chip span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 46px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-chip);
  background: var(--bg-surface);
  font-weight: 600;
  cursor: pointer;
  line-height: 1.25;
}
.toy-chip small { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; }
.toy-chip input:checked + span {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.toy-chip input:checked + span small { color: var(--primary); }
.toy-chip input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.toy-chip--kichik span { min-height: 40px; padding: 0.3rem 0.7rem; font-size: 0.9rem; }

.toy-mini-kalendar { margin-top: 0.25rem; }
.toy-oy--mini .toy-kun { min-height: 2.9rem; }
.toy-yuklanmoqda { grid-column: 1 / -1; margin: 1rem 0; text-align: center; color: var(--text-muted); }

.toy-smena-tanlov {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr));
  gap: 0.45rem;
}
.toy-smena-opt { position: relative; margin: 0; }
.toy-smena-opt input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.toy-smena-opt > span {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-height: 3.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-chip);
  background: var(--bg-surface);
  cursor: pointer;
  line-height: 1.25;
}
.toy-smena-opt small { color: var(--text-muted); font-size: 0.8rem; }
.toy-smena-opt em { font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--success-strong); }
.toy-smena-opt input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.toy-smena-opt input:checked + span b { color: var(--primary); }
.toy-smena-opt input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.toy-smena-opt.is-band > span { background: var(--bg-muted); cursor: not-allowed; }
.toy-smena-opt.is-band b,
.toy-smena-opt.is-band small { color: var(--text-light); }
.toy-smena-opt.is-band em { color: var(--danger); }

.toy-tanlov-xulosa {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: var(--bg-muted);
  color: var(--text-muted);
  font-weight: 600;
}
.toy-tanlov-xulosa.is-tayyor { background: var(--primary-wash); color: var(--primary); }

.toy-mijoz-topildi { margin: 0; font-size: 0.85rem; color: var(--success-strong); font-weight: 600; }
.toy-paket-tavsif {
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-size: 0.875rem;
  white-space: pre-line;
}

.toy-ikki { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 0.6rem; }
.toy-ikki > div { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.toy-ikki > [hidden] { display: none; }
.toy-qulf { background: var(--bg-muted); color: var(--text-secondary); }

.toy-xizmatlar { display: flex; flex-direction: column; gap: 0.4rem; }
.toy-xizmat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
}
.toy-xizmat.is-tanlangan { border-color: var(--primary-light); background: var(--primary-wash); }
.toy-xizmat__bosh {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
}
.toy-xizmat__bosh .form-check-input { width: 1.3rem; height: 1.3rem; margin: 0; flex: 0 0 auto; }
.toy-xizmat__nom { flex: 1 1 auto; font-weight: 600; min-width: 0; }
.toy-xizmat__narx { color: var(--text-secondary); font-weight: 600; white-space: nowrap; }
.toy-xizmat__summa { margin-bottom: 0.45rem; }

.toy-yigma { padding: 0; gap: 0; }
.toy-yigma > summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.toy-yigma > summary::-webkit-details-marker { display: none; }
.toy-yigma > summary small { color: var(--text-muted); font-weight: 500; }
.toy-yigma > :not(summary) { margin: 0 0.85rem 0.85rem; width: calc(100% - 1.7rem); }
.toy-yigma > .toy-oddiy-forma { margin-top: 0; }

/* Pastki yopishqoq panel: telefonda pastki menyu ustida, klaviatura ochilganda pastda */
.toy-pastki {
  position: sticky;
  bottom: 0.75rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 767.98px) {
  .toy-pastki { bottom: calc(var(--bottomnav-h, 3.6rem) + 0.5rem); }
}
html.kb-open .toy-pastki { bottom: 0.5rem; }
.toy-pastki__hisob { display: flex; flex-wrap: wrap; gap: 0.1rem 0.9rem; min-width: 0; font-size: 0.8rem; color: var(--text-muted); }
.toy-pastki__hisob span { display: flex; flex-direction: column; }
.toy-pastki__hisob b { font-size: 1.05rem; color: var(--text-main); white-space: nowrap; }
.toy-pastki__tugma { flex: 0 0 auto; min-height: 48px; padding-inline: 1.1rem; font-weight: 700; }

/* ——— Zallar, paketlar, xizmatlar ——— */

.toy-zallar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 0.75rem;
}
.toy-zal { overflow: hidden; display: flex; flex-direction: column; }
.toy-zal--yopiq { opacity: 0.75; }
.toy-zal__rasm,
.toy-zal__harf { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.toy-zal__harf {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-wash);
  color: var(--primary);
  font-size: 2.4rem;
  font-weight: 800;
}
.toy-zal__tana { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1 1 auto; }
.toy-zal__matn { min-width: 0; }
.toy-zal__matn h2 { margin: 0 0 0.15rem; font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }
.toy-zal__matn p { margin: 0; color: var(--text-muted); }
.toy-zal__izoh { margin-top: 0.25rem !important; font-size: 0.875rem; }
.toy-zal__amallar { display: flex; gap: 0.5rem; margin-top: auto; }
.toy-zal__amallar .btn { flex: 1 1 0; min-height: 44px; }

.toy-katalog { padding: 0.75rem 0.85rem; display: flex; flex-direction: column; gap: 0.35rem; }
.toy-katalog--yopiq { background: var(--bg-body-alt); }
.toy-katalog__bosh { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 0.75rem; align-items: baseline; }
.toy-katalog__bosh h2 { margin: 0; font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.toy-katalog__bosh b { color: var(--primary); white-space: nowrap; }
.toy-katalog__izoh { margin: 0; color: var(--text-muted); font-size: 0.875rem; }
.toy-katalog__tavsif { margin: 0; color: var(--text-secondary); white-space: pre-line; font-size: 0.9rem; }
.toy-katalog__tahrir > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.toy-oddiy-forma { display: flex; flex-direction: column; gap: 0.45rem; }
.toy-oddiy-forma .form-label { margin: 0.2rem 0 0; font-weight: 600; }
.toy-oddiy-forma > .btn { align-self: flex-start; min-height: 44px; margin-top: 0.35rem; padding-inline: 1.25rem; }
@media (max-width: 575.98px) {
  .toy-oddiy-forma > .btn { align-self: stretch; }
}

/* ——— Admin panel / xodim sahifasi «To‘ylar» bloki ——— */

.toy-panel { padding: 0.85rem; display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1rem; }
.toy-panel__statlar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.5rem;
}
.toy-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-body-alt);
  color: var(--text-main);
  text-decoration: none;
  min-width: 0;
}
.toy-stat:hover { border-color: var(--primary-light); color: var(--text-main); }
.toy-stat span { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.toy-stat b { font-size: 1.15rem; overflow-wrap: anywhere; }
.toy-stat small { font-size: 0.75rem; color: var(--text-muted); }
.toy-stat--xavf b { color: var(--danger); }
.toy-stat--ogoh b { color: var(--warning-strong); }
.toy-panel__kunlar { display: grid; gap: 0.9rem; }
@media (min-width: 992px) {
  .toy-panel__kunlar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.toy-panel__kun { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.toy-panel__bosh { margin: 0; color: var(--text-muted); }
.toy-panel__kalendar { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; gap: 0.35rem; }

/* ——— Sozlamalar: smenalar ——— */

.soz-smenalar { display: flex; flex-direction: column; gap: 0.5rem; }
.soz-smena {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
}
.soz-smena .form-check { margin: 0; min-height: 44px; display: flex; align-items: center; gap: 0.5rem; }
.soz-smena__vaqt { display: flex; align-items: center; gap: 0.35rem; }
.soz-smena__vaqt .form-control { width: 5.4rem; text-align: center; font-size: 1rem; }
.soz-stol { max-width: 6rem; font-size: 1rem; }
.soz-ochiq { min-height: 44px; display: flex; align-items: center; }

/* ——— Ijrochilar (sozanda, tamada, ofitsiant…) ——— */

.toy-ij-jami {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--primary-tint);
  border-radius: var(--radius-card);
  background: var(--primary-wash);
  color: var(--primary);
  font-weight: 600;
}
.toy-ij-jami b { font-size: 1.15rem; white-space: nowrap; }
.toy-ij-guruh { display: flex; flex-direction: column; gap: 0.5rem; }

.toy-ij {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  color: var(--text-main);
  text-decoration: none;
}
.toy-ij:hover { border-color: var(--primary-light); color: var(--text-main); box-shadow: var(--shadow-sm); }
.toy-ij--yopiq { background: var(--bg-body-alt); opacity: 0.8; }
.toy-ij__harf {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary-wash);
  border: 1px solid var(--accent);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
}
.toy-ij__asosiy { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.toy-ij__ism { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toy-ij__qator { color: var(--text-secondary); font-size: 0.875rem; }
.toy-ij__belgilar { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.toy-ij__pul { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.toy-ij__pul small { color: var(--text-muted); font-size: 0.75rem; }
.toy-ij__pul b { white-space: nowrap; }
@media (max-width: 400px) {
  .toy-ij { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .toy-ij__pul { grid-column: 2; flex-direction: row; gap: 0.35rem; align-items: baseline; }
}

.toy-amallar__qator--ikki { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.toy-amallar__qator--ikki .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; }
.toy-amallar__ikkinchi { min-height: 44px; font-weight: 600; }
.toy-havola { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding-top: 0.25rem; }
.toy-havola .form-control { font-size: 0.875rem; }
.toy-havola .btn { min-height: 44px; }

.toy-ij-tanlov { display: flex; flex-direction: column; gap: 0.35rem; }
.toy-ij-tanlov__nom { margin: 0.35rem 0 0; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.toy-ij-narx { display: flex; flex-direction: column; gap: 0.3rem; padding-bottom: 0.45rem; }
.toy-ij-narx[hidden] { display: none; }
.toy-ij-narx .toy-xizmat__summa { margin-bottom: 0; }
.toy-ij-haq > summary { font-size: 0.85rem; color: var(--primary); cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.toy-ij-haq .form-control { margin-top: 0.25rem; }
.toy-ij-tg { color: var(--warning-strong); font-weight: 600; font-size: 0.75rem; }

.toy-ogoh {
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: var(--warning-wash);
  color: var(--warning-strong);
  font-weight: 600;
  font-size: 0.875rem;
}
.toy-yorliq--boraman { background: var(--success-soft); color: var(--success-strong); }
.toy-yorliq--bandman { background: var(--danger-soft); color: var(--danger-strong); }

.toy-hisob__qator--qosh { align-items: center; }
.toy-hisob__qator--qosh form { margin: 0; }
.toy-hisob__ong { display: inline-flex; align-items: center; gap: 0.15rem; flex: 0 0 auto; }
.toy-hisob__ochir {
  width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--text-muted);
}
.toy-hisob__ochir:hover { color: var(--danger); }
.toy-tarix__qator a { font-weight: 600; text-decoration: none; }
