#balansSifarisiPage {
  padding: 14px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.11), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(16, 185, 129, 0.1), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f2f8ff 60%, #fbfcff 100%);
}

.bs-wrap {
  color: #0f172a;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
}

.bs-hero,
.bs-panel,
.bs-table-card,
.bs-stats .bs-stat-card {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.bs-hero { padding: 20px; margin-bottom: 14px; }
.bs-hero h2 { margin: 0; font-size: 28px; }

.bs-panel { padding: 16px; }

.bs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bs-field { display: flex; flex-direction: column; gap: 6px; }
.bs-field span { font-size: 13px; font-weight: 700; color: #334155; }

.bs-field input {
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
}

.bs-field input:focus,
.bs-modal-input:focus {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.bs-anbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

#bsAnbarSelectBtn {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(79, 70, 229, 0.35);
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}

.bs-actions { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.bs-actions-top { display: flex; }
.bs-actions-bottom { display: flex; gap: 10px; align-items: center; }

.bs-btn,
.bs-mini-btn {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.bs-btn { min-height: 40px; padding: 8px 12px; font-size: 13px; white-space: nowrap; }
#bsCalcBtn { flex: 1 1 auto; width: 100%; }
#bsClearBtn, #bsColumnsBtn { flex: 1 1 0; min-width: 0; }
#bsDepotCheckBtn { flex: 1 1 0; min-width: 0; }

.bs-mini-btn { min-height: 32px; padding: 6px 10px; }
.bs-btn-primary { color: #fff; background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.bs-btn-light { color: #1e293b; background: linear-gradient(180deg, #fff, #f1f5f9); }
.bs-btn-dark { color: #fff; background: linear-gradient(135deg, #0f172a, #334155); }

.bs-status { margin-top: 12px; min-height: 20px; color: #334155; font-size: 14px; }

.bs-progress-wrap {
  margin-top: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #f8fbff, #eff6ff);
}

.bs-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 8px;
  font-weight: 700;
}

.bs-progress-track {
  height: 12px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.8);
}

.bs-progress-bar {
  width: 1%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9, #22d3ee);
  transition: width 0.25s ease;
}

.bs-table-card { margin-top: 14px; padding: 14px; }
.bs-table-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }

.bs-table-wrap {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  overflow: auto;
}

#bsTable {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  table-layout: fixed;
}

#bsTable th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  border: 1px solid #000000;
  font-size: 15px;
  padding: 0;
  height: 38px;
  text-align: center;
  overflow: hidden;
}

#bsTable td {
  border: 1px solid #000000;
  padding: 6px 8px;
  font-size: 13px;
}

#bsTable tbody tr:nth-child(even) td { background: #f8fbff; }
#bsTable tbody tr:hover td { background: #e8f4ff; }

.bs-th-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 30px 6px 8px;
}

.bs-th-inner > span { display: block; width: 100%; text-align: center; font-weight: 700; }
.bs-th-inner-static { padding-right: 8px; }

.bs-th-filter-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  color: #1d4ed8;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.bs-empty {
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: #64748b;
}

.bs-depot-summary {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: #f8fbff;
  font-size: 14px;
}

.bs-depot-summary b { color: #0f172a; }

#bsDepotTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

#bsDepotTable th,
#bsDepotTable td {
  border: 1px solid #000;
  padding: 7px 8px;
  text-align: center;
}

#bsDepotTable th {
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
}

#bsDepotTable td:nth-child(2) {
  text-align: left;
  font-weight: 700;
}

.bs-ok {
  background: #a8e6a3;
  font-weight: 700;
}

.bs-no {
  background: #f8b0b0;
  font-weight: 700;
}

.bs-center { text-align: center; }
.bs-right { text-align: right; }
.bs-left { text-align: left; }

.bs-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bs-stat-card { padding: 14px; }
.bs-stat-label { font-size: 12px; color: #64748b; margin-bottom: 6px; }
.bs-stat-value { font-size: 22px; font-weight: 700; }

.bs-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.42);
  z-index: 99999;
  padding: 14px;
}

.bs-modal:not([hidden]) { display: flex; }

.bs-modal-card {
  width: min(460px, 96vw);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 14px;
}

.bs-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bs-modal-title { font-size: 18px; font-weight: 700; }

.bs-modal-close {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  border-radius: 10px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.bs-modal-input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.bs-filter-values,
.bs-columns-list {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
}

.bs-filter-item,
.bs-column-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  column-gap: 8px;
  min-height: 30px;
  padding: 4px 6px;
  border-radius: 8px;
}

.bs-filter-item:hover,
.bs-column-item:hover { background: #f1f5f9; }

.bs-filter-item input,
.bs-column-item input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.bs-filter-item span,
.bs-column-item span { line-height: 1.25; word-break: break-word; }

.bs-modal-toolbar,
.bs-modal-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .bs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .bs-grid { grid-template-columns: 1fr; }
  .bs-anbar-row { grid-template-columns: 1fr; }
  .bs-actions-bottom { flex-direction: column; }
  .bs-btn { width: 100%; }
  .bs-stats { grid-template-columns: 1fr; }
}
