/* V18.33 — dedicated mobile operations UI. Only admin-dashboard.html loads this.
   New records are mobile-only; the existing desktop presentation is retained. */
.ops-mobile-copy,.ops-mobile-brand,.ops-mobile-connection,.ops-menu-close,
.ops-mobile-metric-label,.ops-stock-card,.ops-mobile-alert,
.ops-mobile-record,.ops-mobile-action-copy{display:none}
@media(max-width:720px){
  body[data-ops-admin]{--o-orange:#1a4fa0;--o-orange-soft:#edf3fd;--o-ink:#182438;--o-muted:#616f80;--o-line:#e0e6ee;--o-soft:#f4f6fa;--v0lt-text-body:17px;--v0lt-text-secondary:15px;color:var(--o-ink);background:var(--o-soft);font-size:17px;padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  html{scroll-padding-top:82px;scroll-behavior:auto}body:has(dialog[open]){overflow:hidden}
  .ops-main,.ops-app{min-width:0;min-height:100svh}.ops-content{padding:24px 16px;max-width:620px;margin:0 auto}
  .ops-desktop-copy{display:none!important}.ops-mobile-copy{display:inline}
  button,a,summary,input,textarea,select{-webkit-tap-highlight-color:transparent}
  button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #276bd0;outline-offset:3px}[hidden]{display:none!important}
  /* Stable shell */
  .ops-top{position:sticky;top:0;height:68px;padding:0 16px;gap:12px;background:#fff;border-bottom:1px solid #e4e9f0;box-shadow:none;backdrop-filter:none;z-index:30}
  .ops-mobile-brand{display:flex;order:1;align-items:center;gap:8px;min-width:0;min-height:44px}
  .ops-mobile-brand img{width:21px;height:30px;object-fit:contain}.ops-mobile-brand>span{font-size:17px;line-height:1.15;font-weight:800;letter-spacing:-.4px}
  .ops-mobile-brand small{display:block;margin-top:4px;font-size:10px;font-weight:700;letter-spacing:1.5px;line-height:1;color:#68788c}.ops-top-title{display:none}
  .ops-sync{order:2;margin-left:auto;padding:0 9px;min-height:32px;min-width:0;border-radius:8px;background:#f1f5fa;color:#526176;gap:6px}
  .ops-sync .ops-mobile-connection{display:inline;font-size:12px;font-weight:650}.ops-sync i{width:6px;height:6px;flex:none}.ops-sync[data-admin-mode="preview"] i{background:#bf8123}
  .ops-mobile-menu{order:3;flex:none;width:44px;height:44px;border:1px solid #e0e6ee;border-radius:12px;background:white;padding:11px}.ops-mobile-menu::after{display:none}
  .ops-mobile-menu svg{width:20px;height:20px;stroke:#34445a;stroke-width:1.8;fill:none;stroke-linecap:round}
  .ops-mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-height:72px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e0e6ee;box-shadow:0 -4px 16px rgba(27,42,65,.025);backdrop-filter:none}
  .ops-mobile-nav [data-ops-nav="customers"]{display:none}.ops-mobile-nav button{min-height:52px;border-radius:12px;gap:5px;padding:5px 3px;color:#667487;font-weight:600;line-height:1}
  .ops-mobile-nav button.active{background:#edf3fd;color:#1a4fa0}.ops-mobile-nav button small{font-size:12px;line-height:1.15;font-weight:650}.ops-mobile-nav svg{width:22px;height:22px;stroke-width:1.65}
  /* Type and actions */
  .ops-view-head{display:grid;gap:16px;padding:0;margin-bottom:18px;min-width:0}.ops-view-head h1{margin:0;font-size:28px;font-weight:750;line-height:1.18;letter-spacing:-.85px;overflow-wrap:normal}
  .ops-view-head .ops-primary,.ops-view-head .ops-secondary{min-height:46px;font-weight:650;font-size:16px;border-radius:12px}
  .ops-primary,.ops-secondary{min-height:46px;padding:0 15px;font-size:16px;font-weight:650;line-height:1.3;border-radius:12px}.ops-primary{background:#1a4fa0;box-shadow:0 2px 3px rgba(26,79,160,.08)}.ops-secondary{border:1px solid #dce3ec;color:#344a69;background:#fff}
  .ops-inventory-head{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:16px}.ops-inventory-head h1{font-size:27px}
  .ops-inventory-head .ops-head-actions{display:flex;flex-wrap:nowrap;width:auto;gap:7px;margin:0}.ops-inventory-head .ops-head-actions>*{min-width:0;width:auto;min-height:42px!important;padding:0 12px;font-size:14px;border-radius:10px;white-space:nowrap}
  /* Complete two-by-two overview; no clipped metrics */
  .ops-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-flow:row;grid-auto-columns:auto;width:100%;margin:0;padding:0;gap:10px;overflow:visible;scroll-snap-type:none}
  .ops-metric{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:87px;padding:14px 16px;border:1px solid #e1e7ef;border-radius:14px;box-shadow:0 2px 4px rgba(22,36,57,.015);background:#fff}
  .ops-metric-top,.ops-metric>small{display:none}.ops-metric>strong{margin:0;color:#1b2b43;font-size:26px;font-weight:700;line-height:1.1;letter-spacing:-.7px;font-variant-numeric:tabular-nums}
  .ops-mobile-metric-label{display:block;margin-top:7px;font-size:15px;line-height:1.3;color:#647186;font-weight:500}
  /* Inventory status and search */
  .ops-inventory-alert{min-height:0;display:block;margin:14px 0 0;padding:0;border:0;border-radius:12px;background:transparent}.ops-inventory-alert>i,.ops-inventory-alert>div,.ops-inventory-alert>b{display:none}
  .ops-mobile-alert{display:block;border:1px solid #eadfc9;border-radius:12px;background:#fffbf3;overflow:hidden;color:#665430}.ops-inventory-alert.good .ops-mobile-alert{background:#f1f8f4;border-color:#d9e8de;color:#2e5e43}.ops-inventory-alert.bad .ops-mobile-alert{background:#fff5f3;border-color:#eed8d2;color:#923d33}
  .ops-mobile-alert summary{display:grid;grid-template-columns:7px minmax(0,1fr) 16px;gap:10px;align-items:center;padding:12px;min-height:48px;list-style:none;cursor:pointer}.ops-mobile-alert summary::-webkit-details-marker{display:none}
  .ops-mobile-alert .ops-alert-dot{display:block;width:6px;height:6px;border-radius:50%;background:currentColor;margin:0}.ops-mobile-alert summary>span:nth-child(2){display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin:0;color:inherit}
  .ops-mobile-alert summary strong{font-size:15px;font-weight:650;line-height:1.4}.ops-mobile-alert summary small{font-size:14px;font-weight:400;color:#76674c}.ops-mobile-alert .ops-alert-chevron{font-size:20px;text-align:center;line-height:1;color:inherit;margin:0}.ops-mobile-alert[open] .ops-alert-chevron{transform:rotate(180deg)}
  .ops-mobile-alert>div{padding:0 14px 12px}.ops-mobile-alert p{margin:0 0 6px;font-size:16px;line-height:1.55;color:inherit}
  .ops-inventory-toolbar{display:grid;grid-template-columns:minmax(0,1fr);margin-top:18px;gap:12px;min-width:0}.ops-inventory-search{height:50px;width:100%;min-width:0;padding:0 14px;gap:10px;border:1px solid #dce3ec;border-radius:12px;box-shadow:none}.ops-inventory-search:focus-within{border-color:#1a4fa0;box-shadow:0 0 0 3px #1a4fa014}
  .ops-inventory-search>span{display:flex;align-items:center;flex:none}.ops-inventory-search svg{width:20px;height:20px;stroke:#78869a;stroke-width:1.6;fill:none;stroke-linecap:round}.ops-inventory-search input{min-width:0;font-size:16px!important;color:#26394f}.ops-inventory-search input::placeholder,.ops-lookup input::placeholder{color:#778396;opacity:1}
  .ops-filterbar,.ops-inventory-filters{display:flex;flex-wrap:nowrap;gap:7px;width:100%;margin:0;padding:2px 1px 5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;scroll-padding:1px;min-width:0}.ops-filter{flex:none;min-height:40px;max-width:none;border-color:#dfe5ed;background:#fff;font-size:14px;font-weight:600;padding:0 13px}.ops-filter.active{background:#1a4fa0;border-color:#1a4fa0;color:#fff}.ops-inventory-filters .ops-filter small{font-size:13px;font-weight:600;opacity:.9}
  .ops-inventory-panel{margin-top:14px;border:0;overflow:visible;box-shadow:none;background:transparent;border-radius:0}.ops-inventory-panel>.ops-panel-head{padding:0 1px 12px;min-height:0;border:0;align-items:center}.ops-inventory-panel .ops-panel-head h2{font-size:18px;font-weight:700;letter-spacing:-.3px}.ops-result,.ops-inventory-panel .ops-result{font-size:14px;color:#6b788b;margin:0;white-space:nowrap;width:auto}
  .ops-inventory-table{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;background:transparent}.ops-inventory-table>.ops-inventory-row{display:none!important}
  /* Purpose-built cards; no shared table grid can crush a name. */
  .ops-stock-card{display:block;min-width:0;background:#fff;border:1px solid #dfe6ee;border-radius:17px;padding:16px;box-shadow:0 3px 8px rgba(20,42,71,.025)}
  .ops-stock-identity{display:grid;grid-template-columns:60px minmax(0,1fr);gap:13px;align-items:center}.ops-stock-identity>img{display:block;object-fit:contain;width:60px;height:64px;padding:4px;background:#f7f9fc;border:1px solid #edf1f6;border-radius:12px}.ops-stock-identity>div{min-width:0}
  .ops-stock-identity h3{margin:0;font-size:17px;font-weight:650;line-height:1.38;letter-spacing:-.2px;white-space:normal;text-overflow:clip;overflow-wrap:break-word}.ops-stock-identity p{margin:4px 0 0;color:#68768a;font-size:15px;line-height:1.4}
  .ops-stock-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:14px}.ops-stock-summary>.ops-inventory-status{display:inline-flex;gap:6px;align-items:center;max-width:100%;padding:6px 9px;border-radius:7px;font-size:13px;font-weight:650;line-height:1.25}.ops-stock-summary .ops-inventory-status i{width:6px;height:6px;flex:none}.ops-stock-summary>strong{margin-left:auto;font-size:20px;letter-spacing:-.35px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
  .ops-stock-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:14px;padding:11px 12px;background:#f5f7fa;border-radius:10px;gap:10px}.ops-stock-counts>div{min-width:0}.ops-stock-counts>div+div{border-left:1px solid #dde4ed;padding-left:14px}.ops-stock-counts span{display:block;font-size:14px;line-height:1.35;color:#657487}.ops-stock-counts strong{display:block;margin-top:4px;font-size:16px;line-height:1.35;font-weight:650;color:#273a52;overflow-wrap:break-word}
  .ops-stock-footer{position:relative;margin-top:10px;min-height:44px}.ops-stock-details>summary{margin-right:111px;min-height:44px;display:flex;gap:7px;align-items:center;list-style:none;cursor:pointer;font-size:14px;font-weight:600;color:#556780}.ops-stock-details>summary::-webkit-details-marker,.ops-record-details>summary::-webkit-details-marker{display:none}.ops-stock-details>summary>span{font-size:18px;line-height:1}.ops-stock-details[open]>summary>span,.ops-record-details[open]>summary>span{transform:rotate(180deg)}
  .ops-stock-manage{position:absolute;top:0;right:0;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;min-width:100px;padding:0 12px;border:1px solid #cedcf0;border-radius:10px;background:#f0f5fd;color:#1a4fa0;font-weight:650;font-size:15px}.ops-stock-manage:hover{background:#e6effc}
  .ops-stock-details dl,.ops-record-details dl{margin:6px 0 0;padding-top:6px;border-top:1px solid #e5eaf1}.ops-stock-details dl>div,.ops-record-details dl>div{display:grid;gap:4px;margin:0;padding:8px 0}.ops-stock-details dt,.ops-record-details dt{font-size:14px;color:#6a788a;line-height:1.4}.ops-stock-details dd,.ops-record-details dd{margin:0;font-size:15px;color:#283e5a;line-height:1.5;overflow-wrap:anywhere}
  .ops-stock-attention{padding:12px;border-radius:10px;background:#fff9ee;margin-top:8px}.ops-stock-attention>strong{font-size:15px;font-weight:650;color:#79551d}.ops-stock-attention ul{margin:6px 0 0;padding-left:18px}.ops-stock-attention li{font-size:15px;line-height:1.5;color:#79551d}
  .ops-inventory-lower{margin-top:18px;gap:14px}.ops-inventory-lower>.ops-panel:last-child{display:block}.ops-inventory-links{padding:0 14px 8px}.ops-inventory-links a{gap:6px;padding:14px 0}.ops-inventory-links strong{font-size:16px;font-weight:650}.ops-inventory-links span{font-size:15px;line-height:1.5}.ops-inventory-links b{font-size:14px;line-height:1.4}
  /* Today and other records */
  .ops-view[data-ops-view="today"]{gap:16px}.ops-view[data-ops-view="today"]>.ops-view-head{order:1;margin-bottom:0}.ops-view[data-ops-view="today"]>.ops-metrics{order:2}.ops-view[data-ops-view="today"]>.ops-grid>.ops-panel{order:3}.ops-view[data-ops-view="today"]>.ops-grid>.ops-secondary-stack{order:4}
  .ops-panel{box-shadow:0 3px 8px rgba(20,42,71,.025);border-color:#e0e6ee;border-radius:16px}.ops-panel-head{padding:15px 16px;align-items:center;border-bottom-color:#e9edf3}.ops-panel-head h2{font-size:18px;font-weight:700;letter-spacing:-.3px}.ops-panel-head button,.ops-panel-head a{font-size:14px;font-weight:650;min-height:44px;display:inline-flex;align-items:center}
  .ops-action-row{grid-template-columns:minmax(0,1fr) 44px;padding:16px 0;gap:10px}.ops-action-num,.ops-action-copy{display:none}.ops-mobile-action-copy{display:grid;gap:5px;min-width:0}.ops-mobile-action-copy>strong{font-size:17px;line-height:1.35;font-weight:650}.ops-mobile-action-copy>span{font-size:15px;line-height:1.4;color:#476382}.ops-mobile-action-copy>small{font-size:15px;line-height:1.35;color:#708095}.ops-open-job{border:1px solid #dce5f1;border-radius:10px;background:#f2f6fd;min-height:44px}
  .ops-capacity-total strong{font-size:25px}.ops-capacity-total span{font-size:15px}.ops-secondary-stack>.ops-panel:first-child .ops-panel-head{display:flex}.ops-secondary-stack>.ops-panel:first-child .ops-days{display:grid}.ops-day strong{font-size:15px}.ops-day b{font-size:14px}
  .ops-table{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;background:transparent}.ops-table>.ops-table-row,.ops-table>.ops-table-row[style]{display:none!important}
  .ops-mobile-record{display:block;min-width:0;border:1px solid #dfe6ee;border-radius:16px;background:#fff;padding:16px;box-shadow:0 3px 8px rgba(20,42,71,.025)}.ops-record-eyebrow{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:12px;font-size:13px;color:#63728a}.ops-record-eyebrow>span{overflow-wrap:anywhere}.ops-record-status{font-weight:600;padding:5px 8px;border-radius:6px;background:#eef3f9;line-height:1.3}.ops-record-status.orange,.ops-record-status.blue{background:#edf3fd;color:#1a4fa0}.ops-record-status.amber{background:#fff6e4;color:#866015}.ops-record-status.green{background:#edf7f0;color:#207149}
  .ops-mobile-record h3{margin:0;font-size:18px;letter-spacing:-.25px;font-weight:650;line-height:1.4}.ops-record-person{margin:6px 0 0;font-size:15px;line-height:1.5;color:#68788d}.ops-record-next{margin-top:14px;padding:11px 12px;background:#f5f7fa;border-radius:10px}.ops-record-next span{display:block;font-size:14px;color:#63748c;line-height:1.4}.ops-record-next strong{display:block;margin-top:4px;font-size:16px;font-weight:600;line-height:1.45;color:#2e425e}.ops-record-open{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;margin-top:12px;padding:0 13px;border:1px solid #d4e0f1;border-radius:10px;background:#f0f5fd;color:#1a4fa0;font-size:15px;font-weight:650}
  .ops-record-identity{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:center}.ops-record-avatar{display:grid;place-items:center;height:44px;width:44px;border-radius:12px;background:#edf3fd;font-size:18px;font-weight:650;color:#1a4fa0}.ops-record-identity p{margin:4px 0 0;font-size:15px;color:#66778d;line-height:1.4}.ops-record-email{margin:12px 0 0;font-size:15px;line-height:1.45;color:#586d88;overflow-wrap:anywhere}.ops-record-inline{display:flex;flex-wrap:wrap;gap:10px 20px;padding:12px 0;font-size:15px;color:#64768e}.ops-record-inline b{font-weight:650;color:#263a56}
  .ops-record-details{margin-top:12px;border-top:1px solid #e5eaf1}.ops-record-details summary{display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;font-size:14px;font-weight:600;color:#4c6382}.ops-record-details>p{font-size:15px;line-height:1.5;margin:0;padding:4px 0;overflow-wrap:anywhere}
  .ops-lookup{margin:0 0 14px}.ops-lookup input{height:50px;font-size:16px!important;border-color:#dce3ec}.ops-lookup input:focus{outline:2px solid #1a4fa0;outline-offset:1px}.ops-empty{font-size:17px;line-height:1.55;padding:20px 16px;color:#61738b}
  .ops-system-card>small{font-size:13px}.ops-system-card h3{font-size:18px;font-weight:650}.ops-system-card p{display:block;font-size:17px;line-height:1.55}.ops-id-list div{gap:10px;flex-wrap:wrap}.ops-id-list span{font-size:15px}.ops-id-list strong{font-size:15px;max-width:100%;overflow-wrap:anywhere}.ops-health-row{grid-template-columns:7px minmax(0,1fr);padding:12px;gap:8px}.ops-health-row small{font-size:15px;line-height:1.45}.ops-health-row b{grid-column:2;font-size:13px}
  /* All main views and advanced tools are available in More. */
  .ops-side{width:min(90vw,360px);height:100dvh;padding:22px 18px calc(16px + env(safe-area-inset-bottom));background:#fff;color:#182b46;box-shadow:20px 0 60px rgba(24,44,76,.15);border-right:1px solid #e3e8ef}.ops-side .ops-brand{padding:0 48px 20px 3px;border-bottom-color:#e6eaf0}.ops-side .ops-brand strong{font-size:18px;color:#14263f}.ops-side .ops-brand small{font-size:11px;color:#748296}
  .ops-menu-close{display:grid;place-items:center;position:absolute;right:17px;top:22px;width:44px;height:44px;border:1px solid #dee5ef;border-radius:12px;background:#f6f8fb;color:#4c5e79;font-size:25px}.ops-mode{color:#76849a;font-size:12px;letter-spacing:1px;margin:20px 10px 9px}
  .ops-nav>[data-ops-nav="today"],.ops-nav>[data-ops-nav="repairs"],.ops-nav>[data-ops-nav="customers"],.ops-nav>[data-ops-nav="inventory"]{display:flex}.ops-nav button,.ops-nav a{color:#526780;font-weight:550;min-height:48px;font-size:16px}.ops-nav button:hover,.ops-nav a:hover{color:#1a4fa0;background:#f2f6fd}.ops-nav button.active{color:#1a4fa0;background:#eaf1fc}.ops-nav i{color:#7c8da3;background:#f2f5fa;font-size:12px}.ops-nav button.active i{color:#1a4fa0;background:#dde9fb}
  .ops-nav-divider{border-top-color:#e8edf3;color:#748397;font-size:11px;padding-top:16px}.ops-advanced summary{color:#526780;font-size:16px;font-weight:550}.ops-advanced summary:hover{background:#f2f6fd;color:#1a4fa0}.ops-advanced summary b{color:#647b9a}
  .ops-side-create{background:#edf3fd!important;color:#1a4fa0!important;font-weight:650!important}.ops-side-create:hover{color:#1a4fa0!important;background:#e3ecfb!important}.ops-side-bottom{padding-top:10px;border-top-color:#e2e9f2}.ops-preview-badge{background:#f3f6fb;color:#68788e;font-size:13px;margin:0 3px 9px}.ops-avatar{background:#eaf0f9;color:#1a4fa0;font-weight:650}.ops-user strong{font-size:16px;font-weight:650}.ops-user small{color:#6b7d94;font-size:13px}.ops-logout{width:44px;height:44px;background:#f0f4fa;color:#61748e}
  /* Detail sheets and form controls */
  .ops-dialog{width:calc(100% - 24px);max-width:540px;margin:auto;max-height:calc(100dvh - 24px);border-radius:20px}.ops-dialog-in{padding:20px;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}.ops-dialog h2{font-size:22px;line-height:1.3;letter-spacing:-.4px;font-weight:700}.ops-dialog p{font-size:17px;line-height:1.55}.ops-field span{font-size:15px;font-weight:600;color:#4c6380;line-height:1.4}.ops-field input,.ops-field select{min-width:0;width:100%;height:49px;border-color:#d5dfec;border-radius:11px;background:#fff}.ops-field textarea{min-width:0;width:100%;border:1px solid #d5dfec;border-radius:11px;line-height:1.5;padding:12px;resize:vertical}.ops-field input:focus,.ops-field select:focus,.ops-field textarea:focus{outline:2px solid #1a4fa0;outline-offset:1px}
  .ops-dialog small{font-size:12px;line-height:1.4;font-weight:650}.ops-dialog-status{font-size:15px;line-height:1.5}.ops-dialog-actions{gap:8px;padding-top:14px;background:#fff}
  .ops-inventory-dialog{width:calc(100% - 20px);max-width:560px}.ops-inventory-dialog .ops-dialog-in{max-height:calc(100dvh - 20px);padding:0}.ops-inventory-dialog-head{position:sticky;top:0;z-index:3;background:#fff;padding:18px 18px 15px;border-bottom:1px solid #e2e8f0}.ops-inventory-dialog-head>div{min-width:0}.ops-inventory-dialog-head h2{font-size:20px;line-height:1.35;overflow-wrap:break-word}.ops-inventory-dialog-head p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
  .ops-inventory-dialog-product{margin:16px 18px;grid-template-columns:60px minmax(0,1fr);padding:12px;border-radius:13px;background:#f5f8fc}.ops-inventory-dialog-product img{width:60px;height:64px}.ops-inventory-dialog-product strong{font-size:19px}.ops-inventory-dialog-product small{font-size:14px;line-height:1.4;font-weight:500;letter-spacing:0}
  .ops-inventory-edit-section{margin:0 18px;padding:4px 0 20px}.ops-section-title{flex-wrap:wrap;gap:5px 12px;border-bottom-color:#e1e8f1;margin-top:16px;align-items:center}.ops-section-title strong{font-size:17px;line-height:1.4;font-weight:650}.ops-section-title span{font-size:14px;line-height:1.5;color:#6a7d96}.ops-section-title button{font-size:14px;min-height:44px;font-weight:600}.ops-inventory-fields,.ops-inventory-local-fields{grid-template-columns:minmax(0,1fr);gap:14px;margin-top:16px}.ops-inventory-save-row{gap:10px;margin-top:16px}.ops-inventory-save-row>*{min-height:46px}
  .ops-inventory-dialog .ops-dialog-actions{z-index:4;margin:0;padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #e2e8f0;background:#fff}.ops-inventory-dialog .ops-dialog-actions>button{width:100%}.ops-danger-soft{color:#9e4038;background:#fff7f5;border-color:#ecd7d2}
  .ops-drawer-head{padding:18px 16px;border-bottom-color:#e1e8f0;background:#fff;gap:12px}.ops-drawer-head h2{font-size:22px;line-height:1.3;font-weight:700}.ops-drawer-head small{font-size:12px;font-weight:600;color:#697b94}.ops-drawer-head p{font-size:15px;line-height:1.5}.ops-drawer-close{width:44px;height:44px;flex:none;background:#f0f4f9;color:#3d5371;border-radius:12px;font-size:22px}
  .ops-drawer-body{padding:18px 16px calc(24px + env(safe-area-inset-bottom));background:#f5f7fb;overscroll-behavior:contain}.ops-next{background:#fff;border:1px solid #dce5f3;border-radius:16px;padding:16px;color:#203755}.ops-next small{color:#1a4fa0;font-size:12px;font-weight:650}.ops-next h3{font-size:19px;line-height:1.35;font-weight:650}.ops-next p{font-size:17px;line-height:1.55;color:#62768e}.ops-next .ops-primary{margin-top:0}.ops-next-actions{margin-top:14px}
  .ops-job-ids{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ops-job-id{background:#fff;border-color:#e1e7f0;padding:12px}.ops-job-id small{font-size:13px}.ops-job-id strong{font-size:14px;font-weight:600;line-height:1.5}.ops-update-form textarea{background:#fff;border-color:#d7e0ed;padding:12px}.ops-cost{background:#fff;border:1px solid #e1e7f0;align-items:center;flex-wrap:wrap}.ops-cost>span{font-size:15px}.ops-cost small{font-size:14px!important;line-height:1.5}.ops-event{grid-template-columns:23px minmax(0,1fr);gap:8px}.ops-event strong{font-size:16px;font-weight:650;line-height:1.4}.ops-event small{font-size:15px;line-height:1.5}.ops-event time{grid-column:2;font-size:13px;white-space:normal}
  .ops-toast{bottom:calc(87px + env(safe-area-inset-bottom));max-width:calc(100% - 32px);width:max-content;font-size:15px;font-weight:500;line-height:1.5;background:#1c304e;border-radius:12px;padding:12px 16px}
}
@media(max-width:359px){
  .ops-content{padding:20px 12px 24px}.ops-top{padding:0 12px;gap:8px}.ops-inventory-head{gap:8px}.ops-inventory-head h1{font-size:25px}.ops-inventory-head .ops-head-actions>*{padding:0 9px;font-size:14px}
  .ops-stock-card,.ops-mobile-record{padding:14px}.ops-stock-identity{grid-template-columns:52px minmax(0,1fr);gap:10px}.ops-stock-identity>img{width:52px;height:58px}.ops-stock-summary>.ops-inventory-status{font-size:12px;padding:6px 7px}.ops-stock-summary>strong{font-size:19px}.ops-metric{padding:13px;min-height:85px}.ops-mobile-metric-label{font-size:14px}.ops-job-ids{grid-template-columns:minmax(0,1fr)}
}
/* Defensive layout for extreme narrow windows and browser zoom. */
@media(max-width:279px){
  .ops-inventory-head{grid-template-columns:minmax(0,1fr)}.ops-inventory-head .ops-head-actions>*{flex:1}.ops-sync{display:none}.ops-mobile-menu{margin-left:auto}.ops-metrics{grid-template-columns:minmax(0,1fr)!important}.ops-stock-identity{grid-template-columns:minmax(0,1fr)}.ops-stock-counts{grid-template-columns:minmax(0,1fr)}.ops-stock-counts>div+div{border:0;padding:0}.ops-stock-details>summary{margin:0;padding-bottom:49px}.ops-stock-manage{top:36px;left:0;right:0}.ops-stock-summary>strong{margin-left:0}.ops-panel-head{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){body[data-ops-admin] .ops-side,body[data-ops-admin] .ops-drawer,body[data-ops-admin] .ops-toast{transition:none}}

/* Do not let translated, closed panels cast shadows into the workspace. */
@media(max-width:720px){
  .ops-drawer-wrap:not(.open),.ops-side:not(.open){visibility:hidden}
  .ops-side:not(.open){box-shadow:none}
  .ops-inventory-panel{box-shadow:none;border-radius:0}
  .ops-dialog{color:var(--o-ink)}
}
@media(max-width:720px){
  .ops-lookup{grid-template-columns:minmax(0,1fr)}
  .ops-lookup input{width:100%;min-width:0}
}
/* Hidden mobile siblings must not change the original desktop last-row rule. */
@media(min-width:721px){
  .ops-table-row:has(+ .ops-mobile-record:last-child),
  .ops-inventory-row:has(+ .ops-stock-card:last-child){border-bottom:0}
}
