/* Additions for the line price, extra work and jobs per month pages; the base look is margin-calc.css (.mc-*). */
.ct-group { display: grid; gap: 14px; min-width: 0; }
.ct-group + .ct-group { padding-top: 20px; border-top: 1px solid var(--line); }
.ct-group-heading, .ct-rows-heading, .ct-copy-heading { margin: 0; font: 600 19px/1.25 Outfit, Inter, sans-serif; letter-spacing: -0.01em; color: var(--navy); }
.ct-group-note { font-size: 14px; color: var(--muted); }

.ct-rows-block { display: grid; gap: 12px; min-width: 0; }
.ct-rows { display: grid; gap: 12px; min-width: 0; }
.ct-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 10px 12px; align-items: end; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.ct-row.is-changes { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)) 44px; }
.ct-row.is-changes .ct-wide { grid-column: 1 / -1; }
.ct-cell { display: grid; gap: 4px; min-width: 0; }
.ct-cell-label { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.ct-cell .mc-input { display: flex; }
.ct-cell select { width: 100%; min-height: 48px; padding: 0 10px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white); color: var(--ink); font: 400 16px Inter, system-ui, sans-serif; }
.ct-cell select:focus-visible { outline: 3px solid var(--ring); outline-offset: 1px; border-color: var(--navy); }
.ct-remove { width: 44px; height: 48px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white); color: var(--muted); font: 400 22px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.ct-remove:hover { color: var(--error); border-color: #b4441f; }
.ct-remove:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.ct-row-error { grid-column: 1 / -1; }
.ct-rows-block > .btn { justify-self: start; }
.ct-or { align-self: center; font-size: 13px; color: var(--muted); text-align: center; }

.ct-vat { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.ct-vat legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; font: 600 19px/1.25 Outfit, Inter, sans-serif; color: var(--navy); }
.ct-vat legend + * { clear: both; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip { position: relative; }
.ct-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ct-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--white); font-size: 16px; color: var(--ink); cursor: pointer; }
.ct-chip input:checked + span { background: var(--brand-navy); border-color: var(--navy); color: #fff; }
.ct-chip input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }

.ct-copy { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.ct-copy-heading { color: #fff; font-size: 17px; }
.ct-copy-text { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font: 400 16px/1.5 Inter, system-ui, sans-serif; resize: vertical; }
.ct-copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ct-copy-done { color: var(--orange); }
.ct-copy .mc-small { color: #C3CADA; }
.ct-big-row { display: grid; gap: 2px; }
.ct-block { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.ct-block-heading { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: #fff; }

@media (max-width: 720px) {
  .ct-row, .ct-row.is-changes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-row .ct-wide { grid-column: 1 / -1; }
  .ct-remove { grid-column: 1 / -1; width: 100%; height: 44px; }
}
.ct-two .mc-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) {
  .ct-two .mc-choices { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .ct-row.is-changes label:nth-child(2) { grid-column: 1 / -1; }
}
