/*
 * Bulma has no off-canvas/drawer component, so the mobile sidebar's slide-in
 * behavior and desktop-vs-mobile column split are hand-rolled here. Anything
 * Bulma already provides (buttons, icons, the search field, the menu list,
 * the burger, section padding) is styled through Bulma's own classes in the
 * template - this file only covers what Bulma doesn't do, plus brand-color
 * overrides on top of Bulma's defaults.
 */

.dashboard-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.dashboard-mobile-header {
    padding: 1rem;
}

.dashboard-mobile-logo {
    height: 28px;
}

.dashboard-sidebar {
    display: none;
    position: fixed;
    inset: 0 20% 0 0;
    z-index: 40;
    flex-direction: column;
    overflow-y: auto;
}

.dashboard-sidebar.is-open {
    display: flex;
}

.dashboard-sidebar__logo {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dashboard-sidebar__logo img {
    height: 35px;
}

.menu-list {
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dashboard-sidebar .menu-list a {
    color: var(--white);
    border-radius: 0;
}

.dashboard-sidebar .menu-list a.is-active {
    background-color: var(--blue1);
    color: var(--white);
    font-weight: 700;
}

.dashboard-sidebar .menu-list a:hover {
    background-color: var(--blue1);
    color: var(--white);
}

.dashboard-sidebar__footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.dashboard-sidebar__footer .media-left {
    margin-right: 0.8rem;
}

.dashboard-sidebar__footer .media-left img {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dashboard-sidebar__footer .title {
    font-size: 1rem;
    line-height: 1;
}

.dashboard-sidebar__footer .subtitle {
    font-size: 0.8rem;
    line-height: 1;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.dashboard-content.section {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding-top: 24px;
    background-color: var(--white);
    overflow-y: auto;
}

.dashboard-content h1.title {
    font-size: 1.8rem;
}

.dashboard-header {
    flex-shrink: 0;
    padding: 1rem 24px;
    border-bottom: 1px solid var(--surface-muted);
}

.dashboard-header__search {
    display: none;
    flex: 1;
    max-width: 448px;
    margin-bottom: 0;
}

.dashboard-header__search .control.is-expanded {
    width: 100%;
}

.dashboard-header__search .input {
    font-size: 1rem;
}

.dashboard-header__search .icon.is-left {
    font-size: 1rem;
}

.dashboard-header__icon-button {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0.5rem;
    margin-right: 0.75rem;
}

.dashboard-header__icon-button:last-child {
    margin-right: 0;
}

.button.dashboard-header__icon-button:focus,
.button.dashboard-header__icon-button:focus:not(:active),
.button.dashboard-header__icon-button:active {
    outline: none;
    box-shadow: none;
    border-color: transparent;
    color: inherit;
}

.dashboard-header__icon-button .icon {
    font-size: 1.2rem;
}

@media (min-width: 768px) {
    .dashboard-shell {
        flex-direction: row;
    }

    .dashboard-sidebar {
        display: flex;
        position: static;
        inset: auto;
        width: 260px;
        flex-shrink: 0;
    }

    .dashboard-header {
        padding: 12px 24px;
    }

    .dashboard-header__search {
        display: flex;
    }
}
