/***********************************
 ************* dialogs *************
 ***********************************/

.dialog {
  display: flex;
  position: fixed;
  color: gray;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 200;
  cursor: pointer;
  padding: 0;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  transition: 0.3s opacity cubic-bezier(0, 0.75, 0, 1);
}

.dialog>.box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);

  width: 100%;
  height: 100vh;
  min-width: 240px;
  max-width: 500px;
  padding: 0 20px;
  /*overflow: hidden;*/

  margin-top: -100px;
  transition: 0.3s opacity cubic-bezier(0, 0.75, 0, 1),
    0.3s margin-top cubic-bezier(0, 0.75, 0, 1);

  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}

.dialog>.box.add {
  padding: 0;
}

.dialog.info-only>.box {
  height: auto;
}

.dialog>.big-box {
  position: relative;
  margin: auto;
  width: 640px;
  max-width: 640px;
}

.dialog.active {
  opacity: 1 !important;
  pointer-events: all;
  /*margin-top: 0;*/
}

.dialog.active>.box {
  margin-top: 0;
}

.dialog.active .box .inner fieldset a svg.icon,
.dialog.active .box .inner fieldset button svg.icon {
  top: 3px;
  padding: 1px;
  margin: -5px 0px 0px 10px;
}

.dialog.active .box .inner fieldset button.snooze svg.icon {
  position: absolute;
  top: auto !important;
}

.dialog .title {
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-family: 'Roboto Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* mobile first...when maximized, it takes up whole screen, so hide title */
.dialog.max .title {
  display: none;
}

.dialog .inner {
  background: #efefef;
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.dialog.info-only {
  padding: 10px 0;
}

.dialog.info-only .inner {
  max-height: calc(100vh - 45px);
  overflow-x: hidden;
  overflow-y: auto;
}

.filter-dialog .inner {
  height: auto;
}

.dialog.max .inner {
  border-radius: 0;
  box-shadow: none;
}

/* if it's a dialog with input, it'll have footer actions */
.dialog.input .inner {
  padding: 0;
}

.dialog.input .inner>form {
  /*height: calc(100% - 70px);*/
  /*padding: 10px;*/
  overflow-x: hidden;
  overflow-y: auto;
  position: absolute;
  left: 10px;
  top: 10px;
  right: 10px;
  bottom: 70px;
}

.dialog.input .inner footer {
  height: 70px;
}

.dialog h2 {
  text-transform: uppercase;
  font-size: 14px;
  font-family: 'Roboto Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #2d498d;
  text-align: center;
  line-height: 1.3;
  border-bottom: 1px #2d498d solid;
  text-align: left;
  margin-bottom: 0.25em;
}

.dialog ul.menu {
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.dialog ul.menu>li {
  margin: 0;
  padding: 0;
  position: relative;
}
.dialog ul.menu > li ~ li.divider,
.dialog ul.menu > li.divider + li {
  border-bottom: 1px white solid;
}

.dialog ul.menu>li a {
  padding: 0.5em 1em;
  position: relative;
  color: gray;
  display: block;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: normal;
  text-decoration: none;
}

.dialog ul.menu input {
  padding: 0.5em 0.5em 0.5em 2em;
  width: 100%;
  position: relative;
  color: gray;
  display: block;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: normal;
  text-decoration: none;
}

.dialog button.action {
  border-radius: 6px;
  background: #2d498d;
  color: white;
  text-transform: uppercase;
  font-family: 'Roboto Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  border: 0;
  position: relative;
  top: 0;
  transition: top 0.3s linear;
}

.dialog .menu > .show-all {
  padding: 10px 0;
  border-top: 1px #2d498d solid;
}
  .dialog .menu > .show-all > a {
    border-radius: 4px;
    padding: 1em;
    border: 1px white solid;
    color: #2d498d;
  }
  .dialog .menu > .show-all svg {
    fill: #2d498d;
  }

.dialog button.action:active {
  top: 5px;
  filter: saturate(200%);
}

.dialog ul.menu > li.search {
  margin-bottom: 1em;
}
.dialog li.search svg {
  position: absolute;
  top: 0.75em;
  left: 0.5em;
}

.dialog ul.menu>li.divider {
  border-top: 1px #2d498d solid;
}

.dialog ul.menu>li:hover a {
  background: rgba(0, 0, 0, 0.1);
}
  .dialog ul.menu>li:hover label {
    border-color: white;
  }

.dialog ul.menu>li svg {
  margin-right: 0;
}

.dialog ul.menu>li.active a {
  background: #2d498d;
  color: white;
}

.dialog ul.menu>li.active svg {
  fill: white;
}

.dialog label.marker {
  position: absolute;
  right: 1em;
  border: 1px lightgray solid;
  border-radius: 4px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 1em;
  font-family: 'Roboto Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.75;
  min-width: 52px;
  text-align: center;
}
  .dialog label.marker svg {
    height: 15px;
    fill: #2d498d;
  }
  .dialog li.active label.marker svg {
    fill: white;
  }

.dialog label.overdue {
  background: #be1e2d;
  color: white;
}

.dialog label.soon {
  background: #e39f15;
  color: white;
}

.dialog label.later {
  background: #266733;
  color: white;
}

.close-dialog {
  position: absolute;
  z-index: 100;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  /*background: #2d498d;*/
  background: lightgray;
  border-radius: 50%;
  /*box-shadow: 0 0 30px rgba(0,0,0, 0.5);*/
}

.close-dialog svg {
  position: absolute;
  /*fill: #2d498d;*/
  fill: white;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) translateY(-50%);
}

/* if close is just inside box, adjust top */
.box>.close-dialog {
  top: 5px;
  right: 25px;
}

/********** ackert inc dialog *********/

.dialog#ackertinc h2 {
  margin: 0 0 0.5em 0;
  font-size: 1.3em;
  text-align: center;
}

.dialog#ackertinc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dialog#ackertinc ul>li {
  border-top: 1px #efefef solid;
}

.dialog#ackertinc h3 {
  margin-bottom: 0;
}

.dialog#ackertinc svg,
.dialog#ackertinc img {
  /*fill: black;*/
  width: 40px;
  height: 40px;
  vertical-align: middle;
}

.dialog#ackertinc p {
  margin-top: 0;
}


/********** standardized info blocks **********/

*>.info-block:not(:last-child) {
  margin-bottom: 10px;
}

.info-block {
  background: rgba(255, 255, 255, 1);
  border-radius: 8px;
  padding: 10px 12px 5px 12px;
}

.info-block fieldset {
  padding: 10px 10px 10px 10px;
}

.info-block fieldset legend {
  background: transparent;
}

/********** switcher dialog **********/

#viewer-switcher .close-dialog {
  top: 5px;
}

/*
.dialog .info-block .org-chart {
  margin: 12px -12px;
}
*/

.dialog .info-block legend {
  text-transform: uppercase;
}

.dialog .inline-search-filter svg.search {
  fill: #2d498d;
}

.dialog .inline-search-filter input {
  background: #efefef !important;
}




/* iphone 6 plus is 414px */
@media (min-width: 415px) {

  .dialog.max>.box {
    /*width: 310px;*/
    /*height: auto;*/
    border-radius: 8px;
  }

  .dialog.max .inner {
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    max-height: 85vh;
  }

  .dialog.max .title {
    display: block;
  }
}

.dialog.collaborationDl {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 101 !important;
  /*width: 100%;*/
  margin: auto;
  height: 100%;
  opacity: 0;
  transition: 0.3s opacity cubic-bezier(0, 0.75, 0, 1),
    0.3s margin-top cubic-bezier(0, 0.75, 0, 1);
  border-radius: 0;
  bottom: 0;
  display: block;
}

.dialog.collaborationDl .box {
  position: relative;
  max-width: 610px;
  height: calc(100% - 200px);
  padding: 15px 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  background: #fff;
  border-radius: 12px;
  margin-top: 38px;
}

.dialog.collaborationDl .box .search-container {
  width: 100%;
}

.dialog.collaborationDl .box .search-con-outer button {
  width: 120px;
  max-width: 120px;
  margin-right: 15px;
  border-radius: 4px;
}

.search-con-outer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  width: 100%;
}

@media (min-width: 600px) {

  #embedded-targets .dialog.collaborationDl {
    left: 250px;
  }

}

@media (max-width: 650px) {
  article.card div.context-container .dialog.collaborationDl {
    width: calc(100% - 20px);
    left: 10px;
    right: 10px;
    height: 96%;
    padding: 0 10px;
  }

  .dialog.collaborationDl .box {
    max-width: calc(100% - 60px);
    height: calc(100% - 180px);
    margin-top: -12px;
  }
}