* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  scrollbar-width: none;
  overscroll-behavior-x: none;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.cantainer,
.container {
  flex: 1;
  background: #f6f7f8;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrepper-header,
.content-wrepper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.content-wrepper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

.content-wrepper {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.sidebar {
  width: 232px;
  background-color: #2a3647;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 64px 0;
}

.logo {
  margin: 0;
  width: 100%;
  height: 121.97px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
}

.logo img {
  width: 100.03px;
  height: 121.97px;
  object-fit: contain;
  display: block;
}

.menu {
  margin-top: 80px;
  flex: 1;
  display: flex;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 12px 56px;
  width: 100%;
  color: #a8a8a8;
  text-decoration: none;
  position: relative;
  border: none;
  outline: none;
  box-shadow: none;
  font-size: 16px;
}

.menu-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.menu a:hover {
  background-color: #384b6692;
  color: white;
}

.menu a.active {
  background-color: #091931;
  color: white;
}

.menu a.active::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background-color: #091931;
}

.menu img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  filter: brightness(0.6);
  transition: filter 0.3s ease;
}

.menu a:hover img,
.menu a.active img {
  filter: brightness(0) invert(1);
}

.sidebar-footer {
  width: 232px;
  margin-top: 243px;
  margin-left: 52px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.sidebar-footer a {
  font-size: 16px;
  line-height: 120%;
  color: #a8a8a8;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-footer a:hover {
  transform: translate(0.95px);
  color: #29abe2;
}

.header {
  height: 96px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 40px 20px 116px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.08);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  display: none;
}

.header-title {
  font-size: 20px;
  font-weight: 400;
  line-height: 120%;
  color: #000000;
  margin-left: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-help {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #3a3a334e;
  color: #a8a8a8;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.header-help:hover {
  color: #a8a8a8;
  border-color: #a8a8a8;
  background: transparent;
}

.header-user,
.header-guest {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #2a3647;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  color: #29abe2;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
  appearance: none;
}

.header-user:hover,
.header-guest:hover {
  background-color: #ccc;
}

.header-user-area {
  position: relative;
}

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: #2a3647;
  border-radius: 16px;
  padding: 8px 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 20;
}

.user-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.user-menu-item {
  padding: 10px 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.2;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.user-menu-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-item--mobile {
  display: none;
}

.summary-section {
  margin-left: 28px;
  padding-top: 100px;
}

.summary-headline {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 0 32px 0;
  margin-left: 55px;
}

.summary-title {
  margin: 0;
  font-weight: 700;
  font-size: 61px;
  line-height: 120%;
  color: #2a3647;
}

.summary-divider {
  width: 0;
  height: 59px;
  border-left: 3px solid #29abe2;
}

.summary-subtitle {
  margin: 0;
  font-weight: 400;
  font-size: 27px;
  line-height: 120%;
  color: #2a3647;
}

.summary-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
}

.kpi-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 520px;
  margin-left: 76px;
  margin-top: 20px;
}

.kpi-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.kpi-bottom {
  display: grid;
  grid-template-columns: repeat(3, 156px);
  gap: 26px;
}

.kpi-card {
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.kpi-card--half {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 150px;
  padding: 18px 36px;
  gap: 12px;
}

.kpi-card--wide {
  width: 520px;
  height: 150px;
  padding: 22px 40px;
  display: grid;
  grid-template-columns: 40% 2px 60%;
  align-items: center;
  column-gap: 16px;
}

.kpi-divider {
  width: 2px;
  background: #d1d1d1;
  height: 70%;
  justify-self: center;
  border-radius: 2px;
}

.kpi-card--small {
  height: 156px;
  width: 156px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 30px;
  padding: 10px;
  background-color: #ffffff;
}

.kpi-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2a3647;
  display: grid;
  place-items: center;
}

.kpi-urgent-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ff3d00;
  display: grid;
  place-items: center;
}

.kpi-icon img,
.kpi-urgent-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.kpi-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kpi-number {
  font-size: 47px;
  font-weight: 600;
  line-height: 120%;
  color: #000;
  text-align: center;
}

.kpi-label {
  font-size: 16px;
  font-weight: 400;
  line-height: 120%;
  color: #2a3647;
  text-align: center;
  max-width: 85px;
}

.kpi-urgent-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}

.kpi-urgent-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-left: 18px;
}

.kpi-date {
  font-size: 20px;
  font-weight: 700;
  color: #2a3647;
  white-space: nowrap;
}

.kpi-date-sub {
  font-size: 16px;
  font-weight: 400;
  color: #2a3647;
  opacity: 0.8;
  white-space: nowrap;
}

.kpi-card:hover {
  background-color: #2a3647;
}

.kpi-card:hover .kpi-number,
.kpi-card:hover .kpi-label,
.kpi-card:hover .kpi-date,
.kpi-card:hover .kpi-date-sub {
  color: #ffffff;
  opacity: 1;
}

.kpi-card:hover .kpi-icon {
  background-color: #ffffff;
}

.kpi-card:hover .kpi-icon img {
  filter: brightness(0) saturate(100%) invert(16%) sepia(11%) saturate(1600%)
    hue-rotate(182deg) brightness(92%) contrast(92%);
}

.good-morning {
  width: 100%;
  height: 73px;
  text-align: start;
  font-weight: 400;
  font-size: 28px;
  color: #2a3647;
}
@media (max-width: 1200px) {
  .summary-section {
    margin-left: 20px;
    padding-top: 70px;
  }

  .summary-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .kpi-panel {
    margin-left: 60px;
    width: 480px;
    gap: 16px;
  }

  .summary-title {
    font-size: 54px;
  }

  .summary-subtitle {
    font-size: 22px;
  }

  .summary-headline {
    gap: 20px;
    margin-bottom: 24px;
  }

  .kpi-card--half {
    width: 230px;
    height: 135px;
    padding: 16px 28px;
    border-radius: 26px;
  }

  .kpi-card--wide {
    width: 480px;
    height: 135px;
    padding: 18px 32px;
    border-radius: 26px;
    grid-template-columns: 48% 2px 50%;
  }

  .kpi-card--small {
    width: 145px;
    height: 145px;
    border-radius: 26px;
  }

  .kpi-bottom {
    grid-template-columns: repeat(3, 145px);
    gap: 21px;
  }

  .kpi-number {
    font-size: 42px;
  }

  .kpi-icon,
  .kpi-urgent-icon {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 1023px) {
  .layout {
    flex-direction: column;
  }

  .header {
    padding: 20px 40px !important;
    height: 96px;
  }
  .header-title,
  .header-help {
    display: none !important;
  }
  .good-morning {
    display: none;
  }

  .header-logo {
    display: block;
    width: 56px;
    height: 64px;
    object-fit: contain;
  }

  .header-title {
    display: none;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .sidebar {
    width: 100vw;
    max-width: 100vw;
    height: 80px;
    padding: 2px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    right: 0;
    transform: none;
    bottom: 0;
    top: auto;
    z-index: 999;
    background: #2a3647;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    border-radius: 0;
  }

  .sidebar .logo,
  .sidebar-footer {
    display: none;
  }

  .menu {
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .menu ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2px 8px;
    margin: 0;
    gap: 0;
  }

  .menu ul > li {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 100%;
    height: auto;
    font-size: 16px;
    color: #a8a8a8;
  }

  .menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    gap: 4px;
    width: 76px;
    height: 76px;
    line-height: 120%;
    border-radius: 8px;
  }

  .menu a.active {
    background-color: transparent;
  }

  .menu a.active .menu-button {
    background: #091931;
    border-radius: 16px;
  }

  .menu a.active::before,
  .menu a.active::after {
    display: none;
  }

  .menu img {
    width: 24px;
    height: 24px;
  }

  #login-btn {
    display: none;
  }

  .main {
    padding-bottom: 90px;
  }

  .summary-section {
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
    padding-top: 80px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .summary-headline {
    margin: 0 0 32px 0;
    margin-left: 35px;
  }

  .summary-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .kpi-panel {
    margin: 0 auto 40px auto;
    width: 100%;
    max-width: 760px;
  }

  .kpi-card--wide {
    width: 100%;
  }

  .kpi-card--half {
    width: 100%;
  }

  .kpi-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .header {
    width: 100%;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 27px;
    position: fixed;
    z-index: 1000;
  }

  .header-help {
    display: none;
  }

  .menu-item--mobile {
    display: block;
  }

  .summary-section,
  .kpi-panel {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  .summary-section {
    padding-top: 150px;
  }

  .summary-headline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 16px 0;
    margin-left: 0;
  }

  .summary-title {
    font-size: 61px;
    line-height: 1.1;
    margin: 0;
    white-space: nowrap;
  }

  .summary-divider {
    display: none;
  }

  .summary-subtitle {
    font-size: 16px;
    margin: 0;
  }

  .summary-subtitle::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    background: #29abe2;
    margin-top: 8px;
    border-radius: 2px;
  }

  .kpi-panel {
    padding-top: 8px;
    padding-bottom: 110px;
    gap: 12px;
    margin: 0 auto;
  }

  .kpi-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .kpi-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .kpi-card--half,
  .kpi-card--wide,
  .kpi-card--small {
    width: 100%;
    box-sizing: border-box;
    border-radius: 20px;
  }

  .kpi-card--half {
    height: 110px;
    padding: 14px 14px;
  }

  .kpi-card--wide {
    height: 120px;
    padding: 16px 14px;
    grid-template-columns: 38% 1px 62%;
    column-gap: 12px;
  }

  .kpi-divider {
    width: 1px;
    height: 65%;
  }

  .kpi-card--small {
    height: 110px;
    padding: 10px;
    gap: 10px;
  }

  .kpi-number {
    font-size: 34px;
  }

  .kpi-label {
    font-size: 16px;
    max-width: none;
  }

  .kpi-date,
  .kpi-date-sub {
    font-size: 16px;
  }

  .kpi-icon,
  .kpi-urgent-icon {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 425px) {
  .summary-section,
  .kpi-panel {
    max-width: 390px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .summary-title {
    font-size: 40px;
  }

  .kpi-card--half,
  .kpi-card--small {
    height: 104px;
  }

  .kpi-card--wide {
    height: 114px;
  }

  .kpi-number {
    font-size: 32px;
  }

  .kpi-date-sub {
    position: relative;
    right: 15px;
  }
}

@media (max-width: 360px) {
  .summary-section,
  .kpi-panel {
    max-width: 340px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .summary-title {
    font-size: 44px;
    white-space: normal;
  }

  .sidebar {
    padding: 2px 8px;
  }

  .menu ul {
    padding: 0;
  }

  .menu ul > li {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .menu a {
    flex: 1 1 0;
    min-width: 0;
  }

  .kpi-urgent-left {
    gap: 10px;
  }

  .kpi-urgent-right {
    padding-left: 10px;
  }

  .kpi-date {
    position: relative;
    right: 15px;
  }
}

@media (max-width: 340px) {
  .sidebar {
    padding: 2px 8px;
  }

  .menu ul {
    padding: 0;
    gap: 0;
  }
}

@media (max-width: 320px) {
  .summary-section,
  .kpi-panel {
    max-width: 300px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .kpi-icon,
  .kpi-urgent-icon {
    min-width: 50px;
    min-height: 50px;
  }

  .kpi-number {
    font-size: 30px;
  }

  .sidebar {
    padding: 2px 4px;
  }

  .menu ul {
    padding: 0;
  }
}

@media (max-width: 1023px) {
  .summary-section {
    margin: 0 auto;
    width: 100%;
    max-width: 860px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .kpi-panel {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
  }

  .summary-headline {
    position: relative;
  }

  .summary-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .kpi-top {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .kpi-bottom {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .kpi-card--half {
    width: 100%;
    height: 150px;
    padding: 18px 28px;
  }

  .kpi-card--wide {
    width: 100%;
    height: 150px;
    padding: 20px 32px;
  }

  .kpi-card--small {
    width: 100%;
    height: 150px;
  }

  .header-logo {
    width: 56px;
    height: 64px;
  }

  .summary-headline {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .summary-section {
    padding-top: 150px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .kpi-panel {
    gap: 16px;
  }

  .kpi-top {
    gap: 14px;
  }

  .kpi-bottom {
    gap: 14px;
  }

  .kpi-card--half {
    height: 130px;
    padding: 14px 16px;
  }

  .kpi-card--wide {
    height: 130px;
    padding: 16px;
  }

  .kpi-card--small {
    height: 120px;
  }

  .kpi-icon,
  .kpi-urgent-icon {
    width: 50px;
    height: 50px;
  }

  .kpi-number {
    font-size: 36px;
  }

  .kpi-top {
    gap: 14px;
  }

  .kpi-bottom {
    gap: 14px;
  }

  .kpi-card--half {
    height: 130px;
    padding: 14px 16px;
  }

  .kpi-card--wide {
    height: 130px;
    padding: 16px;
  }

  .kpi-card--small {
    height: 120px;
  }

  .kpi-icon,
  .kpi-urgent-icon {
    width: 50px;
    height: 50px;
  }

  .kpi-number {
    font-size: 36px;
  }

  .kpi-date {
    font-size: 20px;
    position: relative;
    right: 18px !important;
  }

  .summary-headline {
    margin-left: 15px;
  }

  .header-logo {
    width: 56px;
    height: 64px;
  }
}

@media (max-width: 425px) {
  .summary-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .kpi-top {
    gap: 12px;
  }

  .kpi-bottom {
    gap: 10px;
  }

  .kpi-card--half {
    height: 115px;
  }

  .kpi-card--wide {
    height: 120px;
  }

  .kpi-card--small {
    height: 110px;
  }

  .kpi-number {
    font-size: 32px;
  }

  .summary-headline {
    margin-left: 18px;
  }
}

@media (max-width: 425px) {
  .header {
    height: 80px;
  }

  .header-logo {
    width: 32px;
    height: 39.2px;
  }

  .header-user,
  .header-guest {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (min-width: 801px) and (max-width: 890px) {
  .summary-section {
    max-width: 780px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .kpi-panel {
    max-width: 780px;
    padding-left: 0;
    padding-right: 0;
  }
}
