/* Vendor Portal Specific Styles */

/* ===== HELP PAGE STYLES ===== */
.vendor-help-body {
  background-color: #f8f9fa;
}

.vendor-help-container {
  min-height: 100vh;
}

.vendor-help-header {
  height: 5rem;
  border: 1px black bisque;
}

.vendor-help-sticky-card {
  top: 2rem;
}

.vendor-help-card-header {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.vendor-help-card-header-gold {
  background: linear-gradient(135deg, #B8860B 0%, #8B6914 100%);
}

.vendor-help-card-header-dark {
  background: linear-gradient(135deg, #2F4F4F 0%, #1a1a1a 100%);
}

.vendor-help-card-header-green {
  background: linear-gradient(135deg, #228B22 0%, #006400 100%);
}

.helpDetail {
  display: none;
}

.helpButton {
  border: none;
  border-radius: 0;
  transition: all 0.3s ease;
}

.helpButton:hover {
  background-color: #e9ecef;
  transform: translateX(5px);
}

.helpButton.active {
  background-color: #007bff;
  color: white;
  border-left: 4px solid #0056b3;
}

.accordion-button:not(.collapsed) {
  background-color: #e7f3ff;
  color: #0c63e4;
}

.card {
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.list-group-item {
  border-left: none;
  border-right: none;
}

.list-group-item:first-child {
  border-top: none;
}

.list-group-item:last-child {
  border-bottom: none;
}

/* ===== HOME PAGE STYLES ===== */
.vendor-welcome-container {
  margin-top: 40px;
  text-align: center;
}

.vendor-welcome-logo {
  height: 1.2em;
  width: auto;
  vertical-align: middle;
  margin: 0 8px;
}

.vendor-welcome-text {
  font-size: 1.1em;
  color: #666;
  margin-top: 20px;
}

/* ===== PRICING PAGE STYLES ===== */
.pricing-container {
  background: white;
}

.pricing-title {
  font-size: 1.5rem;
}

.pricing-subtitle {
  font-size: 1rem;
}

.pricing-table {
  font-size: 0.75rem;
}

.pricing-table th {
  text-align: center;
}

.pricing-table th.spec-col { width: 8%; }
.pricing-table th.desc-col { width: 25%; }
.pricing-table th.project-col { width: 18%; }

/* ===== DISABLED MENU STYLES ===== */
.nav-link.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
  color: #6c757d !important;
}

.nav-link.disabled:hover {
  background-color: transparent !important;
  color: #6c757d !important;
}
.pricing-table th.details-col { width: 8%; }
.pricing-table th.qty-col { width: 8%; }
.pricing-table th.uom-col { width: 6%; }
.pricing-table th.price-col { width: 12%; }
.pricing-table th.lead-col { width: 8%; }
.pricing-table th.stock-col { width: 8%; }

.pricing-table tr {
  font-size: 0.65rem;
}

.pricing-table-header-row {
  font-size: 0.65rem;
}

.pricing-table td {
  font-size: 0.7rem;
}

.pricing-table td.center {
  text-align: center;
}

.pricing-table .spec-view-btn {
  font-size: 0.65rem;
  padding: 2px 6px;
}

.pricing-table .price-input,
.pricing-table .lead-input,
.pricing-table .stock-input {
  font-size: 0.7rem;
  padding: 2px 4px;
}

.pricing-no-data {
  font-size: 0.9rem;
}

/* ===== SELECT VENDOR PAGE STYLES ===== */
.vendor-select-card {
  width: 100%;
  border: none;
  margin-top: 50px;
}

/* ===== PURCHASE ORDERS PAGE STYLES ===== */
.po-section-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.po-project-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.po-click-hint {
  font-size: 0.8em;
  margin-left: 10px;
}

.po-row {
  cursor: pointer;
}

.po-download-btn {
  border-color: #228B22;
  color: #228B22;
}

.spec-row {
  cursor: pointer;
}

/* ===== BID PAGE STYLES ===== */
.bid-help-btn {
  border-color: #2F4F4F;
  color: #2F4F4F;
}

.bid-basic-help-btn {
  border-color: #B8860B;
  color: #B8860B;
}

.bid-main-content {
  height: 80vh;
  display: flex;
  flex-direction: column;
}

.wizard-content {
  display: none;
}

.wizard-content.active {
  display: block;
}

.bid-checkbox {
  margin-right: 5px;
  border: 1px solid black;
}

.bid-counter {
  height: 2.5vh;
}

.bid-counter-text {
  font-size: 14px;
}

.bid-spec-card {
  height: 45vh;
  overflow: auto;
  border-bottom: 4px solid black;
}

.bid-table {
  width: 100%;
}

.bid-table th.spec-col { width: 10%; }
.bid-table th.actions-col { width: 8%; }
.bid-table th.desc-col { width: 30%; }
.bid-table th.qty-col { width: 8%; }
.bid-table th.cost-col { width: 10%; }
.bid-table th.carton-col { width: 10%; }
.bid-table th.stock-col { width: 8%; }
.bid-table th.total-col { width: 8%; }
.bid-table th.decline-col { width: 8%; }
.bid-table th.remove-col { width: 5%; }

.bid-spec-row {
  border-bottom: 1px solid #dee2e6;
}

.bid-spec-number {
  font-weight: bold;
}

.bid-com-button {
  background-color: wheat;
  color: firebrick;
}

.bid-spec-desc {
  font-size: 12px;
}

.bid-spec-qty {
  text-align: center;
}

.bid-spec-input {
  text-align: right;
  font-size: 11px;
}

.bid-spec-total {
  text-align: right;
  font-size: 11px;
}

.bid-spec-actions {
  text-align: center;
}

.bid-remove-btn {
  font-size: 10px;
  border-color: #8B0000;
  color: #8B0000;
}

.bid-com-div {
  background-color: #f8f9fa;
}

.bid-com-input {
  width: 100%;
}

.bid-action-buttons {
  display: none;
}

.bid-delete-btn {
  border-color: #8B0000;
  color: #8B0000;
}

.bid-decline-all-btn {
  border-color: #B8860B;
  color: #B8860B;
}

.bid-clear-all-btn {
  border-color: #2F4F4F;
  color: #2F4F4F;
}

.bid-submit-btn {
  border-color: #228B22;
  color: #228B22;
}

.bid-submit-btn-main {
  display: none;
}

.bid-action-spacer {
  visibility: hidden;
}

.bid-totals-row {
  height: 3vh;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* ===== PRINT/PDF STYLES ===== */
.bid-print-footer {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}

.bid-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.bid-details {
  flex: 1;
  margin-right: 20px;
}

.bid-total-label {
  text-align: right;
}

/* ===== MODAL STYLES ===== */
.modal-specification .modal-header {
  border-bottom: 2px solid #dee2e6;
}

.modal-specification .card {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-specification .card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

.modal-specification .card-header {
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.modal-specification .specification-details p {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.modal-specification .specification-details ul {
  margin-bottom: 0.5rem;
}

.modal-specification .specification-details li {
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.modal-specification .form-label {
  font-weight: 500;
  color: #6c757d;
}

.modal-specification .btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* ===== SPECIFICATION ROW STYLES ===== */
.spec-row.selected {
  background-color: #e3f2fd !important;
  border-left: 4px solid #2196f3 !important;
}

.spec-row:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

/* ===== LIST GROUP ITEM STYLES ===== */
.list-group-item {
  transition: all 0.2s ease;
}

.list-group-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

/* ===== CARD STYLES ===== */
.card {
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

/* ===== SPECIFICATION DETAIL STYLES ===== */
.spec-detail-line {
  margin: 0.15rem 0;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.2;
}

#spec-detail-body .details p {
  margin: 0.15rem 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  font-size: 0.85rem !important;
}

/* ===== DEBUG ZIP STYLES ===== */
.debug-zip-container {
  padding: 20px;
  font-family: monospace;
}

.debug-zip-title {
  color: #333;
  margin-bottom: 20px;
}

.debug-section {
  margin-bottom: 30px;
}

.debug-content {
  background: #f5f5f5;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  white-space: pre-wrap;
  font-size: 12px;
}

.copy-button {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 10px;
}

.copy-button:hover {
  background: #0056b3;
}

/* ===== BID TABLE COLUMN WIDTHS ===== */
.bid-table th.spec-col { width: 10%; }
.bid-table th.actions-col { width: 8%; }
.bid-table th.desc-col { width: 30%; }
.bid-table th.qty-col { width: 8%; }
.bid-table th.cost-col { width: 10%; }
.bid-table th.carton-col { width: 10%; }
.bid-table th.stock-col { width: 8%; }
.bid-table th.total-col { width: 8%; }
.bid-table th.decline-col { width: 8%; }
.bid-table th.remove-col { width: 5%; }

/* ===== VIEW MULTIPLE SPECS MODAL STYLES ===== */
.view-multiple-specs-modal {
  max-width: 900px;
}

.view-multiple-specs-content {
  height: 600px;
}

.view-multiple-specs-body {
  height: calc(100% - 130px);
  padding: 0;
}

.view-multiple-specs-tabs {
  margin: 0;
  border-bottom: 1px solid #dee2e6;
}

.view-multiple-specs-tab-content {
  height: calc(100% - 42px);
}

.view-multiple-specs-tab-pane {
  height: 100%;
}

.view-multiple-specs-card {
  border: none;
  border-radius: 0;
}

.view-multiple-specs-card-body {
  overflow-y: auto;
  padding: 20px;
}

#viewMultipleSpecsModal .card-body p {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

#viewMultipleSpecsModal .card-body ul {
  margin-bottom: 0.5rem;
}

#viewMultipleSpecsModal .card-body li {
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

#viewMultipleSpecsModal .card-body h1, 
#viewMultipleSpecsModal .card-body h2, 
#viewMultipleSpecsModal .card-body h3, 
#viewMultipleSpecsModal .card-body h4, 
#viewMultipleSpecsModal .card-body h5, 
#viewMultipleSpecsModal .card-body h6 {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

/* ===== BID PDF STYLES ===== */
.bid-pdf-body {
  font-family: Arial, sans-serif;
  margin: 20px;
  color: #333;
  font-size: 12px;
}

.bid-pdf-header {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #333;
  padding-bottom: 15px;
}

.bid-pdf-title {
  font-size: 24px;
  font-weight: bold;
  margin: 15px 0;
  color: #2c3e50;
}

.bid-pdf-info {
  display: table;
  width: 100%;
  margin-bottom: 20px;
}

.bid-pdf-details {
  display: table-cell;
  width: 50%;
  vertical-align: top;
}

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

.bid-pdf-details-table td {
  padding: 4px 0;
  border-bottom: 1px solid #eee;
  font-size: 11px;
}

.bid-pdf-details-table td:first-child {
  font-weight: bold;
  width: 120px;
}

.bid-pdf-lines-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 10px;
}

.bid-pdf-lines-table th {
  background-color: #f8f9fa;
  padding: 8px 6px;
  text-align: left;
  border-bottom: 2px solid #333;
  font-weight: bold;
}

.bid-pdf-lines-table td {
  padding: 6px;
  border-bottom: 1px solid #ddd;
}

.bid-pdf-lines-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.bid-pdf-total-row {
  font-weight: bold;
  background-color: #e9ecef;
  border-top: 2px solid #333;
}

.bid-pdf-total-row td {
  padding: 10px 6px;
}

.bid-pdf-total-label {
  text-align: right;
}

/* ===== BID PRINT STYLES ===== */
@media print {
  .bid-print-body { margin: 0; }
  .no-print { display: none !important; }
}

.bid-print-body {
  font-family: Arial, sans-serif;
  margin: 20px;
  color: #333;
}

.bid-print-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #333;
  padding-bottom: 20px;
}

.bid-print-title {
  font-size: 28px;
  font-weight: bold;
  margin: 20px 0;
  color: #2c3e50;
}

.bid-print-disclaimer {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}

.bid-print-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.bid-print-details-left {
  flex: 1;
  margin-right: 20px;
}

.bid-print-details-right {
  flex: 1;
}

.bid-print-details-left > div,
.bid-print-details-right > div {
  margin-bottom: 8px;
}

.bid-print-details-left span:first-child,
.bid-print-details-right span:first-child {
  font-weight: 600;
  color: #495057;
  font-size: 0.92rem;
}

.bid-print-details-left span:last-child,
.bid-print-details-right span:last-child {
  font-weight: 500;
  color: #212529;
  font-size: 0.92rem;
  margin-left: 8px;
}

.bid-print-lines-header {
  font-weight: 600;
  color: #495057;
  font-size: 0.92rem;
  margin-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 5px;
}

.bid-print-line-item {
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f8f9fa;
}

.bid-print-line-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bid-print-line-info {
  flex: 1;
}

.bid-print-line-spec {
  font-weight: 600;
  color: #495057;
  font-size: 0.92rem;
}

.bid-print-line-desc {
  font-weight: 500;
  color: #212529;
  font-size: 0.92rem;
  margin-top: 2px;
}

.bid-print-line-metrics {
  display: flex;
  gap: 20px;
  align-items: center;
}

.bid-print-metric {
  text-align: center;
}

.bid-print-metric-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.85rem;
}

.bid-print-metric-value {
  font-weight: 500;
  color: #212529;
  font-size: 0.92rem;
}

.bid-print-declined {
  background-color: #fff3cd;
  color: #856404;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85rem;
}

.bid-print-total-section {
  margin-top: 15px;
  padding: 10px 0;
  border-top: 2px solid #dee2e6;
  background-color: #f8f9fa;
}

.bid-print-total-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bid-print-total-label {
  font-weight: 700;
  color: #198754;
  font-size: 1rem;
}

.bid-print-total-value {
  font-weight: 700;
  color: #198754;
  font-size: 1rem;
}

.bid-print-actions {
  margin-top: 30px;
  text-align: center;
}

.bid-print-btn {
  padding: 10px 20px;
  margin: 0 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.bid-print-btn-print {
  background-color: #007bff;
  color: white;
}

.bid-print-btn-download {
  background-color: #6c757d;
  color: white;
}

.bid-print-btn-back {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
  margin-right: 8px;
  border-radius: 4px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* ===== ALTERNATE BID STYLES ===== */
.alternate-bid-container {
  height: 100vh;
  background-color: #f8f9fa;
}

.alternate-bid-row {
  height: calc(100vh - 120px);
}

.alternate-bid-left-card {
  height: 100%;
}

.alternate-bid-card-header {
  border-bottom: 2px solid #dee2e6;
}

.alternate-bid-left-card-body {
  height: calc(100% - 60px);
  overflow-y: auto;
  padding: 15px;
}

.alternate-bid-header-row {
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 8px;
}

.alternate-bid-spec-item {
  border-color: #e9ecef;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}

.alternate-bid-spec-item:hover {
  background-color: #f8f9fa;
  border-left: 3px solid #dee2e6;
}

.alternate-bid-spec-item.selected {
  background-color: #e3f2fd;
  border-left: 3px solid #2196f3;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alternate-bid-spec-item.selected .text-muted {
  color: #1976d2 !important;
}

.alternate-bid-spec-item.selected strong {
  color: #1976d2 !important;
}

.alternate-bid-spec-desc {
  line-height: 1.2;
}

.alternate-bid-spec-price {
  font-size: 0.75rem;
}

.alternate-bid-view-btn {
  width: 70px;
  text-align: left;
}

.alternate-bid-declined-badge {
  background-color: #B8860B;
  color: white;
  font-size: 0.6rem;
}

.alternate-bid-right-col {
  display: none;
}

.alternate-bid-right-card {
  height: 100%;
}

.alternate-bid-right-card-body {
  height: calc(100% - 60px);
  padding: 0;
}

.alternate-bid-spec-section {
  height: 50%;
  border-bottom: 1px solid #dee2e6;
}

.alternate-bid-spec-header {
  padding: 15px;
  border-bottom: 2px solid #dee2e6;
}

.alternate-bid-spec-content {
  height: calc(50vh - 120px);
  overflow-y: auto;
  padding: 20px;
}

.alternate-bid-form-section {
  height: 50%;
}

.alternate-bid-form-header {
  padding: 15px;
  border-bottom: 2px solid #dee2e6;
}

#specificationDetailsContent p {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

#specificationDetailsContent ul {
  margin-bottom: 0.5rem;
}

#specificationDetailsContent li {
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

/* ===== BID SUBMITTED STYLES ===== */
.bid-submitted-body {
  height: 49%;
}

.bid-submitted-container {
  height: 95vh;
}

.bid-submitted-nav-row {
  height: 5rem;
  border: 1px black bisque;
}

.bid-submitted-main-row {
  height: 78vh;
}

.bid-submitted-left-col {
  height: 78vh;
}

.bid-submitted-card-header {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.bid-submitted-left-card-body {
  height: 75vh;
  overflow: auto;
}

.bid-submitted-view-btn {
  text-align: left;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  background-color: #f8f9fa;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bid-submitted-view-btn:hover {
  background-color: #e9ecef !important;
  border-color: #adb5bd !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

.bid-submitted-view-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.bid-submitted-project-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.bid-submitted-bid-info {
  font-size: 0.9em;
  color: #6c757d;
  margin-bottom: 2px;
}

.bid-submitted-bid-total {
  font-weight: 600;
  color: #28a745;
  font-size: 0.9em;
}

.bid-submitted-right-col {
  height: 78vh;
  padding-top: 6px;
}

.bid-submitted-bid-card {
  border: none;
  border-radius: 8px;
}

.bid-submitted-bid-header {
  border-radius: 8px 8px 0 0;
  padding: 10px 16px;
  font-size: 0.98rem;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.bid-submitted-bid-title {
  font-size: 0.98rem;
}

.bid-submitted-bid-name {
  font-size: 0.92rem;
}

.bid-submitted-edit-btn {
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background-color: #B8860B;
  border-color: #B8860B;
  color: white;
}

.bid-submitted-print-btn {
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background-color: #2F4F4F;
  border-color: #2F4F4F;
  color: white;
}

.bid-submitted-alternate-btn {
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background-color: #228B22;
  border-color: #228B22;
  color: white;
}

.bid-submitted-bid-body {
  height: 25vh;
  width: 100%;
  border-bottom: 1px solid #dee2e6;
  padding: 16px 16px 8px 16px;
}

.bid-submitted-info-row {
  margin-bottom: 0;
}

.bid-submitted-label {
  text-align: right;
  font-weight: 600;
  color: #495057;
  font-size: 0.92rem;
}

.bid-submitted-value {
  text-align: left;
  font-weight: 500;
  color: #212529;
  font-size: 0.92rem;
}

.bid-submitted-total-value {
  text-align: left;
  font-weight: 700;
  color: #198754;
  font-size: 1rem;
}

.bid-submitted-spec-body {
  height: 55vh;
  overflow: auto;
}
