/* https://www.joshwcomeau.com/css/custom-css-reset/ */

/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
  box-sizing: border-box;
}
/*
  2. Remove default margin
*/
* {
  margin: 0;
}
/*
  3. Allow percentage-based heights in the application
*/
html, body {
  height: 99.3%;
}
/*
  Typographic tweaks!
  4. Add accessible line-height
  5. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/*
  6. Improve media defaults
*/
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
/*
  7. Remove built-in form typography styles
*/
input, button, textarea, select {
  font: inherit;
}
/*
  8. Avoid text overflows
*/
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
/*
  9. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

/* CUSTOM */

table.calendar-table {
  width: 100%;
  height: fit-content;
  border: 10px solid black;
  margin: 0px;
  border-collapse: collapse;
  table-layout: fixed;
}

  table.calendar-table th.current-month {
    background-color: #c73c3c;
  }

  table.calendar-table td.current-day {
    background-color: #ffc6aa;
  }

  table.calendar-table td.free-day {
    background-color: #e6e6e6;
  }

  table.calendar-table thead {
    color: white;
    background-color: #4b3e70;
  }

  table.calendar-table th {
    height: 45px;
    padding-top: 6px;
    font-size: 18px;
    text-align: center;
  }

  table.calendar-table td {
    height: 100%;
  }

  table.calendar-table th, table.calendar-table td {
    vertical-align: top;
    border: 1px solid #565656;
  }

table.calendar-table {
  font-family: arial;
}

.event-cell {
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

  .event-cell .day-events {
    font-size: 14px;
    line-height: 8px;
    margin-top: 6px;
    font-weight: bold;
    font-family: monospace;
  }

  .event-cell .day-meta {
    display: inline-block;
    width: 2.5rem;
    margin-left: .5rem;
    margin-right: .5rem;
    white-space: nowrap
  }

  .event-cell .day-display {
    display: grid;
    grid-template-columns: auto 1fr 1fr auto;
    grid-template-areas: ". number day";
    text-align: right
  }

.day-display .day-number {
  grid-area: number;
  width: 2ch;
  display: inline-block;
}

.day-display .day-name {
  grid-area: day;
  width: 2ch;
  display: inline-block;
}

.sprint-iteration-display {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  grid-template-areas: ". delivery iteration .";
}

  .sprint-iteration-display .delivery {
    grid-area: delivery;
    cursor: default;
  }

  .sprint-iteration-display .iteration {
    grid-area: iteration;
    cursor: default;
  }


.events-as-rows {
  width: 35%;
  display: flex;
  flex-wrap: wrap;
  column-gap: 4px;
  flex-direction: column;
  justify-content: center;
  text-align: end;
}

  .events-as-rows .day-event-name {
    line-height: 15px;
    font-size: 11px;
    width: fit-content;
    align-self: flex-end;
  }

div.day-event-points {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
}

div.day-event-point {
  width: 5px;
  margin-left: 3px;
}

div.employee-image-container {
  margin-right: 5px;
  text-align: center;
  max-width: 40%;
}

div.toolbar {
  background-color: #000000;
  color: #ffffff;
  font-size: 13px;
  top: 0;
  width: 100%;
  z-index: 100;
  text-align: center;
  border-left: 10px solid black;
  border-right: 10px solid black;
  padding-top: 5px;
  padding-bottom: 5px;
  position: sticky;
  top: 0
}

label.checkbox-label {
  margin-right: 20px;
}

.employee-image {
  width: 30px;
  height: 30px;
  float: left;
  margin-top: 3px;
  margin-left: 3px;
  margin-bottom: 3px;
  display: inline-block;
}

img.employee-image {
  border-radius: 50%;
  opacity: 0.4;
  background-image: url('../profiles/placeholder.png');
}

  img.employee-image.approved {
    opacity: 1;
  }

.event-cell {
  flex-grow: 1;
}

  .event-cell .day-events {
    flex-grow: 4;
  }


.is-holiday-germany {
  position: relative;
  overflow: hidden;
  width: 300px;
}

  .is-holiday-germany:after {
    content: "";
    position: absolute;
    width: 75px;
    height: 20px;
    background-image: url(../publicHolidayFlags/germany.png);
    background-repeat: no-repeat;
    background-size: 77px 15px;
    opacity: 0.7;
    top: 0;
    left: -29px;
    transform: rotate(-45deg);
    z-index: 1;
  }

.is-holiday-austria {
  position: relative;
  overflow: hidden;
  width: 300px;
}

  .is-holiday-austria:after {
    content: "";
    position: absolute;
    width: 75px;
    height: 20px;
    background-image: url(../publicHolidayFlags/austria.png);
    background-repeat: no-repeat;
    background-size: 77px 15px;
    opacity: 0.7;
    top: 0;
    left: -29px;
    transform: rotate(-45deg);
    z-index: 1;
  }

.is-holiday-both {
  position: relative;
  overflow: hidden;
  width: 300px;
}

  .is-holiday-both:after {
    content: "";
    position: absolute;
    width: 75px;
    height: 20px;
    background-image: url(../publicHolidayFlags/austria_germany.png);
    background-repeat: no-repeat;
    background-size: 77px 15px;
    opacity: 0.7;
    top: 0;
    left: -29px;
    transform: rotate(-45deg);
    z-index: 1;
  }

.emoji_marker {
  height: inherit;
  margin-left: 5px;
  margin-right: 5px;
}


/* BLAZOR STUFF */
#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

  #blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
  }

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAy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