/* Staff operations only: generous tablet targets without changing the guest menu. */
body.operations-workspace { background: #f2f3f1; }
body.operations-workspace .app-shell { display: block; }
body.operations-workspace .sidebar,
body.operations-workspace .topbar,
body.operations-workspace #adminView > .section-title,
body.operations-workspace #adminView > .metric-grid,
body.operations-workspace #adminView > .admin-grid { display: none; }
body.operations-workspace .workspace { padding: calc(18px + var(--app-safe-top,0px)) max(22px,env(safe-area-inset-right,0px)) max(18px,env(safe-area-inset-bottom,0px)) max(22px,env(safe-area-inset-left,0px)); width: 100%; max-width: 1920px; margin: 0 auto; min-width: 0; }
body.operations-workspace #adminView { margin: 0; }
body.operations-workspace .management-shell { margin: 0; gap: 10px; }
.ops-tablet-console { gap: 18px; min-width: 0; color: #34383d; }
.ops-tablet-console .ops-header { border: 0; border-bottom: 1px solid #d9ddda; background: transparent; border-radius: 0; padding: 0 0 16px; display: flex; flex-direction: row; flex-wrap: wrap; }
.ops-store-heading { display: flex; gap: 10px; align-items: center; }
.ops-store-heading > div { display: grid; gap: 3px; }
.ops-store-heading strong { font-size: 18px; }
.ops-store-heading small { color: #717777; font-size: 12px; }
.ops-store-mark { background: #3e4549; color: #ffda8b; border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; font-weight: 800; }
.ops-header-title { font-size: 18px; font-weight: 700; }
.ops-tablet-console .ops-header-meta { display: flex; gap: 14px; align-items: center; color: #666d73; font-size: 13px; }
.ops-tablet-console .ops-header-meta button { min-height: 42px; padding: 8px 14px; }
.ops-tablet-console .ops-layout { grid-template-columns: 276px minmax(0,1fr); align-items: start; gap: 22px; }
.ops-navigation { position: sticky; top: calc(12px + var(--app-safe-top,0px)); max-height: calc(100vh - 115px - var(--app-safe-top,0px)); max-height: calc(100dvh - 115px - var(--app-safe-top,0px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: #e8ebe7; border-radius: 16px; padding: 6px; min-width: 0; }
.ops-navigation-group + .ops-navigation-group { border-top: 1px solid #cfd6cd; margin-top: 8px; padding-top: 4px; }
.ops-navigation-group > summary { min-height: 46px; padding: 13px 8px; cursor: pointer; color: #5d655d; font-weight: 700; font-size: 14px; }
.ops-tablet-console .ops-menu-grid { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0; }
.ops-tablet-console .ops-menu-grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 88px; padding: 10px 5px; border: 1px solid transparent; border-radius: 13px; background: #f9faf7; color: #555c60; text-align: center; box-shadow: none; }
.ops-tablet-console .ops-menu-grid button:hover { background: #fff5d9; }
.ops-tablet-console .ops-menu-grid button.active { background: #f1bd50; border-color: #e4ab32; color: #403d32; }
.ops-tablet-console .ops-menu-grid button strong { font-size: 15px; line-height: 1.35; font-weight: 600; }
.ops-tablet-console .ops-menu-grid svg { display: block; width: 36px; height: 36px; flex-shrink: 0; }
.ops-icon-fill { fill: #f2c467; }
.ops-tablet-console .ops-menu-grid button.active .ops-icon-fill { fill: #fff6df; }
.ops-tablet-console .ops-module { align-content: start; min-height: 720px; min-width: 0; padding: 0 0 16px; background: #fafbf9; border: 1px solid #e0e4df; border-radius: 14px; overflow: hidden; gap: 16px; }
.ops-tablet-console .ops-module > :not(.ops-content-tabs):not(.ops-account-panel) { margin-left: 18px; margin-right: 18px; }
.ops-tablet-console .ops-module > .ops-panel-title { margin-top: 18px; }
.ops-settings-title { font-size: 20px; margin-top: 0; margin-bottom: 0; padding: 18px; background: #eef0eb; border-bottom: 1px solid #dde1da; }
.ops-tablet-console .ops-settings-module > .ops-settings-title { margin: 0; }
.ops-settings-content, .ops-settings-content > * { min-width: 0; }
.ops-settings-content .admin-card, .ops-settings-content .admin-form { max-width: 100%; }
.ops-settings-content .admin-grid-form { grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); }
.ops-settings-content .admin-wide { grid-column: 1 / -1; }
/* Dish editing: paired prices and quiet secondary media actions. */
.dish-editor-card .admin-grid-form { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 16px; padding-top:4px; }
.dish-editor-card .field { min-width:0; align-content:start; gap:8px; }
.dish-editor-card .field > label { font-size:13px; font-weight:600; color:#59635e; }
.dish-editor-card .field input:not([type=file]):not([type=checkbox]),
.dish-editor-card .field select { min-height:48px; font-size:16px; background:#fff; }
.dish-editor-card .dish-editor-pricing { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; background:#f5f6f2; border:1px solid #e1e5dd; border-radius:12px; padding:16px; }
.dish-editor-card .dish-editor-pricing .field input[name=price_yuan] { min-height:52px; font-size:20px; font-variant-numeric:tabular-nums; }
.dish-editor-tax output { display:flex; align-items:center; min-height:52px; padding:10px 14px; border:1px solid #d9e1d3; border-radius:8px; background:#eaf0e4; color:#33452f; font-size:20px; font-weight:750; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.dish-editor-tax-note { grid-column:1/-1; margin:0; color:#667260; font-size:12px; line-height:1.5; }
.dish-editor-card .image-manager { padding-top:8px; }
.dish-editor-card .image-preview-grid { gap:14px; }
.dish-editor-card .admin-image-preview { width:144px; min-width:144px; height:144px; border-radius:12px; }
.dish-editor-card .image-remove-button { width:36px; height:36px; top:6px; right:6px; border:1px solid #e2ded9; border-radius:10px; background:rgba(255,255,255,.96); color:#6a524d; box-shadow:0 2px 6px #00000012; font-size:22px; }
.dish-editor-card .image-remove-button:hover { color:#af3026; background:#fff0ec; }
.dish-editor-card label.file-upload-button { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:46px; max-width:100%; padding:10px 16px; border:1px solid #cdd5cb; border-radius:10px; background:#f5f7f2; color:#37483b; font-size:14px; line-height:1.4; font-weight:650; box-shadow:0 1px 2px #00000005; overflow:hidden; }
.dish-editor-card .file-upload-button svg { width:20px; height:20px; flex:0 0 auto; }
.dish-editor-card .file-upload-button:hover { background:#eaf0e4; border-color:#a9b8a4; }
.dish-editor-card .file-upload-button:focus-within { outline:3px solid #366b87; outline-offset:3px; }
.dish-editor-card .file-upload-button input[type=file] { position:absolute; inset:0; display:block; opacity:0; width:100%; height:100%; min-height:100%; padding:0; cursor:pointer; }
.dish-editor-card .file-upload-button.is-uploading { opacity:.7; cursor:progress; pointer-events:none; }
.dish-editor-card .description-toolbar { margin-top:4px; }
.dish-editor-card .form-actions { border-top:1px solid #e5e8e0; padding-top:18px; }
.dish-editor-card .form-actions .primary-button { min-height:48px; min-width:112px; border-radius:10px; }
.dish-editor-card .dish-editor-summary .role-pill { background:#edf1e9; color:#4b5b45; }
@media(max-width:520px) { .dish-editor-card .admin-grid-form, .dish-editor-card .dish-editor-pricing { grid-template-columns:1fr; } .dish-editor-card .dish-editor-pricing { padding:12px; } }
.ops-tablet-console .ops-module.ops-kitchen-module { display:flex; flex-direction:column; height:calc(100vh - 142px - var(--app-safe-top,0px)); height:calc(100dvh - 142px - var(--app-safe-top,0px)); min-height:440px; padding:16px 0; gap:12px; }
.ops-kitchen-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.ops-kitchen-header h2 { margin:0; font-size:20px; }
.ops-kitchen-header .kitchen-tools { display:flex; flex-wrap:wrap; gap:8px; }
.ops-kitchen-header button { min-height:44px; }
.ops-kitchen-module [data-kitchen-tools] { flex:0 1 auto; min-height:0; max-height:46%; overflow:auto; overscroll-behavior:contain; }
.ops-kitchen-module [data-kitchen-list] { flex:1; min-height:160px; overflow:auto; overscroll-behavior:contain; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); align-content:start; gap:12px; padding-bottom:8px; }
.ops-kitchen-module .order-card { min-width:0; padding:14px; }
.ops-kitchen-module .order-header { flex-wrap:wrap; gap:8px; }
.ops-kitchen-module .order-header h3 { overflow-wrap:anywhere; }
.ops-kitchen-module .kitchen-queue-controls, .ops-kitchen-module .kitchen-queue-tabs, .ops-kitchen-module .kitchen-queue-actions, .ops-kitchen-module .kitchen-date-filter { gap:8px; }
.ops-kitchen-module .kitchen-queue-controls button, .ops-kitchen-module .kitchen-date-filter button { min-height:44px; padding:9px 12px; }
.ops-kitchen-module .kitchen-queue-hint { margin-bottom:8px; }
.ops-content-tabs { display: flex; gap: 4px; overflow-x: auto; background: #eef0eb; padding: 8px; border-bottom: 1px solid #dde1da; scrollbar-width: thin; }
.ops-content-tabs button { flex: 1 0 auto; background: transparent; border: 0; padding: 12px 16px; min-height: 46px; color: #5e6565; font-weight: 600; white-space: nowrap; border-radius: 6px; }
.ops-content-tabs button.active { background: #414a4d; color: #fff; }
.ops-tablet-console button:focus-visible, .ops-tablet-console summary:focus-visible { outline: 3px solid #366b87; outline-offset: 2px; }
.ops-account-panel { padding: 28px; }
.ops-account-panel h3 { margin: 0 0 14px; font-size: 22px; }
.ops-account-panel p { line-height: 1.8; }
.ops-welcome { min-height: 622px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding-bottom: 90px; }
.ops-welcome h2 { margin: 22px 0 6px; font-size: 28px; }
.ops-welcome p { margin: 0 0 28px; color: #8c7871; }
.ops-welcome .primary-button { padding: 14px 40px; }
.ops-welcome-avatar { background: #f6e6bc; border-radius: 50%; width: 80px; height: 80px; display: grid; place-items: center; color: #5f6363; }
.ops-welcome-avatar svg { width: 48px; height: 48px; }
.ops-version { position: absolute; bottom: 24px; right: 28px; color: #92988f; font-size: 12px; overflow-wrap: anywhere; }
.ops-account-form { display: grid; gap: 18px; max-width: 460px; margin-top: 24px; }
.ops-account-form label { display: grid; gap: 8px; font-weight: 600; }
.ops-account-form input { min-height: 48px; padding: 12px; border: 1px solid #d3d9d3; border-radius: 8px; background: white; min-width: 0; }
.ops-form-message { margin: 0; color: #875417; }
.ops-language-options { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.ops-language-options button { padding: 18px 28px; min-height: 54px; border: 1px solid #d9ded5; border-radius: 10px; background: #fff; }
.ops-language-options button.active { background: #f5d58e; border-color: #d4a53c; }
.ops-notification-toggle { display: flex; align-items: center; gap: 14px; padding: 20px 0; font-weight: 600; }
.ops-notification-toggle input { width: 24px; height: 24px; accent-color: #c3932f; }
.ops-help { border-bottom: 1px solid #dce1d8; padding: 18px 0; }
.ops-help summary { cursor: pointer; font-weight: 700; line-height: 1.5; }
.ops-store-details { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 20px; line-height: 1.7; }
.ops-store-details dd { margin: 0; overflow-wrap: anywhere; }
.ops-history-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.ops-history-filters label { display: grid; gap: 7px; font-size: 12px; color: #666f73; min-width: 0; }
.ops-history-filters .ops-search-field { flex: 1 1 215px; }
.ops-history-filters input, .ops-history-filters select { width: 100%; min-width: 0; height: 44px; border: 1px solid #d4dcd3; border-radius: 7px; padding: 8px 10px; background: #fff; color: #343a3e; font: inherit; font-size: 14px; }
.ops-history-filters input[type=date] { width: 153px; }
.ops-history-filters button { min-height: 44px; padding: 10px 17px; white-space: nowrap; }
.ops-filter-error { flex-basis: 100%; margin: 0; color: #bd3030; }
.ops-history-hint { font-size: 12px; color: #7d8580; line-height: 1.6; margin-top: -2px; margin-bottom: 0; }
.ops-tablet-console .ops-data-table-wrap { border: 1px solid #dce1d9; border-radius: 8px; overflow-x: auto; }
.ops-tablet-console .ops-data-table { min-width: 700px; width: 100%; border-collapse: collapse; font-size: 14px; }
.ops-tablet-console .ops-data-table th { color: #646c70; background: #eef1eb; font-size: 12px; font-weight: 500; padding: 14px 10px; white-space: nowrap; text-align: left; }
.ops-tablet-console .ops-data-table td { padding: 14px 10px; font-weight: 400; vertical-align: middle; border-bottom: 1px solid #e5e9e1; }
.ops-tablet-console .ops-history-table td { padding-top: 8px; padding-bottom: 8px; }
.ops-tablet-console .ops-data-table tbody tr:nth-child(even) { background: #f0f3ec; }
.ops-tablet-console .ops-data-table [data-history-row] { cursor: pointer; }
.ops-tablet-console .ops-data-table [data-history-row]:hover { background: #fff4d6; }
.ops-tablet-console .ops-data-table td:nth-child(6), .ops-tablet-console .ops-data-table th:nth-child(6) { text-align: right; white-space: nowrap; }
.ops-tablet-console .ops-data-table td:first-child { max-width: 110px; overflow-wrap: anywhere; }
.ops-tablet-console .ops-data-table small { display: block; color: #8a918a; font-size: 11px; margin-top: 5px; line-height: 1.4; }
.ops-tablet-console .ops-data-table .ops-row-detail { color: #7c877e; border: 0; background: transparent; min-width: 44px; min-height: 44px; font-size: 28px; padding: 0; }
.ops-money { color: #42534c; font-weight: 500; font-variant-numeric: tabular-nums; }
.ops-history-empty { text-align: center; height: 220px; color: #7d857b; }
.ops-pagination { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; font-size: 13px; }
.ops-pagination > span { margin-right: auto; color: #7a837a; }
.ops-pagination label { display: flex; align-items: center; gap: 8px; margin-right: 6px; }
.ops-pagination select { border: 1px solid #d5ddd1; border-radius: 6px; padding: 10px; background: white; min-height: 42px; }
.ops-pagination button { border: 1px solid #d5ddd1; background: white; border-radius: 7px; min-width: 42px; min-height: 42px; font-size: 20px; }
.ops-pagination button:disabled { opacity: .35; cursor: default; }
.ops-pagination strong { background: #46534b; color: white; padding: 12px 18px; border-radius: 24px; font-size: 12px; font-weight: 500; }
@media (min-width: 681px) {
  .ops-tablet-console .ops-module.ops-history-module { height: calc(100vh - 160px); height: calc(100dvh - 160px); min-height: 500px; grid-template-rows: auto auto auto minmax(0,1fr) auto; }
  .ops-history-module .ops-history-table { overflow: auto; }
  .ops-history-table thead { position: sticky; top: 0; z-index: 1; }
}
@media (max-width: 1200px) {
  body.operations-workspace .workspace { padding: calc(12px + var(--app-safe-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px)); }
  .ops-tablet-console .ops-layout { grid-template-columns: 218px minmax(0,1fr); gap: 16px; }
  .ops-tablet-console .ops-menu-grid { gap: 8px; }
  .ops-tablet-console .ops-menu-grid button { min-height: 80px; padding: 9px 4px; gap: 6px; }
  .ops-tablet-console .ops-menu-grid button strong { font-size: 14px; }
  .ops-tablet-console .ops-menu-grid svg { width: 28px; height: 28px; }
  .ops-tablet-console .ops-module { min-height: 650px; }
  .ops-welcome { min-height: 552px; }
  .ops-content-tabs button { padding: 12px 14px; }
  .ops-tablet-console .ops-data-table { min-width: 650px; font-size: 13px; }
}
@media (max-width: 850px) and (min-width: 681px) {
  .ops-tablet-console .ops-layout { grid-template-columns: 180px minmax(0,1fr); gap: 12px; }
  .ops-tablet-console .ops-menu-grid button { min-height: 80px; }
  .ops-tablet-console .ops-menu-grid button strong { font-size: 12px; }
  .ops-tablet-console .ops-module > :not(.ops-content-tabs):not(.ops-account-panel) { margin-left: 12px; margin-right: 12px; }
  .ops-header-title { display: none; }
  .ops-tablet-console .ops-header-meta { font-size: 11px; gap: 8px; }
}
@media (max-width: 680px) {
  .ops-tablet-console .ops-module.ops-kitchen-module { height:auto; min-height:400px; }
  .ops-kitchen-module [data-kitchen-tools] { max-height:none; }
  .ops-kitchen-module [data-kitchen-list] { flex:auto; max-height:65vh; }
  body.operations-workspace .workspace { padding: calc(10px + var(--app-safe-top,0px)) max(10px,env(safe-area-inset-right,0px)) max(10px,env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px)); }
  .ops-tablet-console .ops-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .ops-navigation { position: static; max-height: 240px; }
  .ops-tablet-console .ops-menu-grid { position: static; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
  .ops-tablet-console .ops-menu-grid button { min-height: 82px; padding: 8px 2px; gap: 6px; border-radius: 10px; }
  .ops-tablet-console .ops-menu-grid svg { width: 27px; height: 27px; }
  .ops-tablet-console .ops-menu-grid button strong { font-size: 12px; }
  .ops-tablet-console .ops-header { gap: 8px; padding-bottom: 12px; }
  .ops-header-title { display: none; }
  .ops-tablet-console .ops-header-meta { justify-content: space-between; width: 100%; font-size: 12px; }
  .ops-tablet-console .ops-module { min-height: 400px; }
  .ops-tablet-console .ops-module > :not(.ops-content-tabs):not(.ops-account-panel) { margin-left: 10px; margin-right: 10px; }
  .ops-welcome { min-height: 380px; }
  .ops-account-panel { padding: 20px; }
  .ops-account-form { width: 100%; }
  .ops-history-filters label { flex: 1 1 125px; }
  .ops-history-filters input[type=date] { width: 100%; }
  .ops-content-tabs button { padding: 12px; font-size: 13px; }
  .ops-pagination label { margin-right: 0; }
  .ops-pagination { gap: 5px; }
  .ops-pagination > span { flex-basis: 100%; }
  .ops-pagination label { margin-right: auto; font-size: 12px; }
  .ops-pagination button { min-width: 34px; }
  .ops-pagination strong { padding: 12px; }
}
