* { 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; } /* Havi jöv. */
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; } 
}