.booking-list-title {
  align-items: center;
}
.booking-list-title h2 {
  margin: 0;
}
.booking-list-title .muted {
  margin: 3px 0 0;
}
.booking-live-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 340px);
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
}
.booking-live-search span {
  color: #a61f39;
  font-size: 22px;
  font-weight: 800;
}
.booking-live-search input {
  margin: 0;
  border: 0;
  padding: 11px 0;
  outline: 0;
  box-shadow: none;
}
.booking-live-search input:focus {
  outline: 0;
}
.booking-status-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #626b75;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.booking-status-filter select {
  min-width: 150px;
  margin: 0;
  padding: 10px 32px 10px 11px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  color: #333;
  font: inherit;
}
.admin-slip-modal-trigger {
  padding: 7px 10px;
  border: 1px solid #e1a7b2;
  border-radius: 8px;
  background: #fff7f8;
  color: #a5223a;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.admin-slip-modal-trigger:hover { background: #bd243f; color: #fff; }
.admin-slip-modal-trigger:focus-visible { outline: 3px solid #bd243f55; outline-offset: 2px; }
.booking-search-empty {
  padding: 18px 0;
  text-align: center;
  color: #777;
}
.booking-list-card tr[hidden] {
  display: none;
}
.booking-bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 18px 0 12px;
  padding: 12px 14px;
  border: 1px solid #ead4d8;
  border-radius: 12px;
  background: #fff8f9;
}
.booking-bulk-toolbar > span { min-width: 92px; color: #9c2037; font-weight: 800; }
.booking-bulk-toolbar label { display: flex; align-items: center; gap: 8px; margin: 0; }
.booking-bulk-toolbar select { min-width: 175px; margin: 0; padding: 9px 32px 9px 10px; }
.booking-bulk-toolbar .primary { min-height: 40px; margin: 0 0 0 auto; padding: 9px 16px; }
.booking-bulk-toolbar .primary:disabled { opacity: .45; cursor: not-allowed; }
.booking-select-column { width: 42px; text-align: center; }
.booking-check { display: inline-grid; place-items: center; margin: 0; cursor: pointer; }
.booking-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.booking-check span { display: grid; place-items: center; width: 19px; height: 19px; border: 2px solid #b8bec6; border-radius: 5px; background: #fff; }
.booking-check input:checked + span { border-color: #bd243f; background: #bd243f; }
.booking-check input:checked + span::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 900; line-height: 1; }
.booking-check input:indeterminate + span { border-color: #bd243f; background: #bd243f; }
.booking-check input:indeterminate + span::after { content: "−"; color: #fff; font-size: 14px; font-weight: 900; line-height: 1; }
.booking-check input:focus-visible + span { outline: 3px solid #bd243f55; outline-offset: 2px; }
@media (max-width: 650px) {
  .booking-list-title {
    align-items: stretch;
  }
  .booking-live-search {
    width: 100%;
  }
  .booking-status-filter { justify-content: space-between; }
  .booking-status-filter select { flex: 1; }
  .booking-bulk-toolbar { align-items: stretch; flex-direction: column; }
  .booking-bulk-toolbar label { justify-content: space-between; }
  .booking-bulk-toolbar select { flex: 1; }
  .booking-bulk-toolbar .primary { width: 100%; margin: 0; }
}

/* Booking management workspace */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.booking-list-card { padding: 24px; overflow: visible; }
.booking-list-title { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); align-items: end; gap: 28px; padding: 18px 20px; border: 1px solid #e5e8eb; border-radius: 15px; background: linear-gradient(110deg, #fff 0%, #fff 58%, #faf7f8 100%); box-shadow: 0 7px 18px #20262d08; }
.booking-list-heading { display: flex; align-items: center; gap: 13px; min-width: 0; }
.booking-list-heading h2 { margin: 0; font-size: 24px; line-height: 1.25; }
.booking-list-heading .muted { margin: 3px 0 0; font-size: 13px; }
.booking-list-icon { display: grid; place-items:center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: #fff0f2; color: #ad223b; font-size: 22px; }
.booking-list-controls { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(130px, 170px)); align-items: end; gap: 12px; min-width: 0; }
.booking-control { display: grid; gap: 6px; min-width: 0; margin: 0; }
.booking-control-label { color: #737b85; font-size: 11px; font-weight: 750; }
.booking-live-search { display: flex; width: 100%; min-height: 44px; border-color: #d9dee4; border-radius: 11px; transition: border-color .2s, box-shadow .2s; }
.booking-live-search i { color: #ad223b; font-size: 20px; font-style: normal; font-weight: 800; }
.booking-live-search:focus-within { border-color: #bd243f; box-shadow: 0 0 0 3px #bd243f14; }
.booking-live-search input { max-width: none; width: 100%; font-size: 14px; }
.booking-status-filter { display: grid; gap: 6px; }
.booking-status-filter select { min-height: 44px; border-color: #d9dee4; border-radius: 12px; }
.booking-bulk-toolbar { min-height: 62px; margin: 16px 0; border-color: #ebd8dc; border-radius: 14px; background: linear-gradient(105deg, #fffafa, #fff4f6); }
.booking-bulk-toolbar > span { padding: 7px 10px; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px #7015260a; }
.booking-bulk-toolbar label > span { color: #646b74; font-size: 12px; }
.booking-bulk-toolbar select { min-height: 40px; border: 1px solid #d9dee4; border-radius: 9px; background-color: #fff; }
.booking-table-scroll { overflow: hidden; max-width: 100%; border: 1px solid #e2e6ea; border-radius: 14px; background: #fff; }
.booking-list-table { width: 100%; min-width: 0; margin: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.booking-list-table .col-select { width: 4%; }
.booking-list-table .col-code { width: 15%; }
.booking-list-table .col-customer { width: 17%; }
.booking-list-table .col-items { width: 17%; }
.booking-list-table .col-total { width: 10%; }
.booking-list-table .col-status { width: 25%; }
.booking-list-table .col-slip { width: 12%; }
.booking-list-table thead tr { background: #f5f6f7; }
.booking-list-table thead th { height: 48px; padding: 11px 9px; border: 0; border-bottom: 1px solid #dde2e6; background: transparent; color: #626a75; font-family: Prompt, sans-serif; font-size: 11px; font-weight: 700; line-height: 1.35; text-align: left; vertical-align: middle; white-space: normal; }
.booking-list-table thead th:nth-child(5), .booking-list-table tbody td:nth-child(5) { text-align: right; }
.booking-list-table thead th:nth-child(7), .booking-list-table tbody td:nth-child(7) { text-align: center; }
.booking-list-table thead .booking-select-column { text-align: center; }
.booking-list-table tbody td { min-width: 0; padding: 15px 9px; border-bottom: 1px solid #edf0f2; color: #353b44; vertical-align: middle; overflow-wrap: anywhere; }
.booking-list-table tbody tr:last-child td { border-bottom: 0; }
.booking-list-table tbody tr { transition: background .16s ease; }
.booking-list-table tbody tr:hover { background: #fffafb; }
.booking-list-table tbody tr:has([data-booking-select]:checked) { background: #fff4f6; }
.booking-code { display: block; color: #252b34; font-family: Prompt, sans-serif; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.booking-date, .booking-phone { display: block; margin-top: 4px; color: #7b8490; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.booking-customer-name { display: block; color: #313740; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.booking-delivery { display: inline-block; margin-top: 7px; padding: 3px 7px; border-radius: 6px; background: #f0f2f4; color: #626a74; font-size: 10px; font-weight: 700; }
.booking-items { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: stretch; gap: 7px; width: 100%; max-width: 100%; }
.booking-size-item { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; max-width: 100%; padding: 7px 9px; border: 1px solid #e1e5e8; border-radius: 8px; background: #fafbfb; color: #3d444d; line-height: 1.4; white-space: normal; }
.booking-size-name { min-width: 0; color: #343a43; font-family: Prompt, sans-serif; font-size: 14px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.booking-size-quantity { flex: 0 0 auto; color: #a62039; font-family: Prompt, sans-serif; font-size: 12px; font-weight: 800; white-space: nowrap; }
.booking-amount { color: #9f2037; font-family: Prompt, sans-serif; font-size: 15px; white-space: normal; }
.booking-current-status { max-width: 100%; margin-bottom: 8px; font-style: normal; line-height: 1.35; white-space: normal; text-align: center; }
.booking-current-status.received { background: #e9f7ee; color: #1d7442; }
.booking-status-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px; max-width: 100%; }
.booking-status-form select { width: 100%; min-width: 0; min-height: 36px; margin: 0; padding: 7px 25px 7px 9px; border: 1px solid #d8dde2; border-radius: 8px; background-color: #fff; font-family: "Noto Sans Thai", sans-serif; font-size: 13px; line-height: 1.35; }
.booking-status-form .small-btn { min-height: 32px; margin: 0; padding: 6px 8px; border-radius: 8px; font-size: 10px; white-space: nowrap; }
.admin-slip-modal-trigger { max-width: 100%; padding: 7px 8px; white-space: normal; }
.booking-row-actions { display: grid; justify-items: center; gap: 6px; }
.booking-row-actions > small { color: #828a94; font-size: 10px; text-align: center; }
.shipping-label-button { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 34px; padding: 7px 10px; border: 1px solid #c9ced4; border-radius: 8px; background: #f7f8f9; color: #3c434c; text-decoration: none; font-family: "Noto Sans Thai", sans-serif; font-size: 13px; font-weight: 800; line-height: 1.35; text-align: center; }
.shipping-label-button:hover { border-color: #9f1f37; background: #fff6f7; color: #9f1f37; }
.shipping-label-button:focus-visible { outline: 3px solid #bd243f44; outline-offset: 2px; }

@media (max-width: 900px) {
  .booking-list-title { grid-template-columns: 1fr; align-items: stretch; gap: 16px; }
  .booking-list-controls { width: 100%; }
  .booking-live-search { width: 100%; }
}

@media (max-width: 820px) {
  .booking-list-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
  .booking-list-title { gap: 15px; margin-bottom: 12px; padding: 18px; border: 1px solid #e3e6e9; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px #2b30350b; }
  .booking-list-controls { display: grid; grid-template-columns: 1fr; }
  .booking-live-search { width: 100%; }
  .booking-status-filter { display: grid; }
  .booking-control-label { font-size: 12px; }
  .booking-bulk-toolbar { margin: 0 0 12px; padding: 14px; border-radius: 15px; }
  .booking-table-scroll { overflow: visible; border: 0; background: transparent; }
  .booking-list-table { display: block; min-width: 0; border: 0; background: transparent; }
  .booking-list-table colgroup { display: none; }
  .booking-list-table thead { display: none; }
  .booking-list-table tbody { display: grid; gap: 12px; }
  .booking-list-table tbody tr { position: relative; display: grid; grid-template-columns: 1fr; padding: 17px; border: 1px solid #e0e4e8; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px #252b320b; }
  .booking-list-table tbody tr:hover { background: #fff; }
  .booking-list-table tbody tr:has([data-booking-select]:checked) { border-color: #dc9ba7; background: #fff8f9; }
  .booking-list-table tbody td { display: block; padding: 11px 0; border-bottom: 1px dashed #e4e7ea; }
  .booking-list-table tbody td::before { content: attr(data-label); display: block; margin-bottom: 6px; color: #8a929c; font-size: 11px; font-weight: 700; }
  .booking-list-table tbody td:last-child { border-bottom: 0; }
  .booking-list-table tbody td:nth-child(5), .booking-list-table tbody td:nth-child(7) { text-align: left; }
  .booking-list-table .booking-select-column { position: absolute; z-index: 2; top: 17px; right: 17px; display: block; width: auto; padding: 0; border: 0; }
  .booking-list-table .booking-select-column::before { display: none; }
  .booking-list-table td[data-label="เลขที่จอง"] { padding-top: 0; padding-right: 36px; }
  .booking-items { max-width: none; }
  .booking-size-item { max-width: 320px; padding: 9px 11px; }
  .booking-size-name { font-size: 14px; }
  .booking-size-quantity { font-size: 12px; }
  .booking-status-form { grid-template-columns: 1fr; align-items: stretch; }
  .booking-status-form select, .booking-status-form .small-btn { width: 100%; }
  .booking-status-form select { min-height: 44px; font-size: 14px; }
  .booking-current-status { justify-self: start; }
  .admin-slip-modal-trigger { justify-self: start; }
  .booking-row-actions { justify-items: start; }
  .shipping-label-button { min-height: 40px; font-size: 14px; }
}

@media (max-width: 390px) {
  .booking-list-heading { min-width: 0; }
}
