/* LM MARKIROVKA tablet-first UI v2.1 — scoped to this module only. */
#lm-marking-panel{--mk-bg:#161514;--mk-card:#292624;--mk-border:#65574f;--mk-muted:#b7b0a9;--mk-peach:#ffab88;--mk-ink:#fff5ec;--mk-accent:#ff906c;color:var(--mk-ink);margin:0 auto 48px;max-width:1440px;width:100%;font-family:inherit}
#lm-marking-panel,#lm-marking-panel *{box-sizing:border-box}
#lm-marking-panel.hide,#lm-marking-panel [hidden]{display:none!important}
#lm-marking-panel button{font:inherit;cursor:pointer;min-height:44px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#lm-marking-panel button:disabled{cursor:not-allowed;opacity:.47}
#lm-marking-panel .mk-topbar{display:flex;align-items:center;gap:12px;padding:12px 0 17px;flex-wrap:wrap}
#lm-marking-panel .mk-topbar-title{margin-right:auto;display:flex;flex-direction:column;gap:3px}
#lm-marking-panel .mk-eyebrow{letter-spacing:.09em;color:var(--mk-peach);font-size:11px;font-weight:800}
#lm-marking-panel .mk-topbar-hint{font-size:15px;color:var(--mk-muted)}
#lm-marking-panel .mk-branch-field{min-width:135px;width:160px;font-size:10px;letter-spacing:.06em;text-transform:uppercase;font-weight:750;color:var(--mk-muted)}
#lm-marking-panel .mk-branch-field select{width:100%;padding:11px 12px;margin-top:3px;min-height:47px;border-radius:15px;background:#303430;color:var(--mk-ink);font-size:16px;font-weight:800;border:1px solid #64665d}
#lm-marking-panel .mk-top-action{padding:10px 16px;border-radius:14px;border:1px solid #5a514a;color:#f4ede8;background:#2b2927;white-space:nowrap;font-weight:700}
#lm-marking-panel .mk-status{background:#2d392f;color:#d8f1d4;border:1px solid #455546;border-radius:13px;padding:11px 14px;margin-bottom:12px;font-size:13px;line-height:1.4}
#lm-marking-panel .mk-status.mk-error{color:#ffd1c8;background:#462b29;border-color:#864a43}
#lm-marking-panel .mk-tabs{display:none;gap:8px;flex-wrap:wrap;margin:0 0 17px}
#lm-marking-panel.mk-secondary-page .mk-tabs{display:flex}
#lm-marking-panel .mk-tab{padding:11px 16px;background:#2c2927;border:1px solid #5d5049;color:#f2eae5;border-radius:15px;font-weight:750}
#lm-marking-panel .mk-tab.mk-active{background:#f7ac8a;color:#322119;border-color:#f7ac8a}
#lm-marking-panel .mk-work-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);gap:17px;align-items:start}
#lm-marking-panel .mk-products-side{min-width:0}
#lm-marking-panel .mk-searchbox{display:flex;align-items:center;min-height:65px;border-radius:19px;background:#292e29;border:1px solid #65685f;color:#fff5ed;gap:12px;padding:0 18px}
#lm-marking-panel .mk-searchbox span{font-size:30px;font-weight:400;line-height:1;color:#f1ece7}
#lm-marking-panel .mk-searchbox input{width:100%;background:none;border:0;outline:0;color:#fff;font-size:18px;font-weight:500;min-height:60px;padding:0}
#lm-marking-panel .mk-searchbox input::placeholder{color:#b7b9b0}
#lm-marking-panel .mk-categories{display:flex;gap:9px;overflow-x:auto;scrollbar-width:thin;padding:17px 0 11px}
#lm-marking-panel .mk-filter{flex:0 0 auto;background:#272321;color:#f5eee8;border:1px solid #695b53;border-radius:17px;padding:13px 16px;font-weight:650}
#lm-marking-panel .mk-filter.mk-filter-active{background:#ffb08f;color:#35221c;border-color:#ffb08f;font-weight:900}
#lm-marking-panel .mk-section-caption{padding:8px 0 11px;color:#b7a7a0;font-size:13px;font-weight:700}
#lm-marking-panel .mk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:11px}
#lm-marking-panel .mk-recipe-card{min-width:0;min-height:190px;position:relative;background:linear-gradient(150deg,#302d2b,#252323);border:1px solid #69615b;border-radius:23px;overflow:hidden}
#lm-marking-panel .mk-recipe-card.selected{border:2px solid #ffad83;background:linear-gradient(155deg,#52382e,#302824);box-shadow:0 0 0 2px #ffac8240}
#lm-marking-panel .mk-recipe{border:0;background:transparent;color:#fff6ef;width:100%;height:100%;min-height:190px;padding:8px 9px 16px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center}
#lm-marking-panel .mk-recipe strong{font-size:clamp(16px,1.55vw,23px);line-height:1.15;max-width:100%;overflow-wrap:anywhere;text-wrap:balance}
#lm-marking-panel .mk-recipe-art{height:130px;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
#lm-marking-panel .mk-food-image{display:block;max-width:100%;width:100%;height:100%;object-fit:contain;mix-blend-mode:screen}
#lm-marking-panel .mk-food-emoji{font-size:70px;line-height:1}
#lm-marking-panel .mk-pin{position:absolute;top:8px;right:8px;border:0;border-radius:50%;min-height:36px!important;width:36px;height:36px;background:#3d3938cc;color:#fff6ef;font-size:23px;z-index:1;padding:0}
#lm-marking-panel .mk-pin.pinned{background:#ffaf8f;color:#3c241e}
#lm-marking-panel .mk-selected-check{position:absolute;top:10px;left:10px;background:#ffb087;color:#36251e;font-size:17px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:900}
#lm-marking-panel .mk-empty{grid-column:1/-1;background:#282724;border-radius:20px;padding:28px;text-align:center;color:#dfd3c9;font-size:15px;border:1px dashed #76635a}
#lm-marking-panel .mk-card{background:linear-gradient(145deg,#352c29,#201e1d);border:1px solid #855d50;border-radius:26px;padding:20px;color:var(--mk-ink)}
#lm-marking-panel .mk-choice{position:sticky;top:12px;min-width:0}
#lm-marking-panel .mk-selected-head{display:flex;gap:9px;min-height:122px;align-items:center;padding:3px 0 16px;border-bottom:1px solid #64534b}
#lm-marking-panel .mk-selected-art{width:41%;min-width:90px;height:121px;display:grid;place-items:center}
#lm-marking-panel .mk-product-art-inner{width:100%;height:100%;display:grid;place-items:center}
#lm-marking-panel .mk-product-art-inner .mk-food-image{max-width:190px}
#lm-marking-panel .mk-selected-titles{display:flex;flex-direction:column;gap:9px;min-width:0;flex:1}
#lm-marking-panel #mk-selected-title{font-size:clamp(23px,2.2vw,34px);line-height:1.12;overflow-wrap:anywhere}
#lm-marking-panel .mk-details{margin:4px 0 14px}
#lm-marking-panel .mk-info-line{display:flex;gap:13px;align-items:center;min-height:53px;border-bottom:1px solid #5c504a;font-size:17px;line-height:1.25}
#lm-marking-panel .mk-info-line>span:first-child{font-size:24px;color:#f6af8c;flex:0 0 30px;text-align:center}
#lm-marking-panel .mk-count-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:15px;margin:18px 0}
#lm-marking-panel .mk-counter{display:flex;align-items:center;background:#302d2b;border:1px solid #76665f;border-radius:14px;overflow:hidden;min-width:132px}
#lm-marking-panel .mk-counter button{font-size:25px;border:0;background:#403b38;color:#fff7f1;min-width:43px;min-height:48px;padding:0}
#lm-marking-panel .mk-counter input{background:transparent!important;color:#fff!important;border:0!important;text-align:center!important;padding:0!important;min-height:44px!important;width:50px!important;min-width:0!important;font-size:20px!important;font-weight:800!important;margin:0!important;-moz-appearance:textfield;appearance:textfield}
#lm-marking-panel .mk-counter input::-webkit-inner-spin-button,#lm-marking-panel .mk-counter input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#lm-marking-panel .mk-advanced{border:1px solid #574d47;border-radius:13px;padding:9px 12px;margin:10px 0 16px;background:#292725;color:#cfc4bd;font-size:12px}
#lm-marking-panel .mk-advanced summary{cursor:pointer;min-height:24px}
#lm-marking-panel .mk-advanced-body{padding-top:10px}
#lm-marking-panel .mk-primary{border:0;border-radius:15px;background:linear-gradient(100deg,#ffb596,#ff8665);color:#33211b;padding:14px 18px;font-weight:900}
#lm-marking-panel .mk-print-action{min-height:72px;width:100%;font-size:clamp(17px,1.7vw,25px)}
#lm-marking-panel .mk-secondary{border:1px solid #5d5b54;border-radius:13px;background:#30352f;color:#fff4ed;padding:12px 16px;font-weight:700}
#lm-marking-panel .mk-help{color:#bdb4ad;font-size:12px;line-height:1.4;margin-top:12px}
#lm-marking-panel .mk-print-done{padding:14px 0 0;border-top:1px solid #5d504a;margin-top:15px}
#lm-marking-panel .mk-print-done .mk-secondary{width:100%}
#lm-marking-panel .mk-text-button{background:transparent;color:#ffd1b9;border:0;padding:9px 12px}
#lm-marking-panel .mk-small-hint{font-size:11px;color:#cbbeb4;line-height:1.4;margin-top:8px}
#lm-marking-panel .mk-print-preview{background:#f0eeea;border-radius:15px;padding:12px;display:flex;justify-content:center;margin:13px 0}
#lm-marking-panel .mk-view[hidden]{display:none!important}
#lm-marking-panel .mk-manage-card{max-width:940px;margin:10px auto}
#lm-marking-panel .mk-manage-card h3{font-size:24px;margin:5px 0 14px}
#lm-marking-panel .mk-muted{color:#c2b8b1;font-size:14px}
#lm-marking-panel .mk-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0}
#lm-marking-panel .mk-row>*{min-width:0}
#lm-marking-panel .mk-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:10px}
#lm-marking-panel .mk-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:10px}
#lm-marking-panel label{font-weight:700;font-size:13px;color:#e9dcd2}
#lm-marking-panel .mk-manage-card input,#lm-marking-panel .mk-manage-card select,#lm-marking-panel .mk-advanced input{display:block;width:100%;min-height:46px;margin-top:6px;padding:11px;background:#252523;border:1px solid #76645a;border-radius:11px;color:#fff6eb;font:inherit;font-size:16px}
#lm-marking-panel input[type=checkbox]{width:auto!important;min-height:auto!important;display:inline-block!important;margin:0 6px 0 0;transform:scale(1.2)}
#lm-marking-panel .mk-inline-check{display:flex;align-items:center;gap:7px;margin:12px 0}
#lm-marking-panel .mk-history-row{padding:13px 0;display:flex;align-items:center;gap:12px;justify-content:space-between;border-bottom:1px solid #55453f;flex-wrap:wrap}
#lm-marking-panel .mk-history-row strong{display:block;font-size:16px}
#lm-marking-panel .mk-history-row small{display:block;color:#c2b8b1;font-size:12px;margin-top:5px}
#lm-warehouse-view.warehouse-marking-active>.lm-biz-head,#lm-warehouse-view.warehouse-marking-active>.lm-biz-status,#lm-warehouse-view.warehouse-marking-active>.lm-biz-cards,#lm-warehouse-view.warehouse-marking-active>.lm-biz-next{display:none!important}
#lm-warehouse-view .mk-warehouse-switch{margin:0 0 5px!important;display:flex;justify-content:flex-end}
#lm-warehouse-view .mk-warehouse-switch button{min-height:36px;padding:8px 12px;font-size:12px;border-radius:12px}
#lm-warehouse-view .mk-warehouse-switch [hidden]{display:none!important}
body.mk-screen-active #v112-city-wrap{display:none!important}
body.mk-screen-active.lead-app .wrap{max-width:1450px}
@media (min-width:950px){body.mk-screen-active.lead-app .wrap{max-width:calc(100% - 290px);padding-left:26px;padding-right:26px}#lm-marking-panel .mk-work-layout{grid-template-columns:minmax(0,1.65fr) minmax(285px,1fr)}}
@media (min-width:1450px){#lm-marking-panel .mk-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:970px){#lm-marking-panel .mk-work-layout{grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:12px}#lm-marking-panel .mk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#lm-marking-panel .mk-topbar-hint{font-size:13px}}
@media (max-width:700px){#lm-marking-panel .mk-work-layout{grid-template-columns:1fr}#lm-marking-panel .mk-choice{position:static}#lm-marking-panel .mk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#lm-marking-panel .mk-recipe-card,#lm-marking-panel .mk-recipe{min-height:173px}#lm-marking-panel .mk-recipe-art{height:111px}#lm-marking-panel .mk-two,#lm-marking-panel .mk-three{grid-template-columns:1fr}#lm-marking-panel .mk-topbar{gap:8px}#lm-marking-panel .mk-topbar-title{flex:1 1 100%}#lm-marking-panel .mk-branch-field{flex:1}#lm-marking-panel .mk-top-action{font-size:13px;padding:9px 12px}#lm-marking-panel .mk-card{padding:17px}#lm-marking-panel .mk-advanced{display:block}#lm-marking-panel .mk-info-line{font-size:16px}}
@media (max-width:385px){#lm-marking-panel .mk-recipe strong{font-size:16px}#lm-marking-panel .mk-filter{padding:11px 13px}#lm-marking-panel .mk-recipe-card,#lm-marking-panel .mk-recipe{min-height:155px}#lm-marking-panel .mk-recipe-art{height:92px}}
#lm-marking-print-sheet{display:none}
.mk-label{width:58mm;height:40mm;color:#111;background:white;font-family:Arial,sans-serif;padding:2.5mm;display:flex;flex-direction:column;gap:1mm;overflow:hidden;border:1px solid #eee}
.mk-label .mk-logo{font-size:10px;letter-spacing:1px;font-weight:900}
.mk-label .mk-product{font-size:14px;font-weight:900;line-height:1.13;overflow-wrap:anywhere}
.mk-label .mk-time{font-size:10px;font-weight:650}
.mk-label .mk-exp{font-size:11px;font-weight:900}
.mk-label .mk-place{border-top:1px solid #111;padding-top:1mm;font-size:11px;font-weight:900;line-height:1.14}
.mk-label .mk-employee{margin-top:auto;font-size:8px}
@page{size:58mm 40mm;margin:0}
@media print{html,body{height:auto!important;overflow:visible!important;background:white!important;padding:0!important;margin:0!important}body *{visibility:hidden!important}#lm-marking-print-sheet,#lm-marking-print-sheet *{visibility:visible!important}#lm-marking-print-sheet{display:block!important;position:absolute!important;left:0!important;top:0!important;width:58mm!important;margin:0!important;padding:0!important}#lm-marking-print-sheet .mk-label{width:58mm!important;height:40mm!important;border:0!important;margin:0!important;page-break-after:always;break-after:page}#lm-marking-print-sheet .mk-label:last-child{page-break-after:auto;break-after:auto}}
#lm-marking-panel .mk-template-card{border-style:dashed;border-color:#5c554f;opacity:.8}
#lm-marking-panel .mk-template-card .mk-recipe{min-height:190px}
#lm-marking-panel .mk-not-configured{display:block;font-size:12px;color:#f4aa87;font-weight:700;margin-top:4px}
@media(max-width:700px){#lm-marking-panel .mk-template-card .mk-recipe{min-height:173px}}

/* B1 50 × 30: only tablet marking screen, no global CSS edits. */
#lm-marking-panel .mk-printer-controls{margin:12px 0 14px;padding:13px;border:1px solid #65584f;background:#252624;border-radius:16px}
#lm-marking-panel .mk-printer-mode-label{display:block;color:#dcc9bd;font-size:12px;font-weight:700}
#lm-marking-panel #mk-printer-mode{display:block;width:100%;min-height:47px;margin-top:7px;border:1px solid #6a625b;background:#343731;color:#fff7f0;border-radius:12px;padding:9px 11px;font-size:15px;white-space:normal}
#lm-marking-panel .mk-b1-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;margin-top:11px}
#lm-marking-panel .mk-b1-controls .mk-secondary{min-height:58px;padding:9px 7px;font-size:14px}
#lm-marking-panel .mk-b1-status{grid-column:1/-1;color:#b9ddb7;background:#2d372d;border-radius:11px;padding:9px 11px;font-size:13px}
#lm-marking-panel .mk-b1-status.mk-b1-error{background:#492f2c;color:#ffd0c8}
/* Employee tablet: remove the 640px mobile container, keep unrelated screens untouched. */
@media (min-width:700px){
 body.mk-screen-active:not(.lead-app) .wrap{width:100%!important;max-width:none!important;padding:14px 22px 110px!important;margin:0!important}
 body.mk-screen-active:not(.lead-app) #lm-marking-standalone{width:100%;max-width:none;min-width:0}
 body.mk-screen-active:not(.lead-app) #lm-marking-panel{max-width:none!important;width:100%!important}
 body.mk-screen-active:not(.lead-app) #app-bottom-nav{min-height:61px}
}
@media (min-width:980px){
 body.mk-screen-active:not(.lead-app) #lm-marking-panel .mk-work-layout{grid-template-columns:minmax(0,1.75fr) minmax(305px,1fr)}
 body.mk-screen-active:not(.lead-app) #lm-marking-panel .mk-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:540px){#lm-marking-panel .mk-b1-controls{grid-template-columns:1fr}}

#lm-marking-panel .mk-b1-controls{grid-template-columns:1fr}
#lm-marking-panel #mk-b1-connect{width:100%;min-height:55px}
@media (min-width:700px){body.mk-screen-active:not(.lead-app) #dashboard{width:100%!important;max-width:none!important;min-width:0}body.mk-screen-active:not(.lead-app) #lm-marking-panel .mk-work-layout{min-width:0}}

/* LM station mode v3: CSS limited to marking employee page. */
#lm-marking-panel .mk-topbar-heading{color:#fff5ef;font-size:clamp(23px,2.2vw,32px);font-weight:900;letter-spacing:-.035em;line-height:1.1}
#lm-marking-panel .mk-topbar-title{min-width:240px}
#lm-marking-panel .mk-station-exit,#lm-marking-panel .mk-station-fullscreen{display:none}
body.mk-screen-active:not(.lead-app) #lm-marking-panel .mk-station-exit,
body.mk-screen-active:not(.lead-app) #lm-marking-panel .mk-station-fullscreen{display:inline-flex!important;align-items:center;justify-content:center;gap:4px}

/* Remove global mobile 640px wrapper and navigation only while employee uses station. */
@media (min-width:700px) and (orientation:landscape){
 html:has(body.mk-station-active),body.mk-station-active{width:100%;max-width:none;min-width:0}
 body.mk-station-active{background:#141313!important;padding:0!important;margin:0!important;overflow-x:hidden!important}
 body.mk-station-active .wrap{margin:0!important;max-width:none!important;width:100%!important;min-width:0!important;padding:10px 18px 18px!important}
 body.mk-station-active #dashboard{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important}
 body.mk-station-active #lm-marking-standalone{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important}
 body.mk-station-active #lm-marking-panel{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important}
 body.mk-station-active .brand,body.mk-station-active .foot,body.mk-station-active #lead-compact-header{display:none!important}
 body.mk-station-active #app-bottom-nav{display:none!important}
 body.mk-station-active #lm-marking-panel .mk-topbar{padding:5px 1px 10px;gap:11px;flex-wrap:nowrap}
 body.mk-station-active #lm-marking-panel .mk-branch-field{min-width:125px;max-width:185px;flex:0 0 150px}
 body.mk-station-active #lm-marking-panel .mk-work-layout{display:grid!important;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr)!important;gap:15px;align-items:start;width:100%}
 body.mk-station-active #lm-marking-panel .mk-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:11px}
 body.mk-station-active #lm-marking-panel .mk-recipe-card{min-height:0;aspect-ratio:1 / 1;border-radius:19px}
 body.mk-station-active #lm-marking-panel .mk-recipe{min-height:0;height:100%;padding:9px 10px 13px;gap:4px}
 body.mk-station-active #lm-marking-panel .mk-recipe-art{height:auto;min-height:0;flex:1;max-height:calc(100% - 46px);width:100%}
 body.mk-station-active #lm-marking-panel .mk-recipe strong{font-size:clamp(14px,1.48vw,20px)!important;line-height:1.15;overflow-wrap:normal!important;word-break:normal!important;hyphens:none;max-width:100%}
 body.mk-station-active #lm-marking-panel .mk-template-card .mk-recipe{min-height:0}
 body.mk-station-active #lm-marking-panel .mk-choice{position:sticky;top:8px;max-height:calc(100dvh - 83px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
 body.mk-station-active #lm-marking-panel .mk-info-line{min-height:41px;font-size:15px}
 body.mk-station-active #lm-marking-panel .mk-selected-head{min-height:86px;padding-bottom:9px}
 body.mk-station-active #lm-marking-panel .mk-selected-art{height:82px;min-width:90px}
 body.mk-station-active #lm-marking-panel #mk-selected-title{font-size:clamp(20px,2vw,28px)}
 body.mk-station-active #lm-marking-panel .mk-help{font-size:11px}
 body.mk-station-active #lm-marking-panel .mk-printer-controls{margin:10px 0;padding:9px}
 body.mk-station-active #lm-marking-panel .mk-count-row{margin:11px 0}
 body.mk-station-active #lm-marking-panel .mk-advanced{margin:6px 0 10px}
 body.mk-station-active #lm-marking-panel .mk-print-action{min-height:60px}
 body.mk-station-active #lm-marking-panel .mk-card{padding:17px}
 body.mk-station-active #lm-marking-panel .mk-searchbox{min-height:54px}
 body.mk-station-active #lm-marking-panel .mk-searchbox input{min-height:53px}
 body.mk-station-active #lm-marking-panel .mk-categories{padding:11px 0 8px}
 body.mk-station-active #lm-marking-panel .mk-filter{padding:10px 15px;min-height:45px}
 body.mk-station-active #lm-marking-panel .mk-section-caption{padding:4px 0 8px}
}
/* Small landscape tablets get 3 columns. Right details remain visible. */
@media (min-width:700px) and (max-width:1120px) and (orientation:landscape){
 body.mk-station-active #lm-marking-panel .mk-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.mk-station-active #lm-marking-panel .mk-work-layout{grid-template-columns:minmax(0,1.55fr) minmax(275px,1fr)!important}
 body.mk-station-active #lm-marking-panel .mk-topbar-hint{font-size:12px}
 body.mk-station-active #lm-marking-panel .mk-top-action{padding:8px 10px;font-size:12px}
}
/* In portrait, preserve 2-column catalog and switch details below instead of cramming them. */
@media (max-width:699px), (orientation:portrait){
 body.mk-station-active #app-bottom-nav{display:none!important}
 body.mk-station-active{padding-bottom:0!important}
 body.mk-station-active .wrap{padding-bottom:14px!important}
 body.mk-station-active #lm-marking-panel .mk-work-layout{grid-template-columns:1fr!important}
 body.mk-station-active #lm-marking-panel .mk-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.mk-station-active #lm-marking-panel .mk-recipe-card{aspect-ratio:1/1;min-height:0}
 body.mk-station-active #lm-marking-panel .mk-recipe{min-height:0;height:100%}
 body.mk-station-active #lm-marking-panel .mk-recipe-art{height:auto;min-height:60px;flex:1}
 body.mk-station-active #lm-marking-panel .mk-recipe strong{overflow-wrap:normal!important;word-break:normal!important}
 body.mk-station-active #lm-marking-panel .mk-station-exit,
 body.mk-station-active #lm-marking-panel .mk-station-fullscreen{display:inline-flex!important}
}
@media (min-width:700px) and (max-width:800px) and (orientation:landscape){
 body.mk-station-active #lm-marking-panel .mk-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
/* Hide the previous warehouse screen behind the staff marking station. */
body.mk-station-active #lm-warehouse-view{display:none!important}


/* v4 · Compact horizontal station, single printer status, no label size on work screen. */
#lm-marking-panel .mk-topbar{padding:4px 0 9px;gap:8px}
#lm-marking-panel .mk-topbar-title{min-width:0;margin-right:auto;flex:1 1 auto}
#lm-marking-panel .mk-topbar-heading{font-size:clamp(20px,2vw,27px);line-height:1.1}
#lm-marking-panel .mk-branch-field{width:124px;min-width:102px;flex:0 0 124px}
#lm-marking-panel .mk-branch-field>span{display:none}
#lm-marking-panel .mk-branch-field select{margin-top:0;min-height:42px;padding:7px 10px;border-radius:12px;font-size:14px}
#lm-marking-panel .mk-top-action{min-height:42px;padding:7px 11px;border-radius:12px;font-size:13px}
/* The image and name are two separate rows: content can never overprint artwork. */
#lm-marking-panel .mk-selected-head{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-height:0;padding:0 0 10px}
#lm-marking-panel .mk-selected-art{flex:0 0 auto;width:100%;min-width:0;height:93px;overflow:hidden;display:flex;align-items:center;justify-content:center}
#lm-marking-panel .mk-product-art-inner{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
#lm-marking-panel .mk-product-art-inner .mk-food-image{width:100%;max-width:155px;max-height:100%;object-fit:contain}
#lm-marking-panel .mk-selected-titles{width:100%;min-width:0;flex:none;align-items:center;text-align:center;gap:3px}
#lm-marking-panel .mk-selected-titles .mk-eyebrow{font-size:9px;letter-spacing:.1em}
#lm-marking-panel #mk-selected-title{display:block;width:100%;font-size:clamp(19px,1.75vw,26px);line-height:1.15;overflow-wrap:break-word;word-break:normal;hyphens:none}
#lm-marking-panel .mk-details{margin:3px 0 9px}
#lm-marking-panel .mk-info-line{min-height:40px;font-size:15px}
#lm-marking-panel .mk-info-line>span:first-child{font-size:21px;flex-basis:27px}
#lm-marking-panel .mk-count-row{margin:10px 0;gap:8px}
/* Printer setup moved to the manager-only settings tab, not the everyday workflow. */
#lm-marking-panel .mk-b1-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0}
#lm-marking-panel #mk-b1-connect{width:auto;flex:1 1 auto;min-height:42px;padding:8px 12px;font-size:13px}
#lm-marking-panel .mk-b1-status{flex:0 1 auto;grid-column:auto;min-width:0;background:transparent;color:#cecbc1;padding:3px 2px;font-size:12px;white-space:nowrap}
#lm-marking-panel .mk-b1-status.mk-b1-ok{background:transparent;color:#a6e5a0}
#lm-marking-panel .mk-b1-status.mk-b1-error{background:transparent;color:#ffd0c8;white-space:normal}
#lm-marking-panel .mk-print-action{min-height:62px;font-size:clamp(18px,1.7vw,23px)}
#lm-marking-panel .mk-printer-settings .mk-printer-mode-label{display:block;margin-top:18px}
#lm-marking-panel .mk-printer-settings #mk-printer-mode{display:block;width:100%;margin-top:8px;min-height:52px;background:#343731;border:1px solid #6a625b;color:#fff7f0;border-radius:12px;font-size:16px;padding:12px}
@media (min-width:700px) and (orientation:landscape){
 body.mk-station-active #lm-marking-panel .mk-topbar{padding:2px 0 8px;gap:8px;flex-wrap:nowrap}
 body.mk-station-active #lm-marking-panel .mk-branch-field{min-width:100px;max-width:135px;flex:0 0 115px}
 body.mk-station-active #lm-marking-panel .mk-selected-head{min-height:0;padding:0 0 8px;gap:2px}
 body.mk-station-active #lm-marking-panel .mk-selected-art{height:80px;min-width:0}
 body.mk-station-active #lm-marking-panel #mk-selected-title{font-size:clamp(19px,1.65vw,25px)}
 body.mk-station-active #lm-marking-panel .mk-info-line{min-height:36px;font-size:14px}
 body.mk-station-active #lm-marking-panel .mk-count-row{margin:8px 0}
 body.mk-station-active #lm-marking-panel .mk-card{padding:13px}
 body.mk-station-active #lm-marking-panel .mk-advanced{margin:6px 0}
 body.mk-station-active #lm-marking-panel .mk-help{font-size:10px;margin-top:7px}
 body.mk-station-active #lm-marking-panel .mk-print-action{min-height:58px}
}
@media(min-width:700px) and (max-width:900px) and (orientation:landscape){
 body.mk-station-active #lm-marking-panel .mk-topbar-heading{font-size:18px}
 body.mk-station-active #lm-marking-panel .mk-top-action{font-size:11px;padding:6px 7px}
 body.mk-station-active #lm-marking-panel .mk-branch-field{flex-basis:100px}
}

/* v5 — enlarged right workstation panel and readable touch typography.
   Visual-only changes. No print-label dimensions, Bluetooth transport or API changes. */
@media (min-width:700px) and (orientation:landscape){
  /* Right panel ~40% of usable width; maintain a useful ingredient grid. */
  body.mk-station-active #lm-marking-panel .mk-work-layout{
    grid-template-columns:minmax(0,1.22fr) minmax(380px,1fr)!important;
    gap:14px!important;
  }
  body.mk-station-active #lm-marking-panel .mk-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:12px;
  }
  body.mk-station-active #lm-marking-panel .mk-topbar-heading{
    font-size:clamp(23px,2.2vw,29px);
  }
  body.mk-station-active #lm-marking-panel .mk-searchbox input{
    font-size:19px;
  }
  body.mk-station-active #lm-marking-panel .mk-filter{
    font-size:15px;
    font-weight:750;
  }
  body.mk-station-active #lm-marking-panel .mk-section-caption{
    font-size:14px;
  }
  body.mk-station-active #lm-marking-panel .mk-recipe strong{
    font-size:clamp(16px,1.45vw,20px)!important;
    line-height:1.14;
    overflow-wrap:break-word!important;
  }
  body.mk-station-active #lm-marking-panel .mk-not-configured{
    font-size:13px;
  }
  body.mk-station-active #lm-marking-panel .mk-choice{
    max-height:calc(100dvh - 74px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  body.mk-station-active #lm-marking-panel .mk-card{
    padding:16px;
  }
  body.mk-station-active #lm-marking-panel .mk-selected-art{
    height:76px;
  }
  body.mk-station-active #lm-marking-panel .mk-selected-titles .mk-eyebrow{
    font-size:10px;
  }
  body.mk-station-active #lm-marking-panel #mk-selected-title{
    font-size:clamp(24px,2.2vw,30px);
    line-height:1.15;
  }
  body.mk-station-active #lm-marking-panel .mk-info-line{
    min-height:43px;
    font-size:19px;
    line-height:1.25;
  }
  body.mk-station-active #lm-marking-panel .mk-info-line>span:first-child{
    font-size:23px;
    flex-basis:30px;
  }
  body.mk-station-active #lm-marking-panel .mk-count-row{
    font-size:17px;
    font-weight:700;
    margin:9px 0;
  }
  body.mk-station-active #lm-marking-panel .mk-counter{
    min-width:146px;
  }
  body.mk-station-active #lm-marking-panel .mk-counter button{
    min-width:48px;
    min-height:48px;
    font-size:27px;
  }
  body.mk-station-active #lm-marking-panel .mk-counter input{
    font-size:23px!important;
  }
  body.mk-station-active #lm-marking-panel .mk-advanced{
    font-size:14px;
    margin:8px 0;
  }
  body.mk-station-active #lm-marking-panel #mk-b1-connect{
    font-size:15px;
    min-height:48px;
  }
  body.mk-station-active #lm-marking-panel .mk-b1-status{
    font-size:14px;
  }
  body.mk-station-active #lm-marking-panel .mk-print-action{
    min-height:64px;
    font-size:22px;
  }
  body.mk-station-active #lm-marking-panel .mk-help{
    font-size:12px;
    line-height:1.25;
  }
}
@media (min-width:1200px) and (orientation:landscape){
  body.mk-station-active #lm-marking-panel .mk-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  body.mk-station-active #lm-marking-panel .mk-recipe strong{
    font-size:clamp(17px,1.45vw,21px)!important;
  }
}
@media (min-width:700px) and (max-width:800px) and (orientation:landscape){
  body.mk-station-active #lm-marking-panel .mk-work-layout{
    grid-template-columns:minmax(0,1fr) minmax(330px,1fr)!important;
    gap:10px!important;
  }
  body.mk-station-active #lm-marking-panel .mk-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.mk-station-active #lm-marking-panel .mk-info-line{font-size:16px;min-height:38px}
  body.mk-station-active #lm-marking-panel #mk-selected-title{font-size:23px}
}
@media (min-width:700px) and (orientation:landscape) and (max-height:650px){
  body.mk-station-active #lm-marking-panel .mk-selected-art{height:61px}
  body.mk-station-active #lm-marking-panel .mk-selected-head{padding-bottom:6px}
  body.mk-station-active #lm-marking-panel .mk-details{margin:2px 0 7px}
  body.mk-station-active #lm-marking-panel .mk-info-line{min-height:38px}
  body.mk-station-active #lm-marking-panel .mk-advanced{padding:6px 10px}
  body.mk-station-active #lm-marking-panel .mk-b1-controls{margin:6px 0}
  body.mk-station-active #lm-marking-panel .mk-print-action{min-height:58px}
  body.mk-station-active #lm-marking-panel .mk-help{margin-top:5px}
}
