/* Hardware Haus Official Brand Theme (https://www.hardwarehaus.com.pg/) */
:root,
[data-theme="light"] {
  --hhl-blue: #293994;
  --hhl-blue-dark: #1E2A70;
  --hhl-blue-tint: #F4F6FB;
  --hhl-orange: #F88120;
  --hhl-orange-dark: #D96B12;
  --hhl-ink: #161616;
  --hhl-muted: #4A4A4A;
  --hhl-hairline: #D8DCE6;

  --primary: #293994;
  --primary-color: #293994;
  --btn-primary: #293994;
  --text-color: #161616;
  --text-muted: #4A4A4A;
  --border-color: #D8DCE6;
}

/* Top Navbar: Hardware Haus Royal Blue (#293994) with 1px bottom border */
header.navbar {
  background-color: #293994 !important;
  border-bottom: 1px solid #1E2A70 !important;
  min-height: 54px !important;
}

header.navbar .navbar-brand,
header.navbar .nav-link,
header.navbar #navbar-breadcrumbs a,
header.navbar #navbar-breadcrumbs li.disabled a {
  color: #FFFFFF !important;
  font-weight: 500;
}

header.navbar #navbar-breadcrumbs li a::before {
  color: #A7AFD9 !important;
}

/* Official Hardware Haus Brand Badge in Navbar */
header.navbar .navbar-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

header.navbar .navbar-brand .app-logo {
  max-height: 34px !important;
  width: auto !important;
  background: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
}

header.navbar .navbar-brand::after {
  content: "HARDWARE HAUS CRM";
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background-color: #F88120;
  color: #161616;
  padding: 3px 8px;
  border-radius: 3px;
}

/* Search Bar in Navbar */
header.navbar .search-bar .awesomplete input {
  background-color: #FFFFFF !important;
  color: #161616 !important;
  border: 1px solid #1E2A70 !important;
}

/* Primary Buttons: Hardware Haus Royal Blue (#293994) */
.btn.btn-primary {
  background-color: #293994 !important;
  border: 1px solid #1E2A70 !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background-color: #1E2A70 !important;
  color: #FFFFFF !important;
}

/* Pronto Action Buttons: Hardware Haus Safety Orange (#F88120) with #161616 text (7.1:1 WCAG AA contrast) */
.btn-hhl-orange {
  background-color: #F88120 !important;
  border: 1px solid #D96B12 !important;
  color: #161616 !important;
  font-weight: 600 !important;
}

.btn-hhl-orange:hover,
.btn-hhl-orange:focus {
  background-color: #E06F12 !important;
  color: #161616 !important;
}

/* Surface Discipline: keep workspace widgets, shortcuts, spacers, and link cards completely borderless */
.widget,
.widget.spacer,
.widget.shortcut-widget-box,
.widget.links-widget-box,
.layout-main-section {
  border: none !important;
  box-shadow: none !important;
}

/* Hide ERPNext "Let's Set Up / Onboarding" workspace blocks across all workspaces */
.widget.onboarding-widget-box,
.onboarding-widget-box {
  display: none !important;
}

.form-tabs-list .nav-item .nav-link.active {
  color: #293994 !important;
  border-bottom: 2px solid #F88120 !important;
  font-weight: 600 !important;
}

/* Pronto Live Integration Status Banner */
.hhl-pronto-banner {
  background-color: #F4F6FB;
  border: 1px solid #D8DCE6;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hhl-pronto-banner-title {
  font-size: 13px;
  font-weight: 700;
  color: #293994;
  letter-spacing: 0.02em;
}

.hhl-pronto-banner-meta {
  font-size: 12.5px;
  color: #161616;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hhl-pronto-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid #D8DCE6;
  background-color: #FFFFFF;
  color: #161616;
}

.hhl-pronto-badge.status-staged {
  background-color: #FFF4E8;
  border-color: #F88120;
  color: #161616;
}

.hhl-pronto-badge.status-invoiced {
  background-color: #EAF7EE;
  border-color: #2E7D32;
  color: #144A18;
}
