body {
    margin-top: 32px;
}

body.admin-bar #sw-modal,
body.admin-bar #sw-group-modal {
    top: 0 !important;
}

#sw-app {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.sw-top {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #020000;
    color: #fff;
    position: sticky;
    top: 0;
}

#sw-view {
    padding: 20px
}

.sw-group {
    background: #fff;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer
}

.sw-expense {
    padding: 10px;
    border-bottom: 1px solid #eee
}

.sw-modal-box {
    background: #fff;
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: pop 0.15s ease-out;

    display: flex;
    /* 🔥 IMPORTANT */
    flex-direction: column;
    /* 🔥 IMPORTANT */

    overflow: hidden;
}

/* 👇 Make body scrollable */
.sw-modal-box .modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 15px;
}

@keyframes pop {
    from {
        transform: scale(.9);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

#sw-modal,
#sw-group-modal,
#sw-invite-modal,
#sw-view-modal,
#sw-group-modal,
#sw-history-modal,
#sw-members-modal,
#sw-settle-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
    /* Above WP admin bar */
}

#sw-user-list label {
    display: block;
    margin: 0;
}