/* BEM GESTÃO • PEDIDOS P30 • SOMENTE #screen-compras e #screen-gerente. */
/* Ícones e fotos reais: exibição integral, centralizada, sem ampliar nem recortar. */
#screen-compras .product-thumb, #screen-gerente .product-thumb {
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;flex-shrink:0!important;
  overflow:hidden!important;padding:7px!important;
  background:linear-gradient(155deg,#fff 0%,#f8f4fc 100%)!important;
  border:1px solid #e7deec!important;border-radius:19px!important;
  box-shadow:0 6px 19px rgba(58,35,76,.07)!important;
}
#screen-compras .product-thumb img,#screen-gerente .product-thumb img {
  display:block!important;max-width:100%!important;max-height:100%!important;
  width:100%!important;height:100%!important;object-fit:contain!important;
  object-position:50% 50%!important;margin:auto!important;
  transform:none!important;filter:none!important;border-radius:12px!important;
}
#screen-compras .product-thumb:hover img,#screen-gerente .product-thumb:hover img{transform:none!important;}
#screen-compras .product-thumb-fruit,#screen-gerente .product-thumb-fruit{background:linear-gradient(145deg,#fff,#fcf6fe)!important;}
#screen-compras .product-photo-fallback,#screen-gerente .product-photo-fallback{margin:auto!important;line-height:1!important;text-align:center!important;}
#screen-compras,#screen-gerente{--bem-purple:#61258c;--bem-dark:#291936;--bem-outline:#e6dbe8;--bem-ink:#2c2235;--bem-hint:#6a5c72;--bem-focus:#e6a719;}
#screen-compras .purchase-2026-hero-clean{
  isolation:isolate;border-radius:27px!important;min-height:126px!important;
  background:radial-gradient(circle at 88% 0%,rgba(255,202,108,.23),transparent 41%),linear-gradient(119deg,#281837,#50236d 60%,#7437a0)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  box-shadow:0 18px 40px rgba(43,23,58,.16)!important;padding:19px 22px!important;
}
#screen-compras .purchase-2026-hero-clean:before{content:"";position:absolute;right:12%;bottom:-64px;width:200px;height:180px;z-index:-1;pointer-events:none;background:radial-gradient(circle,rgba(255,255,255,.12),transparent 68%);}
#screen-compras .purchase-2026-copy .eyebrow{color:#eee2f7!important;letter-spacing:.11em!important;}
#screen-compras .purchase-2026-copy h2{font-size:clamp(1.32rem,3vw,1.8rem)!important;line-height:1.17!important;font-weight:800!important;color:#fff!important;letter-spacing:-.035em!important;}
#screen-compras .purchase-2026-copy>p{font-size:.78rem!important;line-height:1.55!important;color:#eee4f3!important;max-width:58ch!important;}
#screen-compras .purchase-build-badge{background:rgba(255,255,255,.14)!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important;letter-spacing:.07em!important;}
/* Etapas nítidas: todas as 4 ações visíveis e clicáveis, sem textos minúsculos. */
#screen-compras .purchase-workspace-tabs-four{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;padding:8px!important;margin-bottom:16px!important;
 background:rgba(255,255,255,.96)!important;border:1px solid var(--bem-outline)!important;
 border-radius:23px!important;box-shadow:0 10px 32px rgba(55,33,67,.09)!important;
 -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);}
#screen-compras .purchase-workspace-tabs-four .purchase-workspace-tab{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:10px!important;min-width:0!important;min-height:64px!important;padding:11px!important;border-radius:16px!important;
  transition:background-color .16s ease,box-shadow .16s ease,transform .16s ease!important;
}
#screen-compras .purchase-workspace-tab>span:last-child{min-width:0!important;gap:3px!important;}
#screen-compras .purchase-workspace-tab .purchase-tab-icon{display:grid!important;place-items:center!important;flex:0 0 36px!important;
  width:36px!important;height:36px!important;font-size:1.05rem!important;border-radius:12px!important;}
#screen-compras .purchase-workspace-tab strong{font-size:.75rem!important;line-height:1.25!important;color:inherit!important;font-weight:850!important;white-space:normal!important;}
#screen-compras .purchase-workspace-tab small{display:block!important;font-size:.63rem!important;line-height:1.3!important;color:inherit!important;opacity:.84!important;white-space:normal!important;}
#screen-compras .purchase-workspace-tab.active{background:linear-gradient(125deg,#57207f,#803cb0)!important;box-shadow:0 9px 20px rgba(102,40,152,.18)!important;}
#screen-compras .purchase-workspace-tab.active *{color:#fff!important;-webkit-text-fill-color:#fff!important;}
#screen-compras .purchase-workspace-action{border:1px solid rgba(104,46,146,.14)!important;background:#f8f2fc!important;}
#screen-compras .purchase-workspace-tab:focus-visible,#screen-gerente button:focus-visible,#screen-compras button:focus-visible,
#screen-gerente input:focus-visible,#screen-compras input:focus-visible,#screen-gerente select:focus-visible,#screen-compras select:focus-visible{
  outline:3px solid var(--bem-focus)!important;outline-offset:2px!important;
}
/* Indicadores simples com bom contraste e números grandes. */
#screen-compras .purchase-orders-card,#screen-compras .purchase-market-2026,#screen-gerente .manager-builder,#screen-gerente .manager-draft-board{
  border-radius:24px!important;border:1px solid #e9e0ed!important;
  background:linear-gradient(165deg,#fff 0%,#fdfaff 100%)!important;
  box-shadow:0 14px 36px rgba(42,24,58,.07)!important;
}
#screen-compras .purchase-orders-card .section-head h2,#screen-gerente .manager-builder-head h2,#screen-gerente .manager-live-list-head h2{
 color:var(--bem-ink)!important;font-weight:800!important;letter-spacing:-.025em!important;
}
#screen-compras .purchase-status-guide{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:7px!important;padding:5px 0 13px!important;}
#screen-compras .purchase-guide-chip{font-size:.66rem!important;line-height:1.35!important;white-space:normal!important;min-height:32px!important;display:inline-flex!important;align-items:center!important;border-radius:999px!important;padding:6px 10px!important;}
#screen-compras .purchase-toolbar input,#screen-compras .purchase-toolbar select{min-height:50px!important;font-size:.87rem!important;border-radius:13px!important;}
#screen-compras .purchase-market-summary{gap:10px!important;}
#screen-compras .market-stat{min-height:81px!important;border-radius:18px!important;padding:13px!important;}
#screen-compras .market-stat strong{font-size:clamp(1.35rem,3vw,1.7rem)!important;line-height:1.1!important;}
#screen-compras .market-stat span{font-size:.68rem!important;letter-spacing:0!important;}
#screen-compras .purchase-market-command{gap:12px!important;}
#screen-compras .purchase-market-state small{font-size:.69rem!important;}
#screen-compras .purchase-market-state strong{font-size:1rem!important;}
#screen-compras .purchase-refresh-btn{min-height:46px!important;font-size:.76rem!important;}
#screen-compras .purchase-market-instruction{margin:0!important;max-width:80ch!important;color:#605469!important;font-size:.8rem!important;line-height:1.6!important;}
#screen-compras .purchase-market-instruction b{font-size:inherit!important;color:#512477!important;}
#screen-compras .bem-p30-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;margin:0!important;}
#screen-compras .bem-p30-flow>div{display:flex;align-items:center;gap:9px;min-width:0;padding:11px 12px;border:1px solid #e9e1ec;border-radius:15px;background:#faf7fc;}
#screen-compras .bem-p30-flow span{flex:0 0 27px;display:grid;place-items:center;background:#672991;color:#fff;border-radius:999px;width:27px;height:27px;font-weight:800;font-size:.76rem;}
#screen-compras .bem-p30-flow strong{font-size:.72rem;line-height:1.35;color:#3e2e48;}
/* Compra por produto: fotografia integral e estado visível. */
#screen-compras .market-buy-row{border-radius:21px!important;padding:15px!important;gap:12px!important;border:1px solid #e6dce9!important;box-shadow:0 9px 22px rgba(47,27,58,.055)!important;}
#screen-compras .market-buy-row:hover{box-shadow:0 12px 28px rgba(45,30,65,.09)!important;}
#screen-compras .market-buy-row.is-bought{border-left:4px solid #2c9b5f!important;background:#f1fbf5!important;}
#screen-compras .market-buy-row.is-missing{border-left:4px solid #cd5b47!important;background:#fff7f5!important;}
#screen-compras .market-buy-main{grid-template-columns:76px minmax(0,1fr)!important;gap:14px!important;}
#screen-compras .market-buy-main .product-thumb{width:76px!important;height:76px!important;min-width:76px!important;border-radius:18px!important;}
#screen-compras .market-buy-copy{gap:5px!important;}
#screen-compras .market-buy-copy strong{font-size:1rem!important;line-height:1.3!important;overflow-wrap:anywhere!important;}
#screen-compras .market-buy-copy b{font-size:1.1rem!important;}
#screen-compras .market-buy-copy small{font-size:.72rem!important;line-height:1.35!important;}
#screen-compras .market-buy-actions{gap:8px!important;}
#screen-compras .market-action{min-height:50px!important;padding:10px!important;border-radius:14px!important;font-size:.8rem!important;font-weight:800!important;}
#screen-compras .market-action.bought{background:linear-gradient(125deg,#157f4e,#23a46a)!important;}
#screen-compras .market-action.missing{color:#a03832!important;border:1px solid #e2afaa!important;background:#fff!important;}
#screen-compras .market-action.undo{font-size:.7rem!important;min-height:45px!important;}
#screen-compras .market-origin summary{font-size:.73rem!important;min-height:42px!important;}
#screen-compras .market-sector-title{background:#f3edf9!important;color:#57227e!important;border-radius:15px!important;}
#screen-compras .market-sector-title span{font-size:.85rem!important;}
#screen-compras .purchase-manual-add>summary{min-height:62px!important;}
#screen-compras .purchase-manual-add strong{font-size:.8rem!important;}
#screen-compras .purchase-manual-add small{font-size:.68rem!important;line-height:1.4!important;}
#screen-compras .purchase-market-finish-bar{background:#30203c!important;border:1px solid rgba(255,255,255,.11)!important;box-shadow:0 14px 29px rgba(30,16,44,.18)!important;}
#screen-compras .purchase-market-finish-bar .primary-btn{min-height:52px!important;font-size:.85rem!important;}
#screen-compras .bem-p30-nf-tip,.bem-p30-purchase-nf-hint{display:flex;gap:12px;align-items:flex-start;padding:14px 15px;border:1px solid #dfd1eb;border-radius:17px;background:linear-gradient(135deg,#f6effc,#fffaf3);}
#screen-compras .bem-p30-nf-tip>div{display:grid;gap:3px;}
#screen-compras .bem-p30-nf-symbol{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:12px;background:#68318c;color:#fff;font-size:1.1rem;}
#screen-compras .bem-p30-nf-tip strong,.bem-p30-purchase-nf-hint strong{font-size:.86rem;color:#4c2866;line-height:1.4;}
#screen-compras .bem-p30-nf-tip p,.bem-p30-purchase-nf-hint span{margin:0;font-size:.75rem;line-height:1.55;color:#635670;}
#screen-compras .premium-purchase-card{border-radius:17px!important;overflow:visible!important;}
#screen-compras .order-product-main-2026 .product-thumb{width:76px!important;height:76px!important;min-width:76px!important;}
#screen-compras .order-product-copy-2026>strong{font-size:.92rem!important;line-height:1.3!important;overflow-wrap:anywhere!important;}
#screen-compras .order-product-meta-2026 small{font-size:.66rem!important;}
#screen-compras .order-product-meta-2026 b{font-size:.85rem!important;}
#screen-compras .order-item-actions-2026 .premium-action,#screen-compras .request-decision-footer button,#screen-compras .request-claim-footer button,#screen-compras .request-purchase-footer button{
 min-height:46px!important;font-size:.75rem!important;line-height:1.3!important;}
#screen-compras .request-approve-all-btn{background:linear-gradient(120deg,#176c46,#248c5c)!important;color:#fff!important;}
#screen-compras .request-reject-all-btn{background:#fff!important;color:#a13937!important;border:1px solid #dfb8b6!important;}
/* Formulário da gerente: o ato principal tem um nome, não um + solto. */
#screen-gerente .manager-builder-sticky{padding:17px!important;}
#screen-gerente .manager-builder-head{gap:12px!important;}
#screen-gerente .manager-builder-head h2{font-size:1.26rem!important;}
#screen-gerente .bem-p30-manager-hint{margin:5px 0 0!important;max-width:50ch;color:#6a5c72;font-size:.78rem;line-height:1.55;}
#screen-gerente .manager-item-form{display:grid!important;gap:12px!important;}
#screen-gerente .manager-item-form label>span{font-size:.79rem!important;font-weight:800!important;color:#3e3046!important;}
#screen-gerente .manager-item-form input,#screen-gerente .manager-item-form select{width:100%!important;min-height:54px!important;border-radius:15px!important;border:1px solid #e0d5e6!important;background:#fff!important;color:#332540!important;font-size:.95rem!important;}
#screen-gerente .bem-p30-field-hint{display:block;margin-top:5px;font-size:.69rem;line-height:1.45;color:#756580;font-weight:500;}
#screen-gerente .manager-urgent-check{min-height:60px!important;border-radius:15px!important;padding:10px!important;}
#screen-gerente .manager-urgent-check strong{font-size:.9rem!important;}
#screen-gerente .manager-urgent-check small{font-size:.7rem!important;line-height:1.4!important;}
#screen-gerente #managerFloatingAddBtn{position:relative!important;inset:auto!important;transform:none!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;min-height:56px!important;height:auto!important;max-width:none!important;
 border:1px solid #773a9d!important;border-radius:16px!important;
 padding:13px 18px!important;margin-top:3px!important;
 background:linear-gradient(130deg,#642691,#803cad)!important;color:#fff!important;
 font:800 .93rem/1.3 Poppins,sans-serif!important;letter-spacing:.015em!important;white-space:normal!important;
 box-shadow:0 12px 25px rgba(92,36,142,.18)!important;
}
#screen-gerente #managerFloatingAddBtn:disabled{opacity:.58!important;box-shadow:none!important;cursor:wait!important;}
#screen-gerente #managerInlineFinalizeBtn{min-height:56px!important;font-size:.89rem!important;line-height:1.25!important;border-radius:15px!important;}
#screen-gerente .manager-draft-item{border-radius:17px!important;padding:12px!important;box-shadow:0 7px 18px rgba(54,35,67,.055)!important;}
#screen-gerente .manager-draft-item .product-thumb{width:76px!important;height:76px!important;min-width:76px!important;}
#screen-gerente .market-item-copy>strong{font-size:.95rem!important;line-height:1.35!important;}
#screen-gerente .market-item-data small{font-size:.68rem!important;}
#screen-gerente .market-item-data b{font-size:.88rem!important;}
#screen-gerente .market-row-actions button{min-height:46px!important;font-size:.77rem!important;}
#screen-gerente .manager-workspace-tabs button{min-height:52px!important;font-size:.76rem!important;}
#screen-compras button:not(:disabled):active,#screen-gerente button:not(:disabled):active{transform:translateY(1px);}
@media(min-width:761px){#screen-compras .market-buy-actions{min-width:270px!important;}}
@media(max-width:760px){
 #screen-compras .purchase-2026-hero-clean{padding:16px!important;min-height:auto!important;border-radius:22px!important;}
 #screen-compras .purchase-workspace-tabs-four{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:7px!important;position:relative!important;top:auto!important;}
 #screen-compras .purchase-workspace-tabs-four .purchase-workspace-tab{min-height:68px!important;padding:9px!important;gap:8px!important;}
 #screen-compras .purchase-workspace-tab strong{font-size:.7rem!important;}
 #screen-compras .purchase-workspace-tab small{font-size:.6rem!important;}
 #screen-compras .purchase-workspace-tab .purchase-tab-icon{width:32px!important;height:32px!important;flex-basis:32px!important;}
 #screen-compras .purchase-market-2026{padding:12px!important;gap:12px!important;}
 #screen-compras .bem-p30-flow{grid-template-columns:1fr;gap:6px!important;}
 #screen-compras .bem-p30-flow>div{min-height:39px;padding:7px 9px!important;}
 #screen-compras .bem-p30-flow strong{font-size:.72rem!important;}
 #screen-compras .purchase-market-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 #screen-compras .market-stat{min-height:74px!important;padding:12px!important;}
 #screen-compras .market-buy-row{grid-template-columns:1fr!important;grid-template-areas:'main' 'actions' 'origin'!important;padding:12px!important;}
 #screen-compras .market-buy-main{grid-template-columns:72px minmax(0,1fr)!important;}
 #screen-compras .market-buy-main .product-thumb{width:72px!important;height:72px!important;min-width:72px!important;}
 #screen-compras .market-buy-actions{width:100%!important;min-width:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 #screen-compras .market-action{min-width:0!important;padding:9px 6px!important;font-size:.79rem!important;}
 #screen-compras .purchase-market-finish-bar{bottom:6px!important;}
 #screen-compras .purchase-market-finish-bar>div{display:grid!important;}
 #screen-compras .purchase-market-finish-bar strong{font-size:.68rem!important;}
 #screen-compras .purchase-market-finish-bar small{font-size:.62rem!important;}
 #screen-compras .purchase-market-finish-bar .primary-btn{width:100%!important;}
 #screen-compras .order-product-main-2026 .product-thumb{width:70px!important;height:70px!important;min-width:70px!important;}
 #screen-compras .order-item-actions-2026{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 #screen-compras .order-item-actions-2026 .premium-action{min-height:46px!important;font-size:.71rem!important;}
 #screen-gerente .manager-builder-sticky{padding:13px!important;}
 #screen-gerente .manager-draft-item .product-thumb{width:69px!important;height:69px!important;min-width:69px!important;}
}
@media(max-width:375px){
 #screen-compras .purchase-workspace-tabs-four .purchase-workspace-tab{padding:8px 6px!important;gap:6px!important;}
 #screen-compras .purchase-workspace-tab strong{font-size:.65rem!important;}
 #screen-compras .purchase-workspace-tab small{font-size:.56rem!important;}
 #screen-compras .purchase-workspace-tab .purchase-tab-icon{width:29px!important;height:29px!important;flex-basis:29px!important;}
 #screen-compras .market-buy-main{grid-template-columns:62px minmax(0,1fr)!important;gap:8px!important;}
 #screen-compras .market-buy-main .product-thumb{width:62px!important;height:62px!important;min-width:62px!important;}
 #screen-compras .market-action{font-size:.73rem!important;}
}
@media(prefers-reduced-motion:reduce){
 #screen-compras .purchase-workspace-tab,#screen-compras .market-buy-row,#screen-compras .product-thumb img,#screen-gerente .product-thumb img,
 #screen-compras button,#screen-gerente button{animation:none!important;transition:none!important;}
}
