
/* ==========================================
   TABLICA CJENIKA ROBE - 6 STUPACA
   ========================================== */

.tablica-robe-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

table.tablica-cjenika {
    display: table;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 20px 0;
    background: #ffffff;
    color: #303943;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

/* ==========================================
   ŠIRINE STUPACA
   ========================================== */

.tablica-cjenika th:nth-child(1),
.tablica-cjenika td:nth-child(1) { width: 34%; }

.tablica-cjenika th:nth-child(2),
.tablica-cjenika td:nth-child(2) { width: 11%; }

.tablica-cjenika th:nth-child(3),
.tablica-cjenika td:nth-child(3) { width: 8%; }

.tablica-cjenika th:nth-child(4),
.tablica-cjenika td:nth-child(4) { width: 8%; }

.tablica-cjenika th:nth-child(5),
.tablica-cjenika td:nth-child(5) { width: 17%; }

.tablica-cjenika th:nth-child(6),
.tablica-cjenika td:nth-child(6) { width: 22%; }

/* ==========================================
   ZAGLAVLJE
   ========================================== */

.tablica-cjenika thead th {
    padding: 13px 9px;
    background: #344b60;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #344b60;
    border-bottom: 3px solid #263a4c;
    overflow-wrap: anywhere;
}

.tablica-cjenika thead th:first-child {
    text-align: left;
}

/* ==========================================
   REDOVI I ĆELIJE
   ========================================== */

.tablica-cjenika tbody td {
    padding: 11px 9px;
    border: 1px solid #d8dee5;
    font-size: 14px;
    font-weight: 400;
    vertical-align: middle;
    overflow-wrap: anywhere;
    background: #ffffff;
}

.tablica-cjenika tbody td:first-child {
    text-align: left;
    font-weight: 500;
}

.tablica-cjenika tbody td:nth-child(n+2) {
    text-align: center;
    white-space: nowrap;
}

.tablica-cjenika tbody td:nth-child(5),
.tablica-cjenika tbody td:nth-child(6) {
    font-weight: 600;
}

/* Bazna cijena */

.tablica-cjenika td.bazna-cijena {
    font-size: 12px !important;
    color: #7b8794;
    font-weight: 400;
}

/* ==========================================
   NAIZMJENIČNA POZADINA I HOVER
   ========================================== */

.tablica-cjenika tbody tr:nth-child(even) td {
    background: #f5f7f9;
}

.tablica-cjenika tbody tr:hover td {
    background: #eaf1f6;
}

/* ==========================================
   MOBITELI I MANJI EKRANI
   ========================================== */

@media screen and (max-width: 900px) {

    .tablica-robe-scroll {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    table.tablica-cjenika {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        font-size: 11px;
    }

    /* Zaglavlja */
    table.tablica-cjenika thead th {
        padding: 7px 2px !important;
        font-size: 9px !important;
    }

    /* Naziv robe */
    table.tablica-cjenika tbody td:first-child {
        font-size: 10px !important;
    }

    /* Brojčani stupci */
    table.tablica-cjenika tbody td:nth-child(n+2) {
        font-size: 9px !important;
        padding: 7px 2px !important;
        white-space: normal;
        letter-spacing: -0.3px;
    }

    /* Bazna cijena */
    table.tablica-cjenika td.bazna-cijena {
        font-size: 9px !important;
    }
}
