﻿.msl-ci-container {
    container-type: inline-size;
}

.msl-ci-grid {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: 1fr;
}

@container (min-width: 600px) {
    .msl-ci-grid {
        grid-template-columns: 1fr 1fr;
    }

        .msl-ci-grid.msl-ci-horizontal {
            grid-template-columns: 1fr;
        }
}

@container (min-width: 900px) {
    .msl-ci-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

        .msl-ci-grid.msl-ci-horizontal {
            grid-template-columns: 1fr 1fr;
        }
}

@container (min-width: 1200px) {
    .msl-ci-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

        .msl-ci-grid.msl-ci-horizontal {
            grid-template-columns: 1fr 1fr 1fr;
        }
}

.msl-ci {
    border: 1px solid #ccc;
    background: #fff;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    border-radius: 3px;
}

.msl-ci-grid .msl-ci {
    margin: 0;
}

.msl-ci-content {
    order: 2;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.msl-ci-image {
}

.msl-ci-title {
    font-size: 1.25rem;
    display: block;
    margin: 0 0 0.5rem;
}

.msl-ci-subtitle {
    display: block;
    margin: 0 0 0.25rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.msl-ci-subtle {
    color: #74747B;
}

.msl-ci-description {
    margin: 0;
}

.msl-ci-type span + span:before {
    content: "| ";
    font-weight: normal
}

.msl-ci-details {
    display: flex;
    margin: 0.5rem 0;
}

    .msl-ci-details:empty, .msl-ci-subtitle:empty {
        display: none;
    }

    .msl-ci-details > * {
        margin-right: 0.5rem;
    }

.msl-ci-actions {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.msl-ci-action {
    border-radius: 5px;
    background: #06c;
    color: #fff;
    text-decoration: none;
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    margin-top: 0.5rem;
    transition: 0.2s ease all;
    border: 1px solid transparent;
    cursor: pointer;
}

.msl-ci-action-sm {
    width: auto;
}

.msl-ci-action:hover {
    background: #fff;
    color: #06c;
    border-color: #06c;
}

.msl-ci-action:focus {
    outline: none;
    box-shadow: 0 0 0px 5px rgba(0,72,208,.5);
}

.msl-ci-action.msl-ci-cancel {
    color: #000;
    background: #ffc107;
    border-color: #ffc107;
}

    .msl-ci-action.msl-ci-cancel:hover {
        background: #fff;
    }

    .msl-ci-action.msl-ci-cancel:focus {
        outline: none;
        box-shadow: 0 0 0px 5px rgba(255,208,0,.5);
    }

.msl-ci-action + .msl-ci-action {
    margin-left: 1rem;
}

.msl-ci-action.msl-ci-close {
    background-color: #ccc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3C!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--%3E%3Cpath fill='%23000000' d='M183.1 137.4C170.6 124.9 150.3 124.9 137.8 137.4C125.3 149.9 125.3 170.2 137.8 182.7L275.2 320L137.9 457.4C125.4 469.9 125.4 490.2 137.9 502.7C150.4 515.2 170.7 515.2 183.2 502.7L320.5 365.3L457.9 502.6C470.4 515.1 490.7 515.1 503.2 502.6C515.7 490.1 515.7 469.8 503.2 457.3L365.8 320L503.1 182.6C515.6 170.1 515.6 149.8 503.1 137.3C490.6 124.8 470.3 124.8 457.8 137.3L320.5 274.7L183.1 137.4z'/%3E%3C/svg%3E");
    padding: 1rem;
    background-size: 1rem;
    background-repeat: no-repeat;
    background-position: 50%;
    margin-top: 0;
}
.msl-ci-action.msl-ci-close:hover {
    background: #fff;
    border-color: #ccc;
}
.msl-ci-action.msl-ci-close:focus {
        outline: none;
        box-shadow: 0 0 0px 5px rgba(200,200,200,.5);
    }

.msl-ci-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

    .msl-ci-tags:last-child {
        margin-top: auto;
    }

.msl-ci-tag {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
    background: rgb(240, 245, 248);
    border-radius: 4px;
    border: 1px solid rgb(210, 225, 240);
    display: inline-block;
    line-height: 1;
    vertical-align: baseline;
    margin: 0 0.5rem 0.5rem 0;
}

.msl-ci-tag-label {
    font-weight: bold;
}

    .msl-ci-tag-label:after {
        content: ":";
    }

.msl-ci-tag-value:after {
    content: ",";
}

.msl-ci-tag-value:last-of-type:after {
    content: "";
}

.msl-ci.msl-ci-footer {
    flex-direction: column;
}

.msl-ci-footer .msl-ci-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Vertical Item Layout */

.msl-ci-vertical .msl-ci {
    flex-direction: column;
}

.msl-ci-vertical .msl-ci-image {
    margin-bottom: 1rem;
}

.msl-ci-vertical .msl-ci-actions {
    flex-direction: column;
}

/* Horizontal Item Layout */
.msl-ci-horizontal .msl-ci {
    flex-direction: row;
}

.msl-ci-horizontal .msl-ci-image {
    margin-right: 1rem;
}

/* Image layout */
.msl-ci-image-only .msl-ci-image {
    background-image: none !important;
}

.msl-ci-horizontal.msl-ci-image-only .msl-ci-image {
    max-width: 40%;
}

    .msl-ci-horizontal.msl-ci-image-only .msl-ci-image img {
        max-width: 100%;
        height: auto;
    }

.msl-ci-image-background .msl-ci-image img {
    display: none;
}

.msl-ci-image-background .msl-ci-image {
    background-size: cover;
    background-position: 50%;
}

.msl-ci-horizontal.msl-ci-image-background .msl-ci-image {
    padding-left: 40%;
    margin: -1rem 1rem -1rem -1rem;
}

.msl-ci-vertical.msl-ci-image-background .msl-ci-image {
    padding-top: 60%;
    margin: -1rem -1rem 1rem -1rem;
}

/* Clickable Area */
.msl-ci-clickall .msl-ci {
    position: relative;
    transition: 0.2s ease all;
}

.msl-ci-clickall .msl-ci-title a:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.msl-ci-clickall .msl-ci:hover {
    box-shadow: 0 0 5px rgba(0,0,0,0.25)
}

.msl-ci-clickall .msl-ci.msl-ci-footer:hover {
    box-shadow: none;
}

/* Client facing popups */
.msl-blackout {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    opacity: 0.2;
    z-index: 100;
    visibility: hidden;
    transition: opacity 0.3s;
}

.msl-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    max-height: 90%;
    max-width: 90%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    z-index: 101;
    transform: translateX(-50%) translateY(-55%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    visibility: hidden;
    min-width: 80%;
}

    .msl-modal.msl-modal-show {
        visibility: visible;
        opacity: 1;
        transform: translateX(-50%) translateY(-50%);
    }

.msl-blackout.msl-modal-show {
    visibility: visible;
    opacity: .5;
}

@media (min-width: 600px) {
    .msl-modal {
        max-height: 80%;
        max-width: 400px;
        min-width: 70%;
    }
}

@media (min-width: 992px) {
    .msl-modal {
        max-height: 80%;
        max-width: 800px;
        min-width: 600px;
    }
}

.msl-modal-header, .msl-modal-footer {
    padding: 1rem;
    display: flex;
}

.msl-modal-header {
    border-bottom: 1px solid #ccc;
}

.msl-modal-footer {
    border-top: 1px solid #ccc;
}

.msl-modal-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.msl-modal h2 {
    font-size: 1.25rem;
}

.msl-modal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.msl-modal-list-item {
    padding: 1rem 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
}

    .msl-modal-list-item > .item-details {
        margin-bottom: 1rem;
    }

@media (min-width:600px) {
    .msl-modal-list-item {
        flex-direction: row;
        align-items: center;
    }

        .msl-modal-list-item > .item-details {
            margin-bottom: 0;
            margin-right: 1rem;
        }
}

.msl-modal-list-item + .msl-modal-list-item {
    border-top: 1px solid #ccc;
}

.msl-modal-list-item-title {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.msl-modal-content {
    overflow-y: scroll;
    max-height: 500px;
}

.msl-modal-input-group {
    padding: .5rem 0;
}

    .msl-modal-input-group label {
        margin: 0 0 0.25rem;
    }

.
