/* Dashboard-only master/detail workspace. Does not alter consultation drawer. */
.crm-ui .dw{max-width:1460px;margin:0 auto;color:var(--ui-ink,#243348)}
.dw-page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.dw-eyebrow{font-size:9px;letter-spacing:1.7px;color:#8b99ac;margin-bottom:5px}.crm-ui .dw-page-head h1{font-size:24px;letter-spacing:-.8px;margin:0 0 6px;font-weight:650}.dw-page-head p{font-size:12px;color:#7a889b;margin:0}.dw-head-actions{display:flex;gap:7px;flex-wrap:wrap}.dw-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#fff;border:1px solid #e1e7ef;border-radius:8px;padding:15px 0;margin-bottom:19px}.dw-summary>div{display:flex;align-items:center;justify-content:space-between;padding:0 22px;gap:12px;border-right:1px solid #e8edf3}.dw-summary>div:last-child{border:0}.dw-summary span{color:#718096;font-size:11px}.dw-summary strong{font-size:23px;font-weight:650;line-height:1}.dw-summary small{font-size:10px;margin-left:5px;font-weight:400;color:#93a0b1}.dw-split{display:grid;grid-template-columns:minmax(280px,.53fr) minmax(0,1fr);gap:16px;align-items:stretch;min-height:590px}.dw-master,.dw-detail{background:#fff;border:1px solid #dfe6ef;border-radius:8px;min-width:0;overflow:hidden;display:flex;flex-direction:column}.dw-panel-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:18px 17px 14px}.crm-ui .dw h2{font-size:15px;font-weight:650;margin:0}.dw-panel-head h2 small{font-size:11px;font-weight:500;color:#8896aa;margin-left:5px}.crm-ui .dw .dw-text-button{background:transparent;border:0;box-shadow:none;color:#6f829d;font-size:10px;min-height:25px;padding:2px 0}.dw-tabs{display:flex;gap:3px;padding:0 12px 12px;flex-wrap:wrap}.crm-ui .dw-tabs button{border:0;background:transparent;font-size:10px;padding:5px 7px;min-height:28px;white-space:nowrap;color:#8290a3}.dw-tabs small{font-size:9px;margin-left:3px}.crm-ui .dw-tabs button[aria-pressed=true]{background:#edf3fb;color:#4269a4;font-weight:600}.dw-search{display:block;margin:0 16px 13px}.crm-ui .dw-search input{width:100%;box-sizing:border-box;background:#f8fafc;font-size:11px}.dw-customer-list{max-height:590px;overflow:auto;flex:1;min-height:0}.crm-ui button.dw-customer{display:flex;align-items:center;text-align:left;gap:11px;width:100%;border:0;border-top:1px solid #edf1f6;border-radius:0;padding:16px;min-height:94px;background:#fff;box-shadow:none;color:#34455d}.crm-ui button.dw-customer:hover{background:#f7f9fc}.crm-ui button.dw-customer.is-selected{background:#edf3fb;box-shadow:inset 3px 0 #4269a4}.dw-avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border:1px solid #dfe7f1;border-radius:50%;font-size:12px;color:#7a8fae;background:#f1f5fa}.dw-person{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.dw-person strong{font-size:12px;font-weight:650}.dw-person>span{font-size:10px;color:#7d8ba0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dw-person>small{font-size:9px;color:#9aa6b7}.dw-row-meta{display:flex;flex-direction:column;align-items:flex-end;gap:9px;max-width:115px}.dw-row-meta>small{font-size:9px;color:#8898ac;line-height:1.5;text-align:right}.dw-row-meta>small.is-overdue{color:#b26958}.dw-state{display:inline-block;font-size:9px;color:#597ba9;background:#edf3fc;border:1px solid #e0e9f5;border-radius:4px;padding:3px 6px;line-height:1.4;white-space:nowrap}.dw-master-foot{font-size:9px;color:#98a4b5;padding:13px 16px;border-top:1px solid #edf1f6}.dw-detail-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px}.dw-title-row{display:flex;align-items:center;gap:9px}.crm-ui .dw-title-row h2{font-size:20px}.dw-detail-head p{margin:7px 0;color:#728198;font-size:11px}.dw-phone a{font-size:11px;color:#7f91aa;text-decoration:none}.dw-detail-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.crm-ui .dw .dw-button{display:inline-flex;align-items:center;justify-content:center;height:32px;border:1px solid #dce4ee;border-radius:6px;padding:0 11px;font-size:11px;color:#526984;text-decoration:none;box-sizing:border-box;white-space:nowrap}.crm-ui .dw button.dw-primary{background:#4269a4;border-color:#4269a4;color:#fff;font-size:11px;white-space:nowrap}.dw-properties{display:grid;grid-template-columns:.8fr 1fr 1.35fr;padding:15px 22px;margin:0;border-top:1px solid #eaf0f6;border-bottom:1px solid #eaf0f6;background:#fcfdff;gap:13px}.dw-properties>div{min-width:0}.dw-properties dt{font-size:9px;color:#94a0b2;margin-bottom:6px}.dw-properties dd{font-size:10px;margin:0;color:#50657e;line-height:1.6;overflow-wrap:anywhere}.dw-detail-body{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(170px,1fr);gap:16px;padding:20px 22px;flex:1;align-items:start}.dw-history,.dw-side{min-width:0}.dw-subhead{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:13px}.crm-ui .dw h3{font-size:12px;font-weight:650;margin:0}.dw-subhead>span{font-size:9px;color:#9aa7b8}.dw-note{padding:13px;border:1px solid #e4eaf3;border-radius:6px;margin-bottom:10px;background:#fff}.dw-note header{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;color:#97a3b5;font-size:9px;line-height:1.5}.dw-note header span{white-space:nowrap;color:#7c91ae}.dw-note p{font-size:11px;line-height:1.8;color:#566a85;white-space:pre-wrap;margin:9px 0 0;overflow-wrap:anywhere}.dw-note>small{display:block;font-size:9px;color:#a0adbd;margin-top:9px}.dw-history-help{font-size:9px;color:#a0adbd;line-height:1.7}.dw-side{display:flex;flex-direction:column;gap:14px}.dw-task-card,.dw-vehicle-card{border:1px solid #e4eaf3;border-radius:6px;padding:14px}.dw-muted{font-size:10px;line-height:1.7;color:#95a2b5}.crm-ui .dw button.dw-task{width:100%;display:flex;align-items:flex-start;gap:8px;background:transparent;border:0;padding:8px 0;text-align:left;box-shadow:none;height:auto;min-height:35px}.dw-task>span:last-child{min-width:0}.dw-task strong{display:block;font-size:10px;font-weight:500;color:#63758f;overflow-wrap:anywhere}.dw-task small{display:block;margin-top:4px;font-size:9px;color:#98a5b7}.dw-task-dot{width:9px;height:9px;border:1px solid #cbd6e6;border-radius:3px;margin-top:3px;flex:none}.dw-label{font-size:9px;color:#8f9eb4}.dw-car-icon{color:#a0b3cb;padding:15px 5px 8px}.dw-car-icon svg{width:100%;height:53px}.dw-vehicle-card h3{line-height:1.6}.dw-vehicle-card p{font-size:10px;color:#8292a8;margin:5px 0 12px}.dw-vehicle-card>span:last-of-type{font-size:9px;color:#9aa8bb;line-height:1.8}.dw-vehicle-card button{margin-top:10px;display:block}.dw-next-action{margin:0 22px 19px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#f0f5fc;border:1px solid #e2ebf7;border-radius:6px}.dw-next-action>div{display:flex;flex-direction:column;gap:5px}.dw-next-action strong{font-size:10px;font-weight:600;color:#607d9f}.dw-next-action span{font-size:10px;line-height:1.6;color:#7f93ae}.crm-ui .dw-next-action button{border:0;background:transparent;color:#5d7da5;padding:0;font-size:10px;white-space:nowrap;box-shadow:none}.dw-footer{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#a0adbd;padding:14px 2px}.crm-ui .dw-footer button{font-size:10px;min-height:22px;border:0;background:transparent;color:#8496ad;box-shadow:none}.dw-empty{padding:30px 20px;font-size:11px;color:#8594a9;line-height:1.8}.dw-empty strong{color:#6e819b;font-size:12px;font-weight:500}.dw-empty p{margin:8px 0;font-size:11px}.dw-no-selection{margin:auto;text-align:center}.dw .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1500px){.dw-split{grid-template-columns:minmax(330px,.54fr) minmax(0,1fr)}.dw-customer-list{max-height:650px}}
@media(max-width:1100px){.dw-split{grid-template-columns:minmax(260px,.55fr) minmax(0,1fr);gap:12px}.dw-summary>div{padding:0 13px}.dw-detail-head{padding:18px;align-items:flex-start;flex-wrap:wrap}.dw-detail-body{padding:17px;grid-template-columns:minmax(0,1fr)}.dw-side{display:grid;grid-template-columns:1fr 1fr}.dw-properties{padding:13px 18px}.dw-next-action{margin:0 17px 17px}.dw-car-icon{display:none}.dw-vehicle-card h3{margin-top:12px!important}.dw-customer-list{max-height:760px}}
@media(max-width:700px){.dw-page-head{align-items:flex-start;flex-direction:column;gap:12px}.crm-ui .dw-page-head h1{font-size:21px}.dw-summary{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:16px;padding:14px 0}.dw-summary>div{padding:0 12px}.dw-summary>div:nth-child(3){border:0}.dw-summary strong{font-size:19px}.dw-summary span{font-size:9px}.dw-split{grid-template-columns:minmax(0,1fr)}.dw-customer-list{max-height:290px}.crm-ui button.dw-customer{min-height:76px;padding:12px 16px}.dw-panel-head{padding-top:14px}.dw-detail-head{flex-wrap:wrap}.dw-properties{grid-template-columns:1fr 1fr}.dw-properties>div:last-child{grid-column:1/-1}.dw-next-action{align-items:flex-start;flex-direction:column}.dw-side{grid-template-columns:1fr}.dw-head-actions button{font-size:11px}.dw-summary small{font-size:9px}.dw-detail-body{gap:10px}.dw-footer{gap:10px}.dw-tabs button{flex:1}}

.crm-ui .dw-tabs button{display:inline-flex;align-items:center;gap:3px}.dw-panel-head h2 small{display:inline}.crm-ui .dw-search input{height:34px;min-height:34px;border:1px solid #dfe6ef;border-radius:6px;padding:7px 10px;box-shadow:none;font-family:inherit;color:#43536a;outline-color:#4269a4}

/* Same-model catalog photos remain visible at every workspace breakpoint. */
.dw-vehicle-thumb{display:flex;align-items:center;justify-content:center;flex:none;width:64px;height:44px;min-width:0;overflow:hidden;border:1px solid #e3eaf3;border-radius:5px;background:#fff;color:#91a0b3;font-size:8px}
.dw-vehicle-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.dw-vehicle-visual{display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;min-height:105px;padding:10px 0 5px;box-sizing:border-box;color:#91a0b3;font-size:10px;text-align:center}
.dw-vehicle-visual img{display:block;width:100%;height:120px;object-fit:contain}
.dw-image-disclaimer{display:block;font-size:8px;line-height:1.6;color:#8c9bb0;margin-top:5px;text-align:left}
@media(max-width:1100px){.dw-vehicle-visual img{height:100px}.dw-vehicle-thumb{width:55px;height:40px}}

/* Customer identity is primary; phone is a sibling action, never nested in selection. */
.dw-customer-row{border-top:1px solid #e7edf4;background:#fff}.dw-customer-row.is-selected{background:#edf3fb;box-shadow:inset 3px 0 #4269a4}.dw-customer-row:hover{background:#f7f9fc}.crm-ui .dw-customer-row button.dw-customer{border:0;min-height:64px;padding:12px 16px 5px;background:transparent;box-shadow:none;gap:11px}.crm-ui .dw-customer-row button.dw-customer:hover,.crm-ui .dw-customer-row button.dw-customer.is-selected{background:transparent;box-shadow:none}.dw-customer-row .dw-person strong{font-size:15px;font-weight:700;color:#243348;line-height:1.4}.dw-customer-row .dw-person>.dw-customer-vehicle{font-size:12px;font-weight:550;color:#43536a;white-space:normal;overflow-wrap:anywhere;line-height:1.5}.dw-customer-contact{display:flex;align-items:flex-start;justify-content:space-between;gap:6px 10px;padding:0 16px 12px;flex-wrap:wrap}.crm-ui .dw-customer-phone{font-size:13px;font-weight:600;color:#4269a4;text-decoration:none;letter-spacing:.2px;line-height:1.7;font-variant-numeric:tabular-nums;white-space:nowrap}.dw-customer-phone:hover{text-decoration:underline}.dw-customer-phone.is-empty{font-size:11px;font-weight:400;color:#8896aa}.dw-customer-secondary{display:flex;flex-direction:column;align-items:flex-end;gap:2px;margin-left:auto;font-size:9px;font-weight:400;color:#8896aa;line-height:1.5}.dw-customer-secondary small{font-size:9px;color:#97a3b3}.dw-customer-secondary .is-overdue{color:#a77160}.dw-customer-row:focus-within{outline:2px solid #bacde7;outline-offset:-2px}

/* Name + full telephone share the first line; contact result anchors the far right. */
.dw-customer-row{display:grid;grid-template-columns:40px auto minmax(max-content,1fr) max-content;grid-template-rows:auto auto auto;column-gap:6px;row-gap:3px;padding:12px;align-items:center}
.crm-ui .dw-customer-row button.dw-customer{display:grid;grid-column:1/-1;grid-row:1/3;grid-template-columns:subgrid;grid-template-rows:subgrid;gap:3px 6px;min-height:44px;padding:0;align-items:center}
.dw-customer-row .dw-vehicle-thumb{grid-column:1;grid-row:1/3;width:40px;height:36px}
.dw-customer-row .dw-person{display:contents}
.dw-customer-row .dw-person strong{grid-column:2;grid-row:1;font-size:14px;white-space:nowrap}
.dw-customer-row .dw-person>.dw-customer-vehicle{grid-column:2/4;grid-row:2;font-size:11px;line-height:1.5}
.dw-customer-contact{display:contents}
.crm-ui .dw-customer-phone{grid-column:3;grid-row:1;justify-self:start;align-self:center;z-index:1;font-size:12px;letter-spacing:0;line-height:1.7}
.dw-contact-state{grid-column:4;grid-row:1;justify-self:end;align-self:center;font-size:9px;font-weight:600;color:#597ba9;background:#edf3fc;border:1px solid #dce6f3;border-radius:4px;padding:3px 5px;line-height:1.4;white-space:nowrap;pointer-events:none}
.dw-contact-state[data-contact-state="부재"]{background:#fff6ec;border-color:#f0dfc6;color:#97703d}
.dw-contact-state[data-contact-state="통화 완료"]{background:#edf7f1;border-color:#d8e9de;color:#4f7a61}
.dw-customer-secondary{grid-column:2/-1;grid-row:3;flex-direction:row;justify-content:flex-end;align-items:center;gap:7px;margin-left:0;font-size:9px}
@media(max-width:360px){.dw-customer-row{column-gap:4px;padding:10px;grid-template-columns:32px auto minmax(max-content,1fr) max-content}.crm-ui .dw-customer-row button.dw-customer{column-gap:4px}.dw-customer-row .dw-vehicle-thumb{width:32px;height:32px}.dw-customer-row .dw-person strong{font-size:13px}.crm-ui .dw-customer-phone{font-size:11px}.dw-contact-state{padding:3px 4px;font-size:8px}}

/* Approved one-line customer ledger; representative photo stays in detail only. */
.dw-split{grid-template-columns:minmax(450px,.8fr) minmax(0,1fr)}
.dw-customer-list{overflow:auto}
.dw-list-columns,.dw-customer-row{display:grid;grid-template-columns:52px 111px minmax(160px,1fr) 82px;gap:10px;align-items:center;min-width:459px;box-sizing:border-box;padding:0 12px}
.dw-list-columns{position:sticky;top:0;z-index:3;min-height:32px;background:#f8fafc;border-top:1px solid #e7edf4;border-bottom:1px solid #e7edf4;font-size:9px;color:#8796aa}
.dw-list-columns>span:last-child{text-align:right}
.dw-customer-row{position:relative;grid-template-rows:54px;row-gap:0}
.crm-ui .dw-customer-row button.dw-customer{position:absolute;inset:0;display:block;min-height:0;height:100%;width:100%;padding:0;margin:0;border:0;z-index:0}
.dw-customer-name,.dw-customer-row>.dw-customer-vehicle,.dw-customer-row>.dw-contact-state{position:relative;z-index:1;pointer-events:none;grid-row:1;white-space:nowrap}
.dw-customer-name{grid-column:1;font-size:14px;font-weight:700;color:#243348;line-height:1.5;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.crm-ui .dw-customer-row>.dw-customer-phone{position:relative;grid-column:2;grid-row:1;z-index:2;font-size:12px;line-height:1.7;white-space:nowrap;justify-self:start}
.dw-customer-row>.dw-customer-vehicle{grid-column:3;font-size:12px;font-weight:500;color:#43536a;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;line-height:1.5}
.dw-customer-row>.dw-contact-state{grid-column:4;grid-row:1;justify-self:end;font-size:9px}
@media(min-width:1500px){.dw-split{grid-template-columns:minmax(450px,.8fr) minmax(0,1fr)}}
@media(min-width:701px) and (max-width:1250px){.dw-detail-body{grid-template-columns:minmax(0,1fr)}.dw-side{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:950px){.dw-split{grid-template-columns:minmax(0,1fr)}.dw-customer-list{max-height:330px}}
@media(max-width:360px){.dw-customer-row{column-gap:10px;padding:0 12px;grid-template-columns:52px 111px minmax(160px,1fr) 82px}.dw-customer-row>.dw-contact-state{font-size:9px;padding:3px 5px}}

/* Status buckets stay separate from scheduled follow-up. */
.dw-status-tabs{margin:0 0 16px;padding:5px;background:#fff;border:1px solid #e1e7ef;border-radius:8px;display:flex;gap:4px;flex-wrap:wrap}.crm-ui .dw-status-tabs button{flex:1;justify-content:center;min-height:38px;font-size:12px;padding:8px 12px;border-radius:5px}.dw-today{border-top:1px solid #e1e7ef;padding:16px}.dw-today .dw-subhead{margin:0}.dw-today-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;margin-top:8px}.dw-today-row span{margin-left:auto}.dw-today h3 small{color:#66758a;margin-left:5px}.dw-page-head>h1{margin:0}.dw-status-tabs small{font-size:12px;font-weight:650}.dw-detail .dw-no-selection{min-height:230px;display:flex;align-items:center;justify-content:center}
@media(max-width:700px){.dw-status-tabs{gap:2px}.crm-ui .dw-status-tabs button{flex:1 1 44%;font-size:11px}.dw-page-head{flex-direction:row;align-items:center}}
