/* ============================================================
   ADMIN.CSS – izoliran namespace: body.admin-page
   (obnovljena vizualna zasnova iz starega forms.css)
============================================================ */

/* GLOBAL RESET ZA ADMIN */
body.admin-page * {
    box-sizing: border-box;
    font-family: inherit;
}

/* =============================================
   ADMIN HEADER
============================================= */
body.admin-page .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

body.admin-page .admin-header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* =============================================
   ADMIN TABS
============================================= */
body.admin-page .admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

body.admin-page .admin-tabs a {
    background: #ddd;
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

body.admin-page .admin-tabs a.active {
    background: #999;
    color: #fff;
    font-weight: bold;
}

/* =============================================
   STANDARDNA POLJA (input, select)
============================================= */

body.admin-page .field {
    position: relative;
    flex: 0 0 auto;
    max-width: 180px;
    margin-bottom: 0;
}

body.admin-page .field input,
body.admin-page .field select {
    width: 100%;
    padding: 20px 10px 6px 10px; /* prostor za lebdeči label */
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    background: #f9fbfd;
    font-size: 15px;
    transition: 0.15s;
}

body.admin-page .field input:focus,
body.admin-page .field select:focus {
    border-color: #c49a6c;
    background: #fff;
    box-shadow: 0 0 5px rgba(196,154,108,0.4);
    outline: none;
}

/* =============================================
   FLOATING LABEL
============================================= */

body.admin-page .field label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 14px;
    color: #777;
    background: white;
    padding: 0 4px;
    pointer-events: none;
    transition: 0.2s;
}

/* lebdeči label */
body.admin-page .field input:focus + label,
body.admin-page .field.has-value input + label {

    top: -8px;
    left: 8px;
    font-size: 11px;
    color: #333;
}

/* =============================================
   FILTER ROW (kompaktna vrstica filtrov)
============================================= */

body.admin-page .filters-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

body.admin-page .filters-row .field {
    width: 126px;
    max-width: 126px;
}

/* manjši input/select samo v vrstici filtrov */
body.admin-page .filters-row .field input,
body.admin-page .filters-row .field select {
    padding: 14px 8px 4px 8px;
    font-size: 13px;
}

/* manjši label v filter vrstici */
body.admin-page .filters-row .field label {
    top: 8px;
    left: 8px;
    font-size: 14px;
}

/* lebdeči label v filter vrstici */
body.admin-page .filters-row .field.has-value label,
body.admin-page .filters-row .field input:focus + label,
body.admin-page .filters-row .field select:focus + label {
    top: -7px;
    left: 6px;
    font-size: 10px;
}

/* Počisti filter */
body.admin-page .filters-row .filter-actions {
    margin-left: auto;
    display: flex;
    align-items: flex-end;
}

/* gumb Počisti – poravnan v višino z inputi */
body.admin-page .filters-row .btn,
body.admin-page .filters-row .btn-grey {
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* =============================================
   DATEPICKER – poravnava višine & lebdečega labela
============================================= */

body.admin-page .filters-row .field .datepicker {
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 10px !important;
}

body.admin-page .filters-row .field .datepicker + label {
    top: 10px !important;
    font-size: 14px !important;
}

body.admin-page .filters-row .field.has-value .datepicker + label,
body.admin-page .filters-row .field .datepicker:focus + label {
    top: -6px !important;
    font-size: 11px !important;
}

/* =============================================
   TABELE – poravnave, spacing
============================================= */

body.admin-page .table-wrap {
    margin-top: 20px;
    overflow-x: auto;
}

body.admin-page table.simple-table {
    width: 100%;
    border-collapse: collapse;
}

body.admin-page table.simple-table th,
body.admin-page table.simple-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

body.admin-page table.simple-table th {
    background: #f1f1f1;
    font-weight: bold;
}

/* =============================================
   ADMIN LOGOUT GUMB
============================================= */

body.admin-page .btn-link {
    color: #007bff;
    font-weight: 600;
    cursor: pointer;
}

body.admin-page .btn-link:hover {
    text-decoration: underline;
}




/* Popravek: floating label za SELECT polja – prepreči prosojnost */
body.admin-page .field select + label {
    background: #f9fbfd !important;   /* isto kot background selecta */
    top: 50% !important;
    left: 10px !important;
    transform: translateY(-50%) !important;
    padding: 0 4px !important;
}

body.admin-page .field.has-value select + label,
body.admin-page .field select:focus + label {
    top: -8px !important;
    left: 8px !important;
    font-size: 11px !important;
    background: white !important;
    transform: none !important;
}

/* --- POPRAVEK: Floating label naj ima enako ozadje kot select --- */
body.admin-page .filters-row .field select + label,
body.admin-page .field select + label {
    background: #f9fbfd !important; /* enako kot select */
}

body.admin-page .filters-row .field select + label {
    top: 50% !important;
    left: 10px !important;
    transform: translateY(-50%) !important;
    font-size: 14px !important;
}


/* POPRAVEK: Onemogoči nativni Mac/Safari/Chrome stil selecta */
body.admin-page select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #f9fbfd !important;
}



/* POPOLN RESET SELECT POLJ */
body.admin-page .field select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #f9fbfd !important; /* prepreči prosojnost */
    background-image: none !important; /* odstrani default puščico */
    cursor: pointer !important; /* vrne rokico */
    color: inherit !important;
}

/* Poenoti višino inputov/selectov v filter vrstici */
body.admin-page .filters-row .field input,
body.admin-page .filters-row .field select {
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 10px !important;
}

/* Popravek floating label začetne pozicije */
body.admin-page .filters-row .field label {
    top: 50% !important;
    left: 12px !important;
    transform: translateY(-50%) !important;
}

/* Ko polje ima vrednost ali fokus */
body.admin-page .filters-row .field.has-value label,
body.admin-page .filters-row .field input:focus + label,
body.admin-page .filters-row .field select:focus + label {
    top: -7px !important;
    left: 8px !important;
    font-size: 10px !important;
    transform: none !important;
}


/* === CUSTOM PUŠČICA za SELECT (nezlomljivo) === */
body.admin-page .field select {
    position: relative;
    padding-right: 28px !important; /* prostor za puščico */
}

body.admin-page .field select::-ms-expand {
    display: none; /* skrije IE/Safari fallback */
}

/* pseudo-element kot puščica */
body.admin-page .field::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* da klik deluje normalno */
    font-size: 14px;
    color: #777;
}

/* 🟦 Izenači višino koledarskih inputov z dropdowni */
body.admin-page .filters-row .field .datepicker,
body.admin-page .flatpickr-input {
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 🟦 Centriranje puščice v koledarju */
body.admin-page .flatpickr-input {
    background-position: right 10px center !important;
}

/* SELECT polja: popolnoma izklopi floating label */
body.admin-page .field select + label {
    position: absolute !important;
    top: 50% !important;
    left: 12px !important;
    transform: translateY(-50%) !important;
    font-size: 14px !important;
    color: #777 !important;
    background: transparent !important;
    padding: 0 4px !important;
    pointer-events: none !important;
}

/* Ko je vrednost izbrana – naj ostane ISTO */
body.admin-page .field.has-value select + label,
body.admin-page .field select:focus + label {
    top: 50% !important;
    left: 12px !important;
    transform: translateY(-50%) !important;
    font-size: 14px !important;
}


/* =============================================
   PODZAVIHKI ZA NASTAVITVE
============================================= */
body.admin-page .admin-subtabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
}

body.admin-page .admin-subtabs a {
    padding: 10px 18px;
    background: #eee;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #ddd;
    transition: 0.15s;
}

body.admin-page .admin-subtabs a:hover {
    background: #e2e2e2;
    border-color: #ccc;
}

body.admin-page .admin-subtabs a.active {
    background: #c49a6c;
    color: #fff;
    border-color: #b5895c;
    font-weight: 600;
    box-shadow: 0 0 4px rgba(0,0,0,0.15);
}


/* =============================================
   ADMIN – Gumbi Uredi / Briši v tabelah
============================================= */

body.admin-page a.btn-edit,
body.admin-page a.btn-delete {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-left: 6px;
    transition: 0.15s ease;
}

/* Uredi */
body.admin-page a.btn-edit {
    background: #e9eef6;
    color: #345;
    border: 1px solid #cdd6e3;
}

body.admin-page a.btn-edit:hover {
    background: #dbe4f2;
    border-color: #bfc9d8;
}

/* Briši */
body.admin-page a.btn-delete {
    background: #fcebea;
    color: #b71c1c;
    border: 1px solid #f5c5c2;
}

body.admin-page a.btn-delete:hover {
    background: #f8d7d5;
    border-color: #e7a8a4;
}



.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}


