/* Enterprise client UI layer: mobile-first enhancements without replacing core theme */
:root {
  --client-bg: #eef2f7;
  --client-surface: #ffffff;
  --client-surface-muted: #f8fafc;
  --client-text: #0f172a;
  --client-text-muted: #475569;
  --client-border: #dbe3ee;
  --client-primary: #0f4ea8;
  --client-primary-strong: #083d87;
  --client-accent: #14b8a6;
  --client-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08);
  --client-shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
}

html,
body {
  background: radial-gradient(circle at 0% 0%, #f4f8ff 0%, #eef2f7 45%, #e8edf4 100%);
}

body.customers.enterprise-client-ui {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--client-text);
}

body.customers.enterprise-client-ui #wrapper {
  min-height: 100vh;
  margin-top: 92px;
}

body.customers.enterprise-client-ui #content {
  padding-bottom: 96px;
}

body.customers.enterprise-client-ui .header.navbar {
  border: 0;
  border-bottom: 1px solid var(--client-border);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(12, 27, 45, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1090;
  min-height: 92px;
}

body.customers.enterprise-client-ui .header .navbar-brand.logo img,
body.customers.enterprise-client-ui .header .navbar-brand.logo svg {
  max-height: 100px;
}

body.customers.enterprise-client-ui .navbar-default .navbar-nav > li > a {
  color: #27405f !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.customers.enterprise-client-ui .navbar-default .navbar-nav > .active > a,
body.customers.enterprise-client-ui .navbar-default .navbar-nav > li > a:hover,
body.customers.enterprise-client-ui .navbar-default .navbar-nav > li > a:focus {
  color: #0f4ea8 !important;
  background: #f4f8ff;
}

body.customers.enterprise-client-ui .header .client-profile-image-small {
  border: 2px solid #c2d4ec;
  width: 36px;
  height: 36px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

body.customers.enterprise-client-ui .customers-nav-item-profile > a {
  padding: 14px 12px;
  background: #eef4fb;
  border-radius: 999px;
  margin-top: 8px;
}

body.customers.enterprise-client-ui .customers-nav-item-profile > a:hover,
body.customers.enterprise-client-ui .customers-nav-item-profile > a:focus {
  background: #e4eef9;
}

.enterprise-sidebar {
  display: none;
}

.enterprise-sidebar-inner {
  padding: 16px 14px 26px;
}

.enterprise-sidebar-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5b708d;
  margin: 8px 10px 10px;
}

.enterprise-sidebar-title-secondary {
  margin-top: 20px;
}

.enterprise-nav-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.enterprise-nav-tree-item {
  position: relative;
  margin-bottom: 3px;
}

.enterprise-nav-tree-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 10px 11px;
  color: #1f334f;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid transparent;
}

.enterprise-nav-tree-link:hover,
.enterprise-nav-tree-link:focus {
  text-decoration: none;
  background: #f8fbff;
  border-color: #d8e3f2;
  color: #0f4ea8;
}

.enterprise-nav-tree-item.is-active .enterprise-nav-tree-link {
  background: linear-gradient(135deg, #0f4ea8 0%, #0b438f 100%);
  border-color: #0a4289;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 78, 168, 0.26);
}

.enterprise-nav-tree-icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex: 0 0 18px;
}

.enterprise-nav-tree-account .enterprise-nav-tree-link {
  padding-left: 16px;
}

body.customers.enterprise-client-ui .panel_s,
body.customers.enterprise-client-ui .panel,
body.customers.enterprise-client-ui .card,
body.customers.enterprise-client-ui .table,
body.customers.enterprise-client-ui .well {
  border: 1px solid var(--client-border);
  box-shadow: var(--client-shadow-sm);
  border-radius: 14px;
  background: var(--client-surface);
}

body.customers.enterprise-client-ui .panel_s .panel-body,
body.customers.enterprise-client-ui .panel .panel-body,
body.customers.enterprise-client-ui .card .card-body {
  background: transparent;
}

body.customers.enterprise-client-ui .btn,
body.customers.enterprise-client-ui .btn-default,
body.customers.enterprise-client-ui .btn-primary {
  border-radius: 10px;
  font-weight: 600;
}

body.customers.enterprise-client-ui .btn-primary,
body.customers.enterprise-client-ui .btn-info,
body.customers.enterprise-client-ui .btn-success {
  background: linear-gradient(135deg, var(--client-primary) 0%, var(--client-primary-strong) 100%);
  border-color: var(--client-primary-strong);
}

body.customers.enterprise-client-ui .btn-primary:hover,
body.customers.enterprise-client-ui .btn-info:hover,
body.customers.enterprise-client-ui .btn-success:hover {
  filter: brightness(1.05);
}

body.customers.enterprise-client-ui .submenu.customer-top-submenu {
  float: none;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 20px;
  padding: 0;
}

body.customers.enterprise-client-ui .submenu.customer-top-submenu li {
  margin: 0;
}

body.customers.enterprise-client-ui .submenu.customer-top-submenu li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--client-border);
  background: var(--client-surface-muted);
  color: var(--client-text) !important;
  font-size: 14px;
  font-weight: 600;
}

body.customers.enterprise-client-ui .footer {
  background: transparent;
  border-top: 0;
  color: var(--client-text-muted);
  padding: 16px 0 110px;
}

.enterprise-mobile-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(11, 44, 93, 0.14);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--client-shadow-lg);
  backdrop-filter: blur(8px);
}

.enterprise-mobile-nav-link {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 14px;
  color: #1f334f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.2s ease;
}

.enterprise-mobile-nav-link i {
  font-size: 17px;
  color: #3f5674;
}

.enterprise-mobile-nav-link.is-active,
.enterprise-mobile-nav-link:hover,
.enterprise-mobile-nav-link:focus {
  background: linear-gradient(165deg, #0f4ea8 0%, #083d87 100%);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.enterprise-mobile-nav-link.is-active i,
.enterprise-mobile-nav-link:hover i,
.enterprise-mobile-nav-link:focus i {
  color: #ffffff;
}

.enterprise-mobile-nav-link.is-cta {
  background: linear-gradient(135deg, #13bfa7 0%, #0f9b89 100%);
  color: #ffffff;
}

.enterprise-mobile-nav-link.is-cta i {
  color: #ffffff;
}

.enterprise-mobile-nav-link.is-cta:hover,
.enterprise-mobile-nav-link.is-cta:focus {
  background: linear-gradient(135deg, #0f9b89 0%, #0a8576 100%);
}

@media (max-width: 991px) {
  body.customers.enterprise-client-ui .header .navbar-collapse {
    background: #ffffff;
    border-top: 1px solid var(--client-border);
    max-height: calc(100vh - 92px);
  }

  body.customers.enterprise-client-ui .header .navbar-nav {
    margin: 8px -15px 12px;
  }

  body.customers.enterprise-client-ui .header .navbar-nav > li > a {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

@media (min-width: 992px) {
  body.customers.enterprise-client-ui .header > .container {
    width: auto;
    max-width: none;
    padding-left: 24px;
    padding-right: 22px;
  }

  body.customers.enterprise-client-ui .header .navbar-header {
    position: absolute;
    top: 0;
    left: 24px;
    height: 92px;
    display: flex;
    align-items: center;
    z-index: 1093;
  }

  body.customers.enterprise-client-ui .header .navbar-brand.logo {
    display: block !important;
    float: none;
    margin-right: 0;
    padding: 9px 0;
    line-height: 1;
  }

  body.customers.enterprise-client-ui .header .navbar-brand.logo img,
  body.customers.enterprise-client-ui .header .navbar-brand.logo svg {
    max-height: 74px;
    width: auto;
    max-width: 280px;
  }

  body.customers.enterprise-client-ui #wrapper {
    padding-left: 286px;
  }

  body.customers.enterprise-client-ui #content {
    padding-bottom: 36px;
    padding-top: 12px;
  }

  body.customers.enterprise-client-ui #content > .container {
    width: auto;
    max-width: none;
    padding-left: 26px;
    padding-right: 26px;
  }

  body.customers.enterprise-client-ui .footer {
    padding-bottom: 26px;
    padding-left: 280px;
  }

  .enterprise-sidebar {
    display: block;
    position: fixed;
    top: 92px;
    left: 0;
    width: 286px;
    height: calc(100vh - 92px);
    background: #ffffff;
    border-right: 1px solid var(--client-border);
    box-shadow: 8px 0 26px rgba(15, 23, 42, 0.04);
    overflow-y: auto;
    z-index: 1082;
  }

  body.customers.enterprise-client-ui #theme-navbar-collapse .navbar-nav > li:not(.customers-nav-item-profile) {
    display: none;
  }

  body.customers.enterprise-client-ui .header .navbar-collapse {
    display: block !important;
    border-top: 0;
    box-shadow: none;
    margin-left: 300px;
  }

  body.customers.enterprise-client-ui .header .navbar-nav.navbar-right {
    margin-right: 0;
  }

  body.customers.enterprise-client-ui .header .navbar-brand {
    height: 92px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .enterprise-mobile-nav {
    display: none;
  }
}
