.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 218px minmax(0, 1fr) 208px;
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.dashboard-card {
  min-width: 0;
  min-height: 0;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.card-title {
  margin: 0;
  color: var(--dark4txt);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

.metric-row {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  margin-bottom: 36px;
  justify-content: space-between;
}
.klientai-card{
  justify-content: flex-start;

}

.metric-value {
  display: block;
  color: var(--grey4txt);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  line-height: 30px;
}

.metric-value.green {
  color: var(--accent-green);
}

.metric-value.pink {
  color: var(--accent-pink);
}

.metric-label {
  display: block;
  color: var(--grey4txt);
  font-size: 14px;
  line-height: 16px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--grey4txt);
}

.devices-card {
  background: rgba(255, 255, 255, 0.85);
}

.devices-wrap {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 22px;
}

.pie-chart {
  position: relative;
  width: 154px;
  height: 122px;
}

.pie-top {
  position: absolute;
  inset: 0 0 14px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-pink) 0 65%, var(--green-darker) 65% 80%, var(--purple) 80% 100%);
}

.pie-top::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 56% 45%, transparent 0 35%, rgba(255, 255, 255, 0.02) 36% 100%);
  transform: rotateX(58deg);
}

.pie-shadow {
  position: absolute;
  right: 3px;
  bottom: 0;
  left: 3px;
  height: 38px;
  border-radius: 0 0 50% 50%;
  background: #9f0750;
  transform: skewX(0deg);
  z-index: -1;
}

.pie-label {
  position: absolute;
  color: var(--white);
  font-size: 14px;
  line-height: 16px;
}

.pie-label.one {
  left: 32px;
  top: 67px;
}

.pie-label.two {
  right: 31px;
  top: 24px;
}

.pie-label.three {
  right: 2px;
  top: 63px;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--grey4txt);
  list-style: none;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}

.servers-card {
  grid-column: span 2;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
}

.server-subtitle {
  margin: -8px 0 4px;
  color: var(--dark4txt);
}

.server-chart-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 12px;
  min-height: 0;
}

.server-chart {
  width: 100%;
  height: 100%;
  min-height: 210px;
}

.server-side {
  padding-top: 6px;
}

.server-side .legend {
  margin-bottom: 14px;
}

.messages-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 120px;
  min-height: 62px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.52);
}

.message-marker,
.message-date {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(3, 5, 34, 0.08);
}

.message-marker span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-pink);
}

.message-copy {
  padding: 8px 16px;
  color: var(--grey4txt);
}

.message-type {
  color: var(--accent-pink);
  font-weight: 700;
}

.message-type.green {
  color: var(--green-darker);
}

.message-date {
  flex-direction: column;
  align-items: flex-start;
  padding-left: 26px;
  color: var(--grey4txt);
  line-height: 18px;
}

.messages-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--grey4txt);
}

.bottom-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 10px;
  min-height: 0;
}

.mini-card {
  padding: 14px 16px 16px;
}

.mini-title {
  margin: 0 0 8px;
  color: var(--dark4txt);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}

.channel-chart {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: repeat(5, 24px) 20px;
  align-items: center;
  height: calc(100% - 28px);
  color: var(--grey4txt);
  font-size: 13px;
  line-height: 16px;
}

.channel-name {
  padding-right: 8px;
  text-align: right;
}

.bar-track {
  position: relative;
  height: 22px;
  border-left: 2px solid var(--blue4link);
  background:
    repeating-linear-gradient(to right, transparent 0, transparent calc(20% - 1px), rgba(3, 5, 34, 0.12) calc(20% - 1px), rgba(3, 5, 34, 0.12) 20%),
    linear-gradient(to bottom, transparent calc(100% - 1px), rgba(3, 5, 34, 0.12) calc(100% - 1px));
}

.bar-fill {
  display: flex;
  height: 100%;
}

.seg-a {
  background: var(--archive-perziura);
}

.seg-b {
  background: var(--video-perziura);
}

.seg-c {
  background: var(--index-perziura);
}

.seg-d {
  background: var(--track-perziura);
}

.axis-label {
  align-self: start;
}

.axis-numbers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding-top: 2px;
}

.vod-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.vod-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-x: hidden;
}

.vod-row {
  display: grid;
  grid-template-columns: 8px 28px minmax(96px, 1fr) 38px 78px 98px 96px 68px 28px;
  align-items: center;
  min-height: 48px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.58);
  color: var(--grey4txt);
  font-size: 12px;
  column-gap: 10px;
}

.vod-row > * {
  min-width: 0;
}

.vod-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-green);
}

.poster {
  width: 24px;
  height: 36px;
  border-radius: 3px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.15)),
    linear-gradient(180deg, #134454, #0e1625 62%, #cba77b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.poster.fire {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, #36204d, #e46d33 48%, #1d1429);
}

.vod-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star {
  color: var(--accent-pink);
  font-size: 21px;
  line-height: 1;
}

.eye-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--dark4txt);
  white-space: nowrap;
}

.eye-cell img,
.more-button img {
  width: 18px;
  height: 18px;
}

.more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--grey-text-suggested);
  border-radius: 999px;
  background: transparent;
}

.switch {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 40px;
  height: 20px;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #4b4b4b;
  cursor: pointer;
}

.switch span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--white);
  transition: transform 120ms ease;
}

.switch.is-on {
  background: #48e6cf;
}

.switch.is-on span {
  transform: translateX(20px);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 5, 34, 0.38);
}

.client-modal {
  position: relative;
  width: 800px;
  height: min(852px, calc(100vh - 48px));
  padding: 28px 40px 24px;
  overflow: hidden;
  border-radius: 16px;
  color: var(--dark4txt);
  background: var(--dark4txt) url("../../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.55);
}

.modal-title-block {
  color: var(--white);
}

.modal-title-block span,
.modal-title-block strong {
  display: block;
}

.modal-title-block strong {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 30px;
}

.modal-close {
  position: absolute;
  top: 40px;
  right: 32px;
  background: rgba(255, 255, 255, 0.24);
}

.client-accordions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: calc(100% - 70px);
  margin-top: 26px;
  overflow-x: hidden;
}

.client-accordion {
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  color: var(--dark4txt);
  background: transparent;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 24px;
  cursor: pointer;
}

.accordion-head img {
  width: 18px;
  height: 18px;
}

.accordion-body {
  display: none;
  padding: 0 24px 16px;
}

.client-accordion.is-open .accordion-body {
  display: block;
}

.empty-tab {
  min-height: 120px;
  padding-top: 16px;
  color: var(--grey4txt);
}

.info-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 16px;
  color: var(--grey4txt);
}

.field,
.select-row {
  display: grid;
  gap: 6px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field input,
.field select,
.select-row select,
.device-panel select,
.device-panel input {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: var(--grey4txt);
  background: var(--white);
  font: inherit;
  outline: 0;
}

.input-with-icon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  height: 46px;
  padding: 0 12px 0 0;
  border-radius: 8px;
  background: var(--white);
}

.input-with-icon input {
  height: 46px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--grey4txt);
}

.check-field input {
  appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 7px;
  background: var(--white);
}

.check-field input:checked::after {
  content: "✓";
  display: block;
  color: var(--grey4txt);
  font-size: 18px;
  line-height: 24px;
  text-align: center;
}

.form-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.stepper-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}

.stepper {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  height: 42px;
  border-radius: 8px;
  background: var(--white);
  text-align: center;
}

.stepper button {
  width: 30px;
  height: 30px;
  margin: 0 6px;
  border: 0;
  border-radius: 999px;
  background: #e0e0e0;
  font-size: 24px;
  line-height: 24px;
  cursor: pointer;
}

.history-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.history-line a {
  color: #224c9a;
}

.select-row {
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

.devices-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.device-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.device-panel {
  padding: 12px 16px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.device-panel h3 {
  margin: 0 0 12px;
  color: var(--grey4txt);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
}

.device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 8px -16px;
}

.date-cell {
  position: relative;
  min-height: 44px;
  padding: 5px 34px 5px 16px;
  border-top: 1px solid rgba(3, 5, 34, 0.1);
  border-right: 1px solid rgba(3, 5, 34, 0.12);
}

.date-cell span,
.date-cell strong {
  display: block;
  line-height: 17px;
}

.date-cell img {
  position: absolute;
  top: 14px;
  right: 10px;
  width: 18px;
  height: 18px;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.siptv-actions {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 8px;
  align-items: center;
}

@media (max-width: 1500px) {
  .metric-row { gap: 22px; }
  .vod-row { grid-template-columns: 8px 26px minmax(86px, 1fr) 34px 68px 88px 88px 58px 26px; column-gap: 8px; }


}

.refined-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.refined-device-card {
  background: rgba(255, 255, 255, 0.85);
}

.refined-card-head {
  margin-bottom: 10px;
}

.refined-device-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 10px;
}

.refined-pie-wrap {
    position: relative;
    width: 190px;
    height: 112px;
    transform: scale(0.55);
    transform-origin: left center;
    top: -26px;
}

.refined-pie-depth {
    position: absolute;
    width: 303px;
    height: 233px;
    border-radius: 50%;
    top: 15px;
    left: -4px;
    background: conic-gradient(transparent 0% 20%, #25aa9199 23% 33.5%, #bd003e 30% 100%);
}
.refined-pie-top {
    position: absolute;
    width: 300px;
    height: 222px;
    border-radius: 50%;
    background: conic-gradient(#8a00c2 0% 20%, #00bfa5 20% 36%, #ff0055 36% 100%);
    z-index: 2;
}

.refined-pct {
      position: absolute;
    z-index: 3;
    color: var(--white);
    font-size: 27px;
    font-weight: 400;
    pointer-events: none;
}

.pct-20 {
    top: 33px;
    left: 175px;
}
.pct-15 {top: 105px;
    left: 216px;}
.pct-65 { top: 107px;
    left: 59px; }

.refined-device-legend,
.refined-server-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--grey4txt);
}

.legend-date,
.date-label {
  margin-bottom: 2px;
  color: var(--grey4txt);
  font-size: 15px;
}

.legend-item,
.server-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark4txt);
  font-size: 15px;
  line-height: 18px;
}

.legend-dot,
.server-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.legend-dot.purple,
.server-dot.server1 { background: #8a00c2; }
.legend-dot.teal,
.server-dot.server2 { background: #00ffe0; }
.legend-dot.red,
.server-dot.server3-pink { background: #ff007f; }
.server-dot.server3-black { background: #1a1a1a; }
.server-dot.server3-indigo { background: #3f3d8e; }

.refined-server-card {
  background: rgba(255, 255, 255, 0.58);
}

.refined-server-subtitle {
  margin: -4px 0 16px;
}

.refined-server-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-height: 0;
}

.refined-chart-area {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 245px;
}

#serverChart {
  display: block;
  width: 100%;
  height: 220px;
}

.x-axis-title {
  margin-top: 4px;
  color: var(--dark4txt);
  font-size: 13px;
  text-align: center;
}

.refined-server-side {
  flex: 0 0 140px;
  padding-top: 0;
}

.btn-more {
  width: fit-content;
  margin-top: 8px;
  padding: 10px 20px;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  color: var(--dark4txt);
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    height: auto;
    min-height: 0;
  }

  .dashboard-card,
  .dashboard-card.servers-card,
  .dashboard-card.devices-card {
    width: 100%;
    min-height: 0;
    padding: 16px;
    border-radius: 8px;
    background: #FFFFFFCC;
  }

  .dashboard-grid > .dashboard-card:nth-child(1) { order: 2; }
  .dashboard-grid > .dashboard-card:nth-child(2) { order: 1; }
  .dashboard-grid > .dashboard-card:nth-child(3) { order: 3; }
  .dashboard-grid > .dashboard-card:nth-child(4) { order: 7; }
  .dashboard-grid > .dashboard-card:nth-child(5) { order: 5; }
  .bottom-row { order: 6; }

  .card-head {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 12px;
  }

  .card-title {
    font-size: 20px;
    line-height: 24px;
  }

  .card-icon {
    order: -1;
  }

  .metric-row {
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-bottom: 4px;
    justify-content: space-around;
        margin-bottom: 20px;
  }

  .metric-value {
    font-size: 26px;
    line-height: 30px;
  }

  .card-foot {
    margin-top: 2px;
  }

  


  .refined-device-content {
    gap: 10px;
    align-items: center;
  }

  .refined-pie-wrap {
    width: 154px;
    height: 128px;
    transform: scale(0.56);
  }

  .refined-device-legend {
    flex: 1 1 auto;
    min-width: 130px;
    gap: 2px;
  }

  .legend-date,
  .legend-item,
  .server-legend-item {
    font-size: 14px;
    line-height: 17px;
  }

  .refined-server-layout {
    flex-direction: column;
    gap: 8px;
  }

  .refined-chart-area {
    width: 100%;
    height: 170px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--white);
  }

  #serverChart {
    height: 158px;
    min-width: 560px;
  }

  
}

.refined-device-content {
  gap: 24px;
}
@media (max-width: 1100px) {
  .dashboard-card{
    padding: 14px;
  }
}
@media (max-width: 1660px) {
  .dashboard-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 248px 260px 208px !important;

  }
  .servers-card{
    order: 7;
  }


}
@media (max-width: 1024px) {
  html,
  body,
  .app-shell[data-page="dashboard"] {
    max-width: 100%;
    overflow-x: hidden;
  }

  .refined-server-subtitle {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 18px;
  }

  #serverChart {
    min-width: 0;
    width: 100%;
  }

 
}

/* Exact Serveriai Chart.js card adaptation */
.refined-server-card {
  --purple-icon: #8a00c2;
  --text-black: #1a1a1a;
  --text-gray: #4d4d4d;
  --c-server1: #8a00c2;
  --c-server2: #00ffe0;
  --c-server3-pink: #ff007f;
  --c-server3-black: #1a1a1a;
  --c-server3-indigo: #3f3d8e;
  position: relative;
  box-sizing: border-box;
  padding: 24px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.refined-server-card .refined-card-head {
  align-items: flex-start;
  margin-bottom: 8px;
}

.refined-server-card .card-title {
  color: var(--text-black);
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
}

.refined-server-card .refined-icon {
  width: 40px;
  height: 40px;
  background: var(--purple-icon);
}

.refined-server-card .refined-icon svg {
  width: 22px;
  height: 22px;
}

.refined-server-subtitle {
  margin: 0 0 20px;
  color: var(--text-black);
  font-size: 14px;
  line-height: 18px;
}

.refined-server-subtitle b,
.refined-server-subtitle strong {
  font-weight: 700;
}

.refined-server-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-height: 0;
}

.refined-chart-area {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 300px;
}

#serverChart {
  display: block;
  width: 100% !important;
  height: 270px !important;
}

.x-axis-title {
  margin-top: 10px;
  color: var(--text-black);
  font-size: 13px;
  line-height: 16px;
  text-align: center;
}

.refined-server-side {
  flex: 0 0 140px;
  width: 140px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 0;
}

.refined-server-side .date-label {
  margin-bottom: 2px;
  color: var(--text-gray);
  font-size: 15px;
  line-height: 18px;
}

.server-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-black);
  font-size: 15px;
  line-height: 18px;
}

.server-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.server-dot.server1 { background: var(--c-server1); }
.server-dot.server2 { background: var(--c-server2); }
.server-dot.server3-pink { background: var(--c-server3-pink); }
.server-dot.server3-black { background: var(--c-server3-black); }
.server-dot.server3-indigo { background: var(--c-server3-indigo); }

.refined-server-card .btn-more {
  width: fit-content;
  margin-top: 15px;
  padding: 10px 20px;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  color: var(--text-black);
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .refined-server-layout {
    
        display: flex;          /* Ensures flex context is active */
        flex-direction: row;
        overflow-x: auto;       /* Better than 'scroll' as it hides bars when not needed */
        max-width: 100%;        /* Prevents the container from breaking the viewport */
    }

    /* Target the direct children of the layout */
    .refined-server-layout > * {
        flex-shrink: 0;         /* Prevents items from squeezing together */
    }

  .refined-chart-area {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--white);
  }
  #serverChart{
    width: auto !important;
  }
 

  
}

/* Preserve the full Chart.js server card height on desktop */
@media (min-width: 1025px) {
  .app-shell[data-page="dashboard"] .content-shell {
    overflow: auto;
  }

  .dashboard-grid {
    grid-template-rows: 218px 410px 208px;
    height: auto;
    min-height: 100%;
  }

  .refined-server-card {
    min-height: 410px;
    overflow: hidden;
  }

  .refined-chart-area {
    height: 300px;
  }

  #serverChart {
    height: 300px !important;
  }
}

@media (min-width: 1025px) {
  .dashboard-grid {
    grid-template-rows: 218px 460px 208px;
  }

  .refined-server-card {
    min-height: 460px;
  }
}
@media (max-width: 650px) {
  .dashboard-grid {
    display: flex;

flex-direction: column;

gap: 12px;

height: auto;

min-height: 0;
  }
  .bottom-row {
    grid-column: 1 / -1;
    display: flex;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 10px;
    min-height: 0;
    flex-direction: column;
}
.devices-card{
  height: 234px;
}
    .metric-row {
        flex-wrap: wrap;
        gap: 20px 35px;
        margin-bottom: 4px;
        justify-content: flex-start;
        margin-bottom: 20px;
    }
    .refined-device-legend {
        flex: 1 1 auto;
        min-width: 112px;
        gap: 2px;
    }
.brand img {
        width: 124px;
        height: 36px;
    }
        .topbar-actions {
        gap: 3px;
    }
  }
