/* ═══════════════════════════════════════════════════════════════════════════
   Hromadný filter — štýly
   ═══════════════════════════════════════════════════════════════════════════

   ┌─ AKO MENIŤ ŠÍRKY STĹPCOV ──────────────────────────────┐
   │  Zmeň hodnoty CSS premenných v sekcii :root nižšie.    │
   │  Uložiť → Reload stránky → zmena sa prejaví.           │
   └────────────────────────────────────────────────────────┘
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── ŠÍRKY STĹPCOV — uprav tu ──────────────────────────────── */
:root {
  --hf-w-pracovnik: 200px;   /* Pracovník                */
  --hf-w-krajina:    34px;   /* 🏳️ Krajina (vlajka)      */
  --hf-w-nabor:      80px;   /* Nábor                    */
  --hf-w-adresa:    280px;   /* Adresa                   */
  --hf-w-telefon:   130px;   /* Telefón                  */
}

/* Page count */
.page-count {
    font-size: 13px;
    color: var(--text2);
}

/* Toolbar */
.hf-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.hf-toolbar-left {
    display: flex;
    gap: 10px;
}

.hf-toolbar-right {
    display: flex;
    align-items: center;
}

.hf-paste-hint {
    font-size: 12px;
    color: var(--text3);
    background: var(--surface2);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border2);
}

/* Table wrap */
.hf-tbl-wrap {
    min-width: 100%;
}

.hf-tbl-scroll {
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: auto;
}

/* Table */
.hf-tbl {
    border-collapse: collapse;
    font-size: 10px;
    table-layout: fixed;
    width: 100%;
    min-width: max-content;
}

.hf-tbl thead {
    background: var(--surface2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.hf-tbl th {
    text-align: left;
    padding: 3px 6px 4px;
    font-size: 9px;
    font-weight: 600;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border2);
    cursor: pointer;
    user-select: none;
}

.hf-tbl th:hover {
    background: var(--surface3);
}

.hf-th-inner {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hf-th-label {
    flex: 1;
}

.hf-si {
    font-size: 9px;
    color: var(--accent);
    min-width: 12px;
}

.hf-th-cb,
.hf-th-num {
    width: 36px;
    min-width: 36px;
    text-align: center;
    cursor: default;
}

.hf-th-num {
    color: var(--text3);
}

/* ── ŠÍRKY DÁTOVÝCH STĹPCOV — riadi :root vyššie ────────────── */
.hf-tbl th[data-sort="pracovnik"] {
  width: var(--hf-w-pracovnik);
  min-width: var(--hf-w-pracovnik);
}

.hf-tbl th[data-sort="krajina"] {
  width: var(--hf-w-krajina);
  min-width: var(--hf-w-krajina);
}

.hf-tbl th[data-sort="nabor"] {
  width: var(--hf-w-nabor);
  min-width: var(--hf-w-nabor);
}

.hf-tbl th[data-sort="adresa"] {
  width: var(--hf-w-adresa);
  min-width: var(--hf-w-adresa);
}

.hf-tbl th[data-sort="telefon"] {
  width: var(--hf-w-telefon);
  min-width: var(--hf-w-telefon);
}

.hf-tbl td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.hf-tr:hover {
    background: var(--surface2);
}

.hf-tr:last-child td {
    border-bottom: none;
}

/* Checkbox cell */
.hf-cb-td {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    text-align: center;
    cursor: default;
}

.hf-cb-td:hover {
    background: transparent !important;
}

.hf-cb {
    cursor: pointer;
    width: 14px;
    height: 14px;
    accent-color: var(--accent);
}

/* Row number */
.hf-rn {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    text-align: right;
    color: var(--text3);
    font-size: 11px;
    font-family: var(--font-mono);
}

/* Cell value */
.hf-cv {
    min-height: 18px;
    line-height: 18px;
}

/* Selected row */
.hf-sel-row {
    background: rgba(99, 102, 241, 0.1);
}

.hf-sel-row:hover {
    background: rgba(99, 102, 241, 0.15);
}

/* Editor input */
.hf-editor-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    outline: none;
    padding: 0;
}

/* Virtual scroll spacer */
.hf-vs-spacer td {
    padding: 0;
    border: none;
}

/* Bulk bar */
.hf-bulk-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 13px;
}

.hf-bulk-bar button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.hf-bulk-bar button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}

.btn-primary-sm:hover {
    background: var(--accent-dark);
}

.btn-ghost-sm {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border2);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
}

.btn-ghost-sm:hover {
    background: var(--surface2);
    color: var(--text);
}

/* Flag icons */
.fi {
    display: inline-block;
    width: 18px;
    height: 12px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .hf-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .hf-tbl {
        font-size: 10px;
    }

    .hf-tbl th,
    .hf-tbl td {
        padding: 6px 8px;
    }
}