/*!
* haiko.css Whatsapp 
*/
:root {
  --tblr-primary: #038479;
  /* Nuevo color primario */
  --tblr-primary-rgb: 3, 132, 121;
  --tblr-secondary: #2c603b;
  /* Nuevo color secundario */
  --tblr-secondary-rgb: 56, 118, 75;
  --tblr-bg-surface-tertiary: #E1F5EE;
  /*--tblr-body-bg:var(--tblr-primary);*/
  --tblr-tabler: var(--tblr-primary);
  --tblr-link-color-rgb: var(--tblr-primary-rgb);
  --tblr-info: var(--tblr-secondary);
  --tblr-body-color: var(--tblr-secondary);
  --tblr-body-color-rgb: var(--tblr-secondary-rgb);
  --tblr-icon-color: var(--tblr-primary);
  --text-color-dokia: #444;

}

@media (min-width: 1200px) {

  .container-xxl,
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 98%;
  }
}

@media (min-width: 1600px) {

  .container-xxl,
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 95%;
  }
}



/*
@media (min-width: 1500px) {

  .container-xxl,
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 1420px;
  }
}

@media (min-width: 1780px) {

  .container-xxl,
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 1700px;
  }
}

@media (min-width: 2320px) {

  .container-xxl,
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 2240px;
  }
}

@media (min-width: 3600px) {

  .container-xxl,
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 3520px;
  }
}
*/

.border-primary {
  border-color: var(--tblr-primary) !important;
}

;

/* module profile photo */
.upload-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
}

.camera {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #f1f1f1;
  /*display: flex;*/
  align-items: center;
  justify-content: center;
  position: relative;
}

.camera img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.image_container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.cropbutton {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.cropbutton:hover {
  background-color: #0056b3;
}



.dropdown-toggle:after {
  content: "";
  display: inline-block;
  vertical-align: .306em;
  width: .36em;
  height: .36em;
  border-bottom: 1px !important;
  border-left: 1px !important;
  margin-right: .1em;
  margin-left: .4em;
  transform: rotate(-45deg);
}


.zoom-container {

  overflow: hidden;
  /* Oculta el desbordamiento de la imagen */
  position: relative;
}

.zoom-image {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
  /* Transición suave */
}

.zoom-image:hover {
  transform: scale(1.5);
  /* Amplía la imagen al 150% */
}


/*  resolver conflicto entre tabler.min.css and bootstrap.css*/

.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
  padding-right: calc(var(--tblr-gutter-x) * 0.5) !important;
  padding-left: calc(var(--tblr-gutter-x) * 0.5) !important;

}

.page-link-haiko {

  line-height: 19.75px !important;


}

/* globals */

.select2-w100 {
  width: 100% !important;
}



.input-w100 {
  width: 100% !important;

}

.div-w100 {
  width: 100% !important;

}

.div-w50 {
  width: 50% !important;

}

.td-w40 {
  width: 40% !important;

}

.td-w50 {
  width: 50% !important;

}

.td-w80 {
  width: 80% !important;

}


.height50 {
  height: 50px !important;
}

.height30 {
  height: 30px !important;
}

.font-xx-small {  
  font-size: xx-small !important;
}

.font-x-small {  
  font-size: x-small !important;
}

.break-text-custom {
  white-space: normal;
}

.link-red {
  cursor: pointer;
  color:red
}

.link-green {
  cursor: pointer;
  color:green
}

.flex-fill-custom {
  flex: 1 1 auto !important;
  position: relative;

}

.full-image {
			max-width: 100%; /* Make the image responsive */
			height: 100%;
			display: block;
			margin: 0 auto;
	}

.min-vw-100px {
    min-width: 100px;
}

.min-vw-150px {
    min-width: 150px;
}

.min-vw-80px {
    min-width: 80px;
}

.witdh-150px {
    width: 150px !important;
}

.witdh-120px {
    width: 120px !important;
}

.witdh-80px {
    width: 80px !important;
}

.hr1em {
    margin: 1rem 0 !important;
}

.w-2-5 {
    width: 2.5% !important;
}

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

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

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

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

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

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

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

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

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

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

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

.card-mosaic-v2 {
		height: 310px !important;
}

body {
   color: var(--text-color);
}

text-secondary-dokia {
   color: var(--text-color-dokia) !important;
}

/* Flash Messages - Floating Toast Style */
.flash-messages-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 600px;
  width: calc(100% - 40px);
  pointer-events: none;
}

.flash-message {
  pointer-events: auto;
  margin-bottom: 12px;
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

.flash-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.12);
}

.flash-message.hiding {
  animation: slideOutUp 0.6s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideOutUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
}

.flash-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.flash-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flash-text {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.flash-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-left: 12px;
  flex-shrink: 0;
  opacity: 0.7;
}

.flash-close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.1);
}

/* Success - Elegant Green */
.flash-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-left: 4px solid #28a745;
}

.flash-success .flash-icon svg,
.flash-success .flash-close svg {
  stroke: #28a745;
}

/* Danger - Elegant Red */
.flash-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.flash-danger .flash-icon svg,
.flash-danger .flash-close svg {
  stroke: #dc3545;
}

/* Warning - Elegant Orange */
.flash-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  color: #856404;
  border-left: 4px solid #ffc107;
}

.flash-warning .flash-icon svg,
.flash-warning .flash-close svg {
  stroke: #f0ad4e;
}

/* Info - Elegant Blue */
.flash-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

.flash-info .flash-icon svg,
.flash-info .flash-close svg {
  stroke: #17a2b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .flash-messages-container {
    top: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    width: calc(100% - 20px);
  }

  .flash-message {
    padding: 12px 14px;
  }

  .flash-text {
    font-size: 13px;
  }
}

/* ============================================================================
   OCULTAR PAGE LOADER PERMANENTEMENTE - No queremos ver "Preparing application"
   ============================================================================ */
#page-loader {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* ============================================================================
   SIDEBAR ACTIVE STATE - Client edit sidebar (Business Settings menu)
   ============================================================================ */
.list-group-item.active {
  background-color: rgba(3, 132, 121, 0.12) !important;
  border-color: transparent !important;
  color: var(--tblr-primary) !important;
  font-weight: 600 !important;
  margin-right: 8px !important;
}

.list-group-item.active:hover {
  background-color: rgba(3, 132, 121, 0.18) !important;
}

/* Hover para items NO activos - mismo estilo coherente */
.list-group-transparent .list-group-item:not(.active):hover {
  background-color: rgba(3, 132, 121, 0.08) !important;
  border-color: transparent !important;
  margin-right: 8px !important;
}

/* ============================================================================
   NOTIFICATION PULSE ANIMATION - Discarded documents badge
   ============================================================================ */
@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 57, 57, 0.7);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 4px rgba(214, 57, 57, 0);
    opacity: 0.8;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214, 57, 57, 0);
    opacity: 1;
  }
}

/* ============================================================================
   PROCESSING BADGE ANIMATION - Dynamic pulse + icon spin + glow
   ============================================================================ */

/* Animación 1: Pulso dinámico del badge (respiración + escala + brillo) */
@keyframes badge-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(134, 142, 150, 0.4);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.05);
    box-shadow: 0 0 8px 2px rgba(134, 142, 150, 0.3);
  }
}

/* Animación 2: Rotación rápida del icono loader */
@keyframes icon-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Aplicar animaciones al badge de Processing */
.badge-processing {
  animation: badge-pulse 1.5s ease-in-out infinite;
}

/* Aplicar rotación al icono dentro del badge de Processing */
.badge-processing svg {
  animation: icon-spin 1.2s linear infinite;
}
/* Marcador visual de campos obligatorios en formularios.
   Aplicar la clase `required-field` al `form_label` del campo y se
   añade automáticamente un asterisco rojo al final de la etiqueta.
   Usado para que el admin distinga obligatorio vs opcional sin tener
   que probar a guardar el form para que falle la validación. */
.required-field::after {
  content: " *";
  color: #dc3545;
  font-weight: 700;
  margin-left: 2px;
}
