.digital-clock{
    font-size: 10px !important;
}

#langDropdown{
    font-size: 10px;
}

.language-dropdown .dropdown-item{
    font-size: 10px;
}

.language-dropdown .dropdown-menu{
    min-width: 30px;
}



.language-dropdown #langDropdown img{
    margin-right: 5px;
}

.language-dropdown .lang-option img{
    margin-right: 5px;
}

.info-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  text-align: center;
  color: #555;
  max-width: 90%;
  margin-top: 40px;
}

.checklist{
max-width: 820px;
margin: 0 auto;
display: grid;
gap: 14px;
}

.item{
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
gap: 16px;
padding: 18px 20px;
background: var(--card);
border: 1px solid rgba(255,255,255,0.06);
border-radius: var(--radius);
box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.title{
font-size: 1.05rem;
font-weight: 600;
letter-spacing: .2px;
color: #000
}
.hint{ display:block; font-size: .85rem; color: var(--muted); margin-top: 4px; }

.choices{
display: inline-flex;
align-items: center;
gap: 14px;
}

/* Visually hide radios but keep accessible */
.choices input[type="radio"]{
position: absolute;
opacity: 0;
width: 0; height: 0;
}

/* Icon radio button */
.icon-radio{
--btn-bg: rgb(255, 255, 255);
--btn-bd: rgb(255, 255, 255);
--btn-fg: var(--muted);
display: inline-flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
border-radius: 999px;
background: var(--btn-bg);
border: 1px solid var(--btn-bd);
cursor: pointer;
user-select: none;
transition: transform .06s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
color: var(--btn-fg);
text-decoration: none;
font-weight: 600;
outline: none;
}

.icon-radio.no.additional{
    margin-right: 25px;
}

.icon-radio .icon{
width: var(--icon);
height: var(--icon);
display: grid;
place-items: center;
border-radius: 50%;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.10);
}
.icon svg{ width: 60%; height: 60%; }

/* Hover/focus */
.icon-radio:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.18); }
.choices input[type="radio"]:focus + .icon-radio{ box-shadow: 0 0 0 4px color-mix(in srgb, var(--ring) 35%, transparent); }

/* OK button baseline + checked state */
.icon-radio.ok      { --btn-fg: color-mix(in srgb, var(--ok) 65%, #ffffff); }
.choices input.ok:checked + .icon-radio.ok{
background:  #ffffff;
border-color: color-mix(in srgb, var(--ok) 55%, transparent);
color: color-mix(in srgb, var(--ok) 65%, #ffffff);
}
.choices input.ok:checked + .icon-radio.ok .icon{
background: color-mix(in srgb, var(--ok) 18%, #ffffff);
border-color: color-mix(in srgb, var(--ok) 45%, transparent);
}
.choices input.ok:checked + .icon-radio.ok svg{ filter: drop-shadow(0 2px 6px rgba(22,163,74,.45)); }

/* Not OK button baseline + checked state */
.icon-radio.no      { --btn-fg: color-mix(in srgb, var(--no) 65%, #fee2e2); }
.choices input.no:checked + .icon-radio.no{
background: #ffffff;
border-color: color-mix(in srgb, var(--no) 55%, #ffffff);
color: color-mix(in srgb, var(--no) 55%, #ffffff);
}
.choices input.no:checked + .icon-radio.no .icon{
background: color-mix(in srgb, var(--no) 18%, #ffffff);
border-color: color-mix(in srgb, var(--no) 45%, transparent);
}
.choices input.no:checked + .icon-radio.no svg{ filter: drop-shadow(0 2px 6px rgba(220,38,38,.45)); }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce){
.icon-radio{ transition: none; }
}

/* Mobile stack */
@media (max-width: 560px){
.item{ grid-template-columns: 1fr; }
.choices{ justify-content: space-between; }
}


.evidence { margin-top: 14px; }
.upload { display: grid; gap: 10px; }

.dropzone {
display: grid; place-items: center; text-align: center;
padding: 18px; border: 2px dashed #cbd5e1; border-radius: 14px;
background:#f9fafb; color:#475569; cursor: pointer;
transition: border-color .2s, background .2s, transform .06s;
}
.dropzone:hover { border-color:#94a3b8; background:#f3f4f6; transform: translateY(-1px); }
.dropzone--dragover { border-color:#2563eb; background:#eff6ff; }

.dz-icon { width: 44px; height:44px; margin-bottom:8px; color:#64748b; }
.dz-title { font-weight: 600; }
.dz-hint  { font-size:.9rem; color:#64748b; }

.preview { display:flex; align-items:center; gap:12px; padding:10px 12px; background:#fff;
            border:1px solid #e5e7eb; border-radius:12px; }
.preview img { width:64px; height:64px; object-fit:cover; border-radius:10px; border:1px solid #e5e7eb; }
.meta { flex:1; min-width:0; }
.name { display:block; font-weight:600; color:#111827; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.size { display:block; font-size:.85rem; color:#6b7280; }

.btn-clear {
border:1px solid #ef4444; color:#b91c1c; background:#fff;
padding:8px 10px; border-radius:999px; font-weight:600; cursor:pointer;
}
.btn-clear:hover { background:#fee2e2; }

.item { grid-template-columns: 1fr auto; } /* you already have this */
.evidence {
  grid-column: 1 / -1;  /* full width */
  width: 100%;
}

/* Ensure inner upload UI also fills */
.evidence .upload,
.evidence .dropzone,
.evidence .preview {
  width: 100%;
  box-sizing: border-box;
}

.additional-item .additional-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;          /* space between text and buttons */
}

.additional-item .info {
    display: flex;
    flex-direction: column;
}

.additional-item .title {
    font-weight: 600;
    display: block;
}

.additional-item .hint {
    font-size: 0.85rem;
    color: #777;
    display: block;
}

/* make sure the buttons stay on one line nicely */
.additional-item .choices {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}


.trailer-select-wrap{
  margin-right: 20px;
}


/* Shared width for UL and the actions bar */
:root{
  --sheet-max: clamp(320px, 92vw, 900px);
}

/* Your existing list width (keep this if you already set it) */
.checklist{
  width: 100%;
  max-width: var(--sheet-max);
  margin: 0 auto;            /* center */
  padding-inline: 12px;
}

/* Evidence still full width inside each card */
.evidence{ grid-column: 1 / -1; width: 100%; }
.evidence .upload, .evidence .dropzone, .evidence .preview{ width: 100%; box-sizing: border-box; }

/* Bottom actions bar (non-sticky) */
.form-actions{
  width: 100%;
  max-width: var(--sheet-max);  /* same width as the cards/UL */
  margin: 16px auto 0;          /* under the UL and centered */
  padding: 12px;
  box-sizing: border-box;
  text-align: center;
}

/* Pretty primary button */
.btn-pretty{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;                 /* full width on mobile */
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, #b9bec8 0%, #989fb2 50%, #95a8b1 100%);
  box-shadow: 0 8px 20px rgba(191, 200, 219, 0.25);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-pretty:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(191, 200, 219, 0.50);
  cursor: pointer;
  filter: brightness(1.02);
}
.btn-pretty:active{
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(191, 200, 219, 0.50);
  cursor: pointer;
}
.btn-pretty:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(191, 200, 219, .60), 0 8px 20px rgba(191, 200, 219, 0.60);
  cursor: pointer;
}
.btn-pretty:disabled{
  opacity: .6;
  cursor: not-allowed;
  filter: grayscale(.15);
}

/* Optional icon circle inside the button */
.btn-pretty .icon{
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.btn-pretty svg{ width: 60%; height: 60%; }

/* On wider screens, let the button shrink to content */
@media (min-width: 560px){
  .btn-pretty{ width: auto; min-width: 240px; }
}


#confirmModal .modal-body p{
    color: #000000;
}

body.theme-light{
  --bg: #f6f9fc;
  --card-bg: #ffffff;
  --card: #ffffff;
  --brand: #0f172a;
  --text: #0f172a;
  --muted: #6B7280;
  --border: #e2e8f0;
  --input-bg: #ffffff;
  --loader-bg: rgba(255, 255, 255, 0.85);
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
}

body.theme-dark{
  --bg: #0b1220;
  --card-bg: #111827;
  --card: #111827;
  --brand: #f8fafc;
  --text: #e5edf7;
  --muted: #9ca3af;
  --border: #2f3a4a;
  --input-bg: #0f172a;
  --loader-bg: rgba(11, 18, 32, 0.9);
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}

body.theme-light .device,
body.theme-light .device .header,
body.theme-light .navbar.bg-grey,
body.theme-light .bg-grey{
  background-color: #ffffff !important;
}

body.theme-dark .device{
  background: var(--card-bg);
  border: 1px solid var(--border);
}

body.theme-dark .device .header img.logo{
  content: url("../img/login_logo_white.png");
  box-shadow: none;
  object-fit: contain;
}

body.theme-dark .navbar-brand img{
  content: url("../img/logo_white.png");
}

body.theme-dark .navbar.bg-grey,
body.theme-dark .bg-grey{
  background-color: #111827 !important;
}

body.theme-light .navbar.bg-grey,
body.theme-light .bg-grey{
  border-bottom: 1px solid #e5e7eb;
}

body.theme-dark .navbar{
  border-bottom-color: var(--border);
}

body.theme-dark .brand,
body.theme-dark .title,
body.theme-dark .driver-code,
body.theme-dark .unit-name,
body.theme-dark .name,
body.theme-dark .control input{
  color: var(--text) !important;
}

body.theme-light .driver-code{
  color: #0f172a;
}

body.theme-dark .subtitle,
body.theme-dark label,
body.theme-dark .hint,
body.theme-dark .unit-registration,
body.theme-dark .info-text,
body.theme-dark .foot,
body.theme-dark .icon,
body.theme-dark .toggle,
body.theme-dark .dz-hint,
body.theme-dark .size,
body.theme-dark .unit-type,
body.theme-dark .legend span,
body.theme-dark .text-muted{
  color: var(--muted) !important;
}

body.theme-dark .control,
body.theme-dark .form-control,
body.theme-dark .custom-select,
body.theme-dark select,
body.theme-dark textarea{
  background: var(--input-bg);
  border-color: var(--border);
  color: var(--text);
}

body.theme-dark .control:focus-within,
body.theme-dark .form-control:focus{
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96,165,250,.18);
}

body.theme-dark .control input::placeholder,
body.theme-dark textarea::placeholder{
  color: #64748b;
}

body.theme-dark .unit-card{
  background: var(--card-bg);
  border-color: #3b82f6;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

body.theme-dark .axle-row{
  background: #0f172a;
  border-color: var(--border);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

body.theme-dark .axle-bridge,
body.theme-dark .axle-bridge-vert{
  background: #64748b;
}

body.theme-dark .tire-block{
  border-color: rgba(248, 250, 252, 0.75);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

body.theme-dark .status-stale{
  color: #111827;
}

body.theme-dark .status-unknown{
  background: #475569;
  color: #f8fafc;
}

body.theme-dark .sil-wrap,
body.theme-dark .dropzone,
body.theme-dark .preview{
  background: #0f172a;
  border-color: var(--border);
}

body.theme-dark .dropzone{
  color: var(--muted);
}

body.theme-dark .btn-clear{
  background: #111827;
}

body.theme-dark .dropdown-menu{
  background-color: var(--card-bg);
  border-color: var(--border);
}

body.theme-dark .dropdown-item,
body.theme-dark #langDropdown{
  color: var(--text);
}

body.theme-dark #langDropdown{
  border-color: var(--border);
}

body.theme-dark .dropdown-item:hover,
body.theme-dark .dropdown-item:focus{
  color: var(--text);
  background-color: #1f2937;
}

body.theme-dark #loader{
  background-color: var(--loader-bg);
}

.mobile-units-container{
  width: auto;
  max-width: none;
  margin-left: max(10px, env(safe-area-inset-left));
  margin-right: max(10px, env(safe-area-inset-right));
  padding-left: clamp(6px, 1.5vw, 16px);
  padding-right: clamp(6px, 1.5vw, 16px);
}

.mobile-units-container > .row{
  margin-left: 0;
  margin-right: 0;
}

.mobile-units-container [class*="col-"]{
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.mobile-units-container .unit-card{
  border-radius: 16px;
  width: 100%;
  margin: 6px auto;
}

.mobile-units-container .unit-card-hz .axles-wrap{
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: clamp(4px, 1vw, 10px) !important;
  overflow: visible;
  padding: 4px 2px 8px;
}

.mobile-units-container .axle-row{
  flex: 1 1 0;
  min-width: 0;
  max-width: 180px;
  margin-right: 0;
  padding: clamp(7px, 1.4vw, 12px) clamp(6px, 1.4vw, 14px);
}

.mobile-units-container .tire-row{
  gap: clamp(2px, 0.8vw, 6px) !important;
  justify-content: center;
}

.mobile-units-container .tire-block{
  box-sizing: border-box;
  flex: 0 0 auto;
  width: clamp(42px, 6.1vw, 58px);
  height: clamp(54px, 7.3vw, 68px);
  margin: clamp(1px, 0.5vw, 4px);
  padding: 3px;
  overflow: hidden;
}

.mobile-units-container .tire-block > div{
  width: 100%;
  min-width: 0;
}

.mobile-units-container .tire-block .t-line{
  font-size: clamp(8px, 1.35vw, 12px);
  line-height: 1.05;
  white-space: nowrap;
}

.mobile-units-container .tire-block .t-sub,
.mobile-units-container .tire-block .t-id{
  font-size: clamp(7px, 1.1vw, 10px);
  line-height: 1.1;
  white-space: nowrap;
}

.mobile-units-container .tire-block .bar-unit{
  font-size: 0.86em;
}

@media (max-width: 767.98px){
  .mobile-units-container{
    margin-left: max(10px, env(safe-area-inset-left));
    margin-right: max(10px, env(safe-area-inset-right));
    padding-left: 5px;
    padding-right: 5px;
  }

  .mobile-units-container .unit-card{
    padding: 8px !important;
    margin: 6px auto;
  }

  .mobile-units-container .unit-name{
    font-size: 14px;
  }

  .mobile-units-container .axle-row{
    padding: 6px 4px;
    border-radius: 10px;
  }

  .mobile-units-container .tire-block{
    width: clamp(36px, 10vw, 42px);
    height: clamp(48px, 13vw, 56px);
    border-width: 1px;
    border-radius: 5px;
    padding: 2px;
  }

  .mobile-units-container .tire-block .t-line{
    font-size: clamp(7px, 2.3vw, 8px);
  }

  .mobile-units-container .tire-block .t-sub,
  .mobile-units-container .tire-block .t-id{
    font-size: clamp(6.5px, 2vw, 7.5px);
  }

  .mobile-units-container .axle-bridge-vert{
    height: 18px;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
  }
}
