/* V25.141 設備履歷（只作用在 hs141- 開頭的元素） */
.hs141-page{--ink:#153f63;--val:#0d4f80;--blue:#1468a6;--cream:#fcfaf6;--cline:#e8e5df;--div:#ebe7df;color:#173049}
main#app>h1.hs141-h1{display:flex!important;flex-direction:column;align-items:flex-start;gap:4px}
main#app>h1.hs141-h1 small{font-size:14px;font-weight:700;opacity:.92;line-height:1.35}
.hs141-hint{font-size:13px;color:#52718c;font-weight:600;margin:0 2px 12px;line-height:1.5}
.hs141-empty{padding:26px 12px;text-align:center;color:#6b8196;font-weight:700;font-size:14px;line-height:1.8;background:var(--cream,#fcfaf6);border:1px dashed #e0dbd2;border-radius:14px}
.hs141-empty.err{color:#c0202f}
/* 分段 */
.hs141-seg{display:flex;gap:4px;padding:4px;border-radius:999px;background:#e9f1f8}
#app .hs141-seg button,.hs141-seg button{flex:1 1 0;margin:0;height:38px;border:0;border-radius:999px;background:transparent;color:#4c6f8e;font:inherit;font-size:15px;font-weight:800;cursor:pointer;box-shadow:none;white-space:nowrap;padding:0 8px}
#app .hs141-seg button.on,.hs141-seg button.on{background:#155e96;color:#fff}
.hs141-seg.big{margin:0 0 10px}
.hs141-seg.tabs{margin:12px 0}
/* 選設備：米白分組 */
.hs141-grp{background:#fcfaf6;border:1px solid #e8e5df;border-radius:16px;padding:12px 14px 14px;margin:0 0 12px}
.hs141-gt{font-size:16px;font-weight:800;color:#153f63;padding:0 0 10px;margin:0 0 12px;border-bottom:1px solid #e3dfd6}
.hs141-gb{display:grid;gap:10px}
.hs141-gb.c2{grid-template-columns:repeat(2,minmax(0,1fr))}
.hs141-gb.c3{grid-template-columns:repeat(3,minmax(0,1fr))}
#hs141Pick .hs141-gb.c2 .hs141-dev{font-size:16px}
#app .hs141-dev,.hs141-dev{position:relative;margin:0;height:50px;border-radius:14px;border:1.5px solid transparent;background:#fff;color:#153f63;font:inherit;font-size:17px;font-weight:800;cursor:pointer;box-shadow:0 3px 10px rgba(38,82,119,.07);white-space:nowrap;padding:0 6px}
#app .hs141-dev.f,.hs141-dev.f{color:#c0202f;border-color:#f0a7b0}
#app .hs141-dev.on,.hs141-dev.on{border-color:#1468a6;background:#edf5fc}
.hs141-dev b{position:absolute;top:6px;right:6px;min-width:20px;height:20px;padding:0 6px;box-sizing:border-box;border-radius:999px;background:#c62828;color:#fff;font-size:11.5px;font-weight:800;line-height:20px;text-align:center}
/* 設備頁 */
.hs141-bar{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e3ebf2;border-radius:16px;padding:6px;margin:0 0 12px}
#app .hs141-swap,.hs141-swap{flex:0 0 auto;margin:0;height:38px;padding:0 12px;border:0;border-radius:12px;background:#edf5fc;color:#1468a6;font:inherit;font-size:15px;font-weight:800;cursor:pointer;box-shadow:none;white-space:nowrap}
.hs141-seg.per{flex:1 1 auto;background:transparent;padding:0;gap:2px}
#app .hs141-seg.per button,.hs141-seg.per button{height:34px;font-size:14px;padding:0 4px}
.hs141-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hs141-tiles div{background:#fff;border-radius:16px;padding:12px 6px;text-align:center;box-shadow:0 4px 14px rgba(38,82,119,.06)}
.hs141-tiles b{display:block;font-size:26px;font-weight:900;color:#1468a6;line-height:1.15}
.hs141-tiles span{display:block;font-size:13px;font-weight:800;color:#52718c;margin-top:4px}
.hs141-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 6px}
#app .hs141-chips button,.hs141-chips button{display:inline-flex;align-items:center;gap:5px;margin:0;height:32px;padding:0 12px;border-radius:999px;border:1px solid #bad1e0;background:#edf5fc;color:#1468a6;font:inherit;font-size:13px;font-weight:800;cursor:pointer;box-shadow:none}
#app .hs141-chips button.on,.hs141-chips button.on{background:#155e96;border-color:#155e96;color:#fff}
.hs141-chips i{font-style:normal;font-size:12px;opacity:.75}
.hs141-month{font-size:15px;font-weight:800;color:#153f63;margin:14px 2px 8px}
.hs141-tl{position:relative;padding-left:22px}
.hs141-tl::before{content:"";position:absolute;left:7px;top:8px;bottom:8px;width:2px;background:#d6e0ea;border-radius:2px}
.hs141-ev{position:relative;background:#fcfaf6;border:1px solid #e8e5df;border-radius:14px;padding:11px 13px;margin:0 0 10px}
.hs141-dot{position:absolute;left:-21px;top:14px;width:12px;height:12px;border-radius:50%;background:#fff;border:3px solid var(--c)}
.hs141-ev{--c:#1468a6;--bg:#edf5fc;--bd:#bad1e0}
.hs141-ev.k-r{--c:#c62828;--bg:#fdeef0;--bd:#f3b8bf}
.hs141-ev.k-o{--c:#d4540f;--bg:#fff1e8;--bd:#f5c7a8}
.hs141-ev.k-p{--c:#a0601c;--bg:#fbf1e4;--bd:#e7cba4}
.hs141-ev.k-s{--c:#b05a00;--bg:#fff4e2;--bd:#f0c98a}
.hs141-ev.k-g{--c:#0e7a34;--bg:#e6f6ec;--bd:#a8dab8}
.hs141-ev.k-v{--c:#6b3fa0;--bg:#f6f0fc;--bd:#d3c0ea}
.hs141-evt{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:700;color:#52718c}
.hs141-evt em{flex:0 0 auto;font-style:normal;font-size:12px;font-weight:800;line-height:22px;padding:0 9px;border-radius:999px;background:var(--bg);color:var(--c);border:1px solid var(--bd)}
.hs141-evh{display:block;font-size:15px;font-weight:800;color:#0d4f80;margin:5px 0 0;line-height:1.45;overflow-wrap:anywhere}
.hs141-ev p{margin:4px 0 0;font-size:14px;line-height:1.55;color:#294a66;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hs141-evf{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;font-size:12.5px;color:#7d8fa0;font-weight:600}
#app .hs141-go,.hs141-go{flex:0 0 auto;margin:0;padding:0;border:0;background:none;color:#1468a6;font:inherit;font-size:13px;font-weight:800;cursor:pointer;box-shadow:none;height:auto}
/* 分析 */
.hs141-ana{background:#fff;border-radius:16px;padding:12px 14px 14px;box-shadow:0 4px 14px rgba(38,82,119,.06)}
.hs141-at{display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:800;color:#153f63;margin:14px 0 8px}
.hs141-at:first-child{margin-top:2px}
.hs141-at small{font-size:12.5px;color:#7d8fa0;font-weight:700}
.hs141-bars{display:flex;align-items:flex-end;gap:10px;height:130px;border-bottom:1px solid #d6e0ea;padding:0 4px}
.hs141-bars div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;position:relative;padding-bottom:22px}
.hs141-bars em{font-style:normal;font-size:12px;font-weight:800;color:#153f63;margin-bottom:3px}
.hs141-bars i{display:block;width:62%;max-width:34px;background:#1468a6;border-radius:5px 5px 0 0;max-height:calc(100% - 20px)}
.hs141-bars i.hi{background:#c62828}
.hs141-bars span{position:absolute;bottom:-20px;font-size:12px;color:#52718c;font-weight:700}
.hs141-bars+.hs141-at{margin-top:30px}
.hs141-kpi{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hs141-kpi div{background:#fcfaf6;border:1px solid #e8e5df;border-radius:14px;padding:11px 12px}
.hs141-kpi span{display:block;font-size:13px;font-weight:800;color:#52718c}
.hs141-kpi b{display:block;font-size:21px;font-weight:900;color:#0d4f80;margin-top:3px}
.hs141-kpi small{display:block;font-size:12px;font-weight:800;color:#52718c;margin-top:3px}
.hs141-kpi small.dn{color:#c62828}.hs141-kpi small.up{color:#0e7a34}
.hs141-rank{background:#fcfaf6;border:1px solid #e8e5df;border-radius:14px;padding:2px 12px}
.hs141-rank div{display:grid;grid-template-columns:minmax(0,1fr) 26% 3.4em;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #ebe7df}
.hs141-rank div:last-child{border-bottom:0}
.hs141-rank b{font-size:14.5px;font-weight:800;color:#153f63;overflow-wrap:anywhere}
.hs141-rank i{display:block;height:8px;border-radius:99px;background:#e6edf3;overflow:hidden}
.hs141-rank s{display:block;height:100%;border-radius:99px;background:#a0601c}
.hs141-rank i.k s{background:#6b3fa0}
.hs141-rank em{font-style:normal;text-align:right;font-size:13.5px;font-weight:800;color:#153f63}
.hs141-none{font-size:13.5px;color:#7d8fa0;font-weight:700;padding:2px}
.hs141-cmp{background:#fff6ea;border:1px solid #f0c98a;border-radius:14px;padding:11px 13px;font-size:14.5px;line-height:1.7;color:#294a66;font-weight:600}
.hs141-cmp b{color:#b05a00}
/* 匯出 */
.hs141-exp{margin:16px 0 4px;padding-top:14px;border-top:1px solid #e1e8ef}
.hs141-expb{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#app .hs141-xl,#app .hs141-pdf{margin:0;height:48px;border:0;border-radius:999px;color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:none}
#app .hs141-xl{background:#1d8a4e}#app .hs141-pdf{background:#c62a3a}
.hs141-expn{text-align:center;font-size:13px;color:#52718c;font-weight:700;margin-top:8px}
/* 換設備視窗 */
.hs141-swapdlg .md140-panel{max-width:560px}
.hs141-swapdlg .hs141-grp{background:#fcfaf6}
@media (max-width:420px){
  #app .hs141-swap,.hs141-swap{padding:0 9px;font-size:14px}
  #app .hs141-seg.per button{font-size:13px}
  #app .hs141-dev{font-size:16px}
}
@media (min-width:900px){
  #hs141Pick .hs142-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
  #hs141Pick .hs142-grid .hs141-grp{margin:0}
}

/* ---------- V25.141 網路通訊 ---------- */
.net141-eq{margin:0 0 6px}
.net141-tabs{display:flex;gap:22px;overflow-x:auto;scrollbar-width:none;padding:0 4px;margin:0 0 12px;border-bottom:1px solid #dfe7ee;-webkit-overflow-scrolling:touch}
.net141-tabs::-webkit-scrollbar{display:none}
#app .net141-tabs button{flex:0 0 auto;position:relative;margin:0;padding:10px 0 11px;border:0;border-radius:0;background:none;box-shadow:none;color:#6b8196;font:inherit;font-size:15px;font-weight:800;white-space:nowrap;cursor:pointer;height:auto;min-height:0}
#app .net141-tabs button.on{color:#1468a6}
#app .net141-tabs button.on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;border-radius:3px;background:#1468a6}
.net141-grp{background:#fcfaf6;border:1px solid #e8e5df;border-radius:16px;padding:12px 14px 14px;margin:0 0 12px}
.net141-gt{font-size:16px;font-weight:800;color:#153f63;padding:0 0 10px;margin:0 0 12px;border-bottom:1px solid #e3dfd6}
.net141-gb{display:grid;gap:10px}
.net141-gb.c1{grid-template-columns:minmax(0,1fr)}
.net141-gb.c2{grid-template-columns:repeat(2,minmax(0,1fr))}
.net141-gb.c3{grid-template-columns:repeat(3,minmax(0,1fr))}
#app .net141-dev{margin:0;height:50px;border-radius:14px;border:0;background:#fff;color:#153f63;font:inherit;font-size:16px;font-weight:800;cursor:pointer;box-shadow:0 3px 10px rgba(38,82,119,.07);white-space:nowrap;padding:0 4px;min-height:0}
#app .net141-dev.pend{color:#9aabba}
.net141-ip{background:#fff;border:1px solid #e8e5df;border-radius:14px;padding:12px 14px;margin:0 0 10px}
.net141-grp .net141-ip{margin:0}
.md140-body .net141-ip{background:#fcfaf6}
.net141-ip>span{display:block;font-size:13.5px;font-weight:800;color:#52718c}
.net141-ip>div{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px}
.net141-ip b{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:21px;font-weight:800;color:#c0202f;overflow-wrap:anywhere;letter-spacing:.3px}
.net141-copy,#app .net141-copy{flex:0 0 auto;margin:0;height:36px;padding:0 14px;border:0;border-radius:10px;background:#155e96;color:#fff;font:inherit;font-size:14px;font-weight:800;cursor:pointer;box-shadow:none;min-height:0}
.net141-pdf{display:flex;align-items:center;justify-content:space-between;height:50px;padding:0 16px;border-radius:14px;background:#fff;color:#153f63;font-weight:800;font-size:16px;text-decoration:none;box-shadow:0 3px 10px rgba(38,82,119,.07)}
.net141-pdf b{color:#1468a6;font-size:20px}
.net141-none{font-size:14px;color:#7d8fa0;font-weight:700;padding:4px 2px}
.net141-pop .md140-panel{max-width:440px}
@media (min-width:900px){
  .net141-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
  .net141-body .net141-grp{margin:0}
}
/* 舊的網路子頁（從搜尋進入時）也改米白底 */
#app .aqc-machine-section,#app .machine-group{background:#fcfaf6!important;border:1px solid #e8e5df!important;box-shadow:none!important}
.net141-ip b.long{font-size:17px;letter-spacing:0}
/* 舊視窗（Camera、CS1PN、RCS）× 統一成白色圓框線條 × */
body .modal-overlay .modal-close{width:36px!important;height:36px!important;min-width:36px!important;border-radius:50%!important;border:1px solid #d3dee8!important;background:#fff!important;color:#153f63!important;font-size:0!important;box-shadow:none!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;position:relative}
body .modal-overlay .modal-close::before{content:"";width:14px;height:14px;background:no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2L2 12' fill='none' stroke='%23153f63' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E")}

/* ---------- V25.142 設備履歷：兩層切換、複選類型 ---------- */
.hs142-subw{margin:0 0 4px}
.hs142-subw .net141-tabs{margin:0 0 12px}
.hs141-swapdlg .net141-tabs{display:flex;gap:22px;overflow-x:auto;scrollbar-width:none;padding:0 4px;margin:0 0 12px;border-bottom:1px solid #dfe7ee}
.hs141-swapdlg .net141-tabs button{flex:0 0 auto;position:relative;margin:0;padding:10px 0 11px;border:0;border-radius:0;background:none;box-shadow:none;color:#6b8196;font:inherit;font-size:15px;font-weight:800;white-space:nowrap;cursor:pointer;height:auto;min-height:0}
.hs141-swapdlg .net141-tabs button.on{color:#1468a6}
.hs141-swapdlg .net141-tabs button.on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;border-radius:3px;background:#1468a6}
.hs141-swapdlg .md140-body{max-height:min(70vh,640px);overflow:auto}
#hs142Chips{margin:0 0 12px}
#hs142Tiles>div span{line-height:1.3;word-break:keep-all;overflow-wrap:anywhere}

/* ===== V25.143 ===== */
/* 統計格單位：小字接在數字後 */
.hs141-tiles b small{font-size:14px;font-weight:800;color:#1468a6;margin-left:3px;letter-spacing:0}
/* 期間：月份按鈕 */
#app .hs141-seg.per button.hs143-mon{flex:1.25 1 0}
/* 月份／期間選擇視窗 */
.hs143-mondlg .md140-panel{max-width:440px}
.hs143-yr{font-size:14px;font-weight:800;color:#52718c;margin:12px 2px 8px}
.hs143-yh{font-size:13px;font-weight:800;color:#52718c;margin:16px 2px 0}
.hs143-mg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.hs143-mg button,.hs143-pq button{margin:0;height:42px;border-radius:12px;border:1px solid #d6e2ed;background:#f2f6fa;color:#173f63;font:inherit;font-size:15px;font-weight:800;cursor:pointer;box-shadow:none;padding:0}
.hs143-mg button.on,.hs143-pq button.on{background:#155e96;border-color:#155e96;color:#fff}
.hs143-mg button:disabled{opacity:.45;color:#9aaabb;cursor:default}
.hs143-pq{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:6px}
/* 多台匯出：開關列 */
.hs143-mbar{margin:12px 0}
#app .hs143-start,.hs143-start{width:100%;margin:0;height:42px;border-radius:14px;border:1.5px dashed #9cc0dd;background:#f7fbff;color:#1468a6;font:inherit;font-size:15px;font-weight:800;cursor:pointer;box-shadow:none}
.hs143-mbar.on{display:flex;align-items:center;gap:10px;border:1.5px solid #1468a6;background:#fff;border-radius:14px;padding:6px 6px 6px 14px}
.hs143-mbar.on span{flex:1 1 auto;font-size:15px;font-weight:800;color:#155e96}
#app .hs143-done,.hs143-done{margin:0;height:34px;padding:0 18px;border:0;border-radius:999px;background:#155e96;color:#fff;font:inherit;font-size:14px;font-weight:800;cursor:pointer;box-shadow:none}
/* 勾選的設備 */
.hs141-gt{display:flex;align-items:center;justify-content:space-between}
#app .hs143-gall,.hs143-gall{margin:0;height:26px;padding:0 12px;border-radius:999px;border:1px solid #bad1e0;background:#edf5fc;color:#1468a6;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;box-shadow:none}
#app .hs141-dev.hs143-m.ck,.hs141-dev.hs143-m.ck{border-color:#1468a6;background:#edf5fc}
.hs143-ck{position:absolute;top:6px;right:6px;width:18px;height:18px;border-radius:50%;border:1.5px solid #c3d3e0;background:#fff;box-sizing:border-box}
.hs141-dev.ck .hs143-ck{border-color:#155e96;background:#155e96 no-repeat center/11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.3l2.4 2.4 5.2-5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
/* 多台匯出：下方固定列 */
.hs143-foot{position:sticky;bottom:0;z-index:5;margin:12px -2px 0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border:1px solid #e3ebf2;border-radius:18px 18px 0 0;box-shadow:0 -6px 18px rgba(38,82,119,.10)}
.hs143-foot[hidden]{display:none!important}
.hs143-frow{display:flex;align-items:center;gap:8px}
.hs143-frow+.hs143-frow{margin-top:8px}
#app .hs143-pick,.hs143-pick{flex:1 1 0;min-width:0;margin:0;height:38px;border-radius:12px;border:1px solid #d6e2ed;background:#edf5fb;color:#214d70;font:inherit;font-size:14px;font-weight:800;cursor:pointer;box-shadow:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 8px}
.hs143-n{font-size:16px;font-weight:900;color:#153f63;white-space:nowrap}
#app .hs143-clr,.hs143-clr{margin:0;height:28px;padding:0 10px;border-radius:999px;border:1px solid #d6e2ed;background:#fff;color:#52718c;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;box-shadow:none}
.hs143-sp{flex:1 1 auto}
#app .hs143-foot .hs141-xl,#app .hs143-foot .hs141-pdf{height:42px;padding:0 18px;font-size:15px}
#app .hs143-foot button:disabled{opacity:.45;cursor:default}
/* 類型選擇視窗 */
.hs143-typedlg .md140-panel{max-width:440px}
.hs143-tchips{margin-top:6px}
.hs143-tnote{font-size:12.5px;color:#52718c;font-weight:700;line-height:1.6;margin:10px 2px 12px}
#app .hs143-ok,.hs143-ok{display:block;width:100%;margin:0;height:44px;border:0;border-radius:999px;background:#155e96;color:#fff;font:inherit;font-size:15px;font-weight:900;cursor:pointer;box-shadow:none}
@media (max-width:380px){#app .hs141-seg.per button{font-size:12.5px;padding:0 2px}}
#app .hs143-clr{white-space:nowrap;flex:0 0 auto}
@media (max-width:380px){#app .hs143-foot .hs141-xl,#app .hs143-foot .hs141-pdf{padding:0 12px;font-size:14px;height:40px}.hs143-n{font-size:15px}.hs143-frow{gap:6px}.hs143-foot{padding-left:10px;padding-right:10px}}
.hs143-mbar[hidden]{display:none!important}
.hs143-fhead{display:flex;align-items:center;gap:10px;margin:0 0 8px}
.hs143-fhead span{flex:1 1 auto;font-size:14px;font-weight:800;color:#155e96}
#app .hs143-foot .hs143-done{height:30px;padding:0 16px;font-size:13.5px}
/* V25.143.1：多台匯出按鈕紅底白字 */
#app .hs143-start,.hs143-start{border:0!important;background:#c62a3a!important;color:#fff!important;font-weight:900}

/* ---------- V25.149 ---------- */
/* 類型篩選：同一行、不顯示數字 */
.hs141-chips.hs149-chips{display:grid!important;grid-template-columns:.8fr repeat(calc(var(--n,4) - 1),minmax(0,1.2fr));gap:6px!important}
.hs141-chips.hs149-chips button{justify-content:center;text-align:center;white-space:nowrap;padding-left:2px!important;padding-right:2px!important;font-size:14px!important;min-width:0}
/* 選設備：紅色數字移到格子右上角外面，不壓字 */
.hs141-dev{overflow:visible!important}
.hs141-dev b{top:-7px!important;right:-7px!important;box-shadow:0 0 0 2px #fff}
/* 紀錄卡片可點 */
.hs141-ev[data-i]{cursor:pointer}
.hs141-ev[data-i]:active{background:#f4f1ea}
/* 完整資訊彈窗 */
.hs149-bd{position:fixed;inset:0;z-index:9800;background:rgba(10,38,61,.38);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:18px}
.hs149-dlg{width:100%;max-width:460px;max-height:82vh;overflow:auto;background:#fff;border-radius:22px;box-shadow:0 18px 50px rgba(10,38,61,.3);padding:18px 18px 16px}
.hs149-dh{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.hs149-tag{font-style:normal;font-size:13px;font-weight:700;border-radius:999px;padding:3px 12px;border:1px solid}
.hs149-tag.k-r{color:#c62a3a;background:#fdecee;border-color:#f6c9ce}
.hs149-tag.k-o{color:#b25a00;background:#fff3e3;border-color:#f3d2a8}
.hs149-tag.k-b{color:#175f99;background:#eaf3fb;border-color:#c8dcee}
.hs149-x{all:unset;box-sizing:border-box;cursor:pointer;width:38px;height:38px;border-radius:50%;border:1px solid #dfe7ee;display:grid;place-items:center;color:#0f3d66;font-size:18px}
.hs149-dlg h3{margin:6px 0 10px;font-size:20px;color:#0f4d82;line-height:1.35}
.hs149-row{display:grid;grid-template-columns:4.4em 1fr;gap:8px;padding:9px 0;border-top:1px solid #eef2f5;font-size:15px;line-height:1.55}
.hs149-row b{color:#6b7c8b;font-weight:600}
.hs149-row span{color:#1f2d3a;white-space:pre-wrap;overflow-wrap:anywhere}
.hs149-go{all:unset;box-sizing:border-box;cursor:pointer;display:block;width:100%;margin-top:14px;text-align:center;background:#175f99;color:#fff;font-weight:700;border-radius:14px;padding:12px;font-size:16px}
/* V25.159：「複選並匯出統計資料」在標題列右邊；勾選面板最左「全選」、最右圓形 ✕；各組全選拿掉 */
main#app>h1.hs159-h1{display:flex!important;align-items:center;justify-content:space-between;gap:10px}
#app .hs159-start{flex:0 0 auto;margin:0;border:0;border-radius:999px;background:#c62a3a;color:#fff;font:inherit;font-size:14px;font-weight:800;padding:8px 14px;line-height:1.2;white-space:nowrap;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.12)}
#app .hs159-start[hidden]{display:none}
#app .hs143-foot .hs159-all{flex:0 0 auto;margin:0;height:32px;padding:0 16px;border:0;border-radius:999px;background:#175f99;color:#fff;font:inherit;font-size:14px;font-weight:800;cursor:pointer;box-shadow:none}
#app .hs143-foot .hs159-x{flex:0 0 auto;margin:0 -2px 0 0;width:36px;height:36px;padding:0;border-radius:50%;border:1px solid #dfe7ee;background:#fff;color:#0f3d66;font:inherit;font-size:18px;line-height:1;display:grid;place-items:center;cursor:pointer;box-shadow:none}
/* V25.162：網路通訊第二排（CMS IP…）改成橢圓實心色塊白字；選到的全亮＋外圈，其他淡色。只限網路通訊頁 */
#app .net141 .net141-tabs{display:grid;grid-template-columns:repeat(var(--n,6),minmax(0,1fr));gap:8px;border-bottom:0;padding:4px 4px 6px;margin:0 0 14px;overflow:visible}
#app .net141 .net141-tabs button{--c:#175f99;padding:10px 6px;border-radius:999px;background:var(--c);color:#fff;font-size:15px;opacity:.4;text-align:center;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s,box-shadow .15s}
#app .net141 .net141-tabs button.on{color:#fff;opacity:1;box-shadow:0 4px 10px rgba(0,0,0,.14);outline:0}/* V25.168：拿掉外圈 */
#app .net141 .net141-tabs button.on::after{content:none}
#app .net141 .net141-tabs button[data-tab=cms],#app .net141 .net141-tabs button[data-tab=rcm]{--c:#175f99}
#app .net141 .net141-tabs button[data-tab=camera],#app .net141 .net141-tabs button[data-tab=rcs]{--c:#1f8a4c}
#app .net141 .net141-tabs button[data-tab=plc],#app .net141 .net141-tabs button[data-tab=server]{--c:#d17a00}
#app .net141 .net141-tabs button[data-tab=cs1]{--c:#6b4fbb}
#app .net141 .net141-tabs button[data-tab=cs2]{--c:#8e44ad}
#app .net141 .net141-tabs button[data-tab=ptz],#app .net141 .net141-tabs button[data-tab=license]{--c:#c62a3a}
@media (max-width:700px){#app .net141 .net141-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}#app .net141 .net141-tabs button{font-size:14px}}
/* V25.169：主辦公室 4 顆（含「PLC權限管理網頁」）手機排 2×2，字才放得下 */
@media (max-width:700px){#app .net141 .net141-tabs[style*="--n:4"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
