@import 'hr-core-consts';

.PopupContainer {
  max-width: 500px;
}

.large .PopupContainer {
  max-width: 600px;
}

.buttonClose {
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  margin-left: auto;
  float: right;
}


.messageOverHeader {
  // color: rgba(0, 0, 0, 0.4);
  color: $hrColor-DarkBlue;
  display: block;
  height: 0px;
  top: -20px;
  left: -15px;
  position: relative;
}

.large .messageOverHeader {
  font-size: initial;
}

.large .messageBoxHeader {
  font-size: x-large;
}

.PopupContent {
  padding: 0 0 0; // no extra padding -> padding is calculated in the child comp
  margin: 0; // see above
  overflow: hidden; // overflow hidden => all "to big" child components are hidden
  display: grid;
  height: 100%;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-column-gap: 15px;
  grid-row-gap: 20px;
  grid-template-areas:
    'icon message'
    'buttons buttons'
}

.icon {
  grid-area: icon;
  font-size: 65px;
  // float: left;
  // padding: 10px 10px 0px 10px;
}

.large .icon {
  font-size: 80px;
}

.infoIcon {
  color: $hrColor-DarkBlue;
}

.errorIcon {
  color: red;
}


.warningIcon {
  color: $hrColor-DarkBlue;
}


.message {
  grid-area: message;
  font-size: larger;
  overflow-wrap: break-word;
  max-width: 100%;
  margin: auto;
  margin-left: 0;
  white-space: pre-wrap;
}

.large .message {
  font-size: large;
}

.buttons1 {
  grid-area: buttons;
  padding: 0; // no extra padding -> padding is calculated in the child comp
  margin: 0; // see above
  overflow: hidden; // overflow hidden => all "to big" child components are hidden
  display: grid;
  height: auto;
  grid-template-rows: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column-gap: 30px;
  grid-template-areas:
    '. btn1 .'
}


.buttons2 {
  grid-area: buttons;
  padding: 0; // no extra padding -> padding is calculated in the child comp
  margin: 0; // see above
  overflow: hidden; // overflow hidden => all "to big" child components are hidden
  display: grid;
  height: auto;
  grid-template-rows: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-column-gap: 30px;
  grid-template-areas:
    '. btn1 btn2 .'
}


.buttons3 {
  grid-area: buttons;
  padding: 0; // no extra padding -> padding is calculated in the child comp
  margin-left: 0px;
  margin-top: 10px;
  margin-right: 0px;
  margin-bottom: 0px;
  overflow: hidden; // overflow hidden => all "to big" child components are hidden
  display: grid;
  height: auto;
  grid-template-rows: auto;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 2fr)) minmax(0, 1fr);
  grid-column-gap: 30px;
  grid-template-areas:
    '. btn1 btn2 btn3 .'
}


.btn1 {
  grid-area: btn1;
}

.btn2 {
  grid-area: btn2;
}

.btn3 {
  grid-area: btn3;
}


.large .btn,
.large .new-btn {
  font-size: medium;
}

.new-buttons1 {
  grid-area: buttons;
  padding: 0; // no extra padding -> padding is calculated in the child comp
  margin: 0; // see above
  overflow: hidden; // overflow hidden => all "to big" child components are hidden
  display: grid;
  height: auto;
  grid-template-rows: auto;
  grid-column-gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    '. . btn1'
}

.new-buttons2 {
  grid-area: buttons;
  padding: 0; // no extra padding -> padding is calculated in the child comp
  margin: 0; // see above
  overflow: hidden; // overflow hidden => all "to big" child components are hidden
  display: grid;
  height: auto;
  grid-template-rows: auto;
  grid-column-gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    '. . btn1 btn2'
}


.new-buttons3 {
  grid-area: buttons;
  padding: 0; // no extra padding -> padding is calculated in the child comp
  margin-left: 0px;
  margin-top: 10px;
  margin-right: 0px;
  margin-bottom: 0px;
  overflow: hidden; // overflow hidden => all "to big" child components are hidden
  height: auto;
  display: grid;
  grid-template-rows: auto;
  grid-column-gap: 10px;
  grid-template-columns: repeat(5, 1fr);
  grid-template-areas:
    '. . btn1 btn2 btn3'
}

@media only screen and (max-width: 600px) {
  .new-buttons1 {
    grid-template-columns: 0.5fr 1fr 0.5fr;
    grid-template-areas:
      '. btn1 .'
  }
}

@media only screen and (max-width: 600px) {
  .new-buttons3 .mat-button,
  .new-buttons3 .mat-fab,
  .new-buttons3 .mat-flat-button,
  .new-buttons3 .mat-icon-button,
  .new-buttons3 .mat-mini-fab,
  .new-buttons3 .mat-raised-button,
  .new-buttons3 .mat-stroked-button {
    font-size: 3v;
  }

  .new-buttons2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      'btn1 btn2'
  }

  .new-buttons3 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      'btn1 btn2 btn3'
  }
}


// ::ng-deep .mat-button-focus-overlay { background-color: inherit; }
