/* WYSIWYG Content Styling - Table Borders Fix */

/* Ensure tables in WYSIWYG content have visible borders */
.wysiwyg-content table,
.post-content table,
table {
  border-collapse: collapse !important;
  width: 100%;
  margin-bottom: 1.5rem;
  border: 1px solid #dee2e6 !important;
}

.wysiwyg-content table th,
.wysiwyg-content table td,
.post-content table th,
.post-content table td,
table th,
table td {
  border: 1px solid #dee2e6 !important;
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.wysiwyg-content table thead th,
.post-content table thead th,
table thead th {
  background-color: #f8f9fa !important;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6 !important;
}

.wysiwyg-content table tbody tr:nth-child(even),
.post-content table tbody tr:nth-child(even),
table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.wysiwyg-content table tbody tr:hover,
.post-content table tbody tr:hover,
table tbody tr:hover {
  background-color: #e9ecef;
}

/* Responsive table wrapper */
@media (max-width: 767px) {
  .wysiwyg-content table,
  .post-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Additional WYSIWYG content improvements */
.wysiwyg-content img,
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
  margin: 1rem 0;
}

.wysiwyg-content blockquote,
.post-content blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #6c757d;
  font-style: italic;
}

.wysiwyg-content pre,
.post-content pre {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.wysiwyg-content code,
.post-content code {
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.9em;
}
