/* 桌台看板：平板触控友好布局 */
.restaurant-table-board .restaurant-area-title {
    margin: 8px 0 14px;
    font-size: 18px;
    font-weight: 600;
}

.restaurant-table-board .restaurant-table-card {
    margin-bottom: 16px;
    min-height: 168px;
    border-radius: 6px;
    overflow: hidden;
}

.restaurant-table-board .restaurant-table-card .inner {
    padding: 14px 14px 8px;
}

.restaurant-table-board .restaurant-table-name {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.restaurant-table-board .restaurant-table-status {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 13px;
    font-weight: 600;
}

.restaurant-table-board .restaurant-table-meta {
    margin: 0 0 4px;
    font-size: 12px;
    opacity: 0.78;
}

.restaurant-table-board .restaurant-table-secondary {
    margin: 2px 0;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.9;
}

.restaurant-table-board .restaurant-table-elapsed {
    margin: 10px 0 4px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.restaurant-table-board .restaurant-table-payable {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.restaurant-table-board .restaurant-table-card .small-box-footer {
    display: block;
    padding: 12px 10px;
    font-size: 15px;
    line-height: 1.3;
}

.restaurant-table-board .restaurant-table-card .js-board-open-checkout {
    background: rgba(0, 0, 0, 0.18);
    font-weight: 700;
}

.restaurant-table-board .restaurant-table-card .icon {
    top: -6px;
    right: 8px;
    font-size: 68px;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .restaurant-table-board .restaurant-table-name {
        font-size: 24px;
    }

    .restaurant-table-board .restaurant-table-payable {
        font-size: 26px;
    }

    .restaurant-table-board .restaurant-table-card .small-box-footer {
        padding: 14px 10px;
        font-size: 16px;
    }
}

/* 结账弹层 */
.restaurant-checkout-pay-way {
    padding: 12px 16px 4px;
}

.restaurant-checkout-pay-way .js-checkout-preview-box {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: #fafafa;
}

.restaurant-checkout-pay-way .js-checkout-preview-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.restaurant-checkout-pay-way .js-checkout-preview-payable {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
    font-size: 20px;
    font-weight: 700;
    color: #dd4b39;
}

.restaurant-checkout-pay-way .js-checkout-fold-btns {
    margin: 6px 0 8px;
}

.restaurant-checkout-pay-way .js-checkout-fold-btns .btn {
    margin: 0 6px 6px 0;
    min-width: 52px;
}

.restaurant-checkout-pay-way label.restaurant-checkout-pay-option {
    display: block;
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-weight: normal;
}

.restaurant-checkout-pay-way .form-control {
    height: 40px;
}

/* ========== 会话详情页 ========== */
.restaurant-session-page .restaurant-session-card {
    border-top: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.restaurant-session-page .restaurant-session-card > .box-header {
    padding: 12px 16px;
    background: #fafbfc;
}

.restaurant-session-page .restaurant-session-card > .box-header .box-title {
    font-size: 15px;
    font-weight: 600;
}

.restaurant-session-page .restaurant-session-card > .box-body {
    padding: 16px;
}

.restaurant-session-hero {
    border-top: 3px solid #3c8dbc;
    margin-bottom: 15px;
}

.restaurant-session-hero > .box-body {
    padding: 16px 18px 18px;
}

.restaurant-session-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
    flex-wrap: wrap;
}

.restaurant-session-toolbar .btn {
    margin-right: 6px;
}

.restaurant-session-no {
    color: #999;
    font-size: 12px;
}

.restaurant-session-hero-main {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.restaurant-session-table-name {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.restaurant-session-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: #555;
    font-size: 14px;
}

.restaurant-session-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #777;
}

.restaurant-session-badge.is-open {
    background: #dd4b39;
}

.restaurant-session-badge.is-paid {
    background: #00a65a;
}

.restaurant-session-badge.is-closed {
    background: #999;
}

.restaurant-session-stat-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.restaurant-session-stat .stat-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}

.restaurant-session-stat .stat-value {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.restaurant-session-stat .stat-value small {
    font-size: 13px;
    font-weight: 500;
    color: #888;
}

.restaurant-session-stat .stat-value-sm {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.restaurant-session-hero-right {
    min-width: 200px;
    text-align: right;
    padding: 10px 14px;
    border-radius: 6px;
    background: linear-gradient(180deg, #fff8f7 0%, #fff 100%);
    border: 1px solid #f0d2ce;
}

.restaurant-session-hero-right .payable-label {
    font-size: 12px;
    color: #999;
}

.restaurant-session-hero-right .payable-value {
    font-size: 34px;
    font-weight: 700;
    color: #dd4b39;
    line-height: 1.15;
    margin: 4px 0 6px;
    font-variant-numeric: tabular-nums;
}

.restaurant-session-hero-right .payable-sub,
.restaurant-session-hero-right .payable-order {
    font-size: 12px;
    color: #888;
}

.restaurant-session-remark {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    color: #777;
    font-size: 13px;
}

.restaurant-session-ops {
    margin-bottom: 0;
}

.restaurant-session-checkout-btn {
    margin-top: 14px;
    height: 48px;
    font-size: 16px;
    font-weight: 700;
}

.restaurant-session-item-count {
    line-height: 30px;
    color: #888;
    font-size: 12px;
    margin-right: 8px;
}

.restaurant-session-items-table > thead > tr > th {
    background: #f7f8fa;
    border-bottom: 1px solid #e8e8e8 !important;
    font-weight: 600;
}

.restaurant-session-items-table .item-name {
    font-weight: 600;
}

.restaurant-session-items-table .item-total {
    font-weight: 600;
    color: #333;
}

/* 会话详情页内嵌预览 */
.restaurant-session-preview-box {
    min-height: 160px;
    padding: 14px 16px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
    margin-bottom: 12px;
}

.restaurant-session-preview-box .js-checkout-preview-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.restaurant-session-preview-box .js-checkout-preview-payable {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
    font-size: 24px;
    font-weight: 700;
    color: #dd4b39;
}

#restaurant-session-page .js-checkout-fold-btns .btn,
.restaurant-checkout-pay-way .js-checkout-fold-btns .btn {
    margin: 0 6px 6px 0;
    min-width: 52px;
}

#restaurant-session-page .add_item_form .select2-container--default .select2-selection--single,
#restaurant-session-page .bind_member_form .select2-container--default .select2-selection--single {
    height: 42px;
    border-color: #d2d6de;
}

#restaurant-session-page .add_item_form .select2-container--default .select2-selection--single .select2-selection__rendered,
#restaurant-session-page .bind_member_form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-left: 12px;
}

#restaurant-session-page .add_item_form .select2-container--default .select2-selection--single .select2-selection__arrow,
#restaurant-session-page .bind_member_form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}

/* 默认只读摘要 + 点击后可视化加减 */
.restaurant-adjust-panel {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    padding: 10px 12px;
}

.restaurant-adjust-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.restaurant-adjust-panel-title small {
    margin-left: 6px;
    font-weight: 400;
    color: #999;
}

.restaurant-adjust-summary-row {
    display: flex;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 1px solid #f0f0f0;
}

.restaurant-adjust-summary-row:last-child {
    border-bottom: 0;
}

.restaurant-adjust-summary-row .label-text {
    width: 72px;
    color: #777;
}

.restaurant-adjust-summary-row strong {
    flex: 1;
    font-size: 16px;
}

.restaurant-adjust-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.restaurant-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.restaurant-stepper .btn {
    min-width: 44px;
    height: 40px;
    font-size: 16px;
    font-weight: 700;
}

.restaurant-stepper-value {
    min-width: 110px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
}

.restaurant-stepper-value-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 140px;
    font-size: 16px;
}

.restaurant-stepper-input {
    width: 96px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    padding: 4px 6px;
    display: inline-block;
}

.restaurant-stepper-unit {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}
