/* Fonts */
@font-face {
    font-family: tommysoftbold;
    src: url('../media/fonts/tommy_soft_bold.ttf');
    font-weight: bold;
    font-style: normal;
  }
@font-face {
    font-family: tommysoftmedium;
    src: url('../media/fonts/tommy_soft_medium.ttf');
    font-weight:600;
    font-style: normal;
  }

@font-face {
    font-family: montserratExtraBold;
    src: url('../media/fonts/Montserrat-ExtraBold.ttf');
    font-style: normal;
}
@font-face {
    font-family: montserratBlack;
    src: url('../media/fonts/Montserrat-Black.ttf');
    font-style: normal;
}
@font-face {
    font-family: montserratBold;
    src: url('../media/fonts/Montserrat-Bold.ttf');
    font-style: normal;
}
@font-face {
    font-family: montserratSemiBold;
    src: url('../media/fonts/Montserrat-SemiBold.ttf');
    font-style: normal;
}
@font-face {
    font-family: montserratMedium;
    src: url('../media/fonts/Montserrat-Medium.ttf');
    font-style: normal;
}
@font-face {
    font-family: montserratRegular;
    src: url('../media/fonts/Montserrat-Regular.ttf');
    font-style: normal;
}
@font-face {
    font-family: montserratLight;
    src: url('../media/fonts/Montserrat-Light.ttf');
    font-style: normal;
}
html, body {
    height: 100%;
}
:root {
    --background-color: #ffffff;
    --default-color: #000000;
    --primary-color: #ff3c00;
    --secondary-color: #b43809;
    --primary-color2: #1057a4;
    --secondary-color2: #0c417b;
}

/* General style */
* {
    padding: 0;
    margin: 0;
   /* box-sizing: border-box;*/
}
.row {
    padding: 0;
}

/* Global Color */

h1 {
    font-family: tommysoftbold;
    font-size: 1.5rem;
    margin: 0;
}

h2 {
    font-family: tommysoftmedium;
    font-size: 1.2rem;
    color: var(--primary-color2);
    margin: 0;
}

h3 {
    font-family: montserratMedium;
    font-size: 1.2rem;
    margin: 0;
}

p {
    font-family: montserratMedium;
    font-size: 1rem;
}
.error {
    gap: 0.2rem;
    display: flex;
    font-family: montserratMedium;
    font-size: 0.8rem;
    color: var(--primary-color);
    margin: 0;
}
.btn-first {
    color: var(--background-color);
    background-color: var(--primary-color2);
    border-radius: 0.5rem;
    font-family: montserratMedium;
}

.btn-first:hover {
    color: var(--background-color);
    background-color: var(--secondary-color2);
    border: 0.1rem solid var(--background-color);
}

.btn-second {
    color: var(--background-color);
    background-color: var(--primary-color);
    border-radius: 0.5rem;
    font-family: montserratMedium;
}

.btn-second:hover {
    color: var(--background-color);
    background-color: var(--secondary-color);
    border: 0.1rem solid var(--background-color);
}

/* Para los field-box como en tool_group */
.custom-switch-container {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin: 20px;
}
  
.custom-switch-container .switch-group {
    display: flex;
    gap: 20px;
    font-family: sans-serif;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.custom-switch-container .switch-option {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
    height: 30px;
}

.custom-switch-container .switch-option input {
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-switch-container .slider {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 34px;
    transition: background-color 0.3s ease-in-out;
}

.custom-switch-container .slider::before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
}

.custom-switch-container .switch-option input:checked + .slider {
    background-color: #007BFF;
}

.custom-switch-container .switch-option input:checked + .slider::before {
    transform: translateX(20px);
}

.custom-switch-container .label-text {
    font-weight: 500;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
    color: #333;
}

.custom-switch-container .switch-option input:checked ~ .label-text {
    color: #007BFF;
    transform: scale(1.1);
}

.message-bubble {
    border-radius: 12px;
    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 350px;
}
  
.bubble-image {
  display: block;
  max-width: 55vw;
  width: 100%;
  height: auto;
  max-height: 280px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13), 0 1.5px 3px rgba(0,0,0,0.09);
  margin: 10px 0;
  object-fit: contain;
  transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
  cursor: pointer;
}

.bubble-image:hover {
  transform: scale(1.025);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.13);
  filter: brightness(0.98);
}

.bubble-text {
    text-align: right;
}

.btn-hidden, .btn-secret{
    position: absolute !important; 
    display: flex;
    align-items: center;
    height: 100%;
    padding-inline: 1rem;
    right: 0 !important; 
    top: 0 !important;
    color:var(--primary-color2);
    border: none  !important; 
    background: none  !important; 
    cursor: pointer  !important;
    box-shadow: none  !important;
}

.audio-indicator {
    color: #888;
    font-size: 0.9em;
    margin-left: 8px;
    vertical-align: middle;
}

.nue-search-container {
    position: relative;
    width: 300px;
}

.nue-search-container input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.nue-search-container .nue-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    background: white;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

.nue-search-result-item {
    padding: 8px;
    cursor: pointer;
}

.nue-search-result-item:hover {
    background: #f0f0f0;
}

.file-upload-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
    height: 100%;
}

.file-upload-input {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

.file-upload-container label{
    padding-inline: 2rem;
}

.preview-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    background: #fafbfc;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.preview-image, .preview-icon {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #888;
}

.file-name {
    font-size: 13px;
    color: #666;
    word-break: break-all;
    vertical-align: middle;
    margin: 0 10px;
}

.delete-button {
    margin-left: 10px;
    vertical-align: middle;
}

/* CHARTS */

nue-barcode-display .barcode-container {
    background-color: white;             /* Fondo blanco */
    border-radius: 12px;                 /* Bordes redondeados */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Sombra suave */
    padding: 1rem;                       /* Espaciado interno */
    font-family: 'Roboto', sans-serif;  /* Tipografía consistente */
}

/* Si quieres que el SVG dentro del contenedor no sea más grande que su padre */
nue-barcode-display .barcode-container svg {
    width: 100%;
    height: auto;
}

/* NUE TABLE DASHBOARD */

.nue-table-wrapper {
    padding: 1rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Más notoria */
    margin-bottom: 1.5rem;
    font-family: 'Roboto', sans-serif;
}
  
.nue-table-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color2);   /* ← usa el color azul definido */
    text-align: center;
}

/* Tabla */
nue-table-dashboard table {
    width: 100%;
    font-family: inherit;
    border-collapse: separate;
    border-spacing: 0;
    overflow: visible; /* Muy importante */
}

nue-table-dashboard th,
nue-table-dashboard td {
    font-family: inherit;       /* ← hereda también aquí */
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

  /* Fila de la tabla */
nue-table-dashboard tbody tr {
    background-color: white;
}
  
/* Redondeo de las esquinas */
nue-table-dashboard thead tr:first-child th:first-child {
    border-top-left-radius: 12px;
}
nue-table-dashboard thead tr:first-child th:last-child {
    border-top-right-radius: 12px;
}
nue-table-dashboard tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}
nue-table-dashboard tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

#datePicker {
    max-width: 200px;
    width: 100%;
    display: inline-block;
}
  
.file-download-link {
    display: inline-block;
    width: fit-content;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
} 

#viewMode,
#datePicker,
#yearInput {
    max-width: 200px;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
}

.input-year {
    max-width: 200px; /* o el valor que necesites */
    display: inline-block;
}


.kpi-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
  }
  
  .kpi-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  }
  
  .kpi-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
  }
  
  .kpi-value {
    font-size: 2rem;
    font-weight: bold;
    color: #343a40;
  }
  
/* Gráficas: asegurar misma altura y comportamiento consistente */
.chart-card {
    height: 100%;
    min-height: 480px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
}

.chart-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-card .card-title {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color2);
    /* Add these to ensure it occupies full width */
    display: block; /* or width: 100%; */
}

.chart-container {
    flex-grow: 1;
    position: relative;
    height: 100%;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.input-date {
    max-width: 200px;
    width: 100%;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
}

.bubble-text {
    margin-top: 6px;
    word-wrap: break-word;
}

.file-card {
    display: flex;
    flex-direction: column;
    align-items: center;   /* centrado horizontal */
    justify-content: center; /* centrado vertical */
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    margin: 8px 0;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.18s, box-shadow 0.18s;
    max-width: 240px;
}

.file-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.file-icon {
    font-size: 42px;
    margin-bottom: 10px;
    color: #2a7ae2;
    text-align: center;
    width: 100%;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    word-break: break-word;
    text-align: center;
}

.file-caption {
    font-size: 13px;
    color: #555;
    margin-top: 6px;
    word-wrap: break-word;
}