body {
  background-color: black;
}

.w-10 {
  width: 10% !important;
}

.h-10 {
  height: 10% !important;
}

.h-15 {
  height: 15% !important;
}

.h-85 {
  height: 85% !important;
}

.litle-text {
  font-size: 6px;
}

.h-7 {
  height: 7% !important;
}

.h-90 {
  height: 90% !important;
}


img:not([src]),
img[src=""] {
  visibility: hidden; /* Oculta contenido pero mantiene espacio y borde */
}

.fixed-bottom-map-img-floor {
  position: fixed;
  right: 25vw;
  top: 27vh;
  height: 61vh;
  z-index: 1030;
}

.fixed-bottom-map-right {
  position: fixed;
  right: 0px;
  bottom: 100px;
  z-index: 1030;
}

.fixed-bottom-map-left {
  position: fixed;
  left: 0px;
  bottom: 100px;
  z-index: 1030;
}

.fixed-bottom-map-zoom {
  position: fixed;
  left: 40vw;
  bottom: 0vh;
  z-index: 1030;
  height: 10vh;
  width: 10vw;
}
.fixed-bottom-map-foto {
  position: fixed;
  left: 50vw;
  bottom: 0vh;
  z-index: 1030;
  height: 10vh;
  width: 10vw;
}
.fixed-bottom-map-parking {
  position: fixed;
  left: 60vw;
  bottom: 0vh;
  z-index: 1030;
  height: 10vh;
  width: 10vw;
}

.fixed-bottom-map-0 {
  position: fixed;
  left: 0px;
  top: 25vh;
  z-index: 1030;
  height: 25vh;
  width: 34vh;
  background: rgba(4, 4, 4, 0.1);
}
.fixed-bottom-map-1 {
  position: fixed;
  right: 0px;
  top: 25vh;
  z-index: 1030;
  height: 25vh;
  width: 34vh;
  background: rgba(4, 4, 4, 0.1);
}

.fixed-bottom-map-2 {
  position: fixed;
  right: 0px;
  bottom: 0px;
  z-index: 1030;
  height: 25vh;
  width: 34vh;
  background: rgba(4, 4, 4, 0.1);
}
.fixed-bottom-map-3 {
  position: fixed;
  left: 0px;
  bottom: 0px;
  z-index: 1030;
  height: 25vh;
  width: 34vh;
  background: rgba(4, 4, 4, 0.1);
}

.fixed-bottom-map-0 img {
  height: 25vh;
  width: 34vh;
}
.fixed-bottom-map-1 img {
  height: 25vh;
  width: 34vh;
}
.fixed-bottom-map-2 img {
  height: 25vh;
  width: 34vh;
}
.fixed-bottom-map-3 img {
  height: 25vh;
  width: 34vh;
}

.fixed-bottom-map-0 span {
  position: fixed;
  top: 25vh;
  left: 0vh;
  font-size: 2em;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
  color: black;
  background-color: white;
}
.fixed-bottom-map-1 span {
  position: fixed;
  top: 25vh;
  right: 0vh;
  font-size: 2em;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
  color: black;
  background-color: white;
}
.fixed-bottom-map-2 span {
  position: fixed;
  bottom: 0vh;
  right: 0vh;
  font-size: 2em;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
  color: black;
  background-color: white;
}
.fixed-bottom-map-3 span {
  position: fixed;
  left: 0vh; 
  bottom: 0vh;
  font-size: 2em;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
  color: black;
  background-color: white;
}



.fixed-img-live2-left {
  position: fixed;
  left: 0vw;
  top: 25vh;
  z-index: 1030;
  height: 75vh;
  width: 50vw;
}
.fixed-img-live2-right {
  position: fixed;
  right: 0vw;
  top: 25vh;
  z-index: 1030;
  height: 75vh;
  width: 50vw;
}
.fixed-span-live2-0 {
  position: fixed;
  top: 25vh;
  left: 0vh;
  font-size: 4em;
  /* right: 0px; */
  color: black;
  background-color: white;
  z-index: 1031;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
}
.fixed-span-live2-1 {
  position: fixed;
  top: 25vh;
  right: 0vh;
  font-size: 4em;
  color: black;
  background-color: white;
  z-index: 1031;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
}
.fixed-span-live2-2 {
  position: fixed;
  bottom: 0vh;
  right: 0vh;
  font-size: 4em;
  color: black;
  background-color: white;
  z-index: 1031;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
}
.fixed-span-live2-3 {
  position: fixed;
  left: 0vh; 
  bottom: 0vh;
  font-size: 4em;
  color: black;
  background-color: white;
  z-index: 1031;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
}


.fixed-img-live4-0 {
  position: fixed;
  left: 0px;
  top: 25vh;
  z-index: 1030;
  height: 37.5vh;
  width: 25vw;
}
.fixed-img-live4-1 {
  position: fixed;
  right: 0px;
  top: 25vh;
  z-index: 1030;
  height: 37.5vh;
  width: 25vw;
}
.fixed-img-live4-2 {
  position: fixed;
  right: 0px;
  bottom: 0vh;
  z-index: 1030;
  height: 37.5vh;
  width: 25vw;
}
.fixed-img-live4-3 {
  position: fixed;
  left: 0px;
  bottom: 0vh;
  z-index: 1030;
  height: 37.5vh;
  width: 25vw;
}
.fixed-img-live4-last {
  position: fixed;
  left: 25vw;
  bottom: 0vh;
  z-index: 1030;
  width: 50vw;
  height: 75vh;
}

.fixed-span-live4-0 {
  position: fixed;
  top: 25vh;
  left: 0vh;
  font-size: 2em;
  color: black;
  background-color: white;
  z-index: 1031;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
}
.fixed-span-live4-1 {
  position: fixed;
  top: 25vh;
  right: 0vh;
  font-size: 2em;
  color: black;
  background-color: white;
  z-index: 1031;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
}
.fixed-span-live4-2 {
  position: fixed;
  bottom: 0vh;
  right: 0vh;
  font-size: 2em;
  color: black;
  background-color: white;
  z-index: 1031;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
}
.fixed-span-live4-3 {
  position: fixed;
  left: 0vh; 
  bottom: 0vh;
  font-size: 2em;
  color: black;
  background-color: white;
  z-index: 1031;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
}
.fixed-span-live4-last-0 {
  position: fixed;
  top: 25vh;
  left: 25vw; 
  font-size: 3em;
  z-index: 1031;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
  padding: 0px, 1vh;
}
.fixed-span-live4-last-1 {
  position: fixed;
  top: 25vh;
  right: 25vw; 
  font-size: 3em;
  z-index: 1031;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
}
.fixed-span-live4-last-2 {
  position: fixed;
  bottom: 0vh;
  right: 25vw; 
  font-size: 3em;
  z-index: 1031;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
}
.fixed-span-live4-last-3 {
  position: fixed;
  bottom: 0vh;
  left: 25vw; 
  font-size: 3em;
  z-index: 1031;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
}


#lastplate {
  scroll-behavior: smooth;
}

.photo-size {
  width: 200px !important;
  z-index: 1000;
}

.json-container {
  width: 99% !important;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 100px !important;
  position: fixed;
  bottom: 30px;
  left: 10px;
}

#floatingWindow {
  position: fixed;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
}

#floatingWindow img {
  max-width: 100%;
  max-height: 100%;
  cursor: pointer;
}

.photo-size:hover,
.photo-size:active {
  width: 450px !important;
  z-index: 1000;
}

.button-size {
  height: 25vh !important;
}

.button-reset {
  position: fixed !important;
  right: 0 !important; /* Posición inicial */
  bottom: 400px !important;
  z-index: 1000 !important;
  width: 65px !important;
  height: 65px !important;
  border-radius: 75% !important;
  font-weight: bolder !important;
}

.button-upload {
  position: fixed !important;
  right: 0 !important; /* Posición inicial */
  bottom: 300px !important;
  z-index: 1000 !important;
  width: 65px !important;
  height: 65px !important;
  border-radius: 75% !important;
  font-weight: bolder !important;
}



.button-hide {
  position: fixed;
  right: 0px; /* Posición inicial */
  bottom: 150px;
  transition: right 2s ease; /* Transición en la propiedad 'right' */
}

/* Estilo cuando se aplica la clase .hide */
.button-hide.hide {
  right: -250px;
}

.cursor-pointer {
  cursor: pointer !important;
}

.push:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}
.btn:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

@font-face {
  font-family: 'Matricula Espanola';
  src: url('MESPREG.woff2') format('truetype');
  /* font-weight: normal;
  font-style: normal; */
}

.matricula-text {
  font-family: 'Matricula Espanola';
}

.caja {
  animation: cambiarColor 2s infinite;
}

@keyframes cambiarColor {
  0% { background-color: transparent; }
  40% { background-color: transparent; }
  50% { background-color: black; }
  60% { background-color: transparent; }
  100% { background-color: transparent; }
}

/* === view_records (dashboard oscuro) === */
.records-app {
  --rec-bg: #1a1d24;
  --rec-surface: #232730;
  --rec-surface-2: #2a2f39;
  --rec-border: #2e333d;
  --rec-accent: #0dcaf0;
  --rec-text: #e8eaed;
  --rec-text-dim: #8a929d;
  background-color: var(--rec-bg);
  color: var(--rec-text);
  font-family: 'Montserrat', sans-serif;
}

.records-app .records-header {
  background-color: var(--rec-bg);
  border-bottom: 2px solid var(--rec-accent);
}

.records-app .bg-light {
  background-color: var(--rec-surface) !important;
  color: var(--rec-text);
}

.records-app .input-group-text {
  background-color: var(--rec-surface-2);
  border-color: var(--rec-border);
  color: var(--rec-text-dim);
}

.records-app .form-control,
.records-app .form-select {
  background-color: var(--rec-surface-2);
  border-color: var(--rec-border);
  color: var(--rec-text);
}

.records-app .form-control::placeholder {
  color: var(--rec-text-dim);
}

.records-app .form-control:focus,
.records-app .form-select:focus {
  background-color: var(--rec-surface-2);
  border-color: var(--rec-accent);
  color: var(--rec-text);
  box-shadow: 0 0 0 0.15rem rgba(13, 202, 240, 0.25);
}

.records-table {
  --bs-table-bg: var(--rec-bg);
  --bs-table-color: var(--rec-text);
  --bs-table-striped-bg: var(--rec-surface);
  --bs-table-striped-color: var(--rec-text);
  --bs-table-hover-bg: rgba(13, 202, 240, 0.08);
  --bs-table-hover-color: var(--rec-text);
  --bs-table-border-color: var(--rec-border);
  margin-bottom: 0;
}

.records-table thead th {
  background-color: var(--rec-surface-2);
  color: var(--rec-text);
  border-bottom: 2px solid var(--rec-accent);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.75rem;
}

.records-table tbody tr {
  border-left: 3px solid transparent;
  transition: border-color 0.1s ease;
}

.records-table tbody tr.table-active {
  --bs-table-active-bg: rgba(13, 202, 240, 0.18);
  --bs-table-active-color: var(--rec-text);
  border-left-color: var(--rec-accent);
}

.records-table tbody td {
  vertical-align: middle;
  border-color: var(--rec-border);
}

.matricula-cell {
  font-family: 'Matricula Espanola', monospace;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.matricula-display {
  font-family: 'Matricula Espanola', monospace;
  font-size: 2.4rem;
  letter-spacing: 0.1em;
  background-color: #fff;
  color: #000;
  border: 3px solid #1a1d24;
  border-radius: 6px;
  padding: 0.4rem 1.2rem;
  display: inline-block;
}

.field-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--rec-text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.field-value {
  font-size: 1rem;
  color: var(--rec-text);
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  background-color: var(--rec-surface-2);
  border-radius: 4px;
  border-left: 2px solid var(--rec-border);
  min-height: 2.1rem;
  word-break: break-all;
}

.records-app .pagination .page-link {
  background-color: var(--rec-surface-2);
  border-color: var(--rec-border);
  color: var(--rec-text);
}

.records-app .pagination .page-item.active .page-link {
  background-color: var(--rec-accent);
  border-color: var(--rec-accent);
  color: #000;
}

.records-app .pagination .page-item.disabled .page-link {
  background-color: var(--rec-bg);
  color: var(--rec-text-dim);
}

.records-modal .modal-content {
  background-color: var(--rec-bg, #1a1d24);
  color: var(--rec-text, #e8eaed);
  border: 1px solid #2e333d;
}

.records-modal .modal-header {
  border-bottom: 2px solid var(--rec-accent, #0dcaf0);
}

.records-modal .nav-tabs {
  border-bottom-color: #2e333d;
}

.records-modal .nav-tabs .nav-link {
  color: #8a929d;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
}

.records-modal .nav-tabs .nav-link.active {
  color: var(--rec-accent, #0dcaf0);
  background: transparent;
  border-bottom-color: var(--rec-accent, #0dcaf0);
}

.records-modal .modal-footer {
  border-top-color: #2e333d;
}

.records-image {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background-color: #000;
  cursor: zoom-in;
  border: 1px solid var(--rec-border, #2e333d);
  border-radius: 4px;
}

.records-app .btn-outline-info.active {
  background-color: var(--rec-accent, #0dcaf0);
  color: #000;
  border-color: var(--rec-accent, #0dcaf0);
}

/* Layout panel/tabla con orientación dinámica */
.records-layout {
  display: flex;
  min-height: 0;
  min-width: 0;
}

.records-layout-horizontal {
  flex-direction: row;
}

.records-layout-vertical {
  flex-direction: column;
}

.records-panel {
  flex-shrink: 0;
  min-height: 0;
  min-width: 0;
  background-color: var(--rec-bg, #1a1d24);
  border-right: 1px solid var(--rec-border, #2e333d);
}

.records-layout-horizontal > .records-panel {
  width: 50%;
  height: 100%;
}

.records-layout-vertical > .records-panel {
  width: 100%;
  height: 50%;
  border-right: none;
  border-bottom: 1px solid var(--rec-border, #2e333d);
}

.records-content {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.records-images-panel {
  background-color: var(--rec-bg, #1a1d24);
}

/* Ajustes táctiles para 8" */
@media (max-width: 1024px) {
  .records-app .btn { min-height: 44px; }
  .records-app .btn-sm { min-height: 36px; }
  .records-app .form-control,
  .records-app .form-select,
  .records-app .input-group-text { min-height: 44px; font-size: 1rem; }
  .records-app .pagination .page-link { padding: .55rem .85rem; }
  .records-table tbody td { padding: 0.6rem 0.5rem; }
}
