.msss-container {
    display: flex;
    flex-wrap: wrap;
}

.msss-sidebar-wrapper {
    flex: 1 1 30%;
    max-width: 30%;
    /* background-color: #f4f4f4; */
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.msss-sidebar {
    display: block;
}

.msss-main-content {
    flex: 1 1 70%;
    max-width: 70%;
    padding: 20px;
    box-sizing: border-box;
}

.msss-toggle-sidebar {
    display: none;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 20px;
    position: absolute;
    top: 10px;
    left: 10px;
}

.msss-form {
    max-width: 100%;
    margin: 0 auto;
}

.msss-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.msss-col {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 200px;
}

.msss-col label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.msss-col input,
.msss-col select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.msss-col input[type="checkbox"] {
    width: auto;
}

.text-danger {
    color: red;
}

.text-success {
    color: green;
}

table.msss-table {
    border: none !important;
}

table.msss-table tbody tr:nth-child(odd) {
    background-color: #e1eff3 !important;
}

table.msss-table tbody tr:nth-child(even) {
    background-color: white !important;
}

tr {
    color: #003971;
}

table.msss-table tr td,
table.msss-table tr th {
    border: none;
    height: 28px;
    font-size: 18px;
}

table.msss-table tbody tr td:first-child {
    background-color: transparent !important;
}

/* Alternate row colors: white and sky blue */
#msss-member-table tbody tr:nth-child(odd) {
    background-color: #f5f6f7 !important;
}

#msss-member-table tbody tr:nth-child(even) {
    background-color: white !important;
}

#msss-member-table tr {
    color: black;
}

#msss-member-table_wrapper tr td,
#msss-member-table_wrapper tr th {
    border: none;
    height: 35px;
    font-size: 16px;
}

#msss-member-table tbody tr td:first-child {
    background-color: transparent !important;
}

#msss-member-table {
    border: 1px solid #C4C4C4;
}

#msss-member-table thead th {
    border-bottom: 1px solid #C4C4C4;
}

#msss-member-table_wrapper .dt-length {
    display: none !important;
}

#msss-member-table_wrapper .dt-search {
    display: flex;
    align-items: center;
    z-index: 111;
}

#msss-member-table_wrapper .dt-search input {
    height: 30px;
    width: 16rem;
}

table#msss-member-table td {
    box-shadow: none;
}

table#msss-member-table.msss-table tbody tr td:first-child,
table#msss-member-table.msss-table thead tr th:first-child {
    width: 32px !important;
}

table.msss-table {
    border: 1px solid #C4C4C4 !important;
}

table.msss-table thead th {
    border-bottom: 1px solid #C4C4C4;
    /* text-align: center; */
}

/* table.msss-table td{
    text-align: center;
} */

.export-btn-container {
    width: fit-content;
    z-index: 999;
    position: relative;
}

#msss-member-table_length {
    display: none !important;
}

#msss-member-table_wrapper,
#msss-biodata-list-table_wrapper {
    position: relative;
    top: -30px;
}

#msss-biodata-list-table_filter,
#msss-member-table_filter {
    margin-bottom: 5px;
}

#msss-biodata-list-table_filter label,
#msss-member-table_filter label {
    display: flex;
    align-items: center;
}

#msss-biodata-list-table_filter input,
#msss-member-table_filter input {
    height: 30px;
    width: 250px;
}

#msss-biodata-table-choose-gender {
    width: fit-content;
    z-index: 1;
    position: relative;
    font-size: 15px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

#msss-biodata-table-choose-gender a {
    text-decoration: none;
    font-size: 15px;
}

.text-bold {
    font-weight: 600;
}

select:disabled,
input:disabled {
    background: #f0f0f0;
    color: #888;
    cursor: not-allowed;
    opacity: 1;
}

input[readonly] {
    background: #e6e6e6;
    color: #555;
    cursor: default;
}

.msss-collapsible {
    margin: 10px 0;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #d7d7d7;
    width: 100%;
}

.msss-collapsible-btn {
    background-color: #f02f52;
    color: white;
    /* White text */
    cursor: pointer;
    padding: 12px 15px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 18px;
    outline: none;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0;
}

.msss-collapsible-btn:focus {
    background-color: #e22d4e;
}

.msss-collapsible-btn:hover {
    background-color: #f02f52;
}

.content {
    padding: 10px;
    display: none;
    /* Hide content by default */
    background-color: white;
    border-top: 1px solid #ddd;
    /* Light grey border */
}

.msss-collapse-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.msss-collapse-content-key {
    width: 30%;
    text-align: left;
    font-weight: bold;
}

.msss-collapse-content-value {
    width: 70%;
    text-align: left;
    display: flex;
    align-items: center;
}

.profile_button_container {
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 0 10px;
    /* position: relative; */
    /* top: 112px; */
    width: 360px;
    float: right;
    margin-bottom: 8px;
}

.edit-btn {
    text-decoration: none !important;
    background: transparent;
    color: black;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 15px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid black;
    font-weight: 600;
}

.edit-btn:hover {
    background: #046bd2;
    border-color: #046bd2;
    color: white;
}

#msss-login-form {
    width: 350px;
    margin: auto;
    border: 1px solid #80808054;
    padding: 20px;
    border-radius: 7px;
}

#msss-login-form label {
    font-size: 16px;
}

.msss-bio-data-height-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.msss-bio-data-height-input input {
    width: 46%;
}

.msss-custom-file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 320px;
}

.msss-file-input {
    opacity: 0;
    width: 100%;
    height: 44px;
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
    z-index: 2;
}

.msss-file-label {
    display: block;
    background: #f5f5f5;
    border: 2px dashed #bbb;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    color: #888;
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    z-index: 1;
    position: relative;
}

.msss-file-input:focus+.msss-file-label,
.msss-custom-file-upload:hover .msss-file-label {
    border-color: #0073aa;
    background: #e6f0fa;
    color: #0073aa;
}

.biodata-relation-chip {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #a0a0a0;
    padding: 7px 8px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: normal !important;
    background: #89d7ff9c;
    cursor: pointer;
}

.biodata-photo {
    width: 80px;
    height: 80px !important;
    border-radius: 5px !important;
}

#msss-biodata-list-table_length {
    display: none !important;
}

#msss-biodata-list-table th td:nth-child(2),
#msss-biodata-list-table tr td:nth-child(2) {
    max-width: 100px !important;
}

.w-fit {
    width: fit-content;
}

.d-none {
    display: none;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.mr-6 {
    margin-right: 6px;
}

.mx-5 {
    margin-left: 5px;
    margin-right: 5px;
}

.wd-50 {
    width: 50%;
}

.wd-40 {
    width: 40%;
}

.wd-60 {
    width: 60%;
}

.text-black {
    color: black;
}

.text-blue {
    color: blue;
}

.text-danger {
    color: red;
}

.text-success {
    color: green;
}

.text-warning {
    color: orange;
}

.text-pink {
    color: #ff2aae;
}

.mt-10 {
    margin-top: 10px;
}

.biodata-verification-form-container {
    border: 2px solid #7ed4ff;
    border-radius: 10px;
    margin-top: 20px;
    padding: 18px 18px 0px 18px;
    background: #d9edf7ba;
}

.btn {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 7px;
    transition: background 0.3s ease;
    text-decoration: none !important;
    font-size: 13px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    color: white;
}

.btn-warning {
    background-color: orange;
    color: white;
}

.btn-warning:hover {
    background-color: rgb(213, 138, 0);
    color: white;
}

.btn-danger {
    background-color: rgb(226, 2, 2);
    color: white;
}

.btn-danger:hover {
    background-color: rgb(197, 0, 0);
    color: white;
}

.registration-success-login-btn {
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
}

.registration-success-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 97%;
    text-align: center;
    margin: auto;
}

.registration-success-icon {
    font-size: 40px;
    color: #28a745;
}

.registration-success-icon img {
    width: 60px;
    height: 60px;
}

.registration-success-title {
    font-size: 30px;
    color: #28a745;
    font-weight: bold;
    margin-top: 10px;
}

.registration-success-member-id {
    margin: 15px 0;
    font-size: 18px;
    color: #444;
    background-color: #f6f6f6;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.registration-success-instructions {
    font-size: 16px;
    color: #555;
    margin-top: 10px;
    line-height: 1.6;
}

.back-button-header-container {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 10px 20px;
    border-left: 5px solid #007bff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 0 0 10px auto;
    justify-content: space-between;
}

.back-button {
    display: flex;
    align-items: center;
    padding: 5px 16px;
    background-color: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    text-decoration: none !important;
    font-size: 16px;
    border-radius: 5px;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #007bff;
    color: #fff;
}

/* Simple arrow icon using CSS */
.back-button-arrow-left {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid currentColor;
    margin-right: 8px;
    margin-top: 3px;
}

.text-center {
    text-align: center;
}

.biodata-actions {
    min-width: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msss-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: #000000d9;
    /* backdrop-filter: blur(6px); */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: all;
}

.msss-loader {
    width: 90px;
    height: 90px;
    border: 7px solid #f2f2f2;
    border-top: 7px solid #f02f52;
    border-bottom: 7px solid #f02f52;
    border-right: 7px solid #f02f52;
    border-radius: 50%;
    animation: msss-rotate 1s linear infinite;
}

@keyframes msss-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.donation-thanks-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    justify-content: center;
}

.msss-donation-thanks-card {
    background: #d4f4c9;
    width: 365px;
    height: 250px;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.msss-donation-thanks-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.msss-donation-thanks-card-amount-circle {
    background-color: #00b871;
    color: white;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 16px;
}

.msss-donation-thanks-card-amount-text {
    font-size: 24px;
    font-weight: bold;
    color: #0063d1;
    margin-left: 10px;
}

.msss-donation-thanks-card-image-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(to top, #65a830 50%, #cfe9fd 50%);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.msss-donation-thanks-card-image-box img {
    width: 80px;
    height: 80px !important;
}

/* .msss-donation-thanks-card-image-box::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
} */

.msss-donation-thanks-card-info {
    margin-top: 10px;
    line-height: 1.8;
    font-size: 16px;
}

.msss-donation-thanks-card-info label {
    font-weight: bold;
    margin-right: 8px;
}

.msss-donation-thanks-card-bottom-text {
    text-align: center;
    margin-top: 10px;
    color: #0045b5;
    font-weight: bold;
    font-size: 16px;
}

.msss-donation-thanks-card-dotted-line {
    border-bottom: 1px dotted black;
    display: inline-block;
    width: 200px;
}

/*-------------- Media query for responsive design --------------*/
@media (max-width: 1024px) {
    .msss-container {
        flex-direction: column;
    }

    .msss-sidebar-wrapper {
        max-width: 100%;
    }

    .msss-main-content {
        max-width: 100%;
    }

    .msss-sidebar {
        display: none;
        background: #f4f4f4;
        padding: 20px;
    }

    .msss-toggle-sidebar {
        display: inline-block;
    }

    .msss-sidebar.open {
        display: block;
    }

    .msss-col {
        flex: 1 1 100%;
    }

    #msss-member-table_wrapper {
        top: 0 !important;
    }

    .table-responsive {
        overflow-x: auto;
        /* Enable horizontal scrolling */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        width: 100%;
        /* Ensures the div takes the full width */
    }

    .table-responsive table {
        width: 100%;
        /* Table takes full width of the wrapper */
        min-width: 600px;
        /* Minimum width to enable horizontal scrolling when needed */
    }

    .content-responsive {
        overflow-x: auto;
        /* Enable horizontal scrolling */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        width: 100%;
        /* Ensures the div takes the full width */
    }

    #msss-login-form {
        width: 85%;
        margin: auto;
    }

    .msss-donation-thanks-card {
        width: 95%;
        height: 250px;
        margin: auto;
        padding: 16px 16px;
        border-radius: 8px;
    }

    .msss-donation-thanks-card-image-box,
    .msss-donation-thanks-card-image-box img {
        width: 80px;
        height: 80px !important;
    }

    .msss-donation-thanks-card-info {
        margin-top: 10px;
    }

    .msss-donation-thanks-card-bottom-text {
        margin-top: 20px;
    }
}