/* Mini-ERP look & feel */
:root{
  --erp-bg: #f6f8fb;
  --erp-card: #ffffff;
  --erp-text: #0f172a;
  --erp-muted: #64748b;
}

html, body { height: 100%; }
body{
  background: var(--erp-bg);
  color: var(--erp-text);
}

.app-shell{
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.app-main{
  flex: 1;
}

.page-title{
  letter-spacing: -.02em;
}

.page-actions .btn{
  white-space: nowrap;
}

.col-action{
  width: 220px;
}

.table thead th{
  white-space: nowrap;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.table td, .table th{
  vertical-align: middle;
}

.table-hover > tbody > tr:hover{
  --bs-table-bg-state: rgba(13,110,253,.04);
}

.table .form-control,
.table .form-select{
  min-width: 140px;
}

.status-pill{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  font-weight:600;
}
.status-dot{
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  display:inline-block;
}
.status-dot--ok{ background:#198754; }
.status-dot--off{ background:#dc3545; }

.form-help{
  font-size: .875rem;
  color: var(--erp-muted);
}

.card-soft{
  background: var(--erp-card);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(16,24,40,.06);
  border-radius: 16px;
}

.card-soft .card-header{
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.auth-wrap{
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
}

.auth-card{
  width: 100%;
  max-width: 420px;
}

.btn-erp{
  border-radius: 12px;
}

.navbar{
  box-shadow: 0 8px 18px rgba(16,24,40,.06);
}

.navbar .nav-link{
  font-weight: 500;
}

.alert{
  border-radius: 14px;
}

.form-control, .form-select{
  border-radius: 12px;
}

.form-label{
  font-weight: 600;
}

.invalid-feedback{
  font-size: .875rem;
}
