/* ==========================================================================
   GUEST - module pages (PMS, CRS, CRM): intro with a live product visual, feature grid,
   integrations logo wall and related modules. Replaces the old screenshot carousels.
   ========================================================================== */

.page-hero .md-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.page-hero .md-actions .btn-ghost { border-color: rgba(255, 255, 255, .55); }

/* intro: text + product visual */
.md-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: center; }
@media (max-width: 991.98px) { .md-intro { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.md-intro h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 1rem; }
.md-intro h2 strong { font-weight: inherit; color: var(--g-blue-dk); }
.md-intro .lead { margin-bottom: 1.25rem; }
.md-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.md-points li { display: flex; gap: .8rem; }
.md-points li > i { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; background: rgba(25, 136, 195, .1); color: var(--g-blue-dk); display: flex; align-items: center; justify-content: center; font-size: .9rem; margin-top: .1rem; }
.md-points b { display: block; color: var(--g-navy); }
.md-points span { font-size: .95rem; }
.md-caption { margin-top: .75rem; font-size: .82rem; color: var(--g-muted); }

/* feature grid */
.md-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 991.98px) { .md-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .md-feats { grid-template-columns: 1fr; } }
.md-feat { background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-radius); padding: 1.5rem 1.45rem; scroll-margin-top: 100px; }
.md-feat > i { width: 44px; height: 44px; border-radius: 10px; background: var(--g-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; margin-bottom: 1rem; }
.md-feat h3 { font-size: 1.12rem; margin: 0 0 .45rem; }
.md-feat p { font-size: .95rem; margin: 0 0 .7rem; }
.md-feat ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.md-feat ul li { font-size: .78rem; font-weight: 600; color: #2f3c4f; background: var(--g-bg); border-radius: 5px; padding: .15rem .5rem; }
.md-feat:target { border-color: var(--g-blue); box-shadow: 0 0 0 4px rgba(25, 136, 195, .15); }

/* integrations */
.md-int { display: grid; gap: 2rem; }
.md-int-group h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--g-muted); margin: 0 0 .9rem; }
.md-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.md-logos .logo-tile { height: 120px; padding: .2rem; }
.md-logos .logo-tile img { height: 100%; max-height: 100%; width: 100%; object-fit: contain; }
.md-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: .75rem 0 0; }
.md-chips li { border: 1px solid var(--g-line); background: #fff; border-radius: 8px; padding: .4rem .85rem; font-weight: 700; font-size: .88rem; color: var(--g-navy); }

/* related modules */
.md-rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 991.98px) { .md-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .md-rel { grid-template-columns: 1fr; } }
.md-rel a { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-radius); padding: 1.15rem 1.2rem; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.md-rel a:hover { color: inherit; border-color: transparent; box-shadow: var(--g-shadow-lg); transform: translateY(-3px); }
.md-rel a > i { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: rgba(25, 136, 195, .1); color: var(--g-blue-dk); display: flex; align-items: center; justify-content: center; }
.md-rel b { display: block; color: var(--g-navy); }
.md-rel span { font-size: .88rem; line-height: 1.45; }
@media (hover: none) { .md-rel a:hover { transform: none; box-shadow: none; border-color: var(--g-line); } }

/* ---------- product visuals (HTML drawings with sample data) ---------- */
.mv { background: #fff; border: 1px solid #d6dde6; border-radius: 12px; box-shadow: var(--g-shadow-lg); overflow: hidden; font-size: 11.5px; line-height: 1.3; color: #24324a; }
.mv-top { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #001b37; color: #fff; font-weight: 700; font-size: 12.5px; }
.mv-top span { margin-left: auto; font-weight: 500; color: rgba(255, 255, 255, .7); font-size: 11px; }
.mv-body { padding: 12px; overflow-x: auto; }
.mv table { width: 100%; border-collapse: collapse; min-width: 520px; }
.mv th, .mv td { border-bottom: 1px solid #eef1f5; padding: 6px 7px; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv th { font-size: 10px; color: #7b8594; font-weight: 600; background: #f7f9fb; }
.mv th:first-child, .mv td:first-child { text-align: left; }
.mv td:first-child b { display: block; color: #14233a; }
.mv td:first-child small { color: #7b8594; }
.mv .av { font-weight: 700; color: #1f8a5b; }
.mv .av.low { color: #c98a12; }
.mv .av.out { color: #c53030; }
.mv .rt { display: block; font-size: 10px; color: #4a5565; }
.mv .stop { display: inline-block; font-size: 9px; font-weight: 700; color: #fff; background: #c53030; border-radius: 3px; padding: 1px 5px; }
.mv-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: 0 12px 12px; font-size: 10.5px; color: #4a5565; }
.mv-legend i { margin-right: 4px; }
.mv-chan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 12px 12px; }
.mv-chan div { border: 1px solid #e6eaf0; border-radius: 7px; padding: 7px 9px; }
.mv-chan small { display: block; color: #7b8594; font-size: 9.5px; }
.mv-chan b { color: #14233a; }
.mv-chan .ok { color: #1f8a5b; font-size: 9.5px; font-weight: 700; }
/* CRM visual */
.mv-crm { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; }
.mv-seg { border: 1px solid #e6eaf0; border-radius: 8px; padding: 9px 10px; }
.mv-seg h6, .mv-mail h6 { margin: 0 0 7px; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: #7b8594; }
.mv-seg-row { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid #eef1f5; }
.mv-seg-row:first-of-type { border-top: 0; }
.mv-seg-row b { color: #14233a; font-variant-numeric: tabular-nums; }
.mv-mail { border: 1px solid #e6eaf0; border-radius: 8px; overflow: hidden; }
.mv-mail h6 { padding: 9px 10px 0; }
.mv-mail-img { height: 70px; background: linear-gradient(135deg, #4db3e6, #12709f); position: relative; }
.mv-mail-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: #f2d8a7; }
.mv-mail-txt { padding: 9px 10px; }
.mv-mail-txt b { display: block; color: #14233a; font-size: 12px; margin-bottom: 4px; }
.mv-mail-txt i { display: block; height: 6px; border-radius: 3px; background: #eef1f5; margin-bottom: 4px; }
.mv-mail-txt i:nth-child(3) { width: 70%; }
.mv-mail-btn { display: inline-block; margin-top: 4px; background: var(--g-blue-dk); color: #fff; border-radius: 4px; padding: 3px 9px; font-weight: 700; font-size: 10px; }
.mv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mv-stats div { border: 1px solid #e6eaf0; border-radius: 8px; padding: 7px 9px; }
.mv-stats small { display: block; font-size: 9.5px; color: #7b8594; text-transform: uppercase; letter-spacing: .05em; }
.mv-stats b { font-size: 17px; color: #14233a; font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) { .mv-crm { grid-template-columns: 1fr; } .mv-chan { grid-template-columns: repeat(2, 1fr); } }

/* ---------- feature sections: text + product screen, alternating sides ---------- */
.pf-sec { scroll-margin-top: 80px; }
.pf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: center; }
.pf-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pf-rev .pf-txt { order: 2; }
@media (max-width: 991.98px) { .pf, .pf-rev { grid-template-columns: minmax(0, 1fr); gap: 2rem; } .pf-rev .pf-txt { order: 0; } }
.pf-dept { display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 700; color: var(--g-blue-dk); background: rgba(25, 136, 195, .1); border-radius: 999px; padding: .3rem .85rem .3rem .3rem; margin-bottom: 1rem; }
.pf-dept i { width: 26px; height: 26px; border-radius: 50%; background: var(--g-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; }
.pf h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 0 0 1rem; }
.pf h2 strong { font-weight: inherit; color: var(--g-blue-dk); }
.pf .lead { margin-bottom: 1.3rem; }
.pf-list { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: .65rem; }
.pf-list li { display: flex; gap: .7rem; color: var(--g-ink); }
.pf-list li > i { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: #e3f4ec; color: #1a6b49; font-size: .65rem; display: flex; align-items: center; justify-content: center; margin-top: .15rem; }
.pf-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.pf-tags li { font-size: .78rem; font-weight: 600; color: #2f3c4f; background: var(--g-bg); border-radius: 5px; padding: .15rem .55rem; }
.section-alt .pf-tags li { background: #fff; }
.pf-fig { margin: 0; }

/* "also included" cards, each with a small product screen */
.md-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 767.98px) { .md-shots { grid-template-columns: minmax(0, 1fr); } }
.md-shot { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-radius); overflow: hidden; scroll-margin-top: 100px; }
.md-shot .pv { border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--g-line); }
.md-shot-body { padding: 1.3rem 1.45rem 1.4rem; }
.md-shot h3 { font-size: 1.12rem; margin: 0 0 .45rem; display: flex; align-items: center; gap: .6rem; }
.md-shot h3 i { width: 32px; height: 32px; border-radius: 8px; background: var(--g-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.md-shot p { font-size: .95rem; margin: 0 0 .7rem; }
.md-shot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.md-shot ul li { font-size: .78rem; font-weight: 600; color: #2f3c4f; background: var(--g-bg); border-radius: 5px; padding: .15rem .5rem; }
.md-shot:target { border-color: var(--g-blue); box-shadow: 0 0 0 4px rgba(25, 136, 195, .15); }
.md-more { text-align: center; margin: 2rem 0 0; }

/* ---------- product screens: faithful, simplified redraws of GUEST screens with sample data.
   A fixed-width canvas (--cw, default 640px) is scaled to its column by modules.js. ---------- */
.pv { position: relative; width: 100%; height: calc(var(--hx, var(--h, 340)) * var(--k, 1) * 1px + 34px); background: #f5f5f5; border: 1px solid #d6dde6; border-radius: 12px; box-shadow: var(--g-shadow-lg); overflow: hidden; }
.pv-bar { height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #001b37; color: #fff; font-size: 12px; white-space: nowrap; overflow: hidden; }
.pv-bar .dots { display: flex; gap: 5px; }
.pv-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.pv-bar b { font-weight: 800; letter-spacing: .02em; }
.pv-bar span { color: rgba(255, 255, 255, .75); }
.pv-canvas { position: absolute; left: 0; top: 34px; width: calc(var(--cwx, var(--cw, 640)) * 1px); height: calc(var(--hx, var(--h, 340)) * 1px); padding: 10px 12px; transform: scale(var(--k, 1)); transform-origin: 0 0; font-size: 10.5px; line-height: 1.25; color: #212529; text-align: left; }
.pv-title { font-weight: 700; font-size: 12px; color: #14233a; margin-bottom: 8px; }

/* app building blocks: toolbar buttons, filter fields, cards, tables, badges */
.pv-tb { display: flex; gap: 5px; margin-bottom: 8px; }
.pv-b { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #ced4da; border-radius: 4px; padding: 3px 8px; font-weight: 500; white-space: nowrap; color: #212529; }
.pv-b i { font-size: 9px; }
.pv-b.blue { border-color: #0d6efd; color: #0d6efd; }
.pv-b.red { border-color: #dc3545; color: #dc3545; }
.pv-b.green { border-color: #198754; color: #198754; }
.pv-b.solid { background: #0d8bf0; border-color: #0d8bf0; color: #fff; font-weight: 600; }
.pv-b.r { margin-left: auto; }
.pv-fs { display: grid; gap: 8px; margin-bottom: 9px; align-items: end; }
.pv-f small { display: block; font-size: 9px; color: #495057; margin-bottom: 2px; }
.pv-f span { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: #fff; border: 1px solid #ced4da; border-radius: 4px; padding: 3px 6px; white-space: nowrap; overflow: hidden; }
.pv-f span i { font-size: 8px; color: #6c757d; }
.pv-card { background: #fff; border: 1px solid #e3e7ec; border-radius: 6px; padding: 8px 10px; }
.pv-card h5 { display: flex; align-items: center; gap: 5px; margin: 0 0 8px; font-size: 11px; font-weight: 700; color: #14233a; }
.pv-card h5 i { color: #0d6efd; font-size: 10px; }
.pv-kv { display: grid; grid-template-columns: 74px minmax(0, 1fr) 70px minmax(0, 1fr); gap: 5px 8px; align-items: center; }
.pv-kv > small { font-size: 9.5px; color: #495057; }
.pv-kv > span { border: 1px solid #ced4da; border-radius: 4px; padding: 3px 6px; background: #fff; white-space: nowrap; overflow: hidden; }
.pv-kv > span.ro { background: #e9ecef; }
.pv-kv > span.ln { color: #0d6efd; text-decoration: underline; background: #e9ecef; }
.pv-tbl { width: 100%; border-collapse: collapse; }
.pv-tbl th { font-size: 9px; font-weight: 700; color: #212529; text-align: left; padding: 4px 5px; border-bottom: 2px solid #dee2e6; white-space: nowrap; }
.pv-tbl td { padding: 4px 5px; border-bottom: 1px solid #eef1f5; white-space: nowrap; font-size: 9.5px; }
.pv-tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.pv-tbl .c { text-align: center; }
.pv-tbl u { color: #0d6efd; }
.pv-tbl tr.tot td { font-weight: 700; border-bottom: 0; }
.pv-tabs { display: flex; gap: 12px; border-bottom: 1px solid #dee2e6; margin-bottom: 6px; font-size: 9.5px; }
.pv-tabs span { padding: 0 0 4px; color: #0d6efd; }
.pv-tabs span.on { color: #14233a; font-weight: 700; border-bottom: 2px solid #0d6efd; }
.pv-tabs small { color: #6c757d; font-size: 8.5px; }
.pv-bd { display: inline-block; font-size: 8px; font-weight: 700; border-radius: 3px; padding: 1px 4px; border: 1px solid #adb5bd; color: #495057; text-transform: uppercase; white-space: nowrap; }
.pv-bd.lo { border-color: #9eeaf9; background: #cff4fc; color: #087990; }
.pv-bd.hi { border-color: #f1aeb5; background: #f8d7da; color: #b02a37; }
.pv-bd.md { border-color: #ffe69c; background: #fff3cd; color: #997404; }
.pv-st { font-size: 9px; font-weight: 600; border: 1px solid #dc3545; color: #dc3545; border-radius: 3px; padding: 0 5px; white-space: nowrap; }
.pv-st.run { border-color: #0d6efd; color: #0d6efd; }
.pv-st.ok { border-color: #198754; color: #198754; }
.pv-legend { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 9px; color: #495057; }
.pv-legend span { display: inline-flex; align-items: center; gap: 4px; }
.pv-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }

/* room chart (scheduler) */
.pv-rc { background: #fff; border: 1px solid #dee2e6; border-radius: 4px; overflow: hidden; }
.pv-rc .rw { display: grid; grid-template-columns: 50px 44px 46px minmax(0, 1fr); border-bottom: 1px solid #e9ecef; }
.pv-rc .rw > span { display: flex; align-items: center; justify-content: center; font-size: 9.5px; border-right: 1px solid #e9ecef; }
.pv-rc .hd > span { font-weight: 700; font-size: 9px; }
.pv-rc .hd .days { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: auto auto; }
.pv-rc .hd .mo { grid-column: 1 / -1; text-align: center; font-size: 9px; color: #495057; padding: 2px 0; border-bottom: 1px solid #e9ecef; }
.pv-rc .hd .d { text-align: center; font-size: 9px; padding: 3px 0; border-left: 1px solid #e9ecef; color: #212529; }
.pv-rc .hd .d.we { color: #dc3545; }
.pv-rc .hd .d.td { background: #e7f1ff; font-weight: 700; }
.pv-rc .rm { height: 34px; }
.pv-rc .rm > span:nth-child(3).dirty { border-left: 4px solid #ea3624; }
.pv-rc .tl { position: relative; background-image: linear-gradient(#f5f9ff, #f5f9ff), linear-gradient(90deg, #e9ecef 1px, transparent 1px); background-size: 10% 100%, 10% 100%; background-repeat: no-repeat, repeat-x; }
:is(.pv, .sx) .ev { position: absolute; top: 3px; bottom: 3px; left: calc(var(--s) * 10% + 1px); width: calc(var(--n) * 10% - 2px); background: #f0f3fa; border: 1px solid #dee2e6; border-top: 3px solid var(--c, #1691f4); border-radius: 2px; padding: 1px 4px; font-size: 9px; line-height: 1.2; color: #14233a; white-space: nowrap; overflow: hidden; font-style: normal; transform-origin: left; }
:is(.pv, .sx) .ev small { display: block; font-size: 8.5px; color: #5f6b7a; }
:is(.pv, .sx) .ev.ci { --c: #1691f4; }
:is(.pv, .sx) .ev.cf { --c: #2e8b3e; }
:is(.pv, .sx) .ev.co { --c: #8a8a8a; }
:is(.pv, .sx) .ev.tk { --c: #111; }
:is(.pv, .sx) .ev.sel { box-shadow: 0 0 0 1.5px #0d6efd; }
.pv-tip { position: absolute; width: 214px; background: #1f2a37; color: #e9eef5; border-radius: 6px; padding: 7px 9px; font-size: 9.5px; line-height: 1.45; box-shadow: 0 10px 24px rgba(11, 31, 58, .3); }
.pv-tip b { color: #fff; }

/* invoice */
.pv-inv { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
.pv-dl div { display: flex; align-items: flex-end; gap: 3px; padding: 3px 0; }
.pv-dl span { white-space: nowrap; }
.pv-dl i { flex: 1; border-bottom: 1.5px dotted #adb5bd; margin-bottom: 3px; }
.pv-dl b { font-variant-numeric: tabular-nums; }
.pv-dl u { font-weight: 700; }

/* room rack + tasks */
.pv-hk { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; }
.pv-hk .pv-legend { margin: 0 0 6px; }
.pv-flo { font-size: 9.5px; color: #495057; margin: 5px 0 3px; }
.pv-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.pv-tile { position: relative; height: 46px; border-radius: 3px; background: #f1f3f5; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; color: #14233a; border: 1px solid transparent; }
.pv-tile small { font-size: 7.5px; font-weight: 500; margin-top: 2px; }
.pv-tile .ic { position: absolute; top: 3px; right: 4px; font-size: 7.5px; }
.pv-tile.cip { background: #03a9f4; }
.pv-tile.cop { background: #80a951; }
.pv-tile.both { background: #f38d8d; }
.pv-tile.ocu { background: #f9d7a7; }
.pv-tile.cir { background-image: linear-gradient(90deg, #03a9f4 10%, rgba(3, 169, 244, 0) 50%); }
.pv-tile.cor { background-image: linear-gradient(90deg, #80a951 10%, rgba(128, 169, 81, 0) 50%); }
.pv-tile.both.cir { background-image: linear-gradient(90deg, #03a9f4 10%, rgba(3, 169, 244, 0) 50%); }
.pv-tile.oos { border-color: #dc3545; }
.pv-seg { display: flex; background: #e9ecef; border-radius: 5px; padding: 2px; margin-bottom: 7px; }
.pv-seg span { flex: 1; text-align: center; padding: 3px 0; border-radius: 4px; color: #6c757d; font-size: 9.5px; }
.pv-seg span.on { background: #fff; color: #14233a; font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.pv-tk { background: #fff; border: 1px solid #e3e7ec; border-left: 3px solid #dc3545; border-radius: 5px; padding: 6px 8px; margin-bottom: 6px; box-shadow: 0 1px 2px rgba(11, 31, 58, .05); }
.pv-tk.run { border-left-color: #0d6efd; }
.pv-tk .t { display: flex; align-items: center; gap: 4px; }
.pv-tk .t b { font-size: 10px; text-transform: uppercase; white-space: nowrap; }
.pv-tk .t .pv-st { margin-left: auto; }
.pv-tk p { margin: 4px 0 3px; font-size: 9.5px; color: #212529; }
.pv-tk small { font-size: 8.5px; color: #6c757d; }

/* management dashboard */
.pv-dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 8px; }
.pv-card .pv-legend { margin-bottom: 6px; }
.pv-gb { display: flex; align-items: flex-end; gap: 5px; height: 160px; border-bottom: 1px solid #ced4da; border-left: 1px solid #ced4da; padding: 0 4px; }
.pv-gb > div { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 1px; }
.pv-gb > div i { width: 30%; height: calc(var(--v) * 1%); border-radius: 1px 1px 0 0; transform-origin: bottom; }
.pv-gb i.y0 { background: #4a8ae8; }
.pv-gb i.y1 { background: #f6b143; }
.pv-gb i.y2 { background: #e5481e; }
.pv-gx { display: flex; gap: 5px; padding: 3px 4px 0; }
.pv-gx span { flex: 1; text-align: center; font-size: 8.5px; color: #6c757d; }
.pv-tbl.blue th { background: #6d9eeb; color: #fff; border: 1px solid #fff; text-align: center; padding: 3px 3px; }
.pv-tbl.blue td { border: 1px solid #e3e7ec; text-align: center; padding: 4px 3px; }
.pv-tbl.blue td:first-child { font-weight: 700; }
.pv-tbl.blue tr.tot td { background: #6d9eeb; color: #fff; border-color: #fff; }

/* SPA therapists agenda */
.pv-ag { position: relative; display: grid; grid-template-columns: 36px repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid #dee2e6; border-radius: 4px; overflow: hidden; }
.pv-ag .h { display: flex; align-items: center; justify-content: center; gap: 4px; height: 24px; border-bottom: 1px solid #dee2e6; border-left: 1px solid #e9ecef; font-size: 9.5px; }
.pv-ag .h i { color: #adb5bd; font-size: 10px; }
.pv-ag .tm { border-right: 1px solid #e9ecef; }
.pv-ag .tm span { display: block; height: 40px; font-size: 9px; color: #495057; padding: 2px 3px; border-bottom: 1px solid #e9ecef; }
.pv-ag .tm sup { font-size: 6px; }
.pv-ag .col { position: relative; border-left: 1px solid #e9ecef; background-image: repeating-linear-gradient(#fff 0 39px, #e9ecef 39px 40px); }
.pv-ag .off { position: absolute; left: 0; right: 0; background: #e9ecef; }
.pv-ag .ap { position: absolute; left: 3px; right: 3px; background: #f0f3fa; border: 1px solid #dee2e6; border-left: 3px solid var(--c, #1691f4); border-radius: 2px; padding: 2px 4px; font-size: 8.5px; line-height: 1.25; overflow: hidden; }
.pv-ag .ap b { display: block; font-size: 9px; color: #14233a; }
.pv-ag .now { position: absolute; left: 36px; right: 0; height: 1px; background: #dc3545; }
.pv-ag .now::before { content: ""; position: absolute; left: -5px; top: -3px; border: 3.5px solid transparent; border-left: 5px solid #dc3545; }

/* entrance animations, only once the screen scrolls into view (modules.js adds .pv-anim / .is-in) */
@keyframes pvIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes pvGrow { from { transform: scaleX(0); } }
@keyframes pvRise { from { transform: scaleY(0); } }
.pv-anim .pv:not(.is-in) [data-a], .pv-anim .pv:not(.is-in) .ev { opacity: 0; }
.pv-anim .pv.is-in [data-a] { animation: pvIn .5s cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--d, 0) * 1ms); }
.pv-anim .pv.is-in .ev { animation: pvGrow .6s cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--d, 0) * 1ms); }
.pv-anim .pv.is-in .pv-gb i { animation: pvRise .7s cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--d, 0) * 1ms); }

/* POS front office: zones and tables */
.pv-pos { display: grid; grid-template-columns: 30px 82px minmax(0, 1fr); gap: 6px; }
.pv-pos-top { display: flex; justify-content: flex-end; gap: 9px; margin-bottom: 7px; padding-right: 2px; }
.pv-pos-top i, .pv-pos-side i { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
.pv-pos-side { display: grid; gap: 7px; align-content: start; }
.pv-zones { display: grid; gap: 5px; align-content: start; }
.pv-zones span { height: 40px; border-radius: 5px; background: green; color: #fff; font-weight: 700; font-size: 9.5px; display: flex; align-items: center; justify-content: center; text-align: center; }
.pv-zones span.on { color: #ffff3c; }
.pv-tables { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; align-content: start; }
.pv-tables span { height: 36px; border-radius: 5px; background: #dcf0c8; color: #323232; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.pv-pos-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 700; font-size: 12px; color: #14233a; }

/* three "also included" cards in a row */
@media (min-width: 992px) { .md-shots-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* CRM cardex dashboard: age pyramid and horizontal bars */
.pv-chart-t { text-align: center; font-weight: 700; font-size: 11px; color: #14233a; margin-bottom: 6px; }
.pv-pyr { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); row-gap: 3px; align-items: center; }
.pv-pyr i { display: block; height: 10px; width: calc(var(--w) * 1%); transform-origin: right; }
.pv-pyr .f i { margin-left: auto; background: #17b3a3; border-radius: 2px 0 0 2px; }
.pv-pyr .m i { background: #0f6e6e; border-radius: 0 2px 2px 0; transform-origin: left; }
.pv-pyr > span.a { text-align: center; font-size: 8.5px; color: #6c757d; }
.pv-pyr-f { display: flex; justify-content: space-between; margin-top: 6px; font-size: 9px; font-weight: 700; color: #14233a; }
.pv-hb div { display: grid; grid-template-columns: 92px minmax(0, 1fr) 40px; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 9px; }
.pv-hb i { display: block; height: 10px; width: calc(var(--w) * 1%); background: var(--c, #4a8ae8); border-radius: 0 2px 2px 0; transform-origin: left; }
.pv-hb b { text-align: right; font-variant-numeric: tabular-nums; }
.pv-kpi2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.pv-kpi2 > div { background: #fff; border: 1px solid #e3e7ec; border-radius: 6px; padding: 8px 10px; }
.pv-kpi2 h6 { margin: 0 0 4px; font-size: 10px; font-weight: 700; color: #14233a; text-transform: none; letter-spacing: 0; }
.pv-kpi2 b { font-size: 18px; color: #14233a; }
.pv-kpi2 small { display: block; font-size: 9px; color: #495057; }
.pv-sw { display: inline-block; width: 14px; height: 12px; border: 1px solid #adb5bd; vertical-align: middle; }
.pv-anim .pv.is-in .pv-pyr i, .pv-anim .pv.is-in .pv-hb i { animation: pvGrow .7s cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--d, 0) * 1ms); }

/* integration partners without a logo image: the name set as a neutral wordmark */
.logo-tile.logo-txt span { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: #6b7684; text-align: center; line-height: 1.2; padding: 0 .5rem; }

/* add-on pages: real app screenshots in phone frames */
.pv-phones { display: flex; justify-content: center; align-items: flex-start; gap: 1.4rem; padding: 1rem 0; }
.pv-phone2 { width: min(46%, 250px); aspect-ratio: 375 / 780; background: #0b1f3a; border-radius: 34px; padding: 8px; box-shadow: var(--g-shadow-lg); }
.pv-phone2 img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 27px; background: #fff; }
.pv-phones .pv-phone2:nth-child(2) { margin-top: 3rem; }
.pf .am-price { margin-top: .4rem; }
.pf-ideal { margin: 1rem 0 0; font-size: .9rem; color: var(--g-muted); }
.pf-ideal b { color: var(--g-navy); }

/* lost & found dashboard */
.pv-lf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.pv-lf > div { position: relative; background: #fff; border-radius: 8px; border-left: 4px solid var(--c); box-shadow: 0 1px 3px rgba(11, 31, 58, .08); padding: 9px 10px; }
.pv-lf small { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #495057; }
.pv-lf b { font-size: 20px; color: #14233a; }
.pv-lf i { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.pv-lf-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pv-lf-lists h5 { justify-content: space-between; }
.pv-lf-lists h5 em { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: #fff; font-size: 9px; display: inline-flex; align-items: center; justify-content: center; }
.pv-lf-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-top: 1px solid #eef1f5; }
.pv-lf-row b { display: block; font-size: 10px; color: #14233a; text-decoration: underline; }
.pv-lf-row small { font-size: 8.5px; color: #6c757d; }

/* integration scheme (Business Central) */
.pv-flow { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); align-items: center; gap: 6px; }
.pv-flow .side { background: #fff; border: 1px solid #e3e7ec; border-radius: 10px; padding: 12px; text-align: center; }
.pv-flow .side b { display: block; font-size: 14px; color: #14233a; margin: 6px 0 8px; }
.pv-flow .side > i { font-size: 22px; color: #12709f; }
.pv-flow .side span { display: block; font-size: 10px; padding: 4px 6px; margin-top: 4px; background: #f3f6f9; border-radius: 5px; color: #2f3c4f; }
.pv-flow .arrow { text-align: center; color: #12709f; font-size: 22px; }
.pv-flow .arrow small { display: block; font-size: 9px; color: #6c757d; margin-top: 4px; }

/* 7-day scheduler (staff planning) on the room chart grid */
.pv-rc.d7 .rw { grid-template-columns: 92px 74px minmax(0, 1fr); }
.pv-rc.d7 .rw > span:first-child { justify-content: flex-start; padding-left: 8px; font-weight: 600; }
.pv-rc.d7 .hd .days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pv-rc.d7 .tl { background-size: calc(100% / 7) 100%, calc(100% / 7) 100%; }
.pv-rc.d7 .ev { left: calc(var(--s) * 100% / 7 + 1px); width: calc(var(--n) * 100% / 7 - 2px); }
:is(.pv, .sx) .ev.ok { --c: #2e8b3e; }
:is(.pv, .sx) .ev.nv { --c: #e03131; }
:is(.pv, .sx) .ev.inc { --c: #f5d000; }
:is(.pv, .sx) .ev.off { --c: #111; }

/* checkbox filters (e.g. CRM cardex dashboard) */
.pv-ckf { display: flex; align-items: center; gap: 6px; align-self: end; height: 22px; margin: 0; font-size: 9.5px; color: #495057; white-space: nowrap; }
.pv-ck { flex: 0 0 12px; width: 12px; height: 12px; border: 1px solid #adb5bd; border-radius: 3px; background: #fff; }

/* room chart, new BackOffice look: soft status cards with a colour bar, slate palette */
.pv-rc.rc2 { border-color: #e5e7eb; border-radius: 8px; }
.pv-rc.rc2 .rw { border-bottom-color: #eef1f5; }
.pv-rc.rc2 .rw > span { border-right-color: #eef1f5; color: #1e293b; }
.pv-rc.rc2 .rm > span:first-child { font-weight: 700; font-size: 10.5px; }
.pv-rc.rc2 .rm > span:nth-child(3) { color: #94a3b8; font-size: 9px; }
.pv-rc.rc2 .rm > span:nth-child(3).dirty { border-left: 0; }
.rcb { display: inline-block; font-style: normal; font-size: 8px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; border-radius: 4px; padding: 1px 5px; background: #fee2e2; color: #b91c1c; }
.rcb.g { background: #dcfce7; color: #15803d; }
.pv-rc.rc2 .hd > span { color: #64748b; font-weight: 600; }
.pv-rc.rc2 .hd .mo { color: #64748b; font-weight: 600; border-bottom-color: #eef1f5; }
.pv-rc.rc2 .hd .d { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; padding: 3px 0; border-left-color: #eef1f5; background: transparent; font-weight: 400; }
.pv-rc.rc2 .hd .d em { font-style: normal; font-size: 7.5px; font-weight: 500; color: #94a3b8; text-transform: capitalize; }
.pv-rc.rc2 .hd .d b { font-size: 10px; font-weight: 700; color: #1e293b; }
.pv-rc.rc2 .hd .d.we { background: #fef2f2; }
.pv-rc.rc2 .hd .d.we b { color: #dc2626; }
.pv-rc.rc2 .hd .d.td { background: #fff1ec; }
.pv-rc.rc2 .hd .d.td em, .pv-rc.rc2 .hd .d.td b { color: #e8450e; }
.pv-rc.rc2 .tl { background-image: linear-gradient(#fff7ed, #fff7ed), linear-gradient(90deg, #eef1f5 1px, transparent 1px); }
.pv-rc.rc2 .ev { top: 2px; bottom: 2px; padding: 3px 6px 3px 13px; border: 0; border-radius: 8px; background: #eff6ff; color: #1e293b; }
.pv-rc.rc2 .ev::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--c, #1691f4); }
.pv-rc.rc2 .ev::first-line { font-weight: 700; }
.pv-rc.rc2 .ev small { color: #64748b; font-weight: 400; }
.pv-rc.rc2 .ev.cf { background: #f0fdf4; }
.pv-rc.rc2 .ev.ci { background: #eff6ff; }
.pv-rc.rc2 .ev.co { background: #f1f5f9; color: #64748b; }
.pv-rc.rc2 .ev.tk { color: #475569; background: repeating-linear-gradient(135deg, #f1f5f9, #f1f5f9 6px, #e2e8f0 6px, #e2e8f0 12px); }
.pv-rc.rc2 .ev.sel { box-shadow: 0 3px 8px rgba(15, 23, 42, .18); }
.pv-tip.rc2 { width: 214px; padding: 9px 11px; background: #fff; color: #64748b; border-radius: 10px; box-shadow: 0 8px 24px rgba(15, 23, 42, .18); }
.pv-tip.rc2 b { display: block; color: #1e293b; font-size: 10.5px; margin: 3px 0 2px; }
