/* BFZ_V301_UI_HOTFIX_STYLES */
:root {
  --bfz-v301-system: var(--bfz-system-color, var(--user-blue, #1f6ca8));
  --bfz-v301-ink: #17324d;
  --bfz-v301-line: color-mix(in srgb, var(--bfz-v301-system) 28%, #dbe7ef);
  --bfz-v301-sales-tint-percent: 10%;
  --bfz-v301-sales-tint: color-mix(in srgb, var(--bfz-v301-system) var(--bfz-v301-sales-tint-percent), #fff);
}

/* V3.0.0 inserted employee visuals too broadly. V3.0.1 owns employee visuals. */
body .bfz-v300-employee-visual { display: none !important; }
body .bfz-v301-legacy-avatar-hidden,
body .bfz-v301-profile-legacy-hidden { display: none !important; }

/* BFZ_V301_PROFILE_ICON_SYSTEMWIDE_GEOMETRY */
body .bfz-v301-employee-cell {
  position: relative !important;
}
body .bfz-v301-employee-visual {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  flex: 0 0 48px !important;
  margin: 0 10px 0 0 !important;
  padding: 0 !important;
  border: 1px solid color-mix(in srgb, var(--bfz-v301-system) 18%, #dfe8ef) !important;
  border-radius: 50% !important;
  background: #fff !important;
  background-image: none !important;
  overflow: hidden !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  mask: none !important;
  -webkit-mask: none !important;
}
body .bfz-v301-employee-visual::before,
body .bfz-v301-employee-visual::after { display: none !important; content: none !important; }
body .bfz-v301-employee-image {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  mask: none !important;
  -webkit-mask: none !important;
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
}
body .bfz-v301-employee-visual[data-source="system"] .bfz-v301-employee-image {
  object-fit: contain !important;
  padding: 1px !important;
}

/* BFZ_V301_LEAVE_NO_AVATARS_IN_DAY_CELLS */
body .bfz-v301-leave-calendar tbody tr > td:not(:first-child) .bfz-v301-employee-visual,
body .bfz-v301-leave-calendar tbody tr > td:not(:first-child) .bfz-v300-employee-visual { display: none !important; }
body .bfz-v301-leave-calendar tbody tr > td:first-child .bfz-v301-employee-visual { vertical-align: top !important; }

/* BFZ_V301_PROFILE_HEADER_AVATAR */
body .bfz-v301-profile-visual {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 112px !important;
  height: 112px !important;
  min-width: 112px !important;
  min-height: 112px !important;
  max-width: 112px !important;
  max-height: 112px !important;
  flex: 0 0 112px !important;
  padding: 0 !important;
  margin: 0 18px 0 0 !important;
  border: 1px solid color-mix(in srgb, var(--bfz-v301-system) 18%, #dfe8ef) !important;
  border-radius: 50% !important;
  background: #fff !important;
  overflow: hidden !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  mask: none !important;
  -webkit-mask: none !important;
}
body .bfz-v301-profile-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  mask: none !important;
  -webkit-mask: none !important;
  filter: none !important;
}
body .bfz-v301-profile-visual[data-source="system"] .bfz-v301-profile-image { object-fit: contain !important; padding: 2px !important; }

/* BFZ_V301_COMPANY_MASTERDATA_REMOVE_REDUNDANT_HOME_CARD */
body .bfz-v301-company-home-card-removed { display: none !important; }

/* BFZ_V301_SALES_ACTIVE_TAB_ROUTE_TRUTH */
body .bfz-v301-sales-nav { display: flex !important; flex-wrap: wrap !important; gap: 12px !important; }
body .bfz-v301-sales-nav a {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  min-height: 48px !important; padding: 10px 20px !important;
  border: 1.5px solid var(--bfz-v301-system) !important; border-radius: 15px !important;
  background: #fff !important; background-image: none !important;
  color: var(--bfz-v301-system) !important; -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important; visibility: visible !important; text-decoration: none !important; font-weight: 880 !important;
}
body .bfz-v301-sales-nav a.bfz-v301-sales-active,
body .bfz-v301-sales-nav a[aria-current="page"] {
  background: var(--bfz-v301-system) !important; background-color: var(--bfz-v301-system) !important;
  border-color: var(--bfz-v301-system) !important; color: #fff !important; -webkit-text-fill-color: #fff !important;
}
body .bfz-v301-sales-nav a.bfz-v301-sales-inactive { background: #fff !important; color: var(--bfz-v301-system) !important; -webkit-text-fill-color: currentColor !important; }

/* BFZ_V301_PIPELINE_CONFIGURABLE_SYSTEM_TINT */
body .bfz-v301-pipeline-column {
  background: var(--bfz-v301-sales-tint) !important; background-color: var(--bfz-v301-sales-tint) !important; background-image: none !important;
  color: var(--bfz-v301-ink) !important; -webkit-text-fill-color: currentColor !important;
  border-color: var(--bfz-v301-line) !important; box-shadow: none !important;
}
body .bfz-v301-pipeline-column::before,
body .bfz-v301-pipeline-column::after { background: transparent !important; background-image: none !important; box-shadow: none !important; }
body .bfz-v301-pipeline-column article,
body .bfz-v301-pipeline-column [class*="card"] { background: #fff !important; color: var(--bfz-v301-ink) !important; -webkit-text-fill-color: currentColor !important; }

/* BFZ_V301_DAY_CLOSE_CONFIGURABLE_SYSTEM_TINT */
body .bfz-v301-day-check-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; gap: 12px !important; align-items: stretch !important; width: 100% !important; }
body .bfz-v301-day-check {
  min-width: 0 !important; min-height: 112px !important; height: auto !important; padding: 18px !important;
  border: 1px solid var(--bfz-v301-line) !important; border-radius: 18px !important;
  background: var(--bfz-v301-sales-tint) !important; background-color: var(--bfz-v301-sales-tint) !important; background-image: none !important;
  color: var(--bfz-v301-ink) !important; -webkit-text-fill-color: currentColor !important; box-shadow: none !important; opacity: 1 !important;
}
body .bfz-v301-day-check::before,
body .bfz-v301-day-check::after { background: transparent !important; background-image: none !important; box-shadow: none !important; }
body .bfz-v301-day-check * { color: inherit !important; -webkit-text-fill-color: currentColor !important; opacity: 1 !important; visibility: visible !important; }
body .bfz-v301-day-check .bfz-v301-semantic-done { color: #258244 !important; -webkit-text-fill-color: #258244 !important; }
body .bfz-v301-day-check .bfz-v301-semantic-open { color: #b74432 !important; -webkit-text-fill-color: #b74432 !important; }

/* BFZ_V301_SALES_TINT_SETTINGS_UI */
body .bfz-v301-sales-tint-settings .bfz-v301-settings-note { color: #62788d; margin: 0 0 16px; }
body .bfz-v301-tint-controls > label { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; }
body .bfz-v301-tint-controls > label span:first-child b,
body .bfz-v301-tint-controls > label span:first-child small { display: block; }
body .bfz-v301-tint-controls > label span:first-child small { color: #62788d; margin-top: 4px; }
body .bfz-v301-tint-inputs { display: flex; align-items: center; gap: 10px; min-width: min(420px, 48vw); }
body .bfz-v301-tint-inputs input[type="range"] { flex: 1 1 auto; }
body .bfz-v301-tint-inputs input[type="number"] { width: 84px; }
body .bfz-v301-tint-preview { min-height: 82px; border: 1px solid var(--bfz-v301-line); border-radius: 16px; background: var(--bfz-v301-sales-tint); display: flex; align-items: center; justify-content: center; color: var(--bfz-v301-ink); font-weight: 800; }
body .bfz-v301-tint-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }

/* BFZ_V301_ENTITY_ACTION_POPUP */
body.bfz-v301-modal-open { overflow: hidden !important; }
body .bfz-v301-modal { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 22px; }
body .bfz-v301-modal-backdrop { position: absolute; inset: 0; background: rgba(19, 41, 61, .34); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body .bfz-v301-modal-card { position: relative; z-index: 1; width: min(620px, calc(100vw - 28px)); max-height: min(760px, calc(100vh - 36px)); overflow: auto; background: #fff; border: 1px solid color-mix(in srgb, var(--bfz-v301-system) 24%, #dbe7ef); border-radius: 24px; box-shadow: 0 24px 70px rgba(18, 50, 77, .22); padding: 24px; color: var(--bfz-v301-ink); }
body .bfz-v301-modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #eef4f8; color: var(--bfz-v301-ink); font-size: 26px; line-height: 1; cursor: pointer; }
body .bfz-v301-modal-card > header { display: flex; align-items: center; gap: 14px; padding-right: 42px; margin-bottom: 22px; }
body .bfz-v301-modal-card > header small { display: block; color: #6b8193; font-weight: 850; letter-spacing: .08em; }
body .bfz-v301-modal-card > header h2 { margin: 2px 0 0; font-size: 1.55rem; }
body .bfz-v301-modal-visual { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 15px; background: color-mix(in srgb, var(--bfz-v301-system) 10%, #fff); overflow: hidden; display: grid; place-items: center; }
body .bfz-v301-modal-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
body .bfz-v301-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body .bfz-v301-action-grid button,
body .bfz-v301-slot-button,
body .bfz-v301-email-actions button,
body .bfz-v301-slot-picker > button,
body .bfz-v301-tint-actions button { min-height: 48px; border: 1.5px solid var(--bfz-v301-system); border-radius: 14px; background: var(--bfz-v301-system); color: #fff; font-weight: 850; padding: 10px 14px; cursor: pointer; }
body .bfz-v301-action-grid button:disabled { opacity: .45; cursor: not-allowed; }
body .bfz-v301-modal-hint { display: block; margin-top: 12px; color: #6b8193; }
body .bfz-v301-slot-picker h3,
body .bfz-v301-email-compose h3 { margin: 0 0 6px; }
body .bfz-v301-slot-picker p { margin: 0 0 14px; color: #62788d; }
body [data-bfz-v301-slots] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
body .bfz-v301-slot-button { display: flex; flex-direction: column; align-items: flex-start; background: #fff; color: var(--bfz-v301-system); }
body .bfz-v301-slot-button small { color: #62788d; margin-top: 3px; }
body .bfz-v301-email-compose label { display: block; margin: 14px 0; }
body .bfz-v301-email-compose label > span { display: block; font-weight: 800; margin-bottom: 6px; }
body .bfz-v301-email-compose input,
body .bfz-v301-email-compose select,
body .bfz-v301-email-compose textarea { width: 100%; box-sizing: border-box; border: 1px solid #cbdbe6; border-radius: 12px; padding: 11px 12px; font: inherit; color: var(--bfz-v301-ink); background: #fff; }
body .bfz-v301-email-compose textarea { resize: vertical; min-height: 180px; }
body .bfz-v301-email-actions { display: flex; justify-content: flex-end; gap: 10px; }
body .bfz-v301-email-actions .secondary,
body .bfz-v301-slot-picker > .secondary { background: #fff; color: var(--bfz-v301-system); }
body .bfz-v301-modal-error { color: #b74432; }

@media (max-width: 760px) {
  body .bfz-v301-action-grid { grid-template-columns: 1fr; }
  body [data-bfz-v301-slots] { grid-template-columns: 1fr; }
  body .bfz-v301-tint-controls > label { align-items: stretch; flex-direction: column; }
  body .bfz-v301-tint-inputs { min-width: 0; width: 100%; }
  body .bfz-v301-profile-visual { width: 88px !important; height: 88px !important; min-width: 88px !important; min-height: 88px !important; max-width: 88px !important; max-height: 88px !important; flex-basis: 88px !important; }
}
