/**
 * Cloud Win Enterprise ? IDENTITY (client area)
 * Base light 2027 ? Jura ? navy/gold/red ? clipped corners
 * Carrega SEM o stack dark Rackon (sheets dark desligados).
 * Escopo: html[data-theme="enterprise"]
 * S? design ? n?o altera IDs, actions ou fluxo WHMCS.
 */

@import url("https://fonts.googleapis.com/css2?family=Jura:wght@500;600;700&display=swap");

html[data-theme="enterprise"] {
  color-scheme: light;
  --cw-ink: #1A2B4A;
  --cw-muted: #64748B;
  --cw-navy: #2A4578;
  --cw-indigo: #3D5FA0;
  --cw-red: #C8102E;
  --cw-gold: #E8B931;
  --cw-gold-soft: #F6E27A;
  --cw-soft: #F4F6FB;
  --cw-bg: #F4F6FB;
  --cw-surface: #FFFFFF;
  --cw-border: rgba(42, 69, 120, 0.14);
  --cw-shadow: 0 14px 36px rgba(42, 69, 120, 0.08);
  --cw-shadow-lg: 0 22px 48px rgba(42, 69, 120, 0.1);
  --cw-grad-title: linear-gradient(135deg, #2A4578, #3D5FA0);
  --cw-grad-top: linear-gradient(90deg, #C8102E, #E8B931, transparent 78%);
  --cw-grad-btn: linear-gradient(180deg, #3A5A9A 0%, #2A4578 100%);
  --cw-clip: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --cw-clip-sm: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  --cw-clip-btn: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  --cw-font: "Jura", ui-sans-serif, system-ui, sans-serif;
  --rk-bg: #F4F6FB;
  --rk-surface: #FFFFFF;
  --rk-text: #1A2B4A;
  --rk-muted: #64748B;
  --rk-border: rgba(42, 69, 120, 0.14);
  --rk-cyan: #3D5FA0;
  --rk-gold: #E8B931;
  --primary-color: #2A4578;
  --secondary-color: #E8B931;
  --accent-color: #C8102E;
}

/* ??? Base ??? */
html[data-theme="enterprise"] body,
html[data-theme="enterprise"] body.rackon-client {
  font-family: var(--cw-font) !important;
  background: #F8FAFC !important;
  color: #334155 !important;
  color-scheme: light !important;
  background-image:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(47, 58, 143, 0.1), transparent 55%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(232, 185, 49, 0.1), transparent 50%),
    radial-gradient(ellipse 55% 45% at 75% 65%, rgba(200, 16, 46, 0.05), transparent 45%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 48%, #EEF2FF 100%) !important;
  background-attachment: fixed;
}

html[data-theme="enterprise"] body.rackon-client *,
html[data-theme="enterprise"] body.rackon-client .btn,
html[data-theme="enterprise"] body.rackon-client input,
html[data-theme="enterprise"] body.rackon-client select,
html[data-theme="enterprise"] body.rackon-client textarea {
  font-family: var(--cw-font) !important;
}

html[data-theme="enterprise"] body.rackon-client::before,
html[data-theme="enterprise"] body.rackon-client::after,
html[data-theme="enterprise"] #main-body::before,
html[data-theme="enterprise"] #main-body::after,
html[data-theme="enterprise"] .rk-page-hero__smoke,
html[data-theme="enterprise"] .rk-page-hero__grid,
html[data-theme="enterprise"] .rk-float-icon,
html[data-theme="enterprise"] .rk-cloud-layer {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

/* ??? Header / command dock ??? */
html[data-theme="enterprise"] body.rackon-client .cros-navbar,
html[data-theme="enterprise"] body.rackon-client .navbar,
html[data-theme="enterprise"] body.rackon-client header .navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--cw-border) !important;
  border-radius: 0 !important;
  box-shadow: var(--cw-shadow) !important;
  clip-path: none !important; /* dropdowns must not clip */
  position: sticky !important;
  top: 12px !important;
  z-index: 1040 !important;
  margin: 12px auto 0 !important;
  max-width: calc(100% - 24px);
}

html[data-theme="enterprise"] body.rackon-client .cros-navbar::before,
html[data-theme="enterprise"] body.rackon-client .navbar::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--cw-grad-top);
  pointer-events: none;
}

html[data-theme="enterprise"] body.rackon-client .navbar-nav > li > a,
html[data-theme="enterprise"] body.rackon-client .navbar .nav-link {
  color: var(--cw-navy) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-size: 0.78rem !important;
}

html[data-theme="enterprise"] body.rackon-client .navbar-brand img,
html[data-theme="enterprise"] body.rackon-client .logo img {
  filter: none !important;
  -webkit-filter: none !important;
}

html[data-theme="enterprise"] body.rackon-client .dropdown-menu {
  background: #fff !important;
  border: 1.5px solid var(--cw-border) !important;
  box-shadow: var(--cw-shadow-lg) !important;
  border-radius: 0 !important;
  clip-path: var(--cw-clip-sm);
}

html[data-theme="enterprise"] body.rackon-client .dropdown-menu > li > a,
html[data-theme="enterprise"] body.rackon-client .dropdown-item {
  color: #334155 !important;
  font-weight: 600 !important;
}

html[data-theme="enterprise"] body.rackon-client .dropdown-menu > li > a:hover,
html[data-theme="enterprise"] body.rackon-client .dropdown-item:hover {
  background: #FFFBEB !important;
  color: var(--cw-navy) !important;
}

/* ??? Cards / panels (LIGHT identity ? sem header navy s?lido) ??? */
html[data-theme="enterprise"] body.rackon-client .card,
html[data-theme="enterprise"] body.rackon-client .panel,
html[data-theme="enterprise"] body.rackon-client .panel-sidebar,
html[data-theme="enterprise"] body.rackon-client .sidebar .panel,
html[data-theme="enterprise"] body.rackon-client .cap-home-card {
  background: #fff !important;
  border: 1.5px solid var(--cw-border) !important;
  border-radius: 0 !important;
  box-shadow: var(--cw-shadow) !important;
  clip-path: var(--cw-clip);
  overflow: hidden;
  color: #334155 !important;
}

html[data-theme="enterprise"] body.rackon-client .panel-heading,
html[data-theme="enterprise"] body.rackon-client .panel-sidebar > .panel-heading,
html[data-theme="enterprise"] body.rackon-client .sidebar .panel-heading,
html[data-theme="enterprise"] body.rackon-client .card-header,
html[data-theme="enterprise"] body.rackon-client .panel > .panel-heading {
  background: linear-gradient(180deg, #FAFBFF 0%, #F4F6FB 100%) !important;
  color: var(--cw-navy) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--cw-border) !important;
  border-left: 3px solid var(--cw-gold) !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  font-size: 0.72rem !important;
  padding: 0.9rem 1.1rem !important;
  box-shadow: none !important;
}

html[data-theme="enterprise"] body.rackon-client .panel-heading .panel-title,
html[data-theme="enterprise"] body.rackon-client .panel-heading h3,
html[data-theme="enterprise"] body.rackon-client .card-header h3,
html[data-theme="enterprise"] body.rackon-client .card-header .card-title {
  color: var(--cw-navy) !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  margin: 0 !important;
  font-size: inherit !important;
}

html[data-theme="enterprise"] body.rackon-client .panel-body,
html[data-theme="enterprise"] body.rackon-client .card-body {
  background: #fff !important;
  color: #334155 !important;
}

/* ??? Sidebar list / categorias ??? */
html[data-theme="enterprise"] body.rackon-client .sidebar .list-group-item,
html[data-theme="enterprise"] body.rackon-client .panel-sidebar .list-group-item,
html[data-theme="enterprise"] body.rackon-client .sidebar-primary .list-group-item {
  background: #fff !important;
  color: #334155 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(15, 27, 61, 0.06) !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  padding: 0.85rem 1rem !important;
  clip-path: none !important;
}

html[data-theme="enterprise"] body.rackon-client .sidebar .list-group-item:hover,
html[data-theme="enterprise"] body.rackon-client .panel-sidebar .list-group-item:hover {
  background: #FFFBEB !important;
  color: var(--cw-navy) !important;
}

html[data-theme="enterprise"] body.rackon-client .sidebar .list-group-item.active,
html[data-theme="enterprise"] body.rackon-client .panel-sidebar .list-group-item.active,
html[data-theme="enterprise"] body.rackon-client .sidebar-primary .list-group-item.active {
  background: linear-gradient(90deg, rgba(232, 185, 49, 0.18), rgba(232, 185, 49, 0.05)) !important;
  color: var(--cw-navy) !important;
  border-left: 3px solid var(--cw-gold) !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  clip-path: none !important;
}

/* ??? Buttons ??? */
html[data-theme="enterprise"] body.rackon-client .btn-primary,
html[data-theme="enterprise"] body.rackon-client .btn-default.btn-primary,
html[data-theme="enterprise"] body.rackon-client a.btn-primary,
html[data-theme="enterprise"] body.rackon-client .panel-sidebar .btn-primary,
html[data-theme="enterprise"] body.rackon-client .btn-sm.btn-primary {
  background: var(--cw-grad-btn) !important;
  border: 1px solid rgba(232, 185, 49, 0.5) !important;
  color: #fff !important;
  border-radius: 0 !important;
  clip-path: var(--cw-clip-btn);
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  box-shadow: 0 10px 24px rgba(15, 27, 61, 0.18) !important;
}

html[data-theme="enterprise"] body.rackon-client .btn-default,
html[data-theme="enterprise"] body.rackon-client .btn-secondary,
html[data-theme="enterprise"] body.rackon-client .btn-outline,
html[data-theme="enterprise"] body.rackon-client a.btn-default {
  background: #fff !important;
  border: 1.5px solid var(--cw-border) !important;
  color: var(--cw-navy) !important;
  border-radius: 0 !important;
  clip-path: var(--cw-clip-sm);
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

html[data-theme="enterprise"] body.rackon-client .btn-success {
  background: linear-gradient(180deg, #059669, #047857) !important;
  border: 1px solid rgba(5, 150, 105, 0.4) !important;
  color: #fff !important;
  border-radius: 0 !important;
  clip-path: var(--cw-clip-btn);
}

/* ??? Forms ??? */
html[data-theme="enterprise"] body.rackon-client .form-control,
html[data-theme="enterprise"] body.rackon-client input[type="text"],
html[data-theme="enterprise"] body.rackon-client input[type="email"],
html[data-theme="enterprise"] body.rackon-client input[type="password"],
html[data-theme="enterprise"] body.rackon-client input[type="number"],
html[data-theme="enterprise"] body.rackon-client select,
html[data-theme="enterprise"] body.rackon-client textarea {
  background: #fff !important;
  border: 1.5px solid var(--cw-border) !important;
  color: var(--cw-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme="enterprise"] body.rackon-client .form-control:focus {
  border-color: rgba(232, 185, 49, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(232, 185, 49, 0.18) !important;
}

html[data-theme="enterprise"] body.rackon-client .form-control::placeholder,
html[data-theme="enterprise"] body.rackon-client textarea::placeholder {
  color: #94A3B8 !important;
}

/* ??? Home dashboard ??? */
html[data-theme="enterprise"] body.rackon-client .cap-home-hero {
  background: #fff !important;
  border: 1.5px solid var(--cw-border) !important;
  box-shadow: var(--cw-shadow) !important;
  clip-path: var(--cw-clip);
  position: relative;
  overflow: hidden;
}

html[data-theme="enterprise"] body.rackon-client .cap-home-hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--cw-grad-top);
}

html[data-theme="enterprise"] body.rackon-client .cap-home-hero__kicker {
  color: var(--cw-indigo) !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  font-size: 0.72rem !important;
}

html[data-theme="enterprise"] body.rackon-client .cap-home-hero__title {
  color: var(--cw-navy) !important;
  font-weight: 700 !important;
  background: none !important;
  -webkit-text-fill-color: var(--cw-navy) !important;
}

html[data-theme="enterprise"] body.rackon-client .cap-home-hero__icon,
html[data-theme="enterprise"] body.rackon-client .rk-avatar {
  background: linear-gradient(145deg, #EEF2FF, #FFFBEB) !important;
  border: 1.5px solid var(--cw-border) !important;
  box-shadow: none !important;
  filter: none !important;
}

html[data-theme="enterprise"] body.rackon-client .tile.cap-home-tile,
html[data-theme="enterprise"] body.rackon-client .cap-home-tile {
  background: #fff !important;
  border: 1.5px solid var(--cw-border) !important;
  box-shadow: var(--cw-shadow) !important;
  clip-path: var(--cw-clip);
  color: var(--cw-navy) !important;
  position: relative;
  overflow: hidden;
}

html[data-theme="enterprise"] body.rackon-client .tile.cap-home-tile::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cw-gold), transparent);
}

html[data-theme="enterprise"] body.rackon-client .tile .stat,
html[data-theme="enterprise"] body.rackon-client .cap-home-tile .stat {
  color: var(--cw-navy) !important;
  font-weight: 800 !important;
}

html[data-theme="enterprise"] body.rackon-client .tile .title,
html[data-theme="enterprise"] body.rackon-client .cap-home-tile .title {
  color: var(--cw-muted) !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-size: 0.7rem !important;
}

html[data-theme="enterprise"] body.rackon-client .cap-home-shortcut,
html[data-theme="enterprise"] body.rackon-client .quick-shortcut-btn {
  background: #fff !important;
  border: 1.5px solid var(--cw-border) !important;
  color: var(--cw-navy) !important;
  box-shadow: var(--cw-shadow) !important;
  clip-path: var(--cw-clip-sm);
  font-weight: 700 !important;
}

html[data-theme="enterprise"] body.rackon-client .cap-home-shortcut:hover,
html[data-theme="enterprise"] body.rackon-client .quick-shortcut-btn:hover {
  border-color: rgba(232, 185, 49, 0.55) !important;
  background: #FFFBEB !important;
}

html[data-theme="enterprise"] body.rackon-client .cap-home-section__title,
html[data-theme="enterprise"] body.rackon-client .cap-home-card__title {
  color: var(--cw-navy) !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
}

/* ??? Product details ??? */
html[data-theme="enterprise"] body.rackon-client .cap-pd-chip,
html[data-theme="enterprise"] body.rackon-client .cw-product-meta-bar--nova span,
html[data-theme="enterprise"] body.rackon-client .cw-product-meta-bar--nova .badge {
  background: #F1F5F9 !important;
  border: 1px solid var(--cw-border) !important;
  color: var(--cw-navy) !important;
  -webkit-text-fill-color: var(--cw-navy) !important;
  border-radius: 0 !important;
  clip-path: var(--cw-clip-sm);
  font-weight: 600 !important;
}

html[data-theme="enterprise"] body.rackon-client .product-support-card,
html[data-theme="enterprise"] body.rackon-client .support-item {
  background: #fff !important;
  border: 1.5px solid var(--cw-border) !important;
  color: #334155 !important;
  box-shadow: var(--cw-shadow) !important;
  clip-path: var(--cw-clip);
}

html[data-theme="enterprise"] body.rackon-client .product-support-card .card-header h4,
html[data-theme="enterprise"] body.rackon-client .support-item h5 {
  color: var(--cw-navy) !important;
}

html[data-theme="enterprise"] body.rackon-client .cw-panel-priority--nova .nav-link.active {
  background: linear-gradient(90deg, rgba(232, 185, 49, 0.2), transparent) !important;
  color: var(--cw-navy) !important;
  border-left: 3px solid var(--cw-gold) !important;
}

html[data-theme="enterprise"] body.rackon-client #cw-panel-status,
html[data-theme="enterprise"] body.rackon-client #cw-panel-status.cw-ok {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem !important;
  background: #ECFDF5 !important;
  border: 1.5px solid rgba(5, 150, 105, 0.35) !important;
  color: #047857 !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  clip-path: var(--cw-clip-sm);
  animation: cw-ready-in 0.45s ease, cw-ready-pulse 2.4s ease-in-out infinite;
}

@keyframes cw-ready-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cw-ready-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
}

html[data-theme="enterprise"] body.rackon-client .cw-btn-reload-panel,
html[data-theme="enterprise"] body.rackon-client .module-client-area .btn:has(.fa-sync),
html[data-theme="enterprise"] body.rackon-client .module-client-area .btn:has(.fa-redo),
html[data-theme="enterprise"] body.rackon-client .module-client-area .btn:has(.fa-refresh) {
  background: var(--cw-grad-btn) !important;
  border: 1px solid rgba(232, 185, 49, 0.65) !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  clip-path: var(--cw-clip-btn);
  box-shadow: 0 14px 32px rgba(15, 27, 61, 0.22) !important;
}

html[data-theme="enterprise"] body.rackon-client .module-client-area .btn {
  background: #fff !important;
  border: 1.5px solid var(--cw-border) !important;
  color: var(--cw-navy) !important;
  clip-path: var(--cw-clip-sm);
  font-weight: 700 !important;
}

html[data-theme="enterprise"] body.rackon-client #vmbIframe,
html[data-theme="enterprise"] body.rackon-client .cw-panel-aura-wrap,
html[data-theme="enterprise"] body.rackon-client .module-client-area {
  background: #fff !important;
  border: 1.5px solid var(--cw-border) !important;
  box-shadow: var(--cw-shadow) !important;
}

/* Iframe nunca herda moldura/borda do container */
html[data-theme="enterprise"] body.rackon-client #vmbIframe,
html[data-theme="enterprise"] body.rackon-client iframe#vmbIframe {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  clip-path: none !important;
  padding: 0 !important;
}

html[data-theme="enterprise"] body.rackon-client .cw-panel-aura-lights {
  display: none !important;
}

/* ??? Tables ??? */
html[data-theme="enterprise"] body.rackon-client .table,
html[data-theme="enterprise"] body.rackon-client .table > thead > tr > th {
  background: #FAFBFF !important;
  color: var(--cw-navy) !important;
  border-color: var(--cw-border) !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-size: 0.72rem !important;
}

html[data-theme="enterprise"] body.rackon-client .table > tbody > tr > td {
  background: #fff !important;
  color: #334155 !important;
  border-color: rgba(15, 27, 61, 0.08) !important;
}

/* ??? Tickets / KB ??? */
html[data-theme="enterprise"] body.rackon-client.support-tickets-page .panel,
html[data-theme="enterprise"] body.rackon-client.support-tickets-page .card,
html[data-theme="enterprise"] body.rackon-client.support-tickets-page .form-control,
html[data-theme="enterprise"] body.rackon-client.support-tickets-page textarea,
html[data-theme="enterprise"] body.rackon-client .markdown-editor,
html[data-theme="enterprise"] body.rackon-client .md-header {
  background: #fff !important;
  color: var(--cw-ink) !important;
  border-color: var(--cw-border) !important;
}

/* ??? Footer ??? */
html[data-theme="enterprise"] body.rackon-client .sec.footer,
html[data-theme="enterprise"] body.rackon-client .sfooter,
html[data-theme="enterprise"] body.rackon-client .block-footer,
html[data-theme="enterprise"] body.rackon-client #footer,
html[data-theme="enterprise"] body.rackon-client .cros-footer {
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF2FF 100%) !important;
  border-top: 1px solid var(--cw-border) !important;
  color: #64748B !important;
  box-shadow: none !important;
}

html[data-theme="enterprise"] body.rackon-client .sfooter .footer-last,
html[data-theme="enterprise"] body.rackon-client .footer-copyright,
html[data-theme="enterprise"] body.rackon-client .footer-copyright * {
  color: #64748B !important;
  -webkit-text-fill-color: #64748B !important;
}

html[data-theme="enterprise"] body.rackon-client .sfooter a,
html[data-theme="enterprise"] body.rackon-client .footer a {
  color: var(--cw-navy) !important;
}

/* ??? Page titles ??? */
html[data-theme="enterprise"] body.rackon-client .header-lined h1,
html[data-theme="enterprise"] body.rackon-client .page-header h1,
html[data-theme="enterprise"] body.rackon-client h1 {
  color: var(--cw-navy) !important;
  font-weight: 700 !important;
  font-family: var(--cw-font) !important;
}

html[data-theme="enterprise"] body.rackon-client .breadcrumb {
  background: transparent !important;
  color: var(--cw-muted) !important;
}

/* ??? Alerts ??? */
html[data-theme="enterprise"] body.rackon-client .alert-info {
  background: #EEF2FF !important;
  border: 1px solid rgba(47, 58, 143, 0.2) !important;
  color: #1E293B !important;
}

html[data-theme="enterprise"] body.rackon-client .alert-warning {
  background: #FFFBEB !important;
  border: 1px solid rgba(232, 185, 49, 0.35) !important;
  color: #92400E !important;
}

html[data-theme="enterprise"] body.rackon-client .alert-success {
  background: #ECFDF5 !important;
  border: 1px solid rgba(5, 150, 105, 0.3) !important;
  color: #065F46 !important;
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="enterprise"] body.rackon-client #cw-panel-status {
    animation: none !important;
  }
}

/* ??? Layout essentials (antes vinham do rackon-whmcs-ext dark) ??? */
html[data-theme="enterprise"] body.rackon-client .cap-home-page {
  padding-bottom: 2rem;
}

html[data-theme="enterprise"] body.rackon-client .cap-home-hero__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  position: relative;
  z-index: 1;
}

html[data-theme="enterprise"] body.rackon-client .cap-home-hero__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

html[data-theme="enterprise"] body.rackon-client .cap-home-tiles-swiper {
  overflow: hidden !important;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

html[data-theme="enterprise"] body.rackon-client .tile.cap-home-tile {
  padding: 1.25rem 1.1rem;
  min-height: 110px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="enterprise"] body.rackon-client .tile.cap-home-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 27, 61, 0.1) !important;
}

html[data-theme="enterprise"] body.rackon-client .cap-home-shortcuts {
  /* Nao usar display:grid ? quebra .row/.col do Bootstrap e corta o texto */
  display: block;
}

html[data-theme="enterprise"] body.rackon-client .cap-home-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.15rem 0.85rem;
  text-decoration: none !important;
  text-align: center;
  min-height: 110px;
  white-space: normal;
  overflow: visible;
}

html[data-theme="enterprise"] body.rackon-client .cap-home-shortcut span {
  display: block;
  width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cw-navy) !important;
}

html[data-theme="enterprise"] body.rackon-client .cap-home-shortcut i {
  font-size: 1.5rem;
  color: var(--cw-indigo) !important;
}

/* Font Awesome Duotone (fad) -> Free Solid fallback */
html[data-theme="enterprise"] body.rackon-client .fad,
html[data-theme="enterprise"] body.rackon-client .fal,
html[data-theme="enterprise"] body.rackon-client .fat {
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
  font-weight: 900 !important;
}

html[data-theme="enterprise"] body.rackon-client .fad::before,
html[data-theme="enterprise"] body.rackon-client .fal::before {
  font-weight: 900 !important;
}

/* Page banner / breadcrumb ? light (sem foto dark de rack) */
html[data-theme="enterprise"] body.rackon-client .hero-bg-wrap.small-header,
html[data-theme="enterprise"] body.rackon-client .header-banner-styled,
html[data-theme="enterprise"] body.rackon-client .small-header.header-banner-styled {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F6FB 100%) !important;
  background-image:
    radial-gradient(700px 280px at 8% 0%, rgba(47, 58, 143, 0.06), transparent 60%),
    radial-gradient(560px 240px at 92% 20%, rgba(232, 185, 49, 0.08), transparent 55%),
    linear-gradient(180deg, #FFFFFF, #F4F6FB) !important;
  border-bottom: 1px solid var(--cw-border) !important;
  color: var(--cw-navy) !important;
  min-height: auto !important;
  padding: 1.75rem 0 1.35rem !important;
}

html[data-theme="enterprise"] body.rackon-client .hero-bg-wrap.small-header.inverse,
html[data-theme="enterprise"] body.rackon-client .header-banner-styled.inverse,
html[data-theme="enterprise"] body.rackon-client .header-banner-styled.bg-opacity {
  background-image:
    radial-gradient(700px 280px at 8% 0%, rgba(47, 58, 143, 0.06), transparent 60%),
    linear-gradient(180deg, #FFFFFF, #F4F6FB) !important;
}

html[data-theme="enterprise"] body.rackon-client .hero-bg-wrap::before,
html[data-theme="enterprise"] body.rackon-client .header-banner-styled::before,
html[data-theme="enterprise"] body.rackon-client .header-banner-styled::after {
  display: none !important;
  opacity: 0 !important;
}

html[data-theme="enterprise"] body.rackon-client .page-title h1,
html[data-theme="enterprise"] body.rackon-client .header-lined h1,
html[data-theme="enterprise"] body.rackon-client .small-header h1,
html[data-theme="enterprise"] body.rackon-client .page-title .breadcrumb,
html[data-theme="enterprise"] body.rackon-client .page-title .breadcrumb a,
html[data-theme="enterprise"] body.rackon-client .page-title .breadcrumb li {
  color: var(--cw-navy) !important;
  -webkit-text-fill-color: var(--cw-navy) !important;
  text-shadow: none !important;
}

html[data-theme="enterprise"] body.rackon-client .page-title .breadcrumb > li + li::before {
  color: var(--cw-muted) !important;
}

html[data-theme="enterprise"] body.rackon-client .tile .icon i,
html[data-theme="enterprise"] body.rackon-client .cap-home-tile .icon i {
  color: var(--cw-indigo) !important;
  font-size: 1.6rem !important;
}

html[data-theme="enterprise"] body.rackon-client .cap-home-btn-search,
html[data-theme="enterprise"] body.rackon-client .cap-home-btn-primary,
html[data-theme="enterprise"] body.rackon-client .btn-success {
  background: var(--cw-grad-btn) !important;
  border: 1px solid rgba(232, 185, 49, 0.45) !important;
  color: #fff !important;
  border-radius: 0 !important;
  clip-path: var(--cw-clip-btn);
}

html[data-theme="enterprise"] body.rackon-client .cw-btn-reload-panel,
html[data-theme="enterprise"] body.rackon-client a.btn:has(.fa-sync),
html[data-theme="enterprise"] body.rackon-client button:has(.fa-sync),
html[data-theme="enterprise"] body.rackon-client .btn:has(.fa-redo),
html[data-theme="enterprise"] body.rackon-client .btn:has(.fa-refresh) {
  background: var(--cw-grad-btn) !important;
  border: 1px solid rgba(232, 185, 49, 0.65) !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  clip-path: var(--cw-clip-btn);
  box-shadow: 0 14px 32px rgba(15, 27, 61, 0.22) !important;
}

html[data-theme="enterprise"] body.rackon-client .sidebar .panel-sidebar,
html[data-theme="enterprise"] body.rackon-client .sidebar .panel {
  margin-bottom: 1.15rem;
}

html[data-theme="enterprise"] body.rackon-client .panel-sidebar .panel-body {
  padding: 1rem 1.1rem !important;
}

html[data-theme="enterprise"] body.rackon-client .panel-sidebar .btn {
  width: 100%;
  margin-top: 0.65rem;
}

html[data-theme="enterprise"] body.rackon-client .primary-content,
html[data-theme="enterprise"] body.rackon-client #main-body {
  background: transparent !important;
}

html[data-theme="enterprise"] body.rackon-client .header-lined {
  border-bottom: 0 !important;
  margin-bottom: 1.25rem;
}
