:root {
  --sales-hub-sidebar-width: 260px;
  --sales-hub-border: #e5e7eb;
  --sales-hub-muted: #6b7280;
  --sales-hub-surface: #ffffff;
  --sales-hub-page: #f6f8fb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--sales-hub-page);
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container-fluid {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.row > * {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.col {
  flex: 1 0 0%;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

.d-flex {
  display: flex;
}

.d-none {
  display: none;
}

.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: flex-start;
}

.align-self-start {
  align-self: flex-start;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.flex-column {
  flex-direction: column;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.g-4 {
  row-gap: 1.5rem;
}

.g-4 > * {
  margin-bottom: 1.5rem;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.ms-auto {
  margin-left: auto;
}

.px-3 {
  padding-right: 1rem;
  padding-left: 1rem;
}

.px-4 {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.pt-4 {
  padding-top: 1.5rem;
}

.pt-5 {
  padding-top: 3.75rem;
}

.fw-semibold {
  font-weight: 600;
}

.small {
  font-size: 0.875rem;
}

.h3 {
  font-size: 1.75rem;
}

.h5 {
  font-size: 1.25rem;
}

.display-6 {
  font-size: 2.5rem;
}

.fs-1 {
  font-size: 2.5rem;
}

.fs-5 {
  font-size: 1.25rem;
}

.text-end {
  text-align: right;
}

.text-start {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-white {
  color: #fff;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.6);
}

.text-body {
  color: #212529;
}

.text-body-secondary {
  color: var(--sales-hub-muted);
}

.text-primary {
  color: #0d6efd;
}

.text-secondary {
  color: #6c757d;
}

.text-success {
  color: #198754;
}

.text-danger {
  color: #dc3545;
}

.text-dark {
  color: #212529;
}

.bg-light {
  background-color: var(--sales-hub-page);
}

.bg-white {
  background-color: #fff;
}

.bg-dark {
  background-color: #111827;
}

.bg-primary {
  background-color: #0d6efd;
}

.bg-primary-subtle {
  background-color: #cfe2ff;
}

.bg-secondary-subtle {
  background-color: #e2e3e5;
}

.bg-success-subtle {
  background-color: #d1e7dd;
}

.bg-danger-subtle {
  background-color: #f8d7da;
}

.bg-dark-subtle {
  background-color: #ced4da;
}

.border-0 {
  border: 0;
}

.border-end {
  border-right: 1px solid var(--sales-hub-border);
}

.border-top {
  border-top: 1px solid var(--sales-hub-border);
}

.rounded {
  border-radius: 0.5rem;
}

.rounded-3 {
  border-radius: 0.75rem;
}

.rounded-circle {
  border-radius: 50%;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.75rem rgba(15, 23, 42, 0.08);
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.navbar {
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

.navbar-brand {
  color: #fff;
  font-size: 1.125rem;
  letter-spacing: 0;
}

.navbar-brand:hover {
  color: #fff;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
}

.nav-link:hover {
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
  color: #111827;
  background: #fff;
}

.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
}

.btn-outline-secondary:hover {
  color: #fff;
  background: #6c757d;
}

.btn-primary {
  color: #fff;
  background: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  color: #fff;
  background: #0b5ed7;
  border-color: #0a58ca;
}

.card {
  background: #fff;
  border: 1px solid var(--sales-hub-border);
}

.card-header {
  padding: 1rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table > :not(caption) > * > * {
  padding: 1rem;
  border-bottom: 1px solid var(--sales-hub-border);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #f9fafb;
}

.table-hover > tbody > tr:hover > * {
  background-color: #f3f4f6;
}

.align-middle {
  vertical-align: middle;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
}

.text-bg-secondary {
  color: #fff;
  background-color: #6c757d;
}

.text-bg-info {
  color: #052c65;
  background-color: #9eeaf9;
}

.text-bg-primary {
  color: #fff;
  background-color: #0d6efd;
}

.text-bg-warning {
  color: #332701;
  background-color: #ffc107;
}

.text-bg-dark {
  color: #fff;
  background-color: #212529;
}

.text-bg-success {
  color: #fff;
  background-color: #198754;
}

.text-bg-danger {
  color: #fff;
  background-color: #dc3545;
}

.alert {
  position: relative;
  padding: 1rem 3rem 1rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
}

.alert-success {
  color: #0f5132;
  background: #d1e7dd;
}

.alert-danger {
  color: #842029;
  background: #f8d7da;
}

.alert-info {
  color: #055160;
  background: #cff4fc;
}

.btn-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1rem;
  height: 1rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.btn-close::before {
  content: "x";
  color: currentColor;
}

.container-fluid > .row > aside {
  min-height: calc(100vh - 3.75rem);
}

aside .nav-link {
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

aside .nav-link:not(.active):hover {
  background: #f3f4f6;
}

.display-6 {
  line-height: 1;
}

.table thead th {
  color: #4b5563;
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.badge {
  font-weight: 600;
}

.alert {
  border: 0;
}

main form:not(.button_to) {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem;
  background: var(--sales-hub-surface);
  border: 1px solid var(--sales-hub-border);
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 0.75rem rgba(15, 23, 42, 0.06);
}

main form.sales-hub-inline-form {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

main form:not(.button_to) .field {
  margin-bottom: 1rem;
}

.form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  color: #111827;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
}

.form-control:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
  outline: 0;
}

.form-select {
  display: block;
  width: 100%;
  padding: 0.625rem 2.25rem 0.625rem 0.75rem;
  color: #111827;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
}

.form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
  outline: 0;
}

textarea.form-control {
  min-height: 7rem;
}

.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
}

.list-group-flush {
  border-radius: 0;
}

.list-group-item {
  position: relative;
  display: block;
  padding: 1rem;
  color: #111827;
  background-color: #fff;
  border-bottom: 1px solid var(--sales-hub-border);
}

.dropdown-menu {
  min-width: 14rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--sales-hub-border);
  border-radius: 0.75rem;
}

.dropdown-item {
  width: 100%;
  padding: 0.5rem 0.75rem;
  color: #111827;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
}

.dropdown-item:hover,
.dropdown-item.active {
  color: #fff;
  background: #0d6efd;
}

main form:not(.button_to) label {
  display: block;
  margin-bottom: 0.375rem;
  color: #374151;
  font-weight: 600;
}

main form:not(.button_to) input[type="email"],
main form:not(.button_to) input[type="password"],
main form:not(.button_to) input[type="text"] {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  color: #111827;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
}

main form:not(.button_to) input[type="email"]:focus,
main form:not(.button_to) input[type="password"]:focus,
main form:not(.button_to) input[type="text"]:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
  outline: 0;
}

main form:not(.button_to) input[type="submit"] {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 0.625rem 1rem;
  color: #fff;
  background: #0d6efd;
  border: 1px solid #0d6efd;
  border-radius: 0.5rem;
  font-weight: 600;
}

main form:not(.button_to) input[type="checkbox"] {
  margin-right: 0.375rem;
}

main h2 {
  margin-bottom: 1rem;
  text-align: center;
}

@media (min-width: 992px) {
  .flex-lg-nowrap {
    flex-wrap: nowrap;
  }

  .col-lg-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }

  .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .container-fluid > .row > aside {
    position: sticky;
    top: 3.75rem;
    flex: 0 0 var(--sales-hub-sidebar-width);
    max-width: var(--sales-hub-sidebar-width);
  }
}

@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .d-sm-block {
    display: block;
  }
}

@media (min-width: 768px) {
  .px-md-4 {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .col-xl {
    flex: 1 0 0%;
  }

  .col-xl-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }

  .col-xl-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }

  .col-xl-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }
}
