/* ===== نوبت‌یار — استایل اصلی ===== */
:root {
  --pri: #2563eb; --pri-d: #1d4ed8; --ok: #16a34a; --ok-d: #15803d; --bad: #dc2626; --bad-d: #b91c1c;
  --acc: #f59e0b; --pink: #db2777; --ink: #0f172a; --sub: #475569; --mute: #64748b;
  --bg: #f1f5f9; --card: #fff; --line: #e2e8f0; --field: #cbd5e1; --ring: #93c5fd;
  --r: 14px; --shadow: 0 1px 3px #0f172a0d;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: Vazirmatn, "IRANSans", Tahoma, system-ui, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.8;
  padding-bottom: env(safe-area-inset-bottom);
}
main { flex: 1; width: 100%; }
[hidden] { display: none !important; }
a { color: var(--pri); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
img { max-width: 100%; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: 0; transform: translateY(-150%); right: 8px; background: var(--acc); color: #111; padding: 6px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { transform: translateY(8px); }

/* ----- تایپوگرافی ----- */
h1, .h1 { font-size: 30px; line-height: 1.5; margin: .4em 0; }
h2, .h2 { font-size: 22px; line-height: 1.6; margin: .8em 0 .4em; }
h3, .h3 { font-size: 18px; line-height: 1.6; margin: 1em 0 .5em; }
.center { text-align: center; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.big { font-size: 28px; display: block; font-weight: 800; }
.in { display: inline !important; }

/* ----- نوار بالا ----- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--ink); padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
}
.nav nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.nav a, .navform button { color: #e2e8f0; padding: 6px 12px; border-radius: 999px; font-size: 14px; background: none; border: 0; line-height: 1.6; }
.nav a:hover, .navform button:hover { background: #ffffff1a; text-decoration: none; }
.nav .brand { color: var(--acc); font-weight: 800; font-size: 18px; padding: 0; white-space: nowrap; }
.navform { margin: 0; display: inline; }

/* ----- فوتر ----- */
.foot { background: #e2e8f0; color: var(--sub); font-size: 13px; margin-top: 24px; }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 14px; }

/* ----- قهرمان صفحه اصلی ----- */
.hero { text-align: center; padding: 44px 18px; margin: -16px -16px 18px; background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #fff; border-radius: 0 0 28px 28px; }
.hero p { max-width: 560px; margin: 8px auto 18px; color: #cbd5e1; }
.herolinks a { color: var(--acc); font-weight: bold; }
.btns { display: flex; gap: 12px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.hero .btn { background: var(--acc); color: #111; }
.hero .btn.alt { background: #fff; color: var(--ink); }
.hero .btn.pink { background: #ec4899; color: #fff; }

/* ----- دکمه‌ها ----- */
button { font: inherit; cursor: pointer; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--pri); color: #fff;
  border: 0; border-radius: 12px; padding: 12px 22px; min-height: 46px; cursor: pointer; font: inherit; font-weight: 600;
  transition: background .15s, transform .1s; text-decoration: none !important;
}
.btn:hover { background: var(--pri-d); }
.btn:active { transform: scale(.97); }
.btn.alt { background: var(--ok); } .btn.alt:hover { background: var(--ok-d); }
.btn.pink { background: var(--pink); }
.btn.ghost { background: #eff6ff; color: var(--pri); }
.big-btn { min-width: 160px; font-size: 16px; }
.btn-s {
  display: inline-flex; align-items: center; justify-content: center; background: #e2e8f0; color: var(--ink); border: 0; border-radius: 10px;
  padding: 8px 14px; min-height: 40px; font: inherit; cursor: pointer; font-size: 14px; text-decoration: none !important;
}
.btn-s:hover { background: #cbd5e1; }
button.ok, button.bad { color: #fff; border: 0; border-radius: 10px; padding: 8px 14px; min-height: 40px; font-size: 14px; }
button.ok { background: var(--ok); } button.ok:hover { background: var(--ok-d); }
button.bad { background: var(--bad); } button.bad:hover { background: var(--bad-d); }
button.link { background: none; border: 0; color: var(--pri); padding: 8px; }
button:disabled { opacity: .55; cursor: not-allowed; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
form.busy button[type=submit] { opacity: .7; }

/* ----- کارت و چیدمان ----- */
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 12px 0; box-shadow: var(--shadow); color: inherit; }
a.card { transition: transform .15s, box-shadow .15s; text-decoration: none; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px #0f172a1a; }
a.card.dim { opacity: .6; }
.card small { display: block; color: var(--mute); }
.card b { display: block; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid .card { margin: 0; }
.stats .card { padding: 12px; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 24px; }
.feat { text-align: center; } .feat span { font-size: 32px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two.tight { gap: 8px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.narrow { max-width: 480px; margin-inline: auto; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.row form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.row input { width: 190px; margin: 0; }
.appt > div:first-child > * { display: block; }
.appt > div:first-child > .badge { display: inline-block; margin: 4px 0; }
.is-past { opacity: .8; }
.errbox { padding: 32px 16px; }
.crumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.panelhead { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 4px 0 8px; }
.panelhead b { font-size: 17px; }
.shophead h1 { margin: 0 0 4px; }

/* ----- فرم ----- */
label { font-size: 14px; color: var(--sub); }
fieldset.plain { border: 0; padding: 0; margin: 8px 0 0; min-width: 0; }
fieldset.plain legend { font-size: 14px; color: var(--sub); padding: 0; }
input, select, textarea {
  width: 100%; padding: 11px 12px; margin: 6px 0; border: 1px solid var(--field); border-radius: 12px;
  font: inherit; font-size: 16px; background: #fff; color: var(--ink); min-height: 46px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ring); border-color: var(--pri); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; margin: 0 0 0 4px; accent-color: var(--pri); }
input[dir=ltr] { text-align: left; }
input.otp { font-size: 24px; letter-spacing: 8px; text-align: center; }
.chk { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 6px 0; }
.chk label { display: inline-flex; align-items: center; gap: 4px; }
.search { display: flex; gap: 8px; } .search input { flex: 1; }
form.card > small { margin-top: 8px; }

/* ----- پیام‌ها و برچسب‌ها ----- */
.flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 12px; background: #fee2e2; color: #991b1b; }
.flash.ok { background: #dcfce7; color: #166534; }
.flash.warn { background: #fef3c7; color: #92400e; }
.flash a { color: inherit; text-decoration: underline; }
.badge { display: inline-block; padding: 2px 12px; border-radius: 999px; background: #e2e8f0; color: var(--sub); font-size: 12px; white-space: nowrap; line-height: 1.8; }
.badge.confirmed, .badge.attended { background: #dcfce7; color: #166534; }
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.rejected, .badge.no_show, .badge.cancelled_by_barber, .badge.cancelled_by_customer { background: #fee2e2; color: #991b1b; }
.badge.expired { background: #e2e8f0; color: #475569; }
.pill { display: inline-block; background: var(--acc); color: #111; border-radius: 999px; padding: 2px 12px; font-size: 12px; font-weight: bold; }
.pill.pink { background: #fbcfe8; color: #9d174d; }

/* ----- انتخاب روز و ساعت ----- */
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.day { border: 1px solid var(--field); background: #fff; border-radius: 12px; padding: 8px 14px; min-height: 44px; line-height: 1.5; text-align: center; color: var(--ink); min-width: 64px; }
.day:hover { border-color: var(--pri); text-decoration: none; }
.day.sel { background: var(--pri); color: #fff; border-color: var(--pri); }
.cardno { font-size: 22px; letter-spacing: 2px; background: #eff6ff; padding: 10px; border-radius: 12px; text-align: center; user-select: all; direction: ltr; }
.tm { font-weight: 800; font-size: 18px; display: inline-block; min-width: 64px; }

/* ----- تب‌ها ----- */
.tabs { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tabs a { flex: none; padding: 8px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; }
.tabs a:hover { text-decoration: none; border-color: var(--pri); }
.tabs a.on { background: var(--pri); color: #fff; border-color: var(--pri); }

/* ----- جدول ----- */
.tbl { overflow-x: auto; background: #fff; border-radius: 14px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 10px; border-bottom: 1px solid #f1f5f9; text-align: right; font-size: 14px; white-space: nowrap; }
th { background: #f8fafc; color: var(--sub); font-weight: 600; }
tbody tr:hover { background: #f8fafc; }
details summary { cursor: pointer; }
details table { margin-top: 8px; }

/* ----- مدیریت ----- */
.bcard.off { opacity: .7; border-color: #fca5a5; }
.bcard .row > div:first-child small { display: block; }
.stat { display: flex; gap: 6px; flex-wrap: wrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.actions form, .inl { display: flex; gap: 6px; align-items: center; margin: 0; }
.actions select, .inl select { width: auto; margin: 0; min-height: 40px; padding: 6px 10px; }

/* ----- اشتراک ----- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.plan { position: relative; display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 16px 10px; cursor: pointer; color: var(--ink); }
.plan input { position: absolute; opacity: 0; }
.plan:has(input:checked) { border-color: var(--pri); background: #eff6ff; }
.plan:has(input:focus-visible) { outline: 3px solid var(--ring); }
.plan .price { font-size: 20px; font-weight: 800; }
.plan del { color: #94a3b8; font-size: 13px; }

/* ----- انتخاب نوع آرایشگاه ----- */
.kindcard { padding: 28px 16px; }
.kindcard span { font-size: 44px; display: block; }
.kindcard b { font-size: 20px; }
.kindcard.women { border-color: #f9a8d4; background: #fdf2f8; }

/* ----- خدمات ----- */
.svc { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin: 6px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.svc span { flex: 1; } .svc small { color: var(--mute); }
.svc:has(input:checked) { border-color: var(--pri); background: #eff6ff; }
.svform, .svhead { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr auto; gap: 8px; align-items: center; }
.svform input { margin: 0; }
.svform label.f { display: block; margin: 0; }
.svform label.f span { display: none; font-size: 12px; color: var(--mute); }
.svform.new { border-style: dashed; }
.svhead { padding: 0 17px; font-size: 13px; color: var(--mute); }

/* ----- صفحه QR ----- */
.qrpage { background: #fff; display: block; }
.qrbar { padding: 12px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.sheet { width: 210mm; max-width: 100%; min-height: 297mm; margin: 0 auto; padding: 30mm 15mm; text-align: center; background: #fff; }
.sheet img { width: 140mm; max-width: 100%; height: auto; aspect-ratio: 1; }
.sheet h1 { font-size: 40px; } .sheet p { font-size: 30px; font-weight: bold; }
@media print {
  .noprint { display: none !important; }
  body { background: #fff; }
  .sheet { padding: 25mm 15mm; min-height: auto; }
  @page { size: A4; margin: 0; }
}

/* ----- آرایشگرها، روزهای تعطیل ----- */
.staffopt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.staffopt input { margin: 0; }
.staffopt:has(input:checked) { background: var(--pri); color: #fff; border-color: var(--pri); }
.staffbar { margin-bottom: 10px; }
.day.closed, .day:disabled { background: #f1f5f9; color: #94a3b8; border-style: dashed; cursor: not-allowed; }
a.day.closed { cursor: pointer; }
.day.closed.sel { background: #64748b; color: #fff; }
.day small { font-size: 11px; display: block; line-height: 1.2; }
.row .grow { flex: 1; min-width: 200px; }
.row .grow input { width: 100%; }
form.row.new { border-style: dashed; }

/* ----- ساعت کاری ----- */
details.hours summary { color: var(--pri); font-size: 14px; }
table.mini { min-width: 0; width: auto; margin-top: 6px; }
table.mini th, table.mini td { padding: 3px 10px; border: 0; background: none; font-size: 13px; }
.hours-tbl table { min-width: 640px; }
.hours-tbl td, .hours-tbl th { padding: 6px; }
.hours-tbl input[type=time] { margin: 0; min-height: 40px; padding: 6px 8px; font-size: 15px; }
.hrow.is-off input[type=time] { opacity: .35; }
.jdate select { margin: 0; }

/* ----- قوانین و فرم‌ها ----- */
.consent { font-size: 13px; color: var(--sub); align-items: flex-start; flex-wrap: nowrap; }
.consent input { margin-top: 6px; }
.legal { max-width: 820px; margin-inline: auto; padding: 20px 24px; }
.legal ul { padding-inline-start: 20px; margin: .4em 0; }
.legal li { margin: .3em 0; }
.legal b { display: inline; }
.foot nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
code { background: #e2e8f0; padding: 1px 6px; border-radius: 6px; font-size: 90%; }


/* ----- امتیاز (ستاره‌ها) ----- */
.st { color: #f59e0b; letter-spacing: 1px; }
.st.off { color: #cbd5e1; }
.rating { display: block; font-size: 14px; color: var(--sub); }
.rating b { display: inline !important; color: var(--ink); }
.rating small { display: inline !important; }
.rating.none { color: var(--mute); font-size: 13px; }
.card .rating { margin: 2px 0; }
.shoprating { margin: 0 0 4px; }
.shoprating .rating { font-size: 16px; }
.pinmark { display: inline-block; background: #fef3c7; color: #92400e; border-radius: 999px; padding: 0 10px; font-size: 12px; font-weight: bold; margin-bottom: 4px; }
a.card.pinned, .bcard.pinned { border-color: #fcd34d; box-shadow: 0 0 0 1px #fcd34d inset, var(--shadow); }
.ratecard { padding: 24px 16px; }
.bigstars { font-size: 40px; line-height: 1.2; margin: 8px 0; }
.starpick { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 8px 0; }
.starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.starpick label { font-size: 44px; line-height: 1; color: #cbd5e1; cursor: pointer; padding: 4px; transition: transform .1s, color .1s; }
.starpick label:hover, .starpick label:hover ~ label, .starpick input:checked ~ label { color: #f59e0b; }
.starpick input:checked + label { transform: scale(1.12); }
.starpick input:focus-visible + label { outline: 3px solid var(--ring); border-radius: 8px; }

/* ----- مشتری ثابت، توضیحات، یادآوری ----- */
.loyal { display: inline-block !important; background: #fef3c7; color: #92400e; border-radius: 999px; padding: 0 10px; font-size: 12px; font-weight: bold; margin: 2px 0; }
td .loyal { display: block !important; width: fit-content; }
.note { background: #f8fafc; border-inline-start: 3px solid var(--acc); padding: 2px 8px; border-radius: 6px; color: var(--sub) !important; }
.notecell { white-space: normal; min-width: 160px; max-width: 280px; color: var(--sub); }
.custtbl td small { display: block; }
.apptside { display: flex; flex-direction: column; gap: 6px; }
.noteedit summary { color: var(--pri); font-size: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.chips a:not(.btn-s) { padding: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; }
.chips a.on { background: var(--pri); color: #fff; border-color: var(--pri); }
.chips a:hover { text-decoration: none; }
.smsbox { white-space: pre-line; background: #f8fafc; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; margin: 6px 0; }
.loyalreq { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.actions input { width: auto; flex: 1; min-width: 160px; margin: 0; min-height: 40px; }

/* ----- خطای فیلد فرم و مبلغ ----- */
input, select, textarea { scroll-margin-top: 130px; }
input.invalid, select.invalid { border-color: var(--bad); background: #fef2f2; outline-color: #fca5a5; }
.ferr { display: block; color: var(--bad) !important; font-size: 13px; margin: -2px 0 6px; }
.okmsg { display: block; color: var(--ok-d); font-size: 13px; margin: -2px 0 6px; }
.slugsug { margin: 0 0 6px; }
.moneyhint { display: block; font-size: 12px; margin: -4px 0 4px; min-height: 1em; }
input[data-money] { direction: ltr; text-align: left; letter-spacing: .5px; }

input.credit-in { width: 120px; margin: 0; min-height: 40px; }
.panelhead a.badge:hover { text-decoration: none; filter: brightness(.95); }

/* ----- دعوت آرایشگر ----- */
.invite { border: 2px dashed #86efac; background: #f0fdf4; }
.invite h3 { margin-top: 0; }

/* ----- نقشه ----- */
.map { height: 320px; width: 100%; border-radius: 14px; border: 1px solid var(--line); margin: 8px 0; background: #e5e7eb; z-index: 0; }
.map.big { height: 68vh; min-height: 380px; }
.map.small { height: 240px; }
.leaflet-container { direction: ltr; font-family: inherit; }
.leaflet-popup-content { direction: rtl; text-align: right; font-family: Vazirmatn, Tahoma, sans-serif; margin: 12px 14px; }
.leaflet-container a.btn { color: #fff; }
.pinicon span { font-size: 28px; display: block; filter: drop-shadow(0 2px 2px #0006); }
.shopicon { background: none; border: 0; }
.shoplabel { position: absolute; transform: translate(-50%, -100%); background: #fff; border: 2px solid var(--pri); border-radius: 10px; padding: 2px 8px; white-space: nowrap; text-align: center; direction: rtl; font-family: Vazirmatn, Tahoma, sans-serif; box-shadow: 0 2px 6px #0003; cursor: pointer; line-height: 1.5; }
.shoplabel::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--pri); }
.shoplabel.pinned { border-color: var(--acc); }
.shoplabel.pinned::after { border-top-color: var(--acc); }
.shoplabel b { display: block; font-size: 12px; color: var(--ink); }
.shoplabel .st { font-size: 11px; display: block; }
.shoplabel .st.none { color: var(--mute); }
.shoppop b { display: block; font-size: 15px; }
.shoppop .btn { margin-top: 8px; min-height: 38px; padding: 6px 14px; width: 100%; }
.mappick { margin-top: 10px; }
.row .btn.ghost { white-space: nowrap; }

/* ----- موبایل ----- */
@media (max-width: 700px) {
  .wrap { padding: 12px; }
  .two { grid-template-columns: 1fr; }
  .two.tight { grid-template-columns: 1fr 1fr; }
  .barber-first > #barber-login { order: -1; }
  .hero { margin: -12px -12px 16px; padding: 32px 14px; }
  h1, .h1 { font-size: 24px; }
  .grid, .grid.small { grid-template-columns: 1fr 1fr; }
  .btns .btn { flex: 1; }
  .row input { width: 100%; }
  .row form { width: 100%; }
  .row form button { flex: 1; }
  .map.big { height: 62vh; }
  .custtbl { min-width: 0; }
  .custtbl thead { display: none; }
  .custtbl tbody, .custtbl tr, .custtbl td { display: block; }
  .tbl:has(.custtbl) { background: none; border: 0; }
  .custtbl tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
  .custtbl td { border: 0; padding: 2px 0; white-space: normal; max-width: none; }
  .custtbl td[data-label] { display: flex; gap: 8px; justify-content: space-between; }
  .custtbl td[data-label]::before { content: attr(data-label); color: var(--mute); font-size: 12px; }
  .custtbl .namecell { font-weight: bold; font-size: 16px; }
  .custtbl .actcell button { width: 100%; margin-top: 6px; }
  .starpick label { font-size: 40px; }
  .actions > * { flex: 1 1 45%; }
  .actions .btn-s, .actions button { width: 100%; justify-content: center; }
  .nav { flex-wrap: wrap; }
  .nav a, .navform button { padding: 6px 9px; font-size: 13px; }
  .three { gap: 6px; }
  .svhead { display: none; }
  .svform label.f span { display: block; }
  .svform label.f:has(input[name=deposit]) { grid-column: span 2; }
  .svform { grid-template-columns: 1fr 1fr; }
  .svform input[name=name], .svform .inl, .svform > .btn { grid-column: span 2; }
  .svform .inl button { flex: 1; }
  .foot .wrap { justify-content: center; text-align: center; }
  /* جدول ساعت کاری به‌صورت کارت برای هر روز */
  .hours-tbl { background: none; border: 0; overflow: visible; }
  .hours-tbl table { min-width: 0; }
  .hours-tbl thead { display: none; }
  .hours-tbl tbody, .hours-tbl tr { display: block; }
  .hours-tbl tr.hrow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
  .hours-tbl tr.hrow th { background: none; padding: 0; font-size: 15px; color: var(--ink); align-self: center; }
  .hours-tbl tr.hrow td { padding: 0; border: 0; white-space: normal; }
  .hours-tbl td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--mute); }
  .hours-tbl td:has(.offchk) { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
  .hours-tbl td:has(.offchk)::before { display: inline; font-size: 14px; }
  .hours-tbl .hrow.is-off td:not(:has(.offchk)) { display: none; }
}
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
