.selection-search-popup{box-sizing:border-box!important;position:fixed!important;inset:auto;margin:0!important;padding:8px!important;border:1px solid #d8e4eb!important;border-radius:12px!important;background:#fff!important;color:#263e50!important;box-shadow:0 10px 32px #16384a26!important;z-index:2147483000;font:14px/1.5 system-ui,-apple-system,"Microsoft YaHei",sans-serif!important;overflow:hidden!important}
.selection-search-popup[hidden],.selection-search-empty[hidden]{display:none!important}
.selection-search-head{display:flex!important;gap:5px;align-items:center;padding-bottom:7px}
.selection-search-head input,.selection-search-multi{box-sizing:border-box!important;display:block!important;min-width:0!important;width:100%!important;height:36px!important;margin:0!important;padding:7px 10px!important;border:1px solid #d6e3e9!important;border-radius:8px!important;background:#f8fbfc!important;color:#263e50!important;font:inherit!important;outline:none}
.selection-search-head input:focus,.selection-search-multi:focus{border-color:#278983!important;box-shadow:0 0 0 2px #27898320!important}
.selection-search-head input::-webkit-search-cancel-button{display:none}
.selection-search-head>button{flex:0 0 28px!important;width:28px!important;min-width:0!important;height:28px!important;margin:0!important;padding:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#617b8c!important;font:18px/1 system-ui!important;cursor:pointer}
.selection-search-head>button:disabled{opacity:.25;cursor:default}
.selection-search-list{display:block!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin;padding:0!important}
.selection-search-list>.selection-search-option{box-sizing:border-box!important;display:block!important;width:100%!important;min-height:36px!important;height:auto!important;margin:0!important;padding:8px 10px!important;border:0!important;border-radius:6px!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere;background:transparent!important;color:#263e50!important;font:inherit!important;line-height:1.5!important;cursor:pointer}
.selection-search-list>.selection-search-option:hover,.selection-search-list>.selection-search-option.is-active{background:#edf6f5!important}
.selection-search-list>.selection-search-option[aria-selected=true]{color:#167c77!important;font-weight:600!important}
.selection-search-list>.selection-search-option:disabled{opacity:.45!important;cursor:not-allowed;background:transparent!important}
.selection-search-popup .selection-search-empty,.selection-search-empty{margin:8px 0!important;padding:12px 8px!important;color:#718392!important;text-align:center!important;font-size:13px!important}
.selection-search-multi{margin-bottom:9px!important}
.selection-search-multi~div label[hidden]{display:none!important}
.selection-search-popup .selection-search-count{margin:5px 3px 0!important;color:#718392!important;font:12px/1.4 system-ui!important}
.selection-search-popup .selection-search-count[hidden]{display:none!important}
[data-selection-search-list] label[hidden]{display:none!important}

/* One visual language for native selects, custom entity pickers and calendars. */
select[data-searchable-select],details.unified-choice-picker>summary{
  box-sizing:border-box!important;min-height:36px;border:1px solid #d6e3e9!important;border-radius:8px!important;
  background-color:#f8fbfc!important;color:#263e50!important;font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif!important;
  font-size:14px!important;line-height:1.5!important;box-shadow:none!important;
}
select[data-searchable-select]{appearance:none!important;padding:7px 32px 7px 10px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23263e50' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:right 9px center!important;background-size:16px!important;cursor:pointer;
}
select[data-searchable-select]:focus,details.unified-choice-picker[open]>summary,details.unified-choice-picker>summary:focus-visible{
  outline:none!important;border-color:#278983!important;box-shadow:0 0 0 2px #27898320!important;
}
select[data-searchable-select]:disabled{opacity:.5!important;cursor:not-allowed!important}
details.unified-choice-picker>summary{list-style:none!important;display:flex;align-items:center;gap:8px;padding:7px 10px!important;cursor:pointer;}
details.unified-choice-picker>summary::-webkit-details-marker{display:none}
.unified-choice-panel,.natural-period-popover{
  box-sizing:border-box!important;padding:8px!important;border:1px solid #d8e4eb!important;border-radius:12px!important;
  background:#fff!important;color:#263e50!important;box-shadow:0 10px 32px #16384a26!important;
  font:14px/1.5 system-ui,-apple-system,"Microsoft YaHei",sans-serif!important;max-width:calc(100vw - 16px)!important;
}
.unified-choice-panel .ot-shop-search{display:block!important;font-size:0!important;line-height:0!important;}
.unified-choice-panel .selection-search-head input{font:14px/1.5 system-ui,-apple-system,"Microsoft YaHei",sans-serif!important;outline:none!important;}
.unified-choice-panel .selection-search-head{margin:0!important;}
.unified-choice-panel [data-unified-options],.natural-period-list{overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin;padding:0!important;max-height:260px;}
.unified-choice-panel label:has(>input[type=checkbox]),.unified-choice-panel label:has(>input[type=radio]),
.unified-choice-panel button.spu-filter-option,.natural-period-popover button.natural-period-option{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;
  width:100%!important;min-height:36px!important;height:auto!important;margin:0!important;padding:8px 10px!important;
  border:0!important;border-radius:6px!important;background:transparent!important;color:#263e50!important;
  font:inherit!important;line-height:1.5!important;text-align:left!important;white-space:normal!important;cursor:pointer;
}
.unified-choice-panel label:hover,.unified-choice-panel button.spu-filter-option:hover,.natural-period-popover button.natural-period-option:hover,
.unified-choice-panel label:has(input:checked),.unified-choice-panel label:has(input:indeterminate),
.unified-choice-panel button.spu-filter-option[aria-pressed=true],.natural-period-popover button.natural-period-option[aria-selected=true]{background:#edf6f5!important;}
.unified-choice-panel label:has(input:checked),.unified-choice-panel button.spu-filter-option[aria-pressed=true],
.natural-period-popover button.natural-period-option[aria-selected=true]{color:#167c77!important;font-weight:600!important;}
.unified-choice-panel label:has(input:disabled){opacity:.45!important;cursor:not-allowed!important;}
.unified-choice-panel label>input[type=checkbox],.unified-choice-panel label>input[type=radio]{
  appearance:auto!important;accent-color:#278983!important;width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;
  margin:0!important;padding:0!important;flex:0 0 15px!important;box-shadow:none!important;
}
.unified-choice-panel small,.natural-period-option small{color:#718392!important;font-size:12px!important;font-weight:400!important;}
.unified-choice-panel button.spu-filter-option{display:grid!important;gap:2px!important;}
.unified-choice-panel .picker-actions,.unified-choice-panel .shop-scope-actions{display:flex;align-items:center;gap:8px;padding:5px 2px!important;}
.unified-choice-panel .picker-actions button,.unified-choice-panel .shop-scope-actions button{color:#167c77!important;background:#f8fbfc!important;border:1px solid #d6e3e9!important;border-radius:6px!important;}
.unified-choice-panel [hidden][hidden],.natural-period-popover [hidden][hidden]{display:none!important;}
.natural-period-heading{display:none!important;}
.natural-period-list{display:block!important;}
.natural-period-check{margin-left:auto;color:#167c77!important;}
button.natural-period-trigger[aria-expanded=true],button.natural-period-trigger[data-active=true]{background:#edf6f5!important;border-color:#278983!important;color:#167c77!important;}
.natural-period-popover button.natural-period-option:focus-visible{outline:2px solid #278983!important;outline-offset:-2px;}

/* Date fields must not inherit positional columns for a hidden company field. */
label[data-inline-custom-date] {white-space:nowrap;}
.product-inline-dates {align-items:flex-end;gap:12px;margin-top:4px;}
.product-inline-dates>label {
  display:flex;flex-direction:column;gap:6px;flex:0 1 165px;min-width:140px;
  font-size:12px;white-space:nowrap;
}
.product-inline-dates input[type=date] {
  box-sizing:border-box;width:100%;min-width:0;min-height:36px;padding:7px 10px;
  border:1px solid #dbe3ec;border-radius:8px;background:#fff;color:inherit;font:inherit;
}
.product-inline-dates>button {align-self:flex-end;}
.filters .date-row:has(>label>input[type=date]) {
  display:flex!important;flex-wrap:wrap!important;align-items:flex-end;gap:14px;
}
.filters .date-row>label:has(>input[type=date]) {
  flex:0 1 165px;width:165px!important;min-width:min(150px,100%)!important;
  max-width:100%;white-space:nowrap;
}
.filters .date-row>.date-dash {
  flex:0 0 18px;min-width:18px;align-self:flex-end;
}
.filters .date-row>.filter-picker {
  flex:1 1 200px;min-width:min(200px,100%)!important;max-width:100%;
}
.filters .date-row input[type=date] {
  box-sizing:border-box;width:100%;min-width:0;
}
@media(max-width:650px) {
  .filters .date-row:has(>label>input[type=date]) {gap:12px;}
  .filters .date-row>label:has(>input[type=date]) {flex:1 1 140px;min-width:0!important;}
  .filters .date-row>.date-dash {display:none;}
  .filters .date-row>.filter-picker {flex-basis:100%;}
  .product-inline-dates>label {flex:1 1 140px;min-width:0;}
}

/* Mobile tables scroll as a whole; vertical headers retain their existing behavior. */
@media(max-width:800px){
  table th,table td{left:auto!important;right:auto!important;inset-inline-start:auto!important;inset-inline-end:auto!important}
  table .sticky-col,.ot-table-scroll th:first-child,.ot-table-scroll td:first-child{box-shadow:none!important}
}
