/* Cheaply Remote UI v2. This file is independent of MeshCentral styles. */
:root {
  --c2-bg: #f4f6fa;
  --c2-surface: #fff;
  --c2-ink: #1d2636;
  --c2-muted: #687386;
  --c2-border: #e1e6ef;
  --c2-blue: #245be5;
  --c2-blue-dark: #173da8;
  --c2-rail: #12268d;
  --c2-rail-2: #1f42c9;
  --c2-success: #17935b;
  --c2-shadow: 0 12px 32px rgb(16 31 64 / 8%);
  --c2-radius: 12px;
  --c2-font: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
body.cheaply-v2-enabled {
  margin: 0 !important; min-width: 320px !important; overflow: hidden !important;
  background: var(--c2-bg) !important; color: var(--c2-ink) !important;
  font-family: var(--c2-font) !important;
}
body.cheaply-v2-enabled > #container,
body.cheaply-v2-enabled > #masthead,
body.cheaply-v2-enabled > #page_leftbar,
body.cheaply-v2-enabled > #topbar,
body.cheaply-v2-enabled > #footer,
body.cheaply-v2-enabled #notificationPanel,
body.cheaply-v2-enabled #notifiyBox { display: none !important; }
#cheaplyV2App {
  display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: 72px minmax(0, 1fr);
  width: 100vw; height: 100vh; background: var(--c2-bg); color: var(--c2-ink);
  font: 14px/1.45 var(--c2-font); isolation: isolate;
}
#cheaplyV2App *, #cheaplyV2App *::before, #cheaplyV2App *::after { box-sizing: border-box; }
.cheaply-v2-header {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; min-width: 0;
  padding: 0 30px 0 24px; background: var(--c2-surface); border-bottom: 1px solid var(--c2-border);
}
.cheaply-v2-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 248px; padding: 0; border: 0; background: transparent; color: var(--c2-ink); cursor: pointer; font: 700 19px/1 var(--c2-font); }
.cheaply-v2-brand-mark { width: 36px; height: 36px; border-radius: 10px; background: #0c111b url('/images/cheaply-logo.png') center/cover no-repeat; box-shadow: 0 0 0 1px rgb(36 91 229 / 14%); }
.cheaply-v2-search { display: inline-flex; align-items: center; gap: 11px; width: min(420px, 42vw); height: 42px; margin-inline: auto; padding: 0 13px; border: 1px solid #aeb7c8; border-radius: 9px; background: #fff; color: var(--c2-muted); cursor: pointer; font: 500 14px/1 var(--c2-font); text-align: left; }
.cheaply-v2-search:hover, .cheaply-v2-search:focus-visible { border-color: var(--c2-blue); box-shadow: 0 0 0 3px rgb(36 91 229 / 12%); outline: 0; }
.cheaply-v2-search kbd { margin-left: auto; padding: 4px 6px; border: 1px solid var(--c2-border); border-radius: 5px; color: var(--c2-muted); background: #f8f9fb; font: 12px/1 var(--c2-font); }
.cheaply-v2-utilities { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.cheaply-v2-icon-button, .cheaply-v2-account { border: 0; background: transparent; color: var(--c2-muted); cursor: pointer; }
.cheaply-v2-icon-button { width: 36px; height: 36px; border-radius: 8px; font-size: 16px; }
.cheaply-v2-icon-button:hover, .cheaply-v2-icon-button:focus-visible { background: #eef2ff; color: var(--c2-blue); outline: 0; }
.cheaply-v2-account { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0 4px 7px; font: 600 13px/1 var(--c2-font); }
.cheaply-v2-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #8054c7; color: #fff; font-size: 14px; }
.cheaply-v2-sidebar { grid-row: 2; display: flex; flex-direction: column; gap: 4px; min-height: 0; padding: 24px 14px; background: var(--c2-rail); color: #dfe7ff; }
.cheaply-v2-sidebar-label { padding: 0 12px 9px; color: #9aadee; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.cheaply-v2-nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #dce5ff; cursor: pointer; font: 600 14px/1 var(--c2-font); text-align: left; }
.cheaply-v2-nav-item:hover, .cheaply-v2-nav-item:focus-visible { background: rgb(255 255 255 / 10%); color: #fff; outline: 0; }
.cheaply-v2-nav-item.is-active { background: var(--c2-rail-2); color: #fff; box-shadow: 0 7px 18px rgb(4 17 76 / 28%); }
.cheaply-v2-nav-item.cheaply-v2-version { color: #b8c6f0; font-size: 12px; }
.cheaply-v2-sidebar-spacer { flex: 1 1 auto; }
.cheaply-v2-main { grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; overflow: auto; padding: 34px 42px 42px; }
.cheaply-v2-page { width: min(1320px, 100%); margin: 0 auto; }
.cheaply-v2-page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.cheaply-v2-eyebrow { margin: 0 0 6px; color: var(--c2-blue); font-size: 11px; font-weight: 760; letter-spacing: .13em; }
.cheaply-v2-page h1 { margin: 0; color: var(--c2-ink); font-size: clamp(26px, 3vw, 34px); font-weight: 720; letter-spacing: -.04em; }
.cheaply-v2-subtitle { margin: 7px 0 0; color: var(--c2-muted); font-size: 14px; }
.cheaply-v2-page-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.cheaply-v2-button, .cheaply-v2-primary, .cheaply-v2-secondary, .cheaply-v2-card-action { min-height: 36px; padding: 0 13px; border: 1px solid var(--c2-border); border-radius: 8px; background: var(--c2-surface); color: var(--c2-ink); cursor: pointer; font: 650 13px/1 var(--c2-font); }
.cheaply-v2-button:hover, .cheaply-v2-secondary:hover, .cheaply-v2-card-action:hover { border-color: var(--c2-blue); color: var(--c2-blue); }
.cheaply-v2-primary { border-color: var(--c2-blue); background: var(--c2-blue); color: #fff; box-shadow: 0 5px 12px rgb(36 91 229 / 18%); }
.cheaply-v2-primary:hover { background: var(--c2-blue-dark); }
.cheaply-v2-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
.cheaply-v2-stat { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid var(--c2-border); border-radius: var(--c2-radius); background: var(--c2-surface); box-shadow: var(--c2-shadow); }
.cheaply-v2-stat span { color: var(--c2-muted); font-size: 12px; font-weight: 600; }.cheaply-v2-stat strong { color: var(--c2-ink); font-size: 24px; font-weight: 720; }
.cheaply-v2-device-group { margin-top: 26px; }.cheaply-v2-device-group h2 { margin: 0 0 10px; color: var(--c2-ink); font-size: 15px; font-weight: 700; }
.cheaply-v2-device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.cheaply-v2-device-card { display: flex; flex-direction: column; gap: 13px; min-width: 0; padding: 17px; border: 1px solid var(--c2-border); border-radius: var(--c2-radius); background: var(--c2-surface); color: var(--c2-ink); box-shadow: var(--c2-shadow); cursor: pointer; text-align: left; transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease; }
.cheaply-v2-device-card:hover, .cheaply-v2-device-card:focus-visible { border-color: #96aeea; box-shadow: 0 14px 30px rgb(16 31 64 / 13%); outline: 0; transform: translateY(-1px); }
.cheaply-v2-device-card-head { display: flex; align-items: center; gap: 11px; min-width: 0; }.cheaply-v2-device-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: #eef1f6; color: #7d899b; font-size: 18px; }.cheaply-v2-device-avatar.is-online { background: #e6f6ee; color: var(--c2-success); }
.cheaply-v2-device-title { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 3px; }.cheaply-v2-device-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }.cheaply-v2-device-title small { color: var(--c2-muted); font-size: 12px; }
.cheaply-v2-status { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-height: 24px; padding: 0 8px; border-radius: 999px; background: #f2f4f7; color: #697586; font-size: 11px; font-weight: 700; }.cheaply-v2-status.is-online { background: #e6f6ee; color: var(--c2-success); }.cheaply-v2-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.cheaply-v2-device-group { color: var(--c2-muted); font-size: 12px; }
.cheaply-v2-card-actions { display: flex; gap: 6px; border-top: 1px solid #edf0f4; padding-top: 12px; }.cheaply-v2-card-action { min-height: 30px; padding: 0 9px; font-size: 12px; }.cheaply-v2-card-action:disabled { cursor: not-allowed; opacity: .45; }
.cheaply-v2-empty, .cheaply-v2-content-card { padding: 26px; border: 1px solid var(--c2-border); border-radius: var(--c2-radius); background: var(--c2-surface); box-shadow: var(--c2-shadow); }.cheaply-v2-content-card h2 { margin: 0 0 8px; font-size: 18px; }.cheaply-v2-muted { max-width: 720px; color: var(--c2-muted); }
.cheaply-v2-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }.cheaply-v2-page-grid .cheaply-v2-content-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 178px; }.cheaply-v2-card-kicker { margin: 0 0 9px; color: var(--c2-blue); font-size: 11px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }.cheaply-v2-page-grid h2 { flex: 1; color: var(--c2-ink); font-size: 15px; font-weight: 600; line-height: 1.45; }
.cheaply-v2-session-tabs { display: flex; gap: 3px; margin-bottom: 18px; border-bottom: 1px solid var(--c2-border); }.cheaply-v2-session-tab { min-height: 42px; padding: 0 15px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--c2-muted); cursor: pointer; font: 650 13px/1 var(--c2-font); }.cheaply-v2-session-tab:hover, .cheaply-v2-session-tab.is-active { border-bottom-color: var(--c2-blue); color: var(--c2-blue); }.cheaply-v2-native-host { min-height: 540px; overflow: auto; border: 1px solid var(--c2-border); border-radius: var(--c2-radius); background: var(--c2-surface); box-shadow: var(--c2-shadow); }.cheaply-v2-native-content { width: 100% !important; max-width: none !important; padding: 22px !important; background: var(--c2-surface) !important; color: var(--c2-ink) !important; }
.cheaply-v2-icon { display: inline-block; width: 19px; height: 19px; flex: 0 0 19px; border: 1.7px solid currentColor; border-radius: 5px; opacity: .9; }.cheaply-v2-icon-search { width: 14px; height: 14px; border-radius: 50%; }.cheaply-v2-icon-layers { border-radius: 3px; }
@media (max-width: 900px) { #cheaplyV2App { grid-template-columns: 72px minmax(0, 1fr); }.cheaply-v2-sidebar { padding-inline: 8px; }.cheaply-v2-sidebar-label, .cheaply-v2-nav-item span { display: none; }.cheaply-v2-nav-item { justify-content: center; padding: 0; }.cheaply-v2-brand { min-width: 0; }.cheaply-v2-brand-name { display: none; }.cheaply-v2-header { padding-inline: 14px; gap: 12px; }.cheaply-v2-search { width: min(360px, 52vw); }.cheaply-v2-main { padding: 24px 18px; } }
@media (max-width: 980px) { .cheaply-v2-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { #cheaplyV2App { grid-template-columns: 1fr; grid-template-rows: 64px minmax(0, 1fr) 62px; }.cheaply-v2-header { grid-column: 1; }.cheaply-v2-sidebar { grid-row: 3; grid-column: 1; flex-direction: row; align-items: center; justify-content: space-around; padding: 8px; }.cheaply-v2-sidebar-spacer, .cheaply-v2-sidebar-label, .cheaply-v2-version { display: none; }.cheaply-v2-nav-item { width: 44px; min-height: 44px; }.cheaply-v2-main { grid-column: 1; grid-row: 2; padding: 20px 14px; }.cheaply-v2-page-intro { align-items: flex-start; flex-direction: column; }.cheaply-v2-summary { gap: 8px; }.cheaply-v2-stat { padding: 12px; }.cheaply-v2-stat strong { font-size: 20px; }.cheaply-v2-device-grid, .cheaply-v2-page-grid { grid-template-columns: 1fr; }.cheaply-v2-search { display: none; }.cheaply-v2-brand { margin-right: auto; } }
@media (prefers-reduced-motion: reduce) { #cheaplyV2App * { scroll-behavior: auto !important; transition: none !important; } }
