@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700&display=swap');

:root {
  --swp-primary: #007ce1;
  --swp-primary-rgb: 0, 124, 225;
  --swp-primary-hover: #0066b8;
  --swp-primary-dark: #005299;
  --swp-primary-light: #e8f3fc;
  --swp-primary-lighter: #f3f9fd;
  --tblr-primary: #007ce1;
  --tblr-primary-rgb: 0, 124, 225;
  --ttms-font-family: 'Nunito Sans', sans-serif;
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--ttms-font-family);
}



/* ELD-style sidebar (overrides Tabler slate without Encore rebuild) */
.navbar.navbar-vertical {
  --ring: #007ce1;
}

.navbar.navbar-vertical *:focus-visible {
  outline-color: color-mix(in oklab, var(--ring) 50%, transparent);
}

.navbar.navbar-vertical,
.navbar.navbar-vertical.navbar-dark {
  background-color: #007ce1;
  color: rgba(255, 255, 255, 0.9);
  border-right: none;
  box-shadow: none;
}

.navbar.navbar-vertical.navbar-expand-lg .navbar-collapse {
  background-color: #007ce1;
}

@media (max-width: 991.98px) {
  .navbar.navbar-vertical.navbar-expand-lg .navbar-collapse {
    background-color: #007ce1;
  }
}

.navbar.navbar-vertical .navbar-brand-wrap {
  background: #ffffff;
  border-bottom: 1px solid #f3f4f6;
  padding: 0.75rem;
  margin: 0;
  width: 100%;
}


.navbar.navbar-vertical .navbar-brand {
  color: #007ce1;
  padding: 0;
  margin: 0;
  filter: none;
}

.navbar.navbar-vertical .navbar-brand-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.navbar.navbar-vertical .navbar-brand-image,
.navbar.navbar-vertical .navbar-brand img {
  height: 52px !important;
  width: auto !important;
  max-width: 260px;
  object-fit: contain;
  margin: 0 !important;
  filter: none;
}


.navbar.navbar-vertical .navbar-toggler {
  color: #4b5563;
  border-color: #e5e7eb;
  background: #f3f4f6;
}

.navbar.navbar-vertical .navbar-nav.flex-row .nav-link {
  color: #ffffff;
}

.navbar.navbar-vertical .nav-subtitle,
.navbar.navbar-vertical .nav-header {
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: 0.75rem;
}

.navbar.navbar-vertical .nav-link {
  color: rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  font-weight: 500;
}

.navbar.navbar-vertical .nav-link .nav-link-icon,
.navbar.navbar-vertical .nav-link .nav-link-title {
  color: inherit;
}

.navbar.navbar-vertical .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.navbar.navbar-vertical .nav-link.active,
.navbar.navbar-vertical .nav-item.active > .nav-link,
.navbar.navbar-vertical .nav-item.active > .dropdown-toggle {
  background-color: #ffffff;
  color: #007ce1;
  font-weight: 600;
}

.navbar.navbar-vertical .nav-link.active .nav-link-icon,
.navbar.navbar-vertical .nav-link.active .nav-link-title,
.navbar.navbar-vertical .nav-item.active > .nav-link .nav-link-icon,
.navbar.navbar-vertical .nav-item.active > .nav-link .nav-link-title {
  color: #007ce1;
}

.navbar.navbar-vertical .nav-link.active:hover,
.navbar.navbar-vertical .nav-item.active > .nav-link:hover {
  background-color: #ffffff;
  color: #007ce1;
}

.navbar.navbar-vertical .nav-link-toggle,
.navbar.navbar-vertical .dropdown-toggle::after {
  color: inherit;
}

.navbar.navbar-vertical .navbar-nav .dropdown-menu {
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0.25rem 0 0.25rem 0.75rem;
  margin: 0.15rem 0 0.35rem;
  position: static;
}

.navbar.navbar-vertical .navbar-nav .dropdown-menu-columns,
.navbar.navbar-vertical .navbar-nav .dropdown-menu-column {
  display: block;
}

.navbar.navbar-vertical .navbar-nav .dropdown-item {
  color: rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 0.9rem;
  margin-left: 0.35rem;
}

.navbar.navbar-vertical .navbar-nav .dropdown-item:hover,
.navbar.navbar-vertical .navbar-nav .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.navbar.navbar-vertical .navbar-nav .dropdown-item.active {
  background-color: #ffffff;
  color: #007ce1;
  font-weight: 600;
  border-left-color: transparent;
}

.ttms-network-sidebar {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.ttms-network-sidebar-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* TTMS Network sidebar widget (bottom of nav) */
.navbar-vertical .navbar-collapse {
  flex: 1 1 auto;
  min-height: 0;
}

.navbar-vertical .sidebar-shell {
  height: 100%;
  min-height: 0;
}

.navbar-vertical .sidebar-menu-grow {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

.ttms-network-sidebar {
  flex-shrink: 0;
  margin-top: auto;
  padding: 14px 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ttms-network-sidebar-header {
  text-align: center;
  margin-bottom: 10px;
}

.ttms-network-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}

.ttms-network-sidebar-subtitle {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.3;
}

.ttms-network-sidebar-carousel-wrap {
  position: relative;
}

.ttms-network-sidebar-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}

.ttms-network-sidebar-carousel::-webkit-scrollbar {
  display: none;
}

.ttms-network-sidebar-card {
  flex: 0 0 168px;
  min-height: 168px;
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #172033;
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ttms-network-sidebar-card:hover {
  transform: translateY(-3px);
  border-color: #007ce1;
  box-shadow: 0 10px 24px rgba(0, 124, 225, 0.15);
  color: #172033;
}

.ttms-network-sidebar-logo {
  height: 72px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.ttms-network-sidebar-logo img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.ttms-network-sidebar-name {
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
  text-align: center;
}

.ttms-network-sidebar-visit {
  margin-top: 10px;
  color: #007ce1;
  font-weight: 600;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ttms-network-sidebar-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e4e7ec;
  background: #ffffff;
  color: #172033;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  padding: 0;
}

.ttms-network-sidebar-btn:hover {
  background: #007ce1;
  color: #ffffff;
  border-color: #007ce1;
}

.ttms-network-sidebar-btn-prev { left: -4px; }
.ttms-network-sidebar-btn-next { right: -4px; }

.ttms-network-sidebar-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.ttms-network-sidebar-dot {
  width: 6px;
  height: 6px;
  border: none;
  border-radius: 50%;
  background: #64748b;
  cursor: pointer;
  padding: 0;
  transition: 0.2s;
}

.ttms-network-sidebar-dot.is-active {
  width: 18px;
  border-radius: 8px;
  background: #007ce1;
}

@media (max-width: 991px) {
  .ttms-network-sidebar-btn { display: none; }
  .ttms-network-sidebar-card { flex-basis: 78%; }
}

.invoice-item-part-picker .form-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.invoice-item-part-picker .ts-wrapper,
.invoice-item-part-picker .form-select {
  font-size: 0.8125rem;
}
