/* Shopfront demo back office · shared look from shopfront-full (08.11.26, Dev 2) — sandbox: every edit stays in this browser (localStorage), nothing is sent anywhere. */
:root { --bg: #f1f4f8; --card: #fff; --ink: #0e1a2b; --ink-2: #3f4e63; --ink-3: #6a788c; --line: #e2e7ee; --acc: #13305b; --acc-2: #0b2142; --acc-soft: #e4ebf5; --mocha: #13305b;
  --ok: #2f7d55; --ok-soft: #e3f3ea; --warn: #b7791f; --warn-soft: #fdf1dc; --no: #a33a3a; --no-soft: #fbe5e5; --font: "Anuphan", "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 160px; }
.strip { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fbf6f1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 16px; font-size: 13px; }
.strip b { font-weight: 600; }
.strip button { background: rgba(255, 255, 255, .12); border: 0; color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px; }
.top h1 { margin: 0; font-size: 22px; line-height: 1.2; }
.top small { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.view-site { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.view-site svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.pad { padding: 8px 16px; }
.card { background: var(--card); border-radius: 18px; padding: 16px; box-shadow: 0 1px 0 rgba(43, 36, 32, .04), 0 14px 26px -24px rgba(43, 36, 32, .55); }
.hello { display: grid; gap: 4px; }
.hello b { font-size: 16.5px; }
.hello p { margin: 0; color: var(--ink-2); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stats > * { position: relative; background: var(--bg); border: 0; border-radius: 12px; padding: 10px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.stats > *::after { content: "\203A"; position: absolute; right: 10px; top: 6px; font-size: 20px; color: var(--ink-3); }
.stats > *:active { background: #e9e1db; }
.stats strong { display: block; font-size: 20px; line-height: 1.2; }
.stats span { display: block; font-size: 12.5px; color: var(--ink-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; border: 0; padding: 0 18px; font-weight: 600; font-size: 15.5px; cursor: pointer; text-decoration: none; }
.btn--acc { background: var(--acc); color: #fff; }
.btn--acc:active { background: var(--acc-2); }
.btn--ghost { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn--danger { background: var(--no-soft); color: var(--no); }
.btn--block { width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.search { display: flex; gap: 8px; margin: 12px 0 8px; }
.search input { flex: 1; min-width: 0; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); padding: 0 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.count { font-size: 13.5px; color: var(--ink-3); margin: 0 0 8px; }
.list { display: grid; gap: 10px; }
.it { display: grid; grid-template-columns: 76px 1fr; gap: 12px; background: var(--card); border-radius: 16px; padding: 10px; align-items: center; }
.it.off { opacity: .55; }
.it img { width: 76px; height: 92px; object-fit: cover; border-radius: 12px; background: var(--bg); }
.it .n { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.it .p { font-weight: 700; color: var(--acc); }
.it .m { font-size: 13px; color: var(--ink-3); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 8px; background: var(--bg); color: var(--ink-2); }
.tag--acc { background: var(--acc-soft); color: var(--acc); }
.tag--off { background: #ece7e4; color: var(--ink-3); }
.it .b { display: flex; gap: 6px; margin-top: 8px; }
.it .b button { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 0 14px; min-height: 36px; font-size: 14px; font-weight: 600; cursor: pointer; }
.it .b .go { background: var(--ink); color: #fff; border-color: var(--ink); }
.it .b .mv { width: 40px; padding: 0; font-size: 16px; }
.it .b .mv:disabled { opacity: .35; cursor: default; }
.pick { margin-top: 4px; }
.pickbtn { flex-direction: column; gap: 2px; min-height: 58px; padding: 8px 14px; }
.pickbtn small { font-size: 12px; font-weight: 500; color: var(--ink-3); line-height: 1.35; }
.pick p { margin: 4px 0 8px; font-size: 13px; color: var(--ink-3); }
.pick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pick__grid button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; cursor: pointer; background: var(--bg); }
.pick__grid img { width: 100%; height: 100%; object-fit: cover; }
.fab { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 20; width: min(528px, calc(100% - 32px)); box-shadow: 0 16px 30px -16px rgba(19, 48, 91, .7); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs nav { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--tabs, 4), 1fr); }
.tabs button { border: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 9px 4px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; position: relative; }
.tabs button[aria-current="page"] { color: var(--acc); }
.tabs svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.tabs .dot { position: absolute; top: 5px; left: calc(50% + 8px); min-width: 19px; height: 19px; border-radius: 10px; background: var(--acc); color: #fff; font-size: 11.5px; display: grid; place-items: center; padding: 0 5px; }
h2.sec { margin: 6px 0 10px; font-size: 19px; }
.back { display: flex; align-items: center; gap: 8px; padding: 14px 16px 4px; }
.back button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 22px; line-height: 1; cursor: pointer; }
.back h1 { margin: 0; font-size: 20px; }
.f { display: grid; gap: 6px; margin-bottom: 14px; }
.f label, .f .lb { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.f input, .f select, .f textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 14px; min-height: 48px; }
.f textarea { min-height: 96px; resize: vertical; }
.f small { color: var(--ink-3); font-size: 12.5px; }
.f input:focus, .f select:focus, .f textarea:focus, .search input:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: transparent; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--bg); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .main { position: absolute; left: 6px; top: 6px; background: var(--acc); color: #fff; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 8px; }
.ph .x { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(43, 36, 32, .72); color: #fff; cursor: pointer; font-size: 16px; }
.ph .mk { position: absolute; left: 6px; bottom: 6px; right: 6px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 600; padding: 5px; cursor: pointer; }
.add-ph { aspect-ratio: 4 / 5; border-radius: 12px; border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; background: #fff; }
.add-ph input { display: none; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sw:first-child { border-top: 0; }
.sw b { display: block; font-size: 15px; }
.sw small { color: var(--ink-3); font-size: 13px; }
.tg { position: relative; width: 52px; height: 30px; flex: 0 0 auto; }
.tg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tg span { position: absolute; inset: 0; border-radius: 999px; background: #d9cec7; transition: background .15s; pointer-events: none; }
.tg span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.tg input:checked + span { background: var(--acc); }
.tg input:checked + span::after { transform: translateX(22px); }
.savebar { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(245, 240, 236, 0), var(--bg) 30%); padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.cat-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cat-row:first-child { border-top: 0; }
.cat-row input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-height: 44px; }
.cat-row small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.pv { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.pv span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; background: #fff; }
.pv span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ord { display: flex; gap: 4px; }
.ord button { width: 40px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; }
.ord .del { color: var(--no); }
.seg { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding-bottom: 8px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.req { background: var(--card); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.req .rh { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.req .rh b { font-size: 16px; display: block; }
.req .rh small { color: var(--ink-3); font-size: 13px; }
.st { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.st--new { background: var(--acc-soft); color: var(--acc); } .st--confirmed { background: var(--warn-soft); color: var(--warn); } .st--done { background: var(--ok-soft); color: var(--ok); } .st--cancelled { background: #eee7e3; color: var(--ink-3); }
.req ul { margin: 0; padding: 0 0 0 18px; font-size: 14.5px; }
.req .meta { font-size: 13.5px; color: var(--ink-2); display: grid; gap: 2px; }
.req .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.req .acts button { border: 0; border-radius: 10px; min-height: 40px; padding: 0 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.a-ok { background: var(--ok); color: #fff; } .a-cf { background: var(--warn-soft); color: var(--warn); } .a-no { background: var(--no-soft); color: var(--no); } .a-ln { background: #eaf8ef; color: #06873a; }
.new-badge { font-size: 11.5px; font-weight: 700; color: #fff; background: #06c755; border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.empty { text-align: center; color: var(--ink-3); padding: 34px 16px; background: var(--card); border-radius: 16px; }
.login { display: grid; gap: 22px; padding: 56px 22px 48px; max-width: 420px; margin: 0 auto; }
.login .mark { width: 64px; height: 64px; border-radius: 18px; background: var(--acc); color: #fff; display: grid; place-items: center; }
.login .mark svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 1.6; }
.login h1 { margin: 0; font-size: 26px; line-height: 1.25; }
.login .brand { margin: 0 0 4px; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--acc); }
.login p { margin: 0; color: var(--ink-2); }
.hint { background: var(--warn-soft); color: #7a5413; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.err { color: var(--no); font-size: 14px; }
.err:empty { display: none; }
.logo-prev { width: 72px; height: 72px; border-radius: 16px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; border-radius: 12px; padding: 11px 16px; font-size: 14px; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .6); }

/* ---- added for the service businesses (clinic, condo) ---- */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days button { min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.days button[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #fff; }
.row-x { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.row-x:first-child { border-top: 0; }
.row-x b { font-weight: 600; font-size: 15px; }
.row-x small { display: block; color: var(--ink-3); font-size: 12.5px; }
.row-x .del { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--no); font-size: 16px; cursor: pointer; }
.add-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.add-row input { min-width: 0; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 12px; }
.add-row.three { grid-template-columns: 1fr 1fr auto; }
.menu { display: grid; }
.menu button { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 14px 0; cursor: pointer; font: inherit; color: inherit; }
.menu button:first-child { border-top: 0; }
.menu b { font-size: 15.5px; font-weight: 600; display: block; }
.menu small { color: var(--ink-3); font-size: 13px; }
.menu i { font-style: normal; color: var(--ink-3); font-size: 22px; }
.avatar { width: 76px; height: 92px; border-radius: 12px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; font-size: 30px; font-weight: 700; }
.pickbtn { flex-direction: column; gap: 2px; min-height: 58px; padding: 8px 14px; }
.pickbtn small { font-size: 12px; font-weight: 500; color: var(--ink-3); line-height: 1.35; }
.add-row input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; text-align: left; line-height: 44px; }
.add-row input[type="date"]::-webkit-date-and-time-value { text-align: left; }
