/* C:\Web\portal\css\dashboard.css */
/* Lore Web V2 - extra kompakt dashboard v2 */

.dashboard-page {
  font-size: 12px;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  max-width: 980px;
  margin: 0 auto;
}

.dashboard-page h2 {
  margin: 0 0 3px 0;
  font-size: 20px;
  line-height: 1.1;
}

.dashboard-page .muted {
  margin: 0 0 8px 0;
  font-size: 12px;
}

.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-page .dashboard-card {
  padding: 7px 9px !important;
  border-radius: 10px !important;
  min-height: 0 !important;
}

.dashboard-page .dashgrid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 7px;
  align-items: start;
}

@media (max-width: 980px) {
  .dashboard-page .dashgrid {
    grid-template-columns: 1fr;
  }
}

.dashboard-page .dashwide {
  grid-column: 1 / -1;
}

/* Systemstatus ska inte bli ett stort block */
.dashboard-page .dashwide:first-child {
  max-width: 520px;
  margin: 0 auto;
}

.dashboard-page .dashrow {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.dashboard-page .dashpill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  line-height: 1.15;
  border: 1px solid rgba(0,0,0,.14);
  font-weight: 800;
  background: rgba(255,255,255,.9);
  color: #102040;
  text-decoration: none;
}

.dashboard-page .dashpill.ok {
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.45);
  color: #065f2b;
}

.dashboard-page .dashpill.warn {
  background: rgba(250,204,21,.28);
  border-color: rgba(245,158,11,.55);
  color: #7a3b00;
}

.dashboard-page .dashpill.bad {
  background: rgba(239,68,68,.18);
  border-color: rgba(220,38,38,.55);
  color: #991b1b;
}

.dashboard-page .dashpill.neutral {
  background: rgba(226,232,240,.75);
  border-color: rgba(148,163,184,.55);
  color: #334155;
}

.dashboard-page .dashlist {
  margin: 6px 0 0 0;
  padding-left: 15px;
}

.dashboard-page .dashlist li {
  margin: 1px 0;
  line-height: 1.25;
}

.dashboard-page .dashhint {
  font-size: 10.5px;
  color: rgba(0,0,0,.62);
  margin-top: 4px;
  line-height: 1.25;
}

.dashboard-page .dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 6px;
}

@media (max-width: 980px) {
  .dashboard-page .dash-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dashboard-page .dash-kpi {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(80,120,180,.22);
  border-radius: 9px;
  padding: 5px 7px;
}

.dashboard-page .dash-kpi-label {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 800;
}

.dashboard-page .dash-kpi-value {
  font-size: 15px;
  line-height: 1.05;
  font-weight: 900;
  color: #0f172a;
  margin-top: 1px;
}

.dashboard-page .dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.dashboard-page .dashbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.15;
  background: #0f172a;
  color: white;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(15,23,42,.12);
}

.dashboard-page .dashbtn.disabled {
  opacity: .45;
  cursor: not-allowed;
}

.dashboard-page .dash-section-title {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.1;
}

.dashboard-page .dash-mini-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  margin-top: 4px;
}

.dashboard-page .dash-mini-table td {
  background: rgba(255,255,255,.72);
  padding: 4px 7px;
  font-size: 11px;
  line-height: 1.15;
  border-top: 1px solid rgba(80,120,180,.16);
  border-bottom: 1px solid rgba(80,120,180,.16);
}

.dashboard-page .dash-mini-table td:first-child {
  border-left: 1px solid rgba(80,120,180,.16);
  border-radius: 8px 0 0 8px;
  font-weight: 800;
}

.dashboard-page .dash-mini-table td:last-child {
  border-right: 1px solid rgba(80,120,180,.16);
  border-radius: 0 8px 8px 0;
  text-align: right;
  font-weight: 900;
}

/* Gör nedre block mer kompakta */
.dashboard-page .dashwide:nth-last-child(2),
.dashboard-page .dashwide:last-child {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
