/* Kitchen CORE — compras simples na área de estoque. */
.purchase-center{min-width:0;--kc-component-control-height:40px;--kc-component-card-padding:16px}
.purchase-tabs{overflow-x:auto;flex-wrap:nowrap}
.purchase-tabs .kc-tab{white-space:nowrap}
.purchase-toolbar{flex-wrap:wrap}
.purchase-toolbar .kc-toolbar__group{flex-wrap:wrap;min-width:0}
.purchase-toolbar .kc-field{min-width:220px;max-width:420px}
.purchase-list-heading{display:flex;flex-wrap:wrap;align-items:end;gap:var(--kc-space-3,12px)}
.purchase-list-heading>.kc-field:first-child{flex:1;min-width:220px}
.purchase-list-heading .kc-choice{align-self:center}
.purchase-workspace{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.4fr);gap:var(--kc-space-4,16px);align-items:start}
.purchase-workspace--review{grid-template-columns:minmax(0,1fr)}
.purchase-catalog,.purchase-selected{min-width:0}
.purchase-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kc-space-3,12px)}
.purchase-query{grid-column:1/-1}
.purchase-catalog-results{max-height:380px;overflow:auto;margin-top:var(--kc-space-3,12px)}
.purchase-product.kc-button{width:100%;justify-content:space-between;text-align:left;white-space:normal;height:auto;min-height:58px;gap:12px;padding:10px;border-bottom:1px solid var(--kc-color-border)}
.purchase-product>span{min-width:0;display:grid;gap:4px}
.purchase-product strong{font-size:14px;overflow-wrap:anywhere}
.purchase-product small{font-size:12px;color:var(--kc-color-text-muted);font-weight:500}
.purchase-product>small{max-width:120px;flex-shrink:0}
.purchase-product.is-selected{background:var(--kc-color-primary-soft);color:var(--kc-color-primary)}
.purchase-add{padding:12px;margin-top:12px}
.purchase-add>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;margin-top:12px;align-items:end}
.purchase-add button{grid-column:1/-1}
.purchase-group+ .purchase-group{margin-top:16px}
.purchase-group h4{font-size:12px;text-transform:uppercase;color:var(--kc-color-text-muted);letter-spacing:.04em;margin:0 0 8px}
.purchase-item{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 0;border-bottom:1px solid var(--kc-color-border)}
.purchase-item-copy{flex:1 1 200px;min-width:0;display:grid;gap:4px}
.purchase-item-copy strong{font-size:15px;overflow-wrap:anywhere}
.purchase-item-copy small,.purchase-item-copy p,.purchase-item-received{font-size:12px;color:var(--kc-color-text-muted);line-height:1.5;margin:0;overflow-wrap:anywhere}
.purchase-item-controls{display:flex;flex-wrap:wrap;gap:6px;align-items:center;max-width:100%}
.purchase-item-controls>.kc-input{width:85px}
.purchase-item-controls>.kc-select{width:140px;max-width:100%}
.purchase-item-received{flex-basis:100%}
.purchase-history{display:grid;gap:12px}
.purchase-history-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:12px;border:1px solid var(--kc-color-border);border-radius:var(--kc-component-card-radius)}
.purchase-history-row>div:first-child{display:grid;gap:5px;min-width:0;flex:1 1 240px}
.purchase-history-row strong{overflow-wrap:anywhere}
.purchase-history-row small,.purchase-price small{color:var(--kc-color-text-muted);font-size:12px}
.purchase-price{padding:12px;border:1px solid var(--kc-color-border);border-radius:var(--kc-component-card-radius)}
.purchase-price-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}
.purchase-price-suppliers{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.purchase-price-suppliers>div{display:grid;gap:4px;flex:1 1 170px;padding:12px;background:var(--kc-color-surface-subtle);border-radius:var(--kc-component-control-radius)}
.purchase-modal{z-index:calc(var(--kc-admin-layer-recipe-sheet,50000) + 800)}
.purchase-modal .kc-modal{max-width:640px;width:calc(100% - 32px);max-height:calc(100dvh - 32px)}
.purchase-share-text{font-size:14px;line-height:1.5;min-height:260px}
@media(max-width:1000px){.purchase-workspace{grid-template-columns:minmax(0,1fr)}.purchase-catalog-results{max-height:260px}.purchase-add>div{grid-template-columns:120px minmax(0,1fr) auto}.purchase-add button{grid-column:auto}}
@media(max-width:640px){.purchase-toolbar .kc-toolbar__group,.purchase-toolbar .kc-field{width:100%;min-width:0;max-width:none}.purchase-list-heading{align-items:stretch}.purchase-list-heading>.kc-field{width:100%;min-width:0!important}.purchase-list-heading .kc-choice{flex:1}.purchase-add>div{grid-template-columns:90px minmax(0,1fr)}.purchase-add button{grid-column:1/-1}.purchase-item-controls{width:100%}.purchase-item-controls>.kc-select{flex:1}.purchase-product>small{max-width:96px}.purchase-history-row .kc-cluster{width:100%}.purchase-modal .kc-modal{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}}
/* Catálogo e listas: superfície comum, ações sempre alcançáveis no celular. */
.purchase-workspace{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
.purchase-product strong,.purchase-item-copy strong{font-size:var(--kc-font-size-body,16px)}
.purchase-product small,.purchase-item-copy small,.purchase-history-row small{font-size:var(--kc-font-size-caption,14px)}
.purchase-product.kc-button,.purchase-item-controls>.kc-input,.purchase-item-controls>.kc-select{min-height:44px}
.purchase-list-drawer .kc-modal{width:min(1120px,calc(100% - 32px));max-width:1120px;height:min(900px,calc(100dvh - 32px));display:flex;flex-direction:column}
.purchase-list-drawer .kc-modal__body{flex:1;min-height:0;overflow:auto}
.purchase-list-drawer .kc-modal__header,.purchase-list-drawer .kc-modal__footer{flex-shrink:0}
.purchase-list-drawer .kc-modal__footer{flex-wrap:wrap}
.purchase-group h3{font-size:var(--kc-font-size-body,16px);color:var(--kc-color-text-secondary);margin:var(--kc-space-3) 0}
.purchase-quote-scroll{overflow:auto;max-width:100%}
.purchase-quote-scroll table{min-width:560px}
.purchase-quote-scroll th{min-width:180px;white-space:normal}
.purchase-quote-scroll th small{display:block;font-weight:400;margin-top:var(--kc-space-2)}
.purchase-quote-scroll td{min-width:175px;vertical-align:top}
.purchase-quote-scroll .kc-field__label{font-size:var(--kc-font-size-caption,14px)}
.purchase-history-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--kc-space-3)}
@media(max-width:850px){.purchase-workspace{grid-template-columns:minmax(0,1fr)}.purchase-workspace>.kc-stack{grid-row:1}.purchase-catalog-results{max-height:360px}}
@media(max-width:640px){.purchase-list-drawer .kc-modal{width:100%;height:100dvh;max-height:100dvh;border-radius:0}.purchase-list-drawer .kc-modal__footer{display:grid;grid-template-columns:1fr 1fr;gap:var(--kc-space-2)}.purchase-list-drawer .kc-modal__footer .kc-button{min-width:0;min-height:44px}.purchase-list-drawer .kc-modal__header{padding:var(--kc-space-3)}.purchase-list-drawer .kc-modal__title{font-size:var(--kc-font-size-h3,20px)}.purchase-history-filters{grid-template-columns:1fr}.purchase-history-row>div:first-child{flex-basis:100%}}
.purchase-center [data-purchase-status][hidden],.purchase-list-drawer [data-purchase-status][hidden]{display:none}
.purchase-tabs.kc-tabs{display:flex;flex-wrap:nowrap;gap:var(--kc-space-1)}
.purchase-tabs .kc-tab{flex:1;min-width:0;padding:var(--kc-space-2);font-size:var(--kc-font-size-caption,14px);white-space:nowrap}
.purchase-workspace .kc-card__header>.kc-badge{align-self:center;flex:0 0 auto;width:auto}
@media(max-width:850px){.purchase-workspace>.kc-stack{grid-row:auto}.purchase-toolbar .kc-toolbar__group{width:auto;flex:0 1 auto}}
/* Preserve the compact purchase controls under the legacy Admin skin. */
html[data-kc-design] body :is(#produtos,#estoque) .purchase-tabs.kc-tabs{flex-wrap:nowrap!important;overflow:auto!important}
html[data-kc-design] body :is(#produtos,#estoque) .purchase-tabs.kc-tabs>.kc-tab{flex:1 0 auto!important;white-space:nowrap!important;padding:var(--kc-space-2)!important}
:is(#produtos,#estoque) .purchase-toolbar.stock-page-actions{justify-content:space-between;gap:var(--kc-space-2)}
:is(#produtos,#estoque) .purchase-toolbar.stock-page-actions>.kc-toolbar__group{display:flex;width:auto;flex:0 1 auto;grid-template-columns:none}
/* Visão geral: prioridade pela ação, sem indicadores redundantes de estoque. */
.purchase-intro{margin:0;color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-body)}
.purchase-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kc-space-4);align-items:start}
.purchase-overview-section{min-width:0}
.purchase-overview-section .kc-card__header{align-items:flex-start;gap:var(--kc-space-3)}
.purchase-overview-section .kc-card__header>div{min-width:0;flex:1}
.purchase-overview-section .kc-card__header>.kc-badge{flex:0 0 auto}
.purchase-overview-section .purchase-history-row{padding:var(--kc-space-3) 0;border:0;border-bottom:1px solid var(--kc-color-border);border-radius:0}
.purchase-overview-section .purchase-history-row:last-child{border-bottom:0}
.purchase-overview-section .purchase-history-row>div:first-child{flex-basis:180px}
.purchase-overview-section[data-purchase-section="needs"]{grid-column:1/-1}
.purchase-overview-section .kc-badge{width:fit-content}
.purchase-overview-section .kc-badge svg{flex-shrink:0}
.purchase-summary-item{display:flex;justify-content:space-between;flex-wrap:wrap;gap:var(--kc-space-2);padding:var(--kc-space-3) 0;border-bottom:1px solid var(--kc-color-border);overflow-wrap:anywhere}
.purchase-summary-item strong{font-weight:var(--kc-font-weight-semibold)}
.purchase-summary-item span{color:var(--kc-color-text-secondary)}
.purchase-quantity{grid-template-columns:80px minmax(0,1fr);width:250px;max-width:100%}
.purchase-quantity .kc-input-group__control{width:100%;min-height:44px}
.purchase-footer-count{margin-right:auto;align-self:center;color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-caption)}
.purchase-item[hidden],.purchase-group[hidden],[data-purchase-review-empty][hidden]{display:none}
.purchase-center .kc-button>svg{width:var(--kc-space-5);height:var(--kc-space-5);flex:0 0 auto}
@media(max-width:850px){.purchase-overview{grid-template-columns:minmax(0,1fr)}.purchase-overview-section[data-purchase-section="needs"]{grid-column:auto}}
@media(max-width:640px){.purchase-center>.purchase-toolbar.stock-page-actions{align-items:stretch}.purchase-center>.purchase-toolbar.stock-page-actions>.kc-toolbar__group{flex:1 1 100%;flex-wrap:wrap}.purchase-center>.purchase-toolbar.stock-page-actions>.kc-toolbar__group>.kc-button{flex:1}.purchase-quantity{width:100%;flex:1 1 100%;grid-template-columns:85px minmax(0,1fr)}.purchase-footer-count{grid-column:1/-1}.purchase-current-summary .kc-button{width:100%}.purchase-item-controls>.kc-button{flex:1}.purchase-tabs .kc-tab{font-size:var(--kc-font-size-sm)}}

.purchase-list-drawer [data-purchase-action][hidden]{display:none}
.purchase-routine-modal .kc-modal{width:min(840px,calc(100% - 32px));max-width:840px}
.purchase-routine-basics{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--kc-space-7)}
.purchase-routine-basics>.kc-field:first-child{grid-column:1/-1}
.purchase-routine-products h3{margin:0;font-size:var(--kc-font-size-body);font-weight:var(--kc-font-weight-semibold)}
.purchase-routine-filters{display:flex;gap:var(--kc-space-3);align-items:end;flex-wrap:wrap}
.purchase-routine-filters>.kc-field{flex:1 1 220px}
.purchase-routine-filters>.kc-choice{min-height:44px}
.purchase-routine-items{max-height:420px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--kc-color-border);border-radius:var(--kc-component-control-radius)}
.purchase-routine-ingredient{padding:var(--kc-space-3);border-bottom:1px solid var(--kc-color-border)}
.purchase-routine-ingredient:last-child{border-bottom:0}
.purchase-routine-ingredient>.kc-choice{width:100%;min-height:44px}
.purchase-routine-ingredient>.kc-choice,.purchase-routine-filters>.kc-choice{text-transform:none;letter-spacing:normal}
.purchase-routine-ingredient .kc-choice>span:last-child{display:grid;gap:var(--kc-space-1);min-width:0}
.purchase-routine-ingredient strong{overflow-wrap:anywhere}
.purchase-routine-ingredient small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-caption)}
.purchase-routine-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:var(--kc-space-3);margin-top:var(--kc-space-3)}
.purchase-routine-settings .purchase-quantity{width:100%}
.purchase-modal .kc-input-group--unified>.kc-input-group__control{border:0!important;border-radius:0!important;box-shadow:none!important}
.purchase-routine-supplier.kc-disclosure{align-self:center}
.purchase-routine-supplier .kc-disclosure__chevron{width:16px;height:16px;margin-left:auto}
.purchase-routine-supplier .kc-disclosure__summary{min-height:44px;padding:var(--kc-space-2);font-size:var(--kc-font-size-caption);justify-content:flex-start;flex-wrap:wrap;gap:var(--kc-space-1)}
.purchase-routine-ingredient[hidden],[data-routine-empty][hidden],#routineFrequency[hidden],#routineWeekdays[hidden]{display:none!important}
/* Keep the overview quiet and compact when there is nothing to act on. */
.purchase-overview-section.is-empty .kc-card__header{background:var(--kc-color-surface);border-bottom:0;padding-bottom:0}
.purchase-overview-section.is-empty .kc-card__body{padding-top:var(--kc-space-2);padding-bottom:var(--kc-space-3)}
.purchase-overview-section.is-empty .kc-card__title{font-size:var(--kc-font-size-body);color:var(--kc-color-text-secondary)}
.purchase-overview-section.is-empty[data-purchase-section="needs"]{grid-column:auto}
@media(max-width:640px){.purchase-routine-basics{grid-template-columns:minmax(0,1fr);align-items:start}.purchase-routine-settings{grid-template-columns:minmax(0,1fr)}.purchase-routine-modal .kc-modal{width:calc(100% - 24px)}.purchase-routine-modal .kc-modal__footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kc-space-2)}.purchase-routine-modal .kc-modal__footer .kc-button{min-width:0}.purchase-routine-basics input[type=date]{min-width:0}.purchase-routine-items{max-height:none}.purchase-routine-supplier{max-width:100%}}
@media(max-width:640px){.purchase-item-controls>.kc-button--icon{flex:0 0 44px;min-width:44px}}

/* Same section rhythm and field spacing as the Kitchen CORE forms. */
.purchase-center{--kc-component-section-gap:var(--kc-space-7)}
html[data-kc-design] body :is(#produtos,#estoque) .purchase-center>.purchase-toolbar{margin:0!important;padding:var(--kc-space-5)!important}
html[data-kc-design] body :is(#produtos,#estoque) .purchase-center>.purchase-tabs{margin:0!important}
.purchase-overview{gap:var(--kc-space-7)}
.purchase-routine-modal .kc-modal__body{display:grid;gap:var(--kc-space-7);padding:var(--kc-space-7)}
.purchase-routine-modal .kc-field{margin:0;gap:var(--kc-space-2)}
.purchase-routine-modal .purchase-routine-products{gap:var(--kc-space-5)}
.purchase-routine-modal .kc-field__help{margin:0}
.purchase-routine-modal .purchase-routine-basics>.kc-field{grid-column:1/-1}
.purchase-routine-modal :is(.kc-input,.kc-select){min-height:46px}

html[data-kc-design] body .purchase-routine-modal .kc-modal{width:min(640px,calc(100% - 24px))!important;max-width:640px!important}

/* The dedicated page uses the same shared components without stock-dialog
   typography. Preparing orders and following deliveries form separate columns. */
.purchase-overview-column{min-width:0;gap:var(--kc-space-4)}
.purchase-overview>[data-purchase-section="needs"]{grid-column:1/-1}
#compras .purchase-center{font-size:var(--kc-font-size-body);gap:var(--kc-space-5)}
#compras .purchase-center>.purchase-toolbar{padding:0;margin:0;border:0;background:transparent;gap:var(--kc-space-3);justify-content:space-between}
#compras .purchase-toolbar>.kc-toolbar__group{width:auto;min-width:0;flex-wrap:wrap}
#compras .purchase-center>.purchase-tabs{margin:0;width:fit-content;max-width:100%}
#compras .purchase-tabs .kc-tab{flex:0 0 auto;min-height:var(--kc-touch-target-min);font-size:var(--kc-font-size-body);padding:var(--kc-space-3) var(--kc-space-4)}
#compras .purchase-overview{gap:var(--kc-space-4)}
#compras .purchase-overview-section .kc-card__header{padding:var(--kc-space-4)!important;align-items:center;flex-direction:row;text-align:left;flex-wrap:nowrap}
#compras .purchase-overview-section .kc-card__header>div{flex:1;min-width:0}
#compras .purchase-overview-section .kc-card__body{padding:var(--kc-space-4)}
#compras .purchase-overview-section.is-empty .kc-card__header{padding-bottom:0!important}
#compras .purchase-overview-section.is-empty .kc-card__body{padding-top:var(--kc-space-2)}
#compras .kc-card__title{font-size:var(--kc-font-size-3xl);font-weight:var(--kc-font-weight-semibold)}
#compras .purchase-overview-section.is-empty .kc-card__title{font-size:var(--kc-font-size-body)}
#compras .purchase-history-row strong{font-size:var(--kc-font-size-body);font-weight:var(--kc-font-weight-semibold)}
#compras .purchase-history-row :is(small,.kc-field__help){font-size:var(--kc-font-size-caption);line-height:var(--kc-line-height-body)}
#compras .purchase-history-row>.kc-cluster{gap:var(--kc-space-2)}
#compras .purchase-history-row .kc-badge{max-width:100%;white-space:normal;text-align:left;line-height:var(--kc-line-height-body)}
#compras .purchase-center .kc-button{height:auto;min-height:var(--kc-touch-target-min);white-space:normal;font-size:var(--kc-font-size-body)}
#compras .purchase-center :is(.kc-input,.kc-select){min-height:var(--kc-touch-target-min);font-size:var(--kc-font-size-body)}
@media(max-width:640px){
  #compras .purchase-center>.purchase-tabs{width:100%}
  #compras .purchase-tabs .kc-tab{flex:1 0 auto}
  #compras .purchase-center>.purchase-toolbar>.kc-toolbar__group{flex:1;min-width:0;width:auto}
  #compras .purchase-toolbar>.kc-toolbar__group>.kc-button{width:100%;padding-inline:var(--kc-space-3)}
  #compras .purchase-history-row>.kc-cluster{width:100%}
  #compras .purchase-history-row>.kc-cluster>.kc-button{flex:1}
}

/* Purchase flow: current list, product/quantity, review, dispatch and receipt.
   These are compositions of shared fields, cards, badges and disclosures. */
.purchase-flow{display:flex;flex-wrap:wrap;gap:var(--kc-space-3) var(--kc-space-7);padding:0;margin:0;list-style:none}
.purchase-flow>li{display:flex;align-items:center;gap:var(--kc-space-2);min-width:0;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-caption)}
.purchase-flow>li[aria-current]{color:var(--kc-color-primary-surface-text);font-weight:var(--kc-font-weight-semibold)}
.purchase-flow .kc-badge{min-width:var(--kc-space-7);padding-inline:var(--kc-space-2)}
.purchase-flow svg{width:var(--kc-icon-size-sm);height:var(--kc-icon-size-sm)}
.purchase-draft-name{max-width:640px;margin:0}
.purchase-current-summary>.kc-card__footer{justify-content:stretch}
.purchase-current-summary>.kc-card__footer>.kc-button{width:100%}
.purchase-center .purchase-add{margin:0;padding:var(--kc-space-4);border-radius:var(--kc-component-card-radius)}
.purchase-center .purchase-add>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--kc-space-3);margin-top:var(--kc-space-3);align-items:end}
.purchase-center .purchase-add .kc-field{min-width:0;margin:0}
.purchase-center .purchase-add .purchase-quantity{width:100%;grid-template-columns:minmax(64px,.5fr) minmax(0,1fr)}
.purchase-center .purchase-add button{grid-column:auto;min-height:var(--kc-touch-target-min)}
.purchase-review-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.48fr);align-items:start;gap:var(--kc-space-5)}
.purchase-review-layout>*{min-width:0}
.purchase-review-options{align-content:start;gap:var(--kc-space-4)}
.purchase-review-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.55fr);align-items:end;gap:var(--kc-space-3)}
.purchase-list-drawer .purchase-list-heading{align-items:center;justify-content:space-between}
.purchase-list-drawer .purchase-list-heading>.kc-field{flex:1 1 260px;max-width:640px}
.purchase-list-drawer .purchase-list-heading>.kc-badge{flex:none}
.purchase-list-drawer .purchase-review-items .kc-card__header{flex-direction:row;text-align:left}
.purchase-list-drawer :is(.kc-field,.kc-card__title){margin:0}
.purchase-list-drawer .kc-modal__body{align-content:start;gap:var(--kc-space-5)}
.purchase-list-drawer .kc-card__title{font-size:var(--kc-font-size-3xl);font-weight:var(--kc-font-weight-semibold)}
.purchase-list-drawer .purchase-item{align-items:flex-start;padding:var(--kc-space-4) 0;gap:var(--kc-space-3)}
.purchase-list-drawer .purchase-item-copy{flex-basis:100%}
.purchase-list-drawer .purchase-item-controls{width:100%;justify-content:flex-start}
.purchase-list-drawer .purchase-item-controls>.purchase-quantity{flex:1 1 220px;max-width:340px}
.purchase-list-drawer .purchase-item-controls>.kc-button{flex:none}
.purchase-list-drawer .purchase-item-controls>.kc-button--icon{margin-left:auto}
.purchase-list-drawer .kc-modal__footer{display:flex;justify-content:space-between;align-items:center;gap:var(--kc-space-3)}
.purchase-review-back,.purchase-review-actions{display:flex;align-items:center;gap:var(--kc-space-3);flex-wrap:wrap;min-width:0;max-width:100%}
.purchase-review-actions{justify-content:flex-end}
.purchase-review-actions>.kc-button{flex:0 1 auto}
.purchase-review-back .purchase-footer-count{margin:0}
.purchase-receiving .kc-card__header{align-items:center;flex-direction:row;text-align:left}
.purchase-receiving .kc-card__header>.kc-help-anchor{flex:1;min-width:0}
.purchase-receiving.kc-card{overflow:visible}
.purchase-receiving-summary,.purchase-receipt-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--kc-space-3);font-size:var(--kc-font-size-caption);color:var(--kc-color-text-secondary)}
.purchase-receiving-summary>.kc-badge{max-width:100%;white-space:normal;text-align:left;line-height:var(--kc-line-height-body)}
.purchase-receipt-row>span{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
.purchase-share-tools{display:grid;gap:var(--kc-space-5)}
.purchase-share-tools>.kc-stack{gap:var(--kc-space-2)}
.purchase-send-modal .kc-modal{width:min(760px,calc(100% - var(--kc-space-7)));max-width:760px}
@media(min-width:1001px){.purchase-current-summary{position:sticky;top:var(--kc-space-5)}}
@media(max-width:1000px){.purchase-review-layout{grid-template-columns:minmax(0,1fr)}.purchase-review-options{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
@media(max-width:640px){
  .purchase-flow{gap:var(--kc-space-2) var(--kc-space-4)}
  .purchase-flow>li{font-size:var(--kc-font-size-caption)}
  .purchase-flow>li .kc-badge{min-width:var(--kc-space-6)}
  .purchase-review-options{grid-template-columns:minmax(0,1fr)}
  .purchase-review-filters{grid-template-columns:minmax(0,1fr) minmax(128px,.6fr)}
  .purchase-list-drawer .kc-modal__footer{display:flex;flex-direction:column;align-items:stretch}
  .purchase-review-back{justify-content:space-between}
  .purchase-review-actions{display:flex;justify-content:stretch;gap:var(--kc-space-2)}
  .purchase-review-actions>.kc-button{flex:1 1 140px}
  .purchase-list-drawer .purchase-item-controls>.purchase-quantity{max-width:none;flex-basis:100%}
  .purchase-center .purchase-add>div{grid-template-columns:minmax(0,1fr)}
  .purchase-center .purchase-add button{width:100%}
  .purchase-send-modal .kc-cluster>.kc-button{flex:1}
}

/* Neutralize the Admin's legacy aside layout only in these two compositions. */
#compras .purchase-current-summary{display:block;padding:0!important;gap:0;align-self:start;height:auto}
.purchase-list-drawer .purchase-review-options{padding:0!important;border:0!important;border-radius:0;background:transparent;box-shadow:none;position:static;height:auto}
#compras .purchase-toolbar--list>.kc-toolbar__group:first-child{flex:1 1 320px;max-width:640px}
#compras .purchase-toolbar--list>.kc-toolbar__group:last-child{flex:0 0 auto;margin-left:auto}
#compras .purchase-toolbar--list .kc-field{width:100%;min-width:0;max-width:none}
#compras .purchase-center .kc-select,.purchase-list-drawer .kc-select{height:auto!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.purchase-center .purchase-add .kc-input-group--unified>.kc-input-group__control{border:0!important;border-radius:0!important;box-shadow:none!important}
html[data-kc-design] body #compras .purchase-tabs.kc-tabs{flex-wrap:nowrap!important;overflow:auto!important}
html[data-kc-design] body #compras .purchase-tabs.kc-tabs>.kc-tab{flex:0 0 auto!important;white-space:nowrap!important}
@media(max-width:640px){
  #compras .purchase-toolbar--list>.kc-toolbar__group:first-child{flex:1 1 180px;max-width:none}
  #compras .purchase-toolbar--list>.kc-toolbar__group:last-child{flex:0 0 auto;align-self:flex-end}
}

.purchase-list-drawer .purchase-order-identity>.kc-disclosure__summary{justify-content:space-between;flex-wrap:wrap;gap:var(--kc-space-2);min-height:var(--kc-touch-target-min)}
.purchase-list-drawer .purchase-review-options .kc-choice{text-transform:none;letter-spacing:normal;font-size:var(--kc-font-size-body);font-weight:var(--kc-font-weight-regular);min-height:var(--kc-touch-target-min)}
.purchase-list-drawer [data-purchase-status].kc-alert--success{padding:var(--kc-space-2) var(--kc-space-3);font-size:var(--kc-font-size-caption)}

/* Price comparisons share the Purchases overview and keep the full row clickable. */
.purchase-price-increases{grid-column:1/-1}
.purchase-price-row{width:100%;height:auto;min-height:var(--kc-touch-target-min);display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);text-align:left;white-space:normal}
.purchase-price-row>span:first-child{flex:1;min-width:0;display:grid;gap:var(--kc-space-1)}
.purchase-price-row>span:first-child>strong{overflow-wrap:anywhere}
.purchase-price-row small{font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-medium);color:var(--kc-color-text-muted)}
.purchase-price-row>strong{flex-shrink:0;color:var(--kc-color-warning-surface-text);font-variant-numeric:tabular-nums}

.purchase-needs-tools{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);flex-wrap:wrap;margin-bottom:var(--kc-space-3)}
.purchase-history-row.purchase-need-selectable{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--kc-space-3)}
.purchase-need-selectable>div:not(.kc-cluster){display:grid;gap:var(--kc-space-1);min-width:0}
.purchase-need-check.kc-choice{min-width:var(--kc-touch-target-min);min-height:var(--kc-touch-target-min);justify-content:center}
.purchase-need-batch-row{display:grid;grid-template-columns:minmax(0,1fr) 160px;align-items:center;gap:var(--kc-space-3)}
.purchase-need-batch-row>div{min-width:0;overflow-wrap:anywhere}
.purchase-need-batch-row small{display:block;color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-caption)}
.purchase-needs-modal .kc-modal{width:min(640px,calc(100% - 24px))}
@media(max-width:640px){.purchase-history-row.purchase-need-selectable{grid-template-columns:auto minmax(0,1fr)}.purchase-need-selectable>.kc-cluster{grid-column:2}.purchase-needs-tools>button{width:100%}.purchase-need-batch-row{grid-template-columns:minmax(0,1fr)}}
