#dialer-container {
  background-color: var(--odd_tr_color);
  z-index: 50000;
}
@media (max-width: 420px) {
  #dialer-container { /* narrow device */
    display: none;
  }
}
#dialer-container #dialer_bar_phone_number {
  height: 2.5em;
  border: 1px solid rgb(186, 186, 186);
  border-radius: 0.4em;
  padding-left: 0.5rem;
  width: 12rem;
}
#dialer-container #dialer {
  width: var(--page_width);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-left: auto;
  margin-right: auto;
  height: 4.4rem;
  max-height: 4.4rem;
}
#dialer-container #dialer div.dialer_container {
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 27.5rem;
  justify-content: flex-start;
}
#dialer-container #dialer div.webmax-dropdown-menu {
  z-index: 2000; /* so that popups can't go behind it */
}
#dialer-container #dialer div.group_contact_container {
  min-width: 17.9rem;
  max-width: 17.9rem;
}
#dialer-container #dialer div.group_contact-dropdown-ul-container ul li.disabled {
  opacity: 0.6;
}
#dialer-container #dialer div.user_phone_list_container,
#dialer-container #dialer div.group_contact_container {
  white-space: nowrap;
  border: 1px solid rgb(186, 186, 186);
  border-radius: 0.4em;
  background-color: white;
}
#dialer-container #dialer div.group_contact_container input.group_contact-class,
#dialer-container #dialer div.user_phone_list_container input.user_phone_list-class {
  height: 2.5em;
  padding-left: 0.5rem;
  background-color: white;
}
#dialer-container #dialer div.group_contact-dropdown-ul-container {
  max-width: 50rem;
}
#dialer-container #dialer button.popup-action-button {
  height: 2.5em;
  background-color: rgb(239, 239, 239);
  border: 1px solid rgb(118, 118, 118);
}
#dialer-container #dialer button.popup-action-button:disabled {
  color: white;
}
#dialer-container #dialer div.message_display_area {
  color: green;
  text-align: center;
}
#dialer-container #dialer button.popup-action-dial {
  margin-right: 0;
  margin-left: 0.4em;
}
#dialer-container #dialer #text-message-button {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border-radius: 0.3em;
  border: 1px solid rgb(118, 118, 118);
  background-color: rgb(239, 239, 239);
  fill: #777;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-left: 0.4em;
}
#dialer-container #dialer #text-message-button svg {
  width: 60%;
  height: 60%;
  pointer-events: none;
}
#dialer-container #dialer #text-message-button .webmax-simple-dropdown {
  /* content will overlap the boundaries of this, leaving the svg in place */
  height: 0;
  width: 0;
  z-index: 2000;
}
#dialer-container #dialer #text-message-button .webmax-simple-dropdown .content-container {
  display: grid;
  row-gap: 0.5em;
  grid-template-columns: 1fr;
  background-color: white;
  margin-top: 2rem;
  padding: 0.5em;
  border: 1px solid var(--border_color);
  border-radius: 0.5em;
  height: -moz-fit-content;
  height: fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-left: -7em;
}
#dialer-container #dialer #text-message-button .webmax-simple-dropdown .content-container .template-dropdown {
  border-radius: 0.5em;
  background-color: transparent;
}
#dialer-container #dialer #text-message-button .webmax-simple-dropdown .content-container textarea {
  width: 22em;
  height: 6em;
  resize: none;
}
#dialer-container #dialer #text-message-button .webmax-simple-dropdown .content-container div.buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#dialer-container #dialer #text-message-button .webmax-simple-dropdown .content-container div.buttons button[name=cancel-text-button] {
  margin-left: 0.25em;
}
#dialer-container #dialer #text-message-button .webmax-simple-dropdown .content-container div.buttons .error_field {
  white-space: nowrap;
}

div.drop_message_controls {
  width: 24rem;
  min-width: 24rem;
  margin-left: 0.5rem;
}

/* None of these styles work with the call pad now */
/* needs CSS grids */
div.drop_message_list_container {
  white-space: nowrap;
  border: 1px solid rgb(186, 186, 186);
  border-radius: 0.4em;
  background-color: white;
}
div.drop_message_list_container .dropdown-menu {
  z-index: 2000;
}
div.drop_message_list_container input.drop_message_list-class {
  height: 2.5em;
  padding-left: 0.5rem;
  background-color: white;
}

#call_bar_phone_extension {
  height: 2.5em;
  border: 1px solid rgb(186, 186, 186);
  border-radius: 0.4em;
  padding-left: 0.5rem;
  width: 12rem;
}

div.dialer_number_pad {
  /*#number_pad, #number_pad_2 {*/
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 3.5rem;
  min-width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border-radius: 0.3em;
  border: 1px solid rgb(118, 118, 118);
  background-color: rgb(239, 239, 239);
  margin-left: 0.4em;
}
div.dialer_number_pad div.webmax-dropdown-menu {
  z-index: 2000; /* so that popups can't go behind it */
}
div.dialer_number_pad img.number_pad-dropdown-icon, div.dialer_number_pad img.number_pad_2-dropdown-icon {
  width: 1.5rem;
  cursor: pointer;
}
div.dialer_number_pad div.webmax-toggle {
  display: none !important; /* override */
}
div.dialer_number_pad div.number_pad-dropdown, div.dialer_number_pad div.number_pad_2-dropdown {
  width: unset !important;
}
div.dialer_number_pad ul {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
}
div.dialer_number_pad div.number_pad-dropdown-ul-container, div.dialer_number_pad div.number_pad_2-dropdown-ul-container {
  margin-top: 2rem;
  margin-left: -10rem;
}
div.dialer_number_pad button {
  pointer-events: none;
}
div.dialer_number_pad button.num_button {
  width: 2em;
  height: 2em;
  text-align: center;
  font-size: 1.6em;
  margin: 0.25em;
  border-radius: 0.3em;
  background-color: #efefef;
  outline: none;
  border: 1px solid #c3c3c3;
}
div.dialer_number_pad button.num_button:hover {
  background-color: var(--base_hover_background_color);
  color: white;
}
div.dialer_number_pad button.num_button.flash {
  background-color: orange;
  color: white;
}
div.dialer_number_pad button.num_button span {
  font-size: 0.4em;
  margin-top: -0.4em;
  display: block;
}

#app_call_bar {
  height: 4.4rem;
  max-height: 4.4rem;
  min-height: 4.4rem;
  background-color: white;
  border-bottom-color: gray;
  display: flex;
  align-items: center;
  width: var(--page_width);
  margin-left: auto;
  margin-right: auto;
}

.call_button { /* button style for buttons in either call bar */
  display: inline-block;
  margin-left: 0.2em;
  margin-right: 0.2em;
  min-width: 4em;
  background-color: #ccc;
  color: #444;
  border: none;
  border-radius: 0.5em;
  text-align: center;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  padding-left: 1em;
  padding-right: 1em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

#accept_call.flash {
  background-color: lightgreen;
  color: white;
}

#decline_call.flash {
  background-color: red;
  color: white;
}

#call_buttons {
  white-space: nowrap;
  display: flex;
}

#DND:hover {
  background-color: var(--base_hover_background_color);
  color: white;
}

#caller_id {
  font-size: 1.2em;
  color: #444;
  margin-right: 1em;
  white-space: nowrap;
}

button.muted, button.do_not_disturb {
  background-color: orange;
}

button.call-audio-button {
  height: 2.5em;
  top: 0;
  margin-left: 0.5rem;
  border: 1px solid rgb(118, 118, 118);
  border-radius: 0.3em;
  background-color: rgb(239, 239, 239);
  color: #444;
}
