/*******************************************************************************
 * SENSERA CONFIDENTIAL
 *
 * Copyright 2012 - 2025 Sensera Systems Inc. All Rights Reserved.
 *
 * NOTICE: All information contained herein is, and remains the property of Sensera Systems Inc. and its suppliers. The
 * intellectual and technical concepts contained herein are proprietary to Sensera Systems Inc. and may be covered by
 * U.S. and Foreign Patents, patents in process, and are protected by trade secret or copyright law. Dissemination of
 * this information or reproduction of this material is strictly forbidden unless prior written permission is obtained
 * from Sensera Systems Inc.
 ******************************************************************************/

#card-container {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

/* Section headers (Summary, Focus Four Analysis, Other Concerns) */
.section-header {
  background: #2d1400;
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0.85rem 2rem 0.85rem 2rem;
  margin-bottom: 0;
  letter-spacing: 0.01em;
  border: none;
  box-shadow: none;
}

/* Card container for each section */
.section-cards {
  background: #fff;
  border: 1px solid #dddfe2;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 0 0.5rem 0;
  margin-bottom: 2.5rem;
}

.media-card {
  width: 100%;
}

.media-card:last-child {
  border-bottom: none;
}

.media-div {
  display: flex;
  flex-direction: column;
}

.media-div + .media-div {
  margin-top: 40px;
}

.media-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 8px;
}

.display-name {
  font-size: 1.2rem;
}

.media-content-and-events {
  display: flex;
  flex-direction: row;
}

.media-holder {
  flex: 1;
  align-self: start;
}

.media-holder video, .media-holder img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  background: #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.media-events {
  flex: 1;
  margin-left: 16px;
}

.media-events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.display-name, .media-events-header {
  font-weight: bold;
}

.media-container {
  flex: 0 0 220px;
  max-width: 220px;
  align-self: flex-start;
}

.media-container img,
.media-container video {
  width: 220px;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  background: #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.video-placeholder {
  position: relative;
  cursor: pointer;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  border: 3px solid white;
  transition: all 0.2s ease;
}

.play-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent white;
}

.play-button.loading {
  background-color: transparent;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.play-button.loading::after {
  display: none;
}


.video-placeholder:hover .play-button:not(.loading) {
  background-color: #A84817;
  transform: translate(-50%, -50%) scale(1.1);
}

.content-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: flex-start;
}

.card-header {
  display: flex;
  align-items: center;
  height: 64px;
  border-radius: 6px 6px 0 0;
  background: #1B0B03;
  width: 100%;
  flex-shrink: 0;
}

.card-header .title {
  font-size: 1.13rem;
  font-weight: 600;
}

.card-header .type {
  display: flex;
  align-items: center;
  margin-left: 16px;
  color: var(--sensera-gray-50);
  font-size: 24px;
  line-height: 32px;
  font-style: normal;
  font-weight: 500;
  text-align: left;
  height: 100%;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.97rem;
  color: #888;
  margin-bottom: 0.25rem;
}

.card-meta .meta-icon {
  margin-right: 0.25rem;
}

.severity-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.severity-label {
  margin-right: 0.5rem;
  color: #79716B;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; /* 142.857% */
}

.severity-badge {
  display: flex;
  width: 59px;
  height: 28px;
  padding: 4px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;

  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;

  line-height: normal;
  border-radius: 9999px;
  border: 0 solid #E5E7EB;

}

.severity-low {
  background-color: #57534E;
  color: #FFF;
}

.severity-medium {
  background-color: #CA8A04;
  color: #FFF;
}

.severity-caution {
  color: #FFF;
  background: #FBBF24;
}

.severity-unsafe, .severity-high {
  color: #B91C1C;
  background: #FEE2E2;
}

.severity-safe {
  color: #FFF;
  background-color: #4caf50;
}

.content-container h3 {
  margin: 0.5rem 0 0.25rem 0;
  font-size: 1rem;
  padding: 4px;
  font-weight: 600;
  color: #333;
}

.content-container p {
  margin: 0;
  padding: 4px;
  line-height: 1.5;
  color: #333;
  font-size: 1.04rem;
}

.content-container span {
  padding: 4px;
}

.content-container ul {
  margin: 0;
  padding: 4px;
  color: #333;

  line-height: 1.6;
}

.text-card, .summary-card {
  display: block;
  max-width: 85vw;
  width: 100%;
  border-radius: 6px;
  border: none;
  background: none;
  margin-bottom: 1.5rem;
}

.concern-title {
  color: #1C1917;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 10px;
}

.card-body {
  border-left: 1px solid var(--sensera-gray-warm-400, #A9A29D);
  border-right: 1px solid var(--sensera-gray-warm-400, #A9A29D);
  border-bottom: 1px solid var(--sensera-gray-warm-400, #A9A29D);
  border-radius: 0 0 6px 6px;
  background: #fff;
  padding: 1.2rem 2rem 1.2rem 2rem;
  width: 100%;
  box-sizing: border-box;
}

.image-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  max-width: 85vw;
  margin: 0 auto;
}

.image-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
}

.image-list .multi-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.title {
  grid-column: span 2;
  font-size: 1.13rem;
  font-weight: 600;
  color: black;
  margin-bottom: 15px;
}

.mini-title {
  font-weight: 600;
  color: black;
}

.sub-header-title{
  grid-column: span 2;
  font-size: 1.13rem;
  font-weight: 600;
  color: var(--sensera-orange-800);
}

.image-list .title {
  margin: 15px 0 10px;
  scroll-margin-top: 80px;
}

.single-col {
  grid-column: span 1;
}

.single-col .mini-title {
  margin-top: 10px;
  margin-bottom: 10px;
}

.double-col {
  grid-column: span 2;
}

ul {
  color: #1B0B03;;
  margin-left: -25px;
  line-height: 1.5;
}

li {
  margin-top: 15px;
}

.image-caption {
  color: var(--sensera-gray-warm-600);
  font-size: 14px;
  margin-bottom: 8px;
}

.image-caption-bolded{
  font-weight: 1000;
}

.image-caption-container{
  display: flex;
  gap: 3px;
}

ul li::marker {
  font-size: 0.5em; /* Adjusts the size of the bullet */
}

ul a {
  margin-left: 12px;
  color: var(--sensera-orange-800);
}

tr {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
}

.table-title {
  color: black;
  flex: 1;
  font-size: 24px;
}

.table-title-row {
  font-size: 1.3rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid black;
}

.table-sub-title {
  color: #79716B;
  padding-top: 20px;
  font-size: 20px;
  font-weight: 600;
  border-bottom: 1px solid;
}

.table-content {
  position: relative;
  flex: 1;
  color: black;
  font-size: 24px;
}

.table-content:not(:first-child)::before {
  content: "";
  position: absolute;
  width: 100%;
  border-bottom: 1px dotted var(--sensera-gray-500);
  white-space: nowrap;
  left: 0;
  right: 0;
  bottom: 5%;
  margin-left: 1px;
}

.table-content:first-child::after {
  content: "";
  position: absolute;
  bottom: 5%;
  width: 100%;
  border-bottom: 1px dotted var(--sensera-gray-500);
  white-space: nowrap;
  left: 0;
  right: 0;
}

.table-no-content {
  color: black;
}

.table {
  width: 65vw;
  display: flex;
  flex-direction: column;
}

.table-row {
  color: var(--sensera-gray-500);
}

.dot-line {
  flex-grow: 1; /* Allows the dot leader to expand and fill space */
  border-bottom: 1px dotted black; /* Creates the dotted line */
  margin: 0 5px; /* Adds a small margin around the dots */
}

.table-content:not(:first-child) {
  text-align: right;
}

.table-title:not(:first-child) {
  text-align: right;
}

.table-sub-header {
  font-size: 0.8em;
}

.error-msg {
  color: var(--sensera-error-600);
}

.empty-report-msg {
  color: black;
  font-size: 16px;
  font-weight: 600;
}
