/* Order list: keep filters and all seventeen columns readable at desktop density. */
.reference-shell .reference-orders{padding-top:4px}
.reference-shell .reference-orders>.order-filter-one,
.reference-shell .reference-orders>.order-filter-two{min-height:42px!important;padding:4px 8px!important;gap:6px 8px!important}
.reference-shell .reference-orders>.order-filter-two{margin-top:5px}
.reference-shell .order-filter-one select{box-sizing:border-box;width:144px!important;min-width:144px!important;height:30px!important;padding-left:10px!important;padding-right:28px!important;background-position:right 10px center}
.reference-shell .order-filter-one:has(>.account-scope-picker)>.account-scope-picker,
.reference-shell .order-filter-one:has(>.account-scope-picker)>#orderFilter-shop{width:216px!important;min-width:216px!important;max-width:216px!important;flex:0 0 216px!important}
.reference-shell .order-filter-one>.account-scope-picker,
.reference-shell .order-filter-one>.account-scope-picker>.account-scope-trigger{height:30px!important}
.reference-shell .order-filter-one .order-more-button{height:30px!important;white-space:nowrap;padding:0 6px!important}
.reference-shell .order-filter-two>.order-date-range,
.reference-shell .order-filter-two .order-search-group,
.reference-shell .order-filter-two>button{height:30px!important}
.reference-shell .order-filter-two .order-date-trigger{height:30px!important}
.reference-shell .order-filter-two .order-search-group select,
.reference-shell .order-filter-two .order-search-group input{height:28px!important}
.reference-shell .order-filter-two .order-search-group input{width:300px!important}
.reference-shell .order-more-panel{margin:4px 0;padding:5px 10px;min-height:42px;box-shadow:none;border-radius:4px}
.reference-shell .order-more-panel input{height:30px!important}
/* Personal accounts have 16 columns; management accounts insert an owner column. */
.reference-shell .reference-order-scroll{width:100%;max-width:100%;overflow-x:auto;border:1px solid #dce5f0;border-radius:6px;background:#fff}
.reference-shell .reference-order-table{width:100%!important;min-width:1740px!important;table-layout:fixed!important;border-collapse:collapse}
.reference-shell .reference-order-table th,.reference-shell .reference-order-table td{box-sizing:border-box;padding:10px!important;line-height:1.5!important;vertical-align:middle!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
.reference-shell .reference-order-table th{height:44px!important;background:#f5f8fc;color:#566780;font-weight:600}
.reference-shell .reference-order-table td,.reference-shell .reference-order-table tbody tr{height:78px!important}
.reference-shell .reference-order-table tbody tr:hover{background:#f5f9ff}
.reference-shell .reference-order-table th:first-child,.reference-shell .reference-order-table td:first-child{text-align:center}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)){min-width:1542px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(1){width:44px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(2){width:100px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(3){width:62px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(4){width:130px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(5){width:180px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(6){width:60px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(7){width:82px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(8){width:76px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(9){width:124px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(10){width:80px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(11){width:124px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(12){width:52px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(13){width:116px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(14){width:104px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(15){width:76px!important}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) th:nth-child(16){width:132px!important}
.reference-shell .reference-order-table:has(th.account-owner-column){min-width:1672px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(1){width:44px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(2){width:100px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(3){width:62px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(4){width:130px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(5){width:130px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(6){width:180px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(7){width:60px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(8){width:82px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(9){width:76px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(10){width:124px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(11){width:80px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(12){width:124px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(13){width:52px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(14){width:116px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(15){width:104px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(16){width:76px!important}
.reference-shell .reference-order-table:has(th.account-owner-column) th:nth-child(17){width:132px!important}
.reference-shell .reference-order-table .order-thumb,
.reference-shell .reference-order-table .order-thumb img{width:42px;height:42px;line-height:42px}
.reference-shell .reference-order-table small{margin-top:2px}
.reference-shell .reference-order-table .order-number-link{max-width:none!important;white-space:nowrap!important;overflow-wrap:normal;word-break:normal;line-height:22px}
.reference-shell .reference-order-table .order-updated{white-space:normal}
@media(max-width:1600px){.reference-shell .order-filter-two .order-search-group input{width:240px!important}}

/* Filters wrap as complete controls; totals remain visible at narrower widths. */
.reference-shell .reference-orders>.order-filter-one,.reference-shell .reference-orders>.order-filter-two{flex-wrap:wrap;row-gap:8px!important;padding:8px!important}
.reference-shell .order-filter-two .order-search-group{min-width:280px;flex:0 1 430px}
.reference-shell .order-filter-two .order-search-group input{width:auto!important;min-width:0!important;flex:1}
.reference-shell .reference-orders .order-summary{height:auto!important;min-height:40px!important;white-space:normal!important;overflow:visible!important;padding:8px 38px 8px 0!important}
.reference-shell .reference-orders .order-summary-main{height:auto!important;flex-wrap:wrap!important;gap:6px 18px!important;overflow:visible!important;white-space:normal!important;line-height:22px}
.reference-shell .reference-orders>.reference-pager{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px!important;margin-top:0;background:#fff;border-radius:0 0 6px 6px}
.reference-shell .reference-order-table .order-updated{max-width:none;white-space:normal!important;overflow:visible;line-height:21px}
.reference-shell .reference-order-table .order-no-cell{align-items:center;gap:4px}
.reference-shell .reference-order-table .order-warning{flex:none}
.reference-shell .reference-order-table small{font-size:12px;line-height:18px}

/* Keep the order identifier readable without decorative placeholder rows. */
.reference-shell .reference-order-table td:has(>.order-no-cell){white-space:normal!important;overflow:visible}
.reference-shell .reference-order-table .order-no-cell{display:flex;align-items:center;gap:6px;min-width:0}
.reference-shell .reference-order-table .order-number-link{display:block;min-width:0;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;line-height:22px!important;font-variant-numeric:tabular-nums}
.reference-shell .reference-order-table:not(:has(th.account-owner-column)) td:nth-child(4),
.reference-shell .reference-order-table:has(th.account-owner-column) td:nth-child(5){white-space:normal!important;overflow:visible;font-variant-numeric:tabular-nums}

.reference-shell .reference-order-table .order-no-cell{display:block;min-width:0;line-height:22px}
.reference-shell .reference-order-table .order-number-link{padding:0!important;margin:0!important;text-align:left;vertical-align:middle}

.reference-shell .order-filter-one .order-phone-filter{display:flex;align-items:center;gap:8px;white-space:nowrap;flex:0 0 auto}.reference-shell .order-filter-one .order-phone-filter input{width:170px!important;min-width:0!important;height:30px!important;box-sizing:border-box}

.reference-shell .reference-orders .order-summary{padding-right:52px!important;min-height:44px!important}.reference-shell .reference-orders .order-actions-trigger{position:absolute;right:8px!important;top:50%!important;transform:translateY(-50%);display:grid;place-items:center;width:32px;height:30px;padding:0!important;border:1px solid #dbe3ef;border-radius:6px;background:#fff;color:#526071;line-height:1;letter-spacing:1px}.reference-shell .reference-orders .order-actions-trigger:hover{color:#165dff;background:#eef4ff;border-color:#abc8ff}.reference-shell .reference-orders .order-action-menu{right:8px!important;top:calc(100% - 2px)!important;z-index:50;border:1px solid #e0e7f0;border-radius:8px;box-shadow:0 8px 24px #1e293b1f;padding:5px}.reference-shell .reference-orders .order-action-menu button{border-radius:4px}.reference-shell .reference-orders .order-action-menu button:hover{background:#eef4ff;color:#165dff}

/* Keep search text centered inside the shared 30px border. */
.reference-shell .order-filter-two .order-search-group{box-sizing:border-box;align-items:center;height:30px!important;min-height:30px!important;padding:0!important}
.reference-shell .order-filter-two .order-search-group select,.reference-shell .order-filter-two .order-search-group input{box-sizing:border-box;height:28px!important;min-height:0!important;margin:0!important;padding-top:0!important;padding-bottom:0!important;line-height:28px!important;font-family:inherit;font-size:13px;vertical-align:middle;border-radius:0!important}
.reference-shell .order-filter-two .order-search-group input::placeholder{line-height:28px;opacity:1}

/* Shipping status stays readable in compact order columns. */
html body .reference-shell .reference-order-table td:has(>.red-tag) {padding-left:4px!important;padding-right:4px!important;white-space:nowrap!important;}
html body .reference-shell .reference-order-table .red-tag {display:inline-flex;align-items:center;justify-content:center;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;padding:3px 5px;line-height:20px;}

.reference-shell .reference-order-table .order-business-badge{display:inline-grid;place-items:center;box-sizing:border-box;width:17px;height:17px;margin-left:4px;border:1px solid #82a8ef;border-radius:50%;background:#edf4ff;color:#2859a6;font-size:11px;font-weight:600;line-height:1;vertical-align:middle}

html body #app .reference-orders {
  --order-filter-control-height: 32px;
  --order-filter-control-radius: 10px;
}
html body #app .reference-orders .order-filter-one > select,
html body #app .reference-orders .order-filter-one .order-phone-filter > input,
html body #app .reference-orders .order-filter-two > .order-date-range,
html body #app .reference-orders .order-filter-two .order-date-trigger,
html body #app .reference-orders .order-filter-two > .order-search-group {
  box-sizing: border-box;
  height: var(--order-filter-control-height) !important;
  min-height: var(--order-filter-control-height) !important;
  border-radius: var(--order-filter-control-radius) !important;
}
html body #app .reference-orders .order-filter-two .order-search-group > :is(select, input) {
  height: calc(var(--order-filter-control-height) - 2px) !important;
  min-height: 0 !important;
  line-height: calc(var(--order-filter-control-height) - 2px) !important;
}
html body #app .reference-orders .order-filter-two .order-search-group > input::placeholder {
  line-height: inherit;
}
