:root{
            --safe-top: env(safe-area-inset-top, 0px);
            --safe-right: env(safe-area-inset-right, 0px);
            --safe-bottom: env(safe-area-inset-bottom, 0px);
            --safe-left: env(safe-area-inset-left, 0px);

            --app-bottom-nav-space: 92px;
            --app-side-space: 16px;
            --app-max-width: 860px;
        }

        *{ box-sizing:border-box; }

        html, body{
            margin:0;
            padding:0;
            width:100%;
            min-height:100%;
        }

        body.is-app{
            overflow-x:hidden;
            background:var(--app-bg, #eef4fb);
            color:var(--app-text, #17324d);
            font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
        }

        .app-debug-marker{
            position:fixed;
            top:10px;
            right:10px;
            z-index:999999;
            background:#e11d48;
            color:#fff;
            padding:6px 10px;
            border-radius:8px;
            font-weight:800;
            font-size:12px;
            box-shadow:0 6px 18px rgba(0,0,0,.25);
        }

        .app-shell{
            min-height:100vh;
            min-height:100dvh;
            padding-top:var(--safe-top);
            position:relative;
        }

        .app-shell-content{
            position:relative;
            z-index:1;
        }

        .app-main{
            width:100%;
            max-width:var(--app-max-width);
            margin:0 auto;
            padding:
                14px
                calc(var(--app-side-space) + var(--safe-right))
                calc(var(--app-bottom-nav-space) + var(--safe-bottom))
                calc(var(--app-side-space) + var(--safe-left));
        }

        .app-content{
            min-width:0;
        }

        /* Sakrij web navigaciju/footer ako ih neka child stranica slučajno ubaci */
        .top,
        .navbar-area,
        .main-nav,
        .mobile-nav,
        .page-banner,
        .header-area,
        .footer-area,
        .left-sidebar,
        .right-sidebar,
        footer,
        .scroll-top{
            display:none !important;
        }

        @media (min-width: 992px){
            .app-main{
                max-width:920px;
            }
        }

html body.is-app .select2-dropdown,
html body.is-app .select2-results,
html body.is-app .select2-results__options,
html body.is-app .select2-search--dropdown {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
}

html body.is-app .select2-dropdown {
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    z-index: 9999999 !important;
}

html body.is-app .select2-search--dropdown {
    padding: 10px !important;
}

html body.is-app .select2-search--dropdown .select2-search__field {
    height: 44px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    padding: 8px 12px !important;
}

html body.is-app .select2-results__option {
    display: block !important;
    min-height: 46px !important;
    padding: 12px 16px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 16px !important;
    line-height: 22px !important;
    opacity: 1 !important;
}

html body.is-app .select2-results__option--highlighted,
html body.is-app .select2-results__option--highlighted[aria-selected] {
    color: #ffffff !important;
    background: #17679b !important;
}

html body.is-app .select2-results__option[aria-selected="true"],
html body.is-app .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
    color: #0f172a !important;
    background: #dbeafe !important;
    font-weight: 700 !important;
}

html body.is-app .select2-container .select2-selection--single {
    min-height: 56px !important;
    height: 56px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px !important;
}

html body.is-app .select2-container .select2-selection__rendered {
    height: 54px !important;
    line-height: 54px !important;
    padding: 0 44px 0 16px !important;
    color: #0f172a !important;
    opacity: 1 !important;
}
