<!-- Print & Search -->
.method-anchor { scroll-margin-top: 100px; }
.search-highlight { background-color: #fff3cd; }
.sidebar .nav-link.active { background-color: #e9ecef; font-weight: bold; }
/* RESPONSIVE TABELA (divTable) – STACK NA MOBILNOM */
@media (max-width: 768px) {
	.divTable, .divTableBody, .divTableRow, .divTableCell {
		display: block !important;
	}
	.divTableRow {
		border: 1px solid #dee2e6;
		margin-bottom: 1rem;
		padding: 1rem;
		border-radius: 0.5rem;
	}
	.divTableCell {
		display: block;
		text-align: right;
		padding: 0.5rem 0;
		position: relative;
		padding-left: 50% !important;
		border: none !important;
	}
	.divTableCell:before {
		content: attr(data-label) ": ";
		position: absolute;
		left: 0.5rem;
		width: 45%;
		padding-right: 1rem;
		font-weight: bold;
		text-align: left;
	}
	.divTableCell[data-label]:before {
		content: attr(data-label) ": ";
	}
}

/* ISPRAVKA KONTRASTA – CRNI TEKST */
body, .container, .PDFPRINT, .divTableCell, p, h1, h2, h3, h4, h5, h6, code, .nav-link {
	color: #212529 !important;
}

/* Tabele – sigurnosna mreža */
.divTable, .divTableBody, .divTableRow, .divTableCell {
	color: #212529 !important;
	background-color: #fff !important;
}

/* Sidebar */
.sidebar { background-color: #f8f9fa !important; }
.sidebar .nav-link { color: #495057 !important; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { color: #007bff !important; background-color: #e9ecef !important; }

/* Navbar */
.navbar-brand, .nav-link { color: #343a40 !important; }
.navbar-brand:hover, .nav-link:hover { color: #007bff !important; }

/* Footer */
footer p, #footer p { color: #212529 !important; }
.footercontent { color: #f !important; }
.footercontent small { color: #6c757d !important; }

/* Search */
#searchInput { color: #212529 !important; }

/* Print */
@media print { body, .PDFPRINT * { color: #000 !important; background: white !important; } .no-print { display: none !important; } }

/* Mali ekran – sakrij sidebar, pokaži hamburger */
@media (max-width: 991px) {
	.sidebar { display: none; }
	.col-md-9 { width: 100% !important; }
}		

/* --- Header – identičan sa primerima --- */
.calc-header h1,
.calc-header p,
.calc-header .btn,
.calc-header .btn * {
    color: white !important;
}

.calc-header .btn-warning {
    background: #f39c12 !important;
    color: #1e3c72 !important;
    border: none !important;
}

.calc-header .btn-warning:hover {
    background: #e67e22 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .calc-header h1 {
        font-size: 2rem !important;
    }
    .calc-header p {
        font-size: 1rem !important;
    }
    .calc-header .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}


#searchBox {
	position: relative;
	margin-left: 20px;
}
#searchInput {
	width: 200px;
	padding: 6px 30px 6px 10px;
	font-size: 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	transition: width 0.3s ease;
}
#searchInput:focus {
	width: 250px;
	outline: none;
	border-color: #D24000;
}
#searchResults {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid #ddd;
	border-top: none;
	max-height: 300px;
	overflow-y: auto;
	z-index: 1000;
	display: none;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.search-result-item {
	padding: 8px 12px;
	cursor: pointer;
	font-size: 14px;
	border-bottom: 1px solid #eee;
}
.search-result-item:hover {
	background-color: #f8f9fa;
}
.search-result-item strong {
	color: #D24000;
}
#searchCount {
	font-size: 12px;
	color: #666;
	margin-top: 5px;
	text-align: right;
}
.no-results {
	padding: 12px;
	color: #999;
	font-style: italic;
}
@media (max-width: 768px) {
	#searchBox { margin-left: 10px; }
	#searchInput { width: 150px; }
	#searchInput:focus { width: 180px; }
}
#searchBox .btn {
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

#searchBox .btn:hover {
    background: #D24000;
    color: white;
    border-color: #D24000;
}

#searchBox .btn i {
    pointer-events: none;
}

@media (max-width: 768px) {
    #searchBox .btn {
        padding: 5px 8px;
        font-size: 13px;
    }
    #searchBox .btn i {
        font-size: 14px;
    }
}

/* --- Umanjen i elegantniji footer --- */
#footer {
    font-size: 0.875rem !important;
    line-height: 1.5;
    padding: 1.5rem 1rem;
}

.footercontent {
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem;
}

.footercontent small,
#footer p.small {
    font-size: 0.75rem !important;
    color: #6c757d !important;
    line-height: 1.4;
}

#footer .text-center {
    text-align: center !important;
}

@media (max-width: 576px) {
    #footer {
        font-size: 0.8rem !important;
        padding: 1rem 0.5rem;
    }
    .footercontent small {
        font-size: 0.7rem !important;
    }
}
/* === Kontrole ispod hedera === */
.header-controls {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin: 0 !important;
}

.header-controls #searchInput {
    border-color: #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-controls #searchInput:focus {
    width: 280px;
    border-color: #D24000;
    box-shadow: 0 0 0 3px rgba(210,64,0,0.15);
}

.header-controls #searchResults {
    top: calc(100% + 4px);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-controls .search-result-item:hover {
    background: #f8f9fa;
}

/* Responsivno */
@media (max-width: 768px) {
    .header-controls {
        padding: 10px;
    }
    .header-controls #searchInput {
        width: 160px !important;
        font-size: 13px;
    }
    .header-controls #searchInput:focus {
        width: 200px !important;
    }
    #printPdfBtn {
        padding: 7px 10px;
        font-size: 13px;
    }
    #printPdfBtn i {
        font-size: 14px;
    }
}

/* Sakrij pri štampi */
@media print {
    .header-controls, .no-print {
        display: none !important;
    }
}
#searchResults {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}
.result-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.result-item:hover {
    background: #f8f9fa;
}
.result-item:last-child {
    border-bottom: none;
}

.search-highlight { background:#ffeaa7 !important; padding:0 2px; border-radius:2px; }

/* ============================================= */
/*   MAKSIMALNA ŠIRINA – PUN EKRAN, ALI ČITLJIVO   */
/* ============================================= */

/* 2. Glavni sadržaj – puna širina */
main.col-md-9,
.col-md-9.ms-sm-auto {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* 4. Na mobilnom – sidebar se pojavi preko hamburgera */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100%;
        z-index: 1050;
        transition: left 0.3s ease;
        background: #f8f9fa;
        overflow-y: auto;
    }
    .sidebar.show {
        left: 0;
    }
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        display: none;
    }
    .sidebar-overlay.show {
        display: block;
    }
}

/* 5. Hamburger dugme za mobilni */
#sidebarToggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1060;
    background: #D24000;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(210,64,0,0.3);
}

@media (max-width: 991px) {
    #sidebarToggle {
        display: block;
    }
}

        /* -------------------------------------------------
           DUGME „NAZAD NA GRUPE METODA“ – BELE IKONE
           ------------------------------------------------- */
        .btn-back {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            font-family: 'Roboto', sans-serif;
            font-size: 0.95rem;
            font-weight: 500;
            color: #1e3c72; /* Tekst ostaje tamno plavi */
            background: #f39c12;
            border: none;
            border-radius: 50px;
            text-decoration: none;
            box-shadow: 0 4px 12px rgba(243,156,18,.35);
            transition: all .3s ease;
            cursor: pointer;
        }

        /* BELE IKONE */
        .btn-back i {
            color: white;
            font-size: 1.1rem;
            transition: transform .3s ease;
        }

        .btn-back span {
            white-space: nowrap;
        }

        /* HOVER EFEKTI */
        .btn-back:hover {
            background: #e67e22;
            color: white; /* Tekst postaje beo na hover */
            transform: translateY(-3px);
            box-shadow: 0 6px 18px rgba(243,156,18,.5);
        }

        .btn-back:hover i:first-child {
            transform: translateX(-4px);
        }

        .btn-back:hover i:last-child {
            transform: rotate(15deg);
        }
@media (max-width: 768px) {
    .header-controls > div {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-back {
        justify-content: center;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    .btn-back span { font-weight: 600; }
}