/* BN643 - Sitewide UI layer (emil-design-eng: specific properties, strong ease-out under 200ms, press feedback, focus for keyboard users, reduced motion). */
:root{--bn-ease-out:cubic-bezier(.23,1,.32,1)}
.bn643-ico{width:1.15em;height:1.15em;fill:currentColor;vertical-align:-.18em;flex:none;display:inline-block}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #15803d!important;outline-offset:2px!important}
:where(.btn,.bn-btn,.bn-quick-btn,.bn-action-sold,.fm-btn,.bn643-yes,.bn643-no){transition:transform 100ms var(--bn-ease-out)}
:where(.btn,.bn-btn,.bn-quick-btn,.bn-action-sold,.fm-btn,.bn643-yes,.bn643-no):active{transform:scale(.97)}
.bn643-confirm{box-sizing:border-box;width:100%;flex:1 1 100%;grid-column:1/-1;margin:10px 0;padding:12px 14px;border:1px solid #fca5a5;background:#fef2f2;border-radius:12px;color:#7f1d1d;font-size:15px;max-width:520px;animation:bn643In 160ms var(--bn-ease-out) both}
.bn643-confirm p{margin:0 0 10px;white-space:pre-line;font-weight:600}
.bn643-row{display:flex;gap:8px;flex-wrap:wrap}
.bn643-yes,.bn643-no{min-height:44px;padding:0 16px;border-radius:10px;font:600 15px -apple-system,system-ui,Arial,sans-serif;cursor:pointer}
.bn643-yes{background:#b91c1c;border:1px solid #b91c1c;color:#fff}.bn643-no{background:#fff;border:1px solid #cbd5e1;color:#0f172a}
.bn643-toast{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:9990;display:flex;flex-direction:column;gap:8px;width:min(520px,calc(100% - 24px))}
.bn643-toast-item{display:flex;gap:10px;align-items:flex-start;background:#0f172a;color:#fff;border-radius:12px;padding:12px 14px;font-size:15px;box-shadow:0 10px 30px rgba(15,23,42,.25);animation:bn643In 160ms var(--bn-ease-out) both}
.bn643-x{margin-left:auto;background:transparent;border:0;color:#cbd5e1;font-size:22px;line-height:1;cursor:pointer;min-width:32px;min-height:32px}
@keyframes bn643In{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}
  :where(.btn,.bn-btn,.bn-quick-btn,.bn-action-sold,.fm-btn,.bn643-yes,.bn643-no):active{transform:none}
}

/* BN646 (emil-design-eng): occasional pop-overs open from their trigger; drawer uses the iOS drawer curve */
.bn614-menu{transform-origin:top right;animation:bn646Pop 150ms cubic-bezier(.23,1,.32,1) both}
@keyframes bn646Pop{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
#bn-notification-drawer{transition-timing-function:cubic-bezier(.32,.72,0,1)!important}
/* BN654 - phone layouts found by real-device captures */
@media (max-width:700px){
  /* Items: tools fold into one row so search and items show on the first screen */
  .bn-page-hero:has(.bn-inventory-notice-area){padding:14px 16px}
  .bn-page-hero:has(.bn-inventory-notice-area) .bn-kicker,.bn-page-hero:has(.bn-inventory-notice-area)>div:first-child>p{display:none}
  .bn-page-hero:has(.bn-inventory-notice-area) h1{margin:0}
  .bn-page-hero .bn-hero-actions:has(.bn-inventory-notice-area){display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
  .bn-hero-actions .bn-inventory-notice-area,.bn-hero-actions .bn-inventory-notice-card{display:contents}
  .bn-hero-actions .bn-notice-main{display:none}
  .bn-hero-actions:has(.bn-inventory-notice-area) .bn-btn{flex:1 1 auto;min-height:44px;padding:0 12px;font-size:14px;width:auto;margin:0}
  /* Print Tags: one clean card per item */
  table.bn-table:has([data-print-id]) thead{display:none}
  table.bn-table:has([data-print-id]),table.bn-table:has([data-print-id]) tbody{display:block}
  table.bn-table:has([data-print-id]) tr{display:grid!important;grid-template-columns:30px minmax(0,1fr) auto;gap:6px 10px;align-items:center;padding:12px;margin:0 0 8px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}
  table.bn-table:has([data-print-id]) td{display:block!important;padding:0!important;border:0!important;min-height:0!important;text-align:left!important}
  table.bn-table:has([data-print-id]) td::before{content:none!important;display:none!important}
  table.bn-table:has([data-print-id]) td:nth-child(1){grid-row:span 2;align-self:start}
  table.bn-table:has([data-print-id]) td:nth-child(1) input{width:22px;height:22px}
  table.bn-table:has([data-print-id]) td:nth-child(3){grid-column:2/3;color:#475569;font-size:14px}
  table.bn-table:has([data-print-id]) td:nth-child(3):empty{display:none!important}
  table.bn-table:has([data-print-id]) td:nth-child(4){grid-column:3;grid-row:1;font-weight:800}
  table.bn-table:has([data-print-id]) td:nth-child(5){grid-column:2/-1;display:flex!important;gap:8px}
  table.bn-table:has([data-print-id]) td:nth-child(5) .bn-pill{flex:1;min-height:40px;display:inline-flex;align-items:center;justify-content:center;margin:0}
}
.bn654-ft{display:none}
@media (max-width:700px){
  form.bn-filter-panel .bn654-ft{display:inline-flex;min-height:44px;align-items:center;justify-content:center}
  form.bn-filter-panel:not(.bn654-open) .bn-filter-grid>label:not(:first-child){display:none}
  form.bn-filter-panel:not(.bn654-open) .bn-filter-grid>a.bn-btn{display:none}
  form.bn-filter-panel .bn-filter-grid>label:first-child small,form.bn-filter-panel .bn-filter-grid>label:first-child p,form.bn-filter-panel .bn-filter-grid>label:first-child .text-muted{display:none}
}
@media (max-width:700px){.bn-simple-view-switch .bn-simple-note,.bn-bulk-summary-sub{display:none}}
@media (max-width:700px){.bn-bulk-summary-sub,.bn-simple-view-switch .bn-simple-note{display:none!important}}
