/* Spiegelbildliche Kachel zum Layer-Quickmenu fuer Einstellungen. */
.sqm-stack {
    position: fixed;
    z-index: 950;
    bottom: 40px;
    left: 48px;
    font-family: Arial, sans-serif;
}

.sqm-tile {
    display: flex;
    width: 92px;
    height: 86px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 6px;
    border: 2px solid #2f3f55;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #2f3f55;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: box-shadow 120ms ease-out;
}

.sqm-tile:hover {
    box-shadow: 0 2px 12px rgba(0, 116, 217, 0.5);
}

.sqm-open .sqm-tile {
    border-color: #0074d9;
    background: #eaf4ff;
}

.sqm-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3px;
    width: 100%;
    height: 44px;
}

.sqm-tile-grid .fa {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #dde5ee;
    color: #2f3f55;
    font-size: 13px;
    text-align: center;
}

.sqm-tile-title {
    width: 100%;
    margin-top: 5px;
    overflow: hidden;
    font-size: 12px;
    line-height: 15px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sqm-flyout {
    position: absolute;
    bottom: 0;
    left: 100px;
    width: 250px;
    overflow: hidden;
    border: 2px solid #2f3f55;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.sqm-flyout-item {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    color: #2f3f55;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
}

.sqm-flyout-item + .sqm-flyout-item {
    border-top: 1px solid #dbe2ea;
}

.sqm-flyout-item:hover {
    background: #edf5fc;
}

.sqm-flyout-item .fa {
    width: 21px;
    margin-right: 9px;
    color: #0074d9;
    text-align: center;
}

.sqm-popup-overlay {
    position: fixed;
    z-index: 1000001;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(20, 30, 45, 0.45);
}

.sqm-popup-card {
    position: relative;
    width: 500px;
    max-width: 96vw;
    max-height: 92vh;
    overflow: auto;
    box-sizing: border-box;
    padding: 18px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.sqm-popup-title {
    margin-bottom: 14px;
    padding-right: 36px;
    color: #2f3f55;
    font-size: 17px;
    font-weight: 600;
}

.sqm-popup-close {
    position: absolute;
    top: 9px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #2f3f55;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.sqm-popup-pane {
    display: block !important;
    width: 100%;
}

.sqm-popup-pane .sidebar-header {
    display: none !important;
}

@media (max-width: 600px) {
    .sqm-stack {
        bottom: 32px;
        left: 42px;
    }

    .sqm-flyout {
        max-width: calc(100vw - 154px);
    }
}
