.api-event-dashboard {
    /*margin: 40px auto;*/
    background: #fff;
}

.dashboard-container {
    background: #fff;
    /*padding: 20px;*/
}

.modules-tabs-nav {
    background: #fff;
    box-shadow: 2px 0 16px rgba(60, 80, 130, 0.05);
    border-right: 1px solid #e4e9f4;
}

/*.module-tab-btn {
    transition: all 0.3s ease;
}

.module-tab-btn:hover {
    background-color: #5b7cfa !important;
    color: white !important;
    border-color: #5b7cfa !important;
}

.module-tab-btn.active {
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}*/

.module-tab-content {
    animation: fadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.module-content-data
{
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow-y: auto;
    /*flex: 1 1 auto;*/
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom scrollbar */
.modules-list::-webkit-scrollbar {
    width: 6px;
}

.modules-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modules-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modules-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.content-table th {
    background-color: #5b7cfa;
    color: white;
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 10;
}

.content-table td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.content-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.content-table tr:hover {
    background-color: #f5f5f5;
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    min-width: 40px;
}

.pagination button.active {
    background: #5b7cfa;
    color: white;
    border-color: #5b7cfa;
}

.pagination button:hover:not(.active) {
    background: #f5f5f5;
}

.no-content {
    padding: 40px;
    text-align: center;
    background: #f8f8f8;
    border-radius: 8px;
    color: #666;
}

.content-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.json-view {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.form-field-value {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-field-value.expanded {
    white-space: normal;
    max-width: none;
}

.toggle-expand {
    color: #2196F3;
    cursor: pointer;
    font-size: 12px;
    margin-left: 5px;
}

.data-type-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 5px;
}

.badge-string { background: #E3F2FD; color: #1976D2; }
.badge-number { background: #E8F5E9; color: #388E3C; }
.badge-boolean { background: #FFF3E0; color: #F57C00; }
.badge-array { background: #F3E5F5; color: #7B1FA2; }
.badge-object { background: #FFEBEE; color: #D32F2F; }
.badge-null { background: #ECEFF1; color: #607D8B; }

/* Accordion animations */
.accordion-content {
    transition: max-height 0.3s ease-out;
}

/* Better hover effects */
/*.accordion-header:hover {
    background: #e9ecef !important;
}*/

.edit-form-accordion .accordion-header:hover {
    background: #2196F3 !important;
}


/* Button hover effects */
/*button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}*/

/* Responsive design */
@media (max-width: 768px) {
    .modules-tabs-wrapper {
        flex-direction: column !important;
    }
    
    .modules-tabs-nav {
        border-right: none !important;
        border-bottom: 1px solid #e0e0e0;
        padding-right: 0 !important;
        padding-bottom: 0;
        flex: none !important;
    }
    
    .detail-field {
        grid-column: 1 / -1 !important;
    }
    .api-event-dashboard .dashboard-container h1
    {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }


}





.api-event-dashboard .label-value-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* two equal columns */
    column-gap: 30px;
}

.api-event-dashboard .field-row {
    display: flex;
    align-items: flex-start;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.api-event-dashboard .field-label {
    flex: 0 0 160px; /* label width */
    font-weight: 600;
    color: #333;
    padding-right: 12px;
    font-size: 14px;
}

.api-event-dashboard .field-value {
    flex: 1;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}


@media (max-width: 767px)
{

/*    .header-actions button span
    {
        display: none;
    }
*/    .accordion-header
    {
        padding: 5px 10px !important;
    }
    .accordion-header h3
    {
        font-size: 14px !important;
    }
    .accordion-content
    {
        padding: 16px !important;
    }
    .api-event-dashboard .field-row
    {
        margin-bottom: 8px !important;
        padding-bottom: 8px !important;
    }
    .module-search-container input
    {
        padding: 5px 15px 5px 40px !important;
    }
    .module-search-container button
    {
        padding: 5px 10px !important;
    }
    .pagination button
    {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
    .module-header h3
    {
        font-size: 1.1rem !important;
    }
    .family-group-icon, .family-member-icon
    {
        display: none;
    }
    .family-group-header
    {
        padding: 10px !important;        
    }
    .family-group-header h2
    {
        font-size: 14px !important;
    }
    .family-group-header p
    {
        display: none;
    }
    .family-member-header
    {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
        padding: 10px 5px !important;
    }
    .dashboard-container
    {
        padding: 0;
    }
    .family-member-approve-action
    {
        gap: 5px !important;
    }
    .approval-badge
    {
        padding: 4px 10px !important;
        font-size: 10px !important;
    }

} 



/* Alternative: CSS Grid approach for mobile */
@media (max-width: 991px) {
    .api-event-dashboard .modules-tabs-wrapper {
        display: grid !important;
        grid-template-rows: auto 1fr !important;
        gap: 15px !important;
        margin-top: 10px !important;
    }
    
    .api-event-dashboard .modules-tabs-nav {
        grid-row: 1;
        overflow: scroll;
    }
    
    .api-event-dashboard .modules-list {
        display: grid !important;
        grid-auto-flow: column !important;
        gap: 10px !important;
        overflow-x: auto !important;
        overscroll-behavior-x: contain !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: auto;
        scrollbar-color: #000 #f1f1f1;
        padding-bottom: 10px;
    }
    
    .api-event-dashboard .module-tab-btn {
        scroll-snap-align: start !important;
        min-width: auto !important;
        width: max-content !important;
        padding: 5px 10px !important;
        border: 1px solid #8f8f8f;
        border-radius: 8px;
    }
    .pagination
    {
        margin-bottom: 10px;
    }
    .module-search-container
    {
        justify-content: flex-end !important;
    }

}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.progress-bar {
    transition: width 0.3s ease-out, background-color 0.3s ease-out;
    height: 20px;
    border-radius: 4px;
}

.progress-bar.uploading {
    background-color: #2196F3;
}

.progress-bar.processing {
    background-color: #FF9800;
    animation: pulse 1.5s infinite;
}

.progress-bar.complete {
    background-color: #5b7cfa;
}

.progress-bar.error {
    background-color: #f44336;
}



@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.edit-form-container {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.existing-file-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px dashed #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}


.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5b7cfa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.api-event-dashboard .switch .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.api-event-dashboard .switch .switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    cursor: pointer;
}

.api-event-dashboard .switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f44336;
    transition: .4s;
    border-radius: 34px;
}

.api-event-dashboard .switch .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.api-event-dashboard .switch input:checked + .slider {
    background-color: #5b7cfa;
}

.api-event-dashboard .switch input:checked + .slider:before {
    transform: translateX(26px);
}


/* Image Modal Styles */
.event-admin-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.event-admin-image-modal.active {
    display: flex;
}

.event-admin-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-admin-modal-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 65vh;
}

.event-admin-modal-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.event-admin-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 4px;
}

.event-admin-modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.event-admin-modal-prev {
    left: 20px;
}

.event-admin-modal-next {
    right: 20px;
}

.event-admin-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 9999;
}

.event-admin-modal-close:hover {
    background: rgba(255, 0, 0, 0.7);
}

.event-admin-modal-tools {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
}

.event-admin-modal-tool-btn {
    background: #5b7cfa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: background 0.3s;
}


.event-admin-modal-tool-btn:hover {
    background: #45a049;
}

.event-admin-image-counter {
    color: white;
    font-size: 16px;
    margin-top: 10px;
    text-align: center;
}

.event-admin-thumbnail-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.event-admin-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.event-admin-thumbnail.active {
    border-color: #5b7cfa;
}

.event-admin-thumbnail:hover {
    border-color: #2196F3;
}

.single-image-container {
    cursor: pointer;
    transition: transform 0.2s;
}

/*.form-fields-container
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
}*/


.inline-edit-form .form-control
{
    height: 40px;
    padding: 6px 12px;
    margin-bottom: 7px;
}
.inline-edit-form .edit-row label
{
    margin-bottom: 7px;
}

.edit-rows-container
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
}

@media (max-width: 767px) 
{
    .form-fields-container, .edit-rows-container, .inline-edit-form .radio-group, .form-fields-container .radio-group
    {
        grid-template-columns: 1fr !important;
    }
}    


.dots-loader {
    display: flex;
    gap: 6px;
}

.dots-loader::before,
.dots-loader::after,
.dots-loader span {
    content: '';
    width: 10px;
    height: 10px;
    background: #3498db;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.dots-loader::before {
    animation-delay: -0.32s;
}

.dots-loader span {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}


.header-actions.disabled {
    position: relative;
}

.header-actions.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    z-index: 10;
}





/* Edit mode indicator */
.edit-mode-active .accordion-header {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.edit-mode-active .accordion-header:hover {
    background: #f8f9fa !important;
}

.accordion-item.editing {
    border: 2px solid #5b7cfa !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.accordion-inner-head
{
    padding: 5px 20px; 
    display: flex; 
    justify-content: space-between;
    align-items: center;
}


.select-search-wrapper {
    position: relative;
}

.select-search-input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 5px;
}

.select-search-wrapper svg {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 16px;
    height: 16px;
    fill: #666;
    z-index: 1;
}

.select-search-loading {
    position: absolute;
    right: 35px;
    top: 12px;
}

.select-search-wrapper select {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}
.hide-other-records {
    display: none !important;
}




/*only for hiding button for Family Members*/


/*#module-content-1 #content-data-1 #load-fields-btn-1, #module-content-1 #content-data-1 .header-actions
{
    display: none !important;
}*/



.payment-container {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease-in;
}

.payment-header {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 15px;
}

.payment-summary-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.payment-summary-card .card-header {
    border-radius: 6px 6px 0 0;
    font-weight: 600;
}

.summary-section h6 {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.table-borderless th {
    font-weight: 500;
    color: #6c757d;
}

.table-borderless td {
    font-weight: 500;
}

.progress {
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.familymember-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.familymember-payment-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.payment-loading {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.payment-actions-section
{
    display: flex;
    justify-content: center;
    width: 700px;
    margin: 0 auto;
}

.back-to-members-btn
{
    padding: 8px 16px !important;
}

.payment-summary-card .payment-actions-section h5
{
    border: none;
    color: #ffffff;
}


.family-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

.family-modal-header
{
    padding: 24px 28px 20px;
    border-bottom: 1px solid #e8ecf4;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, #eef1ff, #f0f3ff);
}

.family-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 24px;
    width: 80%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
}

.close-modal {
    width: 34px;
    height: 34px;
    background: #fff;
    border: 1.5px solid #e8ecf4;
    border-radius: 10px;
    color: #8892a4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.18s;
    flex-shrink: 0;
}

.close-modal:hover {
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Member Summary Module Styles */
.member-summary-container {
    padding: 20px;
    border-radius: 15px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.summary-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.summary-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    text-transform: capitalize;
}

.summary-card p {
    margin: 0;
    font-size: 36px;
    font-weight: bold;
}

.drilldown-container
{
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #e8ecf4;
    box-shadow: 0 1px 4px rgba(60,80,130,0.07);
    overflow: hidden;
    padding: 20px;
    margin-top: 20px;
}

.drilldown-container-header
{
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}
.drilldown-container-head
{
    display: flex;
    align-items: center;
    gap: 15px;
}
.drilldown-container-desc
{
    font-size: 12.5px;
    color: #8892a4;
    margin-top: 2px;
}
.drilldown-badge
{
        display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eef1ff;
    color: #5b7cfa;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
}

.back-to-summary-btn, .close-report-btn, .excel-preview-btn, .close-preview-btn, .close-modal-footer, .modal-avatar, .back-to-dashboard-btn
{
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #5b7cfa, #3a5bd9);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(91, 124, 250, 0.35);
}
.modal-avatar
{
    font-size: 20px;
}

.modal-footer
{
    border-top: none !important;
}

.event-drilldown-container-head
{
    display: flex;
    flex-direction: column;
}
.event-drilldown-desc
{
    font-size: 13px;
    color: #8892a4;
    margin-top: 2px;
    font-weight: 400;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px !important;
    }
    
    .summary-card p {
        font-size: 20px !important;
    }
    .summary-card, .member-summary-container
    {
        padding: 10px !important;
    }
    .summary-card h3
    {
        font-size: 13px !important;
    }
    .drilldown-container-header h2
    {
        font-size: 16px !important;
    }
    .back-to-summary-btn
    {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
    .drilldown-container
    {
        padding: 10px !important;
    }
}


/*COMMON TABLE CSS START*/

/* ===== Common Table Styles ===== */
.table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    margin: 10px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    text-align: left;
    background-color: #fff;
}

/* Table Header Styles */
.responsive-table thead tr {
    background: #f4f6fb;
    color: white;
}

.responsive-table th {
    padding: 15px 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8892a4;
    text-align: left;
    white-space: nowrap;
}

/* Table Body Styles */
.responsive-table tbody tr {
    border-bottom: 1px solid #edf2f7;
}

/*.responsive-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}*/

.responsive-table tbody tr:hover {
    background-color: #ebf4ff;
}

.responsive-table td {
    padding: 10px 5px;
    color: #2d3748;
    vertical-align: middle;
    white-space: nowrap;
}

/* Allow specific columns to wrap */
.responsive-table td.text-wrap,
.responsive-table th.text-wrap {
    white-space: normal;
    word-break: break-word;
}

/* Status Badges */
.table-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    background: #e2e8f0;
    color: #4a5568;
}

.table-status-badge.success {
    background: #c6f6d5;
    color: #22543d;
}

.table-status-badge.warning {
    background: #feebc8;
    color: #744210;
}

.table-status-badge.danger {
    background: #fed7d7;
    color: #742a2a;
}

.table-status-badge.info {
    background: #bee3f8;
    color: #2c5282;
}

/* Action Buttons */
.table-action-btn {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 4px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.table-action-btn.primary {
    background: #4299e1;
    color: white;
}

.table-action-btn.primary:hover {
    background: #3182ce;
}

.table-action-btn.success {
    background: #48bb78;
    color: white;
}

.table-action-btn.success:hover {
    background: #38a169;
}

.table-action-btn.warning {
    background: #ecc94b;
    color: #744210;
}

.table-action-btn.warning:hover {
    background: #d69e2e;
    color: white;
}

.table-action-btn.danger {
    background: #f56565;
    color: white;
}

.table-action-btn.danger:hover {
    background: #e53e3e;
}

/* First column */
.responsive-table th:first-child,
.responsive-table td:first-child {
    padding-left: 20px;
}

/* Last column */
.responsive-table th:last-child,
.responsive-table td:last-child {
    padding-right: 20px;
}

/* View Family Button */
.view-family-btn {
    background: #eef1ff !important;
    color: #5b7cfa !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

.view-family-btn:hover {
    background: #5b7cfa !important;
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== CRITICAL FIX - FORCE HORIZONTAL SCROLL ===== */

/* Desktop - No scroll */
@media screen and (min-width: 1024px) {
    .table-container {
        overflow-x: visible !important;
    }
    
    .responsive-table {
        width: 100%;
        table-layout: auto;
    }
}

/* Tablet & Mobile - FORCE SCROLL */
@media screen and (max-width: 1350px) {
    /* Force container to scroll */
    .table-container {
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100%;
        max-width: 70vw;
        display: block;
    }
    
    /* Force table to be wider than container */
    .responsive-table {
        width: 1200px !important; /* Fixed width larger than any mobile screen */
        min-width: 1200px !important;
        max-width: none !important;
        table-layout: fixed !important;
        display: table;
    }
    
    /* Set specific column widths */
    .responsive-table colgroup,
    .responsive-table col {
        display: table-column;
    }
    
    .responsive-table th,
    .responsive-table td {
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        min-width: 10px;
        max-width: 10px;
    }
    
    /* Column widths - exactly 1200px total */
/*    .responsive-table th:nth-child(1),
    .responsive-table td:nth-child(1) {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
    }
    
    .responsive-table th:nth-child(2),
    .responsive-table td:nth-child(2) {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
    }
    
    .responsive-table th:nth-child(3),
    .responsive-table td:nth-child(3) {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
    }
    
    .responsive-table th:nth-child(4),
    .responsive-table td:nth-child(4) {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
        text-align: center;
    }
    
    .responsive-table th:nth-child(5),
    .responsive-table td:nth-child(5) {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
        text-align: center;
    }
    
    .responsive-table th:nth-child(6),
    .responsive-table td:nth-child(6) {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
    }
    
    .responsive-table th:nth-child(7),
    .responsive-table td:nth-child(7) {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
        text-align: center;
    }
    
    .responsive-table th:nth-child(8),
    .responsive-table td:nth-child(8) {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
    }*/
    
}

@media (max-width: 1230px) {
    .table-container {
        max-width: 65vw;
        margin: 0 auto;
    }
}
@media (max-width: 991px) {
    .table-container {
        max-width: 88vw;
        margin: 0 auto;
    }
}
@media (max-width: 767px) {
    .table-container {
        max-width: 80vw;
        margin: 0 auto;
    }
}
@media (max-width: 467px) {
    .table-container {
        max-width: 78vw;
        margin: 0 auto;
    }
}

/* Mobile specific */
@media screen and (max-width: 767px) {
    .responsive-table {
        width: 650px !important;
        min-width: 650px !important;
    }
    
    .responsive-table th,
    .responsive-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .view-family-btn {
        padding: 5px !important;
        font-size: 10px !important;
        white-space: normal !important;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .responsive-table {
        width: 400px !important;
        min-width: 400px !important;
    }
    
    .responsive-table th,
    .responsive-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
}

/* ===== Scrollbar Styling ===== */
.table-container::-webkit-scrollbar {
    height: 10px;
    display: block !important; /* Force scrollbar to show */
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Firefox */
.table-container {
    scrollbar-width: auto;
    scrollbar-color: #cbd5e0 #f1f1f1;
}

/* ===== Utility Classes ===== */
.table-text-center {
    text-align: center !important;
}

.table-text-right {
    text-align: right !important;
}

.table-nowrap {
    white-space: nowrap;
}

.table-wrap {
    white-space: normal !important;
    word-break: break-word;
}

.table-font-bold {
    font-weight: 700;
}

.table-text-muted {
    color: #718096;
    font-size: 13px;
}

/* Compact Table */
.table-compact th,
.table-compact td {
    padding: 8px 12px !important;
}

/* Borderless Table */
.table-borderless th,
.table-borderless td,
.table-borderless tr {
    border: none !important;
}

/* Loading State */
.table-loading {
    position: relative;
    min-height: 200px;
}

.table-loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #718096;
    font-size: 16px;
}

/* Empty State */
.table-empty-state {
    text-align: center;
    padding: 60px 20px !important;
    color: #a0aec0;
    font-size: 16px;
}

/* Debug */
.table-container.debug {
    border: 2px solid red;
}

.responsive-table.debug {
    border: 2px solid blue;
}

/* ===== Print Styles ===== */
@media print {
    .table-container {
        box-shadow: none;
        overflow-x: visible;
        background: none;
    }
    
    .responsive-table {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .responsive-table thead tr {
        background: none;
        color: black;
    }
    
    .responsive-table th {
        color: black;
        border-bottom: 2px solid #ddd;
    }
    
    .responsive-table td {
        color: black;
        white-space: normal;
    }
    
    .table-action-btn,
    .view-family-btn {
        display: none;
    }
}

/*COMMON TABLE CSS END*/


.options-container {
    display: flex;
    flex-wrap: wrap;     /* Allow wrapping */
    gap: 8px 20px;       /* Row gap / Column gap */
    padding-left: 5px;
}

/* Each checkbox item */
/*.options-container > div {
    flex: 0 0 26%;      
}*/

/* Label styling */
.options-container label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
}


.edit-row .radio-group
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.event-attendee-head
{
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #eef0ff, #f0f4ff);
    border: 1px solid rgba(79, 110, 247, 0.16);
    border-radius: 10px;
    padding: 5px 14px;
    margin-bottom: 14px;
    color: #4f6ef7;
}

.dashboard-footer
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}


/* Form submitting state with reduced opacity */
form.submitting {
    position: relative;
    pointer-events: none; /* Prevents any interaction with form */
}

form.submitting .edit-actions {
    pointer-events: none; /* Specifically disables action buttons */
}

form.submitting > *:not(.form-loader) {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Loader overlay */
.form-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: inherit;
    pointer-events: none;
}

/* Spinner animation */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: rgb(76, 175, 80);
    animation: spin 1s ease-in-out infinite;
}

.spinner.small {
    width: 14px;
    height: 14px;
    border-width: 2px;
    margin-right: 5px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hide text utility */
.button-text.hidden {
    display: none;
}

/* Modal specific adjustments */
.modal .form-loader {
    border-radius: 8px;
}


.member-select-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #999;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: 0.2s ease;
}

.member-select-checkbox:checked {
  background-color: #5b7cfa;
  border-color: #5b7cfa;
}

.member-select-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


/*NEW DESIGN CSS START*/

.approve-selected-btn
{
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #00c369;
    color: #ffffff;
    border: 1px solid #1a5f3f;
    transition: all 0.2s ease;
}
.approve-selected-btn:hover
{
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}
.payment-complete-label
{
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #e8f5ee;
    color: #2d7a57;
    cursor: auto;
}

.familymember-payment-btn
{
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #FFC107;
    color: #000;
    transition: all 0.2s ease;
    border: 1px solid #000;
}

.family-group-icon, .family-member-icon, .accordion-icon
{
    width: 32px;
    height: 32px;
    background: #1a5f3f;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.approval-badge
{
    padding: 0.4rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: auto;
}
.family-member-approve-action .edit-member-btn, .module-common-edit-btn
{    
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #dbeafe;
    color: #1e40af;
    margin-left: 0px;
    border: 1px solid #1e40af;
}
.family-member-approve-action .edit-member-btn:hover, .module-common-edit-btn:hover
{
    background: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;

}
.delete-member-btn, .module-common-delete-btn
{
    padding: 0.4rem 0.7rem;
    border: 1px solid #dc2626;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #fee2e2;
    color: #dc2626;
}
.delete-member-btn:hover, .module-common-delete-btn:hover
{
    background: #fee2e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.accordion-header h3, .family-group-header h2
{
    font-size: 1rem;
    font-weight: 600;
    color: #4c6ef5;
    margin-bottom: 0.25rem;
}
.module-tab-btn
{
    padding: 0.7rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: #666666 !important;
    border-left: 3px solid transparent;
    border: none;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    background: #fff !important;
    border-radius: 8px;
}
.module-tab-btn.active
{    
    background: #eef0ff !important;
    color: #4c6ef5 !important;
    border-left: 3px solid #4c6ef5 !important;
}
.accordion-container .common-add-new-button
{
    padding: 0.4rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: #3b82f6;
    color: white;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;

}
.accordion-container .common-add-new-button:hover
{
    background: #2563eb;
    transition: all 0.2s ease;

}

/*NEW DESIGN CSS END*/

/*FAMILY MEMBER NEW DESIGN CSS START*/

/* Member Detail Container */
.member-detail {
/*    background: white;
    border-radius: 12px;
*/    
    padding: 10px;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.04);*/
}

/* Member Detail Header */
.member-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
    margin-bottom: 24px;
}

.member-name-badge {
    display: flex;
    align-items: center;
    gap: 15px;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.member-name-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1f36;
}

.member-name-info p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6b7280;
    text-transform: capitalize;
}

/* Member Detail Actions */
.member-detail-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.approval-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.approval-status.not-approved {
    background: #fef2f2;
    color: #dc2626;
}

.approval-status.approved {
    background: #e8f5ee;
    color: #2d7a57;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-edit-action {
    color: #4f46e5;
    border-color: #4f46e5;
}

.btn-edit-action:hover {
    background: #4f46e5;
    color: white;
}

.btn-delete-action {
    color: #dc2626;
    border-color: #dc2626;
}

.btn-delete-action:hover {
    background: #dc2626;
    color: white;
}

/* Detail Sections Grid */
.detail-sections {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.detail-section {
    background: #f9fafc;
    border-radius: 10px;
    padding: 18px;
    transition: all 0.2s ease;
}

.detail-section:hover {
    background: #f3f6fc;
}

.section-title-small {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Detail Field */
.detail-field {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.detail-field:last-child {
    margin-bottom: 0;
}

.field-label {
    flex: 0 0 100px;
    font-weight: 500;
    color: #4b5563;
}

.field-value {
    flex: 1;
    color: #1f2937;
    font-weight: 400;
    word-break: break-word;
}

/*FAMILY MEMBER NEW DESIGN CSS END*/


/*EVENT ADMIN LOGIN DROPDOWN CSS START*/

/* Profile Dropdown Wrapper */
.event-admin-mb-profile-dropdown-wrapper {
    display: flex;
    justify-content: flex-end;
    position: absolute;
    top: 15px;
    right: 10px;
    z-index: 9;
}

/* Profile Toggle Button */
.event-admin-mb-profile-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #5b7cfa, #3a5bd9);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}


.event-admin-mb-profile-toggle-btn .emoji {
    width: 18px;
    height: 18px;
}

/* Profile Dropdown Menu - Hidden by default */
.event-admin-mb-profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-top: 8px;
    z-index: 1000;
    overflow: hidden;
    
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Dropdown visible state - this class will be added via JavaScript */
.event-admin-mb-profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown links */
.event-admin-mb-profile-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.event-admin-mb-profile-dropdown a:last-child {
    border-bottom: none;
}

.event-admin-mb-profile-dropdown a:hover {
    background: #f5f5f5;
    color: #5b7cfa;
}

/* Small arrow on top of dropdown */
.event-admin-mb-profile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
}

/* Active state for button */
.event-admin-mb-profile-toggle-btn.active {
    background: #45a049;
}

.event-admin-dashboard-logo
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.event-admin-dashboard-logo img
{
    height: 46px;
}

/*EVENT ADMIN LOGIN DROPDOWN CSS END*/



/*HEIGHT ISSUE DASHBOARD CSS START*/

/* Base responsive container */
.api-event-dashboard-container {
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #fff;
}

/* Main flex container */
.modules-tabs-wrapper {
    height: 100%;
    overflow: hidden;
    gap: 20px;
    background: #f0f3fa;
}

/* Left sidebar navigation */


/* Fixed header inside sidebar */
.dashboard-container-head {
    margin-bottom: 10px;
    flex-shrink: 0;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}


/* Scrollable modules list */
.modules-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0; /* Important for Firefox */
    padding: 10px 15px;
}

/* Right content area */
.modules-tabs-content {
    flex: 1;
    /*height: 100%;*/
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Each tab content */
.module-tab-content {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Fixed module header */
.module-header {
    flex-shrink: 0;
    padding: 10px 20px;
    background: #fff;
}

/* Fixed search container */
.module-search-container {
    flex-shrink: 0;
    padding: 0 20px;
    background: #f0f3fa;
}

/* Scrollable content area */
.module-content-data {
    flex: 1;
    overflow-y: auto;
    min-height: 0; /* Important for Firefox */
    padding-right: 10px;
    margin-right: -10px; /* Compensate for scrollbar */
    padding: 0 20px;
    background: #f0f3fa;
}

/* Accordion container within scrollable area */
.accordion-container {
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
}

/* Responsive Breakpoints */
@media screen and (max-width: 768px) {
    .modules-tabs-wrapper {
        flex-direction: column;
        height: 100%;
        gap: 10px;
    }
    
    
    /* Make modules list horizontal scroll on mobile if needed */
    .modules-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px;
        gap: 10px;
    }
    
    .module-tab-btn {
        flex: 0 0 auto;
        width: auto;
        min-width: 120px;
    }
    
    /* Content area takes remaining height */
    .modules-tabs-content {
        height: calc(100vh - 250px); /* Adjust based on your header + nav height */
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    
    .modules-tabs-content {
        height: calc(100vh - 200px);
        padding: 0;
    }
    
    /* Adjust search container for mobile */
    .module-search-container {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .module-search-container > div:first-child {
        max-width: 100% !important;
    }
    
    /* Better touch targets for mobile */
    .module-tab-btn {
        min-width: 100px;
        padding: 12px;
    }
    
    .module-common-edit-btn,
    .module-common-delete-btn {
        padding: 8px 12px;
    }
}

/* Fix for the add new button container */
.accordion-item.add-new-form-accordion {
    flex-shrink: 0;
    margin-bottom: 15px;
    background: #f0f3fa;
}
.dashboard-statistics
{
    background: #f0f3fa !important;
}
.stat-card
{
    background: #fff;
}

/* Fix for accordion items */
.accordion-item {
    margin-bottom: 10px;
}

/* Smooth scrolling */
.modules-list,
.module-content-data,
.accordion-container {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Custom scrollbar styling (optional) */
.modules-list::-webkit-scrollbar,
.module-content-data::-webkit-scrollbar,
.accordion-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.modules-list::-webkit-scrollbar-track,
.module-content-data::-webkit-scrollbar-track,
.accordion-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modules-list::-webkit-scrollbar-thumb,
.module-content-data::-webkit-scrollbar-thumb,
.accordion-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.modules-list::-webkit-scrollbar-thumb:hover,
.module-content-data::-webkit-scrollbar-thumb:hover,
.accordion-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Fix for Firefox */
@-moz-document url-prefix() {
    .modules-list,
    .module-content-data,
    .accordion-container {
        scrollbar-width: thin;
        scrollbar-color: #888 #f1f1f1;
    }
}


/* Fix for the accordion header actions on mobile */
@media screen and (max-width: 768px) {
    .accordion-header {
        flex-wrap: wrap;
    }
    
    .accordion-header > div:last-child {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }    

}

/*HEIGHT ISSUE DASHBOARD CSS END*/

.dashboard-filters
{
    padding: 0 10px;
}

/*REPORT MODULE CSS START*/

.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.qs-card {
    background: #fff;
    border: 1.5px solid #e8ecf4;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(60, 80, 130, 0.07);
    display: flex;
    align-items: center;
    gap: 14px;
    animation: cardIn 0.35s ease both;
}

.qs-card:nth-child(1) {
    animation-delay: .04s;
}

.qs-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.qs-icon.blue {
    background: #eef1ff;
    color: #5b7cfa;
}

.qs-icon.green {
    background: #edfaf3;
    color: #22c55e;
}
.qs-icon.amber {
    background: #fffbeb;
    color: #f59e0b;
}
.qs-icon.red {
    background: #fff0f0;
    color: #ef4444;
}

.qs-value
{
    font-weight: bold;
    font-size: 20px;
}

.event-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid #e8ecf4;
    border-radius: 10px;
    padding: 5px 14px;
    box-shadow: 0 1px 4px rgba(60, 80, 130, 0.07);
    font-size: 14px;
}
.row-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.row-name {
    font-weight: 500;
    color: #1a2035;
}

.row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.event-selector select {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 200px;
}

.section-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 6px;
}
.section-tag.rsvp {
    background: #eef1ff;
    color: #5b7cfa;
}

.section-tag.member {
    background: #edfaf3;
    color: #22c55e;
}
.section-tag.finance {
    background: #fffbeb;
    color: #f59e0b;
}
.section-tag.other
{
    background: #8892a4;
    color: #fff;
}
.row-value {
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    color: #1a2035;
    white-space: nowrap;
}

.report-table td {
    padding: 0 24px;
    height: 56px;
    border-top: 1px solid #e8ecf4;
    font-size: 13.5px;
    vertical-align: middle;
}
.row-value.blue {
    color: #5b7cfa;
}

.row-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    transition: opacity 0.18s;
}

.row-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eef1ff;
    color: #5b7cfa;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
}
.row-btn.view-report-btn:hover
{
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8892a4;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8ecf4;
} 
.report-card {
    background: #fff;
    border: 1.5px solid #e8ecf4;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(60, 80, 130, 0.07);
    overflow: hidden;
    margin-bottom: 28px;
    animation: cardIn 0.4s ease both;
    padding: 0 25px;
}  
.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table tbody tr {
    transition: background 0.14s;
}

.report-table td {
    padding: 0 24px;
    height: 56px;
    border-top: 1px solid #e8ecf4;
    font-size: 13.5px;
    vertical-align: middle;
}

.report-table tr:first-child td {
    border-top: none;
}


/*REPORT MODULE CSS END*/

/*MEMBER DASHBOARD MODULE CSS START*/

.stat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #e8ecf4;
}
.stat-label
{
    text-transform: capitalize;
}
.stat-link {
    font-size: 14px;
    font-weight: 600;
    color: #5b7cfa;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.7;
    transition: opacity 0.18s;
    cursor: pointer;
}

.stat-bar {
    height: 4px;
    background: #e8ecf4;
    border-radius: 4px;
    flex: 1;
    margin-left: 12px;
    overflow: hidden;
}
.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: #5b7cfa;
    transition: width 0.8s ease;
}


/*MEMBER DASHBOARD MODULE CSS END*/


.rsvp-accordion-header
{
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    gap: 10px; /* Space between rows */
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    justify-content: space-between;
}

.rsvp-accordion-action
{
    justify-content: space-between;
}
.detail-summary
{
    width: 100%;

}
.tab-form-footer
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px; 
    padding-top: 10px; 
    border-top: 1px solid #eee;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 500;
    border: none;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-not-approved {
    background: #fee2e2;
    color: #991b1b;
}


/*EVENT DASHBOAD MODULE CSS START*/


.evt-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fc;
    border-radius: 12px;
    padding: 10px 20px;
    margin-bottom: 24px;
    border: 1px solid #eef2f6;
}

.eb-dot {
    width: 8px;
    height: 8px;
    background: #4c6ef5;
    border-radius: 50%;
}

.eb-nm {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.eb-tags {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.eb-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    color: #475569;
    border: 1px solid #5475f3;
}

.eb-tag svg {
    stroke: #64748b;
}

.slbl {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    font-size: 16px;
}

.grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.sc {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #eef2f6;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sc:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
    border-color: #d0d9e8;
}

.sc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sc-ico {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-ico.g { background: #e6f7e6; color: #2b8c3e; }
.sc-ico.r { background: #ffe5e5; color: #c92a2a; }
.sc-ico.a { background: #fff3d6; color: #e67700; }
.sc-ico.b { background: #e8f0fe; color: #1c4ed8; }
.sc-ico.p { background: #f3e8ff; color: #7b2eda; }
.sc-ico.t { background: #ffecdc; color: #d9480f; }
.sc-ico.o { background: #f1f3f5; color: #495057; }

.sc-ico svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.sv {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.sv.cg { color: #2b8c3e; }
.sv.cr { color: #c92a2a; }
.sv.cd { color: #e67700; }
.sv.cb { color: #1c4ed8; }
.sv.cp { color: #7b2eda; }
.sv.ct { color: #d9480f; }

.sl {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.sf {
    margin-top: auto;
}

.sf-lnk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #4c6ef5;
    padding: 4px 0;
}

.sf-lnk svg {
    stroke: #4c6ef5;
}

@media (max-width: 1200px) {
    .grid4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .grid4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid4 {
        grid-template-columns: 1fr;
    }
    
    .evt-banner {
        flex-wrap: wrap;
    }
    
    .eb-tags {
        margin-left: 0;
        width: 100%;
    }
}

/*EVENT DASHBOAD MODULE CSS END*/

/*RESPONSIVE CSS START*/


@media (max-width: 1500px) 
{
    .detail-sections
    {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 1366px) 
{
    .member-dashboard-report-td
    {
        display: ruby-text !important;
    }
    .member-dashboard-report-td .avatar
    {
        margin-right: 15px !important;
    }
}
@media (max-width: 1299px) 
{
    .api-event-dashboard .label-value-list
    {
        grid-template-columns: 1fr 1fr !important;
    }
    .detail-summary
    {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    }
}
@media (max-width: 1200px) 
{
    .detail-sections
    {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 1023px) 
{
    .api-event-dashboard-container
    {
        height: auto;
    }
}
@media (max-width: 991px) 
{
    .payment-actions-section
    {
        width: auto;
    }
    .report-statistics
    {
        padding: 10px !important;
    }

    .dashboard-filters
    {
        margin-bottom: 10px;
    }
    .quick-stats
    {
        grid-template-columns: repeat(2, 1fr);
    }
    .module-header
    {
        background: transparent;
    }
}    


@media (max-width: 767px) 
{
    .api-event-dashboard .label-value-list
    {
        grid-template-columns: 1fr !important;
    }

    .member-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .member-detail-actions {
        width: 100%;
        justify-content: space-between;
    }

    .detail-sections {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .field-label {
        flex: none;
        width: 100%;
    }
    .report-data-container-head, .excel-preview-container-head
    {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 10px !important;
    }
    .download-report-btn, .excel-preview-btn
    {
        padding: 6px !important;
        font-size: 12px !important;
    }

    .event-attendee-head
    {
        gap: 5px !important;
        padding: 5px !important;
    }
    .event-attendee-head span, .dashboard-statistics span
    {
        font-size: 13px !important;    
    }

    .form-fields-grid
    {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .form-tabs-nav .form-tab-btn
    {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
    .form-tabs-nav .form-tab-btn.active
    {
        color: #fff !important;        
    }
    .dashboard-footer
    {
        flex-direction: column;
        margin-top: 10px;
        gap: 10px;
    }
    .drilldown-container h3
    {
        font-size: 15px !important;
    }
    .back-to-dashboard-btn, .back-to-summary-btn
    {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
    .event-dashboard-filter-container, .event-attendee-filter-container, .reports-filter-container
    {
        justify-content: center !important;
    }
    .reports-event-filter, .event-attendee-filter, .event-dashboard-filter
    {
        max-width: 200px !important;
    }
    .drilldown-page-btn, .report-data-container .load-more-btn
    {
        padding: 5px 8px !important;
        font-size: 12px !important;
    }
    .accordion-inner-head
    {
        padding: 10px 0;
    }
}

@media (max-width: 600px)
{
    .rsvp-accordion-header
    {
        flex-direction: column;
    }
    .drilldown-container-head
    {
        flex-direction: column;
        gap: 5px;
    }
} 
@media (max-width: 575px) 
{
    .report-card
    {
        padding: 0 5px;
    }
    .quick-stats
    {
        grid-template-columns: repeat(1, 1fr);
    }
    .qs-card
    {
        padding: 10px;
    }
    .report-table td
    {
        padding: 0 10px;
    }
    .member-detail
    {
        padding: 0;
    }
    .family-member-content
    {
        padding: 5px !important;
    }
    .family-members-container, .detail-section
    {
        padding: 10px !important;
    }
    .approve-selected-btn, .familymember-payment-btn, .payment-complete-label, .delete-member-btn, .module-common-delete-btn, .family-member-approve-action .edit-member-btn, .module-common-edit-btn, .accordion-container .common-add-new-button, .next-tab-btn, .prev-tab-btn, .event-admin-mb-profile-toggle-btn, .form-actions button
    {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    .family-group-icon, .family-member-icon, .accordion-icon
    {
        width: 20px;
        height: 20px;
        font-size: 18px !important;
        margin: 0 !important;
    }
    .member-avatar
    {
        width: 30px !important;
        height: 30px !important;
        font-size: 16px !important;
    }
    .member-name-info h3
    {
        font-size: 13px;
    }
    .accordion-title p
    {
        display: none;
    }
    .dashboard-filters
    {
        display: flex !important;
        justify-content: center !important;        
    }
    #module-search
    {
        padding: 5px 9px !important;
        max-width: 250px !important;
        text-align: center !important;
    }
    .module-header
    {
        gap: 5px !important;
        padding: 0 !important;
    }
    .approve-switch-container
    {
        margin: 0 !important;
    }
    .event-extended
    {
        padding: 0 !important;
    }
    .detail-summary, .detail-grid
    {
        padding: 10px !important;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    }
    .detail-value
    {
        word-wrap: break-word;
    }
    button, input, optgroup, select, textarea, .dropdown-trigger, .dropdown-option
    {
        padding: 5px !important;
        font-size: 13px !important;
    }
    .dropdown-search-input
    {
        padding: 4px 30px 4px 30px !important;
    }
    .status-badge, .badge
    {
        padding: 0 !important;
        background: none !important;
    }
    .download-loading, .preview-loading
    {
        padding: 5px !important;
        font-size: 12px !important;
    }
    .excel-preview-container-head a, .mobile-fallback a
    {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    .section-title-small
    {
        font-size: 13px;
    }
    .event-selector
    {
        font-size: 12px;
        padding: 2px;
    }
    .section-tag.finance
    {
        display: none;
    }
    .event-attendee-head
    {
        flex-direction: column;
    }
    .event-selector
    {
        margin-left: 0 !important;
    }
    .modal-avatar
    {
        padding: 10px;
        font-size: 13px;
    }
}
