.pw-filters{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:12px 0}.pw-filters label{flex:1 1 130px;min-width:0}.pw-filters label:first-child{flex:2 1 240px}.pw-filters input,.pw-filters select{width:100%;min-width:0}.pw-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-block:1px solid #d8e0dc;margin:12px 0}.pw-summary>div{padding:14px 12px;border-right:1px solid #e3e7e5}.pw-summary strong{display:block;font-size:19px;color:#184f3a}.pw-summary span{font-size:12px;color:#59645e}.pw-host{display:block!important}.pw-table-wrap{overflow:auto;max-width:100%;border:1px solid #d8e0dc}.pw-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:920px}.pw-table th,.pw-table td{padding:12px 9px;border-bottom:1px solid #e2e7e4;text-align:left;vertical-align:top;overflow-wrap:anywhere}.pw-table th{background:#f2f5f3;font-size:12px;color:#48594f}.pw-table .pw-select{width:34px}.pw-table th:last-child{width:94px}.pw-table th:nth-child(4){width:105px}.pw-table th:nth-child(6){width:135px}.pw-table td{font-size:13px}.pw-table td strong,.pw-table td span:not(.pw-state),.pw-table small,.pw-ledger small{display:block}.pw-table small,.pw-ledger small{color:#617068;font-size:11px;margin-top:3px}.pw-number{text-align:right!important;font-variant-numeric:tabular-nums}.pw-state{display:inline-block;background:#e9eff7;color:#265788;border-radius:4px;padding:3px 6px;font-size:11px}.pw-paid .pw-state{background:#ddf1e4;color:#245b35}.pw-overdue .pw-state,.pw-credit .pw-state,.pw-anomaly .pw-state{background:#fce5e3;color:#9c2925}.pw-partial .pw-state,.pw-ordered .pw-state{background:#fff1ca;color:#775b16}.pw-warning{color:#985f15!important;font-size:12px;white-space:pre-wrap}.pw-actions{display:flex;gap:5px;flex-wrap:wrap}.pw-icon{display:inline-grid!important;place-items:center;padding:0!important;width:34px!important;height:34px!important;min-width:34px!important;flex:0 0 34px}.pw-icon svg{width:18px;height:18px}.pw-pagination{display:flex;align-items:center;justify-content:end;gap:10px;margin-top:12px}.pw-pagination label{display:flex;align-items:center;gap:8px}.pw-pagination select{width:75px}.pw-results{font-size:12px;margin:8px 0}.pw-menu{position:fixed;z-index:99999;background:white;border:1px solid #d8e0dc;border-radius:6px;box-shadow:0 8px 28px #142b2026;max-width:calc(100vw - 16px);padding:5px;min-width:230px}.pw-menu button{display:flex;align-items:center;gap:10px;background:white;color:#25362d;width:100%;text-align:left;border:0;padding:10px;font-size:13px}.pw-menu button:hover{background:#edf4f0}.pw-menu svg{width:17px;height:17px}.pw-dialog{padding:0;border:1px solid #d0dbd4;border-radius:8px;width:min(1100px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);color:#20372a;background:#fff}.pw-dialog::backdrop{background:#152c2b70}.pw-dialog-head{display:flex;align-items:start;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid #d8e0dc}.pw-dialog-head h2{font-size:21px;margin:4px 0;overflow-wrap:anywhere}.pw-dialog-head>div{min-width:0}.pw-tabs{display:flex;gap:4px;overflow:auto;padding:8px 24px;border-bottom:1px solid #d8e0dc}.pw-tabs button{background:white;color:#4d5f54;border:0;border-radius:0;font-size:14px;white-space:nowrap}.pw-tabs button[aria-selected=true]{color:#145e40;border-bottom:3px solid #145e40}.pw-dialog-body{padding:12px 24px 24px;overflow:auto;max-height:calc(100dvh - 220px)}.pw-document-list>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e2e7e4}.pw-document-list span{overflow-wrap:anywhere;min-width:0}.pw-document-list .pw-actions{flex-shrink:0}.pw-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-block:18px;border-top:1px solid #d8e0dc;margin-top:18px}.pw-form h3{grid-column:1/-1;font-size:17px;margin:0}.pw-form label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px}.pw-form input,.pw-form select,.pw-form textarea{width:100%;min-width:0;box-sizing:border-box}.pw-form button[type=submit]{align-self:end}.pw-wide{grid-column:1/-1}.pw-form textarea{resize:vertical}.pw-balance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid #d8e0dc}.pw-balance>div{padding:14px}.pw-balance strong{display:block;font-size:21px}.pw-ledger{width:100%;border-collapse:collapse;table-layout:fixed}.pw-ledger td,.pw-ledger th{text-align:left;vertical-align:top;padding:10px 6px;border-bottom:1px solid #d8e0dc;overflow-wrap:anywhere;font-size:12px}.pw-history{padding-left:22px}.pw-history li{padding:12px 0;border-bottom:1px solid #ddd}.pw-history small{display:block;color:#617068}.pw-history p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.pw-part{max-width:65px!important}.pw-dialog-body>p:empty{display:none}@media(max-width:800px){.pw-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.pw-form{grid-template-columns:repeat(2,minmax(0,1fr))}.pw-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.pw-balance{grid-template-columns:1fr}.pw-dialog-head,.pw-dialog-body{padding:12px}.pw-tabs{padding-inline:12px}.pw-dialog-body{max-height:calc(100dvh - 200px)}}
/* Keep the document list independent from the surrounding payment controls. */
#interventionReportPaymentsList .pw-table-wrap{max-height:60dvh;overscroll-behavior:contain;scrollbar-gutter:stable;isolation:isolate}
#interventionReportPaymentsList .pw-table th{position:sticky;top:0;z-index:2;box-shadow:0 1px 0 #d8e0dc;background:#f2f5f3}
#interventionReportPaymentsList .pw-table-wrap:focus-visible{outline:2px solid #217a55;outline-offset:2px}
#interventionReportPaymentsList .pw-select input{width:16px;height:16px;vertical-align:middle;cursor:pointer}
#paymentSelectionInfo{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(min-width:1000px) and (min-height:700px){
  body:has(.page-section[data-page="interventionReportPayments"].active):not(.auth-locked){overflow:hidden}
  body:not(.auth-locked):has(.page-section[data-page="interventionReportPayments"].active) main{display:flex;flex-direction:column;height:100dvh;min-height:0;max-width:none;overflow:hidden;padding-top:14px;padding-bottom:14px}
  body:not(.auth-locked):has(.page-section[data-page="interventionReportPayments"].active) main>header{flex-shrink:0;align-items:center;margin-bottom:8px}
  body:has(.page-section[data-page="interventionReportPayments"].active) main>header .brand img{width:64px}
  body:has(.page-section[data-page="interventionReportPayments"].active) main>header .brand h1{font-size:24px}
  body:has(.page-section[data-page="interventionReportPayments"].active) main>header .brand p{display:none}
  body:has(.page-section[data-page="interventionReportPayments"].active) main>.section-nav{position:static;flex-shrink:0;padding:4px 0 8px;margin-bottom:8px}
  .panel.page-section[data-page="interventionReportPayments"].active{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;margin-bottom:0;padding:14px}
  [data-page="interventionReportPayments"]>.panel-head{flex-shrink:0;align-items:center;margin-bottom:6px}
  [data-page="interventionReportPayments"]>.panel-head h2{font-size:20px}
  [data-page="interventionReportPayments"]>.panel-head p{display:none}
  [data-page="interventionReportPayments"] .pw-summary{flex-shrink:0;margin:6px 0 10px}
  [data-page="interventionReportPayments"] .pw-summary>div{padding:9px 10px}
  [data-page="interventionReportPayments"] .pw-summary strong{font-size:17px}
  [data-page="interventionReportPayments"]>form,[data-page="interventionReportPayments"]>.pw-filters,[data-page="interventionReportPayments"]>.payment-selection-toolbar{flex-shrink:0}
  [data-page="interventionReportPayments"] .pw-filters{gap:8px;margin:8px 0}
  [data-page="interventionReportPayments"] .pw-filters label{flex:1 1 105px;font-size:12px}
  [data-page="interventionReportPayments"] .pw-filters label:first-child{flex:1.6 1 180px}
  [data-page="interventionReportPayments"] button{min-height:34px;font-size:12px;padding-inline:10px}
  [data-page="interventionReportPayments"] input:not([type="checkbox"]),[data-page="interventionReportPayments"] select{min-height:34px;padding:6px 8px;font-size:12px}
  [data-page="interventionReportPayments"]>.payment-selection-toolbar{gap:8px;padding:8px 10px;margin:6px 0}
  [data-page="interventionReportPayments"] .payment-selection-toolbar>.inline-actions{gap:6px;flex-wrap:wrap}
  [data-page="interventionReportPayments"] .payment-selection-toolbar>div:first-child{min-width:0}
  [data-page="interventionReportPayments"] #paymentSelectionInfo{font-size:12px}
  [data-page="interventionReportPayments"]>#paymentSelectionFeedback{flex-shrink:0;max-height:80px;overflow:auto;margin:4px 0}
  [data-page="interventionReportPayments"]>#paymentSelectionFeedback:empty{display:none}
  #interventionReportPaymentsList.pw-host{display:flex!important;flex-direction:column;flex:1;min-height:0;gap:0}
  #interventionReportPaymentsList .pw-results{flex-shrink:0;margin:4px 0}
  #interventionReportPaymentsList .pw-table-wrap{flex:1;min-height:0;max-height:none}
  #interventionReportPaymentsList .pw-pagination{flex-shrink:0;margin-top:8px}
}
/* Compact workspace: keep the eight-column list useful on laptop screens. */
.pw-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.panel.page-section[data-page="interventionReportPayments"]{position:relative}
.pw-head-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
#pwCount{font-size:12px;font-weight:500;margin-left:12px;color:#617068;white-space:nowrap}
#pwMoreFilters{display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
#pwMoreFilters svg,#paymentSelectionEmail svg{width:16px;height:16px;vertical-align:middle;flex-shrink:0}
#pwFilters.pw-advanced{position:absolute;left:10px;right:10px;z-index:6;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0;padding:12px;border:1px solid #cbd8d0;border-radius:6px;background:#fff;box-shadow:0 8px 24px #173d2924}
#pwFilters.pw-advanced>button{grid-column:span 2}
#pwFilters.pw-advanced label{font-size:12px;min-width:0}
#interventionReportPaymentsList .pw-line{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#interventionReportPaymentsList .pw-row-title{display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden}
#interventionReportPaymentsList .pw-row-title>small{flex-shrink:0;margin:0;font-size:10px}
#interventionReportPaymentsList .pw-row-title>strong{min-width:0}
@media(min-width:1000px) and (min-height:700px){
  body:not(.auth-locked):has(.page-section[data-page="interventionReportPayments"].active) main{padding-top:10px;padding-bottom:10px}
  body:not(.auth-locked):has(.page-section[data-page="interventionReportPayments"].active) main>header{margin-bottom:4px}
  body:has(.page-section[data-page="interventionReportPayments"].active) main>header .brand img{width:48px}
  body:has(.page-section[data-page="interventionReportPayments"].active) main>header .brand h1{font-size:22px}
  body:has(.page-section[data-page="interventionReportPayments"].active) main>.section-nav{padding:2px 0 6px;margin-bottom:4px}
  body:has(.page-section[data-page="interventionReportPayments"].active) main>.section-nav button{min-height:32px;font-size:13px;padding-inline:10px}
  .panel.page-section[data-page="interventionReportPayments"].active{padding:10px}
  [data-page="interventionReportPayments"]>.panel-head{margin-bottom:4px}
  [data-page="interventionReportPayments"]>.panel-head h2{font-size:19px}
  [data-page="interventionReportPayments"] .pw-summary{margin:4px 0 6px}
  [data-page="interventionReportPayments"] .pw-summary>div{padding:6px 10px}
  [data-page="interventionReportPayments"] .pw-summary span{font-size:11px}
  [data-page="interventionReportPayments"] .pw-summary strong{font-size:16px}
  #interventionReportPaymentsFilterForm.pw-primary-filters{display:grid;grid-template-columns:minmax(140px,1.2fr) minmax(120px,1.4fr) minmax(120px,1fr) 30px 92px 30px;gap:8px;max-width:none;margin:0 0 4px;align-items:end}
  #interventionReportPaymentsFilterForm.pw-primary-filters label{font-size:12px;min-width:0}
  #interventionReportPaymentsFilterForm.pw-primary-filters input,#interventionReportPaymentsFilterForm.pw-primary-filters select{width:100%;min-width:0;min-height:30px;height:30px;padding:4px 7px}
  [data-page="interventionReportPayments"] button{min-height:30px}
  [data-page="interventionReportPayments"] .pw-icon{width:28px!important;height:28px!important;min-width:28px!important;flex:0 0 28px}
  [data-page="interventionReportPayments"] .pw-icon svg{width:16px;height:16px}
  [data-page="interventionReportPayments"]>.payment-selection-toolbar{padding:4px 8px;margin:4px 0;min-height:38px;flex-wrap:nowrap}
  [data-page="interventionReportPayments"] .payment-selection-toolbar>div:first-child{flex:1}
  [data-page="interventionReportPayments"] .payment-selection-toolbar>div:first-child>strong{display:none}
  [data-page="interventionReportPayments"] .payment-selection-toolbar>.inline-actions{display:flex;flex-shrink:0;flex-wrap:nowrap;align-items:center}
  [data-page="interventionReportPayments"] #paymentSelectionInfo{margin-top:0;font-size:12px}
  #interventionReportPaymentsList.pw-host{margin-top:4px}
  #interventionReportPaymentsList .pw-table th{padding:4px 7px;font-size:10.5px;line-height:13px;height:34px;vertical-align:middle}
  #interventionReportPaymentsList .pw-table tbody tr{height:40px}
  #interventionReportPaymentsList .pw-table td{padding:3px 7px;font-size:12px;line-height:15px;vertical-align:middle}
  #interventionReportPaymentsList .pw-line{line-height:15px}
  #interventionReportPaymentsList .pw-table small{font-size:10.5px;line-height:15px;margin-top:0}
  #interventionReportPaymentsList .pw-state{max-width:100%;padding:0 4px;font-size:10.5px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
  #interventionReportPaymentsList .pw-actions{gap:4px;flex-wrap:nowrap}
  #interventionReportPaymentsList .pw-table th:last-child{width:80px}
  #interventionReportPaymentsList .pw-number{white-space:nowrap}
  #interventionReportPaymentsList .pw-pagination{margin-top:4px;font-size:12px;gap:8px}
  #interventionReportPaymentsList .pw-pagination select{min-height:28px;height:28px;padding:3px 6px}
}
.panel.page-section[data-page="interventionReportPayments"].active.pw-expanded{position:fixed;inset:8px;z-index:80;display:flex;flex-direction:column;width:auto;height:calc(100dvh - 16px);margin:0;overflow:hidden;box-shadow:0 0 0 12px #edf2ef}
.panel.page-section[data-page="interventionReportPayments"].active.pw-expanded #interventionReportPaymentsList.pw-host{display:flex!important;flex-direction:column;flex:1;min-height:0}
.panel.page-section[data-page="interventionReportPayments"].active.pw-expanded .pw-table-wrap{flex:1;min-height:0;max-height:none!important}
@media(max-width:999px){
  #pwFilters.pw-advanced{position:fixed;top:80px!important;left:12px;right:12px;max-height:70dvh;overflow:auto;grid-template-columns:repeat(2,minmax(0,1fr));z-index:90}
  #pwExpand{display:none!important}
  .pw-expanded #pwExpand{display:inline-grid!important}
  #pwCount{display:block;margin-left:0}
}
