/* ==========================================================================
   Module: Assets (الأصول الثابتة) — workspace, dialogs, asset form extras.
   Logical properties only (RTL and LTR).
   ========================================================================== */
.ast-intro { color: var(--ink-3); font-size: 12.5px; margin: -4px 0 10px; max-width: 120ch; }
.ast-kpis { margin-top: 0; }
.ast-kpis .stat.ast-warn .label .ico { background: var(--warning-soft); color: var(--warning); }
.ast-kpis .stat .value { font-size: 19px; }

/* life-cycle strip */
.ast-cycle { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ast-cyc { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; color: var(--ink); text-decoration: none !important; min-width: 0; position: relative; }
.ast-cyc:hover { border-color: var(--line-strong); }
.ast-cyc .ast-cn { font-size: 10.5px; font-weight: 700; color: var(--primary-strong); text-transform: uppercase; letter-spacing: .04em; }
html[lang="ar"] .ast-cyc .ast-cn { text-transform: none; letter-spacing: 0; }
.ast-cyc b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ast-cyc b svg { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
.ast-cyc small { color: var(--ink-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .ast-cycle { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ast-cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* walkthrough checklist */
.ast-walk { list-style: none; margin: 0; padding: 4px 0 6px; counter-reset: w; }
.ast-walk li { display: flex; gap: 10px; align-items: center; padding: 7px 14px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.45; }
.ast-walk li:first-child { border-top: 0; }
.ast-walk .ck { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: #fff; }
.ast-walk .ck svg { width: 12px; height: 12px; }
.ast-walk li.done .ck { background: var(--primary); border-color: var(--primary); }
.ast-walk li.done .grow { color: var(--ink-3); }
.ast-walk .btn { flex: none; }

/* wrapping list rows (the base list truncates) */
.list-item .ast-wrap { white-space: normal; overflow: visible; }

/* summary rows in dialogs and on the asset form */
.ast-sum { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.ast-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.ast-sum > div:first-child { border-top: 0; }
.ast-sum > div span { color: var(--ink-2); }
.ast-sum > div.big { background: var(--surface-2); font-weight: 700; }
.ast-sum > div.big span { color: var(--ink); }
.ast-sum > div.good b { color: var(--good); }
.ast-sum > div.bad b { color: var(--critical); }
.card-body > .ast-sum { margin-bottom: 0; }

/* dialogs */
.ast-form .ast-wide { grid-column: 1 / -1; }
.ast-form .hint { font-size: 11.5px; }
.ast-static { min-height: 34px; display: flex; align-items: center; font-weight: 600; }
.ast-prev { margin-top: 12px; }

/* tables inside cards */
.card .ast-tw { border: 0; border-radius: 0; }
.card-body .ast-tw { margin-inline: -14px; width: auto; border-block: 1px solid var(--line); }
.card-body > .ast-tw:last-child { margin-block-end: -14px; border-block-end: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card > .ast-tw { border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.ast-small { font-size: 11.5px; margin-top: 8px; }

/* legacy report totals strip */
.ast-legtot { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.ast-legtot > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; min-width: 0; }
.ast-legtot small { display: block; color: var(--ink-3); font-size: 11px; }
.ast-legtot b { font-size: 13px; }
@media (max-width: 1000px) { .ast-legtot { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ast-legtot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ast-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ast-kpis .stat { padding: 10px 12px; }
  .ast-kpis .stat .value { font-size: 16px; }
  .ast-kpis .stat .meta { font-size: 11px; }
}
