.compact-dashboard-page {
  font-size: 0.84rem;
}

.compact-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.compact-head h5 {
  font-size: 1.02rem;
  font-weight: 700;
}

.compact-head small {
  color: #6b7280;
}

.branch-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.branch-form label {
  font-weight: 600;
  color: #374151;
}

.branch-form .form-select {
  min-width: 220px;
  font-size: 0.82rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.metric-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 10px;
  min-height: 76px;
}

.metric-title {
  color: #4b5563;
  font-size: 0.72rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.1;
  color: #111827;
}

.metric-sub {
  color: #6b7280;
  font-size: 0.72rem;
  line-height: 1.2;
}

.small-currency {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6b7280;
  margin-top: 2px;
}

.compact-card {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.table-title {
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #374151;
}

.compact-table-wrap {
  max-height: 245px;
  overflow: auto;
}

.staff-table-wrap {
  max-height: 220px;
}

.compact-table {
  font-size: 0.76rem;
}

.compact-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
  white-space: nowrap;
}

.compact-table td,
.compact-table th {
  vertical-align: middle;
  padding: 0.36rem 0.45rem;
}

@media (max-width: 1400px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .compact-head {
    flex-direction: column;
    align-items: start;
  }

  .branch-form .form-select {
    min-width: 100%;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}
