.work-page{max-width:1400px;margin:36px auto;padding:0 22px;color:#dadee2}.work-page h1,.work-page h2,.work-page h3{color:#e6d6bf}.work-page section{background:rgba(35,44,57,.8);border:1px solid #59616c;border-radius:14px;padding:24px;margin:22px 0}.work-page button,.work-page select,.work-page input{font:inherit;border:1px solid #77818c;border-radius:6px;padding:10px;background:#232c39;color:#dadee2;max-width:100%;box-sizing:border-box}.work-page button{cursor:pointer;color:#e6d6bf}.work-page button:hover{background:#3c4c60}.work-page button:disabled{opacity:.5;cursor:wait}.work-page label{display:flex;flex-direction:column;gap:6px}.work-page form>label{margin-bottom:15px}.work-row{display:grid;grid-template-columns:2fr .7fr 1.4fr 1.5fr auto;gap:12px;align-items:end;margin-bottom:16px}.work-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.work-page [hidden]{display:none!important}#message{position:sticky;top:0;background:#232c39;color:#e6d6bf;padding:12px;z-index:10;white-space:pre-wrap}#message:empty{display:none}.work-table{overflow:auto}.work-page table{width:100%;border-collapse:collapse;min-width:850px}.work-page td,.work-page th{text-align:left;padding:12px;border-bottom:1px solid #53616e;overflow-wrap:anywhere}.work-page td{max-width:260px}.work-page th{color:#e6d6bf}.employee-total{padding:12px 0;border-bottom:1px solid #53616e}.employee-total strong,.employee-total b{float:right;color:#99c49a}.category-item{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:12px 0}.category-item img{width:42px;height:42px;object-fit:contain}.category-item span{flex:1}#categoryForm{display:flex;flex-wrap:wrap;gap:14px;align-items:end}#total{color:#99c49a;font-size:28px}@media(max-width:900px){.work-row{grid-template-columns:1fr 1fr}.work-page section{padding:16px}.work-row label:first-child{grid-column:1/-1}}
.work-submit{max-width:820px}.work-page a{color:#e6d6bf}.work-button{display:inline-block;background:#3d5265!important;border:1px solid #e6d6bf;border-radius:7px;padding:12px 18px;text-decoration:none}.work-page textarea{font:inherit;background:#232c39;color:#dadee2;border:1px solid #77818c;border-radius:6px;padding:12px;resize:vertical;width:100%;box-sizing:border-box}.work-page fieldset{border:0;padding:0;margin:24px 0}.work-page legend{color:#e6d6bf;margin-bottom:12px}#categoryCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.work-category{position:relative;padding:22px;border:1px solid #677887;border-radius:10px;background:#293645;align-items:center;cursor:pointer;text-align:center}.work-category:has(input:checked){border-color:#e6d6bf;box-shadow:0 0 0 2px #e6d6bf;background:#3a4b5c}.work-category:focus-within{outline:2px solid #e6d6bf;outline-offset:3px}.work-category input{position:absolute;top:12px;left:12px;accent-color:#e6d6bf}.work-category img{height:76px;width:90px;object-fit:contain;margin:10px}.category-symbol{font-size:60px;color:#e6d6bf}.work-category strong{font-size:21px;color:#e6d6bf}.work-category>span:last-child{color:#99c49a}.work-page input[type=checkbox]{width:22px;height:22px;accent-color:#79a471}.salary{color:#99c49a;font-weight:bold}.settled{opacity:.7}.work-submit #send{margin-top:16px;width:100%}@media(max-width:480px){#categoryCards{grid-template-columns:1fr}}
/* V3: középre igazított cím és egységes admin vezérlők */
.work-heading{text-align:center;margin:28px 0}.work-heading h1{margin:0 0 18px}.work-heading p{line-height:1.6;margin:0}.work-admin-access{display:flex;justify-content:flex-end;margin:22px 0 36px}.work-admin-access .work-button{font-size:15px;background:#293847!important;border-color:#657585;padding:10px 16px}.work-admin-access .work-button:hover{background:#3d5265!important;border-color:#e6d6bf}
.work-page input[type=checkbox]{appearance:none;-webkit-appearance:none;display:inline-block;vertical-align:middle;position:relative;width:25px;height:25px;min-width:25px;padding:0;margin:0;border:1px solid #8b9aa8;border-radius:6px;background:#1e2a38;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}.work-page input[type=checkbox]:checked{background:#79a471;border-color:#9fc59a}.work-page input[type=checkbox]:checked::after{content:"";position:absolute;left:8px;top:3px;width:6px;height:12px;border:solid #172a25;border-width:0 3px 3px 0;transform:rotate(45deg)}.work-page input[type=checkbox]:hover{border-color:#e6d6bf}.work-page input[type=checkbox]:focus-visible{outline:2px solid #e6d6bf;outline-offset:4px}.work-page input[type=checkbox]:disabled{opacity:.45;cursor:wait}
.work-page select{appearance:none;-webkit-appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23e6d6bf' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}.work-category input[type=radio]{appearance:none;-webkit-appearance:none;width:20px;height:20px;padding:0;border-radius:50%;border:1px solid #8b9aa8;background:#202c39;cursor:pointer}.work-category input[type=radio]:checked{border:5px solid #e6d6bf;background:#364b5c}
#categoryForm{display:grid;grid-template-columns:minmax(160px,1fr) minmax(140px,.8fr) minmax(260px,1.6fr);gap:18px;align-items:start;margin-top:26px;padding-top:24px;border-top:1px solid #53616e}#categoryForm>label{margin:0;min-width:0}#categoryForm>label input{width:100%;height:46px}.work-upload-field{display:flex;flex-direction:column;gap:6px;min-width:0}.work-file-picker{position:relative;display:flex!important;flex-direction:row!important;align-items:center;gap:10px!important;border:1px solid #77818c;border-radius:6px;padding:5px;background:#232c39;min-height:46px;box-sizing:border-box;overflow:hidden;cursor:pointer}.work-file-picker input[type=file]{position:absolute;width:1px;height:1px;opacity:0;padding:0;border:0}.work-file-picker:focus-within{outline:2px solid #e6d6bf;outline-offset:3px}.work-file-button{flex:none;border:1px solid #758697;border-radius:4px;background:#3a4e61;padding:5px 10px;color:#e6d6bf}.work-file-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;color:#aebbc7}.category-form-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}.category-form-actions button{min-height:46px}#saveCategory{background:#3a4e61;border-color:#a2a796}#resetCategory{background:transparent}.category-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center}.category-item:has(img){grid-template-columns:42px minmax(0,1fr) auto auto}.category-item button{min-height:44px}.work-page section{position:relative;z-index:1}
@media(max-width:1000px){#categoryForm{grid-template-columns:1fr 1fr}.work-upload-field{grid-column:1/-1}}@media(max-width:560px){#categoryForm{grid-template-columns:minmax(0,1fr)}.category-form-actions{flex-direction:column}.category-form-actions button{width:100%}.work-admin-access{justify-content:center}.work-admin-access a{width:100%;text-align:center;box-sizing:border-box}.category-item{grid-template-columns:1fr 1fr}.category-item span{grid-column:1/-1}.category-item:has(img){grid-template-columns:42px minmax(0,1fr)}.category-item:has(img) span{grid-column:2}.category-item button{width:100%}.category-item:has(img) button{grid-column:auto}}
/* V7: ritkán használt kategóriakezelő modális ablakban */
.work-category-access{display:flex;justify-content:flex-end;margin:24px 0 36px}#categoryDialog{width:min(1080px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 48px);padding:0;border:1px solid #73818e;border-radius:14px;background:#263240;color:#dadee2;font:inherit;box-sizing:border-box;overflow:auto;box-shadow:0 24px 90px #0009}#categoryDialog::backdrop{background:rgba(8,14,22,.78);backdrop-filter:blur(5px)}body:has(#categoryDialog[open]){overflow:hidden}.work-page #categoryDialog #categoriesPanel{margin:0;border:0;border-radius:0;padding:26px;background:#263240}.work-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.work-dialog-heading h2{margin:0}.work-dialog-heading #closeCategories{font-size:28px;line-height:1;width:42px;height:42px;padding:0;flex:none}#categoryFeedback{color:#e6d6bf;padding:12px;background:#1e2a38;border-radius:6px;white-space:pre-wrap}#categoryFeedback:empty{display:none}#categoryDialog #categoryList{margin-top:18px}#categoryDialog button:focus-visible{outline:2px solid #e6d6bf;outline-offset:3px}@media(max-width:560px){.work-page #categoryDialog #categoriesPanel{padding:18px}.work-category-access button{width:100%}#categoryDialog{max-height:calc(100dvh - 24px)}}
/* V8: beküldési állapot és animált sikerjelzés */
.work-submit #send.is-sending{display:flex;justify-content:center;align-items:center;gap:12px;opacity:.8}.work-submit #send.is-sending::before{content:"";width:17px;height:17px;border:2px solid #e6d6bf44;border-top-color:#e6d6bf;border-radius:50%;animation:work-spin .75s linear infinite;flex:none}.work-success{position:fixed;z-index:9999;left:50%;bottom:32px;transform:translateX(-50%);box-sizing:border-box;display:flex;align-items:center;gap:18px;width:min(480px,calc(100vw - 32px));padding:22px 24px;background:rgba(31,45,56,.97);border:1px solid #8bb48a;border-radius:16px;box-shadow:0 16px 60px #0006,0 0 32px #79a47118;backdrop-filter:blur(14px);animation:work-success-in .35s cubic-bezier(.2,.8,.2,1) both}.work-success strong{display:block;color:#e6d6bf;font-size:23px;font-weight:500;line-height:1.3}.work-success p{color:#bdc9c9;font-size:15px;line-height:1.5;margin:5px 0 0}.work-success-mark{height:62px;width:62px;flex:none;background:#79a47115;border-radius:50%}.work-success-mark svg{width:100%;height:100%;stroke:#a3c99a;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.work-success-mark circle{stroke-dasharray:176;stroke-dashoffset:176;animation:work-draw .5s ease .08s forwards}.work-success-mark path{stroke-dasharray:42;stroke-dashoffset:42;animation:work-draw .3s ease .42s forwards}.work-success #closeSuccess{align-self:flex-start;flex:none;margin-left:auto;border:0;background:transparent;color:#aebbc7;font-size:24px;line-height:1;padding:2px 4px}.work-success #closeSuccess:focus-visible{outline:2px solid #e6d6bf;outline-offset:3px}.work-success.is-leaving{animation:work-success-out .2s ease forwards}@keyframes work-spin{to{transform:rotate(360deg)}}@keyframes work-draw{to{stroke-dashoffset:0}}@keyframes work-success-in{from{opacity:0;transform:translate(-50%,18px) scale(.97)}to{opacity:1;transform:translate(-50%,0) scale(1)}}@keyframes work-success-out{to{opacity:0;transform:translate(-50%,10px)}}@media(max-width:480px){.work-success{bottom:18px;padding:18px;gap:12px}.work-success-mark{width:48px;height:48px}.work-success strong{font-size:20px}}@media(prefers-reduced-motion:reduce){.work-success,.work-success.is-leaving,.work-success-mark circle,.work-success-mark path,.work-submit #send.is-sending::before{animation:none}.work-success-mark circle,.work-success-mark path{stroke-dashoffset:0}.work-success.is-leaving{opacity:0}}

/* V9: sikerjelzés a képernyő tetején, rövidebb megjelenéssel */
.work-success{top:calc(24px + env(safe-area-inset-top,0px));bottom:auto}
@keyframes work-success-in{from{opacity:0;transform:translate(-50%,-16px) scale(.97)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@keyframes work-success-out{to{opacity:0;transform:translate(-50%,-10px)}}
@media(max-width:480px){.work-success{top:calc(16px + env(safe-area-inset-top,0px));bottom:auto}}
