/* Container holding all cards */
.membership-container {
    align-self: stretch;
    height: 614px;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 28px;
}

/* Card for each section (Membership / Bookings) */
.membership-box {
    align-self: stretch;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Header of each card */
.membership-box-header {
    width: 100%;
    padding: 32px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.membership-box-title {
    color: #4f5466;
    font-size: 18px;
    font-family: "Anybody", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 21.6px;
}

/* Container for header buttons */
.header-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Button variants */
.btn-benefits {
    background: white;
    border: 1px solid;
}

.btn-benefits div {
    color: #289f35;
    font-size: 14px;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    line-height: 16.8px;
}

.btn-add-membership {
    border: none;
}

.btn-add-membership button,
.btn-add-membership a {
    background: #289f35;
    color: white;
    font-size: 14px;
    font-weight: 500;
    line-height: 16.8px;
    border-radius: 4px;
}

/* Content area within a card */
.membership-box-content {
    width: 100%;
    padding: 17px;
    background: #fdfdfd;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

/* Table header row */
.table-header {
    width: 100%;
    display: flex;
    align-items: center;
    min-width: 600px;
}
a:not([.book-now]):hover {
    color: var(--primary-color);
}
a.book-now:hover {
    color: #fff;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-color);
}

/* Generic styling for each header cell */
.table-header-cell {
    background: #f9f9fb;
    border: 1px solid #eaecf0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

/* Specific widths for header cells */
.table-row .no-data-row {
    display: flex;
    padding: 32px;
    color: #b2b2b2;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    /* min-width: 600px; */
}
.col-membership-name {
    flex: 1;

    display: flex;
    align-items: center;
}
.col-membership-name .avatar img {
    width: 40px;
    max-height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

.col-start-date {
    width: 128px;
}

.col-end-date {
    width: 128px;
}

.col-date-time {
    display: flex;
    gap: 4px;
    flex-direction: column;
    width: 228px;
}
.col-date-time div {
    display: flex;
}

.col-type {
    width: 128px;
}

.col-status {
    width: 128px;
}

.col-amount {
    width: 228px;
}

.col-action {
    width: 200px;
}

/* Table row for details */
.table-row {
    width: 100%;
    display: flex;
}

/* Generic styling for table cells in a row */
.table-cell {
    padding: 16px;
    border: 1px solid #eaecf0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Reuse the same width classes for table cells */

/* // events page  */

/* Container for all events */
.events {
    width: 1160px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: "DM Sans", sans-serif;
}

/* Header and filter section */
.events-header {
    display: flex;
    flex-direction: column;
    gap: 21px;
}
.events-header h2 {
    color: #4f5466;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

.events-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter input,
.filter select {
    background: #fff;
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.filter select {
    padding: 12px 14px;
}

.filter .input-daterange {
    padding: 12px 14px;
    min-width: 240px;
}
.filter .input-daterange[readonly] {
    background-color: #fff;
}

.filter-daterange {
    position: relative;
}
.filter-daterange i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    color: #c7c7c7;
}

.filter input {
    padding: 10px 14px;
}

.filter strong {
    font-weight: 700;
}

/* Total events count */
.total-events span {
    color: #525252;
    font-size: 14px;
    text-transform: capitalize;
    line-height: 25px;
}

/* Separator line */
.separator {
    border: none;
    height: 1px;
    background: #ecedf0;
    opacity: 1;
    margin-top: 0px;
    margin-bottom: 21px;
}

/* Event Card */

.event-box-outer {
    margin: auto;
    display: flex;
    width: 1324px;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    gap: 28px;

    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
    flex-direction: column;
}
.event-box div,
.event-box h3,
.event-box p,
.event-box span {
    font-family: "DM Sans", sans-serif;
}

.event-box {
    font-family: "DM Sans";

    border-radius: 8px;
    background: #fff;
    box-shadow: var(--sds-size-depth-0) 0px 4px var(--sds-size-depth-0)
        rgba(12, 12, 13, 0.18);

    width: 1157px;
    padding: 20px;

    border-radius: 8px;
    border: 1px solid #e5e5e5;

    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    display: inline-flex;
}
.event-main {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Event Image */
.event-image {
    width: 144px;
    height: 144px;
    position: relative;
    background: #d9d9d9;
    border-radius: 6px;
}
.event-image img {
    width: 144px;
    height: 144px;
    position: relative;
    background: #d9d9d9;
    border-radius: 6px;
}
.event-sponsor {
    display: flex;
    justify-content: end;
}
.event-tag {
    position: absolute;
    left: 8px;
    top: 8px;
    background: rgba(0, 0, 0, 0.48);
    border-radius: 2px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-tag span {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
}

/* Event Content */
.event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.event-info {
    width: 952px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.event-sponsor img {
    width: 94px;
    height: 24px;
}
.event-details {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.event-title {
    color: #343434;
    font-size: 22px;
    font-weight: 700;
    line-height: 26px;
}
.event-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #54595f;
}
.event-description {
    color: #54595f;
    font-size: 14px;
    line-height: 20px;
    border-top: 1px solid #e5e5e5;
}

/* Event Meta Information */
.event-meta {
    display: flex;
    justify-content: space-between;
    align-self: stretch;
    background: #f9f9fb;
    border: 1px solid #f9f9fb;
    border-radius: 4px;
}
.meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
}
.spots,
.date-time,
.price {
    height: 25px;
    padding-right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.price {
    font-size: 20px;
}
.price strong {
    font-weight: 700;
}

/* Event Actions */
.event-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.event-actions button,
.event-actions a {
    padding: 10px 13px 8px 13px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #fff;
    font-family: "Anybody", sans-serif;
    text-decoration: none;
}
.more-details {
    background: #fff;
    color: #54595f;
}
.book-now {
    background: #289f35;
    color: #fff;
    border: none;
}

.membership-btns {
    width: 200px;
    gap: 8px;
}
.btn-invoice {
    width: 81px;
    height: 37px;
    background: white;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: flex;
}

.btn-renew {
    width: 77px;
    height: 37px;
    border-radius: 4px;
    border: 1px #289f35 solid;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: flex;
}

.btn-invoice a {
    color: #0008ff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.btn-renew button {
    color: #289f35;
    font-size: 14px;
    font-weight: 600;
    word-wrap: break-word;
    border: none;
    background: white;
}
.home-bg-mask {
    z-index: initial;
}

/* safa */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    min-width: 300px;
}
.table-header {
    min-width: 600px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.table-body-row {
    max-height: 300px; /* Adjust height as needed */
    overflow-y: auto; /* Enables vertical scrolling */
    width: 100%;
}

@media (max-width: 768px) {
    .membership-container {
        padding: 8px 5px !important;
    }
    .membership-box-header {
        flex-direction: column;
        gap: 18px;
        padding: 18px;
    }
    .header-buttons {
        flex-direction: row !important;
        gap: 12px !important;

        align-items: center !important  ;
    }

    .table-wrapper {
        overflow-x: auto; /* Allow horizontal scrolling on mobile */
        white-space: nowrap; /* Prevents text from wrapping */
    }

    .table-header,
    .table-row {
        display: inline-flex; /* Make the table scroll horizontally */
        width: max-content;
    }

    .table-cell,
    .table-header-cell {
        padding: 10px;
        font-size: 14px;
    }
    .table-body-row {
        max-height: 300px;
        overflow-y: auto;
    }

    /* safa */

    .filter input,
    .filter select {
        width: 307px !important;
    }

    .event-box-outer {
        width: 100% !important;
        padding: 16px;
    }
    .events {
        width: 100% !important;
    }
    .events-header {
        align-items: center !important;
    }
    .events-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn {
        width: 100% !important;
    }
    .event-main {
        flex-direction: column;
        justify-content: flex-start;
    }
    .event-info {
        width: 100%;
    }
    .event-box {
        width: 100%;
    }
    .event-title {
        font-size: 19px !important;
        color: #343434;

        font-weight: 600 !important;
        line-height: 26px;
    }
    .event-meta {
        flex-direction: column;
        gap: 13px !important;
    }
    .meta-info {
        flex-direction: row;
    }
    .meta-info .right-border {
        border-right: none !important;
        font-size: 21px;
    }
}

.refer-btn svg {
    margin-top: -22px;
}
.refer-footer a {
    text-decoration: none;
}
@media (min-width: 768px) {
    .custom-border {
        border-right: 1px solid #eaecf0;
    }
}
