/* Custom styles for Walter Portal */

/* ==========================================
   1. Logo Primary Color & Size
   ========================================== */
/* Logo primary color on ALL pages */
.logo-img img {
    height: auto;
    filter: brightness(0) saturate(100%) invert(28%) sepia(47%) saturate(1389%)
        hue-rotate(131deg) brightness(95%) contrast(101%);
}

body:not(.login-page) .left-sidebar .logo-img img {
    width: 160px;
    max-width: 160px;
}

body:not(.login-page) {
    background: #fffaf3;
}

.login-page .logo-img img {
    max-width: 120px;
}

/* Alternative: Use SVG fill with CSS variable */
.logo-img svg,
.logo-img svg path {
    fill: var(--walter-primary) !important;
}

/* ==========================================
   2. Reduce Top Spacing & Navbar Typography
   ========================================== */
/* Reduce spacing above navbar on non-login pages */
body:not(.login-page) .app-header {
    min-height: 50px;
    padding: 0 0;
    margin-top: 0;
    top: 0;
}

body:not(.login-page) .body-wrapper {
    padding-top: 0;
    margin-top: 0;
}

/* Reduce typography sizing in horizontal navbar */
body:not(.login-page) .app-header .navbar-nav .nav-item .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* Login page keeps normal header */
.login-page .app-header {
    min-height: 60px;
    padding: 0.5rem 0;
    top: 0;
}

.brand-logo {
    padding: 1rem 1.25rem;
    min-height: 70px;
}

/* ==========================================
   3. Responsive Navigation Styles
   ========================================== */

/* Mobile and Tablet: Top Navigation */
@media (max-width: 1199px) {
    /* Make navbar stack vertically on smaller screens */
    .app-header .navbar-nav {
        flex-direction: column !important;
        width: 100%;
    }

    .app-header .navbar-nav .nav-item {
        width: 100%;
    }

    .app-header .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    /* Improve dropdown positioning on mobile */
    .app-header .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0;
    }

    /* Reduce header height on mobile */
    .app-header {
        min-height: 50px;
    }
}

/* Mobile: Side Navigation */
@media (max-width: 767px) {
    /* Adjust main content when sidebar is hidden */
    .page-wrapper[data-sidebartype='full'] .body-wrapper {
        margin-left: 240px;
    }

    .login-page .logo-img img {
        max-width: 160px;
    }

    /* Make brand logo smaller on mobile */
    .brand-logo {
        padding: 0.75rem 1rem;
        min-height: 60px;
    }

    .login-page .logo-img img {
        max-width: 140px;
    }

    /* Optimize sidebar navigation for mobile */
    .sidebar-nav {
        padding: 0.5rem 0;
    }

    .sidebar-item {
        margin-bottom: 0.25rem;
    }

    .sidebar-link {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

/* Tablet: Optimize for medium screens */
@media (min-width: 768px) and (max-width: 1199px) {
    .page-wrapper[data-sidebartype='full'] .body-wrapper {
        margin-left: 240px;
    }

    .brand-logo .logo-img {
        max-width: 140px;
    }
}

/* Desktop: Full sidebar */
@media (min-width: 1200px) {
    .page-wrapper[data-sidebartype='full'] .body-wrapper {
        margin-left: 270px;
    }

    /* Horizontal navigation layout */
 

    .app-header .navbar-nav .nav-item {
        margin-right: 1rem;
    }
}

/* ==========================================
   5. Responsive Utilities
   ========================================== */
@media (max-width: 575px) {
    /* Extra small devices - further optimizations */
    .app-header .navbar {
        padding: 0.5rem;
    }

    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .brand-logo .logo-img {
        max-width: 100px;
    }
}

/* ==========================================
   BIG file icons (direct <i> usage)
   ========================================== */
i.file-icon-word,
i.file-icon-pdf,
i.file-icon-excel,
i.file-icon-powerpoint,
i.file-icon-image,
i.file-icon-zip,
i.file-icon-generic {
    font-size: 50px !important;
    line-height: 1 !important;
    display: inline-block;
}
/* PDF — Adobe red */
i.file-icon-pdf {
    color: #d32f2f !important;
}

/* Word — Microsoft blue */
i.file-icon-word {
    color: #2b579a !important;
}

/* Excel — Microsoft green */
i.file-icon-excel {
    color: #217346 !important;
}

/* PowerPoint — Office orange */
i.file-icon-powerpoint {
    color: #d24726 !important;
}

/* Images — purple */
i.file-icon-image {
    color: #7b1fa2 !important;
}

/* ZIP / archives — dark gray */
i.file-icon-zip {
    color: #455a64 !important;
}

/* Fallback */
i.file-icon-generic {
    color: #6c757d !important;
}
i[class^='file-icon-'] {
    transition: transform 0.2s ease;
}

i[class^='file-icon-']:hover {
    transform: scale(1.08);
}
@media (max-width: 767px) {
    i[class^='file-icon-'] {
        font-size: 42px !important;
    }
}

/* Decoration */
.walter-decoration {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    pointer-events: none;
    color: #016c56;
    opacity: 0.5;
}

.walter-decoration-login {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    pointer-events: none;
    color: white;
}

/* File list */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    background: #fff;
}

.file-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1 1 300px;
}

.file-icon {
    font-size: 3rem; /* icon size */
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left; /* keep title/subtitle left-aligned */
}

.file-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.file-meta {
    text-align: right;
    min-width: 120px; /* keeps dates aligned */
}

.btn-download {
    margin-top: 0.5rem;
}

/* -----------------------
   Responsive Centering
   ----------------------- */
@media (max-width: 575px) {
    .file-item {
        flex-direction: column;
        align-items: center; /* center whole card content */
        text-align: center;
    }

    .file-left {
        justify-content: center; /* center icon + info as a group */
        flex: unset;
    }

    .file-info {
        text-align: left; /* title/subtitle remain left-aligned inside the centered group */
    }

    .file-right {
        flex-direction: column;
        align-items: center; /* date/size + button centered below */
        margin-top: 0.5rem;
    }

    .file-meta {
        min-width: auto;
        text-align: center;
    }

    .btn-download {
        margin-top: 0.5rem;
    }
}

/* Medium+ screens keep normal layout */
@media (min-width: 576px) {
    .file-right {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    .btn-download {
        margin-top: 0;
    }
}

/* ---------------------------
   1. Sidebar Base
--------------------------- */
.left-sidebar {
    position: fixed;
    top: 0 !important;
    left: -270px; /* hidden by default on mobile */
    width: 270px;
    height: 100vh;
    background-color: #fff; /* always white */
    color: #3e3e3e;
    z-index: 1050;
    overflow: hidden;
    transition: left 0.3s ease-in-out;
}
@media (max-width: 575.98px) {
    .left-sidebar {
        z-index: 1052;
    }
}

/* Scrollable content */
.left-sidebar .scroll-sidebar {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 0;
}

/* Brand logo */
.left-sidebar .brand-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 1rem;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #eee;
}

/* Logo image */
.left-sidebar .logo-img img {
    max-width: 220px;
    height: auto;
}

/* Close button */
.left-sidebar .close-btn {
    position: absolute; /* fixed inside sidebar top-right */
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
}

/* Sidebar Navigation */
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    position: relative;
}

.sidebar-item {
    width: 100%;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #3e3e3e;
    text-decoration: none;
    font-weight: 500;
    transition:
        background 0.3s,
        color 0.3s;
}

.sidebar-link:hover {
    background-color: #f0f0f0;
    color: #006c56;
}

.nav-small-cap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
}

/* Collapsible submenu */
.has-arrow::after {
    content: '\f105'; /* arrow icon (FontAwesome style) */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s;
}

.has-arrow[aria-expanded='true']::after {
    transform: rotate(90deg);
}

/* Sidebar submenu collapse - scoped to sidebar only */
.left-sidebar .collapse {
    display: none;
    overflow: visible;
}

.left-sidebar .collapse.show {
    display: block;
}

/* Submenu links */
.collapse .sidebar-link {
    padding-left: 2rem;
    font-size: 0.875rem;
}

/* ---------------------------
   2. Responsive Sidebar
--------------------------- */
@media (max-width: 1199px) {
    .left-sidebar {
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    }

    .left-sidebar.show-sidebar {
        left: 0 !important;
    }

    /* Backdrop overlay */
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }

    .sidebar-backdrop.show {
        display: block;
    }

    /* Close button on mobile */
    .left-sidebar .close-btn {
        display: flex;
    }
}

/* Desktop - show sidebar by default */
@media (min-width: 1200px) {
    .left-sidebar {
        left: 0;
    }
}

/* ---------------------------
   3. Scrollbar Fixes
--------------------------- */
.scroll-sidebar::-webkit-scrollbar {
    width: 6px;
}

.scroll-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}
/* Hamburger visible on mobile */
.navbar-toggler {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
}

.navbar-toggler .navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 24px;
    background-color: var(--walter-text);
    position: relative;
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--walter-text);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.navbar-toggler .navbar-toggler-icon::before {
    top: -8px;
}
.navbar-toggler .navbar-toggler-icon::after {
    top: 8px;
}

@media (max-width: 1199px) {
    .navbar-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Collapse navbar into accordion vertically */
    .navbar-collapse {
        width: 100%;
    }

    .navbar-nav.flex-column {
        flex-direction: column !important;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #eee;
    }

    .navbar-nav .collapse .nav-link {
        padding-left: 2rem;
    }

    /* Profile image menu */
    .navbar-nav .ms-auto {
        margin-top: 0.5rem;
    }
}

.offcanvas-toggler {
    margin-left: auto;
}

.navbar-light {
    background-color: #fff !important;
}

/* ---------------------------
   4. Top Header Navigation
--------------------------- */
.app-header {
    position: fixed;
    top: 0;
    left: 270px; /* aligns with sidebar width on desktop */
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1030;
    transition: left 0.3s ease-in-out;
}

.app-header .navbar {
    padding: 0.75rem 1.5rem;
}

/* Main navigation on desktop - horizontal layout */
#mainNav.navbar-nav {
    flex-direction: row;
    gap: 0.5rem;
}

#mainNav .nav-item {
    position: relative;
}

#mainNav .nav-link {
    color: #3e3e3e;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

#mainNav .nav-link,
#offcanvasNavbar .nav-link {
    height: 45px !important;
}

.logo-img {
    max-width: 100%;
    display: block;
    margin: auto;
}

#mainNav .nav-link:hover {
    color: #006c56;
}

#mainNav .dropdown-menu {
    min-width: 200px;
}

/* Hide burger button on desktop */
@media (min-width: 1200px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* Mobile and tablet styles */
@media (max-width: 1199px) {
    .app-header {
        left: 0; /* full width on mobile */
    }

    /* Show burger and three dots buttons */
    .navbar-toggler {
        display: flex !important;
    }

    /* Adjust body wrapper for mobile */
    .body-wrapper {
        margin-left: 0 !important;
        padding-top: 70px; /* space for fixed header */
    }
}

/* Desktop - adjust body wrapper for sidebar and header */
@media (min-width: 1200px) {
    .body-wrapper {
        margin-left: 270px;
        padding-top: 70px; /* space for fixed header */
    }

    /* Hide close button on desktop */
    .left-sidebar .close-btn {
        display: none;
    }
}

/* Offcanvas styles for mobile main nav */
.offcanvas-end {
    width: 300px !important;
    max-width: 85vw;
}

/* Hide offcanvas completely on large screens */
@media (min-width: 1200px) {
    #offcanvasNavbar {
        display: none !important;
    }
}

.offcanvas .nav-link {
    color: #3e3e3e;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.offcanvas .nav-link:hover {
    background-color: #f0f0f0;
    color: #006c56;
}

.offcanvas .collapse .nav-link {
    padding-left: 2rem;
    font-size: 0.875rem;
}

/* Button toggle styles for offcanvas nav - like Bootstrap 5.3 docs */
.offcanvas .btn-toggle {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #3e3e3e;
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    transition:
        color 0.15s ease-in-out,
        background-color 0.15s ease-in-out;
}

.offcanvas .btn-toggle:hover,
.offcanvas .btn-toggle:focus {
    color: #006c56;
    background-color: #f0f0f0;
    box-shadow: none;
}

.offcanvas .btn-toggle::after {
    content: '';
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    margin-left: auto;
    border-right: 0.15em solid currentColor;
    border-bottom: 0.15em solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.2s ease-in-out;
}

.offcanvas .btn-toggle[aria-expanded='true']::after {
    transform: rotate(45deg);
}

.offcanvas .btn-toggle[aria-expanded='true'] {
    color: #006c56;
}

/* Offcanvas collapse items - use Bootstrap's default display toggle */
.offcanvas .collapse {
    display: none;
}

.offcanvas .collapse.show {
    display: block;
}

/* Ensure app-header maintains fixed height */
.app-header {
    min-height: 60px;
    height: auto;
}

.app-header .navbar {
    min-height: 60px;
}

#sidebarnav {
    margin-top: 2rem;
}


.navAccount {
    border: 1px solid var(--bs-primary);
    border-radius: 100%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold !important;
    transition: all .25s ease-in-out;
}

.nav-link.show > .navAccount,
.navAccount:hover {
    border:1px solid var(--bs-white);
    color: var(--bs-white);
    background-color: var(--bs-primary);
}

.nav-right .dropdown-menu {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
    position: absolute !important;
    width: auto !important;
}
/* ==========================================
   SIDEBAR - FINAL CLEAN OVERRIDE
   ========================================== */

/* reset spacing */
.left-sidebar .sidebar-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* osnovni link */
.left-sidebar .sidebar-nav .sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 8px;
    color: #5f6b6d;
    font-size: 13.5px;
    text-decoration: none;
    transition: all .18s ease;
}

/* hover */
.left-sidebar .sidebar-nav .sidebar-link:hover {
    background: rgba(1, 108, 86, 0.06);
    color: #016c56;
}

/* LEVELI */
.left-sidebar .sidebar-item.level-1 > .sidebar-link {
    font-weight: 600;
    padding-left: 16px;
}

.left-sidebar .sidebar-item.level-2 > .sidebar-link {
    padding-left: 30px;
    font-size: 13px;
}

.left-sidebar .sidebar-item.level-3 > .sidebar-link {
    padding-left: 44px;
    font-size: 12.8px;
    opacity: 0.95;
}

.left-sidebar .sidebar-item.level-4 > .sidebar-link {
    padding-left: 58px;
    font-size: 12.5px;
    opacity: 0.9;
}

/* vertikalna linija za strukturu */
.left-sidebar .sidebar-nav .collapse {
    margin-left: 10px;
    padding-left: 8px;
    border-left: 1px solid rgba(120, 130, 140, 0.15);
}

/* aktivna stranica */
.left-sidebar .sidebar-link.active {
    background: rgba(1, 108, 86, 0.12);
    color: #016c56;
    font-weight: 700;
}

/* roditelji u putanji */
.left-sidebar .sidebar-link.in-path {
    color: #016c56;
}

/* leva linija za aktivnu */
.left-sidebar .sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 999px;
    background: #016c56;
}

/* strelica */
.left-sidebar .sidebar-link.has-arrow {
    padding-right: 30px;
}

.left-sidebar .sidebar-link.has-arrow::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
    opacity: 0.7;
}

/* otvoreno stanje */
.left-sidebar .sidebar-link.has-arrow[aria-expanded="true"]::after {
    transform: rotate(225deg);
}

/* malo razdvajanje između top sekcija */
.left-sidebar .sidebar-item.level-1 + .sidebar-item.level-1 {
    margin-top: 4px;
}

.left-sidebar .toggle-arrow {
    margin-left: auto;
    width: 18px;
    height: 18px;
    position: relative;
    cursor: pointer;
}

.left-sidebar .toggle-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.left-sidebar .sidebar-link[aria-expanded="true"] .toggle-arrow::before {
    transform: rotate(225deg);
}

/* ugasi staru template strelicu */
.left-sidebar .sidebar-link.has-arrow::after {
    content: none !important;
    display: none !important;
}


/* --- Sidebar compact spacing --- */

.left-sidebar .sidebar-nav .sidebar-link {
    min-height: 32px !important;      /* bilo ~40px */
    padding: 3px 8px !important;     /* bilo 8px 14px */
    font-size: 15px !important;       /* blago smanjenje */
    line-height: 1.2 !important;
}

.left-sidebar .sidebar-item {
    margin-bottom: 0px !important;    /* smanjuje razmak između stavki */
}

/* podnivoi još malo kompaktniji */
.left-sidebar .collapse .sidebar-link {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.left-sidebar .sidebar-item.level-1 + .sidebar-item.level-1 {
    margin-top: 2px !important; /* bilo 4px */
}

/* ===== SIDEBAR - NOTION / JIRA STYLE ===== */

.left-sidebar .sidebar-nav ul li .sidebar-link {
    min-height: 28px !important;
    padding: 4px 10px !important;
    line-height: 1.2 !important;
    border-radius: 8px !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.left-sidebar .sidebar-nav ul li .sidebar-link:hover {
    background: rgba(1, 108, 86, 0.06) !important;
    color: #016c56 !important;
}

.left-sidebar .sidebar-item {
    margin-bottom: 0 !important;
}

/* Sekcije */
.left-sidebar .sidebar-item.level-1 > .sidebar-link {
    font-size: 13px !important;
    font-weight: 700 !important;
    padding-left: 12px !important;
    color: #2f3a3d !important;
}

/* Podnivoi */
.left-sidebar .sidebar-item.level-2 > .sidebar-link {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    padding-left: 24px !important;
    color: #556166 !important;
}

.left-sidebar .sidebar-item.level-3 > .sidebar-link {
    font-size: 12.2px !important;
    font-weight: 400 !important;
    padding-left: 36px !important;
    color: #667277 !important;
}

.left-sidebar .sidebar-item.level-4 > .sidebar-link {
    font-size: 12px !important;
    font-weight: 400 !important;
    padding-left: 48px !important;
    color: #778388 !important;
}

/* Aktivna */
.left-sidebar .sidebar-link.active {
    background: rgba(1, 108, 86, 0.10) !important;
    color: #016c56 !important;
    font-weight: 700 !important;
    position: relative;
}

.left-sidebar .sidebar-link.active::before {
    content: "" !important;
    position: absolute !important;
    left: 4px !important;
    top: 5px !important;
    bottom: 5px !important;
    width: 3px !important;
    border-radius: 999px !important;
    background: #016c56 !important;
}

/* Roditelji u putanji */
.left-sidebar .sidebar-link.in-path {
    color: #016c56 !important;
}

/* Kompaktniji podmeniji */
.left-sidebar .collapse {
    margin-left: 8px !important;
    padding-left: 6px !important;
    border-left: 1px solid rgba(1, 108, 86, 0.10) !important;
}

/* Malo manja strelica */
.left-sidebar .toggle-arrow {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
}

.left-sidebar .toggle-arrow::before {
    width: 5px !important;
    height: 5px !important;
    margin-left: -2.5px !important;
    margin-top: -3px !important;
}

/* Malo manje razdvajanje između top sekcija */
.left-sidebar .sidebar-item.level-1 + .sidebar-item.level-1 {
    margin-top: 2px !important;
}


/* ==========================================
   Sidebar long titles wrap
   ========================================== */

.left-sidebar .sidebar-link {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;

    white-space: normal !important;
    line-height: 1.25;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

/* tekst */
.left-sidebar .sidebar-link span {
    flex: 1;
    min-width: 0;

    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;

    /* max 2 reda */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* strelica kod submenu */
.left-sidebar .sidebar-link.has-arrow::after {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* malo uži sidebar za manje rezolucije */
@media (max-width: 1280px) {
    .left-sidebar {
        width: 250px;
    }

    .page-wrapper[data-sidebartype='full'] .body-wrapper {
        margin-left: 250px;
    }
}

/* ==========================================
   Top navbar long titles fix
   ========================================== */

@media (min-width: 1200px) {
    #mainNav {
        align-items: center;
    }

    #mainNav .nav-link {
        height: auto !important;
        min-height: 45px;
        line-height: 1.15 !important;

        display: flex;
        align-items: center;
        justify-content: center;

        white-space: normal;
        text-align: center;

        padding: 0.35rem 0.65rem;
        max-width: 145px;
    }

    #mainNav .nav-item {
        display: flex;
        align-items: center;
    }
}












/* polje za pretragu na frontu */
.wp-floating-search {
    position: fixed;
    right: 24px;
    bottom: 14px;
    z-index: 1049;
    width: min(360px, calc(100vw - 48px));
}

.wp-floating-search .input-group {
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.wp-floating-search .form-control {
    background: #fff;
    border: 0;
    box-shadow: none !important;
    padding-left: 18px;
}

.wp-floating-search .form-control:focus {
    border: 0;
    box-shadow: none !important;
}

.wp-floating-search .btn {
    border: 0;
    border-radius: 0;
}

@media (max-width: 575.98px) {
    .wp-floating-search {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }
}

/* polje za feedback na frontu */
.wp-floating-feedback {
    position: fixed;
    left: 24px;
    bottom: 14px;
    z-index: 1051;
}

.wp-floating-feedback .btn {
    width: 48px;
    height: 48px;

    background: #006c56;
    border: 1px solid rgba(0,0,0,.12);
    color: #fff;

    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.wp-floating-feedback .btn:hover,
.wp-floating-feedback .btn:focus {
    background: #005b49;
    color: #fff;
}

@media (max-width: 575.98px) {
    .wp-floating-search {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 76px);
    }

    .wp-floating-feedback {
        left: 12px;
        bottom: 8px;
    }

    .wp-floating-feedback .btn {
        width: 48px;
        height: 48px;
    }
}

.feedback-doc-info {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.feedback-doc-info a,
.feedback-doc-info span,
.feedback-doc-info div {
    overflow-wrap: anywhere;
    word-break: break-word;
}