
/* Login curtain */

div.authuser {
  position: fixed;
  min-width: 100%;
  background-color: var(--babble-violet-tint);
  z-index: 1037; /* selectpicker dropdown z-index is 1035, #devices_btn_group 1036 */
  display: flex;
  flex-direction: column;
  align-items: center;
  top: 0;
  bottom: 0;
  overflow-y: auto;
}

div.authuser.hidden {
  display: none;
}

.authuser .curtain-login-header {
  display: grid;
  place-items: center;
  min-height: 100px;
  width: 100%;
  background-color: var(--app-white);
  border-bottom: 1px solid #ddd;
}

.authuser .curtain-login-header img {
  height: 60px;
}

div.authuser > div.authcontrols {
  max-width: 500px;
  display: grid;
  gap: 25px;
  place-content: center;
  border: 1px solid #ddd;
  border-radius: 25px;
  padding: 50px;
  margin: 50px 25px;
  background-color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
}

div.authuser > div.authcontrols h1 {
  color: var(--babble-blue);
  margin: 0;
  font-weight: 400;
  text-align: center;
  font-size: 40px;
  font-family: 'Montserrat', sans-serif;
}

div.authuser > div.authcontrols p {
  font-size: 16px;
  margin: 0;
}

.auth-button img {
  width: 100%;
}

div.authuser > div.authcontrols label.checkbox-label {
  display: grid;
  grid-template-columns: 22px auto;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 0;
}

div.authuser > div.authcontrols label.checkbox-label input[type="checkbox"] {
  accent-color: var(--babble-blue);
  margin: 0;
  height: 22px;
  width: 22px;
  justify-self: center;
  align-self: center;
} 

/* Notifications (incl. specific feeds) */

/* - notification - meta, edge, core */

.feed > div.notification {
  position: relative;
  display: flex;
  font-family: "Open Sans", sans-serif;
  box-shadow: 0 3px 6px var( --www-black-20pc );
  background-color: var( --app-white );
  border-radius: 0.4rem;
}

.feed button.notification-btn-close {
  position: absolute;
}

.feed button.notification-btn-close-default {
  right: 0;
  padding: 0.5rem 1rem;
  font-size: 1.75rem;
  background-color: transparent;
  border: none;
}

.feed button.notification-btn-close:focus,
.feed button.notification-btn-close:hover {
  color: var( --babble-blue );
}

.feed div.notification-edge,
.feed div.notification-core {
  padding: 1rem 1.25rem 0.5rem;
}

.feed div.notification-edge {
  display: flex;
  align-items: center;
  border-radius: 0.4rem 0 0 0.4rem;
}

.feed div.notification-edge > i {
  font-size: 2.75rem;
}

.feed div.notification-core {
  width: 100%;
}

.feed button.notification-btn-close ~ div.notification-core {
  padding-right: 3.25rem;
}

/* - notification - core - text */

.feed p.notification-text {
  font-size: 1.4rem;
}

.feed span.notification-heading {
  font-weight: 500;
}

.feed span.notification-message {
  font-weight: 300;
  line-height: 1.5;
}

/* - notification - core - progress */

.feed div.notification-progress {
  padding: 0.5rem 2rem 1.25rem;
}

.feed .notification-progress > progress {
  width: 100%;
  height: 2rem;
  border-radius: 4px;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}

.feed .notification-progress > progress::-webkit-progress-value {
  background-color: var( --babble-green );
}

.feed .notification-progress > progress::-moz-progress-bar {
  background-color: var( --babble-green );
}

/* - notification - core - btns */

.feed div.notification-btns {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 1rem 1rem;
}

.feed div.notification-btns > button {
  width: calc( ( 100% - 3rem ) / 2 );
  padding: 0.25rem;
  font-family: inherit;
  font-size: inherit;
  border-radius: 6px;
  transition: 150ms;
}

.feed .notification-btns > button.notification-btn-accept,
.feed .notification-btns > button.notification-btn-complete {
  color: var( --app-white );
  background-color: var( --app-orange-dark-desktop );
  border: 2px solid var( --app-white );
}

.feed .notification-btns > button.notification-btn-accept {
  font-weight: 700;
  box-shadow: 0 0 0 2px var( --app-orange-dark-desktop );
}

.feed .notification-btns > button.notification-btn-reject {
  color: var( --babble-blue );
  background-color: inherit;
  border: 1px solid var( --babble-blue );
}

.feed .notification-btns > button:hover,
.feed .notification-btns > button:focus {
  background-color: var( --babble-blue );
}

.feed .notification-btns > button.notification-btn-accept:hover,
.feed .notification-btns > button.notification-btn-accept:focus {
  box-shadow: 0 0 0 2px var( --babble-blue );
}

.feed .notification-btns > button.notification-btn-reject:hover,
.feed .notification-btns > button.notification-btn-reject:focus,
.feed .notification-btns > button.notification-btn-complete:hover,
.feed .notification-btns > button.notification-btn-complete:focus {
  color: var( --app-white );
}

/* - notification feeds */

#curtain-login-feed {
    width: 80vw;
    max-width: 60rem;
    z-index: 4;
    margin-top: 50px;
    display: flex;
    align-items: center;
}

#curtain-modal-feed {
  position: fixed;
  inset: 0;
  background-color: var( --www-black-50pc );
  pointer-events: all;
  z-index: 1100;
  overflow-y: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
}

#view-feed {
  position: fixed;
  left: 25px;
  bottom: 25px;
  max-width: 40vw;
  z-index: 1110; /* placed above #curtain-modal-feed at 1100 */
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
}

body.widget > #view-feed {
  top: 25%;
  left: 50%;
  bottom: unset;
  transform: translate( -50%, -50% );
  width: 27.5rem;
  max-width: unset;
}

#curtain-modal-feed > div.notification {
  position: fixed;
  left: 50%;
  top: 40%;
  transform: translate( -50%, -50% );
  width: 30rem;
  z-index: 4;
}

#curtain-modal-feed > div.notification.fullwidth {
  width: 95%;
}

body.widget > #view-feed > div.notification {
  height: fit-content;
  background-color: var( --www-white );
}

#curtain-modal-feed p.notification-text {
  padding-top: 0.5rem;
  text-align: center;
}

#curtain-login-feed span.notification-heading:first-of-type {
  margin-right: 0.4rem;
}

#curtain-modal-feed span.notification-heading,
#curtain-modal-feed span.notification-message,
#view-feed span.notification-heading,
#view-feed span.notification-message {
  display: block;
}

#view-feed span.notification-heading {
  margin-bottom: 0.25rem;
}

/* SIP call history modal styles */

#curtain-modal-feed > div.call-history > div.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 5rem;
}

#curtain-modal-feed > div.call-history > div.loading > i.fa-spinner {
  font-size: 5rem;
  color: var(--babble-blue);
}

#curtain-modal-feed > div.call-history > div.notification-core {
  display: flex;
  flex-direction: column;
}

#curtain-modal-feed > div.call-history span.table-container {
  display: block;
  width: 100%;
  overflow-x: auto;
}

span.table-container > span.table-footnote {
  display: flex;
  font-size: 0.9rem;
  margin: 0 0 1rem 0.8rem;
  font-style: italic;
}

.call-history-controls {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 1rem;
}

.call-history-controls > label {
  font-size: 1.1rem;
}

.call-history-controls > input[type="checkbox"] {
  height: 1.2rem;
  width: 1.2rem;
  accent-color: var(--babble-blue);
  margin-top: 0;
}

#call-legs-table {
  width: 100%;
  overflow-x: auto;
  font-size: 1.1rem;
  border-collapse: collapse;
  margin: 1.5rem 0;
  text-align: start;
}

#call-legs-table > thead > tr {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  border-bottom: 1px solid #979797;
  color: var(--babble-violet);
}

#call-legs-table > thead tr > th {
  padding: .5rem .5rem;
  white-space: nowrap;
}

#call-legs-table > tbody > tr {
  border-bottom: 1px solid #EAE8F0;
}

#call-legs-table > tbody > tr:hover {
  background-color: #EAE8F0;
}

#call-legs-table > tbody > tr > td {
  padding: .5rem .5rem;
  white-space: nowrap;
}

.call-legs-button-container {
  display: flex;
  justify-content: start;
  gap: 0.8rem;
}

.call-legs-button {
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  background-color: #7A6CA8;
  color: #fff;
  border: 0;
  padding: 0.4rem;
}

.call-legs-button:hover,
.call-legs-button:active,
.call-legs-button:focus,
.call-legs-button:focus-visible {
  background-color: var(--babble-violet);
  color: var(--babble-green);
}

.call-legs-button-icon {
  font-size: 1.3rem;
  padding: 0.25rem;
}

@media screen and ( max-width: 1200px ) {

  #view-feed {
    max-width: 60vw;
  }
}

@media screen and ( max-width: 900px ) {

  #view-feed {
    max-width: 80vw;
  }
}

@media screen and ( max-width: 600px ) {

  #view-feed {
    max-width: calc( 100vw - 50px );
  }

  div.authuser > div.authcontrols h1 {
    font-size: 32px;
    margin: 0;
  }

  .authuser .curtain-login-header {
    display: none;
  }

  #curtain-login-feed {
    margin: 5px 0 5px;
  }

  div.authuser > div.authcontrols {
    padding: 20px;
    margin: 20px;
    gap: 15px;
  }

  div.authuser > div.authcontrols > p {
    display: none;
  }

  div.authuser > div.authcontrols label.checkbox-label {
    grid-template-columns: 20px auto;
  }

  div.authuser > div.authcontrols label.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }
}