/*Modifikacijos mobiliems pradžia*/
* {
	box-sizing: border-box;
}
.row::after {
  content: "";
  clear: both;
  display: table;
}

[class*="col-"] {
  float: left;
  padding: 15px;
}

/*Sukuriami vaizdo stulpeliai, suma visada turi sudaryti 12*/
/* For desktop: */
.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}

@media only screen and (max-width: 900px) { /*Mobiliojo ekrano dydis*/
  /* For mobile phones: */
  [class*="col-"] {
    width: 100%;
  }
}

.paprastas_meniu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.paprastas_meniu > ul > li {
	margin-bottom: 5px; /*Atstumas tarp meniu punktų*/
	background-color: #004f6A; /* Fono splva #3B708C*/
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); /*Meniu mygtukų šešėliai*/
}

.paprastas_meniu li a {
	display: block;
	text-decoration: none;
	color: white;
	padding: 10px;
}

.paprastas_meniu li a i { /*Tarpas tarp ikonos ir mygtuko teksto*/
	margin-right: 10px;
}

.paprastas_meniu > ul > li:hover {
  background-color: #3B708C; /* Spalva užvedus pelę #C2D6DD */
}

.paprastas_meniu > ul > li:hover > a {
  color: white; 
}

.paprastas_meniu > ul > li.active {
  background-color: #6a1b00; /* Aktyvaus punkto spalva */
}

.paprastas_meniu a.active {
	color: white; /* Aktyvaus punkto teksto spalva */
}

/*Submeniu pradžia*/
.paprastas_meniu .submeniu {
	display: none;
	list-style-type: none;
	padding: 0;
	margin: 0;
}

/* Show submenu on hover */
.paprastas_meniu .turi-submeniu:hover .submeniu {
	display: block;
}

.paprastas_meniu .turi-submeniu:focus-within .submeniu {
	display: block;
}

.paprastas_meniu .turi-submeniu > a::after {
	content: " ▼";
	font-size: 0.7em;
	float: right;
	color: #FFFFFF; /*Buvo: #666*/
	margin-left: 5px;
}

/* Style the nested submenu items */
.paprastas_meniu .submeniu li {
	margin: 0 !important; /* Remove gaps inside the dropdown */
	background-color: #3B7793 !important; /*Submeniu mygtukų spalva */
	box-shadow: none !important; /* Remove shadow from internal items */
	border-top: 1px solid #dcd173; /* Add a thin separator line */
}

.paprastas_meniu .submeniu li a {
	padding-left: 25px; /* Indent the text to show hierarchy */
	font-size: 0.9em;
}

.paprastas_meniu .submeniu li:hover {
	background-color: #C2D6DD !important;
}

.paprastas_meniu .submeniu li:hover > a {
    color: black !important;
}

.paprastas_meniu .submeniu li.active {
    background-color: #6a1b00 !important; /* Overrides the blue !important set earlier */
}

/* Keeps the active submenu text white when hovered */
.paprastas_meniu .submeniu li.active:hover > a {
	color: white !important;
}

.paprastas_meniu .turi-submeniu:has(.active) .submeniu {
    display: block; /* Jei submeniu yra aktyvus, jis nepasislepia */
}

/*Submeniu pabaiga*/
/* Hamburger meniu mygtukas (slepiamas siauruose ekranuose) */
.meniu-toggle {
	display: none;
	background-color: #004f6A;
	color: white;
	padding: 10px;
	border: none;
	width: 100%;
	text-align: left;
	font-size: 16px;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	margin-bottom: 5px;
}

.meniu-toggle i {
	margin-right: 10px;
}

.meniu-toggle:hover {
    background-color: #3B708C;
}

/* Taisyklės siauriems ekranams (< 900px) */
@media only screen and (max-width: 900px) {
	.meniu-toggle {
		display: block; /* Show the hamburger button */
	}

	#pagrindinis-meniu {
		display: none; /* Hide the menu items by default */
	}

	#pagrindinis-meniu.rodyti {
		display: block; /* The JS will add this class to show the menu */
	}
}
/*Hamburger meniu pabaiga*/
/*Modifikacijos mobiliems pabaiga*/
body {
    font-family: Arial, Helvetica, sans-serif;
}
.header {
    padding: 20px; /* Rėmelis */
    text-align: center;
    background: #004f6a; /* Fono spalva  #3B708C */
    color: white; /* Teksto spalva */
}

.header p {
	font-size: 24px;
}

.vertikali_linija {
	border-style: solid;
	border-color: #6a1b00; /*#33333c */
	border-width: 5px;
	/*width: 100%;*/
	text-align: center;
}

/*Senasis vertikalus meniu - pradžia */
.vertikalus-meniu {
	height: 100%;
    width: 230px; /* Mygtuko plotis */
	position: fixed;
	z-index: 1; /* Stay on top */
	top: 1; /* Stay at the top */
    left: 1;
	overflow-x: hidden; /* Disable horizontal scroll */
}
.vertikalus-meniu a {
    background-color: #eee; /* Fono splva */
    color: black; /* Teksto spalva */
    display: block; /* Make the links appear below each other */
    padding: 10px; /* Add some padding */
    text-decoration: none; /* Be pabraukimo */
}
.vertikalus-meniu a:hover {
    background-color: #ccc; /* Spalva užvedus pelę */
}
.vertikalus-meniu a.active {
    background-color: #336600; /* Aktyvaus punkto spalva */
    color: white;
}
/*Senasis vertikalus meniu - pabaiga */

.turinys { /*Puslapio turinys, dabar nebenaudojamas*/
    margin-left: 260px;
	margin-right: 50px;
    padding: 0px 10px;
	/*width: 70%;*/
}

.apatinis_blokas {
  background-color: white;
  /*color: #ffffff;*/
  text-align: center;
  font-size: 10px;
  padding: 15px;
}

a {
	text-decoration: none; /*Panaikina pabraukimą nuorodose*/
}

.centruotas {
	text-align: center;
}

.desineje {
	text-align: right;
}

.kaireje {
	text-align: left;
}

table {
	font-size: 14px;
	/*border-collapse: collapse;*/
}
th {
    vertical-align: middle; /*Vertikalus lygiavimas*/
	font-weight: bold;
}
tr {
    vertical-align: middle; /*Vertikalus lygiavimas*/
}

/*lenteles_stilius_1: pagrindinis lentelių stilius*/
.lenteles_stilius_1 {
	width: 100%;
	table-layout: auto;
	border-collapse: collapse;
}

.lenteles_stilius_1 th {
	background-color: #6a1b00;
	color: white; 
	border: none;
	padding: 8px 2px; /* 8px top/bottom, 2px left/right */
	font-weight: bold;
	min-width: min-content;
}

.lenteles_stilius_1 td {
	border: 1px solid #C2D6DD;
	padding: 2px 8px;
	min-width: min-content;
}

.lenteles_stilius_1 tr:hover td:not(.lenteles_antraste):not(.lenteles_paantraste) {
	background-color: #C2D6DD;
	color: #000000;
	transition: background-color 0.2s, color 0.2s;
}

@media screen and (min-width: 1500px) {
	.lenteles_stilius_1 {
		table-layout: fixed; /* This "activates" your colgroup widths */
	}
}

/*lenteles_stilius_k: klasifikatoriaus lentelės stilius*/
.lenteles_stilius_k {
	width: 100%;
	table-layout: auto;
	border-collapse: collapse;
	border-spacing: 1px;
}

.lenteles_stilius_k th {
	background-color: #004f6A; /*Buvo: #6a1b00 */
	color: white; 
	padding: 8px 4px; /* 8px top/bottom, 4px left/right */
	font-weight: bold;
	border: 1px solid #C2D6DD;
	border-top: 2px solid #6a1b00;
	border-bottom: 2px solid #6a1b00;
	min-width: min-content;
}

.lenteles_stilius_k td {
	border: 1px solid #C2D6DD;
	padding: 2px 8px;
	min-width: min-content;
}

.lenteles_stilius_k tr:hover td:not(.lenteles_antraste):not(.lenteles_paantraste) {
	background-color: #C2D6DD;
	color: #000000;
	transition: background-color 0.2s, color 0.2s;
}

@media screen and (min-width: 1500px) {
	.lenteles_stilius_k {
		table-layout: fixed; /* This "activates" your colgroup widths */
	}
}

.klasif_apatine_eilute td {
	border-bottom: 2px solid #6a1b00;
}


#lentele_new_01 tr:hover td, #lentele_new_02 tr:hover td, #lentele_new_03 tr:hover td, #lentele_new_04 tr:hover td, #lentele_used_01 tr:hover td, #lentele_used_02 tr:hover td {
	background-color: #C2D6DD;
}

#lentele_index_klasifikacija td:hover,
#lentele_klasifikacija_turinys td:hover {
    background-color: #C2D6DD;
}

#lentele_index_01 tr { /*Vertikalaus lygiavimo panaikinimas*/
	vertical-align: top;
}

#lentele_index_klasifikacija,
#lentele_klasifikacija_turinys {
    width: 100%; /* Fills the 95% or 60% container */
    table-layout: fixed; /* This is the magic rule for equal columns */
    border-collapse: collapse; /* Makes borders look much cleaner */
}

#lentele_kontaktai_01 {
	font-size: 1.1em;
}

#lentele_kontaktai_01 td {
	border-color: #FFFFFF;
}

#lentele_kontaktai_01 a {
	color: inherit;
}

/* Klasifikatoriaus turinio langelis */
.klasifikatoriaus_langelis {
	width: 33.33%;
	word-wrap: break-word; /* Prevents long words from breaking out of the box */
	border: 1px solid #C2D6DD;
	padding: 8px;
}

.klasifikatoriaus_langelis a {
	display: block; /* Makes the link stretch to fill the whole cell */
	width: 100%;
	height: 100%;
	color: inherit; /* Keeps your existing text colors */
}

.eilute-tarpas td {
	height: 20px; /* Adjust this number for more or less space */
	border: none; /* Ensures no borders show in the gap */
	background: transparent !important; /* Ensures the background stays empty */
}

.sektoriaus_langelis {
	word-wrap: break-word; /* Prevents long words from breaking out of the box */
	padding: 8px;
}

.sektoriaus_langelis a {
	display: block; /* Makes the link stretch to fill the whole cell */
	width: 100%;
	height: 100%;
	color: inherit; /* Keeps your existing text colors */
}

/* Make sure the hover effect doesn't light up the empty gap */
#lentele_index_klasifikacija .eilute-tarpas:hover td,
#lentele_klasifikacija_turinys .eilute-tarpas:hover td {
	background-color: transparent !important;
}

.eilute-sektorius td {
	border: none; /* Ensures no borders show in the gap */
	color: #004f6A;
	font-weight: bold;
	font-size: 1.15em;
	line-height: 1.6;
}

.eilute-sektorius td a {
	color: inherit; 
}

td.eil_kodas {
	font-weight: bold;
	background-color: #e2ca0f;
	text-align: center;
}
td.eil_kodas_1A { /*Eilutės kodas be centravimo*/
	font-weight: bold;
	background-color: #e2ca0f;
	/*text-align: center;*/
}
td.eil_kodas_2 { /*Eilutės kodas tik su boldu*/
	font-weight: bold;
}
td.eil_kodas_3 {
	font-weight: bold;
	background-color: #3B7793;
	color: white;
	text-align: center;
}

td.eil_kodas_3i { /*kodas_3 versija su italics*/
	font-weight: bold;
	font-style: italic;
	background-color: #3B7793;
	color: white;
	text-align: center;
}

td.paprastas_langelis {
	background-color: #eee;
}

td.paprastas_langelis_d { /*versija su rikiavimu pagal dešinįjį kraštą*/
	background-color: #eee;
	text-align: right;
}

td.paprastas_langelis_db { /*versija su rikiavimu pagal dešinįjį kraštą ir boldu*/
	background-color: #eee;
	font-weight: bold;
	text-align: right;
}

td.paprastas_langelis_i { /*versija su italics*/
	background-color: #eee;
	font-style: italic;
}

td.paprastas_langelis_id { /*versija su italics ir rikiavimu pagal dešinįjį kraštą*/
	background-color: #eee;
	font-style: italic;
	text-align: right;
}

td.paprastas_langelis_tamsesnis {
	background-color: #e2ebed; /*Buvo: #cccccc*/
}

td.paprastas_langelis_tamsesnis_i { /*versija su italics*/
	background-color: #e2ebed;
	font-style: italic;
}

td.paprastas_langelis_tamsesnis_b { /*versija su boldu*/
	background-color: #e2ebed;
	font-weight: bold;
}

td.baltas_langelis {
	background-color: #FFFFFF;
}

td.lenteles_antraste {
	background-color: #004f6A;
	text-align: center;
	font-weight: bold;
	color: #FFFFFF;
	border-bottom: 2px solid #6a1b00;
}
td.lenteles_paantraste {
	background-color: #ffffff;
	text-align: center;
	font-weight: bold;
	color: #004f6A;
	border-bottom: 2px solid #6a1b00;
	border-top: 2px solid #6a1b00;
}

h1 {
	color: #004f6A;
}

h2 {
	color: #004f6A;
}

h3 {
	color: #004f6A;
}

.paantraste {
    font-size: 0.5em;       /* Makes it half the size of the H2 text */
    color: #6a1b00;
    font-weight: normal;    /* Removes the bolding from the H2 */
    margin-left: 15px;      /* Adds some breathing room to the left */
    vertical-align: middle; /* Optional: Aligns it nicely with the big text */
}

.bordinis {
	color: #6a1b00;
}

.bordinis_boldas {
	color: #6a1b00;
	font-weight: bold;
}

.melynas_boldas {
	color: #004f6A;
	font-weight: bold;
}

.melynas_boldas i {
	margin-right: 8px; /* Adds space between the icon and "Apie mus" */
}

.paslaugu-sarasas {
    list-style-type: none; /* Pašalina burbuliukus */
}

.paslaugu-sarasas li a {
	color: black;
	display: inline-block;
	padding: 4px 0; /* Adds a tiny bit of breathing room between lines */
}

.paslaugu-sarasas li a:hover {
	color: #6a1b00;    /* Turns dark red on hover */
}

.paslaugu-sarasas li i {
	width: 25px;       /* Keeps text perfectly aligned vertically */
	margin-right: 8px; /* Space between the icon and your text */
}

/* Sąrašas kvadratukais */
.sarasas_kvardatukais {
	list-style-type: square;
	padding-left: 20px;
}

.sarasas_kvardatukais li {
	margin-bottom: 10px;
}

/* Inner nested list: circle bullets */
.sarasas_kvardatukais .sub-sarasas_burbuliukais {
	list-style-type: circle;
	padding-left: 20px;
}

/* Style the links inside the table of contents */
.sarasas_kvardatukais a {
	color: #000000; /* Default color: Black */
	text-decoration: none;
}

/* Keep the color exact same when hovered, visited, or clicked */
.sarasas_kvardatukais a:visited,
.sarasas_kvardatukais a:hover,
.sarasas_kvardatukais a:active {
	color: #000000; /* Keeps it black */
	text-decoration: underline; /* Optional: adds an underline on hover so users know it's clickable */
}

.zalias {
	color: #336600;
}

.pabrauktas {
	text-decoration: underline;
}

.grafiko-konteineris { /* Siauriems ekranams */
	width: 90%;
	height: 300px;
	display: block;
	margin: 0 auto;
}

@media only screen and (min-width: 1500px) { /* Platiems ekranams */
	.grafiko-konteineris {
		width: 60%;   /* 60% width for desktops */
	}
}

.grafiko-konteineris-d { /*Padidinta konteinerio versija. Siauriems ekranams */
	width: 90%;
	height: 450px;
	display: block;
	margin: 0 auto;
}

@media only screen and (min-width: 1500px) { /* Platiems ekranams */
	.grafiko-konteineris-d {
		width: 60%;   /*Padidinta konteinerio versija. 60% width for desktops */
	}
}

/*Įprastinis lentelės konteineris*/
.lenteles-konteineris { /* Siauriems ekranams */
	width: 95%;
	margin: 0 auto;
}

@media only screen and (min-width: 1500px) { /* Platiems ekranams */
	.lenteles-konteineris {
		width: 60%;   /* 60% width for desktops */
	}
}

/*Klasifikatoriaus lentelės konteineris*/
.lenteles-konteineris-k { /* Siauriems ekranams */
	width: 95%;
	margin: 0 auto;
}

@media only screen and (min-width: 1500px) { /* Platiems ekranams */
	.lenteles-konteineris-k {
		width: 80%;   /* 60% width for desktops */
	}
}

/*Mažas lentelės konteineris*/
.lenteles-konteineris-m { /* Siauriems ekranams */
	width: 95%;
	margin: 0 auto;
}

@media only screen and (min-width: 1500px) { /* Platiems ekranams */
	.lenteles-konteineris-m {
		width: 40%;   /* 40% width for desktops */
	}
}

/*Didelis lentelės konteineris*/
.lenteles-konteineris-d { /* Siauriems ekranams */
	width: 95%;
	margin: 0 auto;
}

@media only screen and (min-width: 1500px) { /* Platiems ekranams */
	.lenteles-konteineris-d {
		width: 90%;   /* 90% width for desktops */
	}
}

.paaiskinimai {
	font-size: 11px;
	margin-top: 1px;
	padding-bottom: 7px;
	/*padding-top: 7px;*/
}

.info {
	margin-top: -5px;
	padding-bottom: 7px;
	font-size: 0.7em; /* 70% of the standard inherited font size */
}

img.pagrindinis_logotipas {
	max-width: 100%;
	height: auto;
}

/*Iliustracija mažiems ekranams */
.iliustracija {
	width: 90%;
	max-width: 100%;
	height: auto;
	border: 1px solid #000000;
	/* Enhancements */
	display: block;          /* Allows centering */
	margin: 20px auto;       /* Centers the image and adds vertical breathing room */
	border-radius: 4px;      /* Slightly softens the harsh corners */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds a subtle 3D lift */
}

@media only screen and (min-width: 1500px) { 
	.iliustracija {
		width: 60%;
    }
}

/* Prisijungimo prie kasdieninės sistemos mygtukas */
.mygtukas-kasdien-prisijungti {
	display: inline-block;
	background-color: #004f6A;
	color: #ffffff;
	padding: 10px 24px; /* 10px top/bottom, 24px left/right */
	border-radius: 5px;
	text-decoration: none;
	font-size: 16px; /* Increased slightly from 12px for better modern readability */
	text-align: center;
	transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.mygtukas-kasdien-prisijungti:hover {
	background-color: #3B7793;
	color: #ffffff;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Subtle shadow on hover */
}

/* Ensures the text stays white even if global link colors change */
.mygtukas-kasdien-prisijungti:visited, 
.mygtukas-kasdien-prisijungti:active {
	color: #ffffff;
}

/* Mažesnis šalių filtro tekstas */
#SaliesFiltras_div {
    font-size: 14px; /* Matches your table font size */
    color: #004f6a;  /* Matches your dark blue theme color */
    margin-bottom: 10px; /* Adds a little space below the filter */
}