/* ───── Cashbox summary cards ───── */
.cb-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.cb-card {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  position: relative;
}
.cb-card-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.cb-card-val {
  font-size: 24px;
  font-weight: 800;
  margin-top: 6px;
  color: #111827;
  line-height: 1;
}
.cb-card-val small { font-size: 13px; color: #6b7280; font-weight: 600; }
.cb-card-hint { font-size: 11px; color: #94a3b8; margin-top: 4px; }

.cb-card-total {
  background: linear-gradient(135deg, #FFC107 0%, #B8860B 100%);
  border-color: #B8860B;
  color: #fff;
}
.cb-card-total .cb-card-label,
.cb-card-total .cb-card-hint { color: rgba(255,255,255,0.85); }
.cb-card-total .cb-card-val { color: #fff; }
.cb-card-total .cb-card-val small { color: rgba(255,255,255,0.8); }

.cb-card-cash { border-left: 4px solid #16a34a; }
.cb-card-card { border-left: 4px solid #2563eb; }
.cb-card-transfer { border-left: 4px solid #8b5cf6; }

/* ───── Type pills ───── */
.cb-types {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 8px;
}
.cb-type-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 13px;
}
.cb-type-pill strong {
  font-weight: 800;
  color: #111;
}

.cb-type-bg {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}
.cb-type-topup { background: #fef3c7; color: #92400e; }
.cb-type-sub { background: #dbeafe; color: #1e40af; }

/* ───── Operators bar chart ───── */
.cb-ops { display: flex; flex-direction: column; gap: 10px; }
.cb-op-row {
  display: grid;
  grid-template-columns: 220px 1fr 180px;
  gap: 14px;
  align-items: center;
}
.cb-op-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cb-op-name small { color: #94a3b8; font-weight: 400; }
.cb-op-bar {
  height: 10px;
  background: #f3f4f6;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.cb-op-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFC107, #B8860B);
  border-radius: 5px;
  transition: width 0.4s ease;
}
.cb-op-stats {
  text-align: right;
  font-size: 13px;
}

@media (max-width: 760px) {
  .cb-op-row { grid-template-columns: 1fr; gap: 6px; }
  .cb-op-bar { order: 3; }
  .cb-op-stats { text-align: left; order: 2; }
}
