/* SemeCloud skin for the CWP user panel. Loaded last, on top of the official Inspinia theme.
   Tokens mirror templates/semecloud/css/custom.css (WHMCS). */

@font-face { font-family: "Jakarta"; src: url("../fonts/semecloud/jakarta-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/semecloud/jakarta-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/semecloud/jakarta-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/semecloud/jakarta-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/semecloud/jakarta-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --sc-blue: #1062fe;
  --sc-blue-700: #0940b3;
  --sc-navy: #071d5c;
  --sc-navy-2: #0a2a8a;
  --sc-orange: #ff9800;
  --sc-orange-600: #f08400;
  --sc-ink: #172033;
  --sc-text: #3b4458;
  --sc-muted: #6b7489;
  --sc-line: #e4e8f0;
  --sc-bg: #f5f7fb;
  --sc-tint: #eaf1ff;
  --sc-success: #12a150;
  --sc-danger: #d93a3a;
  --sc-radius: 16px;
  --sc-radius-sm: 10px;
  --sc-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --sc-shadow-lg: 0 24px 60px rgba(7, 29, 92, .18);
  --sc-grad: linear-gradient(135deg, #071d5c 0%, #0a2a8a 45%, #1062fe 100%);
  --sc-font: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sc-side-w: 256px;
  --sc-surface: #fff;
  --sc-surface-2: #f8faff;
}
/* Dark mode: CWP swaps its stylesheet to dark.css; our tokens follow (class set by semecloud.js). */
body.sc-cwp.sc-dark {
  --sc-surface: #131b2f;
  --sc-surface-2: #182238;
  --sc-bg: #0b1222;
  --sc-ink: #e8edf7;
  --sc-text: #c3cbdb;
  --sc-muted: #8e98ae;
  --sc-line: #263250;
  --sc-tint: #172a55;
  --sc-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}
body.sc-cwp.sc-dark .form-control, body.sc-cwp.sc-dark select.form-control { background-color: var(--sc-surface-2); color: var(--sc-ink); border-color: var(--sc-line); }
body.sc-cwp.sc-dark .table > tbody > tr > td { color: var(--sc-text); }
body.sc-cwp.sc-dark .table-striped > tbody > tr:nth-of-type(odd), body.sc-cwp.sc-dark .table-hover > tbody > tr:hover { background: var(--sc-surface-2); }
body.sc-cwp.sc-dark .navbar-static-top { background: rgba(19, 27, 47, .94); }
body.sc-cwp.sc-dark .dropdown-menu, body.sc-cwp.sc-dark .modal-content { background: var(--sc-surface); color: var(--sc-text); }
body.sc-cwp.sc-dark .sc-tip { background: #2a2111; border-color: #5c4313; }
body.sc-cwp.sc-dark .sc-tip p { color: #e6cfa6; }
body.sc-cwp.sc-dark .sc-tip-title { color: #ffc266; }

/* ---------- Base ---------- */
body.sc-cwp, body.sc-cwp .tooltip, body.sc-cwp .popover, body.sc-cwp #toast-container { font-family: var(--sc-font); }
body.sc-cwp { color: var(--sc-text); background: var(--sc-bg); font-size: 14px; -webkit-font-smoothing: antialiased; }
body.sc-cwp h1, body.sc-cwp h2, body.sc-cwp h3, body.sc-cwp h4, body.sc-cwp h5, body.sc-cwp h6 { font-family: var(--sc-font); color: var(--sc-ink); font-weight: 700; letter-spacing: -.01em; }
body.sc-cwp a { color: var(--sc-blue); }
body.sc-cwp a:hover { color: var(--sc-blue-700); text-decoration: none; }
body.sc-cwp ::selection { background: var(--sc-orange); color: #fff; }
body.sc-cwp #wrapper, body.sc-cwp .gray-bg, body.sc-cwp #page-wrapper { background: var(--sc-bg); }
body.sc-cwp .sc-ic { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }

/* ---------- Sidebar: white, grouped, pill navigation ---------- */
body.sc-cwp .navbar-static-side { width: var(--sc-side-w); background: var(--sc-surface); border-right: 1px solid var(--sc-line); z-index: 2001; }
body.sc-cwp:not(.mini-navbar) #page-wrapper { margin-left: var(--sc-side-w); }
body.sc-cwp .sidebar-collapse { padding-bottom: 24px; }
body.sc-cwp .nav-header { background: var(--sc-surface); background-image: none; padding: 22px 22px 16px; border-bottom: 0; }
body.sc-cwp .nav-header #logomenu { width: 150px; height: auto; margin: 0 !important; display: block; }
body.sc-cwp .logo-element { color: var(--sc-orange); font-weight: 800; font-size: 17px; background: var(--sc-surface); padding: 20px 0; }
body.sc-cwp #side-menu { padding: 4px 14px 18px; }
body.sc-cwp #side-menu .sc-nav-section {
  display: block;
  padding: 8px 12px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9aa3b5;
}
body.sc-cwp .navbar-default .nav > li { border-left: 0; border-radius: 12px; margin-bottom: 2px; background: transparent; }
body.sc-cwp .navbar-default .nav > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sc-text);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 30px 10px 10px;
  border-radius: 12px;
  position: relative;
  transition: background-color .15s, color .15s;
}
body.sc-cwp .navbar-default .nav > li > a .sc-ic,
body.sc-cwp .navbar-default .nav > li > a > i:not(.arrow) {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: var(--sc-bg);
  color: var(--sc-muted);
  margin: 0;
  text-align: center;
  line-height: 18px;
  transition: background-color .15s, color .15s;
}
body.sc-cwp .navbar-default .nav > li > a .fa.arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin: 0; color: #b4bccb; }
body.sc-cwp .navbar-default .nav > li > a:hover,
body.sc-cwp .navbar-default .nav > li > a:focus { background: var(--sc-bg); color: var(--sc-ink); }
body.sc-cwp .navbar-default .nav > li > a:hover .sc-ic { background: var(--sc-tint); color: var(--sc-blue); }
body.sc-cwp .navbar-default .nav > li.active { background: transparent; border-left: 0; }
body.sc-cwp .navbar-default .nav > li.active > a { background: var(--sc-tint); color: var(--sc-blue-700); }
body.sc-cwp .navbar-default .nav > li.active > a .sc-ic,
body.sc-cwp .navbar-default .nav > li.active > a > i:not(.arrow) { background: var(--sc-blue); color: #fff; }
body.sc-cwp ul.nav-second-level { background: transparent; padding: 2px 0 8px 46px; }
body.sc-cwp .nav-second-level li a {
  color: var(--sc-muted);
  font-weight: 500;
  font-size: 13.5px;
  padding: 7px 10px;
  border-radius: 8px;
  display: block;
}
body.sc-cwp .nav-second-level li a:hover, body.sc-cwp .nav-second-level li.active a { color: var(--sc-blue-700); background: var(--sc-bg); }
/* server software versions and the "Applications" header are CWP fingerprints */
body.sc-cwp #side-menu > li.sc-hide { display: none; }
body.sc-cwp:not(.sc-login), body.sc-cwp #wrapper { background: linear-gradient(to right, var(--sc-surface) calc(var(--sc-side-w) - 1px), var(--sc-line) calc(var(--sc-side-w) - 1px), var(--sc-line) var(--sc-side-w), var(--sc-bg) var(--sc-side-w)); }
body.sc-cwp.mini-navbar:not(.sc-login), body.sc-cwp.mini-navbar #wrapper { background: linear-gradient(to right, var(--sc-surface) 83px, var(--sc-line) 83px, var(--sc-line) 84px, var(--sc-bg) 84px); }
body.sc-cwp .navbar-static-side { min-height: 100vh; border-right: 0; }

/* usage widget */
body.sc-cwp .navbar-static-side .ibox { background: var(--sc-bg); border: 1px solid var(--sc-line); box-shadow: none; border-radius: 14px; margin: 10px 0 0; }
body.sc-cwp .navbar-static-side .ibox-content, body.sc-cwp .navbar-static-side .ibox-content2 { background: transparent; color: var(--sc-text); padding: 14px 16px; }
body.sc-cwp .navbar-static-side .ibox h1, body.sc-cwp .navbar-static-side .ibox h2,
body.sc-cwp .navbar-static-side .ibox h4, body.sc-cwp .navbar-static-side .ibox h5 { color: var(--sc-ink) !important; font-size: 13px; }
body.sc-cwp .navbar-static-side .ibox small, body.sc-cwp .navbar-static-side .info-left-item,
body.sc-cwp .navbar-static-side .stat, body.sc-cwp .navbar-static-side .percent,
body.sc-cwp #divstorage_info .fa, body.sc-cwp .divstorage-item-title, body.sc-cwp #sw { color: var(--sc-muted) !important; }
body.sc-cwp .navbar-static-side .progress { background: #e3e8f2; height: 6px; border-radius: 99px; }
body.sc-cwp .navbar-static-side .progress-bar { background: var(--sc-blue); border-radius: 99px; }
body.sc-cwp .menu-left-storage { border-bottom: 0; margin: 6px 0 0; }
body.sc-cwp .menu-left-storage-btn h5 { color: var(--sc-blue) !important; font-weight: 700; }
body.sc-cwp #divstorage_loader .fa { color: var(--sc-muted); }

/* mini (rail) mode on desktop */
body.sc-cwp.mini-navbar .navbar-static-side { width: 84px; }
body.sc-cwp.mini-navbar #page-wrapper { margin-left: 84px; }
body.sc-cwp.mini-navbar #side-menu { padding: 4px 12px; }
body.sc-cwp.mini-navbar #side-menu .sc-nav-section { display: none; }
body.sc-cwp #side-menu .sc-nav-advanced { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sc-line); }
body.sc-cwp.mini-navbar .navbar-default .nav > li > a { padding: 8px 15px; justify-content: center; }
body.sc-cwp.mini-navbar .navbar-default .nav > li > a .fa.arrow { display: none; }
body.sc-cwp.mini-navbar .nav-second-level, body.sc-cwp.mini-navbar li.active .nav-second-level {
  background: var(--sc-surface);
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  box-shadow: var(--sc-shadow-lg);
  padding: 8px;
  left: 76px;
}

/* ---------- Top bar ---------- */
body.sc-cwp .border-bottom { border-bottom: 0 !important; }
body.sc-cwp .navbar-static-top {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sc-line);
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 0 22px 0 14px;
}
body.sc-cwp .navbar-header { display: flex; align-items: center; flex: 1; min-width: 0; }
body.sc-cwp .navbar-minimalize.btn-primary {
  margin: 0 12px 0 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  background: var(--sc-surface);
  border: 1px solid var(--sc-line);
  color: var(--sc-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.sc-cwp .navbar-minimalize.btn-primary:hover { background: var(--sc-tint); border-color: var(--sc-tint); color: var(--sc-blue-700); }
body.sc-cwp .navbar-form-custom { flex: 1; max-width: 460px; height: auto; margin: 0; }
body.sc-cwp .navbar-form-custom .form-group { margin: 0; }
body.sc-cwp .navbar-form-custom .form-control {
  height: 42px;
  min-height: 42px;
  border: 1px solid var(--sc-line);
  background: var(--sc-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7489' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center;
  padding: 0 14px 0 40px;
  border-radius: 999px;
  font-size: 14px;
}
body.sc-cwp .navbar-form-custom .form-control:focus { background-color: var(--sc-surface); border-color: var(--sc-blue); box-shadow: 0 0 0 3px rgba(16, 98, 254, .15); }
body.sc-cwp .navbar-top-links { display: flex; align-items: center; gap: 4px; margin: 0; }
body.sc-cwp .navbar-top-links > li > a,
body.sc-cwp .navbar-top-links .welcome-message {
  color: var(--sc-ink);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  min-height: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.sc-cwp .navbar-top-links > li > a:hover, body.sc-cwp .navbar-top-links .welcome-message:hover { background: var(--sc-bg) !important; color: var(--sc-blue-700); }
body.sc-cwp .navbar-top-links > li > a img { margin-right: 0 !important; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--sc-line); }
body.sc-cwp .navbar-top-links .fa-2x { font-size: 18px; }
body.sc-cwp .sc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sc-grad);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
body.sc-cwp .welcome-message > .fa-user { display: none; }
/* file lock badge becomes a status pill */
body.sc-cwp #imglock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: #fff5e6;
  color: #8a4b00;
  border: 1px solid #ffdca8;
}
body.sc-cwp #imglock.label-success { background: #e8f8ef; color: #0c6b36; border-color: #bfeccf; }
body.sc-cwp #imglock .sc-ic { width: 15px; height: 15px; vertical-align: 0; }
body.sc-cwp .navbar-top-links .count-info .label { top: 2px; right: 2px; border-radius: 99px; }
body.sc-cwp .dropdown-menu {
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow-lg);
  padding: 6px;
}
body.sc-cwp .dropdown-menu > li > a { border-radius: 8px; padding: 8px 12px; color: var(--sc-text); font-weight: 500; }
body.sc-cwp .dropdown-menu > li > a:hover { background: var(--sc-tint); color: var(--sc-blue-700); }
body.sc-cwp .dropdown-menu .divider { background: var(--sc-line); }

/* Language picker */
body.sc-cwp .lang-items-wrapper { width: 540px !important; padding: 8px; max-height: 70vh; overflow: auto; }
body.sc-cwp .li-item-lang { border-bottom: 0; }
body.sc-cwp .li-item-lang .lang-col-item:not(:nth-child(3n)) { border-right: 0; }
body.sc-cwp .lang-col-item { padding: 2px 4px; }
body.sc-cwp .radio-lang { margin: 0; }
body.sc-cwp .radio-lang label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--sc-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.sc-cwp .radio-lang label img { margin: 0 !important; width: 18px; border-radius: 2px; }
body.sc-cwp .radio-lang input:checked + label { background: var(--sc-tint); color: var(--sc-blue-700); }
body.sc-cwp .radio-lang label:hover { background: var(--sc-bg); }

/* ---------- Page content ---------- */
body.sc-cwp .wrapper-content { padding: 26px 28px 44px; }
body.sc-cwp .page-heading { background: transparent; border-bottom: 0; padding: 26px 28px 0; }
body.sc-cwp .page-heading h2 { font-weight: 800; font-size: 26px; margin-top: 0; letter-spacing: -.02em; }
body.sc-cwp .page-heading .breadcrumb { background: transparent; padding: 0; margin: 0; font-size: 13px; }
body.sc-cwp .page-heading .breadcrumb > li, body.sc-cwp .page-heading .breadcrumb > li a { color: var(--sc-muted); }

/* Cards (ibox) */
body.sc-cwp .ibox { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); margin-bottom: 22px; overflow: visible; }
body.sc-cwp .ibox-title { background: transparent; border: 0; border-bottom: 1px solid var(--sc-line); border-radius: var(--sc-radius) var(--sc-radius) 0 0; padding: 18px 22px 14px; min-height: 56px; }
body.sc-cwp .ibox-title h5 { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--sc-ink); margin: 2px 0 0; }
body.sc-cwp .ibox-title h5 > i, body.sc-cwp .ibox-title h5 > .sc-ic { color: var(--sc-blue); margin: 0; }
body.sc-cwp .ibox-tools a { color: var(--sc-muted); }
body.sc-cwp .ibox-content { background: transparent; border: 0; padding: 22px; color: var(--sc-text); }
body.sc-cwp .ibox-content:last-child { border-radius: 0 0 var(--sc-radius) var(--sc-radius); }
body.sc-cwp .ibox-footer { background: var(--sc-surface-2); border-top: 1px solid var(--sc-line); border-radius: 0 0 var(--sc-radius) var(--sc-radius); }

/* ---------- Dashboard ---------- */
body.sc-cwp .dashboard-wrapper { margin-top: 0; }
/* bandwidth chart and its live-log controls are not part of the SemeCloud dashboard */
body.sc-cwp .dashboard-wrapper > .row:has(#bandwidth-line-chart) { display: none; }
body.sc-cwp .sc-dash-hello {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px;
  margin-bottom: 22px;
  border-radius: 20px;
  background: var(--sc-grad);
  color: rgba(255, 255, 255, .82);
  box-shadow: var(--sc-shadow-lg);
}
body.sc-cwp .sc-dash-hello::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 152, 0, .35) 0%, rgba(255, 152, 0, 0) 65%);
  pointer-events: none;
}
body.sc-cwp .sc-dash-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--sc-orange); }
body.sc-cwp .sc-dash-hello h1 { color: #fff !important; font-size: 28px; font-weight: 800; margin: 0 0 6px; }
body.sc-cwp .sc-dash-sub { margin: 0; font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
body.sc-cwp .sc-dash-sub span { display: inline-flex; align-items: center; gap: 6px; }
body.sc-cwp .sc-dash-sub .sc-ic { width: 16px; height: 16px; color: rgba(255, 255, 255, .6); }
body.sc-cwp .sc-dash-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
body.sc-cwp .sc-dash-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: background-color .15s;
}
body.sc-cwp .sc-dash-actions a:hover { background: rgba(255, 255, 255, .22); color: #fff; }
body.sc-cwp .sc-dash-actions a.is-primary { background: var(--sc-orange); border-color: var(--sc-orange); box-shadow: 0 10px 24px rgba(255, 152, 0, .3); }
body.sc-cwp .sc-dash-actions a.is-primary:hover { background: var(--sc-orange-600); }

/* stat cards */
body.sc-cwp .cwp-kpi-grid { gap: 14px; margin-bottom: 22px; }
body.sc-cwp .cwp-kpi-grid .cwp-kpi {
  background: var(--sc-surface) !important;
  color: var(--sc-ink) !important;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
  padding: 16px 18px 14px;
  min-height: 100%;
}
body.sc-cwp .cwp-kpi-link:hover .cwp-kpi { box-shadow: var(--sc-shadow-lg); border-color: #c9d8fb; }
body.sc-cwp .cwp-kpi-grid .cwp-kpi > .fa, body.sc-cwp .cwp-kpi-grid .cwp-kpi > .sc-ic {
  opacity: 1;
  position: static;
  margin-bottom: 12px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 12px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sc-tint);
  color: var(--sc-blue);
}
body.sc-cwp .cwp-kpi-grid .cwp-kpi-lbl { overflow-wrap: normal; word-break: keep-all; hyphens: none; font-size: 10.5px; letter-spacing: .04em; color: var(--sc-muted); font-weight: 700; opacity: 1; min-height: 26px; line-height: 1.25; }
body.sc-cwp .cwp-kpi-grid .cwp-kpi-num { color: var(--sc-ink); font-weight: 800; letter-spacing: -.02em; }
body.sc-cwp .cwp-kpi-grid .cwp-kpi-num small { color: var(--sc-muted); opacity: 1; }
body.sc-cwp .cwp-kpi-grid .cwp-kpi-bar { background: var(--sc-tint); height: 6px; border-radius: 99px; }
body.sc-cwp .cwp-kpi-grid .cwp-kpi-bar span { background: var(--sc-blue); border-radius: 99px; }
body.sc-cwp .cwp-kpi-grid .cwp-kpi-link:nth-child(4n+2) .cwp-kpi > .sc-ic { background: #fff2de; color: var(--sc-orange-600); }
body.sc-cwp .cwp-kpi-grid .cwp-kpi-link:nth-child(4n+2) .cwp-kpi-bar span { background: var(--sc-orange); }
body.sc-cwp .cwp-kpi-grid .cwp-kpi-link:nth-child(4n+3) .cwp-kpi > .sc-ic { background: #e6f7ee; color: var(--sc-success); }
body.sc-cwp .cwp-kpi-grid .cwp-kpi-link:nth-child(4n+3) .cwp-kpi-bar span { background: var(--sc-success); }
body.sc-cwp .cwp-kpi-grid .cwp-kpi-link:nth-child(4n+4) .cwp-kpi > .sc-ic { background: #f0ebff; color: #6a3df0; }
body.sc-cwp .cwp-kpi-grid .cwp-kpi-link:nth-child(4n+4) .cwp-kpi-bar span { background: #6a3df0; }

/* task groups: each section becomes a card of shortcut tiles */
body.sc-cwp .dashboard-wrapper .ibox-content > .row:has(> .dashboard-item) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin: 0;
}
body.sc-cwp .dashboard-wrapper .ibox-content > .row:has(> .dashboard-item)::before,
body.sc-cwp .dashboard-wrapper .ibox-content > .row:has(> .dashboard-item)::after { display: none; }
body.sc-cwp .dashboard-item { width: auto !important; float: none !important; padding: 0; }
body.sc-cwp .dashboard-item > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  background: var(--sc-surface);
  color: var(--sc-ink);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
  min-height: 62px;
  transition: border-color .15s, box-shadow .15s, transform .15s, color .15s;
}
body.sc-cwp .dashboard-item > a:hover { border-color: #c9d8fb; box-shadow: var(--sc-shadow); transform: translateY(-1px); color: var(--sc-blue-700); }
body.sc-cwp .dashboard-item > a > i, body.sc-cwp .dashboard-item > a > .sc-ic, body.sc-cwp .dashboard-item > a > img {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 11px;
  background: var(--sc-tint);
  color: var(--sc-blue);
  font-size: 17px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  object-fit: contain;
}
body.sc-cwp .dashboard-item > a:hover > .sc-ic, body.sc-cwp .dashboard-item > a:hover > i { background: var(--sc-blue); color: #fff; }

/* last access, disk usage, account info */
body.sc-cwp .clear-list .list-group-item { display: flex; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--sc-line); padding: 10px 2px; background: transparent; }
body.sc-cwp .clear-list .list-group-item:last-child { border-bottom: 0; }
body.sc-cwp .clear-list .label-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sc-bg);
  color: var(--sc-ink);
  border: 1px solid var(--sc-line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 8px;
}
body.sc-cwp .clear-list .label-success img { float: none !important; width: 16px; border-radius: 2px; order: -1; }
body.sc-cwp .clear-list .fab { color: var(--sc-muted); margin-left: auto; }
body.sc-cwp .clear-list .last-access-date { color: var(--sc-muted); font-size: 13px; font-weight: 500; }
body.sc-cwp .cwp-acc-info .list-group-item { border-bottom-color: var(--sc-line); }
body.sc-cwp .cwp-acc-info .fa, body.sc-cwp .cwp-acc-info .sc-ic { width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: var(--sc-tint); color: var(--sc-blue); }
body.sc-cwp .cwp-acc-info .lbl { color: var(--sc-muted); }
body.sc-cwp .cwp-acc-info .val { color: var(--sc-ink); font-weight: 700; }
body.sc-cwp .cwp-disk-center b { color: var(--sc-ink); font-weight: 800; }
body.sc-cwp .cwp-disk-legend .lg-val { color: var(--sc-ink); font-weight: 700; }


/* ---------- Dashboard tools (built by semecloud-tools.js) ---------- */
body.sc-cwp .sc-tools { margin: 0 0 24px; }
body.sc-cwp .sc-tools-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 16px; flex-wrap: wrap; }
body.sc-cwp .sc-tools-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
body.sc-cwp .sc-tool-search { position: relative; display: flex; align-items: center; margin: 0; width: 320px; max-width: 100%; }
body.sc-cwp .sc-tool-search .sc-ic { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--sc-muted); vertical-align: 0; }
body.sc-cwp .sc-tool-search input { width: 100%; height: 42px; border: 1px solid var(--sc-line); border-radius: 999px; background: var(--sc-surface); padding: 0 16px 0 40px; font: 500 14px var(--sc-font); color: var(--sc-ink); outline: 0; }
body.sc-cwp .sc-tool-search input:focus { border-color: var(--sc-blue); box-shadow: 0 0 0 3px rgba(16, 98, 254, .15); }
body.sc-cwp .sc-tier { margin-bottom: 22px; }
body.sc-cwp .sc-tier > h3 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sc-muted); margin: 0 0 12px; }
body.sc-cwp .sc-grid-ess { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
body.sc-cwp .sc-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
body.sc-cwp .sc-group { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); padding: 16px; }
body.sc-cwp .sc-group h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--sc-ink); }
body.sc-cwp .sc-group h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fam, var(--sc-muted)); }
body.sc-cwp .sc-grid { display: grid; gap: 4px; }
body.sc-cwp .sc-grid-row { display: flex; flex-wrap: wrap; gap: 10px; }
body.sc-cwp .sc-grid-row .sc-tool { padding: 8px 14px 8px 8px; background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: 12px; box-shadow: var(--sc-shadow); }
body.sc-cwp .sc-grid-row .sc-tool:hover { border-color: #c9d8fb; }
body.sc-cwp .sc-grid-row .sc-tool .sc-tool-ic { width: 32px; height: 32px; border-radius: 9px; }
body.sc-cwp .sc-grid-row .sc-tool .sc-tool-name { font-weight: 600; }
body.sc-cwp .sc-tool { display: flex; align-items: center; gap: 12px; color: var(--sc-ink); text-decoration: none; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s; }
body.sc-cwp .sc-tool:hover { color: var(--sc-ink); text-decoration: none; }
body.sc-cwp .sc-tool-ic { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: var(--fam-bg, var(--sc-bg)); color: var(--fam, var(--sc-muted)); }
body.sc-cwp .sc-tool-ic .sc-ic { width: 18px; height: 18px; vertical-align: 0; }
body.sc-cwp .sc-tool-body { display: flex; flex-direction: column; min-width: 0; }
body.sc-cwp .sc-tool-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
body.sc-cwp .sc-tool-desc { color: var(--sc-muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
body.sc-cwp .sc-grid .sc-tool { padding: 7px 8px; border-radius: 10px; }
body.sc-cwp .sc-grid .sc-tool:hover { background: var(--sc-bg); }
body.sc-cwp .sc-grid .sc-tool .sc-tool-ic { width: 32px; height: 32px; border-radius: 9px; }
body.sc-cwp .sc-grid .sc-tool .sc-tool-name { font-weight: 600; }
body.sc-cwp .sc-grid-ess .sc-tool { align-items: flex-start; padding: 16px; background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); }
body.sc-cwp .sc-grid-ess .sc-tool .sc-tool-ic { width: 44px; height: 44px; border-radius: 13px; }
body.sc-cwp .sc-grid-ess .sc-tool .sc-tool-ic .sc-ic { width: 21px; height: 21px; }
body.sc-cwp .sc-grid-ess .sc-tool:hover { border-color: #c9d8fb; box-shadow: var(--sc-shadow-lg); transform: translateY(-2px); }
body.sc-cwp .sc-grid-ess .sc-tool:hover .sc-tool-ic { background: var(--fam); color: #fff; }
body.sc-cwp [data-family="sites"] { --fam: #1062fe; --fam-bg: #eaf1ff; }
body.sc-cwp [data-family="mail"] { --fam: #e07a00; --fam-bg: #fff2de; }
body.sc-cwp [data-family="files"] { --fam: #12a150; --fam-bg: #e6f7ee; }
body.sc-cwp [data-family="db"] { --fam: #6a3df0; --fam-bg: #f0ebff; }
body.sc-cwp [data-family="sys"] { --fam: #475569; --fam-bg: #eef1f6; }
body.sc-cwp [data-family="other"] { --fam: #0a2a8a; --fam-bg: #e9edf7; }
body.sc-cwp .sc-adv-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--sc-line); border-radius: 12px; background: var(--sc-surface); color: var(--sc-ink); font: 700 14px var(--sc-font); cursor: pointer; box-shadow: var(--sc-shadow); }
body.sc-cwp .sc-adv-toggle:hover { border-color: #c9d8fb; color: var(--sc-blue-700); }
body.sc-cwp .sc-adv-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--sc-bg); color: var(--sc-muted); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
body.sc-cwp .sc-adv-toggle .sc-ic { width: 16px; height: 16px; vertical-align: 0; transition: transform .2s; }
body.sc-cwp .sc-advanced.is-open .sc-adv-toggle .sc-ic { transform: rotate(180deg); }
body.sc-cwp .sc-advanced > .sc-groups { display: none; margin-top: 14px; }
body.sc-cwp .sc-advanced.is-open > .sc-groups, body.sc-cwp .sc-tools.is-searching .sc-advanced > .sc-groups { display: grid; }
body.sc-cwp .sc-tools.is-searching .sc-adv-toggle { display: none; }
@media (max-width: 768px) {
  body.sc-cwp .sc-tool-search { width: 100%; }
  body.sc-cwp .sc-grid-ess { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.sc-cwp .sc-grid-ess .sc-tool { flex-direction: column; gap: 10px; padding: 14px; }
  body.sc-cwp .sc-grid-ess .sc-tool .sc-tool-desc { font-size: 12px; }
  body.sc-cwp .sc-groups { grid-template-columns: 1fr; }
  body.sc-cwp .sc-adv-toggle { width: 100%; justify-content: center; }
}


/* ---------- Unavailable module notice ---------- */
body.sc-cwp [class$="_container"]:has(.sc-unavailable) { background: transparent !important; padding: 0 !important; max-width: 560px; min-width: 0; }
body.sc-cwp .sc-unavailable { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 560px; margin: 24px auto; padding: 26px 28px; background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); }
body.sc-cwp .sc-unavailable-ic { width: 44px; height: 44px; border-radius: 13px; background: #fff5e6; color: #b45f00; display: inline-flex; align-items: center; justify-content: center; }
body.sc-cwp .sc-unavailable-ic .sc-ic { width: 22px; height: 22px; vertical-align: 0; }
body.sc-cwp .sc-unavailable h3 { margin: 4px 0 0; font-size: 18px; font-weight: 800; color: var(--sc-ink); line-height: 1.35; }
body.sc-cwp .sc-unavailable p { margin: 0 0 6px; color: var(--sc-muted); }

/* ---------- Icon-only buttons: keep the glyph visible on hover/focus/active ---------- */
body.sc-cwp .navbar-minimalize.btn-primary:hover, body.sc-cwp .navbar-minimalize.btn-primary:focus,
body.sc-cwp .navbar-minimalize.btn-primary:active, body.sc-cwp .navbar-minimalize.btn-primary.active {
  background: var(--sc-tint) !important;
  border-color: #c9d8fb !important;
  color: var(--sc-blue-700) !important;
  box-shadow: none !important;
}
body.sc-cwp .navbar-minimalize.btn-primary .fa { color: inherit !important; }
body.sc-cwp .navbar-top-links > li > a:focus, body.sc-cwp .navbar-top-links > li > a:active { background: var(--sc-bg) !important; color: var(--sc-blue-700) !important; }
body.sc-cwp .navbar-top-links > li > a .fa { color: inherit; }


/* module pages: CWP floats the usage widgets into the page header, where they overlap the cards */
body.sc-cwp [class$="-contracted"], body.sc-cwp .mail-contracted { position: static !important; width: auto !important; max-width: 420px; top: 0 !important; margin: 0 0 16px; box-shadow: none; }
body.sc-cwp [class$="-contracted"] > .ibox-content, body.sc-cwp .mail-contracted > .ibox-content { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); padding: 14px 18px; }
body.sc-cwp [class$="-contracted"] h2, body.sc-cwp .mail-contracted h2 { font-size: 18px; font-weight: 800; }


/* ---------- c-Panel badge ---------- */
.sc-cpanel {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sc-navy-2, #0a2a8a);
  color: #fff;
  font: 700 11.5px/1.2 var(--sc-font, "Jakarta", sans-serif);
  letter-spacing: .04em;
  white-space: nowrap;
  vertical-align: middle;
}
body.sc-cwp .nav-header .sc-brand { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; width: fit-content; text-decoration: none; }
body.sc-cwp .nav-header .sc-brand .sc-cpanel { margin-right: 2px; }
body.sc-cwp .logo-element { display: none; flex-direction: column; align-items: center; gap: 6px; }
body.sc-cwp .logo-element .sc-cpanel { font-size: 9.5px; padding: 2px 6px; letter-spacing: .02em; }
body.sc-cwp.mini-navbar .logo-element { display: flex; }
body.sc-cwp .navbar-header .sc-cpanel.is-top { display: none; margin-left: 4px; }
body.sc-login .sc-login-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
@media (max-width: 768px) {
  body.sc-cwp .navbar-header .sc-cpanel.is-top { display: inline-flex; }
  body.sc-cwp.mini-navbar .logo-element { display: none !important; }
}


/* ---------- Module page components (semecloud-ui.js) ---------- */
body.sc-cwp .sc-hidden-widget, body.sc-cwp .sc-col-hidden { display: none !important; }
body.sc-cwp .infinite-bandwidth { font-size: inherit !important; font-weight: inherit !important; }
body.sc-cwp .ibox > .ibox-content[class*="col-"] { float: none; width: auto; }
body.sc-cwp .sc-stat-wrap { padding: 4px 28px 0; }
body.sc-cwp .sc-stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 14px 0 4px; }
body.sc-cwp .sc-stat-card { display: flex; gap: 14px; align-items: flex-start; background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); padding: 16px 18px; }
body.sc-cwp .sc-stat-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--sc-tint); color: var(--sc-blue); display: inline-flex; align-items: center; justify-content: center; }
body.sc-cwp .sc-stat-ic .sc-ic { width: 19px; height: 19px; vertical-align: 0; }
body.sc-cwp .sc-stat-body { flex: 1; min-width: 0; }
body.sc-cwp .sc-stat-label { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--sc-muted); line-height: 1.3; }
body.sc-cwp .sc-stat-value { font-size: 22px; font-weight: 800; color: var(--sc-ink); letter-spacing: -.02em; margin-top: 3px; }
body.sc-cwp .sc-stat-value small { font-size: 13px; font-weight: 600; color: var(--sc-muted); letter-spacing: 0; }
body.sc-cwp .sc-stat-sub { font-size: 12.5px; color: var(--sc-muted); margin-top: 2px; }
body.sc-cwp .sc-stat-bar { height: 6px; border-radius: 99px; background: var(--sc-tint); margin-top: 10px; overflow: hidden; }
body.sc-cwp .sc-stat-bar span { display: block; height: 100%; min-width: 3px; border-radius: 99px; background: var(--sc-blue); }

/* settings cards */
body.sc-cwp .panel { border: 1px solid var(--sc-line); border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); overflow: hidden; }
body.sc-cwp .panel-info, body.sc-cwp .panel-primary, body.sc-cwp .panel-success { border-color: var(--sc-line); }
body.sc-cwp .panel-info > .panel-heading, body.sc-cwp .panel-primary > .panel-heading, body.sc-cwp .panel-success > .panel-heading, body.sc-cwp .panel-default > .panel-heading {
  background: var(--sc-surface); color: var(--sc-ink); border-bottom: 1px solid var(--sc-line); font-weight: 700;
}
body.sc-cwp .sc-kv-card .panel-heading { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-size: 14.5px; }
body.sc-cwp .sc-kv-chip { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
body.sc-cwp .sc-kv-chip .sc-ic { width: 16px; height: 16px; vertical-align: 0; }
body.sc-cwp .sc-kv-chip.is-ok { background: #e6f7ee; color: var(--sc-success); }
body.sc-cwp .sc-kv-chip.is-warn { background: #fff2de; color: #b45f00; }
body.sc-cwp .sc-kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; align-items: center; }
body.sc-cwp .sc-kv dt { color: var(--sc-muted); font-weight: 600; font-size: 13px; }
body.sc-cwp .sc-kv dd { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
body.sc-cwp .sc-kv code, body.sc-cwp code.sc-path { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--sc-bg); color: var(--sc-ink); border: 1px solid var(--sc-line); border-radius: 6px; padding: 3px 7px; overflow-wrap: anywhere; }
body.sc-cwp .sc-copy, body.sc-cwp .sc-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--sc-line); background: var(--sc-surface); color: var(--sc-blue); cursor: pointer; flex-shrink: 0; padding: 0; }
body.sc-cwp .sc-copy:hover, body.sc-cwp .sc-icon-btn:hover { background: var(--sc-tint); border-color: #c9d8fb; color: var(--sc-blue-700); }
body.sc-cwp .sc-copy.is-done { color: var(--sc-success); border-color: #bfeccf; background: #e8f8ef; }
body.sc-cwp .sc-copy .sc-ic, body.sc-cwp .sc-icon-btn .sc-ic { width: 14px; height: 14px; vertical-align: 0; }

/* table cells */
body.sc-cwp td.sc-path-cell { white-space: nowrap; }
body.sc-cwp td.sc-path-cell code.sc-path { color: var(--sc-muted); background: transparent; border: 0; padding: 0; margin-right: 10px; }
body.sc-cwp td.sc-path-cell .sc-icon-btn { float: right; }
body.sc-cwp .sc-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
body.sc-cwp .sc-badge.is-ok { background: #e8f8ef; color: #0c6b36; }
body.sc-cwp .sc-badge.is-off { background: #eef1f6; color: var(--sc-muted); }
body.sc-cwp td .progress { height: 6px !important; background: var(--sc-tint) !important; border-radius: 99px; box-shadow: none; margin: 6px 0 0; }
body.sc-cwp td .progress .progress-bar { background: var(--sc-blue) !important; border-radius: 99px; }
body.sc-cwp table.dataTable thead .sorting, body.sc-cwp table.dataTable thead .sorting_asc, body.sc-cwp table.dataTable thead .sorting_desc { background-image: none !important; }
body.sc-cwp table.dataTable thead .sorting::after, body.sc-cwp table.dataTable thead .sorting_asc::after, body.sc-cwp table.dataTable thead .sorting_desc::after { opacity: .3; color: var(--sc-muted); font-size: 11px; }
body.sc-cwp table.dataTable thead .sorting_asc::after, body.sc-cwp table.dataTable thead .sorting_desc::after { opacity: 1; color: var(--sc-blue); }

/* "Add" buttons in card headers: one primary style everywhere */
body.sc-cwp .ibox-title .btn:has(.fa-plus), body.sc-cwp .ibox-title-mail .btn:has(.fa-plus), body.sc-cwp .ibox-title .btn-success, body.sc-cwp .mysql-title .btn {
  background: var(--sc-orange) !important; border-color: var(--sc-orange) !important; color: #fff !important;
  border-radius: 10px !important; padding: 8px 14px !important; font-size: 13px !important; font-weight: 700; line-height: 1.2; height: auto; margin: 0 0 0 8px !important;
}
body.sc-cwp .ibox-title .btn:has(.fa-plus):hover, body.sc-cwp .ibox-title .btn-success:hover, body.sc-cwp .mysql-title .btn:hover { background: var(--sc-orange-600) !important; border-color: var(--sc-orange-600) !important; }
body.sc-cwp .ibox-title h4 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-size: 15px; font-weight: 700; color: var(--sc-ink); }
@media (max-width: 768px) {
  body.sc-cwp .sc-stat-wrap { padding: 4px 12px 0; }
  body.sc-cwp .sc-stat-row { grid-template-columns: 1fr; }
  body.sc-cwp .sc-stat-action { grid-column: auto; }
  body.sc-cwp .sc-kv { grid-template-columns: 1fr; gap: 4px; }
  body.sc-cwp .sc-kv dt { margin-top: 8px; }
}


/* ---------- Dashboard offers slideshow (semecloud-promo.js) ---------- */
body.sc-cwp .sc-tools-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
body.sc-cwp .sc-tools-layout .sc-grid-ess { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.sc-cwp .sc-promo { position: relative; margin-top: 4px; }
body.sc-cwp .sc-promo-track { display: grid; }
body.sc-cwp .sc-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; display: flex; flex-direction: column; gap: 12px; }
body.sc-cwp .sc-slide.is-on { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { body.sc-cwp .sc-slide { transition: none; } }
body.sc-cwp .sc-promo img { display: block; width: 100%; object-fit: cover; }
body.sc-cwp .sc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font: 700 14px var(--sc-font); padding: 11px 18px; text-decoration: none; align-self: flex-start; }
body.sc-cwp .sc-btn-o { background: var(--sc-orange); color: #fff !important; box-shadow: 0 8px 20px rgba(255, 152, 0, .3); }
body.sc-cwp .sc-btn-o:hover { background: var(--sc-orange-600); }
body.sc-cwp .sc-btn-w { background: #fff; color: var(--sc-navy) !important; }
body.sc-cwp .sc-btn-ghost { color: var(--sc-blue); font: 700 13.5px var(--sc-font); text-decoration: none; }
/* hero (VPS) */
body.sc-cwp .sc-slide-hero { border-radius: 18px; overflow: hidden; background: var(--sc-grad); color: #fff; box-shadow: var(--sc-shadow-lg); gap: 0; }
body.sc-cwp .sc-slide-hero img { height: 220px; }
body.sc-cwp .sc-hero-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
body.sc-cwp .sc-tag { align-self: flex-start; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 4px 10px; font: 700 11.5px var(--sc-font); letter-spacing: .04em; }
body.sc-cwp .sc-promo h3 { margin: 0; font: 800 24px/1.2 var(--sc-font); color: #fff !important; }
body.sc-cwp .sc-promo .sc-hero-body p { margin: 0; color: #cfdbff; font-size: 14px; line-height: 1.5; }
body.sc-cwp .sc-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.sc-cwp .sc-hero-price { font: 800 15px var(--sc-font); }
body.sc-cwp .sc-hero-price small { font-weight: 500; color: #cfdbff; }
/* stacked offers */
body.sc-cwp .sc-stack-head { display: flex; justify-content: space-between; align-items: baseline; }
body.sc-cwp .sc-stack-head h4 { margin: 0; font: 800 16px var(--sc-font); }
body.sc-cwp .sc-offer { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 118px 1fr; box-shadow: var(--sc-shadow); }
body.sc-cwp .sc-offer img { width: 118px; height: 100%; }
body.sc-cwp .sc-offer-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.sc-cwp .sc-offer-title { font: 800 15.5px var(--sc-font); color: var(--sc-ink); }
body.sc-cwp .sc-offer-desc { font-size: 12.5px; color: var(--sc-muted); line-height: 1.4; }
body.sc-cwp .sc-offer-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; gap: 8px; }
body.sc-cwp .sc-offer-row b { font: 800 14px var(--sc-font); color: var(--sc-navy-2); }
/* personal tip */
body.sc-cwp .sc-tip { border-radius: 16px; padding: 18px 20px; background: #fff7ea; border: 1px solid #ffe2b3; display: flex; flex-direction: column; }
body.sc-cwp .sc-tip-title { display: flex; gap: 10px; align-items: center; font: 800 15px var(--sc-font); color: #8a4b00; }
body.sc-cwp .sc-tip-title .sc-ic { width: 20px; height: 20px; vertical-align: 0; }
body.sc-cwp .sc-tip p { margin: 8px 0 12px; font-size: 13.5px; color: #6b4a1d; line-height: 1.5; }
/* SiteLock card + chips */
body.sc-cwp .sc-mini { border-radius: 16px; overflow: hidden; background: var(--sc-grad); color: #fff; box-shadow: var(--sc-shadow-lg); }
body.sc-cwp .sc-mini img { height: 150px; }
body.sc-cwp .sc-mini h3 { font-size: 19px; }
body.sc-cwp .sc-chips { display: flex; gap: 8px; flex-wrap: wrap; }
body.sc-cwp .sc-chip { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: 999px; padding: 7px 12px; font: 600 12.5px var(--sc-font); color: var(--sc-ink); text-decoration: none; }
body.sc-cwp .sc-chip b { color: var(--sc-blue); }
/* dots */
body.sc-cwp .sc-promo-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
body.sc-cwp .sc-promo-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c9d2e3; cursor: pointer; transition: width .2s; }
body.sc-cwp .sc-promo-dot.is-on { width: 22px; border-radius: 5px; background: var(--sc-orange); }
body.sc-cwp .sc-promo-dot:focus-visible { outline: 2px solid var(--sc-blue); outline-offset: 2px; }
@media (max-width: 991px) {
  body.sc-cwp .sc-tools-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1199px) {
  body.sc-cwp .sc-tools-layout .sc-grid-ess { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  body.sc-cwp .sc-tools-layout .sc-grid-ess { grid-template-columns: 1fr 1fr; }
}


/* ---------- Top bar order, user menu, dark mode button (semecloud-chrome.js) ---------- */
body.sc-cwp .navbar-top-links .sc-icon-top { width: 38px; height: 38px; padding: 0 !important; justify-content: center; border-radius: 50% !important; }
body.sc-cwp .navbar-top-links .sc-icon-top .sc-ic { width: 18px; height: 18px; vertical-align: 0; }
body.sc-cwp .navbar-top-links .sc-user-li .welcome-message { border: 1px solid var(--sc-line); padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--sc-surface); }
body.sc-cwp .navbar-top-links .sc-user-li .welcome-message > .sc-ic { width: 14px; height: 14px; color: var(--sc-muted); vertical-align: 0; }
body.sc-cwp .sc-user-menu { min-width: 270px !important; right: 0; left: auto; padding: 8px !important; }
body.sc-cwp .sc-user-menu .sc-user-head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 10px; }
body.sc-cwp .sc-user-menu .sc-avatar { width: 40px; height: 40px; font-size: 16px; flex-shrink: 0; }
body.sc-cwp .sc-user-meta { display: flex; flex-direction: column; min-width: 0; }
body.sc-cwp .sc-user-meta strong { color: var(--sc-ink); font-size: 14.5px; }
body.sc-cwp .sc-user-meta span { color: var(--sc-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.sc-cwp .sc-user-menu .divider { margin: 6px 4px; }
body.sc-cwp .sc-user-menu .sc-menu-item { display: flex !important; align-items: center; gap: 10px; padding: 9px 10px !important; border-radius: 10px; color: var(--sc-text); font-weight: 600; }
body.sc-cwp .sc-user-menu .sc-menu-item .sc-ic { width: 17px; height: 17px; color: var(--sc-muted); vertical-align: 0; }
body.sc-cwp .sc-user-menu .sc-menu-item:hover { background: var(--sc-tint); color: var(--sc-blue-700); }
body.sc-cwp .sc-user-menu .sc-menu-item.is-danger, body.sc-cwp .sc-user-menu .sc-menu-item.is-danger .sc-ic { color: var(--sc-danger); }
body.sc-cwp .sc-user-menu .sc-menu-item.is-danger:hover { background: #fdecec; }

/* ---------- Collapsed sidebar: S mark, flyouts ---------- */
body.sc-cwp .logo-element .sc-mark { width: 36px; height: 36px; display: block; }
body.sc-cwp.mini-navbar #side-menu > li { position: relative; }
body.sc-cwp.mini-navbar:not(.body-small) #side-menu > li > .nav-second-level {
  display: none !important; position: absolute !important; top: 0; left: 100%; margin-left: 10px; min-width: 230px; height: auto !important; z-index: 2600;
  background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: 12px; box-shadow: var(--sc-shadow-lg); padding: 8px !important;
}
body.sc-cwp.mini-navbar:not(.body-small) #side-menu > li > .nav-second-level::before { content: ""; position: absolute; top: 0; bottom: 0; left: -14px; width: 14px; }
body.sc-cwp.mini-navbar:not(.body-small) #side-menu > li.sc-fly-open > .nav-second-level,
body.sc-cwp.mini-navbar:not(.body-small) #side-menu > li:focus-within > .nav-second-level { display: block !important; }
body.sc-cwp.mini-navbar .navbar-static-side, body.sc-cwp.mini-navbar .sidebar-collapse { overflow: visible !important; }


/* ---------- Action stat card + modal (mail client settings) ---------- */
body.sc-cwp .sc-stat-action { grid-column: span 2; text-align: left; cursor: pointer; font: inherit; color: inherit; align-items: center; }
body.sc-cwp .sc-stat-action:hover { border-color: #c9d8fb; box-shadow: var(--sc-shadow-lg); }
body.sc-cwp .sc-stat-action:focus-visible { outline: 2px solid var(--sc-blue); outline-offset: 2px; }
body.sc-cwp .sc-stat-title { display: block; font-size: 16px; font-weight: 800; color: var(--sc-ink); margin-top: 3px; }
body.sc-cwp .sc-stat-body > span { display: block; }
body.sc-cwp .sc-stat-go { color: var(--sc-blue); font-weight: 700; font-size: 13px; flex-shrink: 0; }
html.sc-scroll-lock, html.sc-scroll-lock body { overflow: hidden; }
.sc-modal { position: fixed; inset: 0; z-index: 3500; background: rgba(7, 18, 48, .55); display: flex; align-items: center; justify-content: center; padding: 24px; }
.sc-modal[hidden] { display: none; }
.sc-modal-dialog { width: min(920px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--sc-surface, #fff); border-radius: 20px; box-shadow: 0 30px 80px rgba(2, 10, 40, .4); font-family: var(--sc-font); }
.sc-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--sc-line); position: sticky; top: 0; background: var(--sc-surface, #fff); z-index: 1; }
.sc-modal-head h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--sc-ink); }
.sc-modal-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--sc-line); background: var(--sc-surface, #fff); color: var(--sc-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sc-modal-close:hover { background: var(--sc-tint); }
.sc-modal-close .sc-ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.sc-modal-body { padding: 18px 22px 22px; }
.sc-modal-lead { margin: 0 0 14px; color: var(--sc-muted); font-size: 14px; }
.sc-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sc-modal-grid .panel { margin: 0; }
@media (max-width: 768px) {
  .sc-modal { align-items: flex-end; padding: 0; }
  .sc-modal-dialog { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .sc-modal-grid { grid-template-columns: 1fr; }
}


/* ---------- Sidebar usage: compact ring in the collapsed rail ---------- */
body.sc-cwp #side-menu > li.sc-usage-mini { display: none; position: relative; text-align: center; padding: 8px 0; }
body.sc-cwp.mini-navbar:not(.body-small) #side-menu > li.sc-usage-mini { display: block; }
body.sc-cwp.mini-navbar:not(.body-small) #side-menu > li.menugrande:has(.ibox-content2) { display: none !important; }
body.sc-cwp .sc-usage-ring { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
body.sc-cwp .sc-usage-ring svg { position: absolute; inset: 0; width: 44px; height: 44px; transform: rotate(-90deg); }
body.sc-cwp .sc-usage-ring circle { fill: none; stroke-width: 4; }
body.sc-cwp .sc-usage-ring .trk { stroke: var(--sc-tint); }
body.sc-cwp .sc-usage-ring .val { stroke: var(--sc-blue); stroke-linecap: round; }
body.sc-cwp .sc-usage-ring span { position: relative; font: 800 11px var(--sc-font); color: var(--sc-ink); }
body.sc-cwp .sc-usage-pop { display: none; position: absolute; left: 100%; bottom: 0; margin-left: 10px; min-width: 230px; text-align: left; background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: 12px; box-shadow: var(--sc-shadow-lg); padding: 12px 14px; z-index: 2600; }
body.sc-cwp .sc-usage-mini:hover .sc-usage-pop, body.sc-cwp .sc-usage-mini:focus-within .sc-usage-pop, body.sc-cwp .sc-usage-mini.is-open .sc-usage-pop { display: block; }
body.sc-cwp .sc-usage-row { display: flex; flex-direction: column; gap: 2px; }
body.sc-cwp .sc-usage-row + .sc-usage-row { margin-top: 10px; }
body.sc-cwp .sc-usage-row strong { color: var(--sc-ink); font-size: 13px; }
body.sc-cwp .sc-usage-row span { color: var(--sc-muted); font-size: 12.5px; white-space: nowrap; }
body.sc-cwp .navbar-static-side small.info-left-item { white-space: nowrap; }
body.sc-cwp .sc-user-menu .cu-user-themes[hidden] { display: none !important; }
/* dark mode contrast */
body.sc-cwp.sc-dark .navbar-default .nav > li.active > a { color: #dbe6ff; }
body.sc-cwp.sc-dark .nav-second-level li.active a, body.sc-cwp.sc-dark .nav-second-level li a:hover { color: #dbe6ff; }
body.sc-cwp.sc-dark .dashboard-header, body.sc-cwp.sc-dark .page-heading, body.sc-cwp.sc-dark .white-bg { background: var(--sc-surface) !important; }


/* Solid menus and popovers above the page content (CWP animates dropdowns with opacity). */
body.sc-cwp .row.border-bottom, body.sc-cwp .navbar-static-top { position: relative; z-index: 1030; }
body.sc-cwp .sc-user-menu, body.sc-cwp .navbar-top-links .dropdown-menu { background: var(--sc-surface) !important; opacity: 1 !important; z-index: 1050 !important; backdrop-filter: none; animation: none !important; }
body.sc-cwp.mini-navbar:not(.body-small) #side-menu > li > .nav-second-level, body.sc-cwp .sc-usage-pop { background: var(--sc-surface) !important; opacity: 1 !important; }
body.sc-cwp .navbar-static-side { z-index: 1040; }

/* ---------- Buttons ---------- */
body.sc-cwp .btn { font-family: var(--sc-font); font-weight: 600; border-radius: 10px; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
body.sc-cwp .btn:focus { box-shadow: 0 0 0 3px rgba(16, 98, 254, .22); outline: 0; }
body.sc-cwp .btn-primary, body.sc-cwp .btn-info { background: var(--sc-blue); border-color: var(--sc-blue); color: #fff; }
body.sc-cwp .btn-primary:hover, body.sc-cwp .btn-primary:focus, body.sc-cwp .btn-primary:active, body.sc-cwp .btn-primary.active,
body.sc-cwp .btn-info:hover, body.sc-cwp .btn-info:focus, body.sc-cwp .btn-info:active { background: var(--sc-blue-700) !important; border-color: var(--sc-blue-700) !important; color: #fff; }
body.sc-cwp .btn-success { background: var(--sc-orange); border-color: var(--sc-orange); color: #fff; }
body.sc-cwp .btn-success:hover, body.sc-cwp .btn-success:focus, body.sc-cwp .btn-success:active { background: var(--sc-orange-600) !important; border-color: var(--sc-orange-600) !important; color: #fff; }
body.sc-cwp .btn-danger { background: var(--sc-danger); border-color: var(--sc-danger); }
body.sc-cwp .btn-warning { background: #f5a524; border-color: #f5a524; color: #fff; }
body.sc-cwp .btn-white, body.sc-cwp .btn-default { background: var(--sc-surface); border: 1px solid var(--sc-line); color: var(--sc-ink); }
body.sc-cwp .btn-white:hover, body.sc-cwp .btn-default:hover { background: var(--sc-tint); border-color: #c9d8fb; color: var(--sc-blue-700); }


/* small and in-table buttons: tighter radius, consistent icon-button size */
body.sc-cwp .btn-xs, body.sc-cwp .btn-sm, body.sc-cwp .table .btn, body.sc-cwp .btn-action-cwp, body.sc-cwp .dataTables_wrapper .btn { border-radius: 6px !important; }
body.sc-cwp .btn-rounded, body.sc-cwp .btn-circle.btn-lg, body.sc-cwp .btn-w-m { border-radius: 10px; }
body.sc-cwp .table .btn-xs, body.sc-cwp .table .btn-sm { min-width: 30px; height: 30px; padding: 0 9px; margin: 2px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; line-height: 1; vertical-align: middle; }
body.sc-cwp .table .btn-xs > .fa:only-child, body.sc-cwp .table .btn-sm > .fa:only-child { margin: 0; }


/* action columns: keep the icon buttons on one line */
body.sc-cwp .table td.actions-td, body.sc-cwp .table td:has(> .btn ~ .btn), body.sc-cwp .table td:has(> .btn-group) { white-space: nowrap; min-width: 180px; }

/* ---------- Forms ---------- */
body.sc-cwp .form-control, body.sc-cwp select.form-control, body.sc-cwp .select2-container--default .select2-selection--single { border: 1px solid #d6dce8; border-radius: 10px; min-height: 40px; color: var(--sc-ink); font-size: 14px; box-shadow: none; }
body.sc-cwp .form-control:focus { border-color: var(--sc-blue); box-shadow: 0 0 0 3px rgba(16, 98, 254, .15); }
body.sc-cwp .input-group-addon, body.sc-cwp .input-group-text { background: var(--sc-surface-2); border-color: #d6dce8; color: var(--sc-muted); }
body.sc-cwp .input-group .form-control:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
body.sc-cwp .input-group .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
body.sc-cwp label, body.sc-cwp .control-label { color: var(--sc-ink); font-weight: 600; }
body.sc-cwp .onoffswitch-inner:before { background-color: var(--sc-blue); }
body.sc-cwp .onoffswitch-label { border-color: var(--sc-blue); }
body.sc-cwp .radio-primary input[type="radio"]:checked + label::before { border-color: var(--sc-blue); }
body.sc-cwp .radio-primary input[type="radio"] + label::after { background-color: var(--sc-blue); }
body.sc-cwp .checkbox-primary input[type="checkbox"]:checked + label::before { background-color: var(--sc-blue); border-color: var(--sc-blue); }

/* ---------- Tables, tabs, labels ---------- */
body.sc-cwp .table > thead > tr > th { background: var(--sc-surface-2); border-bottom: 1px solid var(--sc-line); color: var(--sc-muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
body.sc-cwp .table > tbody > tr > td, body.sc-cwp .table > thead > tr > th { border-color: var(--sc-line); vertical-align: middle; }
body.sc-cwp .table-hover > tbody > tr:hover, body.sc-cwp .table-striped > tbody > tr:nth-of-type(odd) { background: var(--sc-surface-2); }
body.sc-cwp .pagination > .active > a, body.sc-cwp .pagination > .active > span, body.sc-cwp .dataTables_wrapper .pagination .active > a { background: var(--sc-blue); border-color: var(--sc-blue); color: #fff !important; }
body.sc-cwp .pagination > li > a { border-radius: 8px; margin: 0 2px; border-color: var(--sc-line); color: var(--sc-text); }
body.sc-cwp .nav-tabs { border-bottom: 1px solid var(--sc-line); }
body.sc-cwp .nav-tabs > li > a { border-radius: 10px 10px 0 0; color: var(--sc-muted); font-weight: 600; }
body.sc-cwp .nav-tabs > li.active > a, body.sc-cwp .nav-tabs > li.active > a:hover, body.sc-cwp .nav-tabs > li > a.active { color: var(--sc-blue-700); border-color: var(--sc-line) var(--sc-line) #fff; box-shadow: inset 0 3px 0 var(--sc-blue); }
body.sc-cwp .tabs-container .panel-body { border-color: var(--sc-line); border-radius: 0 0 var(--sc-radius) var(--sc-radius); }
body.sc-cwp .label, body.sc-cwp .badge { border-radius: 6px; font-weight: 700; font-family: var(--sc-font); }
body.sc-cwp .label-primary, body.sc-cwp .badge-primary { background: var(--sc-blue); }
body.sc-cwp .label-success, body.sc-cwp .badge-success { background: var(--sc-success); }
body.sc-cwp .label-warning, body.sc-cwp .badge-warning { background: var(--sc-orange); color: #fff; }
body.sc-cwp .label-danger, body.sc-cwp .badge-danger { background: var(--sc-danger); }
body.sc-cwp .label-info, body.sc-cwp .badge-info { background: var(--sc-navy-2); }
body.sc-cwp .text-navy, body.sc-cwp .text-info { color: var(--sc-blue) !important; }
body.sc-cwp .text-warning { color: var(--sc-orange-600) !important; }
body.sc-cwp .text-success { color: var(--sc-success) !important; }
body.sc-cwp .navy-bg, body.sc-cwp .bg-primary { background-color: var(--sc-blue) !important; }
body.sc-cwp .lazur-bg, body.sc-cwp .bg-info { background-color: var(--sc-navy-2) !important; }
body.sc-cwp .yellow-bg, body.sc-cwp .bg-warning { background-color: var(--sc-orange) !important; }
body.sc-cwp .progress { background: var(--sc-tint); border-radius: 99px; box-shadow: none; }
body.sc-cwp .progress-bar { background-color: var(--sc-blue); }
body.sc-cwp .progress-bar-warning { background-color: var(--sc-orange); }
body.sc-cwp .alert { border-radius: var(--sc-radius-sm); }
body.sc-cwp .alert-info { background: var(--sc-tint); border-color: #cfe0ff; color: #0a3a9e; }
body.sc-cwp .alert-success { background: #e8f8ef; border-color: #bfeccf; color: #0c6b36; }
body.sc-cwp .alert-warning { background: #fff5e6; border-color: #ffdca8; color: #8a4b00; }
body.sc-cwp .alert-danger { background: #fdecec; border-color: #f6c6c6; color: #9b1c1c; }
body.sc-cwp .modal-content { border: 0; border-radius: 18px; box-shadow: var(--sc-shadow-lg); overflow: hidden; }
body.sc-cwp .modal-header { border-bottom: 1px solid var(--sc-line); padding: 18px 22px; }
body.sc-cwp .modal-title { font-weight: 800; color: var(--sc-ink); }
body.sc-cwp .modal-footer { border-top: 1px solid var(--sc-line); background: var(--sc-surface-2); }
body.sc-cwp .inmodal .modal-header { background: var(--sc-surface); }
body.sc-cwp .footer { background: transparent; border-top: 1px solid var(--sc-line); color: var(--sc-muted); font-size: 13px; padding: 14px 28px; }

/* ---------- Login: split screen ---------- */
html:has(body.sc-login) { background: #fff; }
body.sc-login, body.sc-login.gray-bg {
  min-height: 100vh;
  margin: 0;
  background: var(--sc-surface);
  padding-left: 50vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
body.sc-login .sc-login-visual {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50vw;
  background: var(--sc-navy) url("../img/semecloud/login-visual.webp") center 60% / cover no-repeat;
}
body.sc-login .loginColumns, body.sc-login .middle-box, body.sc-login .logged-message-wrapper {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 24px;
}
body.sc-login .loginColumns > .row { display: block; margin: 0; }
body.sc-login .loginColumns > .row > [class*="col-"] { width: 100%; float: none; padding: 0; text-align: left !important; }
body.sc-login .loginColumns > .row:first-child > .col-md-6:first-child > .col-md-12 { float: none; width: auto; margin: 0 !important; padding: 0; text-align: left !important; }
body.sc-login .sc-login-logo img { width: 170px; height: auto; }
body.sc-login .sc-tagline { display: block; clear: both; white-space: nowrap; margin: 26px 0 6px; font-size: 23px !important; font-weight: 800; color: var(--sc-ink); letter-spacing: -.02em; line-height: 1.25; }
body.sc-login .sc-subline { margin: 0 0 26px; color: var(--sc-muted); font-size: 15px; }
body.sc-login .ibox-content { background: transparent; border: 0; padding: 0; box-shadow: none; }
body.sc-login .form-control { height: 48px; border: 1px solid #d6dce8; border-radius: 12px; font-size: 15px; padding: 10px 14px; color: var(--sc-ink); box-shadow: none; }
body.sc-login select.form-control { padding: 0 12px; line-height: 46px; }
body.sc-login .form-control:focus { border-color: var(--sc-blue); box-shadow: 0 0 0 3px rgba(16, 98, 254, .15); }
body.sc-login .form-group .row { display: flex; align-items: center; margin: 0; }
body.sc-login .form-group .row > div { padding: 0; }
body.sc-login .form-group .row > div:first-child { flex: 0 0 auto; width: auto; color: var(--sc-ink); font-weight: 600; padding: 0 14px 0 0 !important; }
body.sc-login .form-group .row > div:last-child { flex: 1; width: auto; }
body.sc-login #sessioning { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; accent-color: var(--sc-blue); }
body.sc-login .form-group:has(#sessioning) { color: var(--sc-text); font-weight: 500; }
body.sc-login .btn-primary { height: 50px; border-radius: 12px; background: var(--sc-orange); border-color: var(--sc-orange); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 10px 24px rgba(255, 152, 0, .32); }
body.sc-login .btn-primary:hover, body.sc-login .btn-primary:focus { background: var(--sc-orange-600) !important; border-color: var(--sc-orange-600) !important; }
body.sc-login .btn-white { border: 0; background: transparent; color: var(--sc-blue); font-weight: 600; font-size: 14px; }
body.sc-login .btn-white:hover { background: var(--sc-tint); color: var(--sc-blue-700); }
body.sc-login .text-muted { color: var(--sc-muted) !important; }
body.sc-login .loginColumns > hr { border-color: var(--sc-line); margin: 28px 0 14px; }
body.sc-login .loginColumns > .row:last-child { display: flex; justify-content: space-between; color: var(--sc-muted); font-size: 12.5px; }
body.sc-login .loginColumns > .row:last-child > [class*="col-"] { width: auto; }
body.sc-login .loginColumns > .row:last-child a { color: var(--sc-ink); }
body.sc-login .middle-box > .text-center { text-align: left !important; margin-bottom: 22px; }
body.sc-login .middle-box h2 { margin-top: 0; font-weight: 800; color: var(--sc-ink); }
body.sc-login .logged-message { display: block; }
body.sc-login .logged-message .col-md-6 { width: 100%; float: none; border: 0 !important; text-align: left !important; padding: 0; }
body.sc-login .logged-message img { width: 170px; }
body.sc-login .logged-message-alert { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 34px 0 0; }
body.sc-login .logged-message-alert > .fa-spinner { display: none; }
body.sc-login .logged-message-alert::before { content: ""; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%;
  border: 3px solid var(--sc-tint); border-top-color: var(--sc-blue); animation: sc-spin .8s linear infinite; }
body.sc-login .logged-message-alert h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--sc-ink) !important; }
body.sc-login .logged-message-alert h5 { margin: 0; font-size: 15px; font-weight: 500; color: var(--sc-muted); }
body.sc-login .logged-message-alert h5 + h5 { display: none; }
@keyframes sc-spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  body.sc-login, body.sc-login.gray-bg { padding-left: 0; justify-content: flex-start; }
  body.sc-login .sc-login-visual { position: relative; width: 100%; height: 120px; flex: 0 0 auto; background-position: center 55%; }
  body.sc-login .loginColumns, body.sc-login .middle-box, body.sc-login .logged-message-wrapper { padding: 26px 20px 32px; }
  body.sc-login .sc-tagline { white-space: normal; font-size: 22px !important; margin-top: 18px; }
  body.sc-login .sc-subline { margin-bottom: 20px; }
}
@media (max-width: 768px) {
  body.sc-cwp:not(.mini-navbar) #page-wrapper, body.sc-cwp.mini-navbar #page-wrapper { margin-left: 0; }
  body.sc-cwp .navbar-static-top { padding: 0 10px; min-height: 62px; }
  body.sc-cwp .navbar-form-custom { display: none; }
  body.sc-cwp .navbar-top-links { margin-left: auto; }
  body.sc-cwp .navbar-header { flex: 0 0 auto; }
  body.sc-cwp .navbar-top-links > li > a, body.sc-cwp .navbar-top-links .welcome-message { padding: 6px; }
  body.sc-cwp .welcome-message .sc-user-name { display: none; }
  body.sc-cwp .navbar-top-links > li:last-child > a { font-size: 0; gap: 0; }
  body.sc-cwp .navbar-top-links > li:last-child > a i { font-size: 17px; }
  body.sc-cwp #imglock { font-size: 0; gap: 0; padding: 7px; }
  body.sc-cwp #imglock .sc-ic { width: 16px; height: 16px; }
  body.sc-cwp .wrapper-content { padding: 16px 12px 32px; }
  body.sc-cwp .page-heading { padding: 18px 14px 0; }
  body.sc-cwp .sc-dash-hello { padding: 22px 20px; border-radius: 18px; }
  body.sc-cwp .sc-dash-hello h1 { font-size: 23px; }
  body.sc-cwp .sc-dash-actions a { padding: 9px 12px; font-size: 13px; }
  body.sc-cwp .lang-items-wrapper { width: 92vw !important; right: -60px; }
  body.sc-cwp .ibox-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  body.sc-cwp .ibox-title > * { float: none !important; }
  body.sc-cwp .ibox-content { overflow-x: auto; }
  body.sc-cwp .dashboard-header h2 { font-size: 22px; }
  /* small screens: the menu opens as a drawer over the page */
  body.sc-cwp .navbar-static-side { display: none; }
  body.sc-cwp.mini-navbar .navbar-static-side { display: block; width: 280px; position: fixed; top: 0; bottom: 0; left: 0; z-index: 3000; overflow-y: auto; box-shadow: 0 0 60px rgba(2, 10, 40, .35); }
  body.sc-cwp.mini-navbar .navbar-static-side .profile-element, body.sc-cwp.mini-navbar .navbar-static-side .nav-label,
  body.sc-cwp.mini-navbar .navbar-default .nav li a span { display: inline !important; }
  body.sc-cwp.mini-navbar .navbar-static-side .profile-element { display: block !important; }
  body.sc-cwp.mini-navbar .navbar-static-side .logo-element { display: none !important; }
  body.sc-cwp.mini-navbar #side-menu { padding: 4px 14px 18px; }
  body.sc-cwp.mini-navbar #side-menu .sc-nav-section { display: block; }
  body.sc-cwp:not(.sc-login), body.sc-cwp.mini-navbar:not(.sc-login), body.sc-cwp #wrapper, body.sc-cwp.mini-navbar #wrapper { background: var(--sc-bg); }
  body.sc-cwp.mini-navbar .navbar-default .nav > li > a { justify-content: flex-start; padding: 10px 30px 10px 10px; }
  body.sc-cwp.mini-navbar .navbar-default .nav > li > a .fa.arrow { display: inline-block; }
  body.sc-cwp.mini-navbar .nav .nav-second-level { position: static; display: none; padding: 2px 0 8px 46px; box-shadow: none; border: 0; }
  body.sc-cwp.mini-navbar .nav li.active > .nav-second-level, body.sc-cwp.mini-navbar .nav .nav-second-level.in { display: block; }
}

/* Login: the language picker only chose the panel language after sign-in and confused users.
   Hidden (not removed) so CWP's login script still reads its default value. */
.form-group:has(> .row > .col-lg-8 > #userLang) { display: none !important; }

/* Password show/hide toggle */
.sc-pw-wrap { position: relative; display: block; }
.sc-pw-wrap > input { padding-right: 44px !important; }
.sc-pw-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px;
  background: transparent; color: #64748b; cursor: pointer; padding: 0; }
.sc-pw-toggle:hover, .sc-pw-toggle:focus-visible { background: #eef3ff; color: #0b2a7a; outline: none; }
