/*
  PP Lead Detail module styles.
  The shared .pp-* shell and carousel remain in prmheader.css; this file owns
  the Lead Detail (Lead Information) card/table anatomy and is shared by every
  language of the page through a single include in the PP Lead Detail template.
  added by Jony Claude on 20260827
*/

/* --- Back-to-dashboard link ------------------------------------------------ */
.ld-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--pp-color-white);
  text-decoration: none;
}
.ld-back::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10.5 3.5 6 8l4.5 4.5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
          mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10.5 3.5 6 8l4.5 4.5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
}
.ld-back:hover { text-decoration: underline; }

/* --- Root / title / action row -------------------------------------------- */
.ld-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* --- Section cards (Table surface) ---------------------------------------- */
.ld-sec {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: rgba(30, 41, 57, 0.5);
  border: 1px solid #364153;
  border-radius: var(--pp-radius);
}

/* --- Key/value grid rows (List surface) ----------------------------------- */
.ld-kvgrp {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 16px 24px;
  padding: 16px;
  background: rgba(16, 24, 40, 0.5);
  border: 1px solid #364153;
  border-radius: var(--pp-radius);
}
.ld-kv {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ld-kv__value {
  word-break: break-word;
}

/* --- Inquiry / requirement / description paragraph ------------------------ */
.ld-body { white-space: pre-wrap; }

/* --- Assessment benchmark table ------------------------------------------- */
.ld-bench {
  box-sizing: border-box;
  width: 100%;
  border-collapse: collapse;
}
.ld-bench th,
.ld-bench td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #364153;
}
.ld-bench th { color: var(--pp-color-body-dark); }
.ld-bench td { color: var(--pp-color-white); vertical-align: top; }
.ld-bench tr:last-child th,
.ld-bench tr:last-child td { border-bottom: none; }

/* --- Modal / toast surfaces (module-scoped, does not touch common-modal) -- */
.ld-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.ld-backdrop.active { display: flex; }

.ld-dialog {
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  background: #1a1d29;
  border: 1px solid #364153;
  border-radius: var(--pp-radius);
  color: var(--pp-color-white);
}

.ld-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 2100;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  transform: translateX(-50%);
  background: #1a1d29;
  border: 1px solid #364153;
  border-radius: 6px;
  color: var(--pp-color-white);
}
.ld-toast.active { display: flex; }

/* --- Narrow-width reflow -------------------------------------------------- */
@media (max-width: 745px) {
  .ld-kvgrp { grid-template-columns: 1fr; }
  .ld-sec { padding: 20px; }
}