.pace {
	-webkit-pointer-events: none;
	pointer-events: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none
}
.pace-inactive {
	display: none
}
.pace .pace-progress {
	background: linear-gradient(to right, #7928ca, #ff0080, #04e09a, #e0d504);
    -o-border-image: linear-gradient(to right, #7928ca, #ff0080, #04e09a, #e0d504) 1;
    border-image: linear-gradient(to right, #7928ca, #ff0080, #04e09a, #e0d504) 1;
	position: fixed;
	z-index: 2000;
	top: 0;
	right: 100%;
	width: 100%;
	height: 3px
}
.pace .pace-progress-inner {
	display: block;
	position: absolute;
	right: 0;
	width: 100px;
	height: 100%;
	box-shadow: 0 0 10px #0d6efd, 0 0 5px #0d6efd;
	opacity: 1;
	-webkit-transform: rotate(3deg) translate(0, -4px);
	-moz-transform: rotate(3deg) translate(0, -4px);
	-ms-transform: rotate(3deg) translate(0, -4px);
	-o-transform: rotate(3deg) translate(0, -4px);
	transform: rotate(3deg) translate(0, -4px)
}
.pace .pace-activity {
	display: block;
	position: fixed;
	z-index: 2000;
	top: 15px;
	right: 15px;
	width: 20px;
	height: 20px;
	border: solid 3px transparent;
	border-top-color: #0d6efd;
	border-left-color: #0d6efd;
	border-radius: 10px;
	-webkit-animation: pace-spinner .4s linear infinite;
	-moz-animation: pace-spinner .4s linear infinite;
	-ms-animation: pace-spinner .4s linear infinite;
	-o-animation: pace-spinner .4s linear infinite;
	animation: pace-spinner .4s linear infinite
}
/* =========================
   BOTÓN DISPARO (si lo usas sobre el video)
   ========================= */
.shutter-btn {
  font-size: 72px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  color: #c0392b;
}
.shutter-btn:active { transform: scale(0.96); }

/* =========================
   MODAL - comportamiento común
   ========================= */
#userListModal .modal-body { overflow: hidden; padding: 0; }

/* =========================
   MÓVIL (safe-area + 100vh real con --vh)
   ========================= */
@media (max-width: 575.98px) {
  #userListModal .modal-dialog { margin: 0; }
  #userListModal .modal-content {
    height: calc(var(--vh, 1vh) * 100);
    max-height: calc(var(--vh, 1vh) * 100);
    border-radius: 0;
  }

  /* Header visible y tocable (no se esconde tras notch) */
  #userListModal .modal-header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding-top: calc(env(safe-area-inset-top, 0px) + 0.25rem);
    padding-right: calc(env(safe-area-inset-right, 0px) + 0.25rem);
  }

  /* Área táctil grande para la X */
  #userListModal .primaery-menu-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: env(safe-area-inset-right, 0px);
  }
  #userListModal .modal-header .material-icons-outlined { font-size: 28px; }
}

/* =========================
   DESKTOP (sin scroll, altura repartida)
   ========================= */
@media (min-width: 576px) {
  #userListModal .modal-content {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 2rem);
    max-height: calc(100vh - 2rem);
  }
  #userListModal .modal-body {
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 0;
  }
  #userListModal .card,
  #userListModal .card-body,
  #userListModal .user-list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }
}

/* =========================
   ESCENARIO DE CÁMARA
   ========================= */
.cam-stage {
  position: relative;
  width: 100%;
  height: 100%;      /* la altura exacta la define el JS */
  min-height: 240px;
  background: #000;
  overflow: hidden;
}

/* Capas: vídeo y snapshot llenan el contenedor */
#userListModal #preview,
#userListModal #snapshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Preview visible por defecto (espejo); snapshot oculto hasta disparar */
#userListModal #preview { transform: scaleX(-1); display: block; z-index: 1; }
#userListModal #snapshot { display: none; z-index: 2; }

/* Canvas oculto y status compacto */
#userListModal #camCanvas { display: none; }
#userListModal #camStatus { margin: 0; }
 .order-list .order-img { width: 80px; height: 80px; flex: 0 0 80px; }
  .order-list .order-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* recorte uniforme */
    border-radius: .5rem;       /* similar a rounded-3 */
    display: block;
  }
/* assets/css/dashboard-ventas.css */

.dv-filters .form-label {
    font-size: 0.85rem;
}

.dv-vendedor-cell {
    min-width: 220px;
}

.dv-resumen-unidades {
    min-width: 260px;
    font-size: 0.85rem;
}

.dv-pill {
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}


.dv-icon-danger {
    color: #dc3545 !important;  /* rojo */
}

.dv-icon-warning {
    color: #ff9800 !important;  /* naranja */
}

.dv-icon-success {
    color: #28a745 !important;  /* verde */
}

.btn-zoom-chart {
    position: absolute;
    top: -10px;
    right: 0;
    z-index: 10;
    font-size: 0.75rem;
}

#chartDonutTipo {
    width: 50% !important;      /* 🔥 reduce el canvas al 50% */
    max-width: 500px !important; /* límite máximo */
    margin: 0 auto !important;   /* centrar */
    display: block !important;
}

.chart-container {
    position: relative;
    height: 460px;     /* 🔥 La altura que necesites */
    width: 100%;
    overflow: hidden;  /* 🔥 Evita que crezca infinito */
}

/* ================================
   XTINFIRE LOADER PRO
================================ */

.xtf-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.3s ease-in-out;
}

.xtf-loader.d-none {
    opacity: 0;
    pointer-events: none;
}

.xtf-loader-content {
    text-align: center;
    color: #fff;
}

/* --- Anillo rojo fuego --- */
.xtf-ring {
    width: 110px;
    height: 110px;
    border: 6px solid transparent;
    border-top-color: #dc3545;
    border-radius: 50%;
    margin: 0 auto 18px auto;
    animation: xtf-spin 1.1s linear infinite;
}

@keyframes xtf-spin {
    to { transform: rotate(360deg); }
}

/* --- Logo XTINFIRE — pulso --- */
.xtf-logo {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(220,53,69,0.8);
    animation: xtf-pulse 1.5s ease-in-out infinite;
}

@keyframes xtf-pulse {
    0%   { opacity: 1;   text-shadow: 0 0 12px rgba(220,53,69,0.8); }
    50%  { opacity: 0.6; text-shadow: 0 0 30px rgba(255,80,90,1); }
    100% { opacity: 1;   text-shadow: 0 0 12px rgba(220,53,69,0.8); }
}

/* --- Texto dinámico --- */
.xtf-loading-text {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

/* Entrada suave */
.xtf-loader {
    animation: xtfFadeIn 0.4s ease-out forwards;
}

@keyframes xtfFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 767.98px) {
    .dv-filters .btn {
        width: 100%;
    }
}


@-webkit-keyframes pace-spinner {
	0% {
		-webkit-transform: rotate(0);
		transform: rotate(0)
	}
	100% {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg)
	}
}
@-moz-keyframes pace-spinner {
	0% {
		-moz-transform: rotate(0);
		transform: rotate(0)
	}
	100% {
		-moz-transform: rotate(360deg);
		transform: rotate(360deg)
	}
}
@-o-keyframes pace-spinner {
	0% {
		-o-transform: rotate(0);
		transform: rotate(0)
	}
	100% {
		-o-transform: rotate(360deg);
		transform: rotate(360deg)
	}
}
@-ms-keyframes pace-spinner {
	0% {
		-ms-transform: rotate(0);
		transform: rotate(0)
	}
	100% {
		-ms-transform: rotate(360deg);
		transform: rotate(360deg)
	}
}
@keyframes pace-spinner {
	0% {
		transform: rotate(0);
		transform: rotate(0)
	}
	100% {
		transform: rotate(360deg);
		transform: rotate(360deg)
	}
}