/* Sign-up, sign-in, the salon's page and the HQ admin. Builds on ipos.css. */
.app { background: var(--blush); min-height: 100vh; }
.app-bar { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.app-bar a.brand { text-decoration: none; }
.hq-tag { font-size: .75rem; font-weight: 800; letter-spacing: .08em; background: var(--plum); color: #fff; border-radius: 6px; padding: .2rem .5rem; }
.app-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.app-nav a { color: var(--plum); text-decoration: none; font-weight: 700; padding: .55rem .8rem; border-radius: 10px; }
.app-nav a:hover { background: var(--blush); }
.app-bar-end { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.app-bar-end form { margin: 0; }
.who-am-i { color: var(--plum-soft); font-weight: 600; }
.small { min-height: 40px; padding: 0 .9rem; font-size: .92rem; text-decoration: none; }
a.btn { text-decoration: none; }
.app-main { max-width: 1180px; margin: 0 auto; padding: 1.5rem; }
.app-main h1 { margin: 0 0 1rem; font-size: 1.8rem; letter-spacing: -.01em; }
.app-main a { color: #a3215a; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; margin-bottom: 1.2rem; }
.panel h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; }
.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.lead { color: var(--plum-soft); font-size: 1.05rem; line-height: 1.55; }
.sub { color: var(--plum-soft); font-size: .88rem; }
.hint { color: var(--plum-soft); font-size: .9rem; }
.nowrap { white-space: nowrap; }
.note { background: var(--ok-wash); color: var(--ok); font-weight: 700; padding: .8rem 1rem; border-radius: 12px; }
.error-box { background: #fde8ea; color: #9f1d2c; font-weight: 700; padding: .8rem 1rem; border-radius: 12px; }
.error { display: block; color: #9f1d2c; font-size: .88rem; font-weight: 600; margin-top: .25rem; }
.empty-note { color: var(--plum-soft); }
.badge { display: inline-block; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: .1rem .5rem; vertical-align: middle; }
.crumbs { margin: 0 0 .3rem; font-weight: 700; }
.crumbs a { text-decoration: none; }

/* Forms */
.form { display: grid; gap: .9rem; }
fieldset { border: 0; padding: 0; margin: 0 0 .6rem; display: grid; gap: .8rem; }
legend { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; color: var(--gold-text); margin-bottom: .6rem; }
.f { display: grid; gap: .3rem; font-weight: 700; font-size: .95rem; }
.f input, .f select, .form textarea { min-height: 50px; border-radius: 12px; border: 1px solid #ddd2d8; background: #fff; padding: 0 .8rem; font: inherit;
  font-weight: 400; font-size: 1rem; color: var(--plum); width: 100%; }
.form textarea { padding: .7rem .8rem; min-height: 120px; resize: vertical; }
.f input[aria-invalid="true"], .f select[aria-invalid="true"] { border-color: #c4314b; background: #fff7f8; }
.opt { color: var(--plum-soft); font-weight: 500; font-size: .85rem; }
.f-row { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; }
.f-row .f-s { width: 7.5rem; }
.f-row:has(> :nth-child(2):last-child) { grid-template-columns: 1fr auto; }
.check { display: flex; gap: .6rem; align-items: center; font-weight: 600; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--pink); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.plan { display: flex; align-items: center; gap: .5rem; min-height: 56px; border: 1px solid var(--line); border-radius: 12px; padding: 0 .8rem; font-weight: 700; cursor: pointer; }
.plan:has(input:checked) { border-color: var(--pink); background: var(--pink-wash); color: #a3215a; }
.plan input { accent-color: var(--pink); width: 20px; height: 20px; }
.wide { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.big-ok { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-wash); color: var(--ok); font-size: 2.5rem; font-weight: 800; display: grid;
  place-items: center; margin: .5rem auto 1rem; }

/* HQ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.2rem; display: grid; gap: .2rem; color: var(--plum-soft);
  text-decoration: none; font-weight: 600; }
.app-main a.stat { color: var(--plum-soft); }
.stat-n { font-size: 2.1rem; font-weight: 800; color: var(--plum); }
.stat-new .stat-n { color: var(--pink); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--plum-soft); padding: .6rem .7rem;
  border-bottom: 1px solid var(--line); }
.table td { padding: .75rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td a { font-weight: 700; text-decoration: none; }
.filters { display: flex; gap: .8rem; align-items: end; flex-wrap: wrap; margin-bottom: 1rem; }
.filters .f { min-width: 220px; }
.filters .btn { min-height: 50px; }
.pill-pending { background: var(--warn-wash); color: var(--warn); }
.pill-active { background: var(--ok-wash); color: var(--ok); }
.pill-suspended { background: #fde8ea; color: #9f1d2c; }
.pill-closed { background: var(--gray); color: var(--plum-soft); }
.biz-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.biz-head h1, .biz-head h2 { margin: 0; }
.biz { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.biz:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.facts { display: grid; grid-template-columns: 9rem 1fr; gap: .5rem 1rem; margin: 0 0 1rem; }
.facts dt { color: var(--plum-soft); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.cols .panel { margin-bottom: 0; }
.cols + .panel { margin-top: 1.2rem; }
.actions-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.people { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .7rem; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.log li { display: grid; grid-template-columns: 11rem 1fr auto; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.log li:last-child { border-bottom: 0; }

/* Marketing center */
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 1.2rem; }
.tabs a { padding: .7rem .9rem; font-weight: 700; color: var(--plum-soft); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.app-main .tabs a { color: var(--plum-soft); }
.app-main .tabs a[aria-current="page"] { color: var(--plum); border-bottom-color: var(--pink); }
.f-row.two { grid-template-columns: 1fr 1fr; }
.cols.wide-left { grid-template-columns: 3fr 2fr; }
.groups, .connections { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .1rem; }
.groups li, .connections li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.groups li:last-child, .connections li:last-child { border-bottom: 0; }
.inline-search { display: flex; gap: .4rem; }
.inline-search input { min-height: 40px; border-radius: 10px; border: 1px solid #ddd2d8; padding: 0 .7rem; font: inherit; min-width: 14rem; }
.row-actions form { display: flex; gap: .3rem; justify-content: flex-end; margin: 0; }
.templates { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.chip { min-height: 38px; border-radius: 999px; border: 1px solid #ecd9a4; background: var(--gold-wash); color: var(--gold-text); font-weight: 700; font-size: .85rem; padding: 0 .8rem; }
.reach { margin: 0; font-weight: 700; color: var(--ok); }
.reach-none { color: #9f1d2c; }
.note-warn { background: var(--warn-wash); color: var(--warn); font-weight: 600; padding: .7rem .9rem; border-radius: 12px; }
.phone-preview .bubble { background: #e9e9eb; color: #111; border-radius: 18px 18px 18px 4px; padding: .8rem 1rem; white-space: pre-wrap; line-height: 1.4; max-width: 22rem; }
.rules { color: var(--plum-soft); line-height: 1.6; padding-left: 1.1rem; }
code { background: var(--gray); border-radius: 6px; padding: .05rem .35rem; font-size: .9em; }
.autos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.autos .panel { margin: 0; }
.switch { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; }
.switch input { width: 24px; height: 24px; accent-color: var(--pink); }
.nets { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.nets legend { width: 100%; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.posts li { border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; }
.post-meta { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.post-text { margin: .6rem 0; line-height: 1.5; }
fieldset[disabled] { opacity: .7; }
.panel h3 { font-size: .95rem; margin: 0 0 .5rem; }
.msg { max-width: 34rem; overflow-wrap: anywhere; line-height: 1.45; }
.row-in td { background: var(--blush); }
.progress { margin: 0 0 .6rem; }
.inline-form { margin-top: 1rem; }

.edit-table input:not([type=checkbox]), .edit-table select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 .5rem;
  font: inherit; background: #fff; width: 100%; min-width: 7rem; }
.edit-table input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--pink); }
.edit-table .w-price, .edit-table .w-num { min-width: 5rem; max-width: 7rem; }
.edit-table td { vertical-align: middle; }
.day-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0 0 1rem; }
.row-void td { color: var(--plum-soft); text-decoration: line-through; }
.row-void td:last-child { text-decoration: none; }
.receipt { max-width: 30rem; }
.receipt-salon, .receipt-meta { text-align: center; margin: 0 0 .8rem; line-height: 1.45; }
.receipt-lines { width: 100%; border-collapse: collapse; margin: .6rem 0; }
.receipt-lines td { padding: .35rem 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.receipt-lines td:last-child { text-align: right; white-space: nowrap; }
.rl-sum td { border-top: 1px solid var(--plum); }
.rl-total td { font-weight: 800; font-size: 1.2rem; }
.receipt-thanks { text-align: center; font-weight: 700; }
.rl-refund td { color: #9f1d2c; }
.big-money { font-size: 1.6rem; font-weight: 800; }

/* Appointments: the day by tech (placed by appts.js from data-col, data-row and data-span), the day's list, and booking setup. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.day-jump { display: flex; gap: .4rem; align-items: center; margin: 0; }
.day-jump input { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 .5rem; font: inherit; }
.agenda-wrap { overflow-x: auto; margin: 0 -.4rem; padding: 0 .4rem .4rem; }
.agenda { display: grid; gap: 0 .4rem; position: relative; }
.agenda:not(.is-placed) { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .4rem; }
.agenda:not(.is-placed) .ag-time { display: none; }
.ag-head { font-weight: 800; font-size: .88rem; padding: .3rem .4rem .5rem; border-bottom: 2px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.ag-off { color: var(--plum-soft); font-weight: 600; }
.ag-time { font-size: .75rem; color: var(--plum-soft); border-top: 1px solid var(--line); padding-top: .15rem; text-align: right; padding-right: .3rem; }
.agenda.is-placed::before { content: ""; grid-column: 2 / -1; grid-row: 2 / -1; background: repeating-linear-gradient(180deg, transparent 0, transparent calc(3.2rem - 1px), var(--line) calc(3.2rem - 1px), var(--line) 3.2rem); }
.ag-card { display: grid; align-content: start; gap: .1rem; margin: 1px 0; padding: .35rem .5rem; border-radius: 10px; font-size: .8rem; line-height: 1.25;
  overflow: hidden; text-decoration: none; color: var(--plum); background: var(--pink-wash); border-left: 4px solid var(--pink); z-index: 1; }
.ag-card span { color: var(--plum-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-card.st-checked_in { background: var(--gold-wash); border-left-color: var(--gold); }
.ag-card.st-done { background: var(--gray); border-left-color: #c9bfc5; }
.appts { list-style: none; margin: 0; padding: 0; display: grid; }
.appt { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.appt:last-child { border-bottom: 0; }
.appt:target { background: var(--blush); box-shadow: 0 0 0 .5rem var(--blush); border-radius: 4px; }
.appt-time { font-weight: 800; display: grid; align-content: start; }
.appt-time small { color: var(--plum-soft); font-weight: 600; }
.appt-body { display: grid; gap: .15rem; min-width: 0; }
.appt-note { font-style: italic; color: var(--plum-soft); }
.appt-acts { display: grid; gap: .5rem; justify-items: end; align-content: start; }
.appt.st-cancelled .appt-body, .appt.st-no_show .appt-body, .appt.st-cancelled .appt-time, .appt.st-no_show .appt-time { opacity: .55; }
.pill-appt-booked { background: var(--pink-wash); color: #a3215a; }
.pill-appt-checked_in { background: var(--gold-wash); color: var(--gold-text); }
.pill-appt-done { background: var(--ok-wash); color: var(--ok); }
.pill-appt-cancelled, .pill-appt-no_show { background: var(--gray); color: var(--plum-soft); }
.more { position: relative; }
.more summary { list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more-box { position: absolute; right: 0; top: calc(100% + .3rem); z-index: 3; display: grid; gap: .4rem; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: .5rem; box-shadow: 0 10px 30px rgba(42, 31, 45, .12); min-width: 11rem; }
.svc-pick { border: 1px solid var(--line); border-radius: 12px; padding: .4rem .8rem .6rem; margin: 0; max-height: 16rem; overflow-y: auto; }
.svc-pick legend { font-weight: 700; padding: 0 .3rem; }
.svc-pick .check { font-weight: 600; min-height: 40px; }
.hours-table td { padding: .35rem .5rem; vertical-align: middle; }
.hours-table input[type=time] { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 .4rem; font: inherit; }
.hours-table input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--pink); }
.days-off { display: flex; gap: .3rem; flex-wrap: wrap; }
.day-chip { position: relative; }
.day-chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.day-chip span { display: inline-grid; place-items: center; min-width: 3rem; min-height: 38px; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem;
  font-weight: 700; color: var(--plum-soft); }
.day-chip input:checked + span { background: var(--plum); border-color: var(--plum); color: #fff; }
.day-chip input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.book-link-panel { background: linear-gradient(120deg, var(--blush), #fff 70%); }
@media (max-width: 760px) {
  .appt { grid-template-columns: 4.6rem 1fr; }
  .appt-acts { grid-column: 1 / -1; justify-items: start; }
  .more-box { left: 0; right: auto; }
}

/* Tech logins */
.kicker-gold { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .3rem; }
.invite-panel { border-color: #ecd9a4; background: linear-gradient(120deg, var(--gold-wash), #fff 70%); }
.invite-link { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.invite-link input { flex: 1 1 22rem; min-height: 46px; border: 1px solid #ecd9a4; border-radius: 10px; padding: 0 .7rem; font: inherit; background: #fff; }
.login-cell { min-width: 16rem; }
.invite-form { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: .3rem; }
.invite-form input { max-width: 11rem; }

@media print {
  .app-bar, .crumbs, .tabs, .biz-head, .no-print, .note { display: none !important; }
  .app, .app-main { background: #fff; padding: 0; }
  .panel { border: 0; padding: 0; }
  .cols { display: block; }
}

@media (max-width: 760px) {
  .app-main { padding: 1rem; }
  .cols, .plans, .cols.wide-left, .autos, .f-row.two { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr 1fr; }
  .f-row .f-s { width: auto; }
  .f-row > .f:first-child { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; gap: .1rem; }
  .facts dd { margin-bottom: .5rem; }
  .log li { grid-template-columns: 1fr; gap: .1rem; }
  .app-bar-end { margin-left: 0; }
}
