#thb-seating-root{font-family:Arial,sans-serif;color:#34465c}#thb-seating-root button,#thb-seating-root select,#thb-seating-root input{font:inherit}#thb-seating-root button{cursor:pointer;border:1px solid #bacbdd;border-radius:6px;background:#fff;color:#34465c;padding:8px 11px}#thb-seating-root button:disabled{opacity:.45;cursor:not-allowed}#thb-seating-root .thb-seat-primary{background:#34465c;color:#fff;border-color:#34465c}#thb-seating-root .thb-seat-top{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin-bottom:16px}#thb-seating-root .thb-seat-top label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700}#thb-seating-root select,#thb-seating-root input{padding:8px;border:1px solid #bacbdd;border-radius:6px;background:white}#thb-seating-root .thb-seat-grid{display:grid;grid-template-columns:minmax(175px,1fr) minmax(280px,2.2fr) minmax(175px,1fr);gap:14px}#thb-seating-root .thb-seat-grid>div{background:white;border:1px solid #d8e3ee;border-radius:9px;padding:12px;min-width:0}#thb-seating-root h3{margin:0 0 13px;font-size:16px}#thb-seating-root .thb-seat-booking{display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;margin-bottom:8px;gap:4px}#thb-seating-root .thb-seat-booking.active{border-color:#34465c;background:#e5f0fc}#thb-seating-root .thb-seat-booking span,#thb-seating-root .thb-seat-booking small{font-size:11px;color:#61748a}#thb-seating-root .thb-seat-floor{position:relative;height:340px;border:4px solid #9e7955;border-radius:5px;background:repeating-linear-gradient(0deg,#e5d3b7 0,#e5d3b7 25px,#dfcaab 26px,#dfcaab 27px);overflow:hidden;touch-action:none}#thb-seating-root .thb-seat-window{position:absolute;top:0;left:40%;width:20%;text-align:center;background:#a8d5e7;font-size:10px;z-index:1}#thb-seating-root .thb-seat-door{position:absolute;bottom:0;left:40%;width:20%;background:#f4f8fc;text-align:center;font-size:10px}#thb-seating-root .thb-seat-table{position:absolute;transform:translate(-50%,-50%);width:65px;height:65px;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#b58a5e;border:2px solid #795635;color:white;touch-action:none;user-select:none;cursor:grab}#thb-seating-root .thb-seat-table.round{border-radius:50%}#thb-seating-root .thb-seat-table.square{border-radius:7px}#thb-seating-root .thb-seat-table.rect{width:83px;height:55px;border-radius:7px}#thb-seating-root .thb-seat-table.selected{background:#355d76;border:3px solid #ffb44d}#thb-seating-root .thb-seat-table.occupied:not(.selected){background:#a55e50}#thb-seating-root .thb-seat-table small{font-size:10px}#thb-seating-root .thb-seat-note{font-size:11px;color:#66798b;line-height:1.5}#thb-seating-root .thb-seat-actions{display:flex;gap:6px;flex-wrap:wrap}#thb-seating-root .thb-seat-detail>button{width:100%;margin-bottom:8px}#thb-seat-feedback{font-size:12px;color:#52677d;margin-top:12px}@media(max-width:980px){#thb-seating-root .thb-seat-grid{grid-template-columns:1fr}#thb-seating-root .thb-seat-floor{height:320px}}

#thb-seating-root .thb-seat-modes{display:flex;gap:8px;margin-bottom:14px;border-bottom:1px solid #d8e3ee;padding-bottom:10px}#thb-seating-root .thb-seat-modes button.active{background:#34465c;color:white;border-color:#34465c}#thb-seating-root .thb-seat-mode-help{font-size:12px;color:#61748a;align-self:center}#thb-seating-root .thb-seat-detail label{display:flex;flex-direction:column;gap:5px;margin:0 0 12px;font-size:12px;font-weight:700}#thb-seating-root .thb-seat-detail label input,#thb-seating-root .thb-seat-detail label select{width:100%;box-sizing:border-box}#thb-seating-root .thb-seat-bookings p{line-height:1.55}

/* beta 105.29.44: individually visible seats and configurable table presentation */
#thb-seating-root .thb-seat-table{overflow:visible;isolation:isolate;z-index:2}
#thb-seating-root .thb-seat-table.selected{z-index:5}
#thb-seating-root .thb-seat-table strong,#thb-seating-root .thb-seat-table small{position:relative;z-index:3;text-shadow:0 1px 2px #533b2b}
#thb-seating-root .thb-seat-chair{position:absolute;transform:translate(-50%,-50%);height:17px;min-width:17px;border-radius:6px 6px 3px 3px;background:#765338;border:2px solid #e0b47d;box-shadow:0 2px 2px #0003;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:bold;color:white;pointer-events:none;z-index:1}
#thb-seating-root .thb-seat-table.with-places:before{content:'✦';position:absolute;left:12%;top:12%;font-size:12px;color:#fff3bd;opacity:.9;pointer-events:none}
#thb-seating-root .thb-seat-settings{border-top:1px solid #d8e3ee;padding:12px 0;margin-top:10px}
#thb-seating-root .thb-seat-settings>strong{display:block;margin-bottom:10px}
#thb-seating-root .thb-seat-detail label.thb-seat-check{display:flex;flex-direction:row;align-items:center;gap:8px;font-weight:normal}
#thb-seating-root .thb-seat-detail label.thb-seat-check input{width:auto}

/* beta 105.29.45: visual joining */
#thb-seating-root .thb-seat-join-outline{position:absolute;transform:translate(-47%,-50%);border:2px dashed #ed890e;border-radius:14px;background:#ed890e14;pointer-events:none;z-index:1;box-sizing:border-box;}
#thb-seating-root .thb-seat-join-outline span{position:absolute;bottom:-24px;left:50%;transform:translateX(-50%);background:#fff6e6;color:#74450b;border:1px solid #efb85c;border-radius:6px;padding:2px 6px;white-space:nowrap;font-size:10px;font-weight:bold;}
#thb-seating-root .thb-seat-table.joined{border-color:#d9891b;}

/* Beta 105.29.47: accessible two-tap table joining */
#thb-seating-root .thb-seat-table.join-pick{cursor:pointer;}
#thb-seating-root .thb-seat-table.join-pick.selected{outline:4px solid #f59e0b;outline-offset:5px;box-shadow:0 0 0 6px #fff3cd,0 0 18px #e78b14;}
#thb-seating-root .thb-seat-join-hint{display:inline-flex;align-items:center;padding:7px 10px;color:#7b4b09;background:#fff4df;border:1px solid #f1ce8c;border-radius:5px;font-weight:600;font-size:12px;}

/* Beta 105.29.49 rotation handle */
#thb-seat-floor .thb-seat-rotation-control{position:absolute;z-index:20;pointer-events:none;transform:translate(-50%,-50%)}
#thb-seat-rotation-handle{position:absolute;left:0;top:-91px;transform:translate(-50%,-50%);width:36px;height:36px;border:2px solid #fff;border-radius:50%;background:#ff741c;color:#fff;font-size:26px;line-height:1;box-shadow:0 2px 10px #0004;cursor:grab;touch-action:none;pointer-events:auto;user-select:none}
#thb-seat-rotation-handle:active{cursor:grabbing}

/* Keep table names, capacities and seat numbers upright as furniture rotates. */
#thb-seating-root .thb-seat-table > strong,
#thb-seating-root .thb-seat-table > small,
#thb-seating-root .thb-seat-chair-number {
  transform:rotate(var(--thb-counter-rotation, 0deg));
  display:inline-block;
}
#thb-seating-root .thb-seat-chair-number { pointer-events:none; }

/* Beta 105.29.51: booking list to the right, drag-and-drop allocation */
#thb-seating-root .thb-seat-booking-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:14px;align-items:start}
#thb-seating-root .thb-seat-booking-layout .thb-seat-main{grid-column:1;grid-row:1;min-width:0}
#thb-seating-root .thb-seat-booking-layout .thb-seat-bookings{grid-column:2;grid-row:1;min-width:0;max-height:670px;overflow:auto}
#thb-seating-root .thb-seat-booking-layout .thb-seat-detail{grid-column:2;grid-row:2;min-width:0}
#thb-seating-root .thb-seat-booking[draggable=true]{cursor:grab;touch-action:pan-y}
#thb-seating-root .thb-seat-booking.thb-seat-dragging{opacity:.5}
#thb-seating-root .thb-seat-table.thb-seat-drop-target{outline:4px solid #f97316!important;outline-offset:5px;box-shadow:0 0 18px #f97316!important}
#thb-seating-root .thb-seat-unallocate{border:2px dashed #a2b3c7;border-radius:8px;padding:10px;margin:8px 0 12px;font-size:12px;color:#425b73;background:#f4f8fc;text-align:center}
#thb-seating-root .thb-seat-unallocate.thb-seat-drop-target{border-color:#e67e22;background:#fff3e3}
@media(max-width:900px){#thb-seating-root .thb-seat-booking-layout{grid-template-columns:minmax(0,1fr)}#thb-seating-root .thb-seat-booking-layout .thb-seat-main,#thb-seating-root .thb-seat-booking-layout .thb-seat-bookings,#thb-seating-root .thb-seat-booking-layout .thb-seat-detail{grid-column:1;grid-row:auto}}

/* Beta 105.29.54: booking-aware calendar */
.thb-seat-calendar{background:#fff;border:1px solid #d6e1ed;border-radius:10px;padding:15px;margin-bottom:14px}.thb-seat-cal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.thb-seat-cal-header h3{margin:0}.thb-seat-cal-header>div{display:flex;align-items:center;gap:12px}.thb-seat-cal-header button{border:1px solid #b8c8d9;background:#f3f7fb;border-radius:5px;cursor:pointer;font-size:20px;min-width:32px}.thb-seat-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.thb-seat-cal-weekday{text-align:center;font-size:12px;font-weight:700;color:#526478;padding:4px}.thb-seat-cal-day{min-width:0;min-height:60px;border:1px solid #dce4ec;background:#fff;border-radius:6px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:6px;gap:2px;cursor:pointer;color:#25364a;text-align:left}.thb-seat-cal-day strong{font-size:13px}.thb-seat-cal-day span{font-size:11px;color:#255a45}.thb-seat-cal-day small{font-size:10px;color:#bd6417}.thb-seat-cal-day.has-bookings{background:#e9f4ed;border-color:#b8d7c2}.thb-seat-cal-day.current{outline:2px solid #ec7c25;outline-offset:-2px}.thb-seat-cal-day:hover{background:#e7eef8}.thb-seat-cal-empty{min-height:10px}@media(max-width:650px){.thb-seat-cal-day{min-height:54px;padding:3px}.thb-seat-cal-day span,.thb-seat-cal-day small{font-size:9px}}
/* Beta 105.29.54: popup calendar and compact allocation lists */
#thb-seating-root .thb-seat-calendar-toolbar{display:flex;align-items:center;gap:14px;margin:0 0 12px}
#thb-seating-root .thb-seat-cal-overlay{position:fixed;inset:0;z-index:999999;background:rgba(16,30,47,.68);display:flex;align-items:center;justify-content:center;padding:20px}
#thb-seating-root .thb-seat-cal-dialog{position:relative;width:min(850px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:12px;padding:26px;box-shadow:0 24px 80px rgba(0,0,0,.3)}
#thb-seating-root .thb-seat-cal-close{position:absolute;right:12px;top:10px;z-index:1;font-size:26px;line-height:1;padding:3px 11px}
#thb-seating-root .thb-seat-allocated{margin-top:14px;border:1px solid #d4dee8;border-radius:8px;padding:10px;background:#f7f9fc}
#thb-seating-root .thb-seat-allocated summary{cursor:pointer;font-weight:700;color:#34465c;padding:4px 0 9px}
#thb-seating-root .thb-seat-bookings h4{margin:14px 0 10px}

/* Beta 105.29.54: booked versus unoccupied chairs */
.thb-seat-table .thb-seat-chair-booked {background:#e69b58!important;border-color:#a65d21!important;}
.thb-seat-table .thb-seat-chair-empty {background:#d4d9e0!important;border-color:#9ca7b5!important;}
.thb-seat-table .thb-seat-chair-booked .thb-seat-chair-number {color:#44290f!important;}
.thb-seat-table .thb-seat-chair-empty .thb-seat-chair-number {color:#465364!important;}

/* Beta 105.29.55: service summary, booking details and print */
#thb-seating-root .thb-seat-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:12px 0 16px}#thb-seating-root .thb-seat-stat{background:#fff;border:1px solid #d8e3ee;border-radius:9px;padding:12px 8px;text-align:center;min-width:0}#thb-seating-root .thb-seat-stat strong{display:block;font-size:22px;color:#273f59}#thb-seating-root .thb-seat-stat span{font-size:11px;color:#61748a}#thb-seating-root .thb-seat-hover-info{display:none;position:absolute;bottom:calc(100% + 12px);left:50%;transform:translateX(-50%) rotate(var(--thb-counter-rotation,0deg));width:230px;max-width:70vw;z-index:99;background:#263d56;color:white;border-radius:8px;padding:11px;box-shadow:0 8px 25px #0003;font-size:12px;line-height:1.5;white-space:normal;text-align:left;pointer-events:none}#thb-seating-root .thb-seat-table:hover .thb-seat-hover-info,#thb-seating-root .thb-seat-table:focus .thb-seat-hover-info{display:block}#thb-seating-root .thb-seat-table:has(.thb-seat-hover-info):hover{z-index:30}#thb-seating-root .thb-seat-customer-details{background:#edf5fd;border:1px solid #c7d9eb;padding:10px;border-radius:8px;margin-bottom:12px}#thb-seating-root .thb-seat-customer-details p{overflow-wrap:anywhere}@media(max-width:1000px){#thb-seating-root .thb-seat-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:550px){#thb-seating-root .thb-seat-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 105.29.55.2: render booking tooltip above the clipped seating canvas */
#thb-seating-root .thb-seat-table:hover .thb-seat-hover-info,#thb-seating-root .thb-seat-table:focus .thb-seat-hover-info{display:none!important}
.thb-seat-floating-info{display:none;position:fixed;z-index:2147483000;width:260px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto;background:#263d56;color:#fff;border-radius:8px;padding:12px;box-shadow:0 8px 25px #0004;font-size:12px;line-height:1.5;white-space:normal;text-align:left;pointer-events:none;box-sizing:border-box}

/* Beta 105.29.56 date-specific layouts */
.thb-seat-layout-scope{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px;margin:10px 0;background:#e8f2fb;border:1px solid #b8d2e9;border-radius:8px}.thb-seat-layout-scope label{font-weight:600}.thb-seat-layout-scope select,.thb-seat-layout-scope input{margin-left:6px;padding:7px;border:1px solid #b7c9d9;border-radius:5px}
