/* ✦✦✦ MIRNES ✦✦✦ */

/* =====================================================
   GLOBAL
===================================================== */

:root{
  /* Support role colors (edit freely) */
  --chx-role-podrska:#2563eb;   /* blue */
  --chx-role-prijatelj:#16a34a; /* green */
  --chx-role-sponzor:#b45309;   /* amber */
}

.chx-role{font-weight:700;}
.chx-role--podrska{color:var(--chx-role-podrska);}
.chx-role--prijatelj{color:var(--chx-role-prijatelj);}
.chx-role--sponzor{color:var(--chx-role-sponzor);}
body .en-frontend-table,
body .en-frontend-table th,
body .en-frontend-table td,
.en-print-form{
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #222;
}

/* =====================================================
   FRONTEND/ADMIN CONTAINERS (MAX WIDTH)
===================================================== */
.en-form-wrapper{
    max-width: 860px;
    margin: 22px auto;
    padding: 0 12px;
    box-sizing: border-box;
}

/* =====================================================
   FRONTEND TABLE
===================================================== */
.en-frontend-table{
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
}

.en-frontend-table th{
    padding: 5px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
    text-align: center;
    color: #444;
}

.en-frontend-table td{
    padding: 4px 6px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

/* Keep avatar column tight (same width as image) */
.chx-public-friends .en-frontend-table th:first-child,
.chx-public-friends .en-frontend-table td:first-child{
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    padding-left: 4px;
    padding-right: 4px;
}

/* Keep some columns aligned */
.chx-public-friends .en-frontend-table td:nth-child(6){
    text-align: center;
}

/* Support amount column */
.chx-public-friends .en-frontend-table td:nth-child(5){
    text-align: right;
    white-space: nowrap;
}

/* (nth-child 6 is membership in the public table) */

/* Avatar */
.en-avatar{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}
/* Frontend table column sizing */
.en-frontend-table th.chx-col-avatar,
.en-frontend-table td.chx-col-avatar{
    width: 52px;
    min-width: 52px;
    max-width: 52px;
}

.en-frontend-table th.chx-col-support,
.en-frontend-table td.chx-col-support{
    width: 86px;
    min-width: 86px;
    max-width: 86px;
}

.en-frontend-table th.chx-col-membership,
.en-frontend-table td.chx-col-membership{
    width: 92px;
    min-width: 92px;
    max-width: 92px;
}

/* =====================================================
   PUBLIC DIRECTORY UX (Sticky header, sorting, badges, mobile cards)
===================================================== */

.chx-public-table-wrap{
    overflow-x: auto;
}

/* Sticky header */
.chx-public-table thead th{
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

/* Sortable headers */
.chx-sortable{
    cursor: pointer;
    user-select: none;
}
.chx-sort-ind{
    display: inline-block;
    width: 12px;
    margin-left: 6px;
    opacity: .55;
}
.chx-public-table th.is-sorted-asc .chx-sort-ind:after{ content: '▲'; }
.chx-public-table th.is-sorted-desc .chx-sort-ind:after{ content: '▼'; }

/* Badges */
.chx-badge{
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #e1e1e1;
    background: #f7f7f7;
    line-height: 1.4;
    white-space: nowrap;
}
.chx-col-roles .chx-badge{ margin-right: 6px; }

/* Mobile: table rows become cards */
@media (max-width: 640px){
    .chx-public-table thead{ display:none; }

    .chx-public-table tbody tr{
        display:flex;
        flex-wrap:wrap;
        gap: 0;
        border: 1px solid #e6e6e6;
        border-radius: 14px;
        padding: 10px 12px;
        margin: 10px 0;
        background:#fff;
    }

    .chx-public-table tbody td{
        width: 100%;
        border: none !important;
        padding: 6px 0 !important;
        display:flex;
        justify-content: space-between;
        align-items:center;
    }

    .chx-public-table tbody td:before{
        content: attr(data-label);
        font-weight: 800;
        font-size: 12px;
        opacity: .8;
        padding-right: 12px;
        flex: 0 0 auto;
    }

    /* Top row: avatar + name */
    .chx-public-table tbody td.chx-col-avatar{
        width: 52px;
        padding: 0 !important;
        justify-content:flex-start;
        order: 0;
    }
    .chx-public-table tbody td.chx-col-avatar:before{ display:none; }

    .chx-public-table tbody td.chx-col-name{
        width: calc(100% - 52px);
        padding: 2px 0 2px 10px !important;
        justify-content:flex-start;
        font-weight: 800;
        order: 1;
    }
    .chx-public-table tbody td.chx-col-name:before{ display:none; }

    .chx-public-table tbody td.chx-col-roles{ order: 2; }
    .chx-public-table tbody td.chx-col-city{ order: 3; }
    .chx-public-table tbody td.chx-col-membership{ order: 4; }
    .chx-public-table tbody td.chx-col-support{ order: 5; }
}


/* Membership */
.en-membership-text{
    font-weight: 700;
    font-size: 11px;
}

.en-status-active{ color: #079b3b; }
.en-status-warning{ color: #ffbf00; }
.en-status-expired{ color: #ff0000; }

/* =====================================================
   BACKEND FILTER / EXPORT BOX
===================================================== */
.en-export-box{
    margin: 14px 0 15px 0;
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    background: #fff;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    display: block;
}
.en-export-box form{
  margin: 0 !important;
}
.en-filter-row{
    display: flex;
    flex-wrap: wrap;
    gap: 10px 10px;
    align-items: center;
}

.en-filter-row select{
    padding: 7px 10px;
    border: 1px solid #d7d7d7;
    background: #fff;
    font-size: 13px;
    line-height: 1.2;
}

.en-filter-row select:focus{
    outline: none;
    border-color: #2d6cdf;
}

/* Buttons */
.en-btn{
    padding: 6px 14px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
}

.en-btn:hover{
    background: #222;
    color: #fff;
    border-color: #222;
}

/* Pagination */
.en-pagination{
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 15px 0;
}

.en-pagination button,
.en-pagination a{
    min-width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.en-pagination button.active,
.en-pagination a.active{
    background: #222;
    color: #fff;
    border-color: #222;
}

/* =====================================================
   BACKEND TOOLBAR
===================================================== */
.en-toolbar{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    margin: 10px 0 10px 0;
}

/* NOTE: buttons on admin pages should keep default WordPress styling */


/* =====================================================
   BACKEND FORM LAYOUT
===================================================== */
.en-flat-form{
    max-width: 900px;
}

.en-section{
    margin-bottom: 18px;
}

.en-grid-2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px){
    .en-grid-2{
        grid-template-columns: 1fr;
    }
}

.en-field label{
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    color: #555;
}

.en-field input,
.en-field select,
.en-field textarea{
    padding: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 100%;
}

.en-field textarea{
    min-height: 60px;
}

/* Bigger bold inside field inputs (as requested) */
.en-flat-form .en-field input,
.en-flat-form .en-field select,
.en-flat-form .en-field textarea{
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

/* =====================================================
   ROLES (ADMIN CHECKBOXES)
===================================================== */
.en-roles-modern{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.en-role-item{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #ddd;
    background: #fff;
    padding: 6px 8px;
    cursor: pointer;
}

.en-role-item input{
    margin: 0;
}

/* =====================================================
   TABLE WRAPPER
===================================================== */
.en-table-wrapper{
    width: 100% !important;
    max-width: none !important;
    overflow-x: auto;
    margin-top: 15px;
    box-sizing: border-box;
}
.wp-list-table.fixed{
    table-layout: auto !important;
}
.wp-list-table{
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: collapse;
}
.wp-list-table th,
.wp-list-table td{
    white-space: nowrap;
    vertical-align: middle;
}

.wp-list-table tbody tr{
    transition: background .15s ease;
}

.wp-list-table tbody tr:hover{
    background: #f7f7f7;
}

/* Status colors in backend table cells */
.wp-list-table td.en-status-green{
    background: #e6f4ea !important;
    color: #1f7a3f !important;
    font-weight: 700;
}

.wp-list-table td.en-status-orange{
    background: #fff4e5 !important;
    color: #cc7a00 !important;
    font-weight: 700;
}

.wp-list-table td.en-status-red{
    background: #fdecea !important;
    color: #b02a37 !important;
    font-weight: 700;
}

/* Form status box colors (same palette) */
.en-status-green{
    background: #e6f4ea;
    color: #1f7a3f;
    font-weight: 700;
}

.en-status-orange{
    background: #fff4e5;
    color: #cc7a00;
    font-weight: 700;
}

.en-status-red{
    background: #fdecea;
    color: #b02a37;
    font-weight: 700;
}

/* Ime osobe preuzima boju statusa (bez pozadine) */
.en-text-green{ color: #1f7a3f !important; }
.en-text-orange{ color: #cc7a00 !important; }
.en-text-red{ color: #b02a37 !important; }

/* =====================================================
   ADMIN THUMBNAILS + IMAGE PREVIEW
===================================================== */
.wp-list-table img.en-admin-thumb{
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    object-fit: cover !important;
    border-radius: 4px;
    cursor: pointer;
}

/* Preview in form (avoid full size) */
.en-image-preview img{
    width: 40px !important;
    height: auto !important;
    max-width: 40px !important;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 8px;
}

/* Stronger specificity just in case WP styles override */
.en-flat-form .en-image-preview img{
    width: 40px !important;
    height: auto !important;
    max-width: 40px !important;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 8px;
}

/* =====================================================
   ACTION ICON BUTTONS
===================================================== */
.en-actions a,
.en-actions button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s ease;
    cursor: pointer;
}

.en-actions a:hover,
.en-actions button:hover{
    background: #222;
    color: #fff;
    border-color: #222;
    transform: translateY(-1px);
}

/* =====================================================
   IMAGE MODAL
===================================================== */
#en-image-modal{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.en-image-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.en-image-content{
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 5% auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.en-image-content img{
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,.4);
    background: #fff;
}

.en-image-close{
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
}

/* =====================================================
   PRINT FORM
===================================================== */
.en-print-form{
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #000;
    padding: 10px;
}

.en-print-form table{
    width: 100%;
    border-collapse: collapse;
}

.en-print-form th,
.en-print-form td{
    border: 1px solid #000;
    padding: 5px;
}

@media print{
    .en-print-form button{
        display: none;
    }
}

/* =====================================================
   EMAIL MODAL
===================================================== */
#en-email-modal{
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.en-modal-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.en-modal-content{
    position: relative;
    background: #fff;
    width: 700px;
    max-width: 95%;
    margin: 80px auto;
    padding: 25px;
}

.en-modal-close{
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 22px;
    cursor: pointer;
}

/* =====================================================
   FRONTEND – FILTER BAR (isti izgled kao stats)
===================================================== */

.en-frontend-filterbar{
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 12px 16px;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    font-size: 14px;
}

.en-frontend-filterbar select,
.en-frontend-filterbar input[type="text"]{
    padding: 7px 10px;
    border: 1px solid #d7d7d7;
    background: #fff;
    font-size: 13px;
    line-height: 1.2;
    max-width: 220px;
}

#en-search{
    flex: 1 1 220px;
    max-width: none;
}

/* checkbox “pill” izgled, flat */
.en-frontend-filterbar label{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    color: #444;
}

.en-frontend-filterbar input[type="checkbox"]{
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #111; /* modern browsers */
}

/* mali title (npr: Filter:) */
.en-frontend-filterbar .en-filter-title{
    font-weight: 700;
    color: #111;
    margin-right: 6px;
}

/* mobile */
@media (max-width: 768px){
    .en-frontend-filterbar{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 13px;
    }
}
#en-filter-btn{
    background: transparent;
    border: 1px solid #2d6cdf;
    color: #2d6cdf;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#en-clear-btn{
    background: transparent;
    border: 1px solid #ccc;
    color: #222;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#en-clear-btn:hover{
    background: #222;
    color: #fff;
    border-color: #222;
}

.en-empty-state{
    border: 1px dashed #d7d7d7;
    background: #fff;
    padding: 16px;
    color: #444;
    text-align: center;
}

/* =====================================================
   PUBLIC DIRECTORY – SUPPORT LEVEL BADGES
===================================================== */

.chx-name-badge{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;}
.chx-badge{display:inline-flex;align-items:center;gap:6px;border:1px solid #ddd;padding:2px 8px;font-size:11px;line-height:1.4;font-weight:700;text-transform:uppercase;white-space:nowrap;}
.chx-badge-friend{ }
.chx-badge-patron{ }
.chx-badge-partner{ }

.en-empty-state-admin{
    margin: 14px 0;
}

#en-filter-btn:hover{
    background: #2d6cdf;
    color: #fff;
}


/* =====================================================
   DARK MODE (prefers-color-scheme)
===================================================== */
@media (prefers-color-scheme: dark){
    body{ background: #1e1e1e; }

    .wp-list-table{
        background: #2a2a2a;
        color: #eee;
    }

    .wp-list-table th{
        color: #ccc;
        border-color: #3a3a3a;
    }

    .wp-list-table td{
        border-color: #3a3a3a;
    }

    .wp-list-table tbody tr:hover{
        background: #333;
    }

    .en-export-box{
        background: #2a2a2a;
        border-color: #3a3a3a;
    }

    .en-btn{
        background: #2a2a2a;
        border-color: #444;
        color: #ddd;
    }

    .en-btn:hover{
        background: #444;
        color: #fff;
    }

    .en-actions a,
    .en-actions button{
        background: #2a2a2a;
        border-color: #444;
        color: #ddd;
    }

    .en-actions a:hover,
    .en-actions button:hover{
        background: #444;
        color: #fff;
    }
}

/* =====================================================
   ADMIN SLIDE PANEL (FLAT) – FINAL (NO DUPLICATES)
===================================================== */
body.en-panel-open{ overflow:hidden; }

.en-panel-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.35);
  z-index:99998;
  display:none;
}

.en-member-panel{
  position:fixed;
  top:32px;
  right:-720px;
  width:680px;
  max-width:92vw;
  height:calc(100vh - 32px);
  background:#fff;
  border-left:1px solid #e5e5e5;
  z-index:99999;
  transition:right .18s ease;
  display:flex;
  flex-direction:column;
}

.en-member-panel.is-open{ right:0; }

.en-panel-header{
  padding:10px 12px;
  border-bottom:1px solid #e5e5e5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:#fff;
  position:sticky;
  top:0;
  z-index:2;
}

/* uredniji title */
#en-panel-title{
  font-size: 14px;
  font-weight: 700;
  color:#111;
}

/* NOTE: keep default WordPress button styling */


.en-panel-actions{ display:flex; gap:8px; }

.en-panel-body{
  padding:12px;
  overflow:auto;
}
/* =====================================================
   MOBILE FIX – FILE UPLOAD VIDLJIV + PANEL SCROLL
===================================================== */
@media (max-width: 768px){

  /* panel full-screen na mobu */
  .en-member-panel{
    top: 0 !important;
    height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    right: -110vw; /* sakriven van ekrana */
  }
  .en-member-panel.is-open{ right: 0 !important; }

  /* header sticky, body scroll */
  .en-panel-header{
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
  }

  .en-panel-body{
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 110px; /* da zadnja polja (file input) ne budu ispod dugmadi */
  }

  /* file input mora biti block i full width */
  #en-member-form input[type="file"][name="image"]{
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important; /* sprječava “zoom” i čudno ponašanje */
    padding: 8px 0 !important;
  }

  /* preview veći na mobu */
  .en-image-preview img,
  .en-flat-form .en-image-preview img{
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    object-fit: cover !important;
  }
}
/* =====================================================
   FRONTEND – STATS BAR
===================================================== */

.en-frontend-stats {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.en-frontend-stats span {
    color: #444;
}

.en-frontend-stats strong {
    font-weight: 700;
    color: #111;
}

/* Broj – blagi naglasak */
.en-stat-number {
    font-weight: 700;
    color: #000;
}

/* Donacije – blaga zelena */
.en-stat-donations {
    font-weight: 700;
    color: #1e7e34;
}

/* Mobile */
@media (max-width: 768px) {
    .en-frontend-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 13px;
    }
}
/* =====================================================
   BACKEND – STATS CARD (admin_notices)
===================================================== */
.en-stats-summary{
    background:#fff;
    border:1px solid #e5e5e5;
    padding:12px 14px;
    margin: 10px 0 12px 0;
    font-size: 13px;
    color:#333;
    line-height: 1.45;
}

/* malo naglasi brojeve, ali flat */
.en-stats-summary strong{
    font-weight: 700;
    color:#111;
}

/* da ne “lijepi” uz WP notice spacing */
.en-stats-summary + .notice{
    margin-top: 12px;
}
/* =====================================================
   PROFILE IMAGE ROW (upload + toggle)
===================================================== */
.en-image-row{
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: center;
}

/* =====================================================
   ADMIN TOGGLE SWITCH (bigger)
===================================================== */
.en-toggle{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.en-toggle input{ display:none; }

.en-toggle-slider{
    position: relative;
    width: 52px;
    height: 28px;
    background: #d9d9d9;
    border: 1px solid #cfcfcf;
    transition: all .2s ease;
}

.en-toggle-slider:before{
    content:"";
    position:absolute;
    width: 22px;
    height: 22px;
    background:#fff;
    top: 2px;
    left: 2px;
    transition: all .2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

.en-toggle input:checked + .en-toggle-slider{
    background:#2d6cdf;
    border-color:#2d6cdf;
}

.en-toggle input:checked + .en-toggle-slider:before{
    transform: translateX(24px);
}

.en-toggle-label{
    line-height: 1;
}

/* Mobile: sve ispod jedno ispod drugog */
@media (max-width: 768px){
    .en-image-row{
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =====================================================
   PRINT – A4 LAYOUT (FORMULAR)
===================================================== */
@page { size: A4; margin: 12mm; }

.en-print-page{
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    background: #fff;
}

.en-print-header{
    text-align: center;
    margin-bottom: 10px;
}
.en-print-header h2{
    margin: 0 0 4px 0;
    font-size: 18px;
    letter-spacing: .2px;
}
.en-print-sub{
    font-size: 12px;
    color: #444;
}

.en-print-table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.en-print-table th,
.en-print-table td{
    border: 1px solid #000;
    padding: 6px 8px;
    font-size: 12px;
    vertical-align: top;
}
.en-print-table th{
    width: 40%;
    text-align: left;
    font-weight: 700;
}

.en-print-signatures{
    display: flex;
    gap: 20px;
    margin-top: 18px;
}
.en-print-sign{
    flex: 1;
    text-align: center;
}
.en-print-line{
    border-bottom: 1px solid #000;
    height: 22px;
}
.en-print-label{
    margin-top: 6px;
    font-size: 12px;
}

.en-print-footer{
    margin-top: 16px;
    font-size: 12px;
}

.en-print-actions{
    text-align: center;
    margin-top: 18px;
}

@media print{
    .en-print-actions{ display:none; }
    body{ background:#fff; }
    .en-print-form{ border: none !important; padding: 0 !important; }
}


/* ===============================
   PRINT – FINANSIJSKA EVIDENCIJA
=================================*/
.en-print-payments-wrap{margin-top:14mm}
.en-print-payments-wrap h3{margin:0 0 6px 0;font-size:13px;font-weight:700}
.en-print-payments-block{margin-top:6mm}
.en-print-payments-block h4{margin:0 0 4px 0;font-size:12px;font-weight:700}
.en-print-payments-table{width:100%;border-collapse:collapse;font-size:11px}
.en-print-payments-table th,.en-print-payments-table td{border:1px solid #111;padding:4px 5px;vertical-align:top}
.en-print-payments-table th{font-weight:700}
.en-amt{text-align:right;white-space:nowrap}
.en-print-sumline{margin-top:3px;display:flex;justify-content:space-between;font-size:11px}
.en-print-total{margin-top:8mm;border-top:2px solid #111;padding-top:4mm;font-size:12px}
.en-print-total-row{display:flex;justify-content:space-between}
.en-muted{font-size:11px;color:#555}

/* ===============================
   FRONTEND – PRIJAVA CLANA
=================================*/
.en-apply-form{max-width:760px}
.en-apply-form p{margin:10px 0}
.en-apply-form label{display:block;font-weight:700;margin-bottom:4px}
.en-apply-form input,.en-apply-form textarea{width:100%;box-sizing:border-box}
.en-apply-form button{margin-top:6px}


/* ===============================
   UI IMPROVEMENTS – PRINT + APPLY
=================================*/
.en-print-page{max-width:820px;margin:0 auto;padding:18px}
.en-print-form{background:#fff;border:1px solid #111;padding:18px}
.en-print-header h2{margin:0;font-size:20px;letter-spacing:.2px}
.en-print-sub{margin-top:4px;color:#444;font-size:12px}
.en-print-table{width:100%;border-collapse:collapse;margin-top:12px}
.en-print-table th{width:38%;text-align:left;background:#f3f3f3;font-weight:700}
.en-print-table th,.en-print-table td{border:1px solid #111;padding:8px 10px;vertical-align:top}
.en-input{width:100%;box-sizing:border-box;border:1px solid #222;padding:8px 10px;font-size:13px;background:#fff}
.en-input:focus{outline:none;box-shadow:0 0 0 2px rgba(0,0,0,.12)}
.en-help{margin-top:6px;font-size:11px;color:#444}
.en-roles-inline{display:flex;flex-wrap:wrap;gap:8px}
.en-role-pill{display:inline-flex;align-items:center;gap:5px;border:0px solid #222;padding:5px 5px;font-size:12px}
.en-role-pill input{transform:scale(1.15)}
.en-print-actions--apply{margin-top:5px;display:flex;flex-direction:column;align-items:center;gap:8px;justify-content:center}
.en-btn{border:1px solid #111;background:#111;color:#fff;padding:10px 14px;font-weight:700;cursor:pointer}
.en-btn:hover{opacity:.92}
.en-print-date{margin-top:10px;font-size:12px;color:#222}
.en-print-signatures{display:flex;gap:18px;margin-top:18px}
.en-print-sign{flex:1}
.en-print-line{border-bottom:1px solid #111;height:22px}
.en-print-label{margin-top:6px;font-size:11px;color:#222}
@media (max-width:640px){.en-print-page{padding:10px}.en-print-table th{width:44%}.en-print-header h2{font-size:18px}.en-print-signatures{flex-direction:column}}

/* ===============================
   PRISTUPNICA – APPLY + PRINT (UI)
=================================*/
.en-print-page--apply{max-width:820px;margin:0 auto;padding:18px}
.en-print-form--apply{background:#fff;border:1px solid #111;padding:18px}
.en-print-table--apply th{width:38%}
.en-input{width:100%;padding:8px 10px;border:1px solid #111;background:#fff;font-size:13px}
.en-help{margin-top:6px;font-size:12px;color:#444}
.en-blank-line{height:18px;border-bottom:1px solid #111}
.en-checkline{display:flex;gap:10px;align-items:flex-start}
.en-checkline input{width:18px;height:18px;margin-top:2px}
.en-checkline span{font-size:13px;color:#111}
.en-role-pill--print{border:none;background:transparent;padding:0;margin-right:12px}
/* ==============================
   ONLINE PRISTUPNICA – HEADER
============================== */

.en-online-pristupnica-header{
    width: 100%;
    max-width: 980px;          /* prilagodi ako ti forma ima drugu širinu */
    margin: 0 auto 14px auto;
    padding: 0px 5px;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
}

.en-online-pristupnica-header h2{
    margin: 0 0 6px 0 !important;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.en-online-pristupnica-intro{
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    color: #444;
    line-height: 1.45 !important;
}

.en-online-pristupnica-intro a{
    color: inherit;
    text-decoration: underline;
}

.en-online-pristupnica-intro a:hover{
    text-decoration: none !important;
}

/* Mobile */
@media (max-width: 600px){
    .en-online-pristupnica-header{
        padding: 12px 12px 10px 12px;
        margin-bottom: 12px;
    }
    .en-online-pristupnica-header h2{
        font-size: 20px !important;
    }
    .en-online-pristupnica-intro{
        font-size: 15px !important;
        line-height: 20px !important;
    }
}

/* ===============================
   ONLINE PRISTUPNICA – MOBILE
=================================*/

/* Desktop/tablet: Excel-flat table, left TH 30% */
.en-print-page--apply{max-width:980px;margin:0 auto;}
.en-print-form--apply{border:1px solid #d9d9d9; background:#fff;}
.en-print-table--apply{width:100%;border-collapse:collapse;table-layout:fixed;}
.en-print-table--apply th{width:30%; font-size:12px; font-weight:700; background:#fff; text-align:left;}
.en-print-table--apply td{width:70%;}
.en-print-table--apply th,
.en-print-table--apply td{border:1px solid #d9d9d9; padding:6px 8px; font-size:12px;}
.en-print-form--apply .en-input{width:100%; box-sizing:border-box; padding:4px 6px; font-size:12px; height:28px; border:1px solid #d9d9d9; border-radius:0;}
.en-print-form--apply textarea.en-input{height:auto; min-height:80px;}

@media (max-width: 700px){
  .en-print-page--apply{padding:10px;width:100%;}
  .en-print-form--apply{padding:12px}
  .en-print-table--apply, .en-print-table--apply tbody, .en-print-table--apply tr, .en-print-table--apply th, .en-print-table--apply td{display:block;width:100%}
  .en-print-table--apply tr{margin-bottom:10px}
  .en-print-table--apply th{border-bottom:none;padding:8px 10px;background:#f3f3f3}
  .en-print-table--apply td{border-top:none;padding:8px 10px}
  .en-roles-inline{display:flex;flex-wrap:wrap;gap:8px}
  .en-role-pill{width:auto}
  .en-checkline{gap:10px}
  .en-checkline span{line-height:1.2}
}

.en-checkline.en-disabled{opacity:.55}
.en-checkline.en-disabled input{cursor:not-allowed}

/* Nested (child) public-display options under "Prikaži profil" */
.en-checkline--child{margin-left:12px}
@media (max-width:700px){
  .en-checkline--child{margin-left:8px}
}

/* ===============================
   ADMIN + FRONTEND – PUBLIC DISPLAY UX
=================================*/
.en-public-box{display:block;margin-top:10px}
.en-checkline--main{font-weight:700}
.en-public-sub{margin-left:22px;margin-top:8px;border-left:3px solid #2271b1;padding:10px 12px;background:#f6f7f7}
.en-public-sub.en-disabled{opacity:.55;filter:grayscale(1);}
.en-checkline{display:flex;gap:10px;align-items:flex-start;margin:6px 0}
.en-checkline input{width:18px;height:18px;margin-top:2px}
.en-checkline.en-disabled{opacity:.55}

/* ===============================
   MOBILE VISIBILITY FIX – APPLY FORM
=================================*/
.en-print-form--apply .en-input{
    display: block !important;
    width: 100% !important;
    font-size: 17px;
    font-weight: 600;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 42px;
}
.en-print-table--apply td{overflow:visible}
.en-print-form--apply input[type="file"]{padding:8px 0}

/* =====================================================
   PRIVACY PREVIEW + DIMMED FILE INPUT (FRONT/ADMIN)
===================================================== */
.chx-privacy-preview{margin-top:10px;padding:12px 14px;border:1px solid #dcdcde;border-left:4px solid #2271b1;background:#fdfdfd;box-shadow:0 1px 0 rgba(0,0,0,.03)}
.chx-privacy-preview-title{font-weight:900;margin:0 0 8px 0}
.chx-privacy-preview-list{margin:0;padding-left:18px;display:grid;gap:6px}
.chx-privacy-preview-list li{margin:0;display:flex;gap:8px;align-items:baseline}
.chx-pp-label{opacity:.8;min-width:60px;display:inline-block}
.chx-privacy-preview-hint{margin-top:8px;opacity:.85;font-size:13px}

/* Live preview card (frontend + admin) */
.chx-live-card{display:flex;gap:12px;align-items:center;padding:10px 12px;border:1px solid #dcdcde;background:#fff;border-radius:14px}
.chx-live-avatar{width:44px;height:44px;border-radius:999px;background:#f1f1f1;border:1px solid #e5e5e5;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 44px}
.chx-live-avatar-text{width:100%;height:100%;display:inline-flex;align-items:center;justify-content:center;font-size:18px;opacity:.9}
.chx-live-avatar-img{display:none;width:100%;height:100%;object-fit:cover}
.chx-live-meta{display:flex;flex-direction:column;gap:2px;min-width:0}
.chx-live-name{font-weight:900;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chx-live-sub{font-size:13px;opacity:.8}
.chx-live-badge{display:inline-flex;align-items:center;gap:6px;width:fit-content;padding:2px 8px;border:1px solid #dcdcde;border-radius:999px;font-size:12px;font-weight:800;opacity:.95;margin-top:4px}
.chx-live-badge.is-anon{opacity:.8}
.chx-live-badge.is-public{border-color:#2271b1}


/* Roles lock (anonymous) */
.chx-roles-select.en-disabled{opacity:.55;filter:grayscale(1)}
.chx-roles-select.en-disabled input{cursor:not-allowed}

/* Requests approve role lock (anonymous) */
.chx-approve-panel select.en-disabled{opacity:.55;filter:grayscale(1)}

.chx-file-wrap.chx-dim{opacity:.45;filter:grayscale(1)}


.en-actions{ display:inline-flex; gap:4px; }

.en-actions a:focus-visible,
.en-actions button:focus-visible{ outline:2px solid #2271b1; outline-offset:2px; }


/* =====================================================
   MODAL (Quick payment)
===================================================== */
.en-modal{position:fixed;inset:0;z-index:99999;font-family:Arial,sans-serif;}
.en-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45);}
.en-modal-card{position:relative;max-width:520px;margin:6vh auto;background:#fff;border:1px solid #e5e5e5;box-shadow:0 12px 30px rgba(0,0,0,.18);padding:14px;}
.en-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid #eee;padding-bottom:10px;margin-bottom:10px;}
.en-modal-close{background:transparent;border:1px solid #ddd;width:32px;height:32px;line-height:28px;font-size:22px;cursor:pointer;}
.en-modal-body{padding:0;margin:0;}
.en-modal-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:10px;}
.en-modal-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:10px;}
.en-modal label{display:block;font-size:12px;font-weight:700;margin-bottom:6px;}
.en-modal input,.en-modal select,.en-modal textarea{width:100%;font-size:13px;padding:7px 8px;border:1px solid #ddd;background:#fff;}
.en-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px;}
.en-modal-msg{font-size:13px;}
.en-quick-payment-btn{border:1px solid #ddd;background:#fff;cursor:pointer;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;}
.en-quick-payment-btn:focus{outline:2px solid #2271b1;outline-offset:1px;}
@media(max-width:600px){.en-modal-card{margin:2vh 10px;}.en-modal-grid{grid-template-columns:1fr;}}

/* =====================================================
   REQUESTS – MODERN FLAT UI (BACKEND)
===================================================== */
.chx-requests-page .en-tabs{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin: 8px 0 14px 0;
}
.chx-requests-page .en-tab{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:6px 10px;
    border:1px solid #e5e5e5;
    background:#fff;
    text-decoration:none;
    color:#222;
    font-weight:600;
}
.chx-requests-page .en-tab.active{
    border-color:#222;
}

.chx-admin-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border:1px solid #e5e5e5;
}
.chx-admin-table th{
    padding:8px 10px;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.02em;
    color:#444;
    border-bottom:1px solid #e9e9e9;
    background:#fafafa;
    text-align:left;
}
.chx-admin-table td{
    padding:8px 10px;
    border-bottom:1px solid #f0f0f0;
    vertical-align:middle;
}
.chx-admin-table tr:hover td{
    background:#fcfcfc;
}
.chx-admin-table .td-actions{
    white-space:nowrap;
}

.chx-badge{
    display:inline-flex;
    align-items:center;
    padding:2px 8px;
    border:1px solid #e1e1e1;
    background:#f7f7f7;
    font-size:11px;
    font-weight:700;
}
.chx-badge.green{ color:#0a7a2b; border-color:#cfe9d7; background:#f2fbf5; }
.chx-badge.red{ color:#b10000; border-color:#f0c9c9; background:#fff5f5; }
.chx-badge.orange{ color:#a35d00; border-color:#f2dfc3; background:#fff9f0; }

.chx-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-start;
}

/* Requests modal content */
.chx-req-card{
    padding: 2px 2px 12px 2px;
}
.chx-req-head{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
    margin-bottom:10px;
}
.chx-req-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media(max-width:900px){
  .chx-req-grid{grid-template-columns:1fr;}
}
.chx-req-block{
    border:1px solid #e9e9e9;
    background:#fff;
}
.chx-req-block h3{
    margin:0;
    padding:10px 12px;
    border-bottom:1px solid #eee;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.03em;
    color:#444;
}
.chx-req-block .inner{
    padding: 10px 12px;
}
.chx-req-diff{
    width:100%;
    border-collapse:collapse;
    font-size:12px;
}
.chx-req-diff th,.chx-req-diff td{
    border-bottom:1px solid #f0f0f0;
    padding:7px 8px;
    vertical-align:top;
}
.chx-req-diff th{
    text-transform:uppercase;
    font-size:11px;
    color:#444;
    background:#fafafa;
    border-bottom:1px solid #e9e9e9;
}
.chx-req-diff tr.is-diff td{ background:#fffceb; }
.chx-req-diff .apply{
    text-align:center;
    width:70px;
}
.chx-req-foot{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
    margin-top:12px;
}

/* Inline request view header (in admin page) */
.chx-req-view-head{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;}
.chx-req-view-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}

/* Diff badge (ensure visibility on images/light backgrounds) */
.chx-badge-changed{background:#111;border-color:#111;color:#fff;}

/* Mobile: when viewing a request, hide tabs/filters and stack actions */
@media(max-width:782px){
  .chx-requests-page.is-viewing .en-tabs,
  .chx-requests-page.is-viewing .en-export-box{display:none;}
  .chx-req-view-head{flex-direction:column;align-items:flex-start;}
  .chx-req-view-actions{width:100%;}
  .chx-req-view-actions .en-btn{flex:1;justify-content:center;}
  .chx-req-grid{gap:8px;}
  .chx-req-foot{flex-direction:column;align-items:stretch;}
  .chx-req-foot .button{width:100%;}
}

/* Standalone preview (admin-post) */
.chx-standalone{max-width:980px;margin:34px auto;padding:0 12px;box-sizing:border-box;}
.chx-standalone .topbar{display:none;}
.chx-standalone .meta{opacity:.85;font-size:12px;}
.chx-print-table{width:100%;border-collapse:collapse;font-size:12px;background:#fff;border:1px solid #e5e5e5;}
.chx-print-table th,.chx-print-table td{border-bottom:1px solid #efefef;padding:7px 8px;vertical-align:top;}
.chx-print-table th{background:#fafafa;text-transform:uppercase;font-size:11px;color:#444;border-bottom:1px solid #e9e9e9;}
@media print{.en-no-print{display:none !important;} body{margin:0 !important;} .chx-standalone{margin:0 !important;max-width:none !important;}}


/* =====================================================
   ADMIN CARDS
===================================================== */
.en-cards{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:10px;margin:12px 0 14px;}
.en-card{border:1px solid #e2e2e2;background:#fff;padding:10px;min-height:58px;display:flex;flex-direction:column;justify-content:center;}
.en-card-label{font-size:11px;text-transform:uppercase;opacity:.7;font-weight:700;}
.en-card-value{font-size:18px;font-weight:800;margin-top:2px;}
.en-card-green{border-left:4px solid #2f8f2f;}
.en-card-orange{border-left:4px solid #d9840f;}
.en-card-red{border-left:4px solid #c82333;}
@media(max-width:1100px){.en-cards{grid-template-columns:repeat(3,minmax(120px,1fr));}}
@media(max-width:600px){.en-cards{grid-template-columns:repeat(2,minmax(120px,1fr));}}


/* =====================================================
   ADMIN – CHIPS (Neizmirene uplate)
===================================================== */
.en-chipbar{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px;}
.en-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #d0d7de;background:#fff;color:#1d2327;text-decoration:none;font-size:12px;line-height:1;border-radius:999px;}
.en-chip:hover{border-color:#2271b1;color:#2271b1;}
.en-chip.is-active{border-color:#2271b1;background:#f0f6fc;color:#2271b1;font-weight:600;}

/* =====================================================
   ADMIN – MODAL POLISH (Imenik bulk)
===================================================== */
.en-modal-card{max-width:760px;}
.en-field{margin-bottom:10px;}
.en-field label{display:block;font-weight:600;margin:0 0 4px;}
.en-input,.en-select,.en-textarea{width:100%;box-sizing:border-box;}
.en-inline-row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;}
.en-inline-row .en-grow{flex:1;min-width:220px;}
.en-preview-box{display:none;margin:10px 0;padding:10px;border:1px solid #d0d7de;background:#fff;}
.en-preview-title{font-weight:600;margin-bottom:6px;}
.en-preview-content{max-height:240px;overflow:auto;border:1px dashed #d0d7de;padding:8px;background:#fcfcfc;}
.en-preview-content pre{margin:0;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;}


/* =====================================================
   ADMIN – TYPEAHEAD (member search)
===================================================== */
.en-typeahead-dd{
  position:relative;
  z-index:9999;
  margin-top:4px;
  border:1px solid #d0d7de;
  background:#fff;
  max-height:260px;
  overflow:auto;
}
.en-typeahead-item{
  display:block;
  width:100%;
  text-align:left;
  padding:8px 10px;
  border:0;
  border-bottom:1px solid #eef2f6;
  background:#fff;
  cursor:pointer;
}
.en-typeahead-item:hover{background:#f6f7f7;}
.en-typeahead-title{font-weight:600;font-size:12px;line-height:1.2;}
.en-typeahead-sub{font-size:11px;opacity:.75;margin-top:2px;line-height:1.2;}
.en-typeahead-empty{padding:10px;font-size:12px;opacity:.75;}

.en-qpay-toggle input{margin-right:6px;}




/* =====================================================
   ADMIN – COMPACT MODE (UX polishing)
===================================================== */

.chx-top-tools{
    margin: 6px 0 10px;
    display:flex;
    gap:8px;
    align-items:center;
}

body.chx-compact .en-admin-table th,
body.chx-compact .en-admin-table td{
    padding: 6px 8px !important;
    font-size: 12px !important;
}

body.chx-compact .en-flat-form input[type="text"],
body.chx-compact .en-flat-form input[type="email"],
body.chx-compact .en-flat-form input[type="tel"],
body.chx-compact .en-flat-form input[type="number"],
body.chx-compact .en-flat-form select,
body.chx-compact .en-flat-form textarea{
    padding: 6px 8px !important;
    font-size: 13px !important;
}

body.chx-compact .en-panel{
    width: min(520px, 92vw) !important;
}

@media (max-width: 782px){
    /* Mobile admin defaults: always a bit tighter */
    .en-admin-table th, .en-admin-table td{
        padding: 7px 8px;
    }
    .en-btn{
        min-height: 34px;
    }
    .en-panel{
        width: 92vw !important;
    }
}


/* =====================================================
   ADMIN UX – STICKY FILTER BAR
===================================================== */
.chx-sticky-bar{
    position: sticky;
    top: 32px;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid #dcdcde;
    padding-top: 10px;
    padding-bottom: 10px;
}

body.chx-compact .chx-sticky-bar{
    padding-top: 6px;
    padding-bottom: 6px;
}

@media (max-width: 782px){
    .chx-sticky-bar{ top: 46px; }
}


/* =============================
   CHX UX POLISH (v17.2.17)
============================= */

.chx-search-wrap{position:relative;display:inline-flex;align-items:center;}
.chx-search-wrap input[type="text"]{padding-right:28px;}
.chx-clear-search{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  width:20px;height:20px;line-height:18px;text-align:center;
  border:1px solid #d0d0d0;background:#fff;color:#444;cursor:pointer;
  padding:0;font-size:14px;display:none;
}
.chx-search-wrap.has-value .chx-clear-search{display:inline-block;}
.chx-reset-filters{background:#fff;border:1px solid #d0d0d0;color:#222;}
.chx-reset-filters:hover{background:#f6f7f7;}
/* Modal loading */
.en-modal-card{position:relative;}
.en-modal-loading{
  position:absolute;inset:0;background:rgba(255,255,255,.78);
  display:flex;align-items:center;justify-content:center;z-index:10;
}
.en-modal-loading-inner{
  padding:10px 14px;border:1px solid #d0d0d0;background:#fff;
  font-size:13px;font-weight:600;
}
.chx-clear-member{
  border:1px solid #d0d0d0;background:#fff;color:#222;
  padding:2px 8px;font-size:12px;cursor:pointer;
}
.chx-clear-member:hover{background:#f6f7f7;}


/* =====================================================
   APPLY FORM – ALERT (FRONTEND)
===================================================== */
.en-apply-alert-wrap{margin:10px 0 0 0;}
.en-apply-alert{
    padding:10px 12px;
    border:1px solid #e0e0e0;
    background:#fff;
    font-size:13px;
    line-height:1.35;
}
.en-apply-alert--success{
    border-color:#b7e1c0;
    background:#f2fbf4;
}
.en-apply-alert--error{
    border-color:#f3c4c4;
    background:#fff5f5;
}


/* =====================================================
   REQUESTS – DIFF UI (modern)
===================================================== */
.chx-req-diff { width:100%; border-collapse:collapse; border:1px solid #e6e6e6; background:#fff; }
.chx-req-diff th, .chx-req-diff td { padding:8px 10px; border-bottom:1px solid #eee; vertical-align:top; }
.chx-req-diff tr:hover td { background:#fafafa; }
.chx-req-diff tr.is-diff td { background:#fffdf5; }
.chx-req-diff tr.is-diff:hover td { background:#fff7df; }
.chx-old { text-decoration:line-through; opacity:.75; }
.chx-new { font-weight:700; }
.chx-arrow { opacity:.6; }
.chx-badge-changed { background:#111; color:#a35d00; padding:2px 6px; font-size:11px; border-radius:999px; margin-left:6px; }
.chx-diff-actions { display:flex; gap:8px; margin:10px 0; flex-wrap:wrap; }
.chx-thumb { max-width:120px; height:auto; border:1px solid #ddd; background:#fff; }


/* =====================================================
   CONSENT (IlijašNet)
===================================================== */
.en-consent{margin-top:5px}
.en-consent-label{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.35;color:#222}
.en-consent-label input{margin-top:2px}

/* ===============================
   ONLINE PRISTUPNICA – SUPPORT LEVEL
=================================*/
.chx-support-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.chx-support-option{display:block;border:1px solid #e5e7eb;background:#fff;padding:10px 10px 9px 10px;cursor:pointer}
.chx-support-option input{margin-right:8px}
.chx-support-title{display:block;font-weight:700;color:#111;line-height:1.2;margin-bottom:4px}
.chx-support-desc{display:block;font-size:12px;line-height:1.35;color:#444}
.chx-support-option.is-selected{border-color:#111}

@media (max-width: 700px){
  .chx-support-levels{grid-template-columns:1fr;}
}


/* === IlijašNet roles badges === */
.chx-badge-support{}
.chx-badge-donor{}
.chx-badge-collab{}

/* === Role tabs (admin add/edit) === */
.chx-role-tabs-wrap{display:flex;gap:10px;flex-wrap:wrap;}
.chx-role-tab{border:1px solid #d9d9d9;padding:10px 12px;min-width:210px;cursor:pointer;background:#fff;}
.chx-role-tab.is-active{border-color:#111;}
.chx-role-tab-title{display:block;font-weight:700;margin-bottom:4px;}
.chx-role-tab-desc{display:block;font-size:12px;opacity:.8;line-height:1.3;}

/* === Roles select (frontend + admin) === */
.chx-roles-select{margin-top:6px;}
.chx-roles-inline{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;}
.chx-role-check{display:inline-flex;gap:6px;align-items:center;font-size:13px;line-height:1;}
/* Force checkboxes to remain small even if other global input styles exist */
.chx-role-check input[type="checkbox"]{
  margin:0;
  width:14px !important;
  height:14px !important;
  min-width:14px !important;
  min-height:14px !important;
  padding:0 !important;
  border-radius:3px;
  box-sizing:border-box;
}
.chx-roles-inline{display:flex;gap:14px;flex-wrap:wrap;align-items:center;}
.chx-roles-desc{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid #e6e6e6;
  background:#f7f7f7;
  font-size:11px;
  color:#7a7a7a;
  line-height:1.35;
}
.chx-role-desc-item{margin:2px 0;}
.chx-role-desc-item.is-selected{font-weight:700;color:#222;}
.chx-role-desc-title{margin-right:6px;}

/* === Members cards meta === */
.en-card{position:relative;}
.en-card-inner{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.en-card-main{min-width:0;}
.en-card-meta{font-size:10px;line-height:1.25;color:#6b6b6b;text-align:right;white-space:normal;}
.en-card-meta strong{font-weight:700;color:#444;}
.en-card-meta-stack div{display:block;margin:1px 0;white-space:nowrap;}

/* === Public friends table enhancements === */
.chx-public-table .en-avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  object-fit:cover;
  display:inline-block;
}
.chx-avatar-fallback{
  width:32px;
  height:32px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:700;
  background:#f0f0f0;
  border:1px solid #e2e2e2;
  color:#444;
}
.chx-yes{font-weight:700;color:#0a7a2f;}
.chx-no{font-weight:700;color:#b00020;}

/* =========================================================
   PRIJATELJI PORTALA – EXCEL DENSE UI (OVERRIDES)
   Ultra-compact, flat, grid-like (frontend + admin)
========================================================= */
:root{
  --xl-font: 12px;
  --xl-font-xs: 11px;
  --xl-text: #111;
  --xl-muted: #666;
  --xl-border: #d9d9d9;
  --xl-border-soft: #ededed;
  --xl-bg: #fff;
  --xl-hover: #f7f7f7;
}

/* Scope */
.en-form-wrapper,
.en-admin-wrap,
.en-wrap{
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--xl-font);
  line-height: 1.25;
  color: var(--xl-text);
}

.en-help,
.en-desc,
.en-muted,
.description{
  color: var(--xl-muted);
  font-size: var(--xl-font-xs);
  line-height: 1.2;
}

/* Remove “card” look */
.en-section,
.en-card,
.en-box,
.en-panel{
  background: var(--xl-bg) !important;
  border: 1px solid var(--xl-border) !important;
  padding: 8px !important;
  margin: 0 0 8px 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.en-section h2, .en-section h3,
.en-card h2, .en-card h3{
  font-size: 13px !important;
  font-weight: 700 !important;
  margin: 0 0 6px 0 !important;
}

/* Inputs */
.en-admin-wrap input[type="text"],
.en-admin-wrap input[type="email"],
.en-admin-wrap input[type="number"],
.en-admin-wrap input[type="date"],
.en-admin-wrap input[type="search"],
.en-admin-wrap select,
.en-admin-wrap textarea,
.en-wrap input[type="text"],
.en-wrap input[type="email"],
.en-wrap input[type="number"],
.en-wrap input[type="date"],
.en-wrap input[type="search"],
.en-wrap select,
.en-wrap textarea{
  font-size: var(--xl-font) !important;
  line-height: 1.2 !important;
  padding: 3px 6px !important;
  height: 28px !important;
  border: 1px solid var(--xl-border) !important;
  background: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.en-admin-wrap textarea,
.en-wrap textarea{
  height: auto !important;
  min-height: 72px !important;
  padding: 6px !important;
}

.en-admin-wrap input:focus,
.en-admin-wrap select:focus,
.en-admin-wrap textarea:focus,
.en-wrap input:focus,
.en-wrap select:focus,
.en-wrap textarea:focus{
  border-color: #bfbfbf !important;
}

.en-admin-wrap ::placeholder,
.en-wrap ::placeholder{
  font-size: 11px !important;
  color: #888 !important;
}

/* Checkbox/radio – small */
.en-admin-wrap input[type="checkbox"],
.en-admin-wrap input[type="radio"],
.en-wrap input[type="checkbox"],
.en-wrap input[type="radio"]{
  transform: scale(.9);
  margin: 0 6px 0 0;
  vertical-align: middle;
}

.en-checkbox-row,
.en-radio-row,
.en-role-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.en-checkbox-row label,
.en-radio-row label,
.en-role-row label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: var(--xl-font);
  line-height: 1.1;
}

/* Buttons – compact (only plugin custom .en-btn; keep WP .button default) */
.en-btn{
  font-size: var(--xl-font) !important;
  padding: 3px 8px !important;
  min-height: 28px !important;
  line-height: 1.1 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.en-btn.en-btn-primary{font-weight:700 !important;}

/* Tables – Excel grid */
.en-frontend-table,
.en-admin-table,
.en-table,
.chx-public-table{
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fff !important;
  border: 1px solid var(--xl-border) !important;
  table-layout: fixed;
}

.en-frontend-table th,
.en-admin-table th,
.en-table th,
.chx-public-table th{
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 4px 6px !important;
  background: #fff !important;
  border-bottom: 1px solid var(--xl-border) !important;
  border-right: 1px solid var(--xl-border) !important;
  color: #222 !important;
  white-space: nowrap !important;
  text-align: left !important;
}

.en-frontend-table td,
.en-admin-table td,
.en-table td,
.chx-public-table td{
  font-size: var(--xl-font) !important;
  padding: 3px 6px !important;
  border-bottom: 1px solid var(--xl-border-soft) !important;
  border-right: 1px solid var(--xl-border-soft) !important;
  vertical-align: middle !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.en-frontend-table th:last-child,
.en-frontend-table td:last-child,
.en-admin-table th:last-child,
.en-admin-table td:last-child,
.en-table th:last-child,
.en-table td:last-child,
.chx-public-table th:last-child,
.chx-public-table td:last-child{
  border-right: 0 !important;
}

.en-frontend-table tr:hover td,
.en-admin-table tr:hover td,
.en-table tr:hover td,
.chx-public-table tr:hover td{
  background: var(--xl-hover) !important;
}

/* Align helpers */
.en-td-center{ text-align: center !important; }
.en-td-right{ text-align: right !important; }

/* Badges */
.en-badge,
.en-status-badge{
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid var(--xl-border);
  background: #fff;
  border-radius: 0 !important;
  line-height: 1.2;
  white-space: nowrap;
}

/* Filter bar */
.en-frontend-filters,
.en-filterbar{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--xl-border);
  padding: 6px;
  margin: 0 0 8px 0;
  background: #fff;
}

.en-chip,
.en-filter-chip{
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--xl-border);
  background: #fff;
  border-radius: 0 !important;
}

/* Thumbnails – prevent full-size */
.en-avatar,
.en-thumb,
.en-member-photo img,
.en-image-preview img,
.chx-public-table .en-avatar{
  width: 34px !important;
  height: 34px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  display: inline-block !important;
  margin: 0 !important;
}

.chx-avatar-fallback{
  width: 34px !important;
  height: 34px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
}

/* Empty state */
.en-empty,
.en-empty-state{
  border: 1px dashed var(--xl-border);
  padding: 10px;
  color: var(--xl-muted);
  font-size: var(--xl-font-xs);
  background: #fff;
}

@media (max-width: 768px){
  .en-frontend-table,
  .en-admin-table,
  .en-table,
  .chx-public-table{
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}


/* =====================================================
   PUBLIC DIRECTORY – FORCE TABLE (disable mobile cards)
===================================================== */
@media (max-width: 640px){
  .chx-public-table thead{ display: table-header-group !important; }
  .chx-public-table tbody tr{ display: table-row !important; border: none !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; background: transparent !important; }
  .chx-public-table tbody td{ display: table-cell !important; width: auto !important; border: 1px solid #e0e0e0 !important; padding: 6px 8px !important; }
  .chx-public-table tbody td:before{ content: none !important; display:none !important; }
  .chx-public-table tbody td.chx-col-avatar,
  .chx-public-table tbody td.chx-col-name{ width:auto !important; padding:6px 8px !important; }
}

/* Scroll wrapper */
.chx-public-table-wrap{ overflow-x:auto; -webkit-overflow-scrolling: touch; }
.chx-public-table{ min-width: 820px; }

/* Stats cards (4) */
.chx-stats{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:10px; margin:0 0 10px 0; }
.chx-stat{ border:1px solid #e5e5e5; background:#fff; border-radius:10px; padding:10px 12px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.chx-stat__label{ font-size:12px; color:#555; line-height:1.2; }
.chx-stat__value{ margin-top:4px; font-size:18px; font-weight:800; color:#111; }
@media(max-width:1024px){ .chx-stats{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px){ .chx-stat__value{ font-size:16px; } }

/* Filters actions (WP-like) */
.chx-filter-actions{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.chx-filter-actions .button{ height:34px; line-height:32px; padding:0 12px; }
@media(max-width:640px){
  .chx-filter-actions{ width:100%; }
  .chx-filter-actions .button{ flex:1; text-align:center; }
}



/* ===== PUBLIC DIRECTORY: FILTER ROW (checkboxes + buttons) ===== */
.chx-filters{ margin: 0 0 10px 0; }
.chx-filter-row{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}
.chx-check{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border:1px solid #e5e5e5;
  border-radius:10px;
  background:#fff;
}
.chx-check input{ margin:0; }

/* Keep buttons aligned in same row */
.chx-filter-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

/* Mobile: still in one row where possible */
@media (max-width: 640px){
  .chx-filter-row{ gap:8px; }
  .chx-check{ padding:6px 8px; }
  .chx-filter-actions{ width:100%; }
  .chx-filter-actions .button{ flex:1; text-align:center; }
}

/* ===== MEMBERSHIP STATUS (DA/NE) ===== */
.chx-membership{
  display:inline-block;
  font-weight:700;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid transparent;
  font-size:12px;
  line-height:1;
}
.chx-membership.chx-paid{
  border-color:#b7e0c2;
  background:#eaf7ee;
  color:#1d6b2f;
}
.chx-membership.chx-unpaid{
  border-color:#f0b9b9;
  background:#fdecec;
  color:#8a1f1f;
}

/* ===== FORCE TABLE VIEW ON MOBILE (disable any card layout leftovers) ===== */
@media (max-width: 640px){
  .chx-public-table{ display:table !important; }
  .chx-public-table thead{ display:table-header-group !important; }
  .chx-public-table tbody{ display:table-row-group !important; }
  .chx-public-table tr{ display:table-row !important; }
  .chx-public-table td, .chx-public-table th{ display:table-cell !important; }
}


/* =====================================================
   FRONTEND DIRECTORY (STATIC) – v4.1.6.3 overrides
===================================================== */

.chx-public-directory .chx-public-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
.chx-public-directory .chx-public-table{width:100%;border-collapse:collapse;min-width:760px;}
.chx-public-directory .chx-public-table th,
.chx-public-directory .chx-public-table td{border:1px solid #e6e6e6;padding:10px 10px;vertical-align:middle;font-size:13px;}
.chx-public-directory .chx-public-table th{font-weight:700;background:#fafafa;text-align:left;}

.chx-profile{display:flex;align-items:center;gap:10px;}
.chx-avatar-img{width:34px;height:34px;border-radius:999px;object-fit:cover;display:block;}
.chx-avatar-fallback{width:34px;height:34px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-weight:700;border:1px solid #ddd;background:#fff;color:#444;font-size:12px;}

.chx-paid{font-weight:800;}
.chx-paid--yes{color:#1f7a1f;}
.chx-paid--no{color:#b00020;}

/* Disable any legacy badge/card styles on this directory */
.chx-public-directory .chx-badge{display:none !important;}
.chx-public-directory .chx-row-card,
.chx-public-directory .en-row-card,
.chx-public-directory .chx-card{display:none !important;}

/* Filters row (single line) */
.chx-public-directory .chx-filters__row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0 12px 0;}
.chx-public-directory .chx-filter-group{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.chx-public-directory .chx-check{display:inline-flex;gap:8px;align-items:center;border:1px solid #e5e5e5;border-radius:10px;padding:8px 10px;background:#fff;}
.chx-public-directory .chx-check input{margin:0;}
.chx-public-directory .chx-filter-actions{display:flex;gap:8px;align-items:center;}
.chx-public-directory .chx-filter-actions .button{height:34px;line-height:32px;padding:0 12px;}

/* Stats grid (4 cards) */
.chx-public-directory .chx-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 10px 0;}
.chx-public-directory .chx-stat{border:1px solid #e5e5e5;background:#fff;border-radius:10px;padding:10px 12px;box-shadow:0 1px 2px rgba(0,0,0,.04);}
.chx-public-directory .chx-stat__label{font-size:12px;color:#555;line-height:1.2;}
.chx-public-directory .chx-stat__value{margin-top:4px;font-size:18px;font-weight:800;color:#111;}

@media (max-width:1024px){
  .chx-public-directory .chx-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:640px){
  .chx-public-directory .chx-public-table{min-width:680px;}
  .chx-public-directory .chx-stat__value{font-size:16px;}
  .chx-public-directory .chx-filter-actions{width:100%;}
  .chx-public-directory .chx-filter-actions .button{flex:1;text-align:center;}
}


/* =====================================================
 * Avatar role ring (priority): Sponzor > Prijatelj > Podrška
 * - No status badge/ribbon.
 * - Ring is applied via .chx-avatar-wrap.chx-ring--{role}
 * ===================================================== */
.chx-avatar-wrap{
    position:relative;
    display:inline-block;
    line-height:0;
}
.chx-avatar-wrap .en-avatar,
.chx-avatar-wrap .chx-avatar-img{
    border-radius:50%;
    object-fit:cover;
    display:block;
}
.chx-avatar-wrap .chx-avatar-fallback{
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
}

/* Role ring (3px) */
.chx-avatar-wrap.chx-ring--sponzor .en-avatar,
.chx-avatar-wrap.chx-ring--sponzor .chx-avatar-img,
.chx-avatar-wrap.chx-ring--sponzor .chx-avatar-fallback{
    border:3px solid var(--chx-role-sponzor);
    box-sizing:border-box;
}
.chx-avatar-wrap.chx-ring--prijatelj .en-avatar,
.chx-avatar-wrap.chx-ring--prijatelj .chx-avatar-img,
.chx-avatar-wrap.chx-ring--prijatelj .chx-avatar-fallback{
    border:3px solid var(--chx-role-prijatelj);
    box-sizing:border-box;
}
.chx-avatar-wrap.chx-ring--podrska .en-avatar,
.chx-avatar-wrap.chx-ring--podrska .chx-avatar-img,
.chx-avatar-wrap.chx-ring--podrska .chx-avatar-fallback{
    border:3px solid var(--chx-role-podrska);
    box-sizing:border-box;
}



/* Active members stat highlight */
.chx-stat__value--active{font-weight:800;color:#16a34a !important;}

/* =====================================================
   FRONTEND: SUPPORT STRIP SHORTCODE (chx-strip2)
===================================================== */

.chx-strip2 {
    border: 1px solid #e5e7eb;
    border-radius: 0px;
    padding: 0px 0px;
    background: #fff;
}

.chx-strip2-left {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chx-strip2-top {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: stretch;
}

.chx-strip2-right {
    flex: 1;
    min-width: 221px;
    border-radius: 15px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chx-strip2-cta-wrap {
    text-align: center;
    border-top: solid 1px #e5e7eb;
}

.chx-strip-cta {
    display: inline-block;
    padding: 5px 14px;
    width: 100%;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
}

.chx-strip2-num {
    font-size: 70px;
    line-height: 1.05;
    text-align: center;
    font-weight: 900;
}

.chx-strip2-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 3px 10px;
}

.chx-strip2-row-label {
    font-size: 13px;
    opacity: .8;
    font-weight: 700;
}

.chx-strip2-row-num {
    font-size: 18px;
    font-weight: 900;
}


/* ===== Apply form trust UI ===== */
.chx-submit-note{
  margin-top: 8px;
  font-size: 12.5px;
  opacity: .85;
}

.chx-privacy-details{
  margin-top: 2px;
}
.chx-privacy-summary{
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ===== Admin privacy badges ===== */
.chx-badge{
  display:inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.15);
  background:#fff;
}
.chx-badge--public{ border-color:#2c6; }
.chx-badge--private{ border-color:#e6a000; }
.chx-badge--anon{ border-color:#666; }
.chx-badge--muted{
  font-weight:600;
  opacity:.85;
}

.en-btn.button.button-primary{background:#2271b1;border-color:#2271b1;color:#fff;text-decoration:none;}
.en-btn.button.button-primary:hover{background:#135e96;border-color:#135e96;color:#fff;}

.chx-dim-input{opacity:.65;}


/* ==============================
   ONLINE PRISTUPNICA – 3-STEP WIZARD
============================== */
.chx-wizard-head{margin:0px;padding:5px 0px;background:#fff}
.chx-stepper-text{font-weight:700;margin-bottom:5px}
.chx-stepper-bar{height:8px;border:1px solid #d9d9d9;background:#fff;position:relative;overflow:hidden}
.chx-stepper-fill{display:block;height:100%;width:0%}
.chx-wizard-table.chx-wizard-ready .chx-step{display:none !important}
.chx-wizard-table.chx-wizard-ready .chx-step.is-active{display:table-row-group !important}
.chx-step-extra{margin-top:10px}
.chx-wizard-actions{display:flex;flex-direction:column;gap:10px}
.chx-wizard-nav{display:flex;gap:10px;flex-wrap:wrap}
.chx-wizard-nav .button{min-width:140px}
@media (max-width: 640px){
  .chx-wizard-nav{position:sticky;bottom:0;background:#fff;padding:10px 0;border-top:1px solid #111}
  .chx-wizard-nav .button{flex:1;min-width:0}
}


.chx-stepper-fill{background:#111}


/* =========================================================
 * APPLY (FRONTEND) – 3-step layout rows + role cards
 * ======================================================= */

.en-print-table--apply .chx-row-2{
  display:flex;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.en-print-table--apply .chx-row-2 .chx-field{
  flex:1 1 240px;
  min-width:220px;
}
.en-print-table--apply .chx-row-2 .chx-field .en-input{
  width:100%;
}

.chx-role-cards-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 820px){
  .chx-role-cards-grid{ grid-template-columns: 1fr; }
}

.chx-role-card{
  position:relative;
  display:flex;
  gap:10px;
  padding:12px;
  border:1px solid #dcdcde;
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  user-select:none;
}
.chx-role-card input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.chx-role-card .chx-role-card-body{ flex:1; }
.chx-role-card-title{
  font-weight:700;
  margin-bottom:4px;
}
.chx-role-card-desc{
  font-size:13px;
  line-height:1.35;
  opacity:.85;
}
.chx-role-card-check{
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid #dcdcde;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  opacity:.25;
}

.chx-role-card:has(input:checked){
  border-color:#2271b1;
  box-shadow:0 0 0 2px rgba(34,113,177,.15);
}
.chx-role-card:has(input:checked) .chx-role-card-check{
  border-color:#2271b1;
  opacity:1;
}


/* ==============================
 * APPLY – single-column field blocks
 * ============================== */
.en-print-table--apply .chx-row > td{
  padding: 10px 12px;
}
.chx-field-block{display:block}
.chx-field-label{font-weight:800;margin:0px}
.chx-field-help{font-size:13px;opacity:.85;margin:0 0 5px}
.chx-field-content{display:block}

/* Role cards: dim when disabled (anonymous mode) */
.chx-role-cards.en-disabled{
  opacity: .55;
}
.chx-role-cards.en-disabled .chx-role-card{opacity:.7;}
.chx-role-cards.en-disabled .chx-role-card-check{opacity:.4;}


/* Wizard buttons */
.chx-wizard-nav .button{
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
}

/* Mobile: form full width + stack 2-col rows */
@media (max-width: 640px){
  .en-apply-wrap,
  .en-print-page--apply,
  .en-print-form--apply{
    width:100%;
    max-width:100%;
  }
  .en-print-table--apply{
    width:100%;
  }
  .en-print-table--apply .chx-row-2 .chx-field{
    flex: 1 1 100%;
    min-width: 0;
  }
  .chx-wizard-head{padding:10px}
  .chx-wizard-nav{gap:8px}
  .chx-wizard-nav .button{flex:1}
}


/* Mobile: make apply form full width */
@media (max-width: 640px){
  .en-print-form--apply{width:100%;max-width:100%;}
  .en-print-table--apply{width:100%;}
}


/* ===== Apply (frontend) – flat buttons ===== */
.chx-flat-btn,
.chx-wizard-nav .button.chx-flat-btn{
  background:#111 !important;
  border:1px solid #111 !important;
  color:#fff !important;
  box-shadow:none !important;
  text-shadow:none !important;
  border-radius:10px !important;
  padding:10px 14px !important;
  font-weight:800 !important;
}
.chx-flat-btn:hover{ filter:brightness(0.95); }
.chx-flat-btn:active{ transform:translateY(1px); }

/* Dim disabled cards like privacy section */
.chx-role-cards-grid.chx-dim{
  opacity:.55;
}

/* Image wrap dim */
#chx_image_wrap.chx-dim{ opacity:.55; }

/* Mobile: make apply wrapper truly full width */
@media (max-width: 640px){
  .en-online-pristupnica-wrapper,
  .en-print-table--apply{
    width:100% !important;
    max-width:none !important;
  }
  .en-online-pristupnica-wrapper{
    padding-left:12px;
    padding-right:12px;
    box-sizing:border-box;
  }
}

/* Flat button disabled state */
.chx-flat-btn[disabled],
.chx-wizard-nav .button.chx-flat-btn[disabled]{
  opacity:.55 !important;
  cursor:not-allowed !important;
  filter:none !important;
  transform:none !important;
}

/* Success card after apply */
.chx-success-card{
  border:1px solid #111;
  background:#fff;
  padding:16px 14px;
  border-radius:14px;
  margin:14px 0 10px;
}
.chx-success-title{
  margin:0 0 6px;
  font-weight:900;
}
.chx-success-lead{
  margin:0 0 10px;
}
.chx-success-note{
  margin:0 0 14px;
  opacity:.9;
}
.chx-success-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* BH Connect diaspora upgrade */
.chx-diaspora-fields{padding:14px;border:1px solid rgba(17,24,39,.10);border-radius:16px;background:#f8fafc;}
.chx-diaspora-intro{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;margin-bottom:14px;box-shadow:0 10px 30px rgba(0,0,0,.05);}
.chx-diaspora-intro h3{margin:0 0 6px;font-size:24px;letter-spacing:-.03em;}
.chx-diaspora-intro p{margin:0;color:#64748b;}
.chx-diaspora-table th,.chx-diaspora-table td{vertical-align:top;}
@media(max-width:720px){.chx-diaspora-table thead{display:none}.chx-diaspora-table,.chx-diaspora-table tbody,.chx-diaspora-table tr,.chx-diaspora-table td{display:block;width:100%}.chx-diaspora-table tr{border-bottom:1px solid #e5e7eb;padding:10px}.chx-diaspora-table td{border:0!important;padding:7px 4px}.chx-diaspora-table td:before{content:attr(data-label);display:block;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:800}}
