@font-face {
  font-family: 'Alliance No 2';
  src: url('../fonts/AllianceNo2-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Alliance No 1';
  src: url('../fonts/AllianceNo1-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Univers 55 Roman';
  src: url('../fonts/Univers55Roman.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}


a, button, input, label, select, summary, textarea {
  touch-action: manipulation;
}
/* ------------------UNCOMMENT TO DEBUG UI-------------------------------------
* {
  outline: 1px solid rgba(255, 0, 0, 0.2);
}*/

.js-plotly-plot .plotly,
.js-plotly-plot .plotly div,
.js-plotly-plot .plotly text {
  font-family: 'Alliance No 2', 'Roboto', sans-serif !important;
}

.js-plotly-plot .plotly .main-svg {
  padding-left: 0rem;
  padding-right: 0rem;

}

html {
  scroll-behavior: smooth;
}

.choices__list--multiple .choices__item {
  background-color: purple !important;
  border: 1px solid purple !important;
}



body {
  font-family: 'Alliance No 2', 'Roboto', sans-serif;
  font-style: normal;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0;
}


/*----------------------------------------------------Navbar start-------------------------------------------------------*/
.navbar {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  z-index: 1000;
  background-color: hsla(0, 0%, 67%, 0.1); /* soft gray */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0.9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.navbar-links button{
  margin-right: 1rem;
  align-items: center;
  border: 1px solid black;
  border-radius: 0.2rem;
  font-family: 'Univers 55 Roman', 'Roboto', sans-serif;
  font-weight: lighter;
  font-size: 12px !important;
  background-color: white;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-links button:hover {
  background-color: black;
  color: white;
}

.BACK-button{
  padding-left: .8rem !important;
  padding-right: .8rem !important;
}


.navbar-links a {
  margin-left: 20px;
  color: black;
  font-family: 'Alliance No 2', 'Roboto', sans-serif;
  text-decoration: none;
  font-size: 14px;
}



.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  color: black;
}

.logo-icon {
  width: 2.4rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.logo-svg {
  width: auto;
  height: 2rem;
  vertical-align: middle;
  fill: currentColor;
  display: inline-block;
}

.logo-light {
  color: black;
}

.logo-dark {
  color: white;
}

.logo-neutral {
  color: silver;
}

.logo-scrolled {
  color: black !important;
}

.logo-text {
  display: flex;
  font-family: 'Alliance No 2', 'Roboto', sans-serif;
  gap: 0.1rem;
  white-space: nowrap;
  font-size: 1rem;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.logo-permit {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-watch {
  font-weight: 100 !important;
  letter-spacing: -0.02em;
}


.menu-button {
  background: White;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

/*----------------------------------------------------Navbar End-------------------------------------------------------*/

/*----------------------------------------------------Drawer Start - P1-------------------------------------------------------*/
.sw-drawer{
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
}
.sw-drawer-wrapper{
  padding-top: 2.8rem;

}
.drawer-menu ul {
  list-style: none;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  padding-left: 1rem;
  padding-right: 2rem;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-menu .drawer-menu li{
  width: 100%;
}


.drawer-menu li a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  color: #3b3b3b;
  transition: color 0.2s ease;
}

.drawer-menu li a:hover {
  color: black;
}


.drawer-menu li.active::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><path d='m15 10 5 5-5 5'/><path d='M4 4v7a4 4 0 0 0 4 4h12'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from { transform: translateX(-8px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.back-button-container {
  height: .2rem;
  width: .2rem;
}

.back-left{
  padding: .1rem .3rem;
  border-radius: 3px;
  justify-content: center;
  align-items: center;
  transform: scale(1.5);
  transition: transform 0.3s ease;
}
.back-left:hover {
  color: black;
  transform: scale(1.7);
}
.back-left svg{
  padding-top: .2rem;
  height: 1.0rem;
  width: 1.0rem;
}

.submenu {
  padding-top: 0.2rem !important;
  padding-bottom: 0 !important;
  gap: .4rem !important;
  max-height: 500px;
  overflow: hidden;
  opacity: 1;
  padding-left: 20px;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}


.has-submenu.close .submenu {
  max-height: 0;
  opacity: 0;
}


.close-button-container {
  padding-right: 2rem;
}

.sw-close.sw-close-right {
  border: 1px solid black;
  padding: .1rem .3rem;
  border-radius: 3px;
  transform: scale(1.5);
  transition: transform 0.3s ease;
}
.sw-close.sw-close-right:hover {
  background-color: black;
  color: white;
  transform: scale(1.7);
}


.sw-drawer-wrapper hr {
  border: none;
  border-top: 2px solid black;
  margin: 1rem 0;
}

/*----------------------------------------------------Drawer End - P1-------------------------------------------------------*/

/*----------------------------------------------------Drawer Mobile Start - P1-------------------------------------------------------*/
.sw-drawer-bottom{
  z-index: 10000;
}
.horizontal-drawer {
  padding: 1rem 1.5rem;
  background-color: white;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottom-nav-menu{
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.bottom-nav-menu ul {
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  scroll-snap-type: x mandatory;
  display: flex;
  justify-content: space-around;
  gap: 1.4rem;
  padding: 0;
  margin: 1rem 0 0 0;
  width: 100%;
}

.bottom-nav-menu li {
  scroll-snap-align: center;
  flex: 0 0 auto;
}

.bottom-nav-menu ul {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.bottom-nav-menu ul::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}


.bottom-nav-menu li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: black;
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  font-weight: 500;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.mobile-active {
  color: purple !important;
}

.more-menu-popup {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.more-menu-popup.visible {
  max-height: 500px; /* or whatever fits your content */
  opacity: 1;
  transform: translateY(0);
}


.mobile-close-button{
  background-color: black !important;
  color: white;
  padding: .2rem .4rem;
  border: none;
  border-radius: 5px;

}

.mobile-close-list{
  padding-top: 0.5rem;
}

/*----------------------------------------------------Drawer Mobile End - P1-------------------------------------------------------*/

/*----------------------------------------------------Dock Start-------------------------------------------------------*/
.mobile-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  z-index: 9999;
  pointer-events: none;
}

.mobile-dock button{
  margin-right: 1rem;
  align-items: center;
  border: 1px solid black;
  border-radius: 0.2rem;
  font-family: 'Univers 55 Roman', 'Roboto', sans-serif;
  font-weight: lighter;
  font-size: 12px !important;
  color: black;
  background-color: white;
  transition: background-color 0.3s ease, color 0.3s ease;
}


/* Responsitivity for both web and android Design */
.desktop-only {
  display: flex;
}
.mobile-only {
  display: none;
}


/*----------------------------------------------------Dock End---------------------------------------------------------*/

/*-------------------------------------------------Main content Start------------------------------------------------------*/
main {
  padding-top: 5rem;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.chart-heading {
  display: block; /* ensures it's treated as a single block */
  text-align: start;
  margin-bottom: 1.5rem;
  padding-right: 1.5rem;
}

.chart-heading .main-heading {
  font-weight: bold;
  font-size: 1.5rem;
  margin: 0;
  font-family: 'Alliance No 2', 'Roboto', sans-serif;
}

.chart-heading .sub-heading {
  font-weight: 300;
  font-size: 1rem;
  margin: 0.25rem 0 0;
  font-family: 'Univers 55 Roman', 'Roboto', sans-serif;
  color: #555;
}


.chart-heading .explorer-main-heading {
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0;
  font-family: 'Alliance No 2', 'Roboto', sans-serif;
}

.chart-heading .explorer-sub-heading {
  font-weight: 300;
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
  font-family: 'Univers 55 Roman', 'Roboto', sans-serif;
  color: #555;
}




.issuedRejectedCard{
  padding: 1rem 1.5rem;
  margin: 2rem auto;
  width: 95%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

#summary-panel{
  display: grid;
  justify-content: center;
  
}


.county-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.county-input-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.county-inputs {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

.choices{
  margin-bottom: 0 !important;
}

.county-inputs select {
  width: 30%;
  max-width: 90%;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  background-color: #f9f9f9;
}

.choices__input{
  width: 25ch !important;
}

#county-refresh {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: lighter;
  color: black;
  border: 1px solid black !important;
  background-color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#county-refresh:hover {
  background-color: black;
  color: white;
  border: none;
}


.county-charts {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.county-charts > div {
  flex: 1;
  min-width: 48%;
}

.county-summary {
  margin-top: .8rem;
  padding: 1rem;
  text-align: center;
  font-size: .9rem;
}



.nationality-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.nationality-input-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.nationality-inputs {
  width:100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}


.nationality-inputs select {
  width: 30%;
  max-width: 90%;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  background-color: #f9f9f9;
}

#nationality-refresh {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: lighter;
  color: black;
  border: 1px solid black !important;
  background-color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#nationality-refresh:hover {
  background-color: black;
  color: white;
  border: none;
}


.nationality-charts {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.nationality-charts > div {
  flex: 1;
  min-width: 48%;
}

.nationality-summary {
  margin-top: .8rem;
  padding: 1rem;
  text-align: center;
  font-size: .9rem;
}


.sector-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.sector-input-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.side{
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.sectoral-inputs {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}


.sectoral-inputs select {
  width: 30%;
  max-width: 90%;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  background-color: #f9f9f9;
}

#sector-refresh {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: lighter;
  color: black;
  border: 1px solid black !important;
  background-color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#sector-refresh:hover {
  background-color: black;
  color: white;
  border: none;
}


.company-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.explorer-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.company-filters{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  justify-content: center;
  gap: 1.6rem;
}

.explorer-filters{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  justify-content: center;
  gap: 1.6rem;
}

.company-input-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  justify-content: center;
  gap: 1.6rem;
}



.company-inputs{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

.explorer-inputs{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

#company-table {
    width: 100%;
    border-collapse: collapse;
}

#explorer-company-table, #explorer-monthly-company-table, #explorer-nationality-table,
#explorer-county-table, #explorer-Permit-Sector-table, #explorer-employment-Sector-table {
    width: 100%;
    border-collapse: collapse;
}

.company-summary-text, .company-trend-summary, .monthly-heatmap-summary,.monthly-company-heatmap-summary,
.nationality-friction-summary, .nationality-success-trend-summary, .nationality-withdrawal-trend-summary,
.sector-issued-summary, .sector-dependency-summary, .sector-monthly-issued-summary, .sector-volume-summary,
.county-map-summary,.county-success-summary, .county-withdrawal-summary, .county-issued-summary{
  margin: 20px 0;
  padding: 15px;
  text-align: center;
  white-space: pre-line;
}



.explorer-employment-Sector-cards, .explorer-Permit-Sector-cards,
.explorer-county-cards, .explorer-nationality-cards, .explorer-monthly-table-company-cards,
.explorer-table-company-cards{
  display: none;

}

.table-company-cards {
  display: none;
}

.company-inputs select {
  width: 30%;
  max-width: 90%;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  background-color: #f9f9f9;
}

#company-search{
  height: 2.8rem;
  border-radius: 2px;

}

#company-refresh, #company-year-trends-refresh,
#monthly-heatmap-refresh, #monthly-company-heatmap-refresh,
#nationality-friction-refresh,#sector-issued-refresh, #sector-dependency-refresh, 
#sector-volume-refresh, #sector-monthly-issued-refresh,
#county-map-refresh, #county-success-refresh, #county-issued-refresh, #county-withdrawal-refresh,
#nationality-success-trend-refresh, #nationality-withdrawal-trend-refresh,
#explorer-company-refresh, #explorer-monthly-company-refresh, #explorer-nationality-refresh, #explorer-county-refresh, #explorer-Permit-Sector-refresh, #explorer-employment-Sector-refresh{
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: lighter;
  color: black;
  border: 1px solid black !important;
  background-color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 2rem;
  transition: background-color 0.2s ease;
}

#company-refresh:hover {
  background-color: black;
  color: white;
  border: none;
}

#company-year-trends-refresh:hover {
  background-color: black;
  color: white;
  border: none;
}

#monthly-heatmap-refresh:hover {
  background-color: black;
  color: white;
  border: none;
}

#monthly-company-heatmap-refresh:hover {
  background-color: black;
  color: white;
  border: none;
}

#nationality-friction-refresh:hover {
  background-color: black;
  color: white;
  border: none;
}

#nationality-success-trend-refresh:hover {
  background-color: black;
  color: white;
  border: none;
}

#nationality-withdrawal-trend-refresh:hover {
  background-color: black;
  color: white;
  border: none;
}

#sector-volume-refresh:hover {
  background-color: black;
  color: white;
  border: none;
}

#sector-dependency-refresh:hover {
  background-color: black;
  color: white;
  border: none;
}

#sector-issued-refresh:hover {
  background-color: black;
  color: white;
  border: none;
}

#sector-monthly-issued-refresh:hover{
  background-color: black;
  color: white;
  border: none;
}

#county-map-refresh:hover{
  background-color: black;
  color: white;
  border: none;
}

#county-success-refresh:hover{
  background-color: black;
  color: white;
  border: none;
}

#county-issued-refresh:hover{
  background-color: black;
  color: white;
  border: none;
}

#county-withdrawal-refresh:hover{
  background-color: black;
  color: white;
  border: none;
}

#explorer-company-refresh:hover{
  background-color: black;
  color: white;
  border: none;
}

#explorer-monthly-company-refresh:hover{
  background-color: black;
  color: white;
  border: none;
}

#explorer-nationality-refresh:hover{
  background-color: black;
  color: white;
  border: none;
}
#explorer-county-refresh:hover{
  background-color: black;
  color: white;
  border: none;
}
#explorer-Permit-Sector-refresh:hover{
  background-color: black;
  color: white;
  border: none;
}
#explorer-employment-Sector-refresh:hover{
  background-color: black;
  color: white;
  border: none;
}

.company-filters-sort{
  width: 40%;
}
.company-filters-sort select{
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  margin-bottom: 4.5rem;
  flex-wrap: wrap;
}

.pagination button {
  background-color: #1a1915;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pagination button:hover {
  background-color: black;
}

.pagination button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#page-info {
  font-weight: 500;
  font-size: 1rem;
  color: #333;
}

th.sorted-asc::after {
  content: " ▲";
  color: goldenrod;
  cursor: pointer;
}
th.sorted-desc::after {
  content: " ▼";
  color: purple;
  cursor: pointer;
}

th{
  cursor: pointer;
}

.explorer-heading {
  text-align: center;
  margin-bottom: 24px;
}

.explorer-heading h1 {
  font-weight: bold !important;
  font-size: 2rem;
  margin-bottom: 8px;
  font-family: 'Alliance No 2', 'Roboto', sans-serif;
}

.explorer-heading .sub-heading {
  font-weight: 300;
  font-size: 1rem;
  margin: 0.25rem 0 0;
  font-family: 'Univers 55 Roman', 'Roboto', sans-serif;
  color: #555;
}


.csri-section {
  padding: 5.555rem;
  scroll-margin-top: 150px;
}

.csri-section-score{
  padding-top: 0 !important;

}

.csri-container {
  box-sizing: content-box;
  margin: 0 auto;
  max-width: 80rem;
  padding: 0 1.666rem;
}

.csri-wrapper {
  display: block;
}

.csri-header {
  display: grid;
  grid-column-gap: 1.666rem;
  grid-row-gap: 1.6666rem;
  grid-template-columns: repeat(12, minmax(10px, 1fr));
}

.csri-heading {
  grid-column: 1 / 6;
  font-family: 'Alliance No 2', 'Roboto', sans-serif;
  font-size: clamp(2.5rem, 5vw, 5.5556rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  opacity: 1;
}

.csri-description {
  grid-column: 7 / 12;
  margin-top: 1.111rem;
  max-width: 100%;
  opacity: 1;
  transform: translate(0px, 0px);
}

.csri-description-text {
  font-size:1.888rem;
  line-height: 1.1765;
  color: #1e2124;
  word-break: break-word;
  hyphens: none;
}

.csri-line-rule {
  border-top: 1px solid black; /* fallback if variable not defined */
  height: 0; /* no vertical space needed */
  transform: translate(0, 0);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 1;
  margin: 2rem 0; /* spacing above and below */
}


.csri-select {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 7rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5.5rem;
}

.csri-label {
  font-size: 1.55rem;
  color: grey;
  line-height: 1.1765;
  word-break: break-word;
  hyphens: none;
}


.csri-dropdown {
  padding: 0.888rem 1.111rem;
  font-size: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 0.444rem;
  background-color: #fff;
  color: #1e2124;
}

.csri-button-group {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
}

.csri-actual-butts{
  display: flex;
  justify-content: space-between;
  width: 50%;
  padding: 0.8rem, 1rem;
}

.csri-button {
  background-color: #fff;
  color:#1e2124 ;
  border: 0.5px solid black;
  font-size: 1.444rem;
  padding: 1rem 2.5rem;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.csri-button-disabled {
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  border-color: #ccc;
  cursor: default;
}


.csri-group {
  visibility: hidden;
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;

}

.csri-group.active {
  visibility: visible;
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.csri-section-score {
  display: none;
}



.csri-button:hover {
  background-color: #1e2124;
  color: #fff;
}


.csri-score-heading {
  font-size: 2.888rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #1e2124;
  text-align: center;
}

.csri-score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.888rem;
  margin-bottom: 3rem;
}

.csri-score-circle {
  font-size: 3.444rem;
  font-weight: 600;
  border: 2px solid #1e2124;
  border-radius: 50%;
  padding: 2rem;
  width: 12rem;
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e2124;
}

.csri-context {
  font-size: 1.444rem;
  color: #666;
}

.csri-breakdown {
  max-width: 60rem;
  margin: 0 auto;
  font-size: 1.444rem;
  line-height: 1.6;
}

.csri-step {
  margin-bottom: 2.5rem;
}

.csri-step h3 {
  font-size: 1.888rem;
  margin-bottom: 1rem;
  color: #1e2124;
}

.csri-dropdown{
  cursor:pointer;
}

.csri-summary {
  font-size: 1.444rem;
  color: #333;
  text-align: center;
  margin-top: 2rem;
}

.csri-assumptions {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(30, 33, 36, 0.2);
}

.csri-assumptions-heading {
  font-size: 1.666rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: #1e2124;
}

.csri-assumptions-list {
  list-style: none;
  padding-left: 0;
  font-size: 1.0rem;
  line-height: 1.6;
  color: #333;
}

.csri-assumptions-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.csri-assumptions-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1e2124;
  font-size: 1.5rem;
  line-height: 1;
}








/*-------------------------------------------------Main content End------------------------------------------------------*/

#chart-county-issued,
#chart-county-rejected,
#chart-nationality-issued,
#chart-sector-trends,
#chart-nationality-rejected {
  min-height: 800px;
}


#chart-issued-vs-rejected {
  width: 100%;
  max-width: 100%;
  min-height: 400px;
}


#chart-company-trends {
  min-height: 500px;
}


#chart-nationality-total,
#chart-nationality-lowSuccessRate {
  min-height: 500px;
}

#chart-nationality-success-trend,
#chart-nationality-withdrawal-trend
 {
  min-height: 550px;
}


#chart-sector-top-issued, #chart-sector-dependency, #chart-sector-volume, #chart-monthly-sector-top-issued {
  min-height: 550px;
  
} 


.choices__list--single {
    min-width: 300px;
}
.choices__inner{
  min-width: 300px;
}

/*----------------------------------------------------Media 900px Start---------------------------------------------------------*/
@media (max-width: 1000px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: flex !important;
  }

  .navbar {
    top: auto;
    left: auto;
    right: auto;
    height: 65px;
    margin: 0;
    width: 100%;          
    border-radius: 0;
  }

  .side{
    flex-direction: column;
    justify-content: start;
  }

  .card {
    border-radius: 0px;
  }

  .issuedRejectedCard{
    padding: 1rem 1.5rem;
    margin: .5rem auto;
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
  }

  .choices{
    font-size:10px;
  }

  .county-charts {
    flex-direction: column;
    gap: .5rem;
  }

  .county-charts > div {
    min-width: 100%;
    min-height: 80vh !important;
  }

  .nationality-charts {
    flex-direction: column;
    gap: .5rem;
  }

  .nationality-charts > div {
    min-width: 100%;
    min-height: 80vh !important;
  }

  #company-table {
    display: none;
  }

  #explorer-company-table, #explorer-monthly-company-table, #explorer-nationality-table,
  #explorer-county-table, #explorer-Permit-Sector-table, #explorer-employment-Sector-table {
      display: none;
  }

  .table-company-cards {
    display: block;
  }

  .explorer-employment-Sector-cards, .explorer-Permit-Sector-cards,
  .explorer-county-cards, .explorer-nationality-cards, .explorer-monthly-table-company-cards,
  .explorer-table-company-cards{
    display: block;

  }

  .table-company-card-item, .table-nationality-card-item, .table-county-card-item, .table-permit-sector-card-item, .table-employment-sector-card-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  .table-company-card-item p {
    margin: 4px 0;
    font-size: 14px;
  }

  .table-company-card-item .company-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 6px;
  }

  .table-nationality-card-item .nationality-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 6px;
  }

  .table-county-card-item .county-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .table-permit-sector-card-item .sector-name{
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 6px;
  } 
  .table-employment-sector-card-item .sector-name{
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 6px;
  }

  .csri-section {
    padding: 1.555rem;
  }


  .csri-header {
    display: block;
  }

  .csri-heading {
    grid-column: auto;
    margin-bottom: 1rem;
  }

  .csri-description {
    grid-column: auto;
    margin-top: 0;
  }

  .csri-description-text {
    font-size: 1.444rem;
    line-height: 1.5;
  }

  .csri-container {
    padding: 0 1rem;
  }

  .csri-select {
    padding: 2rem;
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .csri-label {
    font-size: 1.2rem;
  }

  .csri-dropdown {
    font-size: 1rem;
    padding: 0.666rem 1rem;
  }

  .csri-button-group {
    margin-top: 3rem;
  }

  .csri-actual-butts {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    padding: 0.8rem 1rem; /* fixed comma issue */
  }

  .csri-button {
    font-size: 1.2rem;
    padding: 0.888rem 1.5rem;
    width: 100%;
  }

   .csri-score-heading {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .csri-score-circle {
    font-size: 2.444rem;
    padding: 1.5rem;
    width: 9rem;
    height: 9rem;
  }

  .csri-context {
    font-size: 1.2rem;
    text-align: center;
    padding: 0 1rem;
  }

  .csri-breakdown {
    font-size: 1.2rem;
    padding: 0 1rem;
  }

  .csri-step h3 {
    font-size: 1.5rem;
  }

  .csri-summary {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
  }

  .csri-assumptions-heading {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .csri-assumptions-list {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .csri-assumptions-list li {
    padding-left: 1.2rem;
  }

  .csri-assumptions-list li::before {
    font-size: 1.2rem;
  }
  
}

/*----------------------------------------------------Media 900px End---------------------------------------------------------*/
