/* Expansive soil tab only. Link this after styles.css. Do not paste it over the live stylesheet. */
.chip.copy { border-color: var(--danger); color: var(--danger); }
.chip.copy.on { background: var(--danger); color: #fff; border-color: var(--danger); }
.upload-note {
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 0 16px;
  font-size: 17px;
}
.pass-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.stage-lab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--navy);
}
.stage-lab input {
  font: inherit;
  min-height: 44px;
  border: 1px solid #b7c6d4;
  border-radius: 8px;
  padding: 0 10px;
  min-width: 8em;
  background: #fff;
  color: var(--ink);
}
.remove-chart {
  margin-left: auto;
  background: #fff;
  color: var(--danger);
  border: 1px solid #e4c8c8;
  font-size: 15px;
  font-weight: 650;
}
.remove-chart:hover { background: #fff6f6; }
table.zone-table { min-width: 0; width: 100%; border-collapse: collapse; color: #142033; }
table.zone-table th {
  background: #00205B;
  color: #fff;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  border-bottom: 3px solid #F5B800;
}
table.zone-table td { border-bottom: 1px solid #d5deea; color: #142033; }
table.zone-table tbody tr:nth-child(even) td { background: #f4f6f8; }
.out-list { margin: 0 0 12px; padding-left: 1.2em; }
.out-list li { margin: 4px 0; }
#chart-page canvas { width: 100%; max-width: 680px; height: auto; background: #fff; }
.chart-notes {
  margin: 10px 0 14px;
  padding: 0 0 0 1.15em;
  max-width: 680px;
  color: #1a1a1a;
  font-size: 12px;
  line-height: 1.35;
}
.chart-notes li { margin: 2px 0; }
.print-name {
  display: block;
  margin: 8px 0 6px;
  color: #00205B;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.print-banner { display: none; }

@page blackland-chart {
  size: letter;
  margin: 0.4in;
  @bottom-left {
    content: "Keller North America · Plano, Texas";
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 8.5pt;
    font-weight: 700;
    color: #00205B;
    vertical-align: top;
    padding-top: 6px;
    border-top: 3px solid #F5B800;
  }
  @bottom-center {
    content: "";
    border-top: 3px solid #F5B800;
    padding-top: 6px;
  }
  @bottom-right {
    content: counter(page);
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 8.5pt;
    font-weight: 700;
    color: #00205B;
    vertical-align: top;
    padding-top: 6px;
    border-top: 3px solid #F5B800;
  }
}

@media print {
  .upload-note, #chart-page { display: none !important; }
  body.printing-charts {
    page: blackland-chart;
  }
  body.printing-charts .top,
  body.printing-charts #work,
  body.printing-charts #info,
  body.printing-charts #lock,
  body.printing-charts .upload-note,
  body.printing-charts #chart-page .intro,
  body.printing-charts #chart-page .drop,
  body.printing-charts #print-sheet { display: none !important; }
  body.printing-charts #chart-page {
    display: block !important;
    max-width: none;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    color: #142033;
  }
  body.printing-charts #chart-page .pass-grid { display: block !important; }
  body.printing-charts #chart-page .card {
    break-before: auto;
    page-break-before: auto;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  body.printing-charts #chart-page .card:not(:has(canvas)) { display: none !important; }
  body.printing-charts #chart-page .print-figure,
  body.printing-charts #chart-page .print-follow {
    page: blackland-chart;
    margin: 0;
    padding: 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.printing-charts #chart-page .print-figure {
    break-before: page;
    page-break-before: always;
  }
  body.printing-charts #chart-page .card:first-child .print-figure {
    break-before: auto;
    page-break-before: auto;
  }
  body.printing-charts #chart-page .print-follow {
    break-before: page;
    page-break-before: always;
  }
  body.printing-charts #chart-page .card-head,
  body.printing-charts #chart-page .file-name,
  body.printing-charts #chart-page .unit-row,
  body.printing-charts #chart-page .warn { display: none !important; }
  body.printing-charts #chart-page .scroll { overflow: visible !important; }
  body.printing-charts #chart-page th { position: static !important; }
  body.printing-charts #chart-page .print-banner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
  }
  body.printing-charts #chart-page .print-logo {
    height: 28px;
    width: auto;
    display: block;
    flex: 0 0 auto;
  }
  body.printing-charts #chart-page .print-brand {
    margin: 0 0 0 auto;
    background: #000;
    color: #fff;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.26em;
    line-height: 1;
    padding: 6px 8px 6px 12px;
    white-space: nowrap;
  }
  body.printing-charts #chart-page .print-name {
    display: block !important;
    margin: 0 0 8px;
    text-align: left;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 11pt;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #00205B;
  }
  body.printing-charts #chart-page .print-figure canvas {
    display: block;
    width: auto !important;
    height: 8.7in !important;
    max-width: 100% !important;
    max-height: 8.7in !important;
    min-height: 0 !important;
    margin: 0 auto;
    border: none;
    border-radius: 0;
    background: #fff;
  }
  body.printing-charts #chart-page .zone-table {
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 10.5pt;
    color: #142033;
    width: 100%;
  }
  body.printing-charts #chart-page .zone-table th {
    background: #00205B !important;
    color: #fff !important;
    font-weight: 650;
    font-size: 9pt;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    border-bottom: 3px solid #F5B800;
    text-align: left;
  }
  body.printing-charts #chart-page .zone-table td {
    border: none;
    border-bottom: 1px solid #d5deea;
    color: #142033;
    text-align: left;
    font-variant-numeric: tabular-nums;
  }
  body.printing-charts #chart-page .zone-table tbody tr:nth-child(even) td {
    background: #f4f6f8 !important;
  }
  body.printing-charts #chart-page .chart-notes {
    max-width: none;
    margin: 12px 0 0;
    color: #142033;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.45;
  }
}

@media (min-width: 900px) {
  #chart-page .pass-grid { grid-template-columns: 1fr 1fr; }
}
