@import "animations.css";

:root {
  --klixa-green: #e00000;
  --klixa-green2: #e00000;
  --klixa-grey: #212529;
  --klixa-grey2: #e2e2e2;
  --klixa-lightgrey: #efefef;

  --red: 168;
  --green: 224;
  --blue: 63;

  --threshold: 0.5;
  --border-threshold: 0.8;
}

[data-emoji]::before {
  content: attr(data-emoji);
  margin-right: 4px;
}

.no-border { border: 1px solid #ced4da;}

.fixed {
  background: #fefefe;
  padding: 16px;
  position: fixed;
  top: 17%;
  right: 6%;
  display: block;
  border: 2px solid black;
  border-radius: 2px;
  box-shadow: 2px 2px 2px 0 #101010A0;
}

#users .card {
  margin: 4px 0;
}

#users .card img {
  border-radius: 2px;
  box-shadow:  2px 0 2px 0px darkgrey;
  margin-right: 10px;
}

#users .card:hover {
  cursor: pointer;
  box-shadow: 0 0 2px 0px blue;
}

input[type=checkbox]:checked ~ label { color: var(--klixa-green); border: var(--klixa-green) 0px solid; padding: 2px; border-radius: 3px; }
input[type=checkbox] ~ label:hover { color: var(--klixa-green2);}

h1.red, h2.red, h3.red, a.red, b.red, i.red, p.red { color: red; }
h1.green, h2.green, h3.green, a.green, b.green, i.green, p.green { color: #1D9A1F; }
h1.blue, h2.blue, h3.blue, a.blue, p.blue, b.blue, i.blue, td.blue { color: blue; }

a[onclick] .green:not(.disabled):hover, a[onclick] .red:not(.disabled):hover, a[onclick] .blue:not(.disabled):hover { filter: brightness(0.85);}

.disabled { filter: grayscale(1) contrast(0.6); }

a.gradient, p.gradient, td.gradient i:before {
  background: -webkit-gradient(linear, left top, left bottom, from(#000), to(#ddd));
  background-clip: text;
  text-fill-color: transparent;
  -webkit-text-fill-color: transparent;
}

#table_search { margin-bottom: 6px; }
#table_search input { border: 1px solid #ced4da; padding: 4px; border-radius: 0.124rem; background-clip: padding-box;}
#table_bottom { margin-top: 8px; }
#table_bottom select { border: 1px solid #ced4da; padding: 4px; border-radius: 0.124rem; background-clip: padding-box; }
#table_bottom .paginate_button { border-radius: 0.25rem; }
#table_bottom .paginate_button.current { background: #eff8ff; border-color: #ced4da; box-shadow: inset 0 0 2px 1px #dee4ee; }
#table_bottom .paginate_button:not(.current):hover { background: #162626; }

a:not([href]) { cursor: pointer; }
a.tool > i { font-size: 32px; }

table.no-hover tr:hover { background: none;}

.wrapper { padding: 4px 2px 2px 2px; }

.mailType { font-weight: bolder; }

.showbox a {
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
}

i.size-24 { font-size: 24px; }
i.size-36 { font-size: 36px; }
i.size-48 { font-size: 48px; }
i.size-60 { font-size: 60px; }
i.size-72 { font-size: 72px; }

.showbox .item { box-sizing: border-box; }

.showbox .item:hover {
  box-shadow: 0 0 1px 1px var(--klixa-green2);
}

div.container p {
  background: linear-gradient(90deg, rgb(var(--red), var(--green), var(--blue), 0.02) 75%, transparent 99%);

  --r: calc(var(--red) * 0.299);
  --g: calc(var(--green) * 0.587);
  --b: calc(var(--blue) * 0.114);
  --sum: calc(var(--r) + var(--g) + var(--b));
  --perceived-lightness: calc(var(--sum) / 255);

  color: hsl(0, 0%, calc((var(--perceived-lightness) - var(--threshold)) * -10000000%));

  --border-alpha: calc((var(--perceived-lightness) - var(--border-threshold)) * 100);
  border-width: .2em;
  border-style: solid;
  border-color: rgba(calc(var(--red) - 50), calc(var(--green) - 50), calc(var(--blue) - 50), var(--border-alpha));
}

.unselectable { user-select: none; }
.error-border { margin-top: 8px; ;border: red 2px solid; box-shadow: 0 0 2px 2px red; animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both; transform: translate3d(0, 0, 0); }
.inactiveLink { pointer-events: none; user-select: none; cursor: not-allowed !important; color: rgba(0, 0, 0, 0) !important; }
.background.pic { background-image: url('https://cdn.klixa.net/img/bg-portal.jpg'); background-repeat: no-repeat; }
.background.dark { background-color: var(--klixa-grey); }
h1.dark, h2.dark, span.dark { color: black; }

.disable, .hidden { display: none;}

.table tr:hover  { background-color: #acacac; }
.table tr:active { background-color: #9b9b9b; }
.table .link { color: var(--klixa-grey);}
.table .link:hover { color: #122111; }
.table tr { transition: all 0.16s ease-in; }
.table td, table.dataTable tbody td { padding: 8px 10px;}

.table table.no-hover tr:hover {background-color: #efefef;}
.table table.no-hover tr:active {background-color: #efefef;}

div.dark > span, div.dark > h1, div.dark > h2, div.dark > h3, div.dark > label, div.dark li > a, div.dark p, div.dark h3, div.dark h1 {color: black; }

span.rtl { unicode-bidi: bidi-override; direction: rtl; }

.flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.flex.space-between {
  justify-content: space-between;
}

.flex.column {
  flex-direction: column;
}

#content.flex > .item {
  display: table;
  margin: 36px;
  width: 280px;
  height: 208px;
  font-size: 154px;
  background-color: #000000DD;
  text-align: center;
  border-radius: 4px;
}

#content.flex > .item > a {
  display: table-cell;
  vertical-align: middle;
}

#content.flex > .item p {
  font-size: 16px;
  color: white;
}

input[type="file"] {

}

label.file {
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
}

.ticket-status-10, .ticket-status-20, .ticket-status-30, .ticket-status-35, .ticket-status-36,.ticket-status-40,
.ticket-status-50, .ticket-status-60, .ticket-status-70, .ticket-status-80 {
  padding: 6px 6px 4px 6px;
  border: inset 1px black;
  border-radius: 0.25rem;
  overflow: hidden;
  position: relative;
  display: inline-block;
}

#tickets td:last {
  position: relative;
}

#ticketWrapper {
  display: grid;
  grid-template-columns: 20% 20% 20% 40% 20%;
  grid-template-rows: 33% 33% 33%;
  grid-auto-flow: row;
  grid-gap: 2px 6px;
}

#ticketWrapper .details.wrapper {
  grid-column: 4 / 6;
  grid-row: 1 / 3;
}

#ticketWrapper .ticketing {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
}

.modal-xx {

}

.fade, .fade.show, .fade.block {
  will-change: opacity;
}

.modal.fade .modal-dialog {
  will-change: transform;
}

.ticket-status-10.glimmering::before, .ticket-status-20.glimmering::before, .ticket-status-30.glimmering::before,
.ticket-status-35.glimmering::before, .ticket-status-36.glimmering::before, .ticket-status-40.glimmering::before,
.ticket-status-50.glimmering::before, .ticket-status-60.glimmering::before, .ticket-status-70.glimmering::before,
.ticket-status-80.glimmering::before {
  content: '';
  position: absolute;
  bottom: 16px;
  right: 0;
  width: 200px;
  height: 80px;
  background: linear-gradient(135deg, #fff0, #fff4, white, #fff4, transparent);
  transform: translate(-300px, -20px) rotate(-5deg);
  transition: transform 0.60s ease-out;
  will-change: transform;
}

.ticket-status-10.glimmering:hover::before, .ticket-status-20.glimmering:hover::before, .ticket-status-30.glimmering:hover::before,
.ticket-status-35.glimmering:hover::before, .ticket-status-36.glimmering:hover::before, .ticket-status-40.glimmering:hover::before,
.ticket-status-50.glimmering:hover::before, .ticket-status-60.glimmering:hover::before, .ticket-status-70.glimmering:hover::before,
.ticket-status-80.glimmering:hover::before {
  transform: translate(200px, 60px) rotate(5deg);
}

.ticket-status-10, .ticket-status-20, .ticket-status-30, .ticket-status-35 {
  background: #EAFA7F;
  border-color: orange;
}

.ticket-status-36 {
  background: #ffefef;
  border-color: darkred;
}

.ticket-status-40, .ticket-status-50 {
  background: lightgreen;
  border-color: green;
}

.ticket-status-70, .ticket-status-60, .ticket-status-80 {
  background: #248433;
  border-color: darkgreen;
  color: white;
}

.ticket-status-70 .text, .ticket-status-60 .text, .ticket-status-80 .text {
  color: white;
}

tr[onclick] {
  cursor: pointer;
}


.btn.btn-create {
  background-color: var(--klixa-green2);
  float: right;
  border-color: #B3CF93;
  filter: brightness(1);
  transition: filter 0.16s ease-in;
}
.btn.btn-create:hover {
  background-color: #A5BF3B;
  border-color: #A1BF81;
}
.btn.btn-create:active {
  background-color: #93AA34;
  border-color: #80952E;
  box-shadow: inset 0 0 2px 2px #6E7F27;
}
.btn.btn-create:focus {
  outline: 0px;
  box-shadow: 0 0 0 .2rem #DBE9A0;
}


.grid[data-rows] .row {
  margin-bottom: 16px;
}

.grid[data-rows="2"] {
  display: block;
}

.grid[data-rows="2"] .row:nth-child(1) {
  justify-content: space-around;
  text-align: left;
}

.grid[data-rows="2"] .row:nth-child(1) * {
  width: 220px;
}

.grid[data-rows="2"] .row:nth-child(2) * {
  width: 220px;
}

.grid[data-rows="2"] .row:nth-child(2) {
  justify-content: space-around;
  text-align: left;
}

.grid:not([data-rows]) {
  display: grid;
  grid-template:
  [row1-start] "header header" 38px [row1-end]
  [row2-start] "center center" 30px [row2-end]
  [row3-start] "center center" 110px [row3-end]
  [row4-start] "center center" 30px [row4-end]
  [row5-start] "center center" 30px [row5-end]
  [row6-start] "center center" 110px [row6-end]
  [row7-start] "footer footer" 30px [row7-end]
  / auto auto;

  grid-gap: 0px 0px;

  min-height: 256px;
}

.grid:not([data-rows]) > * { border: black 1px solid; padding: 4px 0 0 12px; margin: 0; }

.grid:not([data-rows]) h2 { grid-area:  1 / 1 / 1 / 3; border-bottom: 0; background-color: var(--klixa-lightgrey); border-top-left-radius: 3px; border-top-right-radius: 3px;}

.grid:not([data-rows]) span:nth-last-of-type(2n+1), .grid label:nth-last-of-type(2n+1) { background-color: var(--klixa-grey2); }
.grid:not([data-rows]) span:nth-last-of-type(2n), .grid label:nth-last-of-type(2n) { background-color: var(--klixa-lightgrey); }

.grid:not([data-rows]) span:nth-of-type(1) { grid-area:  2 / 1 / 2 / 1; border-right: 0; border-bottom: 0; border-top: 0; }
.grid:not([data-rows]) span:nth-of-type(2) { grid-area:  3 / 1 / 3 / 1; border-right: 0; border-bottom: 0; border-top: 0; }
.grid:not([data-rows]) span:nth-of-type(3) { grid-area:  4 / 1 / 4 / 1; border-right: 0; border-bottom: 0; border-top: 0; }
.grid:not([data-rows]) span:nth-of-type(4) { grid-area:  5 / 1 / 5 / 1; border-right: 0; border-bottom: 0; border-top: 0; }
.grid:not([data-rows]) span:nth-of-type(5) { grid-area:  6 / 1 / 6 / 1; border-right: 0; border-top: 0; border-bottom-left-radius: 3px;}

.grid:not([data-rows]) label:nth-of-type(2) { grid-area:  3 / 2 / 3 / 2; border-left: 0; border-bottom: 0; border-top: 0; }
.grid:not([data-rows]) label:nth-of-type(1) { grid-area:  2 / 2 / 2 / 2; border-left: 0; border-bottom: 0; border-top: 0; }
.grid:not([data-rows]) label:nth-of-type(3) { grid-area:  4 / 2 / 4 / 2; border-left: 0; border-bottom: 0; border-top: 0; }
.grid:not([data-rows]) label:nth-of-type(4) { grid-area:  5 / 2 / 5 / 2; border-left: 0; border-bottom: 0; border-top: 0; }
.grid:not([data-rows]) label:nth-of-type(5) { grid-area:  6 / 2 / 6 / 2; border-left: 0; border-top: 0; border-bottom-right-radius: 3px;}

.grid:not([data-rows]) > label > a { color: #3454ed; }

/* TOOLTIPS */
.tooltip {
    display: none;
    padding: 10px;
}

select.form-control > option:last-child {
  border-bottom-left-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

.input:hover ~ .tooltip {
    background: blue;
    border-radius: 3px;
    bottom: -60px;
    color: white;
    display: inline;
    height: 30px;
    left: 0;
    line-height: 30px;
    position: absolute;
}

.input:hover ~ .tooltip::before {
    display: block;
    content: "";
    position: absolute;
    top: -5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid blue;
}

table > tbody > tr:nth-child(even) {
  background-color: #eaeaea;
}

#land, #typ {
  padding: .375rem .3rem;
}

.radio-group {
  border: #ced4da 1px solid;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  margin-top: 20px;
}

.radio-group[data-group-name]::before {
  position: absolute;
  background: white;
  padding: 4px;
  transform: translateY(-22px);
  text-rendering: optimizeSpeed;
  content: attr(data-group-name);
}

.radio-group div:first-child {
  padding-top: 16px;
}

.radio-group input ~ label {
  padding: 6px;
  box-shadow: 0 0 2px 0 transparent;
  border: solid transparent 2px;
  border-radius: 0.75rem;
  transition: all 0.161803398875s ease-in;
}

.radio-group input:hover ~ label {
  border-radius: 0.75rem;
}

.radio-group input:checked ~ label {
  border-radius: 0.75rem;
}

.modal-link:not([href]) {
  transition: all 0.161803398875s ease-in-out;
}

.modal-link:not([href])::before {
  content: '»';
  position: relative;
  font-size: 28px;
  margin: 10px 10px 0 0;
  transform: translateY(6px);
}

.modal-link:not([href]):hover {
  color: var(--klixa-green2);
  cursor: pointer;
}

/**/
#tab ul { cursor: pointer; }

#problem-hover {
  font-size: 14px;
  position: absolute;
  transform: translate(-100px, -70px);
  border: 1px solid black;
  border-radius: 0.25rem;
  background-color: #efefef;
  padding: 4px;
  max-width: 140px;
}

/* ICONS */
.icon {
  --color-primary: #000;
  --color-secondary: #FFF;
}
.icon.powerbutton {
  border: 4px solid var(--color-primary);
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-block;
  border-radius: 5rem;
  transition: all 0.2s ease-out;
  cursor: pointer;
}
.icon.powerbutton::after {
  content: '';
  border: 4px solid var(--color-secondary);
  position: absolute;
  bottom: 12px;
  left: 6px;
  width: 62%;
  height: 30px;
  border-radius: 1.65rem;
  background-color: var(--color-secondary);
}
.icon.powerbutton::before {
  content: '';
  border: 2px solid var(--color-primary);
  border-radius: 0.25rem;
  position: absolute;
  bottom: 16px;
  left: 14px;
  height: 22px;
  z-index: 1;
  transition: all 0.15s ease-out;
}
.icon.powerbutton:hover, .icon.powerbutton:hover::before {
  border-color: var(--color-secondary);
  box-shadow: var(--color-primary) 0 0 1px 1px;
}

/************* TICKETWRAPPER ***************/
#ticketWrapper .details div.flex.column {
  margin-left: 4px;
  margin-top: 12px;
  padding: 14px;
  max-width: 420px;
  border: 1px solid black;
  border-radius: 3px;
}
#ticketWrapper .details div.flex.column .row {
  margin-bottom: 20px;
}


/* TAB color wie bei Intranet */
#tab li a:not(.selected) {
  color: #4d4d4d;
}

#tab li.selected a {
  color: var(--klixa-green2);
}

/* ---- */
@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}
