:root { color-scheme: light; font-family: system-ui, sans-serif; color: #163d36; background: #f4f7f1; }
* { box-sizing: border-box; }
body { margin: 0; }
header { max-width: 1040px; margin: auto; padding: 25px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
header a { color: #163d36; text-decoration: none; font-size: 14px; }
header a:first-child { font-size: 26px; font-weight: 800; letter-spacing: -1px; }
header span { color: #268b6c; }
.language-picker { margin: 0; font-size: 12px; }
.language-picker select { margin-top: 4px; padding: 8px; }
main { max-width: 960px; margin: 30px auto; padding: 0 24px; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: 2px; color: #42816b; }
h1 { font-size: clamp(42px, 7vw, 68px); line-height: 1.03; letter-spacing: -3px; margin: 16px 0; }
h2 { font-size: 21px; margin: 0 0 20px; }
.intro { font-size: 18px; color: #537168; margin-bottom: 30px; }
.card { border: 1px solid #dde6db; border-radius: 20px; padding: 26px; background: white; margin-bottom: 20px; box-shadow: 0 8px 30px #163d3605; }
#join, #ticket, #login { max-width: 540px; }
#change-business { display: inline-block; margin-bottom: 20px; color: #186d51; }
.business-directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin: 20px 0; }
.business-option { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; margin: 0; overflow-wrap: anywhere; }
.business-option h3 { margin: 0 0 10px; font-size: 19px; }
.business-option p { margin: 0 0 12px; }
.business-option .button { margin-top: auto; }
.business-option .directory-unavailable { background: #fff0db; color: #765016; }
label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 18px; }
input, select, textarea { display: block; width: 100%; margin-top: 8px; padding: 12px; font: inherit; border: 1px solid #ccd9cf; border-radius: 10px; background: white; color: #163d36; }
textarea { resize: vertical; }
.long-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.support-request, .serving-customer { padding: 18px 0; border-bottom: 1px solid #edf1eb; }
.support-request:last-child, .serving-customer:last-child { border-bottom: 0; }
.support-request form { margin-top: 16px; }
.support-reply { padding: 12px; border-radius: 10px; background: #edf3eb; }
.button[aria-disabled=true] { opacity: .55; pointer-events: none; }
.grid > *, .row > *, .service-form > * { min-width: 0; }
input[type=checkbox] { width: 18px; height: 18px; margin: 0; }
.check { display: flex; gap: 10px; align-items: center; }
button, .button { border: 0; border-radius: 11px; background: #186d51; color: white; padding: 13px 18px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .button:hover { filter: brightness(.95); }
button:disabled { opacity: .55; cursor: wait; }
.secondary { background: #edf3eb; color: #186d51; }
.danger { background: #a52c2c; color: white; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.muted, small { color: #66796e; font-size: 13px; line-height: 1.6; }
.token { font-size: 66px; font-weight: 800; letter-spacing: -3px; margin: 10px 0; }
.badge { display: inline-block; padding: 7px 12px; border-radius: 30px; background: #e6f1df; font-size: 13px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 25px 0; }
.stats strong { display: block; font-size: 25px; margin-top: 5px; }
.row { padding: 16px 0; border-bottom: 1px solid #edf1eb; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.row:last-child { border: 0; }
.row button { font-size: 12px; padding: 9px 12px; }
.row .actions { margin: 0; }
.owner-primary-actions button, #current .finish-customer, #waiting .arrival-action { min-height: 52px; padding: 14px 20px; font-size: 16px; }
#waiting .arrival-action { background: #186d51; color: white; }
button, .button { min-height: 44px; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #d39026; outline-offset: 3px; }
.time-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.time-form input { width: 82px; margin: 0; }
.time-form label { margin: 0; width: 100%; }
.service-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.service-form label { flex: 1 1 180px; margin: 0; }
.service-form label:has(input[type=number]) { flex: 0 1 180px; }
.service-form .actions { margin: 0; }
.pager { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pager > label { flex: 1 1 160px; margin: 0; min-width: 0; }
.pager-navigation { width: 100%; align-items: center; margin: 0; }
.pager-navigation span { flex: 1 1 140px; font-size: 13px; overflow-wrap: anywhere; }
details summary { cursor: pointer; font-weight: 700; min-height: 44px; }
details ol { padding-left: 22px; line-height: 1.8; }
#business-key-form { border-top: 1px solid #edf1eb; padding-top: 20px; margin-top: 20px; }
#business-address { margin-top: -10px; color: #537168; }
#poster-address { font-size: 16px; }
#service-form { margin-top: 16px; }
#notice:not(:empty) { max-width: 650px; padding: 14px 18px; margin-bottom: 20px; background: #fff0db; border-radius: 10px; }
#qr { display: block; margin: 20px auto 0; max-width: 100%; }
#employee-access-qr { display: block; margin: 20px auto; max-width: 100%; }
#print-qr { display: block; margin: 16px auto 0; }
#qr-poster { display: none; }
html:lang(hi) h1, html:lang(mr) h1 { letter-spacing: normal; line-height: 1.3; }
footer { padding: 30px 24px; text-align: center; font-size: 12px; color: #75897b; }
[hidden] { display: none !important; }
.portal-navigation { margin: 0 0 24px; padding: 12px; border: 1px solid #dde6db; border-radius: 14px; background: white; }
.portal-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.portal-tabs button { background: #edf3eb; color: #186d51; }
.portal-tabs button[aria-selected=true] { background: #186d51; color: white; }
.portal-mobile { display: none; margin: 0; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.overview-grid .card { margin: 0; }
.records-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.records-table th, .records-table td { text-align: left; vertical-align: top; padding: 14px 10px; border-bottom: 1px solid #dde6db; overflow-wrap: anywhere; }
.records-table th { background: #edf3eb; }
.records-table td .actions { margin: 0; }
.records-table td p { margin: 0 0 8px; }
.records-table button, .records-table .button { font-size: 12px; padding: 9px 12px; }
.record-editor { margin-top: 12px; }
.record-editor form { min-width: 220px; padding-top: 12px; }
.record-editor label { margin-bottom: 12px; }
.platform-payment-preview { margin: 20px 0; padding: 18px; border: 1px solid #dde6db; border-radius: 12px; background: #f5f8f3; }
.platform-payment-preview img { display: block; width: 210px; height: auto; max-width: 100%; margin: 12px 0; }
.platform-payment-preview p { overflow-wrap: anywhere; white-space: pre-line; }
.platform-qr-upload-preview { display: block; width: 210px; height: auto; max-width: 100%; margin: 12px 0; }
.business-portal #page-title { font-size: 32px; letter-spacing: -1px; }
.business-portal #customer-intro { display: none; }
@media (max-width: 640px) {
  .portal-tabs { display: none; }
  .portal-mobile { display: block; }
  .records-table thead { display: none; }
  .records-table, .records-table tbody, .records-table tr, .records-table td { display: block; width: 100%; }
  .records-table tr { padding: 12px 0; border-bottom: 1px solid #dde6db; }
  .records-table td { border: 0; padding: 6px 0; }
  .records-table td::before { content: attr(data-label); display: block; color: #66796e; font-size: 12px; font-weight: 650; margin-bottom: 5px; }
}
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; gap: 0; } .card { padding: 20px; } main { margin-top: 15px; } header a:last-child { font-size: 12px; } }
@media print {
  @page { margin: 18mm; }
  body { background: white; color: black; }
  body > :not(#qr-poster) { display: none !important; }
  #qr-poster { display: block; text-align: center; }
  #qr-poster h1 { font-size: 32px; letter-spacing: normal; overflow-wrap: anywhere; }
  #qr-poster ol { display: inline-block; text-align: left; font-size: 20px; line-height: 1.8; padding-left: 32px; }
  #qr-poster img { display: block; margin: 24px auto; max-width: 100%; }
  #poster-url { font-size: 12px; overflow-wrap: anywhere; }
}
