/* Cloud Concepts — Quote UI
   Layered over main_css.css (Bootstrap 3 + .btn-u + Font Awesome 4 + house fonts).
   Only quote-specific styling here. Light, clean, professional. */

:root {
  --cc-ink: #1f2a37;
  --cc-muted: #6b7785;
  --cc-line: #e6eaf0;
  --cc-soft: #f6f8fb;
  --cc-accent: #2b7de9;
  --cc-accent-dark: #1a5fb8;
  --cc-good: #2e9e5b;
  --cc-warn: #c47f12;
  --cc-shadow: 0 1px 3px rgba(31,42,55,.06), 0 8px 24px rgba(31,42,55,.06);
}

.cc-quote {
  color: var(--cc-ink);
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 96px;
  -webkit-font-smoothing: antialiased;
}

/* ---- Header ---- */
.cc-quote-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cc-line);
  margin-bottom: 28px;
}
.cc-quote-head .cc-for {
  color: var(--cc-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.cc-quote-head h1 {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1.2;
}
.cc-quote-meta {
  text-align: right;
  font-size: 13px;
  color: var(--cc-muted);
  white-space: nowrap;
}
.cc-quote-meta .cc-qid { font-family: monospace; }

/* ---- Status banners ---- */
.cc-banner {
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-banner i { font-size: 18px; }
.cc-banner-expired { background: #fff6e6; color: var(--cc-warn); border: 1px solid #f3dcae; }
.cc-banner-accepted { background: #eaf7ef; color: var(--cc-good); border: 1px solid #c2e6cf; }

/* ---- Preamble ---- */
.cc-preamble {
  background: var(--cc-soft);
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 32px;
}
.cc-preamble h3 {
  margin: 0 0 10px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--cc-muted);
}
.cc-preamble + .cc-preamble { margin-top: -16px; }

/* ---- Sections & items ---- */
.cc-section { margin-bottom: 34px; }
.cc-section > h2 {
  font-size: 19px;
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cc-ink);
}
.cc-section-desc { color: var(--cc-muted); font-size: 14px; margin: 8px 0 16px; }

.cc-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--cc-line);
}
.cc-item:last-child { border-bottom: 0; }
.cc-item-toggle { flex: 0 0 auto; padding-top: 2px; }
.cc-item-body { flex: 1 1 auto; }
.cc-item-title { font-weight: 600; font-size: 15px; }
.cc-item-desc { color: var(--cc-muted); font-size: 13.5px; margin-top: 4px; line-height: 1.5; }
.cc-item-price {
  flex: 0 0 auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 110px;
  font-weight: 600;
}
.cc-item.cc-deselected { opacity: .5; }
.cc-item.cc-deselected .cc-item-price { text-decoration: line-through; }

/* Required pill */
.cc-pill {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}
.cc-pill-req { background: var(--cc-soft); color: var(--cc-muted); border: 1px solid var(--cc-line); }
.cc-pill-tbq { background: #fff4e8; color: var(--cc-warn); border: 1px solid #f3dcae; }

/* To-be-quoted custom items */
.cc-tbq { color: var(--cc-warn); font-weight: 600; font-size: 13.5px; }
.cc-needs-pricing { background: #fffdf8; }

/* Section footnotes */
.cc-footnotes {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--cc-line);
}
.cc-footnote {
  color: var(--cc-muted);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.cc-footnote sup { color: var(--cc-ink); font-weight: 600; margin-right: 2px; }

/* Choice options */
.cc-options { margin-top: 10px; }
.cc-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.cc-option:hover { border-color: #cdd6e2; }
.cc-option.cc-selected { border-color: var(--cc-accent); background: #f3f8fe; }
.cc-option-label { flex: 1 1 auto; font-size: 14.5px; }
.cc-option-price { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Quantity editor */
.cc-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.cc-qty button {
  width: 28px; height: 28px;
  border: 1px solid var(--cc-line);
  background: #fff;
  border-radius: 6px;
  line-height: 1;
  cursor: pointer;
}
.cc-qty button:hover { border-color: var(--cc-accent); color: var(--cc-accent); }
.cc-qty input {
  width: 52px; height: 28px;
  text-align: center;
  border: 1px solid var(--cc-line);
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.cc-qty-unit { color: var(--cc-muted); font-size: 13px; }

/* ---- Totals / summary ---- */
.cc-summary {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  box-shadow: var(--cc-shadow);
  padding: 20px 24px;
  margin-top: 32px;
}
.cc-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-variant-numeric: tabular-nums;
}
.cc-summary-row.cc-sub { color: var(--cc-muted); font-size: 13.5px; }
.cc-summary-row.cc-total {
  font-size: 18px;
  font-weight: 700;
  border-top: 1px solid var(--cc-line);
  margin-top: 8px;
  padding-top: 12px;
}
.cc-gst-note { color: var(--cc-muted); font-size: 11.5px; text-align: right; margin-top: 2px; }

/* ---- Plan comparison grid ---- */
.cc-plans { margin-top: 28px; }
.cc-plans h2 { font-size: 19px; margin-bottom: 12px; }
.cc-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.cc-plan-card {
  border: 1.5px solid var(--cc-line);
  border-radius: 10px;
  padding: 18px;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.cc-plan-card:hover { border-color: #cdd6e2; }
.cc-plan-card.cc-selected { border-color: var(--cc-accent); box-shadow: 0 0 0 3px rgba(43,125,233,.12); }
.cc-plan-card h4 { margin: 0 0 6px; font-size: 15px; }
.cc-plan-line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 3px 0; }
.cc-plan-line .v { font-variant-numeric: tabular-nums; font-weight: 600; }
.cc-plan-foot { color: var(--cc-muted); font-size: 12px; margin-top: 8px; }

/* ---- Action bar ---- */
.cc-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ---- Print ---- */
@media print {
  .cc-actions, .cc-summary { box-shadow: none; position: static; }
  .cc-plan-card { break-inside: avoid; }
  .cc-no-print { display: none !important; }
  .cc-quote { max-width: none; padding: 0; }
  a[href]:after { content: ""; }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .cc-quote-head { flex-direction: column; }
  .cc-quote-meta { text-align: left; }
  .cc-plan-grid { grid-template-columns: 1fr; }
  .cc-item { flex-wrap: wrap; }
  .cc-item-price { min-width: 0; }
}

/* Loading + error states */
.cc-loading, .cc-error {
  text-align: center;
  padding: 80px 20px;
  color: var(--cc-muted);
}
.cc-error i { font-size: 40px; color: var(--cc-warn); display: block; margin-bottom: 12px; }