.avatar{overflow:hidden;position:relative}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.deceased-photo::after{content:"";position:absolute;width:145%;height:22%;left:-22%;top:39%;background:#050505;box-shadow:0 1px 2px #0008;transform:rotate(-42deg);pointer-events:none}.profile-head .avatar.deceased-photo::after{height:18%}.photo-preview{width:110px;height:110px;border-radius:14px;object-fit:cover;border:1px solid var(--line);background:#eef3f8}.actions{display:flex;gap:7px}.upload-hint{font-size:12px;color:var(--muted);margin-top:5px}.award-chip{display:flex;align-items:center;gap:11px}.award-chip img,.badge-picture{width:52px;height:52px;object-fit:contain}.badge-picture{width:38px;height:38px;vertical-align:middle;margin-right:5px}
.dialog{max-height:88vh;display:flex;flex-direction:column;overflow:hidden}.dialog-head{flex:0 0 auto;padding:14px 20px}.dialog .form{overflow-y:auto;padding:16px 20px;gap:10px}.dialog .field input,.dialog .field select,.dialog .field textarea{padding:8px 10px}.dialog .dialog-actions{position:sticky;bottom:-16px;background:#fff;border-top:1px solid var(--line);padding:12px 0 4px;margin-top:4px}.dialog .photo-preview{width:70px;height:70px}.dialog .primary,.dialog .secondary{padding:10px 14px}@media(max-height:700px){.dialog{max-height:94vh}.dialog-head{padding:10px 18px}.dialog-head h2{font-size:20px}.dialog .form{padding:10px 18px;gap:7px}.dialog .field label{margin-bottom:2px}.dialog .photo-preview{width:52px;height:52px}}
.badge.waiting{background:#eaf2fb;color:#145993}.badge.former{background:#edf0f3;color:#59636f}.badge.honorary{background:#fff3c7;color:#805b00}.honorary-amount{color:#805b00!important;font-size:30px!important}.honorary-note,.honorary-history{background:#fff8dd;color:#6d5100;border-radius:8px;padding:12px;margin-top:14px}.payment-history .table-wrap{border:1px solid var(--line);border-radius:10px}.payment-history table tr:last-child td{border-bottom:0}.former-reason{display:block;color:#737d89;font-size:12px;margin-top:4px}.history-intro{padding:16px 20px;color:var(--muted);border-bottom:1px solid var(--line)}
.periods{display:grid;gap:10px}.period-row{display:grid;grid-template-columns:95px 24px 95px minmax(180px,1fr) auto;gap:10px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fbfcfd}.period-row.current{border-color:#9dc9b0;background:#f3fbf6}.period-year{font-weight:700}.period-reason{color:var(--muted)}.period-note{display:block;margin-top:5px;color:var(--ink);white-space:pre-wrap}.period-actions{display:flex;gap:6px}.period-actions button{padding:7px 10px}.danger-button{color:#a32620!important;border-color:#d9aaa7!important}@media(max-width:750px){.period-row{grid-template-columns:1fr 20px 1fr}.period-reason,.period-actions{grid-column:1/-1}}
.badge-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;max-height:390px;overflow-y:auto;padding:3px}.badge-choice{position:relative;border:1px solid var(--line);border-radius:10px;padding:8px;text-align:center;cursor:pointer;background:#fff}.badge-choice:has(input:checked){border:2px solid var(--blue);background:#edf6ff;padding:7px}.badge-choice input{position:absolute;opacity:0}.badge-choice img{width:76px;height:76px;object-fit:contain;display:block;margin:auto}.badge-choice span{display:block;font-size:12px;font-weight:650;margin-top:5px}.badge-catalog-note{font-size:12px;color:var(--muted)}@media(max-width:560px){.badge-picker{grid-template-columns:repeat(2,1fr)}}
.view-switch{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px;background:#e9eff5;border-radius:12px;margin-bottom:18px}.view-switch button{border:0;background:transparent;color:#435166;padding:11px 16px;border-radius:9px;font-weight:650;cursor:pointer}.view-switch button.active{background:#fff;color:var(--blue);box-shadow:0 2px 7px #1b36501a}.payment-deadline{margin-left:auto;display:flex;align-items:center;gap:10px;padding:8px 13px;color:#435166}.payment-deadline strong{color:#b42318;font-size:17px}.unified-tools{display:flex;gap:10px;align-items:center}.unified-tools input{min-width:260px;border:1px solid #ccd6e2;border-radius:8px;padding:11px;font:inherit}@media(max-width:650px){.unified-tools{align-items:stretch;flex-direction:column}.unified-tools input{min-width:0}.view-switch button{flex:1}.payment-deadline{width:100%;margin-left:0;justify-content:space-between}}
