@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 100;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiAyp8kv8JHgFVrJJLmE3tF.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 200;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiDyp8kv8JHgFVrJJLmv1plEA.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiDyp8kv8JHgFVrJJLm21llEA.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiGyp8kv8JHgFVrJJLedw.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiDyp8kv8JHgFVrJJLmg1hlEA.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiDyp8kv8JHgFVrJJLmr19lEA.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiDyp8kv8JHgFVrJJLmy15lEA.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiDyp8kv8JHgFVrJJLm111lEA.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiDyp8kv8JHgFVrJJLm81xlEA.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiGyp8kv8JHgFVrLPTedw.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLFj_V1s.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLDz8V1s.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiEyp8kv8JHgFVrFJA.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLGT9V1s.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLEj6V1s.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLCz7V1s.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLDD4V1s.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLBT5V1s.ttf) format('truetype');
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/unbounded/v8/Yq6F-LOTXCb04q32xlpat-6uR42XTqtG65jx040.ttf) format('truetype');
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/unbounded/v8/Yq6F-LOTXCb04q32xlpat-6uR42XTqtG60bx040.ttf) format('truetype');
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/unbounded/v8/Yq6F-LOTXCb04q32xlpat-6uR42XTqtG6xjx040.ttf) format('truetype');
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/unbounded/v8/Yq6F-LOTXCb04q32xlpat-6uR42XTqtG6yrx040.ttf) format('truetype');
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/unbounded/v8/Yq6F-LOTXCb04q32xlpat-6uR42XTqtG68b2040.ttf) format('truetype');
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/unbounded/v8/Yq6F-LOTXCb04q32xlpat-6uR42XTqtG6__2040.ttf) format('truetype');
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/unbounded/v8/Yq6F-LOTXCb04q32xlpat-6uR42XTqtG65j2040.ttf) format('truetype');
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/unbounded/v8/Yq6F-LOTXCb04q32xlpat-6uR42XTqtG67H2040.ttf) format('truetype');
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  accent-color: #ee8144;
}
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  background-color: #fff0e1;
  color: #24262b;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  padding: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  padding-left: calc(80px + 16px);
  transition: all 0.4s ease;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Unbounded', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1;
}
a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
.btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
  border-radius: 8px;
  background-color: #fff0e1;
  color: #24262b;
}
.btn-secondary {
  background-color: #24262b;
  color: #fff0e1;
}
.btn-accent {
  background-color: #ee8144;
  color: #24262b;
}
.btn-danger {
  background-color: #b13838;
  color: #fff0e1;
}
.table-container {
  width: 100%;
}
.table-container table {
  width: 100%;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #24262b;
  color: #fff0e1;
  border-radius: 16px;
  overflow: hidden;
}
.table-container table thead tr th {
  border-bottom: 1px solid #fff0e1;
  border-collapse: separate;
  border-spacing: 5px 5px;
  padding: 16px 24px;
  text-align: left;
}
.table-container table tbody tr.odd {
  background-color: rgba(255, 240, 225, 0.1);
}
.table-container table tbody tr:not(:last-of-type) td {
  border-bottom: 1px solid rgba(255, 240, 225, 0.15);
}
.table-container table tbody tr td {
  padding: 16px 24px;
}
.table-container table tbody tr:has(.type-entree) {
  background-color: rgba(136, 186, 96, 0.1);
}
.table-container table tbody tr:has(.type-sortie) {
  background-color: rgba(177, 56, 56, 0.1);
}
.table-container .actions {
  display: flex;
  gap: 8px;
}
.table-container .actions a {
  width: 32px;
  height: 32px;
  display: grid;
  place-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.table-container .actions a svg {
  height: 100%;
  width: 100%;
  fill: #fff0e1;
  transition: all 0.2s ease;
}
.table-container .actions a:hover svg {
  fill: #ee8144;
}
.table-container .actions a.delete:hover svg {
  fill: #b13838;
}
.table-container .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.table-container .pagination li:not(.previous, .next) a {
  border-radius: 100vmax;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  width: 32px;
}
.table-container .pagination li:not(.previous, .next).active a {
  background-color: #ee8144;
  color: #24262b;
}
.table-container .pagination li:not(.previous, .next):hover a {
  background-color: rgba(238, 129, 68, 0.2);
}
.pill,
#id_state label {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 8px;
  padding: 4px 26px;
  background-color: #88ba60;
  border-radius: 4px;
  color: #fff0e1;
  border-radius: 100vmax;
}
.pill.success {
  background-color: #88ba60;
  color: #24262b;
}
.pill.success svg {
  fill: #24262b;
}
.pill.warning {
  background-color: #dc9f45;
  color: #24262b;
}
.pill.warning svg {
  fill: #24262b;
}
.pill.danger {
  background-color: #b13838;
}
.pill.danger svg {
  fill: #fff0e1;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 16px;
  width: 100%;
}
.tabs .tab {
  transition: all 0.4s ease;
  cursor: pointer;
  padding: 8px 24px;
  border-radius: 8px;
  font-weight: 600;
  user-select: none;
  display: flex;
  align-items: center;
}
.tabs .tab.active {
  background-color: #24262b;
  color: #fff0e1;
}
.tabs button {
  margin-left: auto;
  width: max-content;
  border: 2px solid #24262b;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.tabs button:hover {
  background-color: #24262b;
  color: #fff0e1;
}
.tabs .btn {
  margin-left: auto;
  width: max-content;
}
.input,
input {
  display: flex;
  flex-direction: column;
  gap: 8px;
  outline-color: #ee8144;
}
.input .label,
input .label {
  font-size: 12px;
  color: #24262b;
  font-weight: 600;
}
.input:focus-visible,
input:focus-visible,
.input:focus,
input:focus {
  border-color: #ee8144;
  outline-color: #ee8144;
}
input,
select {
  background-color: transparent;
  border: 2px solid #24262b;
  border-radius: 8px;
  padding: 12px;
  color: #24262b;
  font-size: 16px;
  font-weight: 300;
  width: 100%;
  padding: 12px 16px;
}
input::placeholder,
select::placeholder {
  color: rgba(36, 38, 43, 0.5);
}
#id_state {
  display: flex;
  gap: 16px;
  padding: 4px 0 0;
}
#id_state label {
  background-color: #24262b;
  position: relative;
  cursor: pointer;
  user-select: none;
}
#id_state label input {
  display: none;
}
#id_state label:has(input:checked) {
  background-color: #ee8144;
  color: #24262b;
}
fieldset {
  border: none;
}
.alert {
  --scale: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translate(-50%, 0) scale(var(--scale));
  z-index: 99;
  background-color: #ee8144;
}
main {
  background-color: #fff0e1;
  border-radius: 8px;
  padding: 24px;
  overflow-y: auto;
}
.sidebar {
  background-color: #24262b;
  color: #fff0e1;
  padding: 16px;
  height: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  position: fixed;
  left: 16px;
  top: 16px;
  width: max-content;
  max-width: 80px;
}
.sidebar:hover {
  max-width: 100vw;
}
.sidebar:hover li a,
.sidebar:hover form#logout button {
  grid-template-columns: 48px 1fr;
}
.sidebar:hover .user-name {
  opacity: 1;
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 8px;
  overflow: hidden;
}
.sidebar-header img {
  height: 40px;
}
.sidebar-header .text {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  gap: 4px;
}
.sidebar-header .text h1 {
  font-size: 18px;
  color: #ee8144;
  font-family: 'Unbounded', sans-serif;
}
.sidebar-header .text p {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.sidebar-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-nav li {
  transition: all 0.3s ease !important;
  border-radius: 8px;
}
.sidebar-nav li span {
  display: block;
  overflow: hidden;
}
.sidebar-nav li a {
  display: grid;
  grid-template-columns: 48px 0;
  height: 48px;
  width: 100%;
  align-items: center;
  gap: 8px;
}
.sidebar-nav li svg {
  fill: #fff0e1;
  transition: all 0.3s ease !important;
  height: 100%;
  width: 100%;
  padding: 8px;
}
.sidebar-nav li.active,
.sidebar-nav li:hover {
  color: #ee8144;
}
.sidebar-nav li.active svg,
.sidebar-nav li:hover svg {
  fill: #ee8144;
}
.sidebar-footer .user {
  display: flex;
  gap: 8px;
  align-items: center;
}
.sidebar-footer .user img {
  border-radius: 100vmax;
  height: 48px;
  width: 48px;
  border: 3px solid #ee8144;
}
.sidebar-footer .user-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  padding: 8px;
}
.sidebar-footer .user-name * {
  line-height: 1;
}
.sidebar-footer .user-name .first {
  font-size: 12px;
  font-weight: 300;
}
.sidebar-footer .user-name .last {
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 700;
}
.sidebar-footer .logout-button {
  border-radius: 8px;
  background-color: rgba(255, 240, 225, 0.04);
  border: 1px solid rgba(255, 240, 225, 0.2);
  width: 100%;
  padding: 12px 0;
  margin-top: 16px;
  color: #fff0e1;
}
.sidebar form#logout button {
  display: grid;
  grid-template-columns: 48px 0;
  padding: 8px;
}
.sidebar form#logout button img {
  height: 48px;
  aspect-ratio: 1;
  padding: 8px;
}
.sidebar form#logout button span {
  overflow: hidden;
}
.form-container {
  margin: 0 auto;
  max-width: 720px;
  padding: 24px;
}
.form-container h1 {
  margin-bottom: 32px;
  font-size: 24px;
  font-weight: 600;
}
.form-container .form-section {
  margin-bottom: 32px;
  background: #fff0e1;
  border-radius: 8px;
}
.form-container .form-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #24262b;
}
.form-container .form-section .form-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-container .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #24262b;
}
.form-container .checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #ee8144;
}
.form-container form {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  margin: 16px auto 0;
  gap: 16px;
}
.form-container .button-group {
  display: flex;
  gap: 8px;
}
.form-container .button-group > * {
  width: 100%;
}
.container {
  height: 100%;
  width: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
}
.container img {
  width: 80px;
}
.container form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  width: 35vw;
}
.container form .login-link {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
}
.container form .login-link a {
  color: #ee8144;
  font-weight: 600;
  text-decoration: underline;
}
.container .error-message {
  margin-top: 16px;
  color: #b13838;
  font-size: 14px;
  text-align: center;
}
.action-button {
  position: fixed;
  bottom: 40px;
  right: 40px;
}
.action-button .icon {
  width: 56px;
  height: 56px;
  background-color: #24262b;
  border-radius: 100vmax;
  display: grid;
  place-content: center;
  color: #fff0e1;
  font-size: 32px;
  transition: all 0.2s ease;
  cursor: pointer;
  transition: all 0.4s ease;
}
.action-button .icon:hover {
  transform: scale(1.2) rotateZ(180deg);
}
.action-button ul {
  opacity: 0;
  position: absolute;
  bottom: 100%;
  right: 0;
  pointer-events: none;
  width: max-content;
  transition: all 0.4s ease;
  background-color: #24262b;
  color: #fff0e1;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}
.action-button ul a {
  padding: 12px 24px;
  border-radius: 8px;
  width: 100%;
}
.action-button ul a:hover {
  background-color: rgba(255, 240, 225, 0.1);
}
.action-button.active .icon {
  transform: scale(1.2) rotateZ(180deg);
}
.action-button.active ul {
  opacity: 1;
  bottom: calc(100% + 16px);
  pointer-events: all;
}
