/* استاندارد چیدمان صفحه‌های داده‌ی msdata — تأیید صاحب کسب‌وکار ۱۸ مهر ۱۴۰۵ (صفحه‌ی دلار) · فایل مشترک
   سربرگ + جایگاه تبلیغ | ردیف نمودار ۵:۱ با پنل کارت‌ها | ردیف سه‌تایی | ردیف دوتایی؛ همه هم‌قد و هم‌تراز */
.ph,.gm,.g1,.g2,.g3{padding:7px 10px 0;box-sizing:border-box}
.ph{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ph .pt{min-width:0;flex:1 1 360px}
.ph .dlead{margin:6px 0 0;padding:0;border:0;background:none;font-size:12px;line-height:1.9;color:var(--muted)}
.adx{position:relative;overflow:hidden;flex:0 1 728px;height:90px;display:flex;align-items:center;gap:14px;padding:0 16px;border:1px dashed var(--line);background:linear-gradient(110deg,var(--box) 0%,var(--boxhead) 50%,var(--box) 100%);background-size:250% 100%;animation:adsh 7s ease-in-out infinite;color:var(--text)}
.adx:hover{text-decoration:none;border-color:var(--gold,#d4af4a)}
.adl{position:absolute;top:4px;left:6px;font-size:9.5px;color:var(--muted);border:1px solid var(--line2);padding:0 5px}
.adg{width:96px;height:40px;flex:none}
.adg polyline{fill:none;stroke:var(--gold,#d4af4a);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:180;stroke-dashoffset:180;animation:addr 3.2s ease-out infinite}
.adt{display:flex;flex-direction:column;gap:2px;min-width:0}.adt b{font-size:14px}.adt span{font-size:11px;color:var(--muted)}
.adc{margin-right:auto;font-size:11.5px;font-weight:700;color:var(--gold,#d4af4a);border:1px solid var(--gold,#d4af4a);padding:4px 12px;white-space:nowrap}
@keyframes adsh{0%,100%{background-position:100% 0}50%{background-position:0 0}}
@keyframes addr{0%{stroke-dashoffset:180}55%,100%{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.adx,.adg polyline{animation:none;stroke-dashoffset:0}}
/* ردیف‌ها */
.gm,.g2,.g3{display:grid;gap:7px;align-items:stretch}
.gm{grid-template-columns:minmax(0,5fr) minmax(0,1fr)}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.gm>.box,.g2>.box,.g3>.box,.g1>.box{display:flex;flex-direction:column}
.gm .bh,.g2 .bh,.g3 .bh,.g1 .bh{height:36px;padding:0 12px;box-sizing:border-box;font-size:12px}
.g2 .tw,.g1 .tw,.nwb,.nwl{flex:1}
.g2>.box>.cw{flex:1}
/* پنل یکپارچه‌ی کارت‌ها کنار نمودار */
.gm .kpis{display:grid;grid-template-columns:1fr;grid-auto-rows:1fr;gap:0;min-height:0;background:var(--box);border:1px solid var(--line)}
.gm .kpi{border:0;background:none;padding:10px 12px;position:relative;display:flex;flex-direction:column;justify-content:center;gap:2px}
.gm .kpi+.kpi::before{content:"";position:absolute;top:0;right:12px;left:12px;border-top:1px solid var(--line2)}
.gm .kpi .v{font-size:22px}
/* متن باکس‌ها */
.g3 .ex>div,.g2 .ex>div,.nwb,.nwl{padding:12px!important}
.g3 .ex p,.g2 .ex p,.nwb,.nwb p,.nwe,.nwe span,.nwl li{font-size:12px;line-height:2;margin:0}
.g3 .ex p+p,.g2 .ex p+p{margin-top:8px}
.nwe b{font-size:12px;font-weight:700;line-height:2;margin:0;color:var(--text)}.nwb h3{font-size:18px;font-weight:800;line-height:1.6;margin:0 0 2px;color:var(--text)}.nwb h3 a{color:var(--text)}
.nwb .d,.nwl .d{font-size:10.5px;color:var(--muted);white-space:nowrap}
.nwl{list-style:none;margin:0}
.nwl li{padding:0 0 6px;margin-bottom:6px;border-bottom:1px solid var(--line2);display:flex;justify-content:space-between;gap:10px}
.nwl li:last-child{border-bottom:0}.nwl a{color:var(--text)}
.nwe{display:flex;flex-direction:column;color:var(--muted);border:0!important}
/* استاندارد جدول سایت (= «پیشتازان افت»): ردیف ≈۲۳px */
.tb th,.tb td{font-size:11px;line-height:16.5px;padding:3px 7px;height:auto}
.tb th{font-size:10px;font-weight:700}
.tb td b,.tb td strong,.tb tr.sum td{font-weight:400}
.g2 .tb,.g1 .tb{min-height:0!important}
.tb tr.more{display:none}
.bh .full{font-family:inherit;font-size:10.5px;font-weight:500;background:transparent;color:var(--link);border:1px solid var(--line);padding:0 8px;cursor:pointer;white-space:nowrap}
.lym{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;z-index:50;padding:16px}
.lym .box{max-width:720px;width:100%;max-height:86vh;display:flex;flex-direction:column}
.lym .tw{overflow:auto}.lym .tb tr.more{display:table-row}
@media (max-width:900px){.gm,.g2,.g3{grid-template-columns:minmax(0,1fr)}.gm .kpis{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto}.gm .kpi+.kpi::before{display:none}.gm .kpi:nth-child(even){border-right:1px solid var(--line2)}.gm .kpi:nth-child(n+3){border-top:1px solid var(--line2)}}
@media (max-width:760px){.adx{flex:1 1 100%;height:64px;gap:10px}.adg{width:64px}.adc{display:none}.gm .bh,.g2 .bh{height:auto;min-height:36px;flex-wrap:wrap;padding:4px 12px}}
/* صفحه‌های سازنده‌ی خودکار (بورس کالا، کیش، انرژی): سربرگ + جایگاه تبلیغ در یک ردیف */
.hrow{display:flex;gap:7px;padding:7px 10px 0;align-items:stretch;flex-wrap:wrap}
.hrow>.box.head{flex:1 1 420px;margin:0!important;min-width:0}
.hrow>.adx{height:auto;min-height:72px}
/* صفحه‌ی هر کالا (سازنده‌ی خودکار): نمودار ۵:۱ با پنل یکپارچه‌ی عددها */
.kgm{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,1fr);gap:7px;padding:7px 10px 0;align-items:stretch}
.kgm>.box.chart{margin:0!important;min-width:0}
.kgm>.kps{display:grid!important;grid-template-columns:1fr!important;grid-auto-rows:1fr;gap:0!important;margin:0!important;padding:0!important;background:var(--box);border:1px solid var(--line)}
.kgm>.kps>.kp{border:0!important;background:none!important;margin:0!important;padding:10px 12px!important;position:relative;display:flex;flex-direction:column;justify-content:center;gap:2px}
.kgm>.kps>.kp+.kp::before{content:"";position:absolute;top:0;right:12px;left:12px;border-top:1px solid var(--line2)}
@media (max-width:900px){.kgm{grid-template-columns:minmax(0,1fr)}.kgm>.kps{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto}.kgm>.kps>.kp+.kp::before{display:none}.kgm>.kps>.kp{border-top:1px solid var(--line2)!important}}
/* ۱۹ مهر (صاحب کسب‌وکار): عنوان صفحه درشت‌تر */
.ph h1{font-size:26px;line-height:1.5;margin:2px 0 4px;font-weight:800}
/* ۱۹ مهر: «آخرین خبر» تا انتهای باکس پر می‌شود (محتوا در لایه‌ی مطلق، ارتفاع ردیف را عوض نمی‌کند) */
.nwb{position:relative;overflow:hidden;min-height:220px}
.nwb>.nwx{position:absolute;inset:12px 12px 34px;overflow:hidden}
.nwb>.nwx p{margin:0 0 6px;font-size:12px;line-height:2}.nwb>.nwx .ld{margin-top:6px;font-weight:600}
.nwb>.nwx::after{content:"";position:absolute;left:0;right:0;bottom:0;height:46px;background:linear-gradient(transparent,var(--box))}
.nwb>.nwm{position:absolute;bottom:8px;left:12px;font-size:11.5px;font-weight:700}
/* انتخاب ماه امروزی */
.mpk{position:relative;display:inline-block}
.mpb{display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 12px;border:1px solid var(--line);background:var(--boxhead);color:var(--text);font-family:inherit;font-size:12px;font-weight:600;cursor:pointer;border-radius:6px}
.mpb:hover{border-color:var(--gold,#d4af4a)}.mpb svg{width:14px;height:14px;color:var(--gold,#d4af4a)}.mpb i{font-style:normal;color:var(--muted);font-size:10px}
.mpp{position:absolute;top:36px;right:0;z-index:60;width:264px;padding:10px;border:1px solid var(--line);background:var(--box);border-radius:8px;box-shadow:0 10px 28px rgba(0,0,0,.4)}
.mpy{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.mpy b{font-size:14px}
.mpy button{width:28px;height:26px;border:1px solid var(--line);background:var(--boxhead);color:var(--text);border-radius:6px;cursor:pointer;font-size:14px}
.mpy button:disabled{opacity:.3;cursor:default}
.mpg{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.mpg button{height:32px;border:1px solid var(--line2);background:transparent;color:var(--text);font-family:inherit;font-size:12px;border-radius:6px;cursor:pointer}
.mpg button:hover:not(:disabled){border-color:var(--gold,#d4af4a)}
.mpg button.on{background:var(--gold,#d4af4a);color:#1c1e21;border-color:transparent;font-weight:700}
.mpg button:disabled{opacity:.28;cursor:default}
/* ۱۹ مهر (صاحب کسب‌وکار): در سربرگ جدول‌ها تاریخ کنار عنوان و «جدول کامل» کنار «راهنما» (سمت چپ) */
.g1 .bh,.g2 .bh{position:relative}
.g1 .bh>span.mut,.g2 .bh>span.mut{margin-right:4px;white-space:nowrap;font-size:12px!important;font-weight:700!important;color:var(--text)!important}.g1 .bh>span.mut::before,.g2 .bh>span.mut::before{content:'— '}
.g1 .bh>.full,.g2 .bh>.full{margin-right:auto;margin-left:6px}

/* پاپ‌آپ جدول کامل: چرخش کارت + ردیف‌های آبشاری (۱۹ مهر) */
@keyframes lyRow{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.lym,.fxm{perspective:1400px;opacity:0;transition:opacity .3s;backdrop-filter:blur(3px)}
.lym.on,.fxm.on{opacity:1}
.lym>.box,.fxm>.box{transform:rotateY(-80deg);opacity:0;transition:transform .55s cubic-bezier(.2,.8,.2,1),opacity .3s;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.lym.on>.box,.fxm.on>.box{transform:none;opacity:1}
.lym tr,.fxm tr{opacity:0}
.lym.on tr,.fxm.on tr{animation:lyRow .35s forwards}
@media (prefers-reduced-motion:reduce){.lym,.fxm,.lym>.box,.fxm>.box{transition:none}.lym.on tr,.fxm.on tr{animation:none;opacity:1}}

.dlead[hidden],#dlead[hidden]{display:none!important}
/* (۲۸ مهر) فهرست خبر استاندارد: ردیف ۲۴px، یک خط، تا پایین باکس */
.nwl.nwstd{padding:4px 12px!important;position:relative;min-height:0;overflow:hidden}
.nwl.nwstd li{height:24px;line-height:23px;padding:0;margin:0;border-bottom:1px solid var(--line2);font-size:11.5px;align-items:center}
.nwl.nwstd li a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--text)}
.nwl.nwstd li[hidden]{display:none}
@media (min-width:901px){.nwl.nwstd{flex:1 1 0;height:0}}


/* (۲۵ مهر، صاحب کسب‌وکار) تیتر خبرها در همه‌ی سایت به رنگ متن، نه آبی */
.nl li a,a.rpt,#repList a,#nwList a,.cdn li a{color:var(--text)!important}
/* (۲۵ مهر) موبایل: ستون duo هرگز پهن‌تر از صفحه نشود (بیرون‌زدگی ۳۵px بورس انرژی) */
@media (max-width:760px){.duo{grid-template-columns:minmax(0,1fr)!important}}
@media (max-width:760px){.duo>*{grid-column:1/-1!important;min-width:0!important;margin-left:0!important;margin-right:0!important}}
/* (۲۸ مهر) فهرست دست‌سازِ تبدیل‌شده: ظرف تا پایین باکس */
.nwc{display:flex;flex-direction:column;padding:0!important;min-height:0}
.nwc>.nwl.nwstd{flex:1 1 auto}
@media (min-width:901px){.nwc{flex:1 1 0;height:0}}
