/* Appointment visual refresh: presentation only; original time ranges and actions retained. */
.appointment-visual-workspace{--appointment-pane-height:max(420px,calc(100dvh - 260px));--appointment-plum:#392553}
.appointment-visual-workspace .ant-page-header-heading-title{font-size:25px!important;line-height:1.4;font-weight:700;color:#211c2c}
.appointment-visual-workspace .appointment-calendar-panel{border:0!important;box-shadow:none!important;background:transparent!important}
.appointment-visual-workspace .reference-calendar-body.appointment-content{display:block!important}
.appointment-visual-workspace .appointment-schedule{width:100%!important;max-width:100%;min-width:0;border:0;background:transparent}
.appointment-visual-workspace .reference-booking-detail{display:none!important}
.appointment-visual-workspace .appointment-date-controls,.appointment-visual-workspace .reference-filter-toggle{gap:8px!important}
.appointment-visual-workspace .appointment-create-action{margin-inline-start:auto}
.appointment-visual-workspace .ant-btn-primary{background:var(--appointment-plum);border-color:var(--appointment-plum)}
.appointment-visual-workspace .ant-btn-primary:hover{background:#51366d!important;border-color:#51366d!important}
.appointment-visual-workspace .ant-segmented{background:#efedf4;padding:3px}
.appointment-visual-workspace .ant-segmented-item-selected{background:var(--appointment-plum)!important;color:#fff!important;box-shadow:none}
.appointment-visual-workspace .calendar-customer-legend{gap:8px!important;margin:0!important;font-size:11px;color:#625c6e;min-height:24px;flex-wrap:wrap}
.appointment-visual-workspace .calendar-customer-legend>span:first-child{display:none}
.appointment-visual-workspace .appointment-visual-resource{--resource-minute-pixels:1.8px!important;--appointment-column-width:248px;--appointment-time-width:64px;border:0!important;background:transparent!important;min-width:0}
.appointment-visual-workspace .appointment-stage-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;padding:2px 0 12px;color:#51495c;font-size:12px;line-height:20px}
.appointment-visual-workspace .appointment-stage-legend>span{display:inline-flex;gap:6px;align-items:center;white-space:nowrap}
.appointment-visual-workspace .stage-dot{width:8px;height:8px;border-radius:50%;background:#8b5ac0;flex-shrink:0}
.appointment-visual-workspace .stage-arrived{background:#4d8fe0}.appointment-visual-workspace .stage-active{background:#7b4aba}.appointment-visual-workspace .stage-completed{background:#538a43}.appointment-visual-workspace .stage-cancelled{background:#97949c}
.appointment-visual-workspace .appointment-quantity-note{border-inline-start:1px solid #ddd8e4;padding-inline-start:14px;color:#6f667a;font-size:11px}
.appointment-visual-workspace .video-resource-scroll{height:var(--appointment-pane-height)!important;max-height:none!important;overflow:auto!important;border:1px solid #dedbe6!important;border-radius:10px;background:#fff;scrollbar-gutter:stable;overscroll-behavior:contain;outline-offset:2px}
.appointment-visual-workspace .video-resource-scroll:focus-visible{outline:2px solid #8162a8}
.appointment-visual-workspace .video-resource-grid{display:grid!important;grid-template-rows:64px auto!important;gap:0!important;min-width:100%!important;isolation:isolate;background:#fff!important}
.appointment-visual-workspace .video-resource-timehead,.appointment-visual-workspace .video-resource-head{position:sticky!important;top:0!important;z-index:5;min-height:64px!important;height:64px!important;background:#fbfaff!important;border-bottom:1px solid #dcd7e5!important;box-sizing:border-box;padding:10px 12px!important}
.appointment-visual-workspace .video-resource-timehead{left:0!important;z-index:7;display:flex;align-items:center;justify-content:center;color:#6a6274;font-size:12px}
.appointment-visual-workspace .video-resource-head{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:10px!important;border-right:1px solid #e9e5ee!important;text-align:left}
.appointment-visual-workspace .appointment-resource-avatar{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:50%;background:#efe5fa;color:#69448b;font-size:16px;font-weight:600}
.appointment-visual-workspace .appointment-resource-identity{min-width:0;display:flex;flex-direction:column;gap:3px}
.appointment-visual-workspace .appointment-resource-identity strong{font-size:14px;color:#29232f;font-weight:650;white-space:nowrap}
.appointment-visual-workspace .appointment-resource-identity small{font-size:11px;color:#847b8d;font-weight:400}
.appointment-visual-workspace .appointment-resource-identity>span{font-size:11px;color:#7c7287;font-variant-numeric:tabular-nums}
.appointment-visual-workspace .video-resource-hours{position:sticky!important;left:0;z-index:4;height:calc(900 * var(--resource-minute-pixels))!important;min-height:0!important;background:#fdfcff!important;border-right:1px solid #e5e0ec}
.appointment-visual-workspace .video-resource-hours>div{height:calc(30 * var(--resource-minute-pixels))!important;min-height:0!important;box-sizing:border-box;display:flex;align-items:flex-start;justify-content:center;padding-top:3px;border-bottom:1px dashed #e9e5ef!important;color:#6d6478;font-size:12px;font-variant-numeric:tabular-nums}
.appointment-visual-workspace .video-resource-hours>div:nth-child(2n){border-bottom-style:solid!important}
.appointment-visual-workspace .video-resource-column{height:calc(900 * var(--resource-minute-pixels))!important;min-height:0!important;position:relative!important;border-right:1px solid #e7e2ed!important;background:#fff!important;min-width:0}
.appointment-visual-workspace .video-resource-slots{position:absolute;inset:0;display:grid;grid-template-rows:repeat(30,calc(30 * var(--resource-minute-pixels)))!important}
.appointment-visual-workspace .video-resource-slots>button{height:calc(30 * var(--resource-minute-pixels))!important;min-height:0!important;box-sizing:border-box;background:transparent;border:0!important;border-bottom:1px dashed #e9e5ef!important;border-radius:0;padding:0;cursor:pointer}
.appointment-visual-workspace .video-resource-slots>button:nth-child(2n){border-bottom-style:solid!important}
.appointment-visual-workspace .video-resource-slots>button:hover{background:#f6f1fc!important}
.appointment-visual-workspace .video-resource-slots>button:focus-visible{outline:2px solid #8162a8;outline-offset:-2px;background:#f6f1fc}
.appointment-visual-workspace .appointment-visual-event{position:absolute!important;z-index:2;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;box-sizing:border-box;padding:6px 8px!important;gap:3px!important;border:1px solid color-mix(in srgb,var(--appointment-customer-border) 30%,#fff)!important;border-inline-start:3px solid var(--appointment-customer-border)!important;border-radius:7px!important;background:color-mix(in srgb,var(--appointment-customer-bg) 65%,white)!important;color:#292332!important;overflow:hidden;text-align:left!important;white-space:normal!important;box-shadow:none!important;font-family:inherit;font-size:12px!important;line-height:15px!important;cursor:pointer;transition:box-shadow .16s ease,border-color .16s ease;container-type:inline-size}
.appointment-visual-workspace .appointment-visual-event:hover{box-shadow:0 2px 7px #34204420!important}
.appointment-visual-workspace .appointment-visual-event:focus-visible{outline:2px solid #68458c!important;outline-offset:1px;z-index:3}
.appointment-visual-workspace .appointment-visual-event .appointment-event-first{display:flex;gap:5px;align-items:center;flex:none;min-width:0;line-height:16px!important;min-height:16px!important;font-weight:600}
.appointment-visual-workspace .appointment-visual-event .resource-event-customer{font-size:14px;font-weight:650;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0!important}
.appointment-visual-workspace .appointment-visual-event .calendar-customer-grades{flex-shrink:0;gap:2px}
.appointment-visual-workspace .appointment-visual-event .calendar-grade{font-size:10px;line-height:14px;padding:0 3px}
.appointment-visual-workspace .appointment-phase{margin-inline-start:auto;display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:11px;font-weight:500;color:#655474}
.appointment-visual-workspace .appointment-phase i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#9664c2;flex-shrink:0}
.appointment-visual-workspace [data-stage="已到店"] .appointment-phase i{background:#4d8fe0}
.appointment-visual-workspace [data-stage="已完成"] .appointment-phase{color:#477338}.appointment-visual-workspace [data-stage="已完成"] .appointment-phase i{background:#538a43}
.appointment-visual-workspace [data-stage="待签字"] .appointment-phase i,.appointment-visual-workspace [data-stage="待买单"] .appointment-phase i{background:#d58a31}
.appointment-visual-workspace .appointment-visual-event .resource-event-project{display:flex;gap:5px;align-items:center;line-height:15px!important;min-height:15px!important;flex:none;overflow:hidden}
.appointment-visual-workspace .appointment-project-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#393041;font-size:12px}
.appointment-visual-workspace .appointment-quantity{flex:none;background:#fff9;border-radius:4px;padding:0 4px;line-height:15px;font-size:11px;font-weight:700;color:#60417c}
.appointment-visual-workspace .calendar-same-customer{margin-inline-start:auto;font-size:9px;color:#766c82;flex-shrink:0}
.appointment-visual-workspace .appointment-event-last{display:flex;align-items:center;gap:4px;justify-content:space-between;flex:none;line-height:14px;min-height:14px}
.appointment-visual-workspace .appointment-event-last time{font-size:11px!important;line-height:14px!important;min-height:14px!important;white-space:nowrap;color:#6c6177!important;font-variant-numeric:tabular-nums;letter-spacing:-.1px;flex-shrink:1}
.appointment-visual-workspace .appointment-payment{display:inline-flex;align-items:center;gap:2px;white-space:nowrap;border-radius:4px;padding:0 4px;border:1px solid #d7b37e;color:#935b14;background:#fffaf1;font-size:10px;line-height:14px;flex-shrink:0}
.appointment-visual-workspace .payment-settled{color:#4d773b;border-color:#a7c795;background:#f4faef}
.appointment-visual-workspace .payment-partial{color:#9c6022;border-color:#c4a36f;background:#fff6e9}
.appointment-visual-workspace .appointment-muted-event{background:#f2f2f4!important;border-color:#dedce2!important;border-inline-start-color:#c4c0ca!important;color:#6b6472!important}
.appointment-visual-workspace .appointment-muted-event .appointment-project-label,.appointment-visual-workspace .appointment-muted-event .appointment-phase,.appointment-visual-workspace .appointment-muted-event time,.appointment-visual-workspace .appointment-muted-event .resource-event-customer{color:#6b6472!important}
.appointment-visual-workspace .appointment-muted-event .appointment-phase i{background:#a9a5ad}
.appointment-visual-workspace .appointment-muted-event .resource-event-customer{text-decoration:none}
.appointment-visual-workspace .appointment-muted-event .calendar-customer-grades{opacity:.5}
@container (max-width:210px){.appointment-visual-event .appointment-duration{display:none}.appointment-visual-event .calendar-same-customer{display:none}.appointment-visual-event .resource-event-customer{font-size:12px!important}.appointment-visual-event .appointment-phase{font-size:10px;gap:2px}.appointment-visual-event .calendar-grade{font-size:9px!important;padding:0 2px!important}}
@container (max-width:135px){.appointment-visual-event .calendar-customer-grades{display:none}.appointment-visual-event .appointment-event-last time{font-size:9px!important}.appointment-visual-event .appointment-payment{font-size:9px;padding:0 2px}.appointment-visual-event .appointment-project-label{font-size:11px}.appointment-visual-event .appointment-phase i{display:none}}
@media(max-width:767px){.appointment-visual-workspace{--appointment-pane-height:max(420px,calc(100dvh - 330px))}.appointment-visual-workspace .appointment-visual-resource{--resource-minute-pixels:2px!important;--appointment-column-width:252px;--appointment-time-width:52px}.appointment-visual-workspace .ant-page-header-heading-title{font-size:22px!important}.appointment-visual-workspace .appointment-stage-legend{gap:6px 12px;padding-bottom:10px}.appointment-visual-workspace .appointment-quantity-note{width:100%;border:0;padding:0}.appointment-visual-workspace .appointment-create-action{min-width:108px}.appointment-visual-workspace .appointment-date-controls,.appointment-visual-workspace .reference-filter-toggle{row-gap:8px!important}}
@media(prefers-reduced-motion:reduce){.appointment-visual-workspace .appointment-visual-event{transition:none}}

.appointment-visual-workspace .reference-filter-toggle>.appointment-date-controls{order:1}.appointment-visual-workspace .reference-filter-toggle>.video-settlement-toolbar{order:2;flex:0 0 auto}.appointment-visual-workspace .reference-filter-toggle>.appointment-period-control{order:3}.appointment-visual-workspace .reference-filter-toggle>.ant-btn{order:4}.appointment-visual-workspace .reference-filter-toggle>.appointment-create-action{order:5}
