@media (min-width:769px) {
  body.pc-ui-preview .purchase-a-shell {gap:12px}
  body.pc-ui-preview .purchase-a-shell>.page-hero {display:none}
  body.pc-ui-preview .purchase-a-shell>.purchase-overview-panel {padding:10px 16px;margin:0}
  body.pc-ui-preview .purchase-overview-panel>.section-head {display:none}
  body.pc-ui-preview .purchase-overview-cards>.stat {padding:6px 12px;min-height:0}
  body.pc-ui-preview .purchase-overview-cards .num {font-size:20px;margin-top:2px}
  body.pc-ui-preview .purchase-overview-cards .card-value {font-size:22px}
  body.pc-ui-preview .purchase-a-shell #purchaseTableAnchor {display:block;padding:12px 16px;margin:0}
  body.pc-ui-preview .purchase-a-shell #purchaseTableAnchor>.section-head {gap:8px;margin-bottom:10px;padding-bottom:8px;flex-wrap:wrap}
  body.pc-ui-preview #purchaseTableAnchor>.section-head>.section-head-note {display:none}
  body.pc-ui-preview .purchase-a-shell .purchase-head-actions {display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-left:auto;min-width:0}
  body.pc-ui-preview .purchase-a-shell .purchase-head-actions>#purchaseRelatedActions {margin:0;gap:8px}
  body.pc-ui-preview .purchase-a-shell .purchase-head-actions>button,
  body.pc-ui-preview .purchase-a-shell .purchase-head-actions>#purchaseRelatedActions>button {width:auto;min-height:32px;margin:0;padding:5px 11px;border-radius:6px;font-size:13px;line-height:1.4;white-space:nowrap}
  body.pc-ui-preview .purchase-a-shell .purchase-head-actions>#purchaseCreateToggle {border:1px solid #175fc6;background:#175fc6;color:#fff;font-weight:600}
  body.pc-ui-preview .purchase-a-shell .purchase-head-actions>#purchaseCreateToggle:hover {background:#124fa9;border-color:#124fa9}
  body.pc-ui-preview .purchase-a-shell .purchase-head-actions>#purchaseExport,
  body.pc-ui-preview .purchase-a-shell .purchase-head-actions>#purchaseRelatedActions>button {border:1px solid #d8e3f1;background:#fff;color:#315d91;font-weight:500}
  body.pc-ui-preview .purchase-a-shell .purchase-head-actions>#purchaseExport:hover,
  body.pc-ui-preview .purchase-a-shell .purchase-head-actions>#purchaseRelatedActions>button:hover {background:#f3f7fc}
  body.pc-ui-preview .purchase-a-shell .purchase-filter-strip {display:flex;flex-direction:column;align-items:stretch;padding:8px;gap:9px;margin-bottom:8px}
  body.pc-ui-preview .purchase-a-shell .purchase-filter-strip>* {width:100%;min-width:0;margin:0;box-sizing:border-box}
  body.pc-ui-preview .purchase-a-shell .purchase-filter-main {display:grid;grid-template-columns:minmax(180px,2fr) repeat(4,minmax(110px,1fr)) auto auto;align-items:center;gap:8px}
  body.pc-ui-preview .purchase-a-shell .purchase-filter-main>input,
  body.pc-ui-preview .purchase-a-shell .purchase-filter-main>select {width:100%;min-width:0;margin:0;height:34px;box-sizing:border-box;font-size:13px}
  body.pc-ui-preview .purchase-a-shell .purchase-filter-main>button {width:auto;min-width:72px;min-height:32px;margin:0;padding:5px 9px;font-size:12px;line-height:1.5;white-space:nowrap}
  body.pc-ui-preview .purchase-a-shell #purchaseAdvancedFilters.purchase-filter-more {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;gap:9px 12px;padding-top:8px;border-top:1px solid #dce5ef}
  body.pc-ui-preview .purchase-a-shell #purchaseAdvancedFilters.purchase-filter-more.hidden,
  body.pc-ui-preview .purchase-a-shell #purchaseAdvancedFilters.purchase-filter-more[hidden] {display:none!important}
  body.pc-ui-preview .purchase-a-shell .purchase-filter-field {display:flex;flex-direction:column;gap:4px;min-width:0;margin:0;color:#63758a;font-size:12px;font-weight:400;line-height:1.4}
  body.pc-ui-preview .purchase-a-shell .purchase-filter-field>input,
  body.pc-ui-preview .purchase-a-shell .purchase-filter-field>select {width:100%;min-width:0;height:34px;margin:0;box-sizing:border-box;font-size:13px}
  body.pc-ui-preview .purchase-a-shell #purchaseAdvancedToggle {display:block!important}
  body.pc-ui-preview .purchase-a-shell .purchase-a-advanced:not(.is-open) {display:none!important}
  body.pc-ui-preview .purchase-a-shell .purchase-active-filters {display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px;margin:0 0 8px;padding:0}
  body.pc-ui-preview .purchase-a-shell .purchase-active-filters:empty,
  body.pc-ui-preview .purchase-a-shell .purchase-active-filters.hidden {display:none}
  body.pc-ui-preview .purchase-a-shell .purchase-filter-chip {display:inline-flex;align-items:center;flex:0 0 auto;gap:5px;width:auto;max-width:100%;min-height:25px;margin:0;padding:2px 7px;border:1px solid #dce5ef;border-radius:4px;background:#f6f9fd;color:#456482;font-size:12px;font-weight:400;line-height:1.5;text-align:left;white-space:normal;overflow-wrap:anywhere}
  body.pc-ui-preview .purchase-a-shell .purchase-filter-chip:hover {border-color:#aac4e3;background:#edf4fc;color:#24578f}
  body.pc-ui-preview .purchase-a-shell .purchase-filter-chip:focus-visible {outline:2px solid #175fc6;outline-offset:2px}
  body.pc-ui-preview .purchase-a-shell .purchase-filter-summary {margin:6px 0 8px;gap:6px}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table {min-width:0!important;font-size:12px}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table td {padding:7px 6px!important}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table .cell-sub {font-size:11px;line-height:1.4}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(1) {width:19%!important}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(2) {width:13%!important}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(3) {width:13%!important}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(4) {width:12%!important}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(5) {width:11%!important}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(6) {width:14%!important}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(7) {width:9%!important;white-space:nowrap}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(8) {width:9%!important}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table .purchase-a-item>.cell-main,
  body.pc-ui-preview .purchase-a-shell .purchase-list-table .purchase-a-supplier>.cell-main {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.45;font-size:12px;font-weight:600;overflow-wrap:anywhere}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table .purchase-item-meta {display:flex;flex-wrap:wrap;gap:1px 7px;margin-top:2px;color:#63758a;font-size:11px;line-height:1.4}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table .purchase-item-spec {display:block;margin-top:2px;color:#63758a;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table .purchase-item-scope {display:none}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table .purchase-a-amount {white-space:nowrap;word-break:normal;overflow-wrap:normal;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table .purchase-a-amount>strong {display:block;overflow:visible;text-overflow:clip;-webkit-line-clamp:unset;white-space:nowrap;word-break:normal;overflow-wrap:normal}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table .purchase-list-money {display:flex;align-items:baseline;flex-wrap:wrap;gap:1px 5px;font-size:12px;line-height:1.45}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table .purchase-list-money>small {color:#63758a;font-size:11px;font-weight:400;white-space:nowrap}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table .purchase-list-money>strong {display:block;overflow:visible;text-overflow:clip;-webkit-line-clamp:unset;font-size:12px;font-weight:600;white-space:nowrap;word-break:normal;overflow-wrap:normal;font-variant-numeric:tabular-nums}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table .purchase-invoice-status {display:block;margin-top:3px;color:#526a83;font-size:11px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table .purchase-a-status {font-size:12px;line-height:1.45}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table .purchase-a-status>.cell-sub {white-space:nowrap;word-break:normal;overflow-wrap:normal;font-size:11px}
  body.pc-ui-preview .purchase-a-shell .purchase-table-action-group {gap:4px;display:flex;flex-direction:column}
  body.pc-ui-preview .purchase-a-shell .purchase-table-action-group button {width:100%;padding:5px 3px!important;min-height:28px;font-size:12px;line-height:1.3}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:last-child,
  body.pc-ui-preview .purchase-a-shell .purchase-list-table tbody tr[data-row-id]>td:last-child {box-shadow:none}
  body.pc-ui-preview .purchase-a-shell .purchase-table-scroll {margin:0;overflow-x:hidden}
  body.pc-ui-preview .purchase-a-shell .customer-fixed-pagination {margin-top:8px}
}
@media (min-width:769px) and (max-width:1199px) {
  body.pc-ui-preview .purchase-a-shell .purchase-filter-main {grid-template-columns:repeat(4,minmax(0,1fr)) auto auto;gap:7px}
  body.pc-ui-preview .purchase-a-shell .purchase-filter-main>#purchaseTableKeyword {grid-column:1/-1}
  body.pc-ui-preview .purchase-a-shell #purchaseAdvancedFilters.purchase-filter-more {grid-template-columns:repeat(3,minmax(0,1fr))}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(2),
  body.pc-ui-preview .purchase-a-shell .purchase-list-table tbody>tr[data-row-id]>.purchase-a-scope {display:none}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table .purchase-item-scope {display:block;margin-top:2px;color:#63758a;font-size:11px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(1) {width:22%!important}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(3) {width:14%!important}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(4) {width:14%!important}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(5) {width:13%!important}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(6) {width:16%!important}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(7) {width:10%!important}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table th:nth-child(8) {width:11%!important}
  body.pc-ui-preview .purchase-a-shell .purchase-list-table td {padding:6px 5px!important}
  body.pc-ui-preview .purchase-a-shell .purchase-overview-cards {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
  body.pc-ui-preview .purchase-a-shell .purchase-overview-cards>.stat {padding:6px 8px}
  body.pc-ui-preview .purchase-a-shell .purchase-overview-cards .card-label {font-size:12px}
  body.pc-ui-preview .purchase-a-shell .purchase-overview-cards .num,
  body.pc-ui-preview .purchase-a-shell .purchase-overview-cards .card-value {font-size:18px}
}
.purchase-list-toolbar {display:flex;align-items:flex-start;justify-content:space-between;gap:8px 14px;margin:6px 0 8px;min-width:0}
.purchase-list-toolbar .purchase-filter-summary {flex:1;min-width:0;margin:0!important}
.purchase-sort-field {display:flex;align-items:center;gap:6px;flex:0 0 auto;font-size:12px;color:#526a83;margin:0;white-space:nowrap}
.purchase-sort-field select {width:178px;min-height:30px;margin:0;padding:4px 7px;font-size:12px;box-sizing:border-box}
.purchase-list-table .purchase-money-note {display:block!important;margin-top:3px;font-size:11px;font-weight:400;line-height:1.4;color:#526a83;white-space:normal;word-break:normal;overflow-wrap:normal;overflow:visible!important;text-overflow:clip;-webkit-line-clamp:unset!important}
body.pc-ui-preview .purchase-a-shell .customer-fixed-pagination.purchase-list-pagination {gap:8px;flex-wrap:wrap;align-items:center}
body.pc-ui-preview .purchase-a-shell .purchase-pagination-controls,
body.pc-ui-preview .purchase-a-shell .purchase-page-turns,
body.pc-ui-preview .purchase-a-shell .purchase-page-jump,
body.pc-ui-preview .purchase-a-shell .purchase-page-size {display:flex;align-items:center;gap:6px;flex-wrap:nowrap;width:auto;margin:0;font-size:12px;line-height:1.4}
body.pc-ui-preview .purchase-a-shell .purchase-pagination-controls {flex-wrap:wrap;justify-content:flex-end;gap:8px 12px}
body.pc-ui-preview .purchase-a-shell .purchase-page-size select {width:100px;min-height:30px;margin:0;padding:4px 6px;font-size:12px}
body.pc-ui-preview .purchase-a-shell .purchase-page-jump input {width:52px;min-height:30px;margin:0;padding:4px 6px;font-size:12px;box-sizing:border-box}
body.pc-ui-preview .purchase-a-shell .purchase-page-jump button,
body.pc-ui-preview .purchase-a-shell .purchase-page-turns button {padding:4px 7px;white-space:nowrap}
body.pc-ui-preview .purchase-a-shell .customer-fixed-table[data-page-size-mode="fixed"] {overflow-y:auto;overscroll-behavior:contain;min-height:0!important;max-height:var(--purchase-page-height);scrollbar-gutter:stable}
body.pc-ui-preview .purchase-a-shell .customer-fixed-table[data-page-size-mode="fixed"] thead th {position:sticky;top:0;z-index:1;background:#f7f9fc}
@media(max-width:1199px) {
  .purchase-list-toolbar {flex-wrap:wrap;gap:6px}
  .purchase-list-toolbar .purchase-filter-summary {flex-basis:calc(100% - 210px)}
  .purchase-sort-field select {width:174px}
}
@media(max-width:768px) {
  .purchase-list-toolbar {flex-direction:column}
  .purchase-sort-field {align-self:flex-end}
}
.purchase-draft-recovery {display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0;margin:0 0 12px;padding:8px 10px;border:1px solid #dce5ef;border-radius:6px;background:#f7faff;color:#526a83;font-size:12px;line-height:1.5}
.purchase-draft-recovery:empty {display:none}
.purchase-draft-message {flex:1;min-width:160px;overflow-wrap:anywhere}
.purchase-draft-recovery button {flex:0 0 auto;width:auto;margin:0;min-height:29px;padding:4px 9px;font-size:12px}
.purchase-draft-recovery[data-state="recovery"] {background:#f3f7fc;border-color:#c8d9ed}
.purchase-draft-recovery:is([data-state="save-error"],[data-state="load-error"],[data-state="conflict"]) {background:#fff8ed;border-color:#e7c89d;color:#8d561a}
.purchase-filter-error {color:#a12b30;font-size:13px;margin:6px 0}
.purchase-item-input-row {display:flex;align-items:center;gap:8px;min-width:0}
.purchase-item-input-row>input {flex:1;min-width:0;width:100%}
.purchase-item-hint,.purchase-item-empty {font-size:12px;line-height:1.5;color:#63758a}
.purchase-item-hint {margin-top:5px}
.purchase-item-empty {padding:10px 12px}
.purchase-amount-row,.purchase-invoice-section,.purchase-payment-details {grid-column:1/-1;min-width:0}
.purchase-amount-row {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 16px;align-items:end}
.purchase-amount-total {grid-column:span 2}
@media(min-width:901px) {
  .purchase-amount-row:has(>.purchase-spec-field:not(.hidden)) {grid-template-columns:minmax(0,1fr) minmax(0,.6fr) minmax(0,.8fr) minmax(0,1fr) minmax(0,1.4fr)}
  .purchase-amount-row:has(>.purchase-spec-field:not(.hidden))>.purchase-amount-total {grid-column:auto}
}
.purchase-amount-total,.purchase-invoice-amount-summary {display:flex;flex-direction:column;gap:4px;color:#405572;font-size:12px;font-weight:700;min-width:0}
.purchase-amount-total>output {display:flex;align-items:center;min-height:34px;padding:5px 12px;border:1px solid #d8e5f6;border-radius:6px;background:#f2f7ff;color:#1754a0;font-size:17px;font-weight:700;box-sizing:border-box}
.purchase-amount-total>output.is-empty {font-size:13px;font-weight:400;color:#63758a}
.purchase-invoice-section {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 16px;align-items:start;border-top:1px solid #e2e8f0;padding-top:10px}
.purchase-invoice-amount-summary>div {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px;min-height:34px;font-weight:400}
.purchase-invoice-amount-summary output {font-weight:600;color:#17304e;overflow-wrap:anywhere}
.purchase-invoice-amount-summary button,.purchase-invoice-amount-edit>button {width:auto!important;margin:0;padding:4px 7px!important;font-size:12px}
.purchase-invoice-amount-edit {min-width:0}
.purchase-invoice-amount-edit>button {margin-top:4px}
.purchase-payment-details {border:1px solid #dbe4ef;border-radius:7px;background:#fbfcfe;padding:9px 12px}
.purchase-payment-details>summary {cursor:pointer;color:#405572;font-size:12px;font-weight:600;line-height:1.6}
.purchase-payment-details>summary>span {font-size:12px;font-weight:400;color:#63758a;margin-left:12px}
.purchase-payment-fields {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px;margin-top:10px}
.purchase-form-note {color:#63758a;font-size:12px;line-height:1.5;margin:8px 0 0}
#purchaseForm .purchase-amount-row input,#purchaseForm .purchase-invoice-section input,#purchaseForm .purchase-invoice-section select,#purchaseForm .purchase-payment-fields input,#purchaseForm .purchase-payment-fields select {width:100%;min-width:0;box-sizing:border-box}
#purchaseForm #purchaseProjectBudgetHint,#purchaseForm #purchaseFixedAssetEntryHint {grid-column:1/-1}
@media(max-width:900px) {
  .purchase-amount-row,.purchase-invoice-section {grid-template-columns:repeat(2,minmax(0,1fr))}
  .purchase-amount-total {grid-column:1/-1}
  .purchase-payment-fields {grid-template-columns:1fr}
}
#purchaseMaterialMenu .search-select-item:focus-visible {outline:2px solid #175cd3;outline-offset:-2px;background:#eff6ff}
@media(min-width:769px) {
  body.pc-ui-preview #purchaseForm .purchase-item-picker {grid-column:span 2}
  body.pc-ui-preview #purchaseForm>.a-operation-field:has(>.form-span-2) {grid-column:span 2}
  body.pc-ui-preview #purchaseForm .a-operation-field:has(>#purchaseScopeType),
  body.pc-ui-preview #purchaseForm .a-operation-field:has(>#purchaseAssetType) {align-self:start}
}
.purchase-workspace-dialog {width:min(1100px,calc(100vw - 36px));max-width:none;max-height:calc(100vh - 32px);padding:0;border:1px solid #d8e3f1;border-radius:12px;color:#17304e;background:#fff;box-shadow:0 16px 70px #12233855}
.purchase-workspace-dialog::backdrop {background:#1d304866}
.purchase-workspace-dialog[open] {display:flex;flex-direction:column}
.purchase-workspace-dialog>header {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;border-bottom:1px solid #dbe4ef;flex-shrink:0}
.purchase-workspace-dialog>header>button {width:auto!important;min-width:60px;margin:0;padding:5px 12px!important}
.purchase-dialog-body {overflow:auto;overscroll-behavior:contain;min-height:0;padding:14px 18px}
body.pc-ui-preview .purchase-workspace-dialog #purchaseCreatePanel {border:0;box-shadow:none;padding:0;margin:0}
.purchase-workspace-dialog #purchaseCreatePanel>.section-head {display:none}
body.pc-ui-preview .purchase-workspace-dialog .a-operation-form {margin:0;padding:0;border:0;background:#fff;gap:10px 16px}
body.pc-ui-preview .purchase-workspace-dialog .a-operation-field {gap:4px;margin:0}
body.pc-ui-preview .purchase-workspace-dialog .a-operation-form {grid-template-columns:repeat(4,minmax(0,1fr))}
body.pc-ui-preview .purchase-workspace-dialog .a-operation-submit {width:auto;margin:0;padding:8px 20px;justify-self:end}
.purchase-workspace-dialog .a-operation-caption {margin-bottom:4px!important}
.purchase-workspace-dialog .purchase-a-detail {margin:0!important;padding:0!important;background:#fff!important;border:0!important}
.purchase-workspace-dialog .client-detail-panel {padding:0;border:0}
.purchase-workspace-dialog .client-detail-title {display:none}
.purchase-workspace-dialog .client-detail-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.purchase-workspace-dialog .client-detail-block {padding:10px;min-width:0}
.purchase-workspace-dialog .client-detail-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px}
.purchase-workspace-dialog .client-detail-item {padding:4px 0;border:0;border-radius:0;line-height:1.55;min-width:0;overflow-wrap:anywhere}
.purchase-workspace-dialog .client-detail-block-full {grid-column:1/-1}
.purchase-workspace-dialog .client-detail-subtitle {margin-bottom:6px}
.purchase-workspace-dialog .client-detail-summary {margin:8px 0}
.purchase-detail-fold {grid-column:1/-1;border-top:1px solid #e2e8f0;padding:8px 0}
.purchase-detail-fold>summary {cursor:pointer;font-weight:600;font-size:13px;color:#415774}
.purchase-detail-fold>.client-detail-list {margin-top:8px;grid-template-columns:1fr}
.purchase-approver-hint {font-size:12px;color:#63758a;grid-column:1/-1;margin:0}
.purchase-payment-links {display:flex;flex-wrap:wrap;gap:5px}
.purchase-payment-links button {width:auto!important;margin:0}
.purchase-receipt-material {display:grid;gap:10px;padding:12px;border:1px solid #dbe4ef;border-radius:7px;background:#f8fbff;min-width:0}
.purchase-receipt-material p {margin:0;line-height:1.5;overflow-wrap:anywhere}
.purchase-receipt-new {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.purchase-receipt-material .system-dialog-field {display:flex;flex-direction:column;min-width:0;font-size:13px}
.purchase-receipt-material input,.purchase-receipt-material select {box-sizing:border-box;width:100%;min-width:0}
.purchase-receipt-menu {max-height:170px;overflow:auto;border:1px solid #dbe4ef;background:white;border-radius:5px;margin:6px 0}
.purchase-receipt-menu .search-select-item {width:100%;margin:0;text-align:left;white-space:normal;overflow-wrap:anywhere}
.purchase-receipt-menu .search-select-item:focus-visible {outline:2px solid #175cd3;outline-offset:-2px}
#purchaseActionModal .purchase-action-dialog-card {max-height:calc(100vh - 32px);overflow-y:auto;box-sizing:border-box}
#purchaseReceiptUnit {background:#f1f4f8;color:#63758a}
.purchase-receipt-matches {grid-column:1/-1;display:grid;gap:6px}
.purchase-receipt-matches button {margin:0;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere}
@media(max-width:900px) {.purchase-workspace-dialog .client-detail-grid,.purchase-workspace-dialog .client-detail-list {grid-template-columns:1fr}body.pc-ui-preview .purchase-workspace-dialog .a-operation-form{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Purchase detail: compact document with visible amounts, accounts and records. */
#purchaseDetailDialog .purchase-detail-document {display:grid;gap:10px;min-width:0;color:#243b53;font-size:14px;font-weight:400;line-height:1.6}
#purchaseDetailDialog .purchase-detail-document * {box-sizing:border-box}
#purchaseDetailDialog .purchase-detail-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:8px 16px;min-width:0}
#purchaseDetailDialog .purchase-detail-heading>div {min-width:0}
#purchaseDetailDialog .purchase-detail-heading>div:first-child {flex:1}
#purchaseDetailDialog .purchase-detail-title {display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0}
#purchaseDetailDialog .purchase-detail-title h2 {margin:0;color:#17304e;font-size:16px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
#purchaseDetailDialog .purchase-detail-meta {display:flex;flex-wrap:wrap;gap:0 14px;margin:3px 0 0;color:#63758a;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
#purchaseDetailDialog .purchase-detail-status {display:inline-flex;align-items:center;flex-shrink:0;padding:1px 7px;border:1px solid #d8e4f3;border-radius:4px;background:#f2f7fd;color:#285d9f;font-size:12px;font-weight:500;line-height:1.6;white-space:nowrap}
#purchaseDetailDialog .purchase-detail-status[data-state="approved"] {border-color:#cde7df;background:#f1f9f5;color:#237454}
#purchaseDetailDialog .purchase-detail-status[data-state="pending"] {border-color:#efdfbf;background:#fffaef;color:#946313}
#purchaseDetailDialog .purchase-detail-status[data-state="rejected"] {border-color:#eed8d5;background:#fff4f2;color:#a94036}
#purchaseDetailDialog .purchase-detail-status[data-state="cancelled"] {border-color:#dfe4eb;background:#f5f6f8;color:#66768a}
#purchaseDetailDialog .purchase-detail-actions {display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;max-width:58%;min-width:0}
#purchaseDetailDialog .purchase-detail-document button {width:auto!important;margin:0;min-height:28px;padding:4px 9px!important;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
#purchaseDetailDialog .purchase-detail-document button:focus-visible {outline:2px solid #2163bb;outline-offset:2px}
#purchaseDetailDialog .purchase-detail-alert {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 12px;min-width:0;padding:6px 10px;border:1px solid #efdfbf;border-radius:4px;background:#fffaf2;color:#855a20;font-size:12px;line-height:1.6}
#purchaseDetailDialog .purchase-detail-alert>div {min-width:0;overflow-wrap:anywhere}
#purchaseDetailDialog .purchase-detail-alert strong {font-size:12px;font-weight:600}
#purchaseDetailDialog .purchase-detail-alert p {margin:0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
#purchaseDetailDialog .purchase-detail-alert small {display:block;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
#purchaseDetailDialog .purchase-detail-alert>button {grid-column:2;align-self:center;background:#fff}
#purchaseDetailDialog .purchase-detail-amounts {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;min-width:0;padding:9px 0;border-top:1px solid #dce5ef;border-bottom:1px solid #dce5ef;background:#f7f9fc}
#purchaseDetailDialog .purchase-detail-amounts>div {display:flex;align-content:flex-start;align-items:baseline;flex-wrap:wrap;gap:1px 6px;min-width:0;padding:0 12px;border-left:1px solid #e0e7ef}
#purchaseDetailDialog .purchase-detail-amounts>div:first-child {border-left:0}
#purchaseDetailDialog .purchase-detail-amounts>div>span {flex-basis:100%;color:#62748b;font-size:13px;line-height:1.6}
#purchaseDetailDialog .purchase-detail-amounts strong {color:#193d65;font-size:16px;font-weight:600;line-height:1.6;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#purchaseDetailDialog .purchase-detail-amounts em {color:#9a691f;font-size:12px;font-weight:400;font-style:normal;line-height:1.5}
#purchaseDetailDialog .purchase-detail-adjustments {display:flex;align-items:center;flex-wrap:wrap;gap:2px 20px;margin-top:-3px;color:#61738a;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
#purchaseDetailDialog .purchase-detail-adjustments strong {font-size:13px;color:#405572;font-weight:500;font-variant-numeric:tabular-nums}
#purchaseDetailDialog .purchase-detail-section {min-width:0;margin:0;padding:8px 0 0;border:0;border-top:1px solid #e1e7ef;border-radius:0;background:transparent}
#purchaseDetailDialog .purchase-detail-section>header,
#purchaseDetailDialog .purchase-detail-section-title,
#purchaseDetailDialog .purchase-detail-record>header {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px 12px;min-width:0;margin:0 0 5px}
#purchaseDetailDialog .purchase-detail-section h3,
#purchaseDetailDialog .purchase-detail-record h3 {margin:0;color:#254c77;font-size:14px;font-weight:600;line-height:1.6}
#purchaseDetailDialog .purchase-detail-section>header>small,
#purchaseDetailDialog .purchase-detail-section-title>small,
#purchaseDetailDialog .purchase-detail-record>header>small {color:#63758a;font-size:12px;font-weight:400;line-height:1.6;overflow-wrap:anywhere}
#purchaseDetailDialog .purchase-detail-facts {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px 18px;margin:0;min-width:0}
#purchaseDetailDialog .purchase-detail-facts>div {display:grid;grid-template-columns:76px minmax(0,1fr);align-items:baseline;gap:0 6px;min-width:0;margin:0;min-height:24px}
#purchaseDetailDialog .purchase-detail-facts>.is-wide {grid-column:span 2}
#purchaseDetailDialog .purchase-detail-facts>.is-full {grid-column:1/-1}
#purchaseDetailDialog .purchase-detail-facts dt {margin:0;color:#697b91;font-size:13px;font-weight:400;line-height:24px;overflow-wrap:anywhere}
#purchaseDetailDialog .purchase-detail-facts dd {margin:0;color:#243b53;font-size:14px;font-weight:400;line-height:24px;overflow-wrap:anywhere;white-space:normal}
#purchaseDetailDialog .purchase-detail-facts dd strong {font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
#purchaseDetailDialog .purchase-detail-facts .is-muted {color:#7c8898}
#purchaseDetailDialog .purchase-detail-facts .purchase-payment-links {display:flex;flex-wrap:wrap;gap:4px}
#purchaseDetailDialog .purchase-detail-finance {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;min-width:0}
#purchaseDetailDialog .purchase-detail-finance>article {min-width:0}
#purchaseDetailDialog .purchase-detail-finance>article+article {padding-left:24px;border-left:1px solid #e5eaf0}
#purchaseDetailDialog .purchase-detail-finance h4 {margin:0 0 4px;color:#405572;font-size:13px;font-weight:600;line-height:1.6}
#purchaseDetailDialog .purchase-detail-finance .purchase-detail-facts {grid-template-columns:minmax(0,1fr);gap:2px}
#purchaseDetailDialog .purchase-detail-finance .purchase-detail-facts>div {grid-template-columns:88px minmax(0,1fr)}
#purchaseDetailDialog .purchase-detail-finance .purchase-detail-facts>.is-wide {grid-column:1/-1}
#purchaseDetailDialog .purchase-detail-records {display:grid;gap:10px;min-width:0}
#purchaseDetailDialog .purchase-detail-record {min-width:0;margin:0;padding-top:8px;border-top:1px solid #e1e7ef}
#purchaseDetailDialog .purchase-detail-table-wrap {width:100%;max-width:100%;min-width:0}
#purchaseDetailDialog .purchase-detail-table {width:100%;max-width:100%;min-width:0!important;margin:0;border-collapse:collapse;table-layout:fixed;color:#334a62;font-size:13px;line-height:1.5}
#purchaseDetailDialog .purchase-detail-table th,
#purchaseDetailDialog .purchase-detail-table td {height:auto;padding:5px 8px!important;border:0;border-bottom:1px solid #e7ecf2;text-align:left;vertical-align:top;white-space:normal;overflow-wrap:anywhere;font-size:13px;font-weight:400;line-height:1.5;box-shadow:none}
#purchaseDetailDialog .purchase-detail-table th {background:#f6f8fb;color:#63758a;font-size:12px;font-weight:500}
#purchaseDetailDialog .purchase-detail-table th:first-child {width:160px}
#purchaseDetailDialog .purchase-detail-table tbody tr {background:transparent}
#purchaseDetailDialog .purchase-detail-table tbody tr:last-child td {border-bottom:0}
#purchaseDetailDialog .purchase-detail-table td strong {font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
#purchaseDetailDialog .purchase-detail-table td small {display:block;color:#748398;font-size:12px}
#purchaseDetailDialog .purchase-detail-table td p {margin:2px 0 0}
#purchaseDetailDialog .purchase-detail-table td button {vertical-align:baseline}
#purchaseDetailDialog .purchase-detail-record-note {margin:3px 0 0;color:#63758a;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
#purchaseDetailDialog .purchase-detail-empty {margin:0;padding:2px 0;color:#7c8898;font-size:13px;line-height:1.6}
#purchaseDetailDialog .purchase-detail-vouchers {display:grid;gap:5px;min-width:0}
#purchaseDetailDialog .purchase-detail-vouchers .purchase-voucher-links {display:flex;flex-wrap:wrap;gap:4px 8px;min-width:0;font-size:13px;overflow-wrap:anywhere}
#purchaseDetailDialog .purchase-detail-vouchers .voucher-thumbs {display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0;min-width:0}
#purchaseDetailDialog .purchase-detail-vouchers .voucher-thumb-link {padding:3px!important;min-width:0;border-radius:4px}
#purchaseDetailDialog .purchase-detail-vouchers .voucher-thumb {display:block;width:64px;height:48px;object-fit:cover}
#purchaseDetailDialog .purchase-detail-updated {margin:0;color:#7c8898;font-size:12px;line-height:1.6;text-align:right}
@media(max-width:900px) {
  #purchaseDetailDialog .purchase-detail-heading {flex-wrap:wrap}
  #purchaseDetailDialog .purchase-detail-actions {max-width:none}
  #purchaseDetailDialog .purchase-detail-facts {grid-template-columns:repeat(2,minmax(0,1fr))}
  #purchaseDetailDialog .purchase-detail-amounts {grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 0}
  #purchaseDetailDialog .purchase-detail-amounts>div:nth-child(3n+1) {border-left:0}
  #purchaseDetailDialog .purchase-detail-finance {gap:8px 16px}
  #purchaseDetailDialog .purchase-detail-finance>article+article {padding-left:16px}
}
@media(max-width:600px) {
  #purchaseDetailDialog .purchase-detail-actions {justify-content:flex-start}
  #purchaseDetailDialog .purchase-detail-heading>div:first-child {flex-basis:100%}
  #purchaseDetailDialog .purchase-detail-facts {grid-template-columns:minmax(0,1fr)}
  #purchaseDetailDialog .purchase-detail-facts>.is-wide {grid-column:1/-1}
  #purchaseDetailDialog .purchase-detail-finance {grid-template-columns:minmax(0,1fr)}
  #purchaseDetailDialog .purchase-detail-finance>article+article {padding:8px 0 0;border-left:0;border-top:1px solid #e5eaf0}
  #purchaseDetailDialog .purchase-detail-amounts>div {padding:0 8px}
  #purchaseDetailDialog .purchase-detail-alert {grid-template-columns:minmax(0,1fr)}
  #purchaseDetailDialog .purchase-detail-alert>button {grid-column:1;justify-self:start;margin-top:3px}
  #purchaseDetailDialog .purchase-detail-table th:first-child {width:105px}
  #purchaseDetailDialog .purchase-detail-table th,
  #purchaseDetailDialog .purchase-detail-table td {padding:5px 4px!important;font-size:12px}
}
