/* V25.135
   1. (V25.136) Site font unchanged — Noto Sans TC override removed.
   2. Equipment status cards (車機／吊架／電動拖車／板台): one card per row, one shared row rhythm.
   3. Status detail bottom sheet.
   4. Status editor: blue dashed boxes for 備註說明／缺件待料／異常 BYPASS.
   5. Work log: overtime group cards, suggestions box styled like the record cards.
   Journal PDF / image export renders in its own document and is not affected by this file. */


/* ---------- shared row rhythm (cards + detail sheet use the same values) ---------- */
:root{--st135-row:30px;--st135-label:6.6em;--st135-gap:6px;--st135-label-color:#173049;--st135-value-color:#0d4f80;--st135-muted:#9aabba;--st135-line:#e8eef3}

/* one card per row */
#app :is(.machine-list,.sp-list,.tf-list){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
#app :is(.machine-list,.sp-list,.tf-list)>.st135-card{margin:0!important}

.st135-card{display:block;box-sizing:border-box;width:100%;min-width:0;background:#fff;border:0;border-radius:16px;padding:14px 16px 12px;box-shadow:0 4px 14px rgba(38,82,119,.07);text-align:left;color:#173049}
.st135-rows{margin:0;padding:0}
.st135-row{display:grid;grid-template-columns:var(--st135-label) minmax(0,1fr);column-gap:8px;align-items:start;margin:0;padding:4px 0;min-height:var(--st135-row);line-height:22px;font-size:15px;box-sizing:border-box}
.st135-row.st135-head{display:flex;flex-wrap:wrap;align-items:flex-start;column-gap:8px;row-gap:4px}
.st135-row.st135-head>.st135-k{flex:0 0 var(--st135-label);box-sizing:border-box;padding-right:0}
.st135-row.st135-head>.st135-v{flex:0 0 auto;white-space:nowrap;margin-left:0}
.st135-row.st135-head>.st135-chips{margin-left:auto}
.st135-row>.st135-k{color:var(--st135-label-color);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st135-row>.st135-v{color:var(--st135-value-color);font-weight:700;min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}
.st135-row>.st135-v.st135-none{color:var(--st135-muted);font-weight:500}
.st135-row>.st135-chips{align-self:flex-start;margin-top:1px;max-width:100%}

.st135-chips{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--st135-gap);min-width:0}
.st135-btns{display:inline-flex;gap:14px;margin-left:auto}
.st135-chip{display:inline-flex;align-items:center;box-sizing:border-box;font-size:12px;font-weight:700;line-height:20px;padding:0 9px;border-radius:999px;border:1px solid;white-space:nowrap}
.st135-ok{color:#178a4c;background:#e8f7ee;border-color:#b6e2c7}
.st135-fault{color:#c0202f;background:#fdecee;border-color:#f3b8bf}
.st135-part{color:#b5651d;background:#fff4e6;border-color:#f2c99a}
.st135-bypass{color:#7a5c00;background:#fff8d6;border-color:#e8d27a}
.st135-work{color:#6b3fa0;background:#f3ecfb;border-color:#d3c0ea}

.st135-acts{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:8px;padding-top:10px;border-top:1px solid var(--st135-line)}
.st135-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;margin:0;font:inherit;font-size:12px!important;font-weight:700!important;line-height:20px!important;padding:0 9px!important;min-height:0!important;height:auto!important;border-radius:999px!important;border:1px solid #bad1e0!important;background:#edf5fc!important;color:#1468a6!important;box-shadow:none!important;cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent}
/* larger invisible tap area, same look */
.st135-btn::before{content:"";position:absolute;inset:-10px -7px}
.st135-btn:active{background:#dcebf8!important}

/* ---------- detail bottom sheet ---------- */
.st135-back{position:fixed;inset:0;z-index:30500;background:rgba(10,30,50,.45);display:flex;align-items:flex-end;justify-content:center;animation:st135fade .18s ease-out}
.st135-sheet{box-sizing:border-box;width:100%;max-width:560px;max-height:86vh;max-height:86dvh;display:flex;flex-direction:column;background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -6px 24px rgba(0,0,0,.18);color:#173049;animation:st135up .22s ease-out;transition:transform .2s ease-out}
.st135-grab{flex:0 0 auto;padding:10px 0 8px;touch-action:none;cursor:grab}
.st135-grab::before{content:"";display:block;width:44px;height:5px;border-radius:9px;background:#cfd9e2;margin:0 auto}
.st135-body{flex:1 1 auto;overflow:auto;-webkit-overflow-scrolling:touch;padding:0 18px 4px;overscroll-behavior:contain}
.st135-sec{border-top:1px solid var(--st135-line);margin-top:6px;padding-top:6px}
.st135-sec-head{display:flex;align-items:center;justify-content:space-between;min-height:var(--st135-row);line-height:22px;padding:4px 0;box-sizing:border-box;font-size:15px;font-weight:700;color:var(--st135-label-color)}
.st135-wi{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:start;min-height:var(--st135-row);line-height:22px;padding:4px 0;box-sizing:border-box;font-size:15px}
.st135-wi>b{color:var(--st135-value-color);font-weight:700;overflow-wrap:anywhere}
.st135-wi>small{color:#6b8196;font-size:13px;font-weight:500;white-space:nowrap}
.st135-wi-more{font-size:13px;color:#6b8196;line-height:22px;padding:4px 0}
.st135-foot{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px 14px;margin:6px 18px 0;padding:10px 0 calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--st135-line)}
.st135-updated{flex:1 1 auto;font-size:14px;color:#52718c;white-space:nowrap;line-height:22px}
html.st135-lock,html.st135-lock body{overflow:hidden!important}
@keyframes st135fade{from{opacity:0}to{opacity:1}}
@keyframes st135up{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}

/* ---------- status editor: blue dashed boxes ---------- */
#status101 .st135-dash{display:block;box-sizing:border-box;width:100%;margin:0;border:2px dashed #8fb6d6!important;background:#f4f9fd!important;color:#1468a6!important;border-radius:12px!important;padding:12px!important;text-align:center;font:inherit;font-size:15px!important;font-weight:700!important;line-height:1.4!important;box-shadow:none!important;cursor:pointer;min-height:0!important;height:auto!important}
#status101 .st135-dash small{display:block;margin-top:2px;font-size:13px;font-weight:500;color:#4f7ea3}
#status101 .st135-dash.st135-dash-sm{border-width:1.5px!important;padding:9px!important;font-size:14px!important;margin-top:8px}
#status101 #addPart101.st135-hidden{display:none!important}
#status101 #parts101{background:none!important;border:0!important;padding:0!important;box-shadow:none!important;min-height:0!important;display:grid;gap:8px}
#status101 #parts101:empty{display:none!important}
#status101 .status102-part{border:1px solid #8fb6d6!important;background:#f4f9fd!important;border-radius:12px!important}
#status101 .status102-part strong{color:#1468a6!important}
#status101 :is(#note101,#bypass101){border-color:#8fb6d6!important;background:#f4f9fd!important}
#status101 #note101.st135-req,#status101 #note101.st135-req:focus{border-color:#d63a3a!important;background:#fff!important;outline-color:#d63a3a!important;box-shadow:0 0 0 3px rgba(214,58,58,.15)!important}

/* ---------- work log ---------- */
#worklogBody .record-card125[data-record-kind="overtime"] .st135-names span{white-space:nowrap}
#worklogBody #wlSuggestions.st135-suggest{background:#fcfaf6!important;border:1px solid #e8e5df!important;border-radius:14px!important;box-shadow:none!important;padding:12px!important;color:#111!important}
#wlModal .st135-ot-names{margin:-2px 0 10px;font-size:14px;line-height:1.6;color:#153f63;overflow-wrap:anywhere}
#wlModal .st135-ot-names:empty{display:none}
#wlModal .st135-ot-pick{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st135-picker .worker-options{max-height:52vh;overflow:auto}

/* ---------- V25.136: on-duty staff in two lines inside one box ---------- */
#attendanceNotes108.att136.expanded116{display:block!important;max-height:none;border:1px solid #d8e3ec;border-radius:12px;padding:10px;margin-top:8px}
#attendanceNotes108.att136 .att136-row{display:flex;flex-wrap:wrap;gap:8px}
#attendanceNotes108.att136 .att136-row[hidden]{display:none!important}
#attendanceNotes108.att136 .att136-plain:not([hidden])+.att136-noted:not([hidden]){border-top:1px dashed #cfdbe6;margin-top:10px;padding-top:10px}
#attendanceNotes108.att136 .attendance-chip116.att136-n{background:#fff8ee!important;border-color:#f2c99a!important;white-space:normal;text-align:left}
#attendanceNotes108.att136 .attendance-chip116.att136-n small{font-size:13px;font-weight:500;color:#9a5a12}

/* ---------- V25.137 ---------- */
/* status cards: cream background like the work-log record cards */
.st135-card{background:#fcfaf6!important;border:1px solid #e8e5df!important;box-shadow:none!important}
.st135-card .st135-acts{border-top-color:#ece9e3}
/* detail sheet: filled note / parts / BYPASS in vermilion */
.st135-row>.st135-v.st135-alert{color:#d9480f}
.st135-wi>b{display:flex;align-items:flex-start;gap:4px;grid-column:1/-1}
.st135-wi .st135-no{flex:0 0 auto;font-variant-numeric:tabular-nums;min-width:1.65em}
.st135-wi .st135-wt{min-width:0}
/* editor parts rows: number + text, small edit / delete chips on the right */
#status101 #parts101 .status102-part{display:grid!important;grid-template-columns:3.3em minmax(0,1fr) auto auto!important;align-items:center!important;column-gap:8px!important;padding:8px 10px!important;min-height:0!important}
#status101 #parts101 .status102-part>strong{font-size:14px!important;white-space:nowrap;margin:0!important}
#status101 #parts101 .status102-part>span{font-size:15px;line-height:1.5;overflow-wrap:anywhere;margin:0!important;color:#173049}
#status101 #parts101 .status102-part>button{grid-row:1;margin:0!important;font-size:12px!important;font-weight:700!important;line-height:20px!important;padding:0 9px!important;min-height:0!important;height:auto!important;width:auto!important;border-radius:999px!important;box-shadow:none!important;position:relative}
#status101 #parts101 .status102-part>button::before{content:"";position:absolute;inset:-10px -5px}
#status101 #parts101 .status102-part>.mnr-secondary{background:#edf5fc!important;border:1px solid #bad1e0!important;color:#1468a6!important}
#status101 #parts101 .status102-part>.mnr-danger{background:#fdecee!important;border:1px solid #f3b8bf!important;color:#c0202f!important}
#status101 #parts101 .status102-part>strong{grid-column:1!important;grid-row:1!important}
#status101 #parts101 .status102-part>span{grid-column:2!important;grid-row:1!important}
#status101 #parts101 .status102-part>.mnr-secondary{grid-column:3!important}
#status101 #parts101 .status102-part>.mnr-danger{grid-column:4!important}

/* V25.137: detail opens as a centered dialog with × (no bottom sheet) */
.st135-back{align-items:center!important;padding:16px;box-sizing:border-box}
.st135-sheet{position:relative;max-width:520px;max-height:86vh;max-height:86dvh;border-radius:18px!important;animation:st135pop .18s ease-out!important}
.st135-sheet .st135-body{padding:0 18px 4px}
.st135-x{position:relative;width:36px;height:36px;border-radius:50%;border:1px solid #d3dee8;background:#fff;color:#173049;font-size:22px;line-height:1;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.08);padding:0}
.st135-x::before{content:"";position:absolute;inset:-6px}
.st135-top{flex:0 0 auto;display:flex;justify-content:flex-end;padding:10px 10px 6px}
.st135-foot{flex-direction:column;align-items:stretch!important;gap:12px!important;padding:14px 0 calc(18px + env(safe-area-inset-bottom,0px))!important}
.st135-foot .st135-updated{white-space:normal;text-align:center}
.st135-edit-big{width:100%;height:46px;border:0;border-radius:12px;background:#c62a3a;color:#fff;font:inherit;font-size:17px;font-weight:700;cursor:pointer;box-shadow:0 3px 10px rgba(198,42,58,.25)}
.st135-edit-big:active{background:#a8202f}
@keyframes st135pop{from{transform:scale(.96);opacity:.5}to{transform:none;opacity:1}}
.st135-sheet{background:#fcfaf6!important;outline:1px solid #e8e5df;outline-offset:-1px}
.st135-sheet .st135-x{background:#fff}

/* ======================= V25.137 ======================= */
/* entry tiles (待辦／工作日誌及加班查詢) — same look as the home cards */
.st137-tiles{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:4px}
.st137-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;background:#fff;border:1px solid #dfe8f0;border-radius:20px;padding:22px 10px 20px;box-shadow:0 6px 18px rgba(38,82,119,.08);text-align:center;font:inherit;color:#173049;cursor:pointer;-webkit-tap-highlight-color:transparent}
.st137-tile:active{background:#f4f9fd}
.st137-tile-t{display:block;font-size:21px;font-weight:800;line-height:1.3;color:#173049;white-space:nowrap}
.st137-tile-e{display:block;margin-top:6px;font-size:14px;font-weight:700;color:#6b8196}
.st137-tile-n{display:none;margin-top:10px;font-size:12px;font-weight:700;line-height:20px;padding:0 9px;border-radius:999px;border:1px solid #d3c0ea;background:#f3ecfb;color:#6b3fa0;white-space:nowrap}
.st137-tile-n.st137-on{display:inline-flex}
.st137-tile-n.st137-zero{border-color:#dfe8f0;background:#f4f7fa;color:#8a9bab}

/* 待辦清單 */
#v257WorkCenter.st137-wc .v257-work-head{margin-bottom:10px!important}
#v257WorkCenter.st137-wc .work-filter116{display:flex!important;align-items:center!important;gap:10px!important;white-space:nowrap!important;font-size:14px!important;font-weight:700!important;color:#173049!important;margin:0 0 10px!important}
#v257WorkCenter.st137-wc .work-filter116 .mnr-select-button{flex:1 1 auto!important;min-width:0!important;min-height:44px!important;height:44px!important}
#v257WorkCenter.st137-wc .v257-work-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:0 0 10px!important}
#v257WorkCenter.st137-wc .v257-work-tabs>button{min-height:42px!important;height:42px!important;font-size:15px!important;border-radius:12px!important;padding:0!important}
#v257WorkCenter.st137-wc #v2515TabNew{display:none!important}
#v257WorkCenter.st137-wc .st137-wc-new{display:block;width:100%;box-sizing:border-box;margin:0 0 10px;border:1.5px dashed #8fb6d6;background:#f4f9fd;color:#1468a6;border-radius:12px;padding:9px;font:inherit;font-size:14px;font-weight:700;text-align:center;cursor:pointer}
#v257WorkCenter.st137-wc #v2515TabNew.active~.st137-wc-new,#v257WorkCenter.st137-wc .v257-work-tabs:has(#v2515TabNew.active)+.st137-wc-new{border-style:solid;border-color:#1468a6;background:#e3eff9}
#v257WorkCenter.st137-wc .v257-work-body{padding:10px!important}
#v257WorkCenter.st137-wc .v2515-batch-bar{display:flex!important;justify-content:space-between!important;align-items:center!important;margin:0 2px 8px!important}
#v257WorkCenter.st137-wc .st137-wc-n{font-size:14px;color:#52718c;font-weight:700}
#v257WorkCenter.st137-wc .v2515-batch-link{font-size:12px!important;line-height:20px!important;padding:0 10px!important;min-height:0!important;height:auto!important;border-radius:999px!important}
#v257WorkCenter.st137-wc .v257-completed-list{gap:8px!important}
#v257WorkCenter.st137-wc .v2515-batch-row{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;column-gap:10px!important;align-items:start!important;padding:11px 12px!important;border-radius:12px!important}
#v257WorkCenter.st137-wc .v2515-row-check{margin:2px 0 0!important;width:20px!important;height:20px!important}
#v257WorkCenter.st137-wc .v2515-batch-row-body{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:8px!important;row-gap:4px!important;align-items:center!important;min-width:0}
#v257WorkCenter.st137-wc .v2515-batch-row-body>strong{grid-column:1/-1!important;grid-row:1!important;font-size:15px!important;line-height:22px!important;overflow-wrap:anywhere}
#v257WorkCenter.st137-wc .v2515-batch-row-body>small{grid-column:1!important;grid-row:2!important;font-size:13px!important;line-height:20px!important;margin:0!important;min-width:0}
#v257WorkCenter.st137-wc .v2515-row-actions{float:none!important;grid-column:2!important;grid-row:2!important;margin:0!important;gap:8px!important;align-self:start}
#v257WorkCenter.st137-wc .v2515-row-actions button{font-size:12px!important;font-weight:700!important;line-height:20px!important;padding:0 10px!important;min-height:0!important;height:auto!important;border-radius:999px!important;border:1px solid!important;box-shadow:none!important;white-space:nowrap}
#v257WorkCenter.st137-wc .v2515-edit-btn{color:#178a4c!important;background:#e8f7ee!important;border-color:#b6e2c7!important}
#v257WorkCenter.st137-wc .work-delete{color:#c0202f!important;background:#fdecee!important;border-color:#f3b8bf!important}
#v257WorkCenter.st137-wc .v2515-batch-footer{flex-direction:row!important;gap:8px!important;background:#fff!important;bottom:-10px!important;margin:8px -10px -10px!important;padding:10px!important;border-top:1px solid #e8eef3;border-radius:0 0 14px 14px;z-index:2}
#v257WorkCenter.st137-wc .v2515-batch-footer>button{flex:1 1 0!important;min-height:42px!important;height:42px!important;font-size:14px!important;margin:0!important;border-radius:12px!important;padding:0 6px!important}
#v257WorkCenter.st137-wc .v2515-batch-footer .machine-add:disabled{opacity:1!important;background:#e4dcf4!important;color:#8b7bb0!important}
#v257WorkCenter.st137-wc .v2515-batch-footer .v2515-batch-delete:disabled{opacity:1!important;background:#fff!important;color:#d9a0a8!important}

/* 日誌查詢表單 */
.st137-jq .journal-query-types112{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
.st137-jq .journal-query-types112 label{min-height:46px!important;height:46px!important;padding:0 12px!important;justify-content:center!important;margin:0!important;font-size:15px!important;box-sizing:border-box}
.st137-jq .st137-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
.st137-jq .st137-pair .sp-field{margin:0!important;min-width:0}
.st137-jq .st137-dates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.st137-jq .st138-df{position:relative;min-width:0}
.st137-jq .st137-dates input{width:100%;box-sizing:border-box;height:52px!important;min-height:52px!important;border-radius:12px!important;background:#edf5fb!important;border:1px solid #b8d0e2!important;box-shadow:none!important;color:#153f63!important;font-family:inherit!important;font-size:15px!important;font-weight:750!important;text-align:center;padding:0 10px!important;min-width:0}
.st137-jq .st137-dates input.st138-empty{color:transparent!important}.st137-jq .st137-dates input.st138-empty::-webkit-datetime-edit{color:transparent}
.st137-jq .st138-dp{position:absolute;left:0;right:30px;top:50%;transform:translateY(-50%);text-align:center;pointer-events:none;font-size:15px;font-weight:700;color:#153f63;white-space:nowrap;overflow:hidden}.st137-jq .st138-dp[hidden]{display:none}
.st137-jq .st137-quick{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.st137-jq .st137-quick button{font:inherit;font-size:12px;font-weight:700;line-height:20px;padding:2px 10px;border-radius:999px;border:1px solid #bad1e0;background:#edf5fc;color:#1468a6;cursor:pointer}
.st137-jq .st137-quick button.st137-on{background:#1468a6;color:#fff;border-color:#1468a6}
.st137-jq .wl-add-btn.st137-run{display:block!important;width:100%!important;height:50px!important;min-height:50px!important;margin-top:16px!important;border-radius:14px!important;font-size:17px!important;font-weight:800!important;background:#134b80!important;color:#fff!important;border:0!important}

/* 日誌查詢結果 */
.st137-jr-sum{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 2px 6px;font-size:14px;font-weight:700;color:#52718c}
.st137-jr-day{margin:16px 2px 8px;font-size:15px;font-weight:800;color:#173049;display:flex;align-items:center;gap:8px}
.st137-jr-day::after{content:"";flex:1;height:1px;background:#dfe8f0}
#wlQueryResult .wl-query-result.st137-jr{background:#fcfaf6!important;border:1px solid #e8e5df!important;border-radius:14px!important;box-shadow:none!important;padding:12px 14px!important;margin:0 0 10px!important;color:#173049}
.st137-jr-head{display:flex;align-items:center;gap:8px;min-width:0}
.st137-jr-dev{font-size:16px;font-weight:800;color:#0d4f80;min-width:0;overflow-wrap:anywhere}
.st137-jr-time{margin-left:auto;font-size:13px;font-weight:700;color:#52718c;white-space:nowrap}
.st137-jr-body{margin-top:6px;font-size:15px;line-height:1.6;color:#1f2d3a;overflow-wrap:anywhere}
.st137-jr-foot{display:flex;align-items:flex-start;gap:8px;margin-top:8px}
.st137-jr-tags{display:flex;flex-wrap:wrap;gap:6px;flex:1;min-width:0}
.st137-jr-tags span{font-size:13px;font-weight:700;line-height:22px;padding:0 9px;border-radius:999px;background:#eef3f8;color:#3c556c}
.st137-jr-by{margin-left:auto;font-size:12px;color:#8a9bab;white-space:nowrap;line-height:22px}

/* 加班查詢 */
body #app button.ot-range-button{text-align:center!important}
body #app .ot-person-filter .mnr-select-button{justify-content:center!important;position:relative!important;margin-top:7px!important;padding-left:34px!important;padding-right:34px!important}
body #app .ot-person-filter .mnr-select-button::after{position:absolute!important;right:14px!important;top:50%!important;bottom:auto!important;margin:0!important;transform:translateY(-50%)!important}
.ot-actions.st137-ot-act{display:flex!important;align-items:center!important;gap:10px!important;margin:4px 2px 10px!important}
.st137-ot-sum{font-size:14px;font-weight:700;color:#52718c}.st137-ot-sum b{color:#0d4f80;font-size:16px}
.ot-actions.st137-ot-act #otExport{margin-left:auto!important;font-size:13px!important;font-weight:700!important;line-height:20px!important;min-height:0!important;height:auto!important;padding:5px 12px!important;border-radius:999px!important;border:1px solid #f3b8bf!important;background:#fdecee!important;color:#c0202f!important;box-shadow:none!important}
.ot-actions.st137-ot-act #otExport:disabled{opacity:.5}
#otResults:has(.st137-ot-wrap){gap:10px!important}
#otResults .ot-person-total.st137-ot-wrap{display:block!important;padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important}
#otResults .ot-person-total.st137-ot-wrap>:not(.st137-ot){display:none!important}
.st137-ot{display:block;width:100%;box-sizing:border-box;text-align:left;font:inherit;background:#fcfaf6;border:1px solid #e8e5df;border-radius:14px;padding:12px 14px;color:#173049;cursor:pointer;-webkit-tap-highlight-color:transparent}
.st137-ot:active{background:#f6f2ea}
.st137-ot-r1,.st137-ot-r2{display:flex;align-items:center;gap:8px}
.st137-ot-r2{margin-top:4px}
.st137-ot-name{font-size:17px;font-weight:800}
.st137-ot-tot{margin-left:auto;font-size:22px;font-weight:800;color:#1468a6;white-space:nowrap}.st137-ot-tot small{font-size:13px;font-weight:700;color:#52718c;margin-left:3px}
.st137-ot-split{font-size:14px;color:#52718c}.st137-ot-split b{color:#173049;font-weight:700}
.st137-ot-more{margin-left:auto;font-size:12px;font-weight:700;line-height:20px;padding:0 9px;border-radius:999px;border:1px solid #bad1e0;background:#edf5fc;color:#1468a6;white-space:nowrap}

/* 狀態頁統計小卡（車機／吊架／電動拖車／板台） */
#app .grad-stat-grid.st137-stats,#app .grad-stat-grid:has(>.st137-stat){display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;grid-template-columns:none!important;gap:8px!important}
#app .grad-stat.st137-stat{min-height:0!important;height:auto!important;padding:10px 4px 9px!important;border-radius:14px!important;box-shadow:none!important;text-align:center!important;background:var(--t-bg)!important;border:1.5px solid var(--t-bd)!important;color:var(--t-c)!important;display:flex!important;flex-direction:column!important;align-items:center!important;outline:0!important;min-width:0}
#app .grad-stat.st137-stat :is(.grad-sub,.grad-arrow,.grad-tagpill){display:none!important}
#app .grad-stat.st137-stat .grad-num{font-size:26px!important;line-height:1.1!important;color:var(--t-c)!important;margin:0!important;text-shadow:none!important}
#app .grad-stat.st137-stat .grad-lbl{font-size:13px!important;line-height:1.3!important;margin:2px 0 0!important;color:var(--t-c)!important;white-space:nowrap!important;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#app .grad-stat.st137-stat.g-green{--t-bg:#e8f7ee;--t-bd:#b6e2c7;--t-c:#178a4c}
#app .grad-stat.st137-stat.g-red{--t-bg:#fdecee;--t-bd:#f3b8bf;--t-c:#c0202f}
#app .grad-stat.st137-stat.g-orange{--t-bg:#fff4e6;--t-bd:#f2c99a;--t-c:#b5651d}
#app .grad-stat.st137-stat.g-yellow{--t-bg:#fff8d6;--t-bd:#e8d27a;--t-c:#7a5c00}
#app .grad-stat.st137-stat.g-blue{--t-bg:#edf5fc;--t-bd:#bad1e0;--t-c:#1468a6}
#app .grad-stat.st137-stat.g-purple{--t-bg:#f3ecfb;--t-bd:#d3c0ea;--t-c:#6b3fa0}
#app .grad-stat.st137-stat.is-active{background:var(--t-c)!important;border-color:var(--t-c)!important}
#app .grad-stat.st137-stat.is-active :is(.grad-num,.grad-lbl){color:#fff!important}
@media(max-width:360px){
 #v257WorkCenter.st137-wc .v2515-batch-row-body>small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #v257WorkCenter.st137-wc .v2515-row-actions{gap:6px!important}
 #v257WorkCenter.st137-wc .v2515-row-actions button{padding:0 8px!important}
 #v257WorkCenter.st137-wc .v2515-batch-footer>button{font-size:13px!important;white-space:nowrap!important}
 .st137-jq .journal-query-types112 label{font-size:14px!important;padding:0 6px!important;white-space:nowrap!important;gap:6px!important}
 body #app .ot-person-filter .mnr-select-button{padding-left:24px!important;padding-right:28px!important;white-space:nowrap!important}
 body #app .ot-person-filter .mnr-select-button::after{right:10px!important}
 .ot-actions.st137-ot-act{flex-wrap:wrap!important}
 #app .grad-stat.st137-stat{padding:9px 2px 8px!important}
 #app .grad-stat.st137-stat .grad-num{font-size:23px!important}
 #app .grad-stat.st137-stat .grad-lbl{font-size:11.5px!important;letter-spacing:0!important}
}

/* ======================= V25.138 ======================= */
/* 1. 建議及待處理事項 = 紀錄卡片字型 */
#worklogBody #wlSuggestions.st135-suggest{font-family:inherit!important;font-size:16px!important;font-weight:400!important;line-height:1.65!important;color:#111!important;overflow:hidden!important;resize:none!important;min-height:90px}
@media(max-width:600px){#worklogBody #wlSuggestions.st135-suggest{font-size:14px!important}}

/* 2. 加班查詢（電腦版）日期框 = 日誌查詢 */
body #app .ot-dates input{background:#edf5fb!important;border:1px solid #b8d0e2!important;box-shadow:none!important;border-radius:12px!important;color:#214d70!important;font-family:inherit!important;font-size:15px!important;font-weight:750!important;text-align:center!important}

/* 3/5. 查詢頁「＋ 手動新增紀錄」藍色虛線 */
body #app .query123 :is(.actions123,.ledger-actions106)>button.st138-add{background:#f4f9fd!important;color:#1468a6!important;border:1.5px dashed #8fb6d6!important;box-shadow:none!important}

/* 7/9. 選取零件更換紀錄／選取故障維修紀錄 */
.results123 :is(#ledgerDialogTools>div,.result-tools123>div){display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;margin:0!important}
.results123 :is(#ledgerTotal138,#rlTotal138){margin-right:auto;font-size:14px;font-weight:700;color:#52718c;white-space:nowrap}
.results123 :is(#ledgerNone,#rlNone116){display:none!important}
.results123 :is(#ledgerAll,#ledgerRefresh,#rlAll116){font-size:12px!important;font-weight:700!important;line-height:20px!important;min-height:0!important;height:auto!important;padding:2px 10px!important;border-radius:999px!important;border:1px solid #bad1e0!important;background:#edf5fc!important;color:#1468a6!important;box-shadow:none!important;margin:0!important;white-space:nowrap}
.results123 footer{display:flex!important;align-items:center!important;gap:8px!important;padding-top:10px!important;border-top:1px solid #e8eef3!important}
.results123 footer :is(#ledgerCount,#rlCount){margin:0!important;font-size:13px!important;font-weight:700!important;color:#52718c!important;white-space:nowrap}
.results123 footer .exports123{display:flex!important;flex:1 1 auto!important;gap:8px!important;margin:0!important}
.results123 footer .exports123>button{flex:1 1 0!important;height:42px!important;min-height:42px!important;font-size:14px!important;border-radius:12px!important;margin:0!important;padding:0 6px!important;white-space:nowrap}
.results123 footer .exports123>button:disabled{opacity:.45!important}
:is(.lg138-card,.rl138-card).mnr-ledger-record{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;column-gap:10px!important;align-items:start!important;background:#fcfaf6!important;border:1px solid #e8e5df!important;border-radius:14px!important;box-shadow:none!important;padding:11px 12px!important;margin:0 0 10px!important;color:#173049}
:is(.lg138-pick,.rl138-pick){display:block;margin:2px 0 0;cursor:pointer}
:is(.lg138-pick,.rl138-pick) input{width:20px;height:20px;margin:0}
:is(.lg138-main,.rl138-main){min-width:0}
.lg138-head{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:center}
:is(.lg138-dev,.rl138-dev){font-size:16px;font-weight:800;color:#0d4f80;line-height:1.35;overflow-wrap:anywhere}
.lg138-src{font-size:12px;font-weight:700;line-height:20px;padding:0 9px;border-radius:999px;border:1px solid #dfe6ec;background:#f1f4f7;color:#52718c;white-space:nowrap}
.lg138-time{margin-top:2px;font-size:13px;font-weight:700;color:#52718c}
.rl138-time{margin-top:2px;font-size:14px;font-weight:400;color:#52718c}
:is(.lg138-text,.rl138-text){margin-top:6px;font-size:14.5px;line-height:1.6;color:#1f2d3a;white-space:pre-wrap;overflow-wrap:anywhere}
.lg138-text b{color:#0d4f80;font-weight:800}
.lg138-text:empty{display:none}
:is(.lg138-foot,.rl138-foot){display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;margin-top:8px}
.lg138-by{margin-right:auto;font-size:12px;color:#8a9bab;white-space:nowrap}
:is(.lg138-foot,.rl138-foot)>button{font-size:12px!important;font-weight:700!important;line-height:20px!important;min-height:0!important;height:auto!important;padding:0 10px!important;border-radius:999px!important;border:1px solid #bad1e0!important;background:#edf5fc!important;color:#1468a6!important;box-shadow:none!important;margin:0!important;white-space:nowrap}
:is(.lg138-foot,.rl138-foot)>button.mnr-danger{border-color:#f3b8bf!important;background:#fdecee!important;color:#c0202f!important}

/* 8. 全站 × 放在框內右上角 */
.mnr-editor-overlay.x138>.mnr-editor-panel{max-height:calc(100vh - 32px)!important;max-height:calc(100dvh - 32px)!important}
.x138-row{position:sticky;top:0;z-index:6;display:flex;justify-content:flex-end;pointer-events:none;flex:0 0 auto;border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}
body .x138-row>.mnr-floating-close{position:static!important;top:0!important;right:0!important;left:auto!important;bottom:auto!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;font-family:inherit!important;font-size:22px!important;font-weight:700!important;line-height:1!important;border-radius:50%!important;border:1px solid #d3dee8!important;background:#fff!important;color:#173049!important;box-shadow:0 2px 8px rgba(0,0,0,.08)!important;pointer-events:auto;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important}

@media(max-width:360px){.st137-jq .st138-dp{font-size:13px;right:24px}.st137-jq .st137-dates input{padding:0 6px!important}}

/* ======================= V25.139 ======================= */
/* 新增維修紀錄、新增更換紀錄等表單：選單與輸入框字型同日誌表單（深藍粗字） */
body :is(#wlModal,#mnrOverlay).ui124{--field-text:#153f63;--field-hint:#153f63;--field-weight:700}
body :is(#wlModal,#mnrOverlay) :is(select,input,textarea,button){font-family:inherit}
body #wlModal.ui124 .sp-modal :is(select,input.sp-input){font-weight:var(--field-weight,700)!important;color:var(--field-text,#153f63)!important}

/* ======================= V25.140 ======================= */
/* 1. 複選視窗統一（選擇設備類別／設備編號／資料來源／加班人員／簽名人員…） */
:is(.workflow116,.st135-picker,.signature110) .sp-desc-modal h2{font-size:19px!important;line-height:1.4!important;margin:0 0 12px!important;color:#173049!important}
:is(.workflow116,.st135-picker,.signature110) .sp-desc-modal>.sp-input,.workflow116 .body116>input.sp-input{height:44px!important;min-height:44px!important;border-radius:12px!important;font-size:15px!important}
.workflow116 .multi-tools116{display:flex!important;justify-content:flex-end!important;gap:8px!important;margin:0!important}
.workflow116 .multi-tools116>button{font-size:12px!important;font-weight:700!important;line-height:20px!important;min-height:0!important;height:auto!important;width:auto!important;padding:3px 12px!important;border-radius:999px!important;border:1px solid #bad1e0!important;background:#edf5fc!important;color:#1468a6!important;box-shadow:none!important}
:is(.multi-list116,.st135-picker .worker-options,.signature110 .worker-options){background:#fff!important;border:1px solid #e3ebf2!important;border-radius:12px!important;padding:0!important;display:block!important;overflow:auto}
:is(.multi-list116,.st135-picker .worker-options,.signature110 .worker-options)>label{display:flex!important;align-items:center!important;gap:12px!important;min-height:46px!important;margin:0!important;padding:0 14px!important;border:0!important;border-bottom:1px solid #eef2f6!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:15px!important;font-weight:600!important;color:#173049!important;cursor:pointer}
:is(.multi-list116,.st135-picker .worker-options,.signature110 .worker-options)>label:last-child{border-bottom:0!important}
:is(.multi-list116,.st135-picker .worker-options,.signature110 .worker-options)>label:has(input:checked){background:#edf5fc!important;color:#0d4f80!important}
:is(.multi-list116,.st135-picker .worker-options,.signature110 .worker-options) input[type=checkbox]{width:20px!important;height:20px!important;margin:0!important;flex:0 0 auto;accent-color:#1468a6}

/* 2. 保固追蹤：統計小卡同狀態頁、卡片米白、狀態字卡配色同統計卡 */
#app .grad-stat.st140-w{min-height:0!important;height:auto!important;padding:10px 4px 9px!important;border-radius:14px!important;box-shadow:none!important;text-align:center!important;background:var(--t-bg)!important;border:1.5px solid var(--t-bd)!important;color:var(--t-c)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;outline:0!important;text-decoration:none!important}
#app .grad-stat.st140-w :is(.grad-sub,.grad-arrow){display:none!important}
#app .grad-stat.st140-w .grad-num{font-size:26px!important;line-height:1.1!important;color:var(--t-c)!important;text-shadow:none!important}
#app .grad-stat.st140-w .grad-lbl{font-size:13px!important;line-height:1.3!important;margin:2px 0 0!important;color:var(--t-c)!important}
#app .grad-stat.st140-w.g-orange{--t-bg:#fff4e6;--t-bd:#f2c99a;--t-c:#b5651d}
#app .grad-stat.st140-w.g-green{--t-bg:#e8f7ee;--t-bd:#b6e2c7;--t-c:#178a4c}
#app .grad-stat.st140-w.g-blue{--t-bg:#edf5fc;--t-bd:#bad1e0;--t-c:#1468a6}
#app .grad-stat.st140-w.g-blue .grad-lbl{font-size:16px!important;font-weight:800!important}
#app .grad-stat.st140-w.g-blue .grad-lbl::after{content:" ↗";font-size:13px}
#app .grad-stat.st140-w.is-active{background:var(--t-c)!important;border-color:var(--t-c)!important}
#app .grad-stat.st140-w.is-active :is(.grad-num,.grad-lbl){color:#fff!important}
#app .grad-stat-grid.st140-wg{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
#app .warranty-card{background:#fcfaf6!important;border:1px solid #e8e5df!important;box-shadow:none!important;border-radius:14px!important}
#app .warranty-card-head strong{font-size:16px!important;font-weight:800!important;color:#0d4f80!important}
#app .warranty-card .sp-info-row{display:grid!important;grid-template-columns:5.2em minmax(0,1fr)!important;gap:8px!important;font-size:14px!important;line-height:22px!important;padding:1px 0!important;min-height:0!important}
#app .warranty-card .sp-info-row>span{color:#173049!important;font-weight:700!important}
#app .warranty-card .sp-info-row>b{color:#0d4f80!important;font-weight:700!important}
#app .warranty-badge{font-size:12px!important;font-weight:700!important;line-height:20px!important;padding:0 9px!important;border-radius:999px!important;border:1px solid!important}
#app .warranty-badge.processing{color:#b5651d!important;background:#fff4e6!important;border-color:#f2c99a!important}
#app .warranty-badge.closed{color:#178a4c!important;background:#e8f7ee!important;border-color:#b6e2c7!important}
#app .warranty-group-label{font-size:15px!important;font-weight:800!important;color:#173049!important}

/* 3. 資料匯出／＋新增 按鈕同大小 */
#app :is(.sp-export-btn,.module-export-btn,.warranty-add-compact,.warranty-toolbar>button){height:38px!important;min-height:38px!important;padding:0 16px!important;font-size:14px!important;font-weight:800!important;line-height:1!important;border-radius:999px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}

/* V25.140 缺件待料多項：同一列內換行，行距同備註說明 */
.st135-row>.st135-v>.st140-pl{display:block}
.st135-row>.st135-v>.st140-pn{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:2px}
.st135-row>.st135-v>.st140-pn>i{font-style:normal}
/* V25.141 狀態詳細：資訊列細線分隔、設備履歷按鈕 */
.st135-sheet .st135-rows>.st135-row{padding:9px 0;border-bottom:1px solid #ebe7df}
.st135-sheet .st135-rows>.st135-row:last-child{border-bottom:0}
.st141-fbtns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.st141-hist-big{height:46px;border:1.5px solid #1468a6;border-radius:12px;background:#fff;color:#1468a6;font:inherit;font-size:17px;font-weight:700;cursor:pointer;box-shadow:none}
.st141-hist-big:active{background:#edf5fc}
/* V25.141 視窗標題列：標題靠左、× 靠右同一列；× 為線條圖示 */
.x138-row.hd141{justify-content:space-between;align-items:center;gap:12px}
.hd141-t{flex:1 1 auto;min-width:0;font-size:19px;font-weight:800;line-height:1.35;color:#153f63;overflow-wrap:anywhere;pointer-events:auto}
.hd141-t:empty{visibility:hidden}
h2.hd141-moved{display:none!important}
body .x138-row>.mnr-floating-close{flex:0 0 auto;color:#153f63!important;box-shadow:none!important}
body .x138-row>.mnr-floating-close svg,.st135-x svg{display:block}
.st135-x{color:#153f63;box-shadow:none}

/* ======================= V25.142: 待辦 =======================
   設備類別、工作項目並排（點了跳出清單）；待辦首頁 8 個入口。 */
#v257WorkCenter .wc142-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:0 0 10px}
#v257WorkCenter .wc142-filters.one{grid-template-columns:minmax(0,1fr)}
#v257WorkCenter .wc142-f[hidden]{display:none!important}
#v257WorkCenter .wc142-f{margin:0!important;min-width:0}
#v257WorkCenter .wc142-f>label{display:block;font-size:13px;font-weight:800;color:#52718c;margin:0 0 5px;line-height:1.2}
#v257WorkCenter .wc142-f .mnr-select-button{width:100%!important;min-width:0!important;min-height:44px!important;height:44px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.wc142-tiles .wc142-long .st137-tile-t{font-size:clamp(16px,4.8vw,21px)}
/* V25.142 堆高機狀態頁：沒有 AQC／ARMG 切換、資料匯出 */
html.fl142 #machineList .eq-toggle-bar{display:none!important}
/* 堆高機編輯視窗：吊架欄拿掉後，編號、更新時間、更新人員依序排成兩欄 */
html.fl142 #status101 .status101-meta{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px 12px!important}
html.fl142 #status101 .status101-meta>div{display:contents!important}
/* ======================= V25.142: PDF 點名稱＝原生開啟；右邊「搜尋」進檢視器 ======================= */
a.pdf142{position:relative}
#app a.row.pdf142{padding-right:92px!important}
.pdf142-s{position:absolute;right:10px;top:50%;transform:translateY(-50%);z-index:2;display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 11px;border-radius:999px;background:#edf5fc;color:#1468a6;border:1px solid #bad1e0;font-size:13.5px;font-weight:800;line-height:1;white-space:nowrap;cursor:pointer;box-sizing:border-box}
.pdf142-s:active{background:#dcebf8}
#app a.card.pdf142{padding-bottom:48px!important}
#app a.card.pdf142 .pdf142-s{top:auto;bottom:10px;right:50%;transform:translateX(50%)}
.pdf-dl-mode .pdf142-s{display:none!important}
#app a.net141-pdf.pdf142{padding-right:96px!important}
/* V25.143 待辦：下拉框拿掉箭頭、沒選時灰字提示 */
#v257WorkCenter.wc143 .wc142-f .mnr-select-button::after{display:none!important;content:none!important}
#v257WorkCenter.wc143 .wc142-f .mnr-select-button{background-image:none!important}
#v257WorkCenter.wc143 .wc142-f .mnr-select-button.empty143{color:#6b7280!important}
#v257WorkCenter.wc143 .wc142-f .mnr-select-button{display:block!important;text-align:center!important;padding-left:12px!important;padding-right:12px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:40px!important;padding-top:0!important;padding-bottom:0!important}
