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: 100px;
}

footer a {
    color: white !important;
}

.content {
    flex: 1 0 auto;    
}

header, footer {
    background-color: #343a40;
    color: white;
    padding: 1rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
}

.swiper {
    width: 100%;
    height: 300px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 680px) {
    header .container {
        flex-direction: column;
        align-items: flex-start !important;
    }

    header .text-end {
        text-align: left !important;
    }
}

.tire-diagram {
    position: relative;
    width: 300px;
    height: 320px;
}

.tire-input {
    position: absolute;
    width: 60px;
}

.front-left {
    top: 28%;
    left: 60px;
}

.front-right {
    top: 28%;
    right: 60px;
}

.rear-left {
    bottom: 36%;
    left: 60px;
}

.rear-right {
    bottom: 36%;
    right: 60px;
}

.add-photo {
    /* Fluid: cap at the legacy 400px but never exceed the column width so col-6
       layouts on portrait iPad / split-view no longer overflow horizontally.
       aspect-ratio preserves the original 400x300 (4:3) proportion. */
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 3;
    background-color: #E0E0E0;
    text-align: center;
    align-content: center;
    font-weight: 500;
    border: 1px solid #C0C0C0;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

.add-photo-sm {
    /* Cap at the legacy 270px (270x202 ~ 4:3) but stay within the column. */
    max-width: 270px;
}

.add-photo i {
    font-size: 50px;    
}

.input-validation-error {
   border-color: #dc3545;
}

input.changed {
    border-color: #5773FF;
}

.pxc-thumbnail {
    cursor: zoom-in;
}

.upload-preview {
    max-height: 100%;
}

.logo {
    /* responsive image */
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: center;
    max-width: 80px;
    max-height: 80px;
}

/* ---------------------------------------------------------------------------
   Admin "Grundeinstellungen" section editors (AM-6964). All rules are scoped
   under .te-settings so they cannot leak onto the job/inspection pages, which
   share the same Bootstrap card / row / form-check primitives.
   --------------------------------------------------------------------------- */
.te-settings {
    max-width: 720px;
}

.te-settings .card-header {
    background-color: var(--bs-primary);
    color: #fff;
    font-weight: 700;
}

/* Each field row (a row that carries Sichtbar/Pflicht checkboxes): label grows
   to fill, controls hug the right at a consistent width, separated by a thin
   divider instead of wide empty grid gaps. Rows without a .form-check (e.g. a
   text/number input row) are left as normal Bootstrap rows. */
.te-settings .card-body .row:has(.form-check) {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.te-settings .card-body .row:has(.form-check):last-child {
    border-bottom: 0;
}

.te-settings .card-body .col-form-label {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    font-weight: 500;
    padding-left: 0;
}

.te-settings .card-body .form-check {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    min-width: 8.5rem;
}

/* The section's master "Sektion aktivieren" toggle sits directly in the body
   (not inside a row); keep it full width and slightly emphasised. */
.te-settings .card-body > .form-check:first-child {
    min-width: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
}