@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');


.riskpopup {
    background-color: white; /* White background */
/*    border-radius: 20px;  Rounded corners */
    border: 2px solid darkgray; /* Thick dark gray line at the outer border */
    border-collapse: separate;
    border-spacing: 0; /* Remove default spacing */
    width: 350px;
}

.riskpopup th, .riskpopup td {
    border: 1px solid darkgray; /* Dark gray lines in the table */
    padding: 5px; /* Padding for content */
    color: black;
}

.riskpopup th {
    background-color: #f2f2f2; /* Light gray background for table headers */
}

.riskpopup th:nth-child(1), .riskpopup td:nth-child(1) { /* First column */
    width: 50px;
}

.riskpopup th:nth-child(2), .riskpopup td:nth-child(2) { /* Second column */
    width: 100px;
}

.riskpopup th:nth-child(3), .riskpopup td:nth-child(3) { /* Third column */
    width: 200px;
}


#level0{
    width:15%;
    border-width: 1px;
}

#level1{
    width:15%;
    border-width: 1px;
}

#level2{
    border-width: 1px;
    width:15%;
}

#level3{
    border-width: 1px;
    width:70px;
}
#level4{
    width:70px;
    border-width: 1px;
}
#level5{
    width:70px;
    border-width: 1px;
}

#level7{
    width:15%;
    border-width: 1px;
}

#level6{
    width:10%;
    border-width: 1px;
}

#locationdiv {
    width: 100px;
}
.link-container  {
    width: 100%;
    display: contents;
}

.link-container a:hover {
    background-color: lightgreen;
}

#doctroltable{
    width: 150px; /* Auto width to fit content by default */
    font-size: 13px;
    padding-left: 1px;    
}

#statusselecttable {
    width: 70px; /* Auto width to fit content by default */
    font-size: 13px;
    padding-left: 1px;
}

#MSselectcontainer label{
    margin-right:8px;
}
#statusselect label{
    margin-right:8px;
}
#addlinklocation {
    width: 60px; /* Auto width to fit content by default */
}

.selected-cell {
    outline: 2px solid blue; /* Example style to indicate selection */
}


#scoreselect {
    width: 100%; /* Auto width to fit content by default */
}

.expanded {
    position: absolute; /* Make the select float over other elements */
    width: 300px; /* Set the width to 300px when expanded */
    z-index: 100;
}
.session-timeout-message{
    color: red; /* Red text color, change to white if you prefer */
    font-weight: bold; /* Make the text bold */
    text-align: center; /* Center the text inside the element */
    /* Add a width if needed */
}


#createPdfBtn {
/*    position: absolute ; /* Fixed positioning to keep the button in the same place */
/*    top: 242px; /* 100px down from the top of the page */
/*    right: 10px; /* At the very right of the page */
/*    padding: 5px; /* Add some padding for aesthetics */
    background-color: white; /* A green background color */
    color: #4CAF50; /* White text color */
    border: 1px solid #4CAF50; /* No border */
    cursor: pointer; /* Change cursor to pointer when hovering over the button */
}

#createPdfBtn:hover {
    background-color: #4CAF50; /* Slightly darker green on hover for a visual effect */
    color: white; 
}
#createCSVBtn {
/*    position: absolute ; /* Fixed positioning to keep the button in the same place */
/*    top: 242px; /* 100px down from the top of the page */
/*    right: 47px; /* At the very right of the page */
/*    padding: 5px; /* Add some padding for aesthetics */
    background-color: white; /* An orange background color */
    color: #FFC107; /*  text color */
    border: 1px solid #FFC107; /* No border */
    cursor: pointer; /* Change cursor to pointer when hovering over the button */
}

#createCSVBtn:hover {
    background-color: #FFC107; /* Slightly darker green on hover for a visual effect */
    color: white;
}
/* for risk */
    .cell {
        width: 100px; /* Ensure the div fills the cell */
        height: 60px; /* Ensure the div fills the cell */
        position: relative; /* For absolute positioning of the circle */
        padding: 4px; /* Padding for the cell content */
        box-sizing: border-box; /* Include padding in the div's total width and height */
    }

        .cellscore {
/*        width: 30px;  */
        height: 60px; /* Ensure the div fills the cell */
        position: relative; /* For absolute positioning of the circle */
        padding: 4px; /* Padding for the cell content */
        box-sizing: border-box; /* Include padding in the div's total width and height */
    }

    .cell-wrapper {
        min-height: 60px; /* Minimum height of the content area */
        position: relative; /* For the layout of inner elements */
    }

    .cell-content {
/*        display: table-cell;  Use table-cell display for centering */
        vertical-align: middle; /* Center content vertically */
        min-height: 30px; /* Minimum height of the content area */
        font-family: 'Roboto', sans-serif;
        font-size: 14px; /* Smaller font size for the ID */
        padding: 15px 0px 15px 0;
    }

    .cell-id {
        position: absolute; /* Position the ID relative to the cell */
        top: 5px; /* Position at the top of the cell */
        left: 5px; /* Position at the left of the cell */
        font-size: 11px; /* Smaller font size for the ID */
        color: #666; /* Lighter text color for the ID */
    }

    .hide-slave {
    position: absolute; /* Position the ID relative to the cell */
    top: 5px; /* Position at the top of the cell */
    right: 5px; /* Position at the left of the cell */
}
    .hide-checkbox {
    cursor: pointer; /* Change cursor on hover */
}


        .hidden {
            display: none;
        }

/* Tooltip styling */
.hide-checkbox[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: -25px; /* Adjust based on your layout */
    right: 18px;
    background-color: #555; /* Tooltip background color */
    color: #fff; /* Tooltip text color */
    text-align: center;
    padding: 5px 10px; /* Tooltip padding */
    border-radius: 6px; /* Rounded corners for the tooltip */
    z-index: 1; /* Ensure the tooltip is above other elements */
}
    
    .add-circle {
        position: absolute; /* Position the circle relative to the cell */
        bottom: 5px; /* Position at the bottom of the cell */
        right: 5px; /* Position at the right of the cell */
        width: 6px; /* Circle size */
        height: 6px; /* Circle size */
        background-color: blue; /* Circle color */
        border-radius: 50%; /* Make it round */
        cursor: pointer; /* Change cursor on hover */
    }

        .add-red-circle {
        position: absolute; /* Position the circle relative to the cell */
        bottom: 5px; /* Position at the bottom of the cell */
        left: 5px; /* Position at the left of the cell */
        width: 6px; /* Circle size */
        height: 6px; /* Circle size */
        background-color: red; /* Circle color */
        border-radius: 50%; /* Make it round */
        cursor: pointer; /* Change cursor on hover */
    }
    
    .add-orange-circle {
        width: 10px;
        height: 10px;
        background-color: orange;
        border-radius: 50%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        cursor: pointer; /* Change cursor on hover */
    }
    .add-blue-circle {
        width: 10px;
        height: 10px;
        background-color: blue;
        border-radius: 50%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        cursor: pointer; /* Change cursor on hover */
    }

   .flexcontainer {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        cursor: pointer; /* Change cursor on hover */

   }

.arrow-up, .arrow-down {
    position: absolute;
    width: 10px; /* Width of the arrow */
    height: 10px; /* Height of the arrow */
    cursor: pointer; /* Change cursor on hover */
    text-align: center; /* Center the arrow character */
    line-height: 10px; /* Align the arrow character vertically */
    font-size: 8px; /* Size of the arrow character */
}

.arrow-up {
    top: 5px; /* Position at the top of the cell */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Align center */
}

.arrow-down {
    bottom: 5px; /* Position at the bottom of the cell */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Align center */
}    
    
    
.flex-container {
    display: flex;
    justify-content: start; /* Align items to the start of the container */
    align-items: center; /* Align items vertically in the middle */
    gap: 10px; /* Space between the two divs */
}

#selectcustomer, #newDropdownContainer {
/*    flex: 1; /* Each child will take up an equal amount of space */
    /* Adjust width, max-width, or flex-basis as needed */
}

.clickable-row:hover {
    cursor: pointer;
    background-color: orange;
}

#searchContainer {
    display: none;
}

#redtext {
    color: red; /* Optional: in case you want a different text color */
    font-size: 20px;
}
.orange-cell {
    background-color: orange !important;
    color: white; /* Optional: in case you want a different text color */
}

.red-cell {
    background-color: red !important;
    color: white; /* Optional: in case you want a different text color */
}
.green-cell {
    background-color: green !important;
    color: white; /* Optional: in case you want a different text color */
}


.blank-cell {
    background-color: none;
    color: black; /* Optional: in case you want a different text color */
}

#data-table td, #data-table th {
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    padding: 1px 1px 1px 1px;
}

#data-table th a {
    color: inherit; /* Inherit the color from the header */
    text-decoration: none; /* Remove underline */
}
#searchtable{
    background-color : gray;
}

              .qatable tr:hover {
                background-color: orange;
              }

    .center-container {
      display: flex;
      justify-content: center;
/*      align-items: center; 
      height: 100vh; /* 100% viewport height to center vertically */
    }

/* document details */
.docdetailsmodal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

/* Ensure modal covers the entire screen */
.doctrackingmodal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* Ensure it's above all other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Semi-transparent background */
}

/* Center the modal content */
.trackingmodal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 850px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000; /* Ensure it appears on top */
}


/* Ensure tracking results are styled properly */
#docTrackingResults {
    margin-top: 15px;
}



    /* New docusign envelope */
.newdocmodal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

#newdocmetadisplay {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    row-gap: 5px;
    align-items: center;
    font-family: 'Roboto', sans-serif;
}

#newdocmetadisplay dt {
    font-weight: normal;
}

#newdocmetadisplay dd {
    margin: 0;
}

.docusign-buttons {
    display: inline-block;
    padding: 6px 12px;       /* Padding */
    font-size: 15px;          /* Font size */
    font-weight: bold;        /* Bold font */
    border: none;             /* No border */
    border-radius: 5px;       /* Rounded corners */
    cursor: pointer;          /* Pointer cursor */
    background-color: #e0e0e0; /* Light gray background */
    color: #333;              /* Darker gray text */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for hover effects */
}

.docusign-buttons:hover {
    background-color: #c0c0c0; /* Slightly darker gray */
    color: #000;              /* Darker text for contrast */
}



/* Add this to your CSS file or within a <style> tag */
#downloadEnvelopeButton {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 11px;
    cursor: pointer;
    margin: 10px;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}


#downloadEnvelopeButton:hover {
    background-color: #0056b3;
}


#EditEnvelopeButton, #updateEnvelopeButton{
    background-color: #FFA500;
    color: white;
    border: none;
    padding: 8px 11px;
    cursor: pointer;
    margin: 10px;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#EditEnvelopeButton:hover {
    background-color: #be7d03;
}


#sendEnvelopeButton {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 11px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#sendEnvelopeButton:hover {
    background-color: #218838;
}




#newdocsignerForm {
    position: relative;
}
.newdocsigners table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: 'Roboto', sans-serif;
}

.newdocsigners th, .newdocsigners td {
    border: 1px solid #ddd;
    padding: 8px;
    font-family: 'Roboto', sans-serif;
}

.newdocsigners th {
    background-color: #4CAF50;
    color: white;
    text-align: left;
    font-family: 'Roboto', sans-serif;
}

.newdocsigner-entry td {
    padding: 8px;
}

.newdocsigner-entry input,
.newdocsigner-entry select,
.newdocsigner-entry button {
    width: 100%;
    box-sizing: border-box;
}

#newdocsignerForm button[type="submit"] {
    position: absolute;
    bottom: -40px;
    right: 10px;
    background-color: #ffa500; /* Green background */
    color: white; /* White text */
    padding: 8px 11px;
    border: none;
    cursor: pointer;
    border-radius: 5px; /* Rounded corners */
    font-size: 16px;
}

  #newdocsignerForm button[type="submit"]:hover {
      background-color: #e69500; /* Darker orange on hover */
  }

  svg.feather {
    width: 18px; /* Desired width */
    height: 18px; /* Desired height */
}

.markeditableonly {
    border: 2px solid gray; /* Black border */
    cursor: default; /* Show default cursor (arrow) */
    padding: 2px; /* Optional: Add some padding for better appearance */
    box-sizing: border-box; /* Include padding and border in element's total width/height */
}

.newdocclose,.docdetaildocclose {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer; /* Change cursor on hover */
}

.newdocclose:hover,
.newdocclose:focus
.docdetaildocclose:hover,
.docdetaildocclose:focus
 {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.readonly-style {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

#newdocfiles {
    margin-top: 20px;
    font-family: 'Roboto', sans-serif;
}

#newdocfileList {
    list-style-type: none;
    padding: 0;
}

#newdocfileList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-family: 'Roboto', sans-serif;
}

#newdocfileList li button {
    margin-left: 10px;
}

/* END New docusign envelope */

/* Add this to your styles.css or within a <style> tag in the head of clogin.php */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 20; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    display: flex; /* Use Flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}
.center-modal-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    /* Improved centering */
    display: flex; /* Use Flexbox for internal centering */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    text-align: center; /* Center text */
}

.close {
    color: #aaa;
    position: absolute; /* Positioning close button absolutely */
    top: 10px; /* Distance from top */
    right: 15px; /* Distance from right */
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


    
#detailsContainer td {
    padding: 2px;
    border: none;
}
#detailsContainer td[contenteditable="true"] {
    background-color: #f7f7f7;
    cursor: text;
}
    
    /* Style the dropdown container */
    .dropdown-container {
      text-align: center;
      background-color: #f2f2f2;
      padding: 10px;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      width : 300px;
    }

    /* Style the dropdown list */
    select {
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
      width: 200px;
      font-size: 16px;
      background-color: #fff;
    }
    .slimdropdown {
        padding-top: 0;
        padding-bottom: 0;
        font-family: 'Roboto', sans-serif;
        padding-left: 3px;
        padding-right: 3px;
        border: 1px solid #ccc;
        border-radius: 2px;
        width: 200px; /* or whatever width fits your design */
        font-size: 16px;
        background-color: #fff;
    }
    .stageslimdropdown {
        padding-top: 0;
        padding-bottom: 0;
        font-family: 'Roboto', sans-serif;
        padding-left: 1px;
        padding-right: 1px;
        border: 1px solid #fff;
        border-radius: 2px;
        width: 95px; /* or whatever width fits your design */
        font-size: 13px;
        background-color: #fff;
    }

    .slimdropdown2 {
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 10px;
        padding-right: 10px;
        font-family: 'Roboto', sans-serif;
        border: 1px solid #ccc;
        border-radius: 2px;
        width: auto;
        font-size: 14px;
        background-color: #fff;
    }

    .horizontal-form .form-row {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

    .checkbox-group {
        margin-right: 15px;
    }
table {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #ddd;
    word-wrap: break-word;
}

th, td {
    text-align: left;
    padding: 8px;
}
.grayhover {
    border-color: rgb(58, 58, 58);
}

.grayhover:hover {
    background-color: #f2f2f2; /* Light gray color */
}

.gray {
    background-color: hsla(260, 11%, 85%, 1);
}

#norwaytable tr:nth-child(even) {
    background-color: #f2f2f2; 
}

#norwaytable tr.selected-project {
    background-color: orange !important;
}

.even-row {
    background-color: #f2f2f2;
}

.odd-row {
    background-color: transparent; /* or your desired color */
}

th {
    background-color: #36a9e1;
    color: white;
}

#spinner {
    display: none;
    position: fixed; /* Use fixed positioning to cover the entire viewport */
/*    top: 250px;*/
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white background */
    z-index: 100000; /* High z-index to ensure it's above other elements */
    justify-content: center; /* Center the spinner horizontally */
    align-items: center; /* Center the spinner vertically */
    color: red;
    font-weight: bold;
}

#spinner img {
    width: 200px; /* Adjust size as necessary */
    padding-top: 250px; 
}

    .statusFilter {
        padding: 4px;
        border: 1px solid #ccc;
        font-size: 16px;
        height: auto; /* Adjust as needed */
        width: 100%; /* Adjust as needed */
        box-sizing: border-box;
       background-color: #36a9e1;
    color: white;
    }

h1,h2 {
	font-family: Arial, sans-serif; /* You can change this to your preferred font */
	text-align: center; /* This centers the text horizontally */
	display: flex;
	justify-content: center; /* This centers the content horizontally */
}
h3 {
	font-family: Arial, sans-serif; /* You can change this to your preferred font */
	text-align: center; /* This centers the text horizontally */
	display: flex;
	justify-content: center; /* This centers the content horizontally */
        margin-bottom: 0px;
}

h4 {
	font-family: Arial, sans-serif; /* You can change this to your preferred font */
	text-align: left; /* This centers the text horizontally */
	display: flex;
	justify-content: left; /* This centers the content horizontally */
        margin-bottom: 2px;
}
.image-container {
    display: flex;
    justify-content: left; 
/*    position: relative;  /* Sets a positioning context for absolutely positioned children */
/*    width: 100px;        /* Or any desired width */
/*    height: 300px;       /* Or any desired height */

}

.image-container img {
    max-width: 100%; /* Optional: Ensure the image doesn't overflow the container */
    max-height: 100%; /* Optional: Ensure the image doesn't overflow the container */
}

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

.center-text-hover {
    text-align: center;
    cursor: pointer;
}
.center-text-hover:hover {
    background-color: #90ee90; /* Light green background on hover */
}
.right-text {
    text-align: right;
}
.align-right {
    text-align: right;
    font-family: Arial, sans-serif;
    text-decoration: none;
}
.bold {
    font-weight: bold;
}
.floating-image {
    position: absolute;
    top: 25px;           /* Adjust as needed */
    left: 25px;          /* Adjust as needed */
    z-index: 10;         /* Ensures the image is above the text */
}
.current-page::before {
    content: "→ ";
    font-weight: bold;
    color: red;
    text-decoration: none;
}
a {
    text-decoration: none;
    color: black;
}


.scrollable-table {
    border-collapse: collapse;
    width: 100%; /* or any width you desire */
}

.scrollable-table thead, 
.scrollable-table tbody {
    display: block;
}

.scrollable-table thead {
    position: sticky;
    top: 0;
    z-index: 10; /* This ensures the header is always on top */
/*    background-color: #fff; /* Match the background color to your page */
}

.scrollable-table tbody {
    max-height: 650px; /* Adjust this to the desired scrollable height */
    overflow-y: auto;
    border-top: 2px solid #000; /* A border to separate header from body */
}

#title {
    width:600px;
}
#doctype {
    width:150px;
}
#nosigners {
    width:50px;
}
#customer {
}
#signedby {
}
#notsigned {
}
#declinedby {
}
#envelopeid {
}
#envelopestatus {
}


/* header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;  /* Ensures vertical alignment */
    background: #f8f9fa;  /* Background color for the header */
    padding: 10px 0;      /* Padding around the entire header */
    font-family: Arial, sans-serif; /* You can change this to your preferred font */
}

.column {
    flex: 1;  /* Distributes space equally among columns */
    padding: 10px; /* Padding inside each column */
    text-align: center; /* Center aligns text for all columns by default */
/*    border-right: 1px solid #ccc; /* Adds a light border to the right of each column */
}

.logo{
    flex:2;
}
.user-info {
    text-align: left; /* Left aligns text in the user info column */
}

.logo img {
    height: 50px; /* Adjust size as needed */
}


.session-info {
    /* Additional styling if needed */
    border-right: none; /* No border on the right for the last column */
    text-align: right; /* Left aligns text in the user info column */
}

/* end header */

/* Base styles for the navigation menu */
.dropdown-menu {
    text-align: center; /* Centers inline elements within the nav */
    background-color: #f8f9fa; /* Background color for the dropdown menu */
/*    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: Adds a shadow for depth */
    margin-top: 0px; /* Adjust as needed for spacing below the header */
    font-family: Arial, sans-serif; /* You can change this to your preferred font */

}

.dropdown-menu > ul {
    list-style-type: none;
    padding: 0;
    margin: 0 auto; /* Centers the menu */
    display: inline-block; /* Allows the menu to be centered by the text-align of its parent */
}

/* Style for each top-level menu item */
.dropdown-menu > ul > li {
    position: relative;
    display: inline-block; /* Display inline-block so they line up horizontally */
    margin-right: 50px; /* Space between menu items */
}

.dropdown-menu > ul > li:last-child {
    margin-right: 0; /* Removes margin from the last item to avoid extra spacing */
}

/* Style for menu links */
.dropdown-menu a {
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s; /* Smooth transition for hover effect */

}
.dropdown-menu ul li a {
    font-weight: bold;
}
.dropdown-menu ul li a:hover {
    background-color: #ADD8E6;
}

/* Dropdown Styles */
.dropdown-menu li ul {
    display: none;
    position: absolute;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    background-color: #fff; /* Background color for dropdown items */
}

.dropdown-menu li:hover > ul {
    display: block; /* Display the dropdown on hover */
}

/* Style for dropdown links */
.dropdown-menu li ul li {
    display: block;
}

.dropdown-menu li ul li a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    background: #f2f2f2; /* Slightly different background for dropdown items */
    font-weight: normal;
    text-align: left;

}

.dropdown-menu li ul li a:hover {
    background-color: #ddd; /* Hover background color */
}

/* Doctracking page */
.paragraph {
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    text-align: center;

}
.tracker-links {
    list-style-type: disc; /* Adds bullet points back specifically for this list */
    padding-left: 20px; /* Adds some padding to align bullets properly */
    text-align: left; /* Aligns text to the left */
    margin: auto; /* Centers the entire list block */
    width: fit-content; /* Fits the width to the content, helping with centering */
        font-size: 20px;
    font-family: 'Roboto', sans-serif;

}

.tracker-links li {
    text-align: left; /* Ensures list item text is left-aligned */
    display: list-item; /* Default display for list items */
}

/* Login page */
.center-both-container {
    display: flex;
    justify-content: center;
    align-items: end;
    height: 30vh;
}

.login-container {
    width: 500px; /* Adjust as necessary */
    padding: 30px; /* Adjust for spacing inside the container */
    text-align: left; /* For alignment of form elements */
    background-color: #EDEFF1;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

}

.login-form {
    display: flex;
    flex-direction: column;
    font-size: 18px;
    font-family: 'Roboto', sans-serif;

}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-row label {
    min-width: 160px; /* Adjust as necessary */
}

.form-row input[type="text"],
.form-row input[type="password"] {
/*    flex: 1; /* This allows both input fields to grow and fill the space equally */
    margin-left: 10px; /* Adjust as necessary */
    width: 300px;
    font-size: 18px;
    font-family: 'Roboto', sans-serif;

}

.loginlabel {
    width: 95px;
}

.button-row {
    display: flex;
    justify-content: center; /* Centering the buttons */
}

#commentdiv {
    display:block;
    width: 100%;
}

.support-link {
        font-family: 'Roboto', sans-serif;
        font-size: 12px;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        padding: 5px 0px;
        transition: background-color 0.3s ease;
        z-index: 5;
        position: absolute;
        top: 20px;
        right: 20px;
        text-decoration: none; 
        background-color: #007BFF;
	width: 110px;
        text-align: center;
    }
    .support-link:hover {
        background-color: #0056b3;
    }


/* edit user */
.edit-form-label {
    min-width: 100px; /* Ensures each label has a minimum width of 100px */
    text-align: right; /* Aligns text to the right of the label */
    margin-right: 10px; /* Space between label and input field */
    display:inline-block;
}
.edit-form-label2 {
    min-width: 300px; /* Ensures each label has a minimum width of 100px */
    text-align: right; /* Aligns text to the right of the label */
    margin-right: 10px; /* Space between label and input field */
    display:inline-block;
}


.logout-btn {
        font-family: 'Roboto', sans-serif;
        font-size: 12px;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        padding: 5px 0px;
        transition: background-color 0.3s ease;
        z-index: 5;
        position: absolute;
        top: 50px;
        right: 20px;
        text-decoration: none; 
        background-color: #FF6600;
	width: 110px;
	text-align: center;
    }
    .logout-btn:hover {
        background-color: #cc5200;
    }

.bom-table th, .bom-table td {
    padding: 5px;
    border: 1px solid #ccc;
font-family: 'Roboto', sans-serif;
font-size: 12px;
}
.bom-table {
    border-collapse: collapse;
    width: 100%;
}
.bom-table tr td:first-child {
    border: none;           /* Removes borders */
    background-color: transparent; /* No background color */
}

.toggle-children {
    cursor: pointer;
}

    .bomcollapsed > .children {
        display: none;
    }

    .bomexpanded > .children {
        display: block;
    }

        /* CSS styles for the collapsible arrow icon */
        .bomtoggle-icon {
            cursor: pointer;
        }
.bom-dynamic-filter{
	white-space: nowrap;
}

        .bomexpanded .bomtoggle-icon::before {
            transform: rotate(90deg); /* Rotate arrow when expanded */
        }
        .bomcollapsed .bomtoggle-icon::before {
            transform: rotate(0deg); /* Rotate arrow when collapsed */
        }


/* for the BOM */

    .button-container button {
        background: #4CAF50; /* Green background */
        border: none; /* Remove borders */
        color: white; /* White text */
        padding: 8px 10px; /* Some padding */
        cursor: pointer; /* Pointer/hand icon */
        font-size: 16px; /* Increase font size */
        margin: 2px; /* Add some space between buttons */
        border-radius: 5px; /* Rounded corners */
        transition: background 0.3s; /* Smooth background transition */
        display: inline-flex; /* Flex to center icons */
        align-items: center; /* Center vertically */
        justify-content: center; /* Center horizontally */
	width: 8px;
	height: 8px;
    }

    .button-container button:hover {
        background: #45a049; /* Darker green */
    }

    .button-container .AddnewpartButton {
        background: #008CBA; /* Blue background */
    }

    .button-container .AddnewpartButton:hover {
        background: #007bb5; /* Darker blue */
    }

        .button-container .remove-part-button {
            background: none; /* Red background for remove */
		color: red;
        }

        .button-container .remove-part-button:hover {
            color: #d32f2f; /* Darker red */
		background : none;
        }

    .button-container i {
        margin-right: 0px; /* Optional: space between icon and text */
    }

#overlay {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 1000;
  transition: opacity 0.3s ease;
}

#BOMPopup {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px;
  z-index: 1001;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  min-width: 500px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#BOMPopup h3 {
  margin-top: 0;
  margin-bottom: 25px;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.4em;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
}

#BOMPopup label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #495057;
  font-size: 0.95em;
}

#BOMPopup select, #BOMPopup input[type="text"], #BOMPopup input[type="number"] {
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
  font-family: inherit;
  box-sizing: border-box;
}

#BOMPopup select:focus, #BOMPopup input[type="text"]:focus, #BOMPopup input[type="number"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

#BOMPopup button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  margin-right: 10px;
  margin-top: 10px;
}

#BOMPopup button:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

#BOMPopup button:active {
  transform: translateY(0);
}

#BOMPopup .close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #6c757d;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0;
  padding: 0;
}

#BOMPopup .close-button:hover {
  background-color: #f8f9fa;
  color: #495057;
  transform: none;
}

#BOMPopup .form-group {
  margin-bottom: 20px;
}

#BOMPopup .form-group label {
  margin-bottom: 8px;
}

#BOMPopup .form-group select,
#BOMPopup .form-group input {
  width: 100%;
}

#BOMPopup .form-group input[type="number"] {
  width: 120px;
}

.bom-popup-form {
  font-family: inherit;
}

#BOMPopup .part-thumbnail-display {
  margin-top: 15px;
  padding: 15px;
  border: 2px dashed #e9ecef;
  border-radius: 8px;
  text-align: center;
  background-color: #f8f9fa;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#BOMPopup .part-thumbnail-display img {
  max-width: 100%;
  max-height: 100px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#BOMPopup .part-thumbnail-display .no-image {
  color: #6c757d;
  font-style: italic;
}

/* Thumbnail tooltip styling */
#thumbnailTooltip {
  position: fixed;
  z-index: 9999;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  padding: 8px;
  max-width: 200px;
  max-height: 200px;
  pointer-events: none;
  display: none;
}

#thumbnailTooltip img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
}

.highlight {
background-color: rgb(255, 165, 0); /* Light Orange */
}


.tooltip .tooltiptext {
  cursor: pointer;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0; 

  position: absolute;
  z-index: 1;
  top: -5px;
  left: 105%;

  display: none; /* Instead of visibility: hidden */
}

.edit-input {
    min-width: 20px;  /* Minimum width to ensure usability */
    width: auto;      /* Allow JavaScript to set width dynamically */
    max-width: 100%;  /* Prevent it from exceeding the container width */
}

/* Styles for screens smaller than 768 pixels */
@media (max-width: 767px) {
	.scrollable-table {
	    border-collapse: collapse;
	    width: 100%; /* or any width you desire */
	}

	.scrollable-table thead,
	.scrollable-table tbody {
	    display: table;
	}

	#title {
	    width:60%;
	}
	#doctype {
            display:none;
	}
	#nosigners {
            display:none;
	}
	#customer {
            display:none;
        }
	#signedby {
           width:20%;
	}
	#notsigned {
           width:20%
	}
	#declinedby {
          width:20%;
	}
	#envelopeid {
            display:none;
	}
	#envelopestatus {
            display:none;
	}
        #filtertitle,#filterdoctype,#filternotsigned {
            width:130px;
            font-size:10px;
	}
        #filterdoctype {
	    display:none;
	}
	.scrollable-table thead {
	    position:   unset;
	    top:  unset;
	    z-index: unset; /* This ensures the header is always on top */
	/*    background-color: #fff; /* Match the background color to your page */
	}

	.scrollable-table tbody {
		max-height: none; /* Adjust this to the desired scrollable height */
		overflow-y:  auto;
		border-top: none; /* A border to separate header from body */
	}
	
	.image-container {
	    display: flex;
	    justify-content: center; 

	}
	.floating-image {
	    position: static;
	    top: 0px;           /* Adjust as needed */
	    left: 0px;          /* Adjust as needed */
	    z-index: 0px;         /* Ensures the image is above the text */
            width:50%;
            
	}

        h1 {
   	    font-size:16px;
	}
	h3 {
	    font-size:13px;
	}
	th,td {
            font-size: 10px;
	}
        #pageselect {
	    font-size: 10px;
    	}
}
