/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
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;
}

.Backdrop {
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  inset: 0;
  transition: opacity 240ms ease-in-out, visibility 240ms ease-in-out;
  /* iOS Safari specific fixes */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Ensure it covers the entire viewport */
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
}

.Backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.Balance {
  width: 100%;
  text-align: center;
  margin-bottom: 1.4em;
}

@media all and (max-width: 640px) {
  .Balance {
    margin-top: 2.4em;
    flex-direction: column;
    gap: 0;
  }
}
.Button {
  text-decoration: none;
  background: var(--brand);
  color: var(--white);
  padding: 0.6em 0.8em;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: normal;
}
.Button:hover {
  background: var(--brand-dark);
}
.Button.is-tertiary {
  background: none;
  color: var(--dark);
  border: none;
  text-decoration: underline;
}
.Button.is-wide {
  width: 100%;
}
.Button.is-small {
  padding: 0.4em 0.6em;
  font-size: 0.8em;
}
.Button.is-scary {
  background: var(--red);
}
.Button.is-submit {
  margin: 0 0 1em;
}

.Form {
  display: flex;
  gap: 1em;
  flex-direction: column;
  background: var(--white);
  padding: 0.8em;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.Form__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.Form label {
  display: block;
  font-weight: 500;
  font-size: 0.8em;
  margin: 0 0 0.4em;
}

.Form__actions {
  display: flex;
  gap: 0.4em;
  flex-direction: column;
}
.Form__actions .Button {
  flex: 3;
}
.Form__actions .Button.is-scary {
  flex: 1;
}

@media all and (max-width: 640px) {
  .Form__actions {
    flex-direction: row;
  }
}
.Input {
  width: 100%;
}

input[type=text],
textarea,
input[type=number],
input[type=datetime-local],
input[type=date] {
  font-size: 1em;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  padding: 0.6em 0.8em;
  border: none;
  border-radius: var(--border-radius);
  display: flex;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
}

textarea {
  resize: none;
  min-height: 80px;
}

textarea:focus,
input:focus {
  outline: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.RadioGroup {
  display: flex;
  flex-direction: row;
  gap: 0.2em;
}

.RadioOption {
  width: 100%;
  text-align: center;
  cursor: pointer;
  padding: 0.4em 0.6em;
  border-radius: var(--border-radius);
  border: 1px solid #ccc;
  transition: background-color 0.2s ease;
  user-select: none;
}

.RadioOption:hover {
  background: #f8f8f8;
}

.RadioOption input[type=radio] {
  width: auto;
  margin: 0;
  cursor: pointer;
  display: none;
}

.RadioOption label {
  margin: 0;
  cursor: pointer;
  font-weight: normal;
  font-size: 1em;
  flex: 1;
}

.RadioOption:has(input[type=radio]:checked) {
  background: #e0e0e0;
}

.Date {
  margin-top: 0.4em;
}

.Money.is-visible {
  opacity: 1;
  visibility: visible;
  bottom: 0;
}

.Money {
  position: fixed;
  bottom: -800px;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: bottom 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  max-width: 800px;
  box-sizing: border-box;
  z-index: 100;
}

.Footer {
  position: fixed;
  bottom: 0;
  padding: 1em;
  width: 100%;
  left: 0;
  right: 0;
}

.Add {
  position: fixed;
  bottom: 0.8em;
  right: 0.8em;
  z-index: 100;
}

.Add .Button {
  display: flex;
  width: 1.4em;
  height: 1.4em;
  padding: 1.2em;
  justify-content: center;
  font-size: 1.6em;
  font-weight: normal;
  align-items: center;
  border-radius: 50%;
}

@media all and (max-width: 640px) {
  .Footer {
    background: var(--white);
    border-top: 1px solid var(--gray);
  }
  .Money.is-visible .Form {
    left: 0;
    right: 0;
    width: 100%;
  }
  .Footer .Button {
    width: 100%;
  }
}
.Navigation {
  display: flex;
  width: 100%;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray);
  flex-direction: row;
  align-items: center;
  padding: 0.8em;
}

.Navigation__title {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.Navigation__items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4em;
}

@media all and (max-width: 640px) {
  .Navigation {
    display: none;
  }
}
.Spinner {
  display: none;
  border-top: 2px solid var(--gray);
  border-right: 2px solid var(--gray);
  border-bottom: 2px solid var(--gray);
  border-left: 2px solid var(--black);
  animation: spinner 0.8s infinite linear;
}

.Spinner.is-visible {
  display: block;
}

.Spinner,
.Spinner:after {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.Transactions {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.Transactions__content {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.Transaction__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4em;
}

.Transactions__day {
  font-size: 0.8em;
  font-weight: bold;
}

.Transaction__name {
  opacity: 0.5;
}

.Transaction__date {
  background: var(--light-gray);
  border-radius: var(--border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1.4em;
  height: 1.4em;
  font-size: 0.7em;
}

.Transaction__amount {
  position: absolute;
  top: 1em;
  right: 1em;
  font-weight: bold;
}

.Transactions__list {
  display: flex;
  width: 100%;
  flex-direction: column;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.Transaction {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--gray);
  cursor: pointer;
  user-select: none;
}

.Transaction:last-child {
  border-bottom: none;
}

.Transaction:hover {
  background: rgba(255, 255, 255, 0.1);
}

.Transaction.is-selected {
  background: rgba(0, 0, 0, 0.05);
}

.Transaction.is-open .Transactions__itemOptions {
  display: flex;
}

.Transactions__itemOptions {
  display: none;
  flex-direction: row;
  justify-content: flex-start;
  background: rgba(0, 0, 0, 0.1);
  width: 100%;
  padding: 0.8em;
  gap: 0.4em;
}

.Transactions__itemMeta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.4em;
}

.Transactions__itemInfo {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: space-between;
  padding: 0.8em;
}

@media all and (max-width: 640px) {
  .Transactions__itemOptions .Button:first-child {
    flex: 1;
  }
  .Transactions__itemInfo {
    flex-direction: column;
    gap: 0.4em;
  }
  .Transactions__itemMeta {
    flex-direction: column;
    gap: 0em;
  }
}
* {
  box-sizing: border-box;
}

:root {
  --brand: #673AB7;
  --brand-dark: #512DA8;
  --white: #FFFFFF;
  --black: #000000;
  --dark: #111111;
  --gray: #CCCCCC;
  --light-gray: #F0F0F0;
  --red: #FF2B2B;
  --text: var(--black);
  --background: var(--white);
  --active: var(--white);
  --hover: var(--white);
  --border-radius: 4px;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-size: 1.4em;
  line-height: 1.45;
  font-weight: normal;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background: var(--background);
}

a {
  color: var(--text);
}

strong {
  font-weight: bold;
}

h1 {
  font-weight: bold;
}

h2 {
  font-weight: bold;
}

.Content {
  width: 800px;
  margin: 1em auto;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.Content.is-centered {
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
  gap: 1em;
}

body.prevent-scroll {
  overflow: hidden;
}

@media all and (max-width: 640px) {
  body {
    font-size: 1.2em;
  }
  .Content {
    width: 100%;
    padding: 0 1em;
  }
}

/*# sourceMappingURL=style.css.map */
