/* ==========================================================
   assets/css/erp-tweaks.css
   - Lightweight UI tweaks to make pages feel more "ERP".
   - Safe overrides (keep minimal; avoid breaking the template).
   ========================================================== */

/* ---------- Sidebar: NEW indicator (red dot) ---------- */
.ERP_NEW_DOT,
.erp-new-dot{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:999px;
  background:#dc3545;
  margin-left:8px;
  position:relative;
  top:-1px;
  box-shadow:0 0 0 2px rgba(220,53,69,.18);
}

/* ---------- Dashboard: KPI cards ---------- */
.erp-dashboard .card{
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  box-shadow:0 10px 28px rgba(0,0,0,.05);
}
.erp-dashboard .card:hover{
  border-color:rgba(13,110,253,.25);
  box-shadow:0 14px 34px rgba(0,0,0,.08);
  transform:translateY(-1px);
}
.erp-dashboard .card .display-6,
.erp-dashboard .card .h2{
  font-weight:800;
  letter-spacing:-0.02em;
}
.erp-dashboard .card .text-muted.small{
  letter-spacing:.01em;
}

/* Softer icon chip */
.erp-dashboard .kpi-icon{
  width:46px;
  height:46px;
  border-radius:14px;
  background:rgba(13,110,253,.10);
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Buttons feel more "tile action" */
.erp-dashboard .btn.btn-sm{
  border-radius:12px;
}

/* Mini calendar tiles */
.erp-dashboard .dash-cal .dc-day{
  border-radius:14px;
}

/* ---------- Global dropdown typography standard ---------- */
.form-select,
select.form-control,
select.form-select,
select{
  font-weight: 400;
}

.form-select option,
select option{
  font-weight: 400;
}

.form-select optgroup,
select optgroup{
  font-weight: 700;
}

/* Select2: closed field should stay clean and readable */
.select2-container{ max-width: 100%; }

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple{
  font-weight: 400;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__choice__display{
  font-weight: 400;
  letter-spacing: 0;
}

/* Select2: dropdown results */
.select2-dropdown{
  font-size: 13px;
}

.select2-results__group{
  font-weight: 700 !important;
  letter-spacing: .02em;
}

.select2-results__option{
  font-weight: 500;
}

.select2-results__option[role="group"] > strong,
.select2-results__option[role="group"] > .fw-bold,
.select2-results__option[role="group"] > .fw-semibold{
  font-weight: 700 !important;
}

/* ERP tree/list balance */
.qb-tree-parent,
.qb-opt-main,
.erp-opt-parent,
.erp-dropdown-parent,
.select2-results__option .qb-tree-parent,
.select2-results__option .qb-opt-main,
.select2-results__option .erp-opt-parent,
.select2-results__option .erp-dropdown-parent{
  font-weight: 600 !important;
}

.qb-tree-child,
.qb-opt-sub,
.erp-opt-child,
.erp-dropdown-child,
.select2-results__option .qb-tree-child,
.select2-results__option .qb-opt-sub,
.select2-results__option .erp-opt-child,
.select2-results__option .erp-dropdown-child,
.select2-results__option .text-muted,
.select2-results__option small{
  font-weight: 400 !important;
}
