/* Platform owner console and licensee branding (module 08). */

/* KPI cards with a sparkline along the bottom (owner console, preview 3) */
.ow-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ow-kpis .ct-kpi { min-height: 124px; padding-bottom: 34px; border-radius: 6px; }
.ow-kpis .ct-kpi em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ow-kpis .ct-kpi .ow-spark { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 22px; opacity: .95; }
.ow-kpis .ct-kpi .ow-spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ow-kpis .ct-kpi .ow-spark path { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ow-kpis .ct-kpi .ow-spark path.fill { fill: rgba(255, 255, 255, .16); stroke: none; }
.ow-kpis .ct-kpi .ow-spark i { position: absolute; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); transform: translateY(-50%); }

/* filter bar */
.ow-bar { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; box-shadow: var(--shadow); }
.ow-bar .lbl { font-size: 11px; font-weight: 700; color: #3d5166; text-transform: uppercase; letter-spacing: .04em; }
.ow-bar .grp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ow-bar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ow-bar .live { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }

/* section header */
.ow-sect { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; }
.ow-sect .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7b5ad8, #3b1d9e); flex: none; }
.ow-sect.blue .ic { background: linear-gradient(135deg, #1d4f8f, #071d42); }
.ow-sect h2 { margin: 0; font-size: 16.5px; }
.ow-sect p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.ow-sect .rule { flex: 1; height: 1px; background: linear-gradient(90deg, #cbd7e3, rgba(203, 215, 227, 0)); }

/* licensee avatar and module chips */
.ow-av { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; color: #fff; font-size: 11.5px; font-weight: 700; flex: none; }
.ow-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ow-who b { display: block; }
.ow-chips { display: flex; flex-wrap: wrap; gap: 3px; max-width: 260px; }
.ow-chips span { font-size: 10.5px; font-weight: 700; color: #2f5f88; background: #eaf2f9; border-radius: 4px; padding: 1px 6px; }
.ow-meter { min-width: 150px; }
.ow-meter .track { height: 6px; background: #e8eef4; border-radius: 99px; overflow: hidden; }
.ow-meter .track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #13b985, #04955d); }
.ow-meter.warn .track span { background: linear-gradient(90deg, #f8ad26, #ed9200); }
.ow-meter.bad .track span { background: linear-gradient(90deg, #f0294e, #c50039); }
.ow-meter .top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.ow-meter small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.ow-note { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #34587e; background: #f2f7fc; border: 1px solid #dbe7f3; border-radius: 6px; padding: 8px 12px; margin: 10px 12px; }

/* service status list */
.ow-svc { display: flex; flex-direction: column; gap: 6px; }
.ow-svc > div { display: flex; align-items: center; gap: 10px; border: 1px solid #eef2f6; border-radius: 8px; padding: 8px 10px; }
.ow-svc .dot { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; flex: none; background: var(--okBg); color: var(--okFg); }
.ow-svc .dot.degraded { background: var(--warnBg); color: var(--warnFg); }
.ow-svc .dot.down { background: var(--badBg); color: var(--badFg); }
.ow-svc b { flex: 1; font-size: 13px; }
.ow-svc span { font-size: 12px; color: var(--text2, #4a6079); text-align: right; }

/* footer strip */
.ow-strip { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: #4a6079; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.ow-strip span { display: inline-flex; align-items: center; gap: 6px; }
.ow-strip .r { margin-left: auto; color: var(--muted); }
.ow-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #13b985; }
.ow-dot.warn { background: #f5a524; } .ow-dot.bad { background: #e8365d; }

/* wizard steps */
.ow-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ow-steps a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #d6e0ea; border-radius: 999px; font-size: 12px; font-weight: 700; color: #34587e; background: #fff; }
.ow-steps a.done { background: var(--okBg); color: var(--okFg); border-color: #b9dfce; }
.ow-steps a.on { background: #0b6bc8; color: #fff; border-color: #0b6bc8; }
.ow-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #eef2f6; }
.ow-check:last-child { border-bottom: 0; }
.ow-check i { font-size: 16px; }
.ow-check .ok { color: var(--okFg); } .ow-check .no { color: var(--badFg); } .ow-check .soft { color: var(--warnFg); }

/* branding live preview */
.ow-preview { border: 1px solid #d6e0ea; border-radius: 10px; overflow: hidden; background: #f6f8fb; }
.ow-preview .top { background: var(--pv-primary, #0b3a6e); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.ow-preview .top img { max-height: 28px; max-width: 150px; background: #fff; border-radius: 4px; padding: 2px 4px; }
.ow-preview .top b { font-size: 15px; }
.ow-preview .body { padding: 16px; display: grid; gap: 10px; }
.ow-preview .card { background: #fff; border-radius: 8px; border: 1px solid #e3e9f0; padding: 12px; }
.ow-preview .btn { display: inline-block; background: var(--pv-accent, #0b6bc8); color: #fff; border-radius: 6px; padding: 8px 14px; font-weight: 700; font-size: 13px; }
.ow-preview .mail { font-size: 12px; color: #4a6079; border-top: 1px dashed #d6e0ea; padding-top: 8px; }
.ow-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; border: 1px solid rgba(0, 0, 0, .1); }

/* public status page */
.st-wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px 40px; display: grid; gap: 14px; }
.st-banner { border-radius: 10px; padding: 16px 18px; color: #fff; font-weight: 700; font-size: 16px; display: flex; gap: 10px; align-items: center; background: linear-gradient(135deg, #13b985, #04955d); }
.st-banner.degraded { background: linear-gradient(135deg, #f8ad26, #ed9200); }
.st-banner.down { background: linear-gradient(135deg, #f0294e, #c50039); }
.st-bars { display: flex; gap: 2px; height: 26px; align-items: stretch; }
.st-bars span { flex: 1; border-radius: 2px; background: #13b985; }
.st-bars span.warn { background: #f5a524; } .st-bars span.bad { background: #e8365d; }

@media (max-width: 1100px) { .ow-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ow-kpis { grid-template-columns: minmax(0, 1fr); } .ow-bar .right { margin-left: 0; } .ow-strip .r { margin-left: 0; } }

/* licensee record, plans, services */
.ow-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line, #d6e0ea); border-radius: 4px; padding: 12px 14px; }
.ow-head h2 { margin: 0; font-size: 18px; }
.ow-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.ow-head .right { margin-left: auto; display: flex; gap: 6px; }
.ow-head .ow-av { width: 40px; height: 40px; font-size: 14px; }
.ow-plan { padding: 8px 0; border-bottom: 1px solid #eef2f6; font-size: 13px; }
.ow-plan:last-child { border-bottom: 0; }
.ow-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ow-mod { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border: 1px solid #d6e0ea; border-radius: 4px; background: #fff; cursor: pointer; }
.ow-mod input { margin-top: 3px; accent-color: #0a6fd2; }
.ow-mod b { display: block; font-size: 13px; }
.ow-mod small { color: var(--muted); font-size: 11.5px; }
.ow-mod.off { opacity: .55; cursor: not-allowed; }
.ow-msg { border: 1px solid #e3e9ef; border-radius: 4px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.ow-msg.platform { background: #f2f8ff; border-color: #cfe2f6; }
.ow-msg.internal { background: #fff8e6; border-color: #f0dca8; }
.ow-msg header { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ow-msg p { margin: 0; white-space: pre-line; }
@media (max-width: 640px) { .ow-head .right { margin-left: 0; } }

/* Public money transfer site: delivery method picker and destination grid */
.pub-calc .ps-methods { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-calc .ps-methods label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #b9c8d6; border-radius: 4px; padding: 6px 10px; font-size: 12.5px; cursor: pointer; background: #fff; }
.pub-calc .ps-methods label.on, .pub-calc .ps-methods label:has(input:checked) { border-color: var(--brand, #0a6fd2); box-shadow: inset 0 0 0 1px var(--brand, #0a6fd2); font-weight: 700; }
.pub-calc .ps-methods input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pub-calc .ps-methods label:focus-within { outline: 2px solid var(--brand, #0a6fd2); outline-offset: 2px; }
.pub-calc .breakdown .big b { font-size: 18px; color: var(--text); }
.pub-calc .ct-btn.block { width: 100%; justify-content: center; margin-top: 8px; }
.ps-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.ps-countries a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; color: var(--text); box-shadow: var(--shadow); }
.ps-countries a:hover { border-color: #8fb6dc; }
.ps-countries .flag { grid-row: span 2; font-size: 26px; line-height: 1; }
.ps-countries small { color: var(--muted); font-size: 11.5px; }
