/* Inherit native typography, controls and palette. Table contents centered only. */
.buyer-schedule-workbench{min-width:0;flex:1}.buyer-schedule-workbench .panel{overflow:hidden}.bs-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid var(--line,#ead9cb)}.bs-between{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.bs-pills{display:flex;gap:8px;flex-wrap:wrap}.bs-pills button{border:0;border-radius:20px;background:#f1e7d8;color:#8b674e;padding:8px 14px}.bs-pills button.active{background:#79533d;color:#fff}.bs-actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}.bs-toolbar input:not([type=date]){max-width:230px}.bs-table{width:100%;table-layout:fixed}.buyer-schedule-workbench table th,.buyer-schedule-workbench table td,.bs-modal table th,.bs-modal table td{text-align:center;vertical-align:middle;overflow-wrap:anywhere}.buyer-schedule-workbench table th,.bs-modal table th{font-weight:600}.buyer-schedule-workbench table td small,.bs-modal table td small{display:block;color:var(--muted,#977e6b);margin-top:5px}.bs-thumb{width:56px;height:56px;object-fit:cover;display:inline-block;border-radius:6px;vertical-align:middle}.bs-no-image{display:inline-grid;place-items:center;background:#f6f0e6;color:#977e6b;font-size:11px}.bs-row-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:center}.bs-row-actions button{padding:6px 8px;font-size:12px}.bs-link{border:0!important;box-shadow:none!important;background:transparent!important;padding:2px!important;color:#956745!important}.bs-tablefoot,.bs-empty{padding:18px 20px}.bs-tablefoot{color:var(--muted);border-top:1px solid var(--line,#ead9cb)}.bs-modal{position:fixed;inset:0;z-index:100100;background:#30251b66;display:flex;align-items:center;justify-content:center;padding:20px}.bs-modal .bs-dialog{padding:0;width:min(940px,calc(100vw - 40px));max-height:calc(100dvh - 40px);overflow:hidden;display:flex;flex-direction:column;outline:0}.bs-modal-head{padding:20px 26px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line,#ead9cb);flex-shrink:0}.bs-modal-head h2{margin:0}.bs-modal-head .close{position:static}.bs-modal-body{padding:22px 26px;overflow:auto;min-height:0}.bs-modal-footer{display:flex;gap:10px;padding:16px 26px;border-top:1px solid var(--line,#ead9cb);flex-shrink:0}.bs-modal-footer a{display:inline-block;padding:10px 16px;border-radius:8px;text-decoration:none}.bs-form{display:flex;flex-direction:column;gap:16px}.bs-form label,.bs-modal-body>label{display:flex;flex-direction:column;gap:7px;min-width:0}.bs-form input,.bs-form select,.bs-form textarea,.bs-modal-body>input{width:100%;min-width:0;box-sizing:border-box}.bs-form textarea{min-height:100px;resize:vertical}.bs-section{padding:16px;border:1px solid var(--line,#ead9cb);border-radius:10px}.bs-two,.bs-three{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.bs-three{grid-template-columns:repeat(3,minmax(0,1fr))}.bs-search{display:flex;gap:8px}.bs-search input{flex:1}.bs-search button{white-space:nowrap}.bs-product{display:flex;gap:16px;align-items:center;background:#f7f1e7;padding:14px;border-radius:8px;margin:12px 0}.bs-product>.bs-thumb{width:88px;height:88px;flex:0 0 88px}.bs-product p{margin:8px 0}.bs-rules{padding:20px}.bs-rules td input{max-width:90px}.bs-modal .form-error,.buyer-schedule-workbench .form-error{padding:10px 20px}.buyer-schedule-workbench .table-scroll{overflow:auto}.buyer-schedule-workbench .muted,.bs-modal .muted{color:var(--muted,#977e6b)}@media(max-width:800px){.bs-table{table-layout:auto;min-width:900px}.bs-two,.bs-three{grid-template-columns:1fr}.bs-modal-body{padding:16px}.bs-actions{margin-left:0}}

/* Match the existing workbench filter controls, including native browser resets. */
#root .buyer-schedule-workbench .bs-toolbar :is(input,select){appearance:none;-webkit-appearance:none;box-sizing:border-box;height:40px;min-height:40px;margin:0;padding:0 12px;border:1px solid var(--wb-border,#dbc8b6);border-radius:8px;background-color:#fffdfa;color:#45372f;font-family:inherit;font-size:14px;line-height:normal;box-shadow:none;vertical-align:middle}
#root .buyer-schedule-workbench .bs-toolbar select{padding-right:34px!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'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2370513e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
#root .buyer-schedule-workbench .bs-toolbar input::placeholder{color:#a49588;font-weight:400}
#root .buyer-schedule-workbench .bs-toolbar input[type=date]{width:160px;text-align:left;color-scheme:light}
#root .buyer-schedule-workbench .bs-toolbar input[type=date]::-webkit-date-and-time-value{text-align:left}
#root .buyer-schedule-workbench .bs-toolbar :is(input,select):focus-visible{outline:2px solid #b8a086;outline-offset:2px}
.bs-buyer-status{width:100%;box-sizing:border-box}

/* One labelled filter panel, matching the existing operations tables. */
.buyer-schedule-workbench .bs-filter-panel{margin:16px 20px;padding:16px 20px;gap:10px;align-items:flex-end;border:1px solid var(--line,#ead9cb);border-radius:14px;background:#faf7f1}
.bs-filter-field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;font-weight:400}
.bs-filter-field>span{font-size:12px;color:#8b7563;line-height:1.5}
.bs-date-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bs-filter-search{flex:1 1 240px}
#root .buyer-schedule-workbench .bs-filter-panel .bs-filter-search input{width:100%;max-width:none}
@media(max-width:800px){.buyer-schedule-workbench .bs-filter-panel{margin:12px;padding:12px}.bs-filter-search{flex-basis:100%}}

/* Keep the work area full width and align primary/secondary table lines. */
#root .buyer-schedule-workbench.content{max-width:none;width:100%;box-sizing:border-box;flex:1 1 0;min-width:0}
#root .buyer-schedule-workbench>.panel{width:100%;max-width:none;box-sizing:border-box}
.buyer-schedule-workbench .bs-cell-lines{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.buyer-schedule-workbench .bs-cell-lines>span{display:flex;align-items:center;justify-content:center;height:22px;min-height:22px;line-height:22px}
.buyer-schedule-workbench .bs-item-id{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums}
#root .buyer-schedule-workbench .bs-cell-lines .bs-link{display:inline-flex;align-items:center;justify-content:center;min-height:22px!important;height:22px!important;line-height:22px!important;padding:0!important;margin:0;font-size:12px}
.buyer-schedule-workbench .bs-cell-lines .muted{font-size:12px}
#root .buyer-schedule-workbench .bs-rules :is(input:not([type=checkbox]),select),.bs-modal :is(input:not([type=checkbox]),select,textarea){appearance:none;-webkit-appearance:none;box-sizing:border-box;min-height:40px;border:1px solid var(--wb-border,#dbc8b6);border-radius:8px;background-color:#fffdfa;color:#45372f;font-family:inherit;font-size:14px;line-height:normal;box-shadow:none;padding:9px 12px;margin:0}
#root .buyer-schedule-workbench .bs-rules :is(input,select){height:40px}
#root .buyer-schedule-workbench .bs-rules input[type=number]{width:90px;text-align:center;-moz-appearance:textfield}
#root .buyer-schedule-workbench .bs-rules input[type=number]::-webkit-inner-spin-button,#root .buyer-schedule-workbench .bs-rules input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#root .buyer-schedule-workbench .bs-rules select,.bs-modal select{padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2370513e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
#root .buyer-schedule-workbench .bs-rules select{width:120px}
#root .buyer-schedule-workbench .bs-rules :is(input,select):focus-visible,.bs-modal :is(input,select,textarea):focus-visible{outline:2px solid #b8a086;outline-offset:2px}

/* Keep filter text clear of the arrow and allow labelled fields to wrap. */
#root .buyer-schedule-workbench .bs-filter-panel>.bs-filter-field:not(.bs-filter-search){flex:0 0 auto}
html[data-wb-style="unified"] #root#root .buyer-schedule-workbench .bs-filter-panel select[aria-label]{box-sizing:border-box;min-width:104px!important;width:auto;flex-shrink:0;white-space:nowrap;padding-right:36px!important;background-position:right 10px center}
#root .buyer-schedule-workbench .bs-filter-panel .bs-filter-search{min-width:200px}
#root .buyer-schedule-workbench .bs-rules .bs-modal .bs-form :is(input,select){width:100%;max-width:none}
.bs-order-cell .bs-order-id{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;height:auto;min-height:22px}
.buyer-schedule-workbench .bs-table .bs-row-actions button{white-space:nowrap}
@media(min-width:801px){.buyer-schedule-workbench .bs-table{min-width:1250px}}
/* Scope table sizing to the source picker so global wide tables cannot clip its actions. */
html #root#root .bs-modal .bs-source-list{width:100%;min-width:0}
html #root#root .bs-modal .bs-source-table-wrap{width:100%;max-width:100%;overflow-x:auto}
html #root#root .bs-modal table.bs-source-table{width:100%!important;min-width:0!important;table-layout:fixed}
html #root#root .bs-modal .bs-source-table :is(th,td){padding:12px 8px;white-space:normal;overflow-wrap:anywhere;min-width:0}
html #root#root .bs-modal .bs-source-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
html #root#root .bs-modal .bs-source-actions button{white-space:nowrap;min-width:0;padding:7px 10px;font-size:13px}
@media(max-width:600px){html #root#root .bs-modal .bs-source-table :is(th,td){padding:8px 3px;font-size:12px}html #root#root .bs-modal .bs-source-actions button{padding:6px 4px;font-size:12px}}

/* 外部执行表：链接入口使用统一主按钮样式 */
.buyer-schedule-workbench .bs-link.primary,
.bs-modal .bs-modal-footer a.primary {
  background: var(--brown, #79533d) !important;
  color: #fff !important;
  border: 1px solid var(--brown, #79533d) !important;
  box-shadow: 0 3px 0 #d9bca3 !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  display: inline-block;
}
