﻿.actionSheet {
    width: 100%;
    border-radius: 5px 5px 0 0;
    position: fixed;
    left: 0;
    bottom: 0;
    background-color: #333;
    color: #fff;
    z-index: 19999;
    display: none
}

.as-loading {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 100%;
    left: 0;
    top: 0;
    background-color: #fff
}

.as-grid-cell {
    float: left;
    width: 60px
}

.as-grid-cell-active {
    color: #fff;
    background-color: #0068a6;
    border-radius: 3px
}

.as-grid-cell-logo {
    width: 60px;
    height: 60px
}

.as-grid-cell-label {
    height: 20px;
    text-align: center;
    font-size: 11px;
    margin-top: -5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.as-list-cell {
    width: 100%;
    border-bottom: 1px solid #ccc
}

    .as-list-cell:last-child {
        border: 0
    }

.as-list-cell-active {
    color: #fff;
    background-color: #0068a6
}

.as-list-cell-label {
    text-align: center;
    padding: 10px
}

.as-bg {
    display: none;
    background-color: #777;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    opacity: .3;
    filter: alpha(opacity=30)
}

.btn-reload.red {
    background-color: red;
    color: white;
}


/* ==== ActionSheet basic styles ==== */
#actionSheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

    /* Baggrundsslør */
    #actionSheet .as-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
    }

    /* Selve panelet */
    #actionSheet .as-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
        animation: slideUp 0.25s ease;
        overflow: hidden;
    }

    /* Normale valgmuligheder */
    #actionSheet .as-option {
        padding: 16px;
        font-size: 1.1em;
        color: #0f5092;
        border-top: 1px solid #eee;
        cursor: pointer;
        text-align: center;
        transition: background 0.2s ease;
    }

        #actionSheet .as-option:first-child {
            border-top: none;
        }

        #actionSheet .as-option.destructive {
            color: #d93025;
        }

        #actionSheet .as-option.cancel {
            font-weight: 600;
            background: #f7f7f7;
            border-top: 1px solid #ddd;
        }

        #actionSheet .as-option:hover {
            background: #f1f1f1;
        }

    /* Container til de normale muligheder */
    #actionSheet .as-options {
        display: flex;
        flex-direction: column;
    }

    /* Når vi er i confirm-mode: fade/disable underliggende lag */
    #actionSheet .as-panel.confirming .as-options {
        opacity: 0.35;
        filter: blur(1px);
        pointer-events: none;
        transition: opacity 0.2s ease, filter 0.2s ease;
    }

    /* Overlay-kortet */
    #actionSheet .as-confirm-wrap {
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 16px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
        overflow: hidden;
        animation: as-pop 0.15s ease;
    }

    /* Overskrift i overlay */
    #actionSheet .as-confirm-title {
        padding: 14px 16px;
        font-weight: 600;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    /* Knapper/valg i overlay */
    #actionSheet .as-confirm .as-option {
        padding: 14px 16px;
        border-top: 1px solid #eee;
        text-align: center;
        cursor: pointer;
    }

        #actionSheet .as-confirm .as-option.destructive {
            color: #d93025;
            font-weight: 600;
        }

        #actionSheet .as-confirm .as-option.cancel {
            background: #f7f7f7;
            font-weight: 600;
        }

        #actionSheet .as-confirm .as-option:hover {
            background: #f1f1f1;
        }

    #actionSheet .as-option.disabled {
        pointer-events: none;
        opacity: 0.5;
        text-decoration: line-through;
    }
    #actionSheet .as-option.removed {
        display: none;
    }

/* Animationer */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes as-pop {
    from {
        transform: scale(0.96);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
