
  .mh-container { position: relative; padding: 12px 16px 12px; background: #fff; height: 100%; display: flex; flex-direction: column; box-sizing: border-box; text-align: left; font-family: Inter, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #0f172a; }
  .mh-container button { font-family: inherit; }
  .mh-header { display: flex; align-items: center; gap: 10px 14px; margin-bottom: 10px; flex-wrap: nowrap; }
  .mh-header h2 { margin: 0; color: #0f172a; font-size: 17.5px; font-weight: 800; letter-spacing: -0.2px; display: flex; align-items: center; gap: 7px; white-space: nowrap; flex: 0 0 auto; text-align: left !important; }
  .mh-header h2 svg { width: 19px; height: 19px; fill: #1e2a44; }
  #mh-loading { color: #64748b; font-weight: 700; font-size: 11.5px; white-space: nowrap; }
  .mh-fresh { color: #94a3b8; font-weight: 600; font-size: 10.5px; white-space: nowrap; letter-spacing: 0; }
  .mh-fresh.busy::after { content: ' · refreshing…'; color: #64748b; }
  .mh-close-x { margin-left: auto; align-self: flex-start; }   
  .mh-toolbar { display: flex; gap: 6px 8px; align-items: center; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
  .mh-filter-group { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
  .mh-filter-btn, .mh-stepper, .mh-pending-btn, .mh-action-btn { height: 30px; box-sizing: border-box; border-radius: 7px; border: 1px solid #cbd5e1; background: #fff; color: #334155; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
  .mh-filter-btn { padding: 0 11px; }
  .mh-filter-btn:hover, .mh-action-btn:hover { background: #f8fafc; }
  .mh-filter-btn.active { background: #e0e7ff; border-color: #a5b4fc; color: #312e81; }
  .mh-stepper { padding: 0 2px; gap: 0; cursor: default; }
  .mh-stepper.active { background: #e0e7ff; border-color: #a5b4fc; }
  .mh-step-btn { background: transparent; border: none; color: #475569; font-size: 17px; line-height: 1; font-weight: 700; cursor: pointer; width: 24px; height: 26px; border-radius: 5px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
  .mh-step-btn:hover { background: #f1f5f9; color: #0f172a; }
  .mh-stepper-date { font-weight: 700; font-size: 12px; color: #1e293b; min-width: 74px; text-align: center; font-variant-numeric: tabular-nums; }
  .mh-stepper.active .mh-stepper-date { color: #312e81; }
  .mh-pend-wrap { display: inline-flex; }
  .mh-pending-btn { padding: 0 8px 0 10px; border-color: #fca5a5; color: #dc2626; }
  .mh-pending-btn:hover { background: #fef2f2; }
  .mh-pending-btn.active { background: #fef2f2; border-color: #dc2626; box-shadow: inset 0 0 0 1px #dc2626; }
  .mh-pending-btn svg { width: 14px; height: 14px; fill: currentColor; }
  .mh-pend-count { display: none; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #dc2626; color: #fff; font-size: 10.5px; font-weight: 800; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
  .mh-search-wrap { position: relative; flex: 1 1 200px; min-width: 170px; max-width: 360px; }
  .mh-search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; fill: #94a3b8; pointer-events: none; }
  .mh-search-input { width: 100%; height: 30px; box-sizing: border-box; padding: 0 12px 0 30px; border: 1px solid #cbd5e1; border-radius: 15px; font-size: 12px; font-family: inherit; color: #0f172a; outline: none; background: #fff; transition: border-color .15s, box-shadow .15s; margin: 0; }
  .mh-search-input::placeholder { color: #94a3b8; }
  .mh-search-input:focus { border-color: #1e2a44; box-shadow: 0 0 0 3px rgba(30,42,68,.12); }
  .mh-action-group { display: flex; gap: 6px; margin-left: auto; }
  .mh-col-wrapper { position: relative; }
  .mh-action-btn { padding: 0 10px; color: #1e2a44; border-radius: 15px; }
  .mh-action-btn svg { width: 14px; height: 14px; fill: currentColor; }
  #master-history-modal { box-sizing: border-box; }
  .mh-table-wrapper { flex: 1; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; min-width: 0; }
  .mh-table { width: 100%; border-collapse: separate; border-spacing: 0; white-space: nowrap; table-layout: fixed; }
  #mh-scroll-area { scrollbar-gutter: stable; }   
  .mh-table th { background: #f8fafc; color: #475569; font-weight: 800; font-size: 9.75px; letter-spacing: .45px; text-transform: uppercase; padding: 0; text-align: left; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #e2e8f0; user-select: none; overflow: hidden; white-space: nowrap; box-sizing: border-box; }
  .mh-th-lbl { display: block; padding: 7px 10px 7px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: grab; }
  .mh-th-lbl:active { cursor: grabbing; }
  .mh-table th.mh-th-money .mh-th-lbl { text-align: right; padding-right: 11px; }
  .mh-table th.mh-drop-over { background: #dbeafe; }
  .mh-table td { padding: 5px 7px; border-bottom: 1px solid #f1f5f9; color: #1e293b; font-size: 11.5px; background: transparent; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; height: 31px; }
  .mh-table tbody tr { background-color: #fff; }
  .mh-table tbody tr.mh-sep td { padding: 14px 12px 6px !important; height: auto !important; background: #fff !important; border-bottom: 2px solid #f59e0b !important; cursor: default; }   
  .mh-table tbody tr.mh-sep td span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #b45309; }
  .mh-table tbody tr.mh-sep td em { font-style: normal; font-size: 11px; font-weight: 700; color: #94a3b8; margin-left: 8px; font-variant-numeric: tabular-nums; }   
  .mh-table td { line-height: 20px; }
  .mh-table td.mh-snunk { color: #f97316 !important; font-weight: 700; }   
  #mh-tip { display:none; position:fixed; z-index:2147483000; max-width:420px; max-height:50vh; overflow:auto; padding:6px 9px; border-radius:7px; background:#eef1f5; border:1px solid #d5dbe3; color:#0f172a; font:500 11px/1.45 'Inter', -apple-system, 'Segoe UI', sans-serif; white-space:pre-wrap; overflow-wrap:anywhere; box-shadow:0 8px 20px rgba(2,6,23,.14); -webkit-user-select:text; user-select:text; cursor:text; }      
  .mh-table td[data-k="photos"] { padding-top: 3px; padding-bottom: 3px; line-height: 0; }
  .mh-table tbody tr.mh-alt td:not(.spacer-col) { background-color: #eef2f7; }   
  .mh-table tbody tr.mh-row td { cursor: default; position: relative; }
  .mh-table tbody tr.mh-row:hover td:not(.spacer-col) { background-color: #eef2ff; }
  .mh-table tbody tr.mh-open td:not(.spacer-col) { background-color: #eef2ff; border-bottom-color: transparent; }
  .mh-table tbody tr.mh-row.mh-last td:not(.spacer-col), .mh-table tbody tr.mh-row.mh-last:hover td:not(.spacer-col) { background-color: #fef3c7 !important; }   
  .mh-table tbody tr.mh-row.mh-last td.mh-chev { box-shadow: inset 4px 0 0 #f59e0b !important; }
  .mh-table tbody tr.mh-row.row-processed.mh-last td:not(.spacer-col) { background-color: #ecfdf5 !important; }   
  .mh-table tbody tr.mh-row.row-processed.mh-last:hover td:not(.spacer-col) { background-color: #d1fae5 !important; }
  .mh-table tbody tr.mh-row.row-processed.mh-last td.mh-chev { box-shadow: inset 3px 0 0 #10b981 !important; }
  .mh-table td.mh-editable:focus { outline: 1.5px solid #a5b4fc; outline-offset: -2px; }
  .mh-table th.mh-chev-th { width: 34px; min-width: 34px; max-width: 34px; padding: 0; cursor: default; }
  .mh-table tbody tr.mh-row td.mh-chev { width: 34px; padding: 0; text-align: center; cursor: pointer; }
  .mh-chev-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -2px 0; padding: 0; border: none; border-radius: 8px; background: transparent; cursor: pointer; vertical-align: middle; }
  .mh-chev-btn:hover { background: #e0e7ff; }
  .mh-chev-btn:focus-visible { outline: 2px solid #a5b4fc; }
  .mh-chev svg { width: 18px; height: 18px; fill: #64748b; vertical-align: middle; transition: transform .15s ease; }
  .mh-open .mh-chev svg { transform: rotate(90deg); fill: #1e2a44; }
  .mh-edit-btn { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; padding: 0; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; color: #1e2a44; font-size: 11px; line-height: 18px; text-align: center; cursor: pointer; display: none; user-select: none; -webkit-user-select: none; box-shadow: 0 1px 2px rgba(15,23,42,.08); z-index: 2; font-family: inherit; }
  .mh-edit-btn:hover { background: #1e2a44; color: #fff; border-color: #1e2a44; }
  .mh-editable:hover > .mh-edit-btn, .mh-editable:focus > .mh-edit-btn, .mh-dfield:hover .mh-edit-btn, .mh-dval:focus > .mh-edit-btn { display: inline-block; }
  .is-editing > .mh-edit-btn { display: none !important; }
  .mh-table tr.mh-detail-row td.mh-detail-td { padding: 0; height: auto; overflow: hidden; white-space: normal; background: #fff !important; border-bottom: 1px solid #e2e8f0; cursor: default; }
  .mh-dwrap { overflow: hidden; transition: height .15s ease; box-sizing: border-box; min-width: 0; }
  .mh-detail { position: relative; margin: 0 8px 8px 34px; padding: 6px 10px 10px; background: #f8fafc; border: 1px solid #e0e7ff; border-top: none; border-radius: 0 0 10px 10px; min-width: 0; }
  .mh-dgrid { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; min-width: 0; }
  .mh-grp { min-width: 0; max-width: 100%; flex: 1 1 260px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 5px 9px 5px; box-sizing: border-box; }
  .mh-grp[data-g="parts"] { flex: 1.5 1 360px; }
  .mh-grp[data-g="parts"].many { flex: 2.2 1 460px; }
  .mh-grp[data-g="notes"] { flex: 2 1 380px; }
  .mh-grp[data-g="photos"] { flex: 1 1 260px; }
  .mh-grp[data-g="sig"] { flex: 0 1 290px; }
  .mh-sigbox { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; margin-top: 6px; padding: 6px; display: flex; align-items: center; justify-content: center; min-height: 60px; }
  #master-history-modal .mh-sigbox img.mh-dataimg { max-width: 260px; max-height: 110px; width: auto; height: auto; border: none; padding: 0; background: #fff; }
  .mh-sigat { font-size: 10.5px; color: #64748b; margin-top: 4px; font-variant-numeric: tabular-nums; }
  .mh-gt { user-select: none; -webkit-user-select: none; }
  .mh-grip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin: -3px 0 -3px -4px; border-radius: 4px; color: #94a3b8; font-size: 13px; line-height: 1; cursor: grab; touch-action: none; opacity: .55; transition: opacity .12s, background .12s; }   
  .mh-grp:hover .mh-grip { opacity: 1; } .mh-grip:hover { background: #eef2ff; color: #4f46e5; }
  body.mh-card-dragging .mh-grip { cursor: grabbing; }
  .mh-grp.mh-card-drag { position: fixed !important; z-index: 9999990; pointer-events: none; box-shadow: 0 18px 40px rgba(15,23,42,.25); opacity: .96; margin: 0; transform: rotate(.6deg); }
  .mh-card-ph { border: 2px dashed #a5b4fc; border-radius: 8px; background: #eef2ff; box-sizing: border-box; }
  .mh-grp.mh-card-press { box-shadow: 0 0 0 2px #a5b4fc; }
  body.mh-card-dragging { cursor: grabbing !important; user-select: none !important; }
  .mh-grp[data-g="info"] { flex: 1.4 1 300px; }
  .mh-gbrk { flex: 0 0 100%; height: 0; }
  .mh-stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 100%; align-self: stretch; }
  .mh-stack > .mh-grp { flex: none !important; width: 100%; max-width: 100%; }
  .mh-stack > .mh-card-ph { width: 100%; }
  .mh-stack.mh-stack-new { min-width: 200px; }
  .mh-grp:not([data-g="notes"]) .mh-dval { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
  .mh-pnum, .mh-pnm { white-space: nowrap; overflow-wrap: normal !important; }
  .mh-ptbl td.c-desc { max-width: 0; width: 46%; } .mh-ptbl td.c-desc .mh-pnm { display: block; overflow: hidden; text-overflow: ellipsis; }      
  .mh-chips { display: flex; flex-wrap: wrap; gap: 5px 6px; padding-top: 5px; }
  .mh-chip { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; min-width: 0; padding: 2px 2px 2px 8px; border: 1px solid #e2e8f0; border-radius: 7px; background: #f8fafc; box-sizing: border-box; position: relative; }
  .mh-chip .mh-dlbl { padding: 0; line-height: 18px; white-space: nowrap; }
  .mh-chip .mh-dval { padding: 0 24px 0 0; min-height: 0; line-height: 18px; }
  .mh-chip:hover .mh-edit-btn { display: inline-block; }
  .mh-gt { font-size: 9.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: #1e2a44; padding: 1px 0 5px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 6px; }
  .mh-gt .mh-gn { margin-left: auto; color: #94a3b8; font-weight: 700; letter-spacing: .3px; }
  .mh-grp[data-g="notes"] .mh-gbody { display: block; }
  .mh-dfield { min-width: 0; position: relative; display: grid; grid-template-columns: var(--lw, 90px) minmax(0, 1fr); column-gap: 10px; align-items: baseline; padding: 1px 0; border-bottom: 1px solid #f1f5f9; }
  .mh-gbody > .mh-dfield:last-child { border-bottom: none; }
  .mh-grp[data-g="notes"] .mh-dfield { border-bottom: 1px solid #f1f5f9; }
  .mh-dlbl { font-size: 9.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: #64748b; line-height: 12px; padding: 3px 0 1px; overflow-wrap: break-word; }
  .mh-dval { position: relative; font-size: 12px; color: #0f172a; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; padding: 1px 26px 1px 4px; min-height: 18px; border-radius: 5px; outline: none; min-width: 0; }
  .mh-dval.mh-money { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
  .mh-dval.mh-total { font-weight: 800; color: #1e2a44; }
  .mh-dfield.mh-total-f { border-top: 1px solid #cbd5e1; }
  .mh-dval.ro { padding-right: 26px; }
  .mh-dval .mh-edit-btn { top: 1px; transform: none; }
  .mh-dval.empty { color: #cbd5e1; }
  .mh-dval.empty::before { content: '—'; }
  .mh-dval:focus { box-shadow: 0 0 0 1.5px #a5b4fc; }
  .mh-dval .mh-pill { white-space: nowrap; }
  .mh-grp[data-g="cust"] .mh-dval, .mh-grp[data-g="app"] .mh-dval, .mh-grp[data-g="job"] .mh-dval, .mh-grp[data-g="info"] .mh-dval { font-family: Inter, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 12.5px; font-weight: 600; color: #1e293b; letter-spacing: 0; font-variant-numeric: tabular-nums; }
  .mh-grp [data-k="model"] .mh-dval, .mh-grp [data-k="s/n"] .mh-dval, .mh-grp [data-k="sn"] .mh-dval { font-family: 'Montserrat', 'Inter', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .03em; }
  .mh-grp [data-k="model"] .mh-dval { color: #2563eb; }
  .mh-grp[data-g="money"] .mh-dfield { grid-template-columns: var(--lw, 90px) minmax(0, 120px); }
  .mh-grp[data-g="photos"] { flex: 0 1 auto; min-width: 150px; }
  .mh-grp[data-g="job"] .mh-gbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }      
  .mh-grp[data-g="job"] .mh-gbody > .mh-dfield:last-child { border-bottom: 1px solid #f1f5f9; }
  .mh-dphotos { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding-top: 6px; }
  .mh-dphotos .mh-photo-thumb { width: 52px; height: 52px; }
  .mh-dbar { display: flex; justify-content: flex-end; gap: 6px; margin: 0 0 6px; }
  .mh-dempty-tg { height: 20px; padding: 0 8px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; color: #64748b; font-size: 10.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
  .mh-dempty-tg:hover { border-color: #1e2a44; color: #1e2a44; }
  .mh-dempty-tg.on { background: #e0e7ff; border-color: #a5b4fc; color: #312e81; }
  .mh-dnone { font-size: 12px; color: #94a3b8; padding: 2px 0 4px; }
  .mh-detail .mh-ptbl { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 1px; }
  .mh-detail .mh-ptbl th { position: static; background: transparent; padding: 4px 4px 3px; font-size: 9px; font-weight: 800; letter-spacing: .5px; color: #94a3b8; text-transform: uppercase; text-align: left; border-bottom: 1px solid #f1f5f9; cursor: default; }
  .mh-detail .mh-ptbl td { padding: 4px 4px; height: auto; font-size: 11.5px; line-height: 1.35; vertical-align: top; border-bottom: 1px solid #f1f5f9; white-space: normal; overflow: visible; color: #0f172a; background: transparent !important; cursor: default; }
  .mh-detail .mh-ptbl tr:last-child td { border-bottom: none; }
  .mh-detail .mh-ptbl .c-num { width: 34%; } .mh-detail .mh-ptbl .c-qty { width: 28px; text-align: center; } .mh-detail .mh-ptbl .c-pr { width: 96px; text-align: right; }
  .mh-pnum { font-family: 'Montserrat', 'Inter', sans-serif !important; font-weight: 700; font-size: 11.5px; letter-spacing: .03em; color: #2563eb; text-transform: uppercase; overflow-wrap: break-word; }
  .mh-pnm { font-family: 'Montserrat', 'Inter', sans-serif !important; font-weight: 600; font-size: 11px; letter-spacing: .02em; text-transform: none; color: #1e293b; overflow-wrap: anywhere; }   
  .mh-ptag { display: inline-flex; align-items: center; height: 15px; padding: 0 6px; margin-top: 3px; border-radius: 999px; font-size: 8.5px; font-weight: 800; letter-spacing: .4px; line-height: 1; text-transform: uppercase; border: 1px solid #fecdd3; background: #fff1f2; color: #e11d48; text-decoration: none; }
  .mh-ptag.un { border-color: #fde68a; background: #fef3c7; color: #92400e; }
  tr.mh-prow.un .mh-pnum, tr.mh-prow.un .mh-pnm { color:#9aa6b5 !important; }   
  tr.mh-prow.un .mh-pnum { text-decoration:line-through; text-decoration-color:#c3ccd6; }
  .mh-pship { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; font-size: 10px; color: #64748b; }
  .mh-pcar { display: inline-flex; align-items: center; font-style: normal; padding: 1px 4px; border-radius: 3px; color: #fff; background: #3b82f6; font-size: 8.5px; font-weight: 800; letter-spacing: .3px; line-height: 1.25; }
  .mh-ped { position: relative; padding-right: 22px; border-radius: 4px; outline: none; min-height: 16px; }
  .mh-ped:focus { box-shadow: 0 0 0 1.5px #a5b4fc; }
  .mh-ped:hover > .mh-edit-btn, .mh-ped:focus > .mh-edit-btn { display: inline-block; }
  .mh-ped > .mh-edit-btn { top: 0; transform: none; }
  .mh-ptag[data-act] { cursor: pointer; }
  .mh-ptag[data-act]:hover { box-shadow: 0 0 0 2px rgba(30,42,68,.12); }
  .mh-ptag.ghost { border: 1px dashed #cbd5e1; background: #fff; color: #94a3b8; display: none; }
  .mh-prow:hover .mh-ptag.ghost, .mh-prow:hover .mh-pghost { display: inline-flex; }
  .mh-pghost { display: none; align-items: center; height: 14px; padding: 0 5px; border: 1px dashed #cbd5e1; border-radius: 3px; color: #94a3b8; font-size: 9px; font-weight: 700; }
  .mh-pship .mh-ped { display: inline-flex; align-items: center; }
  .mh-detail .mh-ptbl tr.mh-pedit td { background: #f8fafc !important; }
  .mh-pform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 90px; gap: 6px; align-items: end; }
  .mh-pform label { display: flex; flex-direction: column; gap: 2px; font-size: 9px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #64748b; }
  .mh-pform input { height: 26px; box-sizing: border-box; border: 1.5px solid #cbd5e1; border-radius: 5px; padding: 0 6px; font-size: 12px; font-family: inherit; color: #0f172a; outline: none; margin: 0; width: 100%; }
  .mh-pform input:focus { border-color: #1e2a44; }
  .mh-pform-bar { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
  .mh-pform-bar button { height: 26px; padding: 0 12px; border-radius: 6px; border: 1px solid #cbd5e1; background: #fff; font-size: 11.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
  .mh-pform-bar button.ok { background: #1e2a44; border-color: #1e2a44; color: #fff; }
  .mh-pform-hint { font-size: 10.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 5px; padding: 2px 7px; }
  @media (max-width: 640px) { .mh-pform { grid-template-columns: minmax(0, 1fr); } }
  .mh-ptrk { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace !important; font-size: 10px; overflow-wrap: anywhere; }
  .mh-ppr { font-variant-numeric: tabular-nums; font-weight: 700; }
  .mh-pcost { display: block; margin-top: 2px; font-size: 9.5px; font-weight: 500; color: #94a3b8; font-variant-numeric: tabular-nums; white-space: normal; line-height: 1.3; }
  .mh-pcost > span { white-space: nowrap; }
  .mh-detail .mh-ptbl .c-qty-v { text-align: center; font-variant-numeric: tabular-nums; }
  .mh-detail .mh-ptbl .c-pr-v { text-align: right; }
  .mh-detail .mh-ptbl tr.un .mh-pnum, .mh-detail .mh-ptbl tr.un .mh-pnm, .mh-detail .mh-ptbl tr.un .mh-ppr, .mh-detail .mh-ptbl tr.un .c-qty-v { color: #94a3b8; text-decoration: line-through; }
  .mh-detail .mh-ptbl tr.un .mh-pcar { opacity: .5; }
  .mh-edit-select { height: 24px; padding: 0 4px; cursor: pointer; }
  .mh-table td.mh-money { text-align: right; color: #0f172a; font-weight: 600; font-variant-numeric: tabular-nums; }
  .mh-table td.mh-key { font-weight: 700; color: #1e2a44; font-variant-numeric: tabular-nums; }
  .mh-table td.mh-dim { color: #64748b; font-variant-numeric: tabular-nums; }
  .mh-empty { text-align: center !important; padding: 40px 20px !important; color: #94a3b8 !important; font-size: 13px !important; border: none !important; white-space: normal !important; height: auto !important; }
  .mh-empty.warn { color: #dc2626 !important; font-weight: 700; }
  .mh-pill { display: inline-block; max-width: 100%; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 17px; background: #f1f5f9; color: #475569; border: 1px solid transparent; }
  .mh-pill.oow  { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
  .mh-pill.iw   { background: #faf5ff; color: #7e22ce; border-color: #e9d5ff; }
  .mh-pill.ok   { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
  .mh-pill.amb  { background: #fffbeb; color: #b45309; border-color: #fde68a; }
  .mh-pill.blue { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
  .mh-pill.red  { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
  .mh-pill.pay  { background: #f8fafc; color: #334155; border-color: #e2e8f0; }
  .mh-table tbody tr.row-processed td:not(.spacer-col), .mh-table tbody tr.row-processed.mh-alt td:not(.spacer-col) { background-color: #ecfdf5; }
  .mh-table tbody tr.row-processed td.mh-chev { box-shadow: inset 3px 0 0 #10b981; }
  .mh-table tbody tr.row-processed:hover td:not(.spacer-col) { background-color: #d1fae5; }
  .mh-table tbody tr.row-processed.mh-open td:not(.spacer-col) { background-color: #d1fae5; }
  .mh-table tbody tr.row-processed td[data-k="ticket"]::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-right: 4px; border-radius: 50%; background: #10b981; color: #fff; font-size: 9.5px; font-weight: 900; vertical-align: 1px; }
  .mh-table tbody tr.row-processed td[data-k="ticket"] { padding-left: 5px; }
  .mh-table tbody tr.row-processed + tr.mh-detail-row .mh-detail { box-shadow: inset 3px 0 0 #10b981; background: #f3fdf8; border-color: #a7f3d0; }
  .mh-table tbody tr.row-processed + tr.mh-detail-row .mh-dbar { justify-content: space-between; }
  .mh-table tbody tr.row-processed + tr.mh-detail-row .mh-dbar::before { content: '✓ Updated'; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: #d1fae5; border: 1px solid #6ee7b7; color: #047857; font-size: 10.5px; font-weight: 800; }
  @media (pointer: coarse) {
    #mh-tbody tr.mh-row, #mh-tbody tr.mh-row * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
    #mh-tbody tr.mh-row.mh-hold { background: #eef2ff !important; outline: 2px solid #1e2a44; outline-offset: -2px; }
    .mh-right-click-menu.mh-sheet { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; border-radius: 22px 22px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0,0,0,.3); }
    .mh-right-click-menu.mh-sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: #e2e8f0; margin: 0 auto 10px; }
    .mh-right-click-menu.mh-sheet .mh-rc-item { height: 52px; border: 1.5px solid #e2e8f0; border-radius: 12px; font: 800 15px Inter, sans-serif; margin-top: 8px; padding: 0 14px; }
    .mh-right-click-menu.mh-sheet .mh-rc-item:first-child { background: #1e2a44; color: #fff; border-color: #1e2a44; }
    .mh-right-click-menu.mh-sheet .mh-rc-item svg { width: 18px; height: 18px; }
    .mh-right-click-menu.mh-sheet .mh-rc-sep { display: none; }
    .mh-right-click-menu.mh-sheet .mh-rc-x { display: flex; justify-content: center; align-items: center; height: 44px; margin-top: 6px; font: 800 15px Inter, sans-serif; color: #64748b; }
    .mh-sheet-dim { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 9999998; }
    .mh-right-click-menu.mh-sheet #mh-rc-icon { display: none; }
  }
  .mh-rc-x { display: none; } .mh-rc-touch { display: none; } @media (pointer: coarse) { .mh-rc-touch { display: flex; } }
  .mh-right-click-menu { position: fixed; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 12px 28px rgba(15,23,42,.16); border-radius: 10px; padding: 4px; z-index: 9999999; display: none; min-width: 180px; overflow: hidden; }
  .mh-rc-item { padding: 8px 10px; cursor: pointer; font-size: 12.5px; color: #1e293b; font-weight: 600; display: flex; align-items: center; gap: 8px; border-radius: 7px; }
  .mh-rc-item:hover { background-color: #f1f5f9; }
  .mh-rc-item svg { width: 15px; height: 15px; fill: #64748b; flex: 0 0 auto; }
  .mh-rc-item { white-space: nowrap; }
  .mh-rc-sep { height: 1px; margin: 4px 6px; background: #e2e8f0; }
  .mh-rc-item.mh-rc-del { color: #dc2626; } .mh-rc-item.mh-rc-del svg { fill: #dc2626; margin: 0 1px; } .mh-rc-item.mh-rc-del:hover { background: #fef2f2; }
  .col-resizer { position: absolute; top: 0; right: 0; width: 8px; cursor: col-resize; height: 100%; z-index: 11; touch-action: none; }
  .col-resizer::after { content: ''; position: absolute; right: 0; top: 25%; height: 50%; width: 1px; background: #cbd5e1; }
  .col-resizer:hover, .is-resizing .col-resizer { background: rgba(30,42,68,.22); }
  body.mh-col-resizing { cursor: col-resize !important; user-select: none !important; -webkit-user-select: none !important; }
  body.mh-col-resizing #mh-tbody, body.mh-col-resizing .mh-th-lbl { pointer-events: none; }
  #mh-rz-guide::after { content: attr(data-w); position: absolute; top: 4px; left: 6px; background: #1e2a44; color: #fff; font: 700 10.5px/1 Inter, sans-serif; padding: 3px 6px; border-radius: 5px; white-space: nowrap; }
  #mh-rz-guide:not([data-w])::after { display: none; }
  #mh-rz-guide { position: fixed; top: 0; width: 2px; contain: layout style; margin-left: -1px; background: #4f46e5; box-shadow: 0 0 0 1px rgba(79,70,229,.18); z-index: 9999998; pointer-events: none; display: none; will-change: transform; left: 0; }
  mark.mh-highlight { background-color: #fef08a; color: #713f12; font-weight: 700; padding: 0 1px; border-radius: 2px; }
  .mh-photo-thumb { width: 24px; height: 24px; object-fit: cover; border-radius: 5px; border: 1px solid #e2e8f0; cursor: pointer; vertical-align: middle; transition: transform .15s, box-shadow .15s; }
  .mh-photo-thumb:hover { transform: scale(1.25); box-shadow: 0 4px 10px rgba(0,0,0,.18); filter: none !important; opacity: 1 !important; }
  .is-truncated { text-decoration: underline dotted #94a3b8; text-underline-offset: 3px; }
  .is-truncated:hover { text-decoration-color: #1e2a44; }
  .mh-popover { position: fixed; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 14px 32px rgba(15,23,42,.18); border-radius: 10px; padding: 11px 13px; max-width: 350px; z-index: 999999; display: none; font-size: 11px; color: #0f172a; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; font-weight: 500; text-align: left; }
  .mh-edit-input { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 11.5px; font-weight: 600; padding: 3px 6px; height: 22px; border: 1.5px solid #1e2a44; border-radius: 5px; outline: none; color: #0f172a; background: #fff; margin: 0; }
  .mh-saving { color: #b45309; font-style: italic; }
  @media (max-width: 768px) {
    .mh-container { padding: 10px 10px 8px; }
    .mh-header { flex-wrap: wrap; margin-bottom: 8px; gap: 8px; }
    .mh-header h2 { font-size: 17px; }
    .mh-close-x { order: 2; }
    .mh-toolbar { order: 3; flex-basis: 100%; gap: 6px; }
    .mh-filter-group { flex-basis: 100%; gap: 5px; }
    .mh-filter-btn { padding: 0 10px; }
    .mh-filter-btn, .mh-stepper, .mh-pending-btn { flex: 0 0 auto; }
    .mh-search-wrap { max-width: none; flex: 1 1 auto; min-width: 0; }
    .mh-action-group { margin-left: 0; }
    .mh-action-btn span { display: none; }
    .mh-action-btn { padding: 0 9px; }
    .mh-table-wrapper { border-radius: 8px; }
    .mh-table td { height: 38px; font-size: 12px; padding: 5px 6px; }
    .mh-th-lbl { padding: 7px 8px 7px 6px; }
    .mh-table th.mh-chev-th, .mh-table tbody tr.mh-row td.mh-chev { width: 34px; min-width: 34px; max-width: 34px; }
    .mh-detail { margin: 0 4px 8px; padding: 6px 8px 8px; }
    .mh-grp[data-g="notes"] .mh-gbody { grid-template-columns: minmax(0, 1fr); }
    .mh-photo-thumb { width: 26px; height: 26px; }
    .mh-dphotos .mh-photo-thumb { width: 56px; height: 56px; }
    #mh-text-popover { display: none !important; }
  }
  #master-history-modal img.mh-dataimg { height:30px; max-width:120px; object-fit:contain; vertical-align:middle; background:#fff; border:1px solid #e2e8f0; border-radius:6px; padding:2px; cursor:zoom-in; }
  #master-history-modal img.mh-dataimg.big, #master-history-modal .mh-dval img.mh-dataimg { height:72px; max-width:240px; }
  #mh-imgview { position:fixed; inset:0; z-index:9999999; background:rgba(15,23,42,.75); display:none; align-items:center; justify-content:center; padding:20px; }
  #mh-imgview img { max-width:96vw; max-height:90vh; background:#fff; border-radius:12px; box-shadow:0 20px 50px rgba(0,0,0,.4); }
  .mh-detail .mh-ptbl td { white-space: nowrap; vertical-align: middle; }
  .mh-detail .mh-ptbl .c-num { width: 186px; } .mh-detail .mh-ptbl .c-pr { width: 150px; }
  .mh-ptbl td:first-child { overflow: hidden; text-overflow: ellipsis; }
  .mh-ptbl td:first-child > .mh-pnum { display: inline-block; vertical-align: middle; }
  .mh-ptbl td:first-child > .mh-ptag { margin: 0 0 0 6px; vertical-align: middle; }
  .mh-ptbl td.c-desc { overflow: hidden; }
  .mh-ptbl td.c-desc > .mh-pnm { display: inline-block; vertical-align: middle; max-width: 62%; }
  .mh-ptbl td.c-desc > .mh-pship { display: inline-flex; flex-wrap: nowrap; gap: 4px; margin: 0 0 0 6px; vertical-align: middle; max-width: 36%; overflow: hidden; }
  .mh-ptbl td.c-desc .mh-ptrk { font-family: inherit !important; font-size: 10px; color: #64748b; }
  .mh-ptbl td.c-pr-v { text-align: right; }
  .mh-ptbl .mh-prc { display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; }
  .mh-ptbl .mh-prc > .mh-pcost { display: block; flex: 0 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .mh-ptbl .mh-prc > .mh-ped { flex: 0 0 auto; width: 84px; box-sizing: border-box; text-align: right; }   
  .mh-detail .mh-ptbl .c-pr { width: 196px; }
  .mh-stack { position: relative; }
  .mh-grp { position: relative; }
  .mh-grp > :not(.mh-gt):not(.mh-rz) { zoom: var(--z, 1); }
  .mh-rz, .mh-zb { display: none; }
  #master-history-modal.mh-ledit .mh-grp { outline: 1.5px dashed #a5b4fc; outline-offset: -1px; }
  #master-history-modal.mh-ledit .mh-rz { display: block; position: absolute; z-index: 3; }
  #master-history-modal.mh-ledit .mh-rz-w { top: 0; bottom: 0; right: -7px; width: 10px; cursor: ew-resize; }
  #master-history-modal.mh-ledit .mh-rz-w::after { content: ''; position: absolute; top: 50%; left: 3px; width: 4px; height: 36px; margin-top: -18px; border-radius: 3px; background: #6366f1; opacity: .7; }
  #master-history-modal.mh-ledit .mh-rz-h { left: 0; right: 0; bottom: -2px; height: 10px; cursor: ns-resize; }
  #master-history-modal.mh-ledit .mh-rz-h::after { content: ''; position: absolute; left: 50%; top: 4px; width: 36px; height: 4px; margin-left: -18px; border-radius: 3px; background: #6366f1; opacity: .7; }
  #master-history-modal.mh-ledit .mh-rz-l { top: 30px; bottom: 6px; left: calc(9px + var(--lw, 90px) + 3px); width: 8px; cursor: col-resize; }
  #master-history-modal.mh-ledit .mh-rz-l::after { content: ''; position: absolute; top: 0; bottom: 0; left: 3px; border-left: 2px dotted #a5b4fc; }
  #master-history-modal.mh-ledit .mh-grp[data-g="parts"] .mh-rz-l, #master-history-modal.mh-ledit .mh-grp[data-g="photos"] .mh-rz-l, #master-history-modal.mh-ledit .mh-grp[data-g="sig"] .mh-rz-l { display: none; }
  #master-history-modal.mh-ledit .mh-zb { display: inline-flex; gap: 3px; margin-left: auto; }
  .mh-zb button { height: 18px; padding: 0 6px; border: 1px solid #c7d2fe; border-radius: 5px; background: #eef2ff; color: #3730a3; font-size: 10px; font-weight: 800; cursor: pointer; font-family: inherit; letter-spacing: 0; text-transform: none; }
  body.mh-resizing-w, body.mh-resizing-w * { cursor: ew-resize !important; user-select: none !important; }
  body.mh-resizing-h, body.mh-resizing-h * { cursor: ns-resize !important; user-select: none !important; }
  body.mh-resizing-l, body.mh-resizing-l * { cursor: col-resize !important; user-select: none !important; }
  .mh-grp[data-g="notes"] .mh-dfield[data-k="symptom"] { background: #f0f9ff; box-shadow: inset 3px 0 0 #38bdf8; border-radius: 6px; padding: 3px 6px 3px 9px; margin: 3px 0; border-bottom: none; }
  .mh-grp[data-g="notes"] .mh-dfield[data-k="technote"], .mh-grp[data-g="notes"] .mh-dfield[data-k^="note"] { background: #fffbeb; box-shadow: inset 3px 0 0 #fbbf24; border-radius: 6px; padding: 3px 6px 3px 9px; margin: 3px 0; border-bottom: none; }
  .mh-grp[data-g="notes"] .mh-dfield[data-k="symptom"] .mh-dlbl { color: #0284c7; }
  .mh-grp[data-g="notes"] .mh-dfield[data-k="technote"] .mh-dlbl, .mh-grp[data-g="notes"] .mh-dfield[data-k^="note"] .mh-dlbl { color: #b45309; }
  .mh-grp[data-g="notes"] .mh-dfield[data-k^="tags"] { background: #f8fafc; border-radius: 6px; padding: 3px 6px 3px 9px; margin: 3px 0; border-bottom: none; }
  @media (max-width: 768px) {
    #master-history-modal .mh-dgrid { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
    #master-history-modal .mh-dgrid > .mh-stack { flex: none !important; width: 100% !important; max-width: 100% !important; }
    #master-history-modal .mh-dgrid > .mh-gbrk { display: none; }
    #master-history-modal .mh-stack > .mh-grp { height: auto !important; overflow: visible !important; }
    #master-history-modal .mh-grp[data-g="photos"], #master-history-modal .mh-grp[data-g="sig"] { width: 100%; }
    #master-history-modal .mh-grp .mh-dval { white-space: pre-wrap !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere !important; }
    #master-history-modal .mh-grp[data-g="job"] .mh-gbody { grid-template-columns: minmax(0, 1fr); }
    #master-history-modal .mh-dlbl { white-space: normal; }
    #master-history-modal .mh-ptbl, #master-history-modal .mh-ptbl tbody { display: block; width: 100%; }
    #master-history-modal .mh-ptbl thead { display: none; }
    #master-history-modal .mh-ptbl tr.mh-prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
    #master-history-modal .mh-ptbl tr.mh-prow > td { display: block; width: auto !important; max-width: none !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; padding: 0 !important; border: none !important; }
    #master-history-modal .mh-ptbl tr.mh-prow > td:first-child { grid-column: 1; grid-row: 1; }
    #master-history-modal .mh-ptbl tr.mh-prow > td.c-qty-v { grid-column: 2; grid-row: 1; text-align: right; }
    #master-history-modal .mh-ptbl tr.mh-prow > td.c-qty-v::before { content: 'Qty '; font-size: 10px; color: #64748b; font-weight: 700; }
    #master-history-modal .mh-ptbl tr.mh-prow > td.c-qty-v > .mh-ped { display: inline-block; }
    #master-history-modal .mh-ptbl tr.mh-prow > td.c-desc { grid-column: 1 / -1; grid-row: 2; }
    #master-history-modal .mh-ptbl tr.mh-prow > td.c-pr-v { grid-column: 1 / -1; grid-row: 3; }
    #master-history-modal .mh-ptbl td.c-desc > .mh-pnm { display: inline; max-width: none; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
    #master-history-modal .mh-ptbl td.c-desc > .mh-pship { max-width: none; flex-wrap: wrap; }
    #master-history-modal .mh-ptbl .mh-prc > .mh-pcost { white-space: normal; overflow: visible; }
    #master-history-modal .mh-pnum { white-space: normal; overflow-wrap: anywhere; }
  }
  .mh-portal { text-decoration:none; display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; margin-left:6px; padding:0; border:1px solid #dbe3ee; border-radius:6px; background:#fff; color:#2563eb; cursor:pointer; vertical-align:middle; }
  .mh-portal svg { width:12px; height:12px; fill:currentColor; }
  .mh-tkw { display:inline-flex; align-items:center; min-width:0; max-width:100%; vertical-align:middle; }
  .mh-table tbody tr.row-processed td[data-k="ticket"] { white-space:nowrap; }
  .mh-table tbody tr.row-processed td[data-k="ticket"] .mh-tkw { max-width:calc(100% - 20px); }   
  .mh-tkw .mh-tkt { min-width:0; overflow:hidden; text-overflow:ellipsis; }
  .mh-tkw .mh-portal { flex:0 0 auto; }
  .mh-portal:hover { background:#eff6ff; border-color:#93c5fd; }
  .mh-portal.tsp-tklink { margin-left:3px !important; width:18px; height:18px; flex:0 0 auto; }   
  .mh-portal.tsp-tklink svg { width:11px; height:11px; }
  #qe-tk-link .mh-portal.tsp-tklink { width:46px; height:46px; margin-left:0 !important; }
  #qe-tk-link .mh-portal.tsp-tklink svg { width:18px; height:18px; }
  #tsp-portal { position:fixed; inset:0; z-index:95000; display:none; flex-direction:column; background:#fff; }
  #tsp-portal.open { display:flex; }
  #tsp-portal .tp-bar { display:flex; align-items:center; gap:10px; padding:10px 14px; background:#1e293b; color:#fff; font-family:Inter,-apple-system,'Segoe UI',sans-serif; }
  #tsp-portal .tp-t { flex:1; min-width:0; font-size:14px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #tsp-portal .tp-new { color:#bfdbfe; font-size:12.5px; font-weight:600; text-decoration:none; padding:6px 10px; border:1px solid #334155; border-radius:8px; white-space:nowrap; }
  #tsp-portal .tp-x { width:34px; height:34px; border:0; border-radius:50%; background:#ef4444; color:#fff; font-size:22px; line-height:1; cursor:pointer; }
  #tsp-portal .tp-note { padding:6px 14px; font:500 12px Inter,-apple-system,'Segoe UI',sans-serif; color:#64748b; background:#f8fafc; border-bottom:1px solid #e2e8f0; }
  #tsp-portal .tp-f { flex:1; width:100%; border:0; }
  .mh-sumbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -2px 0 10px; min-width: 0; }
  .mh-sumbar[hidden] { display: none !important; }
  .mh-sb-g { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; height: 36px; box-sizing: border-box; padding: 0 4px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
  .mh-sb-w { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px 0 8px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; white-space: nowrap; }
  .mh-sb-w b { min-width: 18px; height: 16px; padding: 0 6px; box-sizing: border-box; border-radius: 9px; background: #1e2a44; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
  .mh-sb-c { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: #334155; font-family: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .005em; white-space: nowrap; cursor: pointer; transition: background .12s, color .12s; }
  .mh-sb-c:hover { background: #f8fafc; }
  button.mh-sb-w { height: 28px; border: 0; border-radius: 7px; background: transparent; font-family: inherit; cursor: pointer; }   
  button.mh-sb-w:hover { background: #f1f5f9; color: #1e293b; }
  button.mh-sb-w.on, button.mh-sb-w.on:hover { background: #1e2a44; color: #fff; }
  button.mh-sb-w.on b { background: rgba(255,255,255,.18); }
  .mh-sb-c:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 1px; }
  .mh-sb-c i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
  .mh-sb-c b { min-width: 20px; height: 18px; padding: 0 6px; box-sizing: border-box; border-radius: 9px; background: #f1f5f9; color: #334155; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
  .mh-sb-c.on, .mh-sb-c.on:hover { background: #1e2a44; color: #fff; }
  .mh-sb-c.on b { background: rgba(255,255,255,.18); color: #fff; }
  .mh-sb-c.on i { box-shadow: 0 0 0 1.5px #fff; }
  @media (max-width: 640px) {   
    .mh-sumbar { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; gap: 0 6px; margin: 0 -10px 8px; padding: 0 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .mh-sumbar::-webkit-scrollbar { display: none; }
    .mh-sb-g { height: 30px; padding: 0 3px; gap: 1px; }
    .mh-sb-w { font-size: 9px; padding: 0 4px 0 6px; }
    .mh-sb-w b { height: 15px; font-size: 10px; padding: 0 5px; }
    .mh-sb-c { height: 24px; padding: 0 7px; gap: 5px; font-size: 11.5px; }
    .mh-sb-c i { width: 7px; height: 7px; flex-basis: 7px; }
    .mh-sb-c b { min-width: 16px; height: 16px; padding: 0 4px; font-size: 10.5px; }
  }
