/* CORE */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

.session-expired-notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #b3261e;
  color: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  z-index: 9999;
}

.session-expired-notice.visible {
  display: flex;
}

.session-expired-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.session-expired-notice button {
  background-color: #fff;
  color: #b3261e;
  padding: 8px 12px;
}

.mobile-show {
  display: none;
}

.header {
  background-color: #0066cc;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  margin: 0;
}

.menu a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  cursor: pointer;
}

.menu {
  display: flex;
}

.navbar {
  background-color: #0099cc;
  padding: 10px;
  display: flex;
  align-items: center;
  padding: 10px 20px;
}

.navbar a {
  color: white;
  text-decoration: none;
  margin-right: 15px;
  cursor: pointer;
}

.logo {
  color: white;
  font-size: 24px;
}

.hamburger-menu {
  display: none;
 
}

.poista {
  background-color: rgb(163, 18, 18);
  color: white;
  cursor: pointer;
}

.poista:hover {
  background-color: rgb(87, 10, 10);
}

input[type="file"] {
  display: none;
}

.file-upload {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 10px;
  margin: 5px 0;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.file-upload:hover {
  background-color: #004d99;
}

button {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 10px;
  margin: 5px 0;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #004d99;
}

.lisaa {
  background-color: green;
 
  cursor: pointer;
} 

.lisaa:hover {
  background-color: #00491e;
}


    .dropdown {
      position: relative;
      display: inline-block;
    }

    .dropdown-button {
      background-color: #0066cc;
      color: white;
      padding: 10px 16px;
      font-size: 16px;
      border: none;
      cursor: pointer;
      border-radius: 5px;
    }

    .dropdown-content {
      display: none;
      position: absolute;
      background-color: white;
      min-width: 160px;
      box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
      z-index: 1;
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    .dropdown-content a {
      color: black;
      padding: 10px 14px;
      text-decoration: none;
      display: block;
    }

    .dropdown-content a:hover {
      background-color: #f1f1f1;
    }

    .show {
      display: block;
    }


/* HALLINTO */
.content {
  padding: 20px;
}

#fileUpload {
  margin-bottom: 10px;
}

button {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 10px;
  margin: 5px 0;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #004d99;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  text-align: center;
  background-color: white;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(25% - 20px);
  box-sizing: border-box;
}

.card h2 {
  margin-top: 0;
}

h {
  
    margin-top: 0;
    left: 30%;
    position: relative;
    font-size: xxx-large;
}


p1 {
  color: red;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 1px;
  }
  
  p3 {
    color: rgb(28, 190, 63);
    font-size: 15px;
    font-weight: bold;
    }
  
  p2 {
      font-size: 20px;
      font-weight: bold;
  }
  
  p4 { 
    color: rgb(76, 0, 255);
    font-size: 15px;
    font-weight: bold;
  }
  
  p5 {
    font-size: 10px;
  }

  p6 {
    font-size: 15px;
    font-weight: bold;
    padding: 2px;
}

p7 {
  font-size: 20px;
  font-weight: bold;
  padding-left: 10px;
  padding-right: 1px;
}

  h1 {
    margin-top: 20px;
    text-align: center;
  }
 
  h2 {
    margin-top: 20px;
    text-align: center;
  }
/*KOHTEET*/

.tehty {
 font-size: x-large;
 font-weight: bold;
 width: 47%;
 height: 47%;
 display: inline-block;
 text-align: center; 
 
}

.tab {
  display: flex;
  border-bottom: 2px solid #ccc;
}

.tablinks {
  
  background-color: #f5f5f5;
  color: black;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  min-width: 37%;
  margin-left: 8px;
  
}

.tablinks:hover {
  background-color: #e0e0e0;
}

.tablinks.active {
  background-color: #e0e0e0;
  border-bottom: 2px solid white;
}

.vali_otsikko {
  background-color: #dcdddd;
  justify-content: center;
  width: 100%;
  text-align: center;
  
}

.search-bar {
  display: flex;
  justify-content: center;
  margin: 20px;
}

.search-bar input {
  padding: 10px;
  width: 300px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
}

.search-bar button {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.search-bar button:hover {
  background-color: #004d99;
}

.highlight {
  background-color: yellow;
}

.info {
  width: 20%;
  padding: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.instructions {
  color: red;
  margin-bottom: 10px;
  white-space:pre-wrap;
}

.info button, .info textarea {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 5px;
}

.info textarea {
  height: 100px;
}

.kohteet_content {
  display: flex;
  justify-content: space-between; 
 
}

.kohteet {
  width: 75%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-right: 20px;
}

.kohde {
  background-color: white;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(100% - 20px);
  box-sizing: border-box;
}


table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

th {
  background-color: #f2f2f2;
}


/* LISTA */

.lista-button {
  width: 100%;
  font-size: xx-large;
}

/* HENKILÖSTÖ */

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}


.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  cursor: default;
  color: #acacac;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
 
 
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.form-popup {
  display: none;
  z-index: 9;
  
}

.popup {
  display: none;
  z-index: 9;
  
} 

.form-container {
   
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);

  border: black;
  border-style: solid;

  background-color: white;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  
  box-sizing: border-box;
  min-width: 24%;
  
  
}

.henkl_cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.henkl_card {
  background-color: white;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(25% - 20px);
  box-sizing: border-box;
  max-width: 24%;
  
}

pass {
  color: red;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 1px;
  cursor: pointer;
}

.form-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.form-group label {
  flex: 1;
  margin-right: 10px;
  text-align: right;
}

.form-group input {
  flex: 2;
  
}

/* .form-group input:hover {
  pointer-events: none;
} */
.form-container .form-group input {
 pointer-events: auto;
}

.form-actions {
  display: flex;
  justify-content: space-between;
}

.form-group .radio {
  flex: 0;
}

/*LISÄÄ*/

.vali-otsikko {
  padding-left: 7px;
}

.j-numero {
  float: right;
  width: 3%;
}

.lisaa-otsikko {
  margin: 1px;
}

.container {
  display: flex;
  justify-content: center;
}

.div_left{
  flex: 3;
  padding-left: 20px;
  background-color: white;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  margin: 5px;
  margin-top: 29px;
  
}

.div_right {
  flex: 5;
 
}

.huone_kortti {
  padding-left: 20px;
  background-color: white;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  margin: 5px;
 
}

.rivi {
  padding-left: 20px;
  background-color: white;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  margin: 5px;
  display: flex;
  align-items: center;
}

.rivi .poista {
  margin-left: auto;
}

.bottom_button {
  z-index: 1000;
  align-self: flex-end;
  margin: 20px;
  position: relative;
}

.kohde_container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.form_row {
  flex: 1;
 
}

.henkilo_lista {
  flex: 3;
  padding-left: 20px;
}

textarea {
  height: 165px;
  width: 321px;
  white-space:pre-wrap;
  overflow-y: auto; 
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  padding-left: 5px;
  margin-top: 5px;
}

.henkilo_lista li {
  list-style: none;
}

.henkilo_lista ul {
  height: 87%;
  overflow-y: auto; 
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  padding-left: 5px;
  margin-top: 5px;
}

/* LOGIN */

.danger {
  background-color: #ffdddd;
  border-left: 6px solid #f44336;
  width: 50%;
  padding: 1px;
  display: none;
}

.title-container {
  text-align: center;
  margin-bottom: 20px;
}

.title-container h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #0099cc;;
}

.title-container h2 {
  margin: 0;
  font-size: 2rem;
  color: #666;
}

.login_flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f0f2f5;
  font-family: 'Roboto', sans-serif;
}

.login-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-container h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 16px;
}

.login-container button {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.login-container button:hover {
  background-color: #0056b3;
}

.login-container p {
  margin: 10px 0 0;
  color: #777;
}

/* ASETUKSET */

.vakio-tyot {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.vakio-tyot::after {
  content: "";
    display: inline-block;
    width: 100%;
}

.vakio-tyot li {
  padding: 5px;
  list-style: none;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vakio-tyot li:hover {
  background-color: white;
}

.vakio-tyot ul {
  height: 40%;
  overflow-y: auto; 
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  padding-left: 5px;
  margin-top: 5px;
}

/* FOOTER */

footer {
  position: fixed;
  bottom: 10px;
  width: 100%;
  height: 2.5rem;
}

.footer-item {
  color: #cdc6c6;
  padding: 10px;
  text-align: center;
}

@media screen and (max-width: 768px) {
 
  .mobile-hide {
    display: none;
  }
  
  .mobile-show {
    display: block;
  }

  input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
    width: 110px; 
    padding: 5px; 
    box-sizing: border-box;
}

  /* KOHTEET */


  .tablinks {
    min-width: 47%;
  }

  .kohde {
    padding: 5px;
  }

  .kohteet_content {
      display: flex;
      justify-content: space-between;
      flex-direction: column-reverse;
    }

  .info {
    width:auto;
    margin-left: 20px;
  }


  .kohteet {
    width:auto;
    margin: 20px;
    padding-right: 0;
  }

  /* HENKILÖSTÖ */

  .henkl_card {
    max-width: 100%;
  }

  .form-group {
    justify-content: flex-end;
  }
  /* HALLINTO */

  .cards {
    flex-direction: column;
  }

  .file-upload {
    display: none;
  }

  /* NAVIGOINTI */

  .navbar {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #0099cc;
        
    }

  .navbar a {
      font-size: xx-large;
      color: rgb(255, 255, 255);
    }

  .navbar.active {
        display: flex;
        background-color: #0099cc;
    }

  .navbar li {
        text-align: center;
        margin: 10px 0;
    }

  .hamburger-menu {
        display: block;
    }

    /*LOGIN*/

    .danger {
     
      width: 100%;
   
    }
}
