/* All styles are confined to 房源详情 > 租后工单. Shared aftersales cards/popups are untouched. */
#dt-workorder { --hwt-line:#e3eaf4; --hwt-ink:#344865; --hwt-muted:#8291a8; }
#dt-workorder #hw-stats {gap:8px!important;margin-bottom:10px!important}
#dt-workorder #hw-stats>div {background:#f8faff!important;border:1px solid var(--hwt-line)!important;border-radius:8px!important;padding:8px 6px!important;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:none!important;transform:none!important}
#dt-workorder #hw-stats>div>div {color:#72819a!important;font-size:11px!important;margin:0!important;white-space:nowrap}
#dt-workorder #hw-stats>div>div:first-child {font-size:18px!important;font-weight:650!important;color:var(--hwt-ink)!important}
#dt-workorder #hw-stats>div.hwt-selected {background:#edf3ff!important;border-color:#c5d5f1!important}
#dt-workorder #hw-stats>div.hwt-selected>div {color:#476dbb!important}
#dt-workorder .hwt-header [onclick^="showCreate"] ,#dt-workorder .wo-header [onclick^="showCreate"] {background:#edf2ff!important;color:#4767c9!important;border:1px solid #d9e4fd!important;padding:5px 11px!important;box-shadow:none!important;transform:none!important;white-space:nowrap}
#dt-workorder .hwt-types {background:#f7f9fc!important;border:1px solid var(--hwt-line);gap:4px!important;padding:4px!important;border-radius:8px!important;overflow:auto}
#dt-workorder .hwt-types>span {white-space:nowrap;padding:5px 12px!important;box-shadow:none!important;flex-shrink:0}
#dt-workorder .hwt-duplicate {display:none!important}
#dt-workorder .hwt-filters {margin-bottom:10px!important}
#dt-workorder .hwt-filters select {width:112px!important;flex-shrink:0!important}
#dt-workorder .hwt-filters>div>div {flex:0 1 290px!important}
#dt-workorder .hwt-filters input {width:110px!important;min-width:0!important}
#dt-workorder .hwt-group {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
#dt-workorder .hwt-grouphead {grid-column:1/-1;margin:0!important;padding:6px 0!important;color:var(--hwt-ink)!important}
#dt-workorder .wo-list:has(>.hwt-card) {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px!important}
#dt-workorder .tk-card.hwt-card {box-sizing:border-box!important;min-width:0!important;width:100%!important;margin:0!important;padding:11px 13px!important;background:#fff!important;border:1px solid var(--hwt-line)!important;border-radius:10px!important;box-shadow:0 2px 7px #243c6803!important;animation:none!important;transform:none!important;display:flex!important;flex-direction:column!important;gap:0!important;cursor:pointer;overflow:hidden}
#dt-workorder .hwt-card::before,#dt-workorder .hwt-card::after {display:none!important}
#dt-workorder .hwt-card:hover {border-color:#cfdbec!important;box-shadow:0 3px 10px #243c6808!important}
#dt-workorder .hwt-card:focus-visible {outline:2px solid #88a4e4;outline-offset:2px}
#dt-workorder .hwt-top {display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:22px}
#dt-workorder .hwt-title {font-size:14px;font-weight:650;color:#21314d;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dt-workorder .hwt-badges {display:flex;gap:4px;flex-shrink:0}
#dt-workorder .hwt-state,#dt-workorder .hwt-urgent {font-size:10px;line-height:18px;padding:1px 6px;border-radius:4px;white-space:nowrap;background:#f3f5f9;color:#7b8aa0}
#dt-workorder .hwt-state[data-state=pending] {background:#fff4e3;color:#a87c42}
#dt-workorder .hwt-state:is([data-state=processing],[data-state=accepted],[data-state=in_progress],[data-state=checked_in],[data-state=dispatched]) {background:#edf2ff;color:#577bc2}
#dt-workorder .hwt-state:is([data-state=done],[data-state=completed],[data-state=evaluated]) {background:#edf8f2;color:#5b9a7b}
#dt-workorder .hwt-urgent {background:#fff2ef;color:#bb7869}
#dt-workorder .hwt-meta {display:flex;justify-content:space-between;gap:8px;margin:5px 0 6px;font-size:11px;line-height:18px;color:#93a0b4}
#dt-workorder .hwt-identity {min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dt-workorder .hwt-created {white-space:nowrap;flex-shrink:0;font-size:10px}
#dt-workorder .hwt-summary {color:#667791;font-size:12px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 8px}
#dt-workorder .hwt-bottom {display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;border-top:1px solid #edf1f7;padding-top:7px;min-height:29px}
#dt-workorder .hwt-person {font-size:11px;color:#6b7f9b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
#dt-workorder .hwt-progress {font-size:10px;color:#8291a8;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#dt-workorder .hwt-progress .tk-card-countdown {font-size:10px!important;font-weight:500!important;padding:2px 5px!important;line-height:18px;animation:none!important;border-radius:4px;background:#f1f6ff;color:#5e85bf;white-space:nowrap!important}
#dt-workorder .hwt-progress .countdown-overdue {color:#bc766e;background:#fff3f1}
#dt-workorder .hwt-detail {font-family:inherit;font-size:11px;line-height:18px;white-space:nowrap;background:#f4f7ff;color:#6384bb;border:1px solid #e0e9fc;border-radius:5px;padding:2px 7px;cursor:pointer}
@media(max-width:760px){
 #dt-workorder #hw-stats {gap:5px!important}
 #dt-workorder #hw-stats>div {gap:3px;padding:6px 2px!important;flex-direction:column;border-radius:7px!important}
 #dt-workorder #hw-stats>div>div:first-child {font-size:16px!important}
 #dt-workorder #hw-stats>div>div {font-size:10px!important}
 #dt-workorder .hwt-types {gap:0!important}
 #dt-workorder .hwt-types>span {padding:5px 8px!important;flex:1;text-align:center;font-size:11px!important}
 #dt-workorder .hwt-filters select {width:78px!important;min-width:0!important;padding:5px 3px!important}
 #dt-workorder .hwt-filters {gap:4px!important}
 #dt-workorder .hwt-filters>div {gap:4px!important}
 #dt-workorder .hwt-filters>div>div {flex:1!important;padding:3px!important}
 #dt-workorder .hwt-filters input {width:65px!important;font-size:10px!important}
 #dt-workorder .hwt-filters>span {padding:5px 6px!important}
 #dt-workorder .hwt-group,#dt-workorder .wo-list:has(>.hwt-card) {grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
 #dt-workorder .tk-card.hwt-card {padding:10px 11px!important;border-radius:9px!important}
 #dt-workorder .hwt-title {font-size:13px}
 #dt-workorder .hwt-meta {margin:4px 0 6px;font-size:10px;gap:5px}
 #dt-workorder .hwt-created {font-size:9px}
 #dt-workorder .hwt-summary {margin-bottom:7px}
 #dt-workorder .hwt-bottom {gap:6px;padding-top:6px}
 #dt-workorder .hwt-person,#dt-workorder .hwt-detail {font-size:10px}
 #dt-workorder .hwt-progress {max-width:180px}
}
@media(prefers-reduced-motion:reduce){#dt-workorder *{animation:none!important;transition:none!important}}

/* Room toolbar uses the same quiet segmented statistics and compact controls. */
#dt-workorder .hwt-room-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid #e6ecf4;border-radius:9px;background:#f8fafd;overflow:hidden;margin:0 0 10px}
#dt-workorder .hwt-room-stats>button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;padding:9px 5px;border:0;border-radius:0;background:transparent;color:#65768c;font-size:11px;font-family:inherit;cursor:pointer}
#dt-workorder .hwt-room-stats>button+button{border-left:1px solid #e2e9f2}
#dt-workorder .hwt-room-stats .hwt-count{font-size:18px;font-weight:650;color:#293e5d;font-variant-numeric:tabular-nums}
#dt-workorder .hwt-room-stats>button.hwt-selected{background:#ecf3ff;box-shadow:inset 0 -2px #6390db;color:#3563a7}
#dt-workorder .hwt-room-stats>button.hwt-selected .hwt-count{color:#3563a7}
#dt-workorder .hwt-room-toolbar .hwt-types{display:flex;margin-bottom:10px}
#dt-workorder .hwt-room-filters{display:flex;align-items:center;gap:8px}
#dt-workorder .hwt-room-dates{display:flex;align-items:center;gap:6px;min-width:0}
#dt-workorder .hwt-room-dates input{border:1px solid #dce5f0;border-radius:5px;padding:4px 5px;font-family:inherit;font-size:11px}
#dt-workorder .hwt-nfc{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px;color:#61748b;margin-left:auto}
#dt-workorder .hwt-room-filters .hwt-nfc input{width:14px!important;height:14px!important;min-height:14px;accent-color:#5d86c8;flex:none!important}
#dt-workorder .hwt-room-filters button,#dt-workorder .hwt-room-toolbar .hwt-new{font-family:inherit;border:1px solid #d9e6fa;border-radius:5px;padding:5px 8px;white-space:nowrap}
#dt-workorder .hwt-empty{grid-column:1/-1;padding:36px 12px;text-align:center;color:#71839b;font-size:12px;background:#fff;border:1px solid #e3e9f2;border-radius:10px}
@media(max-width:768px){
 #dt-workorder .hwt-room-stats>button{flex-direction:column;gap:3px;padding:7px 1px;font-size:10px}
 #dt-workorder .hwt-room-stats .hwt-count{font-size:17px}
 #dt-workorder .hwt-room-toolbar .hwt-types>span{flex:1;text-align:center}
 #dt-workorder .hwt-room-filters{flex-wrap:wrap!important;gap:6px!important}
 #dt-workorder .hwt-room-filters>.hwt-room-dates{flex-basis:100%!important;flex-shrink:0}
 #dt-workorder .hwt-room-dates input{max-width:none!important;width:0!important;flex:1;font-size:11px!important}
 #dt-workorder .hwt-nfc{margin-left:0;margin-right:auto}
 #dt-workorder .hwt-nfc input{flex:none!important;width:14px!important}
}

/* 20261001hwtpolish1: approved preview visual hierarchy, scoped to workorders only. */
#dt-workorder{--hwt-line:#e3e9f2;--hwt-ink:#293c59;--hwt-muted:#65768e}
#dt-workorder .hwt-toolbar{border:1px solid #e6ecf4;border-radius:12px;padding:12px 13px;box-shadow:0 3px 12px #30456906;margin-bottom:12px}
#dt-workorder .hwt-header b{color:#213753;font-size:14px;font-weight:650}
#dt-workorder .hwt-header small{color:#68788f;font-size:11px}
#dt-workorder #hw-stats{gap:0!important;border:1px solid #e6ecf4;border-radius:9px;background:#f8fafd;overflow:hidden}
#dt-workorder #hw-stats>div{border:0!important;border-radius:0!important;background:transparent!important;padding:9px 5px!important;gap:6px;position:relative;cursor:pointer}
#dt-workorder #hw-stats>div+div:before{content:'';position:absolute;left:0;height:24px;width:1px;background:#e2e9f2}
#dt-workorder #hw-stats>div>div{color:#65768c!important}
#dt-workorder #hw-stats>div>div:first-child{color:#293e5d!important;font-weight:650!important;font-variant-numeric:tabular-nums}
#dt-workorder #hw-stats>div.hwt-selected{background:#ecf3ff!important;box-shadow:inset 0 -2px #6390db!important}
#dt-workorder #hw-stats>div.hwt-selected>div{color:#3563a7!important}
#dt-workorder .hwt-types{background:#f5f7fb!important;border:0;border-radius:7px!important;padding:3px!important;gap:3px!important}
#dt-workorder .hwt-types>span{cursor:pointer;color:#62748d;padding:5px 12px!important;border-radius:5px}
#dt-workorder .hwt-types .selected{color:#3563a7;background:#fff;box-shadow:0 1px 4px #22395b12!important;font-weight:600}
#dt-workorder .hwt-filters select,#dt-workorder .hwt-filters input{background:#fff;color:#536881;border-color:#dce5f0;min-height:27px;box-sizing:border-box}
#dt-workorder .hwt-new,#dt-workorder .hwt-detail{background:#edf4ff;color:#3563a7;border-color:#d9e6fa;border-radius:6px;box-shadow:none;font-weight:500;cursor:pointer}
#dt-workorder .reset{background:#f5f7fb;color:#61748b;border-color:#e2e9f2;cursor:pointer}
#dt-workorder button:hover{background:#e3edfd;border-color:#bdd1ef}
#dt-workorder button:active{background:#dce8fb}
#dt-workorder :is(button,select,input,[role=button]):focus-visible{outline:2px solid #5d86c8;outline-offset:2px}
#dt-workorder .hwt-grouphead{display:flex;align-items:center;color:#2d405c!important;font-size:13px;border-bottom:0;padding:3px 2px!important}
#dt-workorder .hwt-grouphead small{color:#65768e;background:#eaf0f8;padding:1px 6px;border-radius:4px;font-size:10px;margin-left:8px}
#dt-workorder .hwt-group{gap:10px 12px}
#dt-workorder .hwt-card{border-color:#e1e8f2!important;border-radius:11px!important;box-shadow:0 3px 10px #233e6607!important;padding:11px 13px!important;transition:background .15s,border-color .15s;cursor:pointer}
#dt-workorder .hwt-card:hover{border-color:#c1d2eb!important;box-shadow:0 4px 14px #233e6610!important}
#dt-workorder .hwt-title{font-size:14px;color:#253954;font-weight:650}
#dt-workorder .hwt-meta{color:#64758c;font-size:11px;margin:5px 0 6px}
#dt-workorder .hwt-created{color:#6c7c92;font-size:10px;font-variant-numeric:tabular-nums}
#dt-workorder .hwt-summary{color:#4d607a;font-size:12px}
#dt-workorder .hwt-bottom{border-color:#edf1f6}
#dt-workorder .hwt-person{color:#5b6e87}
#dt-workorder .hwt-progress{color:#687c92}
#dt-workorder .hwt-state{font-size:10px;font-weight:500;border-radius:5px}
#dt-workorder .hwt-state[data-state=settling]{color:#826839;background:#f8f1e6}
#dt-workorder .hwt-state[data-state=pending]{color:#936129;background:#fff3e3}
#dt-workorder .hwt-state[data-state=completed]{color:#35735c;background:#edf7f2}
#dt-workorder .hwt-progress .countdown-overdue{color:#a8504b!important;background:#fff0ee!important}

@media(max-width:768px){
 #dt-workorder .hwt-toolbar{padding:11px 10px;border-radius:11px;margin-bottom:10px}
 #dt-workorder .hwt-header{margin-bottom:9px}#dt-workorder .hwt-header b{font-size:14px}
 #dt-workorder .hwt-header small{margin-left:5px;font-size:10px}
 #dt-workorder .hwt-new{font-size:10px;padding:5px 8px}
 #dt-workorder #hw-stats>div{padding:7px 1px!important;gap:3px;flex-direction:column}
 #dt-workorder #hw-stats>div>div:first-child{font-size:17px!important}
 #dt-workorder #hw-stats>div>div{font-size:10px!important}
 #dt-workorder .hwt-types{margin:9px 0 8px;gap:0!important}
 #dt-workorder .hwt-types>span{padding:5px 4px!important;font-size:10px!important}
 #dt-workorder .hwt-filters{gap:4px!important;flex-wrap:nowrap}
 #dt-workorder .hwt-filters>div{flex:1;min-width:0;gap:3px!important}
 #dt-workorder .hwt-filters select{width:75px!important;padding:4px 3px!important;font-size:10px}
 #dt-workorder .hwt-filters input{width:75px!important;flex:1;max-width:104px;font-size:9px;padding:4px 2px;min-width:0}
 #dt-workorder .reset{font-size:10px;padding:4px 5px;white-space:nowrap}
 #dt-workorder .hwt-group{grid-template-columns:1fr!important;gap:8px!important}
 #dt-workorder .hwt-card{padding:10px 11px!important;border-radius:11px!important}
 #dt-workorder .hwt-title{font-size:14px}
 #dt-workorder .hwt-meta{margin:4px 0 6px;font-size:11px;gap:5px}
 #dt-workorder .hwt-created{font-size:10px}
 #dt-workorder .hwt-person,#dt-workorder .hwt-detail{font-size:10px}

}

#dt-workorder .hwt-toolbar{box-sizing:border-box;background:#fff}
#dt-workorder .hwt-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px!important}
#dt-workorder .hwt-header>div{min-width:0}
#dt-workorder .hwt-header>div>span:first-child{color:#213753!important;font-size:14px!important}
#dt-workorder .hwt-header>div>span:last-child{color:#68788f!important;font-size:11px!important}
#dt-workorder .hwt-new{font-size:11px!important;white-space:nowrap;cursor:pointer}
#dt-workorder .hwt-filters{margin-bottom:0!important}
#dt-workorder .hwt-types>span{background:transparent!important;color:#62748d!important}
#dt-workorder .hwt-types>span.selected{background:#fff!important;color:#3563a7!important;box-shadow:0 1px 4px #22395b12!important}
#dt-workorder .hwt-grouphead>span{color:#65768e!important;background:#eaf0f8;padding:1px 6px;border-radius:4px;font-size:10px!important;margin-left:8px}
#dt-workorder .hwt-new:hover,#dt-workorder .reset:hover{background:#e3edfd!important;color:#3563a7!important;border-color:#bdd1ef!important}
#dt-workorder .hwt-new:active,#dt-workorder .reset:active{background:#dce8fb!important}
@media(max-width:768px){
 #page-detail:has(#dt-workorder.active),.detail-content:has(> #dt-workorder.active){background:#f4f7fc!important}
 #dt-workorder .hwt-header>div>span:last-child{font-size:10px!important}
 #dt-workorder .hwt-new{font-size:10px!important;padding:5px 8px!important}
 #dt-workorder .hwt-filters>div>div{background:#fff!important;border-color:#dce5f0!important;flex:1!important;padding:3px!important;min-width:0}
 #dt-workorder .hwt-filters input{width:65px!important;max-width:none;flex:1;min-width:0!important}
 #dt-workorder .hwt-filters>span.reset{padding:4px 5px!important;font-size:10px!important;border-radius:5px!important;background:#f5f7fb!important;color:#61748b!important;border-color:#e2e9f2!important}
}
