@layer legacy {
  .classic-dashboard .page-heading {
    position: relative;
    padding-right: 140px;
  }
  .classic-dashboard .dashboard-new {
    position: absolute;
    right: 0;
    top: 6px;
  }
  .classic-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 24px;
    align-items: start;
  }
  .dashboard-father .classic-dashboard-layout {
    display: block;
  }
  .dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
  }
  .dashboard-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 24px;
    align-items: start;
  }
  .dashboard-recent {
    min-width: 0;
    padding: 24px 0 0;
  }
  .classic-dashboard h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1f2937;
  }
  .recent-report-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .app-shell .recent-report-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 0;
    border-radius: 18px;
    text-align: left;
    min-width: 0;
    width: 100%;
  }
  .recent-report-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    color: #fff;
    background: #1f2937;
    border-radius: 50%;
  }
  .recent-report-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
  }
  .recent-report-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }
  .recent-report-info small {
    color: #6b7280;
    font-size: 11px;
    font-weight: 400;
    text-transform: capitalize;
  }
  .recent-report-info > span {
    color: #2563eb;
    font-size: 11px;
    font-weight: 500;
  }
  .app-shell .classic-bot-card {
    border: 0;
    padding: 24px;
  }
  .classic-bot-card h2 {
    line-height: 1.5;
    font-size: 18px;
  }
  .bot-card-body {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .bot-card-avatar {
    width: 64px;
    height: 64px;
    background: #1f2937;
    border-radius: 16px;
    flex-shrink: 0;
    padding: 4px;
  }
  .bot-card-avatar svg {
    display: block;
    width: 100%;
    height: 100%;
  }
  .bot-card-body h3 {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin: 0 0 10px;
  }
  .bot-card-counts {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  .bot-card-counts > span {
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 20px;
    padding: 5px 8px;
    background: #1f2937;
    color: #fff;
    font-size: 12px;
  }
  .bot-card-counts svg {
    width: 14px;
    height: 14px;
  }
  .bot-card-state {
    font-size: 12px;
    line-height: 1.6;
    color: #6b7280;
    margin: 20px 0 10px;
  }
  .bot-card-track {
    height: 10px;
    border-radius: 20px;
    background: #e5e7eb;
    overflow: hidden;
  }
  .bot-card-track i {
    display: block;
    width: 0;
    height: 100%;
    background: #3b82f6;
    border-radius: inherit;
  }
  .is-active .bot-card-track i {
    width: 30%;
    animation: bot-running 2s ease-in-out infinite alternate;
  }
  @keyframes bot-running {
    to {
      transform: translateX(230%);
    }
  }
  .dashboard-aside {
    background: #fff;
    border-radius: 30px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
  }
  .dashboard-calendar {
    min-width: 0;
  }
  .calendar-month {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
  }
  .app-shell .calendar-month .button {
    width: 28px;
  }
  .calendar-weekdays,
  .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    text-align: center;
  }
  .calendar-weekdays {
    margin-bottom: 8px;
    font-size: 10px;
    color: #6b7280;
  }
  .app-shell .calendar-day {
    padding: 0;
    min-height: 30px;
    height: 30px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 400;
    background: transparent;
  }
  .app-shell .calendar-day:hover {
    background: #eff6ff;
  }
  .app-shell .calendar-day.outside-month {
    color: #9ca3af;
  }
  .app-shell .calendar-day.today {
    border-color: #3b82f6;
  }
  .app-shell .calendar-day.in-range {
    background: #eff6ff;
  }
  .app-shell .calendar-day[aria-pressed="true"] {
    background: #2563eb;
    color: #fff;
  }
  .calendar-selection {
    min-height: 32px;
    font-size: 10px;
    line-height: 1.6;
    margin: 12px 0 0;
    color: #6b7280;
  }

  .classic-dashboard .charts-bars,
  .classic-dashboard .charts-donut {
    display: block;
  }

  .app-shell .dashboard-operator .stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
  }

  .dashboard-feedback:empty {
    display: none;
  }
  @media (max-width: 1250px) {
    .classic-dashboard-layout {
      grid-template-columns: minmax(0, 1fr) 250px;
    }
    .dashboard-overview {
      grid-template-columns: minmax(0, 1fr);
    }
    .app-shell .dashboard-operator .stats-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .dashboard-aside {
      padding: 24px 18px;
    }
  }
  @media (max-width: 900px) {
    .classic-dashboard-layout {
      grid-template-columns: minmax(0, 1fr);
    }
    .dashboard-aside {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      align-items: start;
    }
    .dashboard-overview {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
  }
  @media (max-width: 640px) {
    .classic-dashboard .page-heading {
      padding-right: 0;
    }
    .classic-dashboard .dashboard-new {
      position: static;
      margin-top: 16px;
    }
    .dashboard-overview {
      grid-template-columns: minmax(0, 1fr);
      gap: 20px;
    }
    .dashboard-aside {
      display: flex;
      padding: 24px 18px;
    }
    .app-shell .dashboard-operator .stats-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .app-shell .calendar-day {
      height: 34px;
    }

    .dashboard-recent {
      padding-top: 0;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .is-active .bot-card-track i {
      animation: none;
    }
  }
}
