/* StayOne Custom Quotes dashboard. Builds on /account/account.css. */
.qb-auth { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; padding: 44px 0 60px; align-items: start; }
.qb-points { padding-left: 20px; line-height: 1.9; }
.qb-setup { max-width: 720px; }
.qb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 20px; }
.qb-grid .wide { grid-column: 1 / -1; }
.qb-grid > button { justify-self: start; align-self: end; margin-bottom: 19px; }
.qb-bar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: end; margin: 8px 0 14px; }
.qb-biz { margin: 0; min-width: 240px; }
.qb-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.qb-tabs button { background: #fff; color: var(--ink); border: 1px solid var(--line); white-space: nowrap; padding: 10px 16px; font-weight: 600; }
.qb-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.qb-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: #df668e; color: #fff; font-size: 12px; line-height: 20px; margin-left: 4px; }
.qb-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.qb-row h2 { margin: 0; }
.qb-filters { display: grid; grid-template-columns: 2fr 1fr; gap: 0 16px; margin-top: 18px; }
.qb-table-wrap { overflow-x: auto; }
.qb-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.qb-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px; }
.qb-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; overflow-wrap: anywhere; }
.qb-table tbody tr[data-id] { cursor: pointer; }
.qb-table tbody tr[data-id]:hover { background: #f6f8fc; }
.qb-table .num { text-align: right; white-space: nowrap; }
.qb-link { background: none; color: var(--blue); padding: 0; min-height: 0; font-weight: 700; text-align: left; }
.qb-pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; background: #eef1f7; color: #3c4a63; white-space: nowrap; }
.qb-pill.sent, .qb-pill.viewed { background: #e8eefc; color: #243b83; }
.qb-pill.accepted { background: #e5f4e9; color: #1d6b35; }
.qb-pill.changes_requested { background: #fff4dc; color: #7a5300; }
.qb-pill.declined, .qb-pill.revoked { background: #fbe9e6; color: #8e2418; }
.qb-pill.expired { background: #eceff3; color: #59677b; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 4px; margin: 0 0 18px; }
legend { font-weight: 800; padding: 0 6px; }
.qb-items .qb-item { display: grid; grid-template-columns: minmax(160px, 1.4fr) minmax(170px, 1fr) minmax(230px, 1.4fr) 110px 44px; gap: 10px; align-items: end; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
.qb-item-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qb-calc { grid-column: 1 / -1; margin: -6px 0 10px; font-size: 13px; color: var(--muted); min-height: 0; }
.qb-calc:empty { display: none; }
.qb-saved { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.qb-saved button { padding: 6px 12px; min-height: 40px; font-size: 14px; }
.qb-item label { margin-bottom: 12px; }
.qb-item .amt { padding-bottom: 24px; text-align: right; font-weight: 700; white-space: nowrap; }
.qb-item button, .qb-pair button { background: transparent; color: #8e2418; padding: 0; margin-bottom: 14px; }
.qb-pairs .qb-pair { display: grid; grid-template-columns: 1fr 2fr 44px; gap: 10px; align-items: end; }
.qb-adjust { margin-top: 12px; }
.qb-totals { display: grid; grid-template-columns: 1fr auto; max-width: 360px; margin: 6px 0 4px auto; gap: 4px 20px; }
.qb-totals dt { color: var(--muted); }
.qb-totals dd { margin: 0; text-align: right; font-weight: 600; }
.qb-totals .grand { font-size: 19px; font-weight: 800; color: var(--ink); border-top: 2px solid var(--ink); padding-top: 6px; }
.small { font-size: 13px; }
.qb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
button.secondary { background: #fff; color: var(--ink); border: 1px solid #bbc6d8; }
button.danger { background: #fff; color: #8e2418; border: 1px solid #e0b0a8; }
.qb-channels { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.qb-check { display: flex; gap: 9px; align-items: center; font-weight: 500; margin-bottom: 12px; }
.qb-check input { width: 20px; height: 20px; }
.qb-banner { background: #f0f5ff; border: 1px solid #aac0f2; border-left: 5px solid var(--blue); border-radius: 10px; padding: 14px 16px; margin: 14px 0; overflow-wrap: anywhere; }
.qb-banner.warn { background: #fff8e8; border-color: #ecd291; border-left-color: #c58a00; }
.qb-copy { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.qb-copy code { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-size: 13px; word-break: break-all; flex: 1 1 260px; }
.qb-rev { border-top: 1px solid var(--line); padding: 12px 0; }
.qb-rev p { margin: 4px 0; white-space: pre-wrap; }
.qb-logo { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.qb-logo img { max-width: 200px; max-height: 100px; object-fit: contain; display: block; margin-bottom: 12px; background: #f6f8fc; border-radius: 8px; padding: 8px; }
.qb-gap { margin-top: 36px; }
dialog { border: 0; border-radius: 16px; padding: 28px; max-width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; width: 100%; box-shadow: 0 20px 60px #14213b40; }
dialog::backdrop { background: #101e3899; }
.qb-summary dt { color: var(--muted); font-size: 13px; margin-top: 8px; }
.qb-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.qb-sms { background: #f3f5fa; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
@media (max-width: 800px) {
  .qb-auth { grid-template-columns: 1fr; gap: 12px; padding: 16px 0; }
  .qb-filters { grid-template-columns: 1fr; }
  .card { padding: 20px 16px; }
  main { padding: 16px; }
  .qb-items .qb-item { grid-template-columns: 1fr auto; padding-bottom: 6px; margin-bottom: 10px; }
  .qb-item > label, .qb-item-inputs { grid-column: 1 / -1; }
  .qb-item .amt { padding-bottom: 12px; }
  .qb-pairs .qb-pair { grid-template-columns: 1fr; gap: 0; }
  .qb-table thead { display: none; }
  .qb-table tr { display: grid; grid-template-columns: 1fr auto; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .qb-table td { border: 0; padding: 2px 4px; }
  .top { padding: 16px; }
}
.qb-allsvc { color: #fff; font-weight: 700; margin-right: 16px; font-size: 14px; }
.qb-formula { display: grid; grid-template-columns: 1.4fr 1.2fr 0.8fr 44px; gap: 8px; align-items: center; margin-bottom: 6px; }
.qb-formula small { grid-column: 3 / 4; margin-top: -4px; }
.qb-formula input, .qb-formula select { margin-top: 0; }
.qb-formula button { background: transparent; color: #8e2418; padding: 0; }
#header-preview { max-width: 100%; max-height: 140px; object-fit: cover; display: block; border-radius: 8px; margin-bottom: 12px; }
@media (max-width: 800px) { .qb-formula { grid-template-columns: 1fr 44px; } .qb-formula select, .qb-formula input[data-k=value], .qb-formula small { grid-column: 1 / 2; } }
