/* Dashboard inicial */
body.home-page {
  min-height: 100vh;
  margin: 0;
  color: #17263c;
  background: #f3f6fa;
  font-family: 'Segoe UI Variable Text', 'Segoe UI', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-x: hidden;
}

body.home-page .nav-pessoal {
  width: 100%;
  flex: 0 0 50px;
}

body.home-page #app-content {
  background:
    radial-gradient(circle at 100% 0, rgba(44, 137, 174, 0.08), transparent 28rem),
    #f3f6fa;
}

.home-shell,
.home-shell * {
  box-sizing: border-box;
}

.home-shell {
  width: 100%;
  max-width: 1680px;
  min-height: calc(100vh - 50px);
  margin: 0 auto;
  padding: 28px clamp(18px, 2.4vw, 40px) 44px;
  color: #17263c;
}

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 250px;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(125deg, #153654 0%, #1d5577 58%, #277c8b 100%);
  box-shadow: 0 18px 45px rgba(20, 51, 78, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  z-index: -1;
  content: '';
  border-radius: 50%;
  pointer-events: none;
}

.home-hero::before {
  width: 410px;
  height: 410px;
  top: -270px;
  right: 14%;
  border: 80px solid rgba(255, 255, 255, 0.055);
}

.home-hero::after {
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -150px;
  background: rgba(103, 220, 197, 0.13);
}

.home-hero__content {
  max-width: 760px;
}

.home-eyebrow {
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #dcecf4;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-hero h1 {
  margin: 16px 0 10px;
  color: #fff;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.home-hero h1 span {
  color: #89e0d2;
}

.home-hero__content > p {
  max-width: 700px;
  margin: 0;
  color: #dce8f0;
  font-size: 16px;
  line-height: 1.65;
}

.home-hero__meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.home-hero__meta span {
  color: #e5f0f5;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-hero__meta i {
  color: #82d9cd;
}

.home-hero__actions {
  position: relative;
  z-index: 1;
  width: min(235px, 100%);
  flex: 0 0 auto;
  display: grid;
  gap: 11px;
}

.home-action {
  min-height: 47px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-action--primary {
  color: #12334a;
  background: #8ce4d6;
  box-shadow: 0 10px 24px rgba(8, 38, 55, 0.2);
}

.home-action--primary:hover {
  color: #0c2c42;
  background: #a1eadf;
  transform: translateY(-2px);
}

.home-action--secondary {
  color: #f5fbff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.home-action--secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.home-action:focus-visible,
.home-shortcut:focus-visible,
.home-recent-item:focus-visible,
.home-card__footer-link:focus-visible {
  outline: 3px solid rgba(38, 156, 170, 0.35);
  outline-offset: 3px;
}

.home-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-metric {
  min-width: 0;
  min-height: 130px;
  padding: 22px;
  border: 1px solid #e0e7ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(29, 55, 82, 0.055);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-metric:hover {
  border-color: #d1dce8;
  box-shadow: 0 12px 28px rgba(29, 55, 82, 0.09);
  transform: translateY(-2px);
}

.home-metric__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.home-metric--total .home-metric__icon { color: #2669a8; background: #eaf3fc; }
.home-metric--open .home-metric__icon { color: #b66d16; background: #fff3df; }
.home-metric--done .home-metric__icon { color: #28806c; background: #e4f6f1; }
.home-metric--rate .home-metric__icon { color: #7257ad; background: #f0ebfb; }

.home-metric__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-metric__label {
  color: #68788d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.home-metric strong {
  margin-top: 5px;
  color: #17263c;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.home-metric strong span {
  margin-left: 1px;
  font-size: 17px;
}

.home-metric small {
  margin-top: 8px;
  color: #8290a2;
  font-size: 11px;
  line-height: 1.35;
}

.home-dashboard-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, 0.82fr);
  align-items: stretch;
  gap: 18px;
}

.home-card {
  min-width: 0;
  border: 1px solid #e0e7ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(29, 55, 82, 0.055);
}

.home-card__header {
  min-height: 112px;
  padding: 23px 24px 19px;
  border-bottom: 1px solid #edf1f5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.home-card__eyebrow,
.home-section-heading > div > span {
  color: #258579;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-card__header h2,
.home-section-heading h2 {
  margin: 4px 0 0;
  color: #17263c;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-card__header p {
  margin: 5px 0 0;
  color: #7b899a;
  font-size: 12px;
  line-height: 1.45;
}

.home-card__badge {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #617287;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-chart-card__body {
  min-height: 316px;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) minmax(260px, 1.2fr);
  align-items: center;
  gap: clamp(24px, 3vw, 46px);
}

.home-chart-wrap {
  position: relative;
  width: 100%;
  height: 232px;
  min-width: 0;
}

#taskChart {
  width: 100% !important;
  height: 100% !important;
}

.home-status-list {
  min-width: 0;
  display: grid;
  gap: 15px;
}

.home-status-row {
  --status-color: #7b8a9c;
}

.home-status-row--pendente { --status-color: #e6a23c; }
.home-status-row--andamento { --status-color: #3d8ed0; }
.home-status-row--analise { --status-color: #8a69c4; }
.home-status-row--verificar { --status-color: #d46b45; }
.home-status-row--concluido { --status-color: #3d9a7c; }

.home-status-row__heading {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-status-row__name {
  min-width: 0;
  color: #536378;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--status-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-color) 14%, transparent);
}

.home-status-row__numbers {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.home-status-row__numbers strong {
  color: #26374d;
  font-size: 13px;
}

.home-status-row__numbers small {
  width: 28px;
  color: #93a0af;
  font-size: 10px;
  text-align: right;
}

.home-status-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #edf1f5;
  overflow: hidden;
}

.home-status-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--status-color);
  transition: width 0.5s ease;
}

.home-recent-card {
  display: flex;
  flex-direction: column;
}

.home-recent-list {
  margin: 0;
  padding: 8px 18px 2px;
  list-style: none;
  flex: 1;
}

.home-recent-list li + li {
  border-top: 1px solid #edf1f5;
}

.home-recent-item {
  min-width: 0;
  padding: 11px 5px;
  border-radius: 9px;
  color: inherit;
  text-decoration: none;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  transition: background-color 0.18s ease;
}

.home-recent-item:hover {
  background: #f7f9fb;
}

.home-recent-item__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #54708f;
  background: #eef3f8;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.home-recent-item__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-recent-item__main strong {
  color: #26374d;
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-recent-item__main small {
  min-width: 0;
  margin-top: 4px;
  color: #8a97a7;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
}

.home-recent-item__main small span:first-child {
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-status-tag {
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.home-status-tag--pendente { color: #986016; background: #fff1d8; }
.home-status-tag--andamento { color: #276a9f; background: #e4f1fb; }
.home-status-tag--analise { color: #68499f; background: #eee8f8; }
.home-status-tag--verificar { color: #9e4c2f; background: #fbe9e2; }
.home-status-tag--concluido { color: #27745d; background: #dff3eb; }

.home-card__footer-link {
  min-height: 46px;
  margin: auto 18px 0;
  border-top: 1px solid #edf1f5;
  color: #276f86;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-card__footer-link:hover {
  color: #174f63;
}

.home-empty-state {
  min-height: 220px;
  padding: 26px;
  text-align: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-empty-state > span {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 14px;
  color: #60809c;
  background: #edf3f7;
  display: grid;
  place-items: center;
}

.home-empty-state h3 {
  margin: 0;
  color: #34465c;
  font-size: 14px;
}

.home-empty-state p {
  max-width: 330px;
  margin: 7px 0 0;
  color: #8996a5;
  font-size: 11px;
  line-height: 1.55;
}

.home-shortcuts {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #e0e7ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(29, 55, 82, 0.045);
}

.home-section-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.home-section-heading p {
  margin: 0 0 2px;
  color: #8592a2;
  font-size: 11px;
}

.home-shortcuts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.home-shortcut {
  min-width: 0;
  min-height: 77px;
  padding: 14px;
  border: 1px solid #e5ebf1;
  border-radius: 12px;
  color: inherit;
  background: #fbfcfd;
  text-decoration: none;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.home-shortcut:hover {
  border-color: #cad7e3;
  background: #fff;
  transform: translateY(-2px);
}

.home-shortcut__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.home-shortcut__icon--blue { color: #286da7; background: #e7f1fa; }
.home-shortcut__icon--teal { color: #297d70; background: #e3f4ef; }
.home-shortcut__icon--amber { color: #a9681c; background: #fff1dd; }
.home-shortcut__icon--violet { color: #7154a5; background: #eee9f8; }

.home-shortcut__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-shortcut__text strong {
  color: #2a3b50;
  font-size: 12px;
  font-weight: 700;
}

.home-shortcut__text small {
  margin-top: 4px;
  color: #8995a4;
  font-size: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-shortcut__arrow {
  color: #a1adba;
  font-size: 10px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.home-shortcut:hover .home-shortcut__arrow {
  color: #397b91;
  transform: translateX(2px);
}

@media (max-width: 1180px) {
  .home-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .home-recent-card {
    min-height: 430px;
  }
}

@media (max-width: 1050px) {
  .home-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-shell {
    padding: 16px 14px 30px;
  }

  .home-hero {
    min-height: auto;
    padding: 30px 24px;
    border-radius: 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 27px;
  }

  .home-hero__actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-chart-card__body {
    grid-template-columns: 1fr;
  }

  .home-chart-wrap {
    width: min(250px, 100%);
    margin: 0 auto;
  }

  .home-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 540px) {
  .home-hero h1 {
    font-size: 32px;
  }

  .home-hero__content > p {
    font-size: 14px;
  }

  .home-hero__actions,
  .home-metrics {
    grid-template-columns: 1fr;
  }

  .home-metric {
    min-height: 116px;
  }

  .home-card__header {
    min-height: auto;
    padding: 20px;
  }

  .home-card__badge {
    display: none;
  }

  .home-chart-card__body {
    padding: 24px 20px;
  }

  .home-recent-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .home-status-tag {
    grid-column: 2;
    width: max-content;
  }

  .home-shortcuts {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shell *,
  .home-shell *::before,
  .home-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
