
/* META INSTRUCTIONS */

@viewport {
  zoom: 1;
  width: device-width;
}

/* END OF META INSTRUCTIONS */

/* ------------------------------------------------------------------------------------------- */

/* COLORS */
:root {
  /* BLUE */
  --color-primary-0: #0287CF;	/* Main Primary color */
  --color-primary-4: #014C74;
  
  /* YELLOW */
  --color-secondary-1-0: #FFC600;

  /* RED */
  --color-secondary-2-0: #FF0D00;
  --color-secondary-2-4: #B70900;

  /* B/W */
  --color-black: #303030;  
  --color-grey: #808080;
  --color-light-grey: #BFBFBF;
  --color-very-light-grey: #E8E8E8;
  --color-white: #FFFFFF;

  /* Variants */
  --color-secondary-1-40pc: #FFC60040;
  --color-secondary-2-light: #FAC0BD;
  --color-secondary-2-20pc: #FF0D0020;
  --color-green: #01551A;
  --color-green-light: #b8d3c0;
  --color-green-20pc: #00B73720;
  --color-white-trans-minimal: #FFFFFFDD;
}

/* END OF COLORS */

/* ------------------------------------------------------------------------------------------- */

body{
  min-width: 320px;
}

/* ------------------------------------------------------------------------------------------- */

/* NAV */
#mainmenue {
  display: flex;
  position: sticky;
  justify-content: center;
  gap: 0;
  width: 100%;
  align-items: center;
  padding-bottom: 5px;
  padding-top: 10px;
  left: 0;
  flex-wrap: wrap;
  background-color: var(--color-white-trans-minimal);
  top: 0;
  z-index:100;
}

  #mainmenue a {
    background-color: var(--color-white);
    padding: 5px;
    border-top: 2px solid var(--color-primary-0);
    border-bottom: 2px solid var(--color-primary-0);
  }

  #mainmenue a.leftitem {
    border-left: 1px dashed var(--color-primary-0);
  }

  #mainmenue a.rightitem {
    border-right: 1px dashed var(--color-primary-0);
  }

  #mainmenue a:first-of-type{
    border-radius: 20px 0 0 20px;
    border-left: 2px solid var(--color-primary-0);    
    padding-left: 10px;
  } 

  #mainmenue a:last-of-type{
    border-radius: 0 20px 20px 0;
    border-right: 2px solid var(--color-primary-0);    
    padding-right: 10px;
  } 

  #mainmenue #home {
    width: 55px;
    height: 55px;
    background: linear-gradient(180deg, rgba(0 0 0 / 0%) 10px, var(--color-primary-0) 10px, var(--color-primary-0) 12px, rgba(0 0 0 / 0%) 12px, rgba(0 0 0 / 0%) 43px, var(--color-primary-0) 43px, var(--color-primary-0) 45px, rgba(0 0 0 / 0%) 45px);
    border: 0;
    padding: 0;
  }

  #mainmenue .item.active {
    color: var(--color-secondary-2-0) !important;
    background-color: var(--color-secondary-2-20pc) !important;
  }

/* END OF NAV */

/* ------------------------------------------------------------------------------------------- */

/* ------------------------------------------------------------------------------------------- */

/* NAG */
.ui.fixed.nags {
  z-index: 900;
}

.ui.nag p {
  margin-right: 15px;
}

.ui.nag.error {
  background: var(--color-secondary-2-light);
  box-shadow: 0 1px 2px 0 var(--color-secondary-2-20pc);
  color: var (var(--color-secondary-2-4));
}

.ui.nag.error>.title {
  display: inline-block;
  margin: 0 0.5em;
  color: var(--color-secondary-2-4);
  font-weight: 700;
}

.ui.nag.success {
  background: var(--color-green-light);
  box-shadow: 0 1px 2px 0 var(--color-green-20pc);
  color: var(--color-green);
}

.ui.nag.success>.title {
  display: inline-block;
  margin: 0 0.5em;
  color: var(--color-green);
  font-weight: 700;
}

/* END OF NAG */

/* ------------------------------------------------------------------------------------------- */

/* CALENDAR */
#dienstacc { /* ToDo: Change name */
  width: 100%;
  padding: 0.25em;
}

#calendar {
  display: flex;
  flex-flow: row wrap;
  gap: 25px;
  justify-content: center;
}

#calendar table {
  border-collapse: collapse;
}

#calendar td {
  width: 42px;
  height: 72px;
  text-align: center;
  border: 1px solid var(--color-light-grey);
  font-family: Oswald, sans-serif;
  font-weight: 700;
  text-shadow: -1px -1px 0 #FFFFFF, 1px -1px 0 #FFFFFF, -1px 1px 0 #FFFFFF, 1px 1px 0 #FFFFFF;
  font-size: 20px;
  cursor: pointer;
}

#calendar td.noborder {
  border: 0;
  cursor: default;
}

#calendar td.weekend {
  background: var(--color-primary-light);
}

#calendar td.pastday {
  background: var(--color-light-grey);
  color: var(--color-grey);
  text-shadow: none;
  cursor: default;
}

#duty-name { /* ToDo: Change name */
  margin-right: 0;
}

#inputline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

#inputline .ui.search.dropdown>input.search {
  cursor: pointer;
}

.calendar-day {
  background-color: var(--color-very-light-grey);
  aspect-ratio: 5 / 7;
  max-height: 340px;
  margin: auto;
  margin-top: 10px;
  position: relative;
}

.calendar-day.background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: auto;
}

.hourline {
  border-top: 1px solid var(--color-grey);
  height: 20px;
  color: var(--color-black);
  padding-left: 5px;
}

.hourline:first-of-type {
  border-top: 0;
}

.blocker-entry {
  background-color: var(--color-secondary-1-0);
  position: absolute;
  left: 50px;
  width: calc(100% - 60px);
  color: var(--color-white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-family: Lato, sans-serif;
  font-weight: 700;
  transition: height 0.3s ease-out, top 0.3s ease-out;
  cursor: auto;
}

.my-entry {
  background-color: var(--color-primary-4);
  position: absolute;
  left: 50px;
  width: calc(100% - 60px);
  color: var(--color-white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  transition: height 0.3s ease-out, top 0.3s ease-out;
  cursor: pointer;
}

.active-entry {
  background-color: var(--color-primary-0);
  cursor: all-scroll;
  outline: var(--color-secondary-1-0);
  outline-style: solid;
}

.active-entry::before {
  content: "";
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  cursor: n-resize;
  pointer-events: all;
  outline-style: none;
}

.active-entry::after {
  content: "";
  background-color: transparent;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  cursor: n-resize;
  pointer-events: all;
  outline-style: none;
}

.active-entry button {
  position: absolute;
  top: 5px;
  right: 5px;
}

.others-entry {
  background-color: var(--color-grey);
  position: absolute;
  left: 50px;
  width: calc(100% - 60px);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  transition: height 0.3s ease-out, top 0.3s ease-out;
}

.others-entry-admin {
  background-color: var(--color-grey);
  position: absolute;
  left: 50px;
  width: calc(100% - 60px);
  color: var(--color-white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  transition: height 0.3s ease-out, top 0.3s ease-out;
  cursor: pointer;
}

#bottomline {
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  position: relative;
  width: 180px;
  padding: 5px;
  display: block;
  border-radius: 5px;  
  background-color: var(--color-very-light-grey);  
}

#bottomline label {
  font-size: 14px;
  color: var(--color-black);
}

.ui.basic.modal.solidcard {
  background-color: var(--color-secondary-1-40pc);
  border: 5px solid var(--color-secondary-1-0);
  border-radius: 19px;
}

@media only screen and (width <= 768px) {
  .ui.modal>.content {
    padding: 10px !important;
  }
}

/* END OF CALENDAR */

/* ------------------------------------------------------------------------------------------- */

/* AG-TABLE */

.tight.ui.table>tbody>tr>td,
.tight.ui.table>tr>td{
  padding: 2px;
}

.ag-cell:has(.ui.icon.button.Mini) { /* stylelint-disable-line selector-class-pattern */
  padding: 0;
}

/* END OF AG-TABLE */

/* ------------------------------------------------------------------------------------------- */

/* ------------------------------------------------------------------------------------------- */

/* index Widgets */

.column {
  display: flex;
  flex-flow: column wrap;
}

.button .ui.ribbon.label {
  left: -34px;
  padding-right: 1.2em;
}

#user-full-name {
  font-size: 21px;
}

.restwocol {
  display: flex;
  gap: 10px;
  flex-flow: row nowrap;
  place-content: center center;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.twoeighty {
  max-width: 280px;
}

.ui.grid .column.vcent {
  display: flex;
  justify-content: center;
}

.row {
  display: flex;
}

.ribbonplace {
  width: 50%;
}

.ribbonplace .ui.ribbon {
  min-width: auto;
  hyphens: auto;
}

.ui.ui.ui.blue.ribbon.label {
  background-color: var(--color-primary-0);
}

#badges,
.badges {
  margin-top: 5px;
}

#badges i.icon,
.badges i.icon {
  padding-right: 2px;
  margin-right: 0;
  color: var(--color-secondary-1-0);
}

#badges.adm i.icon:first-of-type,
.badges.adm i.icon:first-of-type {
  border-left-width: 2px;
  border-left-style: solid;
  padding-left: 2px;
}

.badges.adm i.icon:first-of-type {
  padding-right: 13px;
}

#badges.adm i.icon,
.badges.adm i.icon {
  border-color: var(--color-secondary-1-0);
  border-top-width: 2px;
  border-top-style: solid;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  padding-bottom: 11px;
  padding-top: 1px;
}

.badges.adm i.icon {
  padding-top: 2px;
}

#badges.adm i.icon:last-of-type,
.badges.adm i.icon:last-of-type {
  border-right-width: 2px;
  border-right-style: solid;
}

.badges.adm i.icon:last-of-type {
  padding-right: 13px;
}

p.badges {
  margin-bottom: 0;
  margin-top: 0;
}

.ui.ribbon.label.withmarg {
  margin-top: 5px;
}

.ui.ribbon.label {
  background-color: var(--color-very-light-grey);
}

#opening-hours {
  padding: 5px;
}

.timetable {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-flow: row wrap;
}

.timeitem {
  padding: 5px;
  flex: 3 2 100px;
  box-shadow: 0 2px 4px 0 rgb(34 36 38 / 12%), 0 2px 10px 0 rgb(34 36 38 /15%);
}

.timeitem:has(p.closed) {
  color: var(--color-grey);
  background-color: var(--color-very-light-grey);
}

.todaytable .timeitem {
  display: flex;
  gap: 15px;
  justify-content: space-around;
  align-items: center;
  padding: 1em;
  font-size: 1.5em;
  max-width: 100%;
}

.todayitem {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.todayitem .label {
  font-weight: 600;
  color: var(--color-primary-0);
  margin-bottom: 6px;
}

.todayparent {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 15px;
}

#newswidget,
#welcomewidget {
  margin: 0;
  padding: 5px;
}

#newswidget .contentitem {
  border-top: 2px solid var(--color-secondary-2-0);
  margin-top: 20px;
  padding-top: 5px;
}

#newswidget h2 {
  margin-top: 14px;
  margin-bottom: 0;
}

#newswidget .item {
  box-shadow: 0 2px 4px 0 rgb(34 36 38 / 12%), 0 2px 10px 0 rgb(34 36 38 /15%);
  padding: 5px;
}

#newswidget .item:first-of-type {
  margin-top: 5px;
}

@media only screen and (width <= 768px) {
  .ui:not(.segment, .grid) .ui.stackable.grid,body>.ui.stackable.grid {
      margin-left: -1rem !important;
      margin-right: -1rem !important;
  }
}

/* END OF index Widgets */

/* ------------------------------------------------------------------------------------------- */
