.main-content-section {
  gap: 0px !important;
}

.progress-bar {
  background-color: var(--text-body) !important;
  color: var(--bg-body) !important;
  justify-content: normal !important;
}

.dark .trans-tp-sr {
  color: var(--bg-body) !important;
}

.dark .apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
  background: #eceff1;
  border-bottom: 1px solid #ddd;
  color: black;
}

.dark .apexcharts-tooltip.apexcharts-theme-light {
  border: 1px solid #212529;
  background: #333;
}

.dark .progress-bar {
  background-color: var(--text-body) !important;
  color: var(--bg-body) !important;
}

.dark .total-trl {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: var(--bg-body) !important;
}

.dark .progress {
  background-color: var(--bg-body) !important;
}

.dark .card {
  background-color: var(--text-primary) !important;
}

.dark .label {
  color: black;
}

.dark .lbl-name {
  color: black !important;
}

.dark .label,
p {
  color: black !important;
}

.dark .page-head {
  color: black !important;
}

.dark .page-heading {
  color: var(--text-primary) !important;
}

#chart-container {
  position: relative;
  height: 650px;
  overflow: hidden;
  width: 100%;
  min-width: 200px;
  border: 1px solid #ccc;
}

#chart-container-trans {
  position: relative;
  height: 650px;
  overflow: hidden;
  width: 100%;
  min-width: 200px;
  border: 1px solid #ccc;
}

.txt-color {
  color: var(--bg-body) !important;
}

.txt-color:hover {
  color: var(--text-primary) !important;
}

.template-title {
  color: var(--color1);
  font-size: 2.5em;
}

.generatl-cards {
  padding: 0px 5px;
  width: 100%;
  margin-top: 3rem;
}

/* Card */
.g-card-header {
  border-bottom: 1px solid rgb(224, 224, 224);
  /* margin: 0 -20px; */
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
  gap: 16px;
}

.g-card-header h4 {
  margin: 0px;
  padding: 5px 0px;
}

.g-card {
  width: 100%;
  height: auto;
  border-radius: 20px;
  /*padding: 20px;*/
  border: 1px solid rgba(0, 0, 0, 0.08);
  /*box-shadow: 2px 3px 7px -2px rgb(0 0 0 / 48%);
  -webkit-box-shadow: 2px 3px 7px -2px rgb(0 0 0 / 48%);
  -moz-box-shadow: 2px 3px 7px -2px rgb(0 0 0 / 48%); */
}

.card-body {
  flex: unset !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important; /* Vertically centers the .row inside .card-body */
  min-height: 100%;  
  padding: unset !important; 
  align-items: unset !important;
  gap: unset !important;
  align-self: unset !important;  
}

.data-card .card-body {
  padding: var(--padding-padding-xxl, 24px) 0;
}

.card.data-card {
  padding-block-end: 32px;
}

.data-card .card-body .row {
  display: flex;
  align-items: center;                /* Vertically centers columns inside the row */
  width: 100%;
}

/* Transactions card list */
.card-general {
  background: var(--surface-surface, #ffffff);
  border-radius: 10px;
  border: 1px solid var(--surface-outline, #e4e2e6);
  padding: 0px 12px;
  display: block;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.04);
  width: 100%;
}

.list-1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
}

.avatar-description {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
  flex-grow: 1;
  min-width: 0;
}

.icon-set,
.progress-circle {
  flex-shrink: 0;
}

.icon-set {
  border-radius: 100px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.icon-config {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.component {
  width: 100%;
  height: 100%;
  position: absolute;
  right: 0%;
  left: 0%;
  bottom: 0%;
  top: 0%;
  overflow: visible;
}

.col-container {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 1;
  min-width: 0;
  position: relative;
}

.synergistic {
  color: var(--surface-on-surface, #000000);
  text-align: left;
  font-family: var(--h6-regular-font-family, "Dubai-Regular", sans-serif);
  font-size: var(--h6-regular-font-size, 20px);
  line-height: var(--h6-regular-line-height, 28px);
  font-weight: var(--h6-regular-font-weight, 400);
  position: relative;
}

.processes {
  color: var(--surface-on-surface-variant, #40484f);
  text-align: left;
  font-family: var(--body-regular-font-family, "Dubai-Regular", sans-serif);
  font-size: var(--body-regular-font-size, 16px);
  line-height: var(--body-regular-line-height, 24px);
  font-weight: var(--body-regular-font-weight, 400);
  position: relative;
}

.progress-circle {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  position: relative;
}

/* Labels */
.total-trl {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.total-trl h4 {
  padding: 0px 5px;
  font-size: 1em;
}

.seprate {
  padding: 0px 5px;
  margin-top: -10px;
}

.lbl-color {
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 50%;
  margin: 7px;
}

.lbl-color-res {
  background-color: #1d4b6d;
}
.lbl-color-vsa {
  background-color: #112e3d;
}
.lbl-color-sgate {
  background-color: #266094;
}
.lbl-color-scord {
  background-color: #3687c4;
}

.label-details p,
.label-details h4 {
  margin: 0px;
}

.lbl-chart .label {
  display: flex;
  /*padding: 16px 0px;*/
  border-bottom: 1px solid rgb(224, 224, 224);
}

.lbl-chart .label:last-child {
  border-bottom: none;
}

.lbl-chart .label .d-flex {
  gap: 8px;
}

.lbl-chart .label .lbl-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.lbl-chart .label .lbl-color-rectangle {
  margin-inline: 8px !important;
}

.lbl-chart .label .lbl-number {
  width: 50px;
  text-align: end;
  flex-shrink: 0;
}

.lbl-chart .label .chips {
  flex-shrink: 0;
}

.lbl-chart {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  gap: 6px;
}

.col-lg-6 .lbl-chart {
  gap: 16px;
  margin-inline-start: 12px;
  margin-block-end: 12px;
}

.g-line {
  width: 100%;
  margin: 5px 0px;
  border-bottom: 1px solid #b5b5b5;
}

.label-color-card-airport {
  background-color: var(--primary-primary, #9d3f49);
}

.lbl-color-rectangle {
  min-width: 8px;
  height: 8px;
  border-radius: 3px;
}

.label-color-edit-seaport {
  background-color: var(--secondary-secondary, #7b5809);
}

.label-color-card-land {
  background-color: var(--success-success, #0d6d2d);
}

.w-100 {
  width: 100%;
}

.lbl-name.m-0 {
  min-width: 90px;
}

.label-details p,
.lbl-name {
  font-size: 16px;
  font-weight: normal;
}

.lbl-number,
.trl-number {
  font-size: 13px !important;
  font-family: ArabicFont, EnglishFont, sans-serif !important;
  font-weight: normal !important;
}

.lbl-pct {
  font-size: 11px;
  color: #999;
  font-weight: 400;
}

.dark .apexcharts-text {
  color: var(--text-primary) !important;
}

/* Layout */
.containP {
  padding: 0px 12px;
}

.pb-10 {
  padding-bottom: 16px;
}

.trl-chart {
  inset-inline-start: -28px;
  display: flex;
  justify-content: center;
  margin-block-start: 12px;
  margin-block-end: 30px;
  margin-inline-start: 25px;
  margin-inline-end: 0px;
}

.no-display {
  display: none;
}

.page-head {
  font-size: 20px;
}

.page-heading {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

.select-mask {
  border: 1px solid;
  border-radius: 5px;
  height: 34px;
  width: 85px;
}

.btn-check:active + .btn-outline-primary,
.btn-check:checked + .btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show,
.btn-outline-primary:active {
  background-color: var(--bg-body) !important;
  border-color: var(--text-body) !important;
  color: var(--text-body) !important;
}

/* ApexCharts */
.apexcharts-tooltip {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.apexcharts-inner .apexcharts-ycrosshairs {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Year Tab */
.chart-section1 > .row,
.charts-dropdown-list {
  width: 100%;
  margin-inline: 0;
}

.charts-dropdown-list fieldset {
  width: 100%;
  min-width: 0;
  border: none;
  padding: 0;
  margin: 0;
}

.segmented-tabs {
  border-radius: 12px;
  background: var(--surface-surface-container-low, #f6ebeb);
  padding: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.segment-btn {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 122px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  font-family: var(--body-regular-font-family);
  font-size: var(--body-regular-font-size, 16px);
  line-height: var(--body-regular-line-height, 24px);
  font-weight: var(--body-regular-font-weight, 400);
  color: var(--surface-on-surface-variant, #4b4545) !important;
  transition: all 0.2s ease;
  flex: 1 1 45%;
  background: transparent;
  border-radius: 8px;
}

.segment-btn:last-of-type {
  border-right: none;
}

.btn-check {
  display: none !important;
}

.btn-check:checked + .segment-btn {
  background: #ffffff;
  border-radius: 8px;
  color: var(--surface-on-surface, #000000);
  box-shadow:
    0px 1px 3px 0px rgba(16, 24, 40, 0.15),
    0px 1px 2px -1px rgba(16, 24, 40, 0.1);
}

/* Chips */
.chips {
  background: var(--surface-surface-container-low, #e6eff7);
  border-radius: var(--radius-pill, 999px);
  padding: 0px var(--padding-padding-sm, 8px);
  display: flex;
  flex-direction: row;
  gap: var(--gap-gap-xs, 4px);
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  height: 24px;
  max-height: 24px;
  position: relative;
  font-size: small;
  color: var(--surface-on-surface-variant, #40484f);
  font-weight: normal;
}

/* Chart icon */
.chart-icon-container {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 1;
}

.chart-icon-container .apexcharts-canvas {
  display: block;
  margin: 0 auto;
}

/* Total summary */
.total-summary-container {
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.total-summary-container .total-amount {
  color: var(--surface-on-surface, #000000);
  text-align: left;
  font-family: var(--display-font-family, "Dubai-Regular", sans-serif);
  font-size: var(--display-font-size, 68px);
  line-height: var(--display-line-height, 120%);
  font-weight: var(--display-font-weight, 400);
  position: relative;
  margin-block-start: 48px;
}

.total-summary-container .total-label {
  color: var(--surface-on-surface-variant, #40484f);
  text-align: left;
  font-family: var(--body-regular-font-family, "Dubai-Regular", sans-serif);
  font-size: var(--body-regular-font-size, 16px);
  line-height: var(--body-regular-line-height, 24px);
  font-weight: var(--body-regular-font-weight, 400);
  position: relative;
  margin-block-end: 32px;
}

body:not(.dark) .lbl-chart .chips {
  --surface-surface-container-low: #e6eff7;
}

/* --- Responsive Media Queries --- */

@media (min-width: 992px) {
  .g-card {
    height: 100%;
  }
}

@media (max-width: 1024px) {
  #devices-charts .lbl-chart {
    flex-direction: row;
    justify-content: space-around;
  }

  .lbl-chart {
    padding-inline-end: 10px;
    padding-inline-start: 20px;
    align-items: center;
  }

  .g-card {
    padding: 0px;
  }

  .pb-10 {
    padding-bottom: 10px;
    padding-left: 0px;
    padding-right: 0px;
  }

  .card-title {
    padding-top: 10px;
    margin-left: 10px;
  }

  .align-txt {
    text-align: center;
  }

  .pd-tab {
    padding-right: 0px;
    padding-left: 0px;
  }

  .pdlr {
    padding-inline: 0;
  }

  .segment-btn {
    min-width: 80px;
  }

  .chart-section1 .pb-10 {
    flex: 0 0 auto;
    width: 100%;
  }

  .chart-section1 .col-lg-3.pb-10 {
    flex: 0 0 auto !important;
    width: calc(50% - 6px) !important;
  }

  .chart-section1 > .row {
    column-gap: 12px;
  }

  .g-card-header {
    margin: 0 0px;
  }
}

@media (max-width: 768px) {
  .total-summary-container {
    align-items: center;
    text-align: center;
    margin-top: 16px;
  }

  .g-card {
    margin-top: 32px;
  }

  .total-summary-container .total-amount {
    font-size: 20px;
  }

  .g-card-header {
    margin: 0 0px;
  }
}

@media (max-width: 640px) {
  .segmented-tabs {
    max-width: 100%;
    flex-wrap: wrap;
    gap: var(--8px, 8px);
  }

  .synergistic {
    width: 120px;
  }
}

@media (max-width: 430px) {
  .containP {
    padding: 0 4px;
  }

  .chart-section1 > .row,
  .charts-dropdown-list {
    margin-inline: 0;
    padding-inline: 0;
  }

  .chart-section1 > .row > [class*="col-"] {
    padding-inline: 4px;
  }

  .pb-10 {
    padding-inline: 0;
  }

  .g-card {
    padding: 10px 8px;
  }

  .g-card-header {
    padding: 0 8px;
    margin: 0 -8px;
  }

  .data-card .card-body {
    padding: 12px 0;
  }

  .card-general {
    padding: 0px 8px;
  }

  .segment-btn {
    min-width: 60px;
    font-size: 13px;
    padding: 6px 8px;
  }

  .synergistic {
    font-size: 12px;
    white-space: normal;
  }

  .chips {
    width: 38px;
  }

  .chart-icon-container {
    flex-shrink: 0;
    width: 60px;
    height: 48px;
  }
  .lbl-chart {
    padding-inline-end: 1px;
    padding-inline-start: 10px;
  }

  .chart-section1 .col-lg-3.pb-10 {
    flex: 0 0 100% !important;
    width: 100% !important;
  }

  .processes.res {
    min-width: 40px;
  }
  .processes.sgate {
    min-width: 40px;
  }
  .processes.scor {
    min-width: 40px;
  }
  .processes.vsa {
    min-width: 40px;
  }
}

@media (max-width: 375px) {
  .containP {
    padding: 0 2px;
  }

  .g-card {
    padding: 8px 6px;
  }

  .g-card-header {
    margin: 0 -6px;
    padding: 0 6px;
  }

  .data-card .card-body {
    padding: 8px 0;
  }

  .card-general {
    padding: 0px 6px;
  }

  .avatar-description {
    gap: 6px;
  }

  .synergistic {
    font-size: 11px;
  }

  .processes {
    font-size: 11px;
  }

  .chart-icon-container {
    width: 60px;
    height: 44px;
  }
}
