/*Applies to document as a whole*/
* {
  border-radius: 5px;
  margin: 0;
  padding: 0;
  font: inherit;
  font-family: "Times New Roman", serif;
  line-height: 1; /* Correct the line height in all browsers. */
  -webkit-text-size-adjust: 100%; /* Prevent adjustments of font size after orientation changes in iOS. */
  font-size: 1em;
}
body {
  background-color: var(--main-bg-color);
  color: var(--main-text-color);
}

html,
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 120, 120, 0.55) transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.main_nav::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.main_nav::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.main_nav::-webkit-scrollbar-thumb {
  background-color: rgba(120, 120, 120, 0.55);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.main_nav::-webkit-scrollbar-thumb:hover {
  background-color: rgba(120, 120, 120, 0.75);
}

.main_nav {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 120, 120, 0.55) transparent;
  scrollbar-gutter: stable;
}
/*Division or section*/ /*
div {

}*/
/*The main content of the body*/
main {
  display: block;
}
/*Heading size 1*/
h1 {
  font-size: 4em;
  margin: 0.25em 0 0.5em 0;
}
/*Heading size 2*/
h2 {
  font-size: 3.5em;
  margin: 0.25em 0 0.5em 0;
}
/*Heading size 3*/
h3 {
  font-size: 3em;
  margin: 0.25em 0 0.5em 0;
}
/*Heading size 4*/
h4 {
  font-size: 2.5em;
  margin: 0.25em 0 0.5em 0;
}
/*Heading size 5*/
h5 {
  font-size: 2em;
  margin: 0.25em 0 0.5em 0;
}
/*Heading size 6*/
h6 {
  font-size: 1.5em;
  margin: 0.25em 0 0.5em 0;
}
/*Paragraph tag*/
p {
  font-size: 1em;
  margin: 0.5em 0 1em 0;
}
/*Anchor tag hyperlink*/
a {
  color: var(--link-color);
}
/*Specific styling for desktop screens*/
@media (min-width: 700px) {
  /*Navigation menu*/
  .main_nav {
    display: block;
    background-color: var(--item-bg-color);
    position: fixed;
    top: 0px;
    left: 0px;
    width: fit-content;
    min-width: 0px;
    list-style-type: none;
    padding-left: 0px;
    margin-top: 0px;
    float: left;
    height: 100vh;
    scrollbar-gutter: auto;
    z-index: 1;
  }
  /*Button to open navigation for mobile screens*/
  .nav_burger {
    display: none;
  }
  /*Content other than navigation menu*/
  .content {
    margin-left: var(--main-nav-width, 90px);
    padding: 5px;
  }

  .main_nav li a {
    padding: 4px 0px;
  }
}
/*Specific styling for mobile screens*/
@media (max-width: 700px) {
  * {
    font-size: 100%;
  }
  /*Navigation container*/
  .nav {
    text-align: center;
  }
  /*Navigation menu*/
  .main_nav {
    display: none;
    background-color: var(--item-bg-color);
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    list-style-type: none;
    padding-left: 0px;
    margin-top: 0px;
    float: left;
    height: 100vh;
    z-index: 5;
  }
  /*Button to open navigation for mobile screens*/
  .nav_burger {
    display: block;
    width: 100vw;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 5;
  }
  /*Navigation burger icon image*/
  .burger_icon {
    display: flex;
    background-color: var(--item-bg-color);
    width: 100vw;
    min-height: 50px;
    text-align: center;
    justify-content: center;
  }
  /*Content other than navigation menu*/
  .content {
    margin-top: 50px;
    margin-left: 0px;
    padding: 5px;
    /*margin-bottom: 80px;*/
  }
}
#message_popup {
  position: fixed;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  justify-content: center;
  border-style: solid;
  border-color: var(--border-color);
  padding: 5px;
  background-color: var(--main-bg-color);
  z-index: 4;
}
.error_403_message {
  text-align: center;
  margin-top: 20vh;
}
/*Navigation icon */
.nav_icon {
  width: 28px;
  height: 28px;
  padding: 0px;
  flex: 0 0 28px;
}
.main_nav li a,
.nav_button h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main_nav li a {
  padding: 4px 6px;
  text-decoration: none;
}
.nav_button h3 {
  cursor: pointer;
}
/*Navigation drop list for submenu options*/
.nav_drop_list {
  display: none;
  position: absolute;
  margin-top: -28px;
  margin-left: 70px;
  z-index: 2;
  width: fit-content;
  background-color: var(--item-bg-color);
  list-style-type: none;
  padding: 0px;
  align-items: center;
  white-space: nowrap;
} /*
.nav_drop_list ul li {
  text-decoration: none;
}
.nav_but:hover .nav_drop_list {
  display: block;
}*/
/*Content doesn't need to be displayed immediately*/
.hidden {
  display: none;
}
/*Message shown when a feature completed*/
.attention {
  background-color: red;
} /*
.login_content {
  margin-left: 0px;
  padding: 5px;
  margin-bottom: 80px;
  text-align: center;
}
#sign_in {
  margin: 10vw;
  margin-top: 20px;
  display: flex;
  justify-content: space-evenly;
}*/
/*Form that is hidden until needed*/
.form_popup {
  display: none;
  position: fixed;
  max-height: 80vh;
  overflow: auto;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  justify-content: center;
  border-style: solid;
  border-color: var(--border-color);
  padding: 5px;
  background-color: var(--main-bg-color);
  z-index: 3;
} /*
.today_to_do_list {
  display: flex;
}*/
/*Baseline style for tables*/
table {
  border-collapse: collapse;
  border-color: var(--border-color);
  border-style: solid;
  text-align: center;
}
/*Baseline style for table rows*/
tr {
  border-color: var(--border-color);
  border-radius: 0px;
  border-style: solid;
}
/*Baseline style for table rows*/
tr:hover:not(.time_row):not(.cal_week) {
  background-color: var(--focus-bg-color);
  color: var(--focus-text-color);
}
/*Baseline style for table heads*/
thead {
  background-color: var(--focus-bg-color);
  color: var(--focus-text-color);
}
/*Baseline style for table cells*/
td {
  border-radius: 0px;
  border-color: var(--border-color);
  text-align: center;
  border-style: solid;
  padding-top: 3px;
  padding-left: 10px;
  padding-right: 10px;
} /*
button {
  color: var(--item-text-color);
  background-color: var(--item-bg-color);
  padding: 0px 4px;
}
button a {
  color: var(--item-text-color);
  text-decoration: none;
}
input {
  background-color: var(--item-bg-color);
  color: var(--item-text-color);
}
input[type="button"],
input[type="submit"],
input[type="reset"] {
  padding: 0px 4px;
}
/*Makes tables that are long scrollable*/
.scrollable_table {
  width: 100%;
  height: 80vh;
  overflow-y: auto;
  overflow-x: auto;
  border-style: solid;
  border: 5px;
  border-color: black;
}
/*Makes scrollable table head stay in place*/
.scrollable_table thead,
.scrollable_table thead tr,
.scrollable_table thead th {
  position: sticky;
  top: 0px;
  border-radius: 0;
  z-index: 2;
  padding: 0;
}
/*Makes scrollable table head stay in place*/
.scrollable_table th {
  border-style: none;
  border-left: solid;
  border-left-color: var(--border-color);
  border-radius: 0;
  padding: 0;
}
/*Calendar showing one week*/
.calendar_week {
  width: 100%;
  height: 80vh;
  border: 0;
}
/*Body of calendar showing one week*/
.calendar_week tbody {
  position: sticky;
  top: 100px;
  border: 5px;
}
.time_row {
  position: relative;
}
.calendar_week .col1 {
  text-align: left;
  width: 5ch;
}
.calendar_week .col2 {
  width: 10vw;
  position: relative;
}
.time_row td {
  height: 22;
} /*
.timeCell {
  width: 150px;
  padding-left: 2px;
}
/*Calendar block*/
.time_block {
  z-index: 2;
  position: absolute;
  left: 0px;
  top: 0;
  width: calc(100% - 2px);
  overflow: hidden;
  background-color: var(--item-bg-color);
  border-style: solid;
  border-width: 1px;
  border-color: black; /*
  font-size: 1.2em;*/
  container-type: inline-size;
}
.time_block > div {
  font-size: min(1em, 10cqi);
}
/*Three dot button in top corner of calendar block*/
.sched_menu {
  width: 15px;
  height: 15px;
  margin: 0px;
  padding: 0px;
  border: 0px;
  position: absolute;
  left: 0px;
  top: 0px;
}
.user_profile_input {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  outline: none;
  padding: 0;
  margin: 0;
}
.other_user_profile_input {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  outline: none;
  padding: 0;
  margin: 0;
}
.user_profile_sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.user_profile_section {
  border: 1px solid var(--border-color);
  width: 100%;
}
.page_tab {
  display: none;
}
.log_tab {
  display: none;
}
.category_name_tree {
  text-align: left;
}

.organisation_chart_wrapper {
  display: grid;
  gap: 12px;
}

.organisation_group_section {
  padding: 10px;
  background-color: transparent;
  overflow-x: auto;
}

.organisation_group_section + .organisation_group_section {
  border-top: 1px dashed var(--border-color);
  margin-top: 8px;
  padding-top: 14px;
}

.organisation_group_title {
  margin-bottom: 8px;
}

.organisation_subheading {
  margin-bottom: 8px;
  font-style: italic;
}

.organisation_tree_level {
  --organisation-node-width: 220px;
  --organisation-node-gap: 12px;
  --organisation-child-count: 0;
  --organisation-line-left: 0px;
  --organisation-line-width: 0px;
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--organisation-node-gap);
  list-style: none;
  padding-left: 0;
  margin: 0;
  min-width: max-content;
  position: relative;
}

.organisation_tree_node > .organisation_tree_level {
  margin-top: 16px;
  padding-top: 18px;
  border-top: none;
  width: max-content;
  min-width: 100%;
}

.organisation_tree_node > .organisation_tree_level::after {
  content: "";
  position: absolute;
  top: 0;
  left: var(--organisation-line-left);
  width: var(--organisation-line-width);
  height: 1px;
  background-color: var(--border-color);
}

.organisation_tree_node > .organisation_tree_level::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 16px;
  background-color: var(--border-color);
}

.organisation_tree_node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  min-width: var(--organisation-node-width);
  max-width: none;
  text-align: center;
  position: relative;
}

.organisation_tree_node > .organisation_tree_level > .organisation_tree_node::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 18px;
  background-color: var(--border-color);
}

.organisation_tree_category {
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  background-color: var(--main-bg-color);
  font-weight: 600;
}

.organisation_tree_user_list,
.organisation_unmapped_roles,
.organisation_detached_list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.organisation_tree_user_card {
  border: 1px solid var(--border-color);
  background-color: var(--main-bg-color);
  padding: 5px 7px;
  text-align: left;
}

.organisation_tree_user_card strong,
.organisation_tree_user_card span {
  display: block;
  line-height: 1.25;
}

.organisation_tree_user_card span {
  opacity: 0.9;
}

.organisation_detached_section {
  border-top: 1px dashed var(--border-color);
}

@media (max-width: 700px) {
  .organisation_tree_node > .organisation_tree_level::after {
    left: var(--organisation-line-left);
    width: var(--organisation-line-width);
  }

  .organisation_tree_node {
    --organisation-node-width: 170px;
  }
}

.job_tab {
  display: none;
}
.security_tab ul {
  list-style-type: none;
  padding-left: 24px;
  margin: 4px 0;
}
.security_tab > ul {
  padding-left: 0;
}
.security_tab li {
  margin: 4px 0;
  line-height: 20px;
}
@media (max-width: 700px) {
  .foot {
    border-radius: 0px;
    background-color: var(--item-bg-color);
    display: none;
    position: fixed;
    bottom: 0px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    min-height: 60px;
    margin-left: 0px;
    padding: 5px;
    z-index: 100;
  }
}
