/* ============================================================
   e等 Tabs Design System（全平臺統一）— 規則見 skill edeng-tag-tab-system
   基準：加盟平臺管理／首頁設定／專區首頁佈景 的 .ptabs／.ptab
   列：底線 2px #e0e3e8、間距 6px、可橫向捲動（隱藏捲軸）
   頁籤：高 52・左右 22・上圓角 10・17px 粗體 #364654・底色 slate 4% 漸層；hover 9%
   選中：由上而下 #e0ecf8 漸層 ＋ 底部 4px Primary（#436177）條
   計數：圓角膠囊 12.5px 粗體，未選 slate-200／slate-700，選中 Primary／白
   既有元件以別名套用：.ptabs .cr-tabs .cr-rv-tabs .filtabs .ntabs（不含 Header 的 .modtabs 模組切換）
   ============================================================ */
html body :is(.ptabs,.cr-tabs,.cr-rv-tabs,.filtabs,.ntabs){
  display:flex !important;align-items:flex-end;flex-wrap:nowrap !important;gap:6px !important;padding:0 0 2px !important;
  background:transparent;border:0 !important;border-radius:0 !important;box-shadow:inset 0 -2px 0 #e0e3e8 !important;
  overflow-x:auto;scrollbar-width:none}
html body :is(.ptabs,.cr-tabs,.cr-rv-tabs,.filtabs,.ntabs)::-webkit-scrollbar{display:none}
html body .ntabs{padding:0 20px 2px !important;background:#fff}
html body :is(.ptab,.cr-tab,.filtab,.ntab){
  position:relative;flex:none;display:inline-flex !important;align-items:center;justify-content:center;gap:0;
  height:52px !important;padding:0 22px !important;margin:0 !important;border:0 !important;border-radius:10px 10px 0 0 !important;
  font-size:17px !important;font-weight:700 !important;color:#364654 !important;white-space:nowrap;cursor:pointer;
  background:linear-gradient(0deg,rgba(67,97,119,.04),rgba(67,97,119,.04)),#fcfcff !important;transition:background .15s}
html body :is(.ptab,.cr-tab,.filtab,.ntab):hover{background:linear-gradient(0deg,rgba(67,97,119,.09),rgba(67,97,119,.09)),#fcfcff !important}
html body :is(.ptab,.cr-tab,.filtab,.ntab).on{background:linear-gradient(180deg,rgba(224,236,248,0) 0%,#e0ecf8 100%) !important;color:#364654 !important}
html body :is(.ptab,.cr-tab,.filtab,.ntab).on::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;border-radius:4px 4px 0 0;background:#436177}
html body :is(.ptab,.cr-tab,.filtab,.ntab):focus-visible{outline:2px solid #436177;outline-offset:-2px}
/* 計數膠囊 */
html body :is(.ptab,.cr-tab,.filtab,.ntab) :is(.c,.cnt,.sys-cnt){display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;margin-left:8px;padding:0 7px;
  border-radius:999px;font-family:inherit;font-size:12.5px !important;font-weight:700;line-height:1;background:#e2e8f0 !important;color:#334155 !important}
html body :is(.ptab,.cr-tab,.filtab,.ntab).on :is(.c,.cnt,.sys-cnt){background:#436177 !important;color:#fff !important}
/* 頁籤列不可被 flex 容器（如 popup 直向排版）壓縮，否則 52px 頁籤會被裁掉 */
html body :is(.ptabs,.cr-tabs,.cr-rv-tabs,.filtabs,.ntabs){flex:none !important;min-height:54px;overflow-y:hidden}

/* 篩選條件標題列（全平臺 .fpanel-h）：箭頭 icon 與「篩選條件」文字上下垂直置中
   icon 盒高＝文字行高 24px 並在盒內置中，摘要換行時箭頭仍對齊第一行文字 */
html body .fpanel-h>.mi{display:inline-flex;align-items:center;justify-content:center;flex:none;height:24px;line-height:1 !important;margin-top:0 !important;margin-bottom:0 !important;align-self:flex-start}
html body .fpanel-h>.ft{line-height:24px !important}
