/* BizCore V271.5.17 — Pricing-only pinned header & scrollable table.
   Existing filters, ordering, paging, monitors, transactions remain unmodified. */
@media (min-width:1101px) {
  /* The application shell is already flex. Contain scrolling to Pricing rows,
     rather than allowing records to move through monitor/toolbar gaps. */
  html body .content:has(> #page-costing.active) {
    min-height: 0 !important;
    overflow: hidden !important;
    padding-bottom: 8px !important;
  }
  html body #page-costing.active {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--bc-page-bg, #f4f7fa);
  }
  html body #page-costing.active > .bc5-strip,
  html body #page-costing.active > .bc5-note,
  html body #page-costing.active .pricing-main-workspace > .bc5-strip,
  html body #page-costing.active .pricing-main-workspace > .bc5-note {
    flex: 0 0 auto !important;
    position: relative;
    z-index: 2;
  }
  /* V271.5.17.2: tighten only the space below the Pricing monitors.
     Keep the monitor dimensions and the 5px toolbar/table separation. */
  html body #page-costing.active .pricing-main-workspace {
    gap: 0 !important;
  }
  html body #page-costing.active .pricing-main-workspace > .bc5-note {
    margin-bottom: 4px !important;
  }
  html body #page-costing.active .pricing-main-workspace {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    margin-top: 0 !important;
    background: var(--bc-page-bg, #f4f7fa);
  }
  /* The Phase 5A monitor must occupy the full register width even under older
     workspace align-items:start rules. Keep its existing 200px lead/card ratios. */
  html body #page-costing.active .pricing-main-workspace > .bc5-strip,
  html body #page-costing.active .pricing-main-workspace > .bc5-note {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    align-self: stretch !important;
  }
  html body #page-costing.active .pricing-main-workspace > .bc5-strip {
    min-height: 112px !important;
  }
  html body #page-costing.active .pricing-main-workspace > .bc5-strip > .bc5-other {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  html body #page-costing.active .pricing-register-area {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--bc-page-bg, #f4f7fa) !important;
  }
  html body #page-costing.active .pricing-register-toolbar {
    position: relative !important;
    top: auto !important;
    flex: 0 0 48px !important;
    z-index: 5 !important;
    margin-bottom: 5px !important;
  }
  /* The 10px breathing room is an opaque surface, not an open reveal strip. */
  html body #page-costing.active .pricing-register-card {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: #fff !important;
    position: relative !important;
    z-index: 2 !important;
  }
  html body #page-costing.active .pricing-register-table-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    background: #fff !important;
    position: relative;
  }
  html body #page-costing.active .pricing-register-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }
  html body #page-costing.active .pricing-register-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 4 !important;
    background: var(--c-eaf2f9, #eaf2f9) !important;
    background-clip: padding-box !important;
    box-shadow: 0 1px 0 #cbd5e1 !important;
  }
  html body #page-costing.active .pricing-register-card > .rows-per-page-bar {
    flex: 0 0 auto !important;
    background: #fff !important;
    z-index: 2 !important;
    border-top: 1px solid #e2e8f0;
  }
}
/* The original tablet/mobile scroll implementation stays unchanged. */

/* Clear Filters icon state is presentation-only. Existing clear action remains. */
html body #page-costing .pricing-register-toolbar #pricing-clear-filters-btn:disabled,
html body #page-costing .pricing-register-toolbar #pricing-clear-filters-btn.bc-clear-inactive {
  opacity: .52 !important;
  cursor: default !important;
  background: #f8fafc !important;
  border-color: #dce3ec !important;
}
html body #page-costing .pricing-register-toolbar #pricing-clear-filters-btn:disabled > i,
html body #page-costing .pricing-register-toolbar #pricing-clear-filters-btn.bc-clear-inactive > i {
  color: #94a3b8 !important;
}
html body #page-costing .pricing-register-toolbar #pricing-clear-filters-btn.bc-clear-active {
  opacity: 1 !important;
  background: var(--c-edf5ff, #edf5ff) !important;
  border-color: var(--c-8bb4e6, #8bb4e6) !important;
  cursor: pointer !important;
}
html body #page-costing .pricing-register-toolbar #pricing-clear-filters-btn.bc-clear-active > i {
  color: var(--c-174b7a, #174b7a) !important;
}

/* V271.5.18 — Pricing-only individual soft monitor cards.
   Preserve current KPI contents, click targets, measurements and sticky table. */
@media (min-width:1101px) {
  html body #page-costing.active .pricing-main-workspace > .bc5-strip {
    display: flex !important;
    align-items: stretch !important;
    column-gap: var(--bc-ui-card-gap,8px) !important;
    margin: var(--bc-ui-panel-gap,5px) 0 6px !important;
    min-height: var(--bc-ui-card-height,112px) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
  }
  html body #page-costing.active .pricing-main-workspace > .bc5-strip > .bc5-lead {
    flex: 0 0 var(--bc-ui-monitor-lead-width,200px) !important;
    min-height: var(--bc-ui-card-height,112px) !important;
    border: 1px solid transparent !important;
    border-radius: var(--bc-ui-card-radius,10px) !important;
    box-shadow: 0 1px 4px rgba(15,23,42,.09) !important;
    overflow: hidden !important;
  }
  html body #page-costing.active .pricing-main-workspace > .bc5-strip > .bc5-other {
    display: grid !important;
    gap: var(--bc-ui-card-gap,8px) !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  html body #page-costing.active .pricing-main-workspace > .bc5-strip > .bc5-other > .bc5-card {
    min-height: var(--bc-ui-card-height,112px) !important;
    border: 1px solid var(--bc-ui-card-border,#e1e7ef) !important;
    border-radius: var(--bc-ui-card-radius,10px) !important;
    background: #fff !important;
    box-shadow: var(--bc-ui-card-shadow,0 1px 4px rgba(15,23,42,.07)) !important;
    overflow: hidden !important;
  }
  html body #page-costing.active .pricing-main-workspace > .bc5-strip > .bc5-other > .bc5-card:not(:disabled):hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
  }
  html body #page-costing.active .pricing-main-workspace > .bc5-strip > .bc5-other > .bc5-card[aria-pressed=true] {
    background: #eef4fb !important;
    border-color: var(--c-8bb4e6,#8bb4e6) !important;
    box-shadow: inset 0 -3px 0 var(--c-173a5e,#173a5e) !important;
  }
}

/* V271.5.19 — Decorative monitor icons for Pricing desktop ONLY.
   Do not modify KPI numbers, statuses, dimensions, click targets, or theme card surfaces. */
@media (min-width:1101px) {
  html body #page-costing.active .pricing-main-workspace > .bc5-strip :is(.bc5-lead,.bc5-card) {position:relative !important;}
  html body #page-costing.active .pricing-main-workspace > .bc5-strip :is(.bc5-lead,.bc5-card)::before {
    content:"";position:absolute;top:11px;left:12px;width:var(--bc-ui-icon-box,34px);height:var(--bc-ui-icon-box,34px);
    border-radius:9px;background:var(--pricing-icon-bg,#eff6ff);pointer-events:none;
  }
  html body #page-costing.active .pricing-main-workspace > .bc5-strip :is(.bc5-lead,.bc5-card)::after {
    content:"";position:absolute;top:17px;left:18px;width:var(--bc-ui-icon-size,22px);height:var(--bc-ui-icon-size,22px);
    background:var(--pricing-icon-color,#2563eb);pointer-events:none;
    -webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain;
    mask-position:center;mask-repeat:no-repeat;mask-size:contain;
  }
  /* The first card is narrow: place its icon at the right to preserve the KPI copy. */
  html body #page-costing.active .pricing-main-workspace > .bc5-strip > .bc5-lead::before {left:auto;right:12px;--pricing-icon-bg:rgba(255,255,255,.13);}
  html body #page-costing.active .pricing-main-workspace > .bc5-strip > .bc5-lead::after {left:auto;right:18px;--pricing-icon-color:#e6f3ff;}
  html body #page-costing.active .pricing-main-workspace > .bc5-strip > .bc5-lead > .bc5-label {padding-right:36px;}
  /* Leave card numbers in their original right-hand positions. */
  html body #page-costing.active .pricing-main-workspace > .bc5-strip .bc5-card-header > .bc5-label {padding-left:42px;}
  html body #page-costing.active .pricing-main-workspace > .bc5-strip .bc5-card > .bc5-description {padding-left:42px;}
  html body #page-costing.active .pricing-main-workspace > .bc5-strip .bc5-card:nth-child(1) {--pricing-icon-bg:#e8f2ff;--pricing-icon-color:#2563eb;}
  html body #page-costing.active .pricing-main-workspace > .bc5-strip .bc5-card:nth-child(2) {--pricing-icon-bg:#f1e8ff;--pricing-icon-color:#7c3aed;}
  html body #page-costing.active .pricing-main-workspace > .bc5-strip .bc5-card:nth-child(3) {--pricing-icon-bg:#e7f8ed;--pricing-icon-color:#16a34a;}
  html body #page-costing.active .pricing-main-workspace > .bc5-strip .bc5-card:nth-child(4) {--pricing-icon-bg:#feeaea;--pricing-icon-color:#dc2626;}
  html body #page-costing.active .pricing-main-workspace > .bc5-strip > .bc5-lead::after { -webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%209%205-9%205-9-5%209-5Z%22%2F%3E%3Cpath%20d%3D%22m3%2012%209%205%209-5%22%2F%3E%3Cpath%20d%3D%22m3%2017%209%205%209-5%22%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%209%205-9%205-9-5%209-5Z%22%2F%3E%3Cpath%20d%3D%22m3%2012%209%205%209-5%22%2F%3E%3Cpath%20d%3D%22m3%2017%209%205%209-5%22%2F%3E%3C%2Fsvg%3E"); }
  html body #page-costing.active .pricing-main-workspace > .bc5-strip > .bc5-other > .bc5-card:nth-child(1)::after { -webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%202h14M5%2022h14M7%202v5l5%205-5%205v5M17%202v5l-5%205%205%205v5%22%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%202h14M5%2022h14M7%202v5l5%205-5%205v5M17%202v5l-5%205%205%205v5%22%2F%3E%3C%2Fsvg%3E"); }
  html body #page-costing.active .pricing-main-workspace > .bc5-strip > .bc5-other > .bc5-card:nth-child(2)::after { -webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2022V4m0%201c5-3%207%203%2012%200v12c-5%203-7-3-12%200%22%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2022V4m0%201c5-3%207%203%2012%200v12c-5%203-7-3-12%200%22%2F%3E%3C%2Fsvg%3E"); }
  html body #page-costing.active .pricing-main-workspace > .bc5-strip > .bc5-other > .bc5-card:nth-child(3)::after { -webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8Z%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6M8%2015l3%203%205-6%22%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8Z%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6M8%2015l3%203%205-6%22%2F%3E%3C%2Fsvg%3E"); }
  html body #page-costing.active .pricing-main-workspace > .bc5-strip > .bc5-other > .bc5-card:nth-child(4)::after { -webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10.3%203.4-8.8%2015A2%202%200%200%200%203.2%2021h17.6a2%202%200%200%200%201.7-2.6l-8.8-15a2%202%200%200%200-3.4%200Z%22%2F%3E%3Cpath%20d%3D%22M12%209v4M12%2017h.01%22%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10.3%203.4-8.8%2015A2%202%200%200%200%203.2%2021h17.6a2%202%200%200%200%201.7-2.6l-8.8-15a2%202%200%200%200-3.4%200Z%22%2F%3E%3Cpath%20d%3D%22M12%209v4M12%2017h.01%22%2F%3E%3C%2Fsvg%3E"); }
}
