/* Additions for the working site (not in the prototype). */
html, body { margin: 0; min-height: 100%; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .86rem; font-weight: 600; }
.who a { color: var(--green); }
.stack { display: grid; gap: 14px; }
form.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.fbbtn { position: fixed; right: 14px; bottom: 14px; z-index: 30; border: 0; border-radius: 999px; padding: 10px 18px; min-height: 44px; font: inherit; font-weight: 700; font-size: .88rem; background: var(--green); color: var(--inverse); box-shadow: var(--shadow); cursor: pointer; }
.fbrow { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--divider); }
.fbrow.done { opacity: .55; }
.fbrow p { margin-top: 4px; }
a.btn { text-decoration: none; }
:root[data-photo] .rep .box, :root[data-photo] .desk .box { background: var(--surface); }

.box ol.steps, ol.steps { display: block; margin: 6px 0 10px; padding-left: 24px; font-size: .92rem; list-style: decimal; }
.box ol.steps li, ol.steps li { display: list-item; list-style: decimal; margin: 0 0 6px; padding: 0; border: 0; }
details > summary { cursor: pointer; padding: 6px 0; }

/* reservations booked report */
.bkdrow { align-items: end; }
.tbl.bkd th:nth-child(-n+4), .tbl.bkd td:nth-child(-n+4) { text-align: left; }
.tbl.bkd tr.cx td { color: var(--muted); }
.tbl.bkd tfoot td { font-weight: 700; }

/* payments summary report */
.tbl.pays tr.sub td:first-child { padding-left: 26px; color: var(--muted); }
.tbl.pays tr.sub td { font-size: .84rem; }
.tbl.pays tfoot td { font-weight: 700; }
.tbl.pays tr.cx td { color: var(--muted); font-weight: 400; }
.tbl.pays.det th:nth-child(-n+7), .tbl.pays.det td:nth-child(-n+7) { text-align: left; }

/* sales tax figures report */
.tbl.tax .chk { color: var(--muted); font-weight: 400; }
.tbl.tax tfoot td { font-weight: 700; }
.tbl.tax tfoot td.chk { font-weight: 600; }
.tbl.tax.det th:nth-child(-n+5), .tbl.tax.det td:nth-child(-n+5) { text-align: left; }
.tbl.tax.det td:nth-child(4) { white-space: normal; min-width: 180px; }

/* front desk: wide page, month band over the days, compact columns for the month and two-month views */
.wrap.staffwide { max-width: 2400px; }
.staffwide .rep { max-width: 1500px; width: 100%; margin-inline: auto; }
.ghead .d { padding-top: 17px; }
.ghead .mon { position: absolute; top: 0; height: 17px; z-index: 0; display: flex; align-items: center; overflow: hidden; white-space: nowrap; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--wood); background: var(--offset); border-left: 2px solid var(--border); border-bottom: 1px solid var(--divider); }
.ghead .mon span { position: sticky; left: calc(var(--label) + 8px); padding: 0 8px; }
.monline { position: absolute; bottom: 0; width: 0; border-left: 2px solid var(--border); pointer-events: none; z-index: 1; }
.grid.tight .ghead .d { font-size: .58rem; }
.grid.tight .ghead .d b { font-size: .7rem; }
.grid.tight .bar { padding: 0 4px; gap: 3px; }
.gspan { font-size: .82rem; font-weight: 600; }
.grid.xtight .ghead .d { font-size: .5rem; }
.grid.xtight .ghead .d b { font-size: .6rem; letter-spacing: -.03em; }

/* text guests: sending by hand from the park phone */
.txhand { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--divider); border-radius: 10px; background: var(--offset); }
.txhand p { margin: 0; }
.txgrp { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--divider); }
.txgrp > div { display: grid; gap: 2px; min-width: 0; font-size: .84rem; }
.txgrp .btn { flex: none; }
.txgrp .btn.ok { border-color: var(--ok); color: var(--ok); }

/* guests */
.tbl.gst th, .tbl.gst td { text-align: left; }
.tbl.gst td:nth-child(4), .tbl.gst th:nth-child(4) { text-align: right; }
.tbl.gst tr.cx td { color: var(--muted); }
#view-gst .find { flex: 1 1 260px; max-width: 440px; }
/* Update 15: keep the side boxes inside their column so the page never scrolls sideways */
.side { grid-template-columns: minmax(0, 1fr); }
.box { min-width: 0; }
.box li span:last-child { white-space: normal; }
.box li > span:last-child { white-space: nowrap; }
.box li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.box .totline { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; border-top: 1px solid var(--divider); padding-top: 6px; font-size: .84rem; }
/* Update 16: guest text inbox and the notes box */
.tabs .badge, .badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: var(--rust); color: #fff; font-size: .7rem; line-height: 18px; text-align: center; font-weight: 700; }
.ibwrap { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 760px) { .ibwrap { grid-template-columns: minmax(0, 1fr); } }
.iblist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 70vh; overflow-y: auto; }
.iblist button { width: 100%; text-align: left; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--divider); border-radius: 10px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.iblist button.on { border-color: var(--green); box-shadow: inset 3px 0 0 var(--green); }
.iblist button.unread .ibn { font-weight: 800; }
.iblist .ibn { font-weight: 600; }
.iblist .ibp { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.iblist .muted { font-size: .76rem; }
.ibthread { background: var(--surface); border: 1px solid var(--divider); border-radius: 10px; padding: 12px; display: grid; gap: 10px; min-width: 0; }
.ibhead { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid var(--divider); padding-bottom: 8px; }
.ibmsgs { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow-y: auto; padding: 4px; }
.bub { max-width: 78%; padding: 8px 11px; border-radius: 12px; font-size: .9rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.bub span { display: block; margin-top: 4px; font-size: .7rem; opacity: .75; white-space: normal; }
.bub.in { align-self: flex-start; background: var(--offset, #eee); border: 1px solid var(--divider); }
.bub.out { align-self: flex-end; background: var(--green); color: var(--inverse, #fff); }
.ibreply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.ibreply textarea, .waiver textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: inherit; resize: vertical; box-sizing: border-box; }
/* Guest review stars on the thank-you page */
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 4px 0 10px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 38px; line-height: 1; color: #c9c2b4; cursor: pointer; transition: color .1s; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #e0a526; }
.stars input:focus-visible + label { outline: 2px solid currentColor; outline-offset: 2px; }
