.g06-dashboard {
  --g06-border: #d9e0e8;
  --g06-muted: #687385;
  --g06-text: #1a2433;
  --g06-accent: #2367d1;
  --g06-surface: #ffffff;
  box-sizing: border-box;
  color: var(--g06-text);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1440px;
  padding: 20px;
}

.g06-dashboard *,
.g06-dashboard *::before,
.g06-dashboard *::after {
  box-sizing: border-box;
}

.g06-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.g06-eyebrow {
  color: var(--g06-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.g06-dashboard h2,
.g06-dashboard h3 {
  margin: 0;
}

.g06-dashboard h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.g06-dashboard h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.g06-meta {
  color: var(--g06-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 12px;
  margin-top: -12px;
}

.g06-reload,
.g06-action,
.g06-tab {
  background: var(--g06-surface);
  border: 1px solid var(--g06-border);
  border-radius: 8px;
  color: var(--g06-text);
  cursor: pointer;
  font: inherit;
  min-height: 36px;
  padding: 8px 14px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.g06-reload:hover,
.g06-action:hover,
.g06-tab:hover {
  background: #f0f5ff;
  border-color: var(--g06-accent);
}

.g06-reload:focus-visible,
.g06-action:focus-visible,
.g06-tab:focus-visible {
  outline: 3px solid rgba(35, 103, 209, 0.25);
  outline-offset: 2px;
}

.g06-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
}

.g06-metric {
  background: var(--g06-surface);
  border: 1px solid var(--g06-border);
  border-radius: 10px;
  min-width: 0;
  padding: 14px;
}

.g06-metric dt {
  color: var(--g06-muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.g06-metric dd {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.g06-section {
  background: var(--g06-surface);
  border: 1px solid var(--g06-border);
  border-radius: 10px;
  min-width: 0;
  padding: 16px;
}

.g06-pipeline {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.g06-pipeline-card {
  background: #f7f9fc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.g06-pipeline-card span {
  color: var(--g06-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.g06-pipeline-card strong {
  font-size: 20px;
}

.g06-tabs {
  border-bottom: 1px solid var(--g06-border);
  display: flex;
  gap: 6px;
  margin: -4px 0 14px;
}

.g06-tab {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.g06-tab.is-active {
  border-bottom-color: var(--g06-accent);
  color: var(--g06-accent);
  font-weight: 700;
}

.g06-panel--hidden {
  display: none;
}

.g06-table-wrap {
  overflow-x: auto;
}

.g06-table {
  border-collapse: collapse;
  min-width: 780px;
  width: 100%;
}

.g06-table th,
.g06-table td {
  border-bottom: 1px solid var(--g06-border);
  padding: 11px 10px;
  text-align: left;
  vertical-align: middle;
}

.g06-table th {
  color: var(--g06-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.g06-table td {
  font-size: 13px;
}

.g06-table tbody tr:last-child td {
  border-bottom: 0;
}

.g06-status {
  background: #edf1f6;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  max-width: 180px;
  overflow: hidden;
  padding: 4px 8px;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.g06-status--paid,
.g06-status--completed,
.g06-status--approved,
.g06-status--done {
  background: #e7f7ed;
  color: #176b37;
}

.g06-status--pending,
.g06-status--draft,
.g06-status--sent,
.g06-status--processing {
  background: #fff3d6;
  color: #8a5a00;
}

.g06-status--cancelled,
.g06-status--rejected,
.g06-status--overdue,
.g06-status--failed {
  background: #fee9e7;
  color: #a22a26;
}

.g06-empty,
.g06-error,
.g06-loading {
  color: var(--g06-muted);
  padding: 26px 12px;
  text-align: center;
}

.g06-empty--compact {
  padding: 8px 0;
  text-align: left;
}

.g06-error h2 {
  color: var(--g06-text);
  font-size: 20px;
  margin-bottom: 8px;
}

.g06-error p {
  margin: 0 auto 16px;
  max-width: 560px;
  overflow-wrap: anywhere;
}

.g06-spinner {
  animation: g06-spin 0.85s linear infinite;
  border: 3px solid #dce5f5;
  border-radius: 50%;
  border-top-color: var(--g06-accent);
  height: 28px;
  margin: 0 auto 12px;
  width: 28px;
}

.g06-visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@keyframes g06-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .g06-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .g06-dashboard {
    gap: 14px;
    padding: 12px;
  }

  .g06-header {
    align-items: stretch;
    flex-direction: column;
  }

  .g06-reload {
    align-self: flex-start;
  }

  .g06-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .g06-metric {
    padding: 11px;
  }

  .g06-metric dd {
    font-size: 16px;
  }

  .g06-section {
    padding: 12px;
  }

  .g06-table {
    min-width: 0;
  }

  .g06-table thead {
    display: none;
  }

  .g06-table,
  .g06-table tbody,
  .g06-table tr,
  .g06-table td {
    display: block;
    width: 100%;
  }

  .g06-table tr {
    border-bottom: 1px solid var(--g06-border);
    padding: 9px 0;
  }

  .g06-table tr:last-child {
    border-bottom: 0;
  }

  .g06-table td {
    border: 0;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 5px 0;
    text-align: right;
  }

  .g06-table td::before {
    color: var(--g06-muted);
    content: attr(data-label);
    font-size: 12px;
    text-align: left;
  }

  .g06-table td strong,
  .g06-table td .g06-status {
    max-width: 62%;
  }
}
