/* sales page: hero, week/month cards and today's fuel chips */

/* the part after the decimal point reads smaller than the whole number */
.num-dec {
  font-size: .6em;
  font-weight: 700;
  opacity: .8;
  letter-spacing: .01em;
}

.sales-hero-value,
.sales-trend-value,
.sales-hero-debt-value {
  white-space: nowrap;
}

.num-cur {
  margin-inline-start: .35em;
  font-size: .5em;
  font-weight: 700;
  opacity: .8;
}

#mainContent .sales-hero-card {
  position: relative;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, .2), transparent 34%),
    linear-gradient(120deg, #0f5a3e, #1f8f63, #1b8a7c, #2a9d6f, #0f5a3e);
  background-size: auto, 300% 300%;
  animation:
    fadeSlideIn .4s cubic-bezier(.4, 0, .2, 1) both,
    salesHeroFlow 12s ease-in-out infinite;
}

@keyframes salesHeroFlow {
  0%, 100% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
}

/* a soft light that drifts across the card */
.sales-hero-glow {
  position: absolute;
  inset-block: -40%;
  inset-inline-start: -30%;
  width: 45%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: rotate(14deg);
  animation: salesHeroSweep 7s ease-in-out infinite;
}

@keyframes salesHeroSweep {
  0%, 35% { transform: translateX(0) rotate(14deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(380%) rotate(14deg); opacity: 0; }
}

#mainContent .sales-hero-card > :not(.sales-hero-glow) {
  position: relative;
}

#mainContent .sales-hero-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .32);
  background: linear-gradient(145deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 22px rgba(0, 0, 0, .16);
  animation:
    profitIconPop .5s cubic-bezier(.34, 1.56, .64, 1) both .15s,
    salesIconFloat 4.5s ease-in-out infinite 1s;
}

#mainContent .sales-hero-icon i {
  font-size: 30px;
}

@keyframes salesIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

#mainContent .sales-hero-label {
  font-size: 13.5px;
  letter-spacing: .01em;
}

#mainContent .sales-hero-value {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 900;
}

#mainContent .sales-hero-value .num-cur {
  font-size: 15px;
  margin-inline-start: 8px;
}

#mainContent .sales-hero-debt {
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  background: rgba(0, 0, 0, .18);
}

.sales-hero-debt-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, .18);
}

#mainContent .sales-hero-debt-value {
  font-size: 17px;
}

#mainContent .sales-hero-debt-value .num-cur {
  font-size: 11px;
}

#mainContent .sales-hero-fuels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
}

#mainContent .sales-fuel-chip {
  min-width: 0;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  transition: transform .2s ease, background .2s ease;
}

#mainContent .sales-fuel-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .18);
}

/* each fuel keeps its own colour instead of the page tone */
#mainContent .sales-fuel-chip-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 12px;
  color: var(--chip-color);
  background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--chip-bg) 70%, #fff));
  box-shadow: 0 6px 14px rgba(0, 0, 0, .16);
}

#mainContent .sales-fuel-chip-icon i {
  font-size: 20px;
}

#mainContent .sales-fuel-chip-label {
  font-size: 12.5px;
}

#mainContent .sales-fuel-chip-value {
  font-size: 18px;
  font-weight: 900;
}

#mainContent .sales-fuel-chip-unit {
  font-size: 11.5px;
}

/* week and month */
#mainContent .sales-trend-card {
  --trend-tone: #2f7fd0;
  position: relative;
  gap: 14px;
  padding: 16px 18px;
  overflow: hidden;
}

#mainContent .sales-trend-card.is-month {
  --trend-tone: #7a5ae0;
}

#mainContent .sales-trend-card::before {
  content: '';
  position: absolute;
  inset-block: 14px;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--trend-tone), color-mix(in srgb, var(--trend-tone) 40%, #fff));
;display:none!important;}

#mainContent .sales-trend-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--trend-tone) 70%, #fff), var(--trend-tone));
  background-size: 160% 160%;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--trend-tone) 32%, transparent), inset 0 1px 0 rgba(255, 255, 255, .4);
  animation: salesTrendShift 6s ease-in-out infinite;
}

@keyframes salesTrendShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

#mainContent .sales-trend-icon i {
  font-size: 23px;
}

#mainContent .sales-trend-label {
  font-size: 13px;
}

#mainContent .sales-trend-value {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 900;
}

#mainContent .sales-trend-value .num-cur {
  font-size: 12px;
  margin-inline-start: 6px;
}

@media (max-width: 820px) {
  #mainContent .sales-hero-value {
    font-size: 34px;
  }

  #mainContent .sales-hero-fuels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  #mainContent .sales-hero-card {
    padding: 18px;
  }

  #mainContent .sales-hero-value {
    font-size: 30px;
  }

  #mainContent .sales-hero-debt {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mainContent .sales-hero-card,
  .sales-hero-glow,
  #mainContent .sales-hero-icon,
  #mainContent .sales-trend-icon {
    animation: none;
  }
}

/* ---------- sales details ---------- */
#view-sales-details .filter-tab > i {
  margin-inline-end: 6px;
  font-size: 17px;
  vertical-align: -3px;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

#view-sales-details .filter-tab:hover > i {
  transform: scale(1.15) rotate(-6deg);
}

#view-sales-details .filter-tab.active,
#view-sales-details .sd-period-presets .filter-tab.active {
  background-size: 220% 220%;
  animation: salesTabFlow 6s ease-in-out infinite;
}

@keyframes salesTabFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* every fuel tab lights up in its own colour */
#view-sales-details .sd-fuel-tab:not([data-fuel="all"]) > i {
  color: var(--tab-tone);
}

#view-sales-details .sd-fuel-tab.active {
  color: #fff;
  border-color: transparent;
  background-image: linear-gradient(120deg, color-mix(in srgb, var(--tab-tone) 80%, #000), var(--tab-tone), color-mix(in srgb, var(--tab-tone) 70%, #fff), var(--tab-tone));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tab-tone) 30%, transparent);
}

#view-sales-details .sd-fuel-tab.active > i {
  color: #fff;
}

#view-sales-details .sd-range-card-title i {
  background-size: 200% 200%;
  animation: salesTabFlow 6s ease-in-out infinite;
}

/* summary cards */
#view-sales-details .sd-summary-card .metric-icon {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--summary-tone) 62%, #fff), var(--summary-tone), color-mix(in srgb, var(--summary-tone) 80%, #000));
  background-size: 200% 200%;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--summary-tone) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .4);
  animation: salesTabFlow 6s ease-in-out infinite;
}

#view-sales-details .sd-summary-card .metric-icon::after {
  border-color: rgba(255, 255, 255, .45);
}

#view-sales-details .sd-summary-card:hover .metric-icon i {
  animation: salesIconWiggle .5s ease;
}

@keyframes salesIconWiggle {
  30% { transform: rotate(-12deg) scale(1.12); }
  70% { transform: rotate(8deg) scale(1.08); }
}

#view-sales-details .sd-summary-card .metric-value {
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

#view-sales-details .sd-summary-card .metric-value .num-cur {
  font-size: 12px;
}

/* revenue is the headline figure: a full gradient card */
#view-sales-details .sd-summary-card.is-revenue {
  color: #fff;
  border-color: transparent !important;
  background: radial-gradient(circle at 90% 0%, rgba(255, 255, 255, .22), transparent 40%), linear-gradient(120deg, #0f5a3e, #1f8f63, #1b8a7c, #2a9d6f, #0f5a3e) !important;
  background-size: auto, 300% 300% !important;
  box-shadow: 0 16px 34px rgba(20, 90, 58, .3) !important;
  animation: salesHeroFlow 12s ease-in-out infinite;
}

#view-sales-details .sd-summary-card.is-revenue::before {
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, .6);
}

#view-sales-details .sd-summary-card.is-revenue::after {
  background: rgba(255, 255, 255, .1);
}

#view-sales-details .sd-summary-card.is-revenue .metric-label,
#view-sales-details .sd-summary-card.is-revenue .metric-value {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .16);
}

#view-sales-details .sd-summary-card.is-revenue .metric-icon {
  background: linear-gradient(145deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 18px rgba(0, 0, 0, .16);
}

/* average rate chips: gradient icon in the fuel colour */
#view-sales-details .sd-rate-chip-icon {
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--rate-tone) 65%, #fff), var(--rate-tone));
  box-shadow: 0 4px 9px color-mix(in srgb, var(--rate-tone) 30%, transparent);
}

#view-sales-details .sd-rate-chip {
  transition: transform .2s ease;
}

#view-sales-details .sd-rate-chip:hover {
  transform: translateX(-2px);
}

@media (max-width: 1100px) {
  #view-sales-details #sdSummaryRow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  #view-sales-details #sdSummaryRow {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #view-sales-details .filter-tab.active,
  #view-sales-details .sd-summary-card .metric-icon,
  #view-sales-details .sd-summary-card.is-revenue,
  #view-sales-details .sd-range-card-title i {
    animation: none;
  }
}

/* tablets and phones: four fuel tabs and three period tabs must fit one row each */
@media (max-width: 900px) {
  #view-sales-details .sd-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  #view-sales-details #sdFuelTabs,
  #view-sales-details .sd-period-presets {
    display: flex;
    width: 100%;
    gap: 4px;
  }

  #view-sales-details #sdFuelTabs .filter-tab,
  #view-sales-details .sd-period-presets .filter-tab {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 6px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  #view-sales-details .filter-tab > i {
    margin-inline-end: 4px;
    font-size: 15px;
  }

}

@media (max-width: 520px) {
  #view-sales-details .sd-summary-card .metric-value {
    font-size: 21px;
  }
}

/* two-column summary: the headline and the rates card take a full row each */
@media (min-width: 521px) and (max-width: 1100px) {
  #view-sales-details #sdSummaryRow .sd-summary-card.is-revenue,
  #view-sales-details #sdSummaryRow .sd-summary-card--rates {
    grid-column: 1 / -1;
  }

  #view-sales-details .sd-summary-card--rates .sd-rate-split {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #view-sales-details .sd-summary-card--rates .sd-rate-chip {
    grid-template-columns: 24px minmax(0, 1fr);
    row-gap: 3px;
  }

  #view-sales-details .sd-summary-card--rates .sd-rate-chip-copy strong {
    grid-column: 1 / -1;
    text-align: start;
  }
}


/* ---------- expenses page ---------- */
#mainContent .expenses-hero-card {
  position: relative;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, .2), transparent 34%),
    linear-gradient(120deg, #7a2b1b, #b04a33, #c6643a, #a84331, #7a2b1b) !important;
  background-size: auto, 300% 300% !important;
  animation:
    fadeSlideIn .4s cubic-bezier(.4, 0, .2, 1) both,
    salesHeroFlow 12s ease-in-out infinite;
}

#mainContent .expenses-hero-card > :not(.sales-hero-glow) {
  position: relative;
}

#mainContent .expenses-hero-card .sales-hero-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .32);
  background: linear-gradient(145deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 22px rgba(0, 0, 0, .16);
  animation:
    profitIconPop .5s cubic-bezier(.34, 1.56, .64, 1) both .15s,
    salesIconFloat 4.5s ease-in-out infinite 1s;
}

#mainContent .expenses-hero-card .sales-hero-icon i {
  font-size: 30px;
}

#mainContent .expenses-hero-card .sales-hero-value {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 900;
}

#mainContent .expenses-hero-card .sales-hero-value .num-cur {
  font-size: 15px;
  margin-inline-start: 8px;
}

#mainContent .expenses-hero-card .sales-hero-fuels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
}

#mainContent .expenses-hero-card .sales-fuel-chip {
  min-width: 0;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  transition: transform .2s ease, background .2s ease;
}

#mainContent .expenses-hero-card .sales-fuel-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .18);
}

#mainContent .expenses-hero-card .sales-fuel-chip-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 12px;
  color: var(--chip-color);
  background: linear-gradient(145deg, #fff, rgba(255, 255, 255, .8));
  box-shadow: 0 6px 14px rgba(0, 0, 0, .16);
}

#mainContent .expenses-hero-card .sales-fuel-chip-icon i {
  font-size: 20px;
}

#mainContent .expenses-hero-card .sales-fuel-chip-value {
  font-size: 18px;
  font-weight: 900;
}

#view-expenses .sales-trend-card {
  --trend-tone: #d9704a;
}

#view-expenses .sales-trend-card.is-month {
  --trend-tone: #c58b1e;
}

#view-expenses .sales-details-card .finance-card-icon {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #9a8cf5, #6b5ce2, #4e41b8) !important;
  background-size: 200% 200% !important;
  animation: salesTabFlow 6s ease-in-out infinite;
  box-shadow: 0 8px 18px rgba(107, 92, 226, .3);
}

#view-expenses .sales-details-card .finance-card-icon i {
  color: #fff !important;
}

#view-expenses .sales-details-card:hover .finance-card-chevron {
  transform: translateX(-4px);
}

#view-expenses .sales-details-card .finance-card-chevron {
  transition: transform .2s ease;
}

#view-expenses .work-record-row .work-record-icon {
  border: 0;
  color: #fff !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--work-tone) 62%, #fff), var(--work-tone), color-mix(in srgb, var(--work-tone) 80%, #000)) !important;
  background-size: 200% 200%;
  animation: salesTabFlow 6s ease-in-out infinite;
  box-shadow: 0 8px 16px color-mix(in srgb, var(--work-tone) 28%, transparent);
}

#view-expenses .work-record-amount .num-dec {
  font-size: .6em;
}

@media (max-width: 640px) {
  #mainContent .expenses-hero-card {
    padding: 18px;
  }

  #mainContent .expenses-hero-card .sales-hero-value {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mainContent .expenses-hero-card,
  #mainContent .expenses-hero-card .sales-hero-icon,
  #view-expenses .work-record-row .work-record-icon,
  #view-expenses .sales-details-card .finance-card-icon {
    animation: none;
  }
}

/* ---------- expense details ---------- */
#view-expenses-details .filter-tab > i {
  margin-inline-end: 6px;
  font-size: 17px;
  vertical-align: -3px;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

#view-expenses-details .filter-tab:hover > i {
  transform: scale(1.15) rotate(-6deg);
}

#view-expenses-details .filter-tab.active,
#view-expenses-details .ed-period-presets .filter-tab.active {
  background-size: 220% 220%;
  animation: salesTabFlow 6s ease-in-out infinite;
}

@keyframes salesTabFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* every fuel tab lights up in its own colour */
#view-expenses-details .sd-fuel-tab:not([data-fuel="all"]) > i {
  color: var(--tab-tone);
}

#view-expenses-details .sd-fuel-tab.active {
  color: #fff;
  border-color: transparent;
  background-image: linear-gradient(120deg, color-mix(in srgb, var(--tab-tone) 80%, #000), var(--tab-tone), color-mix(in srgb, var(--tab-tone) 70%, #fff), var(--tab-tone));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tab-tone) 30%, transparent);
}

#view-expenses-details .sd-fuel-tab.active > i {
  color: #fff;
}

#view-expenses-details .ed-range-card-title i {
  background-size: 200% 200%;
  animation: salesTabFlow 6s ease-in-out infinite;
}

/* summary cards */
#view-expenses-details .sd-summary-card .metric-icon {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--summary-tone) 62%, #fff), var(--summary-tone), color-mix(in srgb, var(--summary-tone) 80%, #000));
  background-size: 200% 200%;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--summary-tone) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .4);
  animation: salesTabFlow 6s ease-in-out infinite;
}

#view-expenses-details .sd-summary-card .metric-icon::after {
  border-color: rgba(255, 255, 255, .45);
}

#view-expenses-details .sd-summary-card:hover .metric-icon i {
  animation: salesIconWiggle .5s ease;
}

@keyframes salesIconWiggle {
  30% { transform: rotate(-12deg) scale(1.12); }
  70% { transform: rotate(8deg) scale(1.08); }
}

#view-expenses-details .sd-summary-card .metric-value {
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

#view-expenses-details .sd-summary-card .metric-value .num-cur {
  font-size: 12px;
}

/* revenue is the headline figure: a full gradient card */
#view-expenses-details .sd-summary-card.is-total {
  color: #fff;
  border-color: transparent !important;
  background: radial-gradient(circle at 90% 0%, rgba(255, 255, 255, .22), transparent 40%), linear-gradient(120deg, #7a2b1b, #b04a33, #c6643a, #a84331, #7a2b1b) !important;
  background-size: auto, 300% 300% !important;
  box-shadow: 0 16px 34px rgba(117, 43, 27, .3) !important;
  animation: salesHeroFlow 12s ease-in-out infinite;
}

#view-expenses-details .sd-summary-card.is-total::before {
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, .6);
}

#view-expenses-details .sd-summary-card.is-total::after {
  background: rgba(255, 255, 255, .1);
}

#view-expenses-details .sd-summary-card.is-total .metric-label,
#view-expenses-details .sd-summary-card.is-total .metric-value {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .16);
}

#view-expenses-details .sd-summary-card.is-total .metric-icon {
  background: linear-gradient(145deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 18px rgba(0, 0, 0, .16);
}

/* average rate chips: gradient icon in the fuel colour */
#view-expenses-details .sd-rate-chip-icon {
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--rate-tone) 65%, #fff), var(--rate-tone));
  box-shadow: 0 4px 9px color-mix(in srgb, var(--rate-tone) 30%, transparent);
}

#view-expenses-details .sd-rate-chip {
  transition: transform .2s ease;
}

#view-expenses-details .sd-rate-chip:hover {
  transform: translateX(-2px);
}

@media (max-width: 1100px) {
  #view-expenses-details #edSummaryRow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  #view-expenses-details #edSummaryRow {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #view-expenses-details .filter-tab.active,
  #view-expenses-details .sd-summary-card .metric-icon,
  #view-expenses-details .sd-summary-card.is-total,
  #view-expenses-details .ed-range-card-title i {
    animation: none;
  }
}



#view-expenses-details #edCategoryTabs {
  flex-wrap: wrap;
}

#view-expenses-details #edCategoryTabs .filter-tab {
  white-space: nowrap;
}

#view-expenses-details .sd-summary-card.is-total .metric-value .num-cur,
#view-expenses-details .sd-summary-card.is-total .metric-label {
  color: #fff;
}

/* tablets and phones: four fuel tabs and three period tabs must fit one row each */
@media (max-width: 900px) {
  #view-expenses-details .sd-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  #view-expenses-details #edCategoryTabs,
  #view-expenses-details .ed-period-presets {
    display: flex;
    width: 100%;
    gap: 4px;
  }

  #view-expenses-details #edCategoryTabs .filter-tab,
  #view-expenses-details .ed-period-presets .filter-tab {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 6px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  #view-expenses-details .filter-tab > i {
    margin-inline-end: 4px;
    font-size: 15px;
  }

}

@media (max-width: 520px) {
  #view-expenses-details .sd-summary-card .metric-value {
    font-size: 21px;
  }
}

/* two-column summary: the headline and the rates card take a full row each */
/* ---------- customer accounts ---------- */
#view-customers {
  --acct-blue: #2f7fd0;
}

#view-customers .tanks-topbar {
  position: relative;
  overflow: hidden;
}

#view-customers .tanks-topbar::after {
  content: '';
  position: absolute;
  top: -50%;
  bottom: -50%;
  inset-inline-start: -30%;
  width: 28%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: rotate(14deg);
  animation: salesHeroSweep 9s ease-in-out infinite;
}

#view-customers .tanks-topbar .btn-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(120deg, #2467b0, #3f8fe0, #2f7fd0, #2467b0);
  background-size: 220% 220%;
  animation: salesTabFlow 6s ease-in-out infinite;
  box-shadow: 0 10px 20px rgba(47, 127, 208, .32);
}

#view-customers .tanks-topbar .btn i {
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

#view-customers .tanks-topbar .btn:hover i {
  transform: scale(1.18) rotate(-8deg);
}

#view-customers .account-filter-tab > i {
  margin-inline-end: 6px;
  font-size: 17px;
  vertical-align: -3px;
  color: var(--tab-tone);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

#view-customers .account-filter-tab:hover > i {
  transform: scale(1.15) rotate(-6deg);
}

#view-customers .account-filter-tab.active {
  color: #fff;
  border-color: transparent;
  background-image: linear-gradient(120deg, color-mix(in srgb, var(--tab-tone) 78%, #000), var(--tab-tone), color-mix(in srgb, var(--tab-tone) 70%, #fff), var(--tab-tone));
  background-size: 220% 220%;
  animation: salesTabFlow 6s ease-in-out infinite;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tab-tone) 32%, transparent);
}

#view-customers .account-filter-tab.active > i {
  color: #fff;
}

#view-customers .sort-label i {
  color: var(--acct-blue);
}

#view-customers .section-title-icon > i {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #9a8cf5, #6b5ce2, #4e41b8);
  background-size: 200% 200%;
  animation: salesTabFlow 6s ease-in-out infinite;
  box-shadow: 0 8px 16px rgba(107, 92, 226, .3);
}

/* rows: the side bar and the avatar ring follow the account state */
#view-customers .account-entry--customer {
  --row-tone: #8b97ad;
  position: relative;
  overflow: hidden;
}

#view-customers .account-entry--customer.is-debt {
  --row-tone: #d4533e;
}

#view-customers .account-entry--customer.is-credit {
  --row-tone: #2f9d6a;
}

#view-customers .account-entry--customer::before {
  content: '';
  position: absolute;
  inset-block: 12px;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--row-tone) 55%, #fff), var(--row-tone));
;display:none!important;}

#view-customers .account-entry--customer:hover {
  box-shadow: 0 12px 26px color-mix(in srgb, var(--row-tone) 20%, transparent);
}

#view-customers .account-entry--customer .employee-avatar {
  color: #fff;
  background: linear-gradient(135deg, #4f8fe6, #2f7fd0, #1f5aa8) !important;
  background-size: 200% 200% !important;
  animation: salesTabFlow 7s ease-in-out infinite;
  box-shadow: 0 0 0 2px var(--panel, #fff), 0 0 0 3.5px color-mix(in srgb, var(--row-tone) 55%, transparent), 0 8px 16px rgba(47, 127, 208, .26);
}

#view-customers .account-entry--customer .employee-avatar img {
  border-radius: inherit;
}

#view-customers .account-entry--customer .employee-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#view-customers .account-id-chip {
  padding: 1px 9px;
  border-radius: 8px;
  color: var(--acct-blue);
  background: color-mix(in srgb, var(--acct-blue) 12%, transparent);
  font-weight: 800;
}

#view-customers .account-job {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text2);
}

#view-customers .account-job i {
  font-size: 14px;
}

#view-customers .balance-pill {
  padding: 8px 14px;
  border: 0;
  font-weight: 900;
}

#view-customers .balance-pill.is-debt {
  color: #a8301f;
  background: linear-gradient(120deg, #fde6e0, #fbcfc4);
}

#view-customers .balance-pill.is-credit {
  color: #1d7a4f;
  background: linear-gradient(120deg, #def5e8, #c4ecd6);
}

#view-customers .balance-pill.is-settled {
  color: #4f6a5e;
  background: linear-gradient(120deg, #e8f1ec, #d9e7df);
}

html[data-theme="dark"] #view-customers .balance-pill.is-debt {
  color: #ffb4a5;
  background: rgba(212, 83, 62, .24);
}

html[data-theme="dark"] #view-customers .balance-pill.is-credit {
  color: #8fe0b4;
  background: rgba(47, 157, 106, .24);
}

html[data-theme="dark"] #view-customers .balance-pill.is-settled {
  color: #b5cbbf;
  background: rgba(255, 255, 255, .08);
}

#view-customers .balance-pill i {
  transition: transform .25s ease;
}

#view-customers .account-entry--customer:hover .balance-pill i {
  transform: translate(-2px, 2px);
}

#view-customers .balance-pill.is-credit i,
#view-customers .account-entry--customer:hover .balance-pill.is-credit i {
  transform: none;
}

#view-customers .account-entry--customer .record-delete-btn {
  transition: background .2s ease, transform .2s ease;
}

#view-customers .account-entry--customer .record-delete-btn:hover {
  transform: scale(1.08);
  background: rgba(212, 83, 62, .14);
}

#view-customers .balance-pill .num-dec {
  font-size: .62em;
}

@media (prefers-reduced-motion: reduce) {
  #view-customers .tanks-topbar::after,
  #view-customers .tanks-topbar .btn-primary,
  #view-customers .account-filter-tab.active,
  #view-customers .section-title-icon > i,
  #view-customers .account-entry--customer .employee-avatar {
    animation: none;
  }
}
