
:root {
    --greetau-brand: #53317B;
}

/* Dashboard background */
body.greetau-dashboard-body {
    background: #f3f3f3;
    padding: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
}

body.greetau-dashboard-body[data-bs-theme="dark"] {
    background: var(--tblr-bg-surface-secondary);
}

/* Main application shell */
.greetau-app-shell {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;

    width: 100%;
    max-width: 1440px;
    height: 94dvh;
    min-height: 560px;
    margin: 0 auto;

    overflow: hidden;
    border-radius: 18px;
    position: relative;

    background: var(--tblr-bg-surface);
    box-shadow: 0 0px 16px rgba(30, 20, 50, 0.08);
}

/* Sidebar */
.greetau-sidebar {
    flex-shrink: 0;
    position: relative !important;
    min-height: 0;
    height: 100%;
    border-radius: 18px 0 0 18px;
}

/* .greetau-sidebar .nav-link-icon {
    width: 1.5rem;
    height: 1.5rem;
} */

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover > td,
.clickable-row:has([data-row-link-target="link"]:focus-visible) > td,
.clickable-row.list-group-item:hover {
    background: var(--tblr-bg-surface-secondary);
}

.clickable-row:has([data-row-link-target="link"]:focus-visible) {
    outline: 2px solid var(--greetau-brand);
    outline-offset: -2px;
}

.greetau-sidebar .navbar-brand {
    min-height: 72px;
    margin-top: 1px;
    padding: 18px !important;
    margin-left: 0 !important;
}

.greetau-nav{
    padding: 18px !important;
}

/* Main content wrapper */
.greetau-page-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;

    padding: 16px;

    min-width: 0;
    min-height: 0;
    height: 100%;

    margin-left: 0px !important;

    overflow: hidden;
    background: #fafafa;
}

body.greetau-dashboard-body[data-bs-theme="dark"] .greetau-page-wrapper {
    background: color-mix(in srgb, var(--tblr-bg-surface) 88%, #000 12%);
}

/* Top header */
.greetau-topbar {
    flex: 0 0 auto;
    background: var(--tblr-bg-surface);
}

/* Page heading */
.greetau-page-wrapper .page-header {
    flex: 0 0 auto;
}

/* Independently scrolling content */
.greetau-page-wrapper .page-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    margin-bottom: 10px;
}

.footer{
    padding: 16px 0 12px 0;
}

/* Mobile layout */
@media (max-width: 991.98px) {
    body.greetau-dashboard-body {
        padding: 0;
        overflow: auto;
        display: block;
        min-height: 100dvh;
    }

    .greetau-app-shell {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: 100dvh;
        border-radius: 0;
        overflow: visible;
    }

    .greetau-sidebar {
        position: relative !important;
        width: 100%;
        height: auto;
        min-height: 0;
        border-radius: 0;
        flex-shrink: 0;
    }


    .greetau-page-wrapper {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .greetau-page-wrapper .page-body {
        overflow: visible;
    }
}
