/* =========================
   Variables
   ========================= */
:root {
  --gp-sales-gap: 12px;
  --gp-sales-padding: 10px;
  --gp-sales-bg: transparent;
  --gp-sales-item-bg: #ffffff;
  --gp-sales-border: 1px solid rgba(0,0,0,0.06);
  --gp-sales-radius: 8px;

  --gp-font-base: 14px;
  --gp-font-small: 12px;
  --gp-label-color: #333333;
  --gp-number-color: #0b57d0;
  --gp-title-color: #111111;
}

/* =========================
   Base grid → تبدیل به 3 ستون
   ========================= */
.gp-sales-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr)); /* desktop 3 ستون */
  gap: var(--gp-sales-gap);
  align-items: start;
  background: var(--gp-sales-bg);
  padding: var(--gp-sales-padding);
  box-sizing: border-box;
  width: 100%;
}

/* Column container */
.gp-sales-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Column title */
.gp-sales-title {
  font-weight: 700;
  color: var(--gp-title-color);
  font-size: calc(var(--gp-font-base) * 1.1);
  padding: 4px 3px;
  text-align: left;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
}

/* Single item row */
.gp-sales-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background: var(--gp-sales-item-bg);
  border-radius: var(--gp-sales-radius);
  border: var(--gp-sales-border);
  box-sizing: border-box;
  min-height: 36px;
}

/* Label (left) */
.gp-sales-label {
  font-size: calc(var(--gp-font-base) * 1.05); /* بزرگ‌تر شد */
  color: var(--gp-label-color);
  text-align: left;
  max-width: calc(100% - 56px);
}

/* Number (right) */
.gp-sales-number {
  font-weight: 700;
  color: var(--gp-number-color);
  font-size: calc(var(--gp-font-base) * 1.1);
  text-align: right;
  min-width: 40px;
}

/* Summary section align left – desktop + mobile */
.gp-sales-summary {
  text-align: center !important;
  justify-content: flex-start !important;
  align-items: center;
  flex-direction: row;
}

/* Hide fakezahl until JS updates the real number */
.gp-sales-number {
    visibility: hidden;
}

.gp-sales-number.gp-loaded {
    visibility: visible;
}


/* =========================
   Mobile → هنوز 3 ستون
   ========================= */
@media (max-width: 420px) {
  .gp-sales-grid {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 6px;
    padding: 5px;
  }

  .gp-sales-title {
    font-size: calc(var(--gp-font-base) * 0.8);
    font-weight: 600;
  }

  .gp-sales-item {
    padding: 6px;
    min-height: 30px;
  }

  .gp-sales-label {
    font-size: 12px;
    text-align: left;
  }

  .gp-sales-number {
    font-size: 13px;
    min-width: 32px;
  }
  
  /* Hide fakezahl until JS updates the real number */
.gp-sales-number {
    visibility: hidden;
}

.gp-sales-number.gp-loaded {
    visibility: visible;
}

}
