﻿.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100002;
}

    .modal-overlay.visible {
        opacity: 1;
        visibility: visible;
    }

sl-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out; /* This will handle the fading effect */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
}

    sl-overlay .spinner {
        border: 8px solid #d9d9d9;
        border-top: 8px solid #3498db;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        animation: spin 2s linear infinite;
    }

    sl-overlay .status {
        margin-top: 20px;
        font-size: 16px;
        color: #fff;
        text-align:center;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

sl-message-box {
    position: fixed;
    top: 50%;
    left: calc(50%);
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 450px;
    background: #3C3E48;
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100003;
    text-align: center;
    border: 1px solid #868987;
}

    sl-message-box.open {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

    sl-message-box .header {
        display: flex;
        align-items: center;
        background-color: #363a37;
        padding: 10px 15px;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        justify-content: space-between; /* Align items to the ends */
        color: #fff;
    }

    sl-message-box .body {
        margin: 20px 15px 30px 15px;
        text-align:left;
        color: #fff;
    }

    sl-message-box .footer {
        margin: 0px 15px 20px 15px;
        display: flex;
        justify-content: end;
        gap: 10px;
    }

    sl-message-box .close-btn {
        width: 12px;
        height: 12px;
        background-color: #ff5f57;
        border-radius: 50%;
        display: inline-block;
        cursor: pointer;
        border: 1px solid #ff5f57;
        box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
        position: relative;
    }

    sl-message-box .close-btn::before, .close-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 1px;
        background-color: #633a38;
        border-radius: 1px;
        transform: translate(-50%, -50%) rotate(45deg);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    sl-message-box .close-btn::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    sl-message-box .close-btn:hover::before, .close-btn:hover::after {
        opacity: 1;
    }

    sl-message-box .close-btn:hover {
        background-color: #ff5f57;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    }



sl-input-member {
    display: block;
    position: relative;
    width: 100%; 
    box-sizing: border-box; 
}

    sl-input-member input[type="text"],
    sl-input-member ul {
        width: 100%;
        box-sizing: border-box;
    }

    sl-input-member ul {
        position: absolute;
        top: 100%;
        z-index: 1;
        border: none;
        list-style: none;
        padding: 0;
        margin: 0;
        background-color: #fff;
        max-height: 300px;
        overflow-y: auto;
    }

        sl-input-member ul li {
            padding: 5px;
            cursor: pointer;
            margin-bottom: 0px;
            color: #606c76;
        }

            sl-input-member ul li.selected {
                background-color: #1b75bb;
                color: #ffffff;
            }

            sl-input-member ul li:hover {
                background-color: #1b75bb;
                color: #ffffff;
            }

    sl-input-member .reset-icon {
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        cursor: pointer;
        display: none;
        color: #3C3E48;
    }

        sl-input-member .reset-icon.active {
            display: block;
        }



sl-responsive-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

    sl-responsive-list .section {
        margin: 10px 0px;
        padding: 0;
        color: var(--swimlynx-blue);
        font-weight: bold;
    }

    sl-responsive-list .row {
        display: flex;
        width: 100%;
        background-color: #fff;
        margin: 1px 0px;
        cursor: pointer;
    }

    sl-responsive-list .row:hover {
        background-color: var(--swimlynx-blue);
        color: #fff;
    }

    sl-responsive-list .cell {
        padding: 0.6rem 0.5rem;
        line-height: 1.5rem;
    }

    sl-responsive-list .icon {
        font-size: 1rem;
        min-width: 2.4rem;
        text-align: center;
    }

    sl-responsive-list .title {
        flex: 1;
        width: 100%;
    }





.sl-sidebar {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100000;
    display: flex;
    flex-direction: column;
}

    .sl-sidebar .header {
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #363a37;
        color: #fff;
        font-weight: bold;
    }

    .sl-sidebar .header .title {
        color: #fff;
        padding-left:5px;
    }

    .sl-sidebar .close {
        width: 12px;
        height: 12px;
        background-color: #ff5f57;
        border-radius: 50%;
        display: inline-block;
        cursor: pointer;
        border: 1px solid #ff5f57;
        box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
        position: relative;
    }

        .sl-sidebar .close::before, .close::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 8px;
            height: 1px;
            background-color: #633a38;
            border-radius: 1px;
            transform: translate(-50%, -50%) rotate(45deg);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .sl-sidebar .close::after {
            transform: translate(-50%, -50%) rotate(-45deg);
        }

        .sl-sidebar .close:hover::before, .close:hover::after {
            opacity: 1;
        }

        .sl-sidebar .close:hover {
            background-color: #ff5f57;
            box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
        }

    .sl-sidebar .body {
        padding: 15px;
        background-color: #3C3E48;
        overflow-y: auto;
        flex-grow: 1;
    }


.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999; /* Just below the dialog */
}


sl-responsive-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}
    sl-responsive-grid .clickable {
        cursor:pointer;
    }
    sl-responsive-grid .section {
        font-size: 1.0rem;
        margin: 10px 0px;
        padding: 0;
        color: var(--swimlynx-blue);
        font-weight: bold;
    }


    sl-responsive-grid .row {
        display: flex;
        width: 100%;
        background-color: #fff;
        margin: 1px 0px;
        cursor: pointer;
        
    }

    sl-responsive-grid .row:hover:not(.totals) {
        background-color: var(--swimlynx-blue);
        color: #fff;
    }
/* Disable hover effect */
.no-hover .row:hover:not(.totals),
.row.no-hover:hover:not(.totals) {
    background-color: #fff;
    color: initial;
    cursor: default;
}

sl-responsive-grid .row.selected {
    background-color: #b6b6b6;
    color: #000;
}

sl-responsive-grid .cell {
    font-size: 1rem;
    padding: 10px 8px;
    flex: 1;
    line-height: 1.4rem;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide anything that overflows */
    text-overflow: ellipsis; /* Add "..." at the end if the text is too long */
}

    sl-responsive-grid .cell.right {
        text-align: right
    }
    sl-responsive-grid .cell.center {
        text-align: center
    }

    sl-responsive-grid .icon {
        font-size: 1rem;
        max-width: 2.5rem;
    }

    sl-responsive-grid .fill {
        flex: 1;
        width: 100%;
    }

    sl-responsive-grid .totals {
        font-weight: bold;
        background-color: #ffffff;
        cursor: default; /* Ensure the cursor is not a pointer on the totals row */
    }

    sl-responsive-grid .W030 {
        min-width: 30px;
        flex: 0 0 30px;
    }

    sl-responsive-grid .W035 {
        min-width: 35px;
        flex: 0 0 35px;
    }

    sl-responsive-grid .W040 {
        min-width: 40px;
        flex: 0 0 40px;
    }

    sl-responsive-grid .W050 {
        min-width: 50px;
        flex: 0 0 50px;
    }

    sl-responsive-grid .W055 {
        min-width: 55px;
        flex: 0 0 55px;
    }

    sl-responsive-grid .W065 {
        min-width: 65px;
        flex: 0 0 65px;
    }
    sl-responsive-grid .W075 {
        min-width: 75px;
        flex: 0 0 75px;
    }
    
    sl-responsive-grid .W085 {
        min-width: 85px;
        flex: 0 0 85px;
    }

    sl-responsive-grid .W095 {
        min-width: 95px;
        flex: 0 0 95px;
    }

    sl-responsive-grid .W125 {
        min-width: 125px;
        flex: 0 0 125px;
    }

    sl-responsive-grid .W175 {
        min-width: 175px;
        flex: 0 0 175px;
    }

    sl-responsive-grid .W200 {
        min-width: 200px;
        flex: 0 0 200px;
    }
    sl-responsive-grid .W225 {
        min-width: 225px;
        flex: 0 0 225px;
    }
    sl-responsive-grid .W275 {
        min-width: 275px;
        flex: 0 0 275px;
    }
    

@media (max-width: 767px) {

    sl-responsive-grid .cell {
        line-height: 1.8rem;
    }

    sl-responsive-grid .mobile-hide {
        display: none;
    }

    sl-responsive-grid .tablet-show {
        display: none; 
    }

    sl-responsive-grid .desktop-show {
        display: none; 
    }
}
/* Media query for tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    sl-responsive-grid .mobile-hide {
        display: flex;
    }

    sl-responsive-grid .tablet-show {
        display: flex !important; /* Ensure the column is shown on tablets */
    }

    sl-responsive-grid .desktop-show {
        display: none; /* Ensure the column is shown on tablets */
    }
}

/* Media query for desktops */
@media (min-width: 1025px) {
    sl-responsive-grid .mobile-hide {
        display: flex;
    }

    sl-responsive-grid .tablet-show {
        display: flex !important; /* Ensure the column is shown on tablets */
    }

    sl-responsive-grid .desktop-show {
        display: flex !important; /* Ensure the column is shown on desktops */
    }
}



sl-filter-box {
    position:relative
}

sl-filter-box .filter {
    width: 100%;
}

sl-filter-box .clear {
    position: absolute;
    right: 10px;
    top: 20%;
    transform: translateX(-20%);
    cursor: pointer;
}

/* Default for mobile: icon above h1, h2, h3 */
sl-view-head {
    display: flex;
    flex-direction: column; /* Stack icon and headers vertically for mobile */
    align-items: center;
    background-color: #e1e1e1;
    width: 100%;
    margin-bottom: 10px;
}

    sl-view-head .icon {
        height: 6.0rem;
        width: 6.0rem;
        border: 2px solid rgb(27, 117, 187);
        border-radius: 50%; /* Circular for mobile */
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgb(255, 255, 255);
        margin-bottom: 10px; /* Space below the icon */
    }

        sl-view-head .icon i {
            font-size: 3.8rem;
            color: rgb(27, 117, 187);
        }

    sl-view-head h1 {
        font-size: 1.5rem;
        font-weight: bold;
        margin: 0 0 5px 0;
        padding: 0;
        text-align: center; /* Center text on mobile */
    }

    sl-view-head h2 {
        font-size: 1.3rem;
        font-weight: normal;
        margin: 0;
        padding: 0;
        text-align: center; /* Center text on mobile */
    }

    sl-view-head h3 {
        font-size: 1.1rem;
        font-weight: normal;
        margin: 5px 0 0 0;
        padding: 0;
        text-align: center; /* Center text on mobile */
    }

/* Media query for larger screens (768px and above) */
@media (min-width: 768px) {
    sl-view-head {
        flex-direction: row; /* Place icon and text horizontally */
        align-items: center; /* Vertically align the icon and text */
        justify-content: flex-start;
    }

        sl-view-head .icon {
            margin-right: 20px; /* Space between the icon and text */
            margin-bottom: 0; /* Remove bottom margin */
            border-radius: 5px; /* Change border radius to 5px for desktop */
        }

        sl-view-head .text-container {
            display: flex;
            flex-direction: column; /* Stack h1, h2, h3 vertically in desktop */
            align-items: flex-start; /* Left-align the text */
        }

        sl-view-head h1, sl-view-head h2, sl-view-head h3 {
            text-align: left; /* Left-align text on larger screens */
        }
}





sl-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0.5rem 0.8rem 0rem;
    padding: 0;
    color: var(--swimlynx-blue);
    font-weight: bold;
    border-bottom: 1px solid #cdcdcd;
    width: 100%;
}

    sl-section-header .title {
        flex-grow: 1;
        text-align: left;
        font-size: 1rem;
    }

    sl-section-header .icon {
        text-align: right;
        font-size: 1rem;
        cursor: pointer;
    }



sl-input-date {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

    sl-input-date #ddInput, #mmInput {
        width: 3.8rem; /* Fixed width for day and month */
    }
    sl-input-date #yyInput {
        flex: 1; /* Year takes up the remaining space */
    }
    sl-input-date p {
        margin-bottom: 1rem;
        font-size: 1rem;
        display: flex;
        align-items: center;
        height: 3rem;

    }


sl-terms .dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 99999999;
}

sl-terms .dialog-box {
    background-color: #fff;
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* For large screen devices */
@media (min-width: 768px) {
    sl-terms .dialog-box {
        max-width: 700px;
        height: auto;
    }
}

sl-terms .dialog-header {
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
    text-align: center;
    border-top-left-radius: 5px; 
    border-top-right-radius: 5px;
}

    sl-terms .dialog-header h2 {
        font-size: 1.2rem;
        margin: 10px 0px;
    }

sl-terms .dialog-body {
    flex: 1; /* Takes up all the remaining space, makes it scrollable */
    overflow-y: auto;
    padding: 20px;
}



sl-terms .terms-text {
    padding-right: 10px; /* For scrollbar clearance */
}

sl-terms .terms-text h3 {
    color: #003366;
    font-size: 1.1rem;
    margin:0;
    padding:0 0 0.5rem 0;
}

    sl-terms .terms-text p {
        font-size: 0.8em;
        line-height: 1.2rem;
        color: #555;
        margin: 0 0 0.8rem 0;
        text-align: justify;
    }

    sl-terms .terms-text ol {
        list-style-type: decimal;
        padding-left: 0px;
        list-style-position: outside; /* Keep the numbers outside the text area */
        padding-left: 12px; /* Add padding to control indentation */
    }

    sl-terms .terms-text li {
        margin-bottom: 10px;
        font-size: 0.8em;
        line-height: 1.2rem;
        color: #555;
        text-align: justify;
    }

sl-terms .terms-text a {
    color: #0056b3;
    text-decoration: none;
}

sl-terms .terms-text a:hover {
    text-decoration: underline;
}

sl-terms .dialog-footer {
   padding-top: 1.0rem;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: center;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}







