/* The fake product screens drawn by partners-demo.js. Colours and proportions are copied from the
   real live map (Views/Map/Index.cshtml) and the Bootstrap admin pages, so a screenshot here reads
   as the product - because it is laid out as the product. Everything is scoped under .scd-screen. */

.scd-screen {
    position: relative; overflow: hidden; transform-origin: 0 0; background: #f4f6f8;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif; color: #212529; font-size: 14px; line-height: 1.35;
    text-align: left; -webkit-font-smoothing: antialiased;
}
.scd-screen * { box-sizing: border-box; }
.scd-screen .leaflet-container { font-family: inherit; background: #e9eef1; }
.scd-screen .scd-dark { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.6); }

/* ---- top bar ---- */
.scd-top { height: 50px; background: #12232e; color: #fff; display: flex; align-items: center; gap: 18px; padding: 0 14px; position: relative; z-index: 1200; }
.scd-logo { height: 30px; display: block; }
.scd-top nav { display: flex; gap: 17px; }
.scd-top nav span { color: #dfe7ee; font-size: 14.5px; white-space: nowrap; }
.scd-top nav span.on { color: #fff; font-weight: 700; }
.scd-top i { flex: 1; }
.scd-user { font-size: 13.5px; opacity: .9; }
.scd-out { color: #ff9aa6; font-size: 14.5px; }

.scd-body { display: flex; height: calc(100% - 50px); }
.scd-body.full { height: 100%; }
.scd-boot .scd-top { background: #212529; }

/* ---- side panel ---- */
.scd-side { width: 330px; flex: none; background: #f4f6f8; border-right: 1px solid #d7dde3; display: flex; flex-direction: column; z-index: 1100; }
.scd-search { margin: 10px; padding: 9px 11px; border: 1px solid #cbd3da; border-radius: 7px; background: #fff; color: #8a97a3; font-size: 14px; }
.scd-count { padding: 8px 12px; font-size: 13px; font-weight: 600; color: #37474f; background: #eef1f4; }
.scd-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 8px 12px; font-size: 11.5px; color: #4a5a67; background: #fff; border-bottom: 1px solid #e1e6ea; }
.scd-legend span { display: flex; align-items: center; gap: 5px; }
.scd-legend i, .scd-veh > i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); flex: none; }
.scd-tree { flex: 1; overflow: hidden; }
.scd-co { display: flex; justify-content: space-between; padding: 10px 12px; font-weight: 700; font-size: 14px; background: #e9edf1; border-bottom: 1px solid #dde3e8; }
.scd-co em { font-style: normal; font-weight: 400; color: #6b7a86; }
.scd-grp { padding: 7px 20px; font-size: 12.5px; font-weight: 600; color: #4a5a67; background: #eef1f4; border-bottom: 1px solid #e6eaee; }
.scd-veh { display: flex; align-items: center; gap: 10px; padding: 7px 22px; border-bottom: 1px solid #e6eaee; background: #fff; }
.scd-veh.on { background: #dceaf8; }
.scd-veh b { display: block; font-weight: 400; font-size: 14px; }
.scd-veh small { display: block; color: #8a97a3; font-size: 11.5px; }

/* ---- map ---- */
.scd-map { flex: 1; position: relative; overflow: hidden; }
.scd-mapel { position: absolute; inset: 0; }
.scd-mapctl { position: absolute; left: 12px; top: 12px; z-index: 1000; background: #fff; border: 2px solid rgba(0,0,0,.2); border-radius: 5px; }
.scd-mapctl b { display: block; width: 30px; height: 30px; text-align: center; line-height: 30px; font-size: 20px; color: #111; }
.scd-mapctl b + b { border-top: 1px solid #ccc; }
.scd-poi { position: absolute; left: 12px; top: 86px; z-index: 1000; background: #2e7d32; color: #fff; font-weight: 700; font-size: 12.5px; padding: 6px 10px; border-radius: 4px; border: 2px solid rgba(255,255,255,.6); }
.scd-layers { position: absolute; right: 12px; top: 12px; z-index: 1000; width: 44px; height: 44px; background: #fff; border-radius: 6px; box-shadow: 0 1px 5px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; }
.scd-ask { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 1000; background: #12222e; color: #ece400; border: 1px solid rgba(236,228,0,.55); border-right: 0; border-radius: 10px 0 0 10px; padding: 12px 8px; writing-mode: vertical-rl; font-weight: 800; font-size: 12px; letter-spacing: 2px; display: flex; gap: 6px; align-items: center; }
.scd-ask span { writing-mode: horizontal-tb; }
.scd-icon { background: none; border: 0; }
.scd-car.glow svg { filter: drop-shadow(0 0 6px #ff1744) drop-shadow(0 0 14px #ff1744); }
.scd-arrow { width: 26px; height: 26px; }
.scd-tag { position: absolute; left: 50%; bottom: 25px; transform: translateX(-50%); white-space: nowrap; font-weight: 800; font-size: 13px; text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 0 4px #fff; }

/* ---- info box (Leaflet popup) ---- */
.scd-popup .leaflet-popup-content-wrapper { border-radius: 10px; }
.scd-popup .leaflet-popup-content { margin: 12px 14px; font-size: 13.5px; min-width: 300px; }
.scd-info > div { margin: 1px 0; color: #212529; }
.scd-info .warn { color: #b5541c; font-weight: 700; margin: 4px 0; }
.scd-pill { font-size: 11px; padding: 1px 7px; border: 1px solid #cbd3da; border-radius: 10px; background: #f4f6f8; color: #37474f; }
.scd-pbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.scd-pb { width: calc(33.333% - 4px); height: 32px; display: flex; align-items: center; justify-content: center; text-align: center; background: #12232e; color: #fff; border-radius: 6px; font-size: 12px; font-weight: 600; padding: 0 4px; line-height: 1.1; }
.scd-pb.lock { background: #23a559; }
.scd-pb.lock.on { background: #e53935; }
.scd-pb.hi { box-shadow: 0 0 0 3px #ece400; }

/* ---- live tracking panel ---- */
.scd-lt { position: absolute; left: 10px; top: 10px; bottom: 10px; width: 270px; z-index: 1000; background: rgba(18,35,46,.95); color: #e6eef3; border-radius: 10px; padding: 12px 12px 8px; box-shadow: 0 6px 24px rgba(0,0,0,.4); overflow: hidden; }
.scd-lth { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.scd-lth span { font-weight: 400; font-size: 12.5px; }
.scd-lts { border: 1px solid #3a5566; background: #0e1c25; border-radius: 6px; padding: 6px 9px; color: #7d93a3; font-size: 13px; }
.scd-lt p { font-size: 11px; color: #a9bbc8; margin: 6px 0 8px; line-height: 1.35; }
.scd-lt p.ft { margin-top: 8px; }
.scd-tr { display: flex; align-items: center; gap: 9px; padding: 4px 2px; font-size: 13px; }
.scd-tr i { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.scd-tr.off i { border: 1px solid #50687a; }
.scd-tr b { flex: 1; font-weight: 600; }
.scd-tr em { font-style: normal; font-size: 11.5px; color: #a9bbc8; }
.scd-ltb { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.scd-ltb span { border: 1px solid #3a5566; border-radius: 6px; padding: 5px 9px; font-size: 12px; font-weight: 600; }
.scd-ltb span.g { background: #1f9d4d; border-color: #1f9d4d; }
.scd-back { position: absolute; right: 12px; top: 12px; z-index: 1000; background: #12232e; color: #ece400; border-radius: 7px; padding: 8px 13px; font-size: 13.5px; font-weight: 600; }
.scd-s-tracking .scd-layers { top: auto; bottom: 26px; }
.scd-s-tracking .scd-mapctl { left: auto; right: 12px; top: 64px; }
.scd-s-tracking .scd-poi { left: auto; right: 12px; top: 138px; }

/* ---- replay ---- */
.scd-dim { position: absolute; inset: 0; background: rgba(0,0,0,.55); z-index: 1500; }
.scd-rp { position: absolute; left: 4%; right: 4%; top: 60px; bottom: 40px; z-index: 1600; background: #fff; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.scd-rph { display: flex; justify-content: space-between; padding: 12px 14px; background: #12232e; color: #fff; font-weight: 600; font-size: 15px; }
.scd-rp .scd-mapel { position: relative; flex: 1; }
.scd-rpbar { background: #12232e; color: #fff; display: flex; align-items: center; gap: 9px; padding: 8px 12px; }
.scd-rpbar b { background: #21414f; width: 38px; height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-weight: 400; font-size: 14px; }
.scd-slider { flex: 1; height: 6px; background: #c9d3da; border-radius: 3px; position: relative; margin: 0 6px; }
.scd-slider i { position: absolute; left: 0; top: 0; bottom: 0; background: #1e88e5; border-radius: 3px; }
.scd-slider u { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #1e88e5; border: 2px solid #fff; }
.scd-rpbar .idx { font-size: 12px; opacity: .8; min-width: 54px; }
.scd-rpbar .sp { background: #21414f; padding: 5px 9px; border-radius: 7px; font-size: 12px; }
.scd-rpbar .sp.on { background: #ece400; color: #12232e; font-weight: 700; }
.scd-rpbar .md { background: #21414f; padding: 6px 11px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.scd-rpbar .tm { font-size: 12px; min-width: 150px; }
.scd-rptip { font-size: 12.5px; line-height: 1.45; padding: 6px 9px; }
.scd-rptip .m { color: #1e88e5; font-weight: 700; }

/* ---- alarm toast ---- */
.scd-toast { position: absolute; left: 50%; top: 16px; transform: translate(-50%, -140%); z-index: 1300; width: min(640px, 80%); background: #fff; border-left: 6px solid #e53935; border-radius: 9px; box-shadow: 0 10px 30px rgba(0,0,0,.35); padding: 12px 16px; transition: transform .35s ease; }
.scd-toast.on { transform: translate(-50%, 0); }
.scd-toast b { display: block; color: #b3261e; font-size: 15px; margin-bottom: 3px; }
.scd-toast span { font-size: 13.5px; color: #37474f; }

/* ---- control box ---- */
.scd-ctl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1600; width: 380px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.scd-ctlh { display: flex; justify-content: space-between; padding: 12px 14px; background: #12232e; color: #fff; font-weight: 600; font-size: 15px; }
.scd-ctlh span { font-size: 22px; line-height: .8; }
.scd-ctlb { padding: 16px 14px; }
.scd-cb { padding: 12px; margin-bottom: 10px; border-radius: 8px; font-size: 15px; font-weight: 600; color: #fff; text-align: center; transition: transform .1s; }
.scd-cb.cut { background: #e53935; }
.scd-cb.restore { background: #23a559; }
.scd-cb.press { transform: scale(.96); filter: brightness(.9); }
.scd-st { min-height: 0; font-size: 13px; padding: 0; border-radius: 6px; }
.scd-st.wait { background: #fff5e0; color: #8a6d1a; padding: 8px 10px; }
.scd-st.ok { background: #e7f6ec; color: #1c7a3f; padding: 8px 10px; font-weight: 600; }
.scd-io { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font-size: 12px; color: #2b3a46; font-weight: 600; }
.scd-lamp { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.3); background: radial-gradient(circle at 34% 30%, #ff8a80, #c62828 62%); }
.scd-lamp.on { background: radial-gradient(circle at 34% 30%, #a5f5b8, #1e8e3e 62%); box-shadow: 0 0 8px rgba(35,165,89,.7); }
.scd-lamp.busy { background: radial-gradient(circle at 34% 30%, #ffe08a, #f5b301 62%); }
.scd-note { margin-top: 8px; font-size: 11.5px; color: #8a97a3; line-height: 1.4; }
.scd-note.b { color: #37474f; font-weight: 600; }
.scd-cursor { position: absolute; z-index: 5000; pointer-events: none; opacity: 0; }
.scd-cursor i { position: absolute; left: -14px; top: -14px; width: 32px; height: 32px; border-radius: 50%; border: 3px solid #ece400; opacity: 0; }
.scd-cursor.click i { opacity: 1; }

/* ---- cards over the map (fences, POI visits) ---- */
.scd-card { position: absolute; z-index: 1000; background: #fff; border-radius: 10px; box-shadow: 0 6px 26px rgba(0,0,0,.28); padding: 14px 16px; }
.scd-card h4 { margin: 0 0 10px; font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.scd-card h4 span { background: #0d6efd; color: #fff; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 6px; }
.scd-card h4 small { font-size: 12.5px; color: #6b7a86; font-weight: 400; }
.scd-card table { border-collapse: collapse; width: 100%; font-size: 13px; }
.scd-card th { text-align: left; border-bottom: 2px solid #212529; padding: 6px 8px; white-space: nowrap; }
.scd-card td { border-bottom: 1px solid #dee2e6; padding: 6px 8px; white-space: nowrap; }
.scd-card td i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; }
.scd-card td b { background: #198754; color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 4px; }
.scd-card p { font-size: 11.5px; color: #6b7a86; margin: 9px 0 0; }
.scd-fl { right: 16px; bottom: 30px; }
.scd-visits { right: 16px; top: 70px; }
.scd-visits tr { transition: opacity .3s; }
.scd-poitip { font-weight: 700; font-size: 12px; }

/* ---- alerts: phone + e-mail ---- */
.scd-alerts { position: absolute; inset: 0; background: linear-gradient(135deg, #0b1a24 0%, #12303f 100%); display: flex; align-items: center; justify-content: center; gap: 46px; padding: 30px 40px 80px; }
.scd-phone { width: 340px; height: min(660px, calc(100% - 100px)); flex: none; background: #0a0a0a; border-radius: 44px; padding: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 0 0 2px #333; position: relative; }
.scd-notch { position: absolute; left: 50%; top: 12px; width: 120px; height: 24px; background: #0a0a0a; border-radius: 0 0 14px 14px; transform: translateX(-50%); z-index: 3; }
.scd-wa { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #efe7dd; display: flex; flex-direction: column; }
.scd-wah { background: #075e54; color: #fff; padding: 36px 14px 10px; display: flex; align-items: center; gap: 10px; }
.scd-wah .av { width: 36px; height: 36px; border-radius: 50%; background: #ece400; color: #12232e; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.scd-wah b { display: block; font-size: 15px; }
.scd-wah small { font-size: 11.5px; opacity: .8; }
.scd-wac { flex: 1; overflow: hidden; padding: 10px 10px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.scd-wa-b { background: #fff; border-radius: 0 9px 9px 9px; padding: 7px 9px 5px; font-size: 12.3px; line-height: 1.35; color: #111; box-shadow: 0 1px 1px rgba(0,0,0,.12); max-width: 92%; display: none; word-break: break-word; }
.scd-wa-b.on { display: block; }
.scd-wa-b u { color: #027eb5; text-decoration: none; }
.scd-wa-b em { display: block; text-align: right; font-style: normal; font-size: 10.5px; color: #8a97a3; margin-top: 2px; }
.scd-wa-b em { color: #34b7f1; }
.scd-mail { width: 560px; flex: none; background: #f4f6f8; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); opacity: 0; transform: translateY(20px); transition: all .5s ease; }
.scd-mail.on { opacity: 1; transform: none; }
.scd-mailbar { background: #fff; padding: 12px 18px; border-bottom: 1px solid #e1e6ea; }
.scd-mailbar b { display: block; font-size: 15px; color: #12232e; }
.scd-mailbar small { color: #6b7a86; font-size: 12px; }
.scd-mailbody { margin: 18px; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e1e6ea; }
.scd-mailbody .lg { background: #000; padding: 12px 20px; }
.scd-mailbody .lg img { height: 28px; display: block; }
.scd-mailbody .red { background: #e53935; color: #fff; padding: 10px 20px; font-weight: 600; font-size: 14px; }
.scd-mailbody .in { padding: 18px 20px; }
.scd-mailbody h5 { margin: 0 0 6px; font-size: 18px; color: #12232e; }
.scd-mailbody p { margin: 0 0 12px; color: #37474f; font-size: 14px; line-height: 1.5; }
.scd-mailbody p.mu { color: #6b7a86; font-size: 12.5px; }
.scd-mailbody .b { display: inline-block; background: #12232e; color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 13.5px; font-weight: 600; margin: 0 8px 4px 0; }
.scd-mailbody .b.g { background: #23a559; }
.scd-mailbody .ft { padding: 12px 20px; background: #f4f6f8; color: #8a97a3; font-size: 11.5px; border-top: 1px solid #eef1f4; }
.scd-chips { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 30px; }
.scd-chips span { background: rgba(236,228,0,.12); border: 1px solid rgba(236,228,0,.6); color: #ece400; border-radius: 20px; padding: 6px 13px; font-size: 13px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: all .3s; }
.scd-chips span.on { opacity: 1; transform: none; }

/* ---- report pages (Bootstrap look) ---- */
.scd-boot { position: absolute; inset: 0; background: #fff; }
.scd-page { padding: 22px 34px; }
.scd-rh { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.scd-rh h2 { margin: 0 0 4px; font-size: 26px; font-weight: 500; }
.scd-rh p { margin: 0; color: #6c757d; font-size: 14px; }
.scd-rh .btns { display: flex; gap: 8px; flex: none; }
.scd-rh .btns span { border: 1px solid #6c757d; color: #6c757d; border-radius: 6px; padding: 7px 12px; font-size: 14px; white-space: nowrap; }
.scd-rh .btns span.g { border-color: #198754; color: #198754; }
.scd-rh .btns span.p { background: #0d6efd; border-color: #0d6efd; color: #fff; }
.scd-page h3 { font-size: 19px; margin: 6px 0 8px; font-weight: 600; }
.scd-page h3 small { color: #6c757d; font-weight: 400; font-size: 14px; margin-left: 6px; }
.scd-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.scd-tbl th { text-align: left; padding: 8px 7px; border-bottom: 2px solid #212529; white-space: nowrap; }
.scd-tbl td { padding: 7px; border-bottom: 1px solid #dee2e6; vertical-align: top; transition: opacity .25s; }
.scd-tbl tr:nth-child(even) td { background: #f8f9fa; }
.scd-tbl .r { text-align: right; white-space: nowrap; }
.scd-tbl u { color: #0d6efd; text-decoration: none; white-space: nowrap; }
.scd-tbl tr.tot td { font-weight: 700; border-top: 2px solid #212529; background: #fff; }
.scd-tbl .tag { background: #fdecea; color: #b3261e; border-radius: 4px; padding: 2px 7px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.scd-tbl .ok { color: #198754; font-weight: 600; }

/* ---- assistant drawer ---- */
.scd-askp { position: absolute; right: 0; top: 0; bottom: 0; width: 400px; z-index: 1600; background: #12222e; color: #dcecf5; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.5); }
.scd-askh { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.scd-askh b { color: #ece400; font-size: 16px; }
.scd-askh span { font-size: 11px; background: #1e3a4a; padding: 3px 8px; border-radius: 4px; letter-spacing: 1px; }
.scd-askh i { margin-left: auto; font-style: normal; font-size: 20px; }
.scd-askc { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.scd-askc small { font-size: 10.5px; letter-spacing: 1px; color: #8fa6b8; }
.scd-askc .a { background: #1c3947; padding: 10px 13px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.scd-askc .u { align-self: flex-end; background: #1f9d4d; color: #fff; padding: 10px 13px; border-radius: 10px; font-size: 14px; max-width: 85%; }
.scd-askf { display: flex; gap: 8px; padding: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.scd-askf span { flex: 1; background: #0e1c25; border: 1px solid #3a5566; border-radius: 7px; padding: 9px 11px; color: #7d93a3; font-size: 13px; }
.scd-askf b { background: #1f9d4d; color: #fff; padding: 9px 16px; border-radius: 7px; }

/* Filming (manual/capture/partner-video): every frame is set by time, so nothing may move on the
   browser's own clock - a transition would land differently in every render. */
.scd-film *, .scd-film *::before, .scd-film *::after { transition: none !important; animation: none !important; }
