/* Shared professional workspace: contact work and messages stay in one place. */
.v430-order-table{max-width:100%;min-width:0;overflow:auto;border:1px solid var(--line,#dbe3e6);border-radius:12px;margin:12px 0;scrollbar-width:auto}
.v430-order-table table{width:100%;min-width:1100px;table-layout:fixed;border-collapse:collapse}
.v430-order-table th,.v430-order-table td{padding:10px;vertical-align:top;border-bottom:1px solid var(--line,#dbe3e6);text-align:left}
.v430-order-table th:first-child{width:44px}.v430-order-table th:nth-child(2){width:195px}.v430-order-table th:nth-child(3){width:130px}.v430-order-table th:nth-child(4){width:235px}.v430-order-table th:nth-child(5){width:84px}.v430-order-table th:nth-child(6){width:125px}.v430-order-table th:nth-child(7){width:130px}.v430-order-table th:nth-child(8){width:76px}
.v430-order-table input,.v430-order-table select{width:100%;min-width:0;min-height:40px;margin:0 0 6px;box-sizing:border-box}
.v430-order-table:focus-visible{outline:2px solid #167c69;outline-offset:3px}
@media(max-width:700px){
 body#wltProduct480 .sidebar.v477-dark-sidebar{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 14px!important;min-height:0!important;height:auto!important}
 body#wltProduct480 .sidebar .v477-dark-nav,body#wltProduct480 .sidebar .side-brand,body#wltProduct480 .sidebar .side-spacer,body#wltProduct480 .sidebar .v477-side-user,body#wltProduct480 .sidebar .v477-side-status{display:none!important}
 body#wltProduct480 .sidebar #allFunctions,body#wltProduct480 .sidebar #mobileMenu{display:flex!important;margin:0!important;min-width:0;width:auto;min-height:44px;justify-content:center;white-space:normal}
 .v430-order-table::before{content:'左右滑动明细表，填写单价和查看金额';display:block;position:sticky;left:0;width:max-content;max-width:100%;padding:8px 10px;font-size:12px;color:var(--muted,#60747c);box-sizing:border-box}
}
.wlt-unread-inline{position:static!important;display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;flex:none;min-width:21px;height:21px;padding:0 6px;border-radius:20px;background:#d83243;color:#fff!important;font-size:12px;font-weight:700;line-height:21px;box-shadow:none}
.wlt-unread-inline[hidden],.wlt-unread-total[hidden]{display:none!important}
.nav-item .wlt-unread-inline{margin-left:auto}
.wlt-contact-work{margin:18px 0;padding:22px}
.wlt-contact-work-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.wlt-contact-work-head h2{margin:0;font-size:18px}
.wlt-contact-work-head>span{font-size:12px;color:var(--muted,#718089)}
.wlt-contact-work .pro-segments{margin-bottom:12px}
.wlt-contact-work .v430-row{width:100%;text-align:left}
.wlt-message-unread{color:#c62f3c!important;font-weight:700}
.v477-contact-row>em{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.v477-contact-row>span{min-width:0;overflow-wrap:anywhere}
.v477-dark-nav{overflow-y:auto;min-height:0;scrollbar-width:thin}
.v477-dark-nav .nav-item{position:relative;flex:none}
.wlt-contact-work .pro-pagination{margin-bottom:0}
.wlt-contact-back{display:inline-flex;align-items:center;margin-bottom:12px}
@media(max-width:900px){.wlt-contact-work-head{align-items:flex-start;flex-direction:column;gap:8px}.wlt-contact-work{padding:16px}.v477-contact-row>em{max-width:150px}}
@media(max-width:600px){.v477-contact-row>em{max-width:95px;font-size:12px}.wlt-contact-work .v430-row{gap:10px}.wlt-contact-work .v430-row em{max-width:110px}}
/* V4.8.17: long user names must not push dialog dismissal/actions off screen. */
body#wltProduct480.v480-app .modal-card{max-width:100%;min-width:0}
body#wltProduct480.v480-app .modal-head{min-width:0}
body#wltProduct480.v480-app .modal-head h2{min-width:0;overflow-wrap:anywhere}
body#wltProduct480.v480-app .modal-head .icon-btn{flex:0 0 40px}
body#wltProduct480.v480-app .page-head>div{min-width:0}
body#wltProduct480.v480-app .page-head h1{overflow-wrap:anywhere}
#contactLedgerRows .table-wrap{max-width:100%;overflow-x:auto}

/* Book-scoped history keeps the table readable inside its own scroll area. */
.wlt-book-contact-history,#bookContactLedgerRows{min-width:0;max-width:100%}
.wlt-book-contact-filters{grid-template-columns:repeat(2,minmax(0,1fr)) auto}
.wlt-book-contact-filters label,.wlt-book-contact-filters input{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
#bookContactLedgerRows .table-wrap{min-width:0;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
#bookContactLedgerRows .v430-table{min-width:790px;table-layout:auto}
#bookContactLedgerRows .v430-table th{white-space:nowrap}
#bookContactLedgerRows .v430-table td{word-break:normal;overflow-wrap:break-word}
#bookContactLedgerRows .v430-table td:first-child{min-width:110px;white-space:nowrap}
#bookContactLedgerRows .v430-table td:nth-child(2){min-width:110px}
#bookContactLedgerRows .v430-table td:nth-child(3){min-width:180px}
#bookContactLedgerRows .v430-table td:nth-child(n+4){white-space:nowrap}
@media(max-width:600px){.wlt-book-contact-filters{grid-template-columns:minmax(0,1fr)}}
#contactLedgerRows table{min-width:760px}
#contactLedgerRows th{white-space:nowrap}
@media(max-width:700px){
 body#wltProduct480.v480-app .page-head{flex-direction:column;align-items:stretch;gap:16px}
 body#wltProduct480.v480-app .page-head .page-actions{width:100%;justify-content:flex-start}
 body#wltProduct480.v480-app .page-head .page-actions>button{flex:0 1 auto;white-space:normal;overflow-wrap:break-word}
 #contactRecord,#contactMessages{min-width:120px}
 #contactSettings{min-width:210px}
}
