/* ==========================================================
   Jafu Engineers — স্টাইল
   ধারণা: সাইটের মাপযন্ত্র। ঠান্ডা স্টিল-ধূসর কাগজ, গাঢ় ইস্পাত-নীল লেখা,
   আর ফলাফলের জন্য একটি "মিটার রিডআউট" প্যানেল — কালো জমিনে সেফটি-হলুদ সংখ্যা।
   ========================================================== */

:root {
  --je-paper: #EEF1F4;
  --je-surface: #FFFFFF;
  --je-ink: #1C2A35;
  --je-muted: #5B6B78;
  --je-line: #D3DAE1;
  --je-line-soft: #E4E9EE;
  --je-steel: #2C5F8A;
  --je-yellow: #F5B800;
  --je-yellow-ink: #1C2A35;
  --je-readout-bg: #15212B;
  --je-readout-fg: #FFD24A;
  --je-readout-sub: #A9B8C4;
  --je-warn-bg: #FFF4D1;
  --je-warn-ink: #6B4E00;
  --je-danger: #B3261E;
  --je-hit: #FFF6D6;

  --je-g-measure: #2C5F8A;
  --je-g-estimate: #9C4A2F;
  --je-g-plumbing: #17808C;
  --je-g-electrical: #A87C00;
  --je-g-convert: #4A5B68;

  --je-radius: 8px;
  --je-radius-sm: 5px;

  --bs-body-font-family: 'Anek Bangla', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-bg: var(--je-paper);
  --bs-body-color: var(--je-ink);
  --bs-border-color: var(--je-line);
  --bs-link-color-rgb: 44, 95, 138;
  --bs-link-hover-color-rgb: 28, 42, 53;
  --bs-secondary-color: var(--je-muted);
  --bs-tertiary-bg: var(--je-line-soft);
}

:root[data-bs-theme="dark"] {
  --je-paper: #0F171E;
  --je-surface: #16212B;
  --je-ink: #E3E9EE;
  --je-muted: #93A4B2;
  --je-line: #2A3947;
  --je-line-soft: #1E2B36;
  --je-steel: #7FB2E0;
  --je-readout-bg: #0A1016;
  --je-warn-bg: #3A2F0D;
  --je-warn-ink: #F7DB8A;
  --je-hit: #2E2A14;
  --je-g-measure: #6FA5D6;
  --je-g-estimate: #D98B6C;
  --je-g-plumbing: #4FC0CC;
  --je-g-electrical: #E2B640;
  --je-g-convert: #93A4B2;

  --bs-body-bg: var(--je-paper);
  --bs-body-color: var(--je-ink);
  --bs-border-color: var(--je-line);
  --bs-link-color-rgb: 127, 178, 224;
  --bs-link-hover-color-rgb: 227, 233, 238;
  --bs-secondary-color: var(--je-muted);
  --bs-tertiary-bg: var(--je-line-soft);
}

body {
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--je-paper);
  color: var(--je-ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.005em; }
a { text-underline-offset: 3px; }
.je-muted { color: var(--je-muted); }
.je-optional { color: var(--je-muted); font-weight: 400; font-size: .85em; }
:focus-visible { outline: 3px solid var(--je-yellow); outline-offset: 2px; }

.je-skip { position: absolute; left: 12px; top: 8px; z-index: 2000; background: var(--je-yellow); color: var(--je-yellow-ink); padding: 6px 12px; border-radius: var(--je-radius-sm); }

/* ---------- হেডার ---------- */
.je-header {
  background: var(--je-ink);
  color: #fff;
  border-bottom: 4px solid var(--je-yellow);
}
[data-bs-theme="dark"] .je-header { background: #0A1016; }
.je-header .navbar { padding: .55rem 0; }
.je-brand { display: flex; align-items: center; gap: .6rem; color: #fff !important; font-size: 1.25rem; font-weight: 500; font-variation-settings: 'wdth' 90; }
.je-brand b { font-weight: 800; color: var(--je-yellow); }
.je-header .nav-link { color: #D7E0E7; font-weight: 500; padding: .5rem .8rem !important; border-radius: var(--je-radius-sm); }
.je-header .nav-link i { opacity: .7; margin-right: .2rem; }
.je-header .nav-link:hover, .je-header .nav-link:focus { color: #fff; background: rgba(255,255,255,.07); }
.je-header .nav-link.active { color: var(--je-yellow); }
.je-header .navbar-toggler { color: #fff; border-color: rgba(255,255,255,.25); }
.je-theme-btn { color: #D7E0E7; border: 0; }
.je-theme-btn:hover { color: var(--je-yellow); }

.je-mega { padding: 1rem; border-radius: var(--je-radius); border-color: var(--je-line); background: var(--je-surface); }
@media (min-width: 992px) {
  .je-mega { display: none; width: min(860px, 92vw); grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .je-mega.show { display: grid; }
}
.je-mega-col { min-width: 0; }
.je-mega-title { font-weight: 700; font-size: .92rem; padding: .25rem .5rem .4rem; color: var(--g, var(--je-ink)); border-bottom: 2px solid var(--g, var(--je-line)); margin-bottom: .3rem; }
.je-mega .dropdown-item { font-size: .95rem; padding: .3rem .5rem; border-radius: var(--je-radius-sm); white-space: normal; color: var(--je-ink); }
.je-mega .dropdown-item:hover { background: var(--je-line-soft); }

/* গ্রুপের রং */
.je-g-measure { --g: var(--je-g-measure); }
.je-g-estimate { --g: var(--je-g-estimate); }
.je-g-plumbing { --g: var(--je-g-plumbing); }
.je-g-electrical { --g: var(--je-g-electrical); }

/* ---------- হোম: হিরো ---------- */
.je-hero {
  background:
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(28,42,53,.06) 23px 24px),
    var(--je-surface);
  border-bottom: 1px solid var(--je-line);
  padding: 2.5rem 0 2.25rem;
}
[data-bs-theme="dark"] .je-hero {
  background: repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.035) 23px 24px), var(--je-surface);
}
.je-hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: .95;
  font-weight: 800;
  font-variation-settings: 'wdth' 78;
  margin: 0 0 .9rem;
  letter-spacing: -0.02em;
}
.je-hero-lead { font-size: 1.15rem; color: var(--je-muted); max-width: 34em; margin-bottom: 1.4rem; }
.je-search {
  display: flex; align-items: center; gap: .7rem;
  background: var(--je-paper); border: 2px solid var(--je-ink);
  border-radius: var(--je-radius); padding: .25rem .9rem; max-width: 34rem;
}
.je-search i { color: var(--je-muted); }
.je-search input { border: 0; background: transparent; flex: 1; font-size: 1.1rem; padding: .55rem 0; color: var(--je-ink); outline: none; min-width: 0; }
.je-search:focus-within { border-color: var(--je-yellow); box-shadow: 0 0 0 3px rgba(245,184,0,.25); }

.je-quick { background: var(--je-readout-bg); color: #fff; border-radius: var(--je-radius); padding: 1.1rem 1.2rem 1rem; height: 100%; display: flex; flex-direction: column; gap: .8rem; }
.je-quick-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--je-readout-sub); }
.je-quick-head a { color: var(--je-readout-fg); font-size: .92rem; }
.je-quick-row { display: grid; grid-template-columns: 1fr 1fr auto 1fr; gap: .5rem; }
.je-quick .form-control, .je-quick .form-select { background-color: #22303C; border-color: #34465A; color: #fff; }
.je-quick .form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23A9B8C4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.je-quick-out { display: flex; align-items: baseline; gap: .6rem; min-height: 3.4rem; border-top: 1px dashed #34465A; padding-top: .6rem; flex-wrap: wrap; }
.je-quick-num { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; color: var(--je-readout-fg); font-variant-numeric: tabular-nums; font-variation-settings: 'wdth' 85; line-height: 1.1; word-break: break-all; }
.je-quick-unit { color: var(--je-readout-sub); font-size: 1.05rem; }
.je-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.je-chip { border: 1px solid #34465A; background: transparent; color: #D7E0E7; border-radius: 999px; padding: .2rem .7rem; font-size: .88rem; }
.je-chip:hover, .je-chip.active { background: var(--je-yellow); border-color: var(--je-yellow); color: var(--je-yellow-ink); }
.je-swap { border: 1px solid var(--je-line); color: inherit; background: transparent; }
.je-quick .je-swap { border-color: #34465A; color: var(--je-readout-fg); }
@media (max-width: 575.98px) {
  .je-quick-row { grid-template-columns: 1fr auto 1fr; }
  .je-quick-value { grid-column: 1 / -1; }
}

/* ---------- হোম: সেকশন ---------- */
.je-home { padding-top: 2rem; padding-bottom: 3rem; }
.je-section { margin-bottom: 2.25rem; }
.je-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: .9rem; border-bottom: 2px solid var(--g, var(--je-g-convert)); padding-bottom: .4rem; }
.je-section-head h2 { font-size: 1.35rem; margin: 0; color: var(--g, var(--je-ink)); }
.je-section-head h2 i { font-size: 1rem; margin-right: .3rem; }
.je-section-head p { margin: 0; color: var(--je-muted); font-size: .98rem; }

.je-unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.je-unit-link { display: flex; align-items: center; gap: .55rem; background: var(--je-surface); border: 1px solid var(--je-line); border-radius: var(--je-radius-sm); padding: .6rem .8rem; color: var(--je-ink); text-decoration: none; font-weight: 500; }
.je-unit-link i { color: var(--je-muted); width: 1.1rem; text-align: center; }
.je-unit-link:hover { border-color: var(--je-ink); }

.je-tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: .6rem; }
.je-tool {
  display: flex; gap: .85rem; align-items: flex-start;
  background: var(--je-surface); border: 1px solid var(--je-line); border-left: 4px solid var(--g, var(--je-steel));
  border-radius: var(--je-radius-sm); padding: .8rem 1rem; color: var(--je-ink); text-decoration: none;
}
.je-tool:hover { border-color: var(--g, var(--je-steel)); }
.je-tool-icon { flex: 0 0 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: var(--je-radius-sm); background: var(--je-line-soft); color: var(--g, var(--je-steel)); }
.je-tool-text { display: flex; flex-direction: column; min-width: 0; }
.je-tool-title { font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.je-tool-sub { color: var(--je-muted); font-size: .92rem; line-height: 1.45; }

.je-boq-band { display: flex; align-items: center; gap: 1rem; background: var(--je-surface); border: 2px dashed var(--je-line); border-radius: var(--je-radius); padding: 1rem 1.2rem; color: var(--je-ink); text-decoration: none; }
.je-boq-band:hover { border-color: var(--je-ink); border-style: solid; }
.je-empty-search { text-align: center; color: var(--je-muted); padding: 2rem 0; }

/* ---------- সাধারণ পেজ ---------- */
.je-main { min-height: 60vh; }
.je-page { padding-top: 1.5rem; padding-bottom: 3rem; }
.je-page-head { margin-bottom: 1.25rem; }
.je-page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: .2rem 0 .3rem; display: flex; align-items: center; gap: .6rem; font-variation-settings: 'wdth' 92; }
.je-h1-icon { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: var(--je-radius-sm); background: var(--g, var(--je-steel)); color: #fff; font-size: 1.05rem; flex: 0 0 auto; }
[data-bs-theme="dark"] .je-h1-icon { color: #0F171E; }
.je-lead { color: var(--je-muted); font-size: 1.05rem; margin: 0; max-width: 46em; }
.je-crumb { font-size: .92rem; color: var(--je-muted); }
.je-crumb a { color: var(--je-muted); }
.je-crumb i { font-size: .7rem; margin: 0 .3rem; }
.je-loaded { margin-top: .6rem; display: inline-block; background: var(--je-hit); border: 1px solid var(--je-line); border-radius: var(--je-radius-sm); padding: .3rem .7rem; font-size: .95rem; }

.je-panel { background: var(--je-surface); border: 1px solid var(--je-line); border-radius: var(--je-radius); padding: 1.25rem; }
.je-panel-title { font-size: 1.08rem; font-weight: 700; margin: 0 0 .8rem; }
.je-panel-title i { color: var(--je-muted); margin-right: .25rem; }
.je-detail-block { margin-bottom: 1.5rem; }
.je-note { color: var(--je-muted); font-size: .95rem; margin: 0; }
.je-empty { text-align: center; padding: 2.5rem 1.5rem; }
.je-empty > i { font-size: 2.2rem; color: var(--je-muted); margin-bottom: .8rem; display: block; }

/* ---------- ফর্ম ---------- */
.form-control, .form-select { border-color: var(--je-line); background-color: var(--je-surface); color: var(--je-ink); font-size: 1.02rem; }
.form-control:focus, .form-select:focus { border-color: var(--je-ink); box-shadow: 0 0 0 3px rgba(245,184,0,.3); }
[data-bs-theme="dark"] .form-control:focus, [data-bs-theme="dark"] .form-select:focus { border-color: var(--je-yellow); }
.form-label { font-weight: 600; margin-bottom: .3rem; }
.form-text { color: var(--je-muted); font-size: .88rem; line-height: 1.45; }
.input-group-text { background: var(--je-line-soft); border-color: var(--je-line); color: var(--je-muted); font-size: .95rem; }
.je-unit-select { max-width: 46%; flex: 0 0 auto !important; width: auto !important; background-color: var(--je-line-soft); font-size: .95rem; }
.je-fieldset-title { font-size: .95rem; font-weight: 700; color: var(--g, var(--je-muted)); margin: .6rem 0 -.3rem; padding-top: .5rem; border-top: 1px solid var(--je-line-soft); }
.je-form > .row > .je-field:first-child .je-fieldset-title { border-top: 0; padding-top: 0; margin-top: 0; }
.je-adv { display: none; }
.je-form.show-adv .je-adv { display: block; }
.je-form.show-adv .je-adv[hidden] { display: none; }
.je-field[hidden] { display: none !important; }
.je-form-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--je-line-soft); }

.je-btn-primary { background: var(--je-yellow); color: var(--je-yellow-ink); font-weight: 700; border: 1px solid var(--je-yellow); }
.je-btn-primary:hover, .je-btn-primary:focus { background: #E0A800; border-color: #E0A800; color: var(--je-yellow-ink); }
.je-btn-ghost { border: 1px solid var(--je-line); background: transparent; color: var(--je-ink); }
.je-btn-ghost:hover { border-color: var(--je-ink); background: var(--je-line-soft); color: var(--je-ink); }
.je-btn-danger { border: 1px solid var(--je-line); background: transparent; color: var(--je-danger); }
.je-btn-danger:hover { background: var(--je-danger); color: #fff; border-color: var(--je-danger); }
[data-bs-theme="dark"] .je-btn-danger { color: #FF8A80; }

/* সারি ইনপুট (লোড লিস্ট, রড শিডিউল) */
.je-rows-table { --bs-table-bg: transparent; }
.je-rows-table th { font-size: .85rem; font-weight: 600; color: var(--je-muted); border-bottom-width: 1px; white-space: nowrap; }
.je-rows-table td { padding: .25rem .2rem; vertical-align: middle; }
.je-rows-table td .form-control, .je-rows-table td .form-select { min-width: 4.5rem; }
.je-col-wide { min-width: 11rem; }
.je-col-x { width: 2.2rem; }
.je-row-del { color: var(--je-muted); border: 0; }
.je-row-del:hover { color: var(--je-danger); }
.table-responsive { position: relative; }
@media (max-width: 575.98px) {
  .je-rows-table, .je-rows-table tbody { display: block; width: 100%; }
  .je-rows-table thead { display: none; }
  .je-rows-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .35rem .4rem; padding: .55rem 0; border-bottom: 1px solid var(--je-line); }
  .je-rows-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .je-rows-table td .form-control, .je-rows-table td .form-select { min-width: 0; width: 100%; }
  .je-rows-table td.je-td-wide { grid-column: 1 / span 3; grid-row: 1; }
  .je-rows-table td.je-td-del { grid-column: 4; grid-row: 1; align-self: end; }
  .je-rows-table td[data-label]:not(.je-td-wide)::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--je-muted); line-height: 1.3; margin-bottom: .1rem; }
}
.je-rows.is-invalid { outline: 2px solid var(--je-danger); outline-offset: 4px; border-radius: 4px; }

/* ---------- ফলাফল রিডআউট ---------- */
.je-sticky { position: sticky; top: 1rem; }
.je-readout {
  background: var(--je-readout-bg); color: #fff;
  border-radius: var(--je-radius); padding: .4rem 1.2rem;
  position: relative;
}
.je-big { padding: .8rem 0; border-bottom: 1px dashed #34465A; }
.je-big:last-child { border-bottom: 0; }
.je-big-label { color: var(--je-readout-sub); font-size: .95rem; font-weight: 500; }
.je-big-val { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .55rem; }
.je-num { color: var(--je-readout-fg); font-weight: 700; font-size: clamp(2.1rem, 4.5vw, 2.9rem); line-height: 1.15; font-variant-numeric: tabular-nums; font-variation-settings: 'wdth' 82; word-break: break-word; }
.je-unit { color: #E3E9EE; font-size: 1.1rem; font-weight: 500; }
.je-big-sub { color: var(--je-readout-sub); font-size: .92rem; margin-top: .1rem; }
.je-readout-error { padding: 1rem 1.2rem; background: #3A1512; }
.je-readout-error .je-big-label { color: #FFB4A9; font-weight: 700; margin-bottom: .4rem; }
.je-readout-error ul { padding-left: 1.2rem; color: #FFE3DE; }
.je-readout.is-loading { opacity: .65; transition: opacity .15s; }
.je-copy { position: absolute; right: .6rem; top: .6rem; color: var(--je-readout-sub); border: 1px solid #34465A; font-size: .85rem; padding: .15rem .5rem; }
.je-copy:hover { color: var(--je-readout-fg); border-color: var(--je-readout-fg); }

.je-list { margin: .9rem 0 0; background: var(--je-surface); border: 1px solid var(--je-line); border-radius: var(--je-radius); padding: .4rem 1rem; }
.je-list-group { font-size: .82rem; font-weight: 700; color: var(--g, var(--je-muted)); padding: .65rem 0 .15rem; }
.je-list-row { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--je-line-soft); }
.je-list-row:last-child { border-bottom: 0; }
.je-list-row dt { font-weight: 500; color: var(--je-muted); }
.je-list-row dd { margin: 0; text-align: right; }
.je-list-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.je-list-val small { font-weight: 500; color: var(--je-muted); }
.je-list-sub { display: block; font-size: .85rem; color: var(--je-muted); }
.je-warn { display: flex; gap: .6rem; background: var(--je-warn-bg); color: var(--je-warn-ink); border-radius: var(--je-radius-sm); padding: .7rem .9rem; margin-top: .8rem; font-size: .95rem; }
.je-warn i { margin-top: .25rem; }
.je-result-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.je-result-actions .btn { flex: 1 1 auto; }

.je-data-table { --bs-table-bg: transparent; font-variant-numeric: tabular-nums; }
.je-data-table th { font-size: .85rem; color: var(--je-muted); font-weight: 600; white-space: nowrap; }
.je-data-table td { white-space: nowrap; }
.je-data-table tr.je-row-hit td { background: var(--je-hit); font-weight: 700; }
.je-steps { margin: 0; padding-left: 1.3rem; font-variant-numeric: tabular-nums; }
.je-steps li { padding: .25rem 0; border-bottom: 1px dotted var(--je-line); }
.je-steps li:last-child { border-bottom: 0; }
.je-notes { margin: 0; padding-left: 1.1rem; color: var(--je-ink); }
.je-notes li { padding: .2rem 0; }
.je-about { max-width: 52em; margin-top: .5rem; color: var(--je-muted); }
.je-about h2 { font-size: 1rem; color: var(--je-ink); }
.je-related { margin-top: 2rem; }
.je-related h2 { font-size: 1rem; margin-bottom: .6rem; }
.je-related-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.je-related-list a { border: 1px solid var(--je-line); border-radius: 999px; padding: .3rem .85rem; text-decoration: none; color: var(--je-ink); background: var(--je-surface); font-size: .95rem; }
.je-related-list a i { color: var(--g, var(--je-muted)); margin-right: .2rem; }
.je-related-list a:hover { border-color: var(--je-ink); }

/* মোবাইলে নিচের বার */
.je-mobilebar { display: none; }
@media (max-width: 991.98px) {
  .je-sticky { position: static; }
  .je-mobilebar {
    display: flex; align-items: center; gap: .7rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    background: var(--je-readout-bg); color: #fff; text-decoration: none;
    padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom));
    border-top: 3px solid var(--je-yellow);
    transform: translateY(0); transition: transform .2s;
  }
  .je-mobilebar.is-hidden, .je-mobilebar.is-empty { transform: translateY(110%); }
  .je-mb-label { color: var(--je-readout-sub); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .je-mb-val { color: var(--je-readout-fg); font-weight: 700; font-size: 1.25rem; margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .je-mobilebar i { color: var(--je-readout-sub); }
  body:has(.je-mobilebar) .je-footer { padding-bottom: 4.5rem; }
}

/* ---------- কনভার্টার ---------- */
.je-cat-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .6rem; margin-bottom: 1.2rem; scrollbar-width: thin; }
.je-cat-tabs a { flex: 0 0 auto; border: 1px solid var(--je-line); background: var(--je-surface); border-radius: 999px; padding: .35rem .9rem; color: var(--je-ink); text-decoration: none; font-weight: 500; }
.je-cat-tabs a i { color: var(--je-muted); margin-right: .2rem; }
.je-cat-tabs a.active { background: var(--je-ink); color: #fff; border-color: var(--je-ink); }
.je-cat-tabs a.active i { color: var(--je-yellow); }
[data-bs-theme="dark"] .je-cat-tabs a.active { background: var(--je-yellow); color: #1C2A35; border-color: var(--je-yellow); }
[data-bs-theme="dark"] .je-cat-tabs a.active i { color: #1C2A35; }
.je-cv-value { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.je-all-units { --bs-table-bg: transparent; font-variant-numeric: tabular-nums; }
.je-all-units tbody tr { cursor: pointer; }
.je-all-units tbody tr:hover td { background: var(--je-line-soft); }
.je-all-units tr.is-from td { background: var(--je-hit); }
.je-all-units .je-u-name { font-weight: 600; }
.je-all-units .je-u-sym { color: var(--je-muted); font-size: .88rem; margin-left: .35rem; }
.je-all-units td.text-end { font-weight: 700; word-break: break-all; }

/* ---------- সংরক্ষিত ও BOQ তালিকা ---------- */
.je-saved-list { display: flex; flex-direction: column; gap: .5rem; }
.je-saved-item { display: flex; align-items: flex-start; gap: .9rem; background: var(--je-surface); border: 1px solid var(--je-line); border-left: 4px solid var(--g, var(--je-steel)); border-radius: var(--je-radius-sm); padding: .8rem 1rem; }
.je-saved-text { flex: 1; min-width: 0; }
.je-saved-title { font-weight: 700; font-size: 1.05rem; color: var(--je-ink); text-decoration: none; }
.je-saved-title:hover { text-decoration: underline; }
.je-saved-summary { font-size: .93rem; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.je-money { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.je-boq-name { font-weight: 700; }
.je-boq-panel { padding: .5rem; }
.je-boq-table { --bs-table-bg: transparent; font-variant-numeric: tabular-nums; min-width: 760px; }
.je-boq-table th { font-size: .85rem; color: var(--je-muted); font-weight: 600; white-space: nowrap; }
.je-boq-table td { padding: .3rem .25rem; }
.je-boq-table .form-control { font-size: .98rem; padding: .35rem .5rem; }
.je-c-sl { width: 3rem; text-align: center; color: var(--je-muted); }
.je-c-unit { width: 7rem; }
.je-c-num { width: 8.5rem; }
.je-c-act { width: 6.5rem; }
.je-amount { text-align: right; font-weight: 700; white-space: nowrap; }
.je-boq-section td { background: var(--je-line-soft); }
.je-sec-input { font-weight: 700; background: transparent !important; border-style: dashed; }
.je-row-actions { display: flex; gap: 0; justify-content: flex-end; }
.je-row-actions .btn { color: var(--je-muted); border: 0; padding: .2rem .4rem; }
.je-row-actions .btn:hover { color: var(--je-ink); }
.je-row-actions .je-row-del:hover { color: var(--je-danger); }
.je-boq-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .7rem .5rem .3rem; border-top: 1px solid var(--je-line-soft); }
.je-boq-totals { font-variant-numeric: tabular-nums; }
.je-tot-row { display: flex; align-items: center; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid var(--je-line-soft); }
.je-tot-row > span:first-child, .je-tot-row > label { flex: 1; font-weight: 500; }
.je-tot-row strong { min-width: 9rem; text-align: right; }
.je-pct { width: 6.5rem; flex: 0 0 auto; }
.je-tot-grand { border-bottom: 0; font-size: 1.25rem; }
.je-tot-grand strong { color: var(--je-ink); background: var(--je-yellow); color: var(--je-yellow-ink); padding: .1rem .6rem; border-radius: var(--je-radius-sm); }
.je-words { font-size: .95rem; color: var(--je-muted); margin-top: .4rem; }
.je-boq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.25rem; }
.je-dirty { color: var(--je-g-electrical); font-size: .92rem; }
.je-dirty i { font-size: .55rem; vertical-align: middle; }
.je-boq-danger { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--je-line); }

/* অ্যাডমিন */
.je-admin-stats { display: flex; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.je-admin-stats div { background: var(--je-surface); border: 1px solid var(--je-line); border-radius: var(--je-radius-sm); padding: .6rem 1rem; display: flex; align-items: baseline; gap: .5rem; }
.je-admin-stats strong { font-size: 1.4rem; }
.je-admin-table { --bs-table-bg: transparent; min-width: 760px; }
.je-admin-table th { font-size: .85rem; color: var(--je-muted); white-space: nowrap; }
.je-admin-table .form-control, .je-admin-table .form-select { min-width: 5.5rem; }
.je-admin-new td { background: var(--je-hit); }

/* ---------- ফুটার ---------- */
.je-footer { border-top: 1px solid var(--je-line); padding: 1.4rem 0; font-size: .95rem; background: var(--je-surface); }
.je-footer a { color: var(--je-muted); }

.je-toasts .toast { background: var(--je-ink); color: #fff; border: 0; }
[data-bs-theme="dark"] .je-toasts .toast { background: var(--je-yellow); color: #1C2A35; }

/* ---------- মোশন কমানো ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- প্রিন্ট (ক্যালকুলেটরের রিপোর্ট) ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; color: #000; font-size: 11pt; }
  .je-header, .je-footer, .je-form-actions, .je-result-actions, .je-mobilebar, .je-related, .je-crumb, .je-toasts, .je-row-del, [data-je-add-row], .je-copy { display: none !important; }
  .je-page { padding: 0; }
  .je-panel, .je-list { border: 1px solid #999; break-inside: avoid; }
  .je-readout { background: #fff !important; color: #000; border: 2px solid #000; }
  .je-num, .je-unit, .je-big-label, .je-big-sub { color: #000 !important; }
  .je-big { border-bottom-color: #999; }
  .col-lg-7, .col-lg-5 { width: 100% !important; }
  .je-sticky { position: static; }
  .form-control, .form-select, .input-group-text { border: 0 !important; background: none !important; padding: 0 .2rem; box-shadow: none; -webkit-appearance: none; appearance: none; }
  .form-text { display: none; }
  .je-adv { display: block !important; }
  .je-field[hidden] { display: none !important; }
  .je-page-head::before { content: "Jafu Engineers — হিসাবের রিপোর্ট"; display: block; font-weight: 700; border-bottom: 2px solid #000; margin-bottom: 6px; }
}

@media (min-width: 992px) {
  .je-cat-tabs { flex-wrap: wrap; overflow: visible; }
}
