.progress-bar {
  background-color: var(--text-body) !important;
  color: var(--bg-body) !important;
  justify-content: normal !important;
}
/*dark mode tooltip*/
/*.apexcharts-tooltip.apexcharts-theme-dark {
color: #fff;
background: rgba(30, 30, 30, 0.8);
}*/

.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;
}

/*open data charts css*/

.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: 100vh;*/
  height: 650px;
  overflow: hidden;
  width: 100%;
  min-width: 200px;
  border: 1px solid #ccc;
  /*resize:both;*/
}

.txt-color {
  color: var(--bg-body) !important;
}

.txt-color:hover {
  color: var(--text-primary) !important;
}
/*
.dark .btn:hover {
}*/

#chart-container-trans {
  position: relative;
  height: 650px;
  overflow: hidden;
  width: 100%;
  min-width: 200px;
  border: 1px solid #ccc;
  /*resize:both;*/
}
/*open data charts css*/

/**open data charts css NEW**/

.template-title {
  color: var(--color1);
  font-size: 2.5em;
}

.generatl-cards {
  padding: 0px 5px;
  width: 100%;
  margin-top: 3rem;
}

.g-card-header {
  border-bottom: 1px solid rgb(224, 224, 224);
}

.g-card-header h4 {
  margin: 0px;
  padding: 5px 0px;
}

.g-card {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  padding: 20px;
  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%);
}

.total-trl {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.total-trl h4 {
  padding: 0px 5px;
  font-size: 1em;
}

.seprate {
  /*color: rgb(162, 162, 162);*/
  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 {
  margin: 5px 0px;
  display: flex;
}

.lbl-chart {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /*align-items: center; */ /* Forces children (.card-general) to take up 100% width */
  width: 90%;
  gap: 16px; /* Adds clean spacing between stacked cards */
}

.g-line {
  width: 100%;
  margin: 5px 0px;
  border-bottom: 1px solid #b5b5b5;
}

/*
.progress-bar {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.progress-track {
    width: 100%;
    margin: 0px 10px;
    height: 20px;
}
*/

.label-color-card-airport {
  background-color: var(--primary-primary, #9d3f49);
}

.lbl-color-rectangle {
  min-width: 10px;
  height: 10px;
  border-radius: 50%;
}

.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: bold;
}

.lbl-pct {
  font-size: 11px;
  color: #999;
  font-weight: 400;
}

.dark .apexcharts-text {
  color: var(--text-primary) !important;
}

.containP {
  padding: 0px;
}

.pb-10 {
  padding-bottom: 10px;
}

.trl-chart {
  /*position: relative; */
  inset-inline-start: -28px;
  display: flex;
  justify-content: center;
}
/*
.dark .txt-color {
	color:var(--bg-primary) !important;
}*/
.no-display {
  display: none;
}
.page-head {
  font-size: 20px;
}

.page-heading {
  font-size: 20px;
}

.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;
}

/*round corner table*/
/*table {*/
/*  border-collapse: separate;*/
/*  border-spacing: 0;*/
/*  min-width: 350px;*/
/*}*/
/*table tr th,*/
/*table tr td {*/
/*  border-right: 1px solid var(--text-primary);*/
/*  border-bottom: 1px solid var(--text-primary);*/
/*  padding: 5px;*/
/*}*/
/*table tr th:first-child,*/
/*table tr td:first-child {*/
/*  border-left: 1px solid var(--text-primary);*/
/*}*/
/*table tr th {*/
/*  background: #eee;*/
/*  border-top: 1px solid var(--text-primary);*/
/*  text-align: center;*/
/*}*/

/* top-left border-radius */
/*[dir=ltr] table tr:first-child th:first-child {*/
/*  border-top-left-radius: 6px;*/
/*}*/
/*[dir=rtl] table tr:first-child th:first-child {*/
/*  border-top-right-radius: 6px;*/
/*}*/

/* top-right border-radius */
/*[dir=ltr] table tr:first-child th:last-child {*/
/*  border-top-right-radius: 6px;*/
/*}*/
/*[dir=rtl] table tr:first-child th:last-child {*/
/*  border-top-left-radius: 6px;*/
/*}*/

/* bottom-left border-radius */
/*[dir=ltr] table tr:last-child td:first-child {*/
/*  border-bottom-left-radius: 6px;*/
/*}*/
/*[dir=rtl] table tr:last-child td:first-child {*/
/*  border-bottom-right-radius: 6px;*/
/*}*/

/* bottom-right border-radius */
/*[dir=ltr] table tr:last-child td:last-child {*/
/*  border-bottom-right-radius: 6px;*/
/*}*/
/*[dir=rtl] table tr:last-child td:last-child {*/
/*  border-bottom-left-radius: 6px;*/
/*}*/
/*round corner table*/


/*data charts css */
.data-card .card-body {
  padding: var(--padding-padding-xxl, 24px) 0px;
}

.data-card .card-body .row {
  width: 100%;
}

/* Force-hides the container entirely */
.apexcharts-tooltip {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Force-hides the line above the chart */
.apexcharts-inner .apexcharts-ycrosshairs {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Year Tab*/
/* Base Container overrides */

.segmented-tabs {
  border-radius: var(--radius-sm, 12px);
  padding: 4px;
  display: flex;
  flex-direction: row;
  gap: var(--8px, 8px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: max-content;
}

/* Base button layouts substituting your .segment properties */
.segment-btn {
  padding: var(--radius-xs, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 122px;
  cursor: pointer;
  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: var(--surface-surface-container-low, #f6ebeb);
  /*border seperator*/
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}
/* Remove the divider line on the final tab element */
.segment-btn:last-of-type {
  border-right: none;
}

/* Hide Bootstrap's custom input checkboxes completely */
.btn-check {
  display: none !important;
}

/* Active Highlight (Triggers when the paired checkbox turns :checked) */
.btn-check:checked + .segment-btn {
  background: var(--surface-surface, #ffffff);
  border-radius: var(--radius-xs, 8px);
  color: var(--surface-on-surface, #000000);

  /* Soft active dimension shadow matching your reference style */
  box-shadow: var(
    --shadow-sm-box-shadow,
    0px 1px 3px 0px rgba(16, 24, 40, 0.1),
    0px 1px 2px -1px rgba(16, 24, 40, 0.1)
  );

  /* Hide border divider dynamically on the item currently active */
  border-right-color: transparent;
}

/* to style percentage chips */
.chips {
  background: var(--surface-surface-container-low, #e6eff7);
  border-radius: var(--radius-pill, 999px);
  padding: 0px var(--padding-padding-sm, 8px) 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;
  width: 45px;
  height: 24px;
  max-height: 24px;
  position: relative;
  font-size: small;
  color: var(--bs-gray);
}

/* Your Stylesheet CSS */
.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 Container positioning styling */
.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;
  transform-origin: 0 0;
  transform: rotate(0deg) scale(1, 1);
  overflow: hidden;
}

/* Big number total styling */
.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;
  transform-origin: 0 0;
  transform: rotate(0deg) scale(1, 1);
}

/* Subtext label description styling */
.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;
  transform-origin: 0 0;
  transform: rotate(0deg) scale(1, 1);
  padding-block: 30px;
}

.chart-section1  .col-lg-3.pb-10 .card-body .card-body{
  align-items: center;
}

/* --- Responsive Media Queries --- */


@media (max-width: 1024px) {
  #devices-charts .lbl-chart {
    flex-direction: row;
    justify-content: space-around;
  }

  .lbl-chart {
    padding-right: 10px;
    padding-left: 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-right: 0px;
    padding-left: 0px;
  }

  .segment-btn {
    min-width: 80px;
  }
}

@media (max-width: 768px) {
  /* On tablets and mobile screens, center text beneath the chart block */
  .total-summary-container {
    align-items: center;
    text-align: center;
    margin-top: 16px;
  }

  .total-summary-container .total-amount {
    font-size: 20px; /* Slightly scaled down on tiny mobile viewports to prevent layout break */
  }
}

@media (max-width: 640px) {
  .segmented-tabs {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .synergistic {
    width: 120px;
  }
}

@media (width: 1024px) {
.chart-section1  .pb-10{
    flex: 0 0 auto;
    width: 100%;
}
.chart-section1  .col-lg-3.pb-10{
    flex: 0 0 auto!important;
    width: 50%!important;
}

}

