/* ==========================================================================
   LOFA CODE - Client portal theme layer
   Loaded after the stock theme stylesheet (see theme functions.php).
   ========================================================================== */

:root {
  --lc-navy: #1f285b;
  --lc-navy-900: #151c44;
  --lc-royal: #3f64af;
  --lc-royal-700: #34549a;
  --lc-royal-50: #eef3fb;
  --lc-royal-100: #dde7f7;
  --lc-light: #70aedf;
  --lc-bg: #f4f6fa;
  --lc-surface-2: #f8f9fc;
  --lc-border: #e2e7f0;
  --lc-border-strong: #cfd6e3;
  --lc-text: #1d2436;
  --lc-text-2: #4a5470;
  --lc-muted: #6b7591;
  --lc-radius: 6px;
  --lc-radius-lg: 8px;
  --lc-ring: 0 0 0 3px rgba(63, 100, 175, 0.18);
  --lc-chamfer: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

body.customers {
  background: var(--lc-bg);
  color: var(--lc-text-2);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.customers #wrapper {
  flex: 1 0 auto;
}

body.customers a {
  color: var(--lc-royal);
}

body.customers a:hover,
body.customers a:focus {
  color: var(--lc-royal-700);
}

body.customers h1,
body.customers h2,
body.customers h3,
body.customers h4 {
  color: var(--lc-text);
  letter-spacing: -0.01em;
}

/* ---------- Header / navigation ---------- */
body.customers .navbar.header {
  background: #fff;
  border: 0;
  border-top: 3px solid var(--lc-navy);
  border-bottom: 1px solid var(--lc-border);
  border-radius: 0;
  box-shadow: none;
  min-height: 66px;
  margin-bottom: 0;
}

body.customers .navbar.header .navbar-brand {
  height: 66px;
  padding: 18px 15px;
  display: flex;
  align-items: center;
}

body.customers .navbar.header .navbar-brand img,
body.customers .navbar.header .logo img {
  height: 28px;
  width: auto;
  max-width: 260px;
}

body.customers .navbar.header .logo-text {
  color: var(--lc-navy);
  font-weight: 700;
  letter-spacing: 0.16em;
}

body.customers .navbar-default .navbar-nav > li > a {
  color: var(--lc-text-2);
  font-weight: 500;
  padding-top: 23px;
  padding-bottom: 21px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

body.customers .navbar-default .navbar-nav > li > a:hover,
body.customers .navbar-default .navbar-nav > li > a:focus {
  color: var(--lc-navy);
  background: transparent;
}

body.customers .navbar-default .navbar-nav > li.active > a,
body.customers .navbar-default .navbar-nav > li.active > a:hover,
body.customers .navbar-default .navbar-nav > li.active > a:focus {
  color: var(--lc-royal);
  background: transparent;
  border-bottom-color: var(--lc-royal);
}

/* Login call-to-action in the navigation (stock theme renders it as a button) */
body.customers .navbar-default .navbar-nav > li.customers-nav-item-login > a {
  background: var(--lc-royal) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--lc-radius);
  margin: 15px 0 0 8px;
  padding: 8px 16px;
  font-weight: 600;
}

body.customers .navbar-default .navbar-nav > li.customers-nav-item-login > a:hover,
body.customers .navbar-default .navbar-nav > li.customers-nav-item-login > a:focus {
  background: var(--lc-royal-700) !important;
}

body.customers .navbar-default .navbar-toggle {
  margin-top: 16px;
  border-color: var(--lc-border);
  border-radius: var(--lc-radius);
}

body.customers .navbar-default .navbar-toggle .icon-bar {
  background: var(--lc-navy);
}

body.customers .client-profile-image-small {
  border: 2px solid var(--lc-royal-100);
}

/* Sub menu (files / calendar) */
body.customers .customer-top-submenu {
  margin-top: 20px;
}

body.customers .customer-top-submenu li a {
  color: var(--lc-text-2);
  font-weight: 500;
}

body.customers .customer-top-submenu li a:hover {
  color: var(--lc-royal);
}

/* ---------- Content ---------- */
body.customers #content {
  padding-top: 24px;
  padding-bottom: 40px;
}

body.customers .panel_s {
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  box-shadow: 0 1px 2px rgba(20, 28, 64, 0.05);
}

body.customers .panel_s > .panel-body {
  border: 0;
  background: transparent;
}

body.customers .panel-heading {
  background: var(--lc-surface-2);
  border-bottom: 1px solid var(--lc-border);
  color: var(--lc-text);
  font-weight: 600;
}

/* Buttons */
body.customers .btn {
  border-radius: var(--lc-radius);
  font-weight: 600;
  box-shadow: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

body.customers .btn-primary,
body.customers .btn-info {
  background: var(--lc-royal);
  border-color: var(--lc-royal);
  color: #fff;
}

body.customers .btn-primary:hover,
body.customers .btn-primary:focus,
body.customers .btn-primary:active,
body.customers .btn-info:hover,
body.customers .btn-info:focus {
  background: var(--lc-royal-700);
  border-color: var(--lc-royal-700);
  color: #fff;
}

body.customers .btn-default {
  background: #fff;
  border-color: var(--lc-border-strong);
  color: var(--lc-text-2);
}

body.customers .btn-default:hover,
body.customers .btn-default:focus {
  background: var(--lc-surface-2);
  color: var(--lc-navy);
}

body.customers .btn:focus-visible {
  outline: 0;
  box-shadow: var(--lc-ring);
}

/* Forms */
body.customers .form-control,
body.customers .bootstrap-select > .dropdown-toggle.btn-default {
  border-color: var(--lc-border-strong);
  border-radius: var(--lc-radius);
  box-shadow: none;
  color: var(--lc-text);
}

body.customers .form-control:focus,
body.customers .bootstrap-select.open > .dropdown-toggle {
  border-color: var(--lc-royal) !important;
  box-shadow: var(--lc-ring) !important;
}

body.customers label,
body.customers .control-label {
  color: var(--lc-text-2);
  font-weight: 500;
}

body.customers .checkbox input[type="checkbox"]:checked + label::before {
  background-color: var(--lc-royal);
  border-color: var(--lc-royal);
}

/* Tables */
body.customers .table > thead > tr > th {
  background: var(--lc-surface-2);
  color: var(--lc-muted);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--lc-border) !important;
}

body.customers .table > tbody > tr > td {
  border-top-color: #edf0f6;
  vertical-align: middle;
}

body.customers .dataTables_wrapper .table-responsive,
body.customers .table-responsive {
  border: 0;
}

body.customers .pagination > .active > a,
body.customers .pagination > .active > a:hover,
body.customers .pagination > .active > span {
  background: var(--lc-royal);
  border-color: var(--lc-royal);
}

body.customers .pagination > li > a {
  color: var(--lc-text-2);
}

/* Labels / alerts / tabs */
body.customers .label {
  border-radius: 4px;
  font-weight: 600;
}

body.customers .alert {
  border-radius: var(--lc-radius-lg);
  border-left-width: 4px;
}

body.customers .alert-info {
  background: var(--lc-royal-50);
  border-color: var(--lc-royal-100);
  border-left-color: var(--lc-royal);
  color: #2c4780;
}

body.customers .nav-tabs > li.active > a,
body.customers .nav-tabs > li.active > a:hover,
body.customers .nav-tabs > li.active > a:focus {
  color: var(--lc-royal);
  border-bottom-color: var(--lc-royal);
}

body.customers .progress-bar {
  background-color: var(--lc-royal);
}

body.customers .dropdown-menu {
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  box-shadow: 0 8px 24px rgba(20, 28, 64, 0.1);
}

body.customers .dropdown-menu > li > a:hover,
body.customers .dropdown-menu > li > a:focus {
  background: var(--lc-royal-50);
  color: var(--lc-navy);
}

/* ---------- Login ---------- */
body.customers.customers_login #content,
body.customers .login-form {
  padding-bottom: 20px;
}

body.customers .lc-login-head .login-heading {
  margin-bottom: 6px !important;
  font-size: 26px;
  font-weight: 700;
  color: var(--lc-text);
}

body.customers .lc-login-sub {
  margin: 0 0 22px;
  color: var(--lc-muted);
  font-size: 13px;
}

body.customers .login-form .panel_s {
  position: relative;
  overflow: hidden;
}

body.customers .login-form .panel_s::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lc-navy) 0 60%, var(--lc-royal) 60% 88%, var(--lc-light) 88%);
}

body.customers .login-form .form-control {
  height: 42px;
}

/* ---------- Knowledge base search banner ---------- */
body.customers .kb-search-jumbotron,
body.customers .jumbotron.kb-search-jumbotron {
  background: var(--lc-navy);
  color: #fff;
  border-radius: 0;
  margin-bottom: 0;
}

body.customers .kb-search-jumbotron h1,
body.customers .kb-search-jumbotron h2,
body.customers .kb-search-jumbotron .kb-search-heading {
  color: #fff;
}

/* ---------- Footer ---------- */
body.customers .footer.lc-footer {
  flex-shrink: 0;
  background: var(--lc-navy);
  color: #b9c3e3;
  border-top: 0;
  padding: 22px 0;
  margin-top: 0;
}

body.customers .lc-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

body.customers .lc-footer__brand {
  display: flex;
  flex-direction: column;
}

body.customers .lc-footer__name {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
}

body.customers .lc-footer__tagline {
  color: var(--lc-light);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

body.customers .lc-footer__meta {
  font-size: 12.5px;
}

body.customers .lc-footer__meta a {
  color: #dbe3f7;
}

body.customers .lc-footer__meta a:hover {
  color: #fff;
}

body.customers .lc-footer__sep {
  margin: 0 6px;
  opacity: 0.6;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  /* Align the logo with the nav items (stock header is taller than the brand box) */
  body.customers .navbar.header .navbar-brand {
    height: 85px;
  }
}

@media (max-width: 767px) {
  body.customers .navbar.header .navbar-brand img,
  body.customers .navbar.header .logo img {
    height: 22px;
    max-width: 200px;
  }

  body.customers .navbar-default .navbar-nav > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 0;
  }

  body.customers .navbar-default .navbar-collapse {
    border-top-color: var(--lc-border);
  }

  body.customers .lc-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  body.customers .table-responsive,
  body.customers .dataTables_wrapper {
    overflow-x: auto;
  }
}

/* Phase 5: Bootstrap 3 fixes the container at 750px from 768px; with a vertical
   scrollbar that is wider than the viewport (12px page overflow on native pages). */
@media (min-width: 768px) and (max-width: 991px) {
  body.customers .container { width: auto; max-width: 750px; }
}
