/* ──────────────────────────────────────────────────────────
   Namespace: pmc-  (PE mass create — modal za masovno kreiranje evaluacija)
   Source:    HR101BL/Pages/Employee/PEModal.razor
              HR101BL/Pages/Employee/PEModalBase.cs

   PBI 9731. 1:1 port dizajna iz projects/PBI-9731-pe-mass-create-evaluator-mode/design/
   (Main / Ocjenjivaci / SpecificnaOsoba / Rezultat .dc.html, klase u <helmet><style>):
     .mo .mh .mi .mt .ctx .mx .mb .sl .seg .opt .row2 .inp .hint .pill .cnt .sum .k .rs .rc
     .card .fb .srch .tabs .tab .grow .ghost .tbl .emp .av .who .wn .muted .bd .pg .pgs .pb
     .mf .btn .note .evs .ev .nev .ro .cont .why
   → .pmc-* (vidi komentar uz svaku sekciju).

   Tokeni (--is-*) su globalni (colors_and_type.css / insync-tokens.css) — ovaj fajl NIKAD
   ne redefiniše :root. Hex iz dizajna koji nema token ostaje literal.
   Backdrop je FIXED overlay (position:fixed; inset:0), ne .stage iz artboarda.
   ────────────────────────────────────────────────────────── */

/* ── Scrim + modal shell (.stage → .pmc-scrim, .mo → .pmc-modal) ── */
.pmc-scrim {
    position: fixed;
    inset: 0;
    background: rgba(20, 28, 50, .42);
    display: grid;
    place-items: center;
    padding: 28px;
    z-index: 1050;
    overflow-y: auto;
}

.pmc-modal {
    width: 1040px;
    max-width: 100%;
    max-height: calc(100vh - 56px);
    background: #fff;
    border-radius: var(--is-radius-lg, 14px);
    box-shadow: var(--is-shadow-pop, 0 16px 48px rgba(20, 28, 50, .18));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1051;
    font-family: var(--is-font-sans, 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif);
    color: var(--is-fg-1, #1a1f2e);
}

.pmc-modal a { color: var(--is-brand-blue-700, #066894); }
.pmc-modal a:hover { color: #044d6e; }

/* ── Header (.mh .mi .mt .ctx .mx) ───────────────────────── */
.pmc-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--is-border-1, #e6e9ef);
    flex: 0 0 auto;
}

.pmc-mi {
    width: 38px;
    height: 38px;
    border-radius: var(--is-radius-sm, 6px);
    background: var(--is-brand-blue, #0494da);
    color: #fff;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.pmc-mi--ok { background: var(--is-success, #26b050); }
.pmc-mi--wr { background: #b37d00; }

.pmc-mt { flex: 1 1 auto; min-width: 0; }

.pmc-mt h3 {
    margin: 0;
    font: 700 17px var(--is-font-sans);
    letter-spacing: -.005em;
    color: var(--is-fg-1, #1a1f2e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pmc-mt p {
    margin: 3px 0 0;
    font: 500 12.5px var(--is-font-sans);
    color: #5f6879;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Projekat chip (GMC) — varijanta .ctx iz SpecificnaOsoba.dc.html */
.pmc-ctx {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font: 700 11px var(--is-font-sans);
    background: #fff4e5;
    color: #8a4b00;
    border: 1px solid #f5d3a3;
    border-radius: var(--is-radius-pill, 999px);
    padding: 2px 9px;
    white-space: nowrap;
}

.pmc-mx {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: var(--is-radius-xs, 3px);
    color: #5f6879;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: 0 0 auto;
}

.pmc-mx:hover { background: var(--is-bg-surface-3, #f8f9fa); color: var(--is-fg-1, #1a1f2e); }

/* ── Body (.mb) ──────────────────────────────────────────── */
.pmc-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

/* Section label (.sl) */
.pmc-sl {
    display: flex;
    align-items: center;
    gap: 6px;
    font: 700 12px var(--is-font-sans);
    color: var(--is-fg-1, #1a1f2e);
    margin: 0 0 7px;
    white-space: nowrap;
}

.pmc-sl .pmc-req { color: var(--is-danger, #d92c2c); }

.pmc-sl .pmc-ib {
    width: 16px;
    height: 16px;
    border: none;
    background: transparent;
    color: var(--is-info, #0d8fd9);
    padding: 0;
    display: grid;
    place-items: center;
    cursor: help;
}

/* „Ko ocjenjuje" — 3 kartice-radio (.seg .opt .dot .tx) */
.pmc-seg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pmc-opt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    padding: 10px 12px;
    border: 1px solid var(--is-border-2, #d6d5d5);
    border-radius: var(--is-radius-md, 10px);
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    min-width: 0;
}

.pmc-opt .pmc-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--is-border-3, #b9bfca);
    flex: 0 0 auto;
    margin-top: 1px;
    box-sizing: border-box;
}

.pmc-opt .pmc-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.pmc-opt b {
    font: 700 13px var(--is-font-sans);
    color: var(--is-fg-1, #1a1f2e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pmc-opt .pmc-tx > span {
    font: 500 11.5px var(--is-font-sans);
    color: #5f6879;
    line-height: 1.4;
}

.pmc-opt--on {
    border-color: var(--is-brand-blue, #0494da);
    background: #f0f9fe;
    box-shadow: 0 0 0 3px rgba(4, 148, 218, .12);
}

.pmc-opt--on .pmc-dot { border: 5px solid var(--is-brand-blue, #0494da); }

/* Info napomena (.note) */
.pmc-note {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--is-radius-sm, 6px);
    border: 1px solid #c5e4f6;
    background: var(--is-info-bg, #e6f4fb);
    color: #0a5c8c;
    font: 500 12.5px var(--is-font-sans);
    line-height: 1.5;
}

.pmc-note b { font-weight: 700; }
.pmc-note .pmc-ic { flex: 0 0 auto; margin-top: 2px; }

/* Dva polja u redu (.row2) */
.pmc-row2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* Hint (.hint) */
.pmc-hint {
    font: 500 11.5px var(--is-font-sans);
    color: #5f6879;
    margin-top: 5px;
}

.pmc-hint--err { color: #b42323; }

/* ── Pill dropdown (.pill .t .x .sel .req .sm) ──────────────
   Pravi SfDropDownList leži na opacity:0 u host-u (.is-sf-pill); pill chrome je iznad
   na pointer-events:none, pa klik prolazi do kontrole (popup se renderuje na <body>). */
.pmc-pillhost { position: relative; min-width: 0; }

.pmc-pillhost .e-ddl,
.pmc-pillhost .e-control-wrapper,
.pmc-pillhost .e-input-group {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    opacity: 0;
    cursor: pointer;
}

.pmc-pillhost .e-input-group::before,
.pmc-pillhost .e-input-group::after { display: none !important; }

.pmc-pill {
    position: relative;
    height: 38px;
    box-sizing: border-box;
    border: 1px solid var(--is-border-2, #d6d5d5);
    border-radius: var(--is-radius-sm, 6px);
    background: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    font: 500 13px var(--is-font-sans);
    color: var(--is-fg-3, #7a8395);
    min-width: 0;
    pointer-events: none;
}

.pmc-pill .pmc-t {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pmc-pill svg { flex: 0 0 auto; }

.pmc-pillhost:hover .pmc-pill { border-color: #7cc3e8; }

.pmc-pill--sel {
    border-color: #7cc3e8;
    background: var(--is-brand-blue-100, #e6f4fb);
    color: var(--is-brand-blue-700, #066894);
    font-weight: 700;
}

.pmc-pill--req {
    border-color: var(--is-brand-blue, #0494da);
    box-shadow: 0 0 0 2px rgba(4, 148, 218, .10);
}

.pmc-pill--err {
    border-color: var(--is-danger, #d92c2c);
    box-shadow: 0 0 0 2px rgba(217, 44, 44, .10);
}

.pmc-pill--sm { height: 32px; }

.pmc-pill .pmc-x {
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    color: var(--is-brand-blue-700, #066894);
    padding: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    pointer-events: auto;
    flex: 0 0 auto;
}

/* Upozorenje ⚠ (.wn) */
.pmc-wn {
    color: #b37d00;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    pointer-events: auto;
    cursor: help;
}

/* ── Datum (.inp .req .err) — SfDatePicker restilizovan na 38px ── */
.pmc-date .e-input-group.e-control-wrapper.e-date-wrapper,
.pmc-date .e-input-group.e-control-wrapper.e-date-wrapper:not(.e-float-icon-left) {
    height: 38px !important;
    box-sizing: border-box !important;
    border: 1px solid var(--is-border-2, #d6d5d5) !important;
    border-radius: var(--is-radius-sm, 6px) !important;
    background: #fff !important;
    padding: 0 0 0 11px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.pmc-date .e-input-group.e-date-wrapper::before,
.pmc-date .e-input-group.e-date-wrapper::after { display: none !important; }

.pmc-date .e-input-group.e-date-wrapper input.e-input {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    font: 600 13px var(--is-font-mono, 'JetBrains Mono', monospace) !important;
    color: var(--is-fg-1, #1a1f2e) !important;
    background: transparent !important;
}

.pmc-date .e-input-group.e-date-wrapper input.e-input::placeholder {
    font: 500 13px var(--is-font-sans) !important;
    color: var(--is-fg-3, #7a8395) !important;
}

.pmc-date .e-input-group.e-date-wrapper .e-input-group-icon {
    color: var(--is-fg-3, #7a8395) !important;
    background: transparent !important;
    border: 0 !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    font-size: 15px !important;
}

.pmc-date--req .e-input-group.e-control-wrapper.e-date-wrapper {
    border-color: var(--is-brand-blue, #0494da) !important;
    box-shadow: 0 0 0 2px rgba(4, 148, 218, .10) !important;
}

.pmc-date--err .e-input-group.e-control-wrapper.e-date-wrapper {
    border-color: var(--is-danger, #d92c2c) !important;
    box-shadow: 0 0 0 2px rgba(217, 44, 44, .10) !important;
}

/* ── KPI kartice (.sum .k .lb .v .sub .ok .wr .rs .rc) ────── */
.pmc-sum {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.pmc-kpi {
    border: 1px solid var(--is-border-1, #e6e9ef);
    border-radius: var(--is-radius-md, 10px);
    padding: 11px 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pmc-kpi .pmc-lb {
    font: 600 11.5px var(--is-font-sans);
    color: #5f6879;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pmc-kpi .pmc-v {
    font: 800 22px var(--is-font-mono, 'JetBrains Mono', monospace);
    letter-spacing: -.02em;
}

.pmc-kpi .pmc-sub {
    font: 500 11.5px var(--is-font-sans);
    color: #5f6879;
}

.pmc-kpi--ok .pmc-v { color: #1d8a3e; }

/* Rezultat: zelena KPI kartica (Rezultat.dc.html .k.ok) */
.pmc-kpi--okbg { background: #f2fbf5; border-color: #bfe6cc; }

.pmc-kpi--wr { background: #fffbea; border-color: #f0dda0; }
.pmc-kpi--wr .pmc-v { color: #8a6400; }

.pmc-rs { display: flex; flex-wrap: wrap; gap: 6px; }

.pmc-rc {
    font: 600 11px var(--is-font-sans);
    background: #fff;
    border: 1px solid #f0dda0;
    color: #7a5a00;
    border-radius: var(--is-radius-pill, 999px);
    padding: 2px 8px;
    white-space: nowrap;
}

/* Read-only sažetak na rezultatu (.ro) */
.pmc-ro {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1px solid var(--is-border-1, #e6e9ef);
    border-radius: var(--is-radius-sm, 6px);
    background: var(--is-bg-surface-3, #f8f9fa);
    font: 500 12.5px var(--is-font-sans);
    color: var(--is-fg-2, #4a5468);
}

.pmc-ro b { color: var(--is-fg-1, #1a1f2e); font-weight: 700; }

/* ── Kartica sa tabelom (.card) + filter-bar (.fb .srch .tabs .tab .grow .ghost) ── */
.pmc-card {
    border: 1px solid var(--is-border-1, #e6e9ef);
    border-radius: var(--is-radius-md, 10px);
    overflow: hidden;
    flex: 0 0 auto;
}

.pmc-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--is-border-1, #e6e9ef);
    flex-wrap: wrap;
}

.pmc-srch {
    height: 33px;
    width: 240px;
    box-sizing: border-box;
    border: 1px solid var(--is-border-2, #d6d5d5);
    border-radius: var(--is-radius-sm, 6px);
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    color: var(--is-fg-3, #7a8395);
    font: 500 12.5px var(--is-font-sans);
    background: #fff;
    /* Bootstrap reboot daje <label> margin-bottom:.5rem → search se podiže, a tabovi
       izgledaju spušteno. Nuliramo margine da se svi elementi filter-bara centriraju. */
    margin: 0;
}

.pmc-srch svg { flex: 0 0 auto; }

.pmc-srch input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0;
    background: transparent;
    font: 500 12.5px var(--is-font-sans);
    color: var(--is-fg-1, #1a1f2e);
}

.pmc-srch input::placeholder { color: var(--is-fg-3, #7a8395); opacity: 1; }

.pmc-srch:focus-within { border-color: var(--is-brand-blue, #0494da); }

.pmc-tabs {
    display: inline-flex;
    border: 1px solid var(--is-border-2, #d6d5d5);
    border-radius: var(--is-radius-sm, 6px);
    overflow: hidden;
    margin: 0;
}

.pmc-tab {
    margin: 0;
    height: 31px;
    padding: 0 11px;
    border: none;
    border-right: 1px solid var(--is-border-2, #d6d5d5);
    background: #fff;
    font: 600 12px var(--is-font-sans);
    color: var(--is-fg-2, #4a5468);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
}

.pmc-tab:last-child { border-right: none; }

.pmc-tab .pmc-n {
    font: 700 10.5px var(--is-font-mono, 'JetBrains Mono', monospace);
    color: var(--is-fg-3, #7a8395);
}

.pmc-tab--on { background: var(--is-brand-blue, #0494da); color: #fff; }
.pmc-tab--on .pmc-n { color: var(--is-brand-blue-100, #e6f4fb); }

.pmc-grow { flex: 1 1 auto; }

.pmc-ghost {
    height: 31px;
    padding: 0 10px;
    border: 1px solid var(--is-border-2, #d6d5d5);
    background: #fff;
    border-radius: var(--is-radius-xs, 3px);
    font: 600 12px var(--is-font-sans);
    color: var(--is-fg-2, #4a5468);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
}

.pmc-ghost:hover:not(:disabled) { background: var(--is-bg-surface-3, #f8f9fa); }
.pmc-ghost:disabled { opacity: .38; cursor: not-allowed; }

/* ── Tabela (.tbl .emp .av .nm .dp .who .muted .evs .ev .nev .cont .why .grp) ── */
.pmc-tbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.pmc-tbl th {
    background: var(--is-bg-surface-3, #f8f9fa);
    text-align: left;
    font: 700 11px var(--is-font-sans);
    color: var(--is-fg-2, #4a5468);
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 8px 12px;
    border-bottom: 1px solid var(--is-border-1, #e6e9ef);
    white-space: nowrap;
}

/* Širine kolona iz dizajna (inline style="width:…" u artboard-u → klase) */
.pmc-tbl th:nth-child(1) { width: 30%; }
.pmc-tbl th:nth-child(2) { width: 30%; }
.pmc-tbl th:nth-child(3) { width: 24%; }
.pmc-tbl th:nth-child(4) { width: 16%; }

.pmc-tbl--ev th:nth-child(1) { width: 27%; }
.pmc-tbl--ev th:nth-child(2) { width: 24%; }
.pmc-tbl--ev th:nth-child(3) { width: 33%; }
.pmc-tbl--ev th:nth-child(4) { width: 16%; }

.pmc-tbl--res th:nth-child(1) { width: 30%; }
.pmc-tbl--res th:nth-child(2) { width: 24%; }
.pmc-tbl--res th:nth-child(3) { width: 16%; }
.pmc-tbl--res th:nth-child(4) { width: 30%; }

.pmc-tbl th.pmc-sortable { cursor: pointer; user-select: none; }

.pmc-tbl th .pmc-s {
    color: var(--is-fg-muted, #9aa3b3);
    margin-left: 4px;
    font-size: 10px;
    vertical-align: -1px;
}

.pmc-tbl th .pmc-s--on { color: var(--is-brand-blue, #0494da); }

.pmc-tbl td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--is-border-1, #e6e9ef);
    font: 500 12.5px var(--is-font-sans);
    color: var(--is-fg-1, #1a1f2e);
    vertical-align: middle;
}

.pmc-tbl tr:last-child td { border-bottom: none; }

/* Hover reda — blagi plavosivi kao PE V2 grid (.pe-tbl). Globalni tr:hover daje jaku sivu
   na <tr>, pa je gasimo na redu i bojimo ćelije (isti obrazac kao .ec-tbl). */
/* site.css `table tbody tr:hover` daje #d4d1cf pozadinu + sivi box-shadow — gasimo oba. */
.pmc-modal .pmc-tbl tbody tr,
.pmc-modal .pmc-tbl tbody tr:hover {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    color: inherit;
}
.pmc-modal .pmc-tbl tbody tr > td { transition: background-color .12s ease; }
.pmc-modal .pmc-tbl tbody tr:hover > td { background: var(--is-brand-blue-100, #e6f4fb) !important; }
.pmc-modal .pmc-tbl tbody tr:hover > td.pmc-empty { background: transparent !important; }
.pmc-tbl tr.pmc-grp td { border-top: 2px solid var(--is-border-1, #e6e9ef); }

.pmc-tbl td.pmc-empty {
    text-align: center;
    color: var(--is-fg-3, #7a8395);
    padding: 22px 12px;
}

.pmc-emp { display: flex; align-items: center; gap: 9px; min-width: 0; }

.pmc-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--is-brand-blue-100, #e6f4fb);
    color: var(--is-brand-blue-700, #066894);
    font: 700 11px var(--is-font-sans);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.pmc-emp .pmc-empw { min-width: 0; }

.pmc-emp .pmc-nm {
    display: block;
    font: 600 12.5px var(--is-font-sans);
    color: var(--is-brand-blue-700, #066894);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.pmc-emp .pmc-dp {
    font: 500 11px var(--is-font-sans);
    color: #5f6879;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pmc-who {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pmc-muted { color: var(--is-fg-3, #7a8395); }

.pmc-evs { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }

.pmc-ev {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 8px;
    border-radius: var(--is-radius-pill, 999px);
    background: #f0f9fe;
    border: 1px solid #cfe7f6;
    font: 600 11.5px var(--is-font-sans);
    color: var(--is-fg-1, #1a1f2e);
    white-space: nowrap;
}

.pmc-ev--off {
    background: #f4f5f7;
    border-color: #e0e3e8;
    color: var(--is-fg-3, #7a8395);
    text-decoration: line-through;
}

.pmc-ev--off .pmc-why { text-decoration: none; font-weight: 500; }

.pmc-nev {
    font: 700 10px var(--is-font-mono, 'JetBrains Mono', monospace);
    color: var(--is-brand-blue-700, #066894);
    background: var(--is-brand-blue-100, #e6f4fb);
    border-radius: var(--is-radius-pill, 999px);
    padding: 0 6px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    cursor: default;
}

/* Rezultat: nastavak grupe (↳ ime) i napomena */
.pmc-tbl td.pmc-cont { padding-left: 37px; color: var(--is-fg-3, #7a8395); font-size: 11.5px; }
.pmc-tbl td.pmc-why { font: 500 12px var(--is-font-sans); color: var(--is-fg-2, #4a5468); }

/* Status badge (.bd .ok .no .er) */
.pmc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 8px;
    border-radius: var(--is-radius-pill, 999px);
    font: 700 11px var(--is-font-sans);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pmc-badge--ok { background: var(--is-success-bg, #e6f7ec); color: #1d7a37; }
.pmc-badge--no { background: var(--is-warning-bg, #fff5d6); color: #7a5a00; }
.pmc-badge--er { background: var(--is-danger-bg, #fde7e7); color: #a61f1f; }

/* ── Pager (.pg .pgs .pb) ────────────────────────────────── */
.pmc-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-top: 1px solid var(--is-border-1, #e6e9ef);
    font: 500 12px var(--is-font-sans);
    color: #5f6879;
}

.pmc-pager__right { display: flex; align-items: center; gap: 10px; }

.pmc-pgs { display: inline-flex; gap: 3px; }

.pmc-pb {
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border: 1px solid var(--is-border-2, #d6d5d5);
    background: #fff;
    border-radius: var(--is-radius-xs, 3px);
    font: 600 12px var(--is-font-mono, 'JetBrains Mono', monospace);
    color: var(--is-fg-2, #4a5468);
    cursor: pointer;
}

.pmc-pb--on { background: var(--is-brand-blue, #0494da); border-color: var(--is-brand-blue, #0494da); color: #fff; }
.pmc-pb:disabled { opacity: .38; cursor: not-allowed; }

/* „Redova" — pill chrome (64×26) iznad nevidljivog native <select> */
.pmc-rows {
    position: relative;
    width: 64px;
    height: 26px;
    box-sizing: border-box;
    border: 1px solid var(--is-border-2, #d6d5d5);
    border-radius: var(--is-radius-sm, 6px);
    background: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    font: 500 12px var(--is-font-sans);
    color: var(--is-fg-3, #7a8395);
}

.pmc-rows .pmc-t { flex: 1 1 auto; min-width: 0; }

.pmc-rows select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: 0;
}

/* ── Footer (.mf .meta) + dugmad (.btn .l .pri .sec) ─────── */
.pmc-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-top: 1px solid var(--is-border-1, #e6e9ef);
    background: #fafbfc;
    flex: 0 0 auto;
}

.pmc-foot .pmc-meta {
    flex: 1 1 auto;
    min-width: 0;
    font: 500 12px var(--is-font-sans);
    color: #5f6879;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pmc-btn {
    height: 36px;
    padding: 0 14px;
    border-radius: var(--is-radius-xs, 3px);
    border: 1px solid transparent;
    font: 700 13px var(--is-font-sans);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    flex: 0 1 auto;
    min-width: 0;
}

.pmc-btn svg { flex: 0 0 auto; }
.pmc-btn .pmc-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.pmc-btn--pri { background: var(--is-brand-blue, #0494da); color: #fff; }
.pmc-btn--pri:hover:not(:disabled) { background: var(--is-brand-blue-600, #097cb9); color: #fff; }

.pmc-btn--sec { background: #fff; border-color: var(--is-border-2, #d6d5d5); color: var(--is-fg-1, #1a1f2e); }
.pmc-btn--sec:hover:not(:disabled) { background: var(--is-bg-surface-3, #f8f9fa); color: var(--is-fg-1, #1a1f2e); }

.pmc-modal a.pmc-btn--sec,
.pmc-modal a.pmc-btn--sec:hover { color: var(--is-fg-1, #1a1f2e); text-decoration: none; }

.pmc-btn:disabled { opacity: .38; cursor: not-allowed; }

/* ── Uski prozor ─────────────────────────────────────────── */
@media (max-width: 760px) {
    .pmc-scrim { padding: 12px; }
    .pmc-seg, .pmc-row2, .pmc-sum { grid-template-columns: minmax(0, 1fr); }
    .pmc-srch { width: 100%; }
    .pmc-card { overflow-x: auto; }
    .pmc-tbl { min-width: 720px; }
}

/* ── Scrollbar — tanki, plavosivi (isti obrazac kao ostale V2 stranice) ── */
.pmc-scrim,
.pmc-modal,
.pmc-modal * {
    scrollbar-width: thin;
    scrollbar-color: #c3c9d4 transparent;
}

.pmc-scrim::-webkit-scrollbar,
.pmc-modal ::-webkit-scrollbar { width: 6px; height: 6px; }
.pmc-scrim::-webkit-scrollbar-track,
.pmc-modal ::-webkit-scrollbar-track { background: transparent; }
.pmc-scrim::-webkit-scrollbar-thumb,
.pmc-modal ::-webkit-scrollbar-thumb { background: #c3c9d4; border-radius: 999px; }
.pmc-scrim::-webkit-scrollbar-thumb:hover,
.pmc-modal ::-webkit-scrollbar-thumb:hover { background: #9aa3b3; }
.pmc-scrim::-webkit-scrollbar-button,
.pmc-modal ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }