/* =========================================================================
 * Munkatárs Jelenléti Rendszer – 2.0 dizájn: közös alapok
 * Szürkéskék / acélkék alap, pasztell kiemelések; telt szín csak a fő gombokon.
 * Minden szabály a .mjr-ui gyökér alá kerül, hogy a téma (Elementor stb.) ne zavarja.
 * ========================================================================= */

.mjr-ui {
    --tinta: #1C2635;
    --tinta2: #5B6879;
    --halvany: #687486;
    --vonal: #DEE3EA;
    --vonal2: #CBD3DD;
    --hatter: #F2F4F7;
    --felulet: #FFFFFF;
    --felulet2: #F8F9FB;
    --sb: #1E2939;
    --sb-aktiv: #33445E;
    --sb-halvany: #8F9CB0;
    --acel-s: #2F5476;
    --acel: #3B6690;
    --acel-k: #9DB8D3;
    --acel-p: #E2EAF3;
    --zold: #367A5E;   --zold-p: #E2F0E9;   --zold-s: #2B634C;
    --narancs: #9A5A24; --narancs-p: #F7EBDD; --narancs-s: #85501F;
    --piros: #A6463E;  --piros-p: #F6E3E1;  --piros-s: #8E3B34;
    --lila: #66589F;   --lila-p: #ECE9F5;   --lila-s: #564A8A;
    --sarga-p: #FBF3DC; --sarga: #7A5A12;
    --r-kis: 6px;
    --r: 10px;
    --r-nagy: 14px;
    --arnyek: 0 1px 2px rgba(28, 38, 53, .06), 0 1px 3px rgba(28, 38, 53, .05);
    --arnyek2: 0 4px 16px rgba(28, 38, 53, .08);
    --arnyek3: 0 24px 60px rgba(17, 24, 39, .28);
    --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* Számokhoz: arányos, ponttalan nullás betűtípus, egyforma szélességű (táblázatos) számjegyekkel */
    --mono: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.45;
    color: var(--tinta);
    -webkit-font-smoothing: antialiased;
    text-align: left;
}
.mjr-ui *, .mjr-ui *::before, .mjr-ui *::after { box-sizing: border-box; }
/* Egyforma szélességű számjegyek mindenhol (a font: rövidítés felülírná, ezért !important) */
.mjr-ui, .mjr-ui * { font-variant-numeric: tabular-nums !important; }
.mjr-ui h1, .mjr-ui h2, .mjr-ui h3, .mjr-ui h4 { font-family: var(--font); color: var(--tinta); letter-spacing: 0; text-transform: none; margin: 0; line-height: 1.25; }
.mjr-ui p { margin: 0; }
.mjr-ui a { color: var(--acel); }
.mjr-ui .mono, .mjr-ui code { font-family: var(--mono); }
.mjr-ui [hidden] { display: none !important; }
/* Téma-semlegesítés: a témák gyakran nagybetűsítik / átszínezik a gombokat */
.mjr-ui button, .mjr-ui input, .mjr-ui select, .mjr-ui textarea, .mjr-ui a { text-transform: none !important; letter-spacing: normal !important; text-shadow: none !important; }
.mjr-ui button { min-width: 0; }

/* Ikon */
.mjr-ui .mjr-i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; stroke: currentColor; fill: none; }
.mjr-ui .mjr-i.kicsi { width: 15px; height: 15px; vertical-align: -2px; }
.mjr-ui .mjr-i.nagy { width: 22px; height: 22px; }

/* Logó csempe, óra */
.mjr-ui .mjr-logo { width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--acel); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.mjr-ui .mjr-logo .mjr-i { width: 20px; height: 20px; }
.mjr-ui .mjr-ora { text-align: right; line-height: 1.15; flex: none; }
.mjr-ui .mjr-ora b { display: block; font: 600 22px/1.1 var(--mono); color: var(--tinta); letter-spacing: .02em !important; }
.mjr-ui .mjr-ora small { display: block; font-size: 12px; color: var(--tinta2); margin-top: 2px; }

/* ---------- Gombok ---------- */
.mjr-ui .mjr-btn, .mjr-ui a.mjr-btn {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
    min-height: 38px; padding: 8px 14px !important; margin: 0;
    border-radius: var(--r-kis) !important; border: 1px solid var(--vonal2) !important;
    background: var(--felulet) !important; color: var(--tinta) !important;
    font: 500 14px/1.2 var(--font) !important; letter-spacing: 0 !important; text-transform: none !important;
    text-decoration: none !important; cursor: pointer; box-shadow: none !important; text-shadow: none !important;
    white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.mjr-ui .mjr-btn:hover { border-color: var(--acel-k) !important; background: var(--felulet2) !important; }
.mjr-ui .mjr-btn:focus-visible, .mjr-ui .mjr-nav-elem:focus-visible, .mjr-ui .mjr-ikongomb:focus-visible { outline: 2px solid var(--acel); outline-offset: 2px; }
.mjr-ui .mjr-btn:disabled { opacity: .55; cursor: wait; }
.mjr-ui .mjr-btn.elsodleges { background: var(--acel) !important; border-color: var(--acel) !important; color: #fff !important; }
.mjr-ui .mjr-btn.elsodleges:hover { background: var(--acel-s) !important; border-color: var(--acel-s) !important; }
.mjr-ui .mjr-btn.veszely { color: var(--piros) !important; border-color: #E3C3BF !important; }
.mjr-ui .mjr-btn.veszely:hover { background: var(--piros-p) !important; }
.mjr-ui .mjr-btn.szoveg { border-color: transparent !important; background: transparent !important; color: var(--acel) !important; padding: 8px 10px !important; }
.mjr-ui .mjr-btn.szoveg:hover { background: var(--acel-p) !important; }
.mjr-ui .mjr-btn.szaggatott { border-style: dashed !important; color: var(--tinta2) !important; min-height: 32px; padding: 5px 12px !important; font-size: 13px !important; }
.mjr-ui .mjr-btn.kicsi { min-height: 32px; padding: 5px 10px !important; font-size: 13px !important; }
.mjr-ui .mjr-btn.teljes { width: 100%; }
.mjr-ui .mjr-ikongomb {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0 !important; margin: 0; border-radius: var(--r-kis) !important;
    border: 1px solid transparent !important; background: transparent !important; color: inherit !important;
    cursor: pointer; box-shadow: none !important; line-height: 1 !important;
}
.mjr-ui .mjr-ikongomb:hover { background: rgba(59, 102, 144, .1) !important; }
.mjr-ui .mjr-ikongomb.keretes { border-color: var(--vonal2) !important; background: var(--felulet) !important; width: 32px; height: 32px; }

/* ---------- Címkék / állapotjelzők ---------- */
.mjr-ui .mjr-pill {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
    font-size: 12px; font-weight: 500; line-height: 1.35; white-space: nowrap;
    background: #EDF0F4; color: #46505F;
}
.mjr-ui .mjr-pill .mjr-i { width: 13px; height: 13px; vertical-align: -2px; }
.mjr-ui .mjr-pill.cimke { border-radius: var(--r-kis); padding: 3px 8px; }
.mjr-ui .mjr-pill.zold { background: var(--zold-p); color: var(--zold-s); }
.mjr-ui .mjr-pill.narancs { background: var(--narancs-p); color: var(--narancs-s); }
.mjr-ui .mjr-pill.piros { background: var(--piros-p); color: var(--piros-s); }
.mjr-ui .mjr-pill.lila { background: var(--lila-p); color: var(--lila-s); }
.mjr-ui .mjr-pill.acel { background: var(--acel-p); color: var(--acel-s); }
.mjr-ui .mjr-pill.sarga { background: var(--sarga-p); color: var(--sarga); }
.mjr-ui .mjr-pill.keret { background: transparent; border: 1px solid var(--vonal2); color: var(--tinta2); }

/* ---------- Avatar ---------- */
.mjr-ui .mjr-avatar {
    flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px; letter-spacing: .02em; background: var(--acel-p); color: var(--acel-s);
}
.mjr-ui .mjr-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mjr-ui .mjr-avatar.a1 { background: var(--acel-p); color: var(--acel-s); }
.mjr-ui .mjr-avatar.a2 { background: var(--zold-p); color: var(--zold-s); }
.mjr-ui .mjr-avatar.a3 { background: var(--narancs-p); color: var(--narancs-s); }
.mjr-ui .mjr-avatar.a4 { background: var(--lila-p); color: var(--lila-s); }
.mjr-ui .mjr-avatar.a5 { background: #E9ECF1; color: #4A5565; }
.mjr-ui .mjr-avatar.kicsi { width: 30px; height: 30px; font-size: 11.5px; }

/* ---------- Űrlapelemek ---------- */
.mjr-ui input[type=text], .mjr-ui input[type=email], .mjr-ui input[type=tel], .mjr-ui input[type=date],
.mjr-ui input[type=number], .mjr-ui input[type=month], .mjr-ui input[type=time], .mjr-ui input[type=password],
.mjr-ui input[type=search], .mjr-ui select, .mjr-ui textarea {
    width: 100%; max-width: 100%; min-height: 38px; margin: 0; padding: 7px 10px;
    border: 1px solid var(--vonal2) !important; border-radius: var(--r-kis) !important;
    background-color: var(--felulet) !important; color: var(--tinta) !important; box-shadow: none !important;
    font: 400 14px/1.35 var(--font) !important;
}
.mjr-ui select { padding-right: 30px; -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6879' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 10px center !important; }
.mjr-ui input:focus, .mjr-ui select:focus, .mjr-ui textarea:focus { outline: none; border-color: var(--acel) !important; box-shadow: 0 0 0 3px rgba(59, 102, 144, .16) !important; }
.mjr-ui input::placeholder, .mjr-ui textarea::placeholder { color: #9AA5B4; }
.mjr-ui input[type=checkbox], .mjr-ui input[type=radio] { accent-color: var(--acel); width: 16px; height: 16px; margin: 0; }
.mjr-ui .mjr-cimke-kicsi, .mjr-ui label > span.mjr-cimke-kicsi { display: block; font-size: 12px; font-weight: 500; color: var(--tinta2); margin-bottom: 5px; }

/* ---------- Belépő ablak (vezérlőpult, rögzítő felület) ---------- */
.mjr-ui .mjr-belepes-modal {
    position: fixed; inset: 0; z-index: 100200; display: none; align-items: center; justify-content: center;
    padding: 16px; background: rgba(23, 31, 44, .55); backdrop-filter: blur(4px);
}
.mjr-ui .mjr-belepes-modal.aktiv { display: flex; }
.mjr-ui .mjr-belepes-doboz {
    position: relative; width: 100%; max-width: 380px; padding: 28px 26px 22px; text-align: left;
    background: var(--felulet); border: 1px solid var(--vonal); border-radius: var(--r-nagy); box-shadow: var(--arnyek3);
}
.mjr-ui .mjr-belepes-doboz.razas { animation: mjr-razas .4s; }
@keyframes mjr-razas { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.mjr-ui .mjr-belepes-ikon { width: 44px; height: 44px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; background: var(--acel); color: #fff; margin-bottom: 14px; }
.mjr-ui .mjr-belepes-ikon .mjr-i { width: 22px; height: 22px; }
.mjr-ui .mjr-belepes-doboz h2 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.mjr-ui .mjr-belepes-alcim { color: var(--tinta2); font-size: 13.5px; margin-bottom: 18px; }
.mjr-ui .mjr-jelszo-mezo { position: relative; }
.mjr-ui .mjr-jelszo-mezo input { padding-right: 42px !important; min-height: 42px; }
.mjr-ui .mjr-jelszo-mezo .mjr-jelszo-mutat { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--tinta2) !important; }
.mjr-ui .mjr-belepes-hiba { display: none; margin-top: 10px; padding: 8px 10px; border-radius: var(--r-kis); background: var(--piros-p); color: var(--piros-s); font-size: 13px; }
.mjr-ui .mjr-belepes-hiba.lathato { display: block; }
.mjr-ui .mjr-belepes-gomb { width: 100%; margin-top: 14px; min-height: 42px; }
.mjr-ui .mjr-belepes-bezar { position: absolute !important; top: 12px; right: 12px; color: var(--tinta2) !important; }
.mjr-ui .mjr-belepes-lab { margin-top: 14px; font-size: 12px; color: var(--halvany); display: flex; gap: 6px; align-items: flex-start; }
.mjr-ui .mjr-belepes-lab .mjr-i { width: 14px; height: 14px; margin-top: 1px; }

/* ---------- Értesítés (toast) ---------- */
.mjr-toast {
    position: fixed; right: 18px; bottom: 18px; z-index: 100300; max-width: 420px;
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r, 10px);
    background: #1C2635; color: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
    font: 400 14px/1.45 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif; white-space: pre-line;
    opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s;
    border-left: 4px solid #9DB8D3;
}
.mjr-toast.lathato { opacity: 1; transform: none; }
.mjr-toast.ok { border-left-color: #6FB394; }
.mjr-toast.hiba { border-left-color: #E08A82; }
.mjr-toast.figy { border-left-color: #E2A867; }
.mjr-toast .mjr-i { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; }

/* Telepítési útmutató (PWA) */
.mjr-ui.mjr-pwa-sugo { position: fixed; inset: 0; z-index: 1000000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(17, 24, 39, .55); }
.mjr-pwa-sugo .mjr-pwa-sugo-doboz { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px 24px 20px; background: var(--felulet); border-radius: var(--r-nagy); box-shadow: var(--arnyek3); }
.mjr-pwa-sugo h2 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.mjr-pwa-sugo p { color: var(--tinta2); margin-bottom: 12px; }
.mjr-pwa-sugo ol { margin: 0 0 18px; padding-left: 20px; }
.mjr-pwa-sugo li { margin: 0 0 8px; line-height: 1.45; }
.mjr-pwa-sugo .mjr-btn { width: 100%; justify-content: center; }
