html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: lab(2.75381% 0 0);
    --foreground: lab(98.26% 0 0);
    --card: lab(7.78201% -.0000149012 0);
    --card-foreground: lab(98.26% 0 0);
    --popover: lab(15.204% 0 -.00000596046);
    --popover-foreground: lab(98.26% 0 0);
    --primary: lab(90.952% 0 -.0000119209);
    --primary-foreground: lab(7.78201% -.0000149012 0);
    --secondary: lab(15.204% 0 -.00000596046);
    --secondary-foreground: lab(98.26% 0 0);
    --muted: lab(15.204% 0 -.00000596046);
    --muted-foreground: lab(66.128% -.0000298023 .0000119209);
    --accent: lab(27.036% 0 0);
    --accent-foreground: lab(98.26% 0 0);
    --destructive: lab(63.7053% 60.745 31.3109);
    --destructive-foreground: lab(49.0747% 69.3434 49.6251);
    --border: lab(100% 0 0/.1);
    --input: lab(100% 0 0/.15);
    --ring: lab(48.496% 0 0);
    --sidebar: lab(7.78201% -.0000149012 0);
    --sidebar-foreground: lab(98.26% 0 0);
    --sidebar-primary: lab(36.9089% 35.0961 -85.6872);
    --sidebar-primary-foreground: lab(98.26% 0 0);
    --sidebar-accent: lab(15.204% 0 -.00000596046);
    --sidebar-accent-foreground: lab(98.26% 0 0);
    --sidebar-border: lab(100% 0 0/.1);
    --sidebar-ring: lab(34.924% 0 0);
    --surface: lab(7.22637% -.0000149012 0);
    --surface-foreground: lab(66.128% -.0000298023 .0000119209);
    --code-highlight: lab(15.32% 0 0);
    --code-number: lab(67.52% -.0000298023 0);
    --selection: lab(90.952% 0 -.0000119209);
    --selection-foreground: lab(7.78201% -.0000149012 0);
  --background: lab(2.75381% 0 0);
  --color-foreground: lab(98.26% 0 0);
  --border: lab(100% 0 0/.1);
  --sidebar: lab(7.78201% -.0000149012 0);
  --sidebar-foreground: lab(98.26% 0 0);
  --sidebar-accent: lab(15.204% 0 -.00000596046);
  --sidebar-accent-foreground: lab(98.26% 0 0);
  --muted: lab(15.204% 0 -.00000596046);
  --muted-foreground: lab(66.128% -.0000298023 .0000119209);
  --primary: lab(49.9355% 55.1776 -81.8963);
  --input: lab(100% 0 0/.15);
  --ring: lab(24.3783% 45.7525 -61.4902);
}

body {
  background-color: var(--background);
  color: var(--color-foreground);
  font-family: "Inter", serif;
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

body[scroll-locked] {
  overflow: hidden !important;
  overscroll-behavior: contain;
  position: relative !important;
  pointer-events: none !important;
}

input {
  font-family: inherit;
  font-weight: inherit;
  font-weight: inherit;
}

button {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
}

.sidebar {
  background-color: var(--sidebar);
  color: var(--sidebar-foreground);
  max-height: 100vh;
  height: 100vh;
  height: 100dvh;
  position: sticky;
  top: 0;
  width: 300px;
  border-right: 1px solid var(--border);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  overflow-x: hidden;
}

.sidebar-toggle {
  display: none;
  position-anchor: --sidebar;
  position: absolute;
  top: anchor(0px);
  left: anchor(0px);
  cursor: pointer;
  pointer-events: all !important;
  z-index: 1000;
}

.sidebar-header {
  border-bottom: 1px solid var(--border);
  height: 2rem;
  display: flex;
  padding: 0.5rem;
  position: sticky;
  top: 0;
  background: var(--sidebar);
}

@media(max-width: 850px) {
  .sidebar {
    position: fixed;
    left: -100%;
    transition: ease left 0.2s;
    z-index: 999;
    pointer-events: all !important;
    anchor-name: --sidebar;
  }

  .sidebar-header {
    padding-left: 3.5rem;
  }

  .sidebar.shown {
    left: 0;
  }

  .header-content {
    padding-left: 3rem;
  }

  .sidebar-toggle {
    display: block;
  }

  .login .themed {
    width: 100%;
    height: 100%;
    z-index: -1;
    box-sizing: border-box;
  }

  .login {
    grid-template-columns: 1fr !important;
  }

  .login > * {
    grid-area: 1/1;
  }
}

main.login-body {
  overflow-y: scroll;
}


.sidebar-toggle svg {
  height: 2rem;
  padding: 0.5rem;
  margin-left: 0.5rem;
  fill: white;
}

.sidebar-header a {
  color: var(--sidebar-accent-foreground);
  text-decoration: inherit;
  display: flex;
  flex: 1;
  border-radius: 0.6rem;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0 0.1rem;
  box-sizing: border-box;
  gap: 0.5rem;
  
}

.sidebar a {
  color:inherit;
  text-decoration: inherit;
}

.sidebar-header img {
  max-height: 100%;
  object-fit: contain;
}

.sidebar-header a:hover {
  background: var(--sidebar-accent);
}

.sidebar .group {
  padding: 1rem;
}

.sidebar .group .group-header {
  color: color-mix(in oklab,var(--sidebar-foreground)70%,transparent);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0;
}

.sidebar .group ul li a {
  display: block;
  padding: 0.5rem;
  margin: 0.2rem 0;
  border-radius: 0.7rem;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  font-size: 1rem;
}

.sidebar .group ul li a.active {
  font-weight: 600;

}

.sidebar .group ul li a svg {
  fill: white;
  max-height: 1.2rem;
  padding: 0;
  object-fit: contain;
}

.sidebar .group ul li a:hover, .sidebar .group ul li a:active,
.sidebar .group ul li a.active {
  background: var(--sidebar-accent);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-footer .account {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
  margin: 0.5rem;
  border-radius: 1rem;
}

.sidebar-footer .account:hover {
  background: var(--sidebar-accent);
}

.sidebar-footer img {
  max-height: 2rem;
  object-fit: contain;
  border-radius: 0.5rem;
}

.sidebar-footer .account .details {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
}

.sidebar-footer .account .account-mail {
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.sidebar-footer .account .account-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.sidebar-footer .account .vellipsis {
  max-height: 1rem;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  overflow-y: scroll;
}

main header {
  position: sticky;
  top: 0;
  background: var(--background);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  z-index: 998;
}

main header .header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  transition: ease padding-left 0.3s;
}

main header h1 {
  font-weight: 500;
}

main header .header-content .content-right {
  margin-left: auto;
}

main header button {
  display: flex;
  flex-direction: row;
  border: none;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--color-foreground);
  gap: 0.3rem;
  align-items: center;
  height: 1.8rem;
  white-space: nowrap;
  flex-grow: 1;
  padding: 0.2rem 0.7rem;
  transition: ease background 0.2s;
  cursor: pointer;
}

main header button:hover {
  background: color-mix(in oklab,var(--primary)90%,transparent);
}

main header button span {
  font-size: 0.8rem;
  font-weight: 500;
}

main header button svg {
  fill: white;
  height: 1rem;
}

footer {
  background-color: var(--background);
  text-align: center;
  width: 100%;
  align-self:center;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 0.4rem 2rem;
  box-sizing: border-box;
}

.login {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  flex: 1;
  justify-content: sapce-around;
}

.login .themed {
  background-color: color-mix(in oklab,var(--primary)5%,transparent);
  color: var(--primary);
  padding: 3rem;
  font-size: 1.7rem;
  font-weight: 700;
  border-right: 1px solid var(--border);
}

.login .login-form {
  padding: 3rem;
  display: flex;
  flex-direction: column;
}

.login-form .form {
  justify-self: center;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  flex: 1;
  width: calc(min(100%, 300px));
  gap: 1.5rem;
}

.login-form .form input, .login-form .form button {
  border: 1px solid var(--border);
  background-color: color-mix(in oklab,var(--input)30%,transparent);
  color: var(--color-foreground);
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.login-form .form input:focus-visible {
  border-color: var(--ring);
  --tw-ring-shadow: var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);
  box-shadow: var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);
  outline-style: none;
}

.login-form .form button:hover {
  background-color: color-mix(in oklab,var(--input)50%,transparent);
}

.login-form .form button {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.login .login-form h1 {
  text-align: right;
}

.login-form .form h1 {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}

.login-form .fieldset {
  position: relative;
  text-align: center;
}

.horline {
  width: 100%;
  height: 1px;
  top: 0.5rem;
  background: var(--border);
  position:absolute;
  z-index: -1;
}

.horline + span {
  text-align: center;
  padding:0 .5rem;
  color: var(--sidebar-foreground);
  background: var(--background);
}

.login-form .form button.primary {
  background-color: var(--primary);
}

.login-form .form button.primary:hover {
  background-color: color-mix(in oklab,var(--primary)90%,transparent);
}

.table-container {
  overflow-x: auto;
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
}

table {
  font-size: 0.865rem;
  width: 100%;
  text-indent: 0;
  font-weight: 500;
  table-layout: auto;
}

table thead {
  background-color: var(--muted);
  position: sticky;
  top: 0;
}

table thead th {
  height: 2.5rem;
  padding-inline: 1rem;
  font-weight: 500;
  line-height: 2.5rem;
  text-align: left;
}

table tr td {
  vertical-align: middle;
  white-space: nowrap;
  padding: .5rem;
  padding-inline: 1rem;
  line-height: 1.25rem;
  font-size: 0.9rem;
}

table tr {
  border-bottom: 1px solid var(--muted);
  transition: ease background-color 0.3s;
}

table tr:hover {
  background-color: color-mix(in oklab,var(--muted)50%,transparent);
}

table tr:last-child {
  border-bottom: unset;
}

.table-border {
  margin: 1rem;
  overflow-x: hidden;
  border-radius: 1rem;
  border: 1px solid var(--muted);
}

table tr td button {
  border: none;
  background: unset;
  color: var(--primary-forgeground)
}

table tr td svg {
  width: 1rem;
}

table tr td button.ellipsis {
  aspect-ratio: 1;
  border-radius: 0.25rem;
  height: 2rem;
  width: 2rem;
  cursor: pointer;
}

table tr td button.ellipsis:hover {
  background-color: color-mix(in oklab,var(--accent)50%,transparent);

}

table button[data-action] {
  cursor: pointer;
}

table tr td button.badge {
  display: inline-flex;
  flex-direction: row;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: calc(1/.75);
  padding-block: 0.12rem;
  padding-inline: 0.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: ease 0.3s background-color;
}

table tr td button.badge:hover {
  background-color: color-mix(in oklab,var(--accent)50%,transparent);
}

table tr td button.badge svg {
  height: 1rem;
  object-fit: contain;
}

.badge.green svg {
  fill: lab(78.503% -64.9265 39.7492);
}

table .main-item {
  cursor: pointer;
}

table .main-item:hover {
  text-decoration: underline;
}

table button.ellipsis {
  anchor-name: --actions-anchor;
}

table button.ellipsis + .actions {
  position: fixed;
  display: none;
  flex-direction: column;
  color: white;
  border: none;
  background: var(--sidebar-accent);
  border-radius: 0.5rem;
  padding: 0.5rem;
  position-anchor: --actions-anchor;
  position-area: right span-bottom;
  margin: 0 0.5rem;
  inset-area: inline-start;
  position-try: --right, --left, --left-bottom, --right-bottom, --top-left;
  align-items: stretch;
  justify-content: center;
  gap: 0.3rem;
}


table button.ellipsis + .actions.active {
  display: flex;
  pointer-events: all !important;
}

@position-try --right {
  position-area: right span-bottom;
}

@position-try --left {
  position-area: left span-bottom;
}

@position-try --left-bottom {
  position-area: left span-top;
}

@position-try --right-bottom {
  position-area: right span-top;
}

@position-try --top-left {
  position-area: top left;
}

table button.ellipsis + .actions button {
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  text-align: left;
  display: block;
  border-radius: 0.3rem;
}

table button.ellipsis + .actions button:hover {
  background: var(--accent);
}

table tr td {
  anchor-scope: --actions-anchor;
}

.main-error > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main-error h1 {
  font-size: 10rem;
  font-weight: 900;
  color: var(--primary);
}

.main-error h2 {
  font-size: 2rem;
}
