.commerce-page { min-width: 0; color: #24435f; font-size: 16px; }
.commerce-icon { display: inline-block; flex: 0 0 auto; width: 22px; height: 22px; vertical-align: middle; }
.commerce-eyebrow { display: block; margin-bottom: 9px; color: #5d7085; font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.commerce-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.commerce-heading h1 { font-size: 31px; line-height: 1.45; font-weight: 650; letter-spacing: -.4px; }
.commerce-heading p { max-width: 800px; margin-top: 11px; color: #5d7085; font-size: 16px; line-height: 1.85; }
.commerce-boundary { padding: 18px 21px; margin-bottom: 24px; border: 1px solid #d3e4f5; border-left: 3px solid #659ed7; border-radius: 6px; background: #f1f7fe; }
.commerce-boundary strong { display: flex; align-items: center; gap: 9px; color: #456783; font-size: 15px; font-weight: 600; }
.commerce-boundary p { margin-top: 8px; color: #5d7085; font-size: 14px; line-height: 1.9; }
.commerce-page .commerce-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 6px; font-size: 15px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.commerce-page .commerce-button.primary { color: #fff; background: #0066cc; }
.commerce-page .commerce-button.primary:hover { background: #0053a7; }
.commerce-page .commerce-button.secondary { color: #456581; border-color: #c2d5e8; background: #fff; }
.commerce-page .commerce-button.secondary:hover { color: #0066cc; border-color: #82afda; background: #f1f7fe; }
.commerce-page .commerce-button:disabled { cursor: default; opacity: .55; }
.commerce-page .commerce-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 43px; min-height: 43px; padding: 8px; color: #5d7085; border: 1px solid #dbe6f1; border-radius: 5px; background: #fff; }
.commerce-page .commerce-icon-button:hover { color: #0066cc; background: #f0f6fe; }
.commerce-page .commerce-text-button { display: inline-flex; align-items: center; min-height: 48px; gap: 8px; padding: 8px 0; color: #0066cc; border: 0; background: transparent; font-size: 14px; text-align: left; }
.commerce-page .commerce-text-button:hover { text-decoration: underline; }
.commerce-page .commerce-text-button.warning { color: #8a5d13; }
.commerce-page .commerce-text-button:disabled { opacity: .55; cursor: default; }
.commerce-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 8px; color: #5d7085; background: #edf2f7; border-radius: 4px; font-size: 14px; line-height: 1.5; white-space: nowrap; }
.commerce-badge.success { color: #256c49; background: #e9f7ef; }
.commerce-badge.warning { color: #875c14; background: #fff5df; }
.commerce-badge.danger { color: #a33b49; background: #fff0f2; }
.commerce-list-panel { min-width: 0; overflow: hidden; border: 1px solid #dce5ef; border-radius: 8px; background: #fff; }
.commerce-list-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 23px; padding: 23px 24px; }
.commerce-list-panel h2 { font-size: 21px; font-weight: 600; }
.commerce-list-panel > header p { margin-top: 7px; color: #5d7085; font-size: 14px; line-height: 1.8; }
.commerce-query { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding: 19px 24px 23px; border-top: 1px solid #e8eff6; background: #fcfdff; }
.commerce-query > .commerce-field { flex: 1 1 210px; max-width: 360px; }
.commerce-query-actions { display: flex; gap: 11px; }
.commerce-page .commerce-field { min-width: 0; }
.commerce-field > label { display: block; margin-bottom: 9px; color: #456580; font-size: 15px; font-weight: 600; }
.commerce-page input, .commerce-page select { min-width: 0; width: 100%; min-height: 50px; padding: 11px 14px; color: #294d6c; border: 1px solid #bfd1e3; border-radius: 6px; background: #fff; font: inherit; font-size: 16px; line-height: 1.65; }
.commerce-page input::placeholder { color: #5d7085; opacity: 1; }
.commerce-page input:focus, .commerce-page select:focus { border-color: #0066cc; box-shadow: 0 0 0 3px #0066cc0c; }
.commerce-page input:disabled, .commerce-page input[readonly], .commerce-page select:disabled { color: #5d7085; background: #f4f8fc; }
.commerce-page input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; min-height: 20px; margin: 3px 0 0; padding: 0; accent-color: #0066cc; }
.commerce-field > small { display: block; margin-top: 7px; color: #5d7085; font-size: 14px; line-height: 1.85; }
.commerce-tabs { display: flex; gap: 25px; padding: 0 24px; overflow-x: auto; border-top: 1px solid #e7eef6; scrollbar-width: thin; }
.commerce-tabs > button { position: relative; flex: 0 0 auto; min-height: 59px; padding: 12px 3px; color: #5d7085; border: 0; background: transparent; font-size: 16px; white-space: nowrap; }
.commerce-tabs > button.is-active { color: #0066cc; font-weight: 600; }
.commerce-tabs > button.is-active::after { position: absolute; inset: auto 0 0; height: 3px; background: #0066cc; border-radius: 2px 2px 0 0; content: ""; }
.commerce-table-scroll { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #bed0e1 #f6f9fc; overscroll-behavior-inline: contain; }
.commerce-page table { width: 100%; min-width: 1050px; border-collapse: collapse; font-size: 15px; text-align: left; white-space: nowrap; }
.commerce-page th { padding: 15px 21px; color: #4d6c87; border-block: 1px solid #dfe9f3; background: #f0f5fc; font-size: 14px; font-weight: 600; }
.commerce-page td { padding: 17px 21px; color: #4e6e88; border-bottom: 1px solid #e9f0f7; line-height: 1.7; vertical-align: middle; }
.commerce-page tbody tr:last-child td { border-bottom: 0; }
.commerce-page td > strong { display: block; color: #2e5473; font-weight: 550; }
.commerce-page td > small { display: block; margin-top: 5px; color: #5d7085; font-size: 14px; }
.commerce-page .number { text-align: right; font-variant-numeric: tabular-nums; }
.commerce-page .commerce-money { color: #245b8b; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.commerce-page .commerce-reference, .commerce-page .commerce-reason { max-width: 270px; min-width: 180px; white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
.commerce-row-actions { display: flex; align-items: flex-start; flex-direction: column; }
.commerce-page .commerce-audit-key { max-width: 260px; white-space: normal; overflow-wrap: anywhere; font-family: Consolas,"Segoe UI",monospace; font-size: 14px; }
.commerce-audit-key > small { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commerce-pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-top: 1px solid #e9f0f6; }
.commerce-pagination > span { color: #5d7085; font-size: 14px; }
.commerce-pagination > div { display: flex; gap: 11px; }
.commerce-pagination .commerce-button { min-height: 46px; padding: 9px 15px; font-size: 14px; }
.commerce-record-note { display: flex; align-items: flex-start; gap: 10px; padding: 16px 24px; color: #5d7085; border-top: 1px solid #e8f0f7; background: #fbfdff; font-size: 14px; line-height: 1.9; }
.commerce-record-note .commerce-icon { width: 19px; height: 19px; margin-top: 3px; }
.commerce-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 270px; padding: 32px 24px; text-align: center; }
.commerce-empty > .commerce-icon { width: 33px; height: 33px; color: #5d7085; }
.commerce-empty h3 { margin-top: 16px; color: #426681; font-size: 18px; font-weight: 600; }
.commerce-empty p { max-width: 650px; margin-top: 10px; color: #5d7085; font-size: 14px; overflow-wrap: anywhere; }
.commerce-empty .commerce-button { margin-top: 23px; }
.commerce-page .commerce-table-empty { height: 230px; padding: 30px; text-align: center; white-space: normal; }
.commerce-table-empty > .commerce-icon { width: 30px; height: 30px; margin-bottom: 12px; color: #5d7085; }
.commerce-table-empty h3 { color: #426681; font-size: 18px; }
.commerce-table-empty p { margin-top: 10px; color: #5d7085; font-size: 14px; }
.commerce-spinner { width: 29px; height: 29px; border: 3px solid #dfebf7; border-top-color: #6a9bc8; border-radius: 50%; animation: commerce-spin 1s linear infinite; }
@keyframes commerce-spin { to { transform: rotate(360deg); } }
.commerce-editor, .commerce-order-detail { min-width: 0; padding: 25px 27px; margin-bottom: 26px; border: 1px solid #bed7ee; border-radius: 8px; background: #fff; box-shadow: 0 4px 16px #0066cc06; scroll-margin-top: 95px; }
.commerce-editor > header, .commerce-order-detail > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.commerce-editor h2, .commerce-order-detail h2 { color: #294d6b; font-size: 22px; font-weight: 600; overflow-wrap: anywhere; }
.commerce-editor header p, .commerce-order-detail header p { margin-top: 9px; color: #5d7085; font-size: 15px; line-height: 1.85; }
.commerce-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px 25px; }
.commerce-inline-input { display: flex; gap: 10px; }
.commerce-inline-input input { flex: 1; min-width: 0; }
.commerce-inline-input .commerce-button { flex: 0 0 auto; padding-inline: 14px; font-size: 14px; }
.commerce-product-state { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding: 17px 20px; margin-top: 22px; border: 1px solid #e1eaf5; border-radius: 6px; background: #f8fbff; }
.commerce-product-state > strong { color: #3c6485; font-size: 16px; }
.commerce-product-state > span { display: flex; flex-wrap: wrap; gap: 7px; }
.commerce-product-state p { flex: 1 1 100%; color: #5d7085; font-size: 14px; line-height: 1.8; }
.commerce-create-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 18px 12px; margin-top: 24px; }
.commerce-create-actions > .commerce-confirm { flex: 1 1 100%; margin: 0; }
.commerce-confirm { display: flex; align-items: flex-start; gap: 11px; padding: 15px 17px; margin-top: 22px; color: #4f6c85; border: 1px solid #d9e6f4; border-radius: 6px; background: #f3f8fe; font-size: 15px; line-height: 1.85; cursor: pointer; }
.commerce-request-key { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 13px; margin-top: 18px; color: #5d7085; font-size: 14px; }
.commerce-request-key code { color: #5d7085; font-family: Consolas,"Segoe UI",monospace; font-size: 14px; overflow-wrap: anywhere; }
.commerce-form-message { margin-top: 15px; color: #a83b49; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.commerce-form-message:empty { margin: 0; }
.commerce-form-message.is-error { padding: 13px 15px; border: 1px solid #ebcbd0; border-radius: 5px; background: #fff3f5; }
.commerce-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.commerce-new-request { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 20px; padding-top: 15px; margin-top: 22px; border-top: 1px solid #e5edf5; }
.commerce-new-request > label { display: flex; align-items: flex-start; gap: 9px; color: #5d7085; font-size: 14px; line-height: 1.8; cursor: pointer; }
.commerce-storage-note { margin-top: 13px; color: #8c621b; font-size: 14px; }
.commerce-locked-note { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; margin-bottom: 24px; color: #886329; border: 1px solid #eeddbc; border-radius: 6px; background: #fff9ed; }
.commerce-locked-note > .commerce-icon { margin-top: 3px; }
.commerce-locked-note strong { font-size: 15px; font-weight: 600; }
.commerce-locked-note p { margin-top: 6px; color: #7e6742; font-size: 14px; line-height: 1.85; }
.commerce-operation-summary, .commerce-quote-summary dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 21px 24px; padding: 21px 23px; margin: 0 0 23px; border-radius: 6px; background: #f4f8fc; }
.commerce-operation-summary > .full-width { grid-column: 1 / -1; }
.commerce-operation-summary dt, .commerce-quote-summary dt, .commerce-order-metadata dt { color: #5d7085; font-size: 14px; }
.commerce-operation-summary dd, .commerce-quote-summary dd { margin: 7px 0 0; color: #355c7b; font-size: 16px; font-weight: 550; overflow-wrap: anywhere; }
.commerce-operation-summary + .commerce-fields { margin-bottom: 22px; }
.commerce-quote-summary { min-width: 0; padding: 21px 23px; margin-top: 24px; border: 1px solid #d5e5f4; border-radius: 7px; background: #fbfdff; }
.commerce-quote-summary > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.commerce-quote-summary h3 { color: #355b79; font-size: 20px; font-weight: 600; }
.commerce-quote-summary dl { padding: 0; margin-bottom: 21px; background: transparent; }
.commerce-quote-spec { padding: 17px 19px; border: 1px solid #e3edf6; border-radius: 6px; background: #f4f8fd; }
.commerce-quote-spec > strong { color: #476b89; font-size: 15px; }
.commerce-quote-spec p { margin-top: 8px; color: #5d7085; font-size: 15px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.commerce-quote-spec ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 22px; padding: 0 0 0 19px; margin: 17px 0 0; color: #5d7085; font-size: 14px; }
.commerce-small-note { margin-top: 11px; color: #5d7085; font-size: 14px; line-height: 1.85; }
.commerce-detail-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 15px; }
.commerce-detail-status > span:last-child { margin-left: auto; color: #5d7085; font-size: 15px; }
.commerce-detail-status strong { color: #225a8b; font-size: 20px; }
.commerce-order-metadata { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 21px 24px; padding: 0; margin: 24px 0; }
.commerce-order-metadata dd { margin: 7px 0 0; color: #496c88; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.commerce-order-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.commerce-state-note { padding: 13px 16px; margin-top: 17px; color: #5d7085; border-radius: 5px; background: #f4f8fd; font-size: 14px; line-height: 1.85; }
.commerce-result { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; margin-bottom: 23px; color: #2d7450; border: 1px solid #c8e1d2; border-radius: 6px; background: #f2faf5; font-size: 15px; line-height: 1.85; }
.commerce-result > .commerce-icon { margin-top: 3px; }
.commerce-result > p { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.commerce-result .commerce-icon-button { width: 33px; min-height: 33px; padding: 5px; border: 0; background: transparent; }
.commerce-result.error { color: #a13c49; border-color: #e8cdd2; background: #fff4f5; }
@media (max-width: 1100px) {
  .commerce-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
  .commerce-quote-summary dl, .commerce-operation-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .commerce-heading h1 { font-size: 29px; }
  .commerce-fields { column-gap: 20px; }
  .commerce-quote-summary > header { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .commerce-heading h1 { font-size: 27px; }
  .commerce-heading p { font-size: 15px; }
  .commerce-heading > .commerce-button { width: 100%; }
  .commerce-boundary { padding: 15px 16px; }
  .commerce-boundary strong { align-items: flex-start; font-size: 14px; }
  .commerce-boundary strong .commerce-icon { width: 19px; height: 19px; margin-top: 2px; }
  .commerce-list-panel > header { align-items: flex-start; flex-direction: column; gap: 15px; padding: 20px 18px; }
  .commerce-list-panel > header > .commerce-button { width: 100%; }
  .commerce-query { align-items: stretch; flex-direction: column; gap: 15px; padding: 18px; }
  .commerce-query > .commerce-field { flex: 1 1 auto; max-width: none; }
  .commerce-query-actions > .commerce-button { flex: 1; }
  .commerce-tabs { gap: 22px; padding-inline: 18px; }
  .commerce-tabs > button { min-height: 57px; font-size: 15px; }
  .commerce-pagination { align-items: flex-start; flex-direction: column; gap: 15px; padding: 18px; }
  .commerce-pagination > div { width: 100%; }
  .commerce-pagination .commerce-button { flex: 1; min-height: 48px; font-size: 15px; }
  .commerce-page th, .commerce-page td { padding-inline: 17px; }
  .commerce-record-note { gap: 9px; padding-inline: 18px; }
  .commerce-editor, .commerce-order-detail { padding: 22px 18px; scroll-margin-top: 85px; }
  .commerce-editor > header, .commerce-order-detail > header { gap: 13px; }
  .commerce-editor h2, .commerce-order-detail h2 { font-size: 20px; }
  .commerce-fields { grid-template-columns: 1fr; gap: 21px; }
  .commerce-inline-input { gap: 9px; }
  .commerce-inline-input .commerce-button { padding-inline: 12px; }
  .commerce-confirm { gap: 10px; padding: 14px; font-size: 14px; }
  .commerce-operation-summary { gap: 19px; padding: 18px; }
  .commerce-operation-summary dd { font-size: 15px; }
  .commerce-quote-summary { padding: 19px 17px; }
  .commerce-quote-summary dl { gap: 20px; }
  .commerce-quote-summary dd { font-size: 15px; }
  .commerce-quote-summary .commerce-money { font-size: 18px; }
  .commerce-quote-spec { padding: 15px; }
  .commerce-quote-spec ul { grid-template-columns: 1fr; gap: 10px; }
  .commerce-quote-spec p { font-size: 14px; }
  .commerce-form-actions { gap: 10px; }
  .commerce-form-actions > .commerce-button:first-child { flex: 1; }
  .commerce-create-actions > .commerce-button { width: 100%; }
  .commerce-new-request { align-items: flex-start; flex-direction: column; }
  .commerce-order-metadata { grid-template-columns: 1fr; gap: 18px; }
  .commerce-detail-status > span:last-child { flex: 1 1 100%; margin-left: 0; margin-top: 4px; }
  .commerce-order-actions > .commerce-button { width: 100%; }
  .commerce-locked-note { gap: 10px; padding: 14px; }
  .commerce-result { gap: 9px; padding: 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .commerce-page *, .commerce-page *::before, .commerce-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
