/* Workshop phone refinements. Business forms and server permissions remain authoritative. */
body.workshop-mobile { -webkit-text-size-adjust:100%; }
body.workshop-mobile :is(a,button,input,select,textarea,summary):focus-visible { outline:3px solid #2e6fca; outline-offset:3px; }
.scan-quick-nav { display:flex; flex-wrap:wrap; gap:8px; padding:8px 16px; background:#fff; border-bottom:1px solid #dfe7f1; }
.scan-quick-nav a,.mobile-task-entry a { display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;color:#215bbb;text-decoration:none; }
.mobile-task-entry { display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px; }
.mobile-task-entry a { background:#eaf2ff;border:1px solid #cbdcf6;border-radius:8px;font-weight:650; }
@media screen and (max-width:768px) {
 body.workshop-mobile { font-size:16px; padding-bottom:env(safe-area-inset-bottom); }
 body.workshop-mobile *,body.workshop-mobile *::before,body.workshop-mobile *::after { box-sizing:border-box; }
 body.workshop-mobile :is(button,.btn,input[type=submit],input[type=button],summary) { min-height:44px; font-size:16px; }
 body.workshop-mobile :is(input,select,textarea) { font-size:16px!important; max-width:100%; }
 body.workshop-mobile :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select) { min-height:44px; }
 body.workshop-mobile input[type=file] { width:100%;min-width:0;line-height:1.5;padding:8px 0; }
 body.workshop-mobile input[type=file]::file-selector-button { min-height:44px;max-width:100%;font:inherit;border:1px solid #bfcee3;background:#f2f6fd;color:#214e86;border-radius:6px;padding:8px;margin-right:8px; }
 body.workshop-mobile :is(p,h1,h2,h3,td,.v,strong) { overflow-wrap:anywhere; }
 body.workshop-mobile :is(form,.card,.card-bd,.card-hd,section) { min-width:0;max-width:100%; }
 body.workshop-mobile .btn { display:inline-flex;align-items:center;justify-content:center;white-space:normal;line-height:1.45; }
 body.workshop-mobile.bw-ui .bw-global-nav { position:relative!important;min-height:0!important;padding:0 12px!important; }
 body.workshop-mobile.bw-ui .bw-global-nav .bw-nav-inner { display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:0!important;padding:4px 0!important;min-height:0!important; }
 body.workshop-mobile.bw-ui .bw-global-nav .bw-brand { font-size:18px!important;min-height:36px!important;flex-basis:100%; }
 body.workshop-mobile.bw-ui .bw-global-nav .bw-brand svg { width:23px;height:23px; }
 body.workshop-mobile.bw-ui .bw-global-nav .bw-nav-links { display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;flex:0 1 100%!important;width:100%!important;gap:4px!important;padding:2px 0!important;scrollbar-width:thin; }
 body.workshop-mobile.bw-ui .bw-global-nav .bw-nav-links>a { flex:0 0 auto!important;min-height:44px!important;font-size:14px!important;white-space:nowrap!important;padding:8px 12px!important; }
 body.workshop-mobile.bw-ui .header { position:relative;top:0!important; }
 body.workshop-mobile.bw-ui .header-inner { min-height:52px;padding:4px 12px;gap:6px;flex-wrap:nowrap; }
 body.workshop-mobile .header-inner .brand-sub { display:none; }
 body.workshop-mobile .header-inner .back-link,body.workshop-mobile .user a { display:inline-flex;align-items:center;min-height:44px; }
 body.workshop-mobile .header>a { font-size:13px;padding:0 8px!important; }
 body.workshop-mobile.bw-ui .container { padding:16px 12px calc(88px + env(safe-area-inset-bottom))!important; }
 body.workshop-mobile :is(.card-hd,.card-bd) { padding:14px!important; }
 body.workshop-mobile .card-hd { flex-wrap:wrap;gap:8px; }
 body.workshop-mobile :is(.stats,.stats-grid) { gap:10px; }
 body.workshop-mobile .stat { padding:14px; }
 body.workshop-mobile .mobile-nav { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:4px 6px calc(4px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dfe7f1;min-height:60px;height:auto;z-index:1100; }
 body.workshop-mobile .mobile-nav>a,body.workshop-mobile .mobile-nav summary { display:flex;align-items:center;justify-content:center;min-height:48px;padding:8px 3px;font-size:14px;font-weight:600;line-height:1.4;list-style:none;color:#52677f;border-radius:8px;text-decoration:none; }
 body.workshop-mobile .mobile-nav a[aria-current=page],body.workshop-mobile .mobile-nav details[open]>summary { background:#eaf2ff;color:#205cc5; }
 body.workshop-mobile .mobile-nav summary::-webkit-details-marker { display:none; }
 body.workshop-mobile .mobile-nav details { position:relative;min-width:0; }
 body.workshop-mobile .mobile-more-menu { position:absolute;right:0;bottom:calc(100% + 12px);width:min(264px,calc(100vw - 24px));max-height:65vh;overflow:auto;background:#fff;border:1px solid #dfe7f1;border-radius:12px;padding:8px;box-shadow:0 6px 24px #172b4520; }
 body.workshop-mobile .mobile-more-menu a { display:flex;align-items:center;min-height:44px;padding:9px 12px;color:#214e86;font-size:15px;text-decoration:none; }
 body.workshop-mobile .mobile-table td { min-width:0;overflow-wrap:anywhere; }
 body.workshop-mobile .mobile-table td .btn { min-height:44px; }
 body.workshop-mobile :is(.table-wrap,.table-scroll) { max-width:100%;overflow-x:auto; }
 body.mobile-catalog header { padding:12px;gap:6px; }
 body.mobile-catalog header nav { gap:12px;flex-wrap:wrap; }
 body.mobile-catalog header a,body.mobile-catalog .pagination a { display:inline-flex;align-items:center;min-height:44px; }
 body.mobile-catalog main { padding:16px 12px; }
 body.mobile-catalog form { gap:10px;margin:18px 0; }
 body.mobile-catalog form label,body.mobile-catalog form button { width:100%; }
 body.mobile-catalog .table { background:transparent;overflow:visible; }
 body.mobile-catalog table,body.mobile-catalog tbody { display:block;width:100%; }
 body.mobile-catalog thead { position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden; }
 body.mobile-catalog tr { display:block;border:1px solid #dfe7f1;border-radius:10px;padding:6px 12px;margin-bottom:12px;background:#fff; }
 body.mobile-catalog td { display:grid;grid-template-columns:88px minmax(0,1fr);gap:10px;min-width:0;max-width:none;padding:10px 0;font-size:15px; }
 body.mobile-catalog td:before { content:attr(data-label);color:#64758d;font-size:14px; }
 body.mobile-catalog td:last-child { border-bottom:0; }
 body.mobile-catalog td details { min-width:0;max-width:100%;white-space:pre-wrap; }
 body.mobile-quality header { padding:10px 12px; }
 body.mobile-quality header a { display:inline-flex;align-items:center;min-height:44px; }
 body.mobile-quality main { margin:18px auto;padding:0 12px; }
 body.mobile-quality h1 { font-size:25px; }
 body.mobile-quality section { padding:16px;margin:12px 0; }
 body.mobile-quality .actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
 body.mobile-quality .actions button { padding:12px 8px; }
 body.mobile-quality .muted { font-size:14px; }
 body.mobile-scan .topbar { padding:6px 12px;font-size:14px;gap:8px;flex-wrap:wrap; }
 body.mobile-scan .tb-user a,body.mobile-scan .tb-login { display:inline-flex;align-items:center;min-height:44px;font-size:14px; }
 body.mobile-scan .header { padding:58px 12px 18px;background:#1d3f66; }
 body.mobile-scan .header h1 { font-size:21px;line-height:1.45; }
 body.mobile-scan .header p { font-size:13px; }
 body.mobile-scan .back-link { min-height:44px;display:flex;align-items:center;top:6px; }
 body.mobile-scan .card { margin:12px;padding:16px;border:1px solid #dfe7f1;box-shadow:none; }
 body.mobile-scan .card h3 { font-size:17px; }
 body.mobile-scan .card :is(p,small,label) { font-size:14px!important;line-height:1.65; }
 body.mobile-scan .mobile-current-task { border-top:3px solid #2563eb; }
 body.mobile-scan .info-row { display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;font-size:15px; }
 body.mobile-scan .info-row .v { text-align:right;min-width:0; }
 body.mobile-scan .step { font-size:13px;padding:7px 10px; }
 body.mobile-scan .card a { display:inline-block;min-height:44px;padding-top:9px;padding-bottom:9px; }
 body.mobile-scan img,body.mobile-trace img { max-width:100%;height:auto; }
 body.mobile-scan .scan-quick-nav { padding:4px 12px; }
 body.workshop-mobile .scan-quick-nav a { min-height:44px;font-size:14px;padding:8px 12px; }
}
@media print { .scan-quick-nav,.mobile-task-entry { display:none!important; } }

@media screen and (max-width:768px) {
 body.workshop-mobile .batch-context-action { display:inline-flex;vertical-align:top;max-width:100%;margin:0 6px 10px 0!important; }
 body.workshop-mobile .batch-context-action .btn { font-size:14px; }
 body.workshop-mobile footer,body.workshop-mobile footer a,body.workshop-mobile .footer { color:#5d6e84!important; }
 body.mobile-scan .info-row .k { color:#64748b; }
 body.mobile-scan .card small { color:#64748b!important; }
 body.mobile-trace .card { margin:12px;padding:16px;box-shadow:none;border:1px solid #dfe7f1; }
 body.mobile-trace .info-row { gap:12px;font-size:15px; }
 body.mobile-trace .info-row .v { overflow-wrap:anywhere;min-width:0;text-align:right; }
 body.mobile-trace .step { font-size:13px; }
}
