@charset "utf-8";
/* ==========================================================================
   工作台（PC端）首页看板样式
   ========================================================================== */
.pcwb { display: flex; flex-direction: column; gap: 14px; font-size: 13px; color: var(--text-main); }

/* ---------- 顶部口径条 ---------- */
.pcwb-bar { display: flex; align-items: center; justify-content: space-between; position: relative; }
.pcwb-bar .tip { color: var(--text-secondary); font-size: 12px; }
.pcwb-bar .proj { color: var(--text-regular); display: flex; align-items: center; gap: 8px; }
.pcwb-dd {
    border: 1px solid var(--border-dark); border-radius: 4px; padding: 4px 10px; background: #fff;
    cursor: pointer; min-width: 128px; display: inline-flex; justify-content: space-between; align-items: center;
    font-weight: 500; color: var(--text-main);
}
.pcwb-dd:hover { border-color: var(--primary); color: var(--primary); }
.pcwb-dd i { font-style: normal; color: var(--text-placeholder); font-size: 11px; }
.pcwb-dd-back { position: fixed; inset: 0; z-index: 60; }
.pcwb-dd-menu {
    position: absolute; right: 0; top: 26px; z-index: 61; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0, 0, 0, .12); padding: 4px; min-width: 168px;
}
.pcwb-dd-menu span { display: block; padding: 7px 12px; border-radius: 4px; cursor: pointer; color: var(--text-regular); }
.pcwb-dd-menu span:hover { background: var(--bg-hover); color: var(--primary); }
.pcwb-dd-menu span.on { background: var(--primary-light); color: var(--primary); font-weight: 500; }

/* ---------- 行 / 列 ---------- */
.pcwb-row { display: flex; gap: 14px; align-items: flex-start; }
.pcwb-col-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pcwb-col-side { width: 268px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; align-self: stretch; }
.pcwb-col-side2 { flex: 1.35; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pcwb-col-rev { flex: 1; min-width: 0; }
.pcwb-ct3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; }

/* ---------- 卡片通用 ---------- */
.pcwb-card { background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-card); }
.pcwb-ch { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pcwb-ch h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-main); }
.pcwb-edit {
    display: inline-flex; align-items: center; gap: 4px; color: var(--text-secondary); cursor: pointer; font-size: 12px;
}
.pcwb-edit:hover { color: var(--primary); }
.pcwb-unit { color: var(--text-placeholder); font-size: 11px; }
.pcwb-empty { color: var(--text-placeholder); font-size: 12px; padding: 12px 0; text-align: center; }
.pcwb-ic { width: 20px; height: 20px; display: block; }
svg.pcwb-ic.sm { width: 13px; height: 13px; }

/* ---------- 欢迎 + KPI ---------- */
.pcwb-wel .pcwb-wh {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 12px; border-bottom: 1px dashed var(--border); margin-bottom: 14px;
}
.pcwb-wh span { font-size: 15px; font-weight: 600; }
.pcwb-clock { font-weight: 500; color: var(--text-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
.pcwb-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; }
.pcwb-kpi { display: flex; align-items: center; gap: 10px; cursor: pointer; border-radius: 6px; padding: 4px; }
.pcwb-kpi:hover { background: var(--bg-hover); }
.pcwb-kpi .ic {
    width: 38px; height: 38px; border-radius: 8px; background: #eef3ff; color: #3d7fff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pcwb-kpi .ic .pcwb-ic { width: 21px; height: 21px; }
.pcwb-kpi .tx { display: flex; flex-direction: column; min-width: 0; }
.pcwb-kpi .tx em { font-style: normal; font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcwb-kpi .tx b { font-size: 19px; font-weight: 600; letter-spacing: .2px; margin-top: 2px; }

/* ---------- 常用功能 ---------- */
.pcwb-fav-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; }
.pcwb-fav-t { text-align: center; cursor: pointer; padding: 6px 2px; border-radius: 6px; min-width: 0; }
.pcwb-fav-t:hover { background: var(--bg-hover); }
.pcwb-fav-t .ic { position: relative; display: inline-flex; width: 34px; height: 34px; color: #3d7fff; }
.pcwb-fav-t .ic .pcwb-ic { width: 26px; height: 26px; }
.pcwb-fav-t .ic i.bd {
    position: absolute; right: -4px; top: -3px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
    background: var(--primary); color: #fff; font-size: 10px; line-height: 15px; font-style: normal; text-align: center;
}
.pcwb-fav-t .nm { display: block; font-size: 12px; color: var(--text-regular); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 消息 / 公告 ---------- */
.pcwb-msg { flex: 1; }
.pcwb-mh { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.pcwb-mh span { cursor: pointer; color: var(--text-secondary); font-size: 13px; padding-bottom: 4px; }
.pcwb-mh span.on { color: var(--primary); font-weight: 600; border-bottom: 2px solid var(--primary); }
.pcwb-mh .more { margin-left: auto; color: var(--text-placeholder); font-size: 12px; border: none !important; }
.pcwb-mh .more:hover { color: var(--primary); }
.pcwb-ml { list-style: none; margin: 0; padding: 0; }
.pcwb-ml li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--border); cursor: pointer; }
.pcwb-ml li:last-child { border-bottom: none; }
.pcwb-ml li:hover .tt { color: var(--primary); }
.pcwb-ml .tg {
    flex-shrink: 0; font-size: 11px; color: var(--success); background: #f0fbe9; border-radius: 3px; padding: 1px 5px;
}
.pcwb-ml .tt { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcwb-ml .tm { font-size: 11px; color: var(--text-placeholder); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.pcwb-ml li.none { justify-content: center; color: var(--text-placeholder); cursor: default; font-size: 12px; }

/* ---------- 图表卡 ---------- */
.pcwb-ct { min-width: 0; }
.pcwb-lg { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-end; margin: 2px 0 4px; }
.pcwb-lg .it { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-secondary); }
.pcwb-lg .it i { width: 8px; height: 8px; border-radius: 50%; border: 2px solid; background: #fff; display: inline-block; }
.pcwb-svg { width: 100%; height: auto; display: block; }
.pcwb-ax { font-size: 9px; fill: #a0a4b0; }
.pcwb-ax2 { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-placeholder); }
.pcwb-seg { display: inline-flex; border: 1px solid var(--border-dark); border-radius: 4px; overflow: hidden; }
.pcwb-seg span { padding: 2px 10px; font-size: 12px; color: var(--text-regular); cursor: pointer; background: #fff; }
.pcwb-seg span + span { border-left: 1px solid var(--border-dark); }
.pcwb-seg span.on { color: var(--primary); border: 1px solid var(--primary); margin: -1px; font-weight: 500; }
.pcwb-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 6px; }
.pcwb-pay .c {
    border: 1px solid var(--border); border-radius: 6px; padding: 12px 12px 10px; cursor: pointer; background: #fcfcfd;
}
.pcwb-pay .c:hover { border-color: var(--primary); background: var(--primary-light); }
.pcwb-pay .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: 2px; }
.pcwb-pay em { font-style: normal; font-size: 12px; color: var(--text-secondary); }
.pcwb-pay b { display: block; font-size: 22px; font-weight: 600; margin-top: 6px; }

/* ---------- 预警 / 待办 / 待审 ---------- */
.pcwb-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
.pcwb-tile { cursor: pointer; border-radius: 6px; padding: 4px 6px; min-width: 0; }
.pcwb-tile:hover { background: var(--bg-hover); }
.pcwb-tile em { display: block; font-style: normal; font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcwb-tile b { display: block; font-size: 18px; font-weight: 600; margin-top: 3px; }
.pcwb-tile b.ln { color: var(--info); }
.pcwb-tile b.zero { color: var(--text-placeholder); }

/* ---------- 营收统计 ---------- */
.pcwb-rev-tag {
    display: inline-flex; align-items: center; gap: 6px; background: #fff5f0; color: #fa541b;
    border-radius: 4px; padding: 3px 9px; font-size: 12px; margin-bottom: 12px;
}
.pcwb-rev-tag .fl { width: 14px; height: 14px; color: #fa541b; }
.pcwb-rev-tag .scope { color: var(--text-placeholder); border-left: 1px solid #ffd8c2; padding-left: 6px; margin-left: 2px; }
.pcwb-rev-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pcwb-rev-c { background: #fafbfd; border-radius: 6px; padding: 10px 12px; min-width: 0; }
.pcwb-rev-c em { font-style: normal; font-size: 12px; color: var(--text-secondary); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcwb-rev-c b { display: block; font-size: 18px; font-weight: 600; margin-top: 4px; }
.pcwb-rev-c b.down { color: var(--danger); }
.pcwb-sub {
    display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin: 16px 0 6px;
    color: var(--text-main);
}
.pcwb-sub .pcwb-ic { width: 16px; height: 16px; color: #3d7fff; }
.pcwb-sub.wide { justify-content: flex-start; gap: 10px; }
.pcwb-sub.wide .pcwb-edit { margin-left: auto; }
.pcwb-dr { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: var(--text-secondary); font-size: 12px; }
.pcwb-dr input {
    border: 1px solid var(--border-dark); border-radius: 4px; padding: 3px 6px; font-size: 12px; color: var(--text-regular);
    background: #fff; font-family: inherit;
}
.pcwb-dr input:focus { outline: none; border-color: var(--primary); }
.pcwb-tb { width: 100%; border-collapse: collapse; font-size: 12px; }
.pcwb-tb th {
    text-align: left; background: #fafbfd; color: var(--text-secondary); font-weight: 500;
    padding: 8px 10px; border-bottom: 1px solid var(--border);
}
.pcwb-tb td { padding: 8px 10px; border-bottom: 1px dashed var(--border); color: var(--text-regular); font-variant-numeric: tabular-nums; }
.pcwb-tb tr.tot td { color: var(--text-main); font-weight: 600; background: #fffbfa; }
.pcwb-tb tbody tr:hover td { background: var(--bg-hover); }

/* ---------- 客户满意度 ---------- */
.pcwb-sat-in { display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 8px 18px; align-items: center; }
.pcwb-donut {
    width: 132px; height: 132px; border-radius: 50%; position: relative; justify-self: center;
    display: flex; align-items: center; justify-content: center;
}
.pcwb-donut::after { content: ''; position: absolute; inset: 13px; background: #fff; border-radius: 50%; }
.pcwb-donut span { position: relative; z-index: 1; text-align: center; }
.pcwb-donut b { display: block; font-size: 20px; font-weight: 600; }
.pcwb-donut small { display: block; font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.pcwb-sat-lg { grid-column: 1; text-align: center; }
.pcwb-sat-lg p { margin: 3px 0; font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; gap: 5px; }
.pcwb-sat-lg i { width: 3px; height: 12px; border-radius: 2px; display: inline-block; }
.pcwb-sat-lg b { color: var(--text-main); font-size: 13px; }
.pcwb-sat-bars { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 10px; }
.pcwb-bar-row { cursor: pointer; }
.pcwb-bar-row .tp { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; color: var(--text-regular); }
.pcwb-bar-row .vl { display: inline-flex; align-items: baseline; gap: 6px; }
.pcwb-bar-row .vl b { font-size: 14px; }
.pcwb-bar-row .vl i { font-style: normal; font-weight: 600; font-size: 14px; }
.pcwb-bar-row .vl em { font-style: normal; font-weight: 400; color: var(--text-placeholder); font-size: 11px; }
.pcwb-bar-row .tr { height: 7px; border-radius: 4px; background: #f2f3f7; margin-top: 4px; overflow: hidden; }
.pcwb-bar-row .tr span { display: block; height: 100%; border-radius: 4px; transition: width .35s ease; }
.pcwb-bar-row:hover .lb { color: var(--primary); }

/* ---------- 常用功能弹窗 ---------- */
.pcwb-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.pcwb-pick label {
    display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 6px;
    padding: 8px 10px; cursor: pointer; font-size: 12px; color: var(--text-regular); user-select: none;
}
.pcwb-pick label:hover { border-color: var(--primary); }
.pcwb-pick label.on { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.pcwb-pick label .pcwb-ic { width: 16px; height: 16px; color: #3d7fff; }
.pcwb-pick label.on .pcwb-ic { color: var(--primary); }
.pcwb-pick .ck {
    width: 14px; height: 14px; border: 1px solid var(--border-dark); border-radius: 3px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 10px; color: #fff; flex-shrink: 0;
}
.pcwb-pick label.on .ck { background: var(--primary); border-color: var(--primary); }
.pcwb-pick-c { margin-top: 10px; font-size: 12px; color: var(--text-secondary); text-align: right; }

/* ---------- 窄屏降级 ---------- */
@media (max-width: 1500px) {
    .pcwb-col-side { width: 236px; }
    .pcwb-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1240px) {
    .pcwb-row { flex-direction: column; }
    .pcwb-col-side, .pcwb-col-rev { width: 100%; align-self: auto; }
    .pcwb-ct3 { grid-template-columns: 1fr; }
    .pcwb-kpis { grid-template-columns: repeat(2, 1fr); }
}
