/* Dana Booking Manager – Public CSS v2.2
 * Mobile-first, no FullCalendar dependency for dana/events calendar
 */

/* ── Base ─────────────────────────────────────────────────────────────── */
.dbm-cal-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.dbm-cal-heading { font-size: 20px; font-weight: 700; color: #3d2b1a; margin: 0 0 4px; }
.dbm-cal-sub     { color: #7b6040; font-size: 14px; margin: 0 0 16px; line-height: 1.5; }

/* ── Calendar header ──────────────────────────────────────────────────── */
.dbm-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; gap: 8px;
}
.dbm-cal-month-label {
  font-weight: 700; font-size: 16px; color: #3d2b1a; text-align: center; flex: 1;
}
.dbm-cal-nav {
  background: none; border: 1px solid #d0c8bc; border-radius: 6px;
  width: 36px; height: 36px; font-size: 22px; line-height: 1; cursor: pointer;
  color: #7b5e2a; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.dbm-cal-nav:hover { background: #f5ece0; }

/* ── Day-of-week row ──────────────────────────────────────────────────── */
.dbm-cal-dow-row {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 2px; margin-bottom: 4px;
}
.dbm-cal-dow-row span {
  text-align: center; font-size: 11px; font-weight: 700;
  color: #9a8060; text-transform: uppercase; letter-spacing: .4px; padding: 2px 0;
}

/* ── Calendar grid ────────────────────────────────────────────────────── */
.dbm-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
}
.dbm-cal-loading {
  grid-column: 1/-1; text-align: center; padding: 32px; color: #9a8060; font-size: 14px;
}

/* ── Calendar cells ───────────────────────────────────────────────────── */
.dbm-cal-cell {
  min-height: 64px; border-radius: 8px; background: #faf8f5;
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 4px 5px; position: relative; gap: 2px;
  border: 1.5px solid transparent; transition: border-color .15s, background .15s;
}
.dbm-cal-cell.empty     { background: transparent; border: none; }
.dbm-cal-cell.today     { border-color: #7b5e2a !important; background: #fdf6ec; }
.dbm-cal-cell.past      { opacity: .45; }
.dbm-cal-cell.bookable  { cursor: pointer; border-color: #e0d9d0; }
.dbm-cal-cell.bookable:hover { background: #f5ece0; border-color: #7b5e2a; }
.dbm-cal-cell.full      { background: #fff0ee; border-color: #f0c0b8; }
.dbm-cal-cell.has-event { cursor: pointer; border-color: #d4be8a; background: #fdf8ec; }
.dbm-cal-cell.has-event:hover { background: #f5ebe0; border-color: #7b5e2a; }

.dbm-day-num {
  font-size: 13px; font-weight: 600; color: #3d2b1a; line-height: 1; flex-shrink: 0;
}
.dbm-cal-cell.past .dbm-day-num { color: #bbb; }

/* ── Slot dots ────────────────────────────────────────────────────────── */
.dbm-cal-dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; margin: 2px 0; }
.dbm-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  display: inline-block;
}
.dot-ok   { background: #27ae60; }
.dot-warn { background: #e67e22; }
.dot-full { background: #e74c3c; }
.dot-event{ background: #7B5E2A; }

/* ── Availability tags ────────────────────────────────────────────────── */
.cal-tag {
  font-size: 10px; font-weight: 700; border-radius: 8px;
  padding: 1px 6px; line-height: 1.4; white-space: nowrap;
}
.cal-tag.avail { background: #e6f4ec; color: #1a5e34; }
.cal-tag.full  { background: #fdecea; color: #a01010; }
.cal-tag.event { background: #fdf3e3; color: #7b5e2a; }

/* ── Pool chip ────────────────────────────────────────────────────────── */
.dbm-pool-chip {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; margin-bottom: 10px;
}
.dbm-pool-chip.weekday { background: #e8f0ff; color: #1a4faa; }
.dbm-pool-chip.weekend { background: #fff5e0; color: #a05a00; }

/* ── Day detail popup ─────────────────────────────────────────────────── */
#dbm-day-popup {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.5); align-items: center; justify-content: center;
  padding: 16px;
}
#dbm-day-popup.open { display: flex; }
.dbm-popup-inner {
  background: #fff; border-radius: 14px; width: 100%; max-width: 420px;
  max-height: 85vh; overflow-y: auto; position: relative;
  padding: 22px 20px; box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.dbm-popup-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 18px; color: #9a8060; cursor: pointer; padding: 4px;
}
.dbm-popup-date {
  font-size: 16px; font-weight: 700; color: #3d2b1a; margin: 0 0 6px;
}
.dbm-popup-empty { color: #9a8060; text-align: center; padding: 16px 0; }

/* ── Popup slot cards ─────────────────────────────────────────────────── */
.dbm-popup-slot { padding: 14px 0; }
.dbm-ps-sep { border: none; border-top: 1px solid #f0ede8; margin: 0; }
.dbm-ps-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.dbm-ps-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.dbm-ps-name { font-size: 15px; color: #3d2b1a; font-weight: 600; flex: 1; }
.dbm-ps-time { font-size: 13px; color: #9a8060; }
.dbm-ps-badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
}
.dbm-ps-badge.avail { background: #e6f4ec; color: #1a5e34; }
.dbm-ps-badge.full  { background: #fdecea; color: #a01010; }
.dbm-ps-hint { font-size: 12px; color: #9a8060; margin: 8px 0; }
.dbm-ps-desc { font-size: 13px; color: #5a4020; margin: 4px 0 8px; }
.dbm-ps-time { margin-bottom: 6px; display: block; }
.dbm-ps-book-btn {
  display: block; width: 100%; margin-top: 12px; padding: 11px;
  background: #7b5e2a; color: #fff; border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity .15s;
}
.dbm-ps-book-btn:hover { opacity: .88; }

/* ── Booking bottom sheet ─────────────────────────────────────────────── */
#dbm-booking-sheet {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.5); align-items: flex-end; justify-content: center;
}
#dbm-booking-sheet.open { display: flex; }
.dbm-sheet-inner {
  background: #fff; border-radius: 18px 18px 0 0; width: 100%; max-width: 600px;
  max-height: 92vh; overflow-y: auto; padding: 20px 20px 32px; position: relative;
}
.dbm-sheet-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 20px; color: #9a8060; cursor: pointer; padding: 4px;
}
.dbm-sheet-title {
  font-size: 18px; font-weight: 700; color: #3d2b1a; margin: 0 32px 16px 0;
}

/* ── Slot info inside sheet ───────────────────────────────────────────── */
.dbm-bs-slot-info {
  background: #fdf8f0; border-radius: 10px; padding: 14px 16px; margin-bottom: 18px;
}
.dbm-bs-date { font-weight: 600; color: #3d2b1a; margin: 0 0 10px; font-size: 14px; }
.dbm-bs-hint { font-size: 12px; color: #7b6040; margin: 8px 0 0; line-height: 1.5; }
.dbm-bs-desc { font-size: 13px; color: #5a4020; margin: 4px 0 8px; line-height: 1.5; }

/* ── Portion bar ──────────────────────────────────────────────────────── */
.dbm-pbar-wrap { display: flex; flex-direction: column; gap: 5px; }
.dbm-pbar {
  height: 12px; border-radius: 6px; background: #e8e4de; overflow: hidden;
}
.dbm-pfill { height: 100%; background: #27ae60; border-radius: 6px; transition: width .4s; }
.dbm-pbar.warn .dbm-pfill { background: #e67e22; }
.dbm-pbar.full .dbm-pfill { background: #e74c3c; }
.dbm-pbar-legend {
  display: flex; gap: 10px; font-size: 12px; font-weight: 500; flex-wrap: wrap;
}
.pleg-avail  { color: #1a5e34; }
.pleg-booked { color: #a05a00; }
.pleg-total  { color: #5a4020; }

/* ── Form fields ──────────────────────────────────────────────────────── */
.dbm-sf { margin-bottom: 14px; }
.dbm-sf label {
  display: block; font-size: 12px; font-weight: 600; color: #5a4020; margin-bottom: 4px;
}
.dbm-hint-txt { font-weight: 400; color: #9a8060; font-size: 11px; }
.dbm-sf input[type=text], .dbm-sf input[type=email],
.dbm-sf input[type=tel],  .dbm-sf input[type=number],
.dbm-sf select,
.dbm-sf textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid #d0c8bc; border-radius: 8px;
  font-size: 15px; font-family: inherit; transition: border-color .15s;
  -webkit-appearance: none;
}
.dbm-sf input:focus, .dbm-sf textarea:focus {
  outline: none; border-color: #7b5e2a;
}

/* ── Portions stepper ─────────────────────────────────────────────────── */
.dbm-portions-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.dbm-qty-btn {
  width: 38px; height: 38px; border-radius: 8px; border: 1.5px solid #d0c8bc;
  background: #fff; font-size: 20px; line-height: 1; cursor: pointer;
  color: #7b5e2a; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s;
}
.dbm-qty-btn:hover { background: #f5ece0; }
.dbm-qty-label { font-size: 13px; color: #9a8060; margin-left: 4px; }
.dbm-qty-limit {
  font-size: 11px; color: #e67e22; font-weight: 600;
  display: block; margin-top: 4px;
}

/* ── Offerings ────────────────────────────────────────────────────────── */
.dbm-offering-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 0; border-bottom: 1px solid #f0ede8;
  flex-wrap: wrap;
}
.dbm-offering-row:last-child { border-bottom: none; }
.dbm-offering-row > span { font-size: 13px; color: #3d2b1a; flex: 1; }
.dbm-offering-row small { color: #9a8060; }

/* ── Submit button ────────────────────────────────────────────────────── */
.dbm-submit-btn {
  display: block; width: 100%; padding: 14px; margin-top: 8px;
  background: #7b5e2a; color: #fff; border: none; border-radius: 10px;
  font-size: 16px; font-weight: 700; cursor: pointer; letter-spacing: .2px;
  transition: opacity .15s; -webkit-appearance: none;
}
.dbm-submit-btn:hover   { opacity: .88; }
.dbm-submit-btn:disabled{ opacity: .5; cursor: not-allowed; }

/* ── Messages ─────────────────────────────────────────────────────────── */
.dbm-msg {
  padding: 12px 14px; border-radius: 8px; font-size: 13px;
  margin: 12px 0; line-height: 1.6;
}
.dbm-msg.ok  { background: #e6f4ec; color: #1a5e34; border-left: 3px solid #27ae60; }
.dbm-msg.err { background: #fdecea; color: #7a1f1a; border-left: 3px solid #e74c3c; }
.req { color: #e74c3c; }

/* ── Mobile refinements ───────────────────────────────────────────────── */
@media (max-width: 400px) {
  .dbm-cal-cell   { min-height: 52px; padding: 4px 2px; border-radius: 6px; }
  .dbm-day-num    { font-size: 12px; }
  .cal-tag        { font-size: 9px; padding: 1px 4px; }
  .dbm-dot        { width: 6px; height: 6px; }
  .dbm-sheet-inner{ padding: 16px 14px 28px; }
}
@media (min-width: 640px) {
  .dbm-cal-cell   { min-height: 80px; }
  .dbm-day-num    { font-size: 14px; }
  .dbm-dot        { width: 8px; height: 8px; }
  .dbm-popup-inner{ padding: 28px 26px; }
}

/* ── Occasion select + name input fixes ───────────────────────── */
.dbm-sf select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #d0c8bc;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239a8060' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.dbm-sf select:focus {
  outline: none;
  border-color: #7b5e2a;
}
.nb-occasion-field label,
.nb-occasion-field select {
  display: block;
  width: 100%;
}
.nb-occasion-select {
  margin-top: 3px;
  padding: 7px 10px;
  border: 1px solid #d0c8bc;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
}
.nb-occasion-select:focus {
  outline: none;
  border-color: #7b5e2a;
}
.dbm-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 4px 0;
  font-size: 13px;
}

.dbm-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dbm-legend-label {
  color: #444;
}

.dbm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dbm-events-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Card base */
.dbm-event-card2 {
  border: 1px solid #e3e6ea;           /* soft neutral border */
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;

  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

/* Hover effect */
.dbm-event-card2:hover {
  border-color: #5d0e12;              /* your theme primary */
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* Optional: subtle active/click feel */
.dbm-event-card2:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Title styling boost */
.dbm-event-card2 .dbm-ps-name {
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
  color: #2f3a34;
}

/* Date styling */
.dbm-event-card2 .dbm-ps-time {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

/* Button improvement */
.dbm-event-card2 .dbm-ps-book-btn {
  margin-top: 10px;
  width: 100%;
  background: #5d0e12;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dbm-event-card2 .dbm-ps-book-btn:hover {
  background: #7a141a;
}



/* event booking Button - Mobile Optimized */
.dbm-event-card-btn {
  margin-top: 12px;
  width: 100%;
  background: #5d0e12;
  color: #fff;
  border: none;

  /* Better tap size */
  padding: 14px 16px;

  /* Mobile-friendly text */
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;

  border-radius: 10px;

  /* Touch feedback */
  cursor: pointer;
  transition: all 0.2s ease;

  /* Prevent accidental text selection */
  -webkit-tap-highlight-color: transparent;
}

/* Hover (for devices that support it) */
@media (hover: hover) {
  .dbm-event-card-btn:hover {
    background: #7a141a;
  }
}

/* Active state for mobile tap */
.dbm-event-card-btn:active {
  background: #8f1b22;
  transform: scale(0.98);
}

/* Small screens fine-tuning */
@media (max-width: 480px) {
  .dbm-event-card-btn {
    padding: 16px;
    font-size: 17px;
    border-radius: 12px;
  }
}




/* ── Events filter bar ────────────────────────────────────────── */
.dbm-ev-filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
  background: #fdf8f0; border-radius: 10px; padding: 12px 16px;
  border: 1.5px solid #ede8e0;
}
.dbm-ev-filter-pickers {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.dbm-ev-picker-group { display: flex; flex-direction: column; gap: 2px; }
.dbm-ev-picker-label {
  font-size: 10px; font-weight: 700; color: #9a8060;
  text-transform: uppercase; letter-spacing: .4px;
}
.dbm-ev-date-input {
  padding: 7px 10px; border: 1.5px solid #d0c8bc; border-radius: 7px;
  font-size: 13px; font-family: inherit; color: #3d2b1a;
  background: #fff; cursor: pointer;
}
.dbm-ev-date-input:focus { outline: none; border-color: #7b5e2a; }
.dbm-ev-picker-sep { color: #c8b99a; font-size: 16px; margin-top: 14px; }
.dbm-ev-filter-btn {
  margin-top: 14px; padding: 7px 16px; background: #7b5e2a; color: #fff;
  border: none; border-radius: 7px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: opacity .15s;
}
.dbm-ev-filter-btn:hover { opacity: .88; }
.dbm-ev-filter-clear {
  margin-top: 14px; padding: 7px 12px; background: none;
  border: 1.5px solid #d0c8bc; border-radius: 7px; font-size: 13px;
  color: #9a8060; cursor: pointer; transition: border-color .15s;
}
.dbm-ev-filter-clear:hover { border-color: #7b5e2a; color: #7b5e2a; }
.dbm-ev-filter-legend {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #9a8060;
}
.dbm-ev-legend-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7b5e2a; display: inline-block;
}

/* ── Mini calendar ────────────────────────────────────────────── */
.dbm-mini-cal-wrap {
  background: #fff; border-radius: 12px; border: 1.5px solid #ede8e0;
  padding: 14px; margin-bottom: 18px; max-width: 320px;
}
.dbm-mini-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.dbm-mini-cal-label {
  font-weight: 700; font-size: 13px; color: #3d2b1a;
}
.dbm-mini-cal-nav {
  background: none; border: 1px solid #d0c8bc; border-radius: 5px;
  width: 26px; height: 26px; font-size: 16px; cursor: pointer;
  color: #7b5e2a; display: flex; align-items: center; justify-content: center;
  transition: background .15s; line-height: 1;
}
.dbm-mini-cal-nav:hover { background: #f5ece0; }
.dbm-mini-cal-dow {
  display: grid; grid-template-columns: repeat(7,1fr);
  gap: 2px; margin-bottom: 4px;
}
.dbm-mini-cal-dow span {
  text-align: center; font-size: 9px; font-weight: 700;
  color: #9a8060; text-transform: uppercase; padding: 2px 0;
}
.dbm-mini-cal-grid {
  display: grid; grid-template-columns: repeat(7,1fr); gap: 2px;
}
.dbm-mini-day {
  aspect-ratio: 1; border-radius: 5px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; position: relative;
  font-size: 11px; font-weight: 500; color: #3d2b1a; cursor: default;
  transition: background .15s;
}
.dbm-mini-day.empty { background: transparent; }
.dbm-mini-day.past  { opacity: .4; }
.dbm-mini-day.today { background: #fdf6ec; border: 1.5px solid #7b5e2a; font-weight: 700; }
.dbm-mini-day.has-event {
  cursor: pointer; background: #fdf3e3;
}
.dbm-mini-day.has-event:hover { background: #f5e6cc; }
.dbm-mini-day.selected {
  background: #7b5e2a !important; color: #fff !important;
}
.dbm-mini-day.in-range {
  background: #fdf3e3; border-radius: 0;
}
.dbm-mini-day.range-start { border-radius: 5px 0 0 5px; background: #7b5e2a; color: #fff; }
.dbm-mini-day.range-end   { border-radius: 0 5px 5px 0; background: #7b5e2a; color: #fff; }
.dbm-mini-ev-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #7b5e2a; position: absolute; bottom: 3px;
}
.dbm-mini-day.selected    .dbm-mini-ev-dot,
.dbm-mini-day.range-start .dbm-mini-ev-dot,
.dbm-mini-day.range-end   .dbm-mini-ev-dot { background: #fff; }

@media (max-width: 480px) {
  .dbm-mini-cal-wrap { max-width: 100%; }
  .dbm-ev-filter-bar { flex-direction: column; align-items: flex-start; }
}



/* ── Events Grid Layout ───────────────────────────────────────── */
.dbm-events-grid-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.dbm-egrid-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
.dbm-egrid-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Mini calendar legend */
.dbm-mini-cal-legend {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #9a8060;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0ede8;
}

/* Filter box */
.dbm-egrid-filter-box {
  background: #fff;
  border: 1.5px solid #ede8e0;
  border-radius: 12px;
  padding: 16px;
}
.dbm-egrid-filter-title {
  font-size: 12px;
  font-weight: 700;
  color: #3d2b1a;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.dbm-egrid-filter-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.dbm-egrid-filter-fields .dbm-ev-date-input {
  width: 100%;
}
.dbm-egrid-filter-actions {
  display: flex;
  gap: 8px;
}
.dbm-egrid-filter-actions .dbm-ev-filter-btn {
  flex: 1;
  margin-top: 0;
  padding: 9px 12px;
  font-size: 13px;
}
.dbm-egrid-filter-actions .dbm-ev-filter-clear {
  margin-top: 0;
  padding: 9px 12px;
  font-size: 13px;
}

/* Active filter chip */
.dbm-egrid-active-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  background: #fdf3e3;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12px;
  color: #7b5e2a;
  font-weight: 600;
}
.dbm-egrid-filter-remove {
  background: none;
  border: none;
  color: #9a8060;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  line-height: 1;
}
.dbm-egrid-filter-remove:hover { color: #c0392b; }

/* Results bar */
.dbm-egrid-results-bar {
  font-size: 13px;
  color: #9a8060;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0ede8;
}
.dbm-egrid-results-bar strong { color: #3d2b1a; }

/* Cards fade-in animation */
@keyframes dbm-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dbm-event-card {
  animation: dbm-card-in .25s ease both;
}
.dbm-cards-grid .dbm-event-card:nth-child(1) { animation-delay: .03s; }
.dbm-cards-grid .dbm-event-card:nth-child(2) { animation-delay: .06s; }
.dbm-cards-grid .dbm-event-card:nth-child(3) { animation-delay: .09s; }
.dbm-cards-grid .dbm-event-card:nth-child(4) { animation-delay: .12s; }
.dbm-cards-grid .dbm-event-card:nth-child(5) { animation-delay: .15s; }
.dbm-cards-grid .dbm-event-card:nth-child(6) { animation-delay: .18s; }

/* Skeleton loader */
.dbm-card-skeleton {
  background: #faf8f5;
  border-radius: 12px;
  padding: 20px;
  border: 1.5px solid #f0ede8;
}
.dbm-skel-line {
  background: linear-gradient(90deg, #f0ede8 25%, #faf8f5 50%, #f0ede8 75%);
  background-size: 200% 100%;
  animation: dbm-skel 1.4s infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}
@keyframes dbm-skel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Mobile */
@media (max-width: 680px) {
  .dbm-egrid-layout {
    grid-template-columns: 1fr;
  }
  .dbm-egrid-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .dbm-mini-cal-wrap {
    flex: 1;
    min-width: 260px;
  }
  .dbm-egrid-filter-box {
    flex: 1;
    min-width: 220px;
  }
}


/* ── Multi-date occurrence selector ───────────────────────────── */
.dbm-occurrence-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 10px;
  padding-right: 4px;
}
.dbm-occurrence-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1.5px solid #e8e4de;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  flex-wrap: wrap;
}
.dbm-occurrence-row:hover:not(.is-full) {
  background: #fdf8f0;
  border-color: #c8b99a;
}
.dbm-occurrence-row.is-full {
  opacity: .5;
  cursor: not-allowed;
}
.dbm-occurrence-row input[type=checkbox] {
  width: auto;
  flex-shrink: 0;
  cursor: pointer;
}
.dbm-occurrence-row.is-full input[type=checkbox] {
  cursor: not-allowed;
}
.dbm-occ-date {
  font-weight: 600;
  color: #3d2b1a;
  font-size: 13px;
  flex: 1;
}
.dbm-occ-time {
  font-size: 12px;
  color: #9a8060;
}
.dbm-occ-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.dbm-occ-badge.avail { background: #e6f4ec; color: #1a5e34; }
.dbm-occ-badge.full  { background: #fdecea; color: #a01010; }
.dbm-occ-select-all-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.dbm-occ-select-all,
.dbm-occ-select-none {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #d0c8bc;
  background: #fff;
  font-size: 12px;
  color: #7b5e2a;
  cursor: pointer;
  transition: background .12s;
}
.dbm-occ-select-all:hover,
.dbm-occ-select-none:hover { background: #fdf8f0; }
.dbm-occ-selected-count {
  font-size: 12px;
  color: #9a8060;
  margin-left: auto;
}


/* ── Event Attendance ─────────────────────────────────────────── */
.dbm-attendance-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 800px;
}
.dbm-att-header { margin-bottom: 16px; }
.dbm-att-title  { font-size: 22px; font-weight: 700; color: #3d2b1a; margin: 0; }
.dbm-att-card {
  background: #fff; border: 1.5px solid #ede8e0; border-radius: 12px;
  padding: 16px; margin-bottom: 14px;
}
.dbm-att-label  { display: block; font-size: 12px; font-weight: 700; color: #9a8060;
                   text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.dbm-att-select {
  width: 100%; padding: 10px 12px; border: 1.5px solid #d0c8bc; border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; -webkit-appearance: none;
}
.dbm-att-select:focus { outline: none; border-color: #7b5e2a; }

/* Search bar */
.dbm-att-search-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.dbm-att-search-input {
  flex: 1; min-width: 200px; padding: 9px 12px; border: 1.5px solid #d0c8bc;
  border-radius: 8px; font-size: 14px; font-family: inherit;
}
.dbm-att-search-input:focus { outline: none; border-color: #7b5e2a; }
.dbm-att-search-btn {
  padding: 9px 18px; background: #7b5e2a; color: #fff; border: none;
  border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.dbm-att-clear-btn {
  padding: 9px 14px; background: none; border: 1.5px solid #d0c8bc;
  border-radius: 8px; font-size: 13px; color: #9a8060; cursor: pointer;
}
.dbm-att-search-btn:hover { opacity: .88; }
.dbm-att-clear-btn:hover  { border-color: #7b5e2a; color: #7b5e2a; }

/* Stats */
.dbm-att-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.dbm-att-stat  { padding: 4px 10px; border-radius: 12px; }
.dbm-att-stat.total    { background: #f0ede8; color: #5a4020; }
.dbm-att-stat.attended { background: #e6f4ec; color: #1a5e34; }
.dbm-att-stat.noshow   { background: #fdecea; color: #a01010; }
.dbm-att-stat.pending  { background: #fff8e1; color: #b06800; }

/* Booking rows */
.dbm-att-loading { padding: 24px; text-align: center; color: #9a8060; font-size: 14px; }
.dbm-att-empty   { padding: 24px; text-align: center; color: #9a8060; font-size: 14px; }
.dbm-att-row {
  background: #fff; border: 1.5px solid #ede8e0; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; transition: border-color .15s;
}
.dbm-att-row.att-attended { border-color: #a8ddb8; background: #f6fcf8; }
.dbm-att-row.att-noshow   { border-color: #f5b8b4; background: #fef8f8; }
.dbm-att-row.att-partial  { border-color: #f5d88a; background: #fdfaf0; }
.dbm-att-row-info {
  display: flex; flex-direction: column; gap: 3px; flex: 1;
}
.dbm-att-name   { font-size: 15px; font-weight: 700; color: #3d2b1a; }
.dbm-att-phone  { font-size: 12px; color: #9a8060; }
.dbm-att-seats  { font-size: 12px; color: #7b6040; }
.dbm-att-actual { font-size: 12px; color: #1a5e34; font-weight: 600; }
.dbm-att-row-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.dbm-att-status-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 10px;
  white-space: nowrap;
}
.att-attended .dbm-att-status-badge,
.att-status-attended { background: #e6f4ec; color: #1a5e34; }
.att-noshow .dbm-att-status-badge,
.att-status-no_show  { background: #fdecea; color: #a01010; }
.att-partial .dbm-att-status-badge,
.att-status-partial  { background: #fff8e1; color: #b06800; }
.att-pending .dbm-att-status-badge { background: #f0ede8; color: #9a8060; }

.dbm-att-btn-group { display: flex; gap: 6px; flex-wrap: wrap; }
.dbm-att-btn {
  padding: 6px 12px; border-radius: 7px; border: 1.5px solid transparent;
  font-size: 12px; font-weight: 600; cursor: pointer; transition: opacity .15s;
  white-space: nowrap;
}
.att-btn-attended { background: #1a7a42; color: #fff; }
.att-btn-partial  { background: #b06800; color: #fff; }
.att-btn-noshow   { background: #c0392b; color: #fff; }
.dbm-att-btn:hover { opacity: .85; }

/* Confirmation popup */
.dbm-att-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.dbm-att-popup-box {
  background: #fff; border-radius: 14px; width: 100%; max-width: 380px;
  padding: 24px; box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.dbm-att-popup-title {
  font-size: 17px; font-weight: 700; color: #3d2b1a; margin: 0 0 14px;
}
.dbm-att-popup-name {
  font-size: 18px; font-weight: 700; color: #3d2b1a; margin: 0 0 8px;
}
.dbm-att-popup-detail {
  font-size: 13px; color: #7b6040; line-height: 1.7; margin: 0 0 14px;
}
.dbm-att-popup-count { margin-bottom: 14px; font-size: 13px; color: #5a4020; }
.dbm-att-popup-actions {
  display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end;
}
.dbm-att-popup-cancel {
  padding: 9px 18px; border: 1.5px solid #d0c8bc; border-radius: 8px;
  background: #fff; color: #9a8060; font-size: 14px; cursor: pointer;
}
.dbm-att-popup-confirm {
  padding: 9px 22px; background: #7b5e2a; color: #fff; border: none;
  border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.dbm-att-popup-confirm:hover { opacity: .88; }
.dbm-att-popup-cancel:hover  { border-color: #7b5e2a; color: #7b5e2a; }

@media (max-width: 560px) {
  .dbm-att-row { flex-direction: column; align-items: flex-start; }
  .dbm-att-btn-group { width: 100%; }
  .dbm-att-btn { flex: 1; text-align: center; }
}

/* ── External Events Cards ────────────────────────────────────── */
.dbm-ext-events-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.dbm-ext-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.dbm-ext-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  border: 1.5px solid #f0ede8;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.dbm-ext-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.13);
  transform: translateY(-2px);
}
.dbm-ext-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #fdf8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dbm-ext-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dbm-ext-no-img {
  font-size: 48px;
  color: #d0c8bc;
}
.dbm-ext-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.dbm-ext-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #3d2b1a;
  margin: 0;
  line-height: 1.3;
}
.dbm-ext-card-date {
  font-size: 13px;
  color: #7b6040;
  font-weight: 500;
}
.dbm-ext-card-desc {
  font-size: 13px;
  color: #5a4020;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Countdown */
.dbm-ext-countdown {
  background: #fdf3e3;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.dbm-ext-countdown-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.dbm-cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}
.dbm-cd-val {
  font-size: 22px;
  font-weight: 800;
  color: #7b5e2a;
  line-height: 1;
}
.dbm-cd-lbl {
  font-size: 9px;
  font-weight: 600;
  color: #c8a87a;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px;
}
.dbm-cd-sep {
  font-size: 20px;
  font-weight: 700;
  color: #c8a87a;
  margin-bottom: 12px;
}
.dbm-cd-started {
  font-size: 13px;
  font-weight: 700;
  color: #1a7a42;
}

/* Register button */
.dbm-ext-register-btn {
  display: block;
  text-align: center;
  padding: 11px 16px;
  background: #501717;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  transition: opacity .15s;
}
.dbm-ext-register-btn:hover { opacity: .88; color: #fff; }

@media (max-width: 480px) {
  .dbm-ext-events-grid { grid-template-columns: 1fr; }
  .dbm-ext-card-img    { height: 160px; }
  .dbm-cd-val          { font-size: 18px; }
}