.dynamic-data-container {
  max-width: 100%;
  margin: auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Ensures content stays centered */
}

/* Image Styling */
.image-container {
  text-align: center;
  width: 50%;
}

.featured-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto 15px;
}

/* Table Styling */
.dynamic-table {
  width: 100%;
  max-width: 100%; /* Ensures table doesn't stretch too wide */
  border-collapse: collapse;
  background-color: #fff;
  border-color: #fff;
  text-align: center;
  margin: auto; /* 💡 Ensures table is centered */
}

.dynamic-table td {
  padding: 12px;
  text-align: left;
  background-color: #fff;
  border-color: #fff;
}

/* Field Names */
.field-name {
  font-weight: bolder;
  width: 40%;
  color: #555759; /* Blue field names */
  font-size: 16px;
}

/* Field Values */
.field-value {
  width: 60%;
  font-size: 16px;
  word-break: break-word; /* 💡 Prevents breaking words awkwardly */
}

.field-value > .field--type-entity-reference {
    margin: 0em;
}

/* 📱 Small Devices (Tablets & Phones) */
@media (max-width: 768px) {
  .dynamic-data-container {
    width: 95%;
    padding: 15px;
  }

  .dynamic-table {
    max-width: 100%; /* Ensure it adjusts */
  }

  .dynamic-table td {
    padding: 10px;
    font-size: 14px;
  }

  .field-name {
    font-size: 14px;
  }

  .field-value {
    font-size: 14px;
  }
  
    .image-container {
  width: 90%;
}
}

/* 📱 Extra Small Devices (Mobile Phones) */
@media (max-width: 480px) {
  .dynamic-table tr {
    display: flex;
    flex-direction: column;
  }

  .dynamic-table td {
    width: 100%;
    text-align: left;
    padding: 8px;
    font-size: 13px;
  }

  .field-name {
    font-weight: bold;
    color: #007BFF;
    background: #f9f9f9;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px 5px 0 0;
  }

  .field-value {
    background: #f9f9f9;
    padding: 10px;
    font-size: 14px;
    border-radius: 0 0 5px 5px;
  }
  
  .image-container {
  width: 90%;
}
}


/*For Support Ticket*/
.support-ticket-table-container {
  max-width: 100%;
  margin: 2rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow-x: auto;
}

.support-ticket-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.support-ticket-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  vertical-align: top;
  font-size: 1rem;
  background: #fff;
}

.support-ticket-table .label {
  /*background: #f3f4f6;*/
  /*font-weight: 600;*/
  color: #374151;
  width: 160px;
}

.support-ticket-table .description-cell {
  min-width: 220px;
  max-width: 400px;
  word-break: break-word;
}

@media (max-width: 900px) {
  .support-ticket-table-container {
    padding: 0.5rem;
  }
  .support-ticket-table td {
    padding: 0.5rem 0.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .support-ticket-table, .support-ticket-table tr, .support-ticket-table td {
    display: block;
    width: 100%;
  }
  .support-ticket-table tr {
    margin-bottom: 1.2rem;
  }
  .support-ticket-table .label {
    /*background: #f3f4f6;*/
    /*font-weight: 600;*/
    color: #374151;
    width: 100%;
    display: block;
    margin-bottom: 0.2rem;
  }
  .support-ticket-table .description-cell {
    min-width: 0;
    max-width: 100%;
  }
}
