/* Approved operational dashboard: live data and state-specific controls. */
.wd-title-line { display: flex; align-items: center; gap: 12px; }
.wd-demo-tag { color: #2162d9; background: #eaf2ff; border-radius: 5px; padding: 3px 9px; font-size: 12px; white-space: nowrap; }
.wb-page-heading { align-items: center; gap: 18px; margin-bottom: 4px; }
.wb-page-heading h1 { font-size: 30px; line-height: 1.5; }
.wb-page-heading p { font-size: 14px; margin: 0; }
.wd-heading-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.wd-heading-actions time { color: #405576; font-size: 13px; margin-right: 5px; }
.wd-heading-actions .wb-button { gap: 8px; min-height: 38px; }
.wd-heading-actions svg { width: 19px; height: 19px; }
.wb-environment { display: flex; margin: 0 0 16px; color: #71819a; font-size: 11px; }
.wb-environment .wb-mode { display: none; }
.wb-environment #updated-at { display: none; }
.wb-content { padding: 22px 26px; }
.wd-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
.wd-stat { display: flex; align-items: flex-start; gap: 16px; padding: 18px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.wd-stat>div { min-width: 0; }
.wd-stat-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px; background: #edf4ff; color: #1761ff; }
.wd-stat-icon svg { width: 26px; height: 26px; }
.wd-stat-icon.green { color: #0aab79; background: #ecfaf4; }
.wd-stat-icon.amber { color: #ec9909; background: #fff7e8; }
.wd-stat-label { display: block; color: #5f7392; font-size: 13px; }
.wd-stat strong { display: block; color: #112447; font-size: 27px; line-height: 1.35; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.wd-stat small { display: block; color: #7186a4; font-size: 11px; margin-top: 4px; line-height: 1.5; }
.wd-stat .wd-unlock-attention { display: block; padding: 0; margin-top: 4px; font-size: 12px; }
.wd-attention { display: flex; align-items: center; gap: 18px; border: 1px solid #f5dfa5; border-radius: 8px; background: #fffbef; padding: 10px 18px; margin-bottom: 14px; min-height: 48px; }
.wd-attention-icon { color: #dc900a; flex-shrink: 0; }
.wd-attention-icon svg { width: 20px; height: 20px; }
.wd-attention-items { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; flex: 1; min-width: 0; font-size: 12px; }
.wd-attention-item { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-left: 1px solid #eddbad; padding-left: 20px; flex: 1 1 auto; }
.wd-attention-item:first-child { border-left: 0; padding-left: 0; }
.wd-attention-item>span { color: #aa6708; }
.wd-attention-item .wb-text { font-size: 12px; padding: 0; margin-left: auto; white-space: nowrap; }
.wd-attention.is-clear { background: #f3fbf8; border-color: #d5e9df; color: #38836b; }
.wd-attention.is-clear .wd-attention-icon { color: #14956e; }
.wd-room-panel { padding: 16px 14px 9px; margin-bottom: 12px; }
.wd-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.wd-panel-heading h2 { font-size: 18px; font-weight: 650; color: #152748; }
.wd-panel-title { display: flex; align-items: center; gap: 18px; }
.wd-live { color: #788ba8; font-size: 12px; white-space: nowrap; }
.wd-live::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #11a16e; }
.wd-toolbar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wd-toolbar .wb-search { width: 240px; min-width: 120px; }
.wd-toolbar .wb-search input { min-height: 35px; padding: 7px 10px 7px 0; font-size: 12px; }
.wd-toolbar .wb-search svg { width: 17px; height: 17px; }
.wd-toolbar select { font-size: 12px; min-height: 36px; padding: 7px 10px; width: 120px; }
.wd-toolbar .wb-button { padding: 7px 10px; min-height: 36px; }
.wd-toolbar .wb-button svg { width: 18px; height: 18px; }
.wd-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.wd-filters button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #e2eaf6; border-radius: 6px; background: #f7faff; color: #50627f; padding: 6px 13px; min-height: 32px; font-size: 12px; }
.wd-filters button>span { background: #e8f0fc; border-radius: 10px; padding: 0 5px; font-size: 11px; }
.wd-filters button.selected { color: white; background: var(--blue); border-color: var(--blue); }
.wd-filters button.selected>span { background: #ffffff30; }
.wd-room-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.wd-room { --state: #11855d; --tint: #e7f8f0; border: 1px solid #e0e8f3; border-top: 3px solid var(--state); border-radius: 8px; padding: 13px 14px 14px; display: flex; flex-direction: column; min-width: 0; min-height: 140px; }
.wd-in_use { --state: #1761ff; --tint: #eaf2ff; }
.wd-dirty { --state: #c77b00; --tint: #fff4dc; }
.wd-reserved { --state: #7f33c7; --tint: #f3eafe; }
.wd-disabled { --state: #6e7e96; --tint: #f0f3f8; }
.wd-room.wd-placeholder { background: #f8fafc; border-style: dashed; }
.wd-room.wd-placeholder h3 { color: #6e7e96; }
.wd-room>header { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.wd-room h3 { color: #152748; font-size: 16px; font-weight: 650; line-height: 1.5; }
.wd-room-type { display: block; font-size: 11px; color: #7b8ca7; margin-top: 1px; }
.wd-room-badges { display: flex; align-items: center; gap: 6px; }
.wd-badge { display: inline-flex; align-items: center; color: var(--state,#11855d); background: var(--tint,#e7f8f0); padding: 3px 8px; border-radius: 5px; font-size: 11px; white-space: nowrap; }
.wd-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.wd-room .wb-button.wd-menu { border: 0; padding: 0 3px; min-height: 25px; background: transparent; color: #71829b; font-size: 21px; line-height: 1; }
.wd-room-body { margin: 8px 0 12px; flex: 1; }
.wd-room-main { display: block; color: var(--state); font-size: 20px; line-height: 1.5; font-weight: 600; letter-spacing: -.3px; }
.wd-room-body p { color: #687f9f; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.wd-room-body .wd-room-reservation { color: #334b6c; font-variant-numeric: tabular-nums; }
.wd-ending .wd-room-main { color: #c67600; }
.wd-disabled-note { color: #9a6c22; display: block; font-size: 11px; margin-top: 3px; }
.wd-room-actions { display: flex; gap: 9px; }
.wd-room-actions .wb-button { flex: 1; padding: 6px 8px; min-height: 33px; border-radius: 5px; font-size: 12px; }
.wd-room-actions .secondary { color: #1761ff; border-color: #adc7fb; }
.wb-button.wd-amber { color: #fff; background: #e59308; border-color: #e59308; }
.wb-button.wd-link { border-color: transparent; color: #1761ff; background: transparent; }
.wd-room-footer { display: flex; justify-content: space-between; gap: 10px; color: #7d8fa9; font-size: 10px; padding-top: 9px; }
.wd-arrivals-panel { padding: 14px 16px 8px; }
.wd-arrivals-panel .wd-panel-heading { margin-bottom: 8px; }
.wd-arrivals-panel .wd-panel-heading h2 { font-size: 16px; }
.wd-arrivals-panel table { min-width: 600px; }
.wd-arrivals-panel th { font-size: 12px; padding: 7px 12px; }
.wd-arrivals-panel td { padding: 7px 12px; font-size: 12px; }
.wd-arrivals-panel th:last-child,.wd-arrivals-panel td:last-child { text-align: right; }
.wd-empty { grid-column: 1/-1; text-align: center; padding: 30px 18px; color: #7d8da4; font-size: 13px; }
.wd-room-grid>.wd-empty { min-height: 180px; display: grid; place-items: center; }
#wb-operation-dialog .wb-config-note { margin-top: 12px; }
#wb-operation-dialog .wb-form-actions .primary { flex: 1; }
@media(min-width:1101px) { .wb-sidebar { width: 224px; } .wb-main { margin-left: 224px; } .wb-brand { padding-inline: 20px; gap: 12px; } .wb-brand strong { font-size: 22px; } }
@media(min-width:1800px) { .wd-room { padding: 16px 18px; } .wd-room-main { font-size: 23px; } .wd-room h3 { font-size: 18px; } .wd-room-body { margin-block: 12px 16px; } .wd-stat { padding: 21px; } }
@media(max-width:1450px) and (min-width:1101px) { .wd-stat { padding: 15px 12px; gap: 9px; } .wd-stat-icon { width: 34px; height: 38px; } .wd-stat strong { font-size: 24px; } .wd-heading-actions time { display: none; } .wd-stat small { font-size: 10px; } }
@media(max-width:1100px) and (min-width:761px) { .wd-room-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .wd-stat { padding: 12px; gap: 8px; } .wd-stat-icon { display: none; } .wd-stat strong { font-size: 24px; } .wd-heading-actions time { display: none; } .wd-panel-title { gap: 10px; } .wd-toolbar .wb-search { width: 180px; } }
@media(max-width:760px) {
  .wb-content { padding: 16px 12px; }
  .wb-page-heading { flex-direction: column; align-items: stretch; gap: 10px; }
  .wb-page-heading h1 { font-size: 25px; }
  .wb-page-heading p { margin: 0; font-size: 12px; }
  .wd-heading-actions { gap: 8px; }
  .wd-heading-actions time { display: none; }
  .wd-heading-actions .wb-button { flex: 1; }
  .wb-environment { margin-top: 9px; margin-bottom: 12px; font-size: 10px; }
  .wd-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .wd-stat { padding: 12px; gap: 8px; }
  .wd-stat-icon { display: none; }
  .wd-stat strong { font-size: 23px; }
  .wd-stat-label { font-size: 12px; }
  .wd-stat small { font-size: 10px; }
  .wd-attention { padding: 12px; align-items: flex-start; gap: 10px; }
  .wd-attention-items { display: grid; gap: 10px; }
  .wd-attention-item { border: 0; padding: 0; gap: 4px 8px; font-size: 11px; }
  .wd-attention-item .wb-text { font-size: 11px; }
  .wd-room-panel { padding: 13px 10px 10px; }
  .wd-room-panel>.wd-panel-heading { flex-direction: column; align-items: stretch; gap: 12px; }
  .wd-panel-title { justify-content: space-between; gap: 8px; }
  .wd-panel-heading h2 { font-size: 17px; }
  .wd-live { font-size: 10px; }
  .wd-toolbar { gap: 6px; }
  .wd-toolbar .wb-search { flex: 1; width: 0; min-width: 0; }
  .wd-toolbar select { width: 91px; padding-inline: 5px; }
  .wd-toolbar .wb-button { padding: 7px; }
  .wd-filters { gap: 6px; }
  .wd-filters button { padding: 5px 9px; gap: 5px; font-size: 11px; }
  .wd-room-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .wd-room { padding: 12px; }
  .wd-room-footer>span:last-child { display: none; }
  .wd-arrivals-panel { padding: 12px 10px; }
}
@media(max-width:580px) { .wd-room-grid { grid-template-columns: 1fr; } .wd-room-main { font-size: 22px; } }

/* Keep workbench dialogs independent of customer presentation and animations. */
html:has(dialog[open]),body:has(dialog[open]) { overflow: hidden; }
dialog::backdrop { background-color: #061a3566; backdrop-filter: none; }

/* Placeholders retain their position without operational controls. */
.wd-room.wd-placeholder{border-color:#d7dee8;background:#f4f6f9;color:#7a879b}
.wd-room.wd-placeholder .wd-room-main{color:#7a879b}
.wd-badge.wd-placeholder{background:#e6ebf2;color:#738096}

.wd-turnover{margin-bottom:16px;padding:18px 20px;border-color:#e4d4aa;scroll-margin-top:16px}
.wd-turnover-intro{margin:8px 0 12px;color:#748399;font-size:13px;line-height:1.6}
.wd-turnover-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.wd-turnover-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;background:#fffcf5;border:1px solid #eee3cb;border-radius:8px}
.wd-turnover-copy{min-width:0;display:grid;gap:5px}
.wd-turnover-copy strong{font-size:14px;line-height:1.5}
.wd-turnover-age{font-size:12px;color:#946b20}
.wd-turnover-copy p{margin:0;color:#65748a;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.wd-turnover-item>.wb-button{flex-shrink:0;white-space:nowrap}
@media(max-width:580px){.wd-turnover{padding:13px 10px}.wd-turnover-item{align-items:stretch;flex-direction:column;gap:10px}.wd-turnover-item>.wb-button{align-self:flex-start}.wd-turnover .wd-panel-heading{align-items:flex-start;gap:10px}}

.wb-alert-dialog{width:480px}
.wb-alert-dialog .wb-dialog-heading{margin-bottom:16px}
.wb-alert-list{display:grid;gap:14px;max-height:55dvh;overflow:auto;overflow-wrap:anywhere}
.wb-alert-message,.wb-alert-item p{font-size:14px;line-height:1.8;color:#465873;white-space:pre-line}
.wb-alert-item{border-bottom:1px solid var(--line);padding-bottom:14px}
.wb-alert-item:last-child{border-bottom:0;padding-bottom:0}
.wb-alert-item strong{display:block;font-size:14px;line-height:1.6;margin-bottom:6px}
.wb-alert-item .wb-text{margin-top:6px}
.wb-alert-dialog .wb-form-actions{margin-top:22px;justify-content:flex-end}

/* Member account overview, identity rows and balance history. */
.wb-content:has(>#view-members:not([hidden]))>.wb-page-heading { margin-bottom:14px; }
#view-members .member-overview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:0; overflow:hidden; }
#view-members .wd-stat { align-items:center; gap:14px; padding:14px 18px; border:0; border-radius:0; }
#view-members .wd-stat + .wd-stat { border-left:1px solid var(--line); }
#view-members .wd-stat-icon { display:grid; width:40px; height:40px; border-radius:50%; }
#view-members .wd-stat-icon svg { width:22px; height:22px; }
#view-members .wd-stat strong { font-size:24px; line-height:1.3; overflow-wrap:anywhere; }
#view-members .wd-stat strong small { display:inline; margin:0; font-size:14px; font-weight:500; color:inherit; }

#view-members table { table-layout:fixed; }
.member-accounts th:nth-child(2) { width:20%; text-align:right; }
.member-accounts th:last-child { width:25%; text-align:right; }
.member-identity { display:flex; align-items:center; gap:10px; }
.member-labels { min-width:0; }
.member-labels strong, .member-labels small { display:block; overflow:hidden; text-overflow:ellipsis; }
.member-labels strong { font-size:13px; font-weight:600; color:#223550; }
.member-labels small { margin:1px 0 0; color:#6e7d92; font-size:11px; line-height:1.45; }
.member-avatar { display:grid; place-items:center; width:30px; height:30px; flex:none; border-radius:50%; background:#eff4fa; }
.member-avatar::after {
  content:""; width:17px; height:17px;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23708bad' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E");
}
.member-actions { display:flex; align-items:center; justify-content:flex-end; gap:15px; }
.member-actions .member-credit { border:1px solid #c7dafb; background:#f7faff; color:#225dcc; border-radius:5px; padding:0 10px; font-size:12px; line-height:26px; }
.member-actions .member-credit:hover { background:#eaf2ff; border-color:#9cbcf6; }
.member-ledger-heading { display:flex; align-items:baseline; gap:12px; }
.member-ledger-heading span, .member-stale { font-size:12px; color:var(--muted); }
.member-stale { padding:0 18px 12px; }
.member-ledger th:nth-child(1) { width:18%; }
.member-ledger th:nth-child(2) { width:13%; }
.member-ledger th:nth-last-child(-n+2) { width:16%; }
.member-ledger th:nth-last-child(-n+2), .member-ledger-detail th:nth-last-child(-n+2),
td.member-number { text-align:right; font-variant-numeric:tabular-nums; }
#view-members td.member-number, .member-ledger-detail td.member-number { font-weight:550; color:#253c5a; }
#view-members td.member-increase, .member-ledger-detail td.member-increase { color:#12805a; }
.member-note, .member-ledger-name { white-space:normal; overflow-wrap:anywhere; }
.member-full-id { overflow-wrap:anywhere; user-select:all; }

@media (max-width:1000px) {
  #view-members .member-accounts th:last-child { width:170px; }
}
@media (max-width:760px) {
  #view-members .wd-stat { gap:8px; padding:12px 10px; }
  #view-members .wd-stat-icon { width:30px; height:30px; }
  #view-members .wd-stat-icon svg { width:17px; height:17px; }
  #view-members .wd-stat strong { font-size:19px; }
  #view-members .wd-stat-label { font-size:12px; }
  #view-members .wb-panel-heading { align-items:center; }
  #view-members .wb-search { width:54%; min-width:0; }
  #view-members .wb-reference-panel th, #view-members .wb-reference-panel td { padding:8px 10px; }
  #view-members .member-accounts { min-width:290px; }
  #view-members .member-accounts th:nth-child(2) { width:28%; }
  #view-members .member-accounts th:last-child { width:82px; }
  .member-identity { gap:7px; }
  .member-avatar { width:24px; height:24px; }
  .member-actions { flex-direction:column; align-items:flex-end; gap:2px; }
  .member-actions .member-credit { padding:0 6px; line-height:23px; }
  .member-ledger { min-width:630px; }
  .member-ledger-detail { min-width:440px; }
}
