#cookie-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
  line-height: 60px;
  background-color: #f5f5f5;
}

body {
  background-color: whitesmoke;
}

.center {
  text-align: center;
}

/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 0px dotted black; /* 1 If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptexttop {
    visibility: hidden;
    width: 150px;
    top: -30px;
    right: 10%;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
 
    /* Position the tooltip text */
    position: absolute;
    z-index: 4;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.5s;
}

.tooltip .tooltiptextright {
    visibility: hidden;
    width: 150px;
    top: 20px;
    left: 110%;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
 
    /* Position the tooltip text */
    position: absolute;
    z-index: 4;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.5s;
}

.tooltip .tooltiptextwide {
    visibility: hidden;
    width: 300px;
    bottom: -30px;
    right: 10%;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
 
    /* Position the tooltip text */
    position: absolute;
    z-index: 4;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.5s;
}

.tooltip .tooltiptext {
    visibility: hidden;
    bottom: -30px;
    width: 220px;
    left: 10%;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
 
    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 4;
    
    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.5s;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext, .tooltip:hover .tooltiptextright, .tooltip:hover .tooltiptextwide, .tooltip:hover .tooltiptexttop {
    visibility: visible;
    opacity: 1;
}

/* Tooltip arrow */
.tooltip .tooltiptexttop::after {
    content: " ";
    position: absolute;
    bottom: -33%; /* At the top of the tooltip */
    left: 90%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.tooltip .tooltiptextwide::after {
    content: " ";
    position: absolute;
    top: -33%; /* At the bottom of the tooltip */
    left: 90%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent black transparent;
}

.tooltip .tooltiptext::after  {
  content: "";
  position: absolute;
  top: -33%; /* At the bottom of the tooltip */
  left: 10%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent black transparent;
}

.tooltip .tooltiptextright::after  {
  content: "";
  position: absolute;
  top: 30%; /* At the bottom of the tooltip */
  right: 100%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}

/*.table {*/
/*            margin-left: auto;*/
/*            margin-right: auto;*/
/*            font-size: 14px;*/
/*            width: 100%;*/
/*            table-layout:fixed;*/
/*}*/
/*.tr {*/
/*    font-size: 12px;*/
/*    text-align: center;*/
/*}*/

/*.td .btn {*/
/*    font-size: 12px;*/
/*    height: 30px;*/
/*    width: 200px;*/
/*   height: 20px;*/
/*   margin: 0 auto;*/
/*   padding: 0;*/
/*   display: table-cell;*/
/*   vertical-align: middle;*/
/*}*/

.table-bg-gainsboro {
    background-color: gainsboro;
}

.table_bg_admin {
    padding: 100px;
    background-color: #A93333;
}

.table_bg {
   padding: 100px;
   background-color: ; #A9FFCB;
}

.viesti_bg_lahetetty {
    background-color: #C8E6C9;
    font-size: 0.7em;
}

.viesti_bg_vastaanotettu {
    background-color: #FFF9C4;
    font-size: 0.7em;
}

.viesti_fs_ajalle {
    font-size: 0.7em;
}

.kertomus_bg_3 {
   background-color: #FEF9E7;
}
.kertomus_bg_2 {
   background-color: #FCF3CF;
}
.kertomus_bg_1 {
   background-color: #F9E79F;
}


.grid-container {
  display: grid;
  grid-template-columns: 50% auto;
  grid-gap: 0px;
  background-color: #0296F3;
  padding: 1px;
}

.grid-container > div, .grid-container-div {
  background-color:rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 0 0;
  font-size: 12px;
}

.logo {
    display: grid;
    height: 100%;
}
.center-fit {
    max-width: 100%;
    max-height: 100vh;
    margin: auto;
}

@media screen and (min-width: 451px) {
        .priority-phone {
            display:none;
        }
}

@media screen and (max-width: 450px) {
		.priority-none {
            display:none !important;
        }
        .pienifontti {
            font-size:x-small;
        }
}

ul {
  display: block;
  list-style-type: circle;
  margin-top: 0;
  margin-bottom: 1em;
  margin-left:  0;
  margin-right: 0;
  padding-left: 20px;
}



/*   input[type=text] {*/
/*      width: 30%;*/
/*      -webkit-transition: width 0.15s ease-in-out;*/
/*      transition: width 0.15s ease-in-out;*/
/*   }*/
 
/*   /* When the input field gets focus,*/
/*        change its width to 100% */*/
/*   input[type=text]:focus {*/
/*     width: 70%;*/
/*   }*/
/* */

.table-striped>tbody>tr:nth-child(odd)>td,
.table-striped>tbody>tr:nth-child(odd)>th {
    background-color: red; /* Choose your own color here */
}
.table-striped>tbody>tr.selectedRow:nth-child(odd)>td,
.table-striped>tbody>tr.selectedRow:nth-child(even)>td {
    background-color: #819bbf;
    color: black;
}

.list_items:hover {
    cursor: pointer;
}

.dropdown-menu li {
position: relative;
}
/*.dropdown-menu .dropdown-submenu {*/
/*display: none;*/
/*position: absolute;*/
/*left: 100%;*/
/*top: -7px;*/
/*}*/
.dropdown-menu .dropdown-submenu-left {
right: 100%;
left: auto;
}
.dropdown-menu > li:hover > .dropdown-submenu {
display: block;
}
.dropdown-menu > btn:hover > .dropdown-submenu {
display: block;
}

#salasana {
  display: none;
}

#salasana.show {
  display: block;
}



.table {
  font-size: 14px;
  margin-bottom: 0px !important;
}

.table tr td {
    padding-top: 0px !important; 
    padding-bottom: 0px !important;
}
 
.highlight {
    background-color: yellow;
}

.tooltip {
  pointer-events: auto; /* Ensure touch interactions work */
}

/* Open dropdown to the left for small screens */
@media (max-width: 500px) {
    .dropdown-menu {
        right: 0;
        left: auto;
    }

    .dropdown-menu .dropdown-menu {
        right: 100%; /* Aligns submenu to the left */
        left: auto;
    }
}

table {
    table-layout: auto;
    width: 100%;
}

td {
    word-wrap: break-word; /* Allows long words to break */
    overflow-wrap: break-word;
    white-space: normal; /* Prevents content from staying on one line */
	vertical-align: middle !important; /*keskitä kaikki taulujen solujen tekstit vertikaalisesti*/
}

img {
    max-width: 100%; /* Scale down images */
    height: auto;    /* Maintain aspect ratio */
}

    /* Limit the width of the container */
    .time-picker-container {
        max-width: 220px;
        width: 100%; /* Make it responsive */
    }

    /* Ensure all input fields and button are aligned on the same line */
    .input-group {
        display: flex;
        justify-content: space-between; /* Adjust space between elements */
        align-items: center; /* Vertically align them */
    }

    .input-group input {
        width: 40px; /* Fixed width for input fields */
        height: 28px;
   }

    .input-group button {
        height: 100%; /* Match the height of input fields */
        min-width: 40px; /* Ensure button width consistency */
    }

.ongoing {
    background-color: #f8f9fa; /* Light gray for ongoing events */
}

.finished {
    background-color: #ffc107; /* Yellow for finished events */
}


.metsassaVari {
    color: #008200 !important; /* vihreä */
}
.keskVari {
    color: #AA6400 !important; /* ruskea */
}
.hylattyVari {
    color: #AA6400 !important; /* ruskea */
}
.maalissaVari {
    color: #FF0000 !important; /* punainen */
}
.hylesitysVari {
    color: #FF0000 !important; /* punainen */
}
.onlinemaalissaVari {
    color: #0000AA !important; /* sininen */
}
.normaaliVari {
    color: #666666 !important; /* musta */
}
.valmisVari {
    color: #8A2BE2 !important; /* violetti */
}





/* === Split container & panels === */
#splitContainer {
	height: calc(100vh - 60px); /* leave space for header/buttons */
	display: flex;
	overflow: hidden;
}

#leftPanel,
#rightPanel {
	min-width: 300px;
	min-height: 250px;
	overflow: auto;
}

/* Divider base */
#divider {
	background: #ccc !important;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	flex-shrink: 0;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	min-width: 10px;
	min-height: 10px;
}

#divider::after {
	content: "";
	position: absolute;
	top: -10px; bottom: -10px;
	left: -10px; right: -10px;
}

#divider:hover,
#divider.active {
	background: #bbb;
	box-shadow: inset 0 0 5px rgba(0,0,0,0.3),
	0 0 8px rgba(255,193,7,0.8);
}

/* Desktop: side by side */
@media (min-width: 769px) {
	#splitContainer {
		flex-direction: row;
		align-items: stretch;
	}
	#leftPanel, #rightPanel, #divider {
		height: 100%;
	}
	#divider {
		width: 8px;
		cursor: col-resize;
	}
	#divider::before {
		content: "\22EE"; /* vertical dots */
		font-size: 16px;
		color: #444;
	}
}

/* Mobile: stacked */
@media (max-width: 768px) {
	#splitContainer {
		flex-direction: column;
		height: calc(100vh - 80px);
		flex: 1 1 auto;
		min-height: 0; /* allow children to scroll */
	}
	#leftPanel,
	#rightPanel {
		flex: 1 1 auto;
		min-height: 250px;
		min-width: 100px;
		overflow: auto;
	}
	#divider {
		flex: 0 0 12px;
		min-height: 12px;
		width: 100%;
		cursor: row-resize;
	}
	#divider::before {
		content: "\2026"; /* horizontal dots */
		font-size: 22px;
		color: #333;
		opacity: 0.9;
	}
}
/* default: hide both, media queries decide
#wideTableWrapper, #narrowTableWrapper {
	display: none;
}*/

/* show narrow when ≤768px
@media (max-width: 768px) {
	#wideTableWrapper { display: none; }
	#narrowTableWrapper { display: block; }
}*/

/* show wide when ≥769px
@media (min-width: 769px) {
	#wideTableWrapper { display: block; }
	#narrowTableWrapper { display: none; }
}
 */
/* Default: only wide table visible */
#wideTableWrapper {
  display: block;
}
#narrowTableWrapper {
  display: none;
}

.graph-columns {
  display: none;
}

body.test-mode {
  background-color: #ffe6e6 !important;
}
body.test-mode::after {
  content: "HARJOITTELU";
  position: fixed;
  top: 40%;
  left: 2%;
  font-size: 8rem;
  color: rgba(200, 0, 0, 0.2);
  transform: rotate(-60deg);
  z-index: 9999;
  pointer-events: none;
}

/* Base: square buttons with centered icons */
.base-toggle-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
