* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #1a1d29;
    color: #e0e0e0;
    overflow-x: hidden;
}

.container-fluid {
    padding: 0;
    max-width: 100%;
}

/* 顶部控制栏 */
.top-controls {
    background-color: #2a2f3f;
    padding: 10px 20px 0;
    border-bottom: 1px solid #3a3f4f;
}

/* 第一行：标题 / 时间 / 用户 */
.topbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 8px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 第二行：主菜单独立一行 */
.topbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0 10px;
    border-top: 1px solid #3a3f4f;
}

.system-title {
    font-size: 22px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.system-title i {
    color: #ffcc00;
}

.time-display {
    font-size: 16px;
    color: #8bc34a;
    text-align: center;
}

.control-buttons {
    display: flex;
    gap: 8px;
    row-gap: 6px;
}

.topbar-nav .control-btn {
    background-color: #333848;
}

.control-btn {
    padding: 6px 12px;
    background-color: #3a3f4f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.control-btn:hover {
    background-color: #4a4f5f;
    color: white;
}

.btn-room-manage {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
}

.btn-room-manage:hover {
    background: linear-gradient(135deg, #29b6f6, #039be5);
    color: white;
}

.current-user {
    color: #ffcc00;
    font-size: 13px;
    font-weight: 500;
    padding: 0 4px;
    white-space: nowrap;
}

.btn-logout {
    background-color: #4a3f3f;
}

.btn-logout:hover {
    background-color: #f44336;
}

/* 搜索过滤器 */
.filter-section {
    background-color: #252a38;
    padding: 16px 20px;
    border-bottom: 1px solid #3a3f4f;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-label {
    font-size: 12px;
    color: #a0a0a0;
    margin-bottom: 0;
}

.filter-input {
    padding: 8px 12px;
    background-color: #3a3f4f;
    border: 1px solid #4a4f5f;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    min-width: 150px;
}

.filter-input:focus {
    outline: none;
    border-color: #4fc3f7;
}

.btn-search {
    background: linear-gradient(135deg, #8bc34a, #7cb342);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-search:hover {
    background: linear-gradient(135deg, #7cb342, #689f38);
}

/* 订单列表 */
.orders-section {
    padding: 20px;
    min-height: calc(100vh - 200px);
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.orders-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.orders-count {
    background-color: #3a3f4f;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    height: fit-content;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-size-selector .filter-input {
    min-width: 100px;
}

/* ---------- 日期导航（订单列表头部右侧） ---------- */
.date-nav-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-nav-box .date-input {
    min-width: 150px;
    text-align: center;
}

.date-nav-btn {
    padding: 7px 10px;
    background-color: #3a3f4f;
    color: white;
    border: 1px solid #4a4f5f;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s;
}

.date-nav-btn:hover {
    background-color: #4a4f5f;
    color: #4fc3f7;
}

.date-nav-today {
    font-weight: 600;
    color: #ffcc00;
}

.orders-table {
    background-color: #2a2f3f;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #3a3f4f;
}

.table-header {
    background-color: #252a38;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 0.6fr 1.1fr 0.8fr 1.5fr 0.8fr 0.9fr 0.6fr 430px;
    gap: 15px;
    font-weight: 600;
    border-bottom: 1px solid #3a3f4f;
}

.sortable-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.sortable-header:hover {
    color: #4fc3f7;
}

.sortable-header.active {
    color: #4fc3f7;
}

.sort-icon {
    font-size: 12px;
    opacity: 0.6;
}

.sortable-header.active .sort-icon {
    opacity: 1;
}

.order-row {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 0.6fr 1.1fr 0.8fr 1.5fr 0.8fr 0.9fr 0.6fr 430px;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid #3a3f4f;
    transition: background-color 0.2s;
}

.order-row:hover {
    background-color: #3a3f4f;
}

.order-row:last-child {
    border-bottom: none;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.status-pending { background-color: #ff9800; color: white; }
.status-confirmed { background-color: #4caf50; color: white; }
.status-preparing { background-color: #2196f3; color: white; }
.status-ready { background-color: #8bc34a; color: white; }
.status-served { background-color: #9c27b0; color: white; }
.status-cancelled { background-color: #f44336; color: white; }
.status-leaving_soon { background-color: #ff9800; color: white; }
.status-completed { background-color: #4caf50; color: white; }

/* 结账状态徽章 */
.pay-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
}

.pay-badge.unsettled {
    background-color: #4a4f5f;
    color: #c0c4cc;
}

.pay-badge.settled {
    background-color: #4caf50;
    color: white;
}

/* 金额列 */
.amount-cell {
    font-variant-numeric: tabular-nums;
    color: #ffcc00;
}

/* 已完成订单指示器 */
.completed-indicator {
    margin-left: 8px;
    color: #4caf50;
    font-size: 14px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    transition: all 0.3s ease;
}

.completed-indicator:hover {
    background-color: rgba(76, 175, 80, 0.2);
    transform: scale(1.1);
}

.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;          /* 操作按钮保持一行，不分行 */
    justify-content: flex-start;
    overflow: visible;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    transition: all 0.2s;
}

.action-btn i {
    font-size: 12px;
}

.btn-edit {
    background-color: #ffc107;
    color: #333;
}

.btn-edit:hover {
    background-color: #ffb300;
}

.btn-delete {
    background-color: #f44336;
    color: white;
}

.btn-delete:hover {
    background-color: #d32f2f;
}

.btn-status {
    background-color: #2196f3;
    color: white;
}

.btn-status:hover {
    background-color: #1976d2;
}

.btn-dishes {
    background-color: #4caf50;
    color: white;
}

.btn-dishes:hover {
    background-color: #388e3c;
}

.btn-add-dishes {
    background-color: #ff9800;
    color: white;
}

.btn-add-dishes:hover {
    background-color: #f57c00;
}

.btn-settle {
    background-color: #00bfa5;
    color: white;
}

.btn-settle:hover {
    background-color: #00a68e;
}

.btn-receipt {
    background-color: #7e57c2;
    color: white;
}

.btn-receipt:hover {
    background-color: #673ab7;
}

.no-orders {
    text-align: center;
    padding: 40px 20px;
    color: #a0a0a0;
    font-size: 16px;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #252a38;
    border-top: 1px solid #3a3f4f;
}

.pagination-info {
    color: #a0a0a0;
    font-size: 14px;
}

.pagination {
    margin: 0;
}

.page-item .page-link {
    background-color: #3a3f4f;
    border: 1px solid #4a4f5f;
    color: #e0e0e0;
    padding: 6px 12px;
}

.page-item.active .page-link {
    background-color: #4fc3f7;
    border-color: #4fc3f7;
    color: white;
}

.page-item.disabled .page-link {
    background-color: #2a2f3f;
    border-color: #3a3f4f;
    color: #666;
}

.page-item .page-link:hover {
    background-color: #4a4f5f;
    border-color: #5a5f6f;
    color: white;
}

/* 模态框样式 */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

#globalAlertModal {
    z-index: 1060 !important;
}

/* 反结弹窗在 HTML 中位于结账弹窗之后，配合统一 z-index 即可正确叠放 */

.modal-content {
    background-color: #2a2f3f;
    border: 1px solid #3a3f4f;
    border-radius: 8px;
}

.modal-header {
    background-color: #252a38;
    border-bottom: 1px solid #3a3f4f;
    color: white;
}

.modal-body {
    background-color: #2a2f3f;
    color: #e0e0e0;
}

.modal-footer {
    background-color: #252a38;
    border-top: 1px solid #3a3f4f;
}

.form-control {
    background-color: #3a3f4f;
    border: 1px solid #4a4f5f;
    color: white;
}

.form-control:focus {
    background-color: #3a3f4f;
    border-color: #4fc3f7;
    color: white;
    box-shadow: none;
}

.form-select {
    background-color: #3a3f4f;
    border: 1px solid #4a4f5f;
    color: white;
}

.form-select:focus {
    background-color: #3a3f4f;
    border-color: #4fc3f7;
    color: white;
    box-shadow: none;
}

.form-select option {
    background-color: #2a2f3f;
    color: #e0e0e0;
}

.form-label {
    color: #a0a0a0;
}

.form-text {
    color: #8b93a7;
}

/* ---------- 用餐客户搜索组件 ---------- */
.customer-search {
    position: relative;
}

.customer-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1100;
    background-color: #3a3f4f;
    border: 1px solid #4a4f5f;
    border-radius: 6px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.customer-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #e0e0e0;
    transition: background-color 0.15s;
}

.customer-dropdown-item:hover {
    background-color: #4fc3f7;
    color: white;
}

.customer-dropdown-empty {
    padding: 8px 12px;
    font-size: 13px;
    color: #8b93a7;
    font-style: italic;
}

/* ---------- 加菜（菜品库点菜） ---------- */
/* 菜品管理弹窗：左右排版（左选菜 / 右已选清单），整体加宽 */
.modal-dialog.dishes-dialog {
    max-width: min(96vw, 1750px);
    margin-left: auto;
    margin-right: auto;
}

.dishes-split {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

.dishes-split > .dish-picker {
    flex: 1.15;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dishes-split > .dish-picker .dish-picker-main {
    flex: 1;
    min-height: 0;
}

/* 菜品管理弹窗内三块区域（分类 / 待选菜品 / 已选菜品）固定高度，超出自动垂直滚动 */
.dishes-split > .dish-picker .category-tabs {
    max-height: 52vh;
}

.dishes-split > .dish-picker .dish-grid {
    max-height: 52vh;
    min-height: 320px;
}

.dishes-split .dishes-selected {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dishes-selected-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.dishes-selected-title i {
    color: #8bc34a;
}

.dishes-selected-count {
    font-size: 12px;
    font-weight: 400;
    color: #8b93a7;
    background-color: #3a3f4f;
    border-radius: 10px;
    padding: 2px 8px;
}

@media (max-width: 992px) {
    .dishes-split {
        flex-direction: column;
    }

    .dishes-split > .dish-picker .dish-grid {
        min-height: 200px;
        max-height: 40vh;
    }
}

.dish-picker {
    border: 1px solid #3a3f4f;
    border-radius: 8px;
    background-color: #252a38;
    padding: 12px;
}

.dish-picker-toolbar {
    margin-bottom: 10px;
}

.dish-picker-toolbar .form-control {
    background-color: #3a3f4f;
    border-color: #4a4f5f;
}

.dish-picker-main {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.category-tabs {
    width: 150px;
    flex-shrink: 0;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 4px;
}

.category-tab {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background-color: #3a3f4f;
    color: #e0e0e0;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: all 0.15s;
}

.category-tab:hover {
    background-color: #4a4f5f;
}

.category-tab.active {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    color: white;
    font-weight: 600;
}

.cat-count {
    font-size: 11px;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 1px 6px;
}

.dish-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    align-content: start;
}

.dish-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    background-color: #3a3f4f;
    border: 1px solid #4a4f5f;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    color: #e0e0e0;
    transition: all 0.15s;
}

.dish-card:hover {
    border-color: #8bc34a;
    background-color: #42475a;
    transform: translateY(-1px);
}

.dish-card-name {
    font-size: 13px;
    font-weight: 500;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dish-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.dish-card-price {
    color: #ffcc00;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.dish-card-unit {
    color: #8b93a7;
}

.dish-grid-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #8b93a7;
    padding: 24px 0;
}

/* 临时菜手输 / 批量快速输入 */
.temp-dish-section {
    margin-top: 12px;
}

.temp-dish-form {
    background-color: #252a38;
    border: 1px dashed #4a4f5f;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 8px;
}

/* 菜品库点菜区操作行（批量输入 / 临时菜手输，置顶显示） */
.dish-picker-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dish-picker-tip {
    font-size: 12px;
    color: #8b93a7;
    margin-left: auto;
}

/* 批量快速输入 */
.batch-import-box {
    background-color: #252a38;
    border: 1px dashed #4a4f5f;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 8px;
}

.batch-import-box textarea {
    background-color: #1e2230;
    border: 1px solid #4a4f5f;
    color: #fff;
    font-size: 14px;
    resize: vertical;
}

.batch-import-box textarea:focus {
    background-color: #1e2230;
    color: #fff;
    border-color: #4fc3f7;
    box-shadow: none;
}

.batch-import-hint {
    font-size: 12px;
    color: #8b93a7;
}

/* 菜品管理弹窗内的明细表（深色主题，替换 Bootstrap 亮色表头） */
#dishesTable {
    --bs-table-bg: #262b3b;
    --bs-table-color: #e4e7ee;
    color: #e4e7ee;
    margin-top: 14px;
}

#dishesTable thead th {
    background-color: #1f2432;
    color: #c6cede;
    font-weight: 600;
    border-color: #3a3f4f;
    white-space: nowrap;
}

#dishesTable td {
    background-color: #262b3b;
    border-color: #3a3f4f;
    color: #e4e7ee;
}

#dishesTable .form-control,
#dishesTable .form-select {
    background-color: #1e2230;
    border-color: #4a4f5f;
    color: #fff;
}

.dishes-table-wrap {
    max-height: 62vh;
    overflow-y: auto;
}

/* 水单弹窗（iframe 内嵌水单管理页） */
.modal-dialog.receipt-frame-dialog {
    max-width: min(96vw, 1500px);
    margin-left: auto;
    margin-right: auto;
}

/* 菜品管理弹窗金额合计条 */
.dishes-total-bar {
    margin-top: 12px;
    padding: 10px 14px;
    background-color: #252a38;
    border: 1px solid #3a3f4f;
    border-radius: 6px;
    text-align: right;
    font-size: 15px;
    font-weight: 600;
}

.dishes-total-bar i {
    color: #8bc34a;
    margin-right: 6px;
}

.dishes-total-bar span {
    color: #ffcc00;
    font-variant-numeric: tabular-nums;
}

.dish-subtotal {
    color: #ffcc00;
    font-variant-numeric: tabular-nums;
}

/* ---------- 结账弹窗 ---------- */
.settle-alert {
    background-color: rgba(255, 193, 7, 0.12);
    border: 1px solid #ffc107;
    color: #ffe082;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.settle-summary-box {
    background-color: #252a38;
    border: 1px solid #3a3f4f;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.settle-hint {
    margin-top: 10px;
    font-size: 13px;
    min-height: 18px;
}

.settle-hint.ok {
    color: #8bc34a;
}

.settle-hint.warning {
    color: #ffcc00;
}

.settle-hint.error {
    color: #ff6b6b;
}

.settle-divider {
    border-color: #3a3f4f;
    margin: 16px 0;
}

.payment-row {
    display: grid;
    grid-template-columns: 170px 150px 1fr 40px;
    gap: 10px;
    align-items: center;
    padding: 6px 0;
}

.payment-row .pay-amount {
    font-variant-numeric: tabular-nums;
}

/* 隐藏客户下拉时保持网格占位（display:none 会把删除按钮挤到 1fr 列被拉得很长） */
.payment-row .pay-customer-hidden {
    visibility: hidden;
}

.payment-row .pay-remove {
    width: 40px;
    padding: 7px 0;
    text-align: center;
}

/* 结账记录空态：深色背景上要看清 */
.settlement-empty {
    color: #c9d2e3;
    font-size: 13px;
}

/* 订单列表欠款标记 */
.debt-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    background-color: #e74c3c;
    color: #fff;
    margin-left: 4px;
    display: inline-block;
}

.debt-record {
    border: 1px solid #3a3f4f;
    border-radius: 6px;
    background-color: #252a38;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

.debt-record .debt-amount {
    color: #ff6b6b;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.debt-status {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.debt-status.open { background-color: #e74c3c; color: #fff; }
.debt-status.repaid { background-color: #4caf50; color: #fff; }
.debt-status.written_off { background-color: #4a4f5f; color: #c0c4cc; }

.debt-files a {
    color: #4fc3f7;
    text-decoration: none;
    margin-right: 8px;
    word-break: break-all;
}

/* 结账记录 */
.settlement-record {
    border: 1px solid #3a3f4f;
    border-radius: 6px;
    background-color: #252a38;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.settlement-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}

.settlement-sn {
    font-weight: 600;
    color: white;
}

.settlement-time {
    color: #8b93a7;
}

.settlement-amount {
    color: #ffcc00;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.settlement-status {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.settlement-status.effective {
    background-color: #4caf50;
    color: white;
}

.settlement-status.reversed {
    background-color: #4a4f5f;
    color: #c0c4cc;
    text-decoration: line-through;
}

.settlement-payments {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.payment-tag {
    background-color: #3a3f4f;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    color: #c0c4cc;
    font-variant-numeric: tabular-nums;
}

.settlement-reason {
    margin-top: 6px;
    font-size: 12px;
    color: #ff9d9d;
    padding-left: 4px;
}

.btn-reverse {
    margin-left: auto;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .table-header,
    .order-row {
        grid-template-columns: 1fr 0.8fr 0.6fr 1fr 0.8fr 1.3fr 0.8fr 0.9fr 0.6fr 400px;
        gap: 10px;
    }
}

@media (max-width: 1200px) {
    .table-header,
    .order-row {
        grid-template-columns: 1.1fr 0.8fr 0.6fr 1.1fr 0.8fr 1.5fr 0.8fr 0.9fr 0.6fr 400px;
    }
}

@media (max-width: 992px) {
    .table-header,
    .order-row {
        grid-template-columns: 1fr 0.9fr 0.7fr 0.9fr 1.4fr 0.8fr 0.9fr 0.65fr 360px;
        gap: 10px;
    }

    /* 隐藏下单时间列 */
    .table-header div:nth-child(4),
    .order-row div:nth-child(4) {
        display: none;
    }
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .table-header,
    .order-row {
        grid-template-columns: 1fr 0.9fr 0.9fr 1.3fr 0.8fr 0.9fr 0.65fr 330px;
    }

    /* 隐藏班次列 */
    .table-header div:nth-child(3),
    .order-row div:nth-child(3) {
        display: none;
    }

    .dish-picker-main {
        flex-direction: column;
    }

    .category-tabs {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
    }

    .payment-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* 房间管理样式 */
.room-list-section {
    margin-bottom: 20px;
}

.section-title {
    color: #8bc34a;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rooms-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #3a3f4f;
    border-radius: 6px;
    background-color: #252a38;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #3a3f4f;
    transition: background-color 0.2s;
}

.room-item:last-child {
    border-bottom: none;
}

.room-item:hover {
    background-color: #2a2f3f;
}

.room-item.empty {
    justify-content: center;
    color: #a0a0a0;
    font-style: italic;
}

.room-name {
    font-weight: 500;
    color: #e0e0e0;
}

.room-actions {
    display: flex;
    gap: 8px;
}

.btn-room-edit {
    padding: 4px 8px;
    background-color: #ffa726;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-room-edit:hover {
    background-color: #ff9800;
}

.btn-room-delete {
    padding: 4px 8px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-room-delete:hover {
    background-color: #d32f2f;
}

.room-form-section {
    margin-top: 20px;
}

.room-form .input-group {
    display: flex;
    gap: 10px;
}

.room-form .form-control {
    flex: 1;
    background-color: #2a2f3f;
    border: 1px solid #3a3f4f;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 4px;
}

.room-form .form-control:focus {
    border-color: #4fc3f7;
    box-shadow: 0 0 0 0.2rem rgba(79, 195, 247, 0.25);
}

.room-form .btn {
    white-space: nowrap;
}

#roomDeleteConfirmModal .modal-content,
#globalAlertModal .modal-content {
    background-color: #2a2f3f;
    color: #e0e0e0;
}

#roomDeleteConfirmModal .modal-header,
#globalAlertModal .modal-header {
    border-bottom: 1px solid #3a3f4f;
}

#roomDeleteConfirmModal .modal-footer,
#globalAlertModal .modal-footer {
    border-top: 1px solid #3a3f4f;
}

/* placeholder 提高可见度（深色主题下默认灰太暗，看不清提示文字）。
   需 !important 压过 Bootstrap 的 .form-control::placeholder（其半透明次级色在深色背景上过暗） */
::-webkit-input-placeholder { color: #a8b3c7 !important; opacity: 1; }
::placeholder { color: #a8b3c7 !important; opacity: 1; }
