/* Shared Filament design system. This file follows the base component styles. */
html.fi[lang="fa"] { direction:rtl; --panel-navy:#142e5b; --panel-blue:#2454a0; --panel-gold:#b78638; --panel-ink:#22324d; --panel-muted:#64738a; --panel-line:#e0e7f0; --panel-bg:#f5f7fb; }
html.fi[lang="fa"] body { color:var(--panel-ink); background:var(--panel-bg); }
html.fi[lang="fa"] .fi-main-ctn { background:var(--panel-bg); }
html.fi[lang="fa"] .fi-main { max-width:1600px; padding-top:2rem; padding-bottom:5rem; }
html.fi[lang="fa"] .fi-sidebar { background:#fff; border-inline-end:1px solid var(--panel-line); box-shadow:-4px 0 24px #142e5b08; }
html.fi[lang="fa"] .fi-sidebar-header { min-height:80px; border-bottom:1px solid var(--panel-line); }
html.fi[lang="fa"] .fi-sidebar-header a { color:var(--panel-navy); font-weight:900; }
html.fi[lang="fa"] .fi-sidebar-nav { padding:1rem .7rem; }
html.fi[lang="fa"] .fi-sidebar-group { margin-bottom:.7rem; }
html.fi[lang="fa"] .fi-sidebar-group-label { padding:.55rem .7rem; color:#8c744f; font-size:.75rem; font-weight:800; }
html.fi[lang="fa"] .fi-sidebar-item-btn { min-height:42px; padding-inline:.8rem; border-radius:.7rem; color:#53627a; }
html.fi[lang="fa"] .fi-sidebar-item-btn:hover { background:#f2f5fb; color:var(--panel-navy); transform:none; }
html.fi[lang="fa"] .fi-sidebar-item.fi-active .fi-sidebar-item-btn { border-inline-start:3px solid var(--panel-gold); background:#eaf0f9; color:var(--panel-navy); font-weight:800; }
html.fi[lang="fa"] .fi-topbar { min-height:68px; border-bottom:1px solid var(--panel-line); background:#fff; box-shadow:0 3px 16px #112e5908; }
html.fi[lang="fa"] .fi-page-header { margin-bottom:1.7rem; }
html.fi[lang="fa"] .fi-page-header-heading { color:var(--panel-navy); font-size:1.65rem; font-weight:900; }
html.fi[lang="fa"] .fi-page-content,html.fi[lang="fa"] .fi-sc { row-gap:1.5rem; }
html.fi[lang="fa"] .fi-section + .fi-section { margin-block-start:1.25rem; }
html.fi[lang="fa"] .member-layout>.fi-section + .fi-section,html.fi[lang="fa"] .member-list>.fi-section + .fi-section,html.fi[lang="fa"] .fi-sc-grid>.fi-section + .fi-section { margin-block-start:0; }
html.fi[lang="fa"] .fi-sc-section + .fi-sc-section { margin-block-start:0; }
html.fi[lang="fa"] .fi-section { border:1px solid var(--panel-line); border-radius:1rem; background:#fff; box-shadow:0 4px 18px #112b560a; overflow:visible; }
html.fi[lang="fa"] .fi-section-header { padding:1.2rem 1.5rem; background:#fbfcfe; border-bottom:1px solid #edf1f6; }
html.fi[lang="fa"] .fi-section-header-heading { color:var(--panel-navy); font-weight:800; }
html.fi[lang="fa"] .fi-section-content { padding:1.5rem; }
html.fi[lang="fa"] .fi-sc-grid { gap:1.35rem; }
html.fi[lang="fa"] .fi-wi-stats-overview { gap:1rem; }
html.fi[lang="fa"] .fi-wi-stats-overview-stat { border:1px solid var(--panel-line); border-top:3px solid var(--panel-gold); border-radius:.9rem; background:#fff; box-shadow:0 4px 18px #112b560a; }
html.fi[lang="fa"] .fi-ta-ctn { border:1px solid var(--panel-line); border-radius:1rem; background:#fff; box-shadow:0 5px 22px #112b560d; overflow:visible; }
html.fi[lang="fa"] .fi-ta-header,html.fi[lang="fa"] .fi-ta-header-toolbar { background:#fbfcfe; }
html.fi[lang="fa"] .fi-ta-header-cell { color:#40516d; background:#f3f6fa; font-weight:800; }
html.fi[lang="fa"] .fi-ta-row:hover { background:#f8faff; }
html.fi[lang="fa"] .fi-input-wrp { border-radius:.65rem; }
html.fi[lang="fa"] .fi-dropdown-panel { background:#fff; color:#22324d; border:1px solid #d9e3ef; box-shadow:0 16px 38px #102d6025; }
html.fi[lang="fa"] .fi-dropdown-list-item-label { color:#22324d; }
html.fi[lang="fa"] .fi-btn { border-radius:.65rem; font-weight:800; }
html.fi[lang="fa"] .fi-btn.fi-color-primary.fi-bg-color-400 { background:#214d8b; color:#fff; }
html.fi[lang="fa"] .fi-btn.fi-color-primary.fi-bg-color-400:hover { background:#173a6b; color:#fff; }
html.fi[lang="fa"] .fi-btn.fi-color-primary.fi-bg-color-400 svg { color:#fff; }
html.fi[lang="fa"] .fi-simple-layout { background:radial-gradient(circle at 85% 12%,#dce8f7 0,transparent 26rem),radial-gradient(circle at 7% 90%,#f2e5c9 0,transparent 18rem),#f4f7fb; }
html.fi[lang="fa"] .fi-simple-main { border:1px solid #dce5f0; border-top:4px solid #bb8a3b; border-radius:1rem; background:#fff; box-shadow:0 20px 60px #112b5617; }
html.fi[lang="fa"] .fi-simple-header-heading { color:#142e5b; font-weight:900; }
html.fi[lang="fa"] .fi-simple-header-subheading { color:#5c6e86; }
html.fi[lang="fa"] .fi-tabs { border:1px solid var(--panel-line); border-radius:.8rem; background:#fff; }
html.fi[lang="fa"] .fi-tabs-item.fi-active { color:var(--panel-navy); border-color:var(--panel-gold); }
html.fi[lang="fa"] .fi-modal-window { border-radius:1rem; }
html.fi[lang="fa"] .fi-badge { border-radius:.45rem; }
.panel-dashboard { display:grid; gap:1.25rem; }
.panel-intro { display:flex; justify-content:space-between; align-items:center; gap:2rem; min-height:190px; padding:1.8rem 2.1rem; border:0; border-radius:1rem; background:linear-gradient(110deg,#102a55 0%,#1f4b8b 70%,#163b72 100%); box-shadow:0 10px 28px #102d6020; }
.panel-intro:before { width:20rem; height:20rem; border:1px solid #ffffff29; inset-inline-end:10%; inset-block-start:-11rem; }
.panel-intro:after { width:12rem; height:12rem; border:1px solid #dcb86c45; inset-inline-end:20%; inset-block-end:-7rem; }
.panel-intro h2 { font-size:clamp(1.35rem,2.3vw,1.9rem); }
.panel-intro p { margin:.25rem 0 0; color:#dbe6f5; opacity:1; }
.panel-eyebrow { color:#f1d391; }
.panel-visit-site { position:relative; flex:none; display:inline-flex; padding:.7rem 1rem; border:1px solid #ffffff65; border-radius:.55rem; color:#fff; font-weight:800; text-decoration:none; }
.panel-visit-site:hover { background:#ffffff20; }
.panel-dashboard-heading,.member-dashboard-heading { display:flex; align-items:end; justify-content:space-between; gap:1rem; border-inline-start:4px solid var(--panel-gold); padding-inline-start:1rem; margin-top:.8rem; }
.panel-dashboard-heading span,.member-dashboard-heading span { color:#a4742b; font-size:.8rem; font-weight:800; }
.panel-dashboard-heading h3,.member-dashboard-heading h3 { margin:0; color:var(--panel-navy); font-size:1.25rem; font-weight:900; }
.panel-dashboard-heading p,.member-dashboard-heading>a { margin:0; color:var(--panel-muted); font-size:.85rem; }
.panel-task-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:1rem; }
.panel-task-card { position:relative; display:flex; flex-direction:column; align-items:flex-start; min-height:180px; padding:1.25rem; border:1px solid var(--panel-line); border-radius:.9rem; background:#fff; color:var(--panel-ink); text-decoration:none; box-shadow:0 4px 17px #112b560a; transition:transform .2s,box-shadow .2s,border-color .2s; }
.panel-task-card:hover,.member-service-grid a:hover,.member-overview-card:hover { transform:translateY(-3px); border-color:#d4b373; box-shadow:0 12px 28px #112b561a; }
.panel-task-icon,.member-status-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:.7rem; background:#eaf0f9; color:var(--panel-blue); font-size:1.4rem; }
.panel-task-count { position:absolute; top:1.2rem; left:1.2rem; color:var(--panel-navy); font-size:1.55rem; font-weight:900; }
.panel-task-card strong { margin-top:.9rem; color:var(--panel-navy); font-weight:800; }.panel-task-card small { color:var(--panel-muted); }.panel-task-card b { margin-top:auto; padding-top:.65rem; color:var(--panel-blue); font-size:.8rem; }
.panel-task-create { background:#f8f3e9; border-color:#ead8b5; }.panel-task-create .panel-task-icon { background:#ebd8ae; color:#77531b; }
.member-layout { gap:1.4rem; }.member-layout>.fi-section { margin:0; }
.member-page-intro { display:flex; gap:1rem; align-items:center; padding:1.2rem 1.4rem; border:1px solid #d8e2f0; border-radius:.9rem; background:linear-gradient(100deg,#f0f4fa,#fff); }
.member-page-icon { display:grid; place-items:center; flex:none; width:48px; height:48px; border-radius:.75rem; background:#1d437e; color:#ecd092; font-size:1.7rem; }
.member-page-intro span:not(.member-page-icon) { color:#9c7029; font-size:.75rem; font-weight:800; }.member-page-intro h2 { margin:0; color:var(--panel-navy); font-size:1.18rem; font-weight:900; }.member-page-intro p { margin:.15rem 0 0; color:var(--panel-muted); font-size:.8rem; }
.member-welcome { min-height:190px; }.member-welcome-badge { position:relative; flex:none; padding:.5rem .8rem; border:1px solid #efd3997a; border-radius:100px; background:#ffffff17; color:#f7e4b6; font-size:.8rem; font-weight:800; }
.member-overview { display:grid; grid-template-columns:2fr 1fr 1fr; gap:1rem; }
.member-status-card,.member-overview-card { position:relative; display:flex; flex-direction:column; align-items:flex-start; min-height:180px; padding:1.3rem; border:1px solid var(--panel-line); border-radius:.9rem; background:#fff; box-shadow:0 5px 20px #112b560a; }
.member-status-card { display:grid; grid-template-columns:48px 1fr; align-content:start; gap:0 1rem; background:#f0f4fa; border-color:#dce5f0; }
.member-status-card .member-status-icon { grid-row:span 2; background:#dce8f8; }.member-card-label { display:block; color:var(--panel-muted); font-size:.8rem; }.member-status-card strong { display:block; font-size:1.3rem; color:var(--panel-navy); }.member-status-card p { grid-column:2; margin:0; color:var(--panel-muted); font-size:.85rem; }.member-status-card a { grid-column:2; margin-top:1rem; color:var(--panel-blue); font-weight:800; }
.member-overview-card { transition:transform .2s,box-shadow .2s,border-color .2s; }.member-overview-card .member-card-label { margin-top:.55rem; }.member-overview-card strong { color:var(--panel-navy); font-size:1.7rem; line-height:1.4; }.member-overview-card small { color:var(--panel-muted); }.member-overview-card b { margin-top:auto; padding-top:.4rem; color:var(--panel-blue); font-size:.8rem; }
.member-service-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.member-service-grid a { position:relative; display:flex; flex-direction:column; min-height:138px; padding:1.2rem; border:1px solid var(--panel-line); border-radius:.9rem; background:#fff; box-shadow:0 4px 17px #112b560a; transition:transform .2s,box-shadow .2s,border-color .2s; }
.member-service-grid a>span { display:grid; place-items:center; width:35px; height:35px; margin-bottom:.55rem; border-radius:.6rem; background:#eaf0f9; color:var(--panel-blue); font-size:1.2rem; }.member-service-grid strong { color:var(--panel-navy); }.member-service-grid small { color:var(--panel-muted); }.member-service-grid b { position:absolute; left:1.2rem; bottom:1rem; color:var(--panel-gold); }
.member-item { border:1px solid var(--panel-line); border-inline-start:3px solid #d0ab69; border-radius:.8rem; background:#fff; box-shadow:0 3px 12px #112b5608; }.member-item h3 { color:var(--panel-navy); }.member-input { border:1px solid #d4deeb; border-radius:.65rem; background:#fff; }.member-input:focus { outline:2px solid #3c6eb5; outline-offset:0; }.member-link { color:var(--panel-blue); }.member-stat { color:var(--panel-navy); }.member-notice { border-inline-start:4px solid var(--panel-gold); border-radius:.65rem; }
.member-terms-check { display:flex; align-items:flex-start; gap:.65rem; width:100%; padding:.8rem 1rem; border:1px solid #d9e4f1; border-radius:.7rem; background:#f5f8fc; color:#344864; font-size:.82rem; line-height:1.9; cursor:pointer; }.member-terms-check input { flex:none; width:1.1rem; height:1.1rem; margin-top:.3rem; accent-color:#214d8b; }.member-terms-check a { font-weight:800; text-decoration:underline; text-underline-offset:.2rem; }
.content-chooser-card { background:#fff; border:1px solid var(--panel-line); border-inline-start:3px solid var(--panel-gold); border-bottom:1px solid var(--panel-line); box-shadow:0 4px 17px #112b560a; }.content-chooser-card:hover { border-color:#d4b373; box-shadow:0 12px 28px #112b561a; }
.panel-bottom-nav { display:none; }
.panel-bottom-nav svg { width:21px; height:21px; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
@media(max-width:1024px) { .member-overview { grid-template-columns:1.4fr 1fr 1fr; }.member-service-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:640px) { html.fi[lang="fa"] .fi-main { padding-block:1.1rem calc(6.3rem + env(safe-area-inset-bottom)); }.panel-intro { align-items:flex-start; flex-direction:column; min-height:0; padding:1.4rem; gap:1rem; }.panel-visit-site { padding:.5rem .75rem; }.panel-dashboard-heading p { display:none; }.panel-task-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }.panel-task-card { min-height:165px; padding:.9rem; }.panel-task-count { font-size:1.25rem; top:.9rem; left:.9rem; }.member-overview { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }.member-status-card { grid-column:1/-1; }.member-overview-card { min-height:160px; }.member-service-grid { gap:.7rem; }.member-service-grid a { min-height:137px; padding:.9rem; }.member-service-grid b { left:.9rem; }.member-welcome-badge { font-size:.72rem; }.member-layout { gap:1rem; }.member-item { padding:1rem; }.panel-bottom-nav { position:fixed; z-index:90; bottom:0; left:0; right:0; display:flex; justify-content:space-around; min-height:69px; padding:7px 5px calc(6px + env(safe-area-inset-bottom)); border-top:1px solid #d5dfec; background:#fffffff0; box-shadow:0 -8px 28px #102d6018; backdrop-filter:blur(18px); }.panel-bottom-nav a { position:relative; display:flex; flex:1; flex-direction:column; align-items:center; justify-content:center; gap:2px; border-radius:.55rem; color:#69788f; font-size:.65rem; font-weight:800; text-decoration:none; }.panel-bottom-nav a.is-active { color:var(--panel-navy); background:#edf3fb; }.panel-bottom-nav a.is-active:before { content:""; position:absolute; top:-7px; width:23px; height:3px; border-radius:3px; background:var(--panel-gold); }.panel-nav-icon { font-size:1.35rem; line-height:1.2; }.panel-bottom-nav a:focus-visible { outline:2px solid var(--panel-gold); } }
@media(prefers-reduced-motion:reduce) { .panel-task-card,.member-service-grid a,.member-overview-card { transition:none; } }

/* Member discussion room */
.forum-shell { display:grid; grid-template-columns:minmax(245px,310px) minmax(0,1fr); gap:1.1rem; min-height:580px; }
.forum-sidebar,.forum-conversation { min-width:0; border:1px solid #dce5ef; border-radius:1rem; background:#fff; box-shadow:0 5px 20px #112b560b; }
.forum-sidebar { padding:1.1rem; display:flex; flex-direction:column; gap:.8rem; }
.forum-sidebar-heading { display:flex; justify-content:space-between; align-items:center; }.forum-sidebar-heading span:first-child,.forum-conversation-header span:first-child { color:#9a6c27; font-size:.75rem; font-weight:800; }.forum-sidebar-heading h2,.forum-conversation-header h2 { margin:0; color:#142e5b; font-size:1.12rem; font-weight:900; }
.forum-live-indicator { padding:.25rem .55rem; border-radius:100px; background:#e5f5ed; color:#26724f; font-size:.7rem; font-weight:800; }.forum-live-indicator:before { content:""; display:inline-block; width:6px; height:6px; margin-left:.35rem; border-radius:50%; background:#299564; }
.forum-search-label { color:#485975; font-size:.78rem; font-weight:800; }.forum-search { min-height:2.65rem; }
.forum-new-thread { border:1px solid #d7e2f0; border-radius:.65rem; background:#f1f5fb; }.forum-new-thread summary { padding:.65rem .85rem; color:#17447f; cursor:pointer; font-size:.82rem; font-weight:800; list-style:none; }.forum-new-thread summary::-webkit-details-marker { display:none; }.forum-new-thread[open] { background:#fff; }.forum-new-thread form { padding:.75rem; border-top:1px solid #e1e8f2; }.forum-new-thread .member-form { gap:.65rem; }.forum-new-thread textarea { min-height:85px; }
.forum-thread-list { display:grid; align-content:start; gap:.4rem; flex:1; }.forum-thread { display:flex; align-items:center; gap:.65rem; width:100%; min-height:64px; padding:.55rem; border:1px solid transparent; border-radius:.7rem; background:transparent; color:#22324d; text-align:right; cursor:pointer; }.forum-thread:hover { background:#f4f7fb; }.forum-thread.is-selected { border-color:#c7d8ee; background:#eaf1fa; }.forum-thread-icon { display:grid; place-items:center; flex:none; width:36px; height:36px; border-radius:.6rem; background:#e2eaf5; color:#1c4b8d; font-weight:900; }.forum-thread-copy { min-width:0; display:grid; gap:.1rem; }.forum-thread-copy strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:.82rem; }.forum-thread-copy small { color:#728095; font-size:.7rem; }.forum-lock { margin-right:auto; font-size:.85rem; }
.forum-pager { display:flex; align-items:center; justify-content:space-between; gap:.35rem; border-top:1px solid #e7edf4; padding-top:.7rem; font-size:.75rem; }.forum-pager button { padding:.35rem .5rem; border:1px solid #d5e0ec; border-radius:.45rem; background:#fff; color:#214b82; cursor:pointer; }.forum-pager button:disabled { opacity:.45; cursor:default; }
.forum-conversation { display:flex; flex-direction:column; overflow:hidden; }.forum-conversation-header { display:flex; align-items:start; justify-content:space-between; gap:1rem; padding:1.2rem 1.4rem; border-bottom:1px solid #e8edf4; background:#fbfcfe; }.forum-conversation-header p { margin:.15rem 0 0; color:#6b798e; font-size:.72rem; }.forum-status { padding:.25rem .65rem; border-radius:100px; background:#e6f4ea; color:#247048; font-size:.72rem; font-weight:800; }.forum-status.is-locked { background:#fff3dd; color:#93631c; }
.forum-messages { display:flex; flex-direction:column; gap:1rem; min-height:270px; max-height:540px; overflow:auto; padding:1.3rem; background:#f8fafd; }.forum-message { display:flex; align-items:flex-start; gap:.6rem; max-width:85%; }.forum-message.is-own { align-self:flex-end; }.forum-avatar { display:grid; place-items:center; flex:none; width:32px; height:32px; border-radius:50%; background:#dfe9f8; color:#17447f; font-weight:900; font-size:.8rem; }.forum-message.is-own .forum-avatar { background:#e9d7ae; color:#6c4d1e; }.forum-bubble { min-width:0; padding:.65rem .85rem; border:1px solid #e0e8f2; border-radius:.15rem .8rem .8rem .8rem; background:#fff; }.forum-message.is-own .forum-bubble { border-color:#ccdbef; background:#edf3fb; border-radius:.8rem .15rem .8rem .8rem; }.forum-message-meta { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem; }.forum-message-meta strong { color:#183d72; font-size:.78rem; }.forum-message-meta time { color:#7c8a9c; font-size:.65rem; }.forum-bubble p { margin:.25rem 0 0; color:#25354c; line-height:1.9; white-space:pre-wrap; overflow-wrap:anywhere; font-size:.84rem; }
.forum-compose { display:grid; gap:.5rem; padding:1rem 1.25rem; border-top:1px solid #e8edf4; }.forum-compose label { color:#344a66; font-size:.78rem; font-weight:800; }.forum-compose textarea { min-height:75px; max-height:190px; }.forum-compose>div { display:flex; align-items:center; justify-content:space-between; gap:.8rem; }.forum-compose small { color:#728095; }.forum-empty { padding:1rem; border:1px dashed #d2deec; border-radius:.65rem; color:#6c7b90; background:#f8fafd; font-size:.8rem; line-height:1.8; }.forum-empty-large { margin:auto; }
.forum-welcome { display:flex; flex-direction:column; align-items:center; justify-content:center; max-width:420px; min-height:440px; margin:auto; padding:2rem; text-align:center; }.forum-welcome span { display:grid; place-items:center; width:70px; height:70px; margin-bottom:1.2rem; border:1px solid #ddc999; border-radius:1.1rem; background:#f8f1e2; color:#9b6a25; font-size:2.2rem; }.forum-welcome h2 { margin:0; color:#142e5b; font-size:1.2rem; font-weight:900; }.forum-welcome p { color:#63738a; line-height:2; font-size:.85rem; }.forum-welcome a { margin-top:.4rem; color:#1d4b8b; font-size:.83rem; font-weight:800; }
@media(max-width:820px) { .forum-shell { grid-template-columns:1fr; }.forum-sidebar { max-height:430px; }.forum-conversation { min-height:420px; } }
@media(max-width:640px) { .forum-shell { gap:.7rem; }.forum-sidebar,.forum-conversation { border-radius:.75rem; }.forum-messages { padding:.85rem; max-height:460px; }.forum-message { max-width:96%; }.forum-conversation-header { padding:1rem; }.forum-compose { padding:.85rem; } }
