/* © TechNext Pte. Ltd. (technext.asia). All rights reserved. */
/* /odoo/crm-development (22 Oct 2026): glass CRM pipeline in the hero (a quotation going through approval) and the "where it acts"
   table. Builds on home-fx.css and svc-fx.css. Transform/opacity motion, paused off-screen. */

/* ---------------------------------------------------------------- hero panel */
.crd-panel { gap: 14px; }
.crd-board { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.crd-col { display: grid; align-content: start; gap: 6px; min-width: 0; min-height: 150px; padding: 10px 2px 6px; background: transparent; border-top: 2px solid #E3E9F5; }
.crd-col--won { border-top-color: #CDEBD9; }
.crd-col--won .crd-ch span { background: var(--ok-050); border-color: #CDEBD9; color: var(--ok); }
.crd-ch { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin: 0 0 2px; font: 700 12.5px/1.2 var(--font-display); color: var(--ink); }
.crd-ch b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crd-ch span { min-width: 20px; padding: 3px 6px; border-radius: 999px; background: #fff; border: 1px solid #E3E9F5; text-align: center; font: 700 12px/1 var(--font-body); color: var(--body); font-variant-numeric: tabular-nums; }
.crd-cards { display: grid; gap: 6px; align-content: start; }
.crd-card { position: relative; margin: 0; display: grid; gap: 2px; min-width: 0; padding: 9px 9px 10px; border-radius: 10px; background: #fff; border: 1px solid #E3E9F5; box-shadow: 0 6px 14px -12px rgba(31,31,61,.55); }
.crd-card b { font: 700 12.5px/1.25 var(--font-display); color: var(--ink); overflow-wrap: break-word; }
.crd-card small { font: 500 12.5px/1.2 var(--font-body); color: var(--body); font-variant-numeric: tabular-nums; }
.crd-sc { display: block; width: 32px; height: 4px; margin-top: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue) calc(var(--n) * 33.4%), #E3E9F5 0); }
.crd-card.is-won { border-color: #CDEBD9; }
.crd-card.is-won .crd-sc { background: linear-gradient(90deg, var(--ok) calc(var(--n) * 33.4%), #D6EEDF 0); }
.crd-card.is-moving { z-index: 3; border-color: var(--blue-300); box-shadow: 0 14px 26px -14px rgba(49,103,202,.6); }

.crd-quote { display: grid; gap: 12px; padding: 12px 14px 14px; border-radius: 14px; background: #fff; border: 1px solid #EEF1F7; }
.crd-q-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crd-q-top > .oi { width: 22px; height: 22px; flex: none; }
.crd-q-top span { display: grid; gap: 1px; margin-right: auto; min-width: 0; }
.crd-q-top b { font: 700 13.5px/1.25 var(--font-body); color: var(--ink); }
.crd-q-top small { font: 500 12.5px/1.3 var(--font-body); color: var(--body); }
.crd-q-top .sv-st { flex: none; }
.crd-appr { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
.crd-appr li { display: grid; gap: 7px; font: 600 12.5px/1.2 var(--font-body); color: var(--body); transition: color .4s var(--fx-ease); }
.crd-appr li.is-on { color: var(--ink); }
.crd-appr i { position: relative; height: 8px; border-radius: 4px; background: #E3E9F5; overflow: hidden; }
.crd-appr i::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: var(--blue); box-shadow: 0 0 10px rgba(49,103,202,.6); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--fx-ease); }
.crd-appr li.is-on i::after { transform: scaleX(1); }

/* ---------------------------------------------------------------- where it acts (table) */
.crd-map { overflow: hidden; }
.crd-map-h, .crd-map-r { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.7fr) repeat(4, 92px); gap: 18px; align-items: center; padding: 22px 32px; }
.crd-map-h { padding-top: 16px; padding-bottom: 14px; background: rgba(245,248,254,.7); border-bottom: 1px solid var(--fx-line); font: 700 12.5px/1.2 var(--font-body); color: var(--body); }
.crd-hs { text-align: center; }
.crd-map-r + .crd-map-r { border-top: 1px solid rgba(49,103,202,.08); }
.crd-map-r b { display: flex; align-items: center; gap: 12px; font: 800 18px/1.3 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.crd-map-r b .ic, .crd-map-r b .oi { width: 26px; height: 26px; flex: none; }
.crd-map-r b .ic { color: var(--blue); }
.crd-map-r p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.crd-d { justify-self: center; position: relative; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #D5DDEE; background: #fff; }
.crd-d.on { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 4px rgba(49,103,202,.14); transform: scale(.5); opacity: .3;
  transition: transform .6s var(--fx-ease), opacity .6s var(--fx-ease); }
.crd-map.is-in .crd-d.on { transform: none; opacity: 1; }
.crd-map-r:nth-child(3) .crd-d.on { transition-delay: .1s; } .crd-map-r:nth-child(4) .crd-d.on { transition-delay: .2s; } .crd-map-r:nth-child(5) .crd-d.on { transition-delay: .3s; }
.crd-map-r:nth-child(6) .crd-d.on { transition-delay: .4s; } .crd-map-r:nth-child(7) .crd-d.on { transition-delay: .5s; }
.crd-at { display: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .crd-map-h, .crd-map-r { grid-template-columns: minmax(0,.9fr) minmax(0,1.6fr) repeat(4, 72px); gap: 12px; padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 860px) {
  .crd-map-h { display: none; }
  .crd-map-r { grid-template-columns: minmax(0,1fr); gap: 8px; padding: 20px 18px; }
  .crd-map-r .crd-d { display: none; }
  .crd-at { display: inline-block; justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--blue-050); color: var(--blue-700); font: 650 12.5px/1 var(--font-body); }
}
@media (max-width: 600px) {
  .crd-board { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 10px; }
  .crd-col { min-height: 0; }
  .crd-appr li { font-size: 12px; }
  .crd-q-top { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .crd-card, .crd-appr i::after, .crd-appr li { transition: none; }
  .crd-d.on { transform: none; opacity: 1; transition: none; }
}
