/* Stage 51.10.29 — PDF «اصلاحات سایت ۵», page 1–2. Scoped redesign.
   Controls and role permissions remain server-driven. */
.eiva-site .eiva511024-home-offices .eiva511015-carousel.eiva511029-home-carousel{
 --office-visible:5;display:flex;flex-direction:column;gap:0;align-items:stretch;
 border:2px solid #554980;background:linear-gradient(135deg,#f7faf7,#fffdf7);padding:clamp(17px,2.5vw,29px)
}
.eiva-site .eiva511029-home-carousel .eiva511015-head{
 width:100%;display:flex;align-items:flex-end;justify-content:space-between;flex-direction:row;gap:18px;margin-bottom:22px
}
.eiva-site .eiva511029-home-carousel .eiva511015-heading{flex:1;max-width:100%;text-align:right}
.eiva-site .eiva511029-home-carousel .eiva511015-heading h2{font-size:clamp(22px,2.6vw,31px);margin-block:0 8px}
.eiva-site .eiva511029-home-carousel .eiva511015-heading p{font-size:13px;max-width:1000px;line-height:2}
.eiva-site .eiva511029-home-carousel .eiva511015-track{width:100%;max-width:100%;box-sizing:border-box;grid-area:auto;padding:2px 2px 10px;align-self:stretch}
.eiva-site .eiva511029-home-carousel .eiva511015-office{min-width:0}
.eiva-site .eiva511029-home-carousel .eiva511015-assist{font-size:11px;margin:8px 0 0;max-width:100%;grid-area:auto}
.eiva-site .eiva511029-home-carousel .eiva511015-footer{width:100%;display:flex;justify-content:center;align-items:center;grid-area:auto;margin:17px 0 0;padding:0}
.eiva-site .eiva511029-home-carousel .eiva511015-main-link{min-height:45px;padding-inline:26px;background:#173f35;color:white!important}
.eiva-site .eiva511029-home-carousel .eiva511015-controls{align-self:center}
/* New client/lawyer portal panel — same original paragraphs, new layout */
.eiva-site .eiva511029-lawyer-client{background:linear-gradient(125deg,#10392f,#184d41);padding:clamp(34px,5vw,72px) 0;isolation:isolate;position:relative}
.eiva-site .eiva511029-lawyer-grid{display:grid;grid-template-columns:minmax(240px,.78fr) minmax(0,1.3fr);gap:clamp(24px,4vw,60px);align-items:center;direction:rtl}
.eiva-site .eiva511029-lawyer-client .eiva18-process-copy{min-width:0;display:flex;flex-direction:column;align-items:start;gap:15px}
.eiva-site .eiva511029-lawyer-client h2{color:#fff;font-size:clamp(25px,3.3vw,43px);line-height:1.55;margin:0}
.eiva-site .eiva511029-lawyer-cta{font-size:clamp(14px,1.3vw,18px)!important;min-height:56px;padding:13px 28px;max-width:100%;text-align:center}
.eiva-site .eiva511029-lawyer-description{min-width:0;background:#fffefa;border:1px solid #e7dfc9;border-radius:22px;padding:clamp(20px,2.7vw,37px);color:#314d45;box-shadow:0 12px 40px #0b231f35}
.eiva-site .eiva511029-lawyer-description p{font-size:clamp(12.5px,1vw,14px);line-height:2.13;margin:0 0 12px;text-align:justify}
.eiva-site .eiva511029-lawyer-description p:last-child{margin-bottom:0}
/* Dashboard all pages — consistently readable and tap-friendly. */
.eiva-dashboard{--eiva29-green:#173f35;--eiva29-gold:#a78447;--eiva29-ink:#263f36}
.eiva-dashboard .eiva511029-return-nav{display:flex;justify-content:flex-start;margin:0 0 14px}
.eiva-dashboard .eiva511029-return-nav a{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:9px 15px;border:1px solid #cbded3;background:#fff;color:var(--eiva29-green);border-radius:12px;text-decoration:none;font-weight:750;font-size:12px}
.eiva-dashboard .eiva511029-return-nav a:hover{background:#edf5ef}
.eiva-dashboard .eiva511029-personal-nav{gap:2px}
.eiva-dashboard .eiva511029-account-shortcut{padding:11px 15px 17px}
.eiva-dashboard .eiva511029-account-shortcut a{display:block;padding:10px 12px;border:1px solid #416d5c;border-radius:10px;color:#edf5ef;text-decoration:none;font-size:11px}
.eiva-dashboard .eiva511029-dashboard-welcome{min-height:180px;max-height:250px;overflow:hidden;border-radius:20px}
.eiva-dashboard .eiva511029-dashboard-welcome .eiva22-welcome-image{opacity:.35}
.eiva-dashboard .eiva511029-dashboard-welcome .eiva22-welcome-copy{padding:clamp(16px,2.3vw,27px)}
.eiva-dashboard .eiva511029-dashboard-welcome .eiva22-welcome-copy h1{font-size:clamp(22px,2.5vw,32px)}
.eiva-dashboard .eiva511029-dashboard-welcome .eiva22-welcome-copy p{font-size:12px;line-height:1.75}
.eiva-dashboard .eiva511029-home-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.eiva-dashboard .eiva511029-home-actions a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;border:1px solid #d9e4da;background:#fff;border-radius:18px;padding:20px 10px;text-decoration:none;color:var(--eiva29-green);box-shadow:0 9px 25px #173f350a;transition:transform .15s ease}
.eiva-dashboard .eiva511029-home-actions a:hover{transform:translateY(-2px);border-color:#8eb5a2}
.eiva-dashboard .eiva511029-home-actions span{display:grid;place-items:center;font-size:24px;width:47px;height:47px;border-radius:14px;background:#e5f1e9;color:#195841}
.eiva-dashboard .eiva511029-home-actions a:nth-child(2) span{background:#f7efd9;color:#826431}
.eiva-dashboard .eiva511029-home-actions a:nth-child(3) span{background:#e8eef8;color:#445d8b}
.eiva-dashboard .eiva511029-home-actions a:nth-child(4) span{background:#f1eafb;color:#65428d}
.eiva-dashboard .eiva511029-home-actions strong{font-size:13px;line-height:1.7;text-align:center}
.eiva-dashboard .eiva511029-home-actions small{font-size:11px;color:#678074;text-align:center;line-height:1.7}
.eiva-dashboard .eiva511029-professional-shortcut{margin:18px 0}
.eiva-dashboard .eiva511029-role-links{display:flex;gap:10px;flex-wrap:wrap}
.eiva-dashboard .eiva511029-role-links a{display:inline-flex;align-items:center;gap:8px;border:1px solid #bdd7c5;background:#eaf4ec;border-radius:10px;padding:11px 16px;color:#174a35;text-decoration:none;font-weight:800;font-size:12px}
.eiva-dashboard .eiva511029-page-head{padding:clamp(18px,2.8vw,34px);background:linear-gradient(115deg,#eff5f0,#fffdfa);border:1px solid #d8e6d9;border-radius:21px;margin-bottom:18px}
.eiva-dashboard .eiva511029-page-head>span{display:inline-block;color:#916f37;font-weight:800;font-size:11px;margin-bottom:7px}
.eiva-dashboard .eiva511029-page-head h1{color:#173f35;font-size:clamp(21px,2.5vw,29px);margin:0 0 11px}
.eiva-dashboard .eiva511029-page-head p{font-size:13px;max-width:870px;color:#4b665b;line-height:2;margin:0}
.eiva-dashboard .eiva511029-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;direction:rtl}
.eiva-dashboard .eiva511029-service-tile{display:flex;min-width:0;flex-direction:column;gap:10px;min-height:195px;background:#fff;border:1px solid #d5e4da;border-radius:18px;padding:21px;text-decoration:none;color:#173f35;box-shadow:0 10px 26px #173f3510;transition:transform .15s ease,border-color .15s ease}
.eiva-dashboard .eiva511029-service-tile:hover{transform:translateY(-3px);border-color:#ae9460}
.eiva-dashboard .eiva511029-tile-icon{width:44px;height:44px;display:grid;place-items:center;background:#e8f3ed;border-radius:12px;font-size:23px}
.eiva-dashboard .eiva511029-service-tile h2{font-size:17px;margin:0}
.eiva-dashboard .eiva511029-service-tile p{font-size:12px;line-height:1.9;color:#597065;margin:0;flex:1}
.eiva-dashboard .eiva511029-tile-go{font-size:12px;font-weight:800;color:#19634a}
.eiva-dashboard .eiva511029-documents{display:flex;flex-direction:column;gap:10px;min-width:0}
.eiva-dashboard .eiva511029-document-row{display:flex;gap:14px;align-items:center;padding:18px 20px;background:#fff;border:1px solid #d9e5dd;border-radius:14px;text-decoration:none;color:#173f35;min-width:0}
.eiva-dashboard .eiva511029-document-row>span{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:11px;background:#e8f1eb;font-size:21px}
.eiva-dashboard .eiva511029-document-row>div{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
.eiva-dashboard .eiva511029-document-row strong{font-size:13px;overflow-wrap:anywhere}
.eiva-dashboard .eiva511029-document-row small{color:#668073;font-size:11px;overflow-wrap:anywhere}
.eiva-dashboard .eiva511029-document-row time{font-size:11px;color:#597568;text-align:left}
.eiva-dashboard .eiva511029-document-row b{font-size:18px}
.eiva-dashboard .eiva511029-related-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.eiva-dashboard .eiva511029-related-links a{display:inline-flex;min-height:40px;align-items:center;border:1px solid #b8d4c0;padding:9px 14px;color:#1c5440;background:#f5faf5;border-radius:11px;text-decoration:none;font-weight:750;font-size:12px}
.eiva-dashboard .eiva511029-empty-roles{padding:25px;background:#f7faf7;border:1px dashed #bdcfbf;border-radius:16px;color:#365646;grid-column:1/-1;line-height:2}
.eiva-dashboard .eiva511029-empty-roles h2{font-size:16px;margin:0 0 8px}
.eiva-dashboard .eiva511029-empty-roles p{font-size:12px;line-height:2}
.eiva-dashboard .eiva511029-empty-roles a{color:#225d42}
.eiva-dashboard .eiva511029-assist-note{font-size:12px;color:#6c7c70;line-height:2}
:is(.eiva-site,.eiva-dashboard) .eiva511029-home-actions a:focus-visible,
:is(.eiva-site,.eiva-dashboard) .eiva511029-service-tile:focus-visible,
:is(.eiva-site,.eiva-dashboard) .eiva511029-document-row:focus-visible{outline:3px solid #ba9354;outline-offset:3px}
@media(max-width:1199px){.eiva-site .eiva511024-home-offices .eiva511029-home-carousel{--office-visible:4}}
@media(max-width:980px){.eiva-site .eiva511024-home-offices .eiva511029-home-carousel{--office-visible:3}}
@media(max-width:860px){.eiva-site .eiva511029-lawyer-grid{grid-template-columns:1fr}.eiva-site .eiva511029-lawyer-client .eiva18-process-copy{max-width:100%}.eiva-dashboard .eiva511029-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.eiva-site .eiva511024-home-offices .eiva511029-home-carousel{--office-visible:2}.eiva-site .eiva511029-home-carousel .eiva511015-head{display:flex;flex-wrap:wrap;align-items:flex-start}.eiva-dashboard .eiva511029-home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:490px){.eiva-site .eiva511024-home-offices .eiva511029-home-carousel{--office-visible:1}.eiva-site .eiva511029-lawyer-client{padding:27px 0}.eiva-site .eiva511029-lawyer-description{padding:18px;border-radius:16px}.eiva-dashboard .eiva511029-dashboard-welcome{min-height:190px;max-height:none}.eiva-dashboard .eiva511029-service-grid{grid-template-columns:1fr}.eiva-dashboard .eiva511029-home-actions a{padding:15px 7px}.eiva-dashboard .eiva511029-document-row{flex-wrap:wrap;padding:14px}.eiva-dashboard .eiva511029-document-row time{width:100%;padding-inline-start:54px}.eiva-dashboard .eiva511029-related-links a{width:100%}}
@media(prefers-reduced-motion:reduce){.eiva-dashboard .eiva511029-home-actions a,.eiva-dashboard .eiva511029-service-tile{transition:none}}

.eiva-dashboard .eiva511029-period,.eiva-dashboard .eiva511029-pager{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}
.eiva-dashboard .eiva511029-period a,.eiva-dashboard .eiva511029-pager a{display:inline-flex;align-items:center;min-height:37px;padding:8px 14px;border-radius:10px;border:1px solid #c9ddd0;background:#fff;color:#234e3c;text-decoration:none;font-size:12px;font-weight:750}
.eiva-dashboard .eiva511029-period a[aria-current]{background:#173f35;border-color:#173f35;color:#fff}
.eiva-dashboard .eiva511029-pager span{font-size:12px;color:#5d7967}
