// Aperture foundation now lives in _base.scss; only the dashboard-specific
// `.row { margin-bottom: -1rem }` pull stays here.

body.page-dashboard .row {
    margin-bottom: -1rem;
}

#id_dash_content {
    flex: 1;
    min-width: 425px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

#id_applets_container {
    #id_applet_wallet {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    #id_applet_palette {
        padding: 0 0 0 2rem;

        .palette-scroll {
            display: flex;
            gap: 1rem;
            align-items: center;
            overflow-x: auto;
            padding: 0.75rem 2rem;
            height: 100%;
            scrollbar-width: none;
            &::-webkit-scrollbar { display: none; }
            mask-image: linear-gradient(
                to right,
                transparent 0%,
                black 2%,
                black 98%,
                transparent 100%
            );
        }
    }

    #id_applet_username {
        display: flex;
        align-items: center;
        overflow: hidden;

        form {
            min-width: 0;
            width: 100%;
            overflow: hidden;
            display: flex;
            flex-direction: column;

            .save-btn {
                align-self: left;
            }
        }

        .username-field {
            display: flex;
            align-items: baseline;
            gap: 0.1em;
            min-width: 0;
            overflow: hidden;

            .username-at{
                user-select: none;
                pointer-events: none;
                font-size: 1.8rem;
                font-weight: bold;
                color: rgba(var(--secUser), 0.875);
                margin-left: 0.3rem;
            }
            
            input {
                background: transparent;
                border: none;
                outline: none;
                font-size: 1.8rem;
                font-weight: bold;
                color: rgba(var(--secUser), 0.875);;
                font-family: inherit;
                padding: 0;
                flex: 1;
                min-width: 0;
                overflow: hidden;
                text-overflow: ellipsis;
            }
        }

    }

}

@media (max-width: 550px) {
    #id_dash_content {
        min-width: 0;
        overflow: hidden;
    }
}

@media (min-width: 738px) {
    #id_dash_content {
        min-width: 666px;
        overflow: hidden;
    }
}

@media (orientation: landscape) {
    // Reset the 666px min-width so #id_dash_content shrinks to fit within the
    // sidebar-bounded container rather than overflowing into the footer sidebar.
    #id_dash_content {
        min-width: 0;
    }
}

@media (max-height: 500px) {
    body.page-dashboard {
        .container {
            .row {
                padding: 0.25rem 0;
                .col-lg-6 h2 {
                    margin-bottom: 0.5rem;
                }
            }
        }
    }
}