:root {
  --primary-color: #4dabf7;

  --button-text-color: #fff/*#000*/;
  --button-color: var(--primary-color)/*#fff*/;

  --close-button-text-color: #ffffff;
  --close-button-color: #ced4da;

  --login-button-text-color: #fff;
  --login-button-color: var(--primary-color);

  --default-margin-bottom: 10px;
  --light-grey: #f8f9fa;
  --main-green: #2f9e44;
  --main-info: var(--primary-color);
  --main-red: #c92a2a;
  --main-warning: #fab005;

  --remove-button-text-color: #ffffff;
  --remove-button-color: #c92a2a;

  --approve-button-text-color: #ffffff;
  --approve-button-color: var(--primary-color);

  --notification-action-button-color: #000;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
}

table {
  width: 100%;
}

/*td, th {
  width: 25%;
}*/

button {
  outline: 0!important;
}

button[mat-raised-button] {
  color: var(--button-text-color);
  background-color: var(--button-color);
}

.full.width {
  width: 100%;
}

.flex {
  display: flex;
}

.flex.align-center {
  align-items: center;
}

.flex.vertical {
  flex-direction: column;
}

.dialog-link {
  cursor: pointer;
}

.margin.bottom {
  margin-bottom: var(--default-margin-bottom);
}

.mat-row:hover {
  background-color: var(--light-grey);
  cursor: pointer;
}

.mat-form-field {
  font-size: 14px;
  width: 100%;
}

.crud.message.success {
  background-color: var(--main-green);
}

.crud.message.info {
  background-color: var(--main-info);
}

.crud.message.warning {
  background-color: var(--main-warning);
}

.crud.message.danger {
  background-color: var(--main-red);
}

.crud.message .mat-button {
  color: var(--notification-action-button-color);
  background-color: rgba(0,0,0,.12);
}

.mat-dialog-container {
  overflow: hidden!important;
}

.mat-dialog-container {
  max-height: 100%!important;
}


.container.login {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100%;
}

.logo {
  background: url("../../assets/images/medwork-logo.png") no-repeat center;
  background-size: 100%;
  height: 20%;
}

.card.login, .logo {
  width: 80%;
}

.card.login .mat-card-header {
  justify-content: center;
}

.clickable {
  cursor: pointer;
}

//added style for mat-datepicker
.mat-calendar {
  display: contents !important;
}

.unselectable {
  -webkit-user-select: none;  /* Chrome all / Safari all */
  -moz-user-select: none;     /* Firefox all */
  -ms-user-select: none;      /* IE 10+ */
  user-select: none;          /* Likely future */
}

.mat-nav-list {
  padding-top: 0!important;
}

.mat-expansion-panel-body {
  padding: 1em!important;
}

@media screen and (min-width: 368px) {
  .logo {
    background-size: 95%;
  }
}

@media screen and (min-width: 768px) {
  .card.login, .logo {
    width: 60%;
  }

  .logo {
    background-size: 90%;
  }
}

@media screen and (min-width: 992px) {
  .card.login, .logo {
    width: 50%;
  }

  .logo {
    background-size: 80%;
  }
}

@media screen and (min-width: 1200px) {
  .card.login, .logo {
    width: 40%;
  }
}

mat-step-header[aria-selected=false],
.mat-stepper-horizontal-line {
  display: none;
}

.opaque {
  opacity: 1;
  -moz-opacity: 1;
  filter: alpha(opacity=100);
  transition: opacity .23s;
  -webkit-transition: opacity .23s;
  -moz-transition: opacity .23s;
}

.opaque.nil {
  opacity: 0;
  -moz-opacity: 0;
  filter: alpha(opacity=0);
  transition: opacity .23s;
  -webkit-transition: opacity .23s;
  -moz-transition: opacity .23s;
}


/* aaguilera 12/21/2018: Tables in the components-view */
.aa-wrapper .mat-table-container{
  min-height: 296px;
}
/* -End- aaguilera 12/21/2018: Tables in the components-view */


/* aaguilera 10/05/2018: Forms close button [x] */
.aa-boxclose {
  float:right;
  margin-top:-6px;
  margin-right:-6px;
  cursor:pointer;
  color: #fff;
  border-radius: 4px;
  border: 1px solid #6F7FD7;
  background: #3848C0;
  font-size: 26px;
  display: inline-block;
  line-height: 0px;
  padding: 10px 3px;
}

.aa-boxclose:before {
  content: "×";
}
/* -End- aaguilera 10/05/2018: Forms close button [x] */


/* aaguilera 10/05/2018: Forms caption bar */
.aa-wrapper .mat-dialog-title {
  margin: -24px -24px 20px!important;
  background-color: #9bb8f2;
  color: #fff;
  padding: 18px;
}

.aa-wrapper .mat-dialog-content {
  padding: 5px 24px;
}

.aa-wrapper .mat-raised-button {
  margin: 0 6px!important;
}
/* -End- aaguilera 10/05/2018: Forms caption bar */


/* aaguilera 10/05/2018: Set style for plain html controls, to match them to angular mat controls */
.aa-wrapper label{
  font-family: Roboto, "Helvetica Neue", sans-serif;
}
/* -End- aaguilera 10/05/2018: Set style for plain html controls, to match them to angular mat controls */


/* aaguilera (09-10-2018): In the edition forms, transform the Delete button into an icon */
.aa-wrapper{
  position:relative;
  height: 100%;
}

.aa-wrapper #btnDelete{
  position: absolute;
  right: 10px;
  top: 80px;
  float: right;
  height: 34px;
  width: 34px;
  min-width: unset;
  border: none;
  z-index: 10;
}

.aa-wrapper #btnDelete span{
  visibility: hidden;
}

.aa-wrapper #btnDelete span::after{
  font-family: 'Material Icons';
  font-size: 30px;
  content: "delete";
  visibility: visible;
  position: absolute;
  left: 0px;
  color: rgba(122,122,122,0.69)
}

.aa-wrapper #btnDelete:hover span::after{
  color: black;
}

.aa-wrapper #btnDelete ::ng-deep .mat-button-focus-overlay{
  display: none!important;
}
/* -End- aaguilera (09-10-2018): In the edition forms, transform the Delete button into an icon */


.aa-wrapper .clearfix{
  clear:both;
}

.aa-wrapper .mat-card{
  min-height:100%;
}

.aa-wrapper .mat-card-title *{
  font-size: 24px;
}

.aa-wrapper .table-container{
  min-height:296px;
}


// TODO: scroll the dialog instead of scrolling inside a dialog content.
// see example: https://stackblitz.com/edit/angular-ss6wkf-zzzqdt?file=styles.css
.cdk-global-overlay-wrapper {
  pointer-events: auto;
  display: block;
  position: relative;
  overflow: auto;
  text-align: center;
}

.cdk-global-overlay-wrapper::before {
  content: '';
  display: inline-block;
  height: 100%;
  white-space: nowrap;
}

.cdk-overlay-pane {
  display: inline-block;
  position: relative;
  text-align: left;
  white-space: normal;
}

.mat-dialog-actions{
  margin: 0!important;
}


/* aaguilera (12-19-2018): Application name styling in the top bar */
mat-toolbar .app_name_caption {
  flex: 1 1 auto;
}

/* aaguilera (12-18-2018): style the toolbar */
.toolbar-container{
  position:fixed;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.24);
  z-index : 10;
  width: 100%;
}
/* -End- aaguilera (12-19-2018): Application name styling in the top bar */

.md-tabs-content {
  height: 55.7vh;
  padding: 16px;
}

.mat-icon.mat-danger {
  color:  var(--main-red);
}

mat-step-header#cdk-step-label-1-0 {
  margin: 10px;
}

h4.ng-star-inserted {
  white-space: pre-wrap;
  margin-bottom: 15px
}

/*.mat-step-label.mat-step-label-active.mat-step-label-selected {
  margin-top: 50px;
}*/
