.hotel-ledger { min-width: 0; scroll-margin-top: 24px; }
.hotel-ledger .hl-toolbar, .hotel-ledger .hl-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.hotel-ledger .hl-toolbar h2 { margin: 0; }
.hotel-ledger .hl-muted { color: var(--muted, #a8b8c9); font-size: .85rem; line-height: 1.5; }
.hotel-ledger .hl-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.hotel-ledger label { display: grid; gap: 5px; font-size: .82rem; min-width: 0; }
.hotel-ledger input, .hotel-ledger select, .hotel-ledger textarea, .hl-dialog input, .hl-dialog select, .hl-dialog textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px; border: 1px solid #436072; border-radius: 8px; background: #102330; color: #edf5fa; font: inherit; }
.hotel-ledger .hl-controls input { min-width: 180px; }
.hl-accounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.hl-account, .hl-record { border: 1px solid #34505e; border-radius: 14px; background: rgba(10, 26, 39, .6); padding: 16px; min-width: 0; overflow-wrap: anywhere; }
.hl-account h3, .hl-record h3 { margin: 0 0 6px; font-size: 1rem; }
.hl-account dl, .hl-record dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.hl-account dt, .hl-record dt { font-size: .73rem; color: var(--muted, #a8b8c9); }
.hl-account dd, .hl-record dd { margin: 4px 0 0; font-weight: 650; font-size: .9rem; }
.hl-warning { padding: 12px; border-left: 3px solid #f6ad55; border-radius: 5px; background: rgba(246, 173, 85, .08); line-height: 1.5; font-size: .84rem; }
.hl-ledger-list { display: grid; gap: 12px; margin-top: 12px; }
.hl-record header { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.hl-tag { display: inline-block; padding: 4px 8px; border-radius: 20px; background: #254958; color: #b6eee8; font-size: .75rem; }
.hl-record[data-canceled="true"] .hl-tag { background: #493938; color: #ffd1b8; }
.hl-record a, .hotel-ledger a, .hl-dialog a, .hotel-credit-booking-note a { color: #8ce0db; }
.hl-record .hl-evidence { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; }
.hl-record p { margin: 10px 0; }
.hl-record .hl-edit { flex: 0 0 auto; }
.hotel-ledger button, .hl-dialog button { cursor: pointer; }
.hotel-ledger .tiny-button, .hl-dialog .button, .hl-dialog .button-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 11px; border: 1px solid #34505e; border-radius: 9px; background: #102330; color: #e9f2f7; font: inherit; font-size: .82rem; text-decoration: none; }
.hotel-ledger .tiny-button:hover, .hl-dialog button:hover { border-color: #7acfc7; }
.hl-dialog { width: min(760px, calc(100vw - 28px)); max-height: 90vh; overflow: auto; box-sizing: border-box; border: 1px solid #496071; border-radius: 16px; background: #102532; color: #e9f2f7; padding: 22px; }
.hl-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.hl-dialog form { display: grid; gap: 14px; }
.hl-dialog .hl-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hl-dialog label { display: grid; gap: 6px; font-size: .82rem; }
.hl-dialog .hl-wide { grid-column: 1 / -1; }
.hl-dialog .hl-form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.hl-dialog h2 { margin: 0; font-size: 1.2rem; }
.hl-sync-status { min-height: 1.5em; }
.hotel-credit-booking-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid #34505e; font-size: .82rem; line-height: 1.5; }
@media (max-width: 560px) { .hl-dialog .hl-fields { grid-template-columns: 1fr; } .hl-dialog .hl-wide { grid-column: auto; } .hotel-ledger .hl-controls label { flex: 1 1 130px; } .hotel-ledger .hl-controls input { min-width: 0; } .hl-record header { flex-wrap: wrap; } }
.hl-table-wrap { width: 100%; overflow-x: auto; margin: 18px 0; border: 1px solid #34505e; border-radius: 14px; }
.hl-summary { width: 100%; min-width: 1660px; border-collapse: collapse; text-align: left; font-size: .82rem; line-height: 1.45; }
.hl-summary th { padding: 14px; background: #173442; color: #c2d8e2; font-size: .76rem; }
.hl-summary td { padding: 16px 14px; vertical-align: top; border-top: 1px solid #34505e; min-width: 90px; }
.hl-summary th:nth-child(1), .hl-summary td:nth-child(1) { min-width: 145px; }
.hl-summary th:nth-child(2), .hl-summary td:nth-child(2) { min-width: 125px; }
.hl-summary th:nth-child(3), .hl-summary td:nth-child(3) { min-width: 145px; }
.hl-summary th:nth-child(4), .hl-summary td:nth-child(4) { min-width: 145px; }
.hl-summary th:nth-child(5), .hl-summary td:nth-child(5) { min-width: 115px; }
.hl-summary th:nth-child(6), .hl-summary td:nth-child(6) { min-width: 125px; }
.hl-summary th:nth-child(7), .hl-summary td:nth-child(7) { min-width: 120px; }
.hl-summary th:nth-child(8), .hl-summary td:nth-child(8) { min-width: 120px; }
.hl-summary th:nth-child(9), .hl-summary td:nth-child(9) { min-width: 190px; }
.hl-summary th:nth-child(10), .hl-summary td:nth-child(10) { min-width: 190px; }
.hl-summary th:nth-child(11), .hl-summary td:nth-child(11) { min-width: 155px; }
.hl-summary th:nth-child(12), .hl-summary td:nth-child(12), .hl-summary th:nth-child(13), .hl-summary td:nth-child(13) { min-width: 78px; }
.hl-summary .hl-muted { display: block; margin-top: 5px; }
.hl-reservation { display: grid; gap: 4px; padding-bottom: 12px; }
.hl-reservation + .hl-reservation { padding-top: 12px; border-top: 1px solid #34505e; }
.hl-reservation .tiny-button { justify-self: start; margin-top: 4px; }
.hl-row-actions { display: grid; gap: 8px; }
.hl-summary .hl-tag { white-space: nowrap; }
.hl-summary [data-used="Y · Yes"] { background: #164e43; color: #acedd4; }
.hl-summary [data-used="N · No"] { background: #243f62; color: #c5ddff; }
.hl-summary [data-used="Unknown"] { background: #4b4029; color: #ffe0a2; }
.hl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hl-new-booking[hidden] { display: none; }
@media (max-width: 1050px) {
  .hl-table-wrap { overflow: visible; border: 0; }
  .hl-summary, .hl-summary tbody { display: block; min-width: 0; }
  .hl-summary thead { display: none; }
  .hl-summary .hl-account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; padding: 14px; gap: 14px; }
  .hl-summary td { display: block; border: 0; padding: 0; min-width: 0; width: auto !important; }
  .hl-summary td:first-child, .hl-summary td:nth-child(n+9) { grid-column: 1 / -1; min-width: 0; }
  .hl-summary td::before { content: attr(data-label); display: block; font-size: .73rem; color: #a8b8c9; margin-bottom: 5px; }
  .hl-summary td[data-label="Save"], .hl-summary td[data-label="Delete"] { grid-column: span 1; }
  .hl-summary .hl-date-range input { font-size: .82rem; }
  .hl-row-actions { display: flex; flex-wrap: wrap; }
}
.hl-summary [data-hl-inline="usedAmount"] { min-width: 105px; }
.hl-summary [data-hl-inline="creditStatus"] { min-width: 108px; }
.hl-summary .hl-date-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.hl-summary .hl-date-range label { font-size: .7rem; }
.hl-summary .hl-date-range input { padding: 8px 6px; font-size: .75rem; }
.hl-summary td[data-label="Save"], .hl-summary td[data-label="Delete"] { white-space: nowrap; }
.hl-summary .hl-delete { border-color: #70494a; color: #ffd1b8; }
.hl-summary .hl-delete:hover { border-color: #ffad8b; }
.hl-inline-error { display: block; color: #ffd1b8; font-size: .78rem; margin-top: 5px; }
.hl-summary [aria-invalid="true"] { border-color: #ffad8b; }
/* Keep each card's periods together with a shared tint and accent. */
.hl-summary .hl-account[data-hl-row^="card-8:"] { --hl-card-tint: #162e46; --hl-card-accent: #78b7f0; }
.hl-summary .hl-account[data-hl-row^="card-45:"] { --hl-card-tint: #123832; --hl-card-accent: #73d5bd; }
.hl-summary .hl-account[data-hl-row^="card-7:"] { --hl-card-tint: #302843; --hl-card-accent: #c3a1eb; }
.hl-summary .hl-account[data-hl-row^="card-38-edit:"] { --hl-card-tint: #3b3020; --hl-card-accent: #e6bf76; }
.hl-summary .hl-account[data-hl-row^="card-38-hotels:"] { --hl-card-tint: #3c2633; --hl-card-accent: #e7a3c0; }
.hl-summary .hl-account { background: var(--hl-card-tint, #142c38); }
.hl-summary .hl-account td:first-child { box-shadow: inset 4px 0 var(--hl-card-accent, #7acfc7); }
.hl-summary .hl-account td:first-child > strong { color: var(--hl-card-accent, #e9f2f7); }
.hl-summary .hl-account .hl-muted { color: #c1cbd5; }
@media (max-width: 1050px) {
  .hl-summary .hl-account { box-shadow: inset 4px 0 var(--hl-card-accent, #7acfc7); }
  .hl-summary .hl-account td:first-child { box-shadow: none; }
}
.hl-manual-reservation { display: grid; gap: 10px; }
.hl-reservation-history { margin-top: 12px; }
.hl-reservation-history > summary { cursor: pointer; font-size: .8rem; color: #c1cbd5; }
.hl-reservation-history .hl-reservation { margin-top: 12px; }
.hotel-ledger .hl-place-panel { margin-top: 5px; border: 1px solid #638391; border-radius: 9px; background: #102330; overflow: hidden; }
.hotel-ledger .hl-place-panel[hidden] { display: none; }
.hl-place-option { display: grid; gap: 3px; padding: 10px; cursor: pointer; font-size: .8rem; }
.hl-place-option + .hl-place-option { border-top: 1px solid #34505e; }
.hl-place-option span { color: #c1cbd5; font-weight: 400; font-size: .74rem; }
.hl-place-option:hover, .hl-place-option[aria-selected="true"] { background: #274e60; }
.hotel-ledger .hl-google-attribution { padding: 8px 10px; font: normal 400 12px/1.5 Arial, sans-serif; letter-spacing: normal; white-space: nowrap; color: #fff; text-align: right; border-top: 1px solid #34505e; }
.hotel-ledger .hl-place-help { font-size: .75rem; font-weight: 400; }
.hl-summary .hl-date-range { min-width: 0; }
.hl-summary .hl-account[data-hl-row^="card-45-hilton:"] { --hl-card-tint: #123832; --hl-card-accent: #73d5bd; }
.hl-summary .hl-account[data-hl-row^="card-7-hilton:"] { --hl-card-tint: #302843; --hl-card-accent: #c3a1eb; }
.hl-summary [data-hl-expired="true"] > td:first-child > strong { color: #c1cbd5; }
.hl-totals { display: flex; flex-wrap: wrap; gap: 14px; padding: 18px; margin: 18px 0 10px; border: 1px solid #4c7a83; border-radius: 14px; background: #102d38; }
.hl-totals > div { flex: 1 1 180px; display: grid; gap: 5px; }
.hl-totals span { font-size: .8rem; color: #c1cbd5; }
.hl-totals strong { font-size: 1.5rem; color: #a2eee0; }
.hl-totals p { flex-basis: 100%; margin: 0; color: #c1cbd5; font-size: .8rem; }
@media (max-width: 560px) {
  .hl-summary .hl-account { grid-template-columns: minmax(0, 1fr); }
  .hl-summary td[data-label="Save"], .hl-summary td[data-label="Delete"] { grid-column: 1 / -1; }
  .hl-summary .hl-date-range input { padding: 9px 6px; }
}
