/* The same order list adapts to its panel or dialog, without losing columns. */
.order-list-wrap.table-wrap,.staff-home .home-orders .order-list-wrap{container-type:inline-size;container-name:order-list;overflow:visible;min-width:0;width:100%;max-width:100%}.order-list-wrap .order-list-table,.staff-home .home-orders .order-list-table{width:100%;min-width:0;max-width:100%;table-layout:fixed;border-collapse:collapse}.order-list-table .order-col-number{width:110px}.order-list-table .order-col-rep{width:130px}.order-list-table .order-col-value{width:150px}.order-list-table .order-col-status{width:128px}.order-list-table .order-col-action{width:44px}.order-list-table th,.dialog-body .order-list-wrap .order-list-table th{font-size:13px;letter-spacing:0;text-transform:none;line-height:1.5;white-space:normal;overflow-wrap:anywhere;padding:12px 10px}.order-list-table td,.dialog-body .order-list-wrap .order-list-table td{font-size:14px;white-space:normal;overflow-wrap:anywhere;line-height:1.55;padding:14px 10px;vertical-align:middle}.order-list-table .person{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%}.order-list-table .person>div{min-width:0;flex:1}.order-list-table .person b{font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;display:block}.order-list-table .person small{white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.5;display:block;margin-top:4px}.order-list-table .person .avatar{width:32px;height:32px;min-width:32px;flex-shrink:0;font-size:12px}.order-list-table .order-id{font-size:14px}.order-list-table time{display:flex;flex-direction:column;gap:1px;margin-top:5px;font-size:13px;line-height:1.5;color:#655471}.order-list-table .order-amount{font-size:15px;font-weight:650;color:#3c2a49;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere;display:block}.order-list-table .status{white-space:nowrap;overflow-wrap:normal;font-size:13px;line-height:1.4;max-width:100%;padding:5px 7px}.order-card-label{display:none}.order-list-table .order-action{padding-left:6px;padding-right:6px;text-align:center}.order-list-table .order-open-action{display:inline-flex;align-items:center;justify-content:center;min-width:30px;width:30px;min-height:36px;padding:0;border:0;background:transparent;box-shadow:none}.order-open-action .icon{width:18px;height:18px}.order-open-action>span{display:none}.order-list-wrap[data-scrollable=true]:after{display:none!important}.order-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.order-list-table.physician-order-list .order-col-number{width:30%}.order-list-table.physician-order-list .order-col-value{width:30%}.order-list-table.physician-order-list .order-col-status{width:20%}.order-list-table.physician-order-list .order-col-action{width:20%}.physician-order-list .order-open-action{width:auto;padding:7px 10px;border:1px solid #d9cce3}.physician-order-list .order-open-action>span{display:inline;font-size:14px}
@container order-list (max-width:799px){
 .order-list-table,.order-list-table tbody{display:block;width:100%;min-width:0}.order-list-table colgroup{display:none}.order-list-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.order-list-table tbody>tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:13px 16px;align-items:start;padding:17px 18px;border-bottom:1px solid #e4dbe9;background:#fff}.order-list-table tbody>tr:last-child{border-bottom:0}.order-list-table td,.dialog-body .order-list-wrap .order-list-table td{display:block;border:0;padding:0;width:auto;min-width:0;font-size:15px}.order-list-table .order-number{grid-column:1;grid-row:1}.order-list-table .order-status{grid-column:2;grid-row:1;justify-self:end;text-align:right;max-width:100%}.order-list-table .order-buyer{grid-column:1/-1;grid-row:2;border-top:1px solid #eee7f3;padding-top:12px!important}.order-list-table .order-rep{grid-column:1;grid-row:3}.order-list-table .order-value{grid-column:2;grid-row:3;text-align:right}.order-list-table .order-action{grid-column:1/-1;grid-row:4;border-top:1px solid #eee7f3;padding-top:10px!important;text-align:left}.order-list-table .order-card-label{display:block;color:#6a5675;font-size:13px;margin-bottom:4px;font-weight:500}.order-list-table .order-open-action{width:100%;min-height:38px;gap:7px;padding:8px 11px;border:1px solid #d8cbe2;background:#fcfafe;flex-direction:row-reverse;color:#553d66}.order-list-table .order-open-action>span{display:inline;font-size:14px}.order-list-table .person b{font-size:16px;line-height:1.5}.order-list-table .person small{font-size:14px;line-height:1.6}.order-list-table .person .avatar{width:35px;height:35px;min-width:35px}.order-list-table .order-id{font-size:16px}.order-list-table time{flex-direction:row;flex-wrap:wrap;gap:3px 8px;font-size:13px}.order-list-table .order-amount{font-size:16px}.order-list-table .status{font-size:13px;min-height:29px;justify-content:center}.order-list-table .order-empty-row{display:block}.order-list-table .order-empty-row td{width:100%}.physician-order-list tbody>tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.physician-order-list .order-value{grid-column:1/-1;grid-row:2;text-align:left}.physician-order-list .order-action{grid-row:3}
}
@container order-list (max-width:359px){.order-list-table tbody>tr{padding:15px 13px;gap:11px 12px}.order-list-table .order-rep{grid-column:1/-1;grid-row:3}.order-list-table .order-value{grid-column:1/-1;grid-row:4;text-align:left}.order-list-table .order-action{grid-row:5}.physician-order-list .order-value{grid-row:2}.physician-order-list .order-action{grid-row:3}}

/* Give home orders the full working width; keep priorities compact below. */
.staff-home .staff-workspace{grid-template-columns:minmax(0,1fr)}.staff-workspace .staff-priorities{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.staff-workspace .staff-priorities .panel-head{grid-column:1/-1}.staff-workspace .staff-priorities .staff-task-list{border-top:0;border-left:1px solid #ded7e6}
@media(max-width:760px){.staff-workspace .staff-priorities{display:block}.staff-workspace .staff-priorities .staff-task-list{border-left:0;border-top:1px solid #ded7e6}}

/* Keep the salesperson and amount comfortably separated in compact tables. */
@container order-list (min-width:800px) and (max-width:1000px){
 .order-list-table .order-col-rep{width:145px}
 .order-list-table th:nth-child(3),.order-list-table td.order-rep{padding-right:18px}
}

.order-list-table .order-source-badge {
  display: inline-block;
  max-width: 100%;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #e6f1ed;
  color: #245742;
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.4;
  white-space: normal;
}

/* Date and sequence controls sit with the existing order filters. */
.toolbar.order-date-toolbar {
 display:grid;grid-template-columns:repeat(2,minmax(0,180px)) minmax(0,1fr);
 align-items:end;justify-content:start;gap:10px 16px;
}
.order-date-toolbar .filter-control {width:100%;min-width:0}
.order-date-toolbar #order-period-label {
 align-self:end;margin:0 0 8px;color:#64516f;font-size:13px;line-height:1.4;
}
.order-date-range {
 display:grid;grid-template-columns:repeat(2,minmax(0,180px)) auto;
 grid-column:1/-1;justify-content:start;align-items:end;gap:8px 16px;
}
.order-date-range .form-error {grid-column:1/-1;margin:0}
.order-date-range .form-error:empty {display:none}
@media(max-width:600px) {
 .toolbar.order-date-toolbar,.order-date-range {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}
 .order-date-toolbar .filter-control>select {padding-inline:8px 19px;background-size:15px;background-position:right 4px center}
 .order-date-toolbar .filter-control .mobile-selected-option {display:none}
 .order-date-toolbar #order-period-label,.order-date-range>.btn {grid-column:1/-1;justify-self:start;margin:0}
}
@media(max-width:375px) {
 .toolbar.order-date-toolbar,.order-date-range {grid-template-columns:minmax(0,1fr)}
}

.order-list-panel .order-date-toolbar {
 display:grid; grid-template-columns:minmax(210px,2fr) minmax(150px,1fr) auto;
 gap:10px 16px; align-items:end;
}
.order-list-panel .order-date-toolbar .filter-control { min-width:0; width:100%; }
.order-list-panel .order-date-toolbar #order-period-label { grid-column:1/-1; margin:0; }
.order-filter-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:6px 12px; }
#order-result-count { font-weight:600; color:#574164; align-self:center; }
.order-list-panel .order-filter-toggle { display:none; }
.order-advanced-filters .order-list-types { margin:0; border:0; border-radius:0; }
.order-advanced-filters .funnel { padding:10px 16px; margin:0; border-bottom:1px solid #e4dbe9; }
.order-pages { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; padding:10px 16px; gap:8px; border-top:1px solid #e4dbe9; }
#order-results { scroll-margin-top:76px; }
@media (max-width:1024px) {
 .order-list-panel .order-date-toolbar { grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
 .order-filter-actions { grid-column:1/-1; justify-content:space-between; }
 .order-list-panel .order-filter-toggle { display:inline-flex; align-items:center; gap:6px; }
 .order-filter-toggle svg { transform:rotate(90deg); }
 .order-filter-toggle[aria-expanded="true"] svg { transform:rotate(-90deg); }
 .order-advanced-filters:not(.is-open) { display:none; }
}
@media (max-width:600px) {
 .order-list-panel .order-date-toolbar { grid-template-columns:minmax(0,1fr); gap:8px; }
 .order-list-panel .order-date-toolbar select { padding-inline:12px 36px; background-position:right 10px center; }
 .order-list-panel .order-date-range { grid-template-columns:minmax(0,1fr); }
 .order-list-panel .order-date-range>.btn { width:100%; }
 .order-pages { padding:10px; }
}
