﻿/* =========================================================
   tabela_stil_experience.css
   Spisak proizvoda / potvrda / PDF-Excel dugmad

   TEST VERZIJA:
   Žuta pozadina služi samo da proverimo da li se CSS učitava.
========================================================= */


/* =========================================================
   SLIKE U TABELI
========================================================= */

.slika_1 {
    width: 17.5px;
    height: 35px;
}

.slika_2 {
    width: 35px;
    height: 35px;
}

.slika_2v {
    width: 35px;
    height: 65px;
}

.slika_22 {
    width: 85px;
    height: 35px;
}

.slika_- {
    width: 35px;
    height: 35px;
}

.slika_3 {
    width: 45px;
    height: 35px;
}

.slika_33 {
    width: 45px;
    height: 45px;
}

.slika_333 {
    width: 100px;
    height: 35px;
}

.slika_4 {
    width: 55px;
    height: 35px;
}

.slika_6 {
    width: 60px;
    height: 25px;
}

.slika_7 {
    width: 85px;
    height: 35px;
}


/* =========================================================
   TABELA NAVIGACIJA
========================================================= */

.tabela_navigacija {
    font-family: Arial, sans-serif;
    text-align: center;
    font-weight: bold;
    padding: 3px;
}

.tabela_navigacija td {
    width: 8.3%;
    padding: 3px;
    font-size: 12px;
}


/* =========================================================
   NASLOV SPISKA PROIZVODA
========================================================= */

.naslov_proizvoda {
    font-size: 24px;
    line-height: 1.15;
    color: #003f9e !important;
    font-weight: 800;
    clear: left;
    padding: 8px 10px !important;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;

    /* TEST BOJA */
    background: #f8fafc !important;
	border-left: 5px solid #ce1808 !important;
    border-radius: 4px;
}


/* =========================================================
   TABELA PROIZVODA - TEST VERZIJA
========================================================= */

.tabela_proizvoda_potvrda {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    font-family: Arial, sans-serif !important;

    /* TEST BOJA */
    background: #ffffff !important;
	border: 1px solid #dfe4ea !important;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12) !important;
}

.tabela_proizvoda_potvrda th {
    background: linear-gradient(#f8fafc, #e6e9ee) !important;
    color: #4b5563 !important;
    border-top: none !important;
    border-bottom: 1px solid #d0d5dd !important;
    border-left: 1px solid #dfe4ea !important;
    border-right: 1px solid #dfe4ea !important;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 11px 7px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.tabela_proizvoda_potvrda td {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    vertical-align: middle !important;
    padding: 8px 7px !important;
    font-size: 13px !important;
    color: #111827 !important;
}

.tabela_proizvoda_potvrda tr:nth-child(even) td {
    background: #fafafa !important;
}

.tabela_proizvoda_potvrda tr:hover td {
    background: #eef6ff !important;
}


/* Opis proizvoda levo */
.tabela_proizvoda_potvrda td:nth-child(2) {
    text-align: left !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
}


/* Ostale kolone centrirane */
.tabela_proizvoda_potvrda td:not(:nth-child(2)),
.tabela_proizvoda_potvrda th {
    text-align: center !important;
}


/* Količina */
.tabela_proizvoda_potvrda td:nth-child(5) {
    font-weight: 700 !important;
    color: #003f9e !important;
}


/* Količina x cena */
.tabela_proizvoda_potvrda td:nth-child(6) {
    font-weight: 700 !important;
    white-space: nowrap !important;
}


/* Slike u tabeli */
.tabela_proizvoda_potvrda td img {
    max-width: 75px !important;
    max-height: 45px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    border-radius: 5px !important;
}


/* =========================================================
   UKUPNE CENE
========================================================= */

.cene_ukupno {
    text-align: right !important;
    border-bottom: solid 1px #e5e7eb !important;
    border-top: none !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 9px 2px 8px 2px !important;
    color: #111827 !important;
    line-height: 1.35 !important;

    /* TEST BOJA */
    background: #ffffff !important;
}


/* =========================================================
   DUGMAD PDF / EXCEL
========================================================= */

.wrapper-dugmad {
    width: 100% !important;
    padding-top: 14px !important;
    clear: both !important;
}

.wrapper-pdf {
    float: left !important;
    width: 45% !important;
    text-align: right !important;
}

.wrapper-sredina {
    float: left !important;
    width: 10% !important;
    min-height: 20px !important;
}

.wrapper-excel {
    float: left !important;
    width: 45% !important;
    text-align: left !important;
}

.neko_dugme {
    min-width: 145px !important;
    background-image: linear-gradient(#68c36c, #43a047) !important;
    border: 1px solid #2d6930 !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 4px 2px !important;
    border-radius: 6px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25) !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease !important;
}

#neko_dugme1 {
    background-image: linear-gradient(#ff6f66, #ef3f35) !important;
    background-color: #ef3f35 !important;
    border: 1px solid #c9281f !important;
}

.neko_dugme:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.04) !important;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28) !important;
}


/* =========================================================
   RESPONSIVE - DO 1100px
========================================================= */

@media only screen and (max-width: 1100px) {
    .naslov_proizvoda {
        font-size: 21px !important;
    }

    .tabela_proizvoda_potvrda th {
        font-size: 12px !important;
        padding: 9px 6px !important;
    }

    .tabela_proizvoda_potvrda td {
        font-size: 12px !important;
        padding: 7px 6px !important;
    }

    .neko_dugme {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}


/* =========================================================
   RESPONSIVE - DO 900px
========================================================= */

@media only screen and (max-width: 900px) {
    .tabela_proizvoda_potvrda th {
        font-size: 11px !important;
        padding: 8px 5px !important;
    }

    .tabela_proizvoda_potvrda td {
        font-size: 11px !important;
        padding: 7px 5px !important;
    }

    .cene_ukupno {
        font-size: 12px !important;
    }

    .neko_dugme {
        padding: 9px 17px !important;
        font-size: 13px !important;
    }
}


/* =========================================================
   RESPONSIVE SLIKE - DO 780px
========================================================= */

@media only screen and (max-width: 780px) {
    .slika_1 {
        width: 10px;
        height: 20px;
    }

    .slika_2 {
        width: 20px;
        height: 20px;
    }

    .slika_2v {
        width: 20px;
        height: 38px;
    }

    .slika_22 {
        width: 46px;
        height: 20px;
    }

    .slika_- {
        width: 20px;
        height: 20px;
    }

    .slika_3 {
        width: 25px;
        height: 20px;
    }

    .slika_33 {
        width: 25px;
        height: 25px;
    }

    .slika_333 {
        width: 50px;
        height: 20px;
    }

    .slika_4 {
        width: 44px;
        height: 20px;
    }

    .slika_6 {
        width: 48px;
        height: 20px;
    }

    .slika_7 {
        width: 53px;
        height: 24px;
    }
}


/* =========================================================
   RESPONSIVE - DO 700px
========================================================= */

@media only screen and (max-width: 700px) {
    .tabela_proizvoda_potvrda th {
        font-size: 10px !important;
        padding: 7px 4px !important;
    }

    .tabela_proizvoda_potvrda td {
        font-size: 10px !important;
        padding: 7px 4px !important;
    }

    .neko_dugme {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
}


/* =========================================================
   RESPONSIVE - DO 670px
   Na malom ekranu ostaju:
   BR. | OPIS | KOLIČINA | KOLIČINA x CENA

   Sakrivamo:
   3 = KAT.BROJ
   4 = CENA
   7 = SLIKA
========================================================= */

@media only screen and (max-width: 670px) {
    .tabela_proizvoda_potvrda th:nth-child(3),
    .tabela_proizvoda_potvrda td:nth-child(3),
    .tabela_proizvoda_potvrda th:nth-child(4),
    .tabela_proizvoda_potvrda td:nth-child(4),
    .tabela_proizvoda_potvrda th:nth-child(7),
    .tabela_proizvoda_potvrda td:nth-child(7),
    .tabela_proizvoda_potvrda #slika {
        display: none !important;
    }

    .tabela_proizvoda_potvrda {
        width: 100% !important;
        table-layout: auto !important;
        box-shadow: none !important;
    }

    .tabela_proizvoda_potvrda th {
        font-size: 10px !important;
        padding: 7px 4px !important;
    }

    .tabela_proizvoda_potvrda td {
        font-size: 10px !important;
        padding: 7px 4px !important;
    }

    .tabela_proizvoda_potvrda td:nth-child(2) {
        min-width: 120px !important;
        line-height: 1.25 !important;
    }

    .tabela_proizvoda_potvrda th:nth-child(1),
    .tabela_proizvoda_potvrda td:nth-child(1) {
        width: 28px !important;
    }

    .tabela_proizvoda_potvrda th:nth-child(5),
    .tabela_proizvoda_potvrda td:nth-child(5) {
        width: 52px !important;
    }

    .tabela_proizvoda_potvrda th:nth-child(6),
    .tabela_proizvoda_potvrda td:nth-child(6) {
        width: 85px !important;
        white-space: nowrap !important;
    }

    .cene_ukupno {
        text-align: left !important;
        font-size: 12px !important;
        padding: 8px 4px !important;
        margin-left: 0 !important;
    }
}


/* =========================================================
   RESPONSIVE - DO 585px
========================================================= */

@media only screen and (max-width: 585px) {
    .wrapper-sredina {
        display: none !important;
    }

    .wrapper-pdf,
    .wrapper-excel {
        float: none !important;
        width: 100% !important;
        text-align: center !important;
        margin-left: 0 !important;
    }
}


/* =========================================================
   RESPONSIVE - DO 500px
========================================================= */

@media only screen and (max-width: 500px) {
    .naslov_proizvoda {
        font-size: 19px !important;
    }

    .tabela_proizvoda_potvrda th {
        font-size: 9px !important;
        padding: 6px 3px !important;
    }

    .tabela_proizvoda_potvrda td {
        font-size: 9px !important;
        padding: 6px 3px !important;
    }

    .tabela_proizvoda_potvrda td:nth-child(2) {
        min-width: 105px !important;
    }

    #neko_dugme1,
    #neko_dugme2 {
        float: none !important;
        width: 80% !important;
        max-width: 240px !important;
        padding: 11px 12px !important;
        font-size: 13px !important;
        margin: 7px auto !important;
        display: block !important;
    }
}


/* =========================================================
   RESPONSIVE - DO 390px
========================================================= */

@media only screen and (max-width: 390px) {
    .tabela_proizvoda_potvrda th {
        font-size: 8px !important;
        padding: 5px 2px !important;
    }

    .tabela_proizvoda_potvrda td {
        font-size: 8px !important;
        padding: 5px 2px !important;
    }

    .tabela_proizvoda_potvrda td:nth-child(2) {
        min-width: 95px !important;
    }

    .tabela_proizvoda_potvrda th:nth-child(6),
    .tabela_proizvoda_potvrda td:nth-child(6) {
        width: 75px !important;
        white-space: normal !important;
    }

    .cene_ukupno {
        font-size: 11px !important;
    }
}