.pm-filters { display: block; overflow-x: auto; }
.pm-filter-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; min-width: max-content; }
.pm-filter-row > :is(.pm-type-filter, .pm-filter-trigger, .pm-reset) { flex-shrink: 0; }
.pm-query-row { margin-top: 12px; }
.pm-date-control, .pm-field-search { display: flex; align-items: center; min-width: 0; }
.pm-date-control { flex: 0 0 auto; }
.pm-date-control .pm-choice-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 98px; height: 34px; flex: 0 0 98px; padding: 0 10px; border: 1px solid #d9e2ee; border-radius: 4px 0 0 4px; background: #fff; color: #5e6d84; font-size: 12px; transition: border-color .15s, box-shadow .15s; }
.pm-date-control .pm-choice-trigger:hover { border-color: #9db8e5; }
.pm-date-control .pm-choice-trigger.open { position: relative; z-index: 1; color: #2869db; border-color: #2869db; box-shadow: 0 0 0 2px #2869db12; }
.pm-choice-popover.compact { padding-top: 5px; }
.pm-choice-popover.compact .pm-choice-options button { min-height: 34px; }
.pm-choice-popover.compact .pm-choice-options:focus { outline: none; }
.pm-choice-popover.compact .pm-choice-options:focus-visible .highlighted { outline: 1px solid #98b7ea; outline-offset: -1px; }
.pm-date-trigger { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border: 1px solid #d9e2ee; border-left: 0; border-radius: 0 4px 4px 0; background: #fff; color: #95a2b5; white-space: nowrap; font-size: 12px !important; }
.pm-date-trigger:is(.selected, .open) { color: #2869db; box-shadow: inset 0 0 0 1px #2869db; }
.pm-date-trigger svg, .pm-batch-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.pm-field-search { flex: 1 0 240px; min-width: 240px; max-width: 400px; height: 34px; border: 1px solid #d9e2ee; border-radius: 4px; }
.pm-field-search:focus-within { border-color: #2869db; }
.pm-field-search .pm-choice-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 0 0 94px; width: 94px; height: 32px; padding: 0 10px; border: 0; border-right: 1px solid #d9e2ee; border-radius: 4px 0 0 4px; background: #fff; color: #5e6d84; font-size: 12px; }
.pm-field-search .pm-choice-trigger:hover, .pm-field-search .pm-choice-trigger.open { color: #2869db; background: #f5f8ff; }
.pm-field-search:has(.pm-choice-trigger.open) { border-color: #2869db; box-shadow: 0 0 0 2px #2869db12; }
.pm-field-search .pm-search { flex: 1 1 0; min-width: 0; margin: 0; max-width: none; height: 32px; }
.pm-field-search .pm-search input { width: 100%; height: 32px; padding: 0 32px 0 10px; border: 0; background: transparent; }
.pm-field-search .pm-search svg { left: auto; right: 9px; }
.pm-batch-search { display: grid; place-items: center; flex: 0 0 27px; height: 26px; margin-right: 3px; padding: 0; color: #7b8ba1; border: 0; border-radius: 3px; background: #f0f3f7; }
.pm-batch-search.selected { color: #2869db; background: #edf3ff; }
.pm-more-trigger { color: #5b6e8a; max-width: none; }
.pm-filter-count { padding: 1px 5px; border-radius: 3px; background: #edf3ff; font-size: 10px; }
.pm-more-panel { margin: 0; padding: 20px 16px 0; }
.pm-more-panel :is(input, select) { min-width: 0; height: 32px; padding: 5px 10px; border: 1px solid #dfe5ee; border-radius: 4px; color: #5e6d84; background: #fff; font: inherit; }
.pm-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px 24px; max-width: 1100px; }
.pm-more-grid > label, .pm-more-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: #536279; font-size: 12px; }
.pm-more-grid > label > :is(input, select) { width: 100%; flex: auto; }
.pm-more-grid input::placeholder { color: #b1b9c6; }
.pm-comparison { display: flex; min-width: 0; }
.pm-comparison select { width: 65px; flex: 0 0 65px; border-radius: 4px 0 0 4px; }
.pm-comparison input { width: 0; flex: 1 1 0; border-left: 0; border-radius: 0 4px 4px 0; }
.pm-comparison select + select { border-left: 0; border-radius: 0; }
.pm-freight-field { grid-column: 1 / -1; }
.pm-more-panel .pm-choice-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid #dfe5ee; border-radius: 4px; background: #fff; color: #98a4b6; transition: border-color .15s, box-shadow .15s; text-align: left; }
.pm-choice-slot { display: contents; }
.pm-choice-trigger > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-choice-trigger svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: #93a2b7; stroke-width: 1.5; transition: transform .15s; }
.pm-more-panel .pm-choice-trigger.selected { color: #465e80; }
.pm-more-panel .pm-choice-trigger:hover { border-color: #9db8e5; }
.pm-more-panel .pm-choice-trigger.open { border-color: #2869db; box-shadow: 0 0 0 2px #2869db12; color: #2869db; }
.pm-choice-trigger.open svg { transform: rotate(180deg); stroke: #2869db; }
.pm-comparison .pm-choice-trigger { width: 68px; flex: 0 0 68px; border-radius: 4px 0 0 4px; }
.pm-comparison .pm-choice-slot + .pm-choice-slot .pm-choice-trigger { border-left: 0; border-radius: 0; }
.pm-comparison:focus-within { border-radius: 4px; }
.pm-more-panel .pm-comparison input { height: 34px; }
.pm-choice-popover { position: fixed; z-index: 1230; display: flex; flex-direction: column; overflow: hidden; padding-top: 8px; border: 1px solid #e1e7f0; border-radius: 6px; background: #fff; box-shadow: 0 6px 24px #253b5b26; color: #526780; font: 12px -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; }
.pm-choice-popover * { box-sizing: border-box; }
.pm-choice-search { position: relative; display: block; flex-shrink: 0; margin: 0 8px 7px; }
.pm-choice-search input { width: 100%; height: 30px; padding: 0 8px 0 28px; border: 1px solid #e3e9f2; border-radius: 4px; background: #f8faff; color: #465e80; font: inherit; }
.pm-choice-search input:focus { outline: none; border-color: #88ade9; background: #fff; }
.pm-choice-search input::placeholder { color: #a0adbf; }
.pm-choice-search svg { position: absolute; top: 8px; left: 9px; width: 14px; height: 14px; fill: none; stroke: #91a3bc; stroke-width: 1.4; }
.pm-choice-options { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 0 5px 5px; }
.pm-choice-options button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 32px; padding: 7px 10px; margin: 1px 0; border: 0; border-radius: 4px; color: inherit; background: #fff; text-align: left; font: inherit; cursor: pointer; }
.pm-choice-options button > span { overflow-wrap: anywhere; }
.pm-choice-options button.highlighted, .pm-choice-options button:hover { background: #f3f6fc; }
.pm-choice-options button[aria-selected=true] { color: #2869db; background: #edf3ff; }
.pm-choice-options button svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: #2869db; stroke-width: 1.8; }
.pm-choice-options p { margin: 18px 4px; text-align: center; color: #9ba8bb; }
.pm-choice-popover footer { flex-shrink: 0; padding: 7px 12px; border-top: 1px solid #edf0f5; }
.pm-choice-popover footer button { padding: 0; border: 0; background: transparent; color: #6383b0; font: inherit; cursor: pointer; }
.pm-choice-popover button:focus-visible { outline: 1px solid #2869db; }
.pm-more-panel > footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 9px; margin: 24px -16px 0; padding: 12px 16px; border-top: 1px solid #edf0f5; background: #fff; }
.pm-more-panel > footer .pm-button { min-height: 32px; padding: 5px 16px; font-size: 12px; }
.pm-query-popover { position: fixed; z-index: 1210; overflow: auto; border: 1px solid #e2e7ef; border-radius: 5px; background: #fff; box-shadow: 0 6px 24px #243b5b26; color: #46566c; font: 12px -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; }
.pm-query-popover * { box-sizing: border-box; }
.pm-query-popover button { font: inherit; cursor: pointer; color: inherit; }
.pm-query-popover button:disabled { cursor: not-allowed; opacity: .45; }
.pm-query-popover :is(button, input, select, textarea):focus-visible { outline: 1px solid #2869db; outline-offset: -1px; }
.pm-calendar-body { display: flex; }
.pm-calendar-body > aside { display: flex; flex-direction: column; flex: 0 0 108px; padding: 6px 0; border-right: 1px solid #e8edf4; }
.pm-calendar-body > aside button { padding: 9px 12px; border: 0; background: transparent; text-align: left; }
.pm-calendar-body > aside button:hover { background: #edf3ff; color: #2869db; }
.pm-calendars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; min-width: 0; }
.pm-calendar { padding: 0 10px 12px; min-width: 0; }
.pm-calendar + .pm-calendar { border-left: 1px solid #f0f2f6; }
.pm-calendar header { display: flex; align-items: center; justify-content: space-between; height: 47px; gap: 5px; }
.pm-calendar header strong { color: #34435b; font-size: 13px; white-space: nowrap; }
.pm-calendar header > div { display: flex; }
.pm-calendar header button { width: 22px; padding: 3px 0; border: 0; background: transparent; font-size: 18px; color: #8994a5; }
.pm-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; }
.pm-calendar-grid > span { text-align: center; padding: 9px 0; color: #7e8b9e; }
.pm-calendar-grid button { height: 32px; padding: 0; border: 1px solid transparent; border-radius: 3px; background: #fff; font-variant-numeric: tabular-nums; }
.pm-calendar-grid button.outside { color: #aab2bf; }
.pm-calendar-grid button:disabled { color: #9ba5b5; background: #f6f7fa; opacity: 1; }
.pm-calendar-grid button.between { color: #2869db; background: #edf3ff; border-radius: 0; }
.pm-calendar-grid button.today { border-color: #2869db; color: #2869db; }
.pm-calendar-grid button.selected { background: #2869db; color: #fff; }
.pm-calendar-grid button:not(:disabled):hover { border-color: #2869db; }
.pm-query-popover > footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #e8edf4; }
.pm-query-popover > footer > span { margin-right: auto; font-size: 11px; color: #9aa5b5; }
.pm-query-popover > footer button { min-height: 29px; padding: 4px 11px; border: 1px solid #d9e2ee; border-radius: 4px; background: #fff; white-space: nowrap; }
.pm-query-popover > footer button.primary { color: #fff; border-color: #2869db; background: #2869db; }
.pm-batch-heading { padding: 14px 14px 0; font-weight: 600; }
.pm-batch-content { padding: 14px; }
.pm-batch-content textarea { display: block; width: 100%; padding: 10px; resize: vertical; border: 1px solid #d9e2ee; border-radius: 4px; color: #536279; font: inherit; }
.pm-batch-content small { display: block; margin-top: 9px; color: #98a5b7; }
.pm-batch-content p { color: #bb5c57; }
@media (max-width: 700px) {
    .pm-filter-row { gap: 8px; }
    .pm-date-trigger { padding: 0 7px; font-size: 11px !important; }
    .pm-field-search .pm-search { flex-basis: 0; }
    .pm-more-panel { margin: 0; padding: 16px 12px 0; }
    .pm-more-grid { grid-template-columns: minmax(0, 1fr); }
    .pm-freight-field { grid-column: auto; }
    .pm-more-panel > footer { margin: 20px -12px 0; padding: 12px; }
    .pm-calendar-body { flex-direction: column; }
    .pm-calendar-body > aside { flex-direction: row; flex-wrap: wrap; flex-basis: auto; border: 0; border-bottom: 1px solid #e8edf4; padding: 4px; }
    .pm-calendar-body > aside button { width: 25%; text-align: center; padding: 8px 4px; }
    .pm-calendars { display: block; }
    .pm-calendar + .pm-calendar { display: none; }
    .pm-query-popover > footer { flex-wrap: wrap; }
    .pm-query-popover > footer > span { flex-basis: 100%; }
}
