* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; background: #faf6ee; padding: 16px; line-height: 1.5; }
.container { max-width: 1400px; margin: 0 auto; background: #fffdf8; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; }
.header {
    background:
        url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='460' height='460' viewBox='0 0 460 460'><g fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.10'><g transform='translate(226.9,18.3) scale(1.45) rotate(10)'><polyline points='0,62 24,38 44,48 78,8'/><polyline points='58,8 78,8 78,28'/></g><g transform='translate(16.1,218.0) scale(0.64) rotate(-20)'><circle cx='24' cy='24' r='22'/><line x1='24' y1='24' x2='24' y2='10'/><line x1='24' y1='24' x2='34' y2='31'/></g><g transform='translate(21.1,30.6) scale(0.63) rotate(10)'><ellipse cx='30' cy='30' rx='28' ry='20'/><circle cx='50' cy='18' r='3'/><line x1='6' y1='34' x2='2' y2='41'/><line x1='17' y1='40' x2='15' y2='49'/><line x1='43' y1='40' x2='45' y2='49'/><rect x='23' y='11' width='13' height='4' rx='2'/></g><g transform='translate(46.0,90.6) scale(0.61) rotate(-20)'><rect x='0' y='8' width='46' height='40' rx='4'/><line x1='0' y1='20' x2='46' y2='20'/><line x1='12' y1='0' x2='12' y2='14'/><line x1='34' y1='0' x2='34' y2='14'/></g><g transform='translate(122.2,56.0) scale(0.59) rotate(-6)'><ellipse cx='20' cy='32' rx='18' ry='6'/><ellipse cx='20' cy='23' rx='18' ry='6'/><ellipse cx='20' cy='14' rx='18' ry='6'/><ellipse cx='20' cy='5' rx='18' ry='6'/></g><g transform='translate(331.9,66.5) scale(1.09) rotate(20)'><ellipse cx='30' cy='30' rx='28' ry='20'/><circle cx='50' cy='18' r='3'/><line x1='6' y1='34' x2='2' y2='41'/><line x1='17' y1='40' x2='15' y2='49'/><line x1='43' y1='40' x2='45' y2='49'/><rect x='23' y='11' width='13' height='4' rx='2'/></g><g transform='translate(149.3,224.3) scale(1.09) rotate(0)'><circle cx='24' cy='24' r='22'/><line x1='24' y1='24' x2='24' y2='10'/><line x1='24' y1='24' x2='34' y2='31'/></g><g transform='translate(76.3,278.0) scale(1.09) rotate(-20)'><ellipse cx='30' cy='30' rx='28' ry='20'/><circle cx='50' cy='18' r='3'/><line x1='6' y1='34' x2='2' y2='41'/><line x1='17' y1='40' x2='15' y2='49'/><line x1='43' y1='40' x2='45' y2='49'/><rect x='23' y='11' width='13' height='4' rx='2'/></g><g transform='translate(236.3,179.5) scale(1.29) rotate(14)'><rect x='0' y='8' width='46' height='40' rx='4'/><line x1='0' y1='20' x2='46' y2='20'/><line x1='12' y1='0' x2='12' y2='14'/><line x1='34' y1='0' x2='34' y2='14'/></g><g transform='translate(374.8,310.7) scale(0.84) rotate(14)'><circle cx='24' cy='24' r='22'/><line x1='24' y1='24' x2='24' y2='10'/><line x1='24' y1='24' x2='34' y2='31'/></g><g transform='translate(169.1,410.6) scale(0.69) rotate(14)'><polyline points='0,62 24,38 44,48 78,8'/><polyline points='58,8 78,8 78,28'/></g></g></svg>") repeat,
        linear-gradient(135deg, #0f3d33 0%, #16594a 100%);
    background-size: 300px 300px, auto;
    color: white; padding: 12px 20px 38px; text-align: center;
}
.header h1 { font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, 'Iowan Old Style', serif; font-weight: 600; letter-spacing: 0.3px; font-size: clamp(1.5rem, 7vw, 2.6rem); line-height: 1; margin: 0; white-space: nowrap; text-shadow: 0 2px 8px rgba(0,0,0,0.65); }
.header-title-row { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: clamp(8px, 2.5vw, 14px); margin-bottom: 0px; }
.header-spacer { display: none; }
.header-icon { width: clamp(46px, 14vw, 92px); height: clamp(46px, 14vw, 92px); flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.65)); }
/* Kattintásra (kezdőlapra visszavivő refresh) és hoverre (finom animáció) is reagál mind az
   ikon, mind a "Nyugdíj kalkulátor" cím - lásd az onclick="window.location.href='?'"
   attribútumot a HTML-ben. */
.header-clickable { cursor: pointer; transition: transform 0.22s ease, filter 0.22s ease; }
.header-icon.header-clickable:hover { transform: scale(1.08) rotate(-3deg); filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); }
h1.header-clickable:hover { transform: scale(1.03); filter: brightness(1.12); }
.badge { background: rgba(255,255,255,0.14); border: 1px solid rgba(245,179,66,0.5); color: #f4c95d; padding: 4px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; letter-spacing: 0.2px; }
.header p { font-size: 0.85rem; opacity: 0.95; margin: 1px 0 0 0; color: #ffffff; }
.header-subtext-muted { color: #a9c9b5; opacity: 0.85; }
#gyik details { box-shadow: 0 5px 16px rgba(0,0,0,0.09); background: #f8fafc; }
/* Zebra-csíkozás a GYIK-listában - minden második elem kicsit sötétebb, hogy sok kérdés
   esetén is könnyebb legyen követni, hol tartunk. A speciális (saját, eltérő inline
   background-gel rendelkező, pl. narancsos "Munkamenet törlése") elemet az inline stílus
   automatikusan védi, mert az mindig felülírja ezt a szabályt. */
#gyik details:nth-of-type(even) { background: #eef1f4; }
/* A kávé-buborék a Kapcsolat-gombhoz képest kisebb (a .contact-btn alapméretének kb. 85%-a:
   14px 20px/16px helyett 12px 17px/13.6px). */
#coffeeBtn { padding: 12px 17px; font-size: 13.6px; }
@media (min-width: 769px) {
    /* Asztali nézetben az ikon kikerül a cím melletti sorból, és egy 3 oszlopos rács
       (bal oszlop / cím / jobb oszlop, az első és utolsó oszlop egyenlő szélességű) bal
       oszlopának KÖZEPÉRE kerül - ez matematikailag garantálja, hogy pontosan a zöld bal
       szél és a cím kezdete közötti távolság FELÉN álljon, FÜGGETLENÜL attól, hogy a cím
       (és így a két oldalsó "üres" sáv) mekkora - fix pixelértékkel ezt nem lehetne
       megbízhatóan elérni, mert a cím szélessége nézettől/betűmérettől függően változik. */
    .header { min-height: 165px; padding: 12px 20px 36px; }
    /* A rács-sor magasságát az ikon (34px margó + 160px) dominálja, a cím-szöveg csak
       függőlegesen középen ül benne - emiatt alatta üres hely marad, mielőtt a jelvény-sor
       kezdődne. A fejléc arányos zsugorítása miatt ezt a hézagot is felhúzzuk. */
    .header-badge-row { margin-top: -68px; }
    .header-title-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; margin-bottom: 0px; align-items: center; }
    .header-icon { grid-column: 1; justify-self: center; align-self: end; width: 160px; height: 160px; margin-top: 34px; }
    .header-title-row h1 { grid-column: 2; font-size: clamp(2.2rem, 4.5vw, 4rem); transform: translateY(-22px); }
    .header-spacer { display: block; grid-column: 3; }
}
.content { padding: 20px; }

/* --- TÁBLÁZAT SCROLL --- */
.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    margin: 20px 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
    padding-bottom: 4px;
}

/* Két scrollbar: felül és alul */
.table-wrapper .scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 16px;
    margin-bottom: 4px;
}
.table-wrapper .scroll-top::-webkit-scrollbar {
    height: 12px;
}
.table-wrapper .scroll-top::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}
.table-wrapper .scroll-top::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}
.table-wrapper .scroll-top::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.table-wrapper .scroll-bottom {
    overflow-x: auto;
    overflow-y: hidden;
    height: 16px;
    margin-top: 4px;
}
.table-wrapper .scroll-bottom::-webkit-scrollbar {
    height: 12px;
}
.table-wrapper .scroll-bottom::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}
.table-wrapper .scroll-bottom::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}
.table-wrapper .scroll-bottom::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- OSZLOP SZÉLESSÉGEK --- */
table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 12px; 
    min-width: 1200px; 
}
th { 
    background: #f1f5f9; 
    padding: 4px 3px; 
    text-align: center; 
    font-weight: 600; 
    color: #1e293b; 
    border-bottom: 1px solid #e2e8f0; 
    font-size: 10px; 
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
    vertical-align: top;
}
td { 
    padding: 4px 2px; 
    border-bottom: 1px solid #f1f5f9; 
    vertical-align: middle; 
    text-align: center; 
}

/* Oszlop szélességek */
th:nth-child(1), td:nth-child(1) { min-width: 30px; max-width: 30px; width: 30px; }
th:nth-child(2), td:nth-child(2) { min-width: 30px; max-width: 30px; width: 30px; }
th:nth-child(3), td:nth-child(3) { min-width: 75px; max-width: 75px; width: 75px; }
th:nth-child(4), td:nth-child(4) { min-width: 75px; max-width: 75px; width: 75px; }
th:nth-child(5), td:nth-child(5) { min-width: 45px; max-width: 45px; width: 45px; } /* Napok */
th:nth-child(6), td:nth-child(6) { min-width: 90px; max-width: 90px; width: 90px; } /* Járulékköteles jövedelem */
th:nth-child(7), td:nth-child(7) { min-width: 90px; max-width: 90px; width: 90px; } /* Jutalom */
th:nth-child(8), td:nth-child(8) { min-width: 90px; max-width: 90px; width: 90px; } /* Részesedés */
th:nth-child(9), td:nth-child(9) { min-width: 90px; max-width: 90px; width: 90px; } /* Adóm. jöv. */
th:nth-child(10), td:nth-child(10) { min-width: 90px; max-width: 90px; width: 90px; } /* Adóm. jut. */
th:nth-child(11), td:nth-child(11) { min-width: 90px; max-width: 90px; width: 90px; } /* Járulékalap */
th:nth-child(12), td:nth-child(12) { min-width: 90px; max-width: 90px; width: 90px; } /* Bef. jár. */
/* 10 órás napok - UGYANAKKORA, MINT A NAPOK (45px) - OSZTÁLY ALAPJÁN */
.col-ten-hour {
    min-width: 45px !important;
    max-width: 45px !important;
    width: 45px !important;
}
.col-ten-hour input {
    width: 45px !important;
    min-width: 45px !important;
    max-width: 45px !important;
}
th:nth-child(14), td:nth-child(14) { min-width: 90px; max-width: 90px; width: 90px; } /* Időszaki összeg */
th:nth-child(15), td:nth-child(15) { min-width: 130px; max-width: 130px; width: 130px; } /* Foglalkoztató */
th:nth-child(16), td:nth-child(16) { min-width: 150px; max-width: 150px; width: 150px; } /* Jogviszony */

tr:hover { background: #f8fafc; }
tr.missing-record { background: #fff3cd; }
tr.missing-record:hover { background: #ffe69c; }
tr.missing-record.row-alt { background: #ffe9b3; }
tr.sick-leave-record { background: #e8f4f8; }
tr.sick-leave-record:hover { background: #d0e8f0; }
tr.sick-leave-record.row-alt { background: #d7ecf3; }
tr.zero-income-record { background: #e6f7ea; }
tr.zero-income-record:hover { background: #c8ecd2; }
tr.zero-income-record.row-alt { background: #d5f0dc; }
tr.row-alt:not(.missing-record):not(.sick-leave-record):not(.zero-income-record) { background: #f3f5f7; }
/* A GYES/GYET/GYED automatikusan pótolt (generált) összegű mező kerete zöld */
input.generated-amount { border: 2px solid #22c55e !important; background: #f0fdf4 !important; }
/* JS-alapú kiemelés (mobilon/touch-eszközön a sima CSS :hover nem mindig megbízható) */
tr.row-touch-highlight { background: #dbeafe !important; }

.serial-input { width: 35px; padding: 4px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 12px; text-align: center; background: #f8fafc; color: #64748b; }
.date-input { width: 78px; padding: 4px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 12px; text-align: center; }
.detail-input { width: 80px; min-width: 80px; max-width: 80px; padding: 4px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 12px; text-align: right; }
.detail-input-napok { width: 45px !important; min-width: 45px; max-width: 45px; padding: 4px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 12px; text-align: right; }

.missing-badge { display: inline-block; background: #e67e22; color: white; padding: 2px 8px; border-radius: 12px; font-size: 9px; font-weight: 600; }
.sick-leave-badge { display: inline-block; background: #16594a; color: white; padding: 2px 8px; border-radius: 12px; font-size: 9px; font-weight: 600; }

/* "i" info-ikon a generált (nem PDF-ből olvasott) Időszaki összeg mezők jobb felső sarkában -
   hover-re (asztali gépen) vagy koppintásra (mobilon, onclick="alert(...)") megmutatja, milyen
   törvényi hivatkozás/szabály alapján számolta a program az összeget. Lásd index.php és
   services.php $legalReference. */
.legal-ref-icon {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 15px;
    height: 15px;
    line-height: 15px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: #2563eb;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    user-select: none;
}
.legal-ref-icon:hover { background: #1d4ed8; }
.delete-btn { background: #e74c3c; color: white; border: none; padding: 4px 6px; border-radius: 4px; cursor: pointer; font-size: 10px; }
.delete-btn:hover { background: #c0392b; }

.error { color: #c2410c; background: #fff7ed; padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; border-left: 4px solid #e74c3c; }
.warning { color: #9b6b00; background: #fffbeb; padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; border-left: 4px solid #e67e22; box-shadow: 0 5px 16px rgba(0,0,0,0.09); }
.success { color: #166534; background: #f0fdf4; padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; border-left: 4px solid #27ae60; box-shadow: 0 5px 16px rgba(0,0,0,0.09); }
.info { color: #0f5c4a; background: #e9f5f0; padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; border-left: 4px solid #1f9d7c; box-shadow: 0 5px 16px rgba(0,0,0,0.09); }

.result { margin-top: 30px; background: #fdf8ef; border-radius: 16px; overflow: hidden; }
.result-summary { background: linear-gradient(135deg, #fdf1d8 0%, #f8e3b8 100%); padding: 24px; text-align: center; }
.pension { font-size: 2.5rem; font-weight: 700; color: #0f3d33; }
.result-details { padding: 20px; }
details { margin-top: 16px; }
summary { cursor: pointer; color: #16594a; font-weight: 600; padding: 8px 0; }

.empty-row td { text-align: center; color: #94a3b8; padding: 40px; }

#totalRowContainer { font-size: 13px; background: #f1f5f9; border-radius: 8px; padding: 10px 15px; margin-top: 8px; border-top: 2px solid #0f3d33; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
#totalRowContainer .total-label { font-weight: 700; color: #0f3d33; }
#totalRowContainer .total-value { font-weight: 600; color: #0b2a4a; }

/* Upload box, modálok, stb. */
.upload-box { border: 2px dashed #cbd5e1; border-radius: 16px; padding: 24px 20px; text-align: center; background: #f8fafc; margin-bottom: 30px; box-shadow: 0 5px 16px rgba(0,0,0,0.09); }
.upload-box h3 { font-size: 1.2rem; margin-bottom: 16px; color: #1e293b; }
.file-input-wrapper { margin: 16px 0; }
input[type="file"] { padding: 10px; font-size: 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; width: 100%; max-width: 300px; }

.progress-container { margin-top: 20px; display: none; }
.progress-container.show { display: block; }
.progress-bar-wrapper { background: #e2e8f0; border-radius: 50px; height: 8px; overflow: hidden; margin-bottom: 8px; }
.progress-bar-fill { background: linear-gradient(90deg, #16594a, #27ae60); width: 0%; height: 100%; border-radius: 50px; transition: width 0.3s ease; }
.progress-text { font-size: 13px; color: #64748b; text-align: center; }

button, .btn { background: #2c3e50; color: white; padding: 10px 24px; border: none; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 500; transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
button:hover:not(:disabled), .btn:hover { background: #1e2a3a; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
button:active:not(:disabled), .btn:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
button:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-green { background: #27ae60; }
.btn-green:hover { background: #219a52; }
.btn-blue { background: #16594a; }
.btn-blue:hover { background: #0f3d33; }
.btn-orange { background: #e67e22; }
.btn-orange:hover { background: #d35400; }
.btn-purple { background: #8e44ad; }
.btn-purple:hover { background: #732d91; }

.floating-btn-wrap { position: fixed; z-index: 1000; touch-action: none; }
.floating-btn-wrap .contact-btn { cursor: grab; }
.floating-btn-wrap.dragging .contact-btn { cursor: grabbing; }
.contact-btn { background: #16594a; color: white; border: none; border-radius: 60px; padding: 14px 20px; cursor: pointer; font-size: 16px; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease; display: flex; align-items: center; gap: 8px; }
.contact-btn:hover { background: #0f3d33; transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 18px rgba(0,0,0,0.2); }
.contact-btn:active { transform: translateY(0) scale(0.98); box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
#coffeeBtn:hover { background: #e0b74e !important; }
.floating-btn-close { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: #ffffff; color: #334155; border: 1px solid #cbd5e1; font-size: 12px; line-height: 1; cursor: pointer; box-shadow: 0 1px 5px rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; padding: 0; transition: transform 0.15s ease, background 0.15s ease; }
.floating-btn-close:hover { background: #f1f5f9; transform: scale(1.1); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1001; display: none; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal { background: white; border-radius: 24px; max-width: 95% !important; width: 95% !important; max-height: 95% !important; padding: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); overflow-y: auto; }
.modal h3 { margin-bottom: 16px; color: #1e293b; }
.modal input, .modal textarea, .modal input[type="file"] { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; }
.modal textarea { min-height: 100px; resize: vertical; }
.modal button { margin-top: 8px; width: 100%; }
.modal .close-btn { background: #94a3b8; margin-top: 8px; }
.modal .close-btn:hover { background: #64748b; }

.contact-success { background: #d4edda; color: #166534; padding: 16px; border-radius: 10px; margin-bottom: 16px; text-align: center; font-size: 16px; font-weight: 700; border: 2px solid #27ae60; }
.contact-error { background: #f8d7da; color: #721c24; padding: 12px; border-radius: 8px; margin-bottom: 16px; text-align: center; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin: 20px 0; padding: 12px 0; border-bottom: 1px solid #e2e8f0; }
.toolbar-left { display: flex; flex-wrap: wrap; gap: 10px; }
.service-years-wrapper { display: flex; align-items: center; gap: 8px; background: #f1f5f9; padding: 8px 16px; border-radius: 40px; flex-wrap: wrap; }
.service-years-wrapper label { font-weight: 600; color: #1e293b; }
.service-years-display { background: #f1f5f9; padding: 8px 16px; border-radius: 40px; font-size: 16px; font-weight: 600; color: #1e293b; }

#columnAdjustContainer { position: relative; overflow: auto; background: #f9f9f9; padding: 10px; touch-action: none; width: 100%; height: 70vh; border: 1px solid #ccc; }
#columnCanvas { position: relative; width: 100%; height: 100%; min-height: 500px; background: white; box-shadow: 0 0 10px rgba(0,0,0,0.1); overflow: hidden; }
.text-item { position: absolute; font-size: 11px; color: #333; pointer-events: none; white-space: nowrap; background: rgba(255,255,255,0.6); padding: 1px 3px; border-radius: 2px; z-index: 10; }
.column-label { position: absolute; top: 0; background: rgba(46, 204, 113, 0.8); color: #000; font-size: 10px; font-weight: bold; padding: 2px 6px; white-space: nowrap; transform: translateX(-50%); pointer-events: none; z-index: 50; border-radius: 3px; border: 1px solid #27ae60; }
.draggable-line { position: absolute; top: 0; width: 2px; height: 100%; background-color: #e74c3c; cursor: col-resize; z-index: 100; touch-action: none; }
.draggable-line::before { content: '||'; position: absolute; top: -15px; left: -10px; color: #e74c3c; font-size: 12px; font-weight: bold; background: white; padding: 0 4px; border-radius: 4px; }
.draggable-line:hover { background-color: #c0392b; width: 4px; }

@media (max-width: 768px) { 
    body { padding: 12px; } 
    .header h1 { gap: 8px; } 
    .content { padding: 16px; } 
    .toolbar { flex-direction: column; align-items: stretch; } 
    .toolbar-left { justify-content: center; } 
    .service-years-wrapper { justify-content: center; } 
    th { font-size: 8px; padding: 4px 2px; } 
    td { padding: 4px 2px; } 
    .serial-input { width: 30px; font-size: 11px; padding: 3px; } 
    .date-input { width: 65px; font-size: 11px; padding: 3px; } 
    .detail-input { width: 70px; min-width: 70px; max-width: 70px; font-size: 11px; padding: 3px; } 
    .detail-input-napok { width: 40px !important; min-width: 40px; max-width: 40px; font-size: 11px; padding: 3px; } 
    .pension { font-size: 1.8rem; } 
    button, .btn { padding: 8px 16px; font-size: 13px; } 
    .contact-btn { padding: 10px 16px; font-size: 14px; } 
    #coffeeBtn { padding: 7px 12px !important; font-size: 10px !important; } 
    #contactBtnWrap { bottom: 16px !important; right: 16px !important; } 
    #coffeeBtnWrap { top: 8px !important; right: 12px !important; } 
    .modal { max-width: 95%; padding: 16px; } 
    #totalRowContainer { font-size: 11px; padding: 8px 10px; gap: 4px 12px; } 
    #columnAdjustContainer { height: 50vh; } 
}
@media (max-width: 480px) { 
    .serial-input { width: 25px; font-size: 10px; padding: 2px; } 
    .date-input { width: 55px; font-size: 10px; padding: 2px; } 
    .detail-input { width: 60px; min-width: 60px; max-width: 60px; font-size: 10px; padding: 2px; } 
    .detail-input-napok { width: 35px !important; min-width: 35px; max-width: 35px; font-size: 10px; padding: 2px; } 
    th { font-size: 7px; padding: 3px 1px; } 
    td { padding: 3px 1px; } 
    .delete-btn { padding: 2px 4px; font-size: 8px; } 
    .pension { font-size: 1.4rem; } 
    #totalRowContainer { font-size: 10px; padding: 6px 8px; gap: 3px 8px; } 
    #columnAdjustContainer { height: 40vh; } 
}
@media print { 
    .upload-box, .toolbar, button, .delete-btn, .progress-container, .contact-btn, .floating-btn-wrap, .modal-overlay { display: none; } 
    body { padding: 0; background: white; } 
    .container { box-shadow: none; } 
}

/* ============================================================
   NAPTÁR-IKON a dátum szövegmezőkben (2026-10-06). A gépelés változatlan; az ikonra kattintva a böngésző natív dátumválasztója nyílik
   (telefonon a rendszer saját választója), a kiválasztott dátum "éééé.hh.nn." alakban kerül vissza (lásd app.js, "NAPTÁR-VÁLASZTÓ").
   ============================================================ */
input.date-input, input.has-calendar {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
    background-repeat: no-repeat; background-position: right 5px center; background-size: 14px 14px; padding-right: 22px !important;
}
/* a fő táblázat dátum-oszlopai (3. és 4.) az ikon miatt szélesebbek */
.date-input { width: 100px; }
th:nth-child(3), td:nth-child(3), th:nth-child(4), td:nth-child(4) { min-width: 100px; max-width: 100px; width: 100px; }
@media (max-width: 768px) { .date-input { width: 90px; } th:nth-child(3), td:nth-child(3), th:nth-child(4), td:nth-child(4) { min-width: 90px; max-width: 90px; width: 90px; } }
@media (max-width: 480px) { .date-input { width: 82px; } th:nth-child(3), td:nth-child(3), th:nth-child(4), td:nth-child(4) { min-width: 82px; max-width: 82px; width: 82px; } }

/* ============================================================
   NYUGDÍJJÁRULÉK-IGAZOLÁS al-sor (2026-10-11): a táblázatsor ALATT, az "Időszaki összeg" oszloptól kezdődik (az első 13 oszlop üres hely). Az "empty-row"
   osztályt is viseli (a JS-ciklusok kihagyják), ezért az `.empty-row td` stílusát itt felül kell írni.
   ============================================================ */
tr.proof-row td { padding: 0; text-align: left; color: inherit; background: transparent; border: none; }
tr.proof-row td.proof-spacer { padding: 0; }
tr.proof-row td.proof-cell { padding: 3px 8px 6px 8px; white-space: nowrap; font-size: 11px; line-height: 1.5; background: #fff8e1; border-left: 3px solid #f0b429; border-bottom: 1px solid #f0d999; border-radius: 0 0 6px 0; }
tr.proof-row .proof-label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-weight: 600; color: #7a5c00; }
tr.proof-row .proof-label input { width: 15px; height: 15px; margin: 0; cursor: pointer; accent-color: #16794f; }
tr.proof-row .proof-recalc { margin-left: 10px; padding: 2px 9px; font-size: 11px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; color: #334155; cursor: pointer; }
tr.proof-row .proof-recalc:hover { background: #eef2f7; }
tr.proof-row .proof-recalc.pending { background: #16794f; color: #fff; border-color: #0f5a3a; box-shadow: 0 0 0 2px rgba(22,121,79,.25); font-weight: 700; }
tr.proof-row .proof-pending { margin-left: 8px; color: #b45309; font-style: italic; }

/* ============================================================
   INFÓ-ABLAK (2026-10-11): az ⓘ ikonok felugró ablaka a site arculatával (krémszín, sötétzöld fejléc, arany kiemelés, szerif cím)
   ============================================================ */
body.info-open { overflow: hidden; }
.info-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,61,51,0.55); display: none; align-items: center; justify-content: center; padding: 14px; z-index: 2000; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.info-overlay.show { display: flex; }
.info-dialog { background: #fffdf8; color: #1f2937; width: 100%; max-width: 580px; max-height: 84vh; border-radius: 18px; border: 1px solid #e7dfc9; box-shadow: 0 22px 60px rgba(0,0,0,0.38); display: flex; flex-direction: column; overflow: hidden; animation: infoIn .18s ease-out; }
@keyframes infoIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.info-head { background: linear-gradient(135deg, #0f3d33 0%, #16594a 100%); color: #fff; padding: 13px 14px 13px 16px; display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.info-ico { width: 26px; height: 26px; border-radius: 50%; background: #f4c95d; color: #0f3d33; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: 16px; line-height: 26px; text-align: center; flex: 0 0 auto; }
.info-head h3 { margin: 0; flex: 1; font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif; font-weight: 600; font-size: 18px; color: #fff; letter-spacing: .2px; }
.info-x { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); color: #fff; width: 32px; height: 32px; min-width: 32px; padding: 0; margin: 0; border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1; }
.info-x:hover { background: rgba(255,255,255,0.26); }
.info-body { padding: 16px 18px 6px; overflow-y: auto; -webkit-overflow-scrolling: touch; font-size: 15px; line-height: 1.65; flex: 1 1 auto; }
.info-body p { margin: 0 0 10px; }
.info-body .ip-lead { font-weight: 600; color: #0f3d33; font-size: 15.5px; }
.info-body .ip-sec + .ip-sec { border-top: 1px dashed #d9cfae; margin-top: 12px; padding-top: 12px; }
.info-body .ip-law { background: #e8f3ee; color: #0f5a3a; border: 1px solid #c6e0d4; border-radius: 6px; padding: 0 5px; font-weight: 600; font-size: .93em; }
.info-body .ip-key { font-weight: 700; }
.info-body .ip-yes { color: #166534; }
.info-body .ip-no { color: #b4451f; }
.info-body .ip-badge { display: inline-block; background: #fff8e1; border: 1px solid #f0d999; color: #7a5c00; border-radius: 999px; padding: 0 10px; font-weight: 700; font-size: .92em; line-height: 1.5; }
.info-foot { padding: 10px 16px 14px; display: flex; justify-content: flex-end; background: #fffaf0; border-top: 1px solid #efe7d2; flex: 0 0 auto; }
.info-ok { background: #16594a; color: #fff; border: none; border-radius: 10px; padding: 10px 28px; margin: 0; width: auto; font-size: 15px; font-weight: 600; cursor: pointer; }
.info-ok:hover { background: #0f3d33; }
@media (max-width: 520px) {
    .info-overlay { align-items: flex-end; padding: 0; }
    .info-dialog { max-width: none; width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; border-bottom: none; animation: infoUp .22s ease-out; }
    .info-ok { width: 100%; padding: 13px; }
    @keyframes infoUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
}
@media print { .info-overlay { display: none !important; } }
.info-ok:focus, .info-x:focus { outline: none; }
.info-ok:focus-visible, .info-x:focus-visible { outline: 3px solid rgba(244,201,93,0.9); outline-offset: 2px; }

/* az ⓘ-ablak ÖSSZESÍTŐ sávja: naptári nap / beszámít / nem számít (2026-10-11) */
.info-body .ip-days { display: flex; gap: 8px; margin: 2px 0 10px; }
.info-body .ip-day { flex: 1; text-align: center; border: 1px solid #e0d6b8; background: #fff8e1; border-radius: 12px; padding: 8px 4px 7px; }
.info-body .ip-day b { display: block; font-family: Georgia, 'Palatino Linotype', serif; font-size: 24px; line-height: 1.1; font-weight: 700; color: #7a5c00; }
.info-body .ip-day span { display: block; margin-top: 2px; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: #6b5b2e; }
.info-body .ip-day.ip-yes { background: #e8f3ee; border-color: #c6e0d4; }
.info-body .ip-day.ip-yes b, .info-body .ip-day.ip-yes span { color: #166534; }
.info-body .ip-day.ip-no { background: #fdeee6; border-color: #f1cdb9; }
.info-body .ip-day.ip-no b, .info-body .ip-day.ip-no span { color: #b4451f; }
.info-body .ip-note { font-size: 13px; color: #5b6472; margin: 0 0 4px; }
.info-body .ip-day .ip-sub { display: block; margin-top: 4px; font-style: normal; font-size: 10.5px; line-height: 1.25; color: #6b5b2e; letter-spacing: 0; text-transform: none; }
.info-body .ip-day.ip-yes .ip-sub { color: #166534; }
.info-body .ip-day.ip-no .ip-sub { color: #b4451f; }
.info-body .ip-tag { display: inline-block; background: #fff8e1; border: 1px solid #f0d999; color: #7a5c00; border-radius: 6px; padding: 0 8px; font-weight: 700; font-size: .84em; letter-spacing: .3px; line-height: 1.55; }

/* LEGÖRDÜLŐ mezők (2026-10-11): a <select> alapból a LEGHOSSZABB opció szélességét veszi fel, így keskeny képernyőn kilógott a kártyából (telefonon 681 px egy 345 px-es
   tárolóban). Mindig a tárolóhoz igazodik, a hosszú kiválasztott felirat három ponttal rövidül. */
select { max-width: 100%; box-sizing: border-box; text-overflow: ellipsis; }

/* EGYSÉGES legördülő stílus (2026-10-11): a kártyához igazodó szélesség, tapintásra kényelmes magasság, a site zöldjéhez illő keret és fókusz */
select.sel-styled { width: 100%; max-width: 520px; box-sizing: border-box; min-height: 44px; padding: 9px 12px; font-size: 15px; color: #1e293b; background-color: #fff; border: 1px solid #a7c4b9; border-radius: 10px; text-overflow: ellipsis; cursor: pointer; }
select.sel-styled:focus { outline: 3px solid rgba(22,89,74,0.25); border-color: #16594a; }

/* VÁRHATÓ NYUGDÍJBA VONULÁS doboz (2026-10-11): a site zöld arculatával, kiemelt dátummal */
.retire-box { margin-top: 12px; padding: 14px 16px; background: linear-gradient(135deg, #e8f3ee 0%, #f3f9f5 100%); border: 1px solid #c6e0d4; border-left: 5px solid #16594a; border-radius: 12px; text-align: left; line-height: 1.55; }
.retire-box .retire-head { font-weight: 700; color: #0f3d33; font-size: 14.5px; }
.retire-box .retire-ref { font-weight: 500; font-size: 12px; color: #4b7a69; }
.retire-box .retire-date { font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif; font-size: 30px; font-weight: 700; color: #0f3d33; margin: 4px 0 2px; letter-spacing: .3px; }
.retire-box .retire-main { font-size: 14px; color: #1f2937; }
.retire-box .retire-det { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: #374151; }
.retire-box .retire-det li { margin-bottom: 4px; }
.retire-box .retire-note { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #bcd6c9; font-size: 12px; color: #5b6472; }

/* VÁLASZTÓLAP (2026-10-11): a legördülő mezők látható része és a lap (az infó-ablak elemeit használja: .info-overlay/.info-dialog/.info-head/.info-body) */
select.cs-native { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; }
.cs-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: 520px; box-sizing: border-box; min-height: 44px; margin: 0; padding: 9px 12px; text-align: left; font-family: inherit; font-size: 15px; font-weight: 500; color: #1e293b; background: #fff; border: 1px solid #a7c4b9; border-radius: 10px; cursor: pointer; }
.cs-trigger:hover { border-color: #16594a; }
.cs-trigger:focus-visible, .cs-trigger[aria-expanded="true"] { outline: 3px solid rgba(22,89,74,0.25); border-color: #16594a; }
.cs-trigger .cs-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-trigger .cs-chev { flex: 0 0 auto; color: #16594a; }
.cs-dialog .cs-body { padding: 12px 14px 14px; }
.cs-opt { display: flex; align-items: flex-start; gap: 12px; width: 100%; box-sizing: border-box; margin: 0 0 8px; padding: 12px 14px; text-align: left; font-family: inherit; color: #1f2937; background: #fff; border: 1px solid #e0d6b8; border-radius: 12px; cursor: pointer; }
.cs-opt:last-child { margin-bottom: 0; }
.cs-opt:hover { border-color: #16594a; background: #f7fbf9; }
.cs-opt:focus-visible { outline: 3px solid rgba(244,201,93,0.9); outline-offset: 1px; }
.cs-opt .cs-radio { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid #b9c7c0; background: #fff; box-sizing: border-box; }
.cs-opt.selected { border-color: #16594a; background: #e8f3ee; }
.cs-opt.selected .cs-radio { border-color: #16594a; background: radial-gradient(circle, #16594a 0 5px, #fff 6px); }
.cs-opt .cs-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-opt .cs-txt b { font-size: 15.5px; font-weight: 600; color: #0f3d33; line-height: 1.3; }
.cs-opt .cs-txt small { font-size: 12.5px; line-height: 1.4; color: #5b6472; }
@media (max-width: 520px) { .cs-trigger { max-width: none; } }

/* A site általános `button:hover:not(:disabled)` szabálya (sötétkék háttér, felemelkedés) erősebb, mint az egyszerű osztály-szelektor: a saját gombok hover/active
   állapotát ezért ugyanilyen erős szelektorral kell megadni (különben rámutatáskor sötétkék, alig olvasható lenne). */
button.cs-trigger:hover:not(:disabled), button.cs-trigger:active:not(:disabled) { background: #fff; color: #1e293b; border-color: #16594a; transform: none; box-shadow: none; }
button.cs-opt:hover:not(:disabled), button.cs-opt:active:not(:disabled) { background: #f7fbf9; color: #1f2937; border-color: #16594a; transform: none; box-shadow: none; }
button.cs-opt.selected:hover:not(:disabled), button.cs-opt.selected:active:not(:disabled) { background: #e8f3ee; }
button.info-ok:hover:not(:disabled), button.info-ok:active:not(:disabled) { background: #0f3d33; color: #fff; transform: none; box-shadow: none; }
button.info-x:hover:not(:disabled), button.info-x:active:not(:disabled) { background: rgba(255,255,255,0.26); color: #fff; transform: none; box-shadow: none; }

/* A "Várható nyugdíjba vonulás" doboz bezáró ✕-je (2026-10-11): a megosztott .dismissible-notice minta, de a doboz nézete VÁLTOZATLAN marad - a megosztott szabály 34 px jobb oldali
   belső margóját itt az eredeti 16 px-re állítjuk vissza, a fejléc pedig csak annyi helyet hagy, hogy ne fusson a ✕ alá. */
.retire-box.dismissible-notice { padding-right: 16px !important; }
.retire-box .retire-head { padding-right: 26px; }
.retire-box .dismissible-notice-close { top: 6px; right: 8px; font-size: 17px; padding: 4px 8px; color: #0f3d33; }
/* A site általános `button:hover:not(:disabled)` szabálya (sötétkék háttér, felemelkedés) erősebb a `.dismissible-notice-close:hover`-nél, ezért a bezáró ✕ rámutatáskor sötét négyzetet
   kapott (minden bezárható dobozon). Erős szelektorral rendbe téve: átlátszó marad, csak a ✕ erősödik. */
button.dismissible-notice-close:hover:not(:disabled), button.dismissible-notice-close:active:not(:disabled) { background: transparent; transform: none; box-shadow: none; opacity: 1; }
