* {
            box-sizing: border-box;
            font-family: Arial, Helvetica, sans-serif;
          }
  
          body {
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
          }
  
          .topnav {
              overflow: hidden;
              background-color: #333;
          }
  
          .topnav a {
              float: left;
              display: block;
              color: #f2f2f2;
              text-align: center;
              padding: 14px 16px;
              text-decoration: none;
              font-size: 17px;
          }

          a.forgot-password {
            color: #000000;
            text-decoration: underline;
            font-family: inherit;
            font-size: 16px;
        }

        a.forgot-password:hover {
            color: #808080;
        }
  
          .active {
              background-color: #4CAF50;
              color: white;
          }
  
          .topnav .icon {
              display: none;
          }
  
          .dropdown {
              float: left;
              overflow: hidden;
          }
  
          .dropdown .dropbtn {
              font-size: 17px;    
              border: none;
              outline: none;
              color: white;
              padding: 14px 16px;
              background-color: inherit;
              font-family: inherit;
              margin: 0;
          }
  
          .dropdown-content {
              display: none;
              position: absolute;
              background-color: #f9f9f9;
              min-width: 160px;
              box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
              z-index: 1;
          }
  
          .dropdown-content a {
              float: none;
              color: black;
              padding: 12px 16px;
              text-decoration: none;
              display: block;
              text-align: left;
          }
  
          .topnav a:hover, .dropdown:hover .dropbtn {
              background-color: #555;
              color: white;
          }
  
          .dropdown-content a:hover {
              background-color: #ddd;
              color: black;
          }
  
          .dropdown:hover .dropdown-content {
              display: block;
          }
  
          @media screen and (max-width: 600px) {
              .topnav a:not(:first-child), .dropdown .dropbtn {
                  display: none;
          }
          .topnav a.icon {
                  float: right;
                  display: block;
          }
          }
  
          @media screen and (max-width: 600px) {
              .topnav.responsive {position: relative;}
              .topnav.responsive .icon {
                  position: absolute;
                  right: 0;
                  top: 0;
              }
              .topnav.responsive a {
                  float: none;
                  display: block;
                  text-align: left;
              }
              .topnav.responsive .dropdown {float: none;}
              .topnav.responsive .dropdown-content {position: relative;}
              .topnav.responsive .dropdown .dropbtn {
                  display: block;
                  width: 100%;
                  text-align: left;
              }
              }
          input[type=text],input[type=password] {
            width: 100%;
            padding: 8px 10px;
            margin: 8px 0;
            font-family: Arial, Helvetica, sans-serif;
            box-sizing: border-box;
            font-size: 15px;
          }
          input[type=radio] {
            padding: 8px 10px;
            margin: 8px 0;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 15px;
          }
  
          select{
            width: 100%;
            padding: 8px 10px;
            margin: 8px 0;
            font-family: Arial, Helvetica, sans-serif;
            box-sizing: border-box;
            font-size: 15px;
          }
  
          .button {
            background-color: black; /* Green */
            border: none;
            color: white;
            padding: 15px 32px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
          }
  
          input[type=button], input[type=submit], input[type=reset] {
            background-color: black;
            border: none;
            color: white;
            padding: 16px 32px;
            text-decoration: none;
            margin: 4px 2px;
            cursor: pointer;
          }
          
          /* Padding for table*/
          td {
           padding: 0px 10px;
          }
          
          h1 {
           padding: 5px 10px;
           font-family: Arial, Helvetica, sans-serif;
           font-size: 25px;
          }

          h3 {
            padding: 5px 10px;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 20px;
           }
          
          /* Style the content */
          .content {
            background-color: #ddd;
            padding: 10px;
          }
  
          /* Style the footer */
          .footer {
            background-color: #f1f1f1;
            padding: 10px;
            font-size: 10px;
          }
  
          /*For table formatting */
          #collections {
            font-family: Arial, Helvetica, sans-serif;
            border-collapse: collapse;
            width: 100%;
          }
  
          #collections td, #collections th {
            border: 1px solid #ddd;
            padding: 8px;
          }
  
          #collections tr:nth-child(even){background-color: #f2f2f2;}
  
          #collections tr:hover {background-color: #ddd;}
  
          #collections th {
            padding-top: 12px;
            padding-bottom: 12px;
            text-align: left;
            background-color: #4CAF50;
            color: white;
          }
          
          #datatable {
            font-family: Arial, Helvetica, sans-serif;
            border-collapse: collapse;
            width: 100%;
          }
  
          #datatable td, #datatable th {
            border: 1px solid #ddd;
            padding: 8px;
          }
  
          #datatable tr:nth-child(even){background-color: #f2f2f2;}
  
          #datatable tr:hover {background-color: #ddd;}
  
          #datatable th {
            padding-top: 12px;
            padding-bottom: 12px;
            text-align: left;
            background-color: #4CAF50;
            color: white;
          }
  
          @media screen and (max-width: 600px) {
              #datatable {
                  border: 0;
              }
  
              #datatable caption {
                  font-size: 1.3em;
              }
              
              #datatable thead {
                  border: none;
                  clip: rect(0 0 0 0);
                  height: 1px;
                  margin: -1px;
                  overflow: hidden;
                  padding: 0;
                  position: absolute;
                  width: 1px;
              }
              
              #datatable tr {
                  border-bottom: 3px solid #ddd;
                  display: block;
                  margin-bottom: .625em;
              }
              
              #datatable td {
                  border-bottom: 1px solid #ddd;
                  display: block;
                  font-size: .8em;
                  text-align: right;
              }
              
              #datatable td::before {
                  /*
                  * aria-label has no advantage, it won't be read inside a table
                  content: attr(aria-label);
                  */
                  content: attr(data-label);
                  float: left;
                  font-weight: bold;
                  text-transform: uppercase;
              }
              
              #datatable td:last-child {
                  border-bottom: 0;
              }
          }
  
          /*For table formatting */
          #expenses {
            font-family: Arial, Helvetica, sans-serif;
            border-collapse: collapse;
            width: 100%;
          }
  
          #expenses td, #collections th {
            border: 1px solid #ddd;
            padding: 8px;
          }
  
          #expenses tr:nth-child(even){background-color: #f2f2f2;}
  
          #expenses tr:hover {background-color: #ddd;}
  
          #expenses th {
            padding-top: 12px;
            padding-bottom: 12px;
            text-align: left;
            background-color: #4CAF50;
            color: white;
          }
  
          /*For table formatting */
          #pad {
            font-family: Arial, Helvetica, sans-serif;
            border-collapse: collapse;
            width: 100%;
          }
  
          #pad td, #pad th {
            border: 1px solid #ddd;
            padding: 8px;
          }
  
          #pad tr:nth-child(even){background-color: #f2f2f2;}
  
          #pad tr:hover {background-color: #ddd;}
  
          #pad th {
            padding-top: 12px;
            padding-bottom: 12px;
            text-align: left;
            background-color: #4CAF50;
            color: white;
          }
  
          /*For table formatting */
          #customers {
            font-family: Arial, Helvetica, sans-serif;
            border-collapse: collapse;
            width: 100%;
          }
  
          #customers td, #customers th {
            border: 1px solid #ddd;
            padding: 8px;
          }
  
          #customers tr:nth-child(even){background-color: #f2f2f2;}
  
          #customers tr:hover {background-color: #ddd;}
  
          #customers th {
            padding-top: 12px;
            padding-bottom: 12px;
            text-align: left;
            background-color: #4CAF50;
            color: white;
          }
  
          /* Create three equal columns that floats next to each other */
          .column {
            float: left;
            width: 33.33%;
            padding: 15px;
          }
  
          /* Clear floats after the columns */
          .row:after {
            content: "";
            display: table;
            clear: both;
          }
          
          @media (max-width: 767px){
                table,tr,td{
              display: block;
            }
      }

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black background with opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* Center the modal */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Adjust width as needed */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: center;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.modal-body {
    margin-top: 10px;
}

/* Modal form styles */
.modal-body form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between form fields */
}

.modal-body form .form-group {
    display: flex;
    flex-direction: column;
}

.modal-body form .form-group label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.modal-body form .form-group input {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.modal-body form .form-group input:focus {
    border-color: #4CAF50; /* Highlight border on focus */
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5); /* Green glow */
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
}

.modal-footer .btn-primary {
    background-color: black; /* Flat black color */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 0; /* Flat edges */
    cursor: pointer;
}

.modal-footer .btn-primary:hover {
    background-color: #333; /* Slightly lighter black on hover */
}

.modal-footer .btn-secondary {
    background-color: #ddd;
    color: black;
    border: none;
    padding: 10px 20px; /* Match primary button height */
    font-size: 15px; /* Match primary button font size */
    border-radius: 0; /* Flat edges for consistency */
    height: auto; /* Remove any fixed height */
    line-height: normal;
    display: inline-block;
    vertical-align: middle;
}

.modal-footer .btn:hover {
    opacity: 0.8;
}

/* Styles for the collections header */
.collections-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.total-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-label {
    display: inline;
    font-size: 16px;
    font-weight: bold;
}


#reconcileBtn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    background-color: #007bff; /* Gray color */
    color: white;
    border: none;
    margin-right: 10px; /* Added right padding */
}

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

#generate-tax-receipts {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    background-color: #007bff; /* Gray color */
    color: white;
    border: none;
    margin-right: 10px; /* Added right padding */
}

#generate-tax-receipts:hover {
  background-color: #0056b3;
}

#send-email {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    background-color: #007bff; /* Gray color */
    color: white;
    border: none;
    margin-right: 10px; /* Added right padding */
}

#send-email:hover {
  background-color: #0056b3;
}

#unreconcileButton {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  background-color: #007bff; /* Gray color */
  color: white;
  border: none;
  margin-right: 10px; /* Added right padding */
}

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

.error-message {
    color: red;
    padding-left: 10px;
}

.success-message {
    color: green;
    padding-left: 10px;
}

.collections-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.taxreceipts-header {
    display: flex;
    justify-content: flex-end; /* Align items to the right end of the page */
    align-items: center;
    margin-bottom: 10px;
    margin-left: 10px;
}

.total-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-label {
    font-weight: bold;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Modal overlay styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-standard {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-standard:hover {
    background-color: #0056b3;
}

/* Added styles for responsive table layout with 4-column approach */
.form-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

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

.form-column input, .form-column select, .form-column textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box;
}

.form-column input:focus, .form-column select:focus, .form-column textarea:focus {
    border-color: black; /* Changed focus border color to black */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Black glow */
}

button[type="submit"] {
    background-color: black; /* Match existing button style */
    color: white;
    border: none;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 0; /* Changed to flat edge */
    cursor: pointer;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    display: block; /* Center the button */
}

button[type="submit"]:hover {
    background-color: #333; /* Match hover style */
}

.form-notes {
    grid-column: span 4;
    margin-top: 10px;
}

.form-notes textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box;
    padding-right: 10px; /* Added right padding for text areas */
}

#Notes {
    padding: 10px; /* Made padding consistent with other elements */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .form-container {
        grid-template-columns: 1fr;
    }
}

/* Styles for tabs */
.tabs {
    width: 100%;
    display: block;
    margin: 20px 0;
}

.tab-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 2px solid #ccc;
}

.tab-links li {
    margin: 0;
    padding: 0;
}

.tab-links a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    border-bottom: none;
    background: #f9f9f9;
    font-weight: bold;
    cursor: pointer;
}

.tab-links a:hover {
    background: #e9e9e9;
}

.tab-links .active a {
    background: #fff;
    color: #000;
    border-bottom: 2px solid #fff;
}

.tab-content {
    border: 1px solid #ccc;
    padding: 20px;
    background: #fff;
}

.tab {
    display: none;
}

.tab.active {
    display: block;
}

#member-info {
    background-color: #fff; /* Set background to white */
}

label {
    color: black; /* Set label text color to black */
}

/* Styling for UI containers */
.ui-container {
    border: 2px solid #4CAF50; /* Green border */
    border-radius: 10px; /* Rounded corners */
    padding: 20px; /* Inner padding */
    margin-bottom: 20px; /* Space between containers */
    background-color: #f9f9f9; /* Light gray background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.ui-container h2 {
    margin-top: 0; /* Remove top margin */
    color: #333; /* Darker text color */
    font-size: 24px; /* Larger font size */
    border-bottom: 2px solid #4CAF50; /* Green underline */
    padding-bottom: 10px; /* Space below heading */
}

/* Updated background color for Member, Children, and Documents sections */
#member-tab, #children-tab, #documents-tab {
    background-color: #f5f5f5; /* Very light grey background */
    padding: 20px; /* Add padding for better spacing */
    border-radius: 5px; /* Rounded corners for a softer look */
}

/* Ensure titles for Member, Children, and Documents are black */
#member-tab h2, #children-tab h2, #documents-tab h2 {
    color: #000; /* Set title color to black */
}

/* Styling for the children list table */
#children-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

#children-table th, #children-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#children-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

#children-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#children-table tr:hover {
    background-color: #f1f1f1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #children-table {
        font-size: 15px;
    }

    #children-table th, #children-table td {
        padding: 6px;
    }

    #children-table thead {
        display: none;
    }

    #children-table tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
    }

    #children-table td {
        display: block;
        text-align: right;
        position: relative;
        padding-left: 50%;
        box-sizing: border-box; /* Ensure proper sizing */
        word-wrap: break-word; /* Prevent text from overflowing */
    }

    #children-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        text-align: left;
        font-weight: bold;
        white-space: nowrap; /* Prevent label text from wrapping */
    }

    #children-table td:last-child {
        border-bottom: 0;
    }
}

/* New form style for modal window */
.modal-form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-form-container label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

.modal-form-container input,
.modal-form-container select,
.modal-form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px; /* Reduced padding between fields */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box;
}

.modal-form-container input:focus,
.modal-form-container select:focus,
.modal-form-container textarea:focus {
    border-color: black; /* Changed focus border color to black */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Black glow */
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
}

.modal-footer .btn-primary {
    background-color: black; /* Flat black color */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 0; /* Flat edges */
    cursor: pointer;
}

.modal-footer .btn-primary:hover {
    background-color: #333; /* Slightly lighter black on hover */
}

.modal-footer .btn-secondary {
    background-color: white;
    color: black;
    border: none;
    padding: 10px 20px; /* Match primary button height */
    font-size: 15px; /* Match primary button font size */
    border-radius: 0; /* Flat edges for consistency */
    height: auto; /* Remove any fixed height */
    line-height: normal;
    display: inline-block;
    vertical-align: middle;
}

.modal-footer .btn:hover {
    opacity: 0.8;
}

/* Modal styles */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.custom-modal .modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.custom-modal .modal-content h2 {
    margin-top: 0;
    font-size: 24px;
}

.custom-modal .modal-content p {
    margin: 15px 0;
    font-size: 16px;
}

.custom-modal .modal-content .close-modal {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.custom-modal .modal-content .close-modal:hover {
    background-color: #0056b3;
}

/* Styling for the document list table */
#document-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

#document-table th, #document-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#document-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

#document-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#document-table tr:hover {
    background-color: #f1f1f1;
}

/* Ensure attachment table has consistent styling with the document list table */
#attachment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

#attachment-table th, #attachment-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#attachment-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

#attachment-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#attachment-table tr:hover {
    background-color: #f1f1f1;
}

.download-csv-link {
    padding-left: 12px;
}

.hide-native-scrollbar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.hide-native-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}

#processingModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Disable scroll */
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
  }

  #processingModal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  #processingModal .spinner {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
  }

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

  .note {
    margin-left: 15px;
}



