﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.form-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #ddd;
}

.form-header-image {
  max-height: 120px;
  width: auto;
}

.tvc-logo {
  max-height: 80px;
  width: auto;
}

.tvc-address {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.2;
}

.header-grid {
  display: grid;
  grid-template-columns: max-content 1fr max-content 1fr;
  column-gap: 1rem;
  row-gap: 0.75rem;
  align-items: center;
}

.header-grid label {
  white-space: nowrap; /* keep labels on one line */
}

/* Cabinet specs*/
.spec-card {
  border: 1px solid #c9dfc6;
}

.spec-table th, .spec-table td {
  border-color: #b9d2b5 !important;
}

.spec-table th[scope=row] {
  white-space: nowrap;
  width: 20%;
}

svg.img-fluid {
  width: 100%;
  height: auto;
  display: block;
}

[data-component=cabinet-specs] svg.img-fluid {
  display: block; /* not inline */
  width: 100%; /* responsive width */
  height: auto; /* scale height from width */
  aspect-ratio: 880/180; /* ensures a real layout height */
}

[data-component=cabinet-specs] svg [stroke] {
  vector-effect: non-scaling-stroke;
}

/* Standard features */
.included-features {
  background: #fff; /* white background */
  border: 1px solid #e0e0e0; /* neutral outer border */
}

.if-title {
  color: #222; /* neutral heading colour */
  font-size: 1.1rem;
}

.if-section {
  border: 1px solid #e0e0e0; /* neutral inner borders */
  background: #fff; /* white section cards */
  padding: 0.75rem 0.9rem;
}

.if-section-header {
  font-weight: bold;
  color: #333; /* neutral header text */
  border-bottom: 2px solid #e0e0e0; /* neutral divider */
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
}

.if-list {
  padding-left: 1.1rem;
  margin-bottom: 0.25rem;
}

.if-list > li {
  margin-bottom: 0.25rem;
}

.if-subheading {
  font-weight: 600;
  color: #444;
}

/* Table: neutral borders, no green header */
.if-table {
  border-color: #e0e0e0 !important;
}

.if-table thead th {
  background: #f6f6f6; /* light grey header */
  color: #222;
  border-color: #e0e0e0 !important;
}

.if-table td, .if-table th {
  border-color: #e0e0e0 !important;
  vertical-align: middle;
}

/* Print styles (A4 friendly) */
@media print {
  .included-features {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background: #fff !important;
    border: 1px solid #e0e0e0;
    padding: 14mm;
  }
  .if-table thead th {
    background: #efefef !important; /* ensure header tint prints */
  }
  @page {
    size: A4;
    margin: 0mm;
  }
}
/* Hide UI that shouldn't be in the PDF */
@media print {
  /* Anything with .no-print will vanish */
  .no-print {
    display: none !important;
  }
  /* Common app chrome you may want to hide */
  header, nav, footer, .sidebar, .toolbar, .btn, .pagination {
    display: none !important;
  }
  /* Page size/margins (margins can also be set from Puppeteer; either works) */
  @page {
    size: A4; /* or 'Letter' */
    margin: 0mm; /* keep it in sync with the server options */
  }
  /* Make colors render as on-screen when printing */
  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  /* Typography tweaks for print */
  body, html {
    font-size: 12px;
    line-height: 1.35;
  }
  /* Control page breaks */
  .page-break {
    page-break-before: always;
  }
  .avoid-break {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  /* Tables: avoid splitting header rows across pages */
  table {
    page-break-inside: auto;
    border-collapse: collapse;
    width: 100%;
  }
  thead {
    display: table-header-group;
  }
  /* repeat header on each page */
  tr, td, th {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  details {
    margin: 0 0 1rem 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  summary {
    font-weight: bold;
  }
  /* If you don't want the disclosure triangle icon in print:
        summary::-webkit-details-marker { display: none; } */
}
/* Optional: on-screen you still see the buttons */
.no-print {
  display: inline-block;
}
