#kitchenPrintModal .kitchen-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#kitchenTab_routing { color: #27343c; background: #edf1f3; }
.routing-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 6px 8px; border-bottom: 1px solid #cdd6da; background: #fff; }
.routing-toolbar label { display: grid; gap: 2px; font-size: 11px; font-weight: 600; }
.routing-toolbar select, .routing-toolbar input { height: 36px; min-width: 0; border: 1px solid #bac6cc; border-radius: 5px; padding: 0 8px; background: #fff; color: #27343c; font: inherit; font-size: 15px; }
.routing-search { flex: 1; min-width: 140px; }
.routing-menus { display: flex; align-items: center; gap: 3px; padding: 3px; border-radius: 6px; background: #dde5e9; }
.routing-menus button { min-height: 36px; min-width: 52px; padding: 0 9px; border: 0; border-radius: 4px; background: transparent; color: #304651; font-size: 13px; font-weight: 600; cursor: pointer; }
.routing-menus button[aria-pressed=true] { color: #fff; background: #176b73; }
.routing-menus button:disabled { cursor: wait; opacity: .7; }
#routingMenu[hidden] { display: none !important; }
.routing-tablet-badge { background: #fff; color: #18586b; border-radius: 3px; padding: 0 2px; font-size: 9px; font-weight: 600; }
.routing-reminder-legacy { display: block; color: #65747d; font-size: 11px; line-height: 1.4; margin-top: 5px; }
.routing-reminder-target { width: 100%; min-width: 0; min-height: 40px; padding: 6px; border: 1px solid #bac6cc; border-radius: 5px; background: #fff; color: #27343c; font-size: 16px; }
.routing-checked { align-self: center; color: #65747d; font-size: 11px; white-space: nowrap; }
#routingRefresh { width: 36px; height: 36px; background: #e9eff1; border: 1px solid #bac6cc; color: #27343c; border-radius: 5px; font-size: 23px; cursor: pointer; }
.routing-notice { padding: 9px 12px; background: #fff2cf; color: #765000; font-size: 13px; }
.routing-notice[hidden] { display: none; }
.routing-board { display: flex; align-items: stretch; gap: 6px; flex: 1; min-height: 0; overflow: auto; padding: 6px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.routing-column { box-sizing: border-box; flex: 0 0 144px; width: 144px; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid #cbd5da; padding-right: 6px; }
.routing-printer { box-sizing: border-box; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 28px 11px 11px; gap: 1px; width: 100%; min-height: 66px; height: 66px; text-align: left; border: 1px solid #71808a; border-radius: 6px; padding: 5px 6px; background: #d2d9de; color: #26343e; cursor: pointer; }
.routing-printer strong { min-width: 0; padding-right: 12px; font-size: 12px; font-weight: 650; line-height: 14px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.routing-printer .routing-gear { position: absolute; top: 4px; right: 4px; font-size: 14px; line-height: 16px; }
.routing-printer small { min-width: 0; font-size: 10px; line-height: 11px; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.routing-printer.online { background: #217645; border-color: #185b34; color: #fff; }
.routing-printer.offline { background: #b63740; border-color: #942730; color: #fff; }
.routing-printer { grid-template-rows: 28px 11px 18px; height: 74px; min-height: 74px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.routing-printer .routing-redirect { box-sizing: border-box; background: #1455c0; border: 1px solid #82b6ff; color: #fff; border-radius: 4px; line-height: 16px; padding: 0 3px; font-weight: 600; width: 100%; }
.routing-toolbar-action { min-height: 36px; padding: 0 10px; background: #e9eff1; border: 1px solid #bac6cc; border-radius: 5px; color: #27343c; font-size: 12px; cursor: pointer; }
.routing-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #d7dfe4; }
.routing-copy-row strong { min-width: 0; font-size: 13px; overflow-wrap: anywhere; font-weight: 600; }
.routing-copy-row > label:not(.routing-switch) { display: grid; min-width: 0; gap: 3px; font-size: 11px; }
.routing-copy-target { width: 100%; min-width: 0; min-height: 40px; padding: 6px; border: 1px solid #bac6cc; border-radius: 5px; background: #fff; color: #27343c; font-size: 16px; }
.routing-order-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px 42px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #d7dfe4; }
.routing-order-row strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.routing-order-row button { height: 40px; border: 1px solid #bac6cc; border-radius: 5px; background: #e9eff1; color: #27343c; font-size: 22px; }
.routing-column-body { flex: 1; min-height: 100px; overflow-y: auto; overscroll-behavior: contain; padding: 0 1px 8px; }
.routing-type { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) 9px; align-items: center; gap: 1px 2px; width: 100%; padding: 5px 6px; min-height: 44px; margin-bottom: 4px; text-align: left; background: #fff; border: 1px solid #bac8cf; border-radius: 5px; color: #233e4b; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.routing-type strong { min-width: 0; font-size: 12px; font-weight: 600; line-height: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.routing-type small { min-width: 0; grid-column: 1 / -1; font-size: 10px; color: #657680; line-height: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.routing-type .routing-drag-mark { color: #788e9a; font-size: 15px; line-height: 15px; }
.routing-section-label { font-size: 10px; font-weight: 650; color: #5b6f7b; margin: 7px 0 4px; }
.routing-exception { box-sizing: border-box; display: block; width: 100%; min-height: 36px; text-align: left; padding: 4px 6px; margin-bottom: 3px; border: 1px solid #d5ccbb; border-left: 2px solid #ac823c; border-radius: 5px; background: #faf7ef; color: #5d4d30; cursor: pointer; }
.routing-exception strong { display: block; font-size: 11px; line-height: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.routing-exception small { display: block; margin-top: 1px; font-size: 10px; line-height: 12px; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.routing-empty { padding: 8px 4px; color: #657680; font-size: 11px; }
.routing-drop-target { outline: 3px solid #237eac; outline-offset: -3px; background: #dfedf4; }
.routing-drag-ghost { position: fixed; top: 0; left: 0; z-index: 7000; pointer-events: none; opacity: .94; box-shadow: 0 12px 28px #0004; }
.routing-dialog-overlay { position: fixed; inset: 0; z-index: 6500; background: #172b3dcc; display: flex; justify-content: center; align-items: center; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); box-sizing: border-box; }
.routing-dialog { width: 760px; max-width: 100%; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; background: #fff; color: #27343c; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 65px #0005; }
.routing-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid #d4dce1; background: #f0f4f5; }
.routing-dialog h3 { font-size: 19px; font-weight: 650; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.routing-dialog-close { width: 42px; height: 42px; flex-shrink: 0; border: 1px solid #c1ced3; background: #fff; color: #27343c; font-size: 26px; border-radius: 6px; cursor: pointer; }
.routing-dialog-content { padding: 18px; overflow: auto; min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.routing-dialog footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 12px 18px; background: #f0f4f5; border-top: 1px solid #d4dce1; }
.routing-dialog button { cursor: pointer; }
.routing-dialog footer button { min-height: 44px; padding: 9px 18px; border-radius: 6px; font-weight: 600; font-size: 14px; border: 1px solid #becbd1; background: #fff; color: #294450; }
.routing-dialog footer .routing-save { background: #0f766e; color: #fff; border-color: #0f766e; }
.routing-dialog button:disabled { opacity: .5; cursor: not-allowed; }
.routing-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.routing-fields label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.routing-fields .routing-wide { grid-column: 1 / -1; }
.routing-fields input:not([type=checkbox]), .routing-fields select, .routing-product-filter { width: 100%; box-sizing: border-box; min-height: 44px; padding: 9px; font-size: 16px; background: #fff; color: #27343c; border: 1px solid #bac8cf; border-radius: 6px; }
.routing-switch { display: flex !important; align-items: center; gap: 10px !important; min-height: 44px; }
.routing-switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 12px; background: #9babb3; position: relative; flex-shrink: 0; margin: 0; }
.routing-switch input::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; left: 3px; top: 3px; }
.routing-switch input:checked { background: #15806c; }
.routing-switch input:checked::after { transform: translateX(18px); }
.routing-dialog-note { padding: 12px; background: #edf5f8; border-left: 3px solid #47819e; font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.routing-dialog-error { color: #ac2637; font-size: 14px; margin-top: 12px; }
.routing-product-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid #e2e8eb; padding: 12px 0; font-size: 14px; }
.routing-product-row strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.routing-product-row small { display: block; color: #697b85; margin-top: 5px; }
.routing-product-row button { max-width: 230px; border: 1px solid #bac8cf; border-radius: 6px; background: #eff4f6; color: #294450; padding: 10px; font-size: 12px; }
@media(max-width: 600px) {
    .routing-toolbar { gap: 6px; padding: 6px; }
    .routing-checked { display: none; }
    .routing-copy-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .routing-fields { grid-template-columns: minmax(0, 1fr); }
    .routing-dialog-content { padding: 12px; }
    .routing-dialog header { padding: 10px 12px; }
    .routing-product-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .routing-product-row button { max-width: none; text-align: left; }
}
