@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

/* ===== SPINNER / LOADER KOMPONENTA ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-icon {
    animation: spin 1s linear infinite;
}

.btn-loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn-loading .original-content {
    visibility: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-loading.btn-outline-primary::after,
.btn-loading.btn-outline-secondary::after {
    border-top: 2px solid #007bff;
}
/* ===== END SPINNER / LOADER KOMPONENTA ===== */
*,
.form-control,
.sidebar .nav-link,
div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label,
.dropdown-item,
h1, h2, h3, h4, h5, h6,
.custom-select {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 300;
}

/* ver 2.0 - manji razmaci i slova */
html {
    font-size: 95%; 
}
 label {
    margin-bottom: .3rem;
 }

/* Stilovi za izbor tipa računa */
.racun-tip-selector {
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
}

/* Stilovi za odabir tipa računa na glavnoj stranici (unos_racuna.php) */
.tip-racuna-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tip-racuna-card:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

.tip-racuna-b2b:hover {
    border-color: #5e4f90;
    box-shadow: 0 4px 15px rgba(94,79,144,0.2);
}

.tip-racuna-b2c:hover {
    border-color: #BE3E0D;
    box-shadow: 0 4px 15px rgba(190,62,13,0.2);
}

.tip-racuna-arhiva:hover {
    border-color: #6c757d;
    box-shadow: 0 4px 15px rgba(108,117,125,0.2);
}

.icon-24 {
    font-size: 24px;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.icon-32 {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.tip-racuna-card .icon-large {
    font-size: 48px;
    margin-bottom: 15px;
    width: 48px !important;
    height: 48px !important;
}

.tip-racuna-card .custom-building-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
}

.tip-racuna-card .custom-building-icon svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Fiksni stil za sve SVG ikone u tip-racuna-card */
.tip-racuna-card svg {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    flex-shrink: 0 !important;
}

/* Mobile sidebar styles */
@media (max-width: 767.98px) {
    /* Hide navbar brand (logo/company name) on mobile */
    .navbar-brand {
        display: none !important;
    }
    
    /* Center hamburger menu vertically */
    #sidebarToggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 38px;
        margin-left: 10px;
    }
    
    /* Fix main content spacing on mobile - add more space from top */
    main[role="main"] {
        margin-top: 20px !important;
        padding-top: 20px !important;
    }
    
    #sidebar {
        display: block !important; /* Override d-none */
        position: fixed;
        top: 38px; /* Directly below navbar */
        left: -100%;
        width: 280px;
        height: calc(100vh - 38px);
        z-index: 1040;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 10px !important; /* Override dashboard.css 48px padding */
    }
    
    #sidebar .sidebar-sticky {
        padding-top: 0 !important; /* Remove sticky padding */
    }
    
    #sidebar.show {
        left: 0;
    }
    
    #sidebar-overlay {
        position: fixed;
        top: 38px;
        left: 0;
        width: 100%;
        height: calc(100vh - 38px);
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1039;
        display: none;
    }
    
    #sidebar-overlay.show {
        display: block;
    }
}
/* End of Mobile sidebar styles */

.tip-racuna-card h4 {
    margin: 0;
    font-weight: 600;
}

.tip-racuna-card p {
    margin: 8px 0 0;
    font-size: 14px;
}
/* Kraj stilova za odabir tipa računa */

.racun-tip-selector .btn-group .btn {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 6px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.racun-tip-selector .btn:last-child {
    margin-right: 0;
}

.racun-tip-selector .b2c-btn {
    border-color: #0D8DBE;
    color: #0D8DBE;
}

.racun-tip-selector .b2c-btn.active,
.racun-tip-selector .b2c-btn:hover {
    background-color: #0D8DBE;
    border-color: #0D8DBE;
    color: white;
}

.racun-tip-selector .arhiva-btn {
    border-color: #6c757d;
    color: #6c757d;
}

.racun-tip-selector .arhiva-btn.active,
.racun-tip-selector .arhiva-btn:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}
        
.footer {
    padding-top: 20px;
    padding-bottom: 20px;
    color: #777;
}
.header-text {
    padding-top: 10px;
    padding-bottom: 10px;
    font-weight: 500;
    color: #232323;
}
h1, h2 {
    text-decoration: uppercase;
    font-weight: 400;
    color: #0D8DBE;
}
h2, h3 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: 400;
    color: #0D8DBE;
}
h4, h5, h6 {
    margin: 15px 0px;
}
.text-grey {
    color: #777;
}
.text-light-grey {
    color: #999!important;
}
.text-blue {
    color: #0D8DBE!important;
}
.text-red {
    color: #BE0D34!important;
}
.text-orange {
    color: #BE3E0D!important;
}
.text-purple {
    color: #5e4f90!important;
}
.text-normal {
    color: #212529;
}
.text-green {
    color: #155724 !important;
}

.form-control {
    padding: 6px 10px;
}
.custom-select {
    padding: .375rem 1.75rem .375rem .75rem;    
}
.bg-dark {
    background-color: #777!important;
}
.alert {
    margin-bottom: 20px;
}
.shadow {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

a.icon-link:link, a.icon-link:visited {
    text-decoration: none;
    color: #999;
}
a.icon-link:hover {
    text-decoration: none;
    color: #212529;
}
a:link, a:visited {
    text-decoration: none;
    color: #212529;
}
a:hover {
    text-decoration: underline;
    color: #212529;
}
a.dropdown-toggle:hover {
    text-decoration: none;
    cursor: pointer;
}
a>code:hover {
    text-decoration: underline;
    cursor: pointer;
}
.sidebar .nav-link.active {
    color: #BE3E0D;
}
.page-item.active .page-link {
    background-color: #0D8DBE;
    border-color: #0D8DBE;
}

/* Top navigation - select godina */
.select-godina {
    height: 38px;
    width: 70px;
    background-color: transparent;
    border: 0px;
}

select.select-godina option {
    color: black;
}

/* Form customizations */
.custom-select:disabled, .custom-select {
    color: #212529;
    font-size: 1rem;
}
select:disabled {
    opacity: 1;
}
.form-control:disabled, .form-control[readonly], .custom-select:disabled, .custom-file-input[disabled]~.custom-file-label {
    background-color: #f8f9fa;
}
.form-control:focus {
    border-color: #8E9DC1;
    box-shadow: 0 0 0 0.2rem rgb(142 157 193 / 25%);
}
.custom-select:focus {
    border-color: #8E9DC1;
    box-shadow: 0 0 0 0.2rem rgb(142 157 193 / 25%);
}

/* DataTables customizations */
.dataTables_length select.custom-select {
    height: auto!important;
    font-size: 0.95rem;
}
div.data-export {
    margin-top: 30px;
}

/* Feather Icons sizes */
.feather-16 {
    width: 16px!important;
    height: 16px!important;
}
/* Feather Icons sizes */
.feather-20 {
    width: 20px!important;
    height: 20px!important;
}
.feather-23 {
    width: 23px!important;
    height: 23px!important;
}
.feather-32 {
    width: 32px!important;
    height: 32px!important;
}
.feather-40 {
    width: 32px!important;
    height: 32px!important;
}
.feather-48 {
    width: 48px!important;
    height: 48px!important;
}
.feather-64 {
    width: 64px!important;
    height: 64px!important;
}

/* Custom alert styles */
.alert-custom-success {
    background-color: white;
    color: #155724;
    border: 1px solid #155724;
}

.alert-custom-danger {
    background-color: white;
    color: #BE0D34;
    border: 1px solid #BE0D34;
}

/* Placeholder styling */
.form-control::placeholder {
    font-style: italic;
    font-size: 0.9em;
    color: #999;
}

/* TypeAhead customizations */
.typeahead__container input.disabled, .typeahead__container input[disabled], .typeahead__container button.disabled, .typeahead__container button[disabled] {
    opacity: 1;
    background-color: #f8f9fa;
}
.typeahead__list.empty > li, .typeahead__item > a, .typeahead__dropdown .typeahead__dropdown-item > a, typeahead__result {
    font-family: 'Ubuntu', sans-serif;
    color: #495057;
}
.typeahead__field input, .typeahead__field textarea, .typeahead__field [contenteditable], .typeahead__field .typeahead__hint {
    font-family: 'Ubuntu', sans-serif;
    color: #495057;
    border-radius: 0.25rem;
}

/* Custom checkbox */

/* Customize the label (the container) */
.custom-checkbox {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    margin-top: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 23px;
    width: 23px;
    background-color: #eee;
}

/* On mouse-over, add a grey background color */
.custom-checkbox:hover input ~ .checkmark {
    background-color: #e2e2e2;
}

/* When the checkbox is checked, add a grey background */
.custom-checkbox input:checked ~ .checkmark {
    background-color: #aaa;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.custom-checkbox .checkmark:after {
    left: 9px;
    top: 3px;
    width: 6px;
    height: 13px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* End Of Custom checkbox */

input[type='radio'] {
    accent-color: #0d8dbe;
    width: 1.25em;
    height: 1.25em;
}

.custom-file-label {
    overflow: hidden;
    text-wrap: nowrap;
}

.rbr-stavka-racuna {
    margin: -0.6rem 0 0.6rem 0;
    color: #999;
    text-transform: uppercase;
    font-size: x-small;
}

.table-borderless td, .table-borderless tr, .table-borderless {
    border: none;
}

.print-button {
    position:fixed;
    top:0px;
    left:0px;
    width: 70px;
    height: 70px;
    border-radius: 35px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 5px 10px 18px #888888;
    margin: 7mm;
}

.print-button:hover {
    background-color: #f8f8f8;
}

.pdf-button {
    top: 80px;
}

.email-button {
    top: 160px;
}

.close-button {
    top: 0px;
    left: auto;
    right: 0px;
}

/* Tooltip text */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
}
/* End of Tooltip text */

code {
    color: inherit;
    background-color: #f8f9fa;
    border: 1px solid #CCC;
    border-radius: 3px;
    padding: 3px 5px;
}
.code2 {
    color: #BE3E0D;
    background-color: transparent;
    border: none;
    padding: 2px;
}
.code-big {
    font-size: 1rem;
    padding: 10px 12px;
    border-radius: 5px;
}
.page-header {
    font-size: 40px;
    font-weight: 500;
    color: #232323;
}
.shape1 {
    min-height: 650px;
    position: relative;
    z-index: 1;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    height: auto;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.p-btn {
    display: inline-block;
    padding: 10px 50px !important;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    transition: 0.3s;
    margin: 10px 0px;
    cursor: pointer;
}

.p-btn-small {
    display: inline-block;
    padding: 5px 20px !important;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 500;
    border: none;
    transition: 0.3s;
    margin: 10px 0px;
    cursor: pointer;
}

.button-std {
    display: inline-block;
    padding: 10px 50px !important;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    transition: 0.3s;
    margin: 10px 0px;
    cursor: pointer;
    background: #0d8dbe;
    color: #ffffff !important;
}
.button-std:hover {
    background: #0A7198;
    color: #ffffff;
}

.button-grey {
    background: #e8e9ea;
    color: #555 !important;
}
.button-grey:hover {
    background: #d8d9da;
    color: #555;
}

.button-orange {
    background: #BE3E0D;
    color: #FFF !important;
}
.button-orange:hover {
    background: #A0330B;
    color: #FFF !important;
}

.btn-radio {
    color: #212529;
    background-color: #fff;
}
.btn-radio-hover {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}
.btn-radio-hover:hover {
    color: #212529;
    background-color: #e2e6ea;
    border-color: #dae0e5;
}
.btn-radio:hover, .btn-radio>div:hover {
    cursor: default !important;
}

/* Fix za autofill polja */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active{
    font-family: 'Ubuntu', sans-serif !important;
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    font-weight: 300 !important;
}
/* End of Fix za autofill polja */

#responseXhr {
    color: #0A7198;
    font-weight: 400;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out, padding 0.5s ease-out;
}

#responseXhr.show {
    max-height: 200px;
    opacity: 1;
    padding: 10px 0px;
}

a.page-link:hover {
    color: #212529 !important;
}

/* Dodano 17. 12. 2025. - datalist input centriranje strelice */
.datalist-input::-webkit-calendar-picker-indicator {
    background-position: center;
    background-size: 16px 16px;
    padding: 2px;
    margin-top: -6px;
}

.datalist-input::-webkit-list-button {
    background-position: center;
    padding: 2px;
}

/* Custom building icon za B2B - feather style */
.custom-building-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    vertical-align: middle;
    line-height: 1;
}

.custom-building-icon.icon-24 {
    width: 24px;
    height: 24px;
}

.custom-building-icon svg {
    width: 100%;
    height: 100%;
    vertical-align: top;
}

/* Cursor pointer for clickable elements */
.cursor-pointer {
    cursor: pointer;
}

/* Number validation styling - hide success icon, keep green border */
.number-validation.is-valid {
    background-image: none !important;
    padding-right: 0.75rem !important; /* Standard Bootstrap padding instead of icon padding */
}