/* ✦✦✦ MIRNES ✦✦✦ */

/* =====================================================
   GLOBAL
===================================================== */
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;
    font-size: 11px;
    font-weight: 600;
    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;
}

.en-frontend-table td:nth-child(4),
.en-frontend-table td:nth-child(5){
    text-align: center;
}

/* Avatar */
.en-avatar{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* 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-primary,
.en-pagination button.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;
}

/* WP button “flat” look u ovom bloku */
.en-toolbar .button.button-primary{
    background:#2d6cdf;
    border-color:#2d6cdf;
    color:#fff;
    box-shadow:none;
    text-shadow:none;
}

.en-toolbar .button.button-primary:hover{
    background:#255bc0;
    border-color:#255bc0;
    color:#fff;
}


/* =====================================================
   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 člana 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;
}

/* dugmad u headeru – flat */
.en-panel-actions .button{
  box-shadow:none;
  text-shadow:none;
}
.en-panel-actions .button.button-primary{
  background:#2d6cdf;
  border-color:#2d6cdf;
}
.en-panel-actions .button.button-primary:hover{
  background:#255bc0;
  border-color:#255bc0;
}


.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:14px;display:flex;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: 14px 16px 12px 16px;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
}

.en-online-pristupnica-header h2{
    margin: 0 0 6px 0;
    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
=================================*/
@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:22px}
@media (max-width:700px){
  .en-checkline--child{margin-left:14px}
}

/* ===============================
   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:6px;border-left:2px solid #111;padding-left:12px}
.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}


.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 (Dužnici)
===================================================== */
.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, .button{
        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:#fff; 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:12px}
.en-consent-label{display:flex;gap:10px;align-items:flex-start;font-size:13px;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:6px 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 */
.en-btn,
.en-admin-wrap .button,
.en-admin-wrap .button-primary,
.en-wrap .button,
.en-wrap .button-primary{
  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-admin-wrap .button-primary,
.en-wrap .button-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;
  }
}
