.path-market-research .sidebar-right,
.path-market-research .region-sidebar-second {
  display: none !important;
}

.path-market-research .main-content,
.path-market-research .region-content,
.path-market-research .layout-content .col-lg-9,
.path-market-research .layout-content .col-md-9 {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

.market-research-search-form {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px 20px;
  padding: 32px;
  background-color: #f6f8fb;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(16, 42, 94, 0.08);
  box-sizing: border-box;
  margin-bottom: 32px;
}

.market-research-search-form .market-research-flex {
  display: contents;
}

.market-research-search-form .market-research-field,
.market-research-search-form .form-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.market-research-search-form label,
.market-research-search-form h4 {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a2a4a;
  margin: 0;
}

.market-research-search-form h4 {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.market-research-search-form input[type="text"],
.market-research-search-form input[type="date"],
.market-research-search-form input[type="time"],
.market-research-search-form select {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d5dceb;
  border-radius: 10px;
  background-color: #ffffff;
  font-size: 0.95rem;
  color: #243858;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.market-research-search-form input[type="text"]:focus,
.market-research-search-form input[type="date"]:focus,
.market-research-search-form input[type="time"]:focus,
.market-research-search-form select:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.market-research-search-form #datatable-wrapper {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 12px;
}

.market-research-search-form #datatable-wrapper .table-responsive {
  width: 100%;
  margin: 0;
  box-shadow: 0 10px 22px rgba(12, 41, 92, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background-color: #ffffff;
}

.market-research-search-form #datatable-wrapper .dataTables_wrapper {
  width: 100%;
}

.market-research-search-form #datatable-wrapper .dataTables_wrapper .row {
  margin: 0;
  gap: 12px;
}

.market-research-search-form #datatable-wrapper .dataTables_wrapper .col-sm-12,
.market-research-search-form #datatable-wrapper .dataTables_wrapper .col-md-6 {
  padding: 12px 0;
}

.market-research-search-form #datatable-wrapper .dataTables_wrapper label,
.market-research-search-form #datatable-wrapper .dataTables_wrapper .dataTables_filter input,
.market-research-search-form #datatable-wrapper .dataTables_wrapper .dataTables_length select {
  font-size: 0.9rem;
  color: #243858;
}

.market-research-search-form #my-datatable {
  width: 100% !important;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.market-research-search-form #my-datatable thead th {
  background: linear-gradient(135deg, #0b4fbb 0%, #1a76ff 100%);
  color: #ffffff;
  border: none;
  font-weight: 600;
  vertical-align: middle;
}

.market-research-search-form #my-datatable tbody tr:nth-child(even) {
  background-color: rgba(12, 65, 163, 0.05);
}

.market-research-search-form #my-datatable tbody td {
  vertical-align: middle;
  border-color: #e1e6f3;
}

.market-research-search-form #datatable-wrapper .dt-buttons {
  margin-bottom: 12px;
}

.market-research-search-form #datatable-wrapper .dataTables_info,
.market-research-search-form #datatable-wrapper .dataTables_paginate {
  font-size: 0.9rem;
  color: #243858;
}

.market-research-search-form #datatable-wrapper .pagination .page-link {
  border-radius: 999px !important;
  margin: 0 4px;
}

.market-research-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.market-research-search-form .form-submit {
  min-width: 200px;
  padding: 12px 32px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b4fbb 0%, #1a76ff 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.3s ease;
}

.market-research-search-form .form-submit:hover,
.market-research-search-form .form-submit:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(30, 82, 168, 0.25);
}

.market-research-search-form .form-submit:active {
  transform: translateY(1px);
  box-shadow: 0 6px 12px rgba(30, 82, 168, 0.25);
}

@media (max-width: 992px) {
  .market-research-search-form {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .market-research-search-form {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .market-research-actions {
    justify-content: stretch;
  }

  .market-research-search-form .form-submit {
    width: 100%;
  }
}

.market-research-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.market-research-flex .market-research-field {
  flex: 1 1 260px;
  min-width: 220px;
}

.market-research-flex .market-research-actions {
  flex: 0 0 auto;
}

/* DataTable styling */
.table-responsive {
  margin-top: 20px;
}

#my-datatable {
  width: 100% !important;
}

/* Badge styling για status */
.badge {
  font-size: 0.8em;
}

/* DataTable buttons styling */
.dt-buttons {
  margin-bottom: 10px;
}

.dt-button {
  margin-right: 5px;
  margin-bottom: 5px;
}

/* Modal styling */
.research-link {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.research-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Modal z-index fix */
#researchModal {
  z-index: 9999 !important;
}

#researchModal .modal-dialog {
  z-index: 10000 !important;
  max-height: 90vh;
  overflow-y: auto;
}

#researchModal .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

#researchModal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

#researchModal .modal-backdrop {
  z-index: 9998 !important;
}

/* Ensure modal appears above everything */
.modal {
  z-index: 9999 !important;
}

.modal-backdrop {
  z-index: 9998 !important;
}

/* Fix backdrop blocking modal interaction */
.modal-backdrop.show {
  z-index: 9998 !important;
}

.modal.show {
  z-index: 9999 !important;
}

.modal.show .modal-dialog {
  z-index: 10000 !important;
}

/* Remove backdrop completely */
.modal-backdrop {
  display: none !important;
}

.modal-backdrop.show {
  display: none !important;
}

/* Ensure modal is fully visible */
.modal.show {
  opacity: 1 !important;
}

.modal.show .modal-dialog {
  opacity: 1 !important;
}

.modal.show .modal-content {
  opacity: 1 !important;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  margin-right: 5px;
}

.modal-lg {
  max-width: 800px;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Συνημμένα αρχεία */
.file-preview {
  background-color: #f8f9fa;
}

.remove-attachment {
  font-size: 0.75rem;
}

#current-attachments {
  max-height: 200px;
  overflow-y: auto;
}

/* File upload styling */
#file-upload {
  border: 2px dashed #dee2e6;
  padding: 20px;
  text-align: center;
  transition: border-color 0.3s;
}

#file-upload:hover {
  border-color: #007bff;
}

/* Description textarea styling */
.description-textarea {
  min-height: 200px !important;
  max-height: 300px !important;
  overflow-y: auto !important;
  resize: vertical !important;
  font-family: inherit;
  line-height: 1.5;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

/* View mode description styling */
.description-view {
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Responsive table */
@media (max-width: 768px) {
  .market-research-flex {
    flex-direction: column;
  }

  .market-research-field {
    min-width: 100%;
  }

  .btn-sm {
    display: block;
    width: 100%;
    margin-bottom: 5px;
  }

  .file-preview {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .remove-attachment {
    margin-top: 5px;
    width: 100%;
  }
}

/* =====================================================
   MARKET RESEARCH VIEW PAGE STYLING - Μπλε θέμα
   ===================================================== */

.tender-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header Section */
.tender-container .tender-header {
  background: linear-gradient(135deg, #0b4fbb 0%, #1a76ff 100%);
  padding: 24px 28px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(11, 79, 187, 0.25);
}

.tender-container .tender-header h1 {
  margin: 0;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

.tender-container .tender-header h1 i {
  margin-right: 12px;
}

.tender-container .tender-header p.text-muted {
  color: rgba(255, 255, 255, 0.85) !important;
  margin: 8px 0 0 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.tender-container .tender-header p.text-muted.small {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7) !important;
}

.tender-container .tender-header .btn-light {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: #0b4fbb;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.tender-container .tender-header .btn-light:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Info Sections */
.tender-container .info-section {
  background: #ffffff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(12, 41, 92, 0.08);
  margin-bottom: 20px;
  border: 1px solid #e8eef7;
}

.tender-container .info-section h3 {
  border-bottom: 3px solid #0b4fbb;
  padding-bottom: 12px;
  margin-bottom: 20px;
  color: #0b4fbb;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
}

.tender-container .info-section h3 i {
  margin-right: 10px;
  color: #1a76ff;
  font-size: 1.3rem;
}

/* Row styling inside info sections */
.tender-container .info-section .row {
  margin-bottom: 0;
}

.tender-container .info-section .col-md-3,
.tender-container .info-section .col-md-4,
.tender-container .info-section .col-md-6,
.tender-container .info-section .col-12 {
  margin-bottom: 16px;
}

.tender-container .info-section strong {
  color: #1a2a4a;
  font-weight: 600;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 8px;
  line-height: 1.5;
}

.tender-container .info-section span {
  color: #4a5568;
  font-size: 1.3rem;
  line-height: 1.6;
  display: inline-block;
}

/* Badge styling */
.tender-container .badge.bg-primary {
  background: linear-gradient(135deg, #0b4fbb 0%, #1a76ff 100%) !important;
  padding: 8px 16px;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 999px;
  line-height: 1.4;
}

/* Horizontal rule */
.tender-container hr {
  border: none;
  border-top: 1px solid #e8eef7;
  margin: 16px 0;
}

/* List group for actions */
.tender-container .list-group-item {
  border: 1px solid #e8eef7;
  border-radius: 10px !important;
  margin-bottom: 8px;
  padding: 16px 20px;
  background: #f8fafc;
  font-size: 1.2rem;
  line-height: 1.6;
}

.tender-container .list-group-item strong {
  color: #0b4fbb;
  font-size: 1.3rem;
}

.tender-container .list-group-item small.text-muted {
  color: #718096 !important;
  word-break: break-all;
  font-size: 1.1rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tender-container {
    padding: 12px;
  }
  
  .tender-container .tender-header {
    padding: 18px;
  }
  
  .tender-container .tender-header h1 {
    font-size: 1.5rem;
  }
  
  .tender-container .info-section {
    padding: 18px;
  }
}

