/* =========================================================
   Compact (phone) layout of the product screens — .scr--m
   Rendered at 440px and scaled to the container, so every
   screen is shown whole and readable, never cropped.
   ========================================================= */
.scr.scr--m{width:440px;font-size:13px;padding-bottom:18px}
.scr--m .scr-top{height:52px;padding:0 16px}
.scr--m .scr-menu{display:none}
.scr--m .scr-user{margin-left:auto;font-size:12px}
.scr--m .scr-logo img{height:34px}
.scr--m .scr-body{padding:18px 16px 0}
.scr--m .scr-h{flex-wrap:wrap;gap:8px;align-items:flex-start}
.scr--m .scr-h h4{font-size:22px}
.scr--m .scr-h .upd{font-size:11.5px}
.scr--m .scr-h > div[style]{flex-wrap:wrap}
.scr--m .scr-filter{flex-wrap:wrap;gap:10px;padding:12px}
.scr--m .scr-f span{width:120px}
.scr--m table{font-size:12.5px}
.scr--m th{padding:9px 8px;font-size:11.5px;white-space:normal}
.scr--m td{padding:9px 8px}
.scr--m .adv{gap:4px}
.scr--m .adv i{width:18px;height:14px}
.scr--m .scr-foot{gap:10px;margin-top:18px;padding-top:16px}
.scr--m .scr-btn.grey,.scr--m .scr-btn.green{height:40px;padding:0 18px;font-size:13px}

/* columns kept on phones */
.scr--m[data-s="planning"] :is(th,td):is(:nth-child(3),:nth-child(5),:nth-child(7),:nth-child(8)){display:none}
.scr--m[data-s="planning"] td:nth-child(4){white-space:normal;line-height:1.3}
.scr--m[data-s="wip"] :is(th,td):is(:nth-child(2),:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(7),:nth-child(10)){display:none}
.scr--m[data-s="completed"] :is(th,td):is(:nth-child(2),:nth-child(3),:nth-child(4),:nth-child(7)){display:none}
.scr--m[data-s="operator"] .op-next :is(th,td):nth-child(3){display:none}

/* report */
.scr--m .scr-kpis{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.scr--m .scr-kpi{padding:14px}
.scr--m .scr-kpi small{font-size:12px;display:block;padding-right:36px}
.scr--m .scr-kpi b{font-size:22px}
.scr--m .scr-kpi b span{font-size:16px}
.scr--m .scr-kpi em{font-size:12px}
.scr--m .scr-kpi .kic{width:28px;height:28px;top:12px;right:12px}
.scr--m .scr-grid{grid-template-columns:1fr!important;gap:10px;margin-bottom:10px}
.scr--m .scr-grid > div[style]{gap:10px!important}
.scr--m .scr-panel{padding:12px 14px}

/* operator station */
.scr--m .op-tabs span{padding:7px 12px;font-size:12px}
.scr--m .op-card{grid-template-columns:1fr;gap:18px;padding:16px}
.scr--m .op-batch{font-size:26px}
.scr--m .op-meta{flex-direction:column;gap:6px;margin-bottom:14px}
.scr--m .op-meta span:last-child{text-align:left}
.scr--m .op-steps i{width:34px}
.scr--m .op-phase{padding:16px}
.scr--m .op-phase h6{font-size:22px}
.scr--m .op-actions{grid-template-columns:1fr 1fr}
.scr--m .op-last{flex-wrap:wrap;gap:8px;font-size:13.5px}
.scr--m .op-text{height:70px}
.scr--m .op-next h6{font-size:18px;margin-top:18px}

/* gantt */
.scr--m .gt-head,.scr--m .gt-row{grid-template-columns:86px 1fr}
.scr--m .gt-head > div:first-child,.scr--m .gt-row > div:first-child{padding:10px 8px;font-size:11.5px}
.scr--m .gt-days span{padding:10px 2px;font-size:10px;text-align:center}
.scr--m .gt-lane{height:52px}
.scr--m .gt-bar{top:9px;height:34px;padding:3px 4px;font-size:9px}
.scr--m .gt-bar b{font-size:9.5px}
.scr--m .gt-legend{flex-wrap:wrap;gap:8px 14px;font-size:11.5px}

/* gallery on phones: never crop a screen */
@media (max-width:860px){
  .g-item--wide .shot{max-height:none}
  .g-item--wide .shot::after{display:none}
  .g-item .device--tablet{border-width:8px;border-radius:18px}
}
.lightbox.is-scroll .lb-stage{display:block}
.lightbox.is-scroll .lb-frame{margin:0 auto}
.lb-zoom[hidden]{display:none}
@media (max-width:760px){.lb-stage{padding:0}.lb-frame{border-radius:0}}
.scr--m .gt-bar{font-size:0;display:flex;align-items:center;justify-content:center}
.scr--m .gt-bar b{font-size:10px}
