/*********************************************************************************************  HTML */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100%;

  color: #011ba9;
  font-size: 14px;
  font-family: Arial;

  background-color: #000;

  -webkit-user-select: none;
  user-select: none;

  overflow: hidden;
}

.hide {
  display: none;
}

.ib {
  display: inline-block;
  vertical-align: top;
}

h1 {
  font-size: 200%;
  margin: 5vh 0;
}

input {
  font-size: 14px;
}
textarea {
  font-size: 14px;
}

button {
  font-size: 16px;
  padding: 10px 30px;
  border-radius: 5px;
  background: #011ba9;
  color: #fff;
  border: none;
}

.load {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 80% 80%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32" fill="%230a78ff"><path opacity=".5" d="M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"/><path d="M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"><animateTransform attributeName="transform" type="rotate" from="0 16 16" to="360 16 16" dur="0.8s" repeatCount="indefinite" /></path></svg>');
}

body.test .s-test {
  position: absolute;
  right: 0;
  top: 0;

  color: #000;
  font-size: 16px;
  font-weight: bold;
  background-color: #aaa;
  padding: 2px 10px;

  z-index: 99;
}


/* Page ****************************************************************************/

.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #fff;

  /* background-image: url("../img/bg.jpg"); */
  background-size: cover;
  background-position: top center;
}

/** Sign-in *****************/

#p-signin {
  text-align: center;
}

#p-signin label {
  display: inline-block;
  width: 70px;
  text-align: right;
}

/** List *****************/

#p-list table {
  width: 100%;
  border-collapse: collapse;
}

#p-list td,
th {
  border: 1px solid #000;
  padding: 8px;
}
#p-list th {
  color: #aaa;
}
#p-list td:first-child {
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}
#p-list td:last-child {
  padding: 0;
  font-size: 0;
}

/** Campaign ***************/


#p-campaign span {
  display: inline-block;
  width: 10vw;
}
#p-campaign .new-camp-container img {
  width: 200px;
  vertical-align: top;
}
#p-campaign .new-camp-container button {
  vertical-align: top;
}

#p-campaign button#b-back {
  position: absolute;
  left: 0;
}

/** Debug ******************************************************************************************/

.toast-bg {
  position: fixed;
  width: 100%;
  bottom: 20%;
  text-align: center;
  z-index: 100;
}
.toast {
  display: inline-block;
  margin: 5px;

  background-color: rgba(40, 40, 40, 0.8);
  font-size: 12px;
  color: #fff;

  padding: 10px 20px;
  border-radius: 4px;
}

.scrlog {
  position: fixed;
  left: 0;
  top: 0;
  padding: 2px 5px;
  background-color: rgba(40, 40, 40, 0.8);
  font-size: 16px;
}

/* ------------------------------------------------------------------------------ */

#d-list {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
}

.campaign-item {
  position: relative;
  width: 100%;
  font-size: 0;
}

.campaign-item-img {
  width: 20%;
  vertical-align: top;
}


.campaign-item-details {
  width: 80%;
  display: inline-block;
  border: 1.5px solid #011ba9;
  padding: 9px;
  font-size: 20px;
  font-weight: bold;
  color: #011ba9;
  position: relative;
}

.campaign-item-actions {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0;
  bottom: 0px;
}
.campaign-item-actions img {
  height: 20px;
  width: 20px;
  margin: 5px;
  cursor: pointer;
}

.campaign-item-status {
  position: absolute;
  right: 0;
  top: 0;
  width: 140px;
  padding: 7px;
}
.status-geplant {
  color: #fff;
  background: #ccc;
}

.status-live {
  color: #fff;
  background: #74cf9a;
}

.status-abgelaufen {
  color: #fff;
  background: #f65d7d;
}


.main-campaign {
  display: flex;
  align-items: start;
}
.d-left {
  background: #011ba9;
  height: 100vh;
  width: 50px;
  padding: 0 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 20px;
  margin-right: 50px;


  position: relative;
}
.d-left img {
  height: auto;
  width: 35px;
}

.d-left .o2-img {
  height: auto;
  width: 65px;
}


.add-img,
.list-img {
  cursor: pointer;
}
.d-list-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.d-list-container .sort-list {
  color: #011ba9;
  display: flex;
  align-items: center;
  font-size: 20px;
  gap: 50px;
  font-weight: bold;
  padding: 20px 10px 10px 10px;
}
.d-list-container .sort-list select {
  width: 200px;
  background: #011ba9;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
}

.new-camp-container {
  color: #011ba9;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
  width: 100%;
  padding: 10px 10px;
}

.new-camp-container .new-camp-title {
  display: flex;
  font-size: 20px;
  font-weight: bold;
  padding-top: 20px;
}

.new-camp-container .input-form {
}
.new-camp-container label {
  display: inline-block;
  vertical-align: top;
  color: #011ba9;
  border: 1px solid #011ba9;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  width: 150px;
}

.date-selector-con {
  display: inline-block;
  padding-left: 50px;
  color: #011ba9;
  font-size: 17px;
  width: calc(80vw - 150px);
}

#ic-name {
  width: 400px;
}

.date-selector-con input[type='date'] {
  width: 200px;
  height: 37px;
}

.date-selector-con input[type='text'] {
  height: 37px;
}

#is-devices, #is-shops, #is-devices-art {
  width: 400px;
  padding: 5px;
}

#ic-devices, #ic-shops {
  margin-top: 10px;
  font-weight: bold;
}



/* Search */

.d-search {
  position: absolute;
  background-color: #ffd;
  box-shadow: 0 2px 5px #000;
  white-space: nowrap;
  font-size: 14px;
  z-index: 2;
}
.d-search p {
  margin: 0;
  padding: 0 5px;
}

/* Buttons */

.new-camp-container hr {
  width: 100%;
}


.input-form-btns {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  position: relative;
}


