.seat-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.seat-metrics>div{background:#f5f6f0;border:1px solid #e3e5da;border-radius:14px;padding:16px}.seat-metrics span{display:block;color:#56665f;font-size:12px}.seat-metrics strong{font-size:32px;display:block;margin-top:6px;color:#143f34}.seat-metrics small{font-size:16px;color:#75827c}.seat-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:12px}.seat-legend span{display:flex;align-items:center;gap:6px}.seat-legend i{width:10px;height:10px;border-radius:50%;background:var(--seat-color)}.seat-free{--seat-color:#508f73}.seat-booked{--seat-color:#5e7eba}.seat-occupied{--seat-color:#dc9a37}.seat-buffer{--seat-color:#b475a7}.seat-disabled{--seat-color:#909690}.seat-floor{background:#f6f2e8;border:2px solid #ddd5c4;border-radius:22px;padding:24px;display:flex;justify-content:center;gap:22px;margin:20px auto;max-width:850px}.seat-zone{flex:1;min-width:0}.seat-zone h3{text-align:center;color:#666b5d;font-size:14px;font-weight:500;margin:0 0 18px}.seat-chain{display:flex;flex-direction:column;gap:26px;height:calc(100% - 40px)}.seat-zone:first-child .seat-chain{justify-content:space-around}.seat-table{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:92px;border:2px solid var(--seat-color);border-radius:13px;background:#fffdf8;color:#273e33;box-shadow:0 4px 12px #263b2410;cursor:pointer;padding:8px;max-width:260px;width:100%;margin:auto;font:inherit;transition:transform .15s}.seat-table:hover{transform:translateY(-2px);box-shadow:0 6px 16px #263b2426}.seat-table:focus-visible{outline:3px solid #163e33;outline-offset:5px}.seat-number{font-size:24px;font-weight:700;line-height:1}.seat-status{position:absolute;right:7px;top:7px;font-size:10px;background:var(--seat-color);color:white;border-radius:8px;padding:3px 6px}.seat-table>span:not(.seat-chair):not(.seat-number):not(.seat-status){font-size:12px}.seat-table small{font-size:10px;color:#576359}.seat-chair{position:absolute;width:46px;height:7px;border-radius:5px 5px 0 0;background:#527968;top:-10px;left:calc(50% - 23px)}.seat-chair.bottom{top:auto;bottom:-10px;transform:rotate(180deg)}.seat-aisle{width:70px;flex:none;display:flex;align-items:center;justify-content:center;writing-mode:vertical-rl;letter-spacing:12px;color:#a19989;border-left:1px dashed #d4cdbb;border-right:1px dashed #d4cdbb}.seat-countdown{font-weight:700!important;color:#914079!important}.seat-money{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:15px 0}.seat-money span{display:flex;flex-direction:column;gap:8px;font-size:12px}.seat-money b{font-size:26px;color:#194e3f}.seat-visit-summary{padding:16px;background:#f5f4ee;border-radius:12px}.seat-visit-summary p{font-size:13px;margin:8px 0}.seat-bills article{padding:16px 0;border-bottom:1px solid #ddd}.seat-bills header{display:flex;flex-direction:column;gap:6px;font-size:12px}.seat-bills p{display:flex;justify-content:space-between;gap:12px;font-size:14px}.seat-bills small{display:block;color:#777}.seat-bills footer{text-align:right;font-weight:600}.seat-panel .v2-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.seat-panel .form-error{color:#a42132}.seat-panel .field{margin:12px 0}.seat-layout-editor fieldset{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0;border:1px solid #ccc;border-radius:10px;padding:12px}.seat-layout-editor label{font-size:12px}.seat-layout-editor input:not([type=checkbox]){width:100%;padding:8px;border:1px solid #bbb;border-radius:6px;margin-top:4px}@media(max-width:600px){.seat-metrics{grid-template-columns:repeat(2,1fr)}.seat-floor{padding:20px 10px;gap:8px}.seat-aisle{width:25px;font-size:11px}.seat-status{position:static}.seat-number{font-size:22px}.seat-table{min-height:110px}.seat-table small{font-size:9px}.seat-panel .btn{font-size:12px}}
.seat-floor-real{display:grid;grid-template-columns:minmax(240px,1fr) 32px minmax(280px,1.15fr);gap:20px;max-width:980px;padding:28px}.seat-floor-real h3{font-size:13px;text-align:center;margin:0 0 24px;color:#5c6d61}.seat-floor-real .seat-aisle{width:32px}.seat-left-rows{display:flex;flex-direction:column;gap:110px;padding-top:55px}.seat-pair-row{display:grid;grid-template-columns:1fr 1fr;gap:22px}.seat-floor-real .seat-table{min-height:91px;max-width:none;padding:8px 4px}.seat-floor-real .seat-status{position:static;padding:2px 5px;font-size:9px}.seat-floor-real .seat-number{font-size:23px}.seat-floor-real .seat-table small{font-size:9px}.seat-long{display:flex;flex-direction:column;align-items:flex-end;gap:15px;padding:0 18px 22px;border-right:12px solid #517865;border-radius:0 12px 0 0}.seat-long .seat-table{width:78%;margin:0}.seat-short{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:8px 18px 22px 0;border-right:12px solid #517865;border-bottom:12px solid #517865;border-radius:0 0 16px 0}.chairs-horizontal .seat-chair{width:7px;height:34px;top:calc(50% - 17px);left:-10px;border-radius:5px 0 0 5px}.chairs-horizontal .seat-chair.bottom{top:calc(50% - 17px);bottom:auto;left:auto;right:-10px;transform:rotate(180deg)}.seat-back-row{margin:0 0 18px}.seat-back-row .btn{border:0;padding:8px 0;min-height:36px;font-size:13px}.seat-back-row .btn:before{content:'←';margin-right:6px}.seat-panel>form select[multiple]{min-height:150px}@media(max-width:780px){.seat-floor-real{min-width:620px}.seat-floor-real{margin-left:0;margin-right:0}#seating-board{overflow-x:auto}.seat-pair-row{gap:18px}.seat-left-rows{gap:90px}}

.seat-orientation{grid-column:1/-1;text-align:center;color:#566c5c;font-size:12px;letter-spacing:2px}.seat-rear{border-bottom:1px solid #d9d3c4;padding:0 0 12px}.seat-entry{border-top:2px dashed #c8bd9f;padding:18px 0 0;margin-top:8px;font-weight:700}.seat-short{border-bottom:0;border-top:12px solid #517865;border-radius:0 16px 0 0;padding:22px 18px 15px 0}.seat-long{border-radius:0 0 12px 0;padding-top:8px;padding-bottom:10px}.seat-left-rows{padding-top:190px;gap:90px}

.seat-short{border-top:0;border-bottom:12px solid #517865;border-radius:0 0 16px 0;padding:8px 18px 22px 0}.seat-long{border-radius:0 12px 0 0;padding-top:0;padding-bottom:22px}.seat-entry{border-top:0;border-bottom:2px dashed #c8bd9f;padding:0 0 18px;margin-top:0}.seat-rear{border-bottom:0;border-top:1px solid #d9d3c4;padding:14px 0 0}.seat-left-rows{padding-top:55px;gap:110px}

.seat-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.seat-choice{border:1px solid #bfcabe;border-radius:10px;background:#fffdf8;color:#234f3e;padding:12px 6px;display:flex;flex-direction:column;align-items:center;gap:5px}.seat-choice strong{font-size:20px}.seat-choice small{font-size:10px}.seat-choice[aria-pressed=true]{background:#285b46;color:#fff;border-color:#285b46;box-shadow:0 0 0 2px #d9b556}.seat-choice:disabled{background:#eeeae3;color:#8a8981;opacity:1}.seat-choice-summary{padding:12px;background:#f1f4eb;color:#264a35;border-radius:8px;font-weight:600;margin-bottom:16px}

.seat-left-rows{padding-top:255px;gap:75px}.seat-short.seat-corner{grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:stretch;gap:18px;padding-top:12px}.seat-linked-pair{display:flex;gap:0;align-items:stretch}.seat-linked-pair .seat-table{width:50%;margin:0;min-width:0;border-radius:10px 0 0 10px}.seat-linked-pair .seat-table+ .seat-table{border-radius:0 10px 10px 0;border-left-style:dashed;margin-left:-1px}.seat-corner>.seat-table{width:100%;margin:0;min-width:0}.seat-corner .seat-table{min-height:122px}.seat-corner .seat-table small{font-size:8px}.seat-corner .seat-table>span:not(.seat-chair):not(.seat-number):not(.seat-status){font-size:10px}@media(max-width:780px){.seat-left-rows{padding-top:255px;gap:75px}}

.seat-extra{border-top:1px solid #ddd;padding-top:20px;margin-top:24px}.seat-extra h3{font-size:14px;margin-bottom:24px}.seat-extra-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:24px}.seat-floor:not(.seat-floor-real){display:grid;grid-template-columns:repeat(2,minmax(170px,1fr))}.seat-floor:not(.seat-floor-real)>.seat-aisle{display:none}

/* Final positions follow the owner's hand-drawn plan: 1+2 beside 5, 3+4 beside 6/7, rear row 13+12+11. */
.seat-left-rows{padding-top:0;gap:65px}.seat-pair-row{gap:0;align-items:stretch}.seat-pair-row .seat-table{width:100%;margin:0;border-radius:12px 0 0 12px;min-height:118px}.seat-pair-row .seat-table+.seat-table{border-radius:0 12px 12px 0;margin-left:-1px;border-left-style:dashed}.seat-floor-real .seat-long .seat-table{min-height:100px}.seat-long{gap:17px}.seat-corner .seat-table{min-height:128px}@media(max-width:780px){.seat-left-rows{padding-top:0;gap:65px}.seat-pair-row{gap:0}}

/* Owner-requested rear row: equal-size 13, 12 and 11; spans the aisle. */
.seat-floor-real>.seat-corner{grid-column:1/-1;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:18px;margin-top:-20px;padding-top:16px}.seat-floor-real>.seat-corner .seat-table{height:128px;min-height:128px}.seat-floor-real>.seat-corner .seat-number{font-size:23px}.seat-floor-real>.seat-corner .seat-table small{font-size:10px}.seat-floor-real>.seat-corner .seat-table>span:not(.seat-chair):not(.seat-number):not(.seat-status){font-size:12px}

/* Latest owner plan: 14 | empty position | 13 | 12 | 11. */
.seat-floor-real{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px 18px;padding:28px 40px;min-width:740px}
.seat-floor-real>.seat-left{grid-column:1/3}.seat-floor-real>.seat-aisle{grid-column:3/5;width:auto;justify-self:center;min-width:32px}.seat-floor-real>.seat-right{grid-column:5}
.seat-floor-real .seat-left-rows{padding-top:180px;gap:105px}.seat-floor-real .seat-pair-row{gap:18px}
.seat-floor-real .seat-pair-row .seat-table{border-radius:12px;margin:0;border-left-style:solid;height:118px;min-height:118px}
.seat-floor-real .seat-long{position:relative;padding:0;border:0;gap:17px}.seat-floor-real .seat-long:after{content:'';position:absolute;right:-25px;top:0;bottom:-50px;width:10px;background:#517865;border-radius:8px 8px 0 0}
.seat-floor-real .seat-long .seat-table{width:100%;height:100px;min-height:100px}.seat-floor-real .seat-long .seat-empty{height:100px}
.seat-floor-real>.seat-corner{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;align-items:center;padding:16px 0 24px;margin-top:0;border:0;position:relative}
.seat-floor-real>.seat-corner:after{content:'';position:absolute;left:calc(40% + 7px);right:-25px;bottom:0;height:10px;background:#517865;border-radius:0 0 10px 0}
.seat-floor-real>.seat-corner>.seat-table{width:100%;height:100px;min-height:100px;font-size:inherit}
.seat-floor-real>.seat-corner .seat-table small{font-size:9px}.seat-floor-real>.seat-corner .seat-table>span:not(.seat-chair):not(.seat-number):not(.seat-status){font-size:12px}
.seat-floor-real .seat-bottom-left>.seat-table{width:100%;height:118px;min-height:118px;margin:0;border-radius:12px}
.seat-delete{color:#a33232!important;border-color:#d7aaaa!important;margin-top:16px}.seat-trash-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #ddd;padding:14px 0}

/* Keep table labels inside the card, even with joined parties and long timers. */
.seat-table,.seat-floor-real .seat-table{min-width:0;padding:7px 6px}
.seat-table .seat-card-content{display:grid;gap:2px;width:100%;min-width:0;max-height:100%;overflow:hidden;line-height:1.2}
.seat-card-content>span,.seat-card-content>small{min-width:0;margin:0}
.seat-card-head{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:24px}
.seat-table .seat-number{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:24px;flex:1;text-align:left}
.seat-table .seat-status{position:static;flex:none;max-width:62%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:1px 5px;font-size:9px;line-height:13px}
.seat-table .seat-card-summary{font-size:11px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seat-table .seat-card-group,.seat-table .seat-card-next{display:block;font-size:9px;line-height:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seat-table .seat-card-time{display:flex;justify-content:space-between;gap:3px;font-size:9px;line-height:12px;white-space:nowrap}
.seat-card-time>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.seat-card-time>b{font-size:9px;font-variant-numeric:tabular-nums;flex:none}
.seat-table .seat-countdown{font-size:9px;line-height:12px;white-space:nowrap}
#seating-board{overflow-x:auto}

.seat-collect-action{margin:18px 0}.seat-collect-action button.btn{width:100%;background:#234b35;color:#fff;border-color:#234b35;min-height:48px}.seat-payment-lines td small{display:block;line-height:1.5;color:#647368;margin-top:4px}.seat-panel [data-seat-form=payment]>.v2-check{line-height:1.65;align-items:flex-start;margin:16px 0}.seat-panel [data-seat-form=payment]>.v2-check input{margin-top:5px;flex-shrink:0}.seat-payment-submit{width:100%;min-height:48px}

/* Separate table navigation from its payment shortcut; never nest buttons. */
.seat-table .seat-table-open{display:flex;align-items:center;justify-content:center;width:100%;flex:1;min-height:0;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;text-align:center;cursor:pointer;box-shadow:none}
.seat-table .seat-table-open:hover{background:#234b3507}
.seat-table .seat-table-open:focus-visible,.seat-table .seat-card-payment:focus-visible{outline:3px solid #234b35;outline-offset:3px}
.seat-table .seat-card-payment,.seat-table .seat-card-payment-state,.seat-table .seat-card-payment-space{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:32px;min-height:32px;flex:none;margin:4px 0 0;border-radius:7px;font-size:11px;font-weight:650;line-height:1.2;letter-spacing:0;text-align:center}
.seat-table .seat-card-payment{padding:4px;border:1px solid #234b35;background:#234b35;color:#fff;cursor:pointer;box-shadow:0 2px 3px #163e3315;white-space:normal;overflow-wrap:anywhere}
.seat-table .seat-card-payment:hover{background:#143c29}.seat-table .seat-card-payment:disabled{opacity:.6;cursor:wait}
.seat-table .seat-card-paid{background:#e5f0e7;color:#25623b;border:1px solid #b9d6be}
.seat-table .seat-card-unpaid{background:#fff1d4;color:#815315;font-size:10px}
.seat-table{min-height:144px}
.seat-floor-real .seat-long .seat-table,.seat-floor-real>.seat-corner>.seat-table{height:144px;min-height:144px}
.seat-floor-real .seat-long .seat-empty{height:144px}
.seat-floor-real .seat-pair-row .seat-table,.seat-floor-real .seat-bottom-left>.seat-table{height:162px;min-height:162px}

.staff-order-panel .notice p{font-size:12px;line-height:1.6;margin-bottom:0}
.staff-order-panel .field{display:block;margin:14px 0}.staff-order-panel .field input,.staff-order-panel select{width:100%;padding:12px;border:1px solid #c6d1c8;border-radius:9px;background:#fff;color:#234b35}
.staff-dish-list{max-height:300px;overflow-y:auto;overscroll-behavior:contain;margin:12px 0;border:1px solid #e0e7dc;border-radius:12px}
.staff-dish-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px;border-bottom:1px solid #e8ece4}
.staff-dish-row:last-child{border:0}.staff-dish-row strong{font-size:14px}.staff-dish-row small,.staff-cart-row small{display:block;color:#657565;line-height:1.5;margin-top:5px}.staff-dish-row .btn{flex:none;min-height:38px;padding:7px 12px}
.staff-cart-row{padding:14px 0;border-bottom:1px solid #e0e7dc}.staff-cart-row>div:first-child{display:grid;grid-template-columns:1fr auto;gap:4px 12px}.staff-cart-row small{grid-column:1}.staff-cart-row span{grid-column:2;grid-row:1;font-weight:600}.staff-quantity{display:flex;gap:8px;align-items:center;margin-top:12px;flex-wrap:wrap}.staff-quantity .btn{padding:6px 10px;min-height:36px;font-size:12px}
.staff-order-footer{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;background:#fffdf8;border-top:2px solid #d6dfd2;margin-top:16px}
.staff-order-footer .btn{background:#234b35;color:white}.staff-order-panel .form-error{color:#a42132}
