/* 老客户回访：复用 lead-sheet 密度与 SheetFrame，仅补本表列和行内详情。 */
.visit-sheet .lead-sheet-toolbar{flex-wrap:nowrap}
.visit-sheet .lead-sheet-tools{display:flex;align-items:center;gap:5px;white-space:nowrap}
.visit-sheet .lead-sheet-wrap{height:620px;max-height:calc(100vh - 130px)}
.visit-sheet.lead-sheet-full .lead-sheet-wrap{height:auto;max-height:none}
.visit-sheet-table{min-width:1130px}
.visit-sheet-table col.v-date{width:50px}.visit-sheet-table col.v-number{width:118px}.visit-sheet-table col.v-customer{width:76px}
.visit-sheet-table col.v-student{width:108px}.visit-sheet-table col.v-summary{width:120px}.visit-sheet-table col.v-school{width:90px}
.visit-sheet-table col.v-teacher{width:72px}.visit-sheet-table col.v-contact{width:126px}.visit-sheet-table col.v-pending{width:46px}
.visit-sheet-table col.v-overdue{width:50px}.visit-sheet-table col.v-next{width:100px}.visit-sheet-table col.v-status{width:64px}.visit-sheet-table col.v-op{width:110px}
.visit-sheet-table .c-customer{position:sticky;left:0;z-index:2;box-shadow:2px 0 0 #cbd5e1}
.visit-sheet-table thead .c-customer{z-index:4}
.visit-sheet-table .visit-sheet-row{height:30px;cursor:default}
html body #pageRoot .visit-sheet-table td{height:30px!important;box-sizing:border-box}
.visit-sheet-table .c-pending,.visit-sheet-table .c-overdue{text-align:right;font-variant-numeric:tabular-nums}
.visit-sheet-table .c-status .tag{margin:0 2px 0 0;padding:0 4px;font-size:11px;line-height:18px}
.visit-sheet-number{display:inline-block;max-width:100%;padding:0;border:0;background:none;color:#1d4ed8;font:inherit;text-align:left;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.visit-sheet-number:hover{text-decoration:underline}
.visit-sheet-legacy{display:inline-block;padding:0 3px;border-radius:3px;background:#e2e8f0;color:#64748b;font-size:10px;line-height:14px}
.visit-sheet-overdue{color:#c53030}
.visit-sheet-contact{display:flex;align-items:center;gap:3px;min-width:0}
.visit-sheet-contact>div{display:flex;align-items:center;min-width:0}
.visit-sheet-contact small:empty{display:none}
.visit-sheet-school-edit{float:none;vertical-align:middle;padding:0 3px!important;color:#1d4ed8}
.visit-sheet-actions{display:flex;align-items:center;gap:4px}
.visit-sheet-more{position:relative;flex:none}
.visit-sheet-more>summary,.visit-sheet-help>summary{list-style:none;cursor:pointer}
.visit-sheet-more>summary::-webkit-details-marker,.visit-sheet-help>summary::-webkit-details-marker{display:none}
.visit-sheet-more-menu{position:absolute;right:0;top:27px;z-index:40;display:grid;min-width:112px;padding:5px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.18)}
.visit-sheet-more-menu .btn{text-align:left;white-space:nowrap}
.visit-sheet-help{position:relative}
.visit-sheet-help-pop{position:absolute;right:0;top:32px;z-index:50;width:360px;padding:12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.18);color:#334155;line-height:1.6;white-space:normal}
.visit-sheet-cycle-row{height:auto}
html body #pageRoot .visit-sheet-table td.visit-sheet-cycle-cell{height:auto!important;padding:10px 14px!important;background:#f8fafc!important;white-space:normal;overflow:visible}
.visit-sheet-cycle-meta{display:flex;align-items:center;gap:12px;margin-bottom:6px;color:#475569}
.visit-sheet-expanded td{background:#f1f6ff}
html body #pageRoot .visit-sheet-table td .btn{min-height:22px!important;padding:0 6px!important;font-size:12px!important;line-height:20px!important}
@media(max-width:760px){.visit-sheet .lead-sheet-toolbar{flex-wrap:wrap}.visit-sheet .lead-sheet-tools{margin-left:0;flex-wrap:wrap}.visit-sheet .lead-sheet-wrap{height:70vh;max-height:70vh}.visit-sheet-help-pop{width:min(340px,85vw)}}
