/* Customer quotation and satisfaction details. Keep shared password dialogs compact. */
.kc-portal-dialog::backdrop {
  background: rgb(19 24 33 / 55%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.kc-portal-dialog.kc-portal-dialog--detail {
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid #e1e4e9;
  border-radius: 20px;
  background: #f7f8fa;
  color: #20242c;
  box-shadow: 0 32px 100px rgb(8 14 26 / 28%);
}
.kc-portal-dialog--detail > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid #e6e8ed;
  background: #fff;
}
.kc-portal-dialog--detail > header h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
.kc-portal-dialog--detail > header button {
  display: grid;
  width: 36px;
  height: 36px;
  min-width: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid #e2e5ea;
  border-radius: 50%;
  background: #f7f8fa;
  color: #303644;
  font-size: 23px;
  cursor: pointer;
}
.kc-portal-dialog--detail > .kc-portal-dialog-body { padding: 24px 28px 28px; }
.kc-detail-hero {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid #eddbdd;
  border-left: 4px solid #e0001b;
  border-radius: 12px;
  background: #fff;
}
.kc-detail-eyebrow { display: block; color: #aa1627; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.kc-detail-hero h3 { margin: 10px 0 8px; color: #191f2a; font-size: clamp(20px, 3vw, 27px); font-weight: 600; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.kc-detail-hero > p { margin: 0; color: #647081; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.kc-detail-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kc-detail-section { min-width: 0; margin: 0 0 18px; padding: 22px; border: 1px solid #e4e7ed; border-radius: 12px; background: #fff; }
.kc-detail-sections > .kc-detail-section { margin-bottom: 0; }
.kc-detail-section h3, .kc-detail-comment h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 14px; font-weight: 650; }
.kc-detail-section h3 > span { display: grid; width: 28px; height: 28px; flex-shrink: 0; place-items: center; border-radius: 8px; color: #c40a24; background: #fff0f1; font-size: 10px; }
.kc-survey-answers, .kc-quote-customer-grid { margin: 0; }
.kc-survey-answer + .kc-survey-answer { margin-top: 19px; padding-top: 17px; border-top: 1px solid #f0f1f4; }
.kc-survey-answer dt, .kc-quote-customer-grid dt { margin-bottom: 7px; color: #717988; font-size: 11px; line-height: 1.4; }
.kc-survey-answer dd, .kc-quote-customer-grid dd { margin: 0; color: #272f3b; font-size: 13px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.kc-survey-answer dd p { margin: 0; }
.kc-detail-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kc-detail-chips > span { display: inline-block; padding: 5px 10px; border: 1px solid #e7eaf0; border-radius: 7px; background: #f6f7fa; color: #394355; font-size: 11px; font-weight: 500; line-height: 1.4; }
.kc-detail-comment { margin-top: 18px; padding: 22px 24px; border: 1px solid #ecdfc7; border-radius: 12px; background: #fffaf1; }
.kc-detail-comment h3 { margin-bottom: 10px; color: #80602e; }
.kc-detail-comment p { margin: 0; color: #554a3b; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.kc-quote-customer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; }
.kc-quote-detail-table { overflow-x: auto; }
.kc-quote-detail-table table { width: 100%; border-collapse: collapse; text-align: left; }
.kc-quote-detail-table th { padding: 11px 12px; background: #f5f6f9; color: #697487; font-size: 10px; font-weight: 600; white-space: nowrap; }
.kc-quote-detail-table td { padding: 16px 12px; border-bottom: 1px solid #eceef2; color: #364254; font-size: 12px; vertical-align: top; }
.kc-quote-detail-table td:first-child { min-width: 210px; }
.kc-quote-detail-table td:not(:first-child) { white-space: nowrap; }
.kc-quote-detail-table td > strong, .kc-quote-detail-table td > span, .kc-quote-detail-table td > small { display: block; }
.kc-quote-detail-table td > strong { margin-bottom: 5px; color: #252c38; font-size: 12px; }
.kc-quote-detail-table td > span { line-height: 1.5; }
.kc-quote-detail-table td > small { margin-top: 5px; color: #858c98; }
.kc-quote-detail-total { display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding: 20px 0 5px; font-size: 12px; }
.kc-quote-detail-total > strong { color: #a61427; font-size: 17px; }
.kc-detail-footnote { margin: 14px 0 0; color: #7f8794; font-size: 11px; line-height: 1.6; }
.kc-web-quote-open { display: inline-flex; align-items: center; gap: 9px; padding: 3px 0; border: 0; background: none; color: #a71026; text-align: left; font: inherit; font-weight: 600; cursor: pointer; }
.kc-web-quote-open > span { color: #a0a7b3; font-size: 15px; }
.kc-web-quote-open--customer { color: #303a4a; font-weight: 500; }
.kc-quote-note { margin-top: 18px; }
.kc-quote-note form { margin-top: 16px; }
.kc-quote-note label { display: block; margin-bottom: 8px; color: #394355; font-size: 12px; font-weight: 600; }
.kc-quote-note textarea { box-sizing: border-box; display: block; width: 100%; min-height: 120px; padding: 12px 14px; resize: vertical; border: 1px solid #dce0e7; border-radius: 9px; background: #fff; color: #272f3b; font: inherit; font-size: 13px; line-height: 1.6; }
.kc-quote-note textarea:focus-visible { outline: 2px solid #c40a24; outline-offset: 2px; }
.kc-quote-note textarea:disabled { background: #f6f7fa; color: #5f6979; opacity: 1; }
.kc-quote-note__footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.kc-quote-note__status { flex: 1 1 220px; color: #647081; font-size: 12px; line-height: 1.5; }
.kc-web-quote-open:hover { color: #db001f; text-decoration: underline; text-underline-offset: 4px; }
.kc-web-quote-open:focus-visible, .kc-portal-dialog--detail > header button:focus-visible { outline: 2px solid #e0001b; outline-offset: 4px; }
@media (max-width: 700px) {
  .kc-portal-dialog.kc-portal-dialog--detail { width: calc(100vw - 16px); max-height: calc(100dvh - 20px); border-radius: 14px; }
  .kc-portal-dialog--detail > header { padding: 16px 18px; }
  .kc-portal-dialog--detail > header h2 { font-size: 16px; }
  .kc-portal-dialog--detail > .kc-portal-dialog-body { padding: 16px; }
  .kc-detail-sections { grid-template-columns: 1fr; gap: 12px; }
  .kc-detail-hero, .kc-detail-section, .kc-detail-comment { padding: 18px; }
  .kc-quote-customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .kc-quote-detail-total { align-items: flex-end; flex-direction: column; gap: 7px; }
}
