
.dashboard-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px;
  margin: 22px 0;
  align-items: stretch;
}
.dashboard-filters > input,
.dashboard-filters > select,
.dashboard-filters > button,
.dashboard-filters .multi-filter > summary {
  min-height: 48px;
  height: 48px;
  box-sizing: border-box;
}
.dashboard-filters > input,
.dashboard-filters > select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
}
.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.dashboard-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.dashboard-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 20px;
  min-height: 290px;
}
.dashboard-wide { grid-column: 1 / -1; }
.panel-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.panel-title h2 { margin:3px 0 0; font-size:21px; }
.bar-chart {
  display:flex;
  align-items:flex-end;
  gap:8px;
  min-height:230px;
  overflow-x:auto;
  padding:16px 4px 0;
  border-bottom:1px solid var(--border);
}
.bar-item { min-width:34px; flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:7px; height:210px; }
.bar-column { width:100%; max-width:42px; min-height:2px; border-radius:7px 7px 0 0; background:#176c52; }
.bar-label { font-size:11px; color:#64748b; white-space:nowrap; }
.bar-value { font-size:10px; color:#334155; white-space:nowrap; }
.ranking-list,.distribution-list,.attention-list { display:grid; gap:9px; }
.ranking-row,.distribution-row {
  width:100%;
  display:grid;
  grid-template-columns:32px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  border:0;
  border-radius:10px;
  background:#f8fafc;
  padding:11px;
  text-align:left;
}
button.ranking-row { cursor:pointer; }
button.ranking-row:hover { background:#eef5f2; }
.ranking-position { font-weight:900; color:#176c52; }
.ranking-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ranking-value { font-weight:800; white-space:nowrap; }
.distribution-row { grid-template-columns:minmax(0,1fr) auto; }
.distribution-bar { grid-column:1/-1; height:7px; background:#e2e8f0; border-radius:999px; overflow:hidden; }
.distribution-fill { height:100%; background:#176c52; border-radius:999px; }
.attention-item { padding:12px 13px; border-radius:10px; background:#f8fafc; border-left:4px solid #94a3b8; }
.attention-item.success { border-left-color:#16a34a; background:#f0fdf4; }
.attention-item.warning { border-left-color:#f59e0b; background:#fffbeb; }
.attention-item.danger { border-left-color:#dc2626; background:#fef2f2; }
.dashboard-change.positive { color:#15803d; }
.dashboard-change.negative { color:#b91c1c; }
@media(max-width:1100px){
  .dashboard-filters,.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .dashboard-filters,.dashboard-kpis,.dashboard-layout{grid-template-columns:1fr}
  .dashboard-wide{grid-column:auto}
}


/* v0.11.3 — aliniere butoane filtre dashboard */
#dashboardApplyFilters,
#dashboardClearFilters {
  width: 100%;
  min-height: 52px;
  height: 52px;
  margin: 0;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  box-sizing: border-box;
}

#dashboardClearFilters {
  border: 1px solid var(--border);
  background: #fff;
  color: #0f172a;
}

#dashboardClearFilters:hover {
  background: #f8fafc;
}



/* v0.12.0 — topuri valoric + cantitativ */
.ranking-metrics {
  display: grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
}

.ranking-metrics strong {
  font-size: 14px;
}

.ranking-metrics small {
  color: var(--muted);
  font-size: 12px;
}


/* v0.12.1 — drill-down în pagină separată */
.dashboard-clickable-card,
.dashboard-drill-row {
  cursor: pointer;
}

.dashboard-clickable-card {
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.dashboard-clickable-card:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 94, 70, .35);
  box-shadow: 0 12px 34px rgba(30, 50, 65, .12);
}

button.distribution-row {
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}

.dashboard-drill-row:hover {
  background: #eef5f2;
}


/* v0.12.2 — buton Vezi toate */
.panel-link-button {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--primary);
  padding: 8px 11px;
  font-weight: 800;
  cursor: pointer;
}

.panel-link-button:hover {
  background: #eef5f2;
}

.fee-card{border-color:rgba(21,94,70,.32);background:linear-gradient(180deg,#fff,#f0f8f5)}


/* v0.16.0 — Dashboard personalizabil */
.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-header-actions .secondary-button {
  min-height: 42px;
  margin: 0;
}

.dashboard-customizer {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.dashboard-customizer-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.dashboard-customizer-header h2 {
  margin: 3px 0 5px;
}

.dashboard-customizer-list {
  display: grid;
  gap: 9px;
}

.dashboard-customizer-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #f8fafc;
  cursor: grab;
}

.dashboard-customizer-item.dragging {
  opacity: .48;
}

.dashboard-customizer-handle {
  font-size: 21px;
  color: var(--muted);
  user-select: none;
}

.dashboard-customizer-label {
  font-weight: 850;
}

.dashboard-customizer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

.dashboard-customizer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.dashboard-widget.dashboard-dragging {
  opacity: .45;
  outline: 2px dashed var(--primary);
}

.dashboard-widget[hidden] {
  display: none !important;
}

.dashboard-customizer-storage-warning {
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 750;
}

@media (max-width: 760px) {
  .dashboard-header-actions,
  .dashboard-customizer-header,
  .dashboard-customizer-actions {
    align-items: stretch;
    flex-direction: column;
  }
}


/* v0.16.1 — Etapa 7.2 KPI Favorite */
.dashboard-widget {
  position: relative;
}

.dashboard-widget-star {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #64748b;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .08);
}

.dashboard-widget-star:hover,
.dashboard-widget-star.active {
  color: #b7791f;
  border-color: #f0c36a;
  background: #fff9db;
}

.dashboard-favorite-widget {
  border-color: rgba(183, 121, 31, .45);
}

.dashboard-customizer-item {
  grid-template-columns: 34px 38px minmax(0, 1fr) auto;
}

.dashboard-customizer-item.favorite {
  border-color: #f0c36a;
  background: #fffdf2;
}

.dashboard-customizer-star {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: 21px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.dashboard-customizer-star:hover,
.dashboard-customizer-star.active {
  color: #b7791f;
  border-color: #f0c36a;
  background: #fff9db;
}


/* v0.16.2 — Etapa 7.3 Layout Dashboard */
.dashboard-layout-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr)) minmax(280px, 1.2fr);
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-layout-setting,
.dashboard-laptop-toggle {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}

.dashboard-layout-setting > span {
  display: block;
  margin-bottom: 9px;
  font-weight: 850;
}

.dashboard-segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 7px;
}

.dashboard-segmented button {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.dashboard-segmented button:hover,
.dashboard-segmented button.active {
  border-color: var(--primary);
  background: #e7f2ee;
  color: var(--primary);
}

.dashboard-laptop-toggle {
  display: flex;
  gap: 11px;
  align-items: center;
  cursor: pointer;
}

.dashboard-laptop-toggle input {
  width: 20px;
  height: 20px;
}

.dashboard-laptop-toggle span {
  display: grid;
  gap: 3px;
}

.dashboard-laptop-toggle small {
  color: var(--muted);
}

#dashboardView[data-dashboard-columns="2"] .dashboard-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#dashboardView[data-dashboard-columns="3"] .dashboard-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#dashboardView[data-dashboard-columns="4"] .dashboard-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#dashboardView[data-dashboard-columns="2"] .dashboard-kpis {
  grid-template-columns: repeat(2, minmax(190px, 1fr));
}

#dashboardView[data-dashboard-columns="3"] .dashboard-kpis {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

#dashboardView[data-dashboard-columns="4"] .dashboard-kpis {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

#dashboardView[data-dashboard-density="compact"] .dashboard-kpis,
#dashboardView[data-dashboard-density="compact"] .dashboard-layout {
  gap: 11px;
}

#dashboardView[data-dashboard-density="compact"] .metric-card {
  padding: 14px;
  min-height: 112px;
}

#dashboardView[data-dashboard-density="compact"] .metric-card strong {
  font-size: 24px;
}

#dashboardView[data-dashboard-density="compact"] .dashboard-panel {
  min-height: 225px;
  padding: 14px;
}

#dashboardView[data-dashboard-density="compact"] .panel-title {
  margin-bottom: 11px;
}

#dashboardView[data-dashboard-density="compact"] .panel-title h2 {
  font-size: 18px;
}

#dashboardView[data-dashboard-density="compact"] .ranking-row,
#dashboardView[data-dashboard-density="compact"] .distribution-row,
#dashboardView[data-dashboard-density="compact"] .attention-item {
  padding: 8px 9px;
}

#dashboardView[data-dashboard-density="large"] .dashboard-kpis,
#dashboardView[data-dashboard-density="large"] .dashboard-layout {
  gap: 22px;
}

#dashboardView[data-dashboard-density="large"] .metric-card {
  min-height: 170px;
  padding: 24px;
}

#dashboardView[data-dashboard-density="large"] .metric-card strong {
  font-size: 34px;
}

#dashboardView[data-dashboard-density="large"] .dashboard-panel {
  min-height: 360px;
  padding: 25px;
}

#dashboardView[data-dashboard-density="large"] .panel-title h2 {
  font-size: 24px;
}

#dashboardView.dashboard-laptop-mode .main-content,
.dashboard-laptop-mode.main-content {
  padding-top: 18px;
}

#dashboardView.dashboard-laptop-mode .topbar {
  margin-bottom: 10px;
}

#dashboardView.dashboard-laptop-mode .dashboard-filters {
  margin: 12px 0;
  gap: 9px;
}

#dashboardView.dashboard-laptop-mode .saved-filters-bar {
  margin-bottom: 12px;
  padding: 10px;
}

#dashboardView.dashboard-laptop-mode .dashboard-kpis,
#dashboardView.dashboard-laptop-mode .dashboard-layout {
  gap: 10px;
}

#dashboardView.dashboard-laptop-mode .metric-card {
  min-height: 105px;
  padding: 13px;
}

#dashboardView.dashboard-laptop-mode .dashboard-panel {
  min-height: 215px;
  padding: 13px;
}

#dashboardView.dashboard-laptop-mode .bar-chart {
  min-height: 175px;
}

#dashboardView.dashboard-laptop-mode .bar-item {
  height: 155px;
}

#dashboardView[data-dashboard-columns="3"] .dashboard-wide,
#dashboardView[data-dashboard-columns="4"] .dashboard-wide {
  grid-column: 1 / -1;
}

@media (max-width: 1450px) {
  #dashboardView[data-dashboard-columns="4"] .dashboard-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  #dashboardView[data-dashboard-columns="3"] .dashboard-layout,
  #dashboardView[data-dashboard-columns="4"] .dashboard-layout,
  #dashboardView[data-dashboard-columns="3"] .dashboard-kpis,
  #dashboardView[data-dashboard-columns="4"] .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-layout-settings {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-laptop-toggle {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  #dashboardView[data-dashboard-columns] .dashboard-layout,
  #dashboardView[data-dashboard-columns] .dashboard-kpis,
  .dashboard-layout-settings {
    grid-template-columns: 1fr;
  }

  .dashboard-laptop-toggle {
    grid-column: auto;
  }
}


/* v0.16.3 — fix selector dimensiune + Mod Laptop vizibil */
#dashboardView[data-dashboard-density="compact"] .dashboard-kpis {
  grid-auto-rows: minmax(92px, auto);
}

#dashboardView[data-dashboard-density="compact"] .metric-card {
  min-height: 92px !important;
  padding: 10px 12px !important;
  border-radius: 12px;
}

#dashboardView[data-dashboard-density="compact"] .metric-card span {
  font-size: 12px;
}

#dashboardView[data-dashboard-density="compact"] .metric-card strong {
  font-size: 21px !important;
  margin-top: 3px;
}

#dashboardView[data-dashboard-density="compact"] .metric-card small {
  font-size: 11px;
}

#dashboardView[data-dashboard-density="compact"] .dashboard-panel {
  min-height: 185px !important;
  padding: 11px !important;
  border-radius: 13px;
}

#dashboardView[data-dashboard-density="compact"] .bar-chart {
  min-height: 145px;
}

#dashboardView[data-dashboard-density="compact"] .bar-item {
  height: 130px;
}

#dashboardView[data-dashboard-density="large"] .dashboard-kpis {
  grid-auto-rows: minmax(205px, auto);
}

#dashboardView[data-dashboard-density="large"] .metric-card {
  min-height: 205px !important;
  padding: 30px !important;
  border-radius: 22px;
}

#dashboardView[data-dashboard-density="large"] .metric-card span {
  font-size: 16px;
}

#dashboardView[data-dashboard-density="large"] .metric-card strong {
  font-size: 40px !important;
  margin-top: 12px;
}

#dashboardView[data-dashboard-density="large"] .metric-card small {
  font-size: 14px;
  margin-top: 10px;
}

#dashboardView[data-dashboard-density="large"] .dashboard-panel {
  min-height: 420px !important;
  padding: 30px !important;
  border-radius: 22px;
}

#dashboardView[data-dashboard-density="large"] .bar-chart {
  min-height: 330px;
}

#dashboardView[data-dashboard-density="large"] .bar-item {
  height: 305px;
}

/* Mod Laptop afectează întreaga aplicație vizibil, nu doar cardurile. */
.app-shell.app-laptop-mode {
  grid-template-columns: 205px minmax(0, 1fr);
}

.app-shell.app-laptop-mode .sidebar {
  padding: 14px 10px;
}

.app-shell.app-laptop-mode .sidebar-brand {
  margin-bottom: 13px;
}

.app-shell.app-laptop-mode .nav-list {
  gap: 4px;
}

.app-shell.app-laptop-mode .nav-link {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 13px;
}

.main-content.main-laptop-mode {
  padding: 14px 18px 22px !important;
}

.body-laptop-mode .topbar h1 {
  font-size: 25px;
}

.body-laptop-mode .topbar {
  min-height: 54px;
}

#dashboardView.dashboard-laptop-mode .dashboard-customizer {
  padding: 13px;
  margin: 10px 0;
}

#dashboardView.dashboard-laptop-mode .dashboard-filters {
  grid-template-columns: repeat(5, minmax(135px, 1fr));
  margin: 8px 0 10px !important;
  gap: 7px !important;
}

#dashboardView.dashboard-laptop-mode .dashboard-filters > input,
#dashboardView.dashboard-laptop-mode .dashboard-filters > select,
#dashboardView.dashboard-laptop-mode .dashboard-filters > button,
#dashboardView.dashboard-laptop-mode .dashboard-filters .multi-filter > summary {
  min-height: 39px !important;
  height: 39px !important;
  font-size: 12px;
}

#dashboardView.dashboard-laptop-mode .saved-filters-bar {
  grid-template-columns: minmax(150px, 1fr) minmax(160px, .9fr) minmax(150px, .8fr) auto auto auto;
  padding: 8px !important;
  gap: 7px;
}

#dashboardView.dashboard-laptop-mode .saved-filters-bar > button,
#dashboardView.dashboard-laptop-mode .saved-filters-bar > select,
#dashboardView.dashboard-laptop-mode .saved-filters-bar > input {
  height: 40px !important;
  min-height: 40px !important;
  font-size: 12px;
}

#dashboardView.dashboard-laptop-mode .dashboard-kpis {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  margin-bottom: 10px;
}

#dashboardView.dashboard-laptop-mode .metric-card {
  min-height: 86px !important;
  padding: 9px 11px !important;
}

#dashboardView.dashboard-laptop-mode .metric-card strong {
  font-size: 20px !important;
}

#dashboardView.dashboard-laptop-mode .dashboard-panel {
  min-height: 175px !important;
  padding: 10px !important;
}

#dashboardView.dashboard-laptop-mode .panel-title {
  margin-bottom: 8px;
}

#dashboardView.dashboard-laptop-mode .panel-title h2 {
  font-size: 17px;
}

#dashboardView.dashboard-laptop-mode .ranking-row,
#dashboardView.dashboard-laptop-mode .distribution-row,
#dashboardView.dashboard-laptop-mode .attention-item {
  padding: 6px 8px;
  font-size: 12px;
}

#dashboardView.dashboard-laptop-mode .bar-chart {
  min-height: 135px !important;
}

#dashboardView.dashboard-laptop-mode .bar-item {
  height: 120px !important;
}

@media (max-width: 1250px) {
  #dashboardView.dashboard-laptop-mode .dashboard-filters {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

  #dashboardView.dashboard-laptop-mode .dashboard-kpis {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}


/* v0.16.4 — controale native stabile pentru layout */
.dashboard-layout-setting {
  margin: 0;
  min-width: 0;
}

.dashboard-layout-setting legend {
  padding: 0;
  margin-bottom: 9px;
  font-weight: 850;
}

.dashboard-radio-group {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 7px;
}

.dashboard-radio-group label {
  position: relative;
  cursor: pointer;
}

.dashboard-radio-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dashboard-radio-group span {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.dashboard-radio-group label:hover span,
.dashboard-radio-group input:checked + span {
  border-color: var(--primary);
  background: #dff1e9;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(21, 94, 70, .15);
}

.dashboard-laptop-toggle input:checked + span strong {
  color: var(--primary);
}

.dashboard-laptop-toggle:has(input:checked) {
  border-color: var(--primary);
  background: #e7f2ee;
}

/* Diferențe foarte clare între cele trei dimensiuni. */
#dashboardView[data-dashboard-density="compact"] .dashboard-kpis {
  grid-auto-rows: minmax(78px, auto);
}

#dashboardView[data-dashboard-density="compact"] .metric-card {
  min-height: 78px !important;
  padding: 8px 10px !important;
}

#dashboardView[data-dashboard-density="compact"] .metric-card strong {
  font-size: 18px !important;
}

#dashboardView[data-dashboard-density="compact"] .dashboard-panel {
  min-height: 155px !important;
  padding: 9px !important;
}

#dashboardView[data-dashboard-density="large"] .dashboard-kpis {
  grid-auto-rows: minmax(235px, auto);
}

#dashboardView[data-dashboard-density="large"] .metric-card {
  min-height: 235px !important;
  padding: 36px !important;
}

#dashboardView[data-dashboard-density="large"] .metric-card strong {
  font-size: 46px !important;
}

#dashboardView[data-dashboard-density="large"] .dashboard-panel {
  min-height: 480px !important;
  padding: 34px !important;
}

/* Mod Laptop foarte evident. */
body.body-laptop-mode {
  font-size: 13px;
}

body.body-laptop-mode .app-shell {
  grid-template-columns: 185px minmax(0, 1fr) !important;
}

body.body-laptop-mode .sidebar {
  padding: 10px 8px !important;
}

body.body-laptop-mode .main-content {
  padding: 10px 14px 16px !important;
}

body.body-laptop-mode .topbar {
  min-height: 44px !important;
  margin-bottom: 6px !important;
}

body.body-laptop-mode .topbar h1 {
  font-size: 22px !important;
}

#dashboardView.dashboard-laptop-mode .dashboard-filters {
  grid-template-columns: repeat(6, minmax(115px, 1fr)) !important;
  gap: 5px !important;
  margin: 6px 0 8px !important;
}

#dashboardView.dashboard-laptop-mode .dashboard-filters > input,
#dashboardView.dashboard-laptop-mode .dashboard-filters > select,
#dashboardView.dashboard-laptop-mode .dashboard-filters > button,
#dashboardView.dashboard-laptop-mode .dashboard-filters .multi-filter > summary {
  height: 34px !important;
  min-height: 34px !important;
  font-size: 11px !important;
}

#dashboardView.dashboard-laptop-mode .saved-filters-bar {
  padding: 6px !important;
  gap: 5px !important;
  margin-bottom: 7px !important;
}

#dashboardView.dashboard-laptop-mode .saved-filters-bar > button,
#dashboardView.dashboard-laptop-mode .saved-filters-bar > select,
#dashboardView.dashboard-laptop-mode .saved-filters-bar > input {
  height: 34px !important;
  min-height: 34px !important;
  font-size: 11px !important;
}

#dashboardView.dashboard-laptop-mode .dashboard-kpis {
  grid-template-columns: repeat(5, minmax(125px, 1fr)) !important;
  gap: 6px !important;
}

#dashboardView.dashboard-laptop-mode .metric-card {
  min-height: 72px !important;
  padding: 7px 9px !important;
}

#dashboardView.dashboard-laptop-mode .metric-card strong {
  font-size: 18px !important;
}

#dashboardView.dashboard-laptop-mode .dashboard-layout {
  gap: 7px !important;
}

#dashboardView.dashboard-laptop-mode .dashboard-panel {
  min-height: 145px !important;
  padding: 8px !important;
}

#dashboardView.dashboard-laptop-mode .panel-title h2 {
  font-size: 15px !important;
}

#dashboardView.dashboard-laptop-mode .bar-chart {
  min-height: 105px !important;
}

#dashboardView.dashboard-laptop-mode .bar-item {
  height: 92px !important;
}

@media (max-width: 1300px) {
  #dashboardView.dashboard-laptop-mode .dashboard-filters {
    grid-template-columns: repeat(4, minmax(115px, 1fr)) !important;
  }

  #dashboardView.dashboard-laptop-mode .dashboard-kpis {
    grid-template-columns: repeat(3, minmax(130px, 1fr)) !important;
  }
}

/* v0.19.5.12.4.1 — header stabil și stări reale de încărcare */
.dashboard-widget-actions{display:inline-flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:9px;min-width:0;flex:0 0 auto}
.dashboard-widget-kpi-header{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}
.dashboard-widget-star{position:static;z-index:auto;flex:0 0 34px;width:34px;height:34px}
.panel-title{gap:14px;min-width:0}.panel-title>:first-child{min-width:0}.panel-title .panel-link-button{white-space:nowrap}
.dashboard-load-status{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;margin:0 0 14px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:10px;color:#334155;background:#f8fafc;font-weight:750}
#dashboardView[data-dashboard-state="updating"] .dashboard-load-status{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
#dashboardView[data-dashboard-state="empty"] .dashboard-load-status{border-color:#fcd34d;background:#fffbeb;color:#92400e}
#dashboardView[data-dashboard-state="error"] .dashboard-load-status{border-color:#fca5a5;background:#fef2f2;color:#991b1b}
@keyframes dashboard-skeleton-shimmer{0%{background-position:180% 0}100%{background-position:-180% 0}}
#dashboardView[data-dashboard-state="loading"] .metric-card>span,#dashboardView[data-dashboard-state="loading"] .metric-card>strong,#dashboardView[data-dashboard-state="loading"] .metric-card>small,#dashboardView[data-dashboard-state="loading"] .dashboard-widget-kpi-header>span{color:transparent!important;border-radius:7px;background:linear-gradient(90deg,#e2e8f0 25%,#f8fafc 45%,#e2e8f0 65%);background-size:220% 100%;animation:dashboard-skeleton-shimmer 1.25s ease-in-out infinite}
#dashboardView[data-dashboard-state="loading"] .metric-card>strong{width:72%;min-height:34px}
#dashboardView[data-dashboard-state="loading"] .metric-card>small{width:58%;min-height:14px}
#dashboardView[data-dashboard-state="loading"] .ranking-list:empty::before,#dashboardView[data-dashboard-state="loading"] .distribution-list:empty::before,#dashboardView[data-dashboard-state="loading"] .attention-list:empty::before,#dashboardView[data-dashboard-state="loading"] .dashboard-evolution-chart:empty::before{content:"";display:block;width:100%;min-height:220px;border-radius:10px;background:repeating-linear-gradient(to bottom,#e2e8f0 0 34px,transparent 34px 45px),linear-gradient(90deg,rgba(226,232,240,.7),rgba(248,250,252,.95),rgba(226,232,240,.7));background-size:100% 100%,220% 100%;animation:dashboard-skeleton-shimmer 1.25s ease-in-out infinite}
#dashboardView[data-dashboard-state="loading"] .dashboard-evolution-chart:empty::before{background:linear-gradient(155deg,transparent 44%,#cbd5e1 45% 48%,transparent 49%),repeating-linear-gradient(to bottom,#f8fafc 0 42px,#e2e8f0 43px 44px)}
@media (max-width:1366px){.dashboard-widget-actions{gap:6px}.dashboard-widget-star{flex-basis:30px;width:30px;height:30px;font-size:18px}.panel-title .panel-link-button{padding-inline:9px}}
@media (max-width:1024px){.panel-title{align-items:flex-start}.dashboard-widget-actions{max-width:62%}.panel-title .sales-chart-controls{flex-wrap:wrap;justify-content:flex-end}}
@media (prefers-reduced-motion:reduce){#dashboardView[data-dashboard-state="loading"] .metric-card>span,#dashboardView[data-dashboard-state="loading"] .metric-card>strong,#dashboardView[data-dashboard-state="loading"] .metric-card>small,#dashboardView[data-dashboard-state="loading"] .ranking-list:empty::before,#dashboardView[data-dashboard-state="loading"] .distribution-list:empty::before,#dashboardView[data-dashboard-state="loading"] .attention-list:empty::before,#dashboardView[data-dashboard-state="loading"] .dashboard-evolution-chart:empty::before{animation:none}}
