/* Miligram overrides */

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
}

.container {
    max-width: max-content; /* org 118rem */
}

.top-nav-links,
.side-nav,
h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: #363637;
}

a {
    color:#2f85ae;
    -webkit-transition:all 0.2s linear;
    transition:all 0.2s linear;
}

a:hover,
a:focus,
a:active  {
    color:#2a6496;
    -webkit-transition:all 0.2s easeout;
    transition:all 0.2s ease-out;
}

.side-nav a,
.top-nav-links a,
th a,
.actions a {
    color: #606c76;
}

.side-nav a:hover,
.side-nav a:focus,
.actions a:hover,
.actions a:focus {
    color:#2f85ae;
}

/* Utility */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.unos-nov{ background-color: #ffa50047; }
.unos-ok{ background-color: #0da80d14; }
.unos-neresen{ background-color: #f3aaaa82; }

/* Main */
body {
    background: #f5f7fa;
}
.content {
    padding: 2rem;
    background: #ffffff;
    border-radius: 0.4rem;
    /* Thanks Stripe */
    box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1),
        0 3px 6px 0 rgba(0, 0, 0, 0.07);
}
.actions a {
    font-weight: bold;
    padding: 0 0.4rem;
}
th {
    white-space: nowrap;
}

/* Nav bar */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 112rem;
    padding: 2rem;
    margin: 0 auto 2rem;
}
.top-nav-title a {
    font-size: 2.4rem;
    color: #d33c43;
}
.top-nav-title span {
    color: #404041;
}
.top-nav-links a {
    margin: 0 0.5rem;
}
.top-nav-title a,
.top-nav-links a {
    font-weight: bold;
}

.side-nav-item {
    display: block;
    padding: 0.5rem 0;
}

/* View action */
.view.content .text {
    margin-top: 1.2rem;
}
.related {
    margin-top: 2rem;
}

/* Flash messages */
.message {
    padding: 1rem;

    background: #eff8ff;
    color: #2779bd;

    border-color: #6cb2eb;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    margin-bottom: 2rem;
}
.message.hidden {
    display: none;
}
.message.success {
    background: #e3fcec;
    color: #1f9d55;
    border-color: #51d88a;
}
.message.error {
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
}
.message.info {
    background: #f7e8d0;
    color: #b07619;
    border-color: #b07619;
}

/* body > Content  */
body .main .container > .content .table-responsive table > tbody{
    font-size: 12px;
}

body .main .container > .content .table-responsive table > tbody > tr:hover {
    background-color: #fa001a0d; 
}
body .main .container > .content .table-responsive table > tbody > tr:active {
    background-color: #fa001a0d; 
}
/* Forms - Unos index (napredna pretraga) */
.unos.index.content .unos-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.6rem;
}

.unos.index.content .unos-header h3 {
    margin: 0;
}

.unos.index.content .unos-top-actions {
    display: flex;
    gap: 0.8rem;
}

.unos.index.content .top-action {
    border: 0;
    border-radius: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
    text-transform: uppercase;
}

.unos.index.content .top-action-red {
    background: #d83a3a;
    color: #fff;
}

.unos.index.content .top-action-red:hover,
.unos.index.content .top-action-red:focus {
    background: #be2f2f;
    color: #fff;
}

.unos.index.content .searchBar {
    border: 1px solid #d9e0e6;
    border-radius: 0.8rem;
    margin-bottom: 1.2rem;
}

.unos.index.content #naprednaPretraga {
    background: #f8fafb;
    border: 1px solid #e4eaee;
    border-radius: 1.2rem;
    margin-bottom: 1.2rem;
    padding: 1.4rem;
}

.unos.index.content .napredna-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.unos.index.content .napredna-card {
    background: #fff;
    border: 1px solid #e6ecef;
    border-radius: 1rem;
    padding: 1.1rem;
}

.unos.index.content .napredna-card h4 {
    border-bottom: 2px solid #e8efea;
    color: #1f2d3a;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: 0.7rem;
}

.unos.index.content .filter-field {
    margin-bottom: 0.9rem;
}

.unos.index.content .filter-field:last-child {
    margin-bottom: 0;
}

.unos.index.content .filter-field > label {
    color: #324252;
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.unos.index.content #naprednaPretraga .date-range {
    align-items: center;
    display: flex;
    gap: 0.6rem;
}

.unos.index.content #naprednaPretraga input,
.unos.index.content #naprednaPretraga select,
.unos.index.content #naprednaPretraga .chosen-single {
    border-radius: 0.6rem;
}

.unos.index.content .chosen-container {
    width: 100% !important;
}

.unos.index.content .foto-inline .input.checkbox {
    margin: 0;
}

.unos.index.content .komandnaLinija {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.unos.index.content .form-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.unos.index.content .form-buttons button,
.unos.index.content .form-buttons input[type="submit"] {
    border-radius: 0.8rem;
    margin: 0;
    min-height: 3.8rem;
}

.unos.index.content #submitForm {
    background: #1f8e48;
    border-color: #1f8e48;
    color: #fff;
}

.unos.index.content #toggleNaprednaPretraga {
    background: #f1f5f8;
    border-color: #d3dde5;
    color: #203040;
}

.unos.index.content .status-panel {
    min-width: 230px;
}

.unos.index.content .status-panel .input.select {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .unos.index.content .napredna-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .unos.index.content .unos-header {
        align-items: stretch;
        flex-direction: column;
    }

    .unos.index.content .unos-top-actions {
        width: 100%;
    }

    .unos.index.content .top-action {
        text-align: center;
        width: 100%;
    }

    .unos.index.content .napredna-grid {
        grid-template-columns: 1fr;
    }

    .unos.index.content .komandnaLinija {
        align-items: stretch;
        flex-direction: column;
        gap: 0.8rem;
    }

    .unos.index.content .status-panel {
        min-width: 0;
    }
}


.input.radio,
.input.checkbox {
    margin-bottom: 2.0rem;
}
.input.radio input,
.input.checkbox input {
    margin: 0;
}
.input.radio label,
.input.checkbox label {
    margin: 0;
    display: flex;
    align-items: center;
}
.input.radio label > input,
.input.checkbox label > input {
    margin-right: 1.0rem;
}
.input.radio label:first-of-type {
    margin-bottom: 2.0rem;
}

.input.checkbox input {
    /* Double-sized Checkboxes */
    -ms-transform: scale(1.5); /* IE */
    -moz-transform: scale(1.5); /* FF */
    -webkit-transform: scale(1.5); /* Safari and Chrome */
    -o-transform: scale(1.5); /* Opera */
    transform: scale(1.5);
    padding: 20px;
    width: 20px;
    position: relative;
    top:10px;
    vertical-align: middle;
}

div.unos td:first-child, th:first-child {
    padding:10px;
}

/* Paginator */
.paginator {
    text-align: right;
}
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.pagination li {
    margin: 0 0.5rem;
}
.prev.disabled a,
.next.disabled a {
    cursor: not-allowed;
    color: #606c76;
}
.asc:after {
    content: " \2193";
}
.desc:after {
    content: " \2191";
}

/* Error */
.error-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
}

/* Erro isFieldRequired */
.error {
    border-color: #ff0000; /* Crvena boja */
}

/* Zoom slike direktno u view-u */
#uvecanjeModal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999; /* Postavite visok z-index kako bi bio iznad drugih elemenata */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-sadrzaj {
    position: relative;
    display: flex;
    max-width: 600px; /* Postavite maksimalnu širinu po potrebi */
    max-height: 80%;
    top: 100px;
    margin: auto; 
    border: 5px solid #dc354554; /* Debeli border */
    border-radius: 15px; /* Zaobljeni uglovi */
}

/* Dodajte stil za sliku u red sa ostalim slikama */
.thumbnail {
    width: 50px;
    height: 50px;
    cursor: pointer;
    position: relative; 
}

/* Dodajte stil za uvećanu sliku */
.thumbnail:focus {
    border: 2px solid #007bff; 
}

.zatvori {
    color: white;
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 30px;
    cursor: pointer;
}

.zatvoriProzor{
    color: black;
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 30px;
    cursor: pointer;
}
/* Dodatni prozor za DB promene */ 

.uvecanjeModalPozadina {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999; /* Postavite visok z-index kako bi bio iznad drugih elemenata */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.dodatniProzorOkvir{
    background-color: white;
    position: relative;
    display: flex;
    max-width: 600px; /* Postavite maksimalnu širinu po potrebi */
    max-height: 80%;
    top: 100px;
    margin: auto; 
    border: 5px solid #dc354554; /* Debeli border */
    border-radius: 15px; /* Zaobljeni uglovi */
}

.prozorSadrzaj{
    
}

.spisak-id{
    width:  100%;
    overflow: auto;
    white-space: normal;
}

/* Unos/add.php */
.polja label{
    margin-bottom: 0.5rem !important;
    margin-top: 1rem !important;
}

.form-div {
    width: 48%; 
    display: flex; 
     /*border: 1px solid red; */
    width: 100%; 
    padding:10px;
}

.mapa_info {
    /*border: 1px solid black;*/
}

.mapa_info h6 {
    margin: 0; 
    /*border: 1px solid black;*/
}

#mapdiv {
    min-height: 400px; 
    width: 50%; 
    border: 1px solid gray;
    padding:10px;
}

#dataDiv {
/*    height: 100%; */
    width: 50%; 
    border: 1px solid gray;
    padding:10px;
    display: flex;
    flex-direction: column;
}

.coordinate-mode-switch {
    /*display: flex;*/
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.coordinate-mode-switch span {
    font-weight: 600;
    line-height: 1.4;
    padding-top: 2px;
}

.coordinate-mode-switch label {
    margin: 0;
    /*display: inline-flex;*/
    align-items: center;
    gap: 6px;
    font-weight: 400;
    line-height: 1.4;
    font-size:14px;
}

.coordinate-mode-switch input {
    margin: 0;
    flex: 0 0 auto;
}

.coordinate-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
}

.coordinate-loading-overlay__content {
    min-width: 240px;
    padding: 18px 24px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.coordinate-loading-overlay__content p {
    margin: 12px 0 0;
    font-weight: 600;
}

.coordinate-loading-overlay__spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border: 3px solid rgba(0, 0, 0, 0.12);
    border-top-color: #2f6f4f;
    border-radius: 50%;
    animation: coordinate-loading-spin 0.8s linear infinite;
}

@keyframes coordinate-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

#dataDiv div > input {
    background-color: rgb(128 128 128 / 18%);
}

#dataDiv div > input.enabled {
    background-color: transparent;
}


.glavnaForma #datum {
    height: 2.8rem;

}

/* NAV-BAR korekcija */

a.dropdown-item {
    font-size: 16px;
}


@media screen and (max-width: 640px) {
    .top-nav {
        margin: 0 auto;
    }
    .side-nav {
        margin-bottom: 1rem;
    }
    .heading {
        margin-bottom: 1rem;
    }
    .side-nav-item {
        display: inline;
        margin: 0 1.5rem 0 0;
    }
    .asc:after {
        content: " \2192";
    }
    .desc:after {
        content: " \2190";
    }
}
