h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: #252525;
 }

.title {
  width: 100%;
  color: #252525;
  font-weight: 400;
  text-transform: none;
  margin: 20px 0 30px 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
.title h1 span {
  font-size: 40px;
  font-weight: 400;
}
.title.title-sarrera h1 span {
  font-size: 75px;
}
.title-sarrera {
  flex-direction: column;
  align-items: center;
}
.title.title-sarrera span.title-nagusia {
  font-size: 100px;
}
.btn {
  font-size: 16px;
}
.btn-primary {
  border-radius: 0;
  border: 0;
  color: #0b5fb4;
  background-color: transparent;
  box-shadow: 0 2px 6px 0 rgba(199, 232, 225, .8);
	border: 2px solid #0b5fb4;
}
.btn-primary:hover {
  color: #fff;
  background-color: #0b5fb4;
  border-color: #0b5fb4;
}
.btn-secondary {
  border-radius: 0;
  border: 0;
  color: #fff;
  background-color: #252525;
  box-shadow: 0 2px 6px 0 rgba(125, 119, 104, .2);
}
.btn-secondary:hover {
  background-color: #000;
}
a {
  text-decoration: none;
  cursor: pointer;
	color: #000;
}
/***
# Accessibility
--------------------------------------------------------------*/

/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
  /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

.ezkutatu{
	position: absolute !important;
clip: rect(1px 1px 1px 1px);
clip: rect(1px, 1px, 1px, 1px);
overflow: hidden;
height: 1px;
width: 1px;
}
/***breadcrumb***/
.breadcrumb {
  margin-top: 20px;
}
/****top header***/
.top-header {
  background-color: #555;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hizkuntzak {
  margin: 0 20px;
  color: #fff;
}
.hizkuntzak a {
  color: #fff;
}
.hizkuntzak a:hover, .hizkuntzak a.active {
  color: #fff;
	text-decoration: underline;
}
.contacto-item{
	margin-left: 10px;
}
.contacto-item a{
	color:#fff;
	 margin-right: 10px
	
}
.contacto-item a:hover{
	text-decoration: underline;
	
}
a.contacto {
  background-color: #fff;
  padding: 10px 15px;
  color: #555;
}
a.contacto:hover {
  background-color: #000;
  color: #fff;
}
.sareak {
  margin: 0 35px;
}
.sareak a {
  margin: 0 10px;
  color: #fff;
}
.sareak a:hover {
  margin: 0 10px;
  color: #ddd;
}
.sareak i {
  font-size: 25px;
}
header.sticky-top{
	 top:-50px;
}

/***nav***/
.navbar-light .navbar-toggler {
  border: 0;
}
nav.menu-nagusia.navbar {
  background-color: #fff;
  padding: 0;
  height: 74px;
  border-bottom: 1px solid #000;
}
nav.menu-nagusia.navbar .menu-nav, nav.menu-nagusia .navbar-collapse {
  height: 100%;
  align-items: stretch !important;
  justify-content: space-between;
}
nav.menu-nagusia.navbar .menu-nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.menu-nagusia .navbar-brand {
  padding: 0;
  align-self: center;
	 margin-left: 20px;
}
.menu-nagusia .nav-item {
  display: flex;
  align-items: center;
}
.menu-nagusia.navbar-light .navbar-nav .nav-link {
  color: #000;
  padding: 0 30px;
  font-size: 18px;
	text-transform: uppercase;
}
.menu-nagusia.navbar-light .navbar-nav .nav-link:hover {
  color: #fff;
	background-color: #000;
}
.dropdown-toggle::after {
  margin-left: 10px;
}
.menu-nagusia .nav-item .dropdown-menu {
  top: 71px;
  border-radius: 0;
  background-color: #fff;
  color: #000;
  border: 1px solid#000;
}
.menu-nagusia .nav-item .dropdown-menu .dropdown-item {
  border-bottom: 1px solid #fff;
  color: #000;
}
.menu-nagusia .nav-item .dropdown-menu .dropdown-item:hover {
  color: #555;
  background-color: #fff;
  border-bottom: 1px solid #000;
}
.navbar-expand-xl .navbar-nav.menu-aukerak {
  margin:0 auto;
}
/***carrusel**/
.sec-carousel .carousel-caption h2 {
  color: #fff;
  font-weight: 600;
  font-size: 40px;
	background-color:rgba(0,0,0,0.75);
	padding: 10px;
}
.sec-carousel .carousel.slide, .sec-carousel .carousel-item-next, .sec-carousel .carousel-item-prev, .sec-carousel .carousel-item.active {
  height: 500px;
}
.sec-carousel .carousel-item img, .sec-carousel .carousel-item video, .sec-carousel .carousel-item iframe, .sec-carousel .carousel-item.active img, .sec-carousel .carousel-item.active video, .sec-carousel .carousel-item.active iframe {
  max-height: 500px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: #000;
	padding: 25px;
}


/****sarrera***/
section.sarrera {
  background-color: #ebeaea;
  padding: 3.5rem 0;
}
section.sarrera .sarrera-azalpena{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
align-items: center;
}
section.sarrera h2 {
  font-size: calc(0.7rem + 2vw);
  text-transform: uppercase;
  margin-bottom: 2rem;
  width: 100%;
}
section.sarrera .lead {
  width: 60%;
	font-size: 22px;
}
section.sarrera .tx-right {
  width: 38%;
}
section.sarrera ul {
  margin-top: 0.5rem;
  padding-left: 0;
	list-style: none;
}
section.sarrera ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
	font-size: 22px;
}
section.sarrera ul li::before {
  font-family: "Ionicons";
  display: inline-block;
  content: "\f3d6";
  list-style: none;
  margin-right: 10px;
}
/***sarrera2***/
section.sarrera2 {
  background-color: #ebeaea;
  padding: 3.5rem 0;
}
section.sarrera2 {
  background-color: #ebeaea;
  padding: 3.5rem 0;
	text-align: center
}
section.sarrera2 h2 {
  font-size: calc(0.7rem + 2vw);
  text-transform: uppercase;
  margin-bottom: 2rem;
  width: 100%;
	
}
section.sarrera2 .lead {
	font-size: 22px;
	margin-bottom: 2rem;
}

/***servicios**/
section.servicios {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #0b5fb4;
}
section.servicios .sec-img {
  width: 50%;
  display: flex;
}
section.servicios .sec-img img {
  max-width: 100%;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  align-self: stretch;
}
section.servicios .sec-txt {
  width: 50%;
  display: flex;
  padding: calc(0.7rem + 2vw);
  flex-direction: column;
  color: #fff;
  height: 100%;
}
section.servicios .sec-txt h3 {
  color: #fff;
	font-size: calc(0.7rem + 2vw);
text-transform: uppercase;
}
section.servicios .carousel-caption h2 {
  color: #0b5fb4;
  font-weight: 600;
  font-size: 40px;
	background-color:rgba(255,255,255,0.75);
	padding: 10px;
}
section.servicios .carousel{
  color: #0b5fb4;
  font-weight: 600;
  font-size: 40px;
	background-color:rgba(255,255,255,0.75);
}

/****mapa google ****/
.container-map {
	height: 0;
	overflow: hidden;
	padding-bottom: 45%;
	position: relative;
	 margin-top: 3rem;
}

.googlemap {
	border: 0;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

/****laguntzaileak***/

section.laguntzaileak{
	 background-color: #fff;;
	text-align: center;
	padding: 3.5rem 0;
}
section.laguntzaileak h2 {
  font-size: calc(0.7rem + 2vw);
  text-transform: uppercase;
  margin-bottom: 2rem;
  width: 100%;
}
section.laguntzaileak .logoak{
	display: flex;
	flex-wrap: wrap;
	justify-content:center;
	margin: 3rem 0;
	
	
}
section.laguntzaileak .logoak img{
	max-width: 150px;
	height: auto;
	margin:20px;
	
}
section.laguntzaileak .logoak img:hover{
	opacity: 0.85;
	
}
/****footer***/
footer {
  position: relative;
  padding-top: 5rem;
  background-size: cover !important;
  background-position: center top;
  margin: 0px;
  background-repeat: no-repeat;
}
footer .container {
  background-color: transparent;
}
.f-logo img {
  max-width: 250px;
  margin-bottom: 20px;
  margin-top: -32px;
}
.f-contacto {
  margin: 2rem 0;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.f-contacto p {
  margin-bottom: 10px;
}
.f-helbidea {
  display: flex;
  flex-direction: column;
  margin-left: 5px;
}
.f-helbidea a {
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
	text-decoration: underline;
}
.f-helbidea i {
  margin-right: 10px;
  font-size: 16px;
}
.f-helbidea a:hover {
  color: #FFF;
}
.f-sareak {
  display: flex;
  margin-top: 20px;
}
.f-sareak i {
  font-size: 28px;
  color: #fff;
  margin: 0 10px;
}
.f-menu {
  margin-top: 6rem;
}
.f-menu ul {
  list-style: none;
  padding-left: 0;
}
.f-menu ul li {
  margin-bottom: 5px;
}
.f-menu a {
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.f-menu a i {
  font-size: 20px
}
.f-menu a:hover {
  text-decoration: underline;
}
.footer-bottom {
  background-color: rgba(0, 0, 0, .85);
  padding: 0.5rem;
  color: #fff;
  position: relative;
  display: flex;
  font-size: 16px;
}
.footer-bottom ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin-left: 30px;
	flex-wrap: wrap;
}
.footer-bottom ul li {
  margin-right: 10px;
}
.footer-bottom li a {
  margin-left: 2rem;
  text-decoration: underline;
	color:#fff;
}
.footer-bottom li a:hover {
  color: #fff;
}
.arrow-top {
  margin-right: 20px;
	display: flex;
	 flex-direction:column;
}
.arrow-top i {
  font-size: 45px;
}

/***INNOBASO***/

.login-page{
  background: url('../img/natura_berdea.png') center center / cover no-repeat fixed;
  position: relative;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
  z-index: 0;
}

.logo-box {
  border-bottom: 1px solid #ccc;
  margin-bottom: 3vh;
}

body {
  font-family: Manrope, "Noto Sans", sans-serif;
  background-color: #f9fbf9;
  overflow-x: hidden;
}

.text-forest {
  color: #121810;
}

.text-muted-forest {
  color: #668a5c;
}

.bg-forest {
  background-color: #f9fbf9;
}

.bg-muted-forest {
  background-color: #ebf1ea;
}

.shadow-soft {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rounded-xl {
  border-radius: 1rem;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

input::placeholder {
  color: #668a5c !important;
}

.btn-modern {
  border-radius: 0.75rem;
  font-weight: normal;
  padding: 0.25rem 0.75rem;
  transition: all 0.2s ease-in-out;
}
.btn-modern-sm {
  font-size: medium;
  border-radius: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s ease-in-out;
}
.btn-modern-outline {
  background-color: transparent;
  border: 1px solid #668a5c;
  color: #668a5c;
}
.btn-modern-outline:hover {
  background-color: #ebf1ea;
  color: #121810;
}
.btn-modern-filled {
  background-color: #668a5c;
  color: #fff;
  border: none;
}
.btn-modern-filled:hover {
  background-color: #557a4c;
}

#forest-map {
  height: 80vh; /* o una altura fija como 500px */
  width: 100%;
}

#resultadoApi{
  font-family: monospace;
  font-size: 0.875rem;
  white-space: pre-wrap;
  max-height: 60vh;
  overflow-y: auto;
}

.json-key {
  color: #0d6efd;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.json-toggle {
  margin-left: 1rem;
  border-left: 1px dashed #ccc;
  padding-left: 1rem;
}

.json-icon {
  font-size: 0.8rem;
}

.nabegazioa > div:hover{
  background-color: #d5facd;
  color: #121810;
  border-radius: 1rem;
  cursor: pointer;
}

:root {
    --sidebar-width: 285px;
    --sidebar-width-collapsed: 80px;
}

body {
    overflow-x: hidden;
}

/*.logo-container {
  position: relative;
  width: var(--sidebar-width) - 20px; 
  height: 80px;
  margin: 4px 16px;
}*/

.logo-nav-grande {
  position: absolute;
  top: 0;
  left: 0;
  width: 180px; 
  height: 60px;
  background-image: url('../img/ebis_logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  transition: opacity 0.1s ease-in-out;
  transition-delay: 0.2s;
}
.logo-nav-pequeño{
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/ebis_logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  transition: opacity 0.3s ease-in-out;
}

.sidebar.collapsed .logo-nav-grande {
  opacity: 0;
}

.sidebar.collapsed .logo-nav-pequeño {
  opacity: 1;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(135deg, #77a06b 0%, #3e5539 100%);
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar .nav{
  overflow: hidden;
}

.sidebar-link.sidebar-link-accordion:not(.collapsed){
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.accordion-sublist{
  margin-left: 1rem;
}

.accordion-sublist li {
  margin: 0.5rem 0;
}

.sidebar-link {
  color: #222222;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 4px 16px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}
.sidebar-sublink {
    color: #222222;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 16px;
    white-space: nowrap;
    overflow: hidden;
    padding: 0.2rem 1rem;
}

.sidebar-sublink:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-sublink.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}



.profile-info {
    transition: opacity 0.2s ease;
}

.profile-link {
    text-decoration: none;
}

.profile-link:hover {
    text-decoration: underline;
    color: #ffffff;
}

.profile-logout {
    transition: opacity 0.2s ease;
}

.portada {
    margin-left: var(--sidebar-width);
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

.collapsed~.portada {
    margin-left: var(--sidebar-width-collapsed);
}

.toggle-btn {
    position: absolute;
    right: 0;
    top: 65px;
    background: #dddddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 0 10px 0 10px ;
    z-index: 10;
}

.sidebar.collapsed .toggle-btn {
    transition: transform 0.3s ease;
    width: 80px;
    right: -80px;
     align-items: center;
     display: flex;
}
.sidebar.collapsed .toggle-btn i {
    transform: rotate(180deg);  
}
.sidebar.collapsed .hide-on-collapse {
    opacity: 0;
    visibility: hidden;
}

.sidebar.collapsed .sidebar-link {
    text-align: left;
    padding: 1rem !important;
    margin: 4px 8px;
}

.sidebar.collapsed .sidebar-link i {
    margin: 0 !important;
}

.sidebar.collapsed .profile-info {
    opacity: 0;
}

.sidebar.collapsed .profile-logout {
    opacity: 0;
}

.page-link {
  color: #557a4c;
  text-decoration: none;
}

.page-link:hover {
  color: #557a4c;
  text-decoration: none;
}

.page-item.active .page-link {
  background-color: #557a4c;
  color: #fff;
  border-color: #557a4c;
}

/* Oculta el buscador por defecto de DataTables */
.dt-search {
  display: none !important;
}

/* Oculta la flecha cuando la columna NO está ordenada */
table.dataTable thead th.dt-orderable-asc:after,
table.dataTable thead th.dt-orderable-desc:after {
  content: "";
  display: none;
}
/* Fuerza a mostrar las flechas de ordenación de DataTables */
table.dataTable thead .dt-ordering-asc:after,
table.dataTable thead .dt-ordering-desc:after {
  content: "▼" !important;
  display: inline-block !important;
  margin-left: 8px;
  vertical-align: middle;
  opacity: 0.7;
  transition: transform 0.2s ease;
  transform: rotate(0deg);
}
table.dataTable thead .dt-ordering-asc:after {
  transform: rotate(180deg);
}
table.dataTable thead > tr > th.dt-orderable-asc {
  cursor:pointer;
  position: relative;
  vertical-align: middle;
  font-size: 0.9rem;
}
table.dataTable thead > tr > th.dt-orderable-asc > .dt-column-header {
  padding-right:20px;
}
.dt-ordering-desc:after,
.dt-ordering-asc:after {
  position:absolute;
  right:5px;
  top:10px;
  display: block;
}

.personas-filtro-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  background-color: transparent;
  border: 1px solid #668a5c;
  color: #668a5c;
  border-radius: 0.75rem; /* btn-modern */
  transition: background-color .2s ease-in-out, color .2s ease-in-out;
}
.personas-filtro-btn:hover {
  background-color: #557a4c;
  color: #fff;
}
.personas-filtro-btn.active {
  background-color: #557a4c;
  color: #fff;
  border: none;
}

/* Custom Select Moderno */
.form-select-modern {
  display: block;
  width: 100%;
  padding: 0.5rem 2.25rem 0.5rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #121810; /* text-forest */
  background-color: #ebf1ea; /* bg-muted-forest */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23668a5c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 16px 12px;
  border: 1px solid #ebf1ea;
  border-radius: 0.75rem; /* btn-modern */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-select-modern:hover {
  border-color: #668a5c;
}

.form-select-modern:focus {
  border-color: #557a4c;
  outline: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 0 0 0.2rem rgba(85, 122, 76, 0.25);
}

.form-select-modern:disabled {
  color: #6c757d;
  background-color: #e9ecef;
  opacity: 1;
}

/* Estilo personalizado para nav-pills verticales del modal de personas */
#v-pills-tab .nav-link {
  color: #668a5c;
  background: #ebf1ea;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  border: 1px solid #ebf1ea;
  text-align: left;
}

#v-pills-tab .nav-link.active,
#v-pills-tab .nav-link:focus,
#v-pills-tab .nav-link:hover {
  color: #fff;
  background: #668a5c;
  border-color: #668a5c;
}

#v-pills-tab .nav-link:not(.active):hover {
  background: #d5facd;
  color: #121810;
}

#v-pills-tab {
  min-width: 160px;
}

.modal-xl{
  max-width: 70%;
}

#tablaActuaciones{
  font-size: small;
}
.btn-editar-actuacion{
  font-size: small;
}
.btn-eliminar-actuacion{
  font-size: small;
}

/***tablas***/

html, body {
  margin: 0;
  font-family: system-ui, sans-serif;
  overflow-x: hidden;
}


#tablaContenido_wrapper {
  max-width: 100%;
  overflow-x: auto;             
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

}

#tablaContenido_wrapper::after {
  content: "";
  position: sticky;
  right: 0;
  top: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(to left, rgba(0,0,0,.75), transparent);
  pointer-events: none;
}

/* foco accesible al navegar con teclado */
#tablaContenido_wrapper:focus-visible {
  outline: 3px solid #ff9f1a;
  outline-offset: 3px;
}

/* tabla “ancha” para que pueda provocar scroll */
#tablaContenido_wrapper table {
  border-collapse: collapse;
  min-width: 720px;      /* ajusta según columnas */
  width: 100%;
     margin: 30px 0;
}



/*******/
i.fas{color: #668a5c}
.sidebar-link i.fas{color:#000
    
}
.btn-modern-filled i.fas, .card-header i.fas{
   color:#fff 
}
.sidebar-link i.fas:hover{color:#fff
    
}
.bg-primary{background-color: #668a5c!important}
.text-primary{color: #668a5c!important}


.bg-warning{background-color: #d19608!important
    
}
.text-warning{color:#d19608!important}
.bg-success{background-color:#b05a04!important
    
}
.text-success{color:#b05a04!important}
.bg-info{background-color:#0882c1!important
    
}
.text-info{color:#0882c1!important}
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){
     margin: 0 5px;
}
.titulares-goiko-card small, .adhesiones small{
    font-size: 18px;
    
}
.adhesiones .bg-primary h4, .adhesiones .bg-success h4, .adhesiones .bg-warning h4, .adhesiones .bg-info h4{
    color: #fff;
    
}
.certificados .bg-success h5 {color: #fff}
.goiburua-ebis{
     border-bottom: 2px solid #668a5c;
    position: fixed;
  width: 100%;
    z-index: 999;
     background-color: #fff;
     display: flex;
     justify-content: space-between;
     align-items: center;
}
nav.sidebar{
    margin-top:48px;
}
main{ margin-top: 50px;}
.profile-info .profile-link {display:none;}
.profile-logout{
     margin-left: 20px;
}
.profile-section {
    display: flex;
     margin-right: 30px;
}
.toggle-btn {
  right: -40px;
    background-color: #668a5c;
    border-radius:  0 20px 20px 0;
    top:0
    
}
.toggle-btn i {
 color: #fff;
    font-size: 24px
    
}

.card-bg-txuria .card-body{
     border: 2px solid #668a5c;
    
}
.card-bg-berdea .card-body{
     border: 2px solid #000;
    
}
#tablaContenido_info{
    margin: 30px 0;
}

/*****/
@media (max-width: 1500px) {
  .menu-nagusia.navbar-light .navbar-nav .nav-link {
    padding: 0 20px;
  }
 
}
@media (max-width: 1200px) {
  
  .menu-nagusia.navbar-light .navbar-toggler {
    position: absolute;
    right: 12px;
    top: 10px;
	padding: 15px 25px;
	background-color: #0b5fb4;
color: #fff;
border: none;
font-weight: 600;
  }
  nav.menu-nagusia.navbar .menu-nav {
    display: block;
    width: 100%;
  }
  nav.menu-nagusia .navbar-collapse {
    padding-top: 15px;
    border-top: 1px solid #fff;
    margin-top: 15px;
  }
  nav.menu-nagusia.navbar {
    height: auto;
    padding: 5px;
  }
  .menu-nagusia .nav-item {
    display: block;
    margin-bottom: 10px;
  }
  .menu-nagusia .nav-item .dropdown-menu {
    top: 71px;
    border-radius: 0;
    background-color: #fff;
    color: #000;
    border: 0;
    margin-left: 30PX;
  }
  .footer-bottom li a {
    margin-left: 0;
  }
}
@media (max-width: 991px) { 
    .planes-goiko{
        flex-wrap: wrap;
    
}
    .planes-goiko h2{
         width: 100%;
         padding-bottom: 20px;
    
}
  .collapsed~.portada {
    margin-left:unset;
}
}
@media (max-width: 768px) {
  .collapsed~.portada {
    margin-left:unset;
}
	.contacto-item{
		 display: none;
	}
  .f-logo img {
    max-width: 150px;
  }
  .f-menu {
    margin-top: 0;
    border-top: 1px solid #fff;
    padding: 20px 0;
  }
	section.sarrera .lead, section.sarrera .tx-right {
  width: 100%;
}
	section.servicios .sec-img, section.servicios .sec-txt{
		 width: 100%;
	}
	section.servicios .sec-img{
		 order:-1;
	}
}
@media (max-width: 500px) {
  
  .top-header {
    justify-content: space-between;
  }
  .top-header a.contacto {
    padding: 10px 5px;
    font-size: 14PX;
    font-size: 14PX;
  }
  .top-header .sareak {
    margin: 0 10px;
  }
  .top-header .sareak i {
    font-size: 20px;
  }
  .top-header .hizkuntzak {
    margin: 0 10px;
  }
}

/* ===================================
   SIDEBAR NAVIGATION - TEXT WRAPPING
   =================================== */

/* Estilo para los enlaces del sidebar */
.nav .sidebar-link {
    display: flex !important;
    align-items: flex-start !important; /* Alinear al inicio para multilinea */
    gap: 12px;
    padding: 12px 16px !important;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.4;
    overflow: visible;
}

/* El icono se mantiene fijo en la parte superior */
.nav .sidebar-link i {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    margin-top: 2px; /* Alinear con la primera línea del texto */
}

/* El texto puede hacer wrap en múltiples líneas */
.nav .sidebar-link .hide-on-collapse {
    flex: 1;
    white-space: normal; /* Permitir saltos de línea */
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Máximo 2 líneas */
    line-clamp: 2; /* Estándar para compatibilidad futura */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ocultar texto cuando está colapsado */
.sidebar.collapsed .hide-on-collapse {
    display: none !important;
}

/* Ajustar el contenedor del nav */
.nav {
    overflow: visible;
    width: 100%;
}
.sidebar.collapsed {
   width: 0;
}
.sidebar.collapsed .toggle-btn::before{
     content: "MENU";
  color: #fff;
     margin-right: 5px;

}
/* ===================================
   FIN SIDEBAR NAVIGATION
   =================================== */

/* ===================================
   CERTIFICADOS DE MATERIA PRIMA
   =================================== */

/* Cards de consulta */
.card {
    border-radius: 8px;
    border: 1px solid #ddd;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-size: 1rem;
    padding: 12px 15px;
}


.card-body {
    padding: 20px;
}

/* Selectores de monte con tamaño personalizado */
#monte-mup {
    min-height: 150px;
}

#parcelas-seleccionadas {
    min-height: 150px;
}

/* Botones circulares */
.btn-sm.rounded-circle {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Área de resultados */
#resultado-certificado {
    margin-top: 20px;
    border-radius: 8px;
}

#resultado-certificado h5 {
    margin-bottom: 15px;
    color: #0c5460;
}

#info-certificado {
    font-size: 0.95rem;
}

#info-certificado .row > div {
    margin-bottom: 8px;
}

/* Labels en bold */
.card-body label strong {
    font-weight: 600;
    color: #333;
}

/* Form controls */
.form-control,
.form-select {
    border-radius: 4px;
    border: 1px solid #ced4da;
    line-height: 2;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Espaciado de rows */
.card-body .row {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body .row .col-3 {
        flex: 0 0 30%;
        max-width: 30%;
    }
    
    .card-body .row .col-9 {
        flex: 0 0 70%;
        max-width: 70%;
    }
}

/* Animación de spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* ===================================
   FIN CERTIFICADOS DE MATERIA PRIMA
   =================================== */

/* ===================================
   DETALLES DE PLANES - ADHESIONES
   =================================== */

/* Modal específico para detalles de planes */
.modal-detalles-plan .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
    margin: 1.75rem auto;
}

.modal-detalles-plan .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-detalles-plan .modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 120px); /* Restar header y footer */
    padding: 0;
}

.plan-details-container {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: visible;
}

.plan-details-container .card-header {
    border-bottom: none;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.plan-details-container .border-bottom:last-child {
    border-bottom: none !important;
}

.plan-details-container .bg-light {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Cards para Unidades de Actuación */
.plan-details-container .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
    border: 0 !important;
}

.plan-details-container .card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.plan-details-container .card-header {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
    padding: 1rem 1.25rem !important;
}

.plan-details-container .badge {
    font-size: 0.875rem !important;
}

.plan-details-container .table th {
    background-color: #f8f9fa !important;
    font-weight: 600 !important;
    border-top: none !important;
}

.plan-details-container .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.02) !important;
}

/* Mejoras en el scroll del modal */
.modal-detalles-plan .modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-detalles-plan .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-detalles-plan .modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-detalles-plan .modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 768px) {
    .modal-detalles-plan .modal-dialog {
        max-width: 95vw;
        margin: 0.5rem auto;
    }
    
    .modal-detalles-plan .modal-content {
        max-height: 95vh;
    }
    
    .modal-detalles-plan .modal-body {
        max-height: calc(95vh - 100px);
    }
    
    .plan-details-container {
        padding: 15px;
    }
    
    .plan-details-container .table-responsive {
        font-size: 0.875rem;
    }
    
    .plan-details-container .card-header h5 {
        font-size: 1rem !important;
    }
}

/* ===================================
   FIN DETALLES DE PLANES - ADHESIONES
   =================================== */

/* ===================================
   DATATABLES COMPACTAS - INFORMES
   =================================== */

.datatable-generic tbody td {
    white-space: normal !important;
    word-wrap: break-word !important;
    max-width: 150px !important;
    font-size: 0.85rem !important;
    padding: 0.3rem 0.5rem !important;
}

.datatable-generic thead th {
    font-size: 0.85rem !important;
    padding: 0.3rem 0.5rem !important;
    max-width: 150px !important;
}

/* Evitar wrap en fechas y contenido corto */
.datatable-generic tbody td.no-wrap,
.datatable-generic tbody td[data-order]:not([data-order=""]) {
    white-space: nowrap !important;
    max-width: none !important;
}

/* ===================================
   FIN DATATABLES COMPACTAS - INFORMES
   =================================== */