/* Procurement Management Frontend Styles */

.procurement-supplier-registration,
.procurement-supplier-dashboard,
.procurement-tender-list,
.procurement-ppm-viewer {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: #7f8c8d;
  font-size: 12px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #3498db;
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
}

.btn-success {
  background-color: #27ae60;
  color: white;
}

.btn-danger {
  background-color: #e74c3c;
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-outline {
  background: transparent;
  border: 2px solid #3498db;
  color: #3498db;
}

.btn-outline:hover {
  background: #3498db;
  color: white;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background-color: #f39c12;
  color: white;
}

.status-approved {
  background-color: #27ae60;
  color: white;
}

.status-rejected {
  background-color: #e74c3c;
  color: white;
}

.status-published {
  background-color: #3498db;
  color: white;
}

.status-closed {
  background-color: #95a5a6;
  color: white;
}

.status-submitted {
  background-color: #9b59b6;
  color: white;
}

.status-active {
  background-color: #27ae60;
  color: white;
}

.status-expired {
  background-color: #e74c3c;
  color: white;
}

.status-current {
  background-color: #27ae60;
  color: white;
}

.status-archived {
  background-color: #95a5a6;
  color: white;
}

/* Dashboard Styles */
.dashboard-status,
.dashboard-profile,
.dashboard-bids {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #3498db;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.rejection-reason {
  margin-top: 15px;
  padding: 15px;
  background-color: #fdf2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
}

.profile-info p {
  margin: 8px 0;
}

.profile-edit-form {
  background: white;
  padding: 20px;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  margin-top: 15px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Tender Card Styles */
.tender-card {
  background: white;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.tender-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.tender-card.expired {
  opacity: 0.7;
  background: #f8f9fa;
}

.available-tenders {
  max-height: 400px;
  overflow-y: auto;
}

.available-tenders .tender-card {
  margin-bottom: 15px;
  padding: 15px;
  background: white;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
}

.available-tenders .tender-card h5 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 16px;
}

.available-tenders .tender-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 10px 0;
  font-size: 12px;
  color: #7f8c8d;
}

.available-tenders .tender-description {
  margin: 10px 0;
  color: #555;
  line-height: 1.5;
}

.tender-card h4 {
  margin: 0 0 10px 0;
  color: #2c3e50;
}

.tender-meta {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  font-size: 14px;
  color: #7f8c8d;
}

.tender-description {
  margin: 15px 0;
  line-height: 1.6;
}

/* PPM Viewer Styles */
.procurement-ppm-viewer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.ppm-current-section {
  margin-bottom: 50px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e1e8ed;
}

.section-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 28px;
}

.current-badge {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

.ppm-current-card {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border: 2px solid #27ae60;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ppm-current-card h4 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  font-size: 24px;
  font-weight: 600;
}

.ppm-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meta-item strong {
  color: #7f8c8d;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
}

.meta-item span {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
}

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

.btn-large {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
}

.download-icon {
  margin-right: 8px;
  font-size: 18px;
}

/* Current PPM Widget Styles */
.current-ppm-widget {
  background: white;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.current-ppm-widget .ppm-header h3 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  font-size: 20px;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 2px solid #3498db;
}

.current-ppm-widget .ppm-title {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
}

.current-ppm-widget .ppm-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.current-ppm-widget .ppm-meta span {
  display: flex;
  justify-content: space-between;
}

.current-ppm-widget .ppm-actions {
  text-align: center;
}

.current-ppm-widget .download-stats {
  margin-top: 10px;
}

.current-ppm-widget .download-stats small {
  color: #7f8c8d;
  font-size: 12px;
}

/* PPM History Styles */
.ppm-history-section {
  margin-top: 50px;
}

.ppm-history-section h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 24px;
}

.history-description {
  margin: 0 0 25px 0;
  color: #7f8c8d;
  font-size: 16px;
}

.ppm-versions-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.ppm-table th {
  background: #f8f9fa;
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #e1e8ed;
  font-size: 14px;
}

.ppm-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #e1e8ed;
  font-size: 14px;
}

.ppm-table tr:hover {
  background: #f8f9fa;
}

.ppm-table tr.current-version {
  background: #e8f5e8;
}

.ppm-table tr.current-version:hover {
  background: #d4edda;
}

/* No PPM Message */
.no-ppm-message {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #bdc3c7;
}

.no-ppm-message h3 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 24px;
}

.no-ppm-message p {
  margin: 0;
  color: #7f8c8d;
  font-size: 16px;
}

.no-ppm {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #bdc3c7;
  color: #7f8c8d;
  font-size: 16px;
}

/* Modal Styles */
.procurement-modal,
.tender-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.procurement-modal.show,
.tender-modal.show {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.modal-content,
.tender-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.procurement-modal.show .modal-content,
.tender-modal.show .tender-modal-content {
  transform: scale(1);
}

.modal-close,
.tender-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  z-index: 1;
  transition: color 0.3s ease;
}

.modal-close:hover,
.tender-modal-close:hover {
  color: #000;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Bid Form Styles */
.bid-submission-form {
  padding: 30px;
}

.bid-submission-form h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 24px;
}

.tender-title {
  margin: 0 0 30px 0;
  color: #7f8c8d;
  font-style: italic;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

/* Tender Details Modal */
.tender-details {
  padding: 30px;
}

.tender-details h3 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  font-size: 28px;
}

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

.tender-section h4 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 20px;
  border-bottom: 1px solid #e1e8ed;
  padding-bottom: 8px;
}

.tender-content {
  line-height: 1.6;
  color: #555;
}

.tender-documents {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.document-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
}

.document-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #2c3e50;
  width: 100%;
}

.document-link:hover {
  color: #3498db;
}

.document-name {
  flex: 1;
  font-weight: 600;
}

.document-size {
  font-size: 12px;
  color: #7f8c8d;
  margin-left: 10px;
}

/* No tenders message */
.no-tenders {
  text-align: center;
  padding: 60px 20px;
  color: #7f8c8d;
  font-size: 18px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #bdc3c7;
}

/* Enhanced Tender Details Styling */

.tender-details {
    max-width: 100%;
    margin: 0 auto;
}

.tender-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item strong {
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    color: #212529;
    font-size: 16px;
    font-weight: 500;
}

.tender-section {
    margin: 30px 0;
    padding: 25px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tender-section h4 {
    color: #0073aa;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    font-size: 18px;
    font-weight: 600;
}

.tender-content {
    line-height: 1.6;
    color: #495057;
}

/* Consultation Details */
.consultation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.detail-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.detail-item strong {
    color: #495057;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item em {
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

/* Document Access */
.document-access {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.access-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.access-item strong {
    color: #495057;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.access-item .free {
    color: #28a745;
    font-weight: 600;
    font-size: 16px;
}

/* Contract Details */
.contract-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contract-details .detail-item {
    border-left-color: #ffc107;
}

/* Tender Documents */
.tender-documents {
    display: grid;
    gap: 15px;
}

.document-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.document-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.document-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
}

.document-icon {
    font-size: 24px;
    color: #0073aa;
}

.document-name {
    flex: 1;
    font-size: 16px;
}

.document-size {
    color: #6c757d;
    font-size: 14px;
    font-weight: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tender-meta {
    flex-direction: column;
    gap: 5px;
  }

  .available-tenders .tender-meta {
    flex-direction: column;
    gap: 5px;
  }

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

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

  .rejection-modal-content {
    margin: 20px;
    padding: 20px;
  }

  .rejection-modal-actions {
    flex-direction: column;
  }

  .bids-table,
  .tenders-table,
  .ppm-table {
    font-size: 12px;
  }

  .bids-table th,
  .bids-table td,
  .tenders-table th,
  .tenders-table td,
  .ppm-table th,
  .ppm-table td {
    padding: 8px;
  }

  .tender-filters {
    flex-direction: column;
    gap: 15px;
  }

  .tenders-grid {
    grid-template-columns: 1fr;
  }

  .tender-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

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

  .tender-meta-grid {
    grid-template-columns: 1fr;
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .document-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .modal-content,
  .tender-modal-content {
    width: 95%;
    margin: 20px;
  }

  .bid-submission-form {
    padding: 20px;
  }

  .tender-details {
    padding: 20px;
  }

  .tender-info-grid {
    grid-template-columns: 1fr;
  }

  .tender-documents {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ppm-meta-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .current-ppm-widget .ppm-meta span {
    flex-direction: column;
    gap: 2px;
  }

  .ppm-table {
    font-size: 12px;
  }

  .ppm-table th,
  .ppm-table td {
    padding: 10px 8px;
  }

  /* Hide some columns on mobile */
  .ppm-table th:nth-child(3),
  .ppm-table td:nth-child(3),
  .ppm-table th:nth-child(4),
  .ppm-table td:nth-child(4),
  .ppm-table th:nth-child(5),
  .ppm-table td:nth-child(5) {
    display: none;
  }

    .tender-info-grid,
    .consultation-details,
    .document-access,
    .contract-details {
        grid-template-columns: 1fr;
    }
    
    .tender-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .info-item,
    .detail-item,
    .access-item {
        padding: 12px;
    }
}

/* Loading States */
.loading {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
}

.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1;
  border-radius: inherit;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid #3498db;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  z-index: 2;
}


.tender-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex: 100%;
  flex-grow: 1 1;
}
.filter-group {
  flex: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Status Indicators */
.tender-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tender-status.published {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tender-status.draft {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.tender-status.closed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Consultation Type Badge */
.consultation-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.consultation-type-badge.public {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.consultation-type-badge.restricted {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Encryption Status */
.encryption-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.encryption-status.encrypted {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.encryption-status.unencrypted {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Tender Table Styles */
.procurement-tender-table {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.procurement-tender-table .filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
    align-items: center;
}

.procurement-tender-table .filters select {
    padding: 10px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    min-width: 150px;
    transition: border-color 0.3s ease;
}

.procurement-tender-table .filters select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.procurement-tender-table .filters button {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.procurement-tender-table .filters button:hover {
    background: #2980b9;
}

.tender-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tender-table thead {
    background: #f8f9fa;
}

.tender-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e1e8ed;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tender-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e1e8ed;
    font-size: 14px;
    vertical-align: middle;
}

.tender-table tr:hover {
    background: #f8f9fa;
}

.tender-table tr:last-child td {
    border-bottom: none;
}

.tender-table .tender-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tender-table .tender-title a:hover {
    color: #3498db;
}

.tender-table .publish-date,
.tender-table .closing-date {
    color: #7f8c8d;
    font-size: 13px;
}

.tender-table .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tender-table .status-badge.open {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tender-table .status-badge.expired {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tender-table .status-badge.closed {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.tender-table .download-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tender-table .download-link:hover {
    color: #2980b9;
}

.tender-table .no-documents {
    color: #7f8c8d;
    font-style: italic;
    font-size: 13px;
}

.tender-table .no-tenders {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-size: 16px;
    font-style: italic;
}

/* Responsive Table */
@media (max-width: 768px) {
    .procurement-tender-table .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .procurement-tender-table .filters select {
        min-width: auto;
        width: 100%;
    }
    
    .tender-table {
        font-size: 12px;
    }
    
    .tender-table th,
    .tender-table td {
        padding: 10px 8px;
    }
    
    /* Hide some columns on mobile */
    .tender-table th:nth-child(2),
    .tender-table td:nth-child(2) {
        display: none;
    }
    
    .tender-table th:nth-child(3),
    .tender-table td:nth-child(3) {
        display: none;
    }
}

