
/* =============================================
   VARIABLES BASE
   ============================================= */

:root {
    --hc--color-principal:#8AC53D;  /* botones, footer, etiquetas, bordes   ANTES COLOR 1*/
    --hc--color-hover-menu:#E1F0CE;  /* hover del menú, cabecera grid        ANTES COLOR 2*/
	--hc--color-hover-grid:#E1F0CE;  /* hover del grid                       ANTES COLOR 3*/
    --hc--color-fondo-pet:#E1F0CE;  /* fondo de peticiones                  ANTES COLOR 4*/
	--hc--color-degradado-ini:#8AC53D;  /* inicio degradado del titulo de dialog y mensajes de home */    
	--hc--color-degradado-fin:#CAE4A5; /* fin degradado del titulo de dialog y mensajes de home */
    --hc--color-texto:#323232;   /* texto de empresa (header) y desplegable del menú nav al pulsarlo */
    --hc--color-texto-label:#557924;   /* labels de formularios                ANTES COLOR 7*/
    --hc--color-texto-suave:#404040;      /* texto menú nav */
	--hc--color-texto-footer:#000000;     /* texto del footer */
	--hc--color-texto-btn:#000000;   /* texto de los botones */
    --hc--color-logout:         #888;		/* texto botón logout */

    --hc--color-estado-error:   red;       /* barra de estado de los formularios cuando hay error */
    --hc--color-estado-aviso:   #fff34d;   /* barra de estado de los formularios cuando hay aviso */
    --hc--color-estado-ok:      #99e600;   /* barra de estado de los formularios cuando todo OK   */

	--hc--font-family:verdana, arial, helvetica, sans-serif;  /* fuente de todos los textos */
    --hc--esquina-btn:0.3rem;      /* border-radius generalizado de botones y similar */
}




/* =============================================
   LAYOUT PRINCIPAL con sidebar
   ============================================= */

body {
	background-color: white;
	font-family: var(--hc--font-family);
	margin: 0;
	padding: 0;
}
h1,h2,h3,h4 {
	color: #333;
}

header {
	display: flex;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3.2rem;
	z-index: 100;
	background: rgba(255,255,255,0.97);
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	box-sizing: border-box;
	padding: 0 0.5rem;
}

/* Botón menú */
#nav-toggle {
	background: #fff !important;
	border: none;
	padding: 0.5rem;
	margin-right: 0.4rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	flex-shrink: 0;
	border-radius: var(--hc--esquina-btn);
	transition: background 0.18s;
	color: var(--hc--color-texto);
}

#nav-toggle:hover {
	background: var(--hc--color-hover-menu) !important;
	filter: unset;
}
.hamburger,
.hamburger::before,
.hamburger::after {
	display: block;
	width: 1.2rem;
	height: 2px;
	background: var(--hc--color-texto);
	border-radius: 2px;
	position: relative;
	transition: transform 0.22s ease, opacity 0.22s;
}
.hamburger::before,
.hamburger::after {
	content: '';
	position: absolute;
	left: 0;
}
.hamburger::before { top: -0.35rem; }
.hamburger::after  { top:  0.35rem; }

/* Sidebar lateral */
#nav-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 3.4rem;
	height: 100vh;
	background: #fff;
	border-right: 1px solid var(--hc--color-principal);
	z-index: 90;
	padding-top: 3.8rem;
	overflow: hidden;
	transition: width 0.26s cubic-bezier(0.4,0,0.2,1),
	            box-shadow 0.26s;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}
#nav-sidebar.nav-sidebar-open {
	width: 13rem;
	box-shadow: 3px 0 18px rgba(0,0,0,0.10);
}

#nav-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.25);
	z-index: 89;
}
#nav-overlay.nav-overlay-visible {
	display: block;
}

/* Items del menú */
.nav-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.62rem 0.75rem;
	text-decoration: none;
	color: var(--hc--color-texto-suave);
	white-space: nowrap;
	border-left: 3px solid transparent;
	transition: background 0.16s, border-color 0.16s, color 0.16s, font-size 0.16s;
	font-size: 0.92rem;
	min-height: 2.4rem;
}
.nav-item:hover {
	background: var(--hc--color-hover-menu);
	border-left-color: var(--hc--color-principal);
	color: #222;
	font-size: 0.97rem;
}
.nav-item-logout {
	margin-top: auto;
	border-top: 1px solid var(--hc--color-principal);
	color: var(--hc--color-logout);
}
.nav-item-logout:hover {    /* El logout lleva colores propios y no le importa tu estilo, siempre rojizo */
	color: #c0392b;
	background: #fff5f5;
	border-left-color: #c0392b;
}

.nav-label {
	opacity: 0;
	transition: opacity 0.18s 0.04s;
	font-size: inherit;
	overflow: hidden;
}
#nav-sidebar.nav-sidebar-open .nav-label {
	opacity: 1;
}

/* ---- ICONOS SVG como data-uri ---- */

.nav-icon {
	display: inline-block;
	width: 1.3rem;
	height: 1.3rem;
	min-width: 1.3rem;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	transition: filter 0.16s;
}
.nav-item:hover .nav-icon {
	filter: brightness(0.5) sepia(1) hue-rotate(10deg) saturate(6);
}

.nav-icon-home {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 20 20'%3E%3Cpath d='M3 9.5 10 3l7 6.5V17a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1Z'/%3E%3Cpath d='M7 18v-6h6v6'/%3E%3C/svg%3E");
}
.nav-icon-actas {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 20 20'%3E%3Cdefs%3E%3Cmask id='stamp-ribbon-cut'%3E%3Crect width='20' height='20' fill='white'/%3E%3Ccircle cx='15' cy='14' r='3.5' fill='black' stroke='black' stroke-width='2'/%3E%3Cpath d='M13 16l-1 3.5 3-1.5 3 1.5-1-3.5' fill='black' stroke='black' stroke-width='2'/%3E%3C/mask%3E%3C/defs%3E%3C!-- Documento base con máscara --%3E%3Cg mask='url(%23stamp-ribbon-cut)'%3E%3Cpath d='M12 2H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V6Z'/%3E%3Cpath d='M12 2v4h4M7 9h6M7 12h6'/%3E%3C/g%3E%3C!-- Cintas del sello (Ribbon) --%3E%3Cpath d='M13.5 15.5l-1.2 3.5 2.7-1.5 2.7 1.5-1.2-3.5' fill='%23555'/%3E%3C!-- Sello redondo relleno --%3E%3Ccircle cx='15' cy='14' r='3' fill='%23555'/%3E%3C/svg%3E");
}
.nav-icon-ensayos {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 20 20'%3E%3Cpath d='M8 2v6L4 15a2 2 0 0 0 1.8 2.8h8.4A2 2 0 0 0 16 15l-4-7V2'/%3E%3Cpath d='M7 2h6'/%3E%3Ccircle cx='9' cy='14' r='0.8' fill='%23555'/%3E%3Ccircle cx='12' cy='12.5' r='0.6' fill='%23555'/%3E%3C/svg%3E");
}
.nav-icon-amasadas {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 20 20'%3E%3Cdefs%3E%3Cmask id='cut'%3E%3Crect width='20' height='20' fill='white'/%3E%3Cpath d='M7.5 7.5v8.5c0 1 1.8 1 3.5 1s3.5 0 3.5-1v-8.5' fill='black' stroke='black' stroke-width='3'/%3E%3Cellipse cx='11' cy='7.5' rx='3.5' ry='1.2' fill='black' stroke='black' stroke-width='3'/%3E%3C/mask%3E%3C/defs%3E%3C!-- Probeta trasera con máscara --%3E%3Cg mask='url(%23cut)'%3E%3Cpath d='M4 5v8.5c0 1 1.8 1 3.5 1s3.5 0 3.5-1v-8.5'/%3E%3Cellipse cx='7' cy='5' rx='3.5' ry='1.2'/%3E%3C/g%3E%3C!-- Probeta delantera --%3E%3Cpath d='M7.5 7.5v8.5c0 1 1.8 1 3.5 1s3.5 0 3.5-1v-8.5'/%3E%3Cellipse cx='11' cy='7.5' rx='3.5' ry='1.2'/%3E%3C/svg%3E");
}
.nav-icon-facturas {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23555' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 20 20'%3E%3Cdefs%3E%3Cmask id='euro-cut'%3E%3Crect width='20' height='20' fill='white'/%3E%3Ccircle cx='14.5' cy='14' r='2.5' fill='black' stroke='black' stroke-width='2'/%3E%3C/mask%3E%3C/defs%3E%3C!-- Documento base con líneas de texto y máscara aplicada (línea 3 eliminada) --%3E%3Cg mask='url(%23euro-cut)' stroke-width='1.5'%3E%3Cpath d='M12 2H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V6Z'/%3E%3Cpath d='M12 2v4h4M7 9h6M7 12h6'/%3E%3C/g%3E%3C!-- Símbolo del Euro (€) en la esquina inferior derecha con trazo fino --%3E%3Cg stroke-width='1.2'%3E%3Cpath d='M16 12.2a1.8 1.8 0 1 0 0 3.1'/%3E%3Cpath d='M12.5 13.2h2.5M12.5 14.4h2.5'/%3E%3C/g%3E%3C/svg%3E");
}
.nav-icon-peticion {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 20 20'%3E%3Crect x='3' y='4' width='14' height='14' rx='1.5'/%3E%3Cpath d='M3 8h14M7 2v3M13 2v3'/%3E%3Ccircle cx='7' cy='12' r='0.8' fill='%23555'/%3E%3Ccircle cx='10' cy='12' r='0.8' fill='%23555'/%3E%3Ccircle cx='13' cy='12' r='0.8' fill='%23555'/%3E%3C/svg%3E");
}
.nav-icon-logout {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 20 20'%3E%3Cpath d='M13 15l4-5-4-5'/%3E%3Cpath d='M17 10H8'/%3E%3Cpath d='M8 17H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3'/%3E%3C/svg%3E");
}
.nav-icon-default {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Ccircle cx='10' cy='10' r='1.5' fill='%23555'/%3E%3C/svg%3E");
}

/* =============================================
   EMPRESA / LOGO en el header
   ============================================= */

.empresa {
	display: flex;
	align-items: center;
	padding: 2px 4px;
}
.empresa h1 {
	font-size: 110%;
	margin: 0 0.15rem;
	color: var(--hc--color-texto);
}
.empresa p {
	font-size: 80%;
	margin: 0.15rem;
	color: var(--hc--color-texto);
}

/* =============================================
   LAYOUT GENERAL: contenido desplazado por sidebar
   ============================================= */

#general {
	position: relative;
	min-height: 100vh;
}

#general-contenido {
	padding-bottom: 4.5rem;
	padding-left: 3.4rem;
	transition: padding-left 0.26s cubic-bezier(0.4,0,0.2,1);
	box-sizing: border-box;
}

footer {
	font-size: 80%;
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 4.5rem;
	background: linear-gradient(to right, var(--hc--color-degradado-ini), var(--hc--color-degradado-fin));
	color: var(--hc--color-texto-footer);
	box-sizing: border-box;
	padding-left: 3.4rem;
}
footer p {
	margin: 0.2rem;
}

#botonera button {
	margin: 0 0.4rem 0 0;
}

section {
	position: relative;
	padding-left: 1%;
	padding-right: 1%;
	width: 98%;
	margin-top: 1rem;
	padding-bottom: 1rem;
	overflow: auto;
}

.secciones {
	margin-top: 3.8rem;
	padding-bottom: 3rem;
}

section.seccion_msg {
	padding-top: 5rem;
	text-align: center;
}

#gridDiv {
	height: 60em;
}

#estado {
	margin: 1rem 1%;
	padding: 1rem 5%;
	text-align: center;
}
.estado-oculto {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    margin: 0;
    transition: max-height 0.6s ease-in-out, opacity 0.6s ease-in-out, padding 0.6s ease-in-out;
}
.estado-error {
    background-color: var(--hc--color-estado-error);
    color: white;
    max-height: 100px;
    opacity: 1;
    display: block;
    transition: max-height 0.6s ease-in-out, opacity 0.6s ease-in-out, background-color 0.6s ease-in-out;
}
.estado-aviso {
    background-color: var(--hc--color-estado-aviso);
    color: black;
    max-height: 100px;
    opacity: 1;
    display: block;
    transition: max-height 0.6s ease-in-out, opacity 0.6s ease-in-out, background-color 0.6s ease-in-out;
}
.estado-info {
    background-color: var(--hc--color-estado-ok);
    color: white;
    max-height: 100px;
    opacity: 1;
    display: block;
    transition: max-height 0.6s ease-in-out, opacity 0.6s ease-in-out, background-color 0.6s ease-in-out;
}
.seccion_form {
	text-align: center;
}
.login {
	margin-top: 3rem;
	display: inline-block;
}

.form_visible {
	display: inline-block;
}

.form_invisible {
	display: none;
}

.block {
	padding: 0.3rem;
	text-align: left;
}

.block label {
	display: block;
	font-size: 80%;
	color: var(--hc--color-texto-label);
}

.logo {
	width: auto;
	height: 40px;
}

#general-contenido button {
	background-color: var(--hc--color-principal);
	border: none;
	border-radius: var(--hc--esquina-btn);
	color: var(--hc--color-texto-btn);
	padding: 0.4rem 0.4rem;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 100%;
	cursor: pointer;
	transition: filter 0.2s ease;
}

#general-contenido button:hover {
	filter: brightness(0.75) hue-rotate(5deg) saturate(6);
}

/* Desconecto customización de botones para el botón de no descarga */
#general-contenido button.norevisa {
	background-color: unset;
	border-radius: unset;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 20 20'%3E%3Cpath d='M6 3.5l4 4 4-4 2.5 2.5-4 4 4 4-2.5 2.5-4-4-4 4-2.5-2.5 4-4-4-4Z'/%3E%3C/svg%3E");	
	background-position: center center;
	padding: 1.35rem 1.35rem 0 0;
}

#general-contenido button.descarga {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 20 20'%3E%3Cpath d='M6.5 3.5h7v5.5h3.5L10 16.5 3 9h3.5Z'/%3E%3C/svg%3E");	
	background-position: center center;
	background-color: unset;
	border-radius: unset;
	padding: 1.35rem 1.35rem 0 0;
}

#datos { 
	margin-top: 1rem;
}


th {
	font-weight: normal;
}

.peticion {
	overflow: auto;
	width: 96%;
	margin: 0.3rem;
	padding: 0.2rem 1em;
	border: 1px solid var(--hc--color-principal);
	border-radius: var(--hc--esquina-btn);
	background-color: var(--hc--color-fondo-pet);
}
.peticion p {
	text-align: left;
	margin: .2rem 0 0 .2rem;
}
.peticionAlta {
	font-size: 75%; 
	float: right;
}
.peticionEstado p, .peticionEstado span p {
	border-radius: var(--hc--esquina-btn);
	padding: 0.4rem;
	float: right;
}
.peticionBaja {
	background-color: var(--hc--color-principal);
	margin-right: 0.8rem;
	cursor: pointer;
	transition: filter 0.2s ease;
}
.peticionBaja:hover {
	filter: brightness(0.75) hue-rotate(5deg) saturate(6);
}

.peticionBaja-overlay {
  position: relative;
  background-color: var(--hc--color-principal);
  overflow: hidden;
  z-index: 1;
}

/* Overlay oculto, no calculado, que se muestra si se pasa el raton */
.peticionBaja-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; /* Oscurece el background. Si prefieres aclarar, #fff */
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1; /* Detrás del texto, encima del background */
}
.peticionBaja-overlay:hover::before {
  opacity: 0.15; /* más opacidad, más se nota el overlay */ 
}

.peticionEstado {
	display: inline;
}
.peticionHora, .peticionFecha {
	font-weight: 600;
}
.peticionComenta p {
	border: 1px solid var(--hc--color-principal);
	border-radius: var(--hc--esquina-btn);
	background-color: white;
	padding: 0.4rem;
}
.etiquetas {
	margin: 1.2rem;
	padding: 0.1rem;
	border-radius: var(--hc--esquina-btn); 
    background: linear-gradient(to right, var(--hc--color-degradado-ini), var(--hc--color-degradado-fin));
}
h2.portada {
	text-align: left;
	padding-left: 2rem;
	margin-bottom: -0.5rem;
}

.etiquetas h3 {
	margin: 0;
	padding: 0.3rem;
	font-size: 110%;
	font-weight: normal;
	color: white;
}

.etiqueta p {
	text-align: left;
	padding: 0.1rem;
	margin: 0 2.3rem 0 0;
}
.etiqueta_nombre {
	font-weight: 600;
}

.etiqueta a {
	text-align: left;
	color: #999;
}
.etiqueta_baja img {
	padding: 0.2rem;
	background-color: var(--hc--color-principal);
}

.etiqueta_baja {
	text-decoration: none;
}
.etiqueta a:hover {
	color: black;
}
.etiqueta ul {
	list-style: none;
	margin: 0.15rem 0 0 0;
	padding: 0;
	text-align: right;
}
.etiqueta li {
	font-size: 78%;
	color: #999;
	display: inline-block;
	padding: 0 0.1rem 0 0;
}
.etiqueta button {
	position: absolute;
	top: 0.1rem;
	right: 0.1rem;
}

.etiqueta {
    position: relative;
	background-color: rgba(255, 255, 255, 0.8); 
    padding: 1rem; 
    border-radius: 8px; 
    margin: 1rem; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.dojoxGridHeader {
	background-color: var(--hc--color-hover-menu);
}

.dojoxGridHeader .dojoxGridCell {
	background: var(--hc--color-hover-menu) top repeat-x;
}

.dojoxGridRowbar {
	background: var(--hc--color-hover-menu) top repeat-x;
}

.dojoxGridRowbarSelected {
	background-color: var(--hc--color-hover-grid);
}
.dojoxGridRowSelected {
	background-color: var(--hc--color-fondo-pet); /* no hace nada, sobreescrita por .claro .dojoxGridRow de claroGrid.css */
}
.dojoxGridRowOdd {
	background-color: #d0fbef; /* no hace nada, sobreescrita por .claro .dojoxGridRow de claroGrid.css */
}
.claro .dojoxGridRowOdd .dojoxGridRowTable tr {
	background-color: var(--hc--color-fondo-pet);
}

.claro .dojoxGridHeader .dojoxGridCellOver {
	background: var(--hc--color-principal);
}

.claro .dojoxGridCellOver .dojoxGridSortNode {
	background-color: var(--hc--color-principal);
}

.claro .dojoxGridRowOver .dojoxGridCell {
	background-color: var(--hc--color-hover-menu);
	border-top:1px solid var(--hc--color-principal);
	border-bottom:1px solid var(--hc--color-principal);
}

.claro .dojoxGridMasterHeader {
	background: none;
	background: none;
	background-color: var(--hc--color-fondo-pet);
	border: 1px solid white;
	border-right: none;
}
.claro .dojoxGridRowbarSelected {
	background-color: var(--hc--color-hover-menu);
	border-right:1px solid #ccc;
}
.claro .dojoxGridRowOdd .dojoxGridRowTable tr {
	background-color: #e8fdf7;
}
.claro .dojoxGridRowSelected .dojoxGridRowTable tr {
	background-color: var(--hc--color-fondo-pet);
}
.claro .dijitDialogTitleBar {
	background: linear-gradient(to right, var(--hc--color-degradado-ini), var(--hc--color-degradado-fin));
	/*background-image: none;*/
	border: unset;
	padding: 0.8rem;
}

.dijitDialog {
	border-radius: var(--hc--esquina-btn);
}

.dijitDialogPaneContent {
	padding: 0.8rem;
}

.dijitDialogCloseIcon {
	transform: scale(1.2, 1.2);
}



/* =============================================
   ACORDEON DE PETICIONES
   ============================================= */

.nav-group {
	display: flex;
	flex-direction: column;
}

/* El item padre tiene un chevron que rota al abrir */
.nav-item-parent {
	position: relative;
}
.nav-chevron {
	display: none;          /* oculto cuando sidebar colapsado */
	margin-left: auto;
	width: 0.9rem;
	height: 0.9rem;
	min-width: 0.9rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23999' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	transition: transform 0.22s ease;
	flex-shrink: 0;
}
#nav-sidebar.nav-sidebar-open .nav-chevron {
	display: inline-block;
}
.nav-group-open .nav-item-parent .nav-chevron {
	transform: rotate(180deg);
}

/* Subitems: colapsados por defecto */
.nav-subitems {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.28s cubic-bezier(0.4,0,0.2,1);
	background: var(--hc--color-fondo-pet);
	border-left: 2px solid var(--hc--color-principal);
	margin-left: 0.5rem;
}
.nav-group-open .nav-subitems {
	max-height: 20rem;      /* suficiente para 6 items */
}

/* Subitem individual: más pequeño e indentado */
.nav-subitem {
	font-size: 0.82rem;
	padding: 0.45rem 0.75rem 0.45rem 0.6rem;
	color: #555;
	min-height: 2rem;
}
.nav-subitem:hover {
	font-size: 0.87rem;
	background: var(--hc--color-hover-menu);
	border-left-color: var(--hc--color-principal);
	color: #222;
}
.nav-subitem .nav-icon {
	width: 1.05rem;
	height: 1.05rem;
	min-width: 1.05rem;
}

/* Iconos para los subitems de petición */
.nav-icon-registro {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23777' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 20 20'%3E%3Cpath d='M4 5h8M4 9h6M4 13h4'/%3E%3Cpath d='M13 13l1.5-1.5 2 2L15 15Z'/%3E%3Cpath d='M14.5 11.5l2 2'/%3E%3C/svg%3E");
}
.nav-icon-amasada-new {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 20 20'%3E%3Cdefs%3E%3Cmask id='cut-new'%3E%3Crect width='20' height='20' fill='white'/%3E%3Cpath d='M6.5 8.5v8.5c0 1 1.8 1 3.5 1s3.5 0 3.5-1v-8.5' fill='black' stroke='black' stroke-width='3'/%3E%3Cellipse cx='10' cy='8.5' rx='3.5' ry='1.2' fill='black' stroke='black' stroke-width='3'/%3E%3C/mask%3E%3C/defs%3E%3C!-- Probeta trasera con máscara --%3E%3Cg mask='url(%23cut-new)'%3E%3Cpath d='M3 6v8.5c0 1 1.8 1 3.5 1s3.5 0 3.5-1v-8.5'/%3E%3Cellipse cx='6' cy='6' rx='3.5' ry='1.2'/%3E%3C/g%3E%3C!-- Probeta delantera --%3E%3Cpath d='M6.5 8.5v8.5c0 1 1.8 1 3.5 1s3.5 0 3.5-1v-8.5'/%3E%3Cellipse cx='10' cy='8.5' rx='3.5' ry='1.2'/%3E%3C!-- Símbolo más (+) --%3E%3Cpath d='M15 3v6M12 6h6'/%3E%3C/svg%3E");
}
.nav-icon-recoge {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3Cpolyline points='16.5 9.4 12.2 12.01 7.8 9.4'/%3E%3C/svg%3E");
}
.nav-icon-insitu {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 20 20'%3E%3C!-- Cuerpo del teléfono (más ancho) --%3E%3Crect x='4' y='2' width='12' height='16' rx='2'/%3E%3C!-- Pantalla interior --%3E%3Crect x='5.5' y='4.5' width='9' height='11' rx='0.5'/%3E%3C!-- Botón home/huella inferior --%3E%3Ccircle cx='10' cy='16.5' r='0.6' fill='%23555'/%3E%3C!-- Altavoz superior --%3E%3Cline x1='9' y1='3.2' x2='11' y2='3.2'/%3E%3C/svg%3E");
}

@media screen and (max-width:900px) {
.empresa h1 {
	font-size: 80%;
	margin-top: 0.4rem;
}
.peticion {
	width: 95%;
	margin: 0.1rem;
}
}

@media screen and (max-width:600px) {
.logo {
	height: 36px;
}
.login {
	margin-top: 0;
}
.empresa h1 {
	font-size: 60%;
	margin: 0.1rem;
	margin-top: 0;
}
.empresa p {
	font-size: 68%;
	margin: 0.1rem;
}
.peticion {
	width: 94%;
	margin: 0;
}
form {
	font-size: 90%;
}
button {
	font-size: 87%;
}
.dijit {
	font-size: 85%;
}
.dojoxGrid {
	font-size: 85%;
}
/* En móvil el sidebar se superpone sobre el contenido */
#general-contenido {
	padding-left: 0;
}
#nav-sidebar {
	width: 0;
	border-right: none;
}
#nav-sidebar.nav-sidebar-open {
	width: 13rem;
	border-right: 1px solid var(--hc--color-principal);
}
}

@media screen and (max-width:500px) {
.logo {
	height: 32px;
}
}
