/* ============================================================
   蓝色版皮肤（Blue System）—— 仅重绘前端展示，不改任何功能逻辑
   色板：侧栏 0F2447 · 主蓝 1D4E9C · 亮蓝 3B7DDD · 中浅 5B7BAF
   墨蓝 12325E · 图纸底 F4F8FD / EFF4FA · 唯一暖色留给待审批
   ============================================================ */
:root{
  --b-ink:#12325E; --b-text:#22406B; --b-sub:#5B7BAF; --b-sub2:#7B93BC;
  --b-bg:#EFF4FA; --b-line:rgba(29,78,156,0.14);
  --b-primary:#1D4E9C; --b-bright:#3B7DDD; --b-side:#0F2447;
  --b-amber-bg:#FCEEDB; --b-amber-ink:#9A5417;
  --b-green-bg:#E1F1E7; --b-green-ink:#1E6B44;
  --b-red-bg:#F9E2DF;   --b-red-ink:#A3342B;
}

/* ---------- 全局底色与文字色温 ---------- */
body{ background:var(--b-bg) !important; font-family:"Noto Serif SC","Source Han Serif SC","思源宋体","Noto Serif CJK SC",serif !important; }
.bg-\[\#f4f6f9\]{ background-color:var(--b-bg) !important; }
.text-gray-900{ color:var(--b-ink) !important; }
.text-gray-800, .text-gray-700{ color:var(--b-text) !important; }
.text-gray-600, .text-gray-500{ color:var(--b-sub) !important; }
.text-gray-400{ color:var(--b-sub2) !important; }
.bg-gray-50{ background-color:#F4F8FD !important; }
.bg-gray-100{ background-color:#E4EDF9 !important; }
.hover\:bg-gray-50:hover{ background-color:#F4F8FD !important; }
.hover\:bg-gray-100:hover{ background-color:#E4EDF9 !important; }
.border-gray-100{ border-color:rgba(29,78,156,0.10) !important; }
.border-gray-200{ border-color:var(--b-line) !important; }
.border-gray-300{ border-color:rgba(29,78,156,0.22) !important; }
.divide-gray-100 > :not([hidden]) ~ :not([hidden]){ border-color:rgba(29,78,156,0.10) !important; }

/* ---------- 主蓝按钮 / 高亮 / 焦点环 ---------- */
.bg-blue-600{ background-color:var(--b-primary) !important; }
.hover\:bg-blue-700:hover{ background-color:#173E78 !important; }
.text-blue-500, .text-blue-600, .text-blue-700{ color:var(--b-primary) !important; }
.hover\:text-blue-800:hover{ color:#173E78 !important; }
.bg-blue-50{ background-color:#DFEBFA !important; }
.bg-blue-100{ background-color:#DCE9FA !important; }
.focus\:ring-blue-500:focus{ --tw-ring-color:rgba(59,125,221,0.30) !important; }
.focus\:border-blue-500:focus{ border-color:var(--b-bright) !important; }
.bg-gradient-to-br{ background-image:linear-gradient(140deg, var(--b-primary), var(--b-ink)) !important; }

/* ---------- 状态色：暖橙=待审批，绿=已核付，红=驳回，蓝=已批准 ---------- */
.bg-yellow-100{ background-color:var(--b-amber-bg) !important; }
.text-yellow-700{ color:var(--b-amber-ink) !important; }
.bg-orange-100{ background-color:var(--b-amber-bg) !important; }
.text-orange-700, .text-orange-800{ color:var(--b-amber-ink) !important; }
.border-orange-200{ border-color:rgba(233,162,59,0.45) !important; }
.bg-green-100{ background-color:var(--b-green-bg) !important; }
.text-green-600, .text-green-700{ color:var(--b-green-ink) !important; }
.bg-red-100{ background-color:var(--b-red-bg) !important; }
.text-red-700{ color:var(--b-red-ink) !important; }
.text-red-500{ color:#C2410C !important; }
.bg-red-50{ background-color:var(--b-red-bg) !important; }

/* ---------- 深蓝侧栏（原 #e3eaf2 -> 0F2447） ---------- */
.bg-\[\#e3eaf2\]{
  background-color:#F4F8FD !important;
  background-image:
    linear-gradient(rgba(29,78,156,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,78,156,0.05) 1px, transparent 1px) !important;
  background-size:22px 22px !important;
  border-bottom-color:rgba(29,78,156,0.12) !important;
}
aside.bg-\[\#e3eaf2\]{
  background-color:var(--b-side) !important;
  background-image:none !important;
  border-right:none !important;
}
#sidebar .menu-item{ color:rgba(232,240,251,0.66) !important; }
#sidebar .menu-item:hover{ background:rgba(232,240,251,0.08) !important; color:#E8F0FB !important; }
#sidebar .menu-item.bg-blue-50{ background:#E8F0FB !important; color:#12325E !important; }
#sidebar .text-blue-700{ color:#12325E !important; }
#sidebar .text-gray-600{ color:rgba(232,240,251,0.66) !important; }
#sidebar svg{ opacity:0.85; }

/* 页面标题：钢笔蓝下划线 */
.bg-\[\#e3eaf2\] h1{
  color:var(--b-ink) !important;
  display:inline-block;
  border-bottom:3px solid var(--b-primary);
  padding-bottom:2px;
}
.bg-\[\#e3eaf2\] .text-\[11px\]{ color:var(--b-sub) !important; }

/* ---------- 顶栏用户圆钮：默认头像（本地 女人.svg 同款图形） ---------- */
#user-menu > button{
  background:rgba(29,78,156,0.10) !important;
  border:1px solid rgba(29,78,156,0.28) !important;
  color:var(--b-sub) !important;
  box-shadow:none !important;
}
#user-menu > button svg{ fill:currentColor !important; stroke:none !important; }
#user-menu > button:hover{ background:rgba(29,78,156,0.16) !important; }

/* 员工端侧栏底部用户框：覆盖顶栏圆钮样式，改为透明 + 悬停高亮 */
#sidebar #user-menu > button{
  background:transparent !important;
  border:none !important;
  color:#E8F0FB !important;
  box-shadow:none !important;
}
#sidebar #user-menu > button:hover{ background:rgba(232,240,251,0.08) !important; }

/* ---------- 管理员端专属 ---------- */
#admin-payment-table th{ text-align:center !important; }
#admin-payment-table th:first-child{ text-align:left !important; }
.admin-tag{
  display:inline-block; margin-left:8px; vertical-align:3px;
  font-size:10px; font-weight:700; letter-spacing:0.08em;
  color:var(--b-amber-ink); background:var(--b-amber-bg);
  border:1px solid rgba(233,162,59,0.45); border-radius:4px; padding:1px 6px;
}

/* ---------- 数字等宽（金额、编号对齐） ---------- */
td, .tabular-nums{
  font-variant-numeric:tabular-nums;
}
/* ---------- 模块页首（设计稿 hero：图纸网格 + 标题下划线） ---------- */
.blue-hero{
  display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:10px;
  margin:0 0 16px; padding:20px 22px 16px;
  background-color:#F4F8FD;
  background-image:
    linear-gradient(rgba(29,78,156,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,78,156,0.05) 1px, transparent 1px);
  background-size:22px 22px;
  border:1px solid rgba(29,78,156,0.10); border-radius:14px;
}
.blue-hero h3{ font-size:22px; font-weight:700; color:#12325E; letter-spacing:-0.02em;
  display:inline-block; border-bottom:3px solid #1D4E9C; padding-bottom:8px; margin:0; }
.blue-hero p{ font-size:12.5px; color:#5B7BAF; margin:8px 0 0; }
.blue-hero .b-right{ font-size:11.5px; color:#5B7BAF; font-variant-numeric:tabular-nums; }

/* ---------- 统计瓦片（设计稿 stats） ---------- */
.blue-tiles{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 16px; }
@media (max-width:900px){ .blue-tiles{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* 三瓦片：桌面三列，手机端上下排布（并排会把金额挤掉） */
.blue-tiles.tiles-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width:900px){ .blue-tiles.tiles-3{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:767px){
  .blue-tiles.tiles-3{ grid-template-columns:minmax(0,1fr); gap:10px; }
  .blue-tiles.tiles-3 .blue-tile{ padding:12px 14px; }
  .blue-tiles.tiles-3 .b-v{ font-size:21px; }
}
.blue-tile{ background:#fff; border:1px solid rgba(29,78,156,0.10); border-radius:14px;
  box-shadow:0 1px 2px rgba(18,50,94,0.05), 0 5px 16px rgba(18,50,94,0.06);
  padding:14px 16px 13px; position:relative; overflow:hidden; min-width:0; }
.blue-tile::before{ content:""; position:absolute; top:0; left:0; right:0; height:3px;
  background:#1D4E9C; opacity:0.85; }
.blue-tile .b-k{ font-size:11.5px; font-weight:500; color:#5B7BAF; }
.blue-tile .b-v{ font-size:23px; font-weight:700; letter-spacing:-0.02em; margin-top:3px;
  color:#12325E; font-variant-numeric:tabular-nums; }
.blue-tile .b-s{ font-size:11px; color:#5B7BAF; margin-top:2px; font-variant-numeric:tabular-nums; }

/* ---------- 迷你月度柱状图（蓝色单色阶） ---------- */
.b-bars{ display:flex; align-items:flex-end; gap:5px; height:44px; margin-top:8px; }
.b-bars span{ flex:1; background:#C9DCF7; border-radius:2.5px 2.5px 0 0; min-width:6px; }
.b-bars span.cur{ background:#1D4E9C; }
.b-bar-lb{ display:flex; gap:5px; margin-top:4px; }
.b-bar-lb span{ flex:1; text-align:center; font-size:9.5px; color:#5B7BAF; }

/* ---------- 报销流程条（蓝图进度：蓝色单色阶） ---------- */
.b-flow{ display:flex; align-items:center; margin:6px 0 2px; }
.b-flow .st{ flex:1; text-align:center; position:relative; }
.b-flow .st::before{ content:""; position:absolute; top:8px; left:0; right:0; height:2px; background:#C9DCF7; }
.b-flow .st:first-child::before{ left:18%; }
.b-flow .st:last-child::before{ right:82%; }
.b-flow .dot{ width:18px; height:18px; border-radius:50%; background:#fff; border:2px solid #C9DCF7;
  margin:0 auto 6px; position:relative; z-index:1; display:flex; align-items:center; justify-content:center;
  font-size:9px; color:#fff; }
.b-flow .st.done .dot{ background:#1D4E9C; border-color:#1D4E9C; }
.b-flow .st.now .dot{ border-color:#1D4E9C; background:#fff; }
.b-flow .st.now .dot::after{ content:""; width:6px; height:6px; border-radius:50%; background:#1D4E9C; }
.b-flow .st.next .dot::after{ content:""; width:6px; height:6px; border-radius:50%; background:#C9DCF7; }
.b-flow .lb{ font-size:10.5px; color:#5B7BAF; margin-top:3px; }
.b-flow .st.done .lb{ color:#12325E; font-weight:600; }

/* ---------- 墨蓝 chip（已支付终态） ---------- */
.chip-navy{ display:inline-flex; align-items:center; gap:5px; padding:2.5px 9px; border-radius:999px;
  font-size:11px; font-weight:600; white-space:nowrap; background:#12325E; color:#E8F0FB; }
.chip-navy .d{ width:5px; height:5px; border-radius:50%; background:#7FA8E8; }
.chip-line{ display:inline-flex; align-items:center; gap:5px; padding:2.5px 9px; border-radius:999px;
  font-size:11px; font-weight:600; white-space:nowrap; background:#fff; color:#9A5417; border:1px dashed #E9A23B; }
.chip-line .d{ width:5px; height:5px; border-radius:50%; background:#E9A23B; }

/* ---------- 设计稿结构类（卡片内小标题 / 按钮 / 拖拽区） ---------- */
.sec-title{ font-size:15px; font-weight:700; color:#12325E; letter-spacing:-0.01em; }
.sec-sub{ font-size:12px; color:#5B7BAF; }
.btn-line{ display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border-radius:8px;
  font-size:13px; font-weight:600; color:#1D4E9C; background:#fff; border:1px solid rgba(29,78,156,0.30); cursor:pointer; }
.btn-line:hover{ background:#EFF4FA; }
.btn-p{ display:inline-flex; align-items:center; gap:6px; padding:8px 18px; border-radius:8px;
  font-size:13px; font-weight:600; color:#fff; background:#1D4E9C; cursor:pointer; border:none; }
.btn-p:hover{ background:#173E78; }
.btn-g{ display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border-radius:8px;
  font-size:12px; font-weight:600; color:#1D4E9C; background:#EFF4FA; border:1px dashed rgba(29,78,156,0.35); cursor:pointer; }
.btn-g:hover{ background:#DFEBFA; }
.dropzone{ display:flex; align-items:center; gap:14px; padding:18px 20px; border:2px dashed rgba(29,78,156,0.28);
  border-radius:12px; background:#F7FAFE; cursor:pointer; transition:background .15s; }
.dropzone:hover{ background:#EFF4FA; }
.dz-ic{ font-size:30px; line-height:1; }

/* ---------- 表单字段（设计稿 flabel / field） ---------- */
.flabel{ font-size:11.5px; font-weight:500; color:#5B7BAF; margin-bottom:5px; }
.flabel .req{ color:#C2410C; }
.field{ border:1px solid rgba(29,78,156,0.22); border-radius:9px; padding:8px 11px; font-size:13px; background:#fff;
  display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:35px; color:#12325E; }
.field.dim{ background:#F4F8FD; color:#5B7BAF; }
.finput{ width:100%; border:1px solid rgba(29,78,156,0.22); border-radius:9px; padding:8px 11px; font-size:13px;
  background:#fff; min-height:35px; color:#12325E; }
.finput:focus{ outline:none; border-color:#3B7DDD; }
textarea.finput{ min-height:56px; resize:vertical; }

/* ---------- 弹窗遮罩：设计稿深蓝 45%，替代默认黑 40% ---------- */
.bg-black\/40{ background-color:rgba(15,36,71,0.45) !important; }

/* 本皮肤在 Tailwind 之后加载，display 类会覆盖 .hidden，故强制 .hidden 生效 */
.hidden{ display:none !important; }

/* ---------- 月份分段导航（设计稿 .seg：◀ 月份 ▶） ---------- */
.seg{ display:inline-flex; align-items:center; background:#E4EDF9; border-radius:8px; padding:2px; gap:2px; }
.seg .seg-btn{ display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px;
  border:none; background:transparent; color:#41608F; border-radius:6px; cursor:pointer; font-size:13px; line-height:1; }
.seg .seg-btn:hover{ background:#D9E7F8; color:#12325E; }
.seg .seg-lbl{ padding:4px 11px; font-size:12px; font-weight:600; color:#12325E; border-radius:6px; background:#fff;
  box-shadow:0 1px 3px rgba(18,50,94,0.16); white-space:nowrap; font-variant-numeric:tabular-nums; }

/* ---------- 记录表翻页按钮 ---------- */
.rp-btn{ min-width:28px; height:28px; padding:0 8px; border-radius:6px; font-size:12px; font-weight:600;
  color:#41608F; background:transparent; border:1px solid rgba(29,78,156,0.22); cursor:pointer;
  font-variant-numeric:tabular-nums; }
.rp-btn:hover{ background:#E4EDF9; color:#12325E; }
.rp-btn.on{ background:#1D4E9C; border-color:#1D4E9C; color:#fff; }
.rp-btn:disabled{ opacity:0.4; cursor:not-allowed; }
