:root{color:#2b3441;background:#f4f6f9;font-family:Inter,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}.admin-shell{min-height:100vh;display:grid;grid-template-columns:240px minmax(0,1fr);background:#f4f6f9}.merchant-sidebar{background:#20263d;color:#dbe2f0;display:flex;flex-direction:column}.brand{height:78px;display:flex;align-items:center;gap:12px;padding:0 20px;border-bottom:1px solid rgba(255,255,255,.08)}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#4da3ff;color:#fff;flex:0 0 auto}.brand strong{display:block;color:#fff;font-size:17px}.brand span{display:block;color:#9da8bd;font-size:12px;margin-top:4px}.merchant-nav{padding:18px 0;display:grid;gap:4px;overflow:auto}.merchant-nav button{height:48px;border:0;background:transparent;color:#dbe2f0;display:flex;align-items:center;gap:12px;padding:0 22px;cursor:pointer;text-align:left}.merchant-nav button:hover,.merchant-nav button.active{background:#2d3552;color:#fff}.merchant-main{min-width:0}.site-footer{display:flex;align-items:center;justify-content:center;gap:12px;padding:20px 24px;color:#667085;font-size:13px;text-align:center}.site-footer a{color:#475467;text-decoration:none}.site-footer a:hover,.site-footer a:focus-visible{text-decoration:underline}.topbar{height:76px;background:#fff;border-bottom:1px solid #edf0f5;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.top-tools{display:flex;align-items:center;gap:18px;color:#7c8798}.logout-mini{width:34px;height:34px;border:0;border-radius:8px;background:#f1f5f9;color:#64748b;display:grid;place-items:center;cursor:pointer}.merchant-page{padding:28px 16px}.page-title{min-height:110px;background:#fff;border-radius:8px;box-shadow:0 8px 24px #1c273c14;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 22px;margin-bottom:16px}.page-title h1{margin:0;font-size:24px;color:#273142;letter-spacing:0}.page-title p{margin:8px 0 0;color:#9aa4b2;font-size:14px}.page-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.search-box{width:310px;height:46px;border:1px solid #e3e8ef;border-radius:23px;display:flex;align-items:center;gap:8px;padding:0 16px;color:#9aa4b2}.search-box input{border:0;outline:0;width:100%;color:#4b5565}.soft-button,.export-button{height:44px;border:0;border-radius:22px;padding:0 18px;color:#fff;background:#9ca3af;display:inline-flex;align-items:center;gap:7px;cursor:pointer;box-shadow:0 6px 14px #3c48581f}.soft-button.muted{background:#8c929d}.export-button{background:#55aaf7}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px;margin-bottom:16px}.stat-card{height:96px;border-radius:8px;background:#fff;box-shadow:0 8px 24px #1c273c14;padding:18px;display:grid;gap:8px}.stat-card span{color:#8b95a5}.stat-card strong{font-size:26px;color:#273142}.stat-card.blue{border-left:4px solid #55aaf7}.stat-card.green{border-left:4px solid #54d17a}.stat-card.orange{border-left:4px solid #ffb45c}.stat-card.purple{border-left:4px solid #8b7cf6}.table-card{background:#fff;border-radius:8px;box-shadow:0 8px 24px #1c273c14;overflow:auto}.table-status-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px}.table-status-sidebar{background:#fff;border-radius:8px;box-shadow:0 8px 24px #1c273c14;padding:16px;align-self:start}.table-status-sidebar h2{margin:0 0 14px;color:#273142;font-size:16px;letter-spacing:0}.status-filter-list{display:grid;gap:8px}.status-filter-list button{min-height:42px;border:1px solid #e5eaf1;border-radius:8px;background:#fff;color:#536071;display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:10px;padding:0 12px;cursor:pointer;text-align:left}.status-filter-list button.active{border-color:#55aaf7;background:#eef7ff;color:#1976c9}.status-filter-list strong{color:#273142}.status-dot{width:10px;height:10px;border-radius:50%;background:#9ca3af}.status-dot.empty{background:#cbd5e1}.status-dot.unhandled{background:#f97316}.status-dot.processing{background:#3b82f6}.status-dot.served{background:#8b5cf6}.status-dot.paid{background:#14b8a6}.table-board-area{min-width:0}.table-board-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:12px}.table-tile{min-height:124px;border-radius:8px;padding:12px;display:grid;align-content:space-between;gap:12px;color:#fff;background:#f97316;box-shadow:0 8px 20px #1c273c1f;overflow:hidden}.table-tile.empty{background:#fff;color:#273142;border:1px solid #e5eaf1}.table-tile.orange{background:#f97316}.table-tile.blue{background:#3b82f6}.table-tile.purple{background:#8b5cf6}.table-tile.teal{background:#14b8a6}.table-tile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.table-tile-head strong{font-size:17px;line-height:1.25;overflow-wrap:anywhere}.table-tile-head span{min-height:22px;border-radius:11px;padding:0 8px;background:#fff3;font-size:12px;white-space:nowrap;display:inline-flex;align-items:center}.table-tile.empty .table-tile-head span{background:#eef2f6;color:#667085}.table-tile-order{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}.table-tile-order span{min-height:22px;border-radius:11px;padding:0 8px;background:#ffffff29;display:inline-flex;align-items:center}.table-tile p{margin:0;line-height:1.45;font-size:13px;color:#ffffffeb;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.table-tile-empty{color:#98a2b3;font-weight:700}.table-board-empty{min-height:160px;border-radius:8px;background:#fff;color:#98a2b3;display:grid;place-items:center;box-shadow:0 8px 24px #1c273c14}.notice-summary{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px;margin-bottom:16px}.notice-summary div{min-height:78px;border-radius:8px;background:#fff;box-shadow:0 8px 24px #1c273c14;padding:14px 16px;display:grid;gap:8px}.notice-summary span{color:#8b95a5;font-size:13px}.notice-summary strong{color:#273142;font-size:24px}.menu-editor{background:#fff;border-radius:8px;box-shadow:0 8px 24px #1c273c14;display:grid;grid-template-columns:minmax(180px,1fr) 120px 100px auto;gap:14px;align-items:end;padding:18px;margin-bottom:16px}.menu-editor.dish-editor{grid-template-columns:minmax(160px,1.2fr) minmax(140px,.9fr) 110px 110px 100px minmax(180px,1.4fr)}.banner-editor{background:#fff;border-radius:8px;box-shadow:0 8px 24px #1c273c14;display:grid;grid-template-columns:minmax(150px,.8fr) minmax(240px,1.4fr) minmax(240px,1.4fr) 90px 90px auto;gap:14px;align-items:end;padding:18px;margin-bottom:16px}.table-editor{background:#fff;border-radius:8px;box-shadow:0 8px 24px #1c273c14;display:grid;grid-template-columns:minmax(180px,320px) auto;gap:14px;align-items:end;padding:18px;margin-bottom:16px}.menu-editor label{margin:0;color:#536071;font-size:13px}.image-upload-field{margin:0;color:#536071;font-size:13px;display:grid;gap:8px;font-weight:600}.image-upload-control{display:grid;grid-template-columns:74px minmax(0,1fr);gap:10px;align-items:center}.dish-image-preview{width:74px;height:74px;border:1px solid #d8dee8;border-radius:8px;background:#f8fafc;display:grid;place-items:center;overflow:hidden;color:#98a2b3;font-size:12px;text-align:center}.dish-image-preview img{width:100%;height:100%;object-fit:cover;display:block}.image-upload-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.image-upload-actions input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.upload-button,.clear-image-button{min-height:32px;border:0;border-radius:16px;padding:0 12px;display:inline-flex;align-items:center;background:#55aaf7;color:#fff;cursor:pointer;font-size:13px}.clear-image-button{background:#eef2f6;color:#667085}.banner-editor label{margin:0;color:#536071;font-size:13px}.menu-editor input,.menu-editor select,.menu-editor textarea,.banner-editor input{width:100%;border:1px solid #d8dee8;border-radius:8px;color:#344054;background:#fff}.menu-editor input,.menu-editor select,.banner-editor input{height:38px;padding:0 10px}.menu-editor textarea{min-height:104px;resize:vertical;padding:10px;line-height:1.6}.menu-editor .wide{grid-column:span 2}.menu-editor .spec-field{grid-column:span 3}.spec-actions{display:flex;flex-wrap:wrap;gap:8px;align-self:end}.spec-actions button{height:32px;border:0;border-radius:16px;padding:0 12px;background:#eaf4ff;color:#2176bd;cursor:pointer}.spec-actions button.muted{background:#eef2f6;color:#667085}.toggle-row{min-height:38px;display:flex;align-items:center;gap:8px}.toggle-row input{width:16px;height:16px;padding:0}.form-actions{display:flex;gap:10px;align-items:center}.form-actions .primary,.form-actions .soft-button{margin-top:0;border-radius:8px;height:38px;min-height:38px}.dish-name{font-weight:700;color:#344054}.banner-thumb{width:150px;height:72px;border-radius:8px;object-fit:cover;background:#eef2f6;display:inline-block}.link-text{display:inline-block;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}table{width:100%;border-collapse:collapse;min-width:980px}.orders-table{min-width:1320px}.orders-table th:nth-child(1),.orders-table td:nth-child(1){width:190px}.orders-table th:nth-child(2),.orders-table td:nth-child(2){width:110px}.orders-table th:nth-child(3),.orders-table td:nth-child(3){width:140px}.orders-table th:nth-child(4),.orders-table td:nth-child(4){width:34%}.orders-table th:nth-child(5),.orders-table td:nth-child(5){width:110px}.orders-table th:nth-child(6),.orders-table td:nth-child(6){width:170px}.orders-table th:nth-child(8),.orders-table td:nth-child(8){width:110px}.orders-table th:nth-child(9),.orders-table td:nth-child(9){width:190px}.order-mobile{white-space:nowrap;font-variant-numeric:tabular-nums}.printer-actions{flex-wrap:nowrap}.printer-date-field{min-height:44px;margin:0;padding:0 12px;border:1px solid #dfe5ec;border-radius:8px;background:#fff;display:flex;grid-template-columns:none;flex-direction:row;align-items:center;gap:8px;color:#536071;font-size:13px;white-space:nowrap}.printer-date-field input{width:132px;min-height:34px;border:0;outline:0;color:#273142;background:transparent;font:inherit}.printer-actions button:disabled,.printer-row-button:disabled{cursor:not-allowed;opacity:.55}.printer-orders-table{min-width:1240px}.printer-orders-table th:first-child,.printer-orders-table td:first-child{width:54px}.printer-orders-table th:nth-child(2),.printer-orders-table td:nth-child(2){width:190px}.printer-orders-table th:nth-child(3),.printer-orders-table td:nth-child(3),.printer-orders-table th:nth-child(6),.printer-orders-table td:nth-child(6),.printer-orders-table th:nth-child(8),.printer-orders-table td:nth-child(8){width:120px}.printer-orders-table th:nth-child(5),.printer-orders-table td:nth-child(5){width:190px}.printer-orders-table th:nth-child(7),.printer-orders-table td:nth-child(7){width:165px}.printer-order-number{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.print-result{display:grid;justify-items:center;gap:7px}.print-result small{display:block;max-width:145px;overflow:hidden;color:#7b8797;text-overflow:ellipsis;white-space:nowrap}.printer-row-button{min-height:34px;border:0;border-radius:6px;padding:0 12px;background:#eaf4ff;color:#2577c9;display:inline-flex;align-items:center;gap:6px;cursor:pointer}.success-message{margin:0 0 14px;padding:11px 14px;border:1px solid #a6e4b4;border-radius:8px;background:#edf9f0;color:#247a38}th{height:66px;background:#f6f8fb;color:#536071;font-size:14px;font-weight:700;border-bottom:1px solid #edf0f5;white-space:nowrap}td{min-height:78px;padding:18px 14px;border-bottom:1px solid #edf0f5;color:#697386;text-align:center;vertical-align:middle}tbody tr:hover{background:#fbfdff}.dish-detail{display:inline-block;max-width:300px;text-align:left;color:#55aaf7;line-height:1.8}.dish-detail-empty{color:#98a2b3}.order-items-detail{width:min(420px,100%);min-width:280px;display:grid;gap:8px;text-align:left}.order-items-detail.compact{max-height:146px;overflow-y:auto;padding-right:4px}.order-item-line{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px;padding:8px 10px;border:1px solid #e7eef8;border-radius:8px;background:#fbfdff}.order-item-main{min-width:0;display:grid;gap:3px}.order-item-main strong{color:#344054;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.order-item-main span{color:#55aaf7;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.order-item-line em{min-width:34px;min-height:24px;border-radius:12px;background:#eaf4ff;color:#1976c9;display:inline-flex;align-items:center;justify-content:center;font-style:normal;font-weight:700;font-size:12px}.qr-cell{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:260px}.qr-cell.compact{min-width:120px;flex-direction:column;gap:8px}.qr-preview{width:78px;height:78px;border:0;border-radius:8px;padding:6px;background:#fff;box-shadow:0 6px 16px #242d401f;display:grid;place-items:center;cursor:zoom-in}.qr-preview img{width:66px;height:66px;object-fit:contain;display:block}.qr-meta{display:grid;gap:4px;text-align:left;color:#667085;font-size:12px}.qr-meta small{color:#98a2b3}.qr-warning{max-width:180px;color:#b45309;line-height:1.5}.status{display:inline-flex;min-height:28px;align-items:center;border-radius:14px;padding:0 12px;color:#fff;font-size:12px;font-weight:700}.status.blue{background:#55aaf7}.status.green{background:#68d64f}.status.warn{background:#f5a742}.status.muted{background:#9ca3af}.order-tabs{display:flex;align-items:center;gap:10px;margin:16px 0;flex-wrap:wrap}.order-tabs button{position:relative;height:38px;border:1px solid #d8dee8;border-radius:8px;padding:0 16px;background:#fff;color:#475467;font-weight:700;cursor:pointer}.order-tabs button.active{border-color:#55aaf7;background:#eef7ff;color:#1976c9}.tab-badge{position:absolute;top:-8px;right:-8px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#f04438;color:#fff;font-size:11px;line-height:18px;box-shadow:0 4px 10px #f0443840}.row-actions{display:flex;justify-content:center;gap:10px}.row-actions button{height:32px;border:0;border-radius:16px;padding:0 12px;background:#55aaf7;color:#fff;display:inline-flex;align-items:center;gap:5px;cursor:pointer;white-space:nowrap}.table-download{height:32px;border-radius:16px;padding:0 12px;background:#55aaf7;color:#fff;display:inline-flex;align-items:center;gap:5px;text-decoration:none;white-space:nowrap}.row-actions button.danger{background:#f25f73}.row-actions button.order-action.pending{background:#55aaf7}.row-actions button.order-action.urgent{background:#f04438}.row-actions button.order-action.paid,.row-actions button.order-action.paid:disabled{background:#e8f7ec;color:#2f9b46;box-shadow:none;cursor:default;opacity:1}.row-actions button.order-action.completed,.row-actions button.order-action.completed:disabled{background:#eef2f7;color:#667085;box-shadow:none;cursor:default;opacity:1}.table-download{height:32px;border:0;border-radius:16px;padding:0 12px;background:#34b7a7;color:#fff;display:inline-flex;align-items:center;gap:5px;cursor:pointer;white-space:nowrap;text-decoration:none;font-size:13px}.empty-row{height:180px;color:#9aa4b2}.login-page{min-height:100vh;display:flex;flex-direction:column}.login-shell{flex:1;display:grid;place-items:center;padding:24px;background:#eef2f6}.login-panel{width:min(420px,100%);background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:28px}.login-panel h1{margin-top:18px;font-size:26px}.login-panel p{color:#667085;margin-top:6px}.brand-mark{width:36px;height:36px;border-radius:8px;display:grid;place-items:center;color:#0f172a;background:#facc15}label{display:grid;gap:8px;color:#344054;font-weight:600;margin-top:14px}.login-panel input{width:100%;min-height:38px;border:1px solid #d0d5dd;border-radius:8px;padding:0 10px}.primary{border:0;min-height:38px;border-radius:8px;padding:0 14px;background:#0f766e;color:#fff;display:inline-flex;align-items:center;gap:8px;cursor:pointer;margin-top:16px}.error{color:#b42318;background:#fef3f2;border:1px solid #fecdca;border-radius:8px;padding:10px;margin-top:12px}@media(max-width:980px){.admin-shell{grid-template-columns:1fr}.merchant-sidebar{position:static}.merchant-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.page-title{align-items:flex-start;flex-direction:column;gap:18px;padding:22px}.search-box{width:100%}.stat-grid,.notice-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.menu-editor,.menu-editor.dish-editor,.banner-editor,.table-status-shell{grid-template-columns:1fr}.printer-actions{width:100%;flex-wrap:wrap;justify-content:flex-start}.printer-date-field{width:100%}.printer-date-field input{width:auto;flex:1}.menu-editor .wide,.menu-editor .spec-field{grid-column:auto}}
