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

th, td {
    padding: 2px;
    text-align: left;
    font-size: 11px;
     /* Set a minimum width for each column */
}

th {
    background-color: #f2f2f2;
}

@media only screen and (max-width: 768px) {
    /* Reduce padding on mobile */
    th, td {
        padding: 2px;
    }
}

.subrow {
    background-color: #f2f2f2;
    display: block;
    padding-left: 20px; /* Adjust the value to control the indentation */
}
#conversionApiForm {
    position: fixed;
    top: 30px;
    bottom: 20px;
    left: 50%;
    max-width:500px;
    transform: translateX(-50%);
    background-color: white;
    padding: 10px;
    border: 1px solid black;
    z-index: 9999;
    overflow-y: auto;  /* Enable vertical scrolling */
    max-height: 80vh; 
}

#copyAnswersPopup {
    border-radius: 5px;
    position: fixed;
    top: 30%;
    bottom: 20px;
    left: 50%;
    max-width:500px;
    transform: translateX(-50%);
    background-color: white;
    padding: 10px;
    border: 1px solid grey;
    z-index: 9999;
    overflow-y: auto;  /* Enable vertical scrolling */
    max-height: 200px; 
}

#editUserPopup, #editServicePopup, #referralPaymentsPopup , #inputReturnBalanceDue{
    position: fixed;
    top: 30px;
    bottom: 20px;
    left: 50%;
    max-width:275px;
    transform: translateX(-50%);
    background-color: white;
    padding: 10px;
    border: 1px solid black;
    z-index: 9999;
    overflow-y: auto;  /* Enable vertical scrolling */
    max-height: 80vh; 
}
    
#editUserButton, #editServiceButton, #referralPaymentsButton, #clearButton, #triggerConversionsButton ,#inputReturnBalanceDueButton, #confirmCopy, #closeCopyPopup{
  background-color: #24ace4;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 4px;
}

#closeEditUserPopup, #closeEditServicePopup, #closereferralPaymentsPopup,#closeTriggerConversionPopup , #closeReturnBalanceDueButton {
  background-color: #24ace4;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: block;
  font-size: 16px;
  margin: auto;
  cursor: pointer;
  border-radius: 4px;
  position: relative;
  margin-top: 50px;
  /*
  bottom: 10px;
  
  left: 50%;
  transform: translateX(-50%);
  */
    
}

#editUserButton:hover, #closeEditUserPopup:hover, #editServiceButton:hover, #closeEditServicePopup:hover,#userSearchButton:hover , #clearButton:hover, #triggerConversionsButton:hover, #triggerConversionsButton:hover , #confirmCopy:hover,#closeCopyPopup:hover /*, #inputReturnBalanceDue:hover*/{
  background-color: #47c9f0;
  color: white;
}


.fileHolder {
  display: flex;
  align-items: baseline;
}


.bold {
  font-weight: bold;
}



#loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  text-align: center;
}

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 3px solid #ffffff;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spinner-rotate 1s linear infinite;
}

@keyframes spinner-rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.messageNotif {
  color: white;
  font-size: 10px;
  font-weight: 600;
  display: inline-block;
  animation-name: pumpAnimation;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 2;
  animation-fill-mode: forwards;
  background: #e90303;
  padding: 2px 6px;
  border-radius: 50%;
  
  bottom: 85%;
  right: 0;
}
.messageNotifNewUser {
  color: white;
  font-size: 10px;
  font-weight: 600;
  display: inline-block;
  animation-name: pumpAnimation;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 2;
  animation-fill-mode: forwards;
  background: #e90303;
  padding: 2px 6px;
  border-radius: 10%;
  
  bottom: 85%;
  right: 0;
}

.perInfo{
    width: 400px;
    margin: auto;
    margin-bottom: 15px;
}
.perInfo select{
    min-width: 100px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    
}
.perInfo input{
    margin-top: 4px;
    width: 90%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    
}

#userSearch{
    width: 200px; 
    padding: 5px;
    margin-left: 10px;
    border: 2px solid #ccc; 
    border-radius: 4px;
    font-size: 12px;
}
#userSearchButton{
    
    padding: 5px;
    border: 2px solid #ccc; 
    border-radius: 4px;
    font-size: 12px;
}

/* Invoice Modal Styles - Clean and Modern */
/* ---- Invoice Modal ---- */
#invoicesDetailsPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.invoice-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 9998;
}

.invoice-modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 1100px;
  max-height: 85vh;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.invoice-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px 18px;
  background: #24ace4;
  border-bottom: none;
}

.invoice-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.invoice-modal-header h4 {
  margin: 4px 0 0 0;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.invoice-modal-totals {
  display: flex;
  gap: 14px;
  align-items: center;
}

.modal-total-item {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
}

.modal-total-item.total-paid {
  background-color: rgba(255, 255, 255, 0.15);
  color: #a8f0c6;
}

.modal-total-item.total-open {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffd6a5;
}

.modal-total-item.total-refunds {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffb3b3;
}

.invoice-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.invoice-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Tabs */
.invoice-modal-tabs {
  display: flex;
  gap: 0;
  padding: 0 28px;
  background-color: #fafbfc;
  border-bottom: 1px solid #e1e4e8;
}

.invoice-tab {
  padding: 12px 22px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #8b949e;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.invoice-tab:hover {
  color: #444;
}

.invoice-tab.active {
  color: #24ace4;
  border-bottom-color: #24ace4;
}

.invoice-tab-count {
  display: inline-block;
  background-color: #e1e4e8;
  color: #555;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  min-width: 20px;
  text-align: center;
}

.invoice-tab.active .invoice-tab-count {
  background-color: #24ace4;
  color: #fff;
}

/* Body & Table */
.invoice-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background-color: #ffffff;
}

.invoice-details-table {
  width: 100%;
  background-color: white;
  border-collapse: collapse;
}

.invoice-details-table thead {
  background-color: #fafbfc;
  border-bottom: 2px solid #e8ebef;
  position: sticky;
  top: 0;
  z-index: 10;
}

.invoice-details-table th {
  padding: 12px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8b949e;
  border: none;
}

.invoice-details-table tbody tr {
  border-bottom: 1px solid #f0f2f5;
  transition: background-color 0.15s;
}

.invoice-details-table tbody tr:hover {
  background-color: #f6f8fa;
}

.invoice-details-table tbody tr:last-child {
  border-bottom: none;
}

.invoice-details-table td {
  padding: 14px 20px;
  font-size: 13px;
  color: #24292e;
  border: none;
}

/* Status Badges */
.status-paid {
  display: inline-block;
  padding: 4px 10px;
  background-color: #dafbe1;
  color: #1a7f37;
  border: none;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-pending {
  display: inline-block;
  padding: 4px 10px;
  background-color: #fff8c5;
  color: #9a6700;
  border: none;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-failed {
  display: inline-block;
  padding: 4px 10px;
  background-color: #ffebe9;
  color: #cf222e;
  border: none;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-partial {
  display: inline-block;
  padding: 4px 10px;
  background-color: #ddf4ff;
  color: #0969da;
  border: none;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Keep original styles for other modals */
#wrapUpTable, #deleteTransacModal {
  position: fixed;
  left: 50%;
  width: 70%;
  transform: translateX(-50%);
  background-color: white;
  padding: 15px;
  border: 1px solid #0000006e;
  z-index: 9999;
  overflow-y: auto;
  max-height: 80vh;
  border-radius: 5px;
}

table th,
table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ccc;
}

/* Style table header */
table-table thead {
  background-color: #f2f2f2;
}

table th {
  font-weight: bold;
}

#closePopup, #saveWrapUp {
  float: right;
    margin: 10px 5px;
    padding: 5px 10px;
    color: white;
    font-weight: 600;
    font-family: system-ui;
    background: #61616fa3;
    border-radius: 5px;
    border-color: #e9d9d999;
    cursor: pointer;
}


/*ADD TRANSACTIONS*/
/* General Modal Styles */
#transactionModal {
    font-family: 'Arial', sans-serif; /* Simple, readable font */
    border-radius: 5px; /* Soften the edges of the modal */
}

#transactionModal h2 {
    margin-top: 0;
    color: #333; /* Darker text for better readability */
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* File Input Styles */
.uploadform .csv-file {
    width: 94%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

.uploadform .csv-file::file-selector-button {
    display: none; /* Hide the default file selector button */
}

/* Button Styles */
.addTransactionsButton {
    padding: 5px 10px;
    background-color: #007BFF; /* For a blue primary button color */
    color: #fff; /* White text on the button */
    border: none;
    border-radius: 5px;
    cursor: pointer; /* Indicate that it's clickable */
    transition: background-color 0.2s ease; /* Smooth transition for hover effect */
}

.addTransactionsButton:hover {
    background-color: #0056b3; /* Darken the button color on hover */
}


.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #007BFF; /* Match the primary button color */
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

.closeModals {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    color: #777; /* Soft color for a subtle appearance */
    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
    border: none;
    transition: color 0.2s ease; /* Smooth transition for hover effect */
}

.closeModals:hover {
    color: #555; /* Darken the color on hover */
}

.notification {
    display: none;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.success-notification {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-notification {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification i {
    margin-right: 10px;
    font-size: 18px;
}


/*ADD TRANSACTIONS*/

/* UPDATE SPREADSHEET */
#overlaySheet {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#updateSheetModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.updateSpreadsheetForm {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

.csv-file-sheet,
.sheet-url {
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.update-sheet-button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.update-sheet-button:hover {
    background-color: #0056b3;
}

.closeSheetModals {
    margin-top: 10px;
    background-color: #ccc;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    position: absolute;
    top: 20px; 
    right: 20px;
}

.closeSheetModals:hover {
    background-color: #999;
}
/*UPDATE SPREADSHEET*/


.deleteServiceButton, #confirmDeleteServiceButton {
  background-color: #ff7b7b;
  border: none;
  color: white;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-top: 15px;
  cursor: pointer;
  border-radius: 4px;
}

#closeDeleteServicePopup {
  background-color: #24ace4;
  border: none;
  color: white;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-top: 15px;
  cursor: pointer;
  border-radius: 4px;
}

.deleteServiceButton:hover, #confirmDeleteServiceButton:hover {
  background-color: #c75d5d;
}

#deleteServicePopup {
  border-radius: 10px;
  position: fixed;
  top: 30%;
  bottom: 20px;
  left: 50%;
  width: 60%;
  max-width: 400px;
  transform: translateX(-50%);
  background-color: white;
  padding: 10px;
  z-index: 9999;
  overflow-y: auto;  /* Enable vertical scrolling */
  max-height: 300px; 
}

.buttonContainer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 200px;
  margin: 0 auto;
}



.transferInvoiceButton, .retrieveServicesButton {
  background-color: #24ace4;
  border: none;
  color: white;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
}


#failedInvoicesContainer {
  display: none;
}

/* "Please Wait" Message Box Styling */
.waitingSheet {
    background-color: #FFD700; /* Gold color for attention and warning */
    color: #000000; /* Black text for visibility */
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* "Please Wait" Message Animation (Optional) */
.waitingSheet {
    animation: fade 4s linear;
}

.wait-notification {
    background-color: #ffeb87;
    color: #81793c;
    border: 1px solid #ffeb87;
}

.spinner-container {
    text-align: center; /* Center the spinner horizontally */
    margin-bottom: 10px; /* Add spacing between the spinner and the loading text */
}

/* Update the spinner styles to center it both vertically and horizontally */
.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto; /* Center both vertically and horizontally */
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Adjust the loader container to display the spinner and text properly */
.loader {
    text-align: center;
}

/* Add a margin between the spinner and the loading text */
.spinner {
    margin-bottom: 10px;
}

/* Center the loading text horizontally */
.loading-text h3 {
    margin: 0;
    font-size: 18px;
    text-align: center;
}

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

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px; /* Add spacing below the filter buttons */
    font-size: 12px;
}

.filter-buttons a {
    display: inline-block;
    padding: 5px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.filter-buttons a:hover {
    background-color: #ddd;
}

.filter-buttons a.bold{
  background: #24ace4;
  color: white;
}

.closeCommissionPaymentModal {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
}

.closeCommissionPaymentModal:hover {
  color: #ff0000;
}

.removenotificationbutton{
    color: #24ace4;
    margin-left: 0.8em;
    text-decoration: underline;
    cursor: pointer;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* 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 */
}

/* Modal Content */
.modal-contents {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
#campaignModal span {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

#campaignModal span:hover,
#campaignModal span:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Styles specific to the #userBlocking modal */
#userBlocking {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* 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 */
}

#userBlocking .modal-content, #paymentType .modal-content {
    background-color: #fefefe;
    /*margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 400px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 8px;
}

.closeblocking {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

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

#userBlocking label, #submitPaymentType label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

#userBlocking select, #paymentType select {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#submitBlock, #submitPaymentType {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#submitBlock:hover, #submitPaymentType:hover {
    background-color: #45a049;
}

#additionalServiceDetails {
    display: none; /* Initially hidden */
    position: fixed; /* Use fixed positioning to keep it centered even when scrolling */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Centering transformation */
    padding: 40px;
    width: 80%;
    max-width: 800px;
    background-color: #ffffff; /* Solid white */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Stronger shadow for depth */
    max-height: 80vh;
    overflow-y: auto; /* Add vertical scroll if content overflows */
    z-index: 1000; /* Ensure it stays above the overlay */
}

/* Year Container */
.year-container {
    position: relative;
    margin-bottom: 20px;
}

.year-container select.year {
    width: 100%;
    max-width: 300px;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.selected-years {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Year Tag Bubble */
.year-tag {
    background-color: #e0e0e0;
    border-radius: 15px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.year-tag span {
    margin-right: 8px;
}

.year-tag .remove-year {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.year-tag .remove-year:hover {
    color: #ff0000;
}

/* Align labels and remove buttons horizontally */
.label-button-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Space below the row */
}

.label-button-row label {
    margin-right: 10px; /* Space between label and button */
}

.remove-button {
    /* Style your remove button */
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.remove-button:hover {
    background-color: #ff1a1a;
}

/* Style for select elements and labels */
.serviceDetails label {
    display: block;
    margin-top: 10px;
}

.serviceDetails select {
    width: 100%;
    max-width: 300px;
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

/* Style the basicDetails section */
.basicDetails {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Style conditional sections */
#numberOfBusinesses,
#includingPersonals,
#personalsAmendment,
.amendmentSection {
    margin-top: 10px;
}

/* Optional: Add borders to sections for clarity */
#businessDetails {
    border-left: 2px solid #ccc;
    padding-left: 15px;
    margin-bottom: 15px;
    background-color: #fafafa;
    padding: 10px;
    border-radius: 5px;
}

/* Hide elements by default */
.hidden {
    display: none;
}

/* Style the Add Business button */
.addBusiness,
.addAnotherService {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 7px 15px;
    cursor: pointer;
    border-radius: 3px;
    margin-top: 10px;
}

.addBusiness:hover,
.addAnotherService:hover {
    background-color: #45a049;
}

/* Responsive Design */
@media (max-width: 600px) {
    .label-button-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .remove-button {
        margin-top: 5px;
    }
}

/* Container for Tier Dropdown and Diagram */
.tier-container {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Space between dropdown and diagram */
    margin-bottom: 0px; /* Space below the container */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Styling for the Tier Dropdown */
.tier-select {
    flex: 1 1 200px; /* Flex-grow, flex-shrink, flex-basis */
}

.tier-select label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.tier-select select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Styling for the Tier Diagram */
.tier-diagram {
    flex: 2 1 300px; /* Flex-grow, flex-shrink, flex-basis */
}

.tier-diagram svg {
    width: 100%;
    height: auto;
    max-height: 250px;
}

.invalid-input {
    border: 2px solid #f44336; /* Red border */
    background-color: #ffe6e6; /* Light red background */
    transition: border 0.3s ease, background-color 0.3s ease; /* Smooth transition */
}

.invalid-input {
    border: 2px solid #f44336; /* Red border */
    background-color: #ffe6e6; /* Light red background */
    transition: border 0.3s ease, background-color 0.3s ease; /* Smooth transition */
}

.service-separator {
    border-top: 4px solid #ccc;
    margin: 20px 0;
}

.remove-serviceDetails-container {
    text-align: right;
    margin-bottom: 10px;
}

.remove-serviceDetails {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.remove-serviceDetails:hover {
    background-color: #c9302c;
}

.businessQuestionsText {
    float:right;
    max-width: 450px;
    line-height: 1.6; /* Makes the text more readable */
    font-size: 14px; /* Ensures consistent text size */
}

.businessQuestionsText ul {
    list-style-type: disc; /* Use bullet points */
}

.businessQuestionsText li {
    margin-bottom: 30px; /* Adds spacing between each bullet point */
}

/* Modal background overlay */
.change-logs-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 90%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

/* Modal box */
.change-logs-modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 1200px;
  height: 90%;
  overflow: hidden; /* contain internal scrolls */
  display: flex;
  flex-direction: column;
}

#logsTableContainer {
  flex-grow: 1;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 0;
  margin-top: 10px;
}

/* Close button */
.change-logs-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 32px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}

.change-logs-close:hover {
  color: #000;
}

/* Tab bar */
.change-logs-tabs {
  margin-bottom: 20px;
}

.change-logs-tab-link {
  background-color: #e0e0e0;
  border: none;
  padding: 12px 20px;
  margin-right: 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.change-logs-tab-link:hover {
  background-color: #d0d0d0;
}

.change-logs-tab-link.active {
  background-color: #007bff;
  color: #fff;
}

/* Log table */
.change-logs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 15px;
}

.change-logs-table th,
.change-logs-table td {
  padding: 12px 15px;
  border: 1px solid #ccc;
  vertical-align: top;
  text-align: left;
}

.change-logs-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.change-logs-table pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  font-size: 14px;
  font-family: Consolas, monospace;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .change-logs-modal-content {
    width: 95%;
    padding: 20px;
  }

  .change-logs-tab-link {
    padding: 10px 14px;
    font-size: 14px;
  }

  .change-logs-table th,
  .change-logs-table td {
    font-size: 14px;
    padding: 10px;
  }
}