@media (min-width: 576px) {
  :root {
    --font-size:34px
  }
}

@media (min-width: 768px) {
  :root {
    --font-size:36px
  }
}

@media (min-width: 992px) {
  :root {
    --font-size:36px
  }
}

@media (min-width: 1200px) {
  :root {
    --font-size:36px
  }
}

@media only screen and (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --primary-hover: var(--mark-background-color);
  }
}

main {
  width: 100%;
}

button:hover {
  color: var(--contrast-inverse);
}

.hidden {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-sizing: border-box;
  background-color: hsl(110.31deg 21.73% 39.37%);
  border-radius: var(--border-radius);
  padding: 8px;
}

.logo:hover {
  text-decoration: none;
  background-color: var(--mark-background-color);
}

.login-form .login-info {
  margin-top: 16px;
}

.login-form .logo {
  margin-bottom: 96px;
}

.logo h1 {
  margin: 0;
  padding: 0;
  text-transform: lowercase;
}

.login-form {
  margin-top: 5vh;
}

.htmx-indicator {
  opacity:0;
  transition: opacity 300ms ease-in;
  height: 0;
  position: fixed;
  top: calc(40vh - 100px);
  left: calc(50vw - 100px);
  pointer-events: none;
}

[aria-busy=true]:not(input,select,textarea,html):not(:empty)::before {
  width: 200px;
  height: 200px;
  border-radius: 200px;
  border-width: 20px;
}

.htmx-request.htmx-indicator,
.htmx-request .htmx-indicator {
  opacity:1;
}

.error {
  color: var(--form-element-invalid-active-border-color);
}

input.error {
  border-color: var(--form-element-invalid-active-border-color);
  color: var(--color);
}

.admin {
  display: flex;
  gap: var(--font-size);
  height: 100%;
  padding: 16px;
}

.admin .menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.admin menu {
  list-style-type: none;
  padding: 0 24px;
}

.sub-menu {
  display: flex;
  gap: 16px;
}

.sub-menu button {
  padding: 4px 32px;
}

.mini-btn {
  border: none;
  width: auto;
  padding: 0 8px;
  font-size: 0.7em;
  cursor: pointer;
  display: inline-block;
  border-radius: var(--border-radius);
}

.actions {
  margin-top: 16px;
}

.dimmed-btn {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

table menu {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

table menu button {
  margin: 0;
  padding: 0 16px;
}


@media (max-width: 1200px) {
  .burger-button {
    display: block;
    width: auto;
    position: fixed;
    top: 16px;
    right: 16px;
  }

  .burger-button div {
    width: 35px;
    height: 5px;
    background-color: black;
    margin: 6px 0;
  }

  .admin .menu {
    display: none
  }

  .admin .menu.force-show {
    display: flex;
  }
}

.messages {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
  list-style-type: none;
}

.messages li::marker {
  color: transparent;
}

.messages li {
  border-radius: var(--border-radius);
  padding: 6px 24px
}

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

.messages .error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.messages .success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.user-selection,
.month-selection,
.year-selection {
  display: flex;
  gap: 16px;
  list-style-type: none;
  flex-wrap: wrap;
}


.user-selection .active,
.month-selection .active,
.year-selection .active {
  text-decoration: underline;
  color: hsl(110.31deg 21.73% 39.37%);
}

.user-panel {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.user-panel main {
  width: 100%;
  margin-bottom: 13vh;
}

.user-panel footer {
  display: flex;
  width: 100%;
  height: 12vh;
  position: fixed;
  bottom: 0;
  left: 0;
}

.user-panel footer button {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  padding-top: 24px;
  font-size: 2vh;
  border-radius: 0;
  margin: 0;
  border-right: 4px solid var(--mark-color);
}

.user-panel footer button.active {
  background-color: var(--primary-hover);
}

.user-panel footer button:last-child {
  border-right: none;
}

.user-panel footer .las {
  font-size: 6vh;
}
