/* ==================================================================
   ৫৭) বাজার লিস্ট — ঘরের লেখার তারিখ, সারি মোছার বাটন, "সারি যোগ" বার
   ================================================================== */

/* প্রতিটি ভরা ঘরের ডানপাশে নিচে ছোট করে টাকা লেখার তারিখ */
#bazarTableBody td.bazar-member-cell {
  position: relative;
}

.bz-cell-date {
  position: absolute;
  right: 4px;
  bottom: 1px;
  font-family: 'Hind Siliguri', 'Sora', sans-serif;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
  pointer-events: none;
  white-space: nowrap;
}

/* Day ১১ থেকে সারি মোছার ছোট ✕ বাটন */
#bazarTableBody .bazar-day-cell {
  white-space: nowrap;
}

.bz-rm {
  margin-left: 6px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .16);
  color: #000;
  font-size: 13px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.bz-rm:hover,
.bz-rm:focus-visible {
  background: #e5484d;
  color: #fff;
  outline: none;
}

/* টেবিলের নিচের বার: ব্যাখ্যা + ＋ নতুন সারি */
.bz-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 12px 0 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-family: 'Hind Siliguri', 'Sora', sans-serif;
  color: var(--text);
}

.bz-tools-info {
  flex: 1 1 260px;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--text2);
}

.bz-tools-info b {
  color: var(--text);
}

.bz-tools-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 520px) {
  .bz-tools {
    padding: 9px 10px;
  }

  .bz-tools-actions {
    width: 100%;
  }

  .bz-tools-actions .btn {
    flex: 1 1 0;
  }
}

/* ==================================================================
   ড্যাশবোর্ড "দৈনিক বাজার খরচ" — fixed-উচ্চতার কলাম-চার্ট (পাশে স্ক্রল)
   ================================================================== */
.mmc-colchart {
  margin: 6px 0 2px;
}

.mmc-cols {
  display: flex;
  flex-direction: row-reverse;   /* ডানে সবচেয়ে নতুন তারিখ; স্ক্রল শুরু হয় ডান থেকে */
  justify-content: flex-end;     /* কম কলাম হলে বাঁ দিক থেকে সাজে */
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.mmc-col {
  flex: 0 0 auto;
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 4px 2px 3px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.mmc-col:hover {
  background: color-mix(in srgb, var(--text, #888) 6%, transparent);
}

.mmc-col.on {
  background: color-mix(in srgb, var(--text, #888) 9%, transparent);
  border-color: color-mix(in srgb, var(--text, #888) 22%, transparent);
}

.mmc-col-total {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: var(--text2, #8a94a6);
  white-space: nowrap;
}

.mmc-col-plot {
  display: flex;
  align-items: flex-end;
  height: 220px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--text, #888) 7%, transparent);
  overflow: hidden;
}

.mmc-col-bar {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  min-height: 4px;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.mmc-col-bar i {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2px;
  overflow: hidden;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}

.mmc-seg-n {
  max-width: 100%;
  padding: 0 3px;
  font-size: 10.5px;
  font-weight: 600;
  opacity: .95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mmc-seg-a {
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

/* স্কেলের চেয়ে অনেক বড় ("আগের") কলাম — মাথায় ভাঙা দাগ */
.mmc-col.cut .mmc-col-bar {
  border-radius: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 6px);
}

.mmc-col-date {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--text, #1f2937);
  white-space: nowrap;
}

/* ট্যাপ করা কলামের বিবরণ */
.mmc-coldetail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text, #888) 6%, transparent);
  font-size: 12px;
}

.mmc-cd-date {
  font-weight: 800;
  color: var(--text, #1f2937);
}

.mmc-cd-total {
  font-weight: 700;
  color: var(--text2, #8a94a6);
}

.mmc-cd-part {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text, #1f2937);
}

.mmc-cd-part i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
}