/* prettier-ignore */
/*# sourceMappingURL=user.css.map */

/*-----------------------------------------------
|   Theme Styles
-----------------------------------------------*/
/* HOFFMAN COLORS */
:root, [data-bs-theme='light'] {
    --phoenix-danger:  #c4262e;
    --phoenix-danger-rgb: 196, 38, 46;
  }
  [data-bs-theme='dark']{
    --phoenix-danger:  #c4262e;
    --phoenix-danger-rgb: 196, 38, 46;
  }



  /* Custom class for fixed height with scrolling */
.height-100 {
  height: 100px;
  max-height: 100px;
  overflow-y: auto;
}
.height-200 {
  height: 200px;
  max-height: 200px;
  overflow-y: auto;
}


/* Loading Overlay Styles */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #c4262e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


  /* PART Base styling */
  .part-header {
  border-bottom: 1px solid #e3e6ec;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.nvent-logo {
  max-width: 100px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.nvent-logo:hover {
  opacity: 1;
}

/* Product image */
.product-image-container {
  position: relative;
  margin-bottom: 1.5rem;
  border: 1px solid #e3e6ec;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #f9fafd;
}

.product-image {
  max-height: 350px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s;
}

.image-zoom-container:hover .product-image {
  transform: scale(1.05);
}

/* Specifications */
.specs-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.spec-item {
  padding: 0.75rem;
  border-radius: 0.375rem;
  background-color: #f9fafd;
  transition: background-color 0.2s;
}

.spec-item:hover {
  background-color: #eef1f8;
}

.spec-label {
  display: block;
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.spec-value {
  font-weight: 600;
  color: #212529;
}

/* Action buttons */
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.action-btn {
  flex: 1 1 auto;
  min-width: 120px;
}

/* Tabs */
.tabs-container {
  margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
  font-weight: 500;
  color: #6c757d;
}

.nav-tabs .nav-link.active {
  font-weight: 600;
  color: #2c7be5;
}

/* Features list */
.features-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.features-list li::before {
  content: '•';
  position: absolute;
  left: 0.5rem;
  top: 0;
  color: #2c7be5;
  font-weight: bold;
}

/* Documents */
.doc-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  background-color: #f9fafd;
  transition: background-color 0.2s;
  text-decoration: none;
}

.doc-item:hover {
  background-color: #eef1f8;
}

.doc-icon {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.doc-title {
  flex-grow: 1;
  color: #2c7be5;
  font-weight: 500;
}

.doc-size {
  font-size: 0.75rem;
  color: #6c757d;
  margin-left: 0.75rem;
}

/* Pricing */
.price-card {
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: #f8f9fa;
  margin-bottom: 1.5rem;
}

.price-label {
  font-size: 0.875rem;
  color: #6c757d;
}

.price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
}

.custom-price {
  color: #25b003;
}

.custom-price-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: rgba(12, 166, 120, 0.1);
  color: #25b003;
  border-radius: 1rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Stock status */
.stock-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.stock-in {
  background-color: rgba(12, 166, 120, 0.1);
  color: #25b003;
}

.stock-low {
  background-color: rgba(247, 153, 30, 0.1);
  color: #f7991e;
}

.stock-out {
  background-color: rgba(230, 55, 87, 0.1);
  color: #e63757;
}

/* Related parts */
.related-part-card {
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-part-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Customer price indicator */
/* .customer-price {
  position: relative;
}

.customer-price::after {
  content: '★';
  font-size: 0.7em;
  color: #e63757;
  position: absolute;
  top: -5px;
  right: -10px;
} */

/* Responsive fixes */
@media (max-width: 767.98px) {
  .specs-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .action-btn {
    flex: 1 1 100%;
  }
}


/* Search functionality styling */
#search-results {
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.search-result-item {
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-result-item:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

.search-result-item.active {
  background-color: rgba(13, 110, 253, 0.1);
}

/* Custom highlight */
.search-highlight {
  background-color: rgba(255, 193, 7, 0.3);
  font-weight: bold;
}

/* Make sure search box has proper z-index */
.search-box {
  position: relative;
  z-index: 1040;
}

/* Add loading indicator styling */
.search-loading {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

/* Make search results responsive */
@media (max-width: 768px) {
  #search-results {
    width: 100%;
    left: 0;
  }
}


/* Newsroom Section Styles */
.news-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.09);
}
.news-image-wrapper {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}
.news-card:hover .news-image {
  transform: scale(1.05);
}
.card-subtitle {
  opacity: 0.8;
}


/* QUTOES PAGE */
.quote-header {
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.quote-company-logo {
  max-height: 60px;
  max-width: 200px;
}

.quote-info-table th {
  width: 150px;
  font-weight: 600;
}

.quote-items-table th {
  background-color: #f8f9fa;
  vertical-align: middle;
}

.quote-items-table td {
  vertical-align: middle;
}

.quote-summary {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.quote-terms {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-top: 2rem;
}

.quote-footer {
  margin-top: 3rem;
  border-top: 1px solid #e0e0e0;
  padding-top: 1rem;
}

.print-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

@media print {
  /* Hide unnecessary elements */
  .navbar, .print-btn, .quote-actions, footer {
    display: none !important;
  }
  
  /* Reset padding and margins */
  .content {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  body {
    background-color: white !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    font-size: 10pt !important;
  }
  
  .card {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
  
  .card-body {
    padding: 0.3cm !important;
  }
  
  /* Ensure the content fits on the page */
  .container, .container-fluid, .row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Prevent page breaks inside critical elements */
  tr, .quote-header, .quote-footer {
    page-break-inside: avoid;
  }
  
  /* Adjust font sizes for printing - SMALLER TEXT */
  h1 {
    font-size: 14pt !important;
  }
  
  h4 {
    font-size: 11pt !important;
  }
  
  p, div, span, td, th {
    font-size: 9pt !important;
  }
  
  .small, .quote-footer p, .timeline-date {
    font-size: 8pt !important;
  }
  
  .fw-bold {
    font-weight: 600 !important;
  }
  
  .quote-terms ol {
    padding-left: 1.5rem !important;
    font-size: 8pt !important;
  }
  
  /* More compact spacing */
  .mb-3, .mb-4 {
    margin-bottom: 0.5rem !important;
  }
  
  .p-3, .p-4 {
    padding: 0.5rem !important;
  }
  
  /* Ensure backgrounds print */
  .quote-summary, .quote-terms, .table-bordered th {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  
  /* Fix for table layout */
  .quote-items-table {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  
  .quote-items-table th, 
  .quote-items-table td {
    padding: 4px !important;
    font-size: 8pt !important;
  }
  
  /* Ensure the layout maintains horizontal format */
  .col-md-6 {
    width: 50% !important;
    float: left !important;
  }
  
  /* Adjust table column widths for better fit */
  .quote-items-table th:nth-child(1), 
  .quote-items-table td:nth-child(1) {
    width: 15% !important;
  }
  
  .quote-items-table th:nth-child(2), 
  .quote-items-table td:nth-child(2) {
    width: 25% !important;
  }
  
  .quote-items-table th:nth-child(3), 
  .quote-items-table td:nth-child(3) {
    width: 25% !important;
  }
  
  .quote-items-table th:nth-child(4), 
  .quote-items-table td:nth-child(4) {
    width: 7% !important;
  }
  
  .quote-items-table th:nth-child(5), 
  .quote-items-table td:nth-child(5),
  .quote-items-table th:nth-child(6), 
  .quote-items-table td:nth-child(6),
  .quote-items-table th:nth-child(7), 
  .quote-items-table td:nth-child(7) {
    width: 9% !important;
  }
  
  /* Clear floats */
  .row::after {
    content: "";
    display: table;
    clear: both;
  }
}

.timeline-vertical.timeline-compact .timeline-item {
  position: relative;
  padding-left: 0;
}

.timeline-vertical.timeline-compact .timeline-icon {
  width: 24px;
  text-align: center;
}

.timeline-vertical.timeline-compact .timeline-content {
  flex: 1;
}

.timeline-date {
  white-space: nowrap;
}

/* Pricing Requests */
.filter-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
  border-radius: 50rem;
  background-color: #f0f2f5;
  color: #344050;
  display: inline-flex;
  align-items: center;
}
.filter-badge .btn-close-sm {
  font-size: 0.65rem;
  margin-left: 0.25rem;
  cursor: pointer;
}
.table-hover tbody tr:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}
.pricing-card {
  transition: all 0.2s ease;
}
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.status-badge {
  width: 100px;
  text-align: center;
}
.review-section {
  transition: background-color 0.3s ease;
}
.highlight-section {
  background-color: rgba(13, 110, 253, 0.05);
}
.discount-indicator {
  width: 80px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
}
.discount-high {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}
.discount-medium {
  background-color: rgba(255, 193, 7, 0.1);
  color: #fd7e14;
}
.discount-low {
  background-color: rgba(25, 135, 84, 0.1);
  color: #198754;
}
.discount-none {
  background-color: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}


/* COMPANIES */
.company-card {
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}
.company-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.company-info {
  padding: 1rem;
}
.stats-info {
  background-color: #f8f9fa;
  padding: 1rem;
  border-top: 1px solid #dee2e6;
}
.badge-count {
  font-size: 0.85rem;
  padding: 0.35em 0.65em;
}
.location-text {
  font-size: 0.9rem;
  color: #6c757d;
}
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Status colors */
.status-active {
  color: #198754;
}
.status-inactive {
  color: #6c757d;
}
/* Company type badges */
.type-oem { background-color: #0d6efd; }
.type-integrator { background-color: #6610f2; }
.type-engineer { background-color: #6f42c1; }
.type-distributor { background-color: #fd7e14; }
.type-contractor { background-color: #20c997; }
.type-end-user { background-color: #0dcaf0; }



/* Custom styling for user management page */
.user-card {
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}
.user-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.contact-info {
  padding: 1rem;
}
.company-info {
  background-color: #f8f9fa;
  padding: 1rem;
  border-top: 1px solid #dee2e6;
}
/* Style the bootstrap-select to match the theme */
.bootstrap-select .dropdown-toggle {
  background-color: #fff;
  border: 1px solid #dee2e6;
}
.bootstrap-select .dropdown-menu {
  max-height: 300px !important;
}
.bootstrap-select .dropdown-item.active, 
.bootstrap-select .dropdown-item:active {
  background-color: #0b5ed7;
}
/* Credentials display styling */
.credentials-container {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem;
  margin-top: 1rem;
}
.credentials-value {
  font-family: monospace;
  background-color: #e9ecef;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: bold;
  display: inline-block;
  margin-left: 0.5rem;
}
.copy-btn {
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin-left: 0.5rem;
  border-radius: 0.25rem;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}
.copy-btn:hover {
  background-color: #e9ecef;
}

/* Material swatches */
.material-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: text-bottom;
}
.material-carbon-steel { background-color: #7a7a7a; }
.material-stainless-steel { background-color: #c0c0c0; }
.material-aluminum { background-color: #d4d4d4; }
.material-fiberglass { background-color: #e0e0b0; }
.material-polycarbonate { background-color: #c8d8e8; }
.material-plastic { background-color: #A0A0A0;  }

/* Dimension labels */
.dimension-label {
  display: block;
  font-size: 0.7rem;
  color: #6c757d;
  margin-top: 2px;
}

/* Results styles */
.results-container {
  position: relative;
  min-height: 200px;
}

.loading-spinner-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.result-card {
  transition: transform 0.2s ease;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.1) !important;
}

.recommendation-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  z-index: 5;
}

.dimension-icon {
  width: 18px;
  margin-right: 6px;
  color: #6c757d;
  text-align: center;
}

/* Stock popover styles */
.stock-popover-close {
  position: absolute;
  top: 2px;
  right: 6px;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
}

.stock-popover-close:hover {
  color: #555;
}

.stock-check-result {
  position: relative;
  padding-right: 15px;
}

/* Toast container */
#toast-container {
  z-index: 9999;
}

.custom-price-row {
  background-color: rgba(25, 135, 84, 0.05) !important; /* Light green background */
}
.custom-price-row:hover {
  background-color: rgba(25, 135, 84, 0.05) !important; /* Slightly darker on hover */
}

.project-dropdown {
  max-height: 400px !important;
  overflow-y: auto !important;
  width: 350px !important;
  padding: 0 !important;
}

.project-dropdown .sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: white;
}

.project-dropdown .sticky-bottom {
  position: sticky;
  bottom: 0;
  z-index: 1020;
  background-color: white;
}

.project-dropdown .company-header {
  background-color: var(--phoenix-gray-100);
  margin-top: 0.5rem;
}

.project-dropdown .project-item .dropdown-item {
  white-space: normal;
  word-wrap: break-word;
}

.project-dropdown .project-search:focus {
  box-shadow: none;
  border-color: var(--phoenix-primary);
}

/* Custom scrollbar styles */
.project-dropdown::-webkit-scrollbar {
  width: 8px;
}

.project-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.project-dropdown::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.project-dropdown::-webkit-scrollbar-thumb:hover {
  background: #555;
}