﻿.erp-dashboard-workspace {
  display: grid;
  gap: 12px;
  min-height: calc(100vh - 178px);
  padding: 2px 0 0;
}

.erp-dashboard-workspace__kpi-strip,
.erp-dashboard-workspace__top,
.erp-dashboard-workspace__content {
  display: grid;
  gap: 12px;
}

.erp-dashboard-workspace__kpi-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.erp-dashboard-workspace__top {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.5fr);
}

.erp-dashboard-workspace__stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 12px;
}

.erp-dashboard-workspace__content {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr) minmax(330px, 0.95fr);
  align-items: start;
}

.erp-dashboard-workspace__panel {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid #e5edf5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.erp-dashboard-workspace__panel--welcome {
  min-height: 112px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 16px;
}

.erp-dashboard-workspace__panel--actions {
  min-height: 112px;
}

.erp-dashboard-workspace__panel--favorites,
.erp-dashboard-workspace__panel--recent {
  grid-column: 1 / 2;
}

.erp-dashboard-workspace__panel--pending,
.erp-dashboard-workspace__panel--shortcuts {
  grid-column: 2 / 3;
}

.erp-dashboard-workspace__panel--notifications,
.erp-dashboard-workspace__panel--kpis {
  grid-column: 3 / 4;
}

.erp-dashboard-workspace__eyebrow {
  color: #7b8da2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.erp-dashboard-workspace__hero-main {
  display: grid;
  gap: 4px;
  align-content: start;
}

.erp-dashboard-workspace__hero-main h1 {
  margin: 0;
  color: #15283d;
  font-size: 0.98rem;
  font-weight: 780;
  line-height: 1.2;
}

.erp-dashboard-workspace__hero-main p {
  margin: 0;
  color: #62758b;
  font-size: 0.8rem;
  font-weight: 600;
}

.erp-dashboard-workspace__hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.erp-dashboard-workspace__hero-meta article {
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #fbfdff;
}

.erp-dashboard-workspace__hero-meta span {
  color: #8394a8;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.erp-dashboard-workspace__hero-meta strong {
  color: #1b2e44;
  font-size: 0.8rem;
  font-weight: 750;
}

.erp-dashboard-workspace__section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 2px;
}

.erp-dashboard-workspace__section-head h2 {
  margin: 0;
  color: #1b2e44;
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1.2;
  text-transform: uppercase;
}

.erp-dashboard-workspace__section-head p {
  margin: 2px 0 0;
  color: #8192a6;
  font-size: 0.72rem;
}

.erp-dashboard-link-button {
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 700;
}

.erp-dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.erp-dashboard-action-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  background: #ffffff;
  color: #182c41;
  text-decoration: none;
  box-shadow: none;
}

.erp-dashboard-action-card:hover,
.erp-dashboard-shortcut:hover,
.erp-dashboard-favorite-card:hover,
.erp-dashboard-recent-table__link:hover {
  color: #0d5cb6;
  border-color: #c9d8ea;
}

.erp-dashboard-action-card__icon,
.erp-dashboard-shortcut__icon,
.erp-dashboard-favorite-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eef4fb;
  color: #1f385b;
  font-size: 0.82rem;
  font-weight: 800;
}

.erp-dashboard-action-card__body,
.erp-dashboard-shortcut__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.erp-dashboard-action-card strong,
.erp-dashboard-shortcut strong,
.erp-dashboard-favorite-card strong {
  color: #1a2d42;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.2;
}

.erp-dashboard-action-card small,
.erp-dashboard-shortcut small,
.erp-dashboard-favorite-card small {
  color: #8192a6;
  font-size: 0.68rem;
  line-height: 1.25;
}

.erp-dashboard-favorite-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.erp-dashboard-favorite-card {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 110px;
  padding: 14px 12px;
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  background: #ffffff;
  color: #182c41;
  text-decoration: none;
  text-align: center;
}

.erp-dashboard-favorite-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.erp-dashboard-metric-list,
.erp-dashboard-shortcut-list,
.erp-dashboard-notification-list {
  display: grid;
  gap: 8px;
}

.erp-dashboard-metric-row,
.erp-dashboard-notification,
.erp-dashboard-shortcut {
  display: grid;
  min-width: 0;
  border: 1px solid #ebf0f5;
  border-radius: 8px;
  background: #ffffff;
}

.erp-dashboard-metric-row {
  grid-template-columns: 4px 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 0;
  min-height: 60px;
}

.erp-dashboard-metric-row::before {
  content: "";
  display: block;
  width: 4px;
  height: 100%;
  border-radius: 10px 0 0 10px;
  background: currentColor;
  opacity: 0.95;
}

.erp-dashboard-metric-row__body {
  display: grid;
  gap: 2px;
  padding: 10px 0;
}

.erp-dashboard-metric-row__body strong {
  color: #1a2d42;
  font-size: 0.8rem;
  font-weight: 760;
}

.erp-dashboard-metric-row__body span {
  color: #7d8ea2;
  font-size: 0.69rem;
}

.erp-dashboard-metric-row__value {
  color: #14273b;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.erp-dashboard-notification {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.erp-dashboard-notification__marker {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.erp-dashboard-notification__body {
  display: grid;
  gap: 5px;
}

.erp-dashboard-notification__body strong {
  color: #1a2d42;
  font-size: 0.83rem;
  font-weight: 740;
}

.erp-dashboard-notification__body p {
  margin: 0;
  color: #74859b;
  font-size: 0.75rem;
  line-height: 1.35;
}

.erp-dashboard-notification__time {
  color: #8c9cb0;
  font-size: 0.72rem;
  white-space: nowrap;
}

.erp-dashboard-notification.is-unread {
  background: #fcfdff;
}

.erp-dashboard-recent-table-wrap {
  overflow: hidden;
  border: 1px solid #e8edf3;
  border-radius: 8px;
}

.erp-dashboard-recent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.erp-dashboard-recent-table th,
.erp-dashboard-recent-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
}

.erp-dashboard-recent-table th {
  background: #fbfcfe;
  color: #7f91a4;
  font-size: 0.71rem;
  font-weight: 780;
  text-transform: uppercase;
}

.erp-dashboard-recent-table tr:last-child td {
  border-bottom: 0;
}

.erp-dashboard-recent-table__link {
  color: #1a2d42;
  font-weight: 720;
  text-decoration: none;
}

.erp-dashboard-shortcut {
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  color: #182c41;
  text-decoration: none;
}

.erp-dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.erp-dashboard-kpi-card,
.erp-dashboard-kpi-strip-card {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid #e5edf5;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.erp-dashboard-metric-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.erp-dashboard-kpi-strip-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 2px;
  border-radius: 9px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: #2d6cdf;
}

.erp-dashboard-kpi-strip-card.warning .erp-dashboard-kpi-strip-card__icon { color: #c97a00; }
.erp-dashboard-kpi-strip-card.success .erp-dashboard-kpi-strip-card__icon { color: #22835a; }
.erp-dashboard-kpi-strip-card.neutral .erp-dashboard-kpi-strip-card__icon { color: #4b5c70; }
.erp-dashboard-kpi-strip-card.danger .erp-dashboard-kpi-strip-card__icon { color: #c53a3a; }

.erp-dashboard-kpi-strip-card__icon svg,
.erp-dashboard-metric-row__icon svg {
  width: 16px;
  height: 16px;
}

.erp-dashboard-kpi-card span,
.erp-dashboard-kpi-strip-card span {
  color: #7e90a5;
  font-size: 0.7rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.erp-dashboard-kpi-card strong,
.erp-dashboard-kpi-strip-card strong {
  color: #16293d;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.erp-dashboard-kpi-card small,
.erp-dashboard-kpi-strip-card small {
  color: #7b8ca1;
  font-size: 0.69rem;
}

.erp-dashboard-kpi-strip-card.info strong { color: #1f5fd1; }
.erp-dashboard-kpi-strip-card.warning strong { color: #c97a00; }
.erp-dashboard-kpi-strip-card.danger strong { color: #c53a3a; }
.erp-dashboard-kpi-strip-card.success strong { color: #22835a; }
.erp-dashboard-kpi-strip-card.neutral strong { color: #4b5c70; }

.erp-home-focus-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.erp-home-focus-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid #dfe8f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.erp-home-focus-card__eyebrow,
.erp-home-guidance-card__eyebrow {
  display: inline-flex;
  color: #6e8399;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.erp-home-focus-card strong,
.erp-home-checklist-card__header strong {
  color: #17324a;
  font-size: 1rem;
  font-weight: 780;
}

.erp-home-focus-card p,
.erp-home-checklist-card__header small {
  margin: 0;
  color: #66788c;
  font-size: 0.84rem;
  line-height: 1.55;
}

.erp-home-focus-card__link {
  color: #2563eb;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.erp-home-focus-card__link:hover {
  color: #0d5cb6;
}

.erp-ops-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.erp-ops-summary__card {
  padding: 15px 16px;
  border: 1px solid #dfe8f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.erp-ops-summary__card span,
.erp-inline-guide__eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  color: #6e8399;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.erp-ops-summary__card strong,
.erp-inline-guide__card strong {
  display: block;
  color: #17324a;
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.2;
}

.erp-ops-summary__card small,
.erp-inline-guide__card p {
  display: block;
  margin-top: 6px;
  color: #66788c;
  font-size: 0.82rem;
  line-height: 1.5;
}

.erp-inline-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.erp-inline-guide__card {
  padding: 15px 16px;
  border: 1px solid #dfe8f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.erp-inline-guide__card p {
  margin-bottom: 0;
}

.erp-home-guidance-card .foundation-list-card__item {
  min-height: 100%;
}

.erp-home-checklist-card {
  padding: 14px 16px;
}

.erp-home-checklist-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 12px;
}

.erp-home-checklist-card__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid #dfe8f2;
  background: #f8fbff;
  color: #17324a;
  font-size: 1rem;
  font-weight: 800;
}

.erp-dashboard-empty-state {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 96px;
  padding: 14px;
  border: 1px dashed #d7e1eb;
  border-radius: 10px;
  background: #fbfdff;
  color: #617489;
}

.erp-dashboard-empty-state.is-inline {
  min-height: 62px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.erp-dashboard-empty-state strong {
  color: #22364d;
  font-size: 0.81rem;
  font-weight: 750;
}

.erp-dashboard-empty-state span {
  font-size: 0.75rem;
}

.erp-dashboard-action-card.is-blue .erp-dashboard-action-card__icon,
.erp-dashboard-kpi-card.is-blue,
.erp-dashboard-metric-row.is-blue,
.erp-dashboard-shortcut.is-blue,
.erp-dashboard-notification.is-blue {
  color: #2563eb;
}

.erp-dashboard-action-card.is-green .erp-dashboard-action-card__icon,
.erp-dashboard-kpi-card.is-green,
.erp-dashboard-metric-row.is-green,
.erp-dashboard-shortcut.is-green,
.erp-dashboard-notification.is-green {
  color: #16a34a;
}

.erp-dashboard-action-card.is-amber .erp-dashboard-action-card__icon,
.erp-dashboard-kpi-card.is-amber,
.erp-dashboard-metric-row.is-amber,
.erp-dashboard-shortcut.is-amber,
.erp-dashboard-notification.is-amber {
  color: #f59e0b;
}

.erp-dashboard-action-card.is-violet .erp-dashboard-action-card__icon,
.erp-dashboard-kpi-card.is-violet,
.erp-dashboard-metric-row.is-violet,
.erp-dashboard-shortcut.is-violet,
.erp-dashboard-notification.is-violet {
  color: #7c3aed;
}

.erp-dashboard-action-card.is-red .erp-dashboard-action-card__icon,
.erp-dashboard-kpi-card.is-red,
.erp-dashboard-metric-row.is-red,
.erp-dashboard-shortcut.is-red,
.erp-dashboard-notification.is-red {
  color: #ef4444;
}

.erp-dashboard-action-card.is-teal .erp-dashboard-action-card__icon,
.erp-dashboard-kpi-card.is-teal,
.erp-dashboard-metric-row.is-teal,
.erp-dashboard-shortcut.is-teal,
.erp-dashboard-notification.is-teal {
  color: #0f766e;
}

.erp-dashboard-action-card.is-slate .erp-dashboard-action-card__icon,
.erp-dashboard-kpi-card.is-slate,
.erp-dashboard-metric-row.is-slate,
.erp-dashboard-shortcut.is-slate,
.erp-dashboard-notification.is-slate {
  color: #475569;
}

@media (max-width: 1499.98px) {
  .erp-dashboard-workspace__kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .erp-dashboard-workspace__top,
  .erp-dashboard-workspace__content {
    grid-template-columns: 1fr 1fr;
  }

  .erp-dashboard-workspace__panel--notifications,
  .erp-dashboard-workspace__panel--kpis,
  .erp-dashboard-workspace__panel--favorites,
  .erp-dashboard-workspace__panel--recent,
  .erp-dashboard-workspace__panel--pending,
  .erp-dashboard-workspace__panel--shortcuts {
    grid-column: auto;
  }

  .erp-dashboard-action-grid,
  .erp-dashboard-favorite-grid,
  .erp-home-focus-strip,
  .erp-inline-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .erp-dashboard-workspace__kpi-strip,
  .erp-dashboard-workspace__top,
  .erp-dashboard-workspace__content,
  .erp-dashboard-workspace__hero-meta,
  .erp-dashboard-action-grid,
  .erp-dashboard-favorite-grid,
  .erp-dashboard-kpi-grid,
  .erp-home-focus-strip,
  .erp-ops-summary,
  .erp-inline-guide {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 767.98px) {
  .erp-dashboard-notification,
  .erp-dashboard-metric-row,
  .erp-dashboard-shortcut {
    grid-template-columns: 1fr;
  }

  .erp-dashboard-metric-row::before {
    display: none;
  }

  .erp-dashboard-notification__time {
    white-space: normal;
  }

  .erp-home-checklist-card__header {
    flex-direction: column;
  }
}

