/* Scoped overrides work with both AFRA 2.x and Tatami 3.x themes. */
.ojf-portal .ojf-avatar{width:96px!important;height:96px!important;aspect-ratio:1!important;flex:0 0 96px;border:3px solid #ff7a18;border-radius:50%!important;overflow:hidden}
.ojf-portal .ojf-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 25%!important;display:block}
.ojf-portal .ojf-manager-profile-photo img{width:88px!important;height:88px!important;aspect-ratio:1!important;object-fit:cover!important;object-position:center 25%;border-radius:50%!important;flex-shrink:0}
.ojf-portal .ojf-profile-photo-preview{width:150px!important;height:200px!important;aspect-ratio:3/4!important}
.ojf-portal .ojf-profile-photo-preview img{width:100%!important;height:100%!important;object-fit:contain!important;background:#151515}
.ojf-compact-history{margin-block:16px;border:1px solid #8885;border-radius:14px;padding:14px}
.ojf-compact-history>summary,.ojf-notice-archive>summary{cursor:pointer;padding:10px;font-weight:700;min-height:44px}
.ojf-compact-history>.ojf-table-wrap,.ojf-message-history,.ojf-notice-archive{max-height:420px;overflow:auto;overscroll-behavior:contain}
.ojf-compact-history .ojf-table th{position:sticky;top:0;z-index:1;background:#171a1b;color:#fff}
.ojf-money-hint{display:block;direction:rtl;color:#ac500d;font-weight:700;min-height:24px}
.ojf-stat{position:relative}
.ojf-stat-icon{display:block;width:38px;height:38px;padding:7px;box-sizing:content-box;border-radius:14px;background:#f47a1f20;color:#f47a1f;stroke:currentColor;fill:none;stroke-width:1.7;margin-bottom:10px}
.ojf-mini-actions form{display:inline-flex;margin:0}
.ojf-mini-actions button{min-height:40px;cursor:pointer}
.ojf-mini-actions button.is-danger{color:#d54036}
.ojf-notifications-panel[data-live-state="disconnected"]:after{content:'ارتباط اعلان‌ها موقتاً قطع شده؛ تلاش مجدد خودکار انجام می‌شود.';display:block;color:#cf7020;font-size:12px}
#coach-messages textarea{width:100%;box-sizing:border-box;resize:vertical;padding:12px;font:inherit}
#coach-messages time{display:block;font-size:11px;opacity:.7}
#coach-messages form{display:grid;gap:12px;margin-block:12px}
#coach-messages select{max-width:100%;padding:10px;font:inherit}
@media(max-width:600px){.ojf-portal .ojf-portal-header{flex-wrap:wrap;padding:18px!important;border-radius:18px}.ojf-portal .ojf-portal-header h1{font-size:21px!important;line-height:1.8}.ojf-portal .ojf-avatar{width:76px!important;height:76px!important;flex-basis:76px}.ojf-compact-history{padding:8px}.ojf-compact-history>.ojf-table-wrap{max-height:330px}.ojf-portal .ojf-portal-header>div:nth-child(2){flex:1;min-width:140px}}
