/* 差旅报销计算器 —— 票据青 · 行李箱与报销单 */
.c60{
  --a:#0f766e;
  --a2:#2dd4bf;
  --a-soft:rgba(15,118,110,.10);
  --a-line:rgba(15,118,110,.26);
}

/* 首屏：薄荷纸 + 斜向票据纹 */
.c60-hero{
  background:
    radial-gradient(700px 300px at 9% 0%, rgba(255,255,255,.88), transparent 62%),
    repeating-linear-gradient(135deg, rgba(15,118,110,.05) 0 1px, transparent 1px 22px),
    linear-gradient(130deg, #f0fdfa 0%, #ccfbf1 52%, #ecfdf5 100%);
}
:root[data-theme="dark"] .c60-hero{
  background:
    radial-gradient(700px 300px at 9% 0%, rgba(45,212,191,.12), transparent 62%),
    repeating-linear-gradient(135deg, rgba(45,212,191,.05) 0 1px, transparent 1px 22px),
    linear-gradient(130deg,#041a18 0%,#062421 52%,#0e1626 100%);
}

/* 自绘：登机箱 + 报销单据 */
.c60-hero-art .te-case{
  position:absolute;
  left:50%;
  top:52%;
  width:132px;
  height:104px;
  margin-left:-66px;
  margin-top:-44px;
  border-radius:14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), transparent 38%),
    linear-gradient(150deg,#14b8a6,#0f766e 62%,#115e59);
  box-shadow:0 18px 32px rgba(15,118,110,.28), inset 0 0 0 2px rgba(255,255,255,.35);
  transform:rotate(-5deg);
}
.c60-hero-art .te-handle{
  position:absolute;
  left:50%;
  top:-22px;
  width:46px;
  height:24px;
  margin-left:-23px;
  border:4px solid rgba(15,118,110,.75);
  border-bottom:0;
  border-radius:10px 10px 0 0;
}
.c60-hero-art .te-case .te-stripe{
  position:absolute;
  left:12px;
  right:12px;
  height:7px;
  border-radius:4px;
  background:rgba(255,255,255,.4);
}
.c60-hero-art .te-case .s1{top:38px;}
.c60-hero-art .te-case .s2{top:54px;}
.c60-hero-art .te-case .te-lock{
  position:absolute;
  left:50%;
  bottom:14px;
  width:20px;
  height:13px;
  margin-left:-10px;
  border-radius:4px;
  background:#fbbf24;
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.16);
}
.c60-hero-art .te-tag{
  position:absolute;
  right:-26px;
  top:-22px;
  width:60px;
  height:58px;
  padding-top:9px;
  border-radius:5px;
  background:linear-gradient(170deg,#ffffff,#f0fdfa);
  border:1px solid rgba(15,118,110,.32);
  color:#0f766e;
  font-size:10px;
  font-weight:900;
  line-height:1.3;
  text-align:center;
  letter-spacing:1px;
  transform:rotate(9deg);
  box-shadow:0 8px 16px rgba(15,118,110,.18);
}
.c60-hero-art .te-tag::before{
  content:"";
  position:absolute;
  left:50%;
  top:-5px;
  width:10px;
  height:10px;
  margin-left:-5px;
  border-radius:50%;
  background:#0f766e;
}
:root[data-theme="dark"] .c60-hero-art .te-case{
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 38%),
    linear-gradient(150deg,#2dd4bf,#0f766e 62%,#134e4a);
  box-shadow:0 18px 32px rgba(0,0,0,.44), inset 0 0 0 2px rgba(255,255,255,.22);
}
:root[data-theme="dark"] .c60-hero-art .te-handle{border-color:rgba(45,212,191,.7);}
:root[data-theme="dark"] .c60-hero-art .te-tag{
  background:linear-gradient(170deg,#0f2320,#0a1a18);
  border-color:rgba(45,212,191,.3);
  color:#2dd4bf;
}
:root[data-theme="dark"] .c60-hero-art .te-tag::before{background:#2dd4bf;}
:root[data-theme="dark"] .c60-hero-art .chip{background:rgba(14,22,38,.9);border-color:var(--line);}
:root[data-theme="dark"] .c60-hero-art .chip b{color:#2dd4bf;}

/* 主结果：深青 */
.c60-metric.is-hero{
  background:linear-gradient(135deg,#134e4a,#0f766e 48%,#0891b2 100%);
  box-shadow:0 16px 34px rgba(15,118,110,.3);
}
.c60-metric.is-hero .v{font-size:clamp(30px,3.6vw,44px);}

/* 超标指标红色提示 */
#teOver.is-over{color:#b91c1c;}
#teOver.is-over + .s{color:#b91c1c;}
:root[data-theme="dark"] #teOver.is-over{color:#f87171;}

/* 小标题 */
.te-sub{
  position:relative;
  margin:20px 0 2px;
  padding-left:13px;
  font-size:13.5px;
  font-weight:900;
  color:var(--ink);
}
.te-sub::before{
  content:"";
  position:absolute;
  left:0;top:4px;bottom:4px;
  width:4px;
  border-radius:4px;
  background:linear-gradient(180deg,#0f766e,#2dd4bf);
}

/* 构成环图 */
.te-donut-wrap{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:16px;
  align-items:center;
  margin-top:10px;
  padding:15px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:linear-gradient(160deg,rgba(240,253,250,.92),var(--card));
}
:root[data-theme="dark"] .te-donut-wrap{background:linear-gradient(160deg,#07211f,var(--card));}
.te-donut-wrap .c60-donut{display:grid;place-items:center;color:var(--ink);}
.te-legend{display:flex;flex-direction:column;gap:7px;}
.te-legend .row{
  display:grid;
  grid-template-columns:10px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  font-size:12.5px;
  color:var(--ink2);
}
.te-legend .dot{width:10px;height:10px;border-radius:3px;}
.te-legend .nm{font-weight:800;color:var(--ink);}
.te-legend .vl{font-variant-numeric:tabular-nums;color:var(--muted);font-weight:800;white-space:nowrap;}

/* 城市标准条 */
#teBars .c60-bar-row{grid-template-columns:72px minmax(0,1fr) 86px;}
#teBars .c60-bar-row .bf{background:linear-gradient(90deg,#0f766e,#2dd4bf);}

/* 每日明细表 */
#teDailyTable td:first-child{font-weight:900;color:var(--ink);white-space:nowrap;}
#teDailyTable td:nth-child(n+2){font-variant-numeric:tabular-nums;}
#teDailyTable tbody tr:last-child td{background:rgba(15,118,110,.07);font-weight:900;color:var(--ink);}

/* 城市标准表 */
#teCityTable td:nth-child(n+3){font-variant-numeric:tabular-nums;font-weight:800;}
#teCityTable tbody tr.on td{background:rgba(15,118,110,.1);font-weight:900;}
:root[data-theme="dark"] #teCityTable tbody tr.on td{background:rgba(45,212,191,.12);}
#teCityTable td:nth-child(2){font-size:12px;color:var(--muted);}

/* 批量表 */
#teBatchTable td:nth-child(n+2){font-variant-numeric:tabular-nums;}
#teBatchTable td:last-child{font-weight:900;}

/* 输入框金额 */
#teLodgingActual{background-image:linear-gradient(90deg,rgba(15,118,110,.1),transparent 60%);}
:root[data-theme="dark"] #teLodgingActual{background-image:linear-gradient(90deg,rgba(45,212,191,.12),transparent 60%);}

@media (max-width:960px){
  .c60-hero-art{display:none;}
  .te-donut-wrap{grid-template-columns:auto minmax(0,1fr);}
}
@media (max-width:640px){
  .te-donut-wrap{grid-template-columns:1fr;justify-items:center;}
  .te-legend{width:100%;}
  #teBars .c60-bar-row{grid-template-columns:64px minmax(0,1fr) 76px;}
  #teDailyTable,#teCityTable,#teBatchTable{min-width:520px;}
}
@media print{
  .te-donut-wrap{break-inside:avoid;}
  .c60-actions,.c60-batch,.c60-hist,#teBars{display:none!important;}
  .c60-metric.is-hero{box-shadow:none;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
}
