@charset "UTF-8";

.e-in-c {
	float: left;
}

#rfr {
	margin-top: 24px;
}

.invalid-cell {
	background-color: #7f1d1d !important;
	color: #fca5a5;
}

/* ==========================================
   RESPONZIVNOST ZA MOBILNE I TABLETE (<= 991px)
   ========================================== */
@media (max-width: 991px) {
    .data-card > .row:first-child {
        display: flex !important;
        flex-direction: column !important;
    }
 
    #c-filter.col-10,
    .data-card > .row:first-child > .col-2 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        box-sizing: border-box !important;
    }

    #frm {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    #c-filter .e-in-c {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px;
        box-sizing: border-box !important;
    }

    #c-filter .e-in-c input,
    #c-filter .e-in-c select,
    #c-filter .e-in-c .form-control,
    #c-filter .e-in-c .form-select,
    #c-filter .e-in-c button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
        float: none !important;
    }

    .data-card > .row:first-child > .col-2 {
        margin-top: 15px;
    }

    #btn-table {
        width: 100% !important;
        display: block !important; 
        margin: 0 !important;
        padding: 10px !important; 
    }

/* ----------------------------------------------------
       POSTAVKE TABLICE I HORIZONTALNOG SCROLLA (OPTIMIZIRANO)
       ---------------------------------------------------- */
    #c-table,
    #c-table.table-large {
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
        box-sizing: border-box !important;
    }

    #c-table table {
        min-width: 500px !important; /* Smanjeno sa 650px da skrolanje bude ugodnije */
        border-collapse: separate !important;
        border-spacing: 0 !important;
    }

    /* Fiksiranje 1. stupca (Izvor podataka) - Suzeno na 100px */
    #c-table table .col-sticky-1 {
        position: sticky !important;
        left: 0 !important;
        z-index: 8 !important;
        background-color: #ffffff !important;
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        font-size: 11px !important; /* Smanjen font radi ušteđevine prostora */
        line-height: 1.2 !important;
        padding: 6px 4px !important;
        word-break: break-word !important;
        border-right: 1px solid #dee2e6 !important;
    }

    /* Fiksiranje 2. stupca (Agregacija) - Suzeno na 120px */
    #c-table table .col-sticky-2 {
        position: sticky !important;
        left: 100px !important; /* MORA se podudarati sa širinom 1. stupca (100px)! */
        z-index: 7 !important;
        background-color: #ffffff !important;
        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        font-size: 11px !important; /* Smanjen font */
        line-height: 1.2 !important;
        padding: 6px 4px !important;
        word-break: break-word !important;
        border-right: 2px solid #061e42 !important; 
        box-shadow: 4px 0 6px -2px rgba(0, 0, 0, 0.12);
    }

    /* Zaglavlje (TH) za sticky stupce */
    #c-table table thead th.col-sticky-1,
    #c-table table thead th.col-sticky-2 {
        z-index: 10 !important;
        background-color: #f8fafc !important;
        font-size: 11px !important;
        text-transform: uppercase;
    }

    /* Ostale ćelije sa podacima (godine) u tablici */
    #c-table table td:not([class*="col-sticky"]),
    #c-table table th:not([class*="col-sticky"]) {
        font-size: 12px !important;
        padding: 6px 8px !important;
        white-space: nowrap !important;
    }

    /* Čišćenje ivica zbog 'border-collapse: separate' */
    #c-table table th,
    #c-table table td {
        border-bottom: 1px solid #dee2e6;
        border-right: 1px solid #dee2e6;
    }
}