/* Cycling Support 1.0.15 - clean Operations Hub stylesheet */

:root {
  color-scheme: light;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-bg: #f5f7fb;
  --page-bg-2: #f5f7fb;
  --panel-bg: #ffffff;
  --panel-strong: #ffffff;
  --panel-muted: #f7f9fc;
  --line-soft: #dfe6f2;
  --line-strong: #cbd6e6;
  --text: #071f49;
  --text-muted: #55667f;
  --text-faint: #8d9ab0;
  --accent: #ff6b00;
  --accent-2: #082f73;
  --accent-soft: #fff2e8;
  --accent-border: #ffb076;
  --critical: #ef2b2d;
  --critical-soft: #ffe9ea;
  --warning: #f59e0b;
  --warning-soft: #fff5df;
  --success: #21a65b;
  --success-soft: #e8f8ef;
  --info-soft: #eaf2ff;
  --shadow-soft: 0 1px 2px rgba(15, 35, 65, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 35, 65, 0.04);
  --shadow-md: 0 8px 26px rgba(15, 35, 65, 0.08);
  --shadow-lg: 0 18px 44px rgba(15, 35, 65, 0.12);
  --blur: none;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 12px;
  --radius-full: 999px;
  --side-rail-width: 146px;
  --topbar-height: 56px;
  --content-max: none;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #0d1422;
  --page-bg-2: #0d1422;
  --panel-bg: #121c2e;
  --panel-strong: #151f33;
  --panel-muted: #182439;
  --line-soft: rgba(226, 233, 245, 0.12);
  --line-strong: rgba(226, 233, 245, 0.2);
  --text: #f5f8ff;
  --text-muted: #aab7cb;
  --text-faint: #75839b;
  --accent-soft: rgba(255, 107, 0, 0.14);
  --accent-border: rgba(255, 107, 0, 0.42);
  --success-soft: rgba(33, 166, 91, 0.16);
  --warning-soft: rgba(245, 158, 11, 0.16);
  --critical-soft: rgba(239, 43, 45, 0.16);
  --info-soft: rgba(36, 93, 168, 0.18);
  --shadow-soft: none;
  --shadow-sm: none;
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.22);
}

html,
body.cs-template {
  background: var(--page-bg);
}

body.cs-template {
  color: var(--text);
  background: var(--page-bg) !important;
  letter-spacing: 0;
}

body.cs-template::before,
.cs-template .panel::before,
.cs-template .module-card::before,
.cs-template .cycling-module-card::before {
  display: none !important;
}

body.cs-template a {
  color: var(--accent-2);
  text-decoration-color: rgba(8, 47, 115, 0.28);
  text-underline-offset: 0.2em;
}

html[data-theme="dark"] body.cs-template a {
  color: #83b7ff;
}

/* App shell */
.cs-template .app-shell {
  display: grid;
  grid-template-columns: var(--side-rail-width) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--page-bg);
}

.cs-template .workspace {
  min-width: 0;
  background: var(--page-bg);
}

/* Expanded labelled sidebar */
.cs-template .side-rail {
  position: sticky;
  top: 0;
  z-index: 30;
  align-items: stretch;
  width: var(--side-rail-width);
  height: 100vh;
  padding: 14px 8px;
  gap: 22px;
  border-right: 1px solid var(--line-soft);
  background: var(--panel-strong);
  box-shadow: none;
  backdrop-filter: none;
}

html[data-theme="dark"] .cs-template .side-rail {
  background: #101a2c;
}

.cs-template .brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 0 12px;
  border: 0;
  border-radius: 7px;
  background: var(--accent-2);
  box-shadow: none;
}

.cs-template .brand-mark__glyph {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.cs-template .brand-mark__glyph::after {
  top: -4px;
  right: -5px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  box-shadow: none;
}

.cs-template .rail-nav,
.cs-template .side-rail .moduletable,
.cs-template .side-rail .rail-nav__menu,
.cs-template .side-rail .cs-rail-menu,
.cs-template .side-rail .rail-nav__fallback,
.cs-template .side-rail .mod-menu,
.cs-template .side-rail .nav,
.cs-template .side-rail ul {
  width: 100%;
}

.cs-template .rail-nav {
  margin-top: 0;
}

.cs-template .side-rail .cs-rail-menu,
.cs-template .side-rail .rail-nav__fallback,
.cs-template .side-rail .mod-menu,
.cs-template .side-rail .nav {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__label,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transform: none;
}

.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link::before,
.cs-template .side-rail .mod-menu a::before,
.cs-template .side-rail .nav a::before {
  position: absolute;
  inset: 8px auto 8px -8px;
  width: 3px;
  content: "";
  border-radius: 0 999px 999px 0;
  background: transparent;
}

.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover,
.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .mod-menu .active > a,
.cs-template .side-rail .nav .active > a,
.cs-template .side-rail .current > a {
  color: var(--accent-2);
  background: #edf1f7;
  box-shadow: none;
  transform: none;
}

.cs-template .side-rail .cs-rail-menu__link.is-active::before,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link::before,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link.is-active::before,
.cs-template .side-rail .mod-menu .active > a::before,
.cs-template .side-rail .nav .active > a::before,
.cs-template .side-rail .current > a::before {
  background: var(--accent);
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  opacity: 1;
}

.cs-template .side-rail .cs-rail-menu__text,
.cs-template .side-rail .mod-menu a span,
.cs-template .side-rail .nav a span,
.cs-template .side-rail .rail-nav__link span {
  display: inline;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-template .rail-collapse {
  align-self: start;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: auto 0 0 2px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: none;
}

.cs-template .rail-collapse:hover {
  background: #f1f4f9;
  transform: none;
}

.cs-template .rail-collapse img {
  width: 16px;
  height: 16px;
}

/* Optional collapsed rail state */
body.cs-template.rail-is-compact .app-shell {
  grid-template-columns: 72px minmax(0, 1fr);
}

body.cs-template.rail-is-compact .side-rail {
  align-items: center;
  width: 72px;
  padding-inline: 10px;
}

body.cs-template.rail-is-compact .brand-mark,
body.cs-template.rail-is-compact .rail-collapse {
  align-self: center;
  margin-inline: auto;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__link,
body.cs-template.rail-is-compact .side-rail .cs-rail-menu__label,
body.cs-template.rail-is-compact .side-rail .rail-nav__link,
body.cs-template.rail-is-compact .side-rail .mod-menu a,
body.cs-template.rail-is-compact .side-rail .nav a {
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__text,
body.cs-template.rail-is-compact .side-rail .mod-menu a span,
body.cs-template.rail-is-compact .side-rail .nav a span,
body.cs-template.rail-is-compact .side-rail .rail-nav__link span {
  display: none;
}

body.cs-template.rail-is-compact .rail-collapse img {
  transform: rotate(180deg);
}

/* Topbar */
.cs-template .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--topbar-height);
  padding: 0 28px 0 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel-strong);
  box-shadow: none;
  backdrop-filter: none;
}

html[data-theme="dark"] .cs-template .topbar {
  background: #101a2c;
}

.cs-template .topbar__system,
.cs-template .topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cs-template .topbar__system {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.cs-template .topbar__menu {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.cs-template .topbar__menu span {
  display: block;
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--accent-2);
}

.cs-template .topbar__menu:hover,
.cs-template .icon-button:hover {
  background: #f1f4f9;
  transform: none;
}

.cs-template .topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.cs-template .topbar-brand__logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 2px;
  color: #fff;
  background: var(--accent);
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.cs-template .topbar-brand__copy {
  display: grid;
  gap: 1px;
}

.cs-template .topbar-brand__copy strong {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.cs-template .topbar-brand__copy small {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
}

.cs-template .icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
}

.cs-template .icon-button img {
  width: 18px;
  height: 18px;
  opacity: 1;
}

.cs-template .badge {
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  color: #fff;
  background: var(--accent);
  font-size: 0.62rem;
  box-shadow: 0 0 0 2px var(--panel-strong);
}

.cs-template .user-pill {
  display: grid;
  grid-template-columns: 30px minmax(0, auto) 14px;
  min-height: 42px;
  gap: 10px;
  padding: 0 14px;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

.cs-template .user-pill__avatar {
  width: 30px;
  height: 30px;
  background: #edf2f8;
}

.cs-template .user-pill strong,
.cs-template .team-lockup strong {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
}

.cs-template .user-pill small,
.cs-template .team-lockup small {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.cs-template .team-lockup strong {
  color: var(--accent-2);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cs-template .team-lockup small {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
}

/* Layout, cards and hero */
.cs-template .dashboard {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 24px 32px;
}

.cs-template .panel,
.cs-template .module-card,
.cs-template .cycling-module-card {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

.cs-template .hero-card {
  display: flex;
  align-items: center;
  min-height: 102px;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--panel-strong);
}

.cs-template .eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.cs-template .hero-card h1,
.cs-template .default-hero-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.1rem, 3vw, 3.15rem);
  line-height: 0.96;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-template .hero-card p:last-child,
.cs-template .default-hero-copy {
  max-width: 68ch;
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 520;
  line-height: 1.45;
}

.cs-template .hero-card__visual,
.cs-template img[src*="hero-bike"],
.cs-template img[src*="part-frame"],
.cs-template img[src*="/icons/bike.svg"] {
  display: none !important;
}

.cs-template .quick-facts,
.cs-template .content-grid,
.cs-template .dashboard-grid,
.cs-template .notification-panel,
.cs-template .footer-panel {
  margin-top: 14px;
}

.cs-template .dashboard-grid,
.cs-template .quick-facts,
.cs-template .content-grid {
  gap: 14px;
}

.cs-template .quick-facts {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  max-width: none;
}

.cs-template .content-grid.has-sidebar-right:not(.has-sidebar-left) {
  grid-template-columns: minmax(0, 1fr) 304px;
}

.cs-template .content-grid.has-sidebar-left.has-sidebar-right {
  grid-template-columns: 280px minmax(0, 1fr) 304px;
}

.cs-template .content-grid.has-sidebar-left:not(.has-sidebar-right) {
  grid-template-columns: 280px minmax(0, 1fr);
}

.cs-template .component-panel,
.cs-template .sidebar-panel,
.cs-template .footer-panel {
  padding: 20px 22px;
}

.cs-template .panel__header,
.cs-template .module-card__header {
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--line-soft);
}

.cs-template .panel__header h2,
.cs-template .module-card__title,
.cs-template .event-card h3,
.cs-template .weather-panel h2,
.cs-template .forecast-panel h2,
.cs-template .time-panel h2,
.cs-template .component-panel h2,
.cs-template .component-panel h3 {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: none;
}

.cs-template .module-card__body,
.cs-template .event-card__body,
.cs-template .weather-panel,
.cs-template .forecast-panel,
.cs-template .time-panel {
  padding: 18px;
}

/* Native Joomla content */
.cs-template .component-panel .page-header,
.cs-template .component-panel .article-info,
.cs-template .component-panel .icons,
.cs-template .component-panel .tags {
  display: none !important;
}

.cs-template .component-panel h1,
.cs-template .component-panel .page-header h1 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.65rem, 2.4vw, 2.6rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.02em;
}

.cs-template .component-panel p,
.cs-template .component-panel li,
.cs-template .component-panel dd,
.cs-template .component-panel dt {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

/* Buttons and fields */
.cs-template .btn,
.cs-template button,
.cs-template input[type="submit"],
.cs-template .readmore a,
.cs-template .pagenavigation a,
.cs-template .pagination a,
.cs-template .pagination span,
.cs-template .open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--accent-2);
  background: var(--panel-strong);
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.cs-template .btn:hover,
.cs-template button:hover,
.cs-template input[type="submit"]:hover,
.cs-template .readmore a:hover,
.cs-template .pagenavigation a:hover,
.cs-template .pagination a:hover,
.cs-template .open-button:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  transform: none;
}

.cs-template .btn-primary,
.cs-template .button-primary,
.cs-template button[type="submit"],
.cs-template input[type="submit"] {
  border-color: var(--accent-2);
  color: #fff;
  background: var(--accent-2);
}

.cs-template .btn-primary:hover,
.cs-template .button-primary:hover,
.cs-template button[type="submit"]:hover,
.cs-template input[type="submit"]:hover {
  border-color: #0a3d91;
  color: #fff;
  background: #0a3d91;
}

.cs-template input[type="text"],
.cs-template input[type="password"],
.cs-template input[type="email"],
.cs-template input[type="search"],
.cs-template input[type="url"],
.cs-template input[type="tel"],
.cs-template input[type="number"],
.cs-template select,
.cs-template textarea {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  color: var(--text);
  background: var(--panel-strong);
  box-shadow: none;
  font-size: 0.86rem;
}

.cs-template textarea {
  min-height: 120px;
  padding-top: 10px;
}

.cs-template input:focus,
.cs-template select:focus,
.cs-template textarea:focus {
  border-color: rgba(8, 47, 115, 0.38);
  outline: 3px solid rgba(8, 47, 115, 0.08);
  outline-offset: 0;
}

/* Tables and migrated data */
.cs-template .table-wrap,
.cs-template .cs-data-table-wrap,
.cs-template .table-responsive {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-strong);
}

.cs-template .component-panel table,
.cs-template .notification-table,
.cs-template .cs-data-table,
.cs-template table.table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--panel-strong);
  color: var(--text);
  font-size: 0.78rem;
}

.cs-template .component-panel th,
.cs-template .component-panel td,
.cs-template .notification-table th,
.cs-template .notification-table td,
.cs-template .cs-data-table th,
.cs-template .cs-data-table td {
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.cs-template .component-panel th,
.cs-template .notification-table th,
.cs-template .cs-data-table th {
  color: var(--accent-2);
  background: #f7f9fc;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cs-template .component-panel tbody tr:hover,
.cs-template .notification-table tbody tr:hover,
.cs-template .cs-data-table tbody tr:hover {
  background: #fbfcff;
}

.cs-template .component-panel tbody tr:last-child td,
.cs-template .notification-table tbody tr:last-child td,
.cs-template .cs-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.cs-template .component-panel td:first-child,
.cs-template .notification-table td:first-child,
.cs-template .cs-data-table td:first-child {
  color: var(--text);
  font-weight: 850;
}

.cs-template .cs-migrated-data-index,
.cs-template .cs-migrated-data-detail {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cs-template .cs-migrated-data-index > h3,
.cs-template .cs-migrated-data-detail > h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 950;
}

.cs-template .cs-migrated-data-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.cs-template .cs-migrated-data-links li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--panel-strong);
  box-shadow: none;
}

.cs-template .cs-migrated-data-links a {
  overflow: hidden;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.cs-template .cs-migrated-data-links span,
.cs-template .tag,
.cs-template .severity-pill,
.cs-template .badge-soft,
.cs-template .status,
.cs-template .label,
.cs-template .label-info,
.cs-template .label-success,
.cs-template .label-warning,
.cs-template .label-important {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.cs-template .cs-migrated-data-links span,
.cs-template .label-info,
.cs-template .status-info {
  color: var(--accent-2);
  background: var(--info-soft);
}

.cs-template .severity-pill--warning,
.cs-template .label-warning {
  color: #9a5f00;
  background: var(--warning-soft);
}

.cs-template .severity-pill--critical,
.cs-template .label-important {
  color: var(--critical);
  background: var(--critical-soft);
}

.cs-template .label-success,
.cs-template .status-available,
.cs-template .available,
.cs-template .is-available {
  color: var(--success);
  background: var(--success-soft);
}

.cs-template .tag,
.cs-template .badge-soft {
  color: var(--accent-2);
  background: #f0f4fa;
}

/* Sidebar module polish */
.cs-template .sidebar-panel .module-card,
.cs-template .sidebar-panel .cycling-module-card,
.cs-template .sidebar-panel .moduletable {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cs-template .sidebar-panel .module-card__header,
.cs-template .sidebar-panel h3,
.cs-template .sidebar-panel h4 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-template .sidebar-panel .module-card__body {
  padding: 0;
}

.cs-template .sidebar-panel .mod-menu,
.cs-template .sidebar-panel .nav,
.cs-template .sidebar-panel ul.menu,
.cs-template .sidebar-panel ul:not(.cs-migrated-data-links) {
  display: grid;
  gap: 8px;
}

.cs-template .sidebar-panel .mod-menu a,
.cs-template .sidebar-panel .nav a,
.cs-template .sidebar-panel ul.menu a {
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 750;
}

.cs-template .sidebar-panel .mod-menu a:hover,
.cs-template .sidebar-panel .nav a:hover,
.cs-template .sidebar-panel ul.menu a:hover,
.cs-template .sidebar-panel .active > a {
  color: var(--accent-2);
  background: #f1f4f9;
}

/* Messages and auth card */
.cs-template #system-message-container,
.cs-template .joomla-messages {
  margin: 14px 0;
}

.cs-template #system-message-container joomla-alert,
.cs-template .alert {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--panel-strong);
  box-shadow: none;
  color: var(--text);
}

body.cs-template.cs-auth-only {
  background: var(--page-bg) !important;
}

.cs-template .cs-auth-shell {
  width: min(440px, 100%);
  min-height: 100vh;
}

.cs-template .cs-auth-card {
  padding: 28px;
  border-radius: 14px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-md);
}

.cs-template .cs-auth-card input[type="text"],
.cs-template .cs-auth-card input[type="password"],
.cs-template .cs-auth-card input[type="email"] {
  min-height: 44px;
  border-radius: 9px;
}

.cs-template .cs-auth-card .btn,
.cs-template .cs-auth-card button,
.cs-template .cs-auth-card input[type="submit"] {
  min-height: 42px;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 1180px) {
  :root {
    --side-rail-width: 132px;
  }

  .cs-template .content-grid.has-sidebar-right:not(.has-sidebar-left),
  .cs-template .content-grid.has-sidebar-left.has-sidebar-right,
  .cs-template .content-grid.has-sidebar-left:not(.has-sidebar-right) {
    grid-template-columns: 1fr;
  }

  .cs-template .quick-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --side-rail-width: 72px;
    --topbar-height: 58px;
  }

  .cs-template .app-shell,
  body.cs-template.rail-is-compact .app-shell {
    grid-template-columns: 1fr;
  }

  .cs-template .side-rail,
  body.cs-template.rail-is-compact .side-rail {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    width: 100%;
    height: 70px;
    padding: 8px 10px;
    border-top: 1px solid var(--line-soft);
    border-right: 0;
  }

  .cs-template .brand-mark,
  .cs-template .rail-collapse {
    display: none;
  }

  .cs-template .rail-nav,
  .cs-template .side-rail .cs-rail-menu,
  .cs-template .side-rail .rail-nav__fallback,
  .cs-template .side-rail .mod-menu,
  .cs-template .side-rail .nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(58px, 1fr);
    gap: 5px;
    width: 100%;
    margin: 0;
    overflow-x: auto;
  }

  .cs-template .side-rail .cs-rail-menu__link,
  .cs-template .side-rail .cs-rail-menu__label,
  .cs-template .side-rail .rail-nav__link,
  .cs-template .side-rail .mod-menu a,
  .cs-template .side-rail .nav a,
  body.cs-template.rail-is-compact .side-rail .cs-rail-menu__link,
  body.cs-template.rail-is-compact .side-rail .cs-rail-menu__label,
  body.cs-template.rail-is-compact .side-rail .rail-nav__link,
  body.cs-template.rail-is-compact .side-rail .mod-menu a,
  body.cs-template.rail-is-compact .side-rail .nav a {
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 52px;
    padding: 5px;
    flex-direction: column;
    font-size: 0.62rem;
  }

  .cs-template .side-rail .cs-rail-menu__link::before,
  .cs-template .side-rail .rail-nav__link::before,
  .cs-template .side-rail .mod-menu a::before,
  .cs-template .side-rail .nav a::before {
    inset: auto 14px -8px 14px;
    width: auto;
    height: 3px;
    border-radius: 999px 999px 0 0;
  }

  .cs-template .side-rail .cs-rail-menu__text,
  .cs-template .side-rail .mod-menu a span,
  .cs-template .side-rail .nav a span,
  .cs-template .side-rail .rail-nav__link span {
    display: inline;
    max-width: 58px;
    font-size: 0.62rem;
  }

  body.cs-template.rail-is-compact .side-rail .cs-rail-menu__text,
  body.cs-template.rail-is-compact .side-rail .mod-menu a span,
  body.cs-template.rail-is-compact .side-rail .nav a span,
  body.cs-template.rail-is-compact .side-rail .rail-nav__link span {
    display: inline;
  }

  .cs-template .topbar {
    padding: 0 14px;
  }

  .cs-template .topbar-brand__copy small,
  .cs-template .team-lockup,
  .cs-template .user-pill small {
    display: none;
  }

  .cs-template .dashboard {
    padding: 14px 14px 90px;
  }

  .cs-template .hero-card {
    min-height: 94px;
    padding: 18px;
  }

  .cs-template .quick-facts,
  .cs-template .cs-migrated-data-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .cs-template .topbar__actions {
    gap: 6px;
  }

  .cs-template .topbar-brand__copy,
  .cs-template .user-pill span {
    display: none;
  }

  .cs-template .user-pill {
    grid-template-columns: 30px 14px;
    padding: 0 8px;
  }

  .cs-template .hero-card h1,
  .cs-template .default-hero-title {
    font-size: 2rem;
    letter-spacing: 0.04em;
  }

  .cs-template .component-panel,
  .cs-template .sidebar-panel,
  .cs-template .footer-panel {
    padding: 16px;
  }
}

/* Cycling Support 1.0.16 - app-screen structural refresh */
:root {
  --side-rail-width: 178px;
  --topbar-height: 58px;
  --content-max: none;
  --app-sidebar-width: 300px;
  --app-gap: 16px;
  --app-border: #dfe6f2;
  --app-muted-bg: #f7f9fc;
  --app-orange: #ff6b00;
  --app-blue: #082f73;
}

body.cs-template.cs-app-native {
  overflow-x: hidden;
}

.cs-template .app-shell {
  grid-template-columns: var(--side-rail-width) minmax(0, 1fr) !important;
  background: #f5f7fb;
}

.cs-template .side-rail {
  width: var(--side-rail-width) !important;
  padding: 14px 8px 16px !important;
  background: #ffffff !important;
  border-right: 1px solid #dfe6f2 !important;
  box-shadow: none !important;
}

.cs-template .brand-mark {
  width: 36px !important;
  height: 36px !important;
  margin-bottom: 22px !important;
  border-radius: 7px !important;
  background: var(--app-blue) !important;
}

.cs-template .rail-nav {
  flex: 1 1 auto;
  width: 100%;
}

.cs-template .rail-nav__fallback,
.cs-template .side-rail .cs-rail-menu {
  display: grid !important;
  gap: 8px !important;
  width: 100%;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link {
  min-height: 42px !important;
  padding: 0 12px !important;
  gap: 11px !important;
  border-radius: 9px !important;
  color: #082451 !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link::before {
  inset: 7px auto 7px -8px !important;
  width: 3px !important;
  border-radius: 0 999px 999px 0 !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link > img {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
  opacity: 0.85;
}

.cs-template .side-rail .cs-rail-menu__text {
  display: block !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .cs-rail-menu__link.is-active {
  color: var(--app-blue) !important;
  background: #edf1f7 !important;
}

.cs-template .side-rail .rail-nav__link.is-active::before,
.cs-template .side-rail .cs-rail-menu__link.is-active::before {
  background: var(--app-orange) !important;
}

body.rail-is-compact .cs-template .app-shell,
body.rail-is-compact.cs-template .app-shell {
  grid-template-columns: 72px minmax(0, 1fr) !important;
}

body.rail-is-compact .cs-template .side-rail,
body.rail-is-compact.cs-template .side-rail {
  width: 72px !important;
}

body.rail-is-compact .cs-template .side-rail .cs-rail-menu__text,
body.rail-is-compact.cs-template .side-rail .cs-rail-menu__text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.cs-template .topbar {
  height: var(--topbar-height) !important;
  min-height: var(--topbar-height) !important;
  padding: 0 22px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #dfe6f2 !important;
  box-shadow: none !important;
}

.cs-template .topbar-brand__logo {
  width: 28px !important;
  height: 28px !important;
  border-radius: 3px !important;
  background: var(--app-orange) !important;
  color: #fff !important;
  font-size: 0 !important;
}

.cs-template .topbar-brand__logo::after {
  content: "";
  width: 12px;
  height: 2px;
  display: block;
  margin: 13px auto 0;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 -4px 0 rgba(255, 255, 255, 0.76), 0 4px 0 rgba(255, 255, 255, 0.76);
}

.cs-template .topbar-brand__copy strong,
.cs-template .team-lockup strong {
  color: #082451 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em !important;
}

.cs-template .topbar-brand__copy small,
.cs-template .team-lockup small,
.cs-template .user-pill small {
  color: #55667f !important;
  font-size: 0.68rem !important;
}

.cs-template .dashboard {
  width: 100%;
  max-width: none !important;
  padding: 16px 18px 28px !important;
}

.cs-template .content-grid--app {
  display: block !important;
  margin: 0 !important;
}

.cs-template .component-panel--app {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.cs-template .component-panel--app .cs-content-article {
  margin: 0 !important;
}

.cs-app-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--app-sidebar-width);
  gap: var(--app-gap);
  align-items: start;
  width: 100%;
}

.cs-app-main,
.cs-app-side {
  display: grid;
  gap: var(--app-gap);
  min-width: 0;
}

.cs-app-panel,
.cs-app-hero {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 35, 65, 0.04);
}

.cs-app-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 104px;
  padding: 22px 26px;
}

.cs-app-kicker {
  margin: 0 0 4px;
  color: var(--app-orange);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cs-app-title {
  margin: 0;
  color: #071f49;
  font-size: clamp(2rem, 4vw, 3.05rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cs-app-subtitle {
  margin: 9px 0 0;
  color: #56667f;
  font-size: 0.98rem;
  line-height: 1.45;
}

.cs-app-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #0b3a82;
  border-radius: 7px;
  background: #ffffff;
  color: #0b2e69;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

.cs-btn--primary {
  border-color: #082f73;
  background: #082f73;
  color: #ffffff !important;
}

.cs-btn--ghost {
  border-color: #b9c7dc;
  background: #ffffff;
  color: #082451 !important;
}

.cs-app-panel {
  padding: 18px 22px;
}

.cs-app-panel--flush {
  padding: 0;
  overflow: hidden;
}

.cs-app-panel__title {
  margin: 0 0 12px;
  color: #071f49;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.cs-stat-grid,
.cs-category-grid,
.cs-metric-grid {
  display: grid;
  gap: 14px;
}

.cs-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cs-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cs-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs-category-card,
.cs-stat-card,
.cs-metric-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 14px 16px;
  border: 1px solid #dfe6f2;
  border-radius: 10px;
  background: #ffffff;
}

.cs-metric-card,
.cs-stat-card {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.cs-category-card strong,
.cs-stat-card strong,
.cs-metric-card strong {
  display: block;
  color: #071f49;
  font-size: 0.86rem;
  font-weight: 900;
}

.cs-category-card small,
.cs-stat-card small,
.cs-metric-card small,
.cs-muted {
  color: #596a83;
  font-size: 0.78rem;
}

.cs-folder-icon,
.cs-item-icon,
.cs-side-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 30px;
  border-radius: 6px;
  background: #2b5fa8;
  color: #ffffff;
  font-weight: 900;
}

.cs-folder-icon::before {
  content: "";
  width: 22px;
  height: 15px;
  border-radius: 2px 2px 3px 3px;
  background: currentColor;
  opacity: 0.95;
  box-shadow: -4px -5px 0 -2px currentColor;
}

.cs-item-icon {
  width: 42px;
  height: 30px;
  border: 1px solid #c9d5e7;
  background: #f3f6fa;
  color: #082451;
  font-size: 0.7rem;
}

.cs-item-icon::before {
  content: attr(data-icon);
}

.cs-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(130px, 180px));
  gap: 12px;
  padding: 16px 0 0;
}

.cs-search,
.cs-select {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #dfe6f2;
  border-radius: 7px;
  background: #ffffff;
  color: #071f49;
  font-size: 0.82rem;
}

.cs-table-wrap {
  overflow: auto;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
}

.cs-app-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  color: #082451;
  font-size: 0.8rem;
}

.cs-app-table caption {
  padding: 14px 18px 10px;
  color: #071f49;
  font-size: 1rem;
  font-weight: 900;
  text-align: left;
}

.cs-app-table th {
  padding: 9px 12px;
  color: #163766;
  background: #f6f8fb;
  border-bottom: 1px solid #dfe6f2;
  font-size: 0.66rem;
  font-weight: 950;
  text-align: left;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-app-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f7;
  vertical-align: middle;
}

.cs-app-table tr:last-child td {
  border-bottom: 0;
}

.cs-table-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cs-table-item strong {
  display: block;
  color: #071f49;
  font-weight: 900;
}

.cs-table-item small {
  display: block;
  color: #697a93;
}

.cs-badge,
.cs-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf1f7;
  color: #0b2e69;
  font-size: 0.72rem;
  font-weight: 850;
}

.cs-badge--blue { background: #e8f0fb; color: #0b3a82; }
.cs-badge--orange { background: #fff0df; color: #b45309; }
.cs-badge--green { background: #e8f8ef; color: #157347; }
.cs-badge--purple { background: #ebeefe; color: #3346a6; }
.cs-status--ok { background: #e8f8ef; color: #13753d; }
.cs-status--use { background: #fff2df; color: #b45309; }
.cs-status--low { background: #ffe9ea; color: #d71920; }

.cs-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.cs-side-list,
.cs-action-list,
.cs-alert-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-side-list li,
.cs-alert-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #082451;
  font-size: 0.82rem;
}

.cs-action-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #082451;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.cs-side-icon {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: transparent;
  color: #1c4a85;
}

.cs-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef5;
}

.cs-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--app-orange);
}

.cs-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-tag-cloud span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 7px;
  background: #f1f4f8;
  color: #082451;
  font-size: 0.76rem;
  font-weight: 750;
}

.cs-tag-cloud b {
  color: #63738b;
}

.cs-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 0;
  color: #56667f;
  font-size: 0.78rem;
}

.cs-pages {
  display: flex;
  gap: 8px;
}

.cs-pages span,
.cs-pages a {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border: 1px solid #dfe6f2;
  border-radius: 6px;
  background: #ffffff;
  color: #082451;
  font-weight: 800;
  text-decoration: none;
}

.cs-pages .is-current {
  color: #ffffff;
  border-color: var(--app-blue);
  background: var(--app-blue);
}

.cs-migrated-data {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px dashed #cbd6e6;
  border-radius: 10px;
  background: #fbfcfe;
}

.cs-migrated-data h3,
.cs-migrated-data h4 {
  margin-top: 0;
}

/* Hard safety net for Joomla frontend-editing controls in app screens. */
.cs-template .jmodedit,
.cs-template .btn.jmodedit,
.cs-template .jmoddiv,
.cs-template .btn-group.jmoddiv,
.cs-template a[href*="option=com_modules"][href*="task=module.edit"],
.cs-template a[href*="option=com_config"],
.cs-template a[href*="task=article.edit"],
.cs-template .edit-icon,
.cs-template .icons,
.cs-template .js-stools,
.cs-template .article-info,
.cs-template .item-page .page-header,
.cs-template .com-content-article__links,
.cs-template .com-content-article__info,
.cs-template .com-content-article__tags {
  display: none !important;
}

.cs-template .visually-hidden,
.cs-template .element-invisible,
.cs-template .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1180px) {
  .cs-app-screen {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-app-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root { --side-rail-width: 72px; }
  .cs-template .app-shell { grid-template-columns: 72px minmax(0, 1fr) !important; }
  .cs-template .side-rail { width: 72px !important; }
  .cs-template .side-rail .cs-rail-menu__text { display: none !important; }
  .cs-template .dashboard { padding: 12px !important; }
  .cs-app-hero { align-items: flex-start; flex-direction: column; padding: 18px; }
  .cs-app-actions { justify-content: flex-start; }
  .cs-category-grid,
  .cs-stat-grid,
  .cs-metric-grid,
  .cs-app-side,
  .cs-toolbar { grid-template-columns: 1fr; }
}

/* Cycling Support 1.0.17 - final app visual polish */
:root {
  --side-rail-width: 168px;
  --app-sidebar-width: 302px;
  --app-gap: 16px;
}

.cs-template .dashboard {
  padding: 16px 20px 34px !important;
}

.cs-template .topbar {
  padding-inline: 22px !important;
}

.cs-template .side-rail {
  padding-top: 14px !important;
}

.cs-template .brand-mark {
  margin-left: 2px !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link {
  min-height: 43px !important;
  padding-inline: 12px !important;
  font-size: 0.79rem !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active {
  background: #edf2f8 !important;
}

.cs-app-screen {
  grid-template-columns: minmax(0, 1fr) var(--app-sidebar-width);
  gap: 16px;
}

.cs-app-main,
.cs-app-side {
  gap: 16px;
}

.cs-app-hero {
  min-height: 106px;
  padding: 23px 26px;
}

.cs-app-title {
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  letter-spacing: 0.075em;
}

.cs-app-subtitle {
  margin-top: 8px;
  font-size: 0.92rem;
}

.cs-app-panel {
  padding: 17px 22px;
}

.cs-app-panel__title,
.cs-app-table caption {
  color: #071f49;
  font-size: 0.92rem;
  font-weight: 950;
}

.cs-app-side .cs-app-panel__title {
  margin-bottom: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-app-panel--categories {
  padding-top: 14px;
}

.cs-category-grid {
  gap: 18px;
}

.cs-category-card {
  min-height: 58px;
  padding: 12px 14px;
}

.cs-category-card strong {
  font-size: 0.82rem;
}

.cs-category-card small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
}

.cs-folder-icon {
  width: 31px;
  height: 27px;
  background: #2a5da7;
}

.cs-folder-icon::before {
  width: 20px;
  height: 13px;
}

.cs-filter-panel {
  padding: 14px 18px;
}

.cs-toolbar {
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(145px, 0.62fr)) minmax(135px, 0.55fr);
  gap: 14px;
  padding: 0;
}

.cs-search-wrap {
  position: relative;
  display: block;
}

.cs-search-wrap > span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: #163766;
  font-size: 0.92rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.cs-search,
.cs-select {
  min-height: 39px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.cs-search-wrap .cs-search {
  padding-right: 38px;
}

.cs-btn {
  min-height: 40px;
  padding-inline: 17px;
  border-radius: 7px;
  font-size: 0.8rem;
}

.cs-btn--primary {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.cs-table-wrap {
  border-radius: 8px;
}

.cs-app-table {
  font-size: 0.79rem;
}

.cs-app-table caption {
  padding: 13px 18px 9px;
  font-size: 0.96rem;
}

.cs-app-table th {
  padding: 8px 12px;
  font-size: 0.62rem;
  letter-spacing: 0.055em;
}

.cs-app-table td {
  padding: 9px 12px;
}

.cs-table-item {
  gap: 11px;
}

.cs-table-item strong {
  font-size: 0.83rem;
}

.cs-table-item small {
  margin-top: 1px;
  font-size: 0.72rem;
}

.cs-row-actions {
  color: #071f49;
  font-size: 1rem;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.cs-avatar-mini {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 999px;
  background: #edf2f8;
  color: #082451;
  font-size: 0.58rem;
  font-weight: 900;
}

.cs-doc-icon,
.cs-stock-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 0.48rem;
  font-weight: 950;
  line-height: 1;
}

.cs-doc-icon--pdf {
  color: #ef2b2d;
  background: #ffe9ea;
}

.cs-doc-icon--doc {
  color: #163766;
  background: #eaf2ff;
}

.cs-doc-icon--xls {
  color: #14733f;
  background: #e8f8ef;
}

.cs-part-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 46px;
  width: 46px;
  height: 27px;
  border-radius: 7px;
  background: #f3f6fa;
  border: 1px solid #cdd8e9;
}

.cs-part-icon::before,
.cs-part-icon::after {
  position: absolute;
  content: "";
  background: #1e2430;
}

.cs-part-icon--frame::before {
  left: 8px;
  top: 7px;
  width: 29px;
  height: 13px;
  clip-path: polygon(0 100%, 48% 0, 100% 100%, 0 100%, 48% 0, 63% 100%);
  background: transparent;
  border: 2px solid #1e2430;
}

.cs-part-icon--wheel::before,
.cs-part-icon--wheel::after {
  top: 5px;
  width: 16px;
  height: 16px;
  border: 2px solid #1e2430;
  border-radius: 999px;
  background: transparent;
}

.cs-part-icon--wheel::before { left: 6px; }
.cs-part-icon--wheel::after { right: 6px; }

.cs-part-icon--group::before {
  left: 8px;
  top: 8px;
  width: 30px;
  height: 11px;
  border-radius: 999px;
}

.cs-part-icon--saddle::before {
  left: 8px;
  top: 9px;
  width: 30px;
  height: 9px;
  border-radius: 60% 35% 35% 60%;
  transform: skewX(-18deg);
}

.cs-part-icon--bar::before {
  left: 7px;
  top: 12px;
  width: 32px;
  height: 3px;
  border-radius: 999px;
}

.cs-qr {
  color: #071f49;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.15em;
}

.cs-status,
.cs-badge {
  min-height: 22px;
  padding-inline: 8px;
  font-size: 0.69rem;
}

.cs-dot {
  display: inline-block;
  flex: 0 0 auto;
}

.cs-side-list li,
.cs-alert-list li,
.cs-action-list a {
  min-height: 25px;
  font-size: 0.8rem;
}

.cs-side-list li span,
.cs-alert-list li span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cs-alert-list--stacked li {
  align-items: flex-start;
}

.cs-stock-icon {
  width: 26px;
  height: 26px;
  color: #071f49;
  background: #edf2f8;
}

.cs-side-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 0;
  color: #55667f;
  font-size: 0.8rem;
}

.cs-side-note strong {
  color: #082451;
}

.cs-side-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--app-orange) !important;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none !important;
}

.cs-tag-cloud span {
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 0.74rem;
}

.cs-dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 16px;
}

.cs-stat-card,
.cs-metric-card {
  min-height: 72px;
  padding: 13px 15px;
}

.cs-stat-card strong,
.cs-metric-card strong {
  font-size: 0.95rem;
}

.cs-pagination {
  align-items: center;
  padding: 11px 0 0;
}

.cs-pages a,
.cs-pages span {
  min-width: 29px;
  height: 29px;
}

.cs-migrated-data {
  background: #ffffff;
  border-style: solid;
}

@media (min-width: 1600px) {
  .cs-app-screen {
    grid-template-columns: minmax(0, 1fr) 314px;
  }
}

@media (max-width: 1260px) {
  .cs-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-dashboard-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --side-rail-width: 72px;
  }

  .cs-app-screen,
  .cs-app-side {
    grid-template-columns: 1fr;
  }

  .cs-app-hero {
    min-height: auto;
  }

  .cs-app-title {
    font-size: 2rem;
    letter-spacing: 0.04em;
  }
}

/* Cycling Support 1.0.17 - final app-screen polish */
:root {
  --side-rail-width: 176px;
  --app-sidebar-width: 304px;
  --app-gap: 16px;
  --app-blue: #082f73;
  --app-blue-soft: #e8f0fb;
  --app-orange: #ff6b00;
  --app-text: #071f49;
  --app-muted: #596a83;
  --app-line: #dfe6f2;
  --app-line-soft: #edf1f7;
}

.cs-template .dashboard {
  padding: 18px 18px 30px !important;
}

.cs-template .side-rail {
  padding-top: 16px !important;
}

.cs-template .brand-mark {
  margin-left: 0 !important;
}

.cs-template .rail-nav__fallback,
.cs-template .side-rail .cs-rail-menu {
  gap: 10px !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link {
  min-height: 44px !important;
  padding: 0 13px !important;
  border-radius: 9px !important;
}

.cs-template .side-rail .cs-rail-menu__text {
  font-size: 0.78rem !important;
}

.cs-template .topbar {
  padding-inline: 20px 26px !important;
}

.cs-template .topbar__actions {
  gap: 13px !important;
}

.cs-template .user-pill {
  min-height: 42px !important;
  background: #f8fafc;
}

.cs-app-screen {
  gap: 16px !important;
}

.cs-app-hero,
.cs-app-panel {
  border-color: var(--app-line) !important;
  box-shadow: 0 1px 2px rgba(15, 35, 65, 0.035) !important;
}

.cs-app-hero {
  min-height: 108px;
  padding: 22px 26px 23px;
}

.cs-app-kicker {
  margin-bottom: 6px;
  color: var(--app-orange) !important;
  font-size: 0.67rem;
  letter-spacing: 0.17em;
}

.cs-app-title {
  font-size: clamp(2.25rem, 3.4vw, 3.12rem);
  letter-spacing: 0.075em;
}

.cs-app-subtitle {
  margin-top: 10px;
  color: var(--app-muted) !important;
  font-size: 0.96rem !important;
}

.cs-app-actions {
  align-items: center;
}

.cs-btn {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 850;
}

.cs-btn--primary {
  box-shadow: 0 8px 20px rgba(8, 47, 115, 0.12);
}

.cs-btn--ghost:hover,
.cs-icon-chip:hover,
.cs-inline-link:hover {
  background: #f4f7fb;
}

.cs-section-heading,
.cs-table-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cs-table-heading {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--app-line-soft);
}

.cs-section-heading .cs-app-panel__title,
.cs-table-heading .cs-app-panel__title {
  margin-bottom: 4px;
}

.cs-section-kicker {
  margin: 0 0 3px;
  color: var(--app-orange) !important;
  font-size: 0.62rem !important;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cs-inline-link,
.cs-side-link {
  color: var(--app-orange) !important;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none !important;
  white-space: nowrap;
}

.cs-side-link {
  display: inline-flex;
  margin-top: 12px;
}

.cs-app-panel--categories {
  padding-top: 16px;
}

.cs-category-grid {
  margin-top: 12px;
}

.cs-category-card {
  min-height: 68px;
  padding: 14px 16px;
}

.cs-category-card:hover,
.cs-stat-card:hover,
.cs-metric-card:hover {
  border-color: #cbd8ea;
  background: #fbfcfe;
}

.cs-stat-card strong {
  font-size: 1.05rem;
}

.cs-metric-card strong {
  font-size: 1rem;
}

.cs-toolbar-panel {
  padding-block: 14px !important;
}

.cs-toolbar {
  grid-template-columns: minmax(280px, 1.45fr) repeat(3, minmax(130px, 0.7fr)) auto !important;
  align-items: end;
  padding: 0 !important;
}

.cs-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #66778f;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-search,
.cs-select {
  min-height: 40px !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
}

.cs-table-tools {
  display: flex;
  gap: 8px;
}

.cs-icon-chip {
  min-height: 30px !important;
  padding-inline: 11px !important;
  border: 1px solid var(--app-line) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: var(--app-blue) !important;
  font-size: 0.72rem !important;
}

.cs-table-wrap {
  border: 0 !important;
  border-radius: 0 !important;
}

.cs-app-table {
  font-size: 0.79rem !important;
}

.cs-app-table caption {
  caption-side: top;
}

.cs-app-table th {
  padding: 8px 12px !important;
  background: #f7f9fc !important;
  color: #163766 !important;
  font-size: 0.64rem !important;
}

.cs-app-table td {
  padding: 9px 12px !important;
}

.cs-app-table tbody tr:hover {
  background: #fbfcff;
}

.cs-app-table--documents th:first-child,
.cs-app-table--documents td:first-child {
  padding-left: 18px !important;
}

.cs-doc-icon,
.cs-part-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border-radius: 6px;
  font-size: 0.52rem;
  font-weight: 950;
}

.cs-doc-icon--pdf {
  color: #ef2b2d;
  background: #ffe9ea;
}

.cs-doc-icon--chk {
  color: #6b4b00;
  background: #fff3d9;
}

.cs-doc-icon--xls {
  color: #15803d;
  background: #e8f8ef;
}

.cs-part-icon {
  width: 46px;
  height: 30px;
  border: 1px solid #cbd8ea;
  background: linear-gradient(135deg, #f7f9fc, #eef3fa);
  color: var(--app-blue);
  font-size: 0.68rem;
}

.cs-part-icon::before {
  content: attr(data-icon);
}

.cs-avatar-mini {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 999px;
  background: #edf1f7;
  color: var(--app-blue);
  font-size: 0.56rem;
  font-weight: 950;
  vertical-align: middle;
}

.cs-row-menu,
.cs-row-actions,
.cs-qr-mark {
  color: var(--app-blue);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.cs-qr-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #cbd8ea;
  border-radius: 5px;
  background: repeating-linear-gradient(45deg, #fff 0 3px, #edf2f8 3px 6px);
  color: transparent;
  position: relative;
}

.cs-qr-mark::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--app-blue);
  -webkit-mask: linear-gradient(#000 0 0) left top/5px 5px no-repeat, linear-gradient(#000 0 0) right top/5px 5px no-repeat, linear-gradient(#000 0 0) left bottom/5px 5px no-repeat, linear-gradient(#000 0 0) right bottom/3px 3px no-repeat;
  mask: linear-gradient(#000 0 0) left top/5px 5px no-repeat, linear-gradient(#000 0 0) right top/5px 5px no-repeat, linear-gradient(#000 0 0) left bottom/5px 5px no-repeat, linear-gradient(#000 0 0) right bottom/3px 3px no-repeat;
}

.cs-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edfdf4;
  color: #13753d;
  font-size: 0.72rem;
  font-weight: 900;
}

.cs-live-pill span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.cs-operation-strip,
.cs-task-columns,
.cs-timeline,
.cs-mini-timeline {
  display: grid;
  gap: 12px;
}

.cs-operation-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs-operation-strip article,
.cs-task-columns article,
.cs-timeline article,
.cs-mini-timeline article {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: #fff;
}

.cs-operation-strip small,
.cs-timeline span,
.cs-mini-timeline strong {
  display: block;
  margin-bottom: 4px;
  color: var(--app-orange);
  font-size: 0.67rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-operation-strip strong,
.cs-task-columns h3,
.cs-timeline strong {
  display: block;
  color: var(--app-text);
  font-size: 0.9rem;
  font-weight: 950;
}

.cs-operation-strip span,
.cs-task-columns p,
.cs-timeline small,
.cs-mini-timeline span {
  color: var(--app-muted);
  font-size: 0.78rem;
}

.cs-task-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs-task-columns h3,
.cs-task-columns p {
  margin: 0;
}

.cs-task-columns p + p {
  margin-top: 6px;
}

.cs-timeline article {
  position: relative;
  padding-left: 18px;
}

.cs-timeline article::before {
  position: absolute;
  inset: 15px auto 15px 0;
  width: 3px;
  content: "";
  border-radius: 999px;
  background: var(--app-orange);
}

.cs-mini-timeline article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  padding: 11px 12px;
}

.cs-mini-timeline strong {
  margin: 0;
}

.cs-side-icon {
  width: 21px !important;
  height: 21px !important;
  border: 1px solid #d6e0ee;
  border-radius: 6px !important;
  background: #f7f9fc !important;
  color: var(--app-blue) !important;
  font-size: 0.62rem;
}

.cs-float-value {
  float: right;
  color: var(--app-text);
}

.cs-good { color: #16a34a !important; }
.cs-warn { color: #f59e0b !important; }
.cs-bad { color: #ef2b2d !important; }
.cs-dot--green { color: #16a34a; }
.cs-dot--orange { color: #f59e0b; }
.cs-dot--red { color: #ef2b2d; }

.cs-alert-list--illustrated li span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.cs-alert-list--illustrated i {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #f1f4f8;
  color: #071f49;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 950;
}

.cs-alert-list strong {
  color: #ef2b2d;
}

.cs-app-panel--migrated {
  border-style: dashed !important;
  background: #fbfcfe;
}

.cs-app-panel--migrated .cs-migrated-data {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.cs-migrated-data .cs-migrated-data-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs-migrated-data .cs-migrated-data-links li {
  min-height: 50px;
  background: #fff;
}

@media (max-width: 1280px) {
  .cs-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cs-operation-strip,
  .cs-task-columns,
  .cs-migrated-data .cs-migrated-data-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .cs-operation-strip,
  .cs-task-columns,
  .cs-migrated-data .cs-migrated-data-links {
    grid-template-columns: 1fr;
  }
}

/* Cycling Support 1.0.17 - final app-screen polish */
:root {
  --app-sidebar-width: 306px;
  --app-gap: 14px;
  --app-card-radius: 12px;
  --app-font-small: 0.78rem;
  --app-font-xsmall: 0.68rem;
}

body.cs-template.cs-app-native .dashboard {
  padding: 18px 18px 30px !important;
}

.cs-template .rail-nav {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.cs-template .rail-nav__fallback,
.cs-template .side-rail .cs-rail-menu {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px !important;
  min-height: 0;
}

.cs-template .side-rail .rail-nav__link[data-nav-key="settings"],
.cs-template .side-rail .cs-rail-menu__link[data-nav-key="settings"] {
  margin-top: auto;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link {
  min-height: 44px !important;
  border: 1px solid transparent !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover {
  border-color: #e3e9f3 !important;
}

.cs-template .topbar {
  box-shadow: 0 1px 0 rgba(15, 35, 65, 0.02) !important;
}

.cs-template .topbar__actions {
  gap: 12px !important;
}

.cs-template .user-pill {
  background: #f7f9fc;
  border: 1px solid #e5ebf5 !important;
  border-radius: 9px;
}

.cs-app-screen {
  grid-template-columns: minmax(0, 1fr) var(--app-sidebar-width) !important;
  gap: var(--app-gap) !important;
  max-width: 1640px;
  margin: 0 auto;
}

.cs-app-main,
.cs-app-side {
  gap: var(--app-gap) !important;
}

.cs-app-hero {
  min-height: 108px !important;
  padding: 22px 24px !important;
  border-radius: var(--app-card-radius) !important;
}

.cs-app-hero__copy {
  min-width: 0;
}

.cs-app-kicker {
  color: #ff6b00 !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.22em !important;
}

.cs-app-title {
  font-size: clamp(2.25rem, 3.65vw, 3.25rem) !important;
  letter-spacing: 0.085em !important;
}

.cs-app-subtitle {
  margin-top: 8px !important;
  font-size: 0.92rem !important;
}

.cs-app-panel {
  border-radius: var(--app-card-radius) !important;
  box-shadow: 0 1px 2px rgba(15, 35, 65, 0.035) !important;
}

.cs-app-panel:not(.cs-app-panel--flush) {
  padding: 18px 20px !important;
}

.cs-app-panel--table {
  overflow: hidden;
}

.cs-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.cs-panel-heading .cs-app-panel__title,
.cs-panel-heading p {
  margin: 0 !important;
}

.cs-app-panel__title {
  color: #071f49 !important;
  font-size: 0.96rem !important;
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
}

.cs-app-panel .cs-muted {
  color: #586a84 !important;
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
}

.cs-category-grid,
.cs-stat-grid,
.cs-metric-grid {
  gap: 14px !important;
}

.cs-category-card,
.cs-stat-card,
.cs-metric-card {
  min-height: 66px !important;
  border-color: #dfe6f2 !important;
  border-radius: 10px !important;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.cs-category-card:hover,
.cs-stat-card:hover,
.cs-metric-card:hover {
  background: #fbfcff;
  border-color: #cbd6e6 !important;
  transform: translateY(-1px);
}

.cs-stat-card strong,
.cs-metric-card strong {
  font-size: 1rem !important;
}

.cs-dashboard-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: var(--app-gap);
}

.cs-timeline-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-timeline-list li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  color: #082451;
  font-size: 0.82rem;
}

.cs-timeline-list strong,
.cs-timeline-list small {
  display: block;
}

.cs-timeline-list strong {
  font-weight: 900;
}

.cs-timeline-list small {
  margin-top: 2px;
  color: #586a84;
  font-size: 0.76rem;
}

.cs-timeline-list time {
  color: #586a84;
  font-size: 0.76rem;
  font-weight: 850;
}

.cs-timeline-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 999px;
  background: #2b5fa8;
  box-shadow: 0 0 0 4px #edf4ff;
}

.cs-timeline-dot--orange { background: #ff6b00; box-shadow: 0 0 0 4px #fff1e6; }
.cs-timeline-dot--green { background: #16a34a; box-shadow: 0 0 0 4px #e9f8ef; }
.cs-timeline-dot--blue { background: #2b5fa8; box-shadow: 0 0 0 4px #edf4ff; }

.cs-toolbar {
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(130px, 170px)) minmax(126px, 150px) !important;
  gap: 10px !important;
  padding: 0 !important;
}

.cs-search-wrap {
  display: block;
  min-width: 0;
}

.cs-search,
.cs-select {
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
}

.cs-hidden-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.cs-app-table {
  min-width: 760px !important;
  font-size: 0.78rem !important;
}

.cs-app-table caption {
  padding: 15px 18px 10px !important;
  font-size: 0.98rem !important;
}

.cs-app-table th {
  padding: 8px 12px !important;
  font-size: 0.62rem !important;
}

.cs-app-table td {
  padding: 9px 12px !important;
}

.cs-app-table tbody tr:hover td {
  background: #fbfcff;
}

.cs-table-actions-col {
  width: 92px;
  text-align: center !important;
}

.cs-table-item {
  gap: 10px !important;
}

.cs-table-item strong {
  font-size: 0.8rem;
  line-height: 1.2;
}

.cs-table-item small {
  margin-top: 2px;
  font-size: 0.72rem;
}

.cs-file-icon,
.cs-part-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #ffffff;
  background: #2b5fa8;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.cs-file-icon--pdf { background: #f04444; }
.cs-file-icon--check { background: #55667f; }
.cs-file-icon--sheet { background: #1aa861; }

.cs-part-icon {
  width: 38px;
  background: #f3f6fa;
  border: 1px solid #cbd6e6;
  color: #082451;
}

.cs-part-icon::before {
  content: attr(data-icon);
}

.cs-avatar-mini {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 999px;
  background: #edf1f7;
  color: #082451;
  font-size: 0.58rem;
  font-weight: 950;
  vertical-align: middle;
}

.cs-icon-action {
  display: inline-grid !important;
  place-items: center !important;
  width: auto !important;
  min-width: 28px !important;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 7px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #082451 !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  text-transform: uppercase;
}

.cs-icon-action:hover {
  background: #edf1f7 !important;
}

.cs-qr {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  color: #082451;
  background: linear-gradient(90deg, currentColor 2px, transparent 2px) 0 0 / 6px 6px,
              linear-gradient(currentColor 2px, transparent 2px) 0 0 / 6px 6px,
              #ffffff;
  border: 1px solid #dfe6f2;
  font-size: 0;
}

.cs-status--info {
  color: #0b3a82 !important;
  background: #e8f0fb !important;
}

.cs-status--neutral {
  color: #475569 !important;
  background: #edf1f7 !important;
}

.cs-status--warn {
  color: #b45309 !important;
  background: #fff0df !important;
}

.cs-dot--green { color: #16a34a; }
.cs-dot--orange { color: #f59e0b; }
.cs-dot--red { color: #ef2b2d; }
.cs-green { color: #16a34a !important; }
.cs-orange { color: #f59e0b !important; }
.cs-red { color: #ef2b2d !important; }

.cs-action-list {
  gap: 12px !important;
}

.cs-action-list a {
  min-height: 28px;
  font-weight: 780 !important;
}

.cs-side-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 18px !important;
  height: 18px !important;
  color: #1c4a85 !important;
  font-size: 0.68rem !important;
  font-weight: 950 !important;
}

.cs-side-list--metrics li strong,
.cs-alert-list li strong {
  font-weight: 900 !important;
}

.cs-alert-list li strong {
  color: #ef2b2d;
}

.cs-alert-list--stacked li {
  align-items: flex-start;
}

.cs-storage-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 0 !important;
}

.cs-storage-line strong {
  color: #082451;
}

.cs-side-link {
  display: inline-flex;
  margin-top: 12px;
  color: #ff6b00 !important;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none !important;
}

.cs-tag-cloud span {
  min-height: 28px;
}

.cs-pages a,
.cs-pages span {
  min-width: 32px !important;
  padding: 0 8px;
}

.cs-migrated-data {
  background: #ffffff !important;
  border: 1px dashed #b8c7dc !important;
}

.cs-migrated-data .cs-migrated-data-index,
.cs-migrated-data .cs-migrated-data-detail {
  margin-top: 12px;
}

@media (max-width: 1180px) {
  .cs-app-screen {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .cs-dashboard-split,
  .cs-app-side {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cs-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .cs-template .rail-nav__fallback,
  .cs-template .side-rail .cs-rail-menu {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(58px, 1fr);
  }

  .cs-template .side-rail .rail-nav__link[data-nav-key="settings"],
  .cs-template .side-rail .cs-rail-menu__link[data-nav-key="settings"] {
    margin-top: 0;
  }

  .cs-app-screen,
  .cs-dashboard-split,
  .cs-app-side,
  .cs-toolbar {
    grid-template-columns: 1fr !important;
  }

  .cs-app-title {
    font-size: 2rem !important;
  }

  .cs-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* v1.0.18 dynamic data layer refinements */
.cs-app-screen--dynamic .cs-app-hero {
  position: relative;
}

.cs-app-screen--dynamic .cs-app-hero::after {
  content: "Live Joomla data";
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0a3571;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-app-screen--dynamic .cs-empty-state {
  display: grid;
  gap: 6px;
  padding: 22px;
  color: #5a6a83;
  text-align: left;
}

.cs-app-screen--dynamic .cs-empty-state strong {
  color: #082451;
  font-size: 0.92rem;
}

.cs-app-screen--dynamic .cs-empty-state span {
  max-width: 620px;
  line-height: 1.55;
}

.cs-app-table--inventory td:nth-child(1),
.cs-app-table--documents td:nth-child(1) {
  min-width: 250px;
}

.cs-app-table--inventory .cs-table-actions-col,
.cs-app-table--documents .cs-table-actions-col {
  width: 96px;
}

.cs-file-icon--doc {
  color: #0b3a82;
  background: #e8f0fb;
}

.cs-app-screen--dynamic .cs-pagination {
  border-top: 1px solid #e8edf5;
}

.cs-app-screen--dynamic .cs-stat-card strong {
  line-height: 1;
}

.cs-app-screen--dynamic .cs-action-list a[href="#"] {
  cursor: default;
}

.cs-app-screen--dynamic .cs-side-list strong {
  white-space: nowrap;
}

@media (max-width: 820px) {
  .cs-app-screen--dynamic .cs-app-hero::after {
    position: static;
    justify-self: start;
    margin: 12px 0 0;
  }
}

/* v1.0.18 dynamic native data layer */
.cs-app-screen--dynamic .cs-app-panel {
  position: relative;
}

.cs-data-source-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.cs-data-source-note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16a34a;
}

.cs-empty-state {
  display: grid;
  gap: 8px;
  min-height: 128px;
  place-items: center;
  text-align: center;
  padding: 28px;
  color: #52657f;
  border: 1px dashed #c9d6e7;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(248,250,252,0.82));
}

.cs-empty-state strong {
  display: block;
  color: #082451;
  font-size: 0.96rem;
  font-weight: 950;
}

.cs-empty-state span {
  max-width: 520px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.cs-empty-state--compact {
  min-height: auto;
  padding: 18px;
}

.cs-app-screen--data-detail .cs-app-main {
  min-width: 0;
}

.cs-app-screen--data-detail .cs-table-wrap {
  max-height: none;
}

.cs-app-screen--dynamic .cs-app-table a {
  color: inherit;
  text-decoration: none;
}

.cs-app-screen--dynamic .cs-app-table a:hover {
  color: #ff6b00;
}

.cs-app-screen--dynamic .cs-icon-action {
  text-decoration: none !important;
}

.cs-status--neutral {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.cs-status--neutral .cs-dot {
  background: #64748b !important;
}

.cs-source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 850;
}

.cs-template .cs-app-screen--dynamic .cs-table-item small {
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-template .cs-app-screen--dynamic .cs-app-table caption {
  padding-left: 18px;
}


/* v1.0.19 native data model controls */
.cs-toolbar--inventory {
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(130px, 170px)) repeat(2, minmax(104px, 132px)) !important;
}

.cs-toolbar--documents {
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 210px) repeat(2, minmax(104px, 132px)) !important;
}

.cs-category-card[data-cs-filter-shortcut] {
  cursor: pointer;
}

.cs-category-card[data-cs-filter-shortcut]:hover {
  border-color: #ffb680;
  box-shadow: 0 12px 28px rgba(8, 36, 81, 0.08);
  transform: translateY(-1px);
}

.cs-table-filter-empty td {
  padding: 16px !important;
  background: #fbfcff !important;
}

.cs-table-filter-empty .cs-empty-state {
  min-height: 86px;
  margin: 0;
}

.cs-data-health .cs-app-table td:first-child strong,
.cs-data-health .cs-app-table td:first-child small {
  display: block;
}

.cs-data-health .cs-app-table td:first-child small {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

.cs-app-screen--dynamic [data-native-action="create"]::after {
  content: "native";
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-app-screen--dynamic .cs-btn--ghost[data-cs-export-table] {
  justify-content: center;
}

@media (max-width: 1100px) {
  .cs-toolbar--inventory,
  .cs-toolbar--documents {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 680px) {
  .cs-toolbar--inventory,
  .cs-toolbar--documents {
    grid-template-columns: 1fr !important;
  }
}


/* v1.0.20 branding and navigation icon refresh */
:root {
  --side-rail-width: 188px;
}

.cs-template .side-rail {
  width: var(--side-rail-width) !important;
}

.cs-template .brand-mark {
  width: calc(var(--side-rail-width) - 28px) !important;
  height: auto !important;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 20px;
  background: #ffffff;
}

.cs-template .brand-mark img {
  width: 100%;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.cs-template .topbar-brand {
  gap: 14px;
}

.cs-template .topbar-brand__logo {
  display: block;
  width: 168px;
  max-width: min(24vw, 168px);
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.cs-template .topbar-brand__copy {
  align-self: center;
}

.cs-template .side-rail .cs-rail-menu,
.cs-template .side-rail .rail-nav__fallback,
.cs-template .side-rail .mod-menu,
.cs-template .side-rail .nav {
  gap: 10px;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  min-height: 64px;
  padding: 10px 14px 10px 18px;
  border-radius: 16px;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
  border-radius: 12px;
}

.cs-template .side-rail .cs-rail-menu__text,
.cs-template .side-rail .rail-nav__link span,
.cs-template .side-rail .mod-menu a span,
.cs-template .side-rail .nav a span {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
}

body.cs-template.rail-is-compact .side-rail {
  width: 92px !important;
}

body.cs-template.rail-is-compact .brand-mark {
  width: 64px !important;
  min-height: 64px;
  padding: 8px;
}

body.cs-template.rail-is-compact .brand-mark img {
  max-height: 34px;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__link,
body.cs-template.rail-is-compact .side-rail .rail-nav__link,
body.cs-template.rail-is-compact .side-rail .mod-menu a,
body.cs-template.rail-is-compact .side-rail .nav a {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 58px;
  padding: 8px;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__icon,
body.cs-template.rail-is-compact .side-rail .rail-nav__link img,
body.cs-template.rail-is-compact .side-rail .mod-menu img,
body.cs-template.rail-is-compact .side-rail .nav img {
  width: 36px !important;
  height: 36px !important;
}

@media (max-width: 900px) {
  :root {
    --side-rail-width: 78px;
  }

  .cs-template .brand-mark {
    width: 54px !important;
    min-height: 54px;
    padding: 6px;
  }

  .cs-template .brand-mark img {
    max-height: 28px;
  }

  .cs-template .topbar-brand__logo {
    width: 132px;
  }
}


/* v1.0.21 brand asset placement update */
.cs-template .brand-mark {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 8px 6px;
  min-height: 70px;
}

.cs-template .brand-mark img {
  width: 100%;
  max-width: 120px;
  max-height: 64px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.cs-template .topbar-brand--logo-only {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.cs-template .topbar-brand__logo--primary {
  width: 220px;
  max-width: min(34vw, 220px);
  height: auto;
  display: block;
}

.cs-template .topbar-brand__copy {
  display: none !important;
}

.cs-template .team-lockup--image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0 6px 0 10px;
  min-width: 132px;
}

.cs-template .team-lockup--image img {
  display: block;
  width: 118px;
  max-width: 118px;
  height: auto;
  object-fit: contain;
}

body.cs-template.rail-is-compact .brand-mark {
  padding: 4px;
  min-height: 52px;
}

body.cs-template.rail-is-compact .brand-mark img {
  max-width: 56px;
  max-height: 40px;
}

@media (max-width: 900px) {
  .cs-template .topbar-brand__logo--primary {
    width: 170px;
  }

  .cs-template .team-lockup--image img {
    width: 92px;
    max-width: 92px;
  }

  .cs-template .brand-mark img {
    max-width: 54px;
    max-height: 36px;
  }
}


/* v1.0.22 sidebar readability and dashboard cleanup */
.cs-template .side-rail {
  width: 208px !important;
}

.cs-template .side-rail .cs-rail-menu,
.cs-template .side-rail .rail-nav__fallback,
.cs-template .side-rail .mod-menu,
.cs-template .side-rail .nav {
  gap: 12px;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  min-height: 72px;
  padding: 11px 16px 11px 18px;
  border-radius: 18px;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.04);
}

.cs-template .side-rail .cs-rail-menu__text,
.cs-template .side-rail .rail-nav__link span,
.cs-template .side-rail .mod-menu a span,
.cs-template .side-rail .nav a span {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active {
  box-shadow: inset 0 0 0 1px rgba(23, 48, 104, 0.08);
}

.cs-template .cs-app-screen--dashboard .cs-app-main > .cs-app-panel:first-child {
  margin-top: 0;
}

body.cs-template.rail-is-compact .side-rail {
  width: 94px !important;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__link,
body.cs-template.rail-is-compact .side-rail .rail-nav__link,
body.cs-template.rail-is-compact .side-rail .mod-menu a,
body.cs-template.rail-is-compact .side-rail .nav a {
  min-height: 64px;
  padding: 8px;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__icon,
body.cs-template.rail-is-compact .side-rail .rail-nav__link img,
body.cs-template.rail-is-compact .side-rail .mod-menu img,
body.cs-template.rail-is-compact .side-rail .nav img {
  width: 40px !important;
  height: 40px !important;
}

@media (max-width: 900px) {
  .cs-template .side-rail {
    width: 86px !important;
  }

  .cs-template .side-rail .cs-rail-menu__icon,
  .cs-template .side-rail .rail-nav__link img,
  .cs-template .side-rail .mod-menu img,
  .cs-template .side-rail .nav img {
    width: 40px !important;
    height: 40px !important;
  }
}


/* v1.0.23 logo swap and orange menu icon borders */
.cs-template .topbar-brand__logo--team {
  display: block;
  width: auto !important;
  height: auto !important;
  max-height: calc(var(--topbar-height) - 16px) !important;
  max-width: 180px !important;
  object-fit: contain !important;
}

.cs-template .team-lockup--image {
  min-width: 132px;
  max-height: calc(var(--topbar-height) - 8px);
  overflow: hidden;
}

.cs-template .team-lockup--image img {
  width: auto !important;
  max-width: 132px !important;
  height: auto !important;
  max-height: calc(var(--topbar-height) - 14px) !important;
  object-fit: contain !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  box-sizing: border-box;
  border: 2px solid #ff6a1a !important;
  background: #ffffff;
  padding: 2px;
  border-radius: 15px;
  box-shadow: 0 6px 14px rgba(255, 106, 26, 0.16);
}

.cs-template .side-rail .cs-rail-menu__link.is-active .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link.is-active img,
.cs-template .side-rail .mod-menu .active > a img,
.cs-template .side-rail .nav .active > a img {
  border-color: #ff5a00 !important;
  box-shadow: 0 7px 18px rgba(255, 90, 0, 0.26);
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__icon,
body.cs-template.rail-is-compact .side-rail .rail-nav__link img,
body.cs-template.rail-is-compact .side-rail .mod-menu img,
body.cs-template.rail-is-compact .side-rail .nav img {
  padding: 2px;
  border-radius: 13px;
}

@media (max-width: 900px) {
  .cs-template .topbar-brand__logo--team {
    max-height: calc(var(--topbar-height) - 18px) !important;
    max-width: 126px !important;
  }

  .cs-template .team-lockup--image {
    min-width: 96px;
  }

  .cs-template .team-lockup--image img {
    max-width: 96px !important;
  }
}


/* v1.0.24 restore faithful top logos */
.cs-template .topbar-brand,
.cs-template .topbar-brand--logo-only {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.cs-template .topbar-brand__logo--cs {
  display: block;
  width: auto !important;
  height: auto !important;
  max-height: calc(var(--topbar-height) - 12px) !important;
  max-width: 168px !important;
  object-fit: contain !important;
}

.cs-template .team-lockup--image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  max-width: 152px;
  max-height: calc(var(--topbar-height) - 8px);
  padding: 0 4px 0 8px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.cs-template .team-lockup--image img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 142px !important;
  max-height: calc(var(--topbar-height) - 16px) !important;
  object-fit: contain !important;
  background: transparent !important;
}

@media (max-width: 900px) {
  .cs-template .topbar-brand__logo--cs {
    max-width: 128px !important;
    max-height: calc(var(--topbar-height) - 16px) !important;
  }

  .cs-template .team-lockup--image {
    min-width: 98px;
    max-width: 106px;
  }

  .cs-template .team-lockup--image img {
    max-width: 98px !important;
    max-height: calc(var(--topbar-height) - 18px) !important;
  }
}


/* v1.0.25 left rail logo source correction */
.cs-template .brand-mark {
  width: calc(var(--side-rail-width) - 24px) !important;
  min-height: 76px !important;
  height: auto !important;
  margin: 0 auto 22px !important;
  padding: 6px 8px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.cs-template .brand-mark img {
  display: block;
  width: 100% !important;
  max-width: 150px !important;
  height: auto !important;
  max-height: 72px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  background: transparent !important;
}

body.cs-template.rail-is-compact .brand-mark {
  width: 72px !important;
  min-height: 58px !important;
  padding: 4px !important;
}

body.cs-template.rail-is-compact .brand-mark img {
  max-width: 64px !important;
  max-height: 48px !important;
}

@media (max-width: 900px) {
  .cs-template .brand-mark {
    width: 72px !important;
    min-height: 54px !important;
    padding: 4px !important;
  }

  .cs-template .brand-mark img {
    max-width: 64px !important;
    max-height: 44px !important;
  }
}


/* v1.0.26 sidebar icon cleanup and clearer rail toggle */
.cs-template .side-rail {
  width: 210px !important;
}

.cs-template .brand-mark {
  width: calc(var(--side-rail-width) - 10px) !important;
  min-height: 96px !important;
  margin: 0 auto 18px !important;
  padding: 2px 4px 6px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.cs-template .brand-mark img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 84px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  background: transparent !important;
}

.cs-template .topbar-brand,
.cs-template .topbar-brand--logo-only,
.cs-template .topbar-brand__logo,
.cs-template .topbar-brand__logo--primary,
.cs-template .topbar-brand__logo--cs {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.cs-template .topbar-brand__logo--cs {
  width: auto !important;
  max-width: 152px !important;
  max-height: calc(var(--topbar-height) - 16px) !important;
  object-fit: contain !important;
}

.cs-template .topbar__menu--toggle {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 42px;
  min-width: 42px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 35, 95, 0.06);
}

.cs-template .topbar__menu--toggle:hover {
  background: #f7f9fc;
}

.cs-template .topbar__menu--toggle .topbar__menu-rail {
  display: block;
  width: 6px;
  height: 16px;
  border-radius: 99px;
  background: #d7e1ef;
  box-shadow: inset 0 0 0 1.8px var(--accent-2);
}

.cs-template .topbar__menu--toggle .topbar__menu-arrows {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
}

.cs-template .topbar__menu--toggle .topbar__menu-arrows::before,
.cs-template .topbar__menu--toggle .topbar__menu-arrows::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--accent-2);
}

.cs-template .topbar__menu--toggle .topbar__menu-arrows::before {
  left: 0;
  border-left: 2px solid var(--accent-2);
  transform: translateY(-50%) rotate(-45deg);
}

.cs-template .topbar__menu--toggle .topbar__menu-arrows::after {
  right: 0;
  border-right: 2px solid var(--accent-2);
  transform: translateY(-50%) rotate(45deg);
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  min-height: 66px;
  padding: 10px 16px 10px 18px;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  box-sizing: border-box;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain !important;
  image-rendering: -webkit-optimize-contrast;
}

.cs-template .side-rail .cs-rail-menu__link.is-active .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link.is-active img,
.cs-template .side-rail .mod-menu .active > a img,
.cs-template .side-rail .nav .active > a img {
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.cs-template .side-rail .cs-rail-menu__text,
.cs-template .side-rail .rail-nav__link span,
.cs-template .side-rail .mod-menu a span,
.cs-template .side-rail .nav a span {
  font-size: 1.04rem;
  font-weight: 800;
}

body.cs-template.rail-is-compact .brand-mark {
  width: 74px !important;
  min-height: 62px !important;
  padding: 4px !important;
}

body.cs-template.rail-is-compact .brand-mark img {
  max-width: 66px !important;
  max-height: 48px !important;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__icon,
body.cs-template.rail-is-compact .side-rail .rail-nav__link img,
body.cs-template.rail-is-compact .side-rail .mod-menu img,
body.cs-template.rail-is-compact .side-rail .nav img {
  width: 38px !important;
  height: 38px !important;
}

@media (max-width: 900px) {
  .cs-template .brand-mark {
    width: 76px !important;
    min-height: 56px !important;
    padding: 4px !important;
  }

  .cs-template .brand-mark img {
    max-width: 68px !important;
    max-height: 44px !important;
  }

  .cs-template .topbar-brand__logo--cs {
    max-width: 118px !important;
    max-height: calc(var(--topbar-height) - 18px) !important;
  }

  .cs-template .side-rail .cs-rail-menu__icon,
  .cs-template .side-rail .rail-nav__link img,
  .cs-template .side-rail .mod-menu img,
  .cs-template .side-rail .nav img {
    width: 38px !important;
    height: 38px !important;
  }
}


/* v1.0.27 sidebar/logo sizing, full icons, and swapped topbar brands */
.cs-template .side-rail {
  width: 214px !important;
}

.cs-template .brand-mark {
  width: calc(var(--side-rail-width) - 10px) !important;
  min-height: 118px !important;
  height: auto !important;
  margin: 0 auto 18px !important;
  padding: 6px 2px 10px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cs-template .brand-mark img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 104px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  background: transparent !important;
}

.cs-template .side-rail .cs-rail-menu,
.cs-template .side-rail .rail-nav__fallback,
.cs-template .side-rail .mod-menu,
.cs-template .side-rail .nav {
  gap: 11px;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  min-height: 68px;
  padding: 8px 12px 8px 10px;
  border: 1px solid transparent;
  border-radius: 18px;
  box-shadow: none;
}

.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover {
  border-color: #d9e3ef;
  background: #f8fbff;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .mod-menu .active > a,
.cs-template .side-rail .nav .active > a {
  border-color: #d6e0ec !important;
  background: #eef4fa !important;
  box-shadow: inset 3px 0 0 #ff6a1a;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid #d6e0ec;
  background: #ffffff;
  box-sizing: border-box;
  overflow: hidden;
}

.cs-template .side-rail .cs-rail-menu__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .mod-menu .active > a .cs-rail-menu__icon-box,
.cs-template .side-rail .nav .active > a .cs-rail-menu__icon-box {
  border-color: #cdd9e7;
  background: #ffffff;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cs-template .side-rail .cs-rail-menu__text,
.cs-template .side-rail .rail-nav__link span,
.cs-template .side-rail .mod-menu a span,
.cs-template .side-rail .nav a span {
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.2;
}

.cs-template .topbar-brand,
.cs-template .topbar-brand--logo-only,
.cs-template .topbar-brand__logo,
.cs-template .topbar-brand__logo--team,
.cs-template .team-lockup--brand {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.cs-template .topbar-brand {
  display: inline-flex;
  align-items: center;
}

.cs-template .topbar-brand__logo--team {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 96px !important;
  max-height: calc(var(--topbar-height) - 14px) !important;
  object-fit: contain !important;
}

.cs-template .team-lockup--brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  max-width: 130px;
  max-height: calc(var(--topbar-height) - 10px);
  padding: 0 4px 0 8px !important;
  overflow: hidden;
}

.cs-template .team-lockup--brand img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 112px !important;
  max-height: calc(var(--topbar-height) - 16px) !important;
  object-fit: contain !important;
  background: transparent !important;
}

.cs-template .topbar__menu--toggle {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #d6e0ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 35, 95, 0.06);
}

.cs-template .topbar__menu-icon,
.cs-template .rail-collapse__icon {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cs-template .rail-collapse {
  border: 1px solid #d6e0ec;
  border-radius: 12px;
  background: #fff;
  width: 40px;
  height: 40px;
  padding: 0;
}

body.cs-template.rail-is-compact .brand-mark {
  width: 80px !important;
  min-height: 66px !important;
  padding: 4px !important;
}

body.cs-template.rail-is-compact .brand-mark img {
  max-width: 72px !important;
  max-height: 52px !important;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__link,
body.cs-template.rail-is-compact .side-rail .rail-nav__link,
body.cs-template.rail-is-compact .side-rail .mod-menu a,
body.cs-template.rail-is-compact .side-rail .nav a {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 62px;
  padding: 8px;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__icon,
body.cs-template.rail-is-compact .side-rail .rail-nav__link img,
body.cs-template.rail-is-compact .side-rail .mod-menu img,
body.cs-template.rail-is-compact .side-rail .nav img {
  max-width: 36px !important;
  max-height: 36px !important;
}

@media (max-width: 900px) {
  .cs-template .brand-mark {
    width: 82px !important;
    min-height: 60px !important;
    padding: 4px !important;
  }

  .cs-template .brand-mark img {
    max-width: 74px !important;
    max-height: 46px !important;
  }

  .cs-template .topbar-brand__logo--team {
    max-width: 82px !important;
    max-height: calc(var(--topbar-height) - 18px) !important;
  }

  .cs-template .team-lockup--brand {
    min-width: 92px;
    max-width: 104px;
  }

  .cs-template .team-lockup--brand img {
    max-width: 90px !important;
    max-height: calc(var(--topbar-height) - 18px) !important;
  }
}


/* v1.0.28 sidebar brand stack and single active marker */
.cs-template .brand-mark--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: calc(var(--side-rail-width) - 12px) !important;
  min-height: 122px !important;
  margin: 0 auto 18px !important;
  padding: 8px 6px 10px !important;
  text-decoration: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cs-template .brand-mark--stacked .brand-mark__icon {
  display: block;
  width: auto !important;
  max-width: 132px !important;
  width: 100%;
  height: auto !important;
  max-height: 54px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

.cs-template .brand-mark--stacked .brand-mark__title {
  display: block;
  text-align: center;
  font-size: 1rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.cs-template .brand-mark--stacked .brand-mark__tagline {
  display: block;
  text-align: center;
  font-size: 0.64rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #667897;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .mod-menu .active > a,
.cs-template .side-rail .nav .active > a {
  box-shadow: none !important;
}

body.cs-template.rail-is-compact .brand-mark--stacked {
  min-height: 68px !important;
  padding: 4px !important;
  gap: 0 !important;
}

body.cs-template.rail-is-compact .brand-mark--stacked .brand-mark__icon {
  max-width: 58px !important;
  max-height: 40px !important;
}

body.cs-template.rail-is-compact .brand-mark--stacked .brand-mark__title,
body.cs-template.rail-is-compact .brand-mark--stacked .brand-mark__tagline {
  display: none !important;
}

@media (max-width: 900px) {
  .cs-template .brand-mark--stacked {
    min-height: 72px !important;
    padding: 4px !important;
    gap: 0 !important;
  }

  .cs-template .brand-mark--stacked .brand-mark__icon {
    max-width: 60px !important;
    max-height: 42px !important;
  }

  .cs-template .brand-mark--stacked .brand-mark__title,
  .cs-template .brand-mark--stacked .brand-mark__tagline {
    display: none !important;
  }
}


/* v1.0.29 original left logo and centered sidebar icons */
.cs-template .brand-mark--logo-original {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--side-rail-width) - 10px) !important;
  min-height: 118px !important;
  margin: 0 auto 18px !important;
  padding: 8px 4px 10px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.cs-template .brand-mark--logo-original .brand-mark__logo-original {
  display: block;
  width: 100% !important;
  max-width: 194px !important;
  height: auto !important;
  max-height: 94px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
  background: transparent !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  align-items: center;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 6px;
  border-radius: 16px;
  overflow: visible;
  box-sizing: border-box;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
  flex: 0 0 auto;
}

body.cs-template.rail-is-compact .brand-mark--logo-original {
  width: 84px !important;
  min-height: 66px !important;
  padding: 4px !important;
}

body.cs-template.rail-is-compact .brand-mark--logo-original .brand-mark__logo-original {
  max-width: 76px !important;
  max-height: 50px !important;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 5px;
  border-radius: 14px;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__icon,
body.cs-template.rail-is-compact .side-rail .rail-nav__link img,
body.cs-template.rail-is-compact .side-rail .mod-menu img,
body.cs-template.rail-is-compact .side-rail .nav img {
  max-width: 34px !important;
  max-height: 34px !important;
}

@media (max-width: 900px) {
  .cs-template .brand-mark--logo-original {
    width: 86px !important;
    min-height: 64px !important;
    padding: 4px !important;
  }

  .cs-template .brand-mark--logo-original .brand-mark__logo-original {
    max-width: 78px !important;
    max-height: 50px !important;
  }
}


/* v1.0.30 restore original sidebar width, split original logo, improve inventory/bikes icon visibility */
.cs-template .side-rail {
  width: var(--side-rail-width) !important;
}

.cs-template .brand-mark--split-original {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: calc(var(--side-rail-width) - 12px) !important;
  min-height: 126px !important;
  margin: 0 auto 16px !important;
  padding: 6px 4px 8px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  gap: 4px;
}

.cs-template .brand-mark--split-original .brand-mark__symbol-original {
  display: block;
  width: auto !important;
  max-width: 118px !important;
  max-height: 64px !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
}

.cs-template .brand-mark--split-original .brand-mark__wordmark-original {
  display: block;
  width: 100% !important;
  max-width: 128px !important;
  max-height: 54px !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  padding: 6px;
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}

.cs-template .side-rail .cs-rail-menu__link--inventory .cs-rail-menu__icon,
.cs-template .side-rail .cs-rail-menu__link--bikes .cs-rail-menu__icon {
  max-width: 40px !important;
  max-height: 40px !important;
}

body.cs-template.rail-is-compact .brand-mark--split-original {
  min-height: 74px !important;
  padding: 4px 2px !important;
  gap: 2px;
}

body.cs-template.rail-is-compact .brand-mark--split-original .brand-mark__symbol-original {
  max-width: 56px !important;
  max-height: 32px !important;
}

body.cs-template.rail-is-compact .brand-mark--split-original .brand-mark__wordmark-original {
  max-width: 62px !important;
  max-height: 24px !important;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__icon-box {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 4px;
  border-radius: 14px;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__icon,
body.cs-template.rail-is-compact .side-rail .rail-nav__link img,
body.cs-template.rail-is-compact .side-rail .mod-menu img,
body.cs-template.rail-is-compact .side-rail .nav img {
  max-width: 30px !important;
  max-height: 30px !important;
}

@media (max-width: 900px) {
  .cs-template .brand-mark--split-original {
    min-height: 78px !important;
    padding: 4px 2px !important;
  }

  .cs-template .brand-mark--split-original .brand-mark__symbol-original {
    max-width: 58px !important;
    max-height: 34px !important;
  }

  .cs-template .brand-mark--split-original .brand-mark__wordmark-original {
    max-width: 68px !important;
    max-height: 24px !important;
  }
}


/* v1.0.31 compact icon visibility, move Jayco logo to sidebar, larger toggle */
.cs-template .side-rail {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
}

.cs-template .rail-nav--primary,
.cs-template .rail-nav--secondary {
  width: 100%;
}

.cs-template .rail-nav--primary .cs-rail-menu,
.cs-template .rail-nav--secondary .cs-rail-menu {
  width: 100%;
}

.cs-template .side-rail__flex-gap {
  flex: 1 1 24px;
  min-height: 10px;
  width: 100%;
}

.cs-template .side-rail__team-logo {
  width: calc(var(--side-rail-width) - 24px);
  max-width: 150px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 4px 2px;
}

.cs-template .side-rail__team-logo-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
}

.cs-template .rail-collapse {
  width: 54px !important;
  height: 40px !important;
  min-width: 54px !important;
  border-radius: 14px !important;
  margin-top: 4px !important;
}

.cs-template .rail-collapse__icon,
.cs-template .rail-collapse img,
.cs-template .topbar__menu-icon {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.cs-template .topbar__menu {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
}

/* keep sidebar icons fully visible and centered in expanded mode */
.cs-template .side-rail .cs-rail-menu__icon-box {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 38px !important;
  max-height: 38px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}

/* keep icons clear when the rail is collapsed */
body.cs-template.rail-is-compact .side-rail {
  align-items: center !important;
  gap: 10px !important;
}

body.cs-template.rail-is-compact .brand-mark--split-original {
  width: 62px !important;
  min-height: 68px !important;
  padding: 4px 2px !important;
}

body.cs-template.rail-is-compact .brand-mark--split-original .brand-mark__symbol-original {
  max-width: 52px !important;
  max-height: 30px !important;
}

body.cs-template.rail-is-compact .brand-mark--split-original .brand-mark__wordmark-original {
  max-width: 58px !important;
  max-height: 22px !important;
}

body.cs-template.rail-is-compact .side-rail__team-logo {
  width: 62px !important;
  min-height: 44px !important;
  padding: 2px !important;
}

body.cs-template.rail-is-compact .side-rail__team-logo-image {
  max-width: 58px !important;
  max-height: 40px !important;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__icon-box {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 4px !important;
  border-radius: 14px !important;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__icon,
body.cs-template.rail-is-compact .side-rail .rail-nav__link img,
body.cs-template.rail-is-compact .side-rail .mod-menu img,
body.cs-template.rail-is-compact .side-rail .nav img {
  max-width: 32px !important;
  max-height: 32px !important;
}

body.cs-template.rail-is-compact .rail-collapse {
  width: 50px !important;
  height: 38px !important;
}

@media (max-width: 900px) {
  .cs-template .side-rail__team-logo {
    width: 64px !important;
    min-height: 42px !important;
    padding: 2px !important;
  }

  .cs-template .side-rail__team-logo-image {
    max-width: 60px !important;
    max-height: 38px !important;
  }

  .cs-template .rail-collapse__icon,
  .cs-template .rail-collapse img,
  .cs-template .topbar__menu-icon {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
  }
}


/* v1.0.32 final sidebar balance, Jayco placement and compact icon consistency */
.cs-template .side-rail {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
}

.cs-template .rail-nav--primary,
.cs-template .rail-nav--secondary {
  width: 100%;
  flex: 0 0 auto;
}

.cs-template .side-rail__flex-gap {
  flex: 1 1 0 !important;
  min-height: 18px;
  width: 100%;
}

.cs-template .side-rail__team-logo {
  width: calc(var(--side-rail-width) - 26px) !important;
  max-width: 124px !important;
  min-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  padding: 6px 4px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.cs-template .side-rail__team-logo-image {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 118px !important;
  max-height: 58px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}

.cs-template .rail-collapse {
  width: 62px !important;
  height: 46px !important;
  min-width: 62px !important;
  border-radius: 15px !important;
  margin-top: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.cs-template .rail-collapse__icon,
.cs-template .rail-collapse img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.cs-template .topbar__menu {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.cs-template .topbar__menu-icon {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 38px !important;
  max-height: 38px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}

body.cs-template.rail-is-compact .side-rail {
  gap: 10px !important;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__icon-box {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 4px !important;
  border-radius: 14px !important;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__icon,
body.cs-template.rail-is-compact .side-rail .rail-nav__link img,
body.cs-template.rail-is-compact .side-rail .mod-menu img,
body.cs-template.rail-is-compact .side-rail .nav img {
  max-width: 34px !important;
  max-height: 34px !important;
}

body.cs-template.rail-is-compact .side-rail__team-logo {
  width: 64px !important;
  max-width: 64px !important;
  min-height: 48px !important;
  padding: 2px !important;
}

body.cs-template.rail-is-compact .side-rail__team-logo-image {
  max-width: 60px !important;
  max-height: 42px !important;
}

body.cs-template.rail-is-compact .rail-collapse {
  width: 54px !important;
  height: 42px !important;
}

body.cs-template.rail-is-compact .rail-collapse__icon,
body.cs-template.rail-is-compact .rail-collapse img {
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
}


/* v1.0.33 static sidebar menu, clearer icon frames, provided team image */
.cs-template .topbar__menu--toggle,
.cs-template .rail-collapse {
  display: none !important;
}

.cs-template .app-shell,
body.cs-template.rail-is-compact .app-shell,
body.rail-is-compact .cs-template .app-shell,
body.rail-is-compact.cs-template .app-shell {
  grid-template-columns: var(--side-rail-width) minmax(0, 1fr) !important;
}

.cs-template .side-rail,
body.cs-template.rail-is-compact .side-rail,
body.rail-is-compact .cs-template .side-rail,
body.rail-is-compact.cs-template .side-rail {
  width: var(--side-rail-width) !important;
  gap: 14px !important;
}

.cs-template .topbar__system {
  gap: 0 !important;
}

.cs-template .side-rail__team-logo {
  width: calc(var(--side-rail-width) - 28px) !important;
  max-width: 156px !important;
  min-height: 152px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 6px auto !important;
  padding: 8px 6px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.cs-template .side-rail__team-logo-image {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 148px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}

.cs-template .side-rail__flex-gap--top,
.cs-template .side-rail__flex-gap--bottom {
  min-height: 14px !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 64px !important;
  padding: 8px 12px !important;
  border-radius: 18px !important;
  border: 1.8px solid #d4ddeb !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover {
  border-color: #b8c7de !important;
  background: #f8fbff !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"] {
  border-color: #cfd9ea !important;
  background: #eef4fb !important;
}

.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link::before,
.cs-template .side-rail .mod-menu a::before,
.cs-template .side-rail .nav a::before {
  width: 4px !important;
  border-radius: 999px !important;
  background: transparent !important;
  opacity: 1 !important;
  left: -3px !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active::before,
.cs-template .side-rail .rail-nav__link.is-active::before,
.cs-template .side-rail .mod-menu .current > a::before,
.cs-template .side-rail .nav .current > a::before,
.cs-template .side-rail .mod-menu a[aria-current="page"]::before,
.cs-template .side-rail .nav a[aria-current="page"]::before {
  background: #ff6a00 !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
  overflow: visible !important;
  border-radius: 16px !important;
  border: 1.8px solid #d4ddeb !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .rail-nav__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .mod-menu .current > a .cs-rail-menu__icon-box,
.cs-template .side-rail .nav .current > a .cs-rail-menu__icon-box,
.cs-template .side-rail .mod-menu a[aria-current="page"] .cs-rail-menu__icon-box,
.cs-template .side-rail .nav a[aria-current="page"] .cs-rail-menu__icon-box {
  border-color: #ff6a00 !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}

.cs-template .side-rail .cs-rail-menu__text,
.cs-template .side-rail .rail-nav__text,
.cs-template .side-rail .mod-menu a span,
.cs-template .side-rail .nav a span {
  font-weight: 700 !important;
}

.cs-template .icon-button,
.cs-template .user-pill,
.cs-template .btn,
.cs-template button,
.cs-template .panel,
.cs-template .card,
.cs-template .component-panel,
.cs-template .quick-card,
.cs-template .summary-card,
.cs-template .table-card,
.cs-template .app-card,
.cs-template [class*="button"],
.cs-template [class*="btn-"] {
  border-width: 1.6px !important;
}

/* Safety: if an old compact class survives, keep labels visible and icons centered */
body.cs-template.rail-is-compact .side-rail .cs-rail-menu__link,
body.cs-template.rail-is-compact .side-rail .rail-nav__link,
body.cs-template.rail-is-compact .side-rail .mod-menu a,
body.cs-template.rail-is-compact .side-rail .nav a {
  width: auto !important;
  justify-content: flex-start !important;
  padding: 8px 12px !important;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__text,
body.cs-template.rail-is-compact .side-rail .rail-nav__text,
body.cs-template.rail-is-compact .side-rail .mod-menu a span,
body.cs-template.rail-is-compact .side-rail .nav a span {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  position: static !important;
  clip: auto !important;
  overflow: visible !important;
  white-space: normal !important;
}


/* v1.0.34 dashboard right column separation and sidebar polish */
.cs-template .topbar__menu--toggle,
.cs-template .rail-collapse,
.cs-template [data-action="toggle-rail"] {
  display: none !important;
}

/* Dashboard: keep the right column visually independent from the central content area */
.cs-app-screen--dashboard {
  grid-template-columns: minmax(0, 1fr) 292px !important;
  gap: 28px !important;
  align-items: start !important;
  max-width: 1660px !important;
}

.cs-app-screen--dashboard .cs-app-main {
  background: #ffffff !important;
  border: 1.6px solid #d7e1ee !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(15, 35, 65, 0.045) !important;
  padding: 20px !important;
  gap: 18px !important;
}

.cs-app-screen--dashboard .cs-app-main > .cs-app-panel,
.cs-app-screen--dashboard .cs-dashboard-split > .cs-app-panel {
  border-color: #d9e3ef !important;
  box-shadow: none !important;
}

.cs-app-screen--dashboard .cs-app-side {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  gap: 16px !important;
  align-self: start !important;
}

.cs-app-screen--dashboard .cs-app-side > .cs-app-panel {
  background: #ffffff !important;
  border: 1.6px solid #d7e1ee !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 22px rgba(15, 35, 65, 0.04) !important;
}

/* Sidebar visual rhythm */
.cs-template .side-rail {
  padding: 16px 10px 18px !important;
  gap: 12px !important;
}

.cs-template .brand-mark--split-original {
  min-height: 116px !important;
  margin: 0 auto 10px !important;
  padding: 5px 3px 8px !important;
  gap: 4px !important;
}

.cs-template .brand-mark--split-original .brand-mark__symbol-original {
  max-width: 114px !important;
  max-height: 62px !important;
}

.cs-template .brand-mark--split-original .brand-mark__wordmark-original {
  max-width: 126px !important;
  max-height: 50px !important;
}

.cs-template .rail-nav--primary .cs-rail-menu,
.cs-template .rail-nav--secondary .cs-rail-menu {
  gap: 8px !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  min-height: 62px !important;
  padding: 7px 11px !important;
  gap: 12px !important;
  border-width: 1.8px !important;
  border-color: #d4deec !important;
  border-radius: 17px !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"] {
  border-color: #c6d3e4 !important;
  background: #eef4fb !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  padding: 6px !important;
  border-radius: 16px !important;
  border: 1.8px solid #d4deec !important;
  background: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover .cs-rail-menu__icon-box,
.cs-template .side-rail .rail-nav__link:hover .cs-rail-menu__icon-box {
  border-color: #b9c8dc !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .rail-nav__link.is-active .cs-rail-menu__icon-box {
  border-color: #ff7a21 !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 35px !important;
  max-height: 35px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}

.cs-template .side-rail .cs-rail-menu__link--inventory .cs-rail-menu__icon,
.cs-template .side-rail .cs-rail-menu__link--bikes .cs-rail-menu__icon {
  max-width: 37px !important;
  max-height: 37px !important;
}

.cs-template .side-rail__flex-gap {
  flex: 1 1 0 !important;
  min-height: 12px !important;
}

.cs-template .side-rail__team-logo {
  width: calc(var(--side-rail-width) - 30px) !important;
  max-width: 150px !important;
  min-height: 148px !important;
  margin: 4px auto !important;
  padding: 10px 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border: 1.6px solid #d7e1ee !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 18px rgba(15, 35, 65, 0.035) !important;
}

.cs-template .side-rail__team-logo-image {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 126px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}

.cs-template .rail-nav--secondary {
  margin-top: 0 !important;
}

@media (max-width: 1100px) {
  .cs-app-screen--dashboard {
    grid-template-columns: 1fr !important;
  }

  .cs-app-screen--dashboard .cs-app-side {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
    display: grid !important;
  }
}

/* v1.0.35 dashboard layout parity and sidebar icon refresh */
.cs-app-screen--dashboard {
  grid-template-columns: minmax(0, 1fr) 270px !important;
  gap: 16px !important;
  align-items: start !important;
}

.cs-app-screen--dashboard .cs-app-main {
  padding: 18px !important;
  gap: 16px !important;
}

.cs-app-screen--dashboard .cs-app-side {
  gap: 14px !important;
}

.cs-app-screen--dashboard .cs-app-side > .cs-app-panel {
  border-radius: 15px !important;
}

.cs-template .side-rail {
  padding: 14px 10px 16px !important;
  gap: 10px !important;
}

.cs-template .brand-mark--split-original {
  min-height: 122px !important;
  margin: 0 auto 8px !important;
  padding: 4px 2px 6px !important;
  gap: 3px !important;
}

.cs-template .brand-mark--split-original .brand-mark__symbol-original {
  max-width: 116px !important;
  max-height: 62px !important;
}

.cs-template .brand-mark--split-original .brand-mark__wordmark-original {
  max-width: 128px !important;
  max-height: 51px !important;
}

.cs-template .rail-nav--primary .cs-rail-menu,
.cs-template .rail-nav--secondary .cs-rail-menu {
  gap: 6px !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  min-height: 58px !important;
  padding: 6px 10px !important;
  gap: 10px !important;
  border-width: 2px !important;
  border-color: #ccd8e7 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover {
  border-color: #b9c8dc !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"] {
  border-color: #bccbdf !important;
  background: #eef4fb !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 3px !important;
  border-width: 2px !important;
  border-color: #cbd8e8 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7) !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .rail-nav__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .mod-menu .current > a .cs-rail-menu__icon-box,
.cs-template .side-rail .nav .current > a .cs-rail-menu__icon-box,
.cs-template .side-rail .mod-menu a[aria-current="page"] .cs-rail-menu__icon-box,
.cs-template .side-rail .nav a[aria-current="page"] .cs-rail-menu__icon-box {
  border-color: #ff7a21 !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}

.cs-template .side-rail .cs-rail-menu__text {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

.cs-template .side-rail__flex-gap {
  min-height: 8px !important;
}

.cs-template .side-rail__team-logo {
  width: calc(var(--side-rail-width) - 38px) !important;
  max-width: 136px !important;
  min-height: 130px !important;
  margin: 4px auto !important;
  padding: 8px 8px !important;
  border-width: 1.5px !important;
  border-radius: 16px !important;
}

.cs-template .side-rail__team-logo-image {
  max-width: 92% !important;
  max-height: 108px !important;
}

@media (max-width: 1100px) {
  .cs-app-screen--dashboard {
    grid-template-columns: 1fr !important;
  }
}

/* v1.0.36 auth page refresh */
.cs-template .cs-auth-shell {
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 18px !important;
  width: min(470px, 100%) !important;
  min-height: 100vh !important;
  margin: 0 auto !important;
  padding: 32px 18px !important;
}

.cs-template .cs-auth-brand {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.cs-template .cs-auth-brand__symbol {
  width: min(230px, 72%) !important;
  height: auto !important;
  display: block !important;
}

.cs-template .cs-auth-brand__wordmark {
  width: min(360px, 96%) !important;
  height: auto !important;
  display: block !important;
}

.cs-template .cs-auth-card {
  width: 100% !important;
  padding: clamp(1.35rem, 3vw, 2rem) !important;
  background: #ffffff !important;
  border: 1px solid #dbe5f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 22px 46px rgba(26, 43, 87, 0.08) !important;
}

.cs-template .cs-auth-card::before {
  display: none !important;
  content: none !important;
}

.cs-template .cs-auth-card #system-message-container,
.cs-template .cs-auth-card .joomla-messages {
  margin-bottom: 1rem !important;
}

.cs-template .cs-auth-card .alert,
.cs-template .cs-auth-card .message,
.cs-template .cs-auth-card .joomla-alert,
.cs-template .cs-auth-card .system-message {
  border: 1px solid #dbe5f0 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.cs-template .cs-auth-card .com-users-login,
.cs-template .cs-auth-card .login,
.cs-template .cs-auth-card form,
.cs-template .cs-auth-card fieldset {
  gap: 0.9rem !important;
}

.cs-template .cs-auth-card label {
  color: #142b63 !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
}

.cs-template .cs-auth-card input[type="text"],
.cs-template .cs-auth-card input[type="password"],
.cs-template .cs-auth-card input[type="email"],
.cs-template .cs-auth-card input[type="search"],
.cs-template .cs-auth-card input[type="url"],
.cs-template .cs-auth-card input[type="tel"] {
  min-height: 48px !important;
  border: 1px solid #ccd9e7 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.cs-template .cs-auth-card input[type="text"]:focus,
.cs-template .cs-auth-card input[type="password"]:focus,
.cs-template .cs-auth-card input[type="email"]:focus,
.cs-template .cs-auth-card input[type="search"]:focus,
.cs-template .cs-auth-card input[type="url"]:focus,
.cs-template .cs-auth-card input[type="tel"]:focus {
  border-color: #ff7a21 !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 33, 0.14) !important;
}

.cs-template .cs-auth-card .control-group:has(input[type="checkbox"]),
.cs-template .cs-auth-card .form-check,
.cs-template .cs-auth-card .remember,
.cs-template .cs-auth-card .mod-login__remember,
.cs-template .cs-auth-card .com-users-login__remember {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
}

.cs-template .cs-auth-card .control-group:has(input[type="checkbox"]) label,
.cs-template .cs-auth-card .form-check label,
.cs-template .cs-auth-card .remember label,
.cs-template .cs-auth-card .mod-login__remember label,
.cs-template .cs-auth-card .com-users-login__remember label {
  margin: 0 !important;
}

.cs-template .cs-auth-card input[type="checkbox"] {
  width: 1rem !important;
  height: 1rem !important;
  accent-color: #ff7a21 !important;
}

.cs-template .cs-auth-card .btn,
.cs-template .cs-auth-card button,
.cs-template .cs-auth-card input[type="submit"] {
  min-height: 48px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
}

.cs-template .cs-auth-card button[type="submit"],
.cs-template .cs-auth-card .btn-primary,
.cs-template .cs-auth-card input[type="submit"] {
  background: #142b63 !important;
  border-color: #142b63 !important;
  color: #ffffff !important;
}

.cs-template .cs-auth-card button[type="submit"]:hover,
.cs-template .cs-auth-card .btn-primary:hover,
.cs-template .cs-auth-card input[type="submit"]:hover {
  background: #0f2252 !important;
  border-color: #0f2252 !important;
}

.cs-template .cs-auth-card .com-users-login__passkey,
.cs-template .cs-auth-card .passkey,
.cs-template .cs-auth-card .webauthn,
.cs-template .cs-auth-card .passkey-login,
.cs-template .cs-auth-card [class*="passkey"],
.cs-template .cs-auth-card [data-webauthn-button],
.cs-template .cs-auth-card a[href*="view=reset"],
.cs-template .cs-auth-card a[href*="view=remind"] {
  display: none !important;
}

.cs-template .cs-auth-card ul:empty,
.cs-template .cs-auth-card .list-unstyled:empty,
.cs-template .cs-auth-card .nav:empty {
  display: none !important;
}

/* v1.0.37 sidebar graphic polish */
.cs-template .side-rail {
  padding: 16px 12px 18px !important;
  gap: 12px !important;
  background: #fbfdff !important;
  border-right: 1px solid #dde6f1 !important;
}

.cs-template .brand-mark--split-original {
  min-height: 118px !important;
  margin: 0 auto 10px !important;
  padding: 10px 8px 10px !important;
  border: 1px solid #e3ebf5 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(20, 43, 99, 0.04) !important;
}

.cs-template .brand-mark--split-original .brand-mark__symbol-original {
  max-width: 108px !important;
  max-height: 56px !important;
}

.cs-template .brand-mark--split-original .brand-mark__wordmark-original {
  max-width: 124px !important;
  max-height: 48px !important;
}

.cs-template .rail-nav--primary .cs-rail-menu,
.cs-template .rail-nav--secondary .cs-rail-menu {
  gap: 8px !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  position: relative !important;
  min-height: 56px !important;
  padding: 7px 10px 7px 8px !important;
  gap: 12px !important;
  border: 1.5px solid #cfdae8 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 0 rgba(20, 43, 99, 0.02) !important;
}

.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link::before,
.cs-template .side-rail .mod-menu a::before,
.cs-template .side-rail .nav a::before {
  content: '' !important;
  position: absolute !important;
  left: -7px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 3px !important;
  height: 32px !important;
  border-radius: 999px !important;
  background: transparent !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover {
  border-color: #bfd0e3 !important;
  background: #f8fbff !important;
  box-shadow: 0 8px 16px rgba(20, 43, 99, 0.05) !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"] {
  border-color: #c8d6e9 !important;
  background: #eef5ff !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55), 0 8px 18px rgba(20, 43, 99, 0.06) !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active::before,
.cs-template .side-rail .rail-nav__link.is-active::before,
.cs-template .side-rail .mod-menu .current > a::before,
.cs-template .side-rail .nav .current > a::before,
.cs-template .side-rail .mod-menu a[aria-current="page"]::before,
.cs-template .side-rail .nav a[aria-current="page"]::before {
  background: #ff7a21 !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 5px !important;
  border: 1.5px solid #cfdae8 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover .cs-rail-menu__icon-box,
.cs-template .side-rail .rail-nav__link:hover .cs-rail-menu__icon-box,
.cs-template .side-rail .mod-menu a:hover .cs-rail-menu__icon-box,
.cs-template .side-rail .nav a:hover .cs-rail-menu__icon-box {
  border-color: #bfcee1 !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .rail-nav__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .mod-menu .current > a .cs-rail-menu__icon-box,
.cs-template .side-rail .nav .current > a .cs-rail-menu__icon-box,
.cs-template .side-rail .mod-menu a[aria-current="page"] .cs-rail-menu__icon-box,
.cs-template .side-rail .nav a[aria-current="page"] .cs-rail-menu__icon-box {
  border-color: #ff7a21 !important;
  box-shadow: 0 0 0 2px rgba(255, 122, 33, 0.08) !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  width: 100% !important;
  height: 100% !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: auto !important;
}

.cs-template .side-rail .cs-rail-menu__text {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
  color: #173068 !important;
}

.cs-template .side-rail__team-logo {
  width: calc(var(--side-rail-width) - 42px) !important;
  max-width: 126px !important;
  min-height: 116px !important;
  margin: 6px auto !important;
  padding: 10px !important;
  border: 1.5px solid #d7e2ef !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(20, 43, 99, 0.04) !important;
}

.cs-template .side-rail__team-logo-image {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.cs-template .side-rail__flex-gap--top {
  min-height: 10px !important;
}

.cs-template .side-rail__flex-gap--bottom {
  min-height: 10px !important;
}


/* 1.0.38 - login form compact cleanup */
/* 1.0.38 - login form compact cleanup */
.cs-auth-shell {
  width: min(390px, 100%);
}

.cs-auth-brand {
  margin-bottom: 1rem;
}

.cs-auth-brand__symbol {
  max-width: 170px;
}

.cs-auth-brand__wordmark {
  max-width: 340px;
}

.cs-auth-card {
  max-width: 372px;
  padding: 1.15rem 1.2rem 1.3rem;
  border-radius: 22px;
}

.cs-auth-card::before,
.cs-auth-card #system-message-container,
.cs-auth-card .joomla-messages,
.cs-auth-card .alert,
.cs-auth-card .message,
.cs-auth-card .system-message,
.cs-auth-card .joomla-alert,
.cs-auth-card .com-users-login__passkey,
.cs-auth-card .passkey,
.cs-auth-card .passkey-login,
.cs-auth-card [class*="passkey"],
.cs-auth-card [data-webauthn-button],
.cs-auth-card a[href*="view=reset"],
.cs-auth-card a[href*="view=remind"],
.cs-auth-card .com-users-login__options,
.cs-auth-card .login + ul,
.cs-auth-card ul {
  display: none !important;
}

.cs-auth-card .com-users-login,
.cs-auth-card .login,
.cs-auth-card form,
.cs-auth-card fieldset {
  gap: 0.78rem;
}

.cs-auth-card label {
  font-size: 0.83rem;
  font-weight: 850;
}

.cs-auth-card input[type="text"],
.cs-auth-card input[type="password"],
.cs-auth-card input[type="email"],
.cs-auth-card input[type="search"],
.cs-auth-card input[type="url"],
.cs-auth-card input[type="tel"] {
  min-height: 42px;
}

.cs-auth-card .control-group:has(input[type="checkbox"]),
.cs-auth-card .form-check,
.cs-auth-card .remember,
.cs-auth-card .mod-login__remember,
.cs-auth-card .com-users-login__remember {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.cs-auth-card .control-group:has(input[type="checkbox"]) label,
.cs-auth-card .form-check label,
.cs-auth-card .remember label,
.cs-auth-card .mod-login__remember label,
.cs-auth-card .com-users-login__remember label {
  color: var(--accent);
}

.cs-auth-card input[type="checkbox"] {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--accent);
}

.cs-auth-card .btn,
.cs-auth-card button,
.cs-auth-card input[type="submit"] {
  min-height: 44px;
}

/* v1.0.39 final sidebar visual polish */
.cs-template .side-rail {
  padding: 13px 10px 16px !important;
  gap: 9px !important;
  background: #ffffff !important;
  border-right: 1.6px solid #d9e4f0 !important;
}

.cs-template .brand-mark--split-original {
  min-height: 116px !important;
  margin: 0 auto 8px !important;
  padding: 3px 2px 6px !important;
  gap: 3px !important;
}

.cs-template .brand-mark--split-original .brand-mark__symbol-original {
  max-width: 118px !important;
  max-height: 62px !important;
}

.cs-template .brand-mark--split-original .brand-mark__wordmark-original {
  max-width: 132px !important;
  max-height: 50px !important;
}

.cs-template .rail-nav--primary,
.cs-template .rail-nav--secondary {
  width: 100% !important;
}

.cs-template .rail-nav--primary .cs-rail-menu,
.cs-template .rail-nav--secondary .cs-rail-menu {
  display: grid !important;
  gap: 7px !important;
  width: 100% !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  display: flex !important;
  align-items: center !important;
  min-height: 56px !important;
  padding: 6px 10px !important;
  gap: 10px !important;
  border: 2px solid #cfdbea !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 5px 14px rgba(15, 35, 65, 0.025) !important;
  box-sizing: border-box !important;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover {
  background: #f8fbff !important;
  border-color: #aebfd6 !important;
  box-shadow: 0 7px 16px rgba(15, 35, 65, 0.045) !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"] {
  background: #eef5fc !important;
  border-color: #b7c8dd !important;
  box-shadow: inset 4px 0 0 #ff6a00, 0 7px 16px rgba(15, 35, 65, 0.04) !important;
}

.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link::before {
  display: none !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 4px !important;
  border: 2px solid #c9d6e7 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover .cs-rail-menu__icon-box,
.cs-template .side-rail .rail-nav__link:hover .cs-rail-menu__icon-box {
  border-color: #aebfd6 !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .rail-nav__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link .cs-rail-menu__icon-box,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link .cs-rail-menu__icon-box {
  border-color: #ff7a21 !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}

.cs-template .side-rail .cs-rail-menu__text,
.cs-template .side-rail .rail-nav__text,
.cs-template .side-rail .mod-menu a span,
.cs-template .side-rail .nav a span {
  font-size: 15px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  color: #09285f !important;
  letter-spacing: -0.01em !important;
}

.cs-template .side-rail__flex-gap {
  flex: 1 1 0 !important;
  min-height: 8px !important;
}

.cs-template .side-rail__team-logo {
  width: calc(var(--side-rail-width) - 42px) !important;
  max-width: 128px !important;
  min-height: 118px !important;
  margin: 4px auto !important;
  padding: 8px 8px !important;
  background: #ffffff !important;
  border: 1.7px solid #d6e1ef !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 20px rgba(15, 35, 65, 0.04) !important;
}

.cs-template .side-rail__team-logo-image {
  max-width: 92% !important;
  max-height: 96px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.cs-template .rail-nav--secondary {
  margin-top: 0 !important;
}

/* Keep the menu static and fully visible. */
.cs-template .topbar__menu--toggle,
.cs-template .rail-collapse,
.cs-template [data-action="toggle-rail"] {
  display: none !important;
}

.cs-template .app-shell,
body.cs-template.rail-is-compact .app-shell {
  grid-template-columns: var(--side-rail-width) minmax(0, 1fr) !important;
}

body.cs-template.rail-is-compact .side-rail .cs-rail-menu__text {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  position: static !important;
  clip: auto !important;
  overflow: visible !important;
}


/* v1.0.40 login cleanup: remove unused controls and correct compact form */
.cs-template .cs-auth-shell {
  width: min(360px, 100%) !important;
  gap: 14px !important;
}

.cs-template .cs-auth-brand__symbol {
  width: min(150px, 60%) !important;
  max-width: 150px !important;
}

.cs-template .cs-auth-brand__wordmark {
  width: min(300px, 92%) !important;
  max-width: 300px !important;
}

.cs-template .cs-auth-card {
  max-width: 335px !important;
  padding: 1.05rem 1.1rem 1.2rem !important;
  border-radius: 22px !important;
}

.cs-template .cs-auth-card #system-message-container,
.cs-template .cs-auth-card .joomla-messages,
.cs-template .cs-auth-card .alert,
.cs-template .cs-auth-card .message,
.cs-template .cs-auth-card .joomla-alert,
.cs-template .cs-auth-card .system-message,
.cs-template .cs-auth-card .com-users-login__passkey,
.cs-template .cs-auth-card .passkey,
.cs-template .cs-auth-card .passkey-login,
.cs-template .cs-auth-card .webauthn,
.cs-template .cs-auth-card [class*="passkey"],
.cs-template .cs-auth-card [class*="webauthn"],
.cs-template .cs-auth-card [data-webauthn-button],
.cs-template .cs-auth-card a[href*="view=reset"],
.cs-template .cs-auth-card a[href*="view=remind"],
.cs-template .cs-auth-card input[name*="secretkey"],
.cs-template .cs-auth-card input[id*="secretkey"],
.cs-template .cs-auth-card input[name*="otp"],
.cs-template .cs-auth-card input[id*="otp"],
.cs-template .cs-auth-card input[name*="totp"],
.cs-template .cs-auth-card input[id*="totp"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.cs-template .cs-auth-card .control-group:has(input[name*="secretkey"]),
.cs-template .cs-auth-card .control-group:has(input[id*="secretkey"]),
.cs-template .cs-auth-card .control-group:has(input[name*="otp"]),
.cs-template .cs-auth-card .control-group:has(input[id*="otp"]),
.cs-template .cs-auth-card .control-group:has(input[name*="totp"]),
.cs-template .cs-auth-card .control-group:has(input[id*="totp"]),
.cs-template .cs-auth-card .form-group:has(input[name*="secretkey"]),
.cs-template .cs-auth-card .form-group:has(input[id*="secretkey"]),
.cs-template .cs-auth-card .mb-3:has(input[name*="secretkey"]),
.cs-template .cs-auth-card .mb-3:has(input[id*="secretkey"]),
.cs-template .cs-auth-card .control-group:has([class*="passkey"]),
.cs-template .cs-auth-card .form-group:has([class*="passkey"]),
.cs-template .cs-auth-card .mb-3:has([class*="passkey"]),
.cs-template .cs-auth-card .control-group:has([data-webauthn-button]),
.cs-template .cs-auth-card .form-group:has([data-webauthn-button]),
.cs-template .cs-auth-card .mb-3:has([data-webauthn-button]) {
  display: none !important;
}

.cs-template .cs-auth-card label.cs-auth-remember-label,
.cs-template .cs-auth-card .control-group:has(input[type="checkbox"]) label,
.cs-template .cs-auth-card .form-check label,
.cs-template .cs-auth-card .remember label,
.cs-template .cs-auth-card .mod-login__remember label,
.cs-template .cs-auth-card .com-users-login__remember label {
  color: #ff6a00 !important;
  font-weight: 850 !important;
}

.cs-template .cs-auth-card input[type="text"],
.cs-template .cs-auth-card input[type="password"],
.cs-template .cs-auth-card input[type="email"] {
  min-height: 42px !important;
}

.cs-template .cs-auth-card .btn,
.cs-template .cs-auth-card button,
.cs-template .cs-auth-card input[type="submit"] {
  min-height: 42px !important;
}


/* v1.0.41 restore original-style sidebar buttons and remove logo frame */
.cs-template .brand-mark,
.cs-template .brand-mark--split-original,
.cs-template .brand-mark--logo-original,
.cs-template .brand-mark--stacked {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  border-radius: 0 !important;
}

.cs-template .brand-mark img,
.cs-template .brand-mark__symbol-original,
.cs-template .brand-mark__wordmark-original,
.cs-template .brand-mark__logo-original {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Return the menu buttons to the clean initial look: only the active item is boxed. */
.cs-template .side-rail {
  background: #ffffff !important;
  border-right: 1px solid #dbe5f0 !important;
  padding: 14px 10px 16px !important;
  gap: 10px !important;
}

.cs-template .rail-nav--primary .cs-rail-menu,
.cs-template .rail-nav--secondary .cs-rail-menu {
  gap: 8px !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  display: flex !important;
  align-items: center !important;
  min-height: 56px !important;
  padding: 6px 10px !important;
  gap: 11px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover {
  background: #f7fbff !important;
  border-color: #dbe5f0 !important;
  box-shadow: none !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"] {
  background: #eef4fb !important;
  border: 1.4px solid #d1deec !important;
  box-shadow: none !important;
}

/* Keep only one orange page indicator, as in the initial visual reference. */
.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link::before,
.cs-template .side-rail .mod-menu a::before,
.cs-template .side-rail .nav a::before {
  display: none !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active::before,
.cs-template .side-rail .rail-nav__link.is-active::before,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link::before,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link::before,
.cs-template .side-rail .mod-menu .current > a::before,
.cs-template .side-rail .nav .current > a::before,
.cs-template .side-rail .mod-menu a[aria-current="page"]::before,
.cs-template .side-rail .nav a[aria-current="page"]::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: -9px !important;
  top: 12px !important;
  bottom: 12px !important;
  width: 3px !important;
  border-radius: 999px !important;
  background: #ff6a00 !important;
}

/* Icon boxes: rounded, clean, no heavy outer button border on inactive items. */
.cs-template .side-rail .cs-rail-menu__icon-box {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 4px !important;
  background: #ffffff !important;
  border: 1.2px solid #d4dfed !important;
  border-radius: 13px !important;
  box-shadow: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover .cs-rail-menu__icon-box,
.cs-template .side-rail .rail-nav__link:hover .cs-rail-menu__icon-box {
  border-color: #c2d0e2 !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .rail-nav__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link .cs-rail-menu__icon-box,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link .cs-rail-menu__icon-box {
  border-color: #cbd8e8 !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}

.cs-template .side-rail .cs-rail-menu__text,
.cs-template .side-rail .rail-nav__text,
.cs-template .side-rail .mod-menu a span,
.cs-template .side-rail .nav a span {
  color: #08285d !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

/* Keep settings matching the initial menu-button style. */
.cs-template .rail-nav--secondary .cs-rail-menu__link.is-active,
.cs-template .rail-nav--secondary .rail-nav__link.is-active {
  background: #eef4fb !important;
  border-color: #d1deec !important;
}

/* Remove any old compact/sidebar toggle artifacts if cached. */
.cs-template .topbar__menu--toggle,
.cs-template .rail-collapse,
.cs-template [data-action="toggle-rail"] {
  display: none !important;
}


/* v1.0.42 final login cleanup */
body.cs-template.cs-auth-only {
  background: #f4f7fb !important;
}

.cs-template .cs-auth-shell {
  width: min(360px, 100%) !important;
  gap: 16px !important;
}

.cs-template .cs-auth-brand {
  margin-bottom: 0 !important;
}

.cs-template .cs-auth-brand__symbol {
  max-width: 150px !important;
}

.cs-template .cs-auth-brand__wordmark {
  max-width: 300px !important;
}

.cs-template .cs-auth-card {
  width: min(330px, 100%) !important;
  max-width: 330px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cs-template .cs-auth-card::before,
.cs-template .cs-auth-card #system-message-container,
.cs-template .cs-auth-card .joomla-messages,
.cs-template .cs-auth-card .joomla-alert,
.cs-template .cs-auth-card .alert,
.cs-template .cs-auth-card .message,
.cs-template .cs-auth-card .system-message,
.cs-template .cs-auth-card .com-users-login__passkey,
.cs-template .cs-auth-card .passkey,
.cs-template .cs-auth-card .passkey-login,
.cs-template .cs-auth-card [class*="passkey"],
.cs-template .cs-auth-card [data-webauthn-button],
.cs-template .cs-auth-card a[href*="view=reset"],
.cs-template .cs-auth-card a[href*="view=remind"],
.cs-template .cs-auth-card input[name*="secretkey"],
.cs-template .cs-auth-card input[id*="secretkey"],
.cs-template .cs-auth-card label[for*="secretkey"],
.cs-template .cs-auth-card input[name*="otp"],
.cs-template .cs-auth-card input[id*="otp"],
.cs-template .cs-auth-card label[for*="otp"],
.cs-template .cs-auth-card ul,
.cs-template .cs-auth-card .com-users-login__options,
.cs-template .cs-auth-card .login + ul,
.cs-template .cs-auth-card .list-unstyled,
.cs-template .cs-auth-card .nav {
  display: none !important;
}

.cs-template .cs-auth-card .com-users-login,
.cs-template .cs-auth-card .login,
.cs-template .cs-auth-card form,
.cs-template .cs-auth-card fieldset {
  display: grid !important;
  gap: 0.78rem !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.cs-template .cs-auth-card .control-group,
.cs-template .cs-auth-card .form-group,
.cs-template .cs-auth-card .mb-3,
.cs-template .cs-auth-card .control-label,
.cs-template .cs-auth-card .controls {
  display: grid !important;
  gap: 0.35rem !important;
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
}

.cs-template .cs-auth-card label {
  color: #0b285f !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
}

.cs-template .cs-auth-card input[type="text"],
.cs-template .cs-auth-card input[type="password"],
.cs-template .cs-auth-card input[type="email"],
.cs-template .cs-auth-card input[type="search"],
.cs-template .cs-auth-card input[type="url"],
.cs-template .cs-auth-card input[type="tel"] {
  min-height: 42px !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1.4px solid #cad8e9 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.cs-template .cs-auth-card input[type="text"]:focus,
.cs-template .cs-auth-card input[type="password"]:focus {
  border-color: #ff7a21 !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 33, 0.14) !important;
}

.cs-template .cs-auth-card .control-group:has(input[type="checkbox"]),
.cs-template .cs-auth-card .form-check,
.cs-template .cs-auth-card .remember,
.cs-template .cs-auth-card .mod-login__remember,
.cs-template .cs-auth-card .com-users-login__remember {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  margin-top: 0.08rem !important;
}

.cs-template .cs-auth-card .control-group:has(input[type="checkbox"]) label,
.cs-template .cs-auth-card .form-check label,
.cs-template .cs-auth-card .remember label,
.cs-template .cs-auth-card .mod-login__remember label,
.cs-template .cs-auth-card .com-users-login__remember label {
  color: #ff6a00 !important;
  margin: 0 !important;
}

.cs-template .cs-auth-card input[type="checkbox"] {
  width: 0.95rem !important;
  height: 0.95rem !important;
  accent-color: #ff6a00 !important;
}

.cs-template .cs-auth-card .btn,
.cs-template .cs-auth-card button,
.cs-template .cs-auth-card input[type="submit"] {
  min-height: 44px !important;
  width: 100% !important;
  border-radius: 11px !important;
  font-weight: 850 !important;
}

.cs-template .cs-auth-card button[type="submit"],
.cs-template .cs-auth-card .btn-primary,
.cs-template .cs-auth-card input[type="submit"] {
  background: #142b63 !important;
  border-color: #142b63 !important;
  color: #ffffff !important;
}


/* v1.0.43 visible clean login form */
.cs-template .cs-auth-shell {
  width: min(360px, 100%) !important;
  gap: 16px !important;
}

.cs-template .cs-auth-card {
  width: min(330px, 100%) !important;
  max-width: 330px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.cs-template .cs-auth-card .com-users-login,
.cs-template .cs-auth-card .login,
.cs-template .cs-auth-card form,
.cs-template .cs-auth-card fieldset {
  display: grid !important;
  gap: 0.78rem !important;
  width: 100% !important;
  background: transparent !important;
}

.cs-template .cs-auth-card .control-group,
.cs-template .cs-auth-card .form-group,
.cs-template .cs-auth-card .mb-3,
.cs-template .cs-auth-card .control-label,
.cs-template .cs-auth-card .controls {
  display: grid !important;
  gap: 0.35rem !important;
  width: 100% !important;
  margin: 0 !important;
}

.cs-template .cs-auth-card input[type="text"],
.cs-template .cs-auth-card input[type="password"],
.cs-template .cs-auth-card input[type="email"] {
  display: block !important;
  min-height: 42px !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1.4px solid #cad8e9 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.cs-template .cs-auth-card label {
  color: #0b285f !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
}

.cs-template .cs-auth-card .control-group:has(input[type="checkbox"]),
.cs-template .cs-auth-card .form-check,
.cs-template .cs-auth-card .remember,
.cs-template .cs-auth-card .mod-login__remember,
.cs-template .cs-auth-card .com-users-login__remember {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  margin-top: 0.05rem !important;
}

.cs-template .cs-auth-card .control-group:has(input[type="checkbox"]) label,
.cs-template .cs-auth-card .form-check label,
.cs-template .cs-auth-card .remember label,
.cs-template .cs-auth-card .mod-login__remember label,
.cs-template .cs-auth-card .com-users-login__remember label {
  color: #ff6a00 !important;
  margin: 0 !important;
}

.cs-template .cs-auth-card input[type="checkbox"] {
  display: inline-block !important;
  width: 0.95rem !important;
  height: 0.95rem !important;
  accent-color: #ff6a00 !important;
}

.cs-template .cs-auth-card button[type="submit"],
.cs-template .cs-auth-card .btn-primary,
.cs-template .cs-auth-card input[type="submit"] {
  display: block !important;
  min-height: 44px !important;
  width: 100% !important;
  border-radius: 11px !important;
  font-weight: 850 !important;
  background: #142b63 !important;
  border-color: #142b63 !important;
  color: #ffffff !important;
}

.cs-template .cs-auth-card #system-message-container,
.cs-template .cs-auth-card .joomla-messages,
.cs-template .cs-auth-card .joomla-alert,
.cs-template .cs-auth-card .alert,
.cs-template .cs-auth-card .message,
.cs-template .cs-auth-card .system-message,
.cs-template .cs-auth-card .com-users-login__passkey,
.cs-template .cs-auth-card .passkey,
.cs-template .cs-auth-card .passkey-login,
.cs-template .cs-auth-card [class*="passkey"],
.cs-template .cs-auth-card [data-webauthn-button],
.cs-template .cs-auth-card a[href*="view=reset"],
.cs-template .cs-auth-card a[href*="view=remind"],
.cs-template .cs-auth-card input[name*="secretkey"],
.cs-template .cs-auth-card input[id*="secretkey"],
.cs-template .cs-auth-card label[for*="secretkey"],
.cs-template .cs-auth-card input[name*="otp"],
.cs-template .cs-auth-card input[id*="otp"],
.cs-template .cs-auth-card label[for*="otp"],
.cs-template .cs-auth-card ul,
.cs-template .cs-auth-card .com-users-login__options,
.cs-template .cs-auth-card .login + ul,
.cs-template .cs-auth-card .list-unstyled,
.cs-template .cs-auth-card .nav {
  display: none !important;
}


/* v1.0.44 minimal login form and reference-style left sidebar */
body.cs-template.cs-auth-only {
  background: #f4f7fb !important;
}

.cs-template .cs-auth-shell {
  width: min(360px, 100%) !important;
  min-height: 100vh !important;
  margin: 0 auto !important;
  padding: 28px 18px !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 16px !important;
}

.cs-template .cs-auth-brand {
  display: grid !important;
  justify-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}

.cs-template .cs-auth-brand__symbol {
  width: 146px !important;
  max-width: 146px !important;
  height: auto !important;
}

.cs-template .cs-auth-brand__wordmark {
  width: 300px !important;
  max-width: 300px !important;
  height: auto !important;
}

.cs-template .cs-auth-card,
.cs-template .cs-auth-card--minimal {
  width: min(320px, 100%) !important;
  max-width: 320px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.cs-template .cs-auth-card::before,
.cs-template .cs-auth-card #system-message-container,
.cs-template .cs-auth-card .joomla-messages,
.cs-template .cs-auth-card .alert,
.cs-template .cs-auth-card .message,
.cs-template .cs-auth-card .system-message,
.cs-template .cs-auth-card .joomla-alert,
.cs-template .cs-auth-card .com-users-login,
.cs-template .cs-auth-card .login,
.cs-template .cs-auth-card fieldset,
.cs-template .cs-auth-card ul,
.cs-template .cs-auth-card .com-users-login__options,
.cs-template .cs-auth-card .login + ul,
.cs-template .cs-auth-card .passkey,
.cs-template .cs-auth-card [class*="passkey"],
.cs-template .cs-auth-card [data-webauthn-button] {
  display: none !important;
}

.cs-template .cs-auth-card .cs-auth-form {
  display: grid !important;
  gap: 0.82rem !important;
  width: 100% !important;
  background: transparent !important;
}

.cs-template .cs-auth-field {
  display: grid !important;
  gap: 0.34rem !important;
  width: 100% !important;
}

.cs-template .cs-auth-field label {
  color: #0b285f !important;
  font-size: 0.83rem !important;
  line-height: 1.15 !important;
  font-weight: 850 !important;
}

.cs-template .cs-auth-field input {
  display: block !important;
  width: 100% !important;
  min-height: 42px !important;
  background: #ffffff !important;
  border: 1.45px solid #c8d7e9 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: #0b285f !important;
}

.cs-template .cs-auth-field input:focus {
  border-color: #ff7a21 !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 33, 0.15) !important;
  outline: none !important;
}

.cs-template .cs-auth-remember {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  color: #ff6a00 !important;
  font-size: 0.84rem !important;
  font-weight: 850 !important;
  margin: 0 !important;
}

.cs-template .cs-auth-remember input {
  width: 0.95rem !important;
  height: 0.95rem !important;
  accent-color: #ff6a00 !important;
  margin: 0 !important;
}

.cs-template .cs-auth-submit {
  width: 100% !important;
  min-height: 44px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: #142b63 !important;
  color: #ffffff !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
  box-shadow: none !important;
}

.cs-template .cs-auth-submit:hover,
.cs-template .cs-auth-submit:focus {
  background: #0f2252 !important;
}

/* Reference-style sidebar: rounded white buttons, active blue tint, single orange bar. */
.cs-template .side-rail {
  background: #ffffff !important;
  border-right: 1px solid #dce5f1 !important;
  padding: 14px 10px 16px !important;
  gap: 10px !important;
}

.cs-template .brand-mark,
.cs-template .brand-mark--split-original {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  border-radius: 0 !important;
}

.cs-template .brand-mark--split-original {
  min-height: 122px !important;
  margin: 0 auto 8px !important;
  padding: 3px 2px 6px !important;
  gap: 3px !important;
}

.cs-template .brand-mark--split-original .brand-mark__symbol-original {
  max-width: 118px !important;
  max-height: 62px !important;
}

.cs-template .brand-mark--split-original .brand-mark__wordmark-original {
  max-width: 132px !important;
  max-height: 50px !important;
}

.cs-template .rail-nav--primary .cs-rail-menu,
.cs-template .rail-nav--secondary .cs-rail-menu {
  display: grid !important;
  gap: 8px !important;
  width: 100% !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: 64px !important;
  padding: 8px 12px !important;
  gap: 12px !important;
  background: #ffffff !important;
  border: 1.45px solid #d2deec !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover {
  background: #f7fbff !important;
  border-color: #c2d1e2 !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"] {
  background: #eef4fb !important;
  border-color: #c7d5e6 !important;
  box-shadow: none !important;
}

.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link::before,
.cs-template .side-rail .mod-menu a::before,
.cs-template .side-rail .nav a::before {
  display: none !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active::before,
.cs-template .side-rail .rail-nav__link.is-active::before,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link::before,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: -10px !important;
  top: 12px !important;
  bottom: 12px !important;
  width: 3px !important;
  border-radius: 999px !important;
  background: #ff6a00 !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 48px !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 5px !important;
  border: 1.35px solid #d2deec !important;
  border-radius: 15px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.cs-template .side-rail .cs-rail-menu__icon {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 38px !important;
  max-height: 38px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}

.cs-template .side-rail .cs-rail-menu__text {
  color: #08285d !important;
  font-size: 15px !important;
  line-height: 1.16 !important;
  font-weight: 800 !important;
}

.cs-template .side-rail__team-logo {
  width: calc(var(--side-rail-width) - 42px) !important;
  max-width: 128px !important;
  min-height: 118px !important;
  margin: 4px auto !important;
  padding: 8px !important;
  background: #ffffff !important;
  border: 1.45px solid #d7e1ee !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

.cs-template .side-rail__team-logo-image {
  max-width: 92% !important;
  max-height: 96px !important;
}

.cs-template .topbar__menu--toggle,
.cs-template .rail-collapse,
.cs-template [data-action="toggle-rail"] {
  display: none !important;
}


/* v1.0.45 minimal guest login */
.cs-template.cs-auth-only .cs-auth-shell {
  min-height: 100vh;
  padding: clamp(36px, 7vh, 64px) 24px;
}

.cs-template.cs-auth-only .cs-auth-brand {
  margin-bottom: 20px;
}

.cs-template.cs-auth-only .cs-auth-brand__symbol {
  max-width: 120px;
}

.cs-template.cs-auth-only .cs-auth-brand__wordmark {
  max-width: 320px;
}

.cs-template.cs-auth-only .cs-auth-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100%;
  max-width: 320px;
}

.cs-login-minimal,
.cs-login-minimal-form {
  width: 100%;
}

.cs-login-minimal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs-login-minimal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-login-minimal__field label {
  margin: 0;
  color: #142b6f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.cs-login-minimal__field input {
  width: 100%;
  height: 44px;
  border: 1.5px solid #c8d4e6;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #142b6f;
  font-size: 15px;
  padding: 0 14px;
  box-shadow: none;
}

.cs-login-minimal__field input:focus {
  outline: none;
  border-color: #ff6a13;
  box-shadow: 0 0 0 3px rgba(255, 106, 19, 0.12);
}

.cs-login-minimal__submit {
  align-self: center;
  min-width: 164px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: #ff6a13;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 40px;
  text-align: center;
  padding: 0 22px;
  box-shadow: 0 10px 24px rgba(255, 106, 19, 0.22);
}

.cs-login-minimal__submit:hover,
.cs-login-minimal__submit:focus {
  background: #ef5e08;
  color: #fff;
}

.cs-template.cs-auth-only #system-message-container,
.cs-template.cs-auth-only .joomla-alert,
.cs-template.cs-auth-only .alert,
.cs-template.cs-auth-only .message,
.cs-template.cs-auth-only .system-message,
.cs-template.cs-auth-only .mod-login__remember,
.cs-template.cs-auth-only .com-users-login__remember,
.cs-template.cs-auth-only .com-users-login__passkey,
.cs-template.cs-auth-only .passkey,
.cs-template.cs-auth-only .passkey-login,
.cs-template.cs-auth-only [class*="passkey"],
.cs-template.cs-auth-only [data-webauthn-button],
.cs-template.cs-auth-only a[href*="view=reset"],
.cs-template.cs-auth-only a[href*="view=remind"] {
  display: none !important;
}


/* v1.0.46 sidebar visual enhancement and Jayco logo card polish */
.cs-template .side-rail {
  padding: 16px 11px 18px !important;
  gap: 12px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
}

.cs-template .brand-mark--split-original {
  margin: 0 auto 10px !important;
  padding: 4px 2px 8px !important;
}

.cs-template .rail-nav--primary .cs-rail-menu,
.cs-template .rail-nav--secondary .cs-rail-menu {
  gap: 10px !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  min-height: 68px !important;
  padding: 9px 12px !important;
  gap: 13px !important;
  border: 1.5px solid #d2dceb !important;
  border-radius: 19px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset !important;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover {
  transform: translateY(-1px) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%) !important;
  border-color: #c4d2e2 !important;
  box-shadow: 0 8px 18px rgba(17, 39, 91, 0.06), 0 1px 0 rgba(255,255,255,0.96) inset !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"] {
  background: linear-gradient(180deg, #f6faff 0%, #edf3fb 100%) !important;
  border-color: #c4d3e5 !important;
  box-shadow: 0 10px 22px rgba(20, 43, 99, 0.06), 0 1px 0 rgba(255,255,255,0.96) inset !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active::before,
.cs-template .side-rail .rail-nav__link.is-active::before,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link::before,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link::before {
  left: -9px !important;
  top: 10px !important;
  bottom: 10px !important;
  width: 3px !important;
  background: linear-gradient(180deg, #ff7c2a 0%, #ff5f00 100%) !important;
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.08) !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  flex: 0 0 50px !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  padding: 5px !important;
  border: 1.45px solid #d0dced !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95) !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover .cs-rail-menu__icon-box,
.cs-template .side-rail .rail-nav__link:hover .cs-rail-menu__icon-box,
.cs-template .side-rail .cs-rail-menu__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .rail-nav__link.is-active .cs-rail-menu__icon-box,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link .cs-rail-menu__icon-box,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link .cs-rail-menu__icon-box {
  border-color: #c6d5e7 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96), 0 6px 14px rgba(17, 39, 91, 0.05) !important;
}

.cs-template .side-rail .cs-rail-menu__icon {
  max-width: 40px !important;
  max-height: 40px !important;
}

.cs-template .side-rail .cs-rail-menu__text {
  color: #092a60 !important;
  font-size: 15px !important;
  line-height: 1.14 !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
}

.cs-template .side-rail__team-logo {
  width: calc(var(--side-rail-width) - 32px) !important;
  max-width: 134px !important;
  min-height: 120px !important;
  margin: 6px auto !important;
  padding: 12px 10px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px dashed #c9d6e7 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96), inset 0 -12px 18px rgba(228,236,245,0.32) !important;
}

.cs-template .side-rail__team-logo-image {
  max-width: 92% !important;
  max-height: 98px !important;
  display: block !important;
}


/* v1.0.47 login redirect, compact sidebar icons and transparent Jayco image */
.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  min-height: 60px !important;
  padding: 5px 10px !important;
  gap: 10px !important;
  border-radius: 17px !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  flex: 0 0 48px !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 3px !important;
  border-radius: 16px !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.cs-template .side-rail .cs-rail-menu__text {
  font-size: 14.5px !important;
  line-height: 1.13 !important;
}

.cs-template .side-rail__team-logo {
  width: calc(var(--side-rail-width) - 34px) !important;
  max-width: 132px !important;
  min-height: 116px !important;
  padding: 10px 9px !important;
  border: 1px dashed #c9d6e7 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(248,250,252,0.86)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88), inset 0 -14px 18px rgba(228,236,245,0.32) !important;
}

.cs-template .side-rail__team-logo-image {
  max-width: 94% !important;
  max-height: 96px !important;
  background: transparent !important;
  mix-blend-mode: normal !important;
}

.cs-template .cs-auth-remember,
.cs-template .cs-auth-card input[name=\"remember\"],
.cs-template .cs-auth-card input[type=\"checkbox\"] {
  display: none !important;
}

.cs-template .cs-auth-submit,
.cs-login-minimal__submit {
  width: auto !important;
  min-width: 156px !important;
  max-width: 180px !important;
  min-height: 40px !important;
  align-self: center !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: #ff6a13 !important;
  color: #fff !important;
  font-weight: 850 !important;
  box-shadow: 0 10px 24px rgba(255, 106, 19, 0.2) !important;
}

.cs-template .cs-auth-submit:hover,
.cs-login-minimal__submit:hover {
  background: #f05e05 !important;
}


/* v1.0.48 logo artifact cleanup */
.cs-template .brand-mark,
.cs-template .brand-mark--split-original,
.cs-template .cs-auth-brand {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.cs-template .brand-mark__symbol-original,
.cs-template .brand-mark__wordmark-original,
.cs-template .cs-auth-brand__symbol,
.cs-template .cs-auth-brand__wordmark,
.cs-template .topbar-brand__logo,
.cs-template .team-lockup--brand img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.cs-template .side-rail__team-logo-image {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* v1.0.50 sidebar balance: smaller buttons, larger icons, settings above Jayco */
.cs-template .side-rail {
  padding: 14px 10px 16px !important;
  gap: 10px !important;
}

.cs-template .brand-mark--split-original {
  margin: 0 auto 8px !important;
  padding: 2px 0 6px !important;
}

.cs-template .rail-nav--primary .cs-rail-menu,
.cs-template .rail-nav--secondary .cs-rail-menu {
  gap: 8px !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  min-height: 54px !important;
  padding: 4px 9px !important;
  gap: 9px !important;
  border-radius: 16px !important;
  align-items: center !important;
}

.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link::before,
.cs-template .side-rail .mod-menu a::before,
.cs-template .side-rail .nav a::before {
  top: 9px !important;
  bottom: 9px !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 1px !important;
  border-radius: 14px !important;
  display: grid !important;
  place-items: center !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.cs-template .side-rail .cs-rail-menu__text,
.cs-template .side-rail .rail-nav__text,
.cs-template .side-rail .mod-menu a span,
.cs-template .side-rail .nav a span {
  font-size: 14px !important;
  line-height: 1.1 !important;
}

.cs-template .side-rail .rail-nav--secondary {
  margin-top: 0 !important;
}

.cs-template .side-rail__flex-gap--top {
  flex: 1 1 auto !important;
  min-height: 6px !important;
}

.cs-template .side-rail__flex-gap--bottom {
  flex: 0 0 8px !important;
  min-height: 8px !important;
}

.cs-template .side-rail__team-logo {
  order: 10 !important;
  width: calc(var(--side-rail-width) - 36px) !important;
  max-width: 130px !important;
  min-height: 98px !important;
  margin: 0 auto 2px !important;
  padding: 8px 8px !important;
  border: 1.5px dashed #cfd9e6 !important;
  border-radius: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cs-template .side-rail__team-logo-image {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 84px !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.cs-template .side-rail .cs-rail-menu__link[data-nav-key="settings"],
.cs-template .side-rail .rail-nav__link[data-nav-key="settings"] {
  min-height: 52px !important;
}

/* v1.0.51 active rail indicator spans full menu button height */
.cs-template .side-rail .cs-rail-menu__link.is-active::before,
.cs-template .side-rail .rail-nav__link.is-active::before,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link::before,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link::before,
.cs-template .side-rail .mod-menu .current > a::before,
.cs-template .side-rail .nav .current > a::before,
.cs-template .side-rail .mod-menu a[aria-current="page"]::before,
.cs-template .side-rail .nav a[aria-current="page"]::before {
  top: 0 !important;
  bottom: 0 !important;
  border-radius: 16px !important;
}


/* v1.0.52 inline settings with compact buttons and fuller icons */
.cs-template .side-rail {
  gap: 8px !important;
  padding: 14px 10px 16px !important;
}

.cs-template .rail-nav--primary.rail-nav--all,
.cs-template .rail-nav--primary.rail-nav--all .cs-rail-menu {
  gap: 7px !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  min-height: 46px !important;
  padding: 3px 8px !important;
  gap: 8px !important;
  border-radius: 15px !important;
  align-items: center !important;
}

.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link::before,
.cs-template .side-rail .mod-menu a::before,
.cs-template .side-rail .nav a::before {
  top: 0 !important;
  bottom: 0 !important;
  border-radius: 15px !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  display: grid !important;
  place-items: center !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.cs-template .side-rail .cs-rail-menu__text,
.cs-template .side-rail .rail-nav__text,
.cs-template .side-rail .mod-menu a span,
.cs-template .side-rail .nav a span {
  font-size: 14px !important;
  line-height: 1.05 !important;
}

.cs-template .side-rail .rail-nav--secondary,
.cs-template .side-rail__flex-gap--top {
  display: none !important;
}

.cs-template .side-rail__flex-gap--bottom {
  flex: 1 1 auto !important;
  min-height: 10px !important;
}

.cs-template .side-rail__team-logo {
  order: 20 !important;
  margin: 0 auto 0 !important;
  width: calc(var(--side-rail-width) - 36px) !important;
  max-width: 130px !important;
  min-height: 98px !important;
  padding: 8px 8px !important;
  border: 1.5px dashed #cfd9e6 !important;
  border-radius: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cs-template .side-rail__team-logo-image {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 84px !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* v1.0.53 menu label size -1 and full-height orange active bar */
.cs-template .side-rail .cs-rail-menu__text,
.cs-template .side-rail .rail-nav__text,
.cs-template .side-rail .mod-menu a span,
.cs-template .side-rail .nav a span {
  font-size: 13px !important;
  line-height: 1.02 !important;
}

.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a {
  min-height: 46px !important;
  align-items: center !important;
}

.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link::before,
.cs-template .side-rail .mod-menu a::before,
.cs-template .side-rail .nav a::before {
  inset: 0 auto 0 -8px !important;
  top: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  border-radius: 15px !important;
}


/* v1.0.54 unify sidebar button size and bind active orange bar to the button */
.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a,
.cs-template .side-rail .cs-rail-menu__link[data-nav-key="settings"],
.cs-template .side-rail .rail-nav__link[data-nav-key="settings"] {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 8px !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 10px !important;
  border-radius: 15px !important;
  box-sizing: border-box !important;
}

.cs-template .side-rail .cs-rail-menu__icon-box {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 12px !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
}

.cs-template .side-rail .cs-rail-menu__text,
.cs-template .side-rail .rail-nav__text,
.cs-template .side-rail .mod-menu a span,
.cs-template .side-rail .nav a span {
  font-size: 13px !important;
  line-height: 1 !important;
}

/* disable the detached pseudo-indicator and replace it with an inset accent line */
.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link::before,
.cs-template .side-rail .mod-menu a::before,
.cs-template .side-rail .nav a::before {
  content: none !important;
  display: none !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover {
  background: #eef3f9 !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .mod-menu .active > a,
.cs-template .side-rail .nav .active > a,
.cs-template .side-rail .current > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"] {
  background: #edf2f8 !important;
  box-shadow: inset 4px 0 0 #ff7a1a, inset 0 0 0 1px rgba(23, 48, 104, 0.08) !important;
}


/* v1.0.55 remove any residual external orange marker and keep only the indicator integrated in the active button */
.cs-template .side-rail .cs-rail-menu__item::before,
.cs-template .side-rail .cs-rail-menu__item::after,
.cs-template .side-rail .rail-nav__item::before,
.cs-template .side-rail .rail-nav__item::after,
.cs-template .side-rail li::before,
.cs-template .side-rail li::after,
.cs-template .side-rail .mod-menu li::before,
.cs-template .side-rail .mod-menu li::after,
.cs-template .side-rail .nav li::before,
.cs-template .side-rail .nav li::after,
.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .cs-rail-menu__link::after,
.cs-template .side-rail .rail-nav__link::before,
.cs-template .side-rail .rail-nav__link::after,
.cs-template .side-rail .mod-menu a::before,
.cs-template .side-rail .mod-menu a::after,
.cs-template .side-rail .nav a::before,
.cs-template .side-rail .nav a::after {
  content: none !important;
  display: none !important;
}

.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .mod-menu .active > a,
.cs-template .side-rail .nav .active > a,
.cs-template .side-rail .current > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"] {
  border-left: 4px solid #ff7a1a !important;
  box-shadow: inset 0 0 0 1px rgba(23, 48, 104, 0.08) !important;
  padding-left: 6px !important;
}


/* v1.0.62 - drastic sidebar orange external line removal + defined button borders */
/* Kill every external/sidebar pseudo marker that may have survived from older releases. */
.cs-template .side-rail *::before,
.cs-template .side-rail *::after,
.side-rail *::before,
.side-rail *::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* All sidebar buttons keep the same clear border in every state. */
.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a,
.side-rail .cs-rail-menu__link,
.side-rail .rail-nav__link,
.side-rail .mod-menu a,
.side-rail .nav a {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  align-items: center !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 10px !important;
  gap: 8px !important;
  border: 2px solid #cfdbea !important;
  border-radius: 15px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Hover state: border remains visible and defined. */
.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover,
.side-rail .cs-rail-menu__link:hover,
.side-rail .rail-nav__link:hover,
.side-rail .mod-menu a:hover,
.side-rail .nav a:hover {
  border-color: #b9c8da !important;
  background: #f7fbff !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Selected state: no external orange line. The accent is the button's own left border. */
.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.cs-template .side-rail .mod-menu .active > a,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .active > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .current > a,
.cs-template .side-rail .active > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"],
.side-rail .cs-rail-menu__link.is-active,
.side-rail .rail-nav__link.is-active,
.side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.side-rail .mod-menu .active > a,
.side-rail .mod-menu .current > a,
.side-rail .nav .active > a,
.side-rail .nav .current > a,
.side-rail .current > a,
.side-rail .active > a,
.side-rail .mod-menu a[aria-current="page"],
.side-rail .nav a[aria-current="page"] {
  border-top-color: #b9c8da !important;
  border-right-color: #b9c8da !important;
  border-bottom-color: #b9c8da !important;
  border-left: 4px solid #ff7a1a !important;
  background: #eef4fb !important;
  box-shadow: none !important;
  padding-left: 8px !important;
  transform: none !important;
}

/* Keep icon boxes inside the button clean and aligned. */
.cs-template .side-rail .cs-rail-menu__icon-box,
.side-rail .cs-rail-menu__icon-box {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border: 1.5px solid #d4dfed !important;
  border-radius: 12px !important;
  display: grid !important;
  place-items: center !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.cs-template .side-rail .cs-rail-menu__icon,
.cs-template .side-rail .rail-nav__link img,
.cs-template .side-rail .mod-menu img,
.cs-template .side-rail .nav img,
.side-rail .cs-rail-menu__icon,
.side-rail .rail-nav__link img,
.side-rail .mod-menu img,
.side-rail .nav img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.cs-template .side-rail .cs-rail-menu__text,
.cs-template .side-rail .rail-nav__text,
.cs-template .side-rail .mod-menu a span,
.cs-template .side-rail .nav a span,
.side-rail .cs-rail-menu__text,
.side-rail .rail-nav__text,
.side-rail .mod-menu a span,
.side-rail .nav a span {
  font-size: 13px !important;
  line-height: 1 !important;
  color: #08285d !important;
}


/* v1.0.62 - definitive left sidebar orange stray-bar removal */
.cs-template .side-rail,
.side-rail {
  overflow: visible !important;
}

.cs-template .side-rail ul,
.cs-template .side-rail li,
.cs-template .side-rail .mod-menu,
.cs-template .side-rail .nav,
.side-rail ul,
.side-rail li,
.side-rail .mod-menu,
.side-rail .nav {
  list-style: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Remove any detached orange marker from wrappers/items/pseudo-elements. */
.cs-template .side-rail ul::before,
.cs-template .side-rail ul::after,
.cs-template .side-rail li::before,
.cs-template .side-rail li::after,
.cs-template .side-rail .mod-menu::before,
.cs-template .side-rail .mod-menu::after,
.cs-template .side-rail .nav::before,
.cs-template .side-rail .nav::after,
.cs-template .side-rail .mod-menu li::before,
.cs-template .side-rail .mod-menu li::after,
.cs-template .side-rail .nav li::before,
.cs-template .side-rail .nav li::after,
.side-rail ul::before,
.side-rail ul::after,
.side-rail li::before,
.side-rail li::after,
.side-rail .mod-menu::before,
.side-rail .mod-menu::after,
.side-rail .nav::before,
.side-rail .nav::after,
.side-rail .mod-menu li::before,
.side-rail .mod-menu li::after,
.side-rail .nav li::before,
.side-rail .nav li::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Keep all buttons identical in size and with a clear border. */
.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a,
.side-rail .cs-rail-menu__link,
.side-rail .rail-nav__link,
.side-rail .mod-menu a,
.side-rail .nav a {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 12px !important;
  border: 2px solid #cfdbea !important;
  border-radius: 15px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover,
.side-rail .cs-rail-menu__link:hover,
.side-rail .rail-nav__link:hover,
.side-rail .mod-menu a:hover,
.side-rail .nav a:hover {
  border-color: #b9c8da !important;
  background: #f7fbff !important;
  box-shadow: none !important;
}

/* Active/current state without any orange external or internal bar. */
.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.cs-template .side-rail .mod-menu .active > a,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .active > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .current > a,
.cs-template .side-rail .active > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"],
.side-rail .cs-rail-menu__link.is-active,
.side-rail .rail-nav__link.is-active,
.side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.side-rail .mod-menu .active > a,
.side-rail .mod-menu .current > a,
.side-rail .nav .active > a,
.side-rail .nav .current > a,
.side-rail .current > a,
.side-rail .active > a,
.side-rail .mod-menu a[aria-current="page"],
.side-rail .nav a[aria-current="page"] {
  padding-left: 12px !important;
  border: 2px solid #c5d5e8 !important;
  background: #eef4fb !important;
  box-shadow: none !important;
  outline: 0 !important;
}


/* v1.0.62 - keep button graphic effect, finer minimalist borders, no external orange bar */
.cs-template .side-rail,
.side-rail {
  overflow: visible !important;
}

/* Definitive removal of external/orphan orange markers. */
.cs-template .side-rail ul::before,
.cs-template .side-rail ul::after,
.cs-template .side-rail li::before,
.cs-template .side-rail li::after,
.cs-template .side-rail .cs-rail-menu__item::before,
.cs-template .side-rail .cs-rail-menu__item::after,
.cs-template .side-rail .rail-nav__item::before,
.cs-template .side-rail .rail-nav__item::after,
.cs-template .side-rail .mod-menu::before,
.cs-template .side-rail .mod-menu::after,
.cs-template .side-rail .nav::before,
.cs-template .side-rail .nav::after,
.side-rail ul::before,
.side-rail ul::after,
.side-rail li::before,
.side-rail li::after,
.side-rail .cs-rail-menu__item::before,
.side-rail .cs-rail-menu__item::after,
.side-rail .rail-nav__item::before,
.side-rail .rail-nav__item::after,
.side-rail .mod-menu::before,
.side-rail .mod-menu::after,
.side-rail .nav::before,
.side-rail .nav::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Maintain the graphical button effect with finer, minimalist borders. */
.cs-template .side-rail .cs-rail-menu__link,
.cs-template .side-rail .rail-nav__link,
.cs-template .side-rail .mod-menu a,
.cs-template .side-rail .nav a,
.side-rail .cs-rail-menu__link,
.side-rail .rail-nav__link,
.side-rail .mod-menu a,
.side-rail .nav a {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  border: 1px solid #c7d3e1 !important;
  border-radius: 15px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96), 0 2px 6px rgba(18, 43, 91, 0.018) !important;
  box-sizing: border-box !important;
}

/* Hover keeps borders crisp and the same visual language. */
.cs-template .side-rail .cs-rail-menu__link:hover,
.cs-template .side-rail .rail-nav__link:hover,
.cs-template .side-rail .mod-menu a:hover,
.cs-template .side-rail .nav a:hover,
.side-rail .cs-rail-menu__link:hover,
.side-rail .rail-nav__link:hover,
.side-rail .mod-menu a:hover,
.side-rail .nav a:hover {
  border-color: #b2c1d3 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96), 0 3px 8px rgba(18, 43, 91, 0.028) !important;
}

/* Active/selected: defined border, no external orange line. */
.cs-template .side-rail .cs-rail-menu__link.is-active,
.cs-template .side-rail .rail-nav__link.is-active,
.cs-template .side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.cs-template .side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.cs-template .side-rail .mod-menu .active > a,
.cs-template .side-rail .mod-menu .current > a,
.cs-template .side-rail .nav .active > a,
.cs-template .side-rail .nav .current > a,
.cs-template .side-rail .current > a,
.cs-template .side-rail .active > a,
.cs-template .side-rail .mod-menu a[aria-current="page"],
.cs-template .side-rail .nav a[aria-current="page"],
.side-rail .cs-rail-menu__link.is-active,
.side-rail .rail-nav__link.is-active,
.side-rail .cs-rail-menu__item.active > .cs-rail-menu__link,
.side-rail .cs-rail-menu__item.current > .cs-rail-menu__link,
.side-rail .mod-menu .active > a,
.side-rail .mod-menu .current > a,
.side-rail .nav .active > a,
.side-rail .nav .current > a,
.side-rail .current > a,
.side-rail .active > a,
.side-rail .mod-menu a[aria-current="page"],
.side-rail .nav a[aria-current="page"] {
  border: 1px solid #9fb3ca !important;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96), 0 3px 8px rgba(18, 43, 91, 0.028) !important;
  outline: 0 !important;
}

/* Keep any active marker, if used, internal only. */
.cs-template .side-rail .cs-rail-menu__link::before,
.cs-template .side-rail .rail-nav__link::before,
.cs-template .side-rail .mod-menu a::before,
.cs-template .side-rail .nav a::before,
.side-rail .cs-rail-menu__link::before,
.side-rail .rail-nav__link::before,
.side-rail .mod-menu a::before,
.side-rail .nav a::before {
  content: none !important;
  display: none !important;
}
