/* ===== داده‌نگار نسخه ۵: فونت یکپارچه + صفحه درونی ===== */
@font-face{font-family:'Estedad';src:url('../fonts/Estedad-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Estedad';src:url('../fonts/Estedad-Medium.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Estedad';src:url('../fonts/Estedad-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'Estedad';src:url('../fonts/Estedad-Black.woff2') format('woff2');font-weight:800 900;font-display:swap}
.dtbcc-app{--dtbcc-font:'Estedad','Vazirmatn',Tahoma,'Segoe UI Emoji','Noto Color Emoji',sans-serif;font-family:var(--dtbcc-font)!important;font-size:var(--dtbcc-fs,16px);color:#243247}
.dtbcc-app.dtbcc-font-vazir{--dtbcc-font:'Vazirmatn','Estedad',Tahoma,'Segoe UI Emoji',sans-serif}
.dtbcc-app.dtbcc-font-system{--dtbcc-font:Tahoma,system-ui,'Segoe UI Emoji',sans-serif}
/* فونت در همه‌جا: کارت، باکس ورودی، جدول، دکمه، نتیجه، پنل‌ها */
.dtbcc-app *,.dtbcc-app *::before,.dtbcc-app *::after{font-family:inherit!important}
.dtbcc-app input,.dtbcc-app select,.dtbcc-app textarea,.dtbcc-app button,.dtbcc-app option{font-family:inherit!important;font-size:inherit;color:inherit}
.dtbcc-app input,.dtbcc-app select,.dtbcc-app textarea{font-weight:500}
.dtbcc-app table,.dtbcc-app td,.dtbcc-app th{font-variant-numeric:tabular-nums}
.dtbcc-app h1,.dtbcc-app h2{font-weight:900}
.dtbcc-app h3,.dtbcc-card h3,.dtbcc-tool-head h3{font-weight:800}
.dtbcc-app label,.dtbcc-app .dtbcc-rrow span{font-weight:500}
.dtbcc-app .dtbcc-result td:last-child,.dtbcc-app .dtbcc-rrow b{font-weight:800}
.dtbcc-app p,.dtbcc-app li{line-height:1.9}
/* صفحه درونی ابزار (Overlay) */
body.dtbcc-locked{overflow:hidden!important}
.dtbcc-tool-view{position:fixed!important;inset:0!important;z-index:99990!important;background:rgba(15,32,56,.58)!important;backdrop-filter:blur(7px);overflow-y:auto!important;overflow-x:hidden;padding:26px 14px 40px;animation:dtbccOverlayIn .3s ease both}
@keyframes dtbccOverlayIn{from{opacity:0}to{opacity:1}}
.dtbcc-sheet{position:relative;max-width:1060px;margin:0 auto;background:#f5f7fa;border:1px solid #dce4ec;border-radius:20px;box-shadow:0 30px 80px rgba(2,12,30,.4);padding:22px 22px 28px;animation:dtbccSheetIn .5s cubic-bezier(.2,.9,.25,1.15) both}
@keyframes dtbccSheetIn{0%{opacity:0;transform:translateY(46px) scale(.965)}60%{opacity:1;transform:translateY(-5px) scale(1.005)}100%{opacity:1;transform:none}}
.dtbcc-close{position:sticky;top:0;float:left;z-index:5;width:42px;height:42px;border-radius:50%;border:1px solid #dce4ec;background:#fff;color:#b91c1c;font-size:19px;font-weight:900;cursor:pointer;box-shadow:0 8px 20px rgba(15,35,60,.16);transition:transform .2s,background .2s}
.dtbcc-close:hover{transform:rotate(90deg) scale(1.07);background:#fef2f2}
.dtbcc-sheet .dtbcc-tool-head{animation:dtbccRise .5s .08s both}
.dtbcc-sheet .dtbcc-form{animation:dtbccRise .5s .16s both}
.dtbcc-sheet .dtbcc-actions{animation:dtbccRise .5s .24s both}
.dtbcc-formula{margin:14px 0;padding:0;border:1.5px dashed #168c8c;border-radius:14px;background:#effaf9;overflow:hidden;animation:dtbccRise .5s .2s both}
.dtbcc-formula summary{cursor:pointer;padding:12px 16px;font-weight:800;color:#0f766e;list-style:none}
.dtbcc-formula summary:hover{background:#dcf5f1}
.dtbcc-formula-body{padding:4px 18px 14px;line-height:2.15;font-weight:600;color:#134e4a}
.dtbcc-formula-body p[dir=auto]{direction:rtl;text-align:right;background:#fff;border:1px solid #bfe8e2;border-radius:10px;padding:10px 14px}
.dtbcc-formula-meta{font-weight:500!important;color:#68778a;font-size:13px}
.dtbcc-chain{margin-top:14px;padding:14px 16px;border-radius:14px;background:linear-gradient(135deg,#eef4ff,#e6fffa);border:1.5px solid #2864a6;display:flex;gap:10px;flex-wrap:wrap;align-items:center;animation:dtbccRise .5s both}
.dtbcc-chain select{padding:9px 12px;border-radius:10px;border:1px solid #bcd2ea;background:#fff;font-weight:700}
.dtbcc-result{border-radius:16px}
.dtbcc-card{border-radius:16px}
@media(max-width:700px){.dtbcc-tool-view{padding:10px 6px 24px}.dtbcc-sheet{padding:16px 12px 20px;border-radius:16px}.dtbcc-close{width:38px;height:38px}}
@media print{body.dtbcc-locked{overflow:visible!important}.dtbcc-tool-view{position:static!important;background:#fff!important;padding:0}.dtbcc-sheet{box-shadow:none;animation:none}.dtbcc-close,.dtbcc-back,.dtbcc-chain{display:none!important}}
@media (prefers-reduced-motion:reduce){.dtbcc-sheet,.dtbcc-tool-view{animation:none!important}}
.dtbcc-noanim .dtbcc-sheet,.dtbcc-noanim .dtbcc-tool-view{animation:none!important}
