.bf-entry { display: none !important; }
.open-inventory-counts { display: none !important; }
@media (min-width: 769px) { body.pc-ui-preview .open-inventory-counts { display: inline-flex !important; } }
@media (min-width: 769px) {
  body.pc-ui-preview .topbar .meta { min-width: 0; flex: 1 1 auto; }
  body.pc-ui-preview #userMeta { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 769px) and (max-width: 1199px) {
  body.pc-ui-preview .topbar .actions { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 6px; }
  body.pc-ui-preview .topbar .actions button { min-height: 26px; padding: 3px 9px; }
  body.pc-ui-preview .topbar-main { gap: 10px; }
  body.pc-ui-preview .desktop-page-heading { min-width: 100px; }
}
@media (min-width: 769px) { body.pc-ui-preview .bf-entry { display: inline-flex !important; align-items: center; justify-content: center; width: auto; } body.pc-ui-preview .bf-entry-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; } }
body.pc-ui-preview #offlineReviewBtn[hidden]{display:none!important}
@media (min-width: 769px) { body.pc-ui-preview #businessFollowupDashboard.bf-entry { display: block !important; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e2e8f0; } body.pc-ui-preview #businessFollowupDashboard > .muted { margin-top: 8px; } }
.bf-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, .48); color: #1f2937; }
.bf-modal *, .bf-modal *::before, .bf-modal *::after { box-sizing: border-box; }
.bf-modal .bf-shell { display: flex; flex-direction: column; width: min(1140px, 100%); height: min(760px, calc(100dvh - 48px)); max-height: none; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #dce4e8; border-radius: 16px; box-shadow: 0 24px 80px rgba(15, 23, 42, .25); }
.bf-modal .bf-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; }
.bf-modal .bf-header > div, .bf-modal .bf-page-heading > div { min-width: 0; }
.bf-modal h2 { margin: 0; font-size: 20px; line-height: 1.5; }
.bf-modal h3 { margin: 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.bf-modal h4 { margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.bf-modal .bf-header p { margin: 4px 0 0; color: #64748b; font-size: 13px; overflow-wrap: anywhere; }
.bf-modal .bf-button { display: inline-flex; width: auto; min-height: 34px; align-items: center; justify-content: center; padding: 7px 12px; margin: 0; flex: 0 0 auto; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #334155; font-size: 13px; font-weight: 500; line-height: 1.3; cursor: pointer; }
.bf-modal .bf-button:hover { background: #f1f5f9; }
.bf-modal .bf-primary { background: #0f766e; border-color: #0f766e; color: #fff; }
.bf-modal .bf-primary:hover { background: #115e59; }
.bf-modal button:disabled { opacity: .5; cursor: wait; }
.bf-modal button:focus-visible, .bf-modal input:focus-visible, .bf-modal select:focus-visible, .bf-modal textarea:focus-visible { outline: 2px solid #0f766e; outline-offset: 2px; }
.bf-modal .bf-tabs { display: flex; flex: 0 0 auto; gap: 20px; padding: 0 24px; border-bottom: 1px solid #e2e8f0; }
.bf-modal .bf-tab { width: auto; margin: 0; padding: 12px 3px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #64748b; font-size: 14px; cursor: pointer; }
.bf-modal .bf-tab.is-active { border-bottom-color: #0f766e; color: #0f766e; font-weight: 700; }
.bf-modal .bf-content { min-height: 220px; overflow-y: auto; overflow-x: hidden; padding: 20px 24px 24px; overscroll-behavior: contain; }
.bf-modal .bf-page-heading, .bf-modal .bf-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.bf-modal .bf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bf-modal .bf-muted { color: #64748b; font-size: 12px; line-height: 1.7; margin: 5px 0 0; font-weight: 400; overflow-wrap: anywhere; }
.bf-modal .bf-notice { padding: 11px 13px; margin: 0 0 18px; border: 1px solid #d7e9e6; border-radius: 8px; background: #f2faf8; color: #45635d; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.bf-modal .bf-message { padding: 11px 13px; margin-bottom: 16px; border: 1px solid #a7d7c8; border-radius: 7px; background: #effaf6; color: #145e46; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.bf-modal .bf-message.bf-error { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.bf-modal [hidden] { display: none !important; }
.bf-modal .bf-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.bf-modal .bf-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; font-size: 13px; font-weight: 500; }
.bf-modal input, .bf-modal select, .bf-modal textarea { width: 100%; min-width: 0; min-height: 36px; margin: 0; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #1f2937; font: inherit; font-size: 13px; line-height: 1.5; }
.bf-modal textarea { resize: vertical; min-height: 88px; }
.bf-modal .bf-table-wrap { width: 100%; border: 1px solid #e2e8f0; border-radius: 9px; overflow: hidden; }
.bf-modal .bf-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0; font-size: 13px; }
.bf-modal .bf-table th, .bf-modal .bf-table td { padding: 12px 10px; border: 0; border-bottom: 1px solid #edf1f5; text-align: left; white-space: normal; overflow-wrap: anywhere; vertical-align: middle; }
.bf-modal .bf-table th { background: #f8fafc; color: #64748b; font-size: 12px; font-weight: 500; }
.bf-modal .bf-table th:first-child { width: 29%; }
.bf-modal .bf-table th:nth-child(2) { width: 12%; }
.bf-modal .bf-table th:nth-child(3) { width: 14%; }
.bf-modal .bf-table th:nth-child(4) { width: 14%; }
.bf-modal .bf-table th:nth-child(5) { width: 17%; }
.bf-modal .bf-table th:last-child { width: 14%; }
.bf-modal .bf-collection-table th:nth-child(3) { width: 10%; }
.bf-modal .bf-collection-table th:nth-child(4) { width: 18%; }
.bf-modal .bf-table tr:last-child td { border-bottom: 0; }
.bf-modal .bf-table td strong { font-weight: 600; }
.bf-modal .bf-table small { display: block; margin-top: 4px; color: #64748b; font-size: 11px; line-height: 1.6; }
.bf-modal .bf-table .bf-warning-text { color: #a16207; }
.bf-modal .bf-group-row th { background: #edf6f4; color: #285b52; font-weight: 700; }
.bf-modal .bf-group-row span { margin-left: 14px; font-weight: 400; }
.bf-modal .bf-badge { display: inline-block; padding: 3px 7px; margin: 2px 4px 2px 0; border-radius: 5px; background: #f1f5f9; color: #64748b; font-size: 12px; line-height: 1.5; }
.bf-modal .bf-warning { background: #fff5d9; color: #996800; }
.bf-modal .bf-danger { background: #fff0e8; color: #ae512b; }
.bf-modal .bf-money { font-variant-numeric: tabular-nums; font-weight: 600; }
.bf-modal .bf-empty { padding: 48px 16px; text-align: center; color: #64748b; font-size: 14px; line-height: 1.8; }
.bf-modal .bf-form-grid, .bf-modal .bf-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 22px; }
.bf-modal .bf-wide { grid-column: 1 / -1; }
.bf-modal .bf-details { margin: 18px 0 22px; font-size: 13px; }
.bf-modal .bf-details > div { min-width: 0; }
.bf-modal .bf-details dt { margin-bottom: 6px; color: #64748b; }
.bf-modal .bf-details dd { margin: 0; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.bf-modal .bf-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e5eaf0; min-width: 0; }
.bf-modal .bf-promise { margin-top: 14px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 9px; }
.bf-modal .bf-promise .bf-details { margin-top: 12px; }
.bf-modal .bf-promise .bf-section-heading { margin-bottom: 0; }
.bf-modal .bf-history-title { margin-top: 20px; color: #475569; }
.bf-modal .bf-history { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12px; }
.bf-modal .bf-history li { padding: 10px 0; border-bottom: 1px solid #edf1f5; overflow-wrap: anywhere; }
.bf-modal .bf-history li:last-child { border-bottom: 0; }
.bf-modal .bf-history strong { margin-right: 12px; font-weight: 600; }
.bf-modal .bf-history span, .bf-modal .bf-history-change { color: #64748b; }
.bf-modal .bf-history p { white-space: pre-wrap; margin: 5px 0 0; line-height: 1.7; }
.bf-modal .bf-form-context { margin: 0; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.bf-modal .bf-form-footer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e5eaf0; }
#inventoryCountsModal .ic-table th:first-child { width: 28%; }
#inventoryCountsModal .ic-table th:nth-child(2) { width: 16%; }
#inventoryCountsModal .ic-table th:nth-child(3) { width: 16%; }
#inventoryCountsModal .ic-table th:nth-child(4) { width: 30%; }
#inventoryCountsModal .ic-table th:last-child { width: auto; }
#inventoryCountsModal .ic-table input[type="number"], #inventoryCountsModal .ic-table input[type="text"] { width: 100%; }
#inventoryCountsModal .ic-material { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
#inventoryCountsModal .ic-material input { width: 18px; min-height: 18px; margin-top: 2px; flex: 0 0 auto; }
#inventoryCountsModal .ic-material span { min-width: 0; }
#inventoryCountsModal .bf-button[data-action="create"], #inventoryCountsModal .bf-button[data-action="approve"] { background: #0f766e; border-color: #0f766e; color: #fff; }
#inventoryCountsModal #inventoryCountForm button[type="submit"] { background: #0f766e; border-color: #0f766e; color: #fff; }
.bf-modal .bf-reload { margin-top: 16px; }
@media (max-width: 1100px) { .bf-modal { padding: 18px; } .bf-modal .bf-shell { height: calc(100dvh - 36px); } .bf-modal .bf-header { padding: 18px 20px 14px; } .bf-modal .bf-tabs { padding: 0 20px; } .bf-modal .bf-content { padding: 18px 20px 22px; } .bf-modal .bf-table th, .bf-modal .bf-table td { padding: 10px 8px; } .bf-modal .bf-table .bf-button { padding: 6px 8px; font-size: 12px; } }
@media (max-width: 800px) { .bf-modal .bf-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bf-modal .bf-table { font-size: 12px; } .bf-modal .bf-table .bf-button { padding: 6px 4px; } .bf-modal .bf-page-heading { align-items: flex-start; } }
#contractRenewalsModal, #businessFollowupsModal { z-index: 150; }
@media (max-width: 768px) {
  #contractRenewalsModal .bf-details { grid-template-columns: minmax(0, 1fr); }
  #contractRenewalsModal .bf-details > div { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 768px) {
  #inventoryCountsModal .ic-list-page .ic-table { min-width: 640px; }
  #inventoryCountsModal .ic-list-page .ic-table :is(th,td):last-child { position: sticky; right: 0; background: #fff; white-space: nowrap; z-index: 1; }
  #inventoryCountsModal .ic-list-page .ic-table th:last-child { background: #f7f9fc; z-index: 2; }
  body:has(#inventoryCountsModal) .mobile-system-shell .mobile-system-bottom-nav { z-index: 119; }
}
