td.size {
  text-align: right;
  padding-right: 5em;
}

th.size {
  text-align: right;
  padding-right: 5em;
}

/* open-sans-300 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  src: url("/static/fonts/open-sans-v40-latin-300.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-regular - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: url("/static/fonts/open-sans-v40-latin-regular.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-700 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  src: url("/static/fonts/open-sans-v40-latin-700.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --pico-font-family-sans-serif: "Open Sans", Arial, system-ui, sans-serif,
    var(--pico-font-family-emoji);
  --pico-font-size: 87.5%;
  /* Original: 100% */
  --pico-line-height: 1.25;
  /* Original: 1.5 */
  --pico-form-element-spacing-vertical: 0.5rem;
  /* Original: 1rem */
  --pico-form-element-spacing-horizontal: 1rem;
  /* Original: 1.25rem */
  --pico-border-radius: 0.375rem;
  /* Original: 0.25rem */

  /* our color accent */
  --pico-color-accent: var(--pico-color-radboud-red-impact);
  /* colors from https://www.ru.nl/medewerkers/services/campusfaciliteiten-gebouwen/communicatie-en-promotie/vormgeving-en-opmaak/huisstijl/kleur */
  --radboud-red-impact: #e3000b;
  --radboud-poppy: #ff424b;
  --radboud-lady-bug: #be311e;
  --radboud-berry: #8f2011;
  --radboud-maroon: #730e04;
  --radboud-mahogany: #4a0004;
  --radboud-gray: #797777;
  --radboud-orange: #cf5107;
  --radboud-blue: #008acb;
  --radboud-petrol: #008f89;
  --radboud-green: #4aa943;
  --radboud-yellow: #ccaf00;
}

@media (min-width: 576px) {
  :root {
    --pico-font-size: 87.5%;
    /* Original: 106.25% */
  }
}

@media (min-width: 768px) {
  :root {
    --pico-font-size: 87.5%;
    /* Original: 112.5% */
  }
}

@media (min-width: 1024px) {
  :root {
    --pico-font-size: 87.5%;
    /* Original: 118.75% */
  }
}

@media (min-width: 1280px) {
  :root {
    --pico-font-size: 87.5%;
    /* Original: 125% */
  }
}

@media (min-width: 1536px) {
  :root {
    --pico-font-size: 87.5%;
    /* Original: 131.25% */
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  --pico-font-weight: 800;
}

h1 {
  --pico-font-size: 40px;
}

h1>sup {
  font-size: 0.5em;
}

article {
  border: 1px solid var(--pico-muted-border-color);
}

ul.input {
  padding: 0;
  list-style: none !important;
}

ul.input li {
  list-style: none !important;
}

ul.input span {
  border: 1px solid var(--pico-muted-border-color);
  padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
  color: var(--pico-color);
  appearance: none;
  width: 100%;
}

/* TODO(miek): light and dark variants */
.me {}

.pico-background-accent {
  background-color: var(--pico-color-accent);
  color: var(--pico-color-light);
}

.right {
  float: right;
}

code.cpaste>a {
  padding: 0px 10px;
  text-decoration: none;
  color: var(--pico-code-color);
}

code.cpaste>a:hover {
  color: color-mix(in srgb, var(--pico-code-color), #fff 25%);
}

code {
  word-wrap: normal;
}

pre>code {
  font-family: monospace;
  font-size: 13px;
}

nav li a {
  color: var(--pico-font-color);
  font-weight: 800;
  padding: 0 1em;
}

nav {
  padding: 0em 2em;
}

body.impersonate {
  background: rgba(200, 200, 200, 0.3);
}

.zammad-chat-send {
  width: initial !important;
}

.hidden {
  visibility: hidden;
}

#tree ul,
#tree ul ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#tree ul ul {
  margin-left: 10px;
}

#tree ul li {
  margin-left: 10px;
  padding: 0 7px;
  line-height: 20px;
  list-style: none;
  border-left: 1px solid var(--pico-secondary);
}

#tree ul li:last-child {
  border-left: none;
}

#tree ul li:before {
  position: relative;
  top: -0.3em;
  height: 1em;
  width: 12px;
  border-bottom: 1px solid var(--pico-secondary);
  content: "";
  display: inline-block;
  left: -7px;
}

#tree ul li:last-child:before {
  border-left: 1px solid var(--pico-secondary);
}

#tree>ul>li {
  border-left: none;
}

#tree>ul>li:before {
  content: none;
}

#tree>ul>li>ul>li {
  border-left: none;
  margin-left: 0;
}

#tree>ul>li>ul>li:before {
  display: none;
}

#egm {
  .hi {
    background-color: var(--pico-mark-background-color);
  }

  .dup {
    text-decoration: var(--pico-contrast-underline) wavy underline;
  }
}

code {
  margin-right: 10px;
}

meter {
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-block;
  height: 35px;
  appearance: none;
  width: 100%;
  margin-bottom: calc(var(--pico-spacing) * 0.5);
  overflow: hidden;
  border: 0;
  border-radius: var(--pico-border-radius);
  background-color: var(--pico-progress-background-color);
  color: var(--pico-progress-color);
}

meter::-webkit-progress-bar {
  border-radius: var(--pico-border-radius);
  background: 0 0;
}

meter[value]::-webkit-progress-value {
  background-color: var(--pico-progress-color);
  -webkit-transition: inline-size var(--pico-transition);
  transition: inline-size var(--pico-transition);
}

meter::-moz-progress-bar {
  background-color: var(--pico-progress-color);
}

footer.container {
  margin: auto 0;
  text-align: center;
}

a.owner {
  font-weight: bold;
}

[role="group"]>a>button {
  border-radius: 0;
  margin: 0;
}

[role="group"]>a:first-child>button {
  border-top-left-radius: var(--pico-border-radius);
  border-bottom-left-radius: var(--pico-border-radius);
  margin-right: -1px;
}

[role="group"]>a:last-child>button {
  border-top-right-radius: var(--pico-border-radius);
  border-bottom-right-radius: var(--pico-border-radius);
}

tr.inactive td:not(.button) {
  color: var(--pico-del-color);
  text-decoration: line-through;
}

h1.inactive {
  color: var(--pico-del-color);
  text-decoration: line-through;
}

td.button i {
  cursor: pointer;
}

tr.htmx-swapping td {
  opacity: 0;
  transition: opacity 1s ease-out;
}

small.hx-error {
  margin-top: 0;
  margin-bottom: 0;
  height: auto;
  min-height: 0;
  color: var(--pico-del-color);
  /* for the time being */
}

table.nowrap th,
table.nowrap td {
  white-space: nowrap;
}

th>small.hx-error,
td>small.hx-error {
  white-space: wrap;
  margin-top: 0;
  height: auto;
  min-height: 0;
}

.first-col {
  width: 100px;
  min-width: 50px;
  max-width: 100px;
  left: 0px;
}

.last-col {
  width: 100px;
  min-width: 50px;
  max-width: 100px;
  right: 0px;
}

.sticky-col {
  position: -webkit-sticky;
  position: sticky;
  background: var(--pico-card-background-color);
}

/* override style for disabled form element in volume resize widget */
#size-indicator {
  opacity: 1;
}

article.diynote>header>h3 {
  color: white;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -1px;
}

article.diynote.info {
  border-color: var(--radboud-blue);
}

article.diynote.info>header {
  background-color: var(--radboud-blue);
}

article.diynote.success {
  border-color: var(--radboud-green);
}

article.diynote.success>header {
  background-color: var(--radboud-green);
}

img.qr {
  width: 256px;
  height: 256px;
}

.nonsel {
  user-select: none;
}

#logo {
  text-align: center;
}

#logo img {
  width: 500px;
}
