@import url('https://fonts.googleapis.com/css?family=PT+Serif|Roboto:400,900');

html {
  --main-color: #39aaa1;
  --sub-color: #fd3c34;
}

body {
  margin: 0;
  font-family: 'PT Serif';
  background: url(/assets/bc.svg);
  background-color: #dde0e2;
  min-height: 100vh;
  box-sizing: border-box;
  background-size: 100% auto;
  background-attachment: fixed;
}

body.hack::before,
body.local::before {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100%;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2147483647;
}
body.hack::before {
  border: solid 5px rgb(133, 12, 202);
  box-shadow: inset 0 0 11px #850cca75;
}
body.local::before {
  border: solid 5px rgb(3, 180, 180);
  box-shadow: inset 0 0 11px #03b4b49e;
}

body::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

body::-webkit-scrollbar-track {
  border-radius: 10px;
  background: #dce0dc;
}

body::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #b2d4d1;
}

header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 0 7px #00000045;
  z-index: 5;
}

nav.top-menu ul {
  list-style: none;
  display: flex;
  font-family: sans-serif;
  margin: 0;
  padding: 0 0 0 60px;
  background: url(/assets/bc.svg);
  background-color: #dde0e2;
  background-size: 500px;
  border-left: solid 1px #dde0e2;
}

nav.top-menu ul li {
  background: linear-gradient(#fff 50%, transparent 50%);
  background-size: 100% 200%;
  transition: all 0.5s;
}

nav.top-menu ul li a {
  font-weight: 600;
  text-decoration: none;
  padding: 20px;
  display: inline-block;
  border-right: solid 1px #dde0e2;
  background-clip: text;
  background: linear-gradient(rgb(56, 56, 56) 50%, #fff 50%);
  background-size: 100% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.5s;
}

nav.top-menu ul li a:hover,
nav.top-menu ul li:hover {
  background-position: bottom;
  border-color: #fff;
}

#sign-out-btn {
  margin-left: auto;
}

li#sign-out-btn a:hover {
  border-left: solid 1px #fff;
}

.content-outer-wrap {
  position: relative;
}
/* sign in */

#sign-in-form {
  width: 600px;
  max-width: 96vw;
  background-color: #fff;
  margin: 15vh auto;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 0 10px #00000045;
  font-family: sans-serif;
  padding: 50px 0 70px;
}

.form-header {
  top: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

#sign-in-form > .form-header > svg.logo {
  position: absolute;
  top: 30px;
  width: 30px;
  left: 30px;
}

#sign-in-form > .form-header > h1 {
  font-weight: 100;
  margin: 0px auto;
}

.sign-in-wrap {
  margin: 50px auto 30px;
  display: flex;
  flex-direction: column;
}
.sign-in-label {
  font-size: 14px;
  vertical-align: sub;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
}

i#visible-icon {
  position: absolute;
  right: -25px;
  top: 32px;
}

.sign-in-input {
  height: 40px;
  border: 1px solid lightblue;
  font-size: 20px;
  margin: 3px auto;
  background: #f4f4f4;
  padding: 8px;
  border-radius: 3px;
  width: 100%;
}
#password[type='text'] + i.fas::before {
  content: '\f070';
}
#password[type='password'] + i.fas::before {
  content: '\f06e';
}

#token.sign-in-input::-webkit-outer-spin-button,
#token.sign-in-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#token.sign-in-input {
  -moz-appearance: textfield;
}

span.failed-login-message.active {
  margin-bottom: 20px;
  background: #bf2727d4;
  color: #fff;
  padding: 10px;
}

.failed-login-message,
.token-message {
  max-width: 300px;
  text-align: center;
  color: #765555;
}

.have-token-btn,
.get-new-token-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.failed-login-message:not(.active),
label.sign-in-label[for='token']:not([class*="active"]),
label.sign-in-label[for='token']:not([class*="active"]) ~ .get-new-token-btn,
label.sign-in-label[for='token'].manual-active > .token-message:not(.response-showing),
label.sign-in-label[for='token'][class*="active"] + .have-token-btn {
  display: none;
}

.sign-in-icon {
  margin-left: 10px;
  size: 10px;
  cursor: pointer;
  color: var(--main-color);
}

.sign-in-icon:hover {
  color: #7a7a7a;
}

.sign-in-input:focus {
  border: none;
  outline: none;
  border-bottom: 3px solid lightblue;
}

#sign-in-submit {
  width: 250px;
  margin: 0 auto;
  background: var(--main-color);
  border: none;
  border-radius: 3px;
  height: 40px;
  color: #fff;
  cursor: pointer;
  transition: all 0.4s;
  text-transform: uppercase;
}

#sign-in-submit:hover,
#sign-in-submit:focus {
  box-shadow: 0 0 5px #00000045;
  opacity: 0.7;
}

/* publishers */
.add-pub-wrap {
  position: fixed;
  top: 70px;
  left: 10px;
  text-align: center;
  display: block;
  width: 40px;
  height: 40px;
  background: lightgreen;
}
a.add-pub-btn {
  font-family: sans-serif;
  position: absolute;
  left: 0;
  right: 0;
  top: -3px;
  color: grey;
  text-decoration: none;
  font-size: 40px;
  font-weight: bold;
}
a.add-pub-btn:hover {
  color: white;
}
.add-pub-wrap::after {
  width: 0;
}
.add-pub-wrap:hover::after {
  content: 'Add Publisher';
  display: block;
  left: 50px;
  font-size: 18px;
  font-weight: normal;
  position: absolute;
  text-align: left;
  width: auto;
  transition: width 0.2s;
}
.pubs {
  width: 800px;
  margin: 0 auto;
  position: relative;
}
.publisher {
  padding: 4px;
  position: relative;
  min-height: 35px;
}
.pub-info {
  margin-left: 20px;
}
.publisher > .pub-info > a {
  text-decoration: none;
  color: inherit;
}
.publisher:hover {
  text-decoration: underline;
  background: ghostwhite;
}
.pub-name {
  font-size: 18px;
  font-weight: 600;
  max-width: 740px;
}
.pub-site {
  font-family: 'Roboto';
}
.pub-index {
  float: right;
}
.note {
  position: absolute;
  top: 7px;
  left: 0;
}
.note-wrap {
  display: none;
  opacity: 0;
}
.note-content {
  border: 1px solid lightgray;
  position: absolute;
  top: 50px;
  left: -4px;
  background: lightblue;
  padding: 6px;
  z-index: 6;
  font-size: 18px;
}
.note-wrap::before {
  content: ' ';
  position: absolute;
  width: 0;
  height: 0;
  left: 5px;
  top: 30px;
  border: 10px solid;
  border-color: transparent transparent lightgrey lightgrey;
}
.note-wrap::after {
  content: '';
  border: 8px solid;
  border-color: transparent transparent lightblue lightblue;
  height: 0;
  width: 0;
  position: absolute;
  left: 8px;
  top: 37px;
  z-index: 7;
}
.note-content:hover {
  display: block;
}
.state {
  position: absolute;
  left: -2px;
  bottom: 2px;
  height: 13px;
  width: 13px;
  border-radius: 50%;
}
a.pub-edit-btn {
  margin-left: 3px;
  text-decoration: none;
  position: absolute;
  top: 10px;
  right: 28px;
  margin: 1px;
}
a.pub-edit-btn:hover {
  font-size: 23px;
}
a.pub-del-btn {
  color: #df000f;
  /* font-size: 23px; */
  text-decoration: none;
  position: absolute;
  top: 10px;
  right: 3px;
  margin: 1px;
}
a.pub-del-btn:hover {
  font-size: 23px;
}
/* frames */
.pub-frame {
  border: none;
  height: 0;
  background: aliceblue;
  top: 75px;
}
#background-change {
  height: 0;
  width: 0;
}

/* add pub form */
.add-pub-form,
.update-pub-form {
  padding: 5px;
}

.add-pub-form > input,
.update-pub-form > input {
  width: 500px;
  padding: 7px;
  border: none;
  border-bottom: 1px solid #ddd;
  margin: 5px auto;
  font: 16px Arial, Helvetica, sans-serif;
  height: 45px;
  display: block;
  background: transparent;
}
.add-pub-form > label,
.update-pub-form > label {
  width: 500px;
  padding: 7px;
  border: none;
  font: 16px Arial, Helvetica, sans-serif;
  display: block;
  margin: 0 auto;
}
.add-pub-form > select,
.update-pub-form > select {
  width: 500px;
  padding: 7px;
  border: none;
  border-bottom: 1px solid #ddd;
  margin: 5px auto;
  font: 16px Arial, Helvetica, sans-serif;
  height: 45px;
  display: block;
  margin: 2px auto;
  background: transparent;
}
.add-pub-form textarea,
.update-pub-form textarea {
  width: 500px;
  padding: 7px;
  border: none;
  border-bottom: 1px solid #ddd;
  margin: 5px auto;
  font: 14px Arial, Helvetica, sans-serif;
  height: 65px;
  display: block;
  background: transparent;
}
.add-pub-form > input:focus,
.add-pub-form > label:focus,
.add-pub-form > select:focus,
.add-pub-form > textarea:focus .update-pub-form > input:focus,
.update-pub-form > label:focus,
.update-pub-form > select:focus,
.update-pub-form > textarea:focus {
  outline: none;
  border-bottom: 1px solid lightblue;
  background: white;
}

#add-pub-submit,
#update-pub-submit {
  background: lightgreen;
  position: fixed;
  bottom: 15px;
  left: 15px;
  width: 300px;
  text-align: center;
}
#add-pub-submit:hover,
#update-pub-submit:hover {
  cursor: pointer;
}
#add-pub-cancel,
#update-pub-cancel {
  background: red;
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 300px;
  text-align: center;
}
#add-pub-cancel:hover,
#update-pub-cancel:hover {
  cursor: pointer;
}

/* placements  */
.placements {
  position: fixed;
  top: 100px;
  bottom: 5px;
  left: 0;
  width: 20%;
  overflow-y: scroll;
}
.placements::-webkit-scrollbar {
  width: 3px;
}
.placements::-webkit-scrollbar-track {
  background: whitesmoke;
}
.placements::-webkit-scrollbar-thumb {
  background: lightgrey;
  border-radius: 10px;
}

a.add-placement {
  font-family: sans-serif;
  position: fixed;
  left: 14%;
  top: 70px;
  max-width: 6%;
  overflow: hidden;
}

h2.placements-title::before,
h2.placements-title::after {
  content: ' ~~~~ ';
  font-weight: 400;
  font-family: cursive;
}
.placement-wrap {
  background: ghostwhite;
  border: 2px solid whitesmoke;
  margin-top: 2px;
}
.placement-wrap > a {
  text-decoration: none;
}
.placement-name:hover {
  cursor: pointer;
}
.placement-name {
  margin: 1px;
  margin-bottom: 4px;
  text-decoration: none;
  color: black;
}
.placement-info {
  list-style: none;
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: black;
}
.placement-info > li {
  display: inline-block;
  width: 22%;
  margin: 0 auto;
  font-size: 14px;
  font-family: time;
}
.placement-info > li > span {
  font-family: Roboto;
}

.placement-info > li.placement-index {
  float: right;
  text-align: right;
}

.creative-preview {
  max-height: 90%;
  max-width: 100%;
}

#placement-frame {
  position: fixed;
  left: 21%;
  height: 92%;
  width: 79%;
  top: 60px;
  overflow: scroll;
  border: none;
}

.full-page-cover {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgb(255, 255, 255);
  z-index: 100;
}

.full-page-cover > .waiting-symbol::before {
  content: 'Loading, Please Wait...';
  display: block;
  width: 300px;
  text-align: center;
  font-size: 15px;
  font-weight: bolder;
  margin: 2px;
}
.full-page-cover > .no-placement::before {
  content: "Sorry, we couldn't find a placement under this ID";
  display: block;
  width: 400px;
  text-align: center;
  font-size: 15px;
  font-weight: bolder;
  margin: 2px;
  z-index: 100;
}
label.checkbox-label {
  width: 65%;
}

/* add pl form */

.add-pl-form-wrap {
  width: 45%;
  margin: 5px;
}
.demand-wrap,
.video-jw-params-wrap {
  width: 52%;
  position: absolute;
  left: 47%;
  top: 0;
  border-left: 1px solid lightblue;
  height: 100%;
}
.demand-wrap > form {
  margin: 10px;
}
.demand-wrap > h3 {
  margin: 10px;
  margin-top: 0;
}
.add-pl-label {
  font-size: 20px;
  margin-right: 20px;
  display: inline-block;
  width: 20%;
  margin: 4px;
}
.add-pl-input {
  font-size: 20px;
  width: 65%;
  padding: 8px 10px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.add-tag-wrap > form textarea {
  height: 150px;
  width: 400px;
  font-size: 15px;
}
input.check-box {
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 0;
}
.click-toggle-p {
  display: inline-block;
  border: none;
  width: 100%;
  height: 30px;
  font-size: 20px;
  padding: 3px;
}
.click-toggle-p:hover {
  cursor: pointer;
}
.content-options > .add-pl-label {
  margin-left: 30px;
}
.size-container {
  margin: auto;
}
.size-container > .add-pl-label {
  width: 70px;
  font-size: 17px;
}
.size-container > .add-pl-input,
.width-rules > .add-pl-input {
  width: 100px;
  margin-right: 30px;
}
.width-rules > .add-pl-label {
  width: 40%;
}
.clone-container > .add-pl-label {
  width: 100px;
  font-size: 17px;
}
.clone-container > .add-pl-input {
  width: 100px;
  margin-right: 30px;
}
.scroll-wrap > .add-pl-label {
  width: 24%;
}
.scroll-wrap > .add-pl-input {
  width: 24%;
}

#add-placement {
  position: absolute;
  width: 40%;
  left: 5%;
  height: 35px;
  top: 2px;
  margin: 0;
  padding: 0;
  background: green;
  color: white;
}

.add-tag-wrap {
  margin: 10px;
}
#rules-amount {
  vertical-align: top;
  font-size: 13px;
}
.closed-div {
  display: none;
  margin-left: 30px;
}
.open-div:hover {
  cursor: pointer;
}
.geo-rules-h5 {
  display: inline;
  font-size: 17px;
  color: black;
  text-decoration: underline;
}
.add-url-rule-btn {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  margin: 5px;
  text-align: center;
  line-height: 1;
}
.add-url-rule-btn:hover {
  cursor: pointer;
}
.show-url-rules {
  width: 50%;
  float: left;
}

.reset-urls,
.reset-dir-urls {
  color: blue;
  text-decoration: underline;
  clear: both;
}
.reset-urls:hover,
.reset-dir-urls:hover {
  cursor: pointer;
}
/* .reset-dir-urls {
  color: blue;
  text-decoration: underline;
  clear: both;
}
.reset-dir-urls:hover {
  cursor: pointer;
} */

.reset-geos {
  color: blue;
  text-decoration: underline;
}
.reset-geos:hover {
  cursor: pointer;
}
.fa-angle-down {
  transform: rotate(-90deg);
}
.alert-div-dismiss {
  text-align: left;
  margin: 0;
  margin-top: 1px;
  font-size: 14px;
  text-decoration: underline;
}
.alert-div-dismiss:hover {
  cursor: pointer;
}

/* edit pl  */
.action-btns {
  width: 46%;
  height: 37px;
  background: white;
  position: fixed;
  bottom: 0;
  border: 2px solid whitesmoke;
  border-bottom: none;
  left: 0;
}

#update-placement {
  position: absolute;
  width: 40%;
  left: 5%;
  height: 35px;
  top: 2px;
  margin: 0;
  padding: 0;
  background: green;
  color: white;
}
#update-placement:hover,
#update-placement:focus {
  cursor: pointer;
  background: lightgreen;
}
#update-placement:focus {
  background: lightgreen;
}
#static-warning {
  margin: 1px;
  font-size: 13px;
}

#delete-pl {
  position: absolute;
  width: 40%;
  height: 35px;
  top: 2px;
  left: 55%;
  padding: 0;
  margin: 0;
  background: red;
  color: white;
}
#delete-pl:hover {
  cursor: pointer;
}
.tag-wrap {
  width: 300;
  height: 75px;
  margin: 5px;
  background: lightblue;
  position: relative;
}
.tag-name {
  display: inline-block;
  position: absolute;
  top: 2px;
  left: 2px;
  margin: 0;
}
.tag-index {
  display: inline-block;
  position: absolute;
  bottom: 2px;
  left: 2px;
  margin: 0;
}
.move-tag-up {
  position: absolute;
  font-size: 20px;
  right: 2px;
  top: 0;
  margin: 1px;
}
.move-tag-down {
  position: absolute;
  font-size: 20px;
  right: 2px;
  bottom: 0;
  margin: 1px;
  transform: rotate(180deg);
}
.move-tag-up:hover,
.move-tag-down:hover {
  cursor: pointer;
}

header#choose-header {
  padding: 0;
}

menu {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 1px 0 0;
  padding: 0 0 5px;
  border-top: solid 1px gray;
  box-shadow: 0px 2px 11px 0px grey;
  background: #fff;
  width: 100%;
  position: relative;
  left: 0;
}

menu::before {
  content: '';
  width: 100%;
  height: 6px;
  position: absolute;
  top: -5px;
  background: #fff;
}

.choose-demand-header {
  margin: 5px 20px;
}

menu .menu-item {
  margin: 10px;
  flex-basis: 200px;
  display: flex;
  min-width: fit-content;
  align-items: center;
}

menu .menu-item:first-child a {
  font-family: sans-serif;
  padding: 5px 15px;
}

menu .menu-item#sort-by {
  flex-basis: 220px;
}

menu .menu-item:first-child a:hover {
  opacity: 0.7;
}

.menu-item#cancel-btn {
  flex-basis: 70px;
}

menu .menu-item select,
menu .menu-item #reverse {
  width: calc(100% - 30px);
}

menu .menu-item #reverse {
  background-color: #9acbdb;
}

.menu-item :is(input, select) {
  min-height: 30px;
  box-sizing: border-box;
  border-radius: 100px;
  padding: 0 9px;
  border: solid 2px lightblue;
}

menu .menu-item#sort-by label {
  font-size: 14px;
}

menu .menu-item#sort-by select {
  width: calc(100% - 55px);
}

select#search-key {
  border-radius: 100px 0 0 100px;
}

input#search-value {
  border-radius: 0;
  border-left: none;
  border-right: none;
}

button#submit-search {
  border-radius: 0 100px 100px 0;
  height: 30px;
  background: #8ebbc9;
}

.demand-card-search :is(select, input, button):focus {
  box-shadow: inset 0 0 5px #0000004d;
  outline: none;
}

menu .menu-item button.remove-one-filter {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #fc9c9d;
  color: #fff;
  border: solid 1px;
  padding: 0px 2px;
  line-height: 6px;
  transition: all 0.3s;
  cursor: pointer;
  display: none;
}

menu .menu-item select:disabled,
menu .menu-item input:disabled {
  border: solid 1px #ff8b8b;
  color: #9d0000;
}

menu .menu-item select:disabled ~ button.remove-one-filter,
menu .menu-item input:disabled ~ button.remove-one-filter {
  display: inline-block;
}

div#creatives-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  margin: 60px 10px;
}

button#remove-filter {
  position: fixed;
  top: 125px;
  right: 10px;
  padding: 5px 7px;
  background: pink;
  border-color: #fff;
  cursor: pointer;
  box-shadow: 0 0 20px #4d4d4d;
  transition: all 0.3s;
  z-index: 4;
}

menu .menu-item button.remove-one-filter:hover,
button#remove-filter:hover {
  background: red;
}

iframe ~ #creatives-wrapper {
  margin-top: 70px;
}

iframe ~ #creatives-wrapper > #remove-filter {
  top: 80px;
}

.creative-wrap {
  width: 22vw;
  height: 22vw;
  min-width: 150px;
  min-height: 150px;
  max-width: 300px;
  max-height: 300px;
  box-shadow: 1px 1px 8px 0px grey;
  border-radius: 5px;
  margin: 0.5vw;
  float: left;
  background: white;
  z-index: 3;
  position: relative;
  overflow: hidden;
}

div#creatives-wrapper.filtered .creative-wrap.no-match,
div#creatives-wrapper:not(.filtered) button#remove-filter {
  display: none;
}

.creative-name {
  float: left;
  margin: 5px;
  z-index: 3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 80px);
}

.creative-size {
  float: right;
  margin: 5px;
  z-index: 3;
}

.creative-image-wrap {
  width: 95%;
  height: 90%;
  position: relative;
  text-align: center;
  margin: 3px auto;
  clear: both;
  z-index: 3;
}

.creative-image-wrap img {
  max-width: 100%;
  height: calc(100% - 34px);
  object-fit: contain;
  z-index: 3;
}

.creative-index {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0px;
  text-align: center;
}

.creative-wrap > a,
.creative-wrap > i {
  z-index: 5;
}

p.creative-imp-tracking {
  position: absolute;
  bottom: -9px;
  left: 5px;
  font-family: sans-serif;
  font-size: 12px;
}

p.creative-click-through {
  position: absolute;
  bottom: 20px;
  width: calc(100% - 20px);
  white-space: nowrap;
  padding: 0 10px;
  overflow: hidden;
  text-align: center;
  background: #f5f5dcd4;
  text-overflow: ellipsis;
  z-index: 4;
}

p.creative-click-through:hover {
  white-space: normal;
  overflow-wrap: break-word;
}

.creative-wrap.choose-creative-wrap::after {
  content: 'Click \a to \a Choose';
  display: grid;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  place-items: center;
  text-align: center;
  white-space: pre;
  line-height: 0.9;
  font-size: 30px;
  color: #fff;
  z-index: 5;
  background: rgb(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.6s;
}

.creative-wrap.choose-creative-wrap:hover::after {
  opacity: 1;
}

.creative-wrap.choose-creative-wrap:hover > p.creative-click-through {
  white-space: normal;
  overflow-wrap: break-word;
}

.edit-creative-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}
.edit-creative-btn:hover {
  transform: scale(1.2);
}
.delete-creative-btn {
  position: absolute;
  bottom: 7px;
  right: 35px;
  cursor: pointer;
  transition: all 0.3s;
}
.delete-creative-btn:hover {
  color: red;
  transform: scale(1.2);
}

/* add creative  */
.add-creative-label {
  margin: 3px;
  height: 35px;
  display: inline-block;
  width: 150px;
}
.add-creative-input {
  height: 35px;
  margin: 3px;
  width: 400px;
  background: transparent;
  border: none;
  border-bottom: 1px solid black;
}

.choose-creative-wrap:hover {
  cursor: pointer;
}
.choose-creative-cover {
  position: absolute;
  background: transparent;
  width: 325px;
  height: 355px;
  top: 0;
}
.choose-creative-cover > h2 {
  display: inline;
}

#creative-preview {
  display: block;
  margin: 10px;
  max-width: 98%;
}

/* reports page */

.full-wrap {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: scroll;
}
#loading-background-change {
  z-index: 10;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(0, 0, 0, 0.7);
}
#loading-background-change > h3,
#loading-background-change > h2 {
  display: block;
  width: 200px;
  margin: 40px auto;
  color: white;
}
#report-pubs-all {
  width: 80%;
  border-left: 1px solid lightgray;
  border-right: 1px solid lightgrey;
  margin: 20px auto;
  padding: 10px;
  padding-top: 0;
}
#report-pubs-all > hr {
  /* background: none; */
  border: 0.5px outset rgb(0, 0, 0, 0.3);
}
/* .report-pub > h3 {

} */
.report-pub > h3:hover {
  cursor: pointer;
}
.all-report-table {
  width: 50%;
  margin: 10px auto;
  border-collapse: collapse;
}
.all-report-table tr th,
.all-report-table tr td {
  min-width: 200px;
  margin: 0;
  padding: 5px;
}
.all-report-table tr:nth-child(1) {
  background: lightgray;
}
.all-report-table tr:nth-child(2n + 3) {
  background: whitesmoke;
}
.all-report-table tr th {
  background: lightgray;
}
.all-report-th {
  text-align: left;
}

/* build report page */
.build-report-closed-div {
  display: none;
}
.report-build-options-wrap {
  margin: 10px;
}
.report-build-options-wrap label {
  font-size: 20px;
  margin-right: 20px;
  display: inline-block;
  width: 15%;
  margin: 4px;
}
.report-build-options-wrap input,
.report-build-options-wrap select,
.report-build-options-wrap button {
  font-size: 20px;
  width: 30%;
  padding: 8px 10px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.report-build-options-wrap input[type='checkbox'] {
  width: 20px;
  height: 20px;
}

.build-report-custom-dates > input::-webkit-datetime-edit-fields-wrapper {
  width: 900px;
}
#run-report {
  background: lightgreen;
}
#run-report:hover,
#run-report:focus {
  cursor: pointer;
  background: green;
  color: white;
}
.show-report-wrap,
#edit-report-build {
  display: none;
}
#edit-report-build {
  font-size: 18px;
  width: 15%;
  padding: 8px 10px;
  margin: 8px 0 50px 3px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background: lightblue;
}

#show-report-table {
  width: 50%;
  margin: 10px auto;
  border-collapse: collapse;
  text-align: left;
}
#show-report-table tr th,
#show-report-table tr td {
  padding: 3px;
}
#show-report-table tr:nth-child(1) {
  background: lightgray;
}
#show-report-table tr:nth-child(2n + 3) {
  background: whitesmoke;
}

.report-build-info-wrap {
  position: absolute;
  margin-left: 10px;
  margin-top: -10px;
}
.report-build-info-wrap table {
  text-align: left;
}
.report-build-info-wrap table tr th {
  width: 120px;
}

.filter-wrapper {
  display: flex;
  width: 600px;
  margin: 20px auto;
  justify-content: space-evenly;
  flex-wrap: wrap;
  position: relative;
}

.filter-wrapper label {
  margin-right: 10px;
}

button#clear-filter {
  background: none;
  border: none;
  color: red;
  width: 20px;
  position: absolute;
  display: none;
  left: calc(100% - 42px);
  cursor: pointer;
  transition: all 0.3s;
}

button#clear-filter:hover {
  opacity: 0.6;
  transform: scale(1.2);
}

button#clear-filter.active {
  display: inline-block;
}

.filter-wrapper p.message {
  width: 100%;
  margin: 0;
  text-align: center;
  font: 12px sans-serif;
  padding-top: 10px;
  color: red;
}

.combine-tables {
  position: fixed;
  right: 20px;
  top: 84px;
  padding: 10px;
}

.combine-tables.inactive,
.chart-btn.inactive {
  display: none;
}

table.device-calls {
  border: 1px solid black;
  text-align: center;
  width: 750px;
  border-collapse: collapse;
  margin: 30px auto 0;
}

table.device-calls :is(th, tr, td) {
  height: 30px;
  border: 1px solid black;
  width: 150px;
  text-align: center;
}

table.device-calls tr:first-child th {
  background: rgb(206 220 232 / 90%);
  text-align: left;
  padding-left: 10px;
  position: sticky;
  top: 60px;
}

table.device-calls tr:nth-child(odd) {
  background: #fff;
}

table.device-calls tr:nth-child(even) {
  background: rgba(231, 231, 231, 0.801);
}

.device-calls tr:nth-child(2) th {
  position: sticky;
  background: #848181bd;
  color: #fff;
  font-weight: normal;
  top: 90px;
}

.remove-table {
  position: absolute;
  right: 5px;
  transition: color 0.3s;
  cursor: pointer;
}

.remove-table:hover {
  color: #9d0000;
}

.filtered {
  display: none;
}

table.device-calls:last-child {
  margin-bottom: 150px;
}

tbody > tr > td:last-child,
table.device-calls tfoot tr td {
  font-weight: 700;
  background: rgb(243 230 233);
}

table.device-calls tfoot tr:last-child td:first-child {
  text-align: right;
  padding-right: 10px;
  background: rgb(237 207 214);
}

tfoot > tr > td.grand-total:last-child {
  vertical-align: bottom;
  padding-bottom: 6px;
  background: radial-gradient(ellipse at top left, rgb(243 230 233), rgb(237 207 214), rgb(237 207 214));
}

.chart-btn {
  position: absolute;
  right: 40px;
  top: 10px;
  cursor: pointer;
}

.chart {
  height: 270px;
  width: 750px;
  background: #d3dfea;
  margin: 20px auto;
  display: flex;
  position: relative;
  overflow: auto;
  align-items: end;
  border: solid 1px;
  padding-top: 10px;
}

.chart::before {
  content: '^ ' attr(data-max) ' ^';
  position: sticky;
  white-space: nowrap;
  align-self: flex-start;
  padding: 0 3px;
  border-top: solid 1px;
  left: 0;
  font-family: sans-serif;
}

.chart::-webkit-scrollbar {
  height: 10px;
}
.chart::-webkit-scrollbar-track {
  background: #f1cad3;
}
.chart::-webkit-scrollbar-thumb {
  background: #ea597a;
  border-radius: 10px;
}

.chart:last-child {
  margin-bottom: 150px;
}

.chart-day {
  min-width: 15px;
  /* background: dimgray; */
  height: 100%;
  border-right: solid #edcfd6 1px;
}

.chart-day:hover {
  opacity: 0.7;
}

.form-button-wrapper {
  position: fixed;
  right: max(calc((100% - 1380px) / 2), 10px);
  bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 5;
}

.form-btn {
  width: 150px;
  border: none;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  padding: 7px;
  margin-top: 12px;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(32, 33, 36, 0.158);
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s;
}

.form-btn:first-child {
  margin: 0;
}

.form-btn:hover {
  box-shadow: 0 0 20px #00000080;
}

.form-btn::before {
  content: '';
  height: 40px;
  width: 30px;
  background: linear-gradient(-80deg, transparent, rgba(255, 255, 255, 0.582), transparent);
  position: absolute;
  top: -5px;
  left: -30px;
}

.form-btn:hover::before {
  transform: translateX(180px);
  transition: transform 1.5s;
}

.submit-btn {
  background: rgb(3, 180, 180);
}

.copy-btn {
  background: rgb(9, 178, 245);
}

.cancel-btn,
.delete-btn {
  background: rgb(255, 25, 0);
}

.pa-pill-btn {
  padding: 5px 10px;
  /* margin-top: 7px; */
  background: #4799e2;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  width: fit-content;
  transition: all 0.3s;
}

.pa-pill-btn:hover {
  box-shadow: 0 0 6px #00000066;
}

#shade {
  width: 100%;
  height: 100%;
  background: #587277c2;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
}

#update-frame {
  position: fixed;
  width: 90%;
  height: 85%;
  left: 0px;
  right: 0px;
  top: 30px;
  margin: auto;
  z-index: 6;
  background-color: #f0f8ff;
  box-shadow: rgb(0 0 0 / 38%) 0px 0px 20px;
}

#update-frame:not(.active),
#shade:not(.active) {
  display: none;
}
