/* Enhanced Corporate Procurement Page Styling */

/* Main container improvements */
.node-book {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Introduction text styling */
.field-name-body {
  background-color: #f9f9f9;
  padding: 25px;
  margin-bottom: 30px;
  border-left: 4px solid #009844;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.field-name-body p {
  line-height: 1.6;
  font-size: 16px;
  color: #444;
  margin: 0;
}

/* Views header */
.view-corporate-procurement .view-header {
  background-color: #009844;
  color: white;
  padding: 10px 15px;
  border-radius: 4px;
  font-weight: 500;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Filter form styling */
.view-filters {
  background-color: #f5f7fa;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.views-exposed-form .views-exposed-widget {
  margin-bottom: 15px;
}

.views-exposed-form label {
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
  display: block;
}

.views-exposed-form .form-control {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  width: 100%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.views-exposed-form .btn-info {
  background-color: #009844;
  border-color: #009844;
  padding: 8px 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.views-exposed-form .btn-info:hover {
  background-color: #008039;
  border-color: #008039;
}

/* CAPTCHA admin links */
.captcha-admin-links {
  display: none;
}

/* Table styling */
.table-responsive {
  border: none;
  margin-bottom: 30px;
}

.views-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  table-layout: fixed;
}

/* Column width adjustments */
.views-table .views-field-title {
  width: 50%; /* Make the first column larger */
}

.views-table .views-field-field-procurement-reference {
  width: 18%; /* Adjust as needed */
  word-wrap: break-word;
  word-break: break-word;
}

.views-table .views-field-field-procurement-pub-date {
  width: 16%; /* Adjust as needed */
  word-wrap: break-word;
  word-break: break-word;
}

.views-table .views-field-field-procurement-end-date {
  width: 16%; /* Adjust as needed */
  word-wrap: break-word;
  word-break: break-word;
}

.views-table thead th {
  background-color: #f5f7fa;
  color: #444;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  padding: 14px 16px;
  border-bottom: 2px solid #009844;
}

.views-table thead th a {
  color: #444;
  text-decoration: none;
  display: block;
  position: relative;
}

.views-table thead th a:hover {
  color: #009844;
}

.views-table thead .active {
  background-color: #eef5f0;
}

.views-table tbody tr {
  transition: background-color 0.2s ease;
}

.views-table tbody tr:hover {
  background-color: #f9f9f9;
}

.views-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-top: 1px solid #eee;
  word-wrap: break-word; /* Enable word wrapping */
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.views-table tbody td a {
  color: #006699;
  text-decoration: none;
  font-weight: 500;
}

.views-table tbody td a:hover {
  text-decoration: underline;
  color: #009844;
}

/* Pagination styling */
.pagination {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.pagination li {
  margin: 0 3px;
}

.pagination li a, 
.pagination li span {
  padding: 8px 14px;
  border-radius: 4px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  color: #444;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination li a:hover {
  background-color: #eef5f0;
  border-color: #009844;
}

.pagination li.active span {
  background-color: #009844;
  border-color: #009844;
  color: white;
}

.pagination li.disabled span {
  color: #999;
  background-color: #f5f5f5;
  cursor: not-allowed;
}



/* Responsive improvements */
@media (max-width: 767px) {
  .view-filters {
    padding: 15px;
  }
  
  .views-table thead th,
  .views-table tbody td {
    padding: 10px;
  }
  
  .views-table {
    font-size: 14px;
  }
  
  .pagination li a, 
  .pagination li span {
    padding: 6px 10px;
  }
  
  /* Adjust column widths for mobile */
  .views-table .views-field-title {
    width: 45%;
  }
  
  .views-table .views-field-field-procurement-reference {
    width: 19%;
  }
  
  .views-table .views-field-field-procurement-pub-date {
    width: 18%;
  }
  
  .views-table .views-field-field-procurement-end-date {
    width: 18%;
  }
}