/* ===== 订单列表：应收视角（1.29.0）===== */
.ol-panel{gap:0}
.ol-head-actions{display:flex;gap:8px}
.ol-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:4px 0 14px}
.ol-kpis>div{border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:#fff}
.ol-kpis span{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.ol-kpis strong{font-size:19px;font-weight:700;letter-spacing:-.2px}
.ol-kpis strong small{font-size:12px;font-weight:400;color:var(--muted);margin-left:2px}
.ol-kpis strong.is-warn{color:#b45309}
.ol-kpis strong.is-danger{color:#b42318}
.ol-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.ol-toolbar select,.ol-toolbar input{height:34px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--dark);font-size:12px;padding:0 10px;min-width:0}
.ol-toolbar select{padding-right:24px}
.ol-search{flex:1 1 280px;display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 10px;height:34px}
.ol-search span{color:var(--muted)}
.ol-search input{border:0;padding:0;height:32px;flex:1;background:transparent;outline:none}
.ol-date,.ol-money{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 10px;height:34px}
.ol-date input,.ol-money input{border:0;height:30px;padding:0;width:124px;background:transparent;outline:none}
.ol-money input{width:78px}
.ol-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:#fff}
.ol-table{min-width:1060px;border-collapse:collapse;font-size:12.5px}
.ol-table thead th{position:sticky;top:0;z-index:2;background:#fafbfc;border-bottom:1px solid var(--line);text-align:left;font-weight:600;color:#4a555b;white-space:nowrap;padding:10px 12px}
.ol-table tbody td{border-bottom:1px solid #f0f2f4;padding:11px 12px;vertical-align:top}
.ol-table tbody tr:hover{background:#fffaf5}
.ol-table small{display:block;font-size:11.5px;color:var(--muted);margin-top:3px;line-height:1.35}
.ol-id button{border:0;background:none;padding:0;color:#b15e1e;font-weight:700;font-size:12.5px;cursor:pointer;text-align:left}
.ol-id button:hover{text-decoration:underline}
.ol-po{font-variant-numeric:tabular-nums;color:#3d4a52;max-width:130px;word-break:break-all}
.ol-customer b{font-weight:600}
.ol-num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.ol-num b{font-weight:700}
.ol-num.ol-due b{color:#b45309}
.ol-plan small.ol-overdue{color:#b42318;font-weight:600}
.ol-owner{white-space:nowrap;color:#3d4a52}
.ol-time{white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}
.ol-table .tag{display:inline-block;white-space:nowrap}
.ol-actions{white-space:nowrap}
.ol-actions button{margin-right:6px;font-size:12px;padding:4px 10px}
.ol-pager{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;font-size:12px;color:var(--muted)}
.ol-pager button{font-size:12px;padding:6px 12px}
@media(max-width:900px){
  .ol-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ol-toolbar select{flex:1 1 140px}
  .ol-date,.ol-money{flex:1 1 100%}
  .ol-date input{flex:1;width:auto}
  .ol-money input{flex:1;width:auto}
}

.ol-table th:last-child,.ol-table td.ol-actions{position:sticky;right:0;background:#fff;box-shadow:-8px 0 10px -10px rgba(0,0,0,.3)}
.ol-table tbody tr:hover td.ol-actions{background:#fffaf5}
.ol-table th.ol-id-col,.ol-table td.ol-id{min-width:118px}
.ol-table th.ol-po-col{min-width:84px}
.ol-table th.ol-customer-col,.ol-table td.ol-customer{min-width:148px}
.ol-kpis strong small{margin-left:3px}

/* ===== 批量选择（1.31.1）===== */
.ol-table{min-width:1100px;font-size:12px}
.ol-table th.ol-check,.ol-table td.ol-check{width:38px;min-width:38px;max-width:38px;padding:0 0 0 10px;text-align:left;vertical-align:top;position:sticky;left:0;background:#fff}
.ol-table th.ol-check{padding-top:11px;vertical-align:middle;z-index:6;background:#fafbfc}
.ol-table td.ol-check{padding-top:14px}
.ol-check input{
  -webkit-appearance:none;appearance:none;position:relative;
  width:16px;height:16px;margin:0;border:1.5px solid #cfd6db;border-radius:4px;
  background:#fff;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s;
}
.ol-check input:hover{border-color:#eba05e;box-shadow:0 0 0 3px rgba(255,106,0,.08)}
.ol-check input:focus-visible{outline:none;border-color:#ff6a00;box-shadow:0 0 0 3px rgba(255,106,0,.18)}
.ol-check input:checked,.ol-check input:indeterminate{background:#ff6a00;border-color:#ff6a00}
.ol-check input:checked::after{
  content:"";position:absolute;left:4.5px;top:1.5px;width:4px;height:8px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);
}
.ol-check input:indeterminate::after{
  content:"";position:absolute;left:3px;top:6px;width:8px;height:2px;background:#fff;border-radius:1px;
}

/* 选中行：左侧色条 + 浅底，悬停保持 */
.ol-table tbody tr.is-picked{background:#fffaf4;box-shadow:inset 3px 0 0 #ff6a00}
.ol-table tbody tr.is-picked:hover{background:#fff5ea}
.ol-table tbody tr.is-picked td.ol-actions,.ol-table tbody tr.is-picked td.ol-check{background:#fffaf4}
.ol-table tbody tr:hover td.ol-check{background:#fffaf5}
.ol-table tbody tr.is-picked:hover td.ol-check{background:#fff5ea}

/* 批量操作条 */
.ol-batch{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  background:#fff;border:1px solid #f2dfd0;border-left:3px solid #ff6a00;border-radius:10px;
  padding:9px 14px;margin:0 0 12px;
  box-shadow:0 6px 16px -18px rgba(0,0,0,.5);
  animation:ol-batch-in .16s ease-out;
}
@keyframes ol-batch-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.ol-batch-count{display:inline-flex;align-items:baseline;gap:4px;background:#fff3e9;border-radius:999px;padding:5px 12px;white-space:nowrap}
.ol-batch-count{font-size:12px;color:#b15e1e}
.ol-batch-count b{font-size:15px;font-weight:700;color:#b15e1e;font-variant-numeric:tabular-nums;line-height:1;margin:0 2px}
.ol-batch-count i{font-style:normal;font-size:11px;color:#b15e1e}
.ol-batch-hint{flex:1 1 260px;font-size:11.5px;line-height:1.5;color:#8a939a}
.ol-batch-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}
.ol-act{
  font-size:12px;line-height:1;padding:8px 14px;border-radius:8px;cursor:pointer;
  background:#fff;border:1px solid #e2e7ea;color:#3d4a52;transition:all .15s;white-space:nowrap;
}
.ol-act:hover{border-color:#eba05e;color:#b15e1e;background:#fffaf4}
.ol-act.is-danger{color:#b42318;border-color:#f0c2bd}
.ol-act.is-danger:hover{background:#b42318;border-color:#b42318;color:#fff}
.ol-batch:focus-within{box-shadow:0 0 0 3px rgba(255,106,0,.08)}

/* 删除弹窗清单 */
.ol-del-list{display:flex;flex-direction:column;gap:2px;max-height:190px;overflow:auto;border:1px solid #eef1f3;border-radius:8px;padding:6px 10px;margin:10px 0}
.ol-del-list>div{display:flex;gap:10px;align-items:baseline;font-size:12px;padding:5px 0;border-bottom:1px dashed #f4f6f7}
.ol-del-list>div:last-child{border-bottom:0}
.ol-del-list span{color:#3d4a52;flex:1;word-break:break-all;font-variant-numeric:tabular-nums}
.ol-del-list b{font-variant-numeric:tabular-nums;font-weight:600}
.ol-del-list small{color:#8a939a;white-space:nowrap}
.ol-del-more{color:#a0a7ad;font-size:11.5px;padding-top:6px}
@media(max-width:900px){
  .ol-batch{padding:10px 12px;gap:8px}
  .ol-batch-hint{flex-basis:100%}
  .ol-batch-actions{width:100%;margin-left:0}
  .ol-act{flex:1;text-align:center}
}

/* ===== 订单回收站（1.33.0）===== */
.ol-act.is-primary{background:#ff6a00;border-color:#ff6a00;color:#fff}
.ol-act.is-primary:hover{background:#e85f00;border-color:#e85f00;color:#fff}
.or-count{font-size:12px;color:#8a939a;margin-left:auto}
.or-reason{max-width:220px;color:#6c7780;word-break:break-all}

/* 付款确认中：可点开审核水单（1.34.0） */
.ol-pay-chip{display:inline-block;border:1px solid #cfe0f5;background:#eef5fd;color:#2b6cb0;border-radius:6px;padding:3px 8px;font-size:11px;line-height:1.2;cursor:pointer;transition:.15s}
.ol-pay-chip:hover{border-color:#2b6cb0;background:#e3effc}
.mg-pay-fill-row{display:flex;justify-content:flex-start;margin:0 0 8px}
.mg-pay-fill{font-size:11.5px;padding:5px 12px;width:auto;flex:0 0 auto;border:1px solid #eba05e;background:#fff7ef;color:#b15e1e;border-radius:6px;cursor:pointer}
.mg-pay-fill:hover{background:#ffefdf}
/* 下单类型列：客 / 代 / 内部 */
.ol-table th.ol-type-col{width:68px;min-width:60px}
.ol-table td.ol-type{text-align:center;white-space:nowrap}
.ol-type-tag{display:inline-block;min-width:20px;padding:1px 7px;border-radius:4px;font-size:11px;line-height:1.7;font-weight:500}
.ol-type-tag.is-self{background:#eef8f2;color:#2f8a61}
.ol-type-tag.is-staff{background:#fdf1e6;color:#b5450b}
.ol-type-tag.is-internal{background:#f1f4f6;color:#7d888f}

/* 订单分类（开单类型）：MRO / 工程 / 维保服务 */
.ol-category-tag{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:10px;font-size:11.5px;font-weight:600;white-space:nowrap}
.ol-category-tag.is-mro{background:#eef6ff;color:#2f5fb3}
.ol-category-tag.is-engineering{background:#fff4e8;color:#b45b12}
.ol-category-tag.is-service{background:#eefaf2;color:#1f6b45}
.ol-table th.ol-category-col{white-space:nowrap}

/* 订单列表配色柔化（1.81.8）：降低饱和与对比，避免小字号标签过深 */
.ol-table .ol-type-tag{font-weight:500;border:1px solid transparent}
.ol-table .ol-type-tag.is-staff{background:#fff6ef;color:#b06a35;border-color:#f7ddc9}
.ol-table .ol-type-tag.is-self{background:#f1f9f4;color:#4b8a6d;border-color:#dcece2}
.ol-table .ol-type-tag.is-internal{background:#f5f7f9;color:#8a949c;border-color:#e8edf1}
.ol-table .ol-category-tag{font-weight:500;border:1px solid transparent}
.ol-table .ol-category-tag.is-mro{background:#f2f6fd;color:#5273a8;border-color:#e0e9f7}
.ol-table .ol-category-tag.is-engineering{background:#fff7ef;color:#b3743f;border-color:#f6e3cf}
.ol-table .ol-category-tag.is-service{background:#f2faf5;color:#4a8467;border-color:#dcefe3}
.ol-table .tag{font-weight:500}
.ol-table .tag.orange{background:#fff6ee;color:#c07a3e}
.ol-table .tag.green{background:#f1f8f3;color:#4b8668}
.ol-table .tag.blue{background:#f2f6fd;color:#5a78a6}
.ol-table .tag.red{background:#fdf3f2;color:#b4675e}
.ol-table .tag.mute{background:#f5f7f9;color:#8a949c}
