#balansTenzimlenmesiPage {
  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%);
}

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

.bt-hero,
.bt-panel,
.bt-table-card,
.bt-stats .bt-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);
}

.bt-hero {
  padding: 20px;
  margin-bottom: 14px;
}

.bt-kicker {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #075985;
  background: linear-gradient(135deg, #e0f2fe, #ecfeff);
  margin-bottom: 10px;
}

.bt-hero h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.bt-hero p {
  margin: 0;
  color: #475569;
}

.bt-panel {
  padding: 16px;
}

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

.bt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bt-field span {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.bt-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;
}

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

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

#btAnbarSelectBtn {
  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;
}

.bt-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bt-actions-top {
  display: flex;
}

.bt-actions-bottom {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.bt-btn {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}

#btCalcBtn {
  flex: 1 1 auto;
  width: 100%;
}

#btClearBtn,
#btColumnsBtn {
  flex: 1 1 0;
  min-width: 0;
}

.bt-mini-btn {
  min-height: 32px;
  padding: 6px 10px;
}

.bt-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.bt-btn-light {
  color: #1e293b;
  background: linear-gradient(180deg, #fff, #f1f5f9);
}

.bt-btn-dark {
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #334155);
}

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

.bt-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);
}

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

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

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

@keyframes btProgressShine {
  0% { filter: brightness(0.95); }
  50% { filter: brightness(1.1); }
  100% { filter: brightness(0.95); }
}

.bt-table-card {
  margin-top: 14px;
  padding: 14px;
}

.bt-table-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

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

#btTable 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;
}

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

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

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

.bt-th-inner > span {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 700;
}

.bt-th-inner-static {
  padding-right: 8px;
}

.bt-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;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.18);
}

.bt-th-filter-btn:hover {
  background: linear-gradient(180deg, #ffffff, #dbeafe);
  border-color: rgba(37, 99, 235, 0.72);
}

.bt-th-filter-btn:active {
  transform: translateY(-50%) scale(0.96);
}

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

.bt-center { text-align: center; }
.bt-right { text-align: right; }
.bt-left { text-align: left; }
.bt-barcode-cell { font-weight: 700; }
.bt-artiq-cell { font-weight: 700; }

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

.bt-stat-card {
  padding: 14px;
}

.bt-stat-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.bt-stat-value {
  font-size: 22px;
  font-weight: 700;
}

.bt-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;
}

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

.bt-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;
}

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

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

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

.bt-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;
}

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

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

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

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

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

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

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

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