body {
    font-family: Arial, sans-serif; /* Use Arial font for the entire page */
}

.container {
    max-width: 85%;
}

.container-2 {
    display: flex;
    width: 100%;
}

.sidebar {
    flex: 0 0 15%; /* Fixed width of 15% */
    max-width: 10%;
    padding-top: 60px;
    margin-right: 10px;
    background-color: #ffffff; /* Optional: Add background color for visibility */
}

.data-page-content {
    width: 100%;
    padding: 20px; /* Optional: Add padding */
    background-color: #ffffff; /* Optional: Add background color for visibility */
}

.container-top {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 15px;
    box-sizing: border-box;
    max-width: 100%;
}

#clientSearchContainer {
    display: block; /* Ensure it's visible by default */
}

.client-container-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.project-table {
    width: 100%;
    border-collapse: collapse;
}

.project-table thead {
    display: table-header-group;
    position: sticky;
    top: 0;
    z-index: 101; /* Ensure the thead stays on top */
    margin: 0; /* Remove any default margin */
    padding: 0; /* Remove any default padding */
}

.project-table th {
    background-color: #f2f2f2; /* Match the table header background color */
    border: 1px solid #ddd; /* Add border to header cells */
    border-top: 2px solid #ddd; /* Add top border to header cells */
    padding: 8px;
    margin: 0; /* Remove any default margin */
    line-height: normal; /* Ensure line-height is normal */
    z-index: 102; /* Ensure header cells stay on top */
}

.project-table th:first-child {
    border-left: 1px solid #ddd; /* Ensure left border is visible */
}

.project-table th:last-child {
    border-right: 1px solid #ddd; /* Ensure right border is visible */
}

.project-table tr:hover {
    background-color: #ecf8ff;
}

.project-table td {
    border: 1px solid #ddd;
    padding-top: 0px;
    padding-bottom: 0px;
    padding: 8px;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflowed text */
    font-size: 15px;
}

.data-page-container {
    max-width: 90%;
    margin: 0 auto;
}

.container-list {
    max-width: 85%;
    margin: 0 auto; /* Center the container */
    height: calc(100vh - 200px); /* Adjust based on your layout */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: auto; /* Disable horizontal scrolling */
    position: relative;
    border-top: 2px solid #ddd; /* Add top border to the container */
}

.container-list-data {
    max-width: 100%;
    margin: 0 auto; /* Center the container */
    height: calc(100vh - 200px); /* Adjust based on your layout */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: auto; /* Disable horizontal scrolling */
    position: relative;
    border-top: 2px solid #ddd; /* Add top border to the container */
}

.project-row:nth-child(even) {
    background-color: #f9f9f9;
}

.contract-value-container {
    position: relative;
}

.contract-value-container .edit-contract-button,
.contract-value-container .submit-contract-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 4px;
}

.contract-value-container input[type="text"] {
    width: 120px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contract-value-container .edit-contract-button {
    display: none;
}

.add-task-button:hover {
    background-color: #4f75d5;
    color: white;
}

.complete-project-button:hover {
    background-color: #45a049;
    color: white;
}

.delete-project-button:hover {
    background-color: rgb(209, 0, 0);
    color: white;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
}

.task-table th {
    background-color: #f2f2f2; /* Match the table header background color */
    border: 1px solid #ddd; /* Add border to header cells */
    border-top: 2px solid #ddd; /* Add top border to header cells */
    padding: 8px;
    margin: 0; /* Remove any default margin */
    line-height: normal; /* Ensure line-height is normal */
    z-index: 102; /* Ensure header cells stay on top */
}

.task-table td {
    border: 1px solid #ddd;
    padding: 8px;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflowed text */
}

.hidden {
    display: none;
}

.task-table th:first-child {
    border-left: 1px solid #ddd; /* Ensure left border is visible */
}

.task-table th:last-child {
    border-right: 1px solid #ddd; /* Ensure right border is visible */
}

.phase-code-column {
    width: 10%;
}

.description-column {
    width: 60%;
}

.delete-column {
    width: 5%;
}

.amount-column {
    width: 15%;
}

.billing-selection-column {
    width: 10%;
}

h1 {
    text-align: center;
    color: #C93631;
    margin: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

h3 {
    text-align: center;
    color: #C93631;
    margin: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

.info-box {
    display: flex;
    gap: 15px;
    font-size: 20px;
}

.info-boxes {
    display: flex;
    flex-direction: column;
    color: rgb(royalblue);
    font-size: 20px;
}

.info-label {
    font-weight: bold;
    margin-bottom: 10px;
}

.info-value {
    font-size: 1.2em;
}

.new-project-form {
    margin-bottom: 20px;
    margin-top: 20px
}

.new-project-button-2 {
  background-color: #27ae60;
  border-radius: 8px;
  border-style: none;
  box-shadow: rgba(39, 174, 96, .15) 0 4px 9px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  padding: 13px 20px;
  text-align: center;
}

.button-68:hover {
  background-color: #1e8449;
  opacity: 1;
  transform: translateY(0);
  transition-duration: .35s;
}

.button-68:active {
  transform: translateY(2px);
  transition-duration: .35s;
}

.button-68:hover {
  box-shadow: rgba(39, 174, 96, .2) 0 6px 12px;
}

.add-project-button-2 {
    background-color: #eeeeee !important;
    border-width: 3px !important;
    border-color: #555 !important;
    border-style: solid !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
    color: green !important;
    font-weight: bold !important;
    border-radius: 10px !important;
    margin-bottom: 15px !important;
}

.new-project-input {
    padding: 8px;
    line-height: 1.5;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px; /* Adjust font size as needed */
    box-sizing: border-box; /* Ensure padding and border are included in the width */
    width: calc(100%); /* Adjust width to account for padding */
    height: 100%;
    /* Keep the default appearance */
    -webkit-appearance: menulist; /* For Webkit browsers */
    -moz-appearance: menulist; /* For Firefox */
    appearance: menulist; /* Standard */
}

.mileage-rate {
    padding: 7px;
    line-height: 1.5;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px; /* Adjust font size as needed */
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

.new-project-input select {
    padding: 8px;
    line-height: 1.5;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px; /* Adjust font size as needed */
    box-sizing: border-box; /* Ensure padding and border are included in the width */
    width: calc(100%); /* Adjust width to account for padding */
    height: 100%;
    /* Keep the default appearance */
    -webkit-appearance: menulist; /* For Webkit browsers */
    -moz-appearance: menulist; /* For Firefox */
    appearance: menulist; /* Standard */
}

.date-input {
    padding: 5px;
    line-height: 1.5;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px; /* Adjust font size as needed */
    box-sizing: border-box; /* Ensure padding and border are included in the width */
    width: calc(100%); /* Adjust width to account for padding */
    height: 100%;
    /* Keep the default appearance */
    -webkit-appearance: menulist; /* For Webkit browsers */
    -moz-appearance: menulist; /* For Firefox */
    appearance: menulist; /* Standard */
}

.new-project-input-2 {
    padding: 8px;
    line-height: 1.5;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px; /* Adjust font size as needed */
    box-sizing: border-box; /* Ensure padding and border are included in the width */
    width: calc(100%); /* Adjust width to account for padding */
    height: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    /* Keep the default appearance */
    -webkit-appearance: menulist; /* For Webkit browsers */
    -moz-appearance: menulist; /* For Firefox */
    appearance: menulist; /* Standard */
}

.client-actions {
    display: flex;
    gap: 10px;
    margin-left: auto; /* Push the actions to the right */
}

.add-client-button {
    background-color: rgb(223, 223, 223);
    color: rgb(royalblue);
    border-width: 3px;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.new-client-form {
    margin-bottom: 20px;
    margin-top: 20px;
}

.plus-sign {
    color: green;
    font-size: 20px;
    font-weight: bold;
    margin-right: 5px;
}

.submit-button {
    background-color: rgb(223, 223, 223);
    color: rgb(royalblue);
    border-color: rgb(41, 220, 41);
    border-width: 2px;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 7px;
}

.cancel-button {
    background-color: rgb(223, 223, 223);
    color: rgb(royalblue);
    border-color: rgb(208, 11, 11);
    border-width: 2px;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 7px;
}

.add-task-button {
    background-color: rgb(157, 157, 157);
    border-color: black;
    border-width: 2px;
    padding: 5px 10px;
    font-size: 10px;
    border-radius: 7px;
}

.complete-project-button {
    background-color: rgb(157, 157, 157);
    border-color: black;
    border-width: 2px;
    padding: 5px 10px;
    font-size: 10px;
    border-radius: 7px;
}

.delete-project-button {
    background-color: rgb(157, 157, 157);
    border-color: black;
    border-width: 2px;
    padding: 5px 10px;
    font-size: 10px;
    border-radius: 7px;
}

.project-box {
    border: 2px solid royalblue;
    border-radius: 10px;
    background-color: #f0f0f0;
    margin-bottom: 20px;
    padding: 10px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.task-list {
    list-style-type: none;
    padding-left: 0;
}

.task-item {
    margin-bottom: 5px;
}

.completed-task {
    text-decoration: line-through;
    color: gray;
}

/* Style for the custom checkbox container */
.task-checkbox-container {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
    margin-right: 10px;
}

/* Hide the default checkbox */
.task-checkbox-container input[type="checkbox"] {
    display: none;
}

/* Style for the custom checkbox */
.task-checkbox-container .custom-checkbox {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #999;
    border-radius: 3px;
    background-color: #fff;
}

/* Style for the custom checkmark */
.task-checkbox-container .custom-checkbox::after {
    content: "";
    display: block;
    width: 10px;
    height: 5px;
    border: solid #333;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0; 
}

/* Show the checkmark when the checkbox is checked */
.task-checkbox-container input[type="checkbox"]:checked + .custom-checkbox::after {
    opacity: 1;
}

#addTaskPopup {
    display: none; /* Hide the pop-up by default */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 1000; /* Ensure the pop-up appears above other content */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 300px; /* Set the width of the pop-up content */
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%; 
    margin: -150px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: add some shadow */
    border-color: black;
    border-radius: 10px;
    border-width: 2px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #555;
}

/* Style for input and buttons within the pop-up */
.popup-content input[type="text"],
.popup-content button {
    margin: 10px 0;
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Style for buttons within the pop-up */
.popup-content button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.popup-content button:hover {
    background-color: #0056b3;
}

.client-search-item {
    cursor: pointer;
    padding: 5px;
    background-color: #f0f0f0;
    border-radius: 3px;
    margin-top: 5px;
}

.client-search-item:hover {
    background-color: #e0e0e0;
}

.search-container {
    position: relative;
    width: 100%; /* Adjust width as needed */
    max-width: 225px;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 225px;
}

.autocomplete-container {
    position: relative;
    display: inline-block; /* Ensure the container adapts to the content size */
}

.autocomplete-results {
    position: absolute;
    top: 100%; /* Position it right below the input */
    left: 0; /* Align it to the left of the search input */
    max-height: 200px;
    width: 100%; /* Make it the same width as the input wrapper */
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: #fff;
    z-index: 1;
    text-align: left;
    box-sizing: border-box; /* Ensure padding and border are included in the width */
    font-size: 15px;
}


.autocomplete-option {
    padding: 8px 12px;
    cursor: pointer;
}

.autocomplete-option:hover {
    background-color: #f0f0f0;
}

.autocomplete-results-2 {
    position: absolute;
    top: 100%; /* Position it right below the input */
    left: 0; /* Align it to the left of the search input */
    max-height: 200px;
    width: 60%; /* Make it the same width as the input wrapper */
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: #fff;
    z-index: 1;
    text-align: left;
    box-sizing: border-box; /* Ensure padding and border are included in the width */
    transform: translate(25%, -31%);
}

.autocomplete-option-2 {
    padding: 8px 12px;
    cursor: default; /* Change cursor to default */
}

.autocomplete-option-2:hover {
    background-color: rgb(218, 218, 218);
    cursor: pointer;
}

/* Modal container */
.modal {
    display: none; 
    position: fixed; 
    margin-top: 56px;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.4); 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Modal content */
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 80%; /* Adjust the width as needed */
    max-width: 100%; /* Optional: set a max-width */
    margin: auto; /* Center within the modal container */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: add some shadow */
    overflow-y: auto; /* Enable scrolling if content overflows */
}

/* Close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

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

.new-existing-buttons {
    display: flex;
    margin-bottom: 30px;
    justify-content: space-evenly;
}

.button-container {
    border: 2px solid #ccc; /* Adjust the border color and width as needed */
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 5px; /* Optional: Add border-radius for rounded corners */
    display: flex;
    align-items: center;
}

.button-container label {
    margin: 0; /* Remove default margin from the label */
    line-height: 1; /* Ensure consistent line height */
}

.form-group-1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center; /* Ensure items are vertically aligned */
    gap: 10px;
    margin-bottom: 20px;
    width: 100%; /* Ensure the container spans the full width */
}


.form-group-1 label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group-1 input,
.form-group-1 select {
    padding: 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.form-group-1 .autocomplete-results {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
}

.form-group-1 .autocomplete-option {
    padding: 8px;
    cursor: pointer;
}

.form-group-1 .autocomplete-option:hover {
    background-color: #f0f0f0;
}

.form-group-2 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center; /* Ensure items are vertically aligned */
    gap: 10px;
    margin-bottom: 20px;
    width: 100%; /* Ensure the container spans the full width */
}

.form-group-2 input,
.form-group-2 select {
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.project-title input {
    font-size: 18px;
    padding: 4px;
    padding-left: 4px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-top: 3px;
    width: max-content;
}

.project-city input {
    font-size: 14px;
    padding: 4px;
    padding-left: 4px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-top: 3px;
    width:max-content
}

.modal-highlight {
    padding: 16px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}
.modal-highlight label {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 6px;
    display: block;
}
.modal-highlight input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d8e0eb;
    border-radius: 12px;
    background: #f8fbff;
}

.modal-header {
    display: flex;
    flex-direction: row;
    padding-bottom: 15px;
    border-bottom: none;
}

.modal-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

.modal-footer button {
    padding: 10px 20px;
    margin-left: 10px;
}

.task-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 10px 15px;
    border-top: 1px solid #e9ecef;
}

.client-contact-search-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center; /* Ensure items are vertically aligned */
    gap: 10px;
    margin-bottom: 20px;
    width: 100%; /* Ensure the container spans the full width */
}

.client-contact-search-container label {
    margin-bottom: 5px;
    font-weight: bold;
}

.client-contact-search-container input,
.client-contact-search-container select {
    padding: 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.client-contact-search-container .autocomplete-results {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
}

.client-contact-search-container .autocomplete-option {
    padding: 8px;
    cursor: pointer;
}

.client-contact-search-container .autocomplete-option:hover {
    background-color: #f0f0f0;
}

.address-cell {
    max-width: 200px; /* Adjust the width as needed */
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Hide overflow by default */
    position: relative; /* Position relative to contain the overflow */
}

.address-cell:hover .address-cell-content {
    overflow-x: auto; /* Enable horizontal scrolling on hover */
    white-space: nowrap; /* Ensure no wrapping */
}

.address-cell-content {
    display: inline-block; /* Inline-block for correct overflow behavior */
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Hide overflow initially */
}

.address-cell-content::-webkit-scrollbar {
    height: 6px; /* Adjust the height of the scrollbar */
}

.address-cell-content::-webkit-scrollbar-thumb {
    background: #888; /* Color of the scrollbar thumb */
    border-radius: 10px;
}

.address-cell-content::-webkit-scrollbar-thumb:hover {
    background: #555; /* Color of the scrollbar thumb on hover */
}

.section-separator {
    border: 0;
    height: 1px;
    background: lightgrey;
    margin: 20px auto; /* Adjust the vertical spacing as needed */
    width: 100%;
}



.tablinks {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: left;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
    transition: background 0.3s;
}

.tablinks:hover {
    background: #ddd;
}

.tabcontent {
    flex: 3;
    display: none;
    padding: 20px;
    border-left: 1px solid #ccc;
}

.tabcontent h3 {
    margin-top: 0;
}

.tasks-info-popup {
    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);
    padding-top: 60px;
}

.tasks-info-popup .modal-dialog {
    max-width: 100%; /* Increase the width of the modal */
    width: 100%; /* Set the width of the modal */
}

.tasks-info-popup .modal-content {
    height: 80vh; /* Increase the height of the modal */
}

.tasks-info-popup .modal-body {
    overflow-y: auto; /* Allow scrolling if content overflows */
}

.change-button {
    border-radius: 4px;
    border-color: #007bff;
    margin-left: 10px;
}

.dropdown-content {
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 9999; /* Ensure it is above other elements */
    border: 1px solid #ccc;
    margin-top: 5px; /* Add a margin to ensure it appears below the button */
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}


.comments-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.comments-popup textarea {
    width: 100%;
    height: 100px;
}

.comments-popup button {
    margin-top: 10px;
    margin-right: 10px;
}

.search-project-modal {
    position: fixed; 
    z-index: 1005; /* Ensure the modal is above other elements */
    left: 25%;
    top: 10%;
    margin: 0 auto;
    width: 50%; 
    overflow: auto; 
    display: flex; /* Use flexbox to center the modal */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    padding: 20px; /* Optional: add some padding */
}

.modal-content-2 {
    background-color: white;
    padding: 20px;
    width: 80%; /* Adjust the width as needed */
    height: 40vh;
    max-width: 100%; /* Optional: set a max-width */
    margin: auto; /* Center within the modal container */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1); /* Optional: add some shadow */
    overflow-y: auto; /* Enable scrolling if content overflows */
    border: #555;
    border-radius: 10px;
    border-width: 2px;
    border-style: solid;
}

.project-search-results-2 {
    position: absolute;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    z-index: 100000;
    max-width: 100%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    display: none; /* Ensure it's hidden by default */
}

.project-search-results-2 .project-autocomplete-results {
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 0px;
}

.project-search-results-2 .project-autocomplete-results:hover {
    background-color: #ddd;
    cursor: pointer;
}

.spinner {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.filtering-div {
    width: 100%;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.filtering-collapsible {
    background-color: #397ac4;
    color: white;
    cursor: pointer;
    border: #397ac4;
    padding: 10px;
    border-radius: 10px;
}

.filter-column input,
.filter-column select {
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 75%;
    text-align: left;
}

.pagination-section {
    align-self: center;
    padding: 10px;
}



/* Style the dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 75%;
    background-color: transparent;
    text-align: left;
}

.dropdown-content-office {
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    flex-direction: column;
}

.dropdown-content-office label {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content-office label:hover {
    background-color: #f1f1f1;
}

.show {
    display: flex;
}

.filtering-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.regular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.snapshot-grid {
    display: flex;
    flex-direction: row;
    max-height: 50%;
}

.filter-column {
    display: flex;
    flex-direction: column;
}

.regular-column {
    display: flex;
    flex-direction: column;
}

.probability-input {
    margin-bottom: 15px;
}

.percentage-input {
    position: relative;
    display: inline-block;
}

.percentage-sign {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Ensures the text is not interactive */
    color: #000; /* Customize the color as needed */
    font-size: 1em; /* Adjust the size to match the input */
}

.percentage-input input[type="number"] {
    padding-right: 20px; /* Ensure there's space for the percentage sign */
    padding: 8px;
    font-size: 18px;
    border-radius: 4px;
    border: 1px solid #ccc;
    max-width: 100px;
    margin-left: 50px;
}

.autocomplete-results-3 {
    position: absolute;
    top: 100%; /* Position it right below the input */
    left: 0; /* Align it to the left of the search input */
    max-height: 200px;
    width: 100%; /* Make it the same width as the input wrapper */
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: #fff;
    z-index: 1000; /* Ensure it appears above other elements */
    text-align: left;
    box-sizing: border-box; /* Ensure padding and border are included in the width */
    font-size: 15px;
    margin-top: 2px; /* Small margin for better spacing */
    border-radius: 8px;
    display: none;
}

.autocomplete-results-3.hidden {
    border: none;
    display: none;
}

.autocomplete-results-3.has-results {
    display: block;
    border: 1px solid #ccc;
}

.autocomplete-results-3 .project-autocomplete-results {
    padding: 5px;
}

.autocomplete-results-3 .project-autocomplete-results:hover {
    background-color: #ccc;
    cursor: pointer;
}

.filter-input-container {
    position: relative;
}

.updates-wrapper {
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    border-color: #333;
    background-color: #e6f1fe;
    padding: 8px;
    overflow-y: auto;
    max-height: 40%;
}

.updates-column {
    width: 45%;
}

.tasks-billed-column {
    width: 55%;
    padding-left: 30px;
    overflow-y: auto;
    max-height: 100%;
}

.tasks-billed-list {
    width: 100%;
    padding: 0px;

}

.tasks-billed-list li {
    display: flex;
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    border-color: #333;
    background-color: #e6f1fe;
    padding: 8px;
    margin-bottom: 15px;
}

.task-removal-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.confirm-remove-modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered horizontally */
    padding: 20px;
    border: 2px solid #888;
    border-radius: 8px;
    width: 300px; /* Define the width of the modal content */
    position: relative;
}
.yes-button {
    border-style: solid;
    border-width: 2px;
    border-color: #888;
    border-radius: 10px;
    padding: 6px;
    width: 35%;
    align-items: center;

}

.project-updates-list {
    padding-left: 0px;
}

.project-updates-list li {
    list-style-type: none;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: solid, #aaa, 2px;
    margin-bottom: 15px;
}

.roles-list {
    padding: none;
}

.roles-list li {
    list-style-type: none;
    margin-bottom: 15px;
    margin-top: 15px;
}

.add-button {
    background-color: #397ac4;
    color: white;
    cursor: pointer;
    border: #397ac4;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 14px;
}

.projection-comments-modal {
    width: 30vh;
    height: 30vh;
    border-style: solid;
    border: #333 2px;
    border-radius: 10px;
    position: absolute;
    top: 10px;
    left: 110%;
}

.project-modal-content {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    max-width: 100%;
    max-height: 100%; 
    margin: auto; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    overflow-y: auto; 
}

.time-entry-dropdown {
    position: relative;
}

.time-entry-dropdown:hover .time-entry-dropdown-menu {display: block;}

.time-entry-dropdown-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100000;
  }

.time-entry-dropdown-menu a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    }
  
.time-entry-dropdown-menu a:hover {
    background-color: #ddd;
    }

.dropbtn {
    border: none;
    background-color: transparent;
    text-align: center;
    align-items: center;
}

.hourly-icon {
    border: rgb(255, 197, 91) solid 1px;
    border-radius: 5px;
    background-color: rgb(255, 197, 91);
    color: rgb(148, 148, 148);
    font-size: 10px;
    padding: 5px;
}

.editable-div {
    display: inline-block;
    cursor: pointer;
}

.tab {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    display: none;
    transform: translateX(100%);
}

.tab.active {
    transform: translateX(0);
    opacity: 1;
    display: block;
}

.project-number-list li {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    border: 1px solid #ccc;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 5px;
    padding-left: 10px;
    border-radius: 4px;
}

.icon-button {
    border: none;
    background-color: transparent;
}

.client-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.client-filter-list li {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    border: 1px solid #ccc;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 5px;
    padding-left: 10px;
    border-radius: 4px;
}

.panel-left {
    position: fixed;
    margin-top: 58px;
    left: -100%; /* Start off-screen to the left */
    top: 0; /* Align with the top of the screen */
    width: 70%; /* Adjust width as needed */
    height: 100%; /* Full height */
    background-color: #fafafa;
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out; /* Transition for sliding effect */
    overflow: hidden;
    overflow: auto;
    z-index: 10002;
}

.tab-container {
    display: flex; /* Align tabs in a row */
    overflow: hidden; /* Prevents inner elements from spilling out */
}

.filter-hover {
    flex: 1;
    padding: 10px;
    text-align: center; 
    cursor: pointer;

}

.filter-hover:hover {
    font-weight: bold;
    color: #397ac4;
    text-shadow: #555;
    border-bottom: solid 4px #397ac4;
}

.active-tab {
    font-weight: bold;
    color: #397ac4;
    text-shadow: #555;
    border-bottom: solid 4px #397ac4;
}

.color3 { border: solid #397ac4 2px; }

#flash-messages {
    margin-top: 20px;
}

.alert {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.button-68 {
    appearance: none;
    backface-visibility: hidden;
    background-color: #27ae60;
    border-radius: 8px;
    border-style: none;
    box-shadow: rgba(39, 174, 96, .15) 0 4px 9px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: Inter,-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: normal;
    line-height: 1.5;
    outline: none;
    overflow: hidden;
    padding: 8px 10px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transform: translate3d(0, 0, 0);
    transition: transform .3s, box-shadow .3s, filter .3s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: top;
    white-space: nowrap;
}

.button-68:hover {
    /* Darken whatever the current background is */
    filter: brightness(0.9);
    transform: translateY(0);
    box-shadow: rgba(39, 174, 96, .2) 0 6px 12px;
}

.button-68:active {
    transform: translateY(2px);
    transition-duration: .35s;
}

.project-modal-modern {
    max-width: 1100px;
    width: 95%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
    padding: 0;
}

.project-modal-modern label {
        font-weight: 600;
        font-size: 13px;
        color: #0f172a;
}

.modal-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 24px 18px;
    background: linear-gradient(135deg, #e0ecff 0%, #f8fdff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    margin: 6px 0 6px;
    font-weight: 800;
}

.modal-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.modal-close-stack .close {
    color: #475569;
    font-size: 22px;
}

.modal-close-stack {
    display: flex;
    justify-content: flex-end;
    padding: 10px 12px 0;
}

.proposal-shell {
    background: #f8fafc;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
    padding-bottom: 30px;
}
.proposal-close-stack {
    display: flex;
    justify-content: flex-end;
    padding: 12px 14px 0;
}
.proposal-close-stack .close {
    color: #475569;
    font-size: 22px;
}
.proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 24px 18px;
    background: linear-gradient(135deg, #e0ecff 0%, #f8fdff 100%);
    border-bottom: 1px solid #e2e8f0;
}
.proposal-title {
    margin: 4px 0 6px;
    font-weight: 800;
}
.proposal-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}
.proposal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #0f172a;
    color: #e2e8f0;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.proposal-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.proposal-actions .filtering-collapsible {
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    border: none;
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}
.proposal-actions .filtering-collapsible.secondary {
    background: #e2e8f0;
    color: #0f172a;
    box-shadow: none;
}
.proposal-body {
    padding: 18px 20px 26px;
}
.proposal-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 0 0 16px 0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.proposal-highlight {
    background: #f0f6ff;
    border-color: #cbd5e1;
}
.proposal-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}
.proposal-section-title {
    margin: 0;
    font-weight: 800;
}
.proposal-hint {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}
.proposal-tag {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: 0.02em;
}
.proposal-content-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 14px;
    align-items: end;
}
.template-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.template-upload {
    border-top: 1px dashed #cbd5e1;
    margin-top: 14px;
    padding-top: 14px;
}
.proposal-panel.label {
    font-weight: 600;
    font-size: 13px;
    color: #0f172a;
}
.proposal-panel.upload-field {
    width: 100%;
    max-width: 280px;
}
.proposal-table-wrap {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.proposal-task-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
.checkbox-wrapper-13 input[type=checkbox] {
    --active: #275EFE;
    --active-inner: #fff;
    --focus: 2px rgba(39, 94, 254, .3);
    --border: #BBC1E1;
    --border-hover: #275EFE;
    --background: #fff;
    --disabled: #F6F8FF;
    --disabled-inner: #E1E6F9;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 21px;
    outline: none;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--bc, var(--border));
    background: var(--b, var(--background));
    transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
}
.checkbox-wrapper-13 input[type=checkbox]:after {
    content: "";
    display: block;
    left: 0;
    top: 0;
    position: absolute;
    transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
}
.checkbox-wrapper-13 input[type=checkbox]:checked {
    --b: var(--active);
    --bc: var(--active);
    --d-o: .3s;
    --d-t: .6s;
    --d-t-e: cubic-bezier(.2, .85, .32, 1.2);
}
.checkbox-wrapper-13 input[type=checkbox]:disabled {
    --b: var(--disabled);
    cursor: not-allowed;
    opacity: 0.9;
}
.checkbox-wrapper-13 input[type=checkbox]:disabled:checked {
    --b: var(--disabled-inner);
    --bc: var(--border);
}
.checkbox-wrapper-13 input[type=checkbox]:disabled + label {
    cursor: not-allowed;
}
.checkbox-wrapper-13 input[type=checkbox]:hover:not(:checked):not(:disabled) {
    --bc: var(--border-hover);
}
.checkbox-wrapper-13 input[type=checkbox]:focus {
    box-shadow: 0 0 0 var(--focus);
}
.checkbox-wrapper-13 input[type=checkbox]:not(.switch) {
    width: 21px;
}
.checkbox-wrapper-13 input[type=checkbox]:not(.switch):after {
    opacity: var(--o, 0);
}
.checkbox-wrapper-13 input[type=checkbox]:not(.switch):checked {
    --o: 1;
}
.checkbox-wrapper-13 input[type=checkbox] + label {
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    margin-left: 4px;
}

.checkbox-wrapper-13 input[type=checkbox]:not(.switch) {
    border-radius: 7px;
}
.checkbox-wrapper-13 input[type=checkbox]:not(.switch):after {
    width: 5px;
    height: 9px;
    border: 2px solid var(--active-inner);
    border-top: 0;
    border-left: 0;
    left: 7px;
    top: 4px;
    transform: rotate(var(--r, 20deg));
}
.checkbox-wrapper-13 input[type=checkbox]:not(.switch):checked {
    --r: 43deg;
}
}

.checkbox-wrapper-13 * {
    box-sizing: inherit;
}
.checkbox-wrapper-13 *:before,
.checkbox-wrapper-13 *:after {
    box-sizing: inherit;
}

.trident-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    border: 1px solid #d9e2ef;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}
.trident-table tr th{
    background: linear-gradient(180deg, #a8ccfe 0%, #e4eeff 100%);
    border: none;
}
.trident-table thead {
    border: none;
}
.trident-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #0f172a;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-bottom: 1px solid #cbd5e1;
    border-right: 1px solid #e2e8f0;
    padding: 12px 10px;
    border: none;
}
.trident-table thead th:first-child {
    border-top-left-radius: 10px;
}
.trident-table thead th:last-child {
    border-top-right-radius: 10px;
    border-right: none;
}
.trident-table tbody tr {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.trident-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}
.trident-table tbody tr:hover {
    background-color: #eef2ff;
    box-shadow: inset 0 0 0 9999px rgba(59, 130, 246, 0.05);
}
.trident-table tbody td {
    padding: 10px 10px;
    border-right: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    color: #0f172a;
    font-size: 14px;
    vertical-align: middle;
    white-space: nowrap;
}
.trident-table tbody td:last-child {
    border-right: none;
}
.trident-table tbody tr:last-child td {
    border-bottom: none;
}
.trident-table tbody td:first-child {
    white-space: nowrap;
}
.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 7px;
    margin: 0 2px;
    border-radius: 6px;
    color: #1f2937;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}
.action-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.16);
    background: #e0e7ff;
    color: #1d4ed8;
}
.action-icon--disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

.settings-page {
    max-width: 95%;
    margin: 0 auto;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.settings-title {
    margin: 0;
    font-weight: 800;
}

.settings-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
}

.settings-section {
    margin-bottom: 20px;
}

.settings-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.settings-card + .settings-card {
    margin-top: 12px;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-label {
    font-weight: 600;
    color: #0f172a;
}

.settings-label.small {
    font-size: 13px;
    color: #475569;
}

.settings-control {
    min-width: 220px;
}

.settings-control select,
.settings-control input {
    width: 100%;
}

.settings-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.settings-muted {
    color: #64748b;
    font-size: 13px;
}

.settings-divider {
    border-top: 1px solid #e2e8f0;
    margin: 16px 0;
}

.settings-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .settings-grid-2 {
        grid-template-columns: 1fr;
    }

    .settings-row {
        align-items: flex-start;
    }

    .settings-control {
        width: 100%;
    }
}

.trident-table tbody td:first-child {
    white-space: nowrap;
}
.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 7px;
    margin: 0 2px;
    border-radius: 6px;
    color: #1f2937;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}
.action-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.16);
    background: #e0e7ff;
    color: #1d4ed8;
}
.action-icon--disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

.setup-guide {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.setup-guide-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.setup-guide-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.16);
}

.setup-progress-ring {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: conic-gradient(#0ea5e9 0deg, #e2e8f0 0deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #0f172a;
}

.setup-progress-ring span {
    background: #ffffff;
    border-radius: 999px;
    padding: 2px 4px;
    font-size: 9px;
}

.setup-guide-panel {
    position: absolute;
    top: 42px;
    right: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.2);
    padding: 12px;
    display: none;
    z-index: 99999;
}

.setup-guide-panel.is-open {
    display: block;
}

.setup-guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.setup-guide-title {
    font-size: 14px;
    font-weight: 800;
    margin: 0;
}

.setup-guide-percent {
    font-size: 12px;
    color: #475569;
}

.setup-guide-section {
    margin-top: 10px;
}

.setup-guide-section-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
}

.setup-guide-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    margin-bottom: 8px;
}

.setup-guide-item:last-child {
    margin-bottom: 0;
}

.setup-guide-item-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.setup-guide-item-desc {
    font-size: 12px;
    color: #64748b;
}

.setup-guide-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.setup-guide-action-btn {
    border: none;
    background: #0f172a;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}

.setup-guide-action-btn.secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.settings-page {
    max-width: 95%;
    margin: 0 auto;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.settings-title {
    margin: 0;
    font-weight: 800;
}

.settings-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
}

.settings-section {
    margin-bottom: 20px;
}

.settings-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.settings-card + .settings-card {
    margin-top: 12px;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-label {
    font-weight: 600;
    color: #0f172a;
}

.settings-label.small {
    font-size: 13px;
    color: #475569;
}

.settings-control {
    min-width: 220px;
}

.settings-control select,
.settings-control input {
    width: 100%;
}

.settings-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.settings-muted {
    color: #64748b;
    font-size: 13px;
}

.settings-divider {
    border-top: 1px solid #e2e8f0;
    margin: 16px 0;
}

.settings-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .settings-grid-2 {
        grid-template-columns: 1fr;
    }

    .settings-row {
        align-items: flex-start;
    }

    .settings-control {
        width: 100%;
    }
}