:root {
    --primary-color: #105b63;
    --secondary-color: #18929d;
    --active-color: #a2dda0;
    --soft-color: #f9fefb;
    /* --highlight-color: rgba(236, 138, 52, 0.5); */
    --highlight-color: #d7f0d7;

    --header-bg-color: #f0f0f0;
    --alert-color: #d32f2f;
 


--icon-batches: url('/images/lotes3.svg');
--icon-buscar: url('/images/buscar.svg');
--icon-controles: url('/images/microbiology.svg');
--icon-controles-specimen: url('/images/web-maintenance.svg');
--icon-database: url('/images/database.svg');
--icon-doc: url('/images/file.svg');
--icon-doc-add: url('/images/add_doc.svg');
--icon-down: url('/images/touchscreen.svg');
--icon-en: url('/images/uk.svg');
--icon-files: url('/images/folder.svg');
--icon-foto: url('/images/gallery.svg');
--icon-foto-add: url('/images/add_foto.svg');
--icon-history: url('/images/history.svg');
--icon-imgeditor: url('/images/image-editing.svg');
--icon-home: url('/images/home_8.svg');
--icon-notes: url('/images/post-it.svg');
--icon-notes-all: url('/images/clipboard.svg');
--icon-publications: url('/images/books.svg');
--icon-reminders: url('/images/bell.svg');
--icon-strains: url('/images/strains.svg');
--icon-trash: url('/images/trash-bin.svg');
--icon-users: url('/images/lab-technician.svg');
--icon-versions: url('/images/version.svg');
--user-logo: url('/images/mentalogo.svg');
 
    --icon-size: 30px;

    --logo-mentabase: url('/images/mentalogo.svg');
}

/* ===== Botones ===== */

/* ===== Logos ===== */

.logo {
    background-image: var(--icon-home);
    width: 15rem;
    height: 15rem;
    background-size: contain;
    background-repeat: no-repeat;
}

.logo-principal {
    background-image: var(--user-logo);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.logo_mentabase {
    background-image: var(--logo-mentabase);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 120px;
    height: 24px;
}

/* Logo grande para herramientas / utilidades */
.logo_mentabase_header {
    background-image: var(--logo-mentabase);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;

    width: 128px;
    height: 128px;
}

.logo_mentabase-text {
    font-size: 0.5rem;
    line-height: 1rem;
    font-family: 'Press Start 2P', cursive;
}

.headerlogo {
    /* background-image: url('/images/62532015_80h.png'); */
    /* background-image: url('/images/logoipsum-226.svg'); */
    /* background-image: url('/images/mentalogo.svg'); */
    background-image: var(--user-logo);
    width: clamp(80px, 20vw, 120px);
    height: clamp(80px, 20vw, 120px);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

/* ===== Otros ===== */

.alert {
    background-color: rgba(16, 91, 99, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.checkbox-tick:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}


/* --- Post-it styles --- */
.postit-wrap{
  display:flex;
  justify-content:center;
}

.postit{
  position: relative;
  width: 100%;
  max-width: 540px;
  background: #fff59d; /* amarillo suave */
  border-radius: 10px;
  padding: 18px 18px 24px 18px;
  box-shadow:
    0 10px 20px rgba(0,0,0,.12),
    0 3px 6px rgba(0,0,0,.08);
  transform: rotate(-1.2deg);                 /* efecto “pegado” */
  transition: transform .15s ease, box-shadow .15s ease;
}
.postit:hover{
  transform: rotate(-0.5deg) translateY(-1px);
  box-shadow:
    0 12px 24px rgba(0,0,0,.16),
    0 4px 8px rgba(0,0,0,.10);
}

/* chincheta */
.postit::before{
  content:"";
  position:absolute;
  top: -8px;
  left: 40px;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 40% 40%, #f87171 0 45%, #c2410c 46% 100%);
  border-radius: 50%;
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
}

/* esquina doblada */
.postit::after{
  content:"";
  position:absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  background:
    linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,0)) no-repeat;
  clip-path: polygon(0 0, 100% 100%, 100% 0);
  opacity:.45;
}

/* textarea dentro del post-it */
.postit-textarea{
  width: 100%;
  min-height: 220px;
  background: repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0) 0 28px,
      rgba(0,0,0,.05) 29px
    ), transparent;
  border: none;
  outline: none;
  resize: vertical;
  font-size: 1rem;
  line-height: 1.8;
  color: #2c2c2c;
  /* “manuscrita” con fallback seguro; cambia orden si quieres */
  font-family:
    "Bradley Hand", "Marker Felt", "Noteworthy",
    "Segoe Print", "Comic Sans MS", "Comic Sans",
    cursive, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 6px 2px;
  box-shadow: none;
}

/* accesibilidad: foco visible sin romper el look */
.postit-textarea:focus{
  box-shadow: 0 0 0 3px rgba(59,130,246,.3); /* azul suave */
  border-radius: 6px;
}


.postit .postit-textarea{
  font-family:
    "Bradley Hand", "Marker Felt", "Noteworthy",
    "Segoe Print", "Comic Sans MS", "Comic Sans",
    cursive, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Modo oscuro básico (si usas dark:bg) */
@media (prefers-color-scheme: dark){
  .postit{
    background: #f4e06f;
  }
  .postit-textarea{
    color: #1f2937;
  }
}




#contenido-listado-notas {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 12px;
  padding-top: 12px;
  padding-left: .5rem;
  padding-right: .5rem;
}

#contenido-listado-notas .postit-card {
  width: 100%;       /* que ocupe todo el ancho del contenedor */
  max-width: 460px;  /* pero no más de este valor */
}

/* Tarjeta de nota tipo post-it */
.postit-card {
   /*   max-width: 480px;   /* o 400px, ajusta a tu gusto */
  margin: 0 auto 12px; /* auto a izquierda/derecha para centrar */
  background: #fff59d; /* amarillo suave */
  border-radius: 8px;
  padding: 14px 14px 20px 14px;
  margin-bottom: 12px;
  box-shadow:
    0 4px 10px rgba(0,0,0,.1),
    0 2px 4px rgba(0,0,0,.06);
  transform: rotate(-0.8deg);
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}

.postit-card:hover {
  transform: rotate(-0.2deg) translateY(-2px);
  box-shadow:
    0 6px 14px rgba(0,0,0,.14),
    0 3px 6px rgba(0,0,0,.1);
}

/* chincheta superior */
.postit-card::before {
  content:"";
  position:absolute;
  top: -6px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 40% 40%, #f87171 0 45%, #c2410c 46% 100%);
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(0,0,0,.15);
}

/* Esquina doblada */
.postit-card::after {
  content:"";
  position:absolute;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, rgba(0,0,0,.1), rgba(0,0,0,0));
  clip-path: polygon(0 0, 100% 100%, 100% 0);
  opacity:.45;
}

/* Texto de la nota */
.postit-card .text-sm {
  font-family: "Bradley Hand", "Marker Felt", "Noteworthy",
               "Segoe Print", "Comic Sans MS", "Comic Sans",
               cursive, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}




/* Post-it del modal de confirmación (más compacto) */
.postit-confirm{
  position: relative;
  background: #fff59d;                /* amarillo suave */
  border-radius: 10px;
  padding: 14px 14px 18px 14px;
  box-shadow:
    0 8px 18px rgba(0,0,0,.12),
    0 3px 6px rgba(0,0,0,.08);
  transform: rotate(-0.8deg);
}

/* chincheta */
.postit-confirm::before{
  content:"";
  position:absolute;
  top: -7px;               /* sobresale un pelín */
  left: 26px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 40% 40%, #f87171 0 45%, #c2410c 46% 100%);
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(0,0,0,.15);
}

/* esquina doblada */
.postit-confirm::after{
  content:"";
  position:absolute;
  right: 10px;
  bottom: 10px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, rgba(0,0,0,.10), rgba(0,0,0,0));
  clip-path: polygon(0 0, 100% 100%, 100% 0);
  opacity:.45;
}

/* contenido del post-it */
.postit-confirm-text{
  white-space: pre-wrap;   /* respeta saltos de línea */
  font-size: .95rem;
  line-height: 1.6;
  color: #2c2c2c;
  font-family: "Bradley Hand", "Marker Felt", "Noteworthy",
               "Segoe Print", "Comic Sans MS", "Comic Sans",
               cursive, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  max-height: 180px;       /* evita que el modal crezca demasiado */
  overflow-y: auto;
  padding-right: 2px;      /* evita que tape la scrollbar */
}



/* Pie de autor en el post-it */
.postit-card .postit-author {
  font-family: "Bradley Hand", "Marker Felt", "Noteworthy",
               "Segoe Print", "Comic Sans MS", "Comic Sans",
               cursive, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.4;
}


/* Icono mini de autor dentro del post-it (afecta al <svg> ya reemplazado) */
.postit-card .postit-author .icono-autor.feather {
  width: 20px !important;
  height: 20px !important;
  vertical-align: middle;
}

.icono-autor.feather {
  width: 20px !important;
  height: 20px !important;
  vertical-align: middle;
}

/* Marcas de diff */
/* Opcional: hace que el fondo del añadido “salte” de línea con el texto */
.diff-add {
  background: rgba(34,197,94,.18);
  border-radius: 3px;
  padding: 0 2px;
  /* que el fondo no desaparezca justo antes del \n */
  box-decoration-break: clone; /* soportado en la mayoría de navegadores modernos */
}
.diff-del {
  background: rgba(239,68,68,.15); /* rojo suave */
  text-decoration: line-through;
  opacity: .9;
  border-radius: 3px;
  padding: 0 2px;
}


.diff-line-add { background: rgba(34,197,94,.18); border-radius: 3px; padding: 0 2px; box-decoration-break: clone; }
.diff-line-del { background: rgba(239,68,68,.15); text-decoration: line-through; opacity: .9; border-radius: 3px; padding: 0 2px; box-decoration-break: clone; }


#contenido-versiones-nota {
  padding-top: 12px;      /* espacio para la chincheta */
}


/* Icono tipo “favicon” en línea, estable y sin flex */
.ico-mentabase{
  display:inline-block;
  width:0.9em;           /* escala con el texto */
  height:0.9em;
  background-image: var(--logo-mentabase);
  background-repeat:no-repeat;
  background-size:contain;
  vertical-align:-0.12em; /* ajuste fino vertical */
  margin:0 0.25em;        /* separación mínima a ambos lados */
}



.contenedor-iconos-valor{
    display: flex;
    align-items: center;
}

.mb-icons{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
    white-space: nowrap;
}

/* ya la tenías, pero por claridad */
.icon-16 svg{
    width: 28px !important;
    height: 28px !important;
}



/* =========================
   Tabs jQuery UI
========================= */

#cepamenu .ui-tabs-nav,
.ui-tabs .ui-tabs-nav.ui-widget-header {
	background: var(--soft-color) !important;
	border: 1px solid var(--primary-color) !important;
	padding: 0.4rem 0.4rem 0 !important;
	border-radius: 0.4rem !important;
}

#cepamenu .ui-tabs-nav .ui-tabs-tab:not(.ui-tabs-active):not(.ui-state-active),
.ui-tabs .ui-tabs-nav .ui-tabs-tab:not(.ui-tabs-active):not(.ui-state-active) {
	background: rgba(255,255,255,0.65) !important;
}

#cepamenu .ui-tabs-nav .ui-tabs-tab,
.ui-tabs .ui-tabs-nav .ui-tabs-tab {
	transition: background-color .15s ease;
}

#cepamenu .ui-tabs-nav .ui-tabs-tab.ui-tabs-active,
#cepamenu .ui-tabs-nav .ui-tabs-tab.ui-state-active,
.ui-tabs .ui-tabs-nav .ui-tabs-tab.ui-tabs-active,
.ui-tabs .ui-tabs-nav .ui-tabs-tab.ui-state-active {
	border-color: var(--secondary-color) !important;
}


/* =========================
   DataTables jQuery UI toolbar
========================= */

table.dataTable {
	border: 1px solid var(--primary-color) !important;
}

.dataTables_wrapper .dataTables_scroll,
.dataTables_wrapper .dataTables_scrollHead,
.dataTables_wrapper .dataTables_scrollBody {
	border-color: var(--primary-color) !important;
}

table.dataTable thead th {
	border-color: var(--primary-color) !important;
}

.dataTables_wrapper,
.dataTables_wrapper table.dataTable,
.dataTables_wrapper table.dataTable th,
.dataTables_wrapper table.dataTable td {
	box-sizing: border-box;
}

.dataTables_wrapper table.dataTable {
	width: 100% !important;
	max-width: 100% !important;
}

.dataTables_wrapper .fg-toolbar.ui-widget-header {
	background: var(--soft-color) !important;
	border: 1px solid var(--primary-color) !important;
	color: var(--primary-color);
}

.dataTables_wrapper .fg-toolbar.ui-corner-tl {
	border-top-left-radius: 0.4rem;
}

.dataTables_wrapper .fg-toolbar.ui-corner-tr {
	border-top-right-radius: 0.4rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
	color: var(--primary-color);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
	border: 1px solid #d7dde3;
	border-radius: 0.35rem;
	background: #fff;
	color: #333;
}





/* =========================
   Record toolbar / action cards
   Contextual action buttons with badges
========================= */
	/* botonera baja */
.record-toolbar {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-color, #ddd);
}

.record-toolbar__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-width: 98px;
  min-height: 82px;

  padding: 0.5rem 0.7rem 0.4rem;

  border: 1px solid #d7dde3;
  border-radius: 0.85rem;

  background-color: #fff;
  color: var(--primary-color);
  cursor: pointer;

  transition:
    border-color .15s ease,
    box-shadow .15s ease;
}

.record-toolbar__btn:hover {
  border-color: var(--primary-color);
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.record-toolbar__icon {
  width: 38px;
  height: 38px;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  transition: transform .15s ease;
}

.record-toolbar__btn:hover .record-toolbar__icon {
  transform: scale(1.14);
}

.record-toolbar__label {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  line-height: 1.05;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
}

.record-toolbar__badge {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.45rem;
  font-weight: 700;
  text-align: center;
  z-index: 3;
  box-shadow: 0 0 0 3px #fff;
}
/* ==================
*  tippy            
===================== */

.tippy-box[data-theme~='menta'] {
	background: #fcfcfc;
	color: #333;
	border: 1px solid #d9d9d9;
	border-radius: 3px;
	box-shadow: 0 2px 8px rgba(0,0,0,.7);
	font-size: 16px;
	font-weight: 400;
}

.tippy-box[data-theme~='menta'] .tippy-content {
	padding: 10px 16px;
}

/* quitar flecha */
.tippy-box[data-theme~='menta'] .tippy-arrow {
	display: none;
}