/*
  Shared admin shell topbar for 健立方管理后台 prototypes.
  Keep page-level top navigation consistent across every static HTML page.
*/

:root {
  --jlf-page-bg: #f8fafd;
}

html,
body {
  height: 100%;
}

body:has(.app-shell) {
  overflow: hidden;
}

.jlf-main-region {
  min-width: 0;
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--jlf-page-bg);
}

.app-shell > .jlf-main-region {
  grid-column: 2;
  grid-row: 1;
}

.topbar.jlf-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 18 !important;
  height: 64px !important;
  min-height: 64px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 16px 0 30px !important;
  border: 0 !important;
  border-bottom: 1px solid #e4eaf3 !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: none !important;
  color: #1f2a44 !important;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "HarmonyOS Sans SC", sans-serif !important;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.topbar.jlf-topbar .jlf-crumb {
  min-width: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.topbar.jlf-topbar .jlf-account-switch {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}

.topbar.jlf-topbar .jlf-account-button {
  height: 42px;
  min-width: 156px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1f2a44;
  cursor: pointer;
  box-shadow: none;
  font: inherit;
  text-align: left;
}

.topbar.jlf-topbar .jlf-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0cac2e;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.topbar.jlf-topbar .jlf-account-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.topbar.jlf-topbar .jlf-account-name {
  color: #1f2a44;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 750;
  white-space: nowrap;
}

.topbar.jlf-topbar .jlf-account-role {
  color: #667085;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 400;
  white-space: nowrap;
}

.topbar.jlf-topbar .jlf-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 32;
  width: 220px;
  display: none;
  gap: 4px;
  padding: 6px;
  border: 1px solid #e4eaf3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(31, 42, 68, .16);
}

.topbar.jlf-topbar .jlf-account-switch.open .jlf-account-menu {
  display: grid;
}

.topbar.jlf-topbar .jlf-account-option {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.topbar.jlf-topbar .jlf-account-option:hover,
.topbar.jlf-topbar .jlf-account-option.active {
  background: #f5f8fc;
}

.topbar.jlf-topbar .jlf-account-option.active {
  color: #176bff;
}

.topbar.jlf-topbar .jlf-account-option.active .jlf-avatar {
  background: #176bff;
}

.topbar.jlf-topbar .jlf-account-check {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 999px;
  background: transparent;
  flex: 0 0 auto;
}

.topbar.jlf-topbar .jlf-account-option.active .jlf-account-check {
  background: #176bff;
}

.topbar.jlf-topbar .jlf-compat {
  display: none !important;
}

.jlf-main-region > .content,
.jlf-main-region > main.content,
.jlf-main-region > .workspace,
.jlf-main-region > .page-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  .topbar.jlf-topbar {
    padding: 0 12px 0 18px !important;
  }

  .topbar.jlf-topbar .jlf-crumb {
    display: none;
  }

  .topbar.jlf-topbar .jlf-account-button {
    min-width: 148px;
  }
}

/*
  Shared prototype form rules.
  Keep every list filter aligned with docs/PROTOTYPE_STYLE_GUIDE.md.
*/

body .panel.filter,
body .filter-panel,
body .filter {
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 42, 68, .035);
}

body .panel.filter,
body .filter-panel,
body section.filter,
body div.filter {
  padding: 20px 22px;
  margin-bottom: 18px;
}

body .filter-grid,
body .filter-left,
body .filter-field-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

body .filter-time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}

body .filter-grid > .field,
body .filter-item,
body .filter-left > .filter-item,
body .filter-field-row > .filter-item,
body .time-range-filter,
body .status-filter {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

body .filter-item.date-item,
body .date-filter-field {
  grid-column: span 2;
}

body .time-range-field,
body .time-range-filter {
  grid-column: span 2;
}

body .filter-label,
body .filter .field > label,
body .filter label > .filter-label {
  display: block;
  margin: 0;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

body .date-combo,
body .time-filter-control,
body .time-range-control,
body .time-range-composite {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
  white-space: nowrap;
  width: 100%;
  flex-wrap: nowrap;
}

body .filter .quick-segment,
body .filter .quick-chips,
body .filter .date-segments,
body .filter .time-range-segmented,
body .filter .segment,
body .filter .quick-filter {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border: 1px solid #d8e0ed;
  border-radius: 8px;
  background: #fff;
  flex: 0 0 auto;
  white-space: nowrap;
  box-shadow: none;
}

body .filter .date-combo > .quick-segment,
body .filter .date-combo > .quick-chips,
body .filter .time-filter-control > .quick-chips,
body .filter .time-filter-control > .date-segments,
body .filter .time-range-composite > .quick-chips,
body .filter .time-range-composite > .date-segments,
body .filter .time-range-control > .time-range-segmented {
  min-width: 0;
  flex: 0 0 calc((100% - 10px) * .6);
  width: auto;
  max-width: none;
}

body .filter .quick-segment .chip,
body .filter .quick-chips .chip,
body .filter .date-segments button,
body .filter .time-range-segmented button,
body .filter .segment button,
body .filter .quick-filter button {
  height: 30px;
  min-width: 64px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475467;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 30px;
  box-shadow: none;
}

body .filter .date-combo > .quick-segment .chip,
body .filter .date-combo > .quick-chips .chip,
body .filter .time-filter-control > .quick-chips .chip,
body .filter .time-filter-control > .date-segments button,
body .filter .time-range-composite > .quick-chips .chip,
body .filter .time-range-composite > .date-segments button,
body .filter .time-range-control > .time-range-segmented button {
  min-width: 0;
  flex: 1 1 0;
  padding-right: 6px;
  padding-left: 6px;
}

body .filter .quick-segment .chip.active,
body .filter .quick-chips .chip.active,
body .filter .date-segments button.active,
body .filter .time-range-segmented button.active,
body .filter .segment button.selected,
body .filter .quick-filter button.active {
  color: #fff;
  background: #176bff;
  box-shadow: 0 6px 12px rgba(23, 107, 255, .2);
}

body .filter .input,
body .filter .control,
body .filter .select,
body .filter .search-box,
body .filter .date-range,
body .filter .date-range-box,
body .filter-item > .field,
body .filter-row > .field {
  min-width: 0;
  min-height: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8e0ed;
  border-radius: 8px;
  background-color: #fff;
  color: #344054;
  padding: 0 12px;
  font-size: 13px;
  line-height: 38px;
  box-shadow: inset 0 1px 2px rgba(31, 42, 68, .025);
  box-sizing: border-box;
}

body .filter .input,
body .filter .search-box span,
body .filter .control.placeholder {
  color: #98a2b3;
}

body .filter .input input,
body .filter .search-box input,
body .filter .date-range input,
body .filter .date-range-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344054;
  font: inherit;
}

body .filter input::placeholder,
body .filter .date-range input::placeholder,
body .filter .date-range-box input::placeholder {
  color: #98a2b3;
}

body .filter .date-range,
body .filter .date-range-box {
  flex: 0 0 auto;
  width: auto;
  color: #98a2b3;
}

body .filter .date-combo > .date-range,
body .filter .date-combo > .date-range-box,
body .filter .date-combo > .field-control,
body .filter .time-filter-control > .date-range,
body .filter .time-filter-control > .date-range-box,
body .filter .time-range-composite > .date-range,
body .filter .time-range-composite > .date-range-box,
body .filter .time-range-control > .date-range,
body .filter .time-range-control > .date-range-box {
  flex: 0 0 calc((100% - 10px) * .4);
  min-width: 0;
  width: auto;
  gap: 6px;
  justify-content: space-between;
  white-space: nowrap;
}

body .filter .date-combo > .field-control .date-range,
body .filter .date-combo > .field-control .date-range-box {
  width: 100%;
  min-width: 0;
}

body .filter .date-range input,
body .filter .date-range-box input {
  width: auto;
  flex: 1 1 78px;
  min-width: 0;
  text-align: center;
}

body .filter .date-range input::-webkit-calendar-picker-indicator,
body .filter .date-range-box input::-webkit-calendar-picker-indicator {
  display: none;
  opacity: 0;
}

body .filter .date-range.disabled,
body .filter .date-range.is-disabled,
body .filter .date-range-box.is-empty,
body .filter .field-control.disabled .date-range {
  color: #98a2b3;
  background: #fff;
}

body .filter .field-control > .control,
body .filter .field-control .date-range,
body .filter .field-control .date-range-box {
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  padding: 0;
}

body .filter .field-control > input.control,
body .filter .field-control > select.control {
  display: block;
  line-height: normal;
}

body .filter .field-control.disabled .date-range,
body .filter .field-control.disabled .date-range-box {
  background: transparent;
}

body .filter .date-sep,
body .filter .date-range .split,
body .filter .date-range-box .split {
  color: #98a2b3;
}

body .filter select.control,
body .filter select.select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(#e4eaf3, #e4eaf3),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23667085' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: right 36px center, right 10px center;
  background-size: 1px 18px, 16px 16px;
}

body .filter .select-field {
  padding-right: 0;
  overflow: hidden;
  justify-content: space-between;
}

body .filter .select-field > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body .filter .select-trigger {
  align-self: stretch;
  width: 32px;
  margin-left: auto;
  border-left: 1px solid #e4eaf3;
  display: grid;
  place-items: center;
  color: #667085;
  flex: 0 0 32px;
}

body .filter .select-trigger svg,
body .filter .date-range svg,
body .filter .search-box svg,
body .filter .field svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke-width: 2.2;
}

body .filter-actions,
body .filter-grid > .filter-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 16px;
}

body .filter-grid > .filter-actions {
  margin-top: 0;
}

body .filter-actions .btn,
body .filter-actions .filter-btn,
body .filter-actions .ghost-btn,
body .filter-actions .primary-btn {
  height: 40px;
  min-width: 108px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 40px;
  white-space: nowrap;
  box-shadow: none;
}

body .filter-actions .btn,
body .filter-actions .filter-btn,
body .filter-actions .ghost-btn {
  border: 1px solid #d8e0ed;
  background: #fff;
  color: #344054;
}

body .filter-actions .btn.export,
body .filter-actions .filter-btn.export {
  border-color: #c7d7ff;
  background: #f7faff;
  color: #176bff;
}

body .filter-actions .btn.primary,
body .filter-actions .filter-btn.primary,
body .filter-actions .primary-btn {
  border: 1px solid #176bff;
  background: #176bff;
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 107, 255, .22);
}

body .filter-actions svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke-width: 2.2;
}

body .table-toolbar,
body .table-head,
body .table-top {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid #e4eaf3;
  background: #fff;
}

body .table-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1d2939;
  font-size: 16px;
  font-weight: 700;
}

body .table-title::before,
body .section-title::before {
  content: "";
  display: block;
  width: 4px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #176bff;
}

body .table-note,
body .table-meta {
  color: #667085;
  font-size: 13px;
  font-weight: 500;
}

/*
  Shared stats card component.
  Structure:
  .stat-card > .stat-copy(.stat-title + .stat-value + optional .stat-desc) + .stat-icon
  Existing metric/summary cards are aliased here so older prototypes share one layout.
*/

body .stats-grid,
body .metrics,
body .summary-grid,
body .metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

body .metrics.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body .metrics.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body .stats-grid > .stat-card,
body .metrics > .metric-card,
body .summary-grid > .summary-card,
body .metric-grid > .metric {
  min-height: 118px !important;
  height: auto !important;
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 52px !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 18px !important;
  border: 1px solid #e4eaf3 !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(31, 42, 68, .04) !important;
}

body .stats-grid > .stat-card > .stat-copy,
body .metrics > .metric-card > .metric-copy,
body .metrics > .metric-card > .metric-main,
body .metrics > .metric-card > div:not(.metric-icon):not(.metric-visual),
body .summary-grid > .summary-card > div:not(.summary-icon),
body .metric-grid > .metric > .metric-copy {
  min-width: 0;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

body .stats-grid > .stat-card:has(.stat-desc) > .stat-copy,
body .metrics > .metric-card:has(.metric-sub, .metric-note, .metric-extra) > .metric-copy,
body .metrics > .metric-card:has(.metric-sub, .metric-note, .metric-extra) > .metric-main,
body .metrics > .metric-card:has(.metric-sub, .metric-note, .metric-extra) > div:not(.metric-icon):not(.metric-visual),
body .summary-grid > .summary-card:has(.stat-desc, .summary-desc) > div:not(.summary-icon),
body .metric-grid > .metric:has(.metric-note) > .metric-copy {
  justify-content: space-between;
}

body .stats-grid > .stat-card > .stat-icon,
body .metrics > .metric-card > .metric-icon,
body .metrics > .metric-card > .metric-visual,
body .summary-grid > .summary-card > .summary-icon,
body .metric-grid > .metric > .metric-icon {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  order: 2;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 52px !important;
  color: #176bff;
  background: #eaf2ff;
}

body .stats-grid > .stat-card > .stat-icon svg,
body .metrics > .metric-card > .metric-icon svg,
body .metrics > .metric-card > .metric-visual svg,
body .summary-grid > .summary-card > .summary-icon svg,
body .metric-grid > .metric > .metric-icon svg {
  width: 25px !important;
  height: 25px !important;
  stroke: currentColor;
  stroke-width: 2.4;
}

body .metrics > .metric-card > .metric-visual svg.metric-settled-icon,
body .metrics > .metric-card > .metric-visual svg.metric-pending-icon {
  width: 38px !important;
  height: 38px !important;
  fill: currentColor;
  stroke: none;
}

body .metrics > .metric-card > .metric-visual svg.metric-settled-icon path,
body .metrics > .metric-card > .metric-visual svg.metric-pending-icon path {
  fill: currentColor;
  stroke: none;
}

body .stats-grid > .stat-card > .stat-icon img,
body .metrics > .metric-card > .metric-visual img,
body .metrics > .metric-card > .metric-icon img,
body .summary-grid > .summary-card > .summary-icon img,
body .metric-grid > .metric > .metric-icon img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain;
}

body .metrics > .metric-card > .metric-visual img.metric-settled-icon {
  width: 38px !important;
  height: 38px !important;
}

body .stat-title,
body .metrics > .metric-card .metric-label,
body .metrics > .metric-card .metric-title,
body .summary-grid > .summary-card .summary-label,
body .metric-grid > .metric .metric-label {
  margin: 0 0 8px !important;
  color: #344054 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 18px !important;
}

body .stat-value,
body .metrics > .metric-card .metric-value,
body .summary-grid > .summary-card .summary-value,
body .metric-grid > .metric .metric-value {
  margin: 0 !important;
  color: #176bff;
  font-size: 25px !important;
  line-height: 1 !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body .stat-desc,
body .metrics > .metric-card .metric-sub,
body .metrics > .metric-card .metric-note,
body .metrics > .metric-card .metric-extra,
body .summary-grid > .summary-card .summary-desc,
body .metric-grid > .metric .metric-note {
  margin: 9px 0 0 !important;
  color: #667085 !important;
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 500 !important;
  white-space: nowrap;
}

body .metrics > .metric-card .metric-value small,
body .summary-grid > .summary-card .summary-unit {
  margin-left: 4px;
  color: #475467;
  font-size: 13px;
  font-weight: 650;
}

body .metrics > .metric-card .metric-icon.green,
body .metrics > .metric-card .metric-visual.success,
body .metric-grid > .metric:nth-child(2) .metric-icon {
  color: #176bff;
  background: #eaf2ff;
}

body .metrics > .metric-card .metric-icon.orange,
body .metrics > .metric-card .metric-visual.warning,
body .metric-grid > .metric:nth-child(4) .metric-icon {
  color: #176bff;
  background: #eaf2ff;
}

body .metrics > .metric-card .metric-icon.red,
body .metrics > .metric-card:has(.metric-value.red) .metric-icon,
body .metrics > .metric-card:has(.red-text) .metric-icon,
body .metrics > .metric-card .metric-visual.danger {
  color: #f04438;
  background: #fff1f0;
}

body .metrics > .metric-card:has(.metric-icon.red) .metric-value,
body .metrics > .metric-card:has(.metric-visual.danger) .metric-value,
body .metrics > .metric-card .metric-value.danger,
body .metrics > .metric-card .metric-value.red,
body .metrics > .metric-card .red-text {
  color: #f04438;
}

body .metrics > .metric-card .metric-icon.red svg path,
body .metrics > .metric-card:has(.metric-value.red) .metric-icon svg path,
body .metrics > .metric-card:has(.red-text) .metric-icon svg path,
body .metrics > .metric-card .metric-visual.danger svg path {
  fill: currentColor !important;
  stroke: currentColor;
}

body .metrics > .metric-card .metric-icon.purple,
body .metric-grid > .metric:nth-child(3) .metric-icon {
  color: #176bff;
  background: #eaf2ff;
}

body .metrics > .metric-card .metric-value.success,
body .metrics > .metric-card .metric-value.green,
body .metrics > .metric-card .green-text {
  color: #176bff;
}

body .metrics > .metric-card .metric-value.warning,
body .metrics > .metric-card .metric-value.orange,
body .metrics > .metric-card .orange-text {
  color: #176bff;
}

/*
  Shared effective-time selector for edit drawers.
  Reuse `.jlf-effective-time` through `window.JlfEffectiveTime.render()`.
*/

body .jlf-effective-time {
  display: grid;
  gap: 8px;
}

body .jlf-effective-time-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body .jlf-effective-time-option {
  min-height: 40px;
  border: 1px solid #d8e0ed;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  line-height: 18px;
  cursor: pointer;
}

body .jlf-effective-time-option.active {
  border-color: #9fc0ff;
  background: #eaf2ff;
  color: #176bff;
  box-shadow: 0 6px 12px rgba(23, 107, 255, .12);
}

body .jlf-effective-time-value {
  min-height: 42px;
  border: 1px solid #d8e0ed;
  border-radius: 7px;
  background: #fff;
  color: #344054;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
}

body .jlf-effective-time-value svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

body .jlf-effective-time-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344054;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

body .jlf-effective-time:not(.is-custom) .jlf-effective-time-input {
  pointer-events: none;
}

/*
  Shared enabled/disabled status selector for edit drawers.
  Reuse `.jlf-status-toggle` through `window.JlfStatusToggle.render()`.
*/

body .jlf-status-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body .jlf-status-toggle-option {
  min-height: 38px;
  min-width: 92px;
  border: 1px solid #d8e0ed;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 18px;
  cursor: pointer;
}

body .jlf-status-toggle-dot {
  width: 14px;
  height: 14px;
  border: 2px solid #c8d2e2;
  border-radius: 50%;
  background: #fff;
}

body .jlf-status-toggle-option.active {
  color: #176bff;
  border-color: #9fc0ff;
  background: #eaf2ff;
}

body .jlf-status-toggle-option.active .jlf-status-toggle-dot {
  border-color: #176bff;
  box-shadow: inset 0 0 0 3px #fff;
  background: #176bff;
}

body .jlf-status-toggle-option.danger-option {
  color: #f04438;
  border-color: #fecaca;
  background: #fff7f7;
}

body .jlf-status-toggle-option.danger-option .jlf-status-toggle-dot {
  border-color: #fca5a5;
}

body .jlf-status-toggle-option.danger-option.active {
  border-color: #fca5a5;
  background: #fff1f0;
}

body .jlf-status-toggle-option.danger-option.active .jlf-status-toggle-dot {
  border-color: #f04438;
  background: #f04438;
}


@media (max-width: 1280px) {
  body .filter-grid,
  body .filter-left,
  body .filter-field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .filter-item.date-item,
  body .date-filter-field,
  body .time-range-field,
  body .time-range-filter {
    grid-column: span 2;
  }

  body .metrics.three,
  body .metrics.five {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 760px) {
  body .filter-grid,
  body .filter-left,
  body .filter-field-row {
    grid-template-columns: 1fr;
  }

  body .filter-item.date-item,
  body .date-filter-field,
  body .time-range-field,
  body .time-range-filter {
    grid-column: 1 / -1;
  }

  body .filter-actions {
    justify-content: flex-start;
  }

  body .stats-grid,
  body .metrics,
  body .summary-grid,
  body .metric-grid {
    grid-template-columns: 1fr;
  }
}
