/* /assets/css/dashboard.css
   Step 1: functional, crisp, orderly
*/

.dash-preview-bs{
  background: linear-gradient(180deg, rgba(247,248,252,1), rgba(238,242,251,1));
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.dash-preview-bs .card{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
}

.dash-preview-bs .card-body{
  padding: 1.1rem 1.1rem;
}

@media (min-width: 992px){
  .dash-preview-bs .card-body{
    padding: 1.25rem 1.25rem;
  }
}

/* KPI */
.dash-preview-bs .dash-kpi-icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.dash-preview-bs .dash-kpi-value{
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dash-preview-bs .dash-kpi-unit{
  font-size: 0.95rem;
  white-space: nowrap;
}

.dash-preview-bs .dash-badge{
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Tabs as real app controls */
.dash-preview-bs .dash-tabs-wrap{
  overflow-x: auto;
  padding-bottom: 8px;
}

.dash-preview-bs .dash-tabs{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dash-preview-bs .dash-tab{
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 14px;
  padding: 0.55rem 0.85rem;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 750;
  color: rgba(15, 23, 42, 0.78);
  line-height: 1;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.dash-preview-bs .dash-tab i{
  font-size: 16px;
  opacity: 0.9;
}

.dash-preview-bs .dash-tab:hover{
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.18);
  color: rgba(15, 23, 42, 0.92);
  transform: translateY(-1px);
}

.dash-preview-bs .dash-tab.is-active{
  background: rgba(43, 108, 255, 0.12);
  border-color: rgba(43, 108, 255, 0.22);
  color: rgba(35, 95, 230, 1);
}

/* Pane layout consistency */
.dash-preview-bs .dash-pane-grid{
  align-items: stretch;
}

.dash-preview-bs .dash-pane-card{
  min-height: 320px;
}

.dash-preview-bs .dash-progress{
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.dash-preview-bs .dash-progress .progress-bar{
  border-radius: 999px;
}

.dash-preview-bs .dash-chip{
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
  color: rgba(15, 23, 42, 0.78) !important;
  font-weight: 650;
}

/* Table wrapper keeps dimensions stable */
.dash-preview-bs .dash-table{
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.dash-preview-bs .table td,
.dash-preview-bs .table th{
  vertical-align: top;
}

.dash-preview-bs .table thead th{
  background: rgba(255,255,255,0.85);
  border-bottom-color: rgba(15, 23, 42, 0.10);
}

/* Empty state */
.dash-preview-bs .dash-empty{
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.60);
  text-align: center;
}

.dash-preview-bs .dash-empty-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
}

.dash-preview-bs .dash-empty-title{
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.dash-preview-bs .dash-empty-body{
  color: rgba(15, 23, 42, 0.68);
  font-size: 0.95rem;
}

/* Steps */
.dash-preview-bs .dash-steps{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.dash-preview-bs .dash-steps .list-group-item{
  border-color: rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.65);
  padding: 1rem 1rem;
}

.dash-preview-bs .dash-step-num{
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(35, 95, 230, 1);
  background: rgba(43, 108, 255, 0.12);
  border: 1px solid rgba(43, 108, 255, 0.20);
}

/* Accordion */
.dash-preview-bs .dash-accordion .accordion-item{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.dash-preview-bs .dash-accordion .accordion-item + .accordion-item{
  margin-top: 0.7rem;
}

.dash-preview-bs .dash-accordion .accordion-button{
  font-weight: 760;
  background: rgba(255, 255, 255, 0.76);
}

.dash-preview-bs .dash-accordion .accordion-button:not(.collapsed){
  background: rgba(25, 135, 84, 0.10);
  color: rgba(25, 135, 84, 0.98);
  box-shadow: none;
}

