.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,
body.theme-dark .item,
body.theme-dark .modal-content{
  background: var(--card-bg);
  border-color: var(--border);
}

body.theme-dark .device{
  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 .modal-title,
body.theme-dark .modal-body,
body.theme-dark .modal-body p,
body.theme-dark .name,
body.theme-dark .additional-item .title,
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 .additional-item .hint{
  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 .icon-radio,
body.theme-dark .dropzone,
body.theme-dark .preview{
  background: #0f172a;
  border-color: var(--border);
}

body.theme-dark .icon-radio.ok{
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(34, 197, 94, 0.5);
  color: #86efac;
}

body.theme-dark .icon-radio.no{
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fca5a5;
}

body.theme-dark .icon-radio.ok .icon{
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(134, 239, 172, 0.4);
}

body.theme-dark .icon-radio.no .icon{
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(252, 165, 165, 0.4);
}

body.theme-dark .choices input.ok:checked + .icon-radio.ok{
  background: linear-gradient(135deg, #16a34a, #15803d);
  border-color: #86efac;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}

body.theme-dark .choices input.no:checked + .icon-radio.no{
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border-color: #fca5a5;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}

body.theme-dark .choices input.ok:checked + .icon-radio.ok .icon,
body.theme-dark .choices input.no:checked + .icon-radio.no .icon{
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

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);
}

body.theme-dark #confirmModal .modal-content{
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

body.theme-dark #confirmModal .modal-header,
body.theme-dark #confirmModal .modal-footer{
  background: #0f172a;
  border-color: var(--border);
}

body.theme-dark #confirmModal .modal-body{
  background: #111827;
}

body.theme-dark #confirmModal .badge.bg-danger{
  background: #dc2626 !important;
  border: 1px solid rgba(252, 165, 165, 0.45);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
}

body.theme-dark #confirmModal .border.rounded.bg-light{
  background: #0f172a !important;
  border-color: var(--border) !important;
  border-radius: 16px !important;
  padding: 14px !important;
}

body.theme-dark #confirmModal .sig-box{
  height: 220px !important;
  border-radius: 14px;
  background:
    linear-gradient(#111827, #111827) padding-box,
    linear-gradient(135deg, rgba(96, 165, 250, 0.5), rgba(34, 197, 94, 0.35)) border-box;
  border: 1px solid transparent;
  padding: 8px;
}

body.theme-dark #signaturePad{
  border: 1px dashed #64748b !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
}

body.theme-dark #sigClear{
  color: #cbd5e1;
  border-color: #475569;
  background: #111827;
}

body.theme-dark #sigClear:hover{
  color: #ffffff;
  border-color: #94a3b8;
  background: #1f2937;
}

body.theme-dark #confirmModal .btn-outline-secondary{
  color: #cbd5e1;
  border-color: #475569;
}

body.theme-dark #confirmModal .btn-outline-secondary:hover{
  color: #ffffff;
  background: #1f2937;
  border-color: #94a3b8;
}

body.theme-dark #finalSubmit{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #16a34a);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
  font-weight: 700;
}
