/* Daal Seal — stock search section (products page). */
.stk{background:#fff;border-top:1px solid var(--line,#dfe5ec)}
.stk *,.stk *::before,.stk *::after{box-sizing:border-box}
.stk-w{max-width:1600px;margin-inline:auto;padding-inline:clamp(16px,3vw,24px);text-align:center}
.stk-ey{display:inline-flex;align-items:center;gap:10px;color:#0370C7;font-weight:800;font-size:.85rem}
.stk-ey::before,.stk-ey::after{content:"";width:28px;height:2px;background:#F7C902}
.stk h2{margin:6px 0 8px;color:#0370C7!important;font-size:clamp(1.35rem,2.8vw,1.8rem);font-weight:800;line-height:1.6;text-align:center;text-wrap:balance}
.stk-lead{margin:0 0 14px;max-width:none;color:var(--mut,#5d6870);line-height:2;text-align:center}
.stk-upd{display:inline-flex;gap:8px;align-items:center;margin-bottom:20px;font-size:.8rem;color:var(--mut,#5d6870)}
.stk-upd i{width:8px;height:8px;border-radius:50%;background:#1d8a4e}

/* search panel */
.stk-panel{padding:22px;border-radius:16px;border-bottom:4px solid #F7C902;background-color:#2A2F33;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:28px 28px;color:#fff;text-align:start;box-shadow:0 10px 30px rgba(20,40,60,.12)}
.stk-quick{position:relative;margin-bottom:16px}
.stk-quick input{width:100%;min-height:52px;padding:10px 48px 10px 16px;border:2px solid transparent;border-radius:10px;background:#fff;color:#1f2428;font:500 1rem Vazirmatn,Tahoma,sans-serif;margin:0}
.stk-quick input:focus{outline:none;border-color:#F7C902}
.stk-quick svg{position:absolute;right:14px;top:14px;width:24px;height:24px;fill:none;stroke:#0370C7;stroke-width:2.2;stroke-linecap:round}
.stk-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
@media(min-width:1200px){.stk-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}}
@media(max-width:560px){.stk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.stk-f{position:relative;display:grid;gap:4px;margin:0;font-size:.8rem;font-weight:700;color:#d6dde3}
.stk-f span b{color:#F7C902;font-weight:800;direction:ltr;unicode-bidi:isolate}
.stk-f select,.stk-f input{width:100%;min-height:44px;margin:0;padding:8px 12px;border:1px solid transparent;border-radius:8px;background:#fff;color:#1f2428;font:500 .92rem Vazirmatn,Tahoma,sans-serif}
.stk-f input{direction:ltr;text-align:right}
.stk-f select:focus,.stk-f input:focus{outline:2px solid #F7C902;outline-offset:1px}
.stk-sug{position:absolute;top:100%;inset-inline:0;z-index:30;margin-top:4px;max-height:240px;overflow:auto;padding:4px;border-radius:8px;background:#fff;color:#1f2428;font-weight:500;box-shadow:0 12px 30px rgba(0,0,0,.3)}
.stk-quick .stk-sug{max-height:320px}
.stk-sug button{display:flex;width:100%;justify-content:space-between;gap:10px;align-items:center;padding:7px 10px;border:0;border-radius:6px;background:none;color:inherit;font:inherit;font-size:.88rem;text-align:start;cursor:pointer}
.stk-sug button:hover{background:#e8f2fb}
.stk-sug small{color:#5d6870;font-size:.75rem}
.stk-sug .in{color:#1d8a4e;font-weight:700}
.stk-sug code{direction:ltr;font:600 .85rem ui-monospace,Consolas,monospace;background:none;padding:0}
.stk-opts{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;margin-top:16px;font-size:.85rem}
.stk-opts label{display:inline-flex;gap:8px;align-items:center;margin:0;color:#fff;cursor:pointer}
.stk-opts input{width:18px;height:18px;margin:0;accent-color:#F7C902}
.stk-reset{margin-inline-start:auto;min-height:36px;padding:6px 14px;border:1px solid rgba(255,255,255,.35);border-radius:8px;background:none;color:#fff;font:700 .82rem Vazirmatn,Tahoma,sans-serif;cursor:pointer}
.stk-reset:hover{border-color:#F7C902;color:#F7C902}

/* results */
.stk-meta{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;margin:22px 0 12px;font-size:.9rem;text-align:start}
.stk-meta b{font-weight:800}
.stk-chips{display:flex;flex-wrap:wrap;gap:6px}
.stk-chip{padding:2px 10px;border-radius:999px;background:#e8f2fb;color:#0361ad;font-size:.75rem;font-weight:700;direction:ltr}
.stk-tbl{overflow:hidden;border:1px solid var(--line,#dfe5ec);border-radius:12px;background:#fff;text-align:start;box-shadow:0 8px 24px rgba(20,40,60,.07)}
.stk-tbl:empty{display:none}
.stk-row{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1.1fr) repeat(3,minmax(0,.6fr)) minmax(0,.8fr) minmax(0,.9fr) auto;gap:12px;align-items:center;padding:12px 18px;border-bottom:1px solid var(--line,#dfe5ec)}
.stk-row:last-child{border-bottom:0}
.stk-row.h{padding-block:10px;background:#e8f2fb;color:#0361ad;font-size:.78rem;font-weight:800}
.stk-row:not(.h):hover{background:#f5f9fd}
.stk-uid{direction:ltr;text-align:right;overflow-wrap:anywhere;color:#0361ad;font:700 .9rem ui-monospace,Consolas,monospace}
.stk-n{direction:ltr;text-align:center;font-weight:800;font-variant-numeric:tabular-nums}
.stk-n.near{color:#b26b00}
.stk-t{direction:ltr;text-align:right;font-size:.85rem}
.stk-st{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:.78rem;font-weight:800;white-space:nowrap}
.stk-st.in{background:#e5f4ec;color:#1d8a4e}
.stk-st.in::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.stk-st.ord{background:#e8f2fb;color:#5d6870}
.stk-ask{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:7px 14px;border-radius:8px;background:#F7C902;color:#2A2F33!important;font-size:.82rem;font-weight:800;text-decoration:none!important;white-space:nowrap}
.stk-ask:hover{background:#0370C7;color:#fff!important}
.stk-ask svg{width:16px;height:16px;fill:currentColor}
.stk-near{display:block;color:#b26b00;font:700 .72rem Vazirmatn,Tahoma,sans-serif}
.stk-pn{display:block;margin-top:2px;color:#5d6870;font:500 .72rem/1.6 Vazirmatn,Tahoma,sans-serif;direction:ltr}
.stk-chip{cursor:default}
.stk-empty{padding:40px 20px;text-align:center;color:#5d6870}
.stk-empty a{color:#0361ad;font-weight:800}
.stk-pg{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:18px}
.stk-pg button{min-height:40px;padding:6px 18px;border:1px solid var(--line,#dfe5ec);border-radius:8px;background:#fff;color:#2A2F33;font:700 .88rem Vazirmatn,Tahoma,sans-serif;cursor:pointer}
.stk-pg button:hover:not(:disabled){border-color:#0370C7;color:#0361ad}
.stk-pg button:disabled{opacity:.4;cursor:default}
.stk-pg span{font-size:.85rem;color:#5d6870}
@media(max-width:820px){
 .stk-row.h{display:none}
 .stk-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 10px;padding:14px}
 .stk-row .stk-uid,.stk-row .stk-t.d{grid-column:1/-1}
 .stk-row .stk-t.d{font-size:.8rem;color:#5d6870}
 .stk-row .stk-n::before{display:block;content:attr(data-l);color:#5d6870;font:700 .68rem Vazirmatn,Tahoma,sans-serif}
 .stk-row .stk-a{justify-self:end}
}

/* ---------- dark mode ---------- */
@media(prefers-color-scheme:dark){
.stk{background:#1b1f22;border-top-color:#2c343a}
.stk h2{color:#5FB0F2!important}
.stk-ey{color:#5FB0F2}
.stk-lead,.stk-upd{color:#9aa6ae}
.stk-panel{box-shadow:none}
.stk-meta{color:#e8ecef}
.stk-chip{background:#16283a;color:#5FB0F2}
.stk-tbl{background:#22282d;border-color:#2c343a;box-shadow:none}
.stk-row{border-bottom-color:#2c343a;color:#e8ecef}
.stk-row.h{background:#16283a;color:#5FB0F2}
.stk-row:not(.h):hover{background:#283038}
.stk-uid{color:#5FB0F2}
.stk-pn{color:#9aa6ae}
.stk-n.near,.stk-near{color:#f0b35a}
.stk-st.in{background:#173527;color:#46c07f}
.stk-st.ord{background:#16283a;color:#9aa6ae}
.stk-empty{color:#9aa6ae}
.stk-empty a{color:#5FB0F2}
.stk-pg button{background:#22282d;border-color:#2c343a;color:#e8ecef}
.stk-pg button:hover:not(:disabled){border-color:#5FB0F2;color:#5FB0F2}
.stk-pg span{color:#9aa6ae}
}
@media(prefers-color-scheme:dark) and (max-width:820px){
.stk-row .stk-t.d,.stk-row .stk-n::before{color:#9aa6ae}
}

/* ---------- results table: every column centred, fixed action column so header and rows line up ---------- */
@media(min-width:821px){
.stk-row{grid-template-columns:minmax(0,2.2fr) minmax(0,1.1fr) repeat(3,minmax(0,.6fr)) minmax(0,.8fr) minmax(0,.9fr) 112px}
.stk-row>*{justify-self:center;text-align:center}
.stk-row .stk-uid,.stk-row .stk-t{text-align:center}
.stk-row>:first-child{justify-self:stretch;text-align:right}
.stk-row .stk-uid .stk-pn,.stk-row .stk-uid .stk-near{text-align:right}
}
