body{
  margin:0;
  font-family:Arial, sans-serif;
  background:#f4f6f9;
  color:#222;
}

header{
  background:#1f2937;
  color:#fff;
  padding:15px;
  font-weight:bold;
  font-size:20px;
}

.container{
  display:flex;
  min-height:100vh;
}

.sidebar{
  width:220px;
  background:#fff;
  padding:15px;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.sidebar a{
  display:block;
  margin-bottom:10px;
  text-decoration:none;
  color:#111;
  padding:10px 12px;
  border-radius:10px;
}

.sidebar a:hover{
  background:#eef2f7;
}

.main{
  flex:1;
  padding:20px;
}

.card{
  background:#fff;
  padding:15px;
  margin-bottom:15px;
  border-radius:12px;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}

input,
select,
textarea{
  display:block;
  width:100%;
  margin-bottom:10px;
  padding:12px;
  border:1px solid #d1d5db;
  border-radius:10px;
  font-size:16px;
  box-sizing:border-box;
}

table{
  width:100%;
  border-collapse:collapse;
}

th, td{
  padding:8px;
  text-align:left;
  vertical-align:top;
}

button,
.primary{
  background:#2ea3ff;
  color:#fff;
  padding:12px 14px;
  border:none;
  border-radius:10px;
  text-decoration:none;
  cursor:pointer;
  font-size:16px;
}

button:hover,
.primary:hover{
  opacity:.95;
}

.summary{
  font-size:16px;
  line-height:1.7;
}

/* Mobil */
@media (max-width: 900px){
  .container{
    flex-direction:column;
  }

  .sidebar{
    width:auto;
    display:flex;
    gap:10px;
    overflow-x:auto;
    white-space:nowrap;
    padding:12px;
  }

  .sidebar a{
    margin-bottom:0;
    flex:0 0 auto;
  }

  .main{
    padding:12px;
  }
}

@media (max-width: 700px){
  header{
    font-size:18px;
    padding:12px;
  }

  .card{
    padding:12px;
    border-radius:10px;
  }

  h2, h3{
    margin-top:0;
  }

  table, thead, tbody, th, td, tr{
    display:block;
    width:100%;
  }

  thead{
    display:none;
  }

  #items tr{
    background:#f9fafb;
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:10px;
    margin-bottom:10px;
  }

  #items td{
    padding:4px 0;
  }

  #items td::before{
    display:block;
    font-size:12px;
    color:#666;
    margin-bottom:4px;
  }

  #items tr td:nth-child(1)::before{ content:"Tjänst"; }
  #items tr td:nth-child(2)::before{ content:"Antal"; }
  #items tr td:nth-child(3)::before{ content:"Pris"; }
  #items tr td:nth-child(4)::before{ content:"Åtgärd"; }

  button,
  .primary{
    width:100%;
    text-align:center;
  }
}
