/* ============================================================================
   OBRAS ONSITE — CALC2
   Shared styling for the September 2026 calculator batch. The earlier calc
   pages each carry their own copy of this block inline; this file exists so the
   new ones share it. Class prefix stays cc- so the markup is identical.
   ========================================================================== */

.cc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.cc-lbl{font-size:11.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:#5b6b7c;margin-bottom:4px}
.cc-hint{font-size:12px;color:#8b98a5;margin-top:3px;line-height:1.45}
.cc-in{width:100%;padding:11px 13px;border:1.5px solid var(--line);border-radius:9px;font:inherit;font-size:15px;background:#fff}
.cc-in:focus{outline:0;border-color:var(--gold)}
select.cc-in{cursor:pointer}
.cc-sec{margin-top:20px}
.cc-sec h3,
.cc-sec .h-was-h3{font-size:12px;letter-spacing:1.3px;text-transform:uppercase;color:#5b6b7c;
  margin:0 0 10px;padding-bottom:6px;border-bottom:1px solid var(--line)}

.cc-out{border-radius:16px;padding:26px;margin-top:20px;color:#fff}
.cc-out.g{background:linear-gradient(135deg,#1a6b36,#0f4423)}
.cc-out.a{background:linear-gradient(135deg,#8a6410,#5c430b)}
.cc-out.r{background:linear-gradient(135deg,#8f2c22,#5e1d16)}
.cc-out.n{background:linear-gradient(135deg,#16385c,#0f2740)}
.cc-big{font-size:52px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.cc-cap{font-size:15px;opacity:.9;margin-top:5px}
.cc-verdict{font-size:19px;font-weight:800;margin-top:16px}
.cc-say{font-size:14.5px;line-height:1.6;opacity:.94;margin-top:5px;max-width:58ch}
.cc-rows{margin-top:18px;border-top:1px solid rgba(255,255,255,.2)}
.cc-row{display:flex;justify-content:space-between;gap:14px;padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.13);font-size:14.5px}
.cc-row b{font-variant-numeric:tabular-nums;white-space:normal;text-align:right;overflow-wrap:anywhere}
.cc-row.tot{border-bottom:0;padding-top:12px;font-size:17px;font-weight:800}

.cc-note{background:#fff8ec;border:1px solid #e8c98d;border-radius:10px;padding:13px 15px;
  font-size:13.5px;color:#6b4f16;line-height:1.6;margin:16px 0}
.cc-note b{color:#4a3608}

/* ---- repeating rows (plant items, procurement items, cycle activities) ---- */
.cc-list{margin-top:6px}
.cc-item{display:grid;gap:8px;align-items:end;padding:11px 0;border-bottom:1px solid var(--line)}
.cc-item:last-child{border-bottom:0}
.cc-del{background:#fff;border:1.5px solid var(--line);border-radius:8px;color:#8f2c22;
  font:inherit;font-size:13px;font-weight:700;padding:10px 12px;cursor:pointer;white-space:nowrap}
.cc-del:hover{border-color:#8f2c22}
.cc-add{background:#fff;border:1.5px dashed var(--line);border-radius:9px;color:var(--ink);
  font:inherit;font-size:14px;font-weight:700;padding:11px 15px;cursor:pointer;margin-top:12px;width:100%}
.cc-add:hover{border-color:var(--gold)}
.cc-empty{color:#8b98a5;font-size:14px;padding:14px 0}

/* ---- result tables (cash flow weeks, procurement items) ----
   The table is allowed to be wider than the phone; .cc-tw is what scrolls.
   max-width/min-width:0 stop the wide child forcing the whole page sideways. */
.cc-tw{overflow-x:auto;margin-top:18px;border-radius:10px;background:rgba(0,0,0,.16);
  max-width:100%;min-width:0;-webkit-overflow-scrolling:touch}
table.cc-t{width:100%;border-collapse:collapse;font-size:13.5px;min-width:520px}
table.cc-t th{text-align:right;padding:9px 12px;font-size:10.5px;letter-spacing:.6px;
  text-transform:uppercase;opacity:.75;border-bottom:1px solid rgba(255,255,255,.22);white-space:nowrap}
table.cc-t th:first-child,table.cc-t td:first-child{text-align:left}
table.cc-t td{padding:8px 12px;text-align:right;border-bottom:1px solid rgba(255,255,255,.1);
  font-variant-numeric:tabular-nums;white-space:nowrap}
table.cc-t tr:last-child td{border-bottom:0}
table.cc-t tr.low td{background:rgba(255,120,100,.22);font-weight:700}
table.cc-t tr.neg td{background:rgba(255,120,100,.12)}
table.cc-t tr.clm td:first-child::after{content:' \2022 claim';opacity:.6;font-size:11px}

/* ---- inline status pills ---- */
.cc-pill{display:inline-block;font-size:10.5px;font-weight:800;letter-spacing:.7px;
  text-transform:uppercase;padding:3px 8px;border-radius:5px;white-space:nowrap}
.cc-pill.g{background:rgba(120,230,160,.22);color:#b8f5d0}
.cc-pill.a{background:rgba(255,205,110,.22);color:#ffe0a3}
.cc-pill.r{background:rgba(255,130,110,.24);color:#ffc4b8}

/* ---- the JSA row builder ---- */
.cc-jsa{background:#fff;border:1px solid var(--line);border-radius:11px;padding:14px 15px;margin-bottom:10px}
.cc-jsa .cc-jn{font-size:11px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;
  color:#8b98a5;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.cc-ta{width:100%;padding:10px 12px;border:1.5px solid var(--line);border-radius:9px;
  font:inherit;font-size:14.5px;resize:vertical;min-height:62px;background:#fff}
.cc-ta:focus{outline:0;border-color:var(--gold)}
.cc-risk{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:8px;margin-top:8px}

/* ---- the strength / gap panel ---- */
.cc-str{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px;margin-top:16px}
.cc-str h3,
.cc-str .h-was-h3{font-size:12px;letter-spacing:1.3px;text-transform:uppercase;color:#5b6b7c;margin:0 0 12px}
.cc-str .ok,.cc-str .miss{display:flex;gap:10px;padding:7px 0;font-size:14.5px;line-height:1.5}
.cc-str .ok{color:#1a6b36}
.cc-str .miss{color:#8f2c22}
.cc-str .ok::before{content:'\2713';font-weight:800}
.cc-str .miss::before{content:'\2715';font-weight:800}

@media print{
  .cc-noprint{display:none!important}
  @page{size:A4 portrait;margin:14mm}
  .cc-out{color:#000;background:#fff!important;border:2px solid #000}
  table.cc-t th,table.cc-t td{border-color:#999}
  .cc-tw{background:none}
}
@media (max-width:560px){
  .cc-big{font-size:40px}
  .cc-out{padding:20px}
}

/* ----------------------------------------------------------------------------
   PHONES. The repeating rows are laid out as a 4 or 5 column grid, which needs
   roughly 600px. On a handset that pushed the whole page sideways. Below 620
   they stack, which is also the better way to fill them in one-handed on site.
   The inline grid-template-columns on each row is why these need !important.
   -------------------------------------------------------------------------- */
@media (max-width:620px){
  .cc-item{grid-template-columns:1fr!important;gap:10px;padding:14px 0}
  .cc-del{width:100%}
  .cc-out{padding:18px;border-radius:12px}
  .cc-big{font-size:34px;overflow-wrap:anywhere}
  .cc-row{font-size:13.5px;gap:10px}
  .cc-risk{grid-template-columns:1fr 1fr}
}
