/* Delivery & Warranty v2.5.0 — shared Excel-style table tools */
.dw-data-table{display:block;min-width:0;margin:0 0 14px}.dw-data-table>.table-wrap{margin:0}.dw-table-toolbar,.dw-table-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid var(--line);padding:9px 10px}.dw-table-toolbar{border-radius:var(--r-md) var(--r-md) 0 0;border-bottom:0}.dw-data-table>.table-wrap{border-radius:0;box-shadow:none}.dw-table-footer{border-top:0;border-radius:0 0 var(--r-md) var(--r-md);font-size:10.5px;color:var(--muted)}.dw-table-toolbar-main,.dw-table-toolbar-side,.dw-pagination,.dw-page-size-wrap label{display:flex;align-items:center;gap:7px}.dw-table-toolbar-main{min-width:0;flex:1}.dw-table-toolbar-side{flex:0 0 auto}.dw-table-search-wrap{position:relative;display:flex;align-items:center;min-width:210px;max-width:390px;flex:1}.dw-table-search-wrap svg{position:absolute;left:10px;width:15px;height:15px;fill:none;stroke:#7d8ba0;stroke-width:1.8;pointer-events:none}.dw-table-search{min-width:0!important;width:100%;height:34px;padding:7px 10px 7px 31px!important;border-radius:8px!important;font-size:11.5px!important}.dw-table-clear,.dw-table-excel,.dw-pagination button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;border:1px solid var(--line-2);border-radius:8px;background:#fff;color:#40516a;padding:6px 10px;font-size:10.5px;font-weight:800;cursor:pointer;white-space:nowrap}.dw-table-clear:hover,.dw-pagination button:hover:not(:disabled){background:#f8fafc;color:#172033}.dw-table-clear:disabled,.dw-table-excel:disabled,.dw-pagination button:disabled{opacity:.45;cursor:not-allowed}.dw-table-excel{gap:6px;border-color:#b9dcc4;background:#f3fbf5;color:#21733b}.dw-table-excel:hover:not(:disabled){background:#eaf7ee;border-color:#8fc9a1}.dw-table-excel svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.dw-table-count{white-space:nowrap;color:#718096;font-size:10.5px;font-weight:700}.dw-page-size{width:auto;min-width:64px;height:31px;padding:4px 26px 4px 8px;font-size:10.5px;border-radius:7px}.dw-pagination button{width:31px;padding:4px;font-size:16px;line-height:1}.dw-page-info{min-width:150px;text-align:center;white-space:nowrap;font-weight:700;color:#5f6e82}.dw-pagination-unneeded .dw-pagination button{display:none}.dw-pagination-unneeded .dw-page-info{min-width:auto}.dw-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

th .dw-table-head-inner{display:flex;align-items:center;gap:5px;min-width:max-content}.dw-table-head-label{min-width:0}.dw-column-filter-button{position:relative;display:inline-grid;place-items:center;flex:0 0 22px;width:22px;height:22px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#9aa6b5;cursor:pointer}.dw-column-filter-button:hover{background:#eef3f8;color:#506176;border-color:#e0e7ef}.dw-column-filter-button.active{background:#eaf1ff;color:#2563eb;border-color:#bfd2fa}.dw-column-filter-button.filtered::after{content:"";position:absolute;right:2px;top:2px;width:5px;height:5px;border-radius:50%;background:#2563eb}.dw-column-filter-button[data-sort="asc"]::before,.dw-column-filter-button[data-sort="desc"]::before{position:absolute;left:1px;bottom:0;font-size:8px;line-height:1;color:#2563eb}.dw-column-filter-button[data-sort="asc"]::before{content:"↑"}.dw-column-filter-button[data-sort="desc"]::before{content:"↓"}.dw-column-filter-button svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.dw-table-no-filter .dw-table-head-inner{padding-right:2px}

.dw-filter-menu{position:fixed;z-index:12000;width:300px;max-width:calc(100vw - 20px);background:#fff;border:1px solid #cdd7e4;border-radius:11px;box-shadow:0 18px 46px rgba(15,23,42,.22);padding:10px;color:#26374d;font-size:11px}.dw-filter-menu-title{padding:2px 3px 8px;font-size:11.5px;font-weight:850;color:#1f2d40;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dw-filter-sort{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:8px}.dw-filter-sort button,.dw-filter-value-tools button,.dw-filter-actions button{border:1px solid var(--line-2);border-radius:7px;background:#fff;color:#40516a;padding:7px 8px;font-size:10.5px;font-weight:750;cursor:pointer}.dw-filter-sort button:hover,.dw-filter-sort button.active{background:#eef4ff;border-color:#c8d8f8;color:#245fc2}.dw-filter-value-tools{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf1f5;padding:8px 2px 7px}.dw-filter-value-tools label{display:flex;align-items:center;gap:6px;font-weight:750}.dw-filter-value-tools input,.dw-filter-value input{width:15px;height:15px;min-height:0;padding:0}.dw-filter-value-tools button{border:0;padding:3px 5px;color:#2563eb}.dw-filter-search{height:32px;padding:6px 8px!important;border-radius:7px!important;font-size:10.5px!important;margin-bottom:6px}.dw-filter-values{max-height:238px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #e5eaf0;border-radius:8px;background:#fbfcfe;padding:4px}.dw-filter-value{display:flex;align-items:flex-start;gap:7px;padding:5px 6px;border-radius:6px;cursor:pointer;line-height:1.35}.dw-filter-value:hover{background:#edf4ff}.dw-filter-value span{min-width:0;word-break:break-word}.dw-filter-empty{padding:18px;text-align:center;color:#94a3b8}.dw-filter-actions{display:flex;justify-content:flex-end;gap:7px;padding-top:9px}.dw-filter-actions .dw-filter-apply{background:#2563eb;border-color:#2563eb;color:#fff}.dw-filter-actions .dw-filter-apply:hover{background:#1d4ed8}

.dw-data-table tbody tr[hidden]{display:none!important}

@media(max-width:780px){.dw-table-toolbar,.dw-table-footer{align-items:stretch;flex-direction:column}.dw-table-toolbar-main,.dw-table-toolbar-side{width:100%;flex-wrap:wrap}.dw-table-search-wrap{max-width:none;min-width:180px}.dw-table-toolbar-side{justify-content:space-between}.dw-table-footer{gap:8px}.dw-page-size-wrap,.dw-pagination{width:100%}.dw-page-size-wrap label{justify-content:space-between;width:100%}.dw-pagination{justify-content:center}.dw-page-info{min-width:120px}.dw-filter-sort{grid-template-columns:1fr}.dw-filter-menu{width:min(300px,calc(100vw - 20px))}}

/* v2.8.1 — mobile table controls pair with operational card views */
@media(max-width:820px){
  .dw-data-table:has(.mobile-card-wrap)>.dw-table-toolbar{margin-bottom:8px;border:1px solid var(--line);border-radius:12px}
  .dw-data-table:has(.mobile-card-wrap)>.dw-table-footer{margin-top:8px;border:1px solid var(--line);border-radius:12px}
  .dw-data-table:has(.mobile-card-wrap)>.mobile-card-wrap{margin:0}
  .dw-data-table:has(.mobile-card-wrap) .dw-table-toolbar-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
  .dw-data-table:has(.mobile-card-wrap) .dw-table-search-wrap{min-width:0;width:100%;max-width:none}
  .dw-data-table:has(.mobile-card-wrap) .dw-table-clear{padding-inline:9px}
  .dw-data-table:has(.mobile-card-wrap) .dw-table-toolbar-side{justify-content:space-between}
  .dw-data-table:has(.mobile-card-wrap) .dw-table-excel{min-height:34px}
  .dw-data-table:has(.mobile-card-wrap) .dw-table-footer{padding:8px 9px}
}


/* v2.8.2 — thumb-friendly mobile table controls */
@media(max-width:820px){
  .dw-data-table:has(.mobile-card-wrap)>.dw-table-toolbar{padding:8px;box-shadow:0 2px 10px rgba(15,23,42,.035)}
  .dw-data-table:has(.mobile-card-wrap) .dw-table-search{height:40px!important;font-size:16px!important;border-radius:10px!important}
  .dw-data-table:has(.mobile-card-wrap) .dw-table-clear,.dw-data-table:has(.mobile-card-wrap) .dw-table-excel{min-height:40px;border-radius:10px}
  .dw-data-table:has(.mobile-card-wrap) .dw-table-count{font-size:9.5px}
  .dw-filter-menu{top:auto!important;right:0!important;bottom:0!important;left:0!important;width:100%!important;max-width:none!important;max-height:78dvh;padding:14px 14px calc(14px + env(safe-area-inset-bottom));border:0;border-radius:20px 20px 0 0;box-shadow:0 -18px 46px rgba(15,23,42,.20),0 0 0 100vmax rgba(15,23,42,.18);overflow:hidden}
  .dw-filter-menu:before{content:"";display:block;width:42px;height:4px;margin:-6px auto 9px;border-radius:999px;background:#d6dee9}
  .dw-filter-menu-title{font-size:13px;padding-bottom:10px}
  .dw-filter-sort{grid-template-columns:1fr 1fr;gap:8px}
  .dw-filter-sort button,.dw-filter-actions button{min-height:42px;font-size:11.5px}
  .dw-filter-search{height:42px!important;font-size:16px!important}
  .dw-filter-values{max-height:38dvh;padding:6px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
  .dw-filter-value{min-height:38px;align-items:center;padding:7px 8px;font-size:11.5px}
  .dw-filter-value-tools{padding:10px 2px 8px}
  .dw-filter-actions{position:sticky;bottom:0;margin:8px -14px -14px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #e4e9ef;background:#fff}
  .dw-filter-actions button{flex:1}
  .dw-table-footer .dw-pagination button{min-width:40px;min-height:38px}
}
