/* TravelBooks v13 */

/* ---------- sign-in: only TravelBooks ---------- */
body.signed-out .top { justify-content: center; }
body.signed-out #cobrand, body.signed-out #nav, body.signed-out #who, body.signed-out #licbar, body.signed-out .top .brand { display: none !important; }
body.signed-out .top { min-height: 8px; height: 8px; padding: 0; }
.login13 { min-height: calc(100vh - 140px); display: grid; place-items: center; }
.login13 .lcard { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 34px 32px 24px;
  box-shadow: 0 18px 50px color-mix(in srgb, var(--ink) 12%, transparent); text-align: center; }
.login13 .llogo { width: 76px; height: 76px; display: block; margin: 0 auto 10px; border-radius: 16px; }
.login13 h1 { font-size: 30px; margin: 0 0 22px; letter-spacing: -.5px; }
.login13 h1 b { color: var(--accent); }
.login13 form { display: grid; gap: 14px; text-align: left; }
.login13 label.f > input { padding: 10px 12px; font-size: 15px; }
.login13 .btn.lg { width: 100%; justify-content: center; margin-top: 4px; }
.login13 p { margin: 16px 0 0; }

/* ---------- entity picker ---------- */
.cpick .tile.co.all { border-style: dashed; color: var(--ink); text-decoration: none; }
.cpick .tile.co:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- calendar date box: DD-MMM-YYYY, no typing ---------- */
.tbd-wrap { position: relative; display: inline-block; vertical-align: middle; }
.tbd-wrap.block { display: block; }
.tbd-wrap > input.tbd-native { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; z-index: 0; border: 0; padding: 0; margin: 0; }
input.tbd { width: 100%; min-width: 136px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6678' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat right 8px center;
  padding-right: 30px !important; color: var(--ink) !important; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
input.tbd[readonly] { background-color: #fff; color: var(--ink); }
input.tbd:disabled { background-color: #f3f3f3; cursor: not-allowed; }
input.tbd.need { border-color: var(--warn); background-color: var(--warn-soft); }
label.f > .tbd-wrap > input.tbd { font-size: 14px; }
.tbcal { position: fixed; z-index: 1000; width: 262px; background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 14px 40px #0003; padding: 8px; font-size: 13px; }
.tbcal .hd { display: flex; gap: 4px; align-items: center; margin-bottom: 6px; }
.tbcal .hd select { padding: 3px 4px; font-size: 13px; flex: 1; }
.tbcal .hd button, .tbcal .ft button { border: 1px solid var(--line2); background: #fff; border-radius: 6px; cursor: pointer; padding: 3px 9px; font: inherit; }
.tbcal .hd button { font-size: 16px; line-height: 1; padding: 3px 8px; }
.tbcal .dw, .tbcal .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.tbcal .dw span { font-size: 11px; color: var(--muted); padding: 2px 0; }
.tbcal .days button { border: 0; background: none; border-radius: 6px; padding: 6px 0; cursor: pointer; font: inherit; font-variant-numeric: tabular-nums; }
.tbcal .days button:hover { background: var(--accent-soft); }
.tbcal .days button.today { font-weight: 700; color: var(--accent); }
.tbcal .days button.hi { outline: 1px solid var(--accent); }
.tbcal .days button.on { background: var(--accent); color: var(--accent-ink); }
.tbcal .days button:disabled { color: #c9c9c9; cursor: not-allowed; background: none; }
.tbcal .ft { display: flex; gap: 6px; margin-top: 8px; }
.drange .row input.tbd { min-width: 0; }
.drange > span:first-child { font-size: 12px; color: var(--muted); display: block; margin-bottom: 3px; }

/* ---------- tables: click a heading to sort, drag its right edge to widen ---------- */
th.tbs { position: relative; user-select: none; }
th.tbs:not(.nos) { cursor: pointer; }
th.tbs:not(.nos):hover { color: var(--ink); }
th.tbs.s-asc::after, th.tbs.s-desc::after { content: "▲"; font-size: 9px; margin-left: 4px; color: var(--accent); }
th.tbs.s-desc::after { content: "▼"; }
th.tbs .rz { position: absolute; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; z-index: 2; }
th.tbs .rz:hover, body.tb-resizing th.tbs .rz:hover { background: color-mix(in srgb, var(--accent) 35%, transparent); }
body.tb-resizing { cursor: col-resize !important; user-select: none; }
table.tbw-fixed td { overflow: hidden; text-overflow: ellipsis; }
table.t.tbw-fixed td { white-space: normal; word-break: break-word; }

/* ---------- one register (bookings & cancellations), same on the customer's page ---------- */
table.sv.reg { table-layout: fixed; max-width: none; }
table.sv.reg td { vertical-align: top; }
table.sv.reg td.rmk { white-space: normal; }
table.sv.reg td.acts { white-space: normal; overflow: visible; }
table.sv.reg td.acts .btn { margin: 1px 0; }
table.sv.reg tr.sel td { background: var(--accent-soft); }
table.sv.reg tr.cancelled td { color: #9a9a9a; } table.sv.reg tr.cancelled td.svc { text-decoration: line-through; }
table.sv.reg td.rmk .muted { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
table.sv.reg tr.rev td { color: var(--warn); }
table.sv.reg .pill { font-size: 10.5px; }
.btn.warn { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); }
.tabs.pills { border-bottom: 0; gap: 6px; flex-wrap: wrap; }
.tabs.pills a.tb { border: 1px solid var(--line2); border-radius: 999px; padding: 6px 14px; color: var(--ink); background: var(--panel); margin: 0; }
.tabs.pills a.tb.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* ---------- customer page: name left, every action on the right; tabs that stand out ---------- */
.lhead13 { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.lhead13 .lh-left { min-width: 280px; flex: 1; }
.lhead13 h1 { font-size: 22px; }
.lhead13 .lh-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.lhead13 .lh-meta b { color: var(--ink); }
.lhead13 .lh-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 760px; }
.tabs13 { display: flex; gap: 6px; flex-wrap: wrap; margin: -2px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tabs13 button { border: 1px solid var(--line2); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 7px 15px; cursor: pointer; font: inherit; font-weight: 600; font-size: 13.5px; }
.tabs13 button:hover { border-color: var(--accent); color: var(--accent); }
.tabs13 button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent); }

/* ---------- chats about a customer ---------- */
.chatlog { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; max-height: 420px; overflow: auto; }
.chatlog .cl { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; white-space: normal; }
.chat .compose .cwrap { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.chat .compose .cwrap input { font-size: 12.5px; }
.chat .m .ltag { font-weight: 600; }

/* ---------- bank: proof screenshot ---------- */
.proofbox { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line2); border-radius: 8px; background: var(--bg); }
.proofbox:focus { outline: 2px solid var(--accent); }
.prfimg { max-height: 120px; max-width: 220px; border: 1px solid var(--line2); border-radius: 6px; vertical-align: middle; margin-top: 6px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .lhead13 .lh-actions { justify-content: flex-start; }
}
.split.solo { grid-template-columns: minmax(0, 1fr); }
