.period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.period .control {
  width: 145px;
}
.period .trader-filter {
  width: 200px;
  max-width: 100%;
}
.trader-filter[hidden] {
  display: none;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.kpi {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.kpi-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: #fdebed;
  color: var(--red);
  margin-bottom: 13px;
}
.kpi strong,
.kpi small {
  display: block;
}
.kpi strong {
  font-size: 24px;
  overflow-wrap: anywhere;
}
.kpi small {
  font-size: 12px;
  color: var(--muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.chart-card,
.progress-card,
.team-card {
  padding: 18px;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title h2 {
  font-size: 15px;
  margin: 0;
}
.card-title span {
  color: var(--muted);
  font-size: 11px;
}
.card-title a {
  font-size: 12px;
  color: var(--red);
  font-weight: 700;
}
.bars {
  height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 25px 10px 0;
}
.bar-item {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.bar {
  width: min(32px, 70%);
  background: var(--red);
  border-radius: 5px 5px 0 0;
}
.bar-item span {
  color: var(--muted);
  margin-bottom: -20px;
}
.result {
  margin: 24px 0;
}
.result > span {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}
.result > div {
  height: 6px;
  background: #e9edf3;
  border-radius: 10px;
  overflow: hidden;
}
.result i {
  display: block;
  height: 100%;
  background: var(--green);
}
.result i.amber {
  background: #f1b600;
}
.team-card {
  padding: 0;
  overflow: hidden;
}
.team-card .card-title {
  padding: 17px 18px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 12px 18px;
  text-align: left;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
th {
  background: #f8f9fb;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}
.person {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  margin-right: 9px;
}
.personal-profile[hidden] {
  display: none;
}
.personal-dashboard .app-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}
.personal-dashboard .title-band {
  background: transparent;
  border-bottom: 0;
  padding: 30px 0 6px;
}
.personal-dashboard .title-band h1 {
  color: var(--navy);
  font-size: 28px;
}
.personal-dashboard .kpis {
  grid-column: 1;
  margin: 0;
  gap: 16px;
}
.personal-dashboard .kpi {
  border: 0;
  border-radius: 16px;
  padding: 22px;
  min-height: 154px;
  box-shadow: 0 4px 20px rgba(7, 26, 70, 0.04);
}
.personal-dashboard .kpi-icon {
  border-radius: 12px;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
}
.personal-dashboard .kpi:nth-child(even) .kpi-icon {
  color: var(--navy);
  background: #edf1f8;
}
.personal-dashboard .kpi strong {
  color: var(--navy);
  font-size: 27px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.personal-dashboard .kpi:last-child strong {
  font-size: 20px;
}
.personal-dashboard .dashboard-grid {
  grid-column: 1;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  align-self: stretch;
}
.personal-dashboard .dashboard-grid .card {
  border: 0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(7, 26, 70, 0.04);
  min-width: 0;
}
.personal-dashboard .card-title {
  flex-wrap: wrap;
  gap: 6px;
  color: var(--navy);
}
.personal-dashboard .bars {
  overflow-x: auto;
  padding-bottom: 24px;
  height: 230px;
  border: 0;
}
.personal-dashboard .bar-item {
  min-width: 28px;
}
.personal-dashboard .bar {
  flex-shrink: 0;
  background: linear-gradient(0deg, var(--red), #fa6670);
  border-radius: 6px 6px 2px 2px;
}
.personal-dashboard .result > span {
  gap: 10px;
}
.personal-dashboard .team-card {
  display: none;
}
.personal-dashboard .personal-profile {
  grid-column: 2;
  grid-row: 1 / span 2;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(7, 26, 70, 0.05);
  padding-bottom: 24px;
}
.profile-cover {
  height: 110px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: #fff;
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  border-top: 4px solid var(--red);
}
.profile-cover span {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
}
.personal-identity {
  text-align: center;
  padding: 0 22px 22px;
}
.personal-identity .personal-avatar {
  width: 90px;
  height: 90px;
  margin: -45px auto 16px;
  border: 5px solid #fff;
  background: var(--navy-2);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 3px 12px rgba(7, 26, 70, 0.12);
}
.profile-eyebrow {
  color: var(--red);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
}
.personal-identity h2 {
  margin: 8px 0 5px;
  font-size: 22px;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.personal-identity p, .profile-caption {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.personal-summary {
  border-top: 1px solid #edf0f5;
  padding: 22px;
}
.personal-summary h3 {
  margin: 0 0 5px;
  font-size: 14px;
  color: var(--navy);
}
.completion-ring {
  width: 138px;
  height: 138px;
  margin: 22px auto;
  padding: 10px;
  border-radius: 50%;
  background: conic-gradient(var(--red) var(--completion, 0%), #f1f3f7 0);
}
.completion-ring > div {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.completion-ring strong {
  font-size: 30px;
  color: var(--navy);
}
.completion-ring span {
  color: var(--muted);
  font-size: 11px;
}
.profile-stats {
  margin: 0;
}
.profile-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f7;
  font-size: 12px;
}
.profile-stats dt {
  color: var(--muted);
}
.profile-stats dt i {
  width: 18px;
  color: var(--red);
}
.profile-stats dd {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}
.personal-visits {
  display: flex;
  margin: 0 22px;
  gap: 18px;
}
@media (max-width: 1100px) {
  .personal-dashboard .app-main {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .personal-dashboard .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .personal-dashboard .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 800px) {
  .personal-dashboard .app-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .personal-dashboard .personal-profile {
    grid-column: 1;
    grid-row: auto;
  }
  .personal-dashboard .title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .personal-dashboard .kpi {
    padding: 16px;
  }
  .personal-dashboard .kpi strong {
    font-size: 22px;
  }
  .personal-dashboard .kpi:last-child strong {
    font-size: 17px;
  }
}
@media (max-width: 800px) {
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .period {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .kpis {
    grid-template-columns: 1fr;
  }
  .period .control {
    width: 125px;
  }
}
