/* ==========================================================================
   EasyPier - Home hero "showcase": one app window that cycles through the modules included in the
   licence (Marina Chart, transits, invoicing, maintenance, boatyard, POS, stock, school, integrations).
   Scenes are HTML drawings of the product with invented sample data, drawn on a fixed 640x380 canvas
   scaled to fit (showcase.js). App building blocks (.pv-*) come from modules.css; the Marina Chart
   drawing (.mc-*) from site.css. Adapted from the GUEST home showcase.
   ========================================================================== */

.sx { padding: 1.5rem 0 3.5rem; background: #fff; }
.sx-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.25rem; align-items: stretch; }
@media (max-width: 991.98px) { .sx-grid { grid-template-columns: 1fr; } }

/* ---------- Left: dark intro card ---------- */
.sx-intro { position: relative; background: var(--ep-navy); color: #c9d5e6; border-radius: 20px; padding: 3rem 2.6rem 2.6rem; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.sx-intro::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 84px); }
.sx-intro::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; pointer-events: none; background: var(--ep-swell) no-repeat left bottom / 100% 100%; opacity: .45; }
.sx-intro > * { position: relative; z-index: 1; }
.sx-eyebrow { display: inline-flex; align-items: center; gap: .65rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 1.4rem; }
.sx-eyebrow i { width: 30px; height: 30px; border-radius: 8px; background: var(--ep-orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; flex: none; }
.sx-intro h1 { color: #fff; font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 1.25rem; font-weight: 800; }
.sx-intro h1 em { font-style: normal; color: var(--ep-blue-2); }
.sx-intro .sx-lead { color: rgba(255, 255, 255, .82); font-size: 1.12rem; line-height: 1.6; margin: 0 0 1.9rem; max-width: 520px; }
.sx-intro .hero-actions .btn { margin: 0 .6rem .6rem 0; }
.sx-intro .btn-outline-light { border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.sx-intro .btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; transform: translateY(-2px); }
.sx-proof { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding: 0; margin: 1.6rem 0 0; font-size: .85rem; color: #9fb0c9; }
.sx-proof i { color: var(--ep-blue-2); margin-right: .4rem; }
@media (max-width: 575.98px) { .sx-intro { padding: 2.2rem 1.5rem 2.4rem; border-radius: 16px; } }

/* ---------- Right: stage ---------- */
.sx-stage { position: relative; border-radius: 20px; overflow: hidden; padding: 2.4rem 2rem 1.4rem; display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
    background-color: var(--ep-blue-dk);
    background-image: radial-gradient(120% 90% at 85% 10%, rgba(92, 200, 242, .5), rgba(92, 200, 242, 0) 60%),
                      repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 64px),
                      repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 40px); }
@media (max-width: 575.98px) { .sx-stage { padding: 3.4rem .9rem 1.1rem; border-radius: 16px; } }
.sx-pause { position: absolute; top: .9rem; right: .9rem; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: var(--ep-navy); display: flex; align-items: center; justify-content: center; font-size: .75rem; }
.sx-pause:hover { background: #fff; }
.sx-pause:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* app window: fixed design canvas scaled to the available width */
.sx-window { position: relative; width: 100%; border-radius: 14px; background: #fff; box-shadow: 0 30px 60px rgba(4, 22, 45, .35); overflow: hidden; height: calc(410px * var(--k, 1)); }
.sx-canvas { position: absolute; left: 0; top: 0; width: 700px; height: 410px; transform: scale(var(--k, 1)); transform-origin: 0 0; font-size: 11px; line-height: 1.25; color: #24324a; text-align: left; }
.sx-bar { height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 14px; font-size: 12px; background: #001b37; color: #fff; white-space: nowrap; }
.sx-bar .sx-brand { font-weight: 800; letter-spacing: .02em; color: #fff; display: flex; align-items: center; gap: 6px; }
.sx-bar .sx-brand i { color: var(--ep-blue); }
.sx-bar .sx-mods { display: flex; gap: 10px; font-weight: 700; color: rgba(255, 255, 255, .55); }
.sx-bar .sx-mods .on { color: var(--ep-blue-2); }
.sx-bar .sx-search { margin-left: auto; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; padding: 4px 10px; color: rgba(255, 255, 255, .7); min-width: 0; overflow: hidden; }
@media (max-width: 575.98px) { .sx-bar .sx-mods { display: none; } }

.sx-scene { position: absolute; inset: 0; display: none; padding: 12px 14px; }
.sx-scene.is-on { display: block; }
.sx-scene.app { background: #f5f5f5; padding: 10px 12px; font-size: 10.5px; color: #212529; }

/* entrance animations (replayed every time a scene is shown, because display toggles) */
@keyframes sxIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes sxGrow { from { transform: scaleX(0); } }
@keyframes sxRise { from { transform: scaleY(0); } }
.sx-scene.is-on [data-a] { animation: sxIn .45s cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--d, 0) * 1ms); }
.sx-scene.is-on .ev { animation: sxGrow .55s cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--d, 0) * 1ms); transform-origin: left; }
.sx-scene.is-on .pv-gb i { animation: sxRise .7s cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--d, 0) * 1ms); }
.sx-scene.is-on .pv-hb i, .sx-scene.is-on .sx-seats i { animation: sxGrow .7s cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--d, 0) * 1ms); transform-origin: left; }

/* ---------- Module tabs ---------- */
.sx-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.sx-tab { position: relative; overflow: hidden; border: 0; border-radius: 999px; padding: .5rem 1rem; background: rgba(10, 37, 64, .45); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .25s; }
.sx-tab:hover { background: rgba(10, 37, 64, .7); }
.sx-tab[aria-selected="true"] { background: var(--ep-navy); }
.sx-tab .sx-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--ep-orange); transform: scaleX(0); transform-origin: left; }
.sx-tab[aria-selected="true"] .sx-prog { animation: sxProg var(--dur, 6000ms) linear both; }
.sx.is-paused .sx-tab .sx-prog { animation-play-state: paused; }
@keyframes sxProg { to { transform: scaleX(1); } }
.sx-tab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sx-cap { margin: 0; text-align: center; color: rgba(255, 255, 255, .92); font-size: .95rem; min-height: 2.9em; }
.sx-cap a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 575.98px) { .sx-tab { padding: .42rem .75rem; font-size: .7rem; } .sx-cap { font-size: .88rem; } }

/* ---------- Scene: Marina Chart (static copy of the hero demo; drawing classes from site.css) ---------- */
.sx-mc { --st-contract: #0a72a5; --st-transit: #1f8a5b; --st-arrival: #d2461b; height: 100%; display: flex; flex-direction: column; background: #f3f6f8; border: 1px solid #d5dee7; border-radius: 8px; overflow: hidden; font-size: 11px; line-height: 1.3; color: #22324a; }
.sx-mc .mc-b { cursor: default; pointer-events: none; }
.sx-mc .mc-tools { padding: 7px 10px; gap: 7px; }
.sx-mc .mc-seg span { padding: 3px 9px; color: #6f7b8b; }
.sx-mc .mc-seg span.on { background: #fff; color: #14233a; font-weight: 700; }
.sx-mc .mc-search { color: #8893a2; }
.sx-mc .mc-kpis div { padding: 5px 10px; }
.sx-mc .mc-kpis b { font-size: 16px; }
.sx-mc .mc-kpis span { font-size: 8.5px; }
.sx-mc .mc-body { flex: 1; grid-template-columns: minmax(0, 1fr) 184px; min-height: 0; }
.sx-mc .mc-info dd { white-space: nowrap; }
.sx-mc .mc-map { display: flex; align-items: center; }
.sx-mc .mc-info { border-top: 0; border-left: 1px solid #e2e8ee; padding: 10px; gap: 8px; }
.sx-mc .mc-info dl > div { padding: 4px 7px; }
.sx-mc .mc-legend { grid-template-columns: 1fr; gap: 4px; font-size: 10px; padding-top: 8px; }

/* KPI cards (modules.css .pv-lf): keep figure and unit on one line */
.sx .pv-lf > div { padding-right: 40px; }
.sx .pv-lf small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx .pv-lf b { display: block; white-space: nowrap; font-size: 19px; }
.sx .pv-lf b small { display: inline; font-size: 10px; letter-spacing: 0; text-transform: none; color: #6c757d; }

/* ---------- Scene: point of sale (fuel station, shop, club bar) ---------- */
.sx-tpv { display: grid; grid-template-columns: 30px 82px minmax(0, 1fr) 176px; gap: 6px; }
.sx-prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; align-content: start; }
.sx-prods span { height: 48px; border-radius: 5px; background: #dcf0c8; color: #323232; font-weight: 700; font-size: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; line-height: 1.15; }
.sx-prods span i { font-size: 12px; color: #2e7d32; }
.sx-prods span small { font-weight: 500; font-size: 8.5px; color: #4a5565; }
.sx-prods span.on { background: #2e7d32; color: #fff; }
.sx-prods span.on i, .sx-prods span.on small { color: #fff; }
.sx-ticket { border: 1px solid #e3e7ec; border-radius: 8px; padding: 9px 10px; background: #fff; display: flex; flex-direction: column; height: 300px; }
.sx-ticket h6 { margin: 0; font-size: 11.5px; color: #14233a; }
.sx-ticket > small { color: #6c757d; font-size: 9px; margin: 2px 0 6px; }
.sx-line { display: flex; justify-content: space-between; gap: 6px; padding: 5px 0; border-bottom: 1px dashed #e3e7ec; font-size: 10px; }
.sx-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sx-total { margin-top: auto; display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: #14233a; padding: 8px 0; }
.sx-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.sx-btns span { border-radius: 6px; background: #e9ecef; color: #14233a; font-weight: 700; text-align: center; padding: 7px 4px; font-size: 9.5px; }
.sx-btns span.go { background: var(--ep-orange); color: #fff; }
.sx-scene.is-on .sx-btns .go { animation: sxPulse 1.6s 1.6s ease-in-out 2; }
@keyframes sxPulse { 50% { box-shadow: 0 0 0 5px rgba(210, 70, 27, .25); } }

/* ---------- Scene: nautical school seats ---------- */
.sx-seats { display: inline-block; width: 64px; height: 6px; border-radius: 4px; background: #e9ecef; overflow: hidden; vertical-align: middle; margin-right: 5px; }
.sx-seats i { display: block; height: 100%; width: calc(var(--w) * 1%); background: #12709f; }
.sx-seats.full i { background: #e8a200; }

/* ---------- Scene: integrations ---------- */
.sx-int { display: grid; grid-template-columns: 140px 36px minmax(0, 1fr); align-items: center; gap: 6px; height: 100%; }
.sx-int-src { background: #fff; border: 1px solid #e3e7ec; border-radius: 10px; padding: 12px 10px; text-align: center; }
.sx-int-src > i { font-size: 24px; color: var(--ep-blue-dk); }
.sx-int-src b { display: block; font-size: 15px; color: #14233a; margin: 6px 0 8px; }
.sx-int-src span { display: block; font-size: 10px; padding: 5px 6px; margin-top: 4px; background: #f3f6f9; border-radius: 5px; color: #2f3c4f; }
.sx-int-arrow { text-align: center; color: var(--ep-blue-dk); font-size: 22px; }
.sx-int-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sx-int-c { background: #fff; border: 1px solid #e3e7ec; border-radius: 10px; padding: 11px 12px; display: flex; flex-direction: column; gap: 4px; min-height: 132px; }
.sx-int-c > i { width: 30px; height: 30px; border-radius: 8px; background: rgba(27, 163, 221, .12); color: var(--ep-blue-dk); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.sx-int-c b { font-size: 12.5px; color: #14233a; margin-top: 3px; }
.sx-int-c small { font-size: 9.5px; color: #5b6778; line-height: 1.35; }
.sx-int-c .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 4px; }
.sx-int-c .chips span { font-size: 9px; font-weight: 700; color: #14233a; background: #f3f6f9; border: 1px solid #e3e7ec; border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.sx-int-c.dk { background: var(--ep-navy); border-color: var(--ep-navy); box-shadow: 0 6px 16px rgba(10, 37, 64, .25); }
.sx-int-c.dk > i { background: rgba(92, 200, 242, .18); color: var(--ep-blue-2); }
.sx-int-c.dk b { color: #fff; }
.sx-int-c.dk small { color: rgba(255, 255, 255, .75); }
.sx-int-c.dk .chips span { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.sx-int-c.dk .chips span.hl { background: var(--ep-orange); border-color: var(--ep-orange); }

/* ---------- Real back office look: header, side menu, title bar, toolbar, grid (as in EasyPier) ---------- */
.sx-bar.ep { background: #b7d5fd; color: #0d2a59; gap: 10px; padding: 0 12px; font-size: 11px; }
.sx-bar.ep .sx-ham { font-size: 15px; }
.sx-bar.ep img { height: 25px; width: auto; display: block; }
.sx-bar.ep .sx-mods { color: #0d2a59; font-weight: 500; gap: 16px; margin-left: 14px; }
.sx-bar.ep .sx-mods b { font-weight: 700; }
.sx-bar.ep .sx-user { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 10px; }
.sx-bar.ep .sx-user u { color: #0d2a59; }
.sx-bar.ep .sx-user i { font-size: 12px; }
.sx-bar.ep .sx-user .bl { position: relative; }
.sx-bar.ep .sx-user .bl sup { position: absolute; top: -6px; right: -7px; background: #0d6efd; color: #fff; font-size: 7px; font-weight: 700; border-radius: 999px; min-width: 12px; height: 12px; display: grid; place-items: center; }
@media (max-width: 575.98px) { .sx-bar.ep .sx-user .w { display: none; } }

.sx-app { display: grid; grid-template-columns: 132px minmax(0, 1fr); margin: -10px -12px; height: calc(100% + 20px); background: #fff; overflow: hidden; }
.sx-app.full { grid-template-columns: minmax(0, 1fr); }
.sx-nav { background: #b7d5fd; display: flex; flex-direction: column; font-size: 9.5px; font-weight: 500; color: #0d2a59; overflow: hidden; }
.sx-nav span, .sx-nav em { display: flex; align-items: center; gap: 6px; padding: 5px 8px; font-style: normal; white-space: nowrap; flex: none; }
.sx-nav span i { width: 11px; text-align: center; font-size: 9px; }
.sx-nav em { background: #fff; color: #333; font-weight: 400; font-size: 8.5px; padding: 4px 7px; }
.sx-nav em i { width: 10px; text-align: center; font-size: 7.5px; color: #0d2a59; }
.sx-nav em.on { background: #fee17a; }
.sx-nav em.rp { background: #e0e0e0; }
.sx-main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.sx-main-h { background: #b7d5fd; color: #15428b; font-weight: 500; font-size: 11.5px; padding: 5px 9px; flex: none; display: flex; align-items: center; gap: 4px; }
.sx-main-h .lg { display: inline-flex; gap: 2px; margin-left: 3px; }
.sx-main-h .lg i { width: 7px; height: 7px; border-radius: 2px; }
.sx-main .pv-tb { padding: 7px 8px 6px; margin: 0; flex: none; align-items: center; }
.sx-main .pv-b { font-size: 9.5px; padding: 3px 7px; }
.sx-main .pv-b.dk { border-color: #343a40; color: #343a40; }
.sx-main .pv-b.gy { color: #6c757d; }
.sx-main .pv-b.ic { padding: 3px 6px; position: relative; }
.sx-main .pv-b.ic sup { position: absolute; top: -5px; right: -4px; background: #0d6efd; color: #fff; font-size: 7px; font-weight: 700; border-radius: 999px; min-width: 11px; height: 11px; display: grid; place-items: center; }
.sx-main .pv-b .fa-caret-down { font-size: 7px; }
.sx-srch { margin-left: auto; border: 1px solid #ced4da; border-radius: 4px; padding: 3px 7px; color: #6c757d; font-size: 9.5px; width: 104px; display: inline-flex; gap: 5px; align-items: center; background: #fff; }
.sx-srch i { font-size: 8px; }
.sx-tbl { width: 100%; border-collapse: collapse; }
.sx-tbl th { font-size: 8.5px; font-weight: 700; color: #777; text-align: center; padding: 5px 4px; border-top: 1px solid #dee2e6; border-bottom: 1px solid #dee2e6; white-space: nowrap; }
.sx-tbl th.b { color: #212529; }
.sx-tbl th .fa-filter { font-size: 6.5px; color: #c4c4c4; margin-left: 2px; }
.sx-tbl th.b .fa-filter { color: #212529; }
.sx-tbl td { font-size: 9px; color: #0d2a59; text-align: center; padding: 5px 4px; border-bottom: 1px solid #eef1f5; white-space: nowrap; }
.sx-tbl td.n { text-align: right; font-variant-numeric: tabular-nums; }
.sx-tbl td.l { text-align: left; }
.sx-tbl u { color: #0d2a59; }
.sx-bdg { display: inline-block; font-size: 7px; font-weight: 700; padding: 2px 5px; border-radius: 3px; background: #d6ecfb; color: #0b6aa2; letter-spacing: .02em; }
.sx-bdg.p { background: #fff3cd; color: #8a6d00; }
.sx-bdg.o { background: #e2e3e5; color: #41464b; }
.sx-bdg.ok { background: #d4edda; color: #1e6b34; }
.sx-cb { display: inline-block; width: 9px; height: 9px; border: 1px solid #adb5bd; border-radius: 2px; vertical-align: middle; background: #fff; }
.sx-pg { display: flex; align-items: center; gap: 6px; padding: 7px 8px; font-size: 9px; color: #212529; white-space: nowrap; }
.sx-pg .dd { border-bottom: 1px solid #ced4da; padding: 0 4px 1px; display: inline-flex; gap: 12px; align-items: center; }
.sx-pg .dd i { font-size: 7px; }
.sx-pg .nv { color: #9aa3ad; letter-spacing: -1px; }

/* filters row (Marina Chart, Agenda) */
.sx-flt { display: flex; gap: 6px; padding: 0 8px 6px; align-items: flex-end; flex: none; }
.sx-fld small { display: block; font-size: 8px; color: #333; margin-bottom: 2px; }
.sx-sel { border: 1px solid #ced4da; border-radius: 4px; padding: 3px 6px; font-size: 9.5px; display: inline-flex; gap: 10px; justify-content: space-between; align-items: center; background: #fff; color: #212529; white-space: nowrap; }
.sx-sel .fa-caret-down { font-size: 7px; }
.sx-sel .fa-regular, .sx-sel .fa-magnifying-glass { font-size: 8px; color: #555; }
.sx-sel.ph { color: #8a9099; }

/* Marina Chart: designed plan of a sample marina + berth panel */
.sx-mcw { display: grid; grid-template-columns: minmax(0, 1fr) 146px; margin: 0 8px 8px; border: 1px solid #dee2e6; border-radius: 4px; overflow: hidden; flex: 1; min-height: 0; }
.sx-map { position: relative; background: #dbe7f0; min-width: 0; }
.sx-map svg { display: block; width: 100%; height: 100%; }
.sx-map .tools { position: absolute; left: 6px; top: 6px; display: grid; gap: 4px; }
.sx-map .tools i { width: 18px; height: 18px; background: #fff; border-radius: 4px; display: grid; place-items: center; font-size: 9px; color: #0d2a59; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.sx-map .bt { stroke: #fff; stroke-width: .8; }
.sx-map .hl { fill: #fff; fill-opacity: .9; stroke: rgba(13, 42, 89, .35); stroke-width: .5; }
.sx-map .sel { stroke: #0d2a59; stroke-width: 2; }
.sx-map text { font-family: inherit; }
.sx-mci { background: #fff; border-left: 1px solid #dee2e6; padding: 8px; font-size: 9px; display: flex; flex-direction: column; gap: 5px; }
.sx-mci h6 { margin: 0 0 2px; font-size: 11px; color: #0d2a59; display: flex; align-items: center; gap: 5px; }
.sx-mci h6 i { color: #1691f4; }
.sx-mci dl { margin: 0; display: grid; gap: 3px; }
.sx-mci dl div { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px dashed #e6eaef; padding-bottom: 2px; }
.sx-mci dt { font-weight: 400; color: #6c757d; }
.sx-mci dd { margin: 0; font-weight: 600; color: #0d2a59; text-align: right; white-space: nowrap; }
.sx-mci .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 2px; }
.sx-mci .btns span { border: 1px solid #0d6efd; color: #0d6efd; border-radius: 4px; text-align: center; padding: 3px 2px; font-size: 8.5px; white-space: nowrap; }
.sx-mci ul { list-style: none; margin: auto 0 0; padding: 6px 0 0; border-top: 1px solid #eef1f5; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 4px; font-size: 8px; }
.sx-mci li { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.sx-mci li i { width: 12px; height: 8px; border-radius: 2px; border: 1px solid rgba(0, 0, 0, .15); flex: none; }

/* Agenda */
.sx-agw { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 8px; padding: 0 8px; flex: none; }
.sx-cal { border: 1px solid #333; font-size: 8.5px; background: #fff; }
.sx-cal .hd { display: flex; justify-content: space-between; background: #dfe6ee; font-weight: 700; padding: 2px 5px; color: #0d2a59; }
.sx-cal .g { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; padding: 2px 3px 3px; }
.sx-cal .g b { font-weight: 700; padding: 2px 0; }
.sx-cal .g span { padding: 2.5px 0; position: relative; }
.sx-cal .g span.x { color: #aaa; }
.sx-cal .g span.t { background: #fbc97a; }
.sx-cal .g span.d::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: #1691f4; }
.sx-ed { display: flex; flex-direction: column; gap: 4px; }
.sx-ed .bar { display: flex; gap: 7px; align-items: center; border: 1px solid #ced4da; border-bottom: 0; padding: 3px 6px; font-size: 8px; color: #333; background: #f8f9fa; }
.sx-ed .box { border: 1px solid #ced4da; flex: 1; padding: 5px 6px; font-size: 9px; color: #333; }
.sx-ed .pv-b { align-self: flex-start; }
.sx-day { text-align: center; font-weight: 700; font-size: 11px; color: #0d2a59; padding: 7px 0 3px; flex: none; }
.sx-tbl.cap th { text-transform: uppercase; font-size: 7.5px; border-top: 0; }

/* side gutter for blocks inside the main area */
.sx-pad { padding: 0 8px; }
.sx-pad .pv-card { padding: 0 6px 4px; }
.sx-tbl th { padding: 5px 3px; }
.sx-tbl td { padding: 5px 3px; font-size: 8.5px; }
.sx-map svg { position: absolute; inset: 0; }
/* Marina Chart berth panel, as in the real application */
.sx-mcw { grid-template-columns: minmax(0, 1fr) 170px; }
.sx-mci { padding: 7px 7px 6px; gap: 5px; font-size: 7.5px; color: #212529; line-height: 1.35; overflow: hidden; }
.sx-mci .top { display: flex; justify-content: space-between; align-items: center; }
.sx-mci .no { font-size: 12px; font-weight: 700; color: #212529; }
.sx-mci .nw { border: 1px solid #0d6efd; color: #0d6efd; border-radius: 4px; padding: 2px 5px; font-size: 8px; display: inline-flex; gap: 3px; align-items: center; }
.sx-mci .nw i { font-size: 7px; }
.sx-mci .ty { align-self: flex-start; font-size: 7.5px; padding: 1px 5px; border: 1px solid rgba(0, 0, 0, .2); }
.sx-mci p { margin: 0; }
.sx-mci b { font-weight: 700; }
.sx-mci u { color: #212529; }
.sx-mci .bx { background: #f4f6f9; padding: 5px 6px; }
.sx-mci .bx h6 { margin: 0 0 3px; font-size: 6.5px; font-weight: 500; color: #495057; text-transform: uppercase; letter-spacing: .02em; }
.sx-mci .sx-mv { margin-top: auto; display: grid; gap: 3px; }
.sx-mci .sx-mv small { font-size: 6.5px; color: #495057; text-transform: uppercase; }
.sx-mci .sx-mv .sx-sel { font-size: 8px; padding: 2px 5px; }
.sx-mci .sx-mv .rw { display: grid; grid-template-columns: 1fr auto; gap: 3px; }
.sx-mci .sx-mv .pv-b { font-size: 8px; padding: 2px 5px; }
.sx-mci { gap: 4px; font-size: 7px; line-height: 1.22; padding-top: 6px; }
.sx-mci .bx { padding: 4px 5px; }
.sx-mci .no { font-size: 11px; }
.sx-mci .sx-mv { gap: 2px; }
.sx-mci .sx-mv .sx-sel { padding: 1.5px 5px; font-size: 7.5px; }
.sx-mci { padding-bottom: 8px; }
.sx-mci .sx-mv { min-width: 0; }
.sx-mci .sx-mv .sx-sel { display: flex; width: 100%; box-sizing: border-box; min-width: 0; overflow: hidden; }
.sx-mci .sx-mv .rw { grid-template-columns: minmax(0, 1fr) auto; }
.sx-mci .sx-mv .rw .pv-b { display: grid; place-items: center; }
/* move-booking block: same height for every control, laid out right under the booking boxes */
.sx-mci .sx-mv { margin-top: 2px; display: flex; flex-direction: column; gap: 4px; }
.sx-mci .sx-mv .sx-sel { height: 18px; padding: 0 6px; font-size: 8px; border: 1px solid #ced4da; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box; background: #fff; color: #212529; box-shadow: none; }
.sx-mci .sx-mv .sx-sel.ph { color: #8a9099; }
.sx-mci .sx-mv small { font-size: 6.5px; line-height: 1; margin: 2px 0 -1px; color: #495057; }
.sx-mci .sx-mv .rw { display: flex; gap: 4px; }
.sx-mci .sx-mv .rw .sx-sel { flex: 1; min-width: 0; }
.sx-mci .sx-mv .rw .pv-b { height: 18px; width: 22px; padding: 0; display: grid; place-items: center; box-sizing: border-box; flex: none; font-size: 9px; }
/* forms (customer, booking, preferences) and the income report, as in the real application */
.sx-cards { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 8px; padding: 0 8px; }
.sx-card { border: 1px solid #dee2e6; border-radius: 4px; padding: 8px 10px; background: #fff; margin: 0 8px 7px; }
.sx-cards .sx-card { margin: 0; }
.sx-card h5 { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; color: #212529; display: flex; gap: 6px; align-items: center; }
.sx-card h5 i { color: #15428b; font-size: 10px; }
.sx-fg { display: grid; grid-template-columns: 82px minmax(0, 1fr) 82px minmax(0, 1fr); gap: 4px 8px; align-items: center; font-size: 8.5px; color: #333; }
.sx-fg.one { grid-template-columns: 82px minmax(0, 1fr); }
.sx-in { border: 1px solid #ced4da; border-radius: 3px; height: 17px; padding: 0 6px; display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 9px; color: #212529; background: #fff; white-space: nowrap; overflow: hidden; min-width: 0; }
.sx-in.ro { background: #e9ecef; }
.sx-in.ph { color: #8a9099; }
.sx-in.r { justify-content: flex-end; }
.sx-in.b { font-weight: 700; }
.sx-in .fa-caret-down { font-size: 7px; color: #555; }
.sx-in .ad { margin-left: -6px; align-self: stretch; display: flex; align-items: center; padding: 0 5px; border-right: 1px solid #ced4da; background: #f8f9fa; color: #333; font-size: 8px; }
.sx-in .ad + .ad { margin-left: 0; }
.sx-in .ad .fa-plus { color: #2e8b3e; } .sx-in .ad .fa-circle-xmark { color: #dc3545; }
.sx-in .br { margin-left: auto; margin-right: -6px; align-self: stretch; display: flex; align-items: center; padding: 0 6px; border-left: 1px solid #ced4da; background: #e9ecef; color: #555; font-size: 8px; }
.sx-chk { width: 9px; height: 9px; border: 1px solid #adb5bd; border-radius: 2px; display: inline-block; background: #fff; }
.sx-chk.on { background: #0d6efd; border-color: #0d6efd; position: relative; }
.sx-chk.on::after { content: ""; position: absolute; left: 2.5px; top: .5px; width: 2.5px; height: 5px; border: solid #fff; border-width: 0 1.2px 1.2px 0; transform: rotate(45deg); }
.sx-chk.gy { background: #e9ecef; border-color: #ced4da; }
.sx-sum div { display: flex; gap: 2px; font-size: 8.5px; padding: 3px 0; color: #333; }
.sx-sum div i { flex: 1; border-bottom: 1px dotted #888; margin-bottom: 3px; }
.sx-sum u { color: #333; }
.sx-acc { border: 1px solid #dee2e6; border-radius: 4px; padding: 5px 10px; margin: 0 8px 5px; font-size: 10px; font-weight: 700; display: flex; align-items: center; gap: 6px; color: #212529; }
.sx-acc > i:first-child { color: #15428b; font-size: 9.5px; }
.sx-acc .fa-circle-chevron-down { margin-left: auto; color: #212529; }
.sx-tabs2 { margin: 0 8px; border: 1px solid #dee2e6; border-bottom: 0; border-radius: 4px 4px 0 0; padding: 6px 10px 0; font-size: 8.5px; color: #6c757d; display: flex; flex-wrap: wrap; gap: 3px 12px; font-weight: 600; }
.sx-tabs2 span { padding-bottom: 4px; }
.sx-tabs2 small { font-weight: 400; font-size: 7px; }
.sx-tabs2 .on { color: #0d6efd; border-bottom: 2px solid #0d6efd; }
.sx-tabbody { margin: 0 8px 8px; border: 1px solid #dee2e6; border-top: 1px solid #dee2e6; border-radius: 0 0 4px 4px; padding: 6px 8px; }
.sx-tabbody .pv-tb { padding: 0 0 6px; }
.sx-boat { border: 1px solid #dee2e6; border-radius: 4px; padding: 6px 8px; font-size: 8.5px; line-height: 1.5; color: #212529; align-self: start; }
.sx-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
.sx-rf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px 8px; padding: 6px 8px 0; font-size: 8px; color: #333; }
.sx-rf .sx-in { margin-top: 2px; }
.sx-rtb { display: flex; align-items: center; gap: 10px; margin: 6px 8px 0; padding: 5px 4px; border-top: 1px solid #dee2e6; border-bottom: 1px solid #dee2e6; font-size: 9px; color: #555; }
.sx-rtb .pg { border: 1px solid #aaa; width: 22px; height: 13px; display: inline-block; }
.sx-rtb .zm { border: 1px solid #aaa; padding: 0 4px; font-size: 8px; display: inline-flex; gap: 10px; }
.sx-rtb .sr { border: 1px solid #aaa; width: 60px; height: 13px; display: inline-block; }
.sx-rtb .lk { color: #888; font-size: 8px; }
.sx-rep { padding: 6px 12px 8px; }
.sx-rep h4 { margin: 0; font-size: 15px; font-weight: 400; color: #000; font-family: Arial, sans-serif; }
.sx-rep h4 + small { display: block; font-size: 8px; font-weight: 700; margin: 1px 0 6px; font-family: monospace; color: #000; }
.sx-rep .pv-tbl.blue td { font-size: 8.5px; }
.sx-rep .pv-tbl.blue td:first-child { text-align: left; }
.sx-rep .pv-tbl.blue td.n { text-align: right; }
.sx-rep .pv-tbl.blue tr.tot td { text-align: right; }
.sx-rep .pv-tbl.blue tr.tot td:first-child { text-align: left; }
.sx-pie { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 8px; border: 1px solid #e3e7ec; padding: 6px 10px; }
.sx-pie h6 { grid-column: 1 / -1; margin: 0; text-align: center; font-size: 9px; color: #000; }
.sx-pie ul { list-style: none; margin: 0; padding: 0; font-size: 8px; display: grid; gap: 3px; }
.sx-pie li { display: flex; align-items: center; gap: 5px; }
.sx-pie li i { width: 12px; height: 8px; }
.sx-ttl { padding: 0 8px 7px; font-size: 9px; color: #212529; }
.pv-bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Reduced motion: no autoplay (showcase.js), no entrance animations ---------- */
@media (prefers-reduced-motion: reduce) {
    .sx-tab[aria-selected="true"] .sx-prog { animation: none; transform: scaleX(1); }
    .sx-scene.is-on [data-a], .sx-scene.is-on .ev, .sx-scene.is-on .pv-gb i, .sx-scene.is-on .pv-hb i, .sx-scene.is-on .sx-seats i, .sx-scene.is-on .sx-btns .go { animation: none; }
    .sx-intro .btn-outline-light:hover { transform: none; }
}
