.main {
    margin-left: 90px;
    transition: all 0.3s ease;
    padding: 25px 10px;
    background: #fff;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    height: 95vh;
}

.main.shifted {
    margin-left: 240px;
    border-radius: 20px 0 20px 0;
    position: relative;
}

.dashboard_heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #BDD3CF;
    height: 5vh;
}

.dashboard_heading h3 {
    font-family: 'inter', sans-serif;
    font-weight: 600;
    font-size: 32px;
    text-transform: capitalize;
}

.top_info h3 {
    font-size: 22px;
    font-weight: bold;
}

.top_info p {
    font-size: 13px;
    font-weight: 500;
}

.project {
    background: #E7F4E4;
    border-radius: 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 18px;
    gap: 15px;
    flex: 1;
    /* width: 14.28%; */
}

.project p {
    text-transform: capitalize;
    color: #515151;
    font-size: 13px;
}

.project h4 {
    font-weight: bold;
}

.digitize {
    background: #EBF1F6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 20px 18px;
    gap: 15px;
    flex: 1;
    /* width: 14.28%; */
}

.digitize p {
    text-transform: capitalize;
    color: #515151;
    font-size: 13px;
}

.digitize h4 {
    font-weight: bold;
}

.top_info {
    gap: 12px;
    padding-right: calc(1.5rem * .5);
    padding-left: calc(1.5rem * .5);
    height: 10vh;
}

.dashboard_inner{
  height: 70vh;
}

.digitize.verified_drawing {
    background: #FCF2FF;
}

.identify {
    background: #FBF4EA;
}

.parent {
    background: #F8F8DF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 20px 18px;
    gap: 15px;
    /* width: 14.28%; */
    flex: 1;
}

.parent p {
    text-transform: capitalize;
    color: #515151;
    font-size: 13px;
}

.parent h4 {
    font-weight: bold;
}

.total {
    background: #F3ECDF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 20px 18px;
    gap: 15px;
    flex: 1;
}

.unmapped_assets {
    background: #F4E8EE;
}


.project_item_box {
    display: flex;
    width: 100%;
}

#project_vault {
    display: flex;
    font-weight: 600;
    justify-content: space-between;
    align-items: center;
}

#project_vault h3 {
    font-size: 20px;
    text-transform: capitalize;
}

.project_item_box_content {
    width: 30%;
}

.project_item_box_content, #project_details{
  max-height: 75vh;
  overflow-y: clip;
}

.project_details_header, .project_details_utils_container{
  min-height: 5vh;
}

#project_vault button {
    border-radius: 50px;
    padding: 9px 20px;
    background: #19C4C0;
    color: #fff;
    border: unset;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 14px;
    text-transform: capitalize;
}

.project_vault_plus {
    margin-left: 10px;
}

.internal_testing_list_forms {
    display: flex;
    justify-content: space-between;
}

.internal_testing_list {
    padding: 12px;
    border: 1px solid #E5E5E5;
    border-radius: 15px;
}

.internal_testing_list_search {
    position: relative;
}

.internal_testing_list_search input {
    width: 100%;
    border-radius: 50px;
    outline: unset;
    padding: 8px 40px 8px 16px;
    border: 1px solid #e5e5e5;
    font-size: 12px;
    color: rgb(70, 70, 70);
}

#datalounge-search {
    padding: 4px 40px 4px 16px;
}

.internal_testing_list_select {
    position: relative;
}

.project_vault_info {
    height: 55vh;
    overflow: auto;
    margin-right: -7px;
}

.table_scroll {
    margin-right: -7px;
    padding-right: 4px;
}

.table_height_100 {
    height: calc(100vh - 375px);
}

.date_icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
}

.internal_testing_list_select select,
.internal_testing_list_select input {
    width: 100%;
    border-radius: 50px;
    outline: unset;
    padding: 8px 0px 8px 45px;
    border: 1px solid #E5E5E5;
    text-transform: capitalize;
    font-size: 12px;
    min-width: 153px;
    appearance: none;
    font-weight: 500;
}

.internal_testing_list_select i {
    font-size: 10px;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
}


.date_box {
    width: 153px;
}

.internal_testing_box {
    /* background: #E0F6F5; */
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 16px;
    border-radius: 10px;
    justify-content: space-between;
    transform: all .3s ease-in-out;
}

.internal_testing_box_circle {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 4px #19C4C0;
}

.fraction {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    text-align: center;
    font-size: 13px;
    line-height: 1.2;
    font-weight: bold;
}

.fraction .top {
    border-bottom: 2px solid #000;
    padding: 0 4px;
    display: block;
}

.fraction .bottom {
    padding: 0 4px;
    display: block;
}

.dashboard_project_line:hover {
    cursor: pointer;
}

.dashboard_project_line.selected_project {
    background-color: #E0F6F5;
}

.internal_testing_box_text {
    position: relative;
}

.project_super_name {
    font-size: 14px;
    color: #292C31;
    font-weight: bold;
}

.project_sub_name {
    color: #292D32;
    font-size: 12px;
    /* font-weight: bold; */
}

.internal_testing_box_img {
    background: #19C4C0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
}

.internal_testing_box_2 {
    background: none;
}

.internal_testing_box_circle_2 {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 4px #F5F5F5;
    border-right: solid 4px #FFA2A2;
}

.internal_testing_box_img_2 {
    background: #F5F5F5;
    color: #049996
}

.internal_testing_box_3 {
    background: #F5F5F5;
}

.internal_testing_box_img_3 {
    background: #fff;
    color: #049996;
}

.internal_testing_box_circle_3 {
    border: solid 4px #96C357;
    border-left: solid 4px #fff;
}

.internal_testing_box_4 {
    background: transparent;
}

.internal_testing_box_circle_4 {
    border: solid 4px #F5F5F5;
    border-top: solid 4px #FFC107;
}

.internal_testing_box_circle_5 {
    border: solid 4px #fff;
    border-right: solid 4px #FFA2A2;
}

.internal_testing_box_circle_6 {
    border: solid 4px #F5F5F5 !important;
}

.table_item_box {
    width: 70%;
    /* background-color: red; */
    padding-left: 20px;
    /* height: 600px !important; */
}

.table_item_box_heading h3 {
    font-size: 20px;
}

.table_item_box_heading p {
    font-size: 12PX;
    color: #292D32;
}

.table_item_icon_box {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.table_item_icons {
    margin-right: 8px;
}

.table_item_button {
    display: flex;
    justify-content: right;
}

.table_item_icons ul {
    border: 1px solid #E5E5E5;
    border-radius: 50px;
    display: flex;
    padding: 7px 20px;
    width: 250px;
    justify-content: space-between;
}

.table_item_button button, #uploadAllNewSymbolsBtn {
    position: relative;
    border-radius: 50px;
    border: unset;
    outline: unset;
    padding: 8px 22px;
    background-color: #19C4C0;
    color: #fff;
    font-size: 14px;
}

.table_item_button img {
    margin-right: 5px;
}

.table_item_section {
    border: 1px solid #000;
    padding: 12px;
    border: 1px solid #E5E5E5;
    border-radius: 15px;
}

.table_item_button_2 {
    background-color: #E0F6F6 !important;
    color: #000 !important;
}

.coin-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.gold-coin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffd700, #ffb700, #d4af37);
    border: 2px solid #b8860b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 2px 2px 6px rgba(255, 255, 255, 0.6),
                inset -2px -2px 6px rgba(0, 0, 0, 0.3),
                0 0 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gold-coin i {
    color: #fff;
    font-size: 18px;
    text-shadow: 0 0 3px rgba(0,0,0,0.6);
}

.gold-coin:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: inset 2px 2px 8px rgba(255, 255, 255, 0.7),
                inset -2px -2px 8px rgba(0, 0, 0, 0.4),
                0 0 12px gold;
}

.coin-text {
    font-weight: bold;
    color: #d4af37;
    font-size: 14px;
}

.int_testing_tabel thead th:first-child {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

.int_testing_tabel thead th:last-child {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.status {
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 12px;
    width: max-content;
    display: block;
}


.processing_output, .pre-processing {
    background-color: rgba(168, 230, 206, 30%);
    color: #539F82;
    border: 1px solid #539F82;
}

.failed {
    background-color: rgba(255, 171, 171, 30%);
    color: #D46868;
    border: 1px solid #D46868;
}

.ready {
    background-color: rgba(255, 255, 182, 50%);
    color: #C49048;
    border: 1px solid #C49048;
}

.queued {
    background-color: rgba(255, 255, 182, 50%) !important;
    color: #000000 !important;
    border: 1px solid #000000;
}

.post-processing {
    background-color: rgba(215, 178, 226, 40%);
    color: #9B5BAE;
    border: 1px solid #9B5BAE;
}

.verified {
    background-color: rgba(178, 235, 242, 620%);
    color: #3A8892;
    border: 1px solid #3A8892;
}

.converted{
  background-color: rgba(27, 77, 62, 30%);
  color: #1B4D3E;
  border: 1px solid #1B4D3E;
}

.in-use {
    color: #FF6363;
    border: 1px solid #FF6363;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.progress-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(#4caf50 0% 100%, #ccc 0%);
    display: inline-block;
}

.icons {
    display: flex;
    border: 1px solid transparent !important;
}

.icons i {
    font-size: 18px;
    color: #4a4a4a;
    cursor: pointer;
    transition: 0.3s;
}

.icons i:hover {
    color: #00796b;
}

.checkbox {
    text-align: center;
    padding: 12px 8px;
}

.checkbox input {
    width: 18px;
    height: 18px;
    position: relative;
    top: 3px;
}

th.checkbox input {
    position: relative;
    top: 2px;
}

.eye {
    background: #F5F5F5;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete {
    background: #FFDEDE;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#project_list_table_wrapper, #project_files_list_table_wrapper:not(.shrink){
    height: 55vh;
    overflow-y: auto;
    overflow-x: hidden;
}

#project_files_list_table_wrapper.shrink{
  height: 50vh !important;
}

.badge_text p {
    font-size: 12px;
    padding-left: 10px;
    gap: 3px;
    justify-content: flex-start;
    width: 100px;
    text-transform: capitalize;
    font-weight: 500;
    margin: 0;
}

.d-board_box {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
}

.d-board_box span {
    width: 60px;
    margin-top: -2px;
    display: block;
}

.d-board_box span a {
    color: #000;
}

.sym {
    color: #18C4C0;
}

.text {
    color: #EFB410;
}

.line {
    color: #96C357;
}

.edit-actions {
    display: none;
    gap: 8px;
    margin-top: 1px;
    position: absolute;
    right: -36px;
}

.edit-actions i {
    cursor: pointer;
    font-size: 16px;
    color: #444;
    margin-left: 5px;
}

.chart-box {
    position: relative;
    width: 50px;
    height: 50px;
}

.chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}

.new-button{
    border-radius: 50px;
  padding: 9px 20px;
  background: #19C4C0;
  color: #fff;
  border: unset;
  position: relative;
  display: flex;
  align-items: center;
  font-size: 14px;
  text-transform: capitalize;
}

.new-input{
    color: #292C31;
    font-size: 12px;
    width: 100%;
    border-radius: 100px;
    padding: 11.5px 15px;
    background: #fff;
}

.new-input-font{
    padding-left: 15px;
    font-weight: 600;
    color: #000;
}

.selected-item {
  background-color: #ECF8FF;
  border-radius: 4px;
  padding: 2px 6px;
  margin-right: 5px;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
}

.selected-item .close-icon {
  color: #10182080 !important;
  cursor: pointer;
  margin-left: 5px;
  font-size: 10px;
  font-weight: 600;
}

.dashboard_project_list_container input[type="search"]{
    font-size:14px;
}

.dashboard_project_line button{
    opacity: 1 !important;
}

.dashboard_project_line .progress{
    height: 12px;
}

#project_list {
  overflow-x: hidden;
}
#project_config_panel{
  color: white;
  text-decoration: none;
  border-width: 0px;
}

div.converting, span.converting, span.pre_processing, span.uploading, span.uploaded, p.converting, p.pre_processing, p.uploading, p.uploaded, .upload_file {
    background: var(--yellow);
    color: black;
}

span.queued, p.queued{
  background: #fad25a;
  color: black;
}

span.upload_failed, span.conversion_failed, span.pre_processing_failed, p.upload_failed, p.conversion_failed, p.pre_processing_failed, .symbol_detection_error, .text_detection_error, .line_detection_error, .line_type_detection_error, .post_processing_failed, p.output_failure, span.output_failure{
    background: var(--color-failed);
}

#btnDownloadGrp:focus{
    box-shadow: none;
}

#btnDownloadGrp::after{
  display: none;
}

.project_name_input {
    border: none;
    border-bottom: 2px solid #333;
    outline: none;
    padding: 5px;
    font-size: 16px;
    width: 70%;
}

.project_name_input:focus,
.project_name_input:hover {
    border-bottom-color: #555;
}

.occupied_icon{
  color: red;
  border: 1px solid red;
  border-radius: 5px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}

.tree-view {
    list-style: none;
    padding-left: 20px;
}

.tree-view li {
    position: relative;
    margin: 5px 0;
}

.tree-view .btn-toggle {
    font-size: 1.2rem;
    padding: 0;
    margin-right: 5px;
    cursor: pointer;
    border-radius: unset;
}

.tree-view .collapse {
    padding-left: 20px;
}

.tree-view .toggle-container{
  display: flex;
  height: 60px;
}

.tree-view .toggle-icon{
  font-weight: bold;
  font-size: larger;
  color: white;
}

img.erp-bin-symbols{
  max-height: 60px;
  max-width: 60px;
}

.tree-view .FLLocation button, .legend-table .FLLocation { background: #f38787;}
.tree-view .FLFile button, .legend-table .FLFile { background: #f3cc65;}
.tree-view .FLCategory button, .legend-table .FLCategory { background: #65c465;}
.tree-view .FLSymbols button, .legend-table .FLSymbols { background: #98b3fa;}
.tree-view .FLComponentsList button, .legend-table .FLComponentsList { background: #0fd6d3;}


.tree-view .FLLocation { border: solid 1px #f38787;}
.tree-view .FLFile { border: solid 1px #f3cc65;}
.tree-view .FLCategory { border: solid 1px #65c465;}
.tree-view .FLSymbols { border: solid 1px #98b3fa;}
.tree-view .FLComponentsList { border: solid 1px #0fd6d3;}

.legend-table li {
  margin-bottom: 0.5rem;
}

.legend-table ul {
  border: 1px solid black;
  padding: 0.5rem;
  position: sticky;
  right: 20px;
  top: 10px;
}

#opc_connection_container{
  height: 100vh;
  overflow: hidden; /* Remove all scroll */
  
  /* Ensure Bootstrap grid works properly */
  .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  .col, .col-12 {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }
  
  #network_drawing, #drawing_link {
    height: 90vh;
    max-width: 100%; /* Ensure content doesn't exceed container width */
    overflow: hidden; /* Remove all scroll */
    width: 100%; /* Ensure full width */
  }
  
  .drawing-container {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden; /* Remove all scroll */
  }
  
  /* ERP Sidebar Styles */
  .drawing-wrapper {
    height: calc(90vh - 60px); /* Subtract toolbar height */
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  .drawing-main-container {
    width: 100%;
    height: 100%;
    flex: 1;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  .drawing-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  
  .canvas-container {
    flex: 1;
    width: 100% !important;
    height: 100% !important;
    position: relative;
  }
  
  .erp-sidebar {
    position: absolute;
    top: 0;
    right: -600px; 
    width: 600px;
    height: 100%;
    background: white;
    border-left: 1px solid #dee2e6;
    box-shadow: none; /* Remove shadow when closed */
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
  }
  
  .erp-sidebar.open {
    right: 0;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1); /* Add shadow only when open */
  }
  
  .erp-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .erp-sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
  }
  
  #erp_mapping_container {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  /* Prevent dropdown overflow in ERP sidebar */
  .erp-sidebar .select2-container {
    max-width: 100% !important;
  }
  
  .erp-sidebar .select2-dropdown {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .erp-sidebar .select2-results {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  /* When sidebar is open, reduce main container width */
  .drawing-wrapper:has(.erp-sidebar.open) .drawing-main-container {
    width: calc(100% - 600px);
  }

  #opc_connection_group_table_container{
    height: 70vh;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  
  /* Ensure toolbar buttons don't cause horizontal scroll */
  .drawing-toolbar, .graph-toolbar {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .drawing-controls, .graph-controls {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
}

  #erp_mapping_table_container{
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .erp_data_row{
    cursor: pointer;
  }
