/* ==========================================================================
   TLC ERP · 磨砂玻璃皮肤（skin-glass.css）
   2026-11-19 · 只做视觉覆盖，不改任何 DOM / 业务逻辑 / 列宽 / 字号换算
   --------------------------------------------------------------------------
   设计令牌全部走 CSS 变量，所以「颜色/圆角/阴影」集中在这里；
   玻璃效果（backdrop-filter）只给**大面板**，表格行与数字一律不模糊，
   保证「看得清」优先于「好看」。
   回滚：删掉 index.html / admin/index.html 里那一行 <link ... skin-glass.css>。
   ========================================================================== */

:root{
  --glass-bg:      rgba(255,255,255,.70);
  --glass-bg-soft: rgba(255,255,255,.55);
  --glass-line:    rgba(255,255,255,.92);
  --glass-line-2:  rgba(255,255,255,.72);
  --glass-shadow:  0 16px 40px rgba(110,80,50,.14);
  --glass-shadow-sm: 0 8px 24px rgba(110,80,50,.08);
  --skin-ink:      #152435;
  --skin-muted:    #6C7A88;
  --skin-dim:      #95A2AE;
  --skin-amber:    #E2813B;
  --skin-amber-2:  #F09A55;
  --skin-amber-ink:#A4601F;

  /* 覆盖原令牌：圆角、描边、阴影、底色 */
  --bg:#F1E4D1;
  --panel:rgba(255,255,255,.70);
  --panel-2:rgba(255,255,255,.55);
  --line:rgba(255,255,255,.88);
  --line-2:rgba(255,255,255,.68);
  --radius:20px; --radius-sm:12px;
  --shadow:var(--glass-shadow);
  --shadow-lg:0 28px 70px rgba(110,80,50,.22);
}

/* ---------------- 环境光 + 颗粒 ---------------- */
body{
  background:
    radial-gradient(1100px 700px at 6% -10%, #FFC98D 0%, rgba(255,201,141,0) 58%),
    radial-gradient(900px 640px at 96% 0%,  #FFD8A6 0%, rgba(255,216,166,0) 55%),
    radial-gradient(900px 700px at 100% 100%, #BFD3E8 0%, rgba(191,211,232,0) 58%),
    linear-gradient(160deg,#F1E4D1 0%,#E7D6C0 52%,#EADCC9 100%);
  background-attachment:fixed;
  color:var(--skin-ink);
}
body::before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.085;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size:180px 180px;
}
.app{position:relative;z-index:1}
.bg{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.bg i{position:absolute;display:block;border-radius:50%;filter:blur(80px);opacity:.9}
.b1{width:900px;height:900px;left:-180px;top:-260px;background:radial-gradient(closest-side,#FFC089,rgba(255,192,137,0) 70%)}
.b2{width:720px;height:720px;right:-150px;top:-220px;background:radial-gradient(closest-side,#FFD19B,rgba(255,209,155,0) 70%)}
.b3{width:760px;height:760px;right:-80px;bottom:-300px;background:radial-gradient(closest-side,#B4CCE6,rgba(180,204,230,0) 70%)}
.b4{width:620px;height:620px;left:16%;bottom:-260px;background:radial-gradient(closest-side,#F2BD91,rgba(242,189,145,0) 70%)}

/* ---------------- 侧栏：浅色玻璃 ---------------- */
.sidebar{
  background:linear-gradient(180deg,rgba(255,253,248,.88),rgba(252,244,233,.76));
  backdrop-filter:blur(30px) saturate(165%); -webkit-backdrop-filter:blur(30px) saturate(165%);
  color:#5A6A78;
  border-right:1px solid rgba(255,255,255,.9);
  box-shadow:0 24px 60px rgba(110,80,50,.10);
}
.brand{border-bottom:1px solid rgba(120,100,70,.12)}
.brand img{filter:none;opacity:1}              /* 原来为深底反白，浅底必须还原 */
.brand-sub{color:#A6957E}
.nav-group{color:#A6957E}
.nav a{color:#5A6A78;border-radius:12px}
.nav a .ico{color:#A08A73}
.nav a:hover{background:var(--skin-amber);color:#fff}
.nav a:hover .ico{color:#fff}
.nav a.active{
  background:linear-gradient(135deg,#24445F,#16324E);color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22), 0 10px 22px rgba(22,50,78,.28);
}
.nav a.active .ico{color:#fff}
.sidebar-foot{border-top:1px solid rgba(120,100,70,.12);color:#8C9AA8}
.dot-live{box-shadow:0 0 0 3px rgba(61,220,132,.16)}

/* ---------------- 顶栏 ---------------- */
.topbar{
  background:rgba(255,255,255,.64);
  backdrop-filter:blur(26px) saturate(160%); -webkit-backdrop-filter:blur(26px) saturate(160%);
  border-bottom:1px solid rgba(255,255,255,.9);
  box-shadow:var(--glass-shadow-sm);
}
.topbar .crumb{background:rgba(255,255,255,.58);border:1px solid rgba(255,255,255,.92);color:#6B7A87}
.topbar .crumb.strong{
  background:#E2813B;color:#fff;border-color:transparent;
  box-shadow:0 6px 16px rgba(217,112,31,.24);
}
.ver-chip{color:var(--skin-amber-ink);background:rgba(226,129,59,.12);border-color:rgba(226,129,59,.22)}

/* ---------------- 面板 / KPI ---------------- */
.panel{
  background:var(--glass-bg);
  backdrop-filter:blur(26px) saturate(165%); -webkit-backdrop-filter:blur(26px) saturate(165%);
  border:1px solid var(--glass-line);
  border-radius:20px;
  box-shadow:var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,1);
}
.panel-head{border-bottom:1px solid rgba(255,255,255,.80);background:transparent}
.kpi{
  background:var(--glass-bg);
  backdrop-filter:blur(24px) saturate(165%); -webkit-backdrop-filter:blur(24px) saturate(165%);
  border:1px solid var(--glass-line);border-radius:20px;overflow:hidden;
  box-shadow:var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,1);
}
.kpi::after{border-radius:20px 20px 0 0}

/* ---------------- 表格：只留发丝线，不做深底 ---------------- */
thead th{
  background:rgba(253,247,239,.92);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  color:#8A7660;border-bottom:1px solid rgba(120,100,70,.16);
}
tbody td{border-bottom:1px solid rgba(255,255,255,.72)}
tbody tr:hover{background:rgba(255,255,255,.55)}
tbody tr.total-row{background:rgba(255,255,255,.58)}
tbody tr.total-row td{border-top:1px solid rgba(120,100,70,.18)}
.table-wrap{background:transparent}

/* ---------------- 按钮 / 胶囊 ---------------- */
.btn{
  background:rgba(255,255,255,.74);border:1px solid rgba(255,255,255,.95);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
}
.btn:hover{background:rgba(255,255,255,.92);border-color:rgba(226,129,59,.45);box-shadow:0 8px 20px rgba(217,112,31,.14)}
.btn.primary{background:linear-gradient(135deg,var(--skin-amber),var(--skin-amber-2));border-color:transparent}
.btn.primary:hover{background:linear-gradient(135deg,var(--skin-amber),var(--skin-amber-2));border-color:transparent}
.admin-btn,.refresh-btn{
  background:rgba(255,255,255,.74);border:1px solid rgba(255,255,255,.95);color:var(--skin-amber-ink);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
}
.admin-btn:hover,.refresh-btn:hover{border-color:rgba(226,129,59,.45);background:rgba(255,255,255,.92);color:#8A4415}
.login-btn{background:#E2813B;box-shadow:0 6px 16px rgba(217,112,31,.26)}
.seg{background:rgba(255,255,255,.56);border-color:rgba(255,255,255,.9)}
.seg button.active{background:var(--skin-amber);color:#fff}
.pill-tabs{background:rgba(255,255,255,.5);border-color:rgba(255,255,255,.88)}
.pill-tabs button.active{background:#fff;color:var(--skin-ink)}
.chip,.pill{background:rgba(255,255,255,.6);border-color:rgba(255,255,255,.9)}

/* ---------------- 表单控件 ---------------- */
input[type=text],input[type=password],input[type=number],input[type=search],select,textarea{
  background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.95);border-radius:10px;color:var(--skin-ink);
}
input:focus,select:focus,textarea:focus{outline:none;border-color:rgba(226,129,59,.55);box-shadow:0 0 0 3px rgba(226,129,59,.14)}

/* ---------------- 登录门：不再满屏深蓝 ---------------- */
.gate{
  background:
    radial-gradient(900px 620px at 18% 0%, #FFC98D 0%, rgba(255,201,141,0) 60%),
    radial-gradient(760px 560px at 92% 12%, #FFD8A6 0%, rgba(255,216,166,0) 58%),
    radial-gradient(820px 640px at 88% 100%, #BFD3E8 0%, rgba(191,211,232,0) 60%),
    linear-gradient(160deg,#F3E7D5 0%,#E9D8C2 60%,#EEE3D4 100%);
}
.gate-card{
  background:rgba(255,255,255,.74);
  backdrop-filter:blur(30px) saturate(165%); -webkit-backdrop-filter:blur(30px) saturate(165%);
  border:1px solid rgba(255,255,255,.95);border-radius:22px;
  box-shadow:0 30px 70px rgba(110,80,50,.24), inset 0 1px 0 rgba(255,255,255,1);
}
.gate-icp .icp-link{color:#8A7660}
.gate-note code{background:rgba(255,255,255,.7)}

/* 后台（admin.css 同一套令牌） */
.admin-page body,.admin-body{background:transparent}

/* 低配降级：系统要求减少透明度 / 浏览器不支持 backdrop-filter 时退回纯平 */
@media (prefers-reduced-transparency: reduce){
  .sidebar,.topbar,.panel,.kpi,.btn,.gate-card{backdrop-filter:none !important;-webkit-backdrop-filter:none !important}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .sidebar{background:#FFFDF8}.topbar{background:#FFFDF8}
  .panel,.kpi{background:#FFFDF9}.btn{background:#fff}
}

/* ==========================================================================
   后台（admin.css 用 bare header / nav / .card / .gate，与前台形态不同）
   ========================================================================== */
header:not(.topbar){
  background:rgba(255,255,255,.74) !important;
  backdrop-filter:blur(26px) saturate(160%); -webkit-backdrop-filter:blur(26px) saturate(160%);
  color:var(--skin-ink);
  border-bottom:1px solid rgba(255,255,255,.92);
  box-shadow:0 8px 24px rgba(110,80,50,.08);
}
header:not(.topbar) .title{color:var(--skin-ink)}
header:not(.topbar) .badge{background:rgba(226,129,59,.12);color:var(--skin-amber-ink)}
header:not(.topbar) a.btn{background:rgba(255,255,255,.72) !important;border-color:rgba(255,255,255,.95) !important;color:var(--skin-amber-ink) !important}
header:not(.topbar) a.btn:hover{background:#fff !important;color:#8A4415 !important}
header:not(.topbar) .user{color:#5A6A78;opacity:1}
nav:not(.nav){
  background:rgba(255,255,255,.56);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(255,255,255,.9);
}
nav:not(.nav) button{color:#6C7A88}
nav:not(.nav) button.active{color:var(--skin-amber-ink);border-bottom-color:var(--skin-amber)}
.card{
  background:rgba(255,255,255,.70);backdrop-filter:blur(22px) saturate(160%);-webkit-backdrop-filter:blur(22px) saturate(160%);
  border:1px solid rgba(255,255,255,.92);border-radius:18px;
  box-shadow:0 12px 30px rgba(110,80,50,.10), inset 0 1px 0 rgba(255,255,255,1);
}
.gate-card{
  background:rgba(255,255,255,.78) !important;
  backdrop-filter:blur(30px) saturate(165%);-webkit-backdrop-filter:blur(30px) saturate(165%);
  border:1px solid rgba(255,255,255,.95);
  box-shadow:0 30px 70px rgba(110,80,50,.24) !important;
}

/* ==========================================================================
   细节收敛
   ========================================================================== */
/* KPI 顶部色条：2px、半透明，避免一排彩虹 */
.kpi::after{height:2px;opacity:.55}
/* 表头玻璃再轻一点 */
thead th{background:rgba(253,247,239,.86)}
/* 窄屏（≤1500）订单汇总：给表一个最小宽度，宁可横向滚动也不让数字压在一起 */
@media (max-width:1850px){
  /* 窄屏：13 列的订单表在 fixed 布局下会把数字压在一起（生产站同样问题）。
     改成 auto：列按内容撑开、表格自己横向滚动，宁可滚也不要重叠。 */
  .view table{table-layout:auto !important;min-width:0 !important}
}

/* ==========================================================================
   登录门 v2 · 整幅照片 + 暗玻璃分栏（参照图 1）
   底图：assets/login-bg.jpg（Jason 提供），CSS 在 src/ 下，故路径为 ../assets/
   ========================================================================== */
.gate{
  background:#0A0F15 url(../assets/login-bg.jpg) center/cover no-repeat fixed;
  padding:24px;
}
.gate::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(100deg,rgba(6,11,16,.46) 0%,rgba(6,11,16,.18) 45%,rgba(6,11,16,.40) 100%);
  backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
}
.gate-card{
  position:relative;width:1080px;max-width:94vw;height:620px;
  padding:0;border-radius:26px;overflow:hidden;
  background:rgba(10,16,24,.45);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 50px 120px rgba(0,0,0,.55);
}
.gate-card::before{
  content:"";position:absolute;inset:0;
  background:url(../assets/login-bg.jpg) center/cover no-repeat;
}
.gate-card::after{
  content:"";position:absolute;left:52%;right:0;top:0;bottom:0;
  background:linear-gradient(180deg,rgba(12,18,26,.30),rgba(12,18,26,.42));
  backdrop-filter:blur(18px) saturate(130%);-webkit-backdrop-filter:blur(18px) saturate(130%);
  border-left:1px solid rgba(255,255,255,.10);
}
.gate-card > *{position:relative;z-index:2;margin-left:52%;padding-left:56px;padding-right:54px}
.gate-logo{margin-top:62px;margin-bottom:0;justify-content:flex-start}
.gate-logo img{height:28px;filter:brightness(0) invert(1);opacity:.95}
.gate-title{
  margin-top:24px;font-size:32px;line-height:1.22;font-weight:300;text-align:left;
  color:#fff;background:none;-webkit-text-fill-color:#fff;
}
.gate-sub{margin-top:8px;text-align:left;color:rgba(255,255,255,.62);font-size:11px;letter-spacing:.10em}
.gate-form{margin-top:28px}
.gate-form .field label{color:rgba(255,255,255,.50);font-size:9.5px;letter-spacing:.16em;text-transform:uppercase}
.gate-form .field input{
  background:transparent;border:0;border-bottom:1px solid rgba(255,255,255,.26);
  border-radius:0;padding:9px 0;color:#fff;font-size:14px;width:100%;
}
.gate-form .field input::placeholder{color:rgba(255,255,255,.30)}
.gate-form .field input:focus{outline:none;border-bottom-color:#E2813B;box-shadow:none}
.gate-card .btn.gate-btn{
  margin-top:24px;height:44px;border-radius:999px;border:0;width:100%;
  background:#E2813B;color:#fff;font-weight:600;font-size:13px;
  box-shadow:0 12px 28px rgba(217,112,31,.35);
}
.gate-card .btn.gate-btn:hover{background:#E2813B;transform:none}
.gate-err{color:#FF9D8A;text-align:left}
.gate-note{text-align:left;color:rgba(255,255,255,.42);font-size:10px;line-height:1.8;margin-top:14px}
.gate-note code{background:rgba(255,255,255,.10);color:#FFD9BC}
.gate-icp{
  position:absolute;left:52%;right:54px;bottom:24px;z-index:2;margin:0;
  padding:14px 0 0 56px;text-align:left;
  color:rgba(255,255,255,.38);font-size:9.5px;
  border-top:1px solid rgba(255,255,255,.08);
}
.gate-icp .icp-link{color:rgba(255,255,255,.52)}

/* ===== 登录门终版：窗体放大、登录区移到左侧，照片在右 ===== */
.gate-card{width:1220px;max-width:94vw;height:700px;border-radius:28px}
.gate-card::after{left:0;right:52%;border-left:0;border-right:1px solid rgba(255,255,255,.10)}
.gate-card > *{margin-left:0;margin-right:52%;padding-left:60px;padding-right:50px}
.gate-logo{margin-top:78px}
.gate-title{margin-top:26px;font-size:36px}
.gate-sub{margin-top:10px}
.gate-form{margin-top:34px}
.gate-form .field{margin-bottom:22px}
.gate-form .field input{padding:11px 0;font-size:14.5px}
.gate-card .btn.gate-btn{height:48px;margin-top:30px;font-size:13.5px}
.gate-icp{left:60px;right:auto;width:calc(48% - 120px);bottom:30px}

/* 登录门：左栏玻璃加深（照片透出来但仍可读） */
.gate-card{background:transparent}
.gate-card::after{background:linear-gradient(180deg,rgba(10,15,22,.62),rgba(10,15,22,.72));
  backdrop-filter:blur(24px) saturate(125%);-webkit-backdrop-filter:blur(24px) saturate(125%)}
.gate-form .field input{color:#fff}
.gate-form .field input::placeholder{color:rgba(255,255,255,.45)}

/* 柱状图：橙 / 蓝 / 绿 三色循环 + 圆角 + 高光 */
.bar-col:nth-child(3n+1) .bar{background:#E2813B !important;background-image:linear-gradient(180deg,rgba(255,255,255,.30),rgba(0,0,0,.12)) !important}
.bar-col:nth-child(3n+2) .bar{background:#6E9FBF !important;background-image:linear-gradient(180deg,rgba(255,255,255,.30),rgba(0,0,0,.12)) !important}
.bar-col:nth-child(3n)   .bar{background:#4F8F7A !important;background-image:linear-gradient(180deg,rgba(255,255,255,.30),rgba(0,0,0,.12)) !important}
.bar{border-radius:6px 6px 2px 2px;box-shadow:0 4px 10px rgba(60,80,70,.12)}

/* ==========================================================================
   内页：深色玻璃 + 实景照片底（恢复版 · 2026-11-19 21:0x）
   ========================================================================== */
:root{
  --text:#EEF3F7; --muted:#A2B0BC; --muted-2:#7E8D99;
  --line:rgba(255,255,255,.11); --line-2:rgba(255,255,255,.07);
  --panel:rgba(255,255,255,.055); --panel-2:rgba(255,255,255,.08);
  --bg:#0C0F13; --brand:#E9F1F7; --brand-2:#F0B27A;
  --danger:#E0857A; --up:#F0A79B;
  --shadow:0 18px 44px rgba(0,0,0,.35);
  --glass-bg:rgba(255,255,255,.055);
  --glass-line:rgba(255,255,255,.10);
  --skin-ink:#EEF3F7; --skin-muted:#A2B0BC; --skin-dim:#7E8D99;
}
body{background:#0B0E12 url(../assets/login-bg.jpg) center/cover no-repeat fixed;color:var(--text)}
body::before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(1200px 800px at 70% 0%, rgba(226,129,59,.12) 0%, rgba(226,129,59,0) 60%),
    linear-gradient(160deg, rgba(6,8,11,.82) 0%, rgba(6,8,11,.62) 45%, rgba(6,8,11,.86) 100%);
  backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
}
body::after{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.10;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size:180px 180px;
}
.app{
  position:relative;z-index:2;margin:24px;height:calc(100vh - 48px);min-height:0;
  border-radius:28px;overflow:hidden;background:rgba(10,12,16,.86);
  backdrop-filter:blur(30px) saturate(125%);-webkit-backdrop-filter:blur(30px) saturate(125%);
  border:1px solid rgba(255,255,255,.13);
  box-shadow:0 50px 120px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.10);
}
.sidebar{width:224px;height:100%;position:relative;top:auto;
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border-right:1px solid rgba(255,255,255,.08);box-shadow:none;color:#C6D3DE}
.sidebar .brand{border-bottom:1px solid rgba(255,255,255,.08)}
.sidebar .brand img{filter:brightness(0) invert(1);opacity:.95}
.sidebar .brand-sub{color:#8FA0AE}
.sidebar .nav-group{color:#7E8D99}
.sidebar .nav a{color:#B9C6D2 !important}
.sidebar .nav a .ico{color:#8FA0AE !important}
.sidebar .nav a:hover{background:#E2813B !important;color:#fff !important}
.sidebar .nav a:hover .ico{color:#fff !important}
.sidebar .nav a.active{background:#E2813B !important;color:#fff !important;box-shadow:0 10px 24px rgba(217,112,31,.30) !important}
.sidebar .sidebar-foot{border-top:1px solid rgba(255,255,255,.08);color:#7E8D99}

.main{height:100%;overflow:auto}
.topbar{min-height:76px !important;height:76px !important;flex:0 0 auto !important;padding:0 24px !important;
  background:rgba(10,12,16,.55) !important;backdrop-filter:blur(22px) saturate(130%);
  border-bottom:1px solid rgba(255,255,255,.08) !important;box-shadow:none !important}
.topbar h1{color:#F4F8FB;font-size:18px}
.app-title{background:none;-webkit-text-fill-color:#F4F8FB;color:#F4F8FB}
.topbar .crumb{background:rgba(255,255,255,.06) !important;border-color:rgba(255,255,255,.10) !important;color:#A2B0BC !important}
.topbar .crumb.strong{background:#E2813B !important;color:#fff !important;border-color:transparent !important}
.ver-chip{color:#FFC79C;background:rgba(226,129,59,.14);border-color:rgba(226,129,59,.28)}

.panel,.kpi{background:rgba(255,255,255,.055) !important;
  backdrop-filter:blur(18px) saturate(130%);-webkit-backdrop-filter:blur(18px) saturate(130%);
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 14px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.07) !important}
.panel-head{border-bottom:1px solid rgba(255,255,255,.08)}
.panel-head h3{color:#EDF2F6}
.kpi-label{color:#98A7B4}
.kpi-value{color:#F4F8FB}
.kpi-sub{color:#7E8D99}

thead th{background:rgba(255,255,255,.05) !important;color:#98A7B4 !important;border-bottom:1px solid rgba(255,255,255,.10) !important}
tbody td{border-bottom:1px solid rgba(255,255,255,.06);color:#D7E1E9}
tbody tr:hover td{background:rgba(255,255,255,.13) !important}
tbody tr.total-row{background:rgba(255,255,255,.07)}
tbody tr.total-row td{border-top:1px solid rgba(255,255,255,.14);color:#F0F5F9}
#orderTable tbody tr.ord-sel-on td{background:rgba(226,129,59,.16) !important}
#orderTable tbody td.frz{background:rgba(16,19,23,.94)}
#orderTable tbody tr:hover td.frz{background:rgba(30,35,41,.96)}
#view-arflow .arf-row:hover td{background:rgba(255,255,255,.13) !important;color:#F2F6F9}
#view-arflow .arf-row.on td{background:rgba(226,129,59,.16) !important}

.btn,.chip,.ms-btn,.admin-btn,.refresh-btn,.login-btn,.pill-tabs,.seg{border-radius:10px !important}
.btn{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.14);color:#E6EDF3}
.btn:hover{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.22)}
.btn.primary{background:#E2813B;border-color:transparent;color:#fff}
.admin-btn,.refresh-btn{background:rgba(255,255,255,.07) !important;border-color:rgba(255,255,255,.14) !important;color:#E6EDF3 !important}
.admin-btn:hover,.refresh-btn:hover{background:rgba(255,255,255,.13) !important;color:#fff !important}
.seg,.pill-tabs{background:rgba(255,255,255,.06) !important;border-color:rgba(255,255,255,.10) !important}
.pill-tabs button{color:#A2B0BC}
.pill-tabs button.active{background:rgba(255,255,255,.14) !important;color:#fff}
.seg button{color:#A2B0BC}
.seg button.active{background:#E2813B !important;color:#fff}

input[type=text],input[type=password],input[type=number],input[type=search],select,textarea{
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.13);color:#F2F6F9}
input::placeholder{color:#7E8D99}

.ms-pop{background:#171B21 !important;border-color:rgba(255,255,255,.14) !important;box-shadow:0 24px 60px rgba(0,0,0,.55) !important}
.ms-pop label{color:#E8EFF5}
.ms-pop label:hover{background:rgba(255,255,255,.08)}
.ms-pop .ms-tools button{background:rgba(255,255,255,.08);color:#C9D6E2;border-color:rgba(255,255,255,.12)}
.modal{background:#171B21 !important;color:#EAF1F7;border:1px solid rgba(255,255,255,.14);box-shadow:0 40px 100px rgba(0,0,0,.62)}
.modal-mask{background:rgba(5,8,11,.66)}
.modal-head{color:#F6FAFD}
.modal, .modal p, .modal label, .modal .field label{color:#DCE6EE}
.modal input{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14);color:#F2F6F9}

a, .app a{color:#F2B27C}
td.code-txt, .cust-code, .tag.code{color:#F3C08B !important}
#orderTable tbody td.code-txt, #orderTable tbody td.mono.code-txt{font-size:15px !important;font-weight:600}
.tag.danger{background:rgba(224,133,122,.16);color:#F0A79B}
.agf.bad{background:rgba(224,133,122,.16);color:#F0A79B}
.agf.ok{background:rgba(63,191,143,.14);color:#7FD8B4}
.agf.warn{background:rgba(226,129,59,.16);color:#F3B183}
.agf.z{background:rgba(255,255,255,.08);color:#A8B6C2}

.app svg text{fill:#C6D3DF !important}
.app svg line{stroke:rgba(255,255,255,.10)}
@media (max-width:1700px){
  .topbar{flex-wrap:wrap;height:auto !important;min-height:76px !important;padding-top:10px;padding-bottom:10px}
}
#view-arflow table{min-width:1180px}

/* 行 hover 由 td 负责，tr 自身不能带浅色底（浅色皮肤的 .55 白会透上来） */
tbody tr:hover{background:transparent !important}
tbody tr.total-row:hover{background:rgba(255,255,255,.07) !important}
/* 横批恢复单行：窄屏时筛选区自己横向滚动，不再换行把横批撑成两行 */
@media (max-width:1700px){
  .topbar{flex-wrap:nowrap !important;height:76px !important;min-height:76px !important}
  .topbar .filters{overflow-x:auto;scrollbar-width:none}
  .topbar .filters::-webkit-scrollbar{height:0}
  .topbar .ms-btn{height:30px;font-size:11px;padding:0 10px}
}

/* 强制统一柱体渐变（inline background 会盖掉单条 background-color） */
.bars .bar, .bar-col .bar{
  background:linear-gradient(180deg,#F6BA90 0%,#E2813B 46%,#C25F1B 100%) !important;
  border-radius:6px 6px 2px 2px !important;
  box-shadow:0 8px 18px rgba(217,112,31,.22)
}

/* ==========================================================================
   2026-11-19 · 登录门 A/B/C 三层（参照图 3）+ 内页底图/表格不透明度 + 图表配色
   ========================================================================== */
/* A 层：整页虚化底图 */
.gate{padding:24px;background:#0A0F15 url(../assets/login-bg.jpg) center/cover no-repeat fixed}
.gate::before{content:"";position:absolute;inset:0;
  background:rgba(8,11,15,.42);backdrop-filter:blur(24px) saturate(120%);-webkit-backdrop-filter:blur(24px) saturate(120%)}
/* B 层：卡片左半的清晰照片（占 56%） */
.gate-card{width:1120px;max-width:94vw;height:640px;border-radius:26px;overflow:hidden;position:relative;
  background:#0E1319;border:1px solid rgba(255,255,255,.16);box-shadow:0 50px 120px rgba(0,0,0,.55)}
.gate-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:56%;
  background:url(../assets/login-bg.jpg) center/cover no-repeat}
/* C 层：右侧内嵌的磨砂表单面板 */
.gate-card::after{content:"";position:absolute;left:calc(56% + 12px);top:12px;right:12px;bottom:12px;
  border-radius:20px;background:rgba(14,19,25,.46);
  backdrop-filter:blur(18px) saturate(130%);-webkit-backdrop-filter:blur(18px) saturate(130%);
  border:1px solid rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}

/* B 区文案 */
.gate-logo{position:absolute;left:56px;top:54px;margin:0;justify-content:flex-start;z-index:3}
.gate-title{position:absolute;left:56px;top:188px;width:42%;margin:0;z-index:3;text-align:left;
  font-size:38px;line-height:1.22;font-weight:300;color:#fff;background:none;-webkit-text-fill-color:#fff}
.gate-sub{position:absolute;left:56px;top:300px;width:40%;margin:0;z-index:3;text-align:left;
  font-size:12.5px;line-height:1.9;color:rgba(255,255,255,.80);letter-spacing:.02em}
.gate-sub::after{content:"账号由管理员在「账户管理」中创建；登录后可查看订单、成本、回款与单据。";
  display:block;margin-top:14px;color:rgba(255,255,255,.62);font-size:11.5px;line-height:1.9}

/* C 区表单 */
.gate-form{position:absolute;left:calc(56% + 60px);right:66px;top:118px;z-index:3;margin:0}
.gate-icp{position:absolute;left:calc(56% + 60px);right:66px;bottom:34px;z-index:3;margin:0;padding:14px 0 0;
  border-top:1px solid rgba(255,255,255,.10);text-align:left;color:rgba(255,255,255,.40);font-size:9.5px}
.gate-icp .icp-link{color:rgba(255,255,255,.55)}

/* 内页：表格区域底子更实，照片只从边缝透 */
.table-wrap{background:rgba(12,16,21,.55)}
.panel-body.flush{background:rgba(12,16,21,.35)}

/* 图表配色：按容器指定 */
#monthChart .bar{background:linear-gradient(180deg,#F6BA90 0%,#E2813B 46%,#C25F1B 100%) !important}
#okayaChart .bar{background:linear-gradient(180deg,#A9C9E4 0%,#5E93BC 46%,#3C6E96 100%) !important}
#profitChart .bar{background:linear-gradient(180deg,#9AD3BC 0%,#3FBF8F 46%,#2A8663 100%) !important}
#custAmtChart .bar{background:linear-gradient(180deg,#9AD3BC 0%,#3FBF8F 46%,#2A8663 100%) !important}
#custQtyBwgChart .bar{background:linear-gradient(180deg,#F6BA90 0%,#E2813B 46%,#C25F1B 100%) !important}
#custQtyGjChart .bar{background:linear-gradient(180deg,#A9C9E4 0%,#5E93BC 46%,#3C6E96 100%) !important}
#prodYoyBwgChart .bar{background:linear-gradient(180deg,#F6BA90 0%,#E2813B 46%,#C25F1B 100%) !important}
#prodYoyGjChart .bar{background:linear-gradient(180deg,#A9C9E4 0%,#5E93BC 46%,#3C6E96 100%) !important}
#prodYoyYhChart .bar{background:linear-gradient(180deg,#9AD3BC 0%,#3FBF8F 46%,#2A8663 100%) !important}

/* 修：卡片内边距导致照片露白边；卡片底色改深 */
.gate-card{padding:0 !important;background:#0E1319 !important}
.gate-card::before{height:100% !important}
.gate-card::after{background:rgba(14,19,25,.42) !important}

/* 登录门 B 层改为整卡照片 + 左侧压暗，C 层才是磨砂面板（对齐图 3） */
.gate-card::before{width:100% !important;
  background:
    linear-gradient(90deg, rgba(6,10,14,.78) 0%, rgba(6,10,14,.45) 42%, rgba(6,10,14,.05) 70%, rgba(6,10,14,0) 100%),
    url(../assets/login-bg.jpg) center/cover no-repeat !important}
.gate-title{text-shadow:0 2px 18px rgba(0,0,0,.45)}
.gate-sub{text-shadow:0 1px 10px rgba(0,0,0,.45)}

/* ==========================================================================
   2026-11-19 第 4 轮：登录 C 左置 + B 放大 + 表格真透明
   ========================================================================== */
.gate-card{width:96vw !important;max-width:1680px !important;height:90vh !important;max-height:900px !important;
  padding:0 !important;border-radius:28px !important}
.gate-card::before{width:100% !important;
  background:
    linear-gradient(90deg, rgba(6,10,14,.62) 0%, rgba(6,10,14,.28) 38%, rgba(6,10,14,.02) 62%, rgba(6,10,14,0) 100%),
    url(../assets/login-bg.jpg) center/cover no-repeat !important}
/* C：左侧磨砂表单面板（占 34%） */
.gate-card::after{left:12px !important;right:auto !important;width:34% !important;
  top:12px !important;bottom:12px !important;border-radius:22px !important;
  background:rgba(12,16,21,.50) !important;backdrop-filter:blur(20px) saturate(130%) !important}
.gate-logo{left:44px !important;top:44px !important;right:auto !important}
.gate-title{left:44px !important;top:106px !important;width:25% !important;font-size:36px !important;
  font-weight:300 !important;letter-spacing:.01em}
.gate-sub{left:44px !important;top:158px !important;width:25% !important;font-size:11px !important}
.gate-sub::after{display:none !important}
.gate-form{left:44px !important;right:auto !important;width:25% !important;top:206px !important}
.gate-icp{left:44px !important;right:auto !important;width:25% !important;bottom:28px !important}

/* 输入框图标（右对齐） */
.gate-form .field{position:relative}
.gate-form .field input{padding-right:34px !important}
.gate-form .field:nth-child(1) input{
  background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23A9BCCD' stroke-width='1.5'%3E%3Ccircle cx='9' cy='6' r='3'/%3E%3Cpath d='M3 16c0-3 2.7-5 6-5s6 2 6 5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 4px center;background-size:16px}
.gate-form .field:nth-child(2) input{
  background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23A9BCCD' stroke-width='1.5'%3E%3Crect x='4' y='8' width='10' height='7' rx='1.5'/%3E%3Cpath d='M6 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 4px center;background-size:16px}

/* 表格真透明：底色只留 5% 白 + 模糊，照片从面板后透出来 */
.app{background:rgba(14,17,22,.34) !important}
.panel{background:rgba(255,255,255,.05) !important}
.table-wrap{background:transparent !important}
.panel-body.flush{background:transparent !important}
tbody td{background:transparent}

/* 透明度与可读性的平衡：面板改深色半透（照片透出来但不刺眼） */
.app{background:rgba(12,15,20,.42) !important}
.panel{background:rgba(10,14,19,.42) !important;
  backdrop-filter:blur(20px) saturate(130%);-webkit-backdrop-filter:blur(20px) saturate(130%)}
thead th{background:rgba(10,14,19,.55) !important}
.kpi{background:rgba(10,14,19,.40) !important}

/* ===== 2026-11-19 第 5 轮：登录比例/间距/slogan + 图表尺寸与圆角 + 行态统一 ===== */
.gate-card{width:98vw !important;height:94vh !important;max-width:none !important;max-height:none !important}
.gate-card::after{width:30% !important}
.gate-title{font-size:44px !important;top:120px !important}
.gate-sub{top:196px !important}
.gate-form{top:258px !important}
.gate-form .field{margin-bottom:26px !important}
.gate-form .field label{font-size:10px !important;letter-spacing:.18em !important}
.gate-form .field input{font-size:15px !important;padding:12px 0 !important}
.gate-card .btn.gate-btn{height:50px !important;margin-top:10px !important;font-size:13.5px !important}
.gate-form::after{content:"HIGH QUALITY    PROFESSIONAL    EFFICIENT";display:block;margin-top:20px;
  font-size:9.5px;letter-spacing:.24em;color:rgba(255,255,255,.55)}

/* 图表铺满容器 + 圆角柱 */
.chart > svg, .cust-chart > svg{width:100% !important;height:auto !important}
.bar{border-radius:8px 8px 2px 2px !important}

/* 回款明细：期初行 hover 也走统一浅灰 */
#view-arflow tbody tr:hover td{background:rgba(255,255,255,.06) !important}

/* 订单汇总/明细：点击选中行 = 橙底 + 左侧橙条（与回款明细一致） */
#orderTable tbody tr.ord-sel-on td, #orderDetailTable tbody tr.ord-sel-on td{background:rgba(226,129,59,.16) !important}
#orderTable tbody tr.ord-sel-on td:first-child, #orderDetailTable tbody tr.ord-sel-on td:first-child{
  box-shadow:inset 3px 0 0 #E2813B}

/* slogan 单行 */
.gate-form::after{white-space:nowrap !important;font-size:9px !important;letter-spacing:.18em !important}

/* 新建订单：下拉更实、数量输入可读 */
#view-neworder .ms-pop{background:#0F1319 !important;border-color:rgba(255,255,255,.16) !important}
#view-neworder .ms-pop label{color:#EAF1F7 !important}
#view-neworder input[type=number], #view-neworder input[type=text]{background:rgba(0,0,0,.35) !important;color:#F4F8FB !important}
#view-neworder table input{color:#F4F8FB !important;background:rgba(0,0,0,.35) !important}

/* 回款明细：未开票未回款蓝色降饱和 + 加粗；其他应收款加粗 */
#view-arflow td{font-variant-numeric:tabular-nums}

/* 回款明细：蓝色降饱和 + 加粗；其他应收款加粗 */
#view-arflow td[style*="2d5876"], #view-arflow td[style*="6E9FBF"]{color:#93C2DC !important;font-weight:700 !important}
#view-arflow tbody td:nth-child(6), #view-arflow tbody td:nth-child(7){font-weight:700}
#view-arflow tbody td[style*="color"]{font-variant-numeric:tabular-nums}

/* ===== 2026-11-19 第 6 轮 ===== */
/* 1-2 登录：字号整体加大；C 面板上下收窄、居中、更透 */
.gate-title{font-size:48px !important;top:120px !important}
.gate-sub{font-size:13px !important;top:200px !important}
.gate-form{top:250px !important}
.gate-form .field label{font-size:14px !important}
.gate-form .field input{font-size:17px !important}
.gate-card .btn.gate-btn{font-size:17.5px !important;height:58px !important;border-radius:12px !important}
.gate-form::after{font-size:15px !important;letter-spacing:.10em !important;color:rgba(255,255,255,.68) !important}
.gate-icp{font-size:11px !important}
.gate-card::after{top:42px !important;bottom:42px !important;background:rgba(12,16,21,.34) !important}

/* 5 十字参考线 */
.chart, .cust-chart{position:relative}
.tlc-cross{position:absolute;top:0;bottom:0;width:0;border-left:1px dashed rgba(255,255,255,.45);pointer-events:none;z-index:5}

/* 7 图表背景横轴刻度线 */
.chart, .cust-chart{background-image:repeating-linear-gradient(to bottom,rgba(255,255,255,.10) 0 1px,transparent 1px 25%)}

/* 3 冻结列底色统一 */
#orderTable tbody td.frz, #orderDetailTable tbody td.frz{background:rgba(16,19,23,.94) !important}
#orderTable tbody tr:hover td.frz, #orderDetailTable tbody tr:hover td.frz{background:rgba(30,35,41,.96) !important}

/* 10/11 行态统一：hover 灰、点击橙底+橙条 */
tbody tr:hover td{background:rgba(255,255,255,.06) !important}
tbody tr.ord-sel-on td, tbody tr.arf-row.on td{background:rgba(226,129,59,.16) !important}
tbody tr.ord-sel-on td:first-child, tbody tr.arf-row.on td:first-child{box-shadow:inset 3px 0 0 #E2813B !important}

/* 9 回款明细：蓝降饱和加粗、绿色加粗 */
#view-arflow td[style*="2d5876"]{color:#93C2DC !important;font-weight:700 !important}
#view-arflow td[style*="0f9960"]{font-weight:700 !important}

/* 12 客户下拉更实 */
#view-neworder .ms-pop{background:#0B0F14 !important}

/* 13 产品下拉加宽 */
#view-neworder .ms-pop{min-width:340px !important}

/* 登录：放大字号后重排，避免重叠/溢出 */
.gate-card::after{width:36% !important;top:34px !important;bottom:34px !important;background:rgba(12,16,21,.30) !important}
.gate-logo{top:38px !important;left:46px !important}
.gate-title{top:104px !important;font-size:46px !important}
.gate-sub{top:172px !important;width:31% !important;font-size:12px !important;line-height:1.9 !important;letter-spacing:.06em !important}
.gate-form{top:236px !important;width:31% !important;left:46px !important}
.gate-form .field{margin-bottom:22px !important}
.gate-form::after{font-size:12.5px !important;letter-spacing:.08em !important;white-space:normal !important;line-height:1.9}
.gate-icp{width:31% !important;left:46px !important;bottom:22px !important}

/* 采购信息：三列布局（1/3 + 1/3 + 1/3；收货地址占 2 格） */
.form-grid.three-col{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:12px 14px !important}
.form-grid.three-col .span2{grid-column:span 2 !important}

/* OKAYA 数量曲线：容器高度自适应，保证横轴月份刻度不被裁掉 */
#okayaQtyBwg, #okayaQtyGj{height:auto !important;min-height:300px;overflow:visible !important}
#okayaQtyBwg > svg, #okayaQtyGj > svg{overflow:visible !important}

/* ==========================================================================
   登录页 · 完全按参考稿（2026-11-19 22:41 截屏）
   A 虚化整页 / B 卡片满幅照片 / C 左置磨砂面板（上下居中，占 67% 高）
   ========================================================================== */
.gate{padding:40px;background:#08111A url(../assets/login-bg.jpg) center/cover no-repeat fixed}
.gate::before{background:rgba(6,12,18,.10) !important;backdrop-filter:blur(16px) saturate(115%) !important;-webkit-backdrop-filter:blur(16px) saturate(115%) !important}

.gate-card{width:85.6vw !important;max-width:1400px !important;height:86.7vh !important;max-height:820px !important;
  border-radius:24px !important;padding:0 !important;background:#0C141C !important;
  border:1px solid rgba(255,255,255,.18) !important;box-shadow:0 40px 100px rgba(0,0,0,.45) !important}
.gate-card::before{width:100% !important;height:100% !important;
  background:url(../assets/login-bg.jpg) center/cover no-repeat !important}

/* C：左侧面板，上下居中，高 67% */
.gate-card::after{left:1.8% !important;right:auto !important;width:33.4% !important;
  top:12% !important;bottom:auto !important;height:67% !important;border-radius:20px !important;
  background:rgba(20,34,46,.30) !important;
  backdrop-filter:blur(16px) saturate(125%) !important;-webkit-backdrop-filter:blur(16px) saturate(125%) !important;
  border:1px solid rgba(255,255,255,.16) !important}

/* 面板内的排版（全部相对卡片定位） */
.gate-logo{left:3.4% !important;top:15.8% !important;right:auto !important;transform:scale(.92);transform-origin:left center}
.gate-title{left:3.4% !important;top:23.2% !important;width:26% !important;
  font-size:40px !important;font-weight:300 !important;line-height:1.1 !important;letter-spacing:0 !important;
  text-align:left !important;margin:0 !important}
.gate-sub{left:3.4% !important;top:29.6% !important;width:26% !important;
  font-size:11px !important;letter-spacing:.10em !important;color:rgba(255,255,255,.82) !important;
  text-align:left !important;line-height:1.6 !important}
.gate-sub::after{display:none !important}

.gate-form{left:3.4% !important;right:auto !important;width:25.4% !important;top:34.4% !important}
.gate-form .field{margin-bottom:16px !important}
.gate-form .field label{display:block !important;font-size:10.5px !important;letter-spacing:.14em !important;
  text-transform:uppercase !important;color:rgba(255,255,255,.78) !important;margin-bottom:8px !important;font-weight:500 !important}
.gate-form .field input{width:100% !important;background:transparent !important;border:0 !important;
  border-bottom:1px solid rgba(255,255,255,.42) !important;border-radius:0 !important;
  padding:8px 2px !important;font-size:14.5px !important;color:#fff !important;height:auto !important}
.gate-form .field input::placeholder{color:rgba(255,255,255,.55) !important}
.gate-form .field input:focus{border-bottom-color:#E08A47 !important;box-shadow:none !important}

.gate-card .btn.gate-btn{width:100% !important;height:44px !important;margin-top:34px !important;
  border-radius:8px !important;font-size:15px !important;font-weight:500 !important;
  background:#E2813B !important;border:0 !important;color:#fff !important;letter-spacing:.02em}
.gate-card .btn.gate-btn:hover{background:#E2813B !important}

.gate-form::after{content:"HIGH QUALITY  |  PROFESSIONAL  |  EFFICIENT";display:block !important;
  margin-top:26px !important;font-size:10.5px !important;letter-spacing:.12em !important;
  color:rgba(255,255,255,.92) !important;white-space:nowrap !important}

/* 参考稿里没有这些 */
.gate-note{display:none !important}
.gate-icp{display:none !important}

/* 登录：比例按参考稿，去掉最大宽高上限，字号随视口缩放 */
.gate-card{width:88vw !important;height:88vh !important;max-width:none !important;max-height:none !important}
.gate-title{font-size:clamp(36px,2.55vw,56px) !important}
.gate-sub{font-size:clamp(11px,.72vw,14px) !important}
.gate-form .field label{font-size:clamp(10px,.62vw,13px) !important}
.gate-form .field input{font-size:clamp(14px,.86vw,18px) !important;padding:clamp(7px,.9vh,12px) 2px !important}
.gate-card .btn.gate-btn{height:clamp(44px,4.6vh,58px) !important;font-size:clamp(14px,.86vw,17px) !important}
.gate-form::after{font-size:clamp(10px,.62vw,13px) !important}
.gate-form .field{margin-bottom:clamp(14px,1.9vh,26px) !important}
.gate-card .btn.gate-btn{margin-top:clamp(24px,3.4vh,42px) !important}

/* 利润图左侧金额刻度 */
.tlc-chart-row{display:flex;align-items:stretch;gap:6px}
.tlc-yaxis{position:relative;width:54px;flex:0 0 54px;font-size:10px;color:#8FA3B4}
.tlc-yaxis span{position:absolute;right:4px;transform:translateY(50%)}
.tlc-chart-main{flex:1;min-width:0}

/* 冻结列：不透明底 + 层级，横向滚动时下层数据不穿透 */
.tlc-sticky{position:sticky !important;z-index:7;background:#0F141A !important}
thead .tlc-sticky{background:#12171E !important}
tbody tr:hover .tlc-sticky{background:#1B222A !important}

.tlc-sticky{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ===== 第 8 轮：登录细节 / 冻结列底色 ===== */
/* 1 logo 放大 */
.gate-logo{transform:scale(1.5) !important;transform-origin:left top !important}
/* 2 文案分组：标题组紧凑，字段组下移，两组之间拉开 */
.gate-title{top:22.4% !important}
.gate-sub{top:27.6% !important}
.gate-form{top:38.2% !important}
/* 2 标签右侧小图标 */
.gate-form .field label{position:relative;display:flex !important;align-items:center;justify-content:space-between}
.gate-form .field:nth-child(1) label::after,
.gate-form .field:nth-child(2) label::after{content:"";width:15px;height:15px;opacity:.75;
  background-repeat:no-repeat;background-size:15px 15px;background-position:center}
.gate-form .field:nth-child(1) label::after{
  background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23CFE0EC' stroke-width='1.4'%3E%3Ccircle cx='9' cy='6' r='3'/%3E%3Cpath d='M3 16c0-3 2.7-5 6-5s6 2 6 5'/%3E%3C/svg%3E")}
.gate-form .field:nth-child(2) label::after{
  background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23CFE0EC' stroke-width='1.4'%3E%3Crect x='4' y='8' width='10' height='7' rx='1.5'/%3E%3Cpath d='M6 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E")}
/* 输入框里不再重复图标 */
.gate-form .field input{background-image:none !important;padding-right:2px !important}

/* 3 冻结列底色全局统一 */
.app table tbody td.frz{background:rgba(16,19,23,.94) !important}
.app table tbody tr:hover td.frz{background:rgba(30,35,41,.96) !important}




/* 登录：按参考稿重排（logo 16.5% / 标题 25.5% / 副标 30.4% / 表单 36% / slogan 收进面板内） */
.gate-logo{transform:scale(1.35) !important;top:16.2% !important}
.gate-title{top:25.2% !important}
.gate-sub{top:30.2% !important}
.gate-form{top:35.8% !important}
.gate-form .field{margin-bottom:clamp(12px,1.6vh,20px) !important}
.gate-card .btn.gate-btn{margin-top:clamp(20px,3vh,36px) !important}
.gate-card::after{height:69% !important;top:11% !important}
.gate-form::after{margin-top:clamp(14px,2.2vh,24px) !important}

.gate-sub{top:32.2% !important}
.gate-form{top:37.8% !important}

/* 折线节点悬浮：即时显示当月数量 */
.tlc-tip{opacity:0;pointer-events:none;font-size:11px;fill:#FFF3E6;font-weight:600;
  paint-order:stroke;stroke:rgba(10,14,19,.85);stroke-width:3px;transition:opacity .08s}
circle.tlc-hit:hover + .tlc-tip{opacity:1}

/* ===== 第 9 轮 ===== */
/* 1 logo 用真实尺寸放大（不用 transform，避免磨砂层把位图重采样糊掉）；标题左对齐并加大 */
.gate-logo{transform:none !important;left:3.2% !important;top:15.6% !important}
.gate-logo img{height:58px !important;width:auto !important;image-rendering:auto}
.gate-title{left:3.2% !important;font-size:clamp(46px,3.35vw,76px) !important;text-align:left !important;top:24.6% !important}
.gate-sub{left:3.2% !important;top:33.4% !important}
.gate-form{left:3.2% !important;top:39.4% !important}

/* 2 刻度线：只有四等分线，无数字 */
#okayaQtyBwg text, #okayaQtyGj text{/* 保留月份，仅去掉轴值 */}

/* 4 期初行：不要白底 */
.tlc-init td{background:transparent !important;color:rgba(255,255,255,.62) !important}
.tlc-init:hover td{background:rgba(255,255,255,.06) !important}

/* 5 任意表格点击选中：橙底 + 首列橙条（与回款明细一致） */
tbody tr.tlc-rowsel td{background:rgba(226,129,59,.16) !important}
tbody tr.tlc-rowsel td:first-child{box-shadow:inset 3px 0 0 #E2813B !important}

/* 登录：面板略高，slogan 收回面板内 */
.gate-card::after{height:70.5% !important;top:10.5% !important}
.gate-form{top:38.6% !important}
/* 合计行冻结单元格底色 */
tfoot td.tlc-sticky{background:#12171E !important}

.tlc-sticky{background:#0E1319 !important;background-image:none !important;box-shadow:inset -1px 0 0 rgba(255,255,255,.10)}
thead .tlc-sticky{background:#11161C !important}

/* ===== 第 10 轮 ===== */
/* 登录后遮罩 */
.tlc-veil{position:fixed;inset:0;z-index:9999;opacity:0;pointer-events:none;background:#0B1016;
  transition:opacity .42s ease}

/* 3 订单汇总/明细冻结列：与「全部发票」选中态同底色 */
#orderTable tbody td.frz, #orderDetailTable tbody td.frz,
.app table tbody td.frz{background:rgba(255,255,255,.14) !important}

/* 4/5 客户 / 产品下拉：与全部客户下拉一致的不透明底；产品列表加宽 */
.ac-list{background:#0B0F14 !important;border-color:rgba(255,255,255,.16) !important}
.ac-list .ac-item{color:#DCE6EE !important}
.ac-list .ac-item:hover{background:rgba(255,255,255,.08) !important}
#view-neworder .ac-list{min-width:420px !important;right:auto !important}

/* 登录后首帧跳版：KPI 栅格固定列数，不再 auto-fit 从 5 列重排到 6 列 */
@media (min-width:1200px){.kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr)) !important}}
@media (max-width:1199px) and (min-width:761px){.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}}
@media (max-width:760px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}}
.chart{min-height:210px}

/* 产品编号下拉：按最长产品名（国产燃气用具连接用不锈钢波纹软管）留宽 */
#view-neworder .ac-list{min-width:520px !important;width:auto !important;right:auto !important;max-width:560px !important}

/* 柱线图（订单走势/OKAYA 订货）：左侧轴 + 只保留 4 条等分线 */
.chart, .cust-chart{background-image:none !important}
.combo-row{display:flex;gap:6px;align-items:flex-start}
.tlc-axis{position:relative;width:56px;flex:0 0 56px;font-size:10px;color:#8FA3B4}
.tlc-axis span{position:absolute;right:4px;transform:translateY(50%)}
.combo-col{flex:1;min-width:0}
.combo{position:relative;background-image:repeating-linear-gradient(to top,rgba(255,255,255,.10) 0 1px,transparent 1px 25%) !important}

/* 货品明细-产品编号下拉：按最长产品名留宽，不换行 */
#view-neworder .ms-pop{min-width:560px !important;width:max-content !important;max-width:660px !important}
#view-neworder .ms-pop label, #view-neworder .ms-pop .ms-item{white-space:nowrap !important}

/* 产品编号自定义下拉 */
.tlc-prodpick{position:absolute;z-index:9998;max-height:320px;overflow:auto;background:#0B0F14;
  border:1px solid rgba(255,255,255,.16);border-radius:10px;box-shadow:0 18px 40px rgba(0,0,0,.55);padding:4px}
.tlc-prodpick .pp-item{display:flex;gap:10px;align-items:baseline;padding:7px 10px;border-radius:7px;cursor:pointer;
  font-size:12.5px;color:#DCE6EE;white-space:nowrap}
.tlc-prodpick .pp-item:hover{background:rgba(255,255,255,.10)}
.tlc-prodpick .pp-item b{color:#F2B27C;font-weight:600;min-width:58px}
.tlc-prodpick .pp-empty{padding:10px;color:#8FA3B4;font-size:12px}

/* 客户名称下拉：body 上的浮层 */
.tlc-custpop{position:fixed !important;z-index:9997;max-height:320px;overflow:auto;
  background:#0B0F14 !important;border:1px solid rgba(255,255,255,.16);border-radius:10px;
  box-shadow:0 18px 40px rgba(0,0,0,.55)}

.tlc-prodpick{position:fixed !important}

/* 新建订单所有下拉：字号与「如 OA101」输入框一致（16.5px） */
.tlc-prodpick .pp-item{font-size:16.5px !important}
.tlc-prodpick .pp-item b{font-size:16.5px !important;min-width:74px}
.tlc-prodpick .pp-empty{font-size:16.5px !important}
.tlc-custpop .ac-item{font-size:16.5px !important}
.tlc-custpop .ac-item .ac-code{font-size:16.5px !important}
.tlc-custpop .ac-item .ac-sub{font-size:14px !important}

/* 采购信息：四列三行 */
.form-grid.four-col{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:12px 14px !important}
.form-grid.four-col .span2{grid-column:span 2 !important}
.form-grid.four-col .span3{grid-column:span 3 !important}
#o_total{color:#E0857A !important;font-weight:700 !important;text-align:right;letter-spacing:.02em}

/* 订单总金额徽标（面板标题右侧，红字） */
.order-total-chip{margin-left:auto;font-size:12.5px;color:#C9D6E2;display:inline-flex;align-items:center;gap:8px}
.order-total-chip b{color:#E0857A;font-size:16px;font-weight:700;letter-spacing:.02em}
.panel-head h3 + .order-total-chip{margin-left:auto}

/* 发票台账「期初（历史既存）」行：彻底去掉白底（最高优先级 + 清背景图/阴影） */
#view-arflow table tbody tr.arf-init,
#view-arflow table tbody tr.arf-init td,
#view-arflow table tbody tr.arf-init th,
#view-arflow [class*="init"] td{
  background:transparent !important;background-image:none !important;box-shadow:none !important}
#view-arflow table tbody tr.arf-init:hover td{background:rgba(255,255,255,.06) !important}
#view-arflow table tbody tr.arf-init td{color:rgba(255,255,255,.62) !important}

/* 回款明细：其他应收款绿 = 账龄徽标绿(#7FD8B4)；未开票未回款蓝 = 柱状图蓝(#5E93BC) */
#view-arflow td[style*="0f9960"], #view-arflow td[style*="3FBF8F"]{color:#7FD8B4 !important;font-weight:700 !important}
#view-arflow td[style*="2d5876"], #view-arflow td[style*="2D5876"]{color:#5E93BC !important;font-weight:700 !important}

/* 回款明细：其他应收款=账龄绿(#7FD8B4)；未开票未回款=柱状图蓝(#5E93BC) */
#view-arflow td.arf-dep{color:#7FD8B4 !important;font-weight:700 !important}
#view-arflow td.arf-noinv{color:#5E93BC !important;font-weight:700 !important}

/* 弹窗：所有输入/下拉与「到账日期」同款深底浅字；应收余额正红；字号 +2 */
.modal select, .modal .modal-body select{
  background:rgba(255,255,255,.08) !important;color:#F2F6F9 !important;
  border:1px solid rgba(255,255,255,.16) !important;border-radius:8px !important}
.modal select option{background:#12171E !important;color:#EAF1F7 !important}
.modal input, .modal textarea{
  background:rgba(255,255,255,.08) !important;color:#F2F6F9 !important;
  border:1px solid rgba(255,255,255,.16) !important}
.modal input::placeholder, .modal textarea::placeholder{color:rgba(255,255,255,.42) !important}
.modal input.ro, .modal input[readonly]{
  background:rgba(255,255,255,.05) !important;color:#E6EEF5 !important}
#arfRBal{color:#FF3B30 !important;font-weight:700 !important;background:rgba(255,59,48,.08) !important}
.modal-body, .modal-body .field label, .modal-body input, .modal-body select{
  font-size:14.5px !important}
.modal-body .field label{font-size:14.5px !important}

/* 冻结列底色 = 表格标题行底色 */
#view-customers thead th{background:#12171E !important}
#view-customers tbody td.frz{background:#12171E !important}
#view-customers tbody tr:hover td.frz{background:#151B23 !important}
#view-customers tfoot td.frz{background:#12171E !important}
/* 合计行里 119 与 1,073,340 不属于冻结列：恢复普通行底色 */
#view-customers tfoot td.frz:nth-child(3),
#view-customers tfoot td.frz:nth-child(4){position:static !important;background:transparent !important}

/* 确认订单弹窗：约 3 倍尺寸，字号 +2 */
.modal.doc-confirm{width:min(94vw,1600px) !important;max-width:94vw !important;max-height:90vh;overflow:auto}
.modal.doc-confirm .modal-body{font-size:16.5px !important;line-height:1.75}
.modal.doc-confirm .modal-body .small,.modal.doc-confirm .modal-body .muted{font-size:14.5px !important}
.modal.doc-confirm .modal-head{font-size:17px}
.modal.doc-confirm .modal-foot .btn{font-size:15px;padding:9px 18px}

/* 确认订单弹窗：2 倍宽（662 → 1324） */
.modal.doc-confirm{width:1324px !important;max-width:94vw !important}

/* 确认订单弹窗：字号再 +2（正文 18.5 / 说明 16.5 / 标题 19 / 按钮 17） */
.modal.doc-confirm .modal-body{font-size:18.5px !important}
.modal.doc-confirm .modal-body .small,.modal.doc-confirm .modal-body .muted{font-size:16.5px !important}
.modal.doc-confirm .modal-head{font-size:19px !important}
.modal.doc-confirm .modal-foot .btn{font-size:17px !important;padding:10px 20px !important}

/* 确认订单弹窗内表格：字号与「版式…」说明行一致（16.5） */
.modal.doc-confirm .modal-body table,
.modal.doc-confirm .modal-body table th,
.modal.doc-confirm .modal-body table td{font-size:16.5px !important}

/* 新建订单·第一部分 采购信息：标签/输入框与「如 OA101」同字号 */
#view-neworder .form-grid.four-col label,
#view-neworder .form-grid.four-col input,
#view-neworder .form-grid.four-col select{font-size:16.5px !important}
#view-neworder .form-grid.four-col label{font-size:16.5px !important}

/* 订单汇总：按页面宽度自适应，不再横向滚动 */
#orderTable table{table-layout:fixed !important;width:100% !important;min-width:0 !important}
#orderTable thead th,#orderTable tbody td{padding:9px 6px !important;font-size:12.5px !important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#orderTable thead th:nth-child(1){width:3% !important}
#orderTable thead th:nth-child(2){width:6.5% !important}
#orderTable thead th:nth-child(3){width:8% !important}
#orderTable thead th:nth-child(4){width:6.5% !important}
#orderTable thead th:nth-child(5){width:15% !important}
#orderTable thead th:nth-child(6){width:7.2% !important}
#orderTable thead th:nth-child(7){width:7.2% !important}
#orderTable thead th:nth-child(8){width:7.2% !important}
#orderTable thead th:nth-child(9){width:7.2% !important}
#orderTable thead th:nth-child(10){width:7.2% !important}
#orderTable thead th:nth-child(11){width:11% !important}
#orderTable thead th:nth-child(12){width:6.5% !important}
#orderTable thead th:nth-child(13){width:7.5% !important}
#orderTable colgroup col{width:auto !important}

/* 订单汇总列宽微调：金额列加宽，名称/发票略收 */
#orderTable thead th:nth-child(5){width:12% !important}
#orderTable thead th:nth-child(6),
#orderTable thead th:nth-child(7),
#orderTable thead th:nth-child(8),
#orderTable thead th:nth-child(9),
#orderTable thead th:nth-child(10){width:8% !important}
#orderTable thead th:nth-child(11){width:10.5% !important}
#orderTable thead th:nth-child(13){width:7% !important}

/* 订单汇总：卡片与表格字号 +2 */
#view-orders .kpi-label{font-size:13.5px !important}
#view-orders .kpi-value{font-size:25px !important}
#view-orders .kpi-sub{font-size:13.5px !important}
#view-orders #orderTable thead th,
#view-orders #orderTable tbody td{font-size:14px !important}

/* 字号加大后重新分配列宽：日期/编号加宽，名称略收 */
#orderTable thead th:nth-child(1){width:3% !important}
#orderTable thead th:nth-child(2){width:8.5% !important}
#orderTable thead th:nth-child(3){width:8.5% !important}
#orderTable thead th:nth-child(4){width:7% !important}
#orderTable thead th:nth-child(5){width:11% !important}
#orderTable thead th:nth-child(6),
#orderTable thead th:nth-child(7),
#orderTable thead th:nth-child(8),
#orderTable thead th:nth-child(9),
#orderTable thead th:nth-child(10){width:8% !important}
#orderTable thead th:nth-child(11){width:9.5% !important}
#orderTable thead th:nth-child(12){width:6.5% !important}
#orderTable thead th:nth-child(13){width:6% !important}

/* 操作列加宽，发票信息让位 */
#orderTable thead th:nth-child(5){width:10.5% !important}
#orderTable thead th:nth-child(6),
#orderTable thead th:nth-child(7),
#orderTable thead th:nth-child(8),
#orderTable thead th:nth-child(9),
#orderTable thead th:nth-child(10){width:7.8% !important}
#orderTable thead th:nth-child(11){width:8% !important}
#orderTable thead th:nth-child(13){width:9% !important}

/* 最后校准：操作列给足宽度，单元格按 border-box 计算 */
#orderTable thead th,#orderTable tbody td{box-sizing:border-box !important}
#orderTable thead th:nth-child(1){width:4% !important}
#orderTable thead th:nth-child(2){width:8.5% !important}
#orderTable thead th:nth-child(3){width:8.5% !important}
#orderTable thead th:nth-child(4){width:6.5% !important}
#orderTable thead th:nth-child(5){width:10% !important}
#orderTable thead th:nth-child(6),
#orderTable thead th:nth-child(7),
#orderTable thead th:nth-child(8),
#orderTable thead th:nth-child(9),
#orderTable thead th:nth-child(10){width:7.6% !important}
#orderTable thead th:nth-child(11){width:7% !important}
#orderTable thead th:nth-child(12){width:6.5% !important}
#orderTable thead th:nth-child(13){width:11% !important}

/* KPI 卡内并排的第二个数值（平均毛利） */
#view-orders .kpi-value .kpi-alt{font-size:.72em;font-weight:700;margin-left:10px;color:#7FD8B4}
#view-orders .kpi-value .kpi-alt::before{content:"/";color:rgba(255,255,255,.35);margin-right:10px;font-weight:400}

/* 订单汇总：7 张卡并排 */
#view-orders .kpi-grid{grid-template-columns:repeat(7,minmax(0,1fr)) !important}
#view-orders .kpi-value{font-size:23px !important}
#view-orders .kpi-label{font-size:13px !important}

/* 7 卡并排：数值略缩，保证「¥10,286,101.10」不截断 */
#view-orders .kpi-value{font-size:20px !important;letter-spacing:-.03em}
#view-orders .kpi-label{font-size:12.5px !important}
#view-orders .kpi-sub{font-size:12px !important;line-height:1.4}
#view-orders .kpi{padding:14px 14px 12px !important}

/* 7 卡适配：数值 18px、副行单行省略；表格严格裁切 */
#view-orders .kpi{padding:12px 12px 10px !important}
#view-orders .kpi-value{font-size:18px !important}
#view-orders .kpi-label{font-size:12px !important}
#view-orders .kpi-sub{font-size:11px !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#orderTable thead th,#orderTable tbody td{overflow:hidden !important;text-overflow:ellipsis !important}

/* 表格字号 +2（16px）试装 */
#view-orders #orderTable thead th,
#view-orders #orderTable tbody td{font-size:16px !important}

/* 16px 放不下 → 回退 15px（+1），并微调列宽 */
#view-orders #orderTable thead th,
#view-orders #orderTable tbody td{font-size:15px !important}
#orderTable thead th:nth-child(1){width:3.5% !important}
#orderTable thead th:nth-child(2){width:8% !important}
#orderTable thead th:nth-child(3){width:8.5% !important}
#orderTable thead th:nth-child(4){width:7.5% !important}
#orderTable thead th:nth-child(5){width:9.5% !important}
#orderTable thead th:nth-child(6),
#orderTable thead th:nth-child(7),
#orderTable thead th:nth-child(8),
#orderTable thead th:nth-child(9),
#orderTable thead th:nth-child(10){width:7.4% !important}
#orderTable thead th:nth-child(11){width:8.5% !important}
#orderTable thead th:nth-child(12){width:6.5% !important}
#orderTable thead th:nth-child(13){width:10.5% !important}

#orderTable td:last-child .btn{font-size:12.5px !important;padding:4px 7px !important;margin-left:4px}


/* 操作列 12%，客户名称让 1% */
#orderTable thead th:nth-child(5){width:8.5% !important}
#orderTable thead th:nth-child(13){width:12% !important}

#orderTable td:last-child .btn{font-size:12px !important;padding:3px 6px !important;margin-left:3px !important}
#orderTable td:last-child{white-space:nowrap}


/* 所有页面的 KPI 标签卡：字号与订单汇总一致 */
.kpi-label{font-size:12px !important}
.kpi-value{font-size:18px !important}
.kpi-sub{font-size:11px !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpi{padding:12px 12px 10px !important}

/* 订单汇总筛选条：选中项橙色；重置/选择 与「全部客户」同宽同高 */
#view-orders button.active{
  background:#E2813B !important;
  color:#fff !important;border-color:transparent !important;font-weight:600 !important}
#view-orders .btn.sm{min-width:86px !important;justify-content:center !important;height:33px !important;padding:0 10px !important}

/* 操作列：字号与客户名称一致（15px）；编辑 hover 橙、改单不变、删除 hover 红 */
#orderTable td:last-child .btn{font-size:15px !important;padding:3px 8px !important;margin-left:3px !important;min-width:0 !important}
#orderTable td:last-child .btn.xs{border-radius:8px}
#orderTable td:last-child .btn.ghost:not(.ib-del):hover{
  background:transparent !important;color:#A2B0BC !important;border-color:rgba(255,255,255,.16) !important}
#orderTable td:last-child .btn:not(.ghost):hover{
  background:#E2813B !important;color:#fff !important;border-color:transparent !important}
#orderTable td:last-child .btn.ib-del:hover{
  background:#E4573F !important;color:#fff !important;border-color:transparent !important}

#orderTable thead th:nth-child(5){width:7.5% !important}
#orderTable thead th:nth-child(13){width:13% !important}


/* ===== V8.11.3N：横批与侧栏同底 + 全局改小圆角 ===== */
.topbar{
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.02)) !important;
  border-bottom:1px solid rgba(255,255,255,.10) !important;
}
.app,.panel,.kpi,.card,.modal,.doc-preview,.table-wrap,.gate-card{border-radius:6px !important}
.btn,.ms-btn,.chip,.pill-tabs,.pill-tabs button,.seg,.seg button,.topbar .ms-btn{border-radius:5px !important}
input,select,textarea,.ac-list,.ms-pop,.tlc-prodpick,.tlc-custpop{border-radius:5px !important}
.tag,.agf{border-radius:4px !important}
.nav a{border-radius:5px !important}

/* V8.11.3N · 圆角统一 8px */
.app,.panel,.kpi,.card,.modal,.doc-preview,.table-wrap,.gate-card{border-radius:8px !important}
.btn,.ms-btn,.chip,.pill-tabs,.pill-tabs button,.seg,.seg button,.topbar .ms-btn{border-radius:8px !important}
input,select,textarea,.ac-list,.ms-pop,.tlc-prodpick,.tlc-custpop{border-radius:8px !important}
.tag,.agf{border-radius:8px !important}
.nav a{border-radius:8px !important}


/* V8.11.3N · 安全版统一：只统一按钮高度与圆角，不动顶栏筛选胶囊 */
.app .btn:not(.gate-btn){height:33px !important;min-height:33px !important;border-radius:8px !important;font-size:12.5px !important}
.app .btn.sm,.app .btn.xs{font-size:12.5px !important}
#orderTable td:last-child .btn{height:33px !important;min-height:33px !important;padding:0 8px !important;font-size:13px !important}

/* 顶栏三按钮：宽度锁定、hover 橙色 */
#btnRefresh{min-width:103px !important;justify-content:center !important}
#adminEntry{min-width:99px !important;justify-content:center !important}
#btnRefresh:hover,#adminEntry:hover,#userChip:hover{
  background:#E2813B !important;
  color:#fff !important;border-color:transparent !important;
}
#btnRefresh:hover .lbl,#adminEntry:hover,#userChip:hover *{color:#fff !important}
#userChip{cursor:pointer}

/* ===== V8.11.4：下拉按钮 hover 橙色 2px 边框；所有按钮 hover 变色 ===== */
.app .ms-btn:hover,
.app .ms-btn.open,
.app .sel-btn:hover,
.app .select-btn:hover,
.app [class*="picker"]:hover,
.app .pill-tabs button:not(.active):hover{
  border:2px solid #E2813B !important;
  color:#E2813B !important;
  background:rgba(226,129,59,.10) !important;
  padding:0 11px !important;   /* 补回 1px，避免加粗后抖动 */
}
.app .btn:hover{
  background:#E2813B !important;
  color:#fff !important;border-color:transparent !important;
}
.app .btn.danger:hover,.app .btn.ib-del:hover{
  background:#E4573F !important;color:#fff !important;border-color:transparent !important;
}
.app .btn.green:hover,.app .btn.ok:hover{
  background:#2FA36B !important;color:#fff !important;border-color:transparent !important;
}
.app .btn.primary:hover{background:#E2813B !important}

/* V8.11.4 · 顶栏统一 100×33：刷新/进入后台/用户胶囊/版本号/标题标签 */
#btnRefresh,#adminEntry,#userChip{width:100px !important;min-width:100px !important;height:33px !important;
  padding:0 !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;
  font-size:12.5px !important;border-radius:8px !important}
#userChip{gap:6px !important}
#userChip #userName,.user-chip #userName{max-width:58px !important;overflow:hidden !important;text-overflow:ellipsis !important;white-space:nowrap !important}
.ver-chip,#viewTitle,#viewCrumb{width:100px !important;height:33px !important;min-width:100px !important;
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
  font-size:12.5px !important;border-radius:8px !important;padding:0 6px !important;
  white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}

#userChip{font-size:11.5px !important}
#userChip #userName{max-width:68px !important;font-size:11.5px !important}


/* V8.11.4 · 内页按钮统一 88×28（含表格操作列） */
.app .btn:not(.gate-btn),
.app .ms-btn,
.app .pill-tabs button,
.app .seg button,
.app .chip{
  width:88px !important;min-width:88px !important;max-width:88px !important;
  height:33px !important;min-height:33px !important;max-height:33px !important;
  padding:0 6px !important;border-radius:8px !important;
  font-size:12.5px !important;
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
  white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;
}
/* 顶栏保持 100×33 */
.topbar #btnRefresh,.topbar #adminEntry,.topbar #userChip{
  width:100px !important;min-width:100px !important;max-width:100px !important;
  height:33px !important;min-height:33px !important;max-height:33px !important;
}
/* 操作列给足三颗 88px 按钮 */
#orderTable thead th:nth-child(1){width:2.5% !important}
#orderTable thead th:nth-child(2){width:7% !important}
#orderTable thead th:nth-child(3){width:7.5% !important}
#orderTable thead th:nth-child(4){width:5.5% !important}
#orderTable thead th:nth-child(5){width:7% !important}
#orderTable thead th:nth-child(6),
#orderTable thead th:nth-child(7),
#orderTable thead th:nth-child(8),
#orderTable thead th:nth-child(9),
#orderTable thead th:nth-child(10){width:7.4% !important}
#orderTable thead th:nth-child(11){width:6.5% !important}
#orderTable thead th:nth-child(12){width:5.5% !important}
#orderTable thead th:nth-child(13){width:21.5% !important}
#orderTable td:last-child .btn{margin-left:3px !important;font-size:12.5px !important}

/* 顶栏筛选胶囊不受 88px 限制；表格列宽再平衡 */
.topbar .ms-btn{width:auto !important;min-width:0 !important;max-width:none !important;padding:0 12px !important}
#orderTable td:last-child .btn{margin-left:2px !important}
#orderTable thead th:nth-child(2){width:8% !important}
#orderTable thead th:nth-child(3){width:7.5% !important}
#orderTable thead th:nth-child(4){width:5.5% !important}
#orderTable thead th:nth-child(5){width:7.5% !important}
#orderTable thead th:nth-child(6),
#orderTable thead th:nth-child(7),
#orderTable thead th:nth-child(8),
#orderTable thead th:nth-child(9),
#orderTable thead th:nth-child(10){width:7.3% !important}
#orderTable thead th:nth-child(11){width:6% !important}
#orderTable thead th:nth-child(12){width:5.5% !important}
#orderTable thead th:nth-child(13){width:21% !important}

.topbar .ms-btn{flex:0 0 auto !important;min-width:auto !important;white-space:nowrap !important}
.topbar{gap:6px !important}


/* 操作列只留刚好放下三颗按钮，余量给客户名称 */
#orderTable td:last-child .btn{width:70px !important;min-width:70px !important;max-width:70px !important;margin-left:2px !important}
#orderTable thead th:nth-child(5){width:10.8% !important}
#orderTable thead th:nth-child(13){width:17.7% !important}

/* 顶栏下拉胶囊与刷新/进入后台同高 33 */
.topbar .ms-btn{height:33px !important;min-height:33px !important;max-height:33px !important;line-height:31px !important}


.topbar .btn{height:33px !important;min-height:33px !important;max-height:33px !important;line-height:31px !important}


.app .topbar .btn,.app .topbar .btn.sm,.app .topbar .btn.ghost{height:33px !important;min-height:33px !important;max-height:33px !important;line-height:31px !important}
.app .topbar .ms-btn{height:33px !important;min-height:33px !important;max-height:33px !important}


@media (min-width:821px){#menuBtn{display:none !important}}


/* 操作列固定像素宽（不再随屏幕变宽），按钮居中 */
#orderTable thead th:nth-child(13){width:230px !important}
#orderTable td:last-child{text-align:center !important}


/* 操作列恒定 230px；其余列按剩余宽度百分比分配 */
#orderTable thead th:nth-child(1){width:calc((100% - 230px) * 0.0304) !important}
#orderTable thead th:nth-child(2){width:calc((100% - 230px) * 0.0972) !important}
#orderTable thead th:nth-child(3){width:calc((100% - 230px) * 0.0911) !important}
#orderTable thead th:nth-child(4){width:calc((100% - 230px) * 0.0668) !important}
#orderTable thead th:nth-child(5){width:calc((100% - 230px) * 0.1312) !important}
#orderTable thead th:nth-child(6),
#orderTable thead th:nth-child(7),
#orderTable thead th:nth-child(8),
#orderTable thead th:nth-child(9),
#orderTable thead th:nth-child(10){width:calc((100% - 230px) * 0.0887) !important}
#orderTable thead th:nth-child(11){width:calc((100% - 230px) * 0.0729) !important}
#orderTable thead th:nth-child(12){width:calc((100% - 230px) * 0.0668) !important}
#orderTable thead th:nth-child(13){width:230px !important}

/* 最终方案：除「客户名称」外全部固定像素，客户名称吃掉剩余宽度 */
#orderTable thead th:nth-child(1){width:32px !important}
#orderTable thead th:nth-child(2){width:95px !important}
#orderTable thead th:nth-child(3){width:95px !important}
#orderTable thead th:nth-child(4){width:66px !important}
#orderTable thead th:nth-child(5){width:auto !important}
#orderTable thead th:nth-child(6),
#orderTable thead th:nth-child(7),
#orderTable thead th:nth-child(8),
#orderTable thead th:nth-child(9),
#orderTable thead th:nth-child(10){width:88px !important}
#orderTable thead th:nth-child(11){width:74px !important}
#orderTable thead th:nth-child(12){width:66px !important}
#orderTable thead th:nth-child(13){width:230px !important}



/* V8.11.5 · 订单汇总列宽：按自然内容宽度等比压缩（操作列固定 230px） */
#orderTable thead th:nth-child(1){width:calc((100% - 230px) * 0.0417) !important}
#orderTable thead th:nth-child(2){width:calc((100% - 230px) * 0.0707) !important}
#orderTable thead th:nth-child(3){width:calc((100% - 230px) * 0.0885) !important}
#orderTable thead th:nth-child(4){width:calc((100% - 230px) * 0.0640) !important}
#orderTable thead th:nth-child(5){width:calc((100% - 230px) * 0.1651) !important}
#orderTable thead th:nth-child(6){width:calc((100% - 230px) * 0.0870) !important}
#orderTable thead th:nth-child(7){width:calc((100% - 230px) * 0.0870) !important}
#orderTable thead th:nth-child(8){width:calc((100% - 230px) * 0.0654) !important}
#orderTable thead th:nth-child(9){width:calc((100% - 230px) * 0.0654) !important}
#orderTable thead th:nth-child(10){width:calc((100% - 230px) * 0.0654) !important}
#orderTable thead th:nth-child(11){width:calc((100% - 230px) * 0.1360) !important}
#orderTable thead th:nth-child(12){width:calc((100% - 230px) * 0.0640) !important}
#orderTable thead th:nth-child(13){width:230px !important}

/* V8.11.5 · 列宽百分比（按 1600 屏自然内容等比） */
#orderTable thead th:nth-child(1){width:4.15% !important}
#orderTable thead th:nth-child(2){width:7.05% !important}
#orderTable thead th:nth-child(3){width:8.85% !important}
#orderTable thead th:nth-child(4){width:6.43% !important}
#orderTable thead th:nth-child(5){width:16.54% !important}
#orderTable thead th:nth-child(6){width:8.7% !important}
#orderTable thead th:nth-child(7){width:8.7% !important}
#orderTable thead th:nth-child(8){width:6.5% !important}
#orderTable thead th:nth-child(9){width:6.5% !important}
#orderTable thead th:nth-child(10){width:6.5% !important}
#orderTable thead th:nth-child(11){width:13.64% !important}
#orderTable thead th:nth-child(12){width:6.43% !important}
#orderTable thead th:nth-child(13){width:18.03% !important}

/* V8.11.5 · 最终列宽（px，按 1600 屏自然宽度等比压缩） */
#orderTable thead th:nth-child(1){width:44px !important}
#orderTable thead th:nth-child(2){width:74px !important}
#orderTable thead th:nth-child(3){width:93px !important}
#orderTable thead th:nth-child(4){width:67px !important}
#orderTable thead th:nth-child(5){width:173px !important}
#orderTable thead th:nth-child(6){width:91px !important}
#orderTable thead th:nth-child(7){width:91px !important}
#orderTable thead th:nth-child(8){width:68px !important}
#orderTable thead th:nth-child(9){width:68px !important}
#orderTable thead th:nth-child(10){width:68px !important}
#orderTable thead th:nth-child(11){width:142px !important}
#orderTable thead th:nth-child(12){width:67px !important}
#orderTable thead th:nth-child(13){width:230px !important}

/* V8.11.5 · 列宽定稿：内容优先，客户名称/发票信息让位 */
#orderTable thead th:nth-child(1){width:40px !important}
#orderTable thead th:nth-child(2){width:88px !important}
#orderTable thead th:nth-child(3){width:96px !important}
#orderTable thead th:nth-child(4){width:72px !important}
#orderTable thead th:nth-child(5){width:130px !important}
#orderTable thead th:nth-child(6){width:104px !important}
#orderTable thead th:nth-child(7){width:104px !important}
#orderTable thead th:nth-child(8){width:82px !important}
#orderTable thead th:nth-child(9){width:78px !important}
#orderTable thead th:nth-child(10){width:86px !important}
#orderTable thead th:nth-child(11){width:92px !important}
#orderTable thead th:nth-child(12){width:74px !important}
#orderTable thead th:nth-child(13){width:230px !important}

/* V8.11.5 · 列宽定稿 v2：日期/开票完整显示 */
#orderTable thead th:nth-child(1){width:40px !important}
#orderTable thead th:nth-child(2){width:96px !important}
#orderTable thead th:nth-child(3){width:96px !important}
#orderTable thead th:nth-child(4){width:72px !important}
#orderTable thead th:nth-child(5){width:134px !important}
#orderTable thead th:nth-child(6){width:102px !important}
#orderTable thead th:nth-child(7){width:102px !important}
#orderTable thead th:nth-child(8){width:82px !important}
#orderTable thead th:nth-child(9){width:74px !important}
#orderTable thead th:nth-child(10){width:86px !important}
#orderTable thead th:nth-child(11){width:78px !important}
#orderTable thead th:nth-child(12){width:84px !important}
#orderTable thead th:nth-child(13){width:230px !important}

/* 顶栏新布局：隐藏按钮 100×33，仪表盘原位置隐藏 */
.topbar #btnHidePrice,.topbar #btnHideCust{width:100px !important;min-width:100px !important;
  height:33px !important;min-height:33px !important;max-height:33px !important;
  font-size:12.5px !important;border-radius:8px !important;margin-right:0 !important}
.hide-price-bar{display:none !important}
.topbar .filters{margin-left:10px !important}

/* 顶栏拥挤修正：筛选胶囊自适应宽度，整体收紧间距 */
.topbar{gap:4px !important}
.topbar .filters{gap:6px !important;margin-left:8px !important;flex:0 0 auto !important}
.topbar .filters .ms-btn{width:auto !important;min-width:0 !important;max-width:none !important;padding:0 10px !important;font-size:12.5px !important}
.topbar #viewCrumb{width:auto !important;min-width:0 !important;padding:0 10px !important}

/* 顶栏再收：筛选 78px、标题不挤压 */
.topbar .filters .ms-btn{width:78px !important;min-width:78px !important;padding:0 6px !important}
.topbar #viewCrumb{flex:0 0 auto !important;white-space:nowrap !important;max-width:110px !important}
.topbar #viewTitle{flex:0 0 auto !important}
.topbar .app-brand{flex:0 0 auto !important}

.topbar .filters .ms-btn{width:74px !important;min-width:74px !important;padding:0 5px !important}


/* V8.11.5 · 指定列宽 */
#orderTable thead th:nth-child(1){width:40px !important}
#orderTable thead th:nth-child(2){width:90px !important}
#orderTable thead th:nth-child(3){width:90px !important}
#orderTable thead th:nth-child(4){width:78px !important}
#orderTable thead th:nth-child(5){width:140px !important}
#orderTable thead th:nth-child(6){width:102px !important}
#orderTable thead th:nth-child(7){width:102px !important}
#orderTable thead th:nth-child(8){width:82px !important}
#orderTable thead th:nth-child(9){width:76px !important}
#orderTable thead th:nth-child(10){width:86px !important}
#orderTable thead th:nth-child(11){width:88px !important}
#orderTable thead th:nth-child(12){width:82px !important}
#orderTable thead th:nth-child(13){width:210px !important}
#orderTable td:last-child .btn{width:64px !important;min-width:64px !important;max-width:64px !important;margin-left:2px !important}

#view-orders #orderTable thead th,#view-orders #orderTable tbody td{font-size:14px !important}


/* 下拉按钮恢复 88×33（横批栏内保持“下拉按钮”宽度） */
.topbar .filters .ms-btn{width:88px !important;min-width:88px !important;max-width:88px !important;padding:0 6px !important}
.topbar{gap:2px !important}
.topbar .filters{gap:4px !important;margin-left:6px !important}
.topbar #viewCrumb{max-width:72px !important;padding:0 6px !important;font-size:12px !important}
.topbar #viewTitle{width:88px !important;min-width:88px !important}
.topbar .app-title{font-size:15px !important}

/* 顶栏收尾：重置彻底隐藏、再挤 10px 保证胶囊完整 */
.topbar #resetFilters{display:none !important}
.topbar #viewCrumb{max-width:64px !important}
.topbar .app-title{font-size:14.5px !important}

/* 横批栏统一：所有按钮/下拉/标签 100×33 */
.topbar .ver-chip,
.topbar #viewTitle,
.topbar #viewCrumb,
.topbar .filters .ms-btn,
.topbar #btnHidePrice,
.topbar #btnHideCust,
.topbar #btnRefresh,
.topbar #adminEntry,
.topbar #userChip{
  width:100px !important;min-width:100px !important;max-width:100px !important;
  height:33px !important;min-height:33px !important;max-height:33px !important;
  padding:0 6px !important;justify-content:center !important;text-align:center !important;
}

/* 顶栏 100px 统一后需要腾空间：缩品牌、去间距 */
.topbar{gap:0 !important;padding-left:8px !important;padding-right:8px !important}
.topbar .app-title{font-size:13px !important;letter-spacing:-.3px !important}
.topbar .app-sub{display:none !important}
.topbar .app-brand{gap:6px !important;padding-right:4px !important}
.topbar .brand-sep{margin:0 2px !important}

/* 再挤 30px */
.topbar{padding-left:4px !important;padding-right:4px !important}
.topbar .app-title{font-size:12px !important}
.topbar .brand-sep{display:none !important}

/* 最后 10px */
.topbar{padding-left:2px !important;padding-right:2px !important}
.topbar .app-title{font-size:11.5px !important}
.topbar .app-brand{gap:4px !important;padding-right:0 !important}

/* 品牌区限宽，避免与版本号叠字 */
.topbar .app-brand{max-width:150px !important;overflow:hidden !important;flex:0 0 auto !important}
.topbar .app-title{display:block !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}

/* 品牌文字与 100px 规则冲突：顶栏只留 logo，名称交给侧栏 */
.topbar .app-title{display:none !important}
.topbar .app-brand{max-width:44px !important}

/* 版本号移到侧栏底部；顶栏恢复品牌文字 */
.topbar .app-title{display:block !important}
.topbar .app-brand{max-width:none !important;overflow:visible !important}
.sidebar .ver-chip{width:auto !important;min-width:0 !important;max-width:none !important;
  height:22px !important;min-height:22px !important;font-size:11px !important;
  padding:0 8px !important;margin:10px 12px 6px !important;display:inline-flex !important;
  align-items:center !important;border-radius:6px !important;background:rgba(255,255,255,.08) !important;
  color:#9FB5C6 !important;border:1px solid rgba(255,255,255,.12) !important}

/* 订单汇总列宽（Jason 指定·第二版） */
#orderTable thead th:nth-child(1){width:40px !important}
#orderTable thead th:nth-child(2){width:88px !important}
#orderTable thead th:nth-child(3){width:92px !important}
#orderTable thead th:nth-child(4){width:80px !important}
#orderTable thead th:nth-child(5){width:145px !important}
#orderTable thead th:nth-child(6){width:102px !important}
#orderTable thead th:nth-child(7){width:102px !important}
#orderTable thead th:nth-child(8){width:82px !important}
#orderTable thead th:nth-child(9){width:75px !important}
#orderTable thead th:nth-child(10){width:88px !important}
#orderTable thead th:nth-child(11){width:96px !important}
#orderTable thead th:nth-child(12){width:83px !important}
#orderTable thead th:nth-child(13){width:203px !important}
#orderTable td:last-child .btn{width:62px !important;min-width:62px !important;max-width:62px !important;margin-left:2px !important}
#view-orders #orderTable thead th,#view-orders #orderTable tbody td{font-size:13.5px !important}

/* 客户名称吸收剩余宽度，操作列恒定 203（宽屏不再留白） */
#orderTable thead th:nth-child(5){width:auto !important}
#orderTable thead th:nth-child(13){width:203px !important}

/* 列宽固定不再拉伸：表格按各列之和取宽，剩余空间留在表格右侧 */
#orderTable table{width:auto !important;min-width:0 !important;table-layout:fixed !important}
#orderTable thead th:nth-child(5){width:145px !important}

/* 订单汇总：按指定宽度等比换算成百分比，随容器整体缩放（不空边、不单列拉伸） */
#orderTable table{width:100% !important;table-layout:fixed !important}
#orderTable thead th:nth-child(1){width:3.13% !important}
#orderTable thead th:nth-child(2){width:6.90% !important}
#orderTable thead th:nth-child(3){width:7.21% !important}
#orderTable thead th:nth-child(4){width:6.27% !important}
#orderTable thead th:nth-child(5){width:11.36% !important}
#orderTable thead th:nth-child(6){width:7.99% !important}
#orderTable thead th:nth-child(7){width:7.99% !important}
#orderTable thead th:nth-child(8){width:6.43% !important}
#orderTable thead th:nth-child(9){width:5.88% !important}
#orderTable thead th:nth-child(10){width:6.90% !important}
#orderTable thead th:nth-child(11){width:7.52% !important}
#orderTable thead th:nth-child(12){width:6.50% !important}
#orderTable thead th:nth-child(13){width:15.91% !important}

/* 设计基准改为 1440（Mac 13"）：百分比按 1116px 容器换算 */
#orderTable thead th:nth-child(1){width:3.05% !important}
#orderTable thead th:nth-child(2){width:7.71% !important}
#orderTable thead th:nth-child(3){width:7.71% !important}
#orderTable thead th:nth-child(4){width:6.45% !important}
#orderTable thead th:nth-child(5){width:8.42% !important}
#orderTable thead th:nth-child(6){width:7.89% !important}
#orderTable thead th:nth-child(7){width:7.89% !important}
#orderTable thead th:nth-child(8){width:6.45% !important}
#orderTable thead th:nth-child(9){width:5.73% !important}
#orderTable thead th:nth-child(10){width:6.81% !important}
#orderTable thead th:nth-child(11){width:7.17% !important}
#orderTable thead th:nth-child(12){width:6.45% !important}
#orderTable thead th:nth-child(13){width:18.28% !important}
#orderTable td:last-child .btn{width:62px !important;min-width:62px !important;max-width:62px !important}

/* 1440 适配：顶栏隐藏品牌 logo 腾 44px；客户编号加宽、名称略收 */
@media (max-width:1500px){
  .topbar .app-brand{display:none !important}
}
#orderTable thead th:nth-child(4){width:7.17% !important}
#orderTable thead th:nth-child(5){width:7.70% !important}

/* 1440 收尾：服务费 +6，客户名称 -6 */
#orderTable thead th:nth-child(5){width:7.17% !important}
#orderTable thead th:nth-child(9){width:6.27% !important}

/* 列宽（Jason 第三版，1440 基准，合计 1116） */
#orderTable thead th:nth-child(1){width:2.87% !important}
#orderTable thead th:nth-child(2){width:6.99% !important}
#orderTable thead th:nth-child(3){width:7.71% !important}
#orderTable thead th:nth-child(4){width:6.99% !important}
#orderTable thead th:nth-child(5){width:7.89% !important}
#orderTable thead th:nth-child(6){width:7.89% !important}
#orderTable thead th:nth-child(7){width:7.89% !important}
#orderTable thead th:nth-child(8){width:6.27% !important}
#orderTable thead th:nth-child(9){width:6.27% !important}
#orderTable thead th:nth-child(10){width:7.17% !important}
#orderTable thead th:nth-child(11){width:8.06% !important}
#orderTable thead th:nth-child(12){width:6.45% !important}
#orderTable thead th:nth-child(13){width:17.56% !important}
#view-orders #orderTable thead th,#view-orders #orderTable tbody td{font-size:12.5px !important;padding:9px 3px !important}
#orderTable td:last-child .btn{width:60px !important;min-width:60px !important;max-width:60px !important;font-size:12px !important;padding:0 4px !important}

/* ===== 横批栏回到确认版（覆盖此前所有临时收紧） ===== */
.topbar{
  gap:8px !important;
  padding:0 12px !important;
  display:flex !important;
  align-items:center !important;
}
.topbar .app-brand{
  display:flex !important;align-items:center !important;gap:8px !important;
  max-width:none !important;overflow:visible !important;flex:0 0 auto !important;
}
.topbar .app-title{
  display:block !important;font-size:15px !important;letter-spacing:0 !important;
  white-space:nowrap !important;overflow:visible !important;text-overflow:clip !important;
}
.topbar .app-sub{display:none !important}
.topbar .brand-sep{display:inline-block !important;margin:0 6px !important}

.topbar #viewTitle,
.topbar #viewCrumb,
.topbar .filters .ms-btn,
.topbar #btnHidePrice,
.topbar #btnHideCust,
.topbar #btnRefresh,
.topbar #adminEntry,
.topbar #userChip{
  width:100px !important;min-width:100px !important;max-width:100px !important;
  height:33px !important;min-height:33px !important;max-height:33px !important;
  padding:0 8px !important;font-size:12.5px !important;
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
  white-space:nowrap !important;
}
.topbar .filters{gap:8px !important;margin-left:8px !important;flex:0 0 auto !important}
.topbar #viewCrumb{max-width:100px !important;font-size:12.5px !important}

/* 宽屏不再隐藏品牌；窄屏仍保持 100px 控件不换行 */
@media (max-width:1500px){
  .topbar .app-brand{display:flex !important}
  .topbar{gap:6px !important;padding:0 8px !important}
}

/* 列宽交给脚本按可用宽度计算；CSS 只保留表格骨架 */
#orderTable table{width:100% !important;table-layout:fixed !important}
#orderTable thead th{width:auto !important}
#orderTable td:last-child .btn{width:60px !important;min-width:60px !important;max-width:60px !important;font-size:12px !important;padding:0 4px !important}
#orderTable td:last-child{text-align:center !important;padding-left:0 !important;padding-right:0 !important}

/* 订单汇总字号与「订单明细」一致：td 16.5 / th 15.5 */
#view-orders #orderTable tbody td{font-size:16.5px !important}
#view-orders #orderTable thead th{font-size:15.5px !important}

/* 13 吋（≤1500）自动降一档，避免日期被截 */
@media (max-width:1500px){
  #view-orders #orderTable tbody td{font-size:14px !important}
  #view-orders #orderTable thead th{font-size:13.5px !important}
}

/* 13 吋再降 1px，日期完整 */
@media (max-width:1500px){
  #view-orders #orderTable tbody td{font-size:13px !important}
  #view-orders #orderTable thead th{font-size:13px !important}
}

/* 列宽（Jason 第四版，1440 基准，合计 1116）：字号固定 16.5，操作 202 */
#orderTable td:last-child .btn{width:62px !important;min-width:62px !important;max-width:62px !important;font-size:12px !important;padding:0 4px !important}
@media (max-width:1500px){
  #view-orders #orderTable tbody td{font-size:16.5px !important}
  #view-orders #orderTable thead th{font-size:15.5px !important}
}

/* 最近访问记录：列宽按内容自适应、用户名无底色 */
#visitTable table.visit-tbl{table-layout:auto !important;width:100% !important}
#visitTable table.visit-tbl th,#visitTable table.visit-tbl td{white-space:nowrap !important;padding:8px 10px !important}
#visitTable table.visit-tbl td:nth-child(2){color:#E8EFF5 !important;font-weight:600}
#visitTable .tag.code{background:none !important;border:0 !important;padding:0 !important}
#visitUserSel{height:33px !important;min-width:100px !important;padding:0 10px !important;border-radius:8px !important}

/* 操作列「改单」hover：OKAYA 柱状图同款蓝 */
#orderTable td:last-child .btn.xs.ghost:not(.ib-del):hover{
  background:linear-gradient(180deg,#A9C9E4 0%,#5E93BC 46%,#3C6E96 100%) !important;
  color:#fff !important;border-color:transparent !important;
}

/* 订单明细：一页装下，不横向滚动（允许换行压缩） */
#odTable, #odTable .table-wrap{overflow-x:hidden !important}
#odTable table.od-table{table-layout:fixed !important;width:100% !important;min-width:0 !important}
#odTable table.od-table th,#odTable table.od-table td{
  white-space:normal !important;word-break:break-word !important;
  padding:9px 5px !important;font-size:13.5px !important;
}
#odTable table.od-table thead th{font-size:13px !important}
/* V8.12.4（Jason）：产品名称 / 规格型号 必须一行放下 ⇒ 这两列禁止换行，
   宽度由 auto 布局按内容给足；省下来的宽度从备注等列让出。 */
#odTable table.od-table td.pn,#odTable table.od-table td.sp{white-space:nowrap !important}

/* 操作列三颗按钮：hover 纯色，不用渐变 */
#orderTable td:last-child .btn:not(.ib-del):hover{
  background:#E2813B !important;color:#fff !important;border-color:transparent !important}
#orderTable td:last-child .btn.xs.ghost:not(.ib-del):hover{
  background:#3C6E96 !important;color:#fff !important;border-color:transparent !important}
#orderTable td:last-child .btn.ib-del:hover{
  background:#E4573F !important;color:#fff !important;border-color:transparent !important}

/* 「选择按钮」：集团客户/公司明细、月/季/年 —— 选中橙色，样式对齐订单汇总「全部发票」 */
#custGrainTabs button,#custPeriodTabs button{
  height:33px !important;min-height:33px !important;min-width:88px !important;
  padding:0 10px !important;border-radius:8px !important;font-size:12.5px !important;
  border:1px solid rgba(255,255,255,.16) !important;background:transparent !important;color:#A2B0BC !important;
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
}
#custGrainTabs button.active,#custPeriodTabs button.active{
  background:#E2813B !important;
  color:#fff !important;border-color:transparent !important;font-weight:600 !important;
}

/* 隐藏客户 / 隐藏价格：开启状态按钮变橙 */
.topbar #btnHideCust.on,
body.hide-cust #btnHideCust{
  background:#E2813B !important;
  color:#fff !important;border-color:transparent !important;font-weight:600 !important;
}
.topbar #btnHidePrice.on,
body.hide-price #btnHidePrice{
  background:#E2813B !important;
  color:#fff !important;border-color:transparent !important;font-weight:600 !important;
}

/* 所有「选择按钮」统一：.pill-tabs 段落控件 = 订单汇总「全部发票」样式 */
.app .pill-tabs{display:inline-flex !important;align-items:center !important;gap:6px !important}
.app .pill-tabs button{
  height:33px !important;min-height:33px !important;min-width:88px !important;
  padding:0 10px !important;border-radius:8px !important;font-size:12.5px !important;
  border:1px solid rgba(255,255,255,.16) !important;background:transparent !important;color:#A2B0BC !important;
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
  white-space:nowrap !important;
}
.app .pill-tabs button.active{
  background:#E2813B !important;
  color:#fff !important;border-color:transparent !important;font-weight:600 !important;
}

/* 订单收件箱快照卡：按钮 hover 三色（PDF 蓝 / 入库 橙 / 发送 绿），常态统一同款 */
.ib-actions .btn[data-ipdf],
.ib-actions .btn[data-confirm],
.ib-actions .btn[data-send]{
  background:rgba(255,255,255,.07) !important;color:#E6EDF3 !important;
  border:1px solid rgba(255,255,255,.16) !important;
}
.ib-actions .btn[data-ipdf]:hover{background:#3C6E96 !important;color:#fff !important;border-color:transparent !important}
.ib-actions .btn[data-confirm]:hover{background:#E2813B !important;color:#fff !important;border-color:transparent !important}
.ib-actions .btn[data-send]:hover{background:#2FA36B !important;color:#fff !important;border-color:transparent !important}

/* 快照卡中间深色块：提高透明度、统一色调 */
.ib-card{background:rgba(255,255,255,.045) !important;border-color:rgba(255,255,255,.12) !important}
.ib-card .ib-lines{background:rgba(255,255,255,.06) !important;color:#DCE6EE !important;border:1px solid rgba(255,255,255,.06) !important}
.ib-card .ib-lines .ib-qty,.ib-card .ib-lines .ib-more{color:#9FB0BE !important}
.ib-card .ib-k{color:#9FB0BE !important}
.ib-card .ib-v{color:#EAF1F7 !important}

/* 最近访问记录：表格高度翻倍 */
.visit-scroll{max-height:720px !important}

/* 历史信息头部：下拉与刷新都按内页「下拉按钮 / 点击按钮」规格 88×28 */
#visitUserSel,#visitsRefresh{
  width:88px !important;min-width:88px !important;max-width:88px !important;
  height:33px !important;min-height:33px !important;max-height:33px !important;
  padding:0 8px !important;border-radius:8px !important;font-size:12.5px !important;
  background:rgba(255,255,255,.07) !important;color:#E6EDF3 !important;
  border:1px solid rgba(255,255,255,.16) !important;
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
  margin-left:8px !important;
}
#visitsRefresh:hover{background:#E2813B !important;color:#fff !important;border-color:transparent !important}
#visitUserSel:hover{border:2px solid #E2813B !important;padding:0 7px !important;color:#F2B27A !important}

/* 历史信息「全部访问」下拉：与全部月份同款深色底 */
#visitUserSel{
  background:#12171E url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%239FB0BE' stroke-width='1.6' stroke-linecap='round'/></svg>") no-repeat right 10px center !important;
  background-color:#12171E !important;
  color:#E6EDF3 !important;border:1px solid rgba(255,255,255,.14) !important;
  appearance:none !important;-webkit-appearance:none !important;
  padding:0 24px 0 10px !important;height:33px !important;line-height:33px !important;
  font-size:12.5px !important;border-radius:8px !important;
}
#visitUserSel:hover{border:2px solid #E2813B !important;padding-left:9px !important}

/* 自动化管理：间隔编辑行内对齐 */
#autoExecTable td{white-space:nowrap !important;vertical-align:middle !important}
#autoExecTable .auto-iv{display:inline-block !important;vertical-align:middle !important;margin-right:6px !important}
#autoExecTable td .btn{vertical-align:middle !important}


/* 「选择按钮」改为连体分段控件（外框一体、中间只留分隔线） */
.app .pill-tabs{
  display:inline-flex !important;align-items:stretch !important;gap:0 !important;
  border:1px solid rgba(255,255,255,.18) !important;border-radius:8px !important;
  overflow:hidden !important;background:rgba(255,255,255,.04) !important;
}
.app .pill-tabs button{
  height:33px !important;min-width:84px !important;padding:0 12px !important;
  border:0 !important;border-radius:0 !important;background:transparent !important;
  color:#A2B0BC !important;font-size:12.5px !important;
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
}
.app .pill-tabs button + button{border-left:1px solid rgba(255,255,255,.18) !important}
.app .pill-tabs button.active{
  background:#E2813B !important;
  color:#fff !important;font-weight:600 !important;
}

/* 选择按钮：按参考图（橙色实心选中 + 透明未选 + 细外框，连体） */
.app .pill-tabs{
  display:inline-flex !important;align-items:stretch !important;gap:0 !important;
  border:1px solid rgba(255,255,255,.20) !important;border-radius:10px !important;
  overflow:hidden !important;background:transparent !important;
}
.app .pill-tabs button{
  height:33px !important;min-width:96px !important;padding:0 16px !important;
  border:0 !important;border-radius:0 !important;background:transparent !important;
  color:#9FB0BE !important;font-size:14px !important;font-weight:500 !important;
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
}
.app .pill-tabs button + button{border-left:1px solid rgba(255,255,255,.20) !important}
.app .pill-tabs button.active{background:#E2813B !important;color:#fff !important;font-weight:600 !important}
/* 选择按钮最终样式（覆盖此前的 id 级旧规则） */
[class$="Tabs"].pill-tabs,
#orderInvTabs,#custGrainTabs,#custPeriodTabs,#qtyGrainTabs,#qtyPeriodTabs,#qtyCatTabs,#finGrain{
  display:inline-flex !important;gap:0 !important;align-items:stretch !important;
  border:1px solid rgba(255,255,255,.20) !important;border-radius:10px !important;
  overflow:hidden !important;background:transparent !important;
}
#orderInvTabs button,#custGrainTabs button,#custPeriodTabs button,
#qtyGrainTabs button,#qtyPeriodTabs button,#qtyCatTabs button,#finGrain button{
  height:33px !important;min-width:96px !important;padding:0 16px !important;
  border:0 !important;border-radius:0 !important;background:transparent !important;
  color:#9FB0BE !important;font-size:14px !important;font-weight:500 !important;
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
}
#orderInvTabs button + button,#custGrainTabs button + button,#custPeriodTabs button + button,
#qtyGrainTabs button + button,#qtyPeriodTabs button + button,#qtyCatTabs button + button,#finGrain button + button{
  border-left:1px solid rgba(255,255,255,.20) !important;
}
#orderInvTabs button.active,#custGrainTabs button.active,#custPeriodTabs button.active,
#qtyGrainTabs button.active,#qtyPeriodTabs button.active,#qtyCatTabs button.active,#finGrain button.active{
  background:#E2813B !important;color:#fff !important;font-weight:600 !important;
}

#custGrainTabs button{height:33px !important}
#custPeriodTabs button{height:33px !important}
#orderInvTabs button{height:33px !important}
#qtyGrainTabs button,#qtyPeriodTabs button,#qtyCatTabs button,#finGrain button{height:33px !important}


#custGrainTabs button,#custPeriodTabs button,#orderInvTabs button,#qtyGrainTabs button,#qtyPeriodTabs button,#qtyCatTabs button,#finGrain button{height:33px !important;min-height:33px !important;max-height:33px !important}


/* 选择按钮定稿：品牌橙 #E2813B、外框 8px 圆角、内部分段直角、高 34 */
#orderInvTabs,#custGrainTabs,#custPeriodTabs,#qtyGrainTabs,#qtyPeriodTabs,#qtyCatTabs,#finGrain{
  display:inline-flex !important;gap:0 !important;align-items:stretch !important;
  border:1px solid rgba(255,255,255,.18) !important;border-radius:8px !important;
  overflow:hidden !important;background:transparent !important;
}
#orderInvTabs button,#custGrainTabs button,#custPeriodTabs button,
#qtyGrainTabs button,#qtyPeriodTabs button,#qtyCatTabs button,#finGrain button{
  height:33px !important;min-height:33px !important;max-height:33px !important;
  min-width:96px !important;padding:0 16px !important;
  border:0 !important;border-radius:0 !important;background:transparent !important;
  color:#9FB0BE !important;font-size:14px !important;font-weight:500 !important;
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
}
#orderInvTabs button + button,#custGrainTabs button + button,#custPeriodTabs button + button,
#qtyGrainTabs button + button,#qtyPeriodTabs button + button,#qtyCatTabs button + button,#finGrain button + button{
  border-left:1px solid rgba(255,255,255,.18) !important;
}
#orderInvTabs button.active,#custGrainTabs button.active,#custPeriodTabs button.active,
#qtyGrainTabs button.active,#qtyPeriodTabs button.active,#qtyCatTabs button.active,#finGrain button.active{
  background:#E2813B !important;color:#fff !important;font-weight:600 !important;
}
/* 自动化管理：开关做成选择按钮；间隔输入框加宽一倍 */
#autoExecTable button[data-auto]{
  height:33px !important;min-width:96px !important;padding:0 16px !important;
  border:1px solid rgba(255,255,255,.18) !important;border-radius:8px !important;
  background:transparent !important;color:#9FB0BE !important;
  font-size:14px !important;font-weight:600 !important;
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
}
#autoExecTable button[data-auto][data-on="1"]{background:#E2813B !important;color:#fff !important;border-color:transparent !important}
#autoExecTable .auto-iv{width:140px !important}

#autoExecTable button[data-auto]{height:33px !important;min-height:33px !important;max-height:33px !important;font-size:14px !important}


/* 选择按钮统一：品牌橙 #E2813B；选中段铺满所在圆角，不留底色缝 */
.app .pill-tabs,
[class$="Tabs"].pill-tabs,
#orderInvTabs,#custGrainTabs,#custPeriodTabs,#qtyGrainTabs,#qtyPeriodTabs,#qtyCatTabs,#ledGrainTabs,#prodYoyGrainTabs,#finGrain{
  display:inline-flex !important;
  align-items:stretch !important;
  gap:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:8px !important;
  overflow:hidden !important;
  background:transparent !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18) !important;
}

.app .pill-tabs button,
#orderInvTabs button,#custGrainTabs button,#custPeriodTabs button,
#qtyGrainTabs button,#qtyPeriodTabs button,#qtyCatTabs button,
#ledGrainTabs button,#prodYoyGrainTabs button,#finGrain button{
  height:33px !important;
  min-height:33px !important;
  max-height:33px !important;
  min-width:96px !important;
  padding:0 16px !important;
  border:0 !important;
  border-left:1px solid rgba(255,255,255,.18) !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#9FB0BE !important;
  font-size:14px !important;
  font-weight:500 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.app .pill-tabs button:first-child,
#orderInvTabs button:first-child,#custGrainTabs button:first-child,#custPeriodTabs button:first-child,
#qtyGrainTabs button:first-child,#qtyPeriodTabs button:first-child,#qtyCatTabs button:first-child,
#ledGrainTabs button:first-child,#prodYoyGrainTabs button:first-child,#finGrain button:first-child{
  border-left:0 !important;
}

.app .pill-tabs button.active,
#orderInvTabs button.active,#custGrainTabs button.active,#custPeriodTabs button.active,
#qtyGrainTabs button.active,#qtyPeriodTabs button.active,#qtyCatTabs button.active,
#ledGrainTabs button.active,#prodYoyGrainTabs button.active,#finGrain button.active{
  background:#E2813B !important;
  color:#fff !important;
  font-weight:600 !important;
  border-left-color:transparent !important;
}

/* ===== V8.12.2：订单明细分段按钮（.seg）与选择按钮同款：连体、品牌橙、选中填满圆角 ===== */
.app .seg,#odGroup,#odMetric{
  display:inline-flex !important;align-items:stretch !important;gap:0 !important;
  padding:0 !important;border:0 !important;border-radius:8px !important;
  overflow:hidden !important;background:transparent !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18) !important;
}
.app .seg button,#odGroup button,#odMetric button{
  height:33px !important;min-height:33px !important;max-height:33px !important;
  border:0 !important;border-left:1px solid rgba(255,255,255,.18) !important;
  border-radius:0 !important;background:transparent !important;
  color:#9FB0BE !important;
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
}
.app .seg button:first-child,#odGroup button:first-child,#odMetric button:first-child{border-left:0 !important}
.app .seg button.active,#odGroup button.active,#odMetric button.active{
  background:#E2813B !important;color:#fff !important;font-weight:600 !important;
  border-left-color:transparent !important;
}

/* V8.12.2：表格内「订单编号」链接按钮 / 收件箱邮件图标按钮，同样 33 高 */
.app .ord-link,
.app .ib-mail{
  height:33px !important;min-height:33px !important;max-height:33px !important;
}

/* V8.12.2：弹窗（body 级，不在 .app 内）里的按钮 / 下拉同样 33 高 */
.modal .btn,
.modal button,
.modal select{
  height:33px !important;min-height:33px !important;max-height:33px !important;
  box-sizing:border-box !important;
}

/* V8.12.3：历史信息 · 自动化管理：开关列的「选择按钮」（紧凑版，占满 120px 列） */
#autoExecTable .pill-tabs.auto-seg{display:inline-flex !important;width:100% !important}
#autoExecTable .pill-tabs.auto-seg button{
  width:50% !important;min-width:0 !important;max-width:50% !important;
  padding:0 4px !important;font-size:12.5px !important;
  height:33px !important;min-height:33px !important;max-height:33px !important;
}

/* V8.12.4：订单明细 · 客户名称左对齐（原来居中，换行后左右都不齐） */
#odTable tbody td.cust{text-align:left !important}

/* V8.12.4：历史信息「全部访问」升级为顶栏同款下拉 —— 原生 select 只做数据源，藏在按钮下面 */
#visitUserSel.ms-native{
  width:2px !important;min-width:2px !important;max-width:2px !important;
  height:2px !important;opacity:0 !important;pointer-events:none !important;
  position:absolute !important;left:0 !important;top:0 !important;
}
.ms-visit .ms-btn{width:100px !important;min-width:100px !important;max-width:100px !important}

/* V8.12.4（Jason）：橙色按钮的 hover / active 也只许用侧栏同款橙 #E2813B ——
   去掉基础样式里的 brightness(1.03~1.05) 提亮和任何渐变，保证鼠标移上去颜色不变。 */
.app .btn.primary:hover,.app .btn.primary:active,
.login-btn:hover,.login-btn:active,
.gate-card .btn.gate-btn:hover,.gate-card .btn.gate-btn:active,
.app .chip.on:hover,
.app .pill-tabs button.active:hover,
.app .seg button.active:hover,
#autoExecTable button[data-auto][data-on="1"]:hover,
.ib-actions .btn[data-confirm]:hover,
#visitsRefresh:hover,#execRefresh:hover,
#btnHidePrice:hover,#btnHideCust:hover{
  background:#E2813B !important;
  background-image:none !important;
  filter:none !important;
}
.ib-mail:hover{border-color:rgba(226,129,59,.45) !important}

/* V8.12.4：财务分析 7 张标题卡一行排开（与订单汇总 7 卡同款） */
@media (min-width:1200px){
  #view-finance .kpi-grid{grid-template-columns:repeat(7,minmax(0,1fr)) !important}
  #view-finance .kpi-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #view-finance .kpi-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* V8.12.4（Jason）：顶栏右侧按钮间距统一 = 「刷新 ↔ 进入后台」的 8px（.topbar gap）；
   并去掉登录用户名的 J 头像、把用户名放大。 */
.topbar #btnHidePrice,.topbar #btnHideCust{margin-right:0 !important}
.topbar #btnRefresh,.topbar #adminEntry,.topbar #userChip{margin-left:0 !important;margin-right:0 !important}
.user-chip .avatar,#userAvatar{display:none !important}
.topbar #userChip{width:auto !important;min-width:88px !important;max-width:none !important;
  justify-content:center !important;padding:0 10px !important}
#userChip #userName,.user-chip #userName{max-width:none !important;font-size:15px !important;
  font-weight:700 !important;letter-spacing:.02em !important}

/* V8.12.4（Jason）：我的账户 → 「管理员」标签改成与「刷新」按钮同尺寸/同字号的橙色标签 */
.acct-role{
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
  height:33px !important;min-width:100px !important;padding:0 12px !important;
  border-radius:8px !important;border:0 !important;
  font-size:12.5px !important;font-weight:600 !important;letter-spacing:.02em !important;
  vertical-align:middle !important;margin-left:8px !important;
}
.acct-role.admin{background:#E2813B !important;background-image:none !important;color:#fff !important}
.acct-role.staff{background:rgba(255,255,255,.10) !important;color:#C9D6E2 !important}

/* V8.12.4：订单明细「筛选结果趋势曲线」铺满整行 */
#odChart > svg{width:100% !important;height:auto !important;display:block}

/* V8.12.4（Jason）：开票与回款 → 回款记录 → 操作【删】按钮，鼠标移上去变红 */
.app .btn.arf-del:hover,.app .btn.arf-del:focus-visible,
.app .arf-del:hover,.arf-pay .arf-del:hover{
  background:#E4573F !important;border-color:#E4573F !important;color:#fff !important;
  filter:none !important;
}

/* V8.12.5：客户回款明细 —— 与订单汇总同款，按百分比 colgroup 等比缩放 */
#arfTable table{table-layout:fixed !important;width:100% !important}
#arfTable table th,#arfTable table td{overflow:hidden !important;text-overflow:ellipsis !important}

/* V8.12.6（Jason）：窄屏（≤1200）订单明细不换行、不叠字 —— 与订单汇总同款：
   单元格一律单行 + 省略号，列宽仍按百分比缩放，钱/编号不会再折成两行。 */
@media (max-width:1200px){
  #odTable table.od-table th,
  #odTable table.od-table td{white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}
  #odTable table.od-table td .note-inp{min-width:0 !important;width:100% !important}
}


/* ======================================================================
   V8.12.14（Jason 2026-11-20）登录页 —— 严格按参考图（1721×1075）还原
   ----------------------------------------------------------------------
   参考图实测：主背景图（清晰照片）四边距 = 左 102 / 右 103 / 上 62 / 下 61，
   卡片 1516×952；磨砂面板 = 卡内 (20,105) 456×690；标题 48px、logo 40px。
   缩放依据：卡片 = 视口减去四个方向的比例留白（5.93% / 5.74%），
   卡内所有元素用 --u（= min(卡宽/1516, 卡高/952)）等比缩放 ——
   于是窗口变大时，模糊底图、清晰主图、磨砂面板、文字、按钮**一起**放大。
   ====================================================================== */
.gate{
  --cardw: 88.14vw;
  --cardh: 88.46vh;
  --u: min(calc(88.14vw / 1516), calc(88.46vh / 952));
}
.gate-card{
  position:absolute !important;
  left:calc(5.93vw) !important; top:calc(5.77vh) !important;
  width:var(--cardw) !important; height:var(--cardh) !important;
  margin:0 !important; transform:none !important; padding:0 !important;
  border-radius:calc(8 * var(--u)) !important;
}
.gate-card::after{
  left:calc(20 * var(--u)) !important; top:calc(105 * var(--u)) !important;
  right:auto !important; bottom:auto !important; transform:none !important;
  width:calc(456 * var(--u)) !important; height:calc(690 * var(--u)) !important;
  border-radius:calc(8 * var(--u)) !important;
}
.gate-card > *{
  position:absolute !important; margin:0 !important; padding:0 !important;
  width:auto !important; max-width:none !important;
}
/* ① logo 左边缘与「Sign Up」左对齐 */
.gate-logo{left:calc(86 * var(--u)) !important; top:calc(182 * var(--u)) !important}
.gate-logo img{height:calc(40 * var(--u)) !important; width:auto !important;
  filter:brightness(0) invert(1) !important; opacity:.95 !important}
.gate-title{
  left:calc(86 * var(--u)) !important; top:calc(310 * var(--u)) !important;
  font-size:calc(48 * var(--u)) !important; font-weight:400 !important;
  line-height:1.05 !important; letter-spacing:0 !important; text-align:left !important;
}
.gate-sub{
  left:calc(86 * var(--u)) !important; top:calc(374 * var(--u)) !important;
  font-size:calc(12 * var(--u)) !important; font-weight:400 !important;
  letter-spacing:calc(1.2 * var(--u)) !important; text-align:left !important;
}
.gate-form{
  left:calc(86 * var(--u)) !important; top:calc(480 * var(--u)) !important;
  width:calc(345 * var(--u)) !important; max-width:calc(345 * var(--u)) !important;
  display:block !important;
}
.gate-form .field{position:absolute !important; left:0 !important; width:100% !important; margin:0 !important}
.gate-form .field:nth-of-type(1){top:0 !important}
.gate-form .field:nth-of-type(2){top:calc(79 * var(--u)) !important}
.gate-form .field label{
  display:block !important; font-size:calc(16 * var(--u)) !important; font-weight:500 !important;
  letter-spacing:calc(1.5 * var(--u)) !important; margin:0 0 calc(9 * var(--u)) 0 !important;
  color:rgba(255,255,255,.82) !important;
}
.gate-form .field input{
  width:100% !important; font-size:calc(16 * var(--u)) !important; font-weight:400 !important;
  padding:calc(6 * var(--u)) 0 !important; background:transparent !important;
  border:0 !important; border-bottom:calc(1 * var(--u)) solid rgba(255,255,255,.45) !important;
  border-radius:0 !important;
}
.gate-err{position:absolute !important; left:0 !important; top:calc(158 * var(--u)) !important;
  font-size:calc(12 * var(--u)) !important; min-height:0 !important; margin:0 !important}
.gate-note{display:none !important}

.gate-acts{
  position:absolute !important; left:0 !important; top:calc(179 * var(--u)) !important;
  width:100% !important; height:calc(47 * var(--u)) !important;
  display:flex !important; align-items:center !important; gap:calc(8 * var(--u)) !important;
}
.gate-card .gate-acts .btn{
  height:calc(47 * var(--u)) !important; min-height:0 !important; max-height:none !important;
  margin:0 !important; padding:0 calc(10 * var(--u)) !important; flex:0 0 auto !important;
}
.gate-card .gate-acts .gate-btn{
  flex:1 1 auto !important; width:auto !important; min-width:0 !important; max-width:none !important;
  border-radius:calc(6 * var(--u)) !important; font-size:calc(16 * var(--u)) !important; font-weight:600 !important;
  background:#E2813B !important; color:#fff !important; border:0 !important;
}
.gate-mode-ico{
  flex:0 0 calc(47 * var(--u)) !important;
  width:calc(47 * var(--u)) !important; min-width:calc(47 * var(--u)) !important; max-width:calc(47 * var(--u)) !important;
  height:calc(47 * var(--u)) !important; padding:0 !important; text-decoration:none !important;
  border:calc(1 * var(--u)) solid rgba(255,255,255,.45) !important;
  border-radius:50% !important;
  background:rgba(255,255,255,.14) !important;
  -webkit-backdrop-filter:blur(10px) saturate(1.1) !important;
  backdrop-filter:blur(10px) saturate(1.1) !important;
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  cursor:pointer !important; color:#fff !important;
  box-shadow:0 calc(2 * var(--u)) calc(10 * var(--u)) rgba(0,0,0,.18), inset 0 calc(1 * var(--u)) 0 rgba(255,255,255,.30) !important;
}
.gate-mode-ico svg{width:calc(26 * var(--u)) !important; height:calc(26 * var(--u)) !important; display:block !important}
.gate-mode-ico:hover{background:rgba(255,255,255,.26) !important; border-color:rgba(255,255,255,.70) !important}
/* ④ 深浅状态：深色页显示「右半实心」的那一版（与参考图一致），浅色页镜像 */
html.gate-dark .gate-mode-ico svg{transform:scaleX(-1)}
html.gate-light .gate-mode-ico{
  background:rgba(255,255,255,.55) !important; border-color:rgba(44,42,40,.22) !important;
  color:#2C2A28 !important;
}

/* ② 底部口号上移，留在磨砂面板里（面板底部 = 105+690 = 795u） */
.gate-form::after{
  content:"HIGH QUALITY  |  PROFESSIONAL  |  EFFICIENT" !important;
  position:absolute !important; left:calc(-66 * var(--u)) !important; top:calc(255 * var(--u)) !important;
  display:block !important; width:calc(456 * var(--u)) !important;
  white-space:nowrap !important; text-align:center !important;
  font-size:calc(14 * var(--u)) !important; font-weight:400 !important;
  letter-spacing:calc(.6 * var(--u)) !important; color:rgba(255,255,255,.92) !important;
}
/* ======================================================================
   V8.12.9（Jason 2026-11-20）
   ① 订单明细 / 开票与回款 信息卡 7 张一行
   ② 历史信息-自动化管理：列宽按百分比自适应，「自动化流程」收窄
   ③ 全站红/绿/蓝统一：红 = 最早账龄「红·5个月」#F0A79B，绿 = 「绿·0个月」#7FD8B4，
      蓝 = 「未开票未回款」#5E93BC 再亮一档 #7DB6E8
   ====================================================================== */
@media (min-width:1200px){
  #view-orderdetail .kpi-grid,
  #view-arflow .kpi-grid{grid-template-columns:repeat(7,minmax(0,1fr)) !important;gap:12px !important}
}
#view-orderdetail .kpi-grid .kpi-label,
#view-arflow .kpi-grid .kpi-label{font-size:12px !important;line-height:1.35 !important}

/* 自动化管理：6 列百分比（合计 100%），流程列 29.1% → 24% */
#autoExecTable table{table-layout:fixed !important;width:100% !important}
#autoExecTable th:nth-child(1){width:24% !important}
#autoExecTable th:nth-child(2){width:14% !important}
#autoExecTable th:nth-child(3){width:16% !important}
#autoExecTable th:nth-child(4){width:16% !important}
#autoExecTable th:nth-child(5){width:16% !important}
#autoExecTable th:nth-child(6){width:14% !important}
#autoExecTable td,#autoExecTable th{overflow:hidden !important;text-overflow:ellipsis !important}
#autoExecTable td:nth-child(1){white-space:normal !important}

/* 全站红色字体 */
.neg,.up,.trend.up,#custLedger .amt-profit,.arf-ar-red,.agf.bad,
.kpi.r .kpi-value,.kpi .kpi-value.up{color:#F0A79B !important}
/* 全站绿色字体 */
.pos,.down,.trend.down,#custLedger .amt-out,.agf.ok,
.kpi.g .kpi-value,.kpi .kpi-value.down{color:#7FD8B4 !important}
/* 全站蓝色字体（未开票未回款蓝再亮一档） */
#view-arflow td.arf-noinv,#view-arflow .arf-noinv,#arfDetail td.arf-noinv,.arf-noinv,.ord-link{color:#7DB6E8 !important}
:root{--blue-hi:#7DB6E8}


/* V8.12.12：订单明细趋势曲线悬停提示 */
#odChart{position:relative !important}
.od-tip{
  position:absolute; z-index:6; min-width:132px; max-width:260px;
  padding:8px 10px; border-radius:8px;
  background:rgba(12,20,28,.92); border:1px solid rgba(255,255,255,.16);
  box-shadow:0 6px 18px rgba(0,0,0,.35); backdrop-filter:blur(6px);
  pointer-events:none; font-size:12px; line-height:1.5; color:#E6EDF3;
}
.od-tip-h{font-size:12px; font-weight:700; margin-bottom:4px; color:#F0A79B}
.od-tip-row{display:flex; gap:12px; justify-content:space-between; white-space:nowrap}
.od-tip-row span{color:#B8C6D2; overflow:hidden; text-overflow:ellipsis; max-width:170px}
.od-tip-row b{font-weight:600; color:#fff}

/* V8.12.15（Jason）：订单汇总表格里的「开票日期」用默认白色，不再随账龄变红/橙/绿 */
#orderTable .invdate-txt,
#orderTable .invdate-txt.ag-ok,
#orderTable .invdate-txt.ag-warn,
#orderTable .invdate-txt.ag-bad,
#orderTable .invdate-txt.bad,
#orderTable .invdate-cell span{color:#E6EDF3 !important}


/* V8.13（Jason）：登录门输入框末尾的小图标（用户名=人像、密码=锁，勾线） */
.gate-form .field{position:absolute !important}
.gate-form .field input{padding-right:calc(26 * var(--u)) !important}
.gate-fi{
  position:absolute; right:0; bottom:calc(8 * var(--u));
  width:calc(18 * var(--u)); height:calc(18 * var(--u));
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.55); pointer-events:none;
}
.gate-fi svg{width:100%; height:100%; display:block}
html.gate-light .gate-fi{color:rgba(44,42,40,.55)}


/* V8.13：订单收件箱 7 张标题卡一行（与订单明细/开票与回款同款） */
@media (min-width:1200px){
  #view-inbox .kpi-grid{grid-template-columns:repeat(7,minmax(0,1fr)) !important;gap:12px !important}
}
#view-inbox .kpi-grid .kpi-label{font-size:12px !important;line-height:1.35 !important}


/* V8.13（Jason）：顶栏深浅模式切换按钮（位置在「隐藏价格」左侧，样式与它们同款） */
.topbar #themeToggle{
  width:100px !important; min-width:100px !important; max-width:100px !important;
  height:33px !important; min-height:33px !important; max-height:33px !important;
  padding:0 8px !important; border-radius:8px !important;
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  font-size:12.5px !important; font-weight:500 !important; letter-spacing:.02em !important;
  background:rgba(255,255,255,.07) !important; color:#E6EDF3 !important;
  border:1px solid rgba(255,255,255,.16) !important; text-decoration:none !important;
  cursor:pointer !important; flex:0 0 auto !important;
}
.topbar #themeToggle:hover{background:#E2813B !important; color:#fff !important; border-color:transparent !important}
html.gate-light .topbar #themeToggle{background:rgba(0,0,0,.05) !important; color:#2C2A28 !important; border-color:rgba(0,0,0,.14) !important}
html.gate-light .topbar #themeToggle:hover{background:#E2813B !important; color:#fff !important; border-color:transparent !important}


/* V8.13（Jason）账户管理弹窗：输入框与按钮同高（33px）、下拉与顶栏「全部客户」同款 */
#modalBody .form-grid .field input,
#modalBody .form-grid .field select{
  height:33px !important; min-height:33px !important; line-height:31px !important;
  font-size:13px !important; border-radius:8px !important;
  padding:0 11px !important; box-sizing:border-box !important;
}
#modalBody .form-grid .field select{
  appearance:none !important; -webkit-appearance:none !important;
  padding:0 28px 0 11px !important;
  background-color:rgba(255,255,255,.07) !important;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23E6EDF3' stroke-width='1.4'/></svg>") !important;
  background-repeat:no-repeat !important; background-position:right 10px center !important;
  border:1px solid rgba(255,255,255,.16) !important; color:#E6EDF3 !important;
}
#modalBody .form-grid .field label{font-size:12px !important; margin-bottom:6px !important}

/* V8.13（Jason）：账户管理表格操作按钮的悬停色 + 员工标签绿底 */
#modalBody .acct-actions .btn[data-ac="edit"]:hover,
#modalBody .acct-actions .btn[data-ac="edit"]:focus-visible{
  background:#E2813B !important; color:#fff !important; border-color:transparent !important; filter:none !important;
}
#modalBody .acct-actions .btn[data-ac="reset"]:hover,
#modalBody .acct-actions .btn[data-ac="reset"]:focus-visible{
  background:#2D6FB3 !important; color:#fff !important; border-color:transparent !important; filter:none !important;
}
#modalBody .acct-actions .btn[data-ac="toggle"]:hover,
#modalBody .acct-actions .btn[data-ac="toggle"]:focus-visible{
  background:#2FA36B !important; color:#fff !important; border-color:transparent !important; filter:none !important;
}
#modalBody .acct-actions .btn.danger[data-ac="del"]:hover,
#modalBody .acct-actions .btn.danger[data-ac="del"]:focus-visible,
#modalBody .acct-actions .btn[data-ac="del"]:hover,
#modalBody .acct-actions .btn[data-ac="del"]:focus-visible{
  background:#E4573F !important; color:#fff !important; border-color:transparent !important; filter:none !important;
}
#modalBody .acct-role.staff{background:#2FA36B !important; color:#fff !important; border-color:transparent !important}
#modalBody .acct-role.admin{background:#E2813B !important; color:#fff !important; border-color:transparent !important}
/* ======================================================================
   V8.13（Jason）「展示用户」= 只读角色
   · 不能新建订单、不能增删改任何数据；看板 / 表格 / 图表照常可用。
   · V8.15：导出 PDF 的按钮全部保留可见，点击由 app.js 拦下（展示账户无导出 PDF 权限）。
   ====================================================================== */
body.role-viewer .nav a[data-view="neworder"]{display:none !important}
body.role-viewer #orderTable td .btn,
body.role-viewer #orderTable td button{display:none !important}
body.role-viewer #odTable .note-inp{pointer-events:none !important; background:transparent !important;
  border-color:transparent !important; color:#B8C6D2 !important}
body.role-viewer .app [data-confirm],
body.role-viewer .app [data-send],
body.role-viewer .app [data-iedit],
body.role-viewer .app [data-idel],
body.role-viewer .app #ibNewOrder{display:none !important}
body.role-viewer #btnARFInit,
body.role-viewer #btnARFRecv,
body.role-viewer .arf-del{display:none !important}
body.role-staff #adminEntry{display:none !important}
body.role-viewer #odTable [data-odel],
body.role-viewer [data-act]{display:none !important}

/* 展示用户标签：蓝底白字 */
#modalBody .acct-role.viewer{background:#2D6FB3 !important; color:#fff !important; border-color:transparent !important}


/* ======================================================================
   V8.13（Jason）
   ① 客户回款明细：应收账款红加粗 / 其他应收账款绿加粗 / 未开票未回款蓝加粗
   ② 订单快照按钮悬停配色 + 金额红色加粗
   ====================================================================== */
#arfTable td.arf-ar-red,#arfTable td.arf-ar-red b{color:var(--up) !important;font-weight:700 !important}
#arfTable td.arf-dep{color:var(--down) !important;font-weight:700 !important}
#arfTable td.arf-noinv{color:var(--blue-hi,#7DB6E8) !important;font-weight:700 !important}

.ib-total{color:var(--up) !important;font-weight:700 !important}
.ib-actions .btn[data-ipdf]:hover{background:#2D6FB3 !important;color:#fff !important;border-color:transparent !important;box-shadow:none !important;filter:none !important}
.ib-actions .btn[data-confirm]:hover{background:#E2813B !important;color:#fff !important;border-color:transparent !important;box-shadow:none !important;filter:none !important}
.ib-actions .btn[data-send]:hover{background:#2FA36B !important;color:#fff !important;border-color:transparent !important;box-shadow:none !important;filter:none !important}
.ib-actions .btn[data-iedit]:hover{background:#E2813B !important;color:#fff !important;border-color:transparent !important;box-shadow:none !important;filter:none !important}
.ib-actions .btn[data-idel]{color:#E4573F !important;font-weight:600 !important}
.ib-actions .btn[data-idel]:hover{background:#E4573F !important;color:#fff !important;border-color:transparent !important;box-shadow:none !important;filter:none !important}

/* V8.13 补强：订单快照按钮悬停（加 body 提高优先级，含 .orange-o 的「确认发送」） */
body #inboxGrid .ib-actions .btn[data-ipdf]:hover,
body .ib-actions .btn[data-ipdf]:hover{background:#2D6FB3 !important;color:#fff !important;border-color:transparent !important;box-shadow:none !important;filter:none !important}
body #inboxGrid .ib-actions .btn[data-confirm]:hover,
body .ib-actions .btn[data-confirm]:hover{background:#E2813B !important;color:#fff !important;border-color:transparent !important;box-shadow:none !important;filter:none !important}
body #inboxGrid .ib-actions .btn[data-send]:hover,
body #inboxGrid .ib-actions .btn.orange-o[data-send]:hover,
body .ib-actions .btn[data-send]:hover{background:#2FA36B !important;color:#fff !important;border-color:transparent !important;box-shadow:none !important;filter:none !important}
body #inboxGrid .ib-actions .btn[data-iedit]:hover,
body .ib-actions .btn[data-iedit]:hover{background:#E2813B !important;color:#fff !important;border-color:transparent !important;box-shadow:none !important;filter:none !important}
body #inboxGrid .ib-actions .btn[data-idel]:hover,
body .ib-actions .btn[data-idel]:hover{background:#E4573F !important;color:#fff !important;border-color:transparent !important;box-shadow:none !important;filter:none !important}
body #inboxGrid .ib-actions .btn[data-idel]{color:#E4573F !important;font-weight:600 !important}
body .ib-total,body #inboxGrid .ib-total{color:var(--up) !important;font-weight:700 !important}

/* ======================================================================
   V8.13（Jason）
   ① 所有橙底按钮默认白字
   ② 全站绿色统一 = 客户回款明细「其他应收账款」的绿 #0F9960
   ====================================================================== */
.btn.primary,.btn.primary:hover,.btn.primary:active,
.refresh-btn,.refresh-btn:hover,.admin-btn,.admin-btn:hover,
.pill-tabs button.active,.seg button.active,.chip.on,.doc-tab.active,
#themeToggle:hover,.gate-btn{color:#fff !important}
:root{--down:#0F9960}
.pos,.down,.trend.down,#custLedger .amt-out,.agf.ok,.kpi .kpi-value.down,
.kpi.g .kpi-value,.amt-profit-pos{color:#0F9960 !important}

/* V8.13：账户管理的手写框 / 下拉框统一橙色外框（深色皮肤） */
#modalBody .form-grid .field input,#modalBody .form-grid .field select,
#acNew input,#acNew select,#modalBody #acUser,#modalBody #acName,#modalBody #acPwd,
#modalBody #acPost,#modalBody #acRole{border:1.5px solid #E2813B !important;border-radius:8px !important}

/* V8.13（Jason）：订单收件箱各快照的「订单总金额」= 正红色加粗 */
body #view-inbox .ib-total,body #inboxGrid .ib-total,body .ib-total,
#view-inbox .ib-total b,#inboxGrid .ib-total b{color:var(--up) !important;font-weight:700 !important}

/* V8.13（Jason）：财务分析-客户贡献分析-毛利润 = 绿色（负数仍红） */
#finCustTable td.fin-profit{color:#0F9960 !important}
#finCustTable td.fin-profit.loss{color:var(--up,#F0A79B) !important}


/* ======================================================================
   V8.13.2（Jason）首次登录「设置新密码」屏 —— 恢复普通流式布局
   （登录页那套绝对坐标是给「用户名/密码」两栏定制的，套到改密屏会互相叠住）
   ====================================================================== */
#gateForm:not(.gate-login){
  position:absolute !important; left:calc(86 * var(--u)) !important; top:calc(420 * var(--u)) !important;
  transform:none !important; right:auto !important;
  width:calc(345 * var(--u)) !important; max-width:calc(345 * var(--u)) !important;
  display:flex !important; flex-direction:column !important; align-items:stretch !important;
  height:auto !important;
}
#gateForm:not(.gate-login) .field{
  position:static !important; width:100% !important;
  margin:0 0 calc(6 * var(--u)) 0 !important;
}
#gateForm:not(.gate-login) .field label{
  display:block !important; font-size:calc(16 * var(--u)) !important; font-weight:500 !important;
  letter-spacing:calc(1.5 * var(--u)) !important; margin:0 0 calc(4 * var(--u)) 0 !important;
  color:rgba(255,255,255,.85) !important;
}
#gateForm:not(.gate-login) .field input{
  width:100% !important; display:block !important;
  font-size:calc(16 * var(--u)) !important; padding:calc(5 * var(--u)) 0 !important;
  background:transparent !important; border:0 !important;
  border-bottom:1px solid rgba(255,255,255,.45) !important; border-radius:0 !important;
}
#gateForm:not(.gate-login) .gate-err{
  position:static !important; margin:0 0 calc(10 * var(--u)) 0 !important;
  font-size:calc(12 * var(--u)) !important;
}
#gateForm:not(.gate-login) .gate-btn{
  position:static !important; display:block !important;
  width:100% !important; max-width:none !important;
  height:calc(44 * var(--u)) !important; margin:calc(4 * var(--u)) 0 0 0 !important;
  border-radius:calc(8 * var(--u)) !important;
  font-size:calc(16 * var(--u)) !important; font-weight:600 !important;
}
#gateForm:not(.gate-login) .gate-note{
  position:static !important; margin:calc(16 * var(--u)) 0 0 0 !important;
  font-size:calc(12 * var(--u)) !important; color:rgba(255,255,255,.72) !important;
}
#gateForm:not(.gate-login)::after{display:none !important}
html.gate-light #gateForm:not(.gate-login) .field label{color:#4A423A !important}
html.gate-light #gateForm:not(.gate-login) .field input{color:#2C2A28 !important;border-bottom-color:rgba(120,95,70,.35) !important}
html.gate-light #gateForm:not(.gate-login) .gate-note{color:#6C645C !important}

/* V8.13.3（Jason）：顶栏「刷新」「用户名」悬停 = 橙底白字（含名字本身） */
.topbar #btnRefresh:hover,#btnRefresh:hover,
.topbar #userChip:hover,#userChip:hover{background:#E2813B !important;color:#fff !important;border-color:transparent !important}
.topbar #userChip:hover #userName,#userChip:hover #userName{color:#fff !important}

/* V8.13.3：浅色皮肤的 -webkit-text-fill-color 会盖住 color，悬停变白必须一起改 */
.topbar #btnRefresh:hover,.topbar #btnRefresh:hover .lbl,
.topbar #userChip:hover,.topbar #userChip:hover #userName,
.topbar #adminEntry:hover,.topbar #themeToggle:hover{
  color:#fff !important; -webkit-text-fill-color:#fff !important;
}

/* V8.13.3（Jason）：只要底色是橙（选中态/primary/hover），字与子元素一律白字 + 白填充 */
.btn.primary,.btn.primary *,
.btn.primary:hover,.btn.primary:hover *,
body .btn:hover,body .btn:hover *,
.chip.on,.chip.on *,.pill-tabs button.active,.seg button.active,.doc-tab.active,
#btnSelOrders.primary,#btnSelOD.primary,#btnSelOrders.primary *,#btnSelOD.primary *{
  color:#fff !important; -webkit-text-fill-color:#fff !important;
}

/* V8.13.3（Jason）：客户数据汇总的行悬停 —— 与订单汇总同一效果 */
#view-customers tbody tr:hover td{background:rgba(30,35,41,.98) !important}
#view-customers tbody tr:hover td.frz{background:rgb(26,31,38) !important}

/* V8.13.4（Jason）：所有表格里的「毛利率」= 绿色 #0F9960 */
td.fin-margin,.fin-margin{color:#0F9960 !important;font-weight:600 !important}

/* V8.13.4（Jason）：左侧导航选中项 = 品牌橙 #E2813B（与按钮同一个橙） */
.app .sidebar .nav a.active,.app .sidebar .nav a.on,
.nav a.active,.nav a.on{background:#E2813B !important;background-image:none !important;color:#fff !important}
.app .sidebar .nav a.active .ico,.app .sidebar .nav a.on .ico,
.nav a.active .ico,.nav a.on .ico{color:#fff !important;-webkit-text-fill-color:#fff !important}

/* V8.13.4（Jason）：快照「确认入库 / 确认发送」去掉背发光 */
#view-inbox [data-confirm],#view-inbox [data-send],
#view-inbox [data-confirm]:hover,#view-inbox [data-send]:hover{box-shadow:none !important}

/* V8.13.4（Jason）：快照「确认入库 / 确认发送」平时与「导出PDF」同款；
   hover：确认入库=红底白字，确认发送=绿底白字 */
html body #view-inbox [data-confirm],html body #view-inbox [data-send]{
  background:rgba(255,255,255,.07) !important;border:1px solid rgba(255,255,255,.16) !important;
  color:#E6EDF3 !important;-webkit-text-fill-color:#E6EDF3 !important;box-shadow:none !important;
}
html body #view-inbox [data-confirm]:hover{
  background:#E4573F !important;border-color:transparent !important;color:#fff !important;
  -webkit-text-fill-color:#fff !important;box-shadow:none !important;
}
html body #view-inbox [data-send]:hover{
  background:#2FA36B !important;border-color:transparent !important;color:#fff !important;
  -webkit-text-fill-color:#fff !important;box-shadow:none !important;
}

/* V8.13.5（Jason）：新建订单 · 客户名称 / 产品编号 下拉（原生 datalist）
   一律按浅色弹出，列表文字黑色（深色皮肤下也看得清） */
input[list],#o_cust, #lineBody .c-code{color-scheme:light !important}
datalist{color-scheme:light !important}
datalist option,#prodList option,#custList option{
  color:#000 !important;background-color:#fff !important;font-size:14px;
}

/* V8.13.5（Jason）：新建订单 · 客户名称下拉（#custAc）文字全黑、白底 */
#custAc,#custAc.ac-list,#custAc.tlc-custpop{
  background:#fff !important;border:1px solid rgba(0,0,0,.12) !important;
  box-shadow:0 18px 40px rgba(0,0,0,.18) !important;
}
#custAc .ac-item,#custAc .ac-item span,#custAc .ac-code,#custAc .ac-sub{
  color:#000 !important;-webkit-text-fill-color:#000 !important;
}
#custAc .ac-item:hover,#custAc .ac-item.on{background:rgba(232,98,42,.10) !important}
#custAc .ac-item:hover span{color:#000 !important;-webkit-text-fill-color:#000 !important}




/* ======================================================================
   V8.15.2（Jason）：登录页按新比例稿（背景 1440×900 / 主图 1321×780 /
   磨砂页 398×595；磨砂距主图 上90 左66；主图距背景 上58 左66）。
   所有尺寸 = 参考像素 × --u，只锁比例，窗口变化时等比缩放。
   设置新密码页暂维持上一版（1290×807）比例。
   ====================================================================== */
html body .gate{
  --u: min(calc(100vw / 1440), calc(100vh / 900));
  padding:0 !important;
  background:#08111A url(/assets/login-bg.jpg) center/cover no-repeat fixed !important;
}

html body .gate-card{
  left:calc(50vw - 654 * var(--u)) !important;
  top:calc(50vh - 392 * var(--u)) !important;
  transform:none !important;
  width:calc(1321 * var(--u)) !important; height:calc(780 * var(--u)) !important;
  max-width:none !important; max-height:none !important; padding:0 !important;
  border-radius:calc(8 * var(--u)) !important;
  border-width:calc(1 * var(--u)) !important;
}
html body .gate-card::before{
  left:0 !important; top:0 !important; width:100% !important; height:100% !important;
  background-image:url(/assets/login-bg.jpg) !important;
  background-size:auto 105% !important;
  background-position:12% 68% !important;
  background-repeat:no-repeat !important;
  border-radius:inherit !important;
}
html body .gate-card::after{
  left:calc(66 * var(--u)) !important; top:calc(90 * var(--u)) !important;
  width:calc(398 * var(--u)) !important; height:calc(595 * var(--u)) !important;
  border-radius:calc(8 * var(--u)) !important; transform:none !important;
}

/* 登录：新比例稿 */
html body .gate-logo{
  left:calc(121 * var(--u)) !important; top:calc(135 * var(--u)) !important;
  margin:0 !important; transform:none !important; position:absolute !important;
}
html body .gate-logo img{height:calc(25 * var(--u)) !important; width:auto !important}
html body .gate-title{
  left:calc(121 * var(--u)) !important; top:calc(242 * var(--u)) !important;
  width:max-content !important; font-size:calc(44 * var(--u)) !important;
  font-weight:300 !important; line-height:1.05 !important; margin:0 !important;
  letter-spacing:0 !important; text-align:left !important;
}
html body .gate-sub{
  left:calc(121 * var(--u)) !important; top:calc(307 * var(--u)) !important;
  width:max-content !important; font-size:calc(11 * var(--u)) !important;
  letter-spacing:calc(1.1 * var(--u)) !important; margin:0 !important;
  text-align:left !important; line-height:1.5 !important;
}
html body .gate-sub::after{display:none !important}

html body .gate-form{
  left:calc(121 * var(--u)) !important; top:calc(417 * var(--u)) !important;
  width:calc(276 * var(--u)) !important; right:auto !important; margin:0 !important;
  display:block !important; height:auto !important;
}
html body .gate-form .field{
  position:absolute !important; left:0 !important; width:100% !important; margin:0 !important;
}
html body .gate-form .field:nth-of-type(1){top:0 !important}
html body .gate-form .field:nth-of-type(2){top:calc(68 * var(--u)) !important}
html body .gate-form .field label{
  display:block !important; font-size:calc(10 * var(--u)) !important;
  letter-spacing:calc(1.4 * var(--u)) !important; text-transform:uppercase !important;
  margin:0 0 calc(7 * var(--u)) !important; font-weight:500 !important;
}
html body .gate-form .field input{
  width:100% !important; background:transparent !important; border:0 !important;
  border-bottom:calc(1 * var(--u)) solid rgba(255,255,255,.42) !important;
  border-radius:0 !important; padding:calc(6 * var(--u)) calc(2 * var(--u)) !important;
  font-size:calc(14 * var(--u)) !important; height:auto !important;
}
html body .gate-fi{
  width:calc(15 * var(--u)) !important; height:calc(15 * var(--u)) !important;
  right:0 !important; bottom:calc(8 * var(--u)) !important;
}
html body .gate-form .gate-err{
  position:absolute !important; left:0 !important; top:calc(150 * var(--u)) !important;
  margin:0 !important; min-height:0 !important; font-size:calc(11 * var(--u)) !important;
}
html body .gate-acts{
  position:absolute !important; left:calc(-2 * var(--u)) !important; top:calc(143 * var(--u)) !important;
  width:calc(240 * var(--u)) !important; height:calc(48 * var(--u)) !important;
  display:flex !important; align-items:center !important; gap:calc(7 * var(--u)) !important;
  margin:0 !important;
}
html body .gate-card .gate-acts .btn{height:100% !important; margin:0 !important; padding:0 !important}
html body .gate-card .gate-acts .gate-btn{
  flex:0 0 calc(240 * var(--u)) !important; width:calc(240 * var(--u)) !important;
  border-radius:calc(8 * var(--u)) !important; font-size:calc(14 * var(--u)) !important;
  font-weight:500 !important;
}
html body .gate-mode-ico{
  flex:0 0 calc(30 * var(--u)) !important; width:calc(30 * var(--u)) !important;
  min-width:0 !important; max-width:none !important; height:calc(30 * var(--u)) !important;
  border-radius:50% !important;
}
html body .gate-mode-ico svg{width:60% !important; height:60% !important}
html body .gate-form::after{
  position:absolute !important; left:calc(26 * var(--u)) !important; top:calc(218 * var(--u)) !important;
  margin:0 !important; font-size:calc(10 * var(--u)) !important;
  letter-spacing:calc(1.2 * var(--u)) !important; white-space:nowrap !important;
  display:block !important; width:max-content !important; overflow:visible !important;
  text-shadow:0 1px 4px rgba(0,0,0,.45) !important;
}

/* 设置新密码：按新比例稿（背景 1440×900 / 主图 1321×780 / 磨砂 398×595） */
html body .gate-change .gate-logo{left:calc(124 * var(--u)) !important; top:calc(133 * var(--u)) !important}
html body .gate-change .gate-logo img{height:calc(25 * var(--u)) !important}
html body .gate-change .gate-title{
  left:calc(124 * var(--u)) !important; top:calc(240 * var(--u)) !important;
  font-size:calc(34 * var(--u)) !important; width:max-content !important;
}
html body .gate-change .gate-sub{
  left:calc(124 * var(--u)) !important; top:calc(290 * var(--u)) !important;
  font-size:calc(11 * var(--u)) !important; width:max-content !important;
}
html body .gate-change #gateForm{
  left:calc(124 * var(--u)) !important; top:calc(372 * var(--u)) !important;
  width:calc(280 * var(--u)) !important; height:auto !important; right:auto !important; margin:0 !important;
}
html body .gate-change #gateForm .field{
  position:absolute !important; left:0 !important; width:100% !important; margin:0 !important;
}
html body .gate-change #gateForm .field:nth-child(1){top:0 !important}
html body .gate-change #gateForm .field:nth-child(2){top:calc(76 * var(--u)) !important}
html body .gate-change #gateForm .field:nth-child(3){top:calc(161 * var(--u)) !important}
html body .gate-change #gateForm .field label{
  text-transform:none !important; letter-spacing:calc(.2 * var(--u)) !important;
  font-size:calc(11 * var(--u)) !important; margin:0 0 calc(3 * var(--u)) !important;
}
html body .gate-change #gateForm .field input{
  font-size:calc(12.5 * var(--u)) !important;
  padding:calc(4 * var(--u)) calc(2 * var(--u)) !important;
}
html body .gate-change #gateForm .gate-acts{
  position:absolute !important; left:calc(-5 * var(--u)) !important; top:calc(211 * var(--u)) !important;
  width:calc(285 * var(--u)) !important; height:calc(48 * var(--u)) !important; margin:0 !important;
}
html body .gate-change #gateForm .gate-btn{
  flex:0 0 calc(285 * var(--u)) !important; width:calc(285 * var(--u)) !important;
  height:100% !important; font-size:calc(13.5 * var(--u)) !important;
  border-radius:calc(8 * var(--u)) !important;
}
html body .gate-change .gate-mode-ico{display:none !important}
html body .gate-change #gateForm .gate-err{top:calc(270 * var(--u)) !important}
html body .gate-change .gate-form::after{display:none !important}

html.gate-light body .gate-form .field input,
html.gate-light body .gate-change #gateForm .field input{
  border-bottom-color:rgba(120,95,70,.35) !important;
}
