.phonecall {
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0px;
  font-size: 16px;
  box-sizing: border-box;
}

.phonecall.outer {
  border: 2px groove;
  background: rgb(159, 159, 159);
  position: relative;
  display: grid;
  /*flex-direction: column;*/
  grid-template-rows: 1fr 10fr 1fr;
  grid-template-columns: 1fr 3fr;
  height: 100%;
}

.phonecall .title,
.phonecall .buttons {
  background: rgb(159, 159, 159);
  color: black;
  text-align: center;
  margin: 2px;
  padding: 0.5em;
  vertical-align: middle;
  font-size: 1.5em;
  flex: 0 0 auto;
}

.phonecall .title {
  font-weight: bold;
}

.phonecall .buttons {
  grid-column-start: 2;
}

.phonecall .title .from {
  font-weight: normal;
}

.phonecall .title .number {
  color: hsl(0, 50%, 50%);
}

.phonecall .buttons button {
  font-size: 1em;
  margin: 0.1em 0.5em;
  padding: 0.4em 0.5em;
  border-radius: 0.25em;
}

.phonecall .client_container {
  color: black;
  padding: 1em;
  background: #DDD;
  flex-grow: 1;
  flex-basis: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phonecall .client_container .search {
  flex: 0 0 auto;
  padding-bottom: 1em;
}

.phonecall input,
.phonecall select {
  height: 1.5em;
}

.phonecall .client_container .list {
  flex-grow: 1;
  flex-basis: 0;
  overflow-y: auto;
}

.phonecall .client_container .client {
  padding: 0.25em;
  cursor: pointer;
  display: grid;
  grid-template-columns: 5em 1fr;
}

.phonecall .client_container .client:hover {
  background-color: #EEE;
}

.phonecall .client .group_products {
  max-width: 60ch;
  font-size: 80%;
}

.phonecall .service_container {
  color: black;
  padding: 1em;
  background: #DDD;
  flex-grow: 1;
  flex-basis: 0;
}

.phonecall .item_container_flex {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.phonecall .item {
  display: flex;
  width: 23.5%;
  height: 2.75rem;
  margin: 0.5rem;
  padding: 3px;
  align-items: center;
}

.phonecall .item > label,
.phonecall .item > span,
.phonecall .item > input,
.phonecall .item > select,
.phonecall .item > textarea {
  box-sizing: border-box;
  display: inline-block;
  min-width: 2rem;
}

.phonecall .item > label {
  user-select: none;
  width: 15rem;
  max-width: 15rem;
  flex-grow: 0;
  flex-shrink: 0;
}
.phonecall .item > label::after {
  content: " :";
}

.phonecall .item > input,
.phonecall .item > select,
.phonecall .item > textarea {
  padding: 0.5rem 1rem;
  border-color: rgb(100,116,139);
  border-style: solid;
  border-width: 1px;
  border-radius: 0.375rem;
  height: 2.75rem;
  flex-grow: 1;
  flex-shrink: 1;
}

.phonecall .item > input[type="checkbox"],
.phonecall .item > input[type="radio"] {
  width: 1em;
  height: 1em;
  margin: 0;
}

@media (max-width: 2000px) {
  .phonecall .item {
    width: calc(33% - 2rem);
  }
}

@media (max-width: 1500px) {
  .phonecall .item {
    width: calc(50% - 2rem);
  }
}

@media (max-width: 1000px) {
  .phonecall .item {
    width: 100%;
  }
  .phonecall .item {
    flex-wrap: wrap;
    height: max-content;
  }
  .phonecall .item > label,
  .phonecall .item > input,
  .phonecall .item > select,
  .phonecall .item > textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .phonecall .item > input[type="checkbox"],
  .phonecall .item > input[type="radio"] {
    width: 1rem;
    min-width: 0;
    max-width: 1rem;
  }
}
