*{
    box-sizing: border-box;
}
body{
    margin: 0px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}
.content{
  padding: 10px;
  float: left;
  margin-bottom: 10px;
}
.content.main{
  width: 75%;
  background-color: white;
}
.content.todo{
  width: 25%;
}
    /* Clear floats after the columns */
.row::after {
  content: "";
  display: table;
  clear: both;
}
.footer{
  position: fixed;
  bottom: 0px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  padding: 5px;
  border-top: 2px solid lightgrey;
  color: lightgrey;
  background-color: whitesmoke;
}
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: normal;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
  z-index: 1;
  top: 150%;
  left: 50%;
  margin-left: -60px;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent black transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}
.frame{
    color: rgb#4f76bd;
    border: 1px solid #4f76bd;
    border-radius: 6px;
    width: fit-content;
    background-color: white;
    box-shadow: 4px 4px 8px 0px rgba(0,0,0,0.4);
    padding: 10px 10px 10px 10px;
    position: relative;
    margin: 16px;    
    float: left;
}
.green {
  color: #009c24;
}
.red {
  color: #c80000;
}
.blue {
  color: #0034cf;
}
.gray {
  color: #c1c1c1;
}
.small {
  font-size: 14px;
}
.normal {
  font-size: 16px;
}
.iconbtn {
  display: inline-flex;
  align-items: center;
  padding: 5px 0.2rem;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}
.iconbtn:hover {
  color: #5e5e5e;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 5px;
  padding: 5px 10px;
  font-size: 0.95rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #e6eef7;
  background-color: inherit;
}
.icon{
  color: #4f76bd;
  transition: 0.3s ease;
} .icon:hover{
  color: #5e5e5e;;
} 
fieldset{
    color: rgb(60, 110, 200);
    border: 1px solid rgb(60, 110, 200);
    border-radius: 10px;
    width: fit-content;
    background-color: white;box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
    color: rgb(60, 110, 200);
    font-size: 10px;
}
legend{
    font-size: 14px;
    background-color: inherit;
    border-radius: 6px;
    padding: 2px 10px 2px 10px;
}
label {
    padding-right: 5px;
}
table {
  border-spacing: 0px;
}
a{
  color: inherit;
}
.indent{
  padding-left: 15px;
}
.space{
  padding-left: 5px;
  padding-right: 5px;
}
.listInactive{
  background-color: #e1e1e1;
  color: #a1a1a1;
}
.input-small{
  margin: 5px;
  border: 1px solid rgb(60, 110, 200);
  border-radius: 4px;
  padding: 5px;
  width: 50px;
}
.input-medium{
  margin: 5px;
  border: 1px solid rgb(60, 110, 200);
  border-radius: 4px;
  padding: 5px;
  width: 100px;
}
.input-large{
  margin: 5px;
  border: 1px solid rgb(60, 110, 200);
  border-radius: 4px;
  padding: 5px;
  width: 200px;
}
fieldset a{
    text-decoration: none;
    font-size: 10px;
    color: inherit;
}
.close{
    position: absolute;
    top: 16px;
    right: 8px;
    border: 1px solid rgb(60, 110, 200);
    padding: 0px 4px 2px 4px;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
}
.close:hover{
    background-color: rgb(60, 110, 200);
    color: rgb(215, 240, 255);
}
@media screen and (max-width: 600px) {
  
  content.main, .content.todo{
            width: 100%;
    }
}
/* === Grundmeny (desktop) === */
header{
  position: sticky;
  top: 0px;
  left: 0px;
  z-index: 100;
  width: 100%;
  box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.4);    
}
nav{
  background: #0f2741;
  color:#e6eef7;
}
.logo{
  font-size: 1rem;
  font-weight: bold;
  padding: 0.1rem 0rem 0rem 0.9rem;
}
.user{
  font-size: 2rem;
  font-weight: bold;
  padding: 0.1rem 0rem 0rem 0.9rem;
}
.klinik{
  font-size: 1,2rem;
  font-weight: bold;
  padding: 0.1rem 0rem 0.3rem 0.9rem;
}
.menyIkon{
  min-width: 20px;
}
.site-nav {
  border-bottom: 1px solid #556270;
}

.menu-level-1,
.menu-level-2 {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-level-1 {
  display: flex;
}

.menu-item > a {
  display: block;
  padding: 0.3rem 0.9rem;
  color: #e6eef7;
  text-decoration: none;
}

.menu-item.active > a,
.menu-item:hover > a {
  background: #1d3a5d;
}

.menu-item.has-children {
  position: relative;
}

.menu-item.has-children > a::after {
  content: "▾";
  margin-left: 0.35rem;
  font-size: 0.8em;
}

.menu-level-2 {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 200px;
  background: #132b49;
  border: 1px solid #34465a;
  display: none;
  box-shadow: 4px 4px 8px 0px rgba(0,0,0,0.4);    
}

.menu-item.has-children:hover > .menu-level-2 {
  display: block;
}

.submenu-item > a {
  display: block;
  padding: 0.3rem 1.5rem;
  font-size: 0.8rem;
  color: #e6eef7;
  text-decoration: none;
}

.submenu-item.active > a,
.submenu-item > a:hover {
  background: #1f426a;
}

/* === Mobilanpassning === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  padding: 0rem 0.2rem;
  color: #e6eef7;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    float: right;
    background: #0f2741;
  }

  .menu-level-1 {
    flex-direction: column;
    display: none; /* dold från start */
  }

  .menu-level-1.open {
    display: flex; /* visas när .open läggs till */
  }

  .menu-item.has-children > a::after {
    content: "▸"; /* pil åt höger */
  }

  .menu-level-2 {
    position: static;
    border: none;
    display: none;
    flex-direction: column;
    background: #132b49;
  }

  .menu-item.has-children.open > .menu-level-2 {
    display: flex;
  }
}