/* Yakuniy tekislash va profil rasmlari */
.person {
  align-items: center;
}

.person > div:last-child {
  flex: 1;
  min-width: 0;
}

.avatar {
  flex: 0 0 auto;
  overflow: hidden;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.slide {
  grid-template-columns: minmax(570px, 1.04fr) minmax(500px, .96fr);
  column-gap: clamp(34px, 4vw, 72px);
}

.deputy-metrics {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(78px, 1fr));
  align-items: stretch;
  gap: 0 !important;
  width: 100%;
  margin-top: 18px;
}

.deputy-metrics > span {
  display: flex !important;
  min-width: 0;
  min-height: 65px;
  padding: 0 12px;
  border-left: 1px solid #dce5f0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
}

.deputy-metrics > span:first-child {
  padding-left: 0;
  border-left: 0;
}

.deputy-metrics small {
  display: block;
  min-height: 28px;
  color: #60748d;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.deputy-metrics strong,
.deputy-metrics .blue-number {
  display: block;
  margin-top: 7px;
  font-size: clamp(21px, 1.45vw, 28px) !important;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(230px, 1.35fr) 54px;
  align-items: center;
  gap: 16px;
}

.bar > span:first-child {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar strong {
  min-width: 54px;
  text-align: right;
}

.dept-card > div:first-child {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 24px;
}

.dept-card > div:first-child span {
  padding-bottom: 8px;
  text-align: left !important;
}

.dept-card > .track {
  display: block;
  clear: both;
  margin: 18px 0 24px !important;
}

.dept-card .details {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0 !important;
  margin-top: 0;
}

.dept-card .details > span {
  display: flex !important;
  min-width: 0;
  min-height: 62px;
  padding: 0 16px;
  border-left: 1px solid #dce5f0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left !important;
}

.dept-card .details > span:first-child {
  padding-left: 0;
  border-left: 0;
}

.dept-card .details small {
  display: block;
  min-height: 30px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.dept-card .details strong {
  display: block;
  overflow: hidden;
  width: 100%;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.debt-row {
  min-height: 68px;
  align-items: center;
}

.debt-row > div {
  min-width: 0;
}

.debt-row strong,
.debt-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1300px) {
  .slide {
    grid-template-columns: minmax(520px, 1fr) minmax(430px, .9fr);
    column-gap: 28px;
  }

  .deputy-metrics > span {
    padding-right: 8px;
    padding-left: 8px;
  }

  .bar {
    grid-template-columns: minmax(150px, 1fr) minmax(190px, 1.2fr) 50px;
    gap: 12px;
  }
}

@media (max-width: 1000px) {
  .slide {
    grid-template-columns: 1fr;
  }

  .bars {
    display: none;
  }

  .deputy-metrics,
  .dept-card .details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px !important;
  }
}

/* Pastki eslatma markaziy hududning aniq o‘rtasida */
.notice-bar .notice-message {
  display: flex !important;
  height: 100% !important;
  padding: 0 26px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.notice-bar .notice-message > b,
.notice-bar .notice-message > span {
  width: 100%;
  text-align: center !important;
}

/* Yuqoridagi "Bugungi eslatma" kartasi */
.foot-cards > div:nth-child(2) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Soat va sana bitta markaziy o‘qda */
header .date {
  display: flex !important;
  min-width: 112px;
  flex-direction: column;
  align-items: center !important;
  justify-content: center;
  text-align: center !important;
}

header .date > b,
header .date > span {
  width: 100%;
  text-align: center !important;
}

header .date > span {
  margin-top: 3px;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
}
