:root {
  --hw-active-bg-color: #F3F4F6;
  --hw-border-color: #D1D5DB;
  --hw-group-color: #57595C;
  --hw-group-bg-color: #FFFFFF;
  --hw-invalid-color: #EF4444;
  --hw-dialog-label-color: #1D1D1D;
  --hw-focus-color: #2563EB;
  --hw-option-bg-color: #FFFFFF;

  --hw-border-radius: 0.375rem;
  --hw-border-width--slim: 1px;
  --hw-border-width--thick: 2px;

  --hw-combobox-width: 10rem;
  --hw-combobox-width--multiple: 30rem;

  --hw-dialog-font-size: 1.25rem;
  --hw-dialog-input-height: 2.5rem;
  --hw-dialog-label-alignment: center;
  --hw-dialog-label-padding: 0.5rem 0 0.375rem;
  --hw-dialog-label-size: 1.05rem;
  --hw-dialog-listbox-margin: 1.25rem 0 0;
  --hw-dialog-padding: 1rem 1rem 0;
  --hw-dialog-top-offset: 4rem;

  --hw-font-size: 1rem;

  --hw-handle-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  --hw-handle-image--queried: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 18 18 6M6 6l12 12'/%3E%3C/svg%3E");
  --hw-handle-offset-right: 0.375rem;
  --hw-handle-width: 1.5rem;
  --hw-handle-width--queried: 1rem;

  --hw-line-height: 1.5rem;
  --hw-line-height--multiple: 2.125rem;

  --hw-listbox-height: calc(var(--hw-line-height) * 10);
  --hw-listbox-z-index: 10;

  --hw-padding--slimmer: 0.25rem;
  --hw-padding--slim: 0.375rem;
  --hw-padding--thick: 0.75rem;

  --hw-selection-chip-font-size: 0.875rem;

  --hw-visual-viewport-height: 100vh;
}

.hw-combobox {
  border-width: 0;
  display: inline-flex;
  flex-direction: column;
  font-size: var(--hw-font-size);
  gap: var(--hw-padding--slim);
  margin: 0;
  padding: 0;
  position: relative;

  &, * {
    box-sizing: border-box;
  }
}

.hw-combobox__main__wrapper {
  border: var(--hw-border-width--slim) solid var(--hw-border-color);
  border-radius: var(--hw-border-radius);
  padding: var(--hw-padding--slim) calc(var(--hw-handle-width) + var(--hw-padding--slimmer)) var(--hw-padding--slim) var(--hw-padding--thick);
  position: relative;
  width: var(--hw-combobox-width);

  &:focus-within {
    box-shadow: 0 0 0 var(--hw-border-width--thick) var(--hw-focus-color);
  }

  &:has(.hw-combobox__input--invalid) {
    box-shadow: 0 0 0 var(--hw-border-width--thick) var(--hw-invalid-color);
  }
}

.hw-combobox__input {
  border: none;
  font-size: inherit;
  line-height: var(--hw-line-height);
  min-width: 0;
  padding: 0;
  text-overflow: ellipsis;
  width: 100%;
}

.hw-combobox__input:focus,
.hw-combobox__input:focus-visible,
.hw-combobox__input:focus-within {
  box-shadow: none;
  outline: none;
}

.hw-combobox__handle {
  height: 100%;
  position: absolute;
  right: var(--hw-handle-offset-right);
  top: 0;
  width: var(--hw-handle-width);
}

.hw-combobox__handle::before {
  background-image: var(--hw-handle-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: var(--hw-handle-width);
  bottom: 0;
  content: '';
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.hw-combobox__input[data-queried] + .hw-combobox__handle::before {
  background-image: var(--hw-handle-image--queried);
  background-size: var(--hw-handle-width--queried);
}

.hw-combobox__listbox {
  border-color: transparent;
  border-radius: var(--hw-border-radius);
  border-style: solid;
  border-width: var(--hw-border-width--slim);
  left: 0;
  line-height: var(--hw-line-height);
  list-style: none;
  margin: 0;
  max-height: var(--hw-listbox-height);
  overflow: auto;
  padding: 0;
  position: absolute;
  top: calc(100% + 0.2rem);
  width: 100%;
  z-index: var(--hw-listbox-z-index);

  &:has([role="option"]:not([hidden])) {
    border-color: var(--hw-border-color);
  }
}

.hw-combobox__group {
  display: none;
  padding: 0;
}

.hw-combobox__group__label {
  background-color: var(--hw-group-bg-color);
  color: var(--hw-group-color);
  padding: var(--hw-padding--slim);
}

.hw-combobox__group:has(.hw-combobox__option:not([hidden])) {
  display: block;
}

.hw-combobox__option {
  background-color: var(--hw-option-bg-color);
  padding: var(--hw-padding--slim) var(--hw-padding--thick);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-combobox__option--blank {
  border-bottom: var(--hw-border-width--slim) solid var(--hw-border-color);
}

.hw-combobox__option:hover,
.hw-combobox__option--navigated,
.hw-combobox__option--selected {
  background-color: var(--hw-active-bg-color);
}

.hw-combobox__dialog__wrapper {
  display: none;
  height: 100vh;
  inset-inline-start: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 100%;

  &:has([open]) {
    display: flex;
  }
}

.hw-combobox__dialog {
  border: 0;
  font-size: var(--hw-dialog-font-size);
  height: auto;
  margin: 0;
  max-height: calc(var(--hw-visual-viewport-height) - var(--hw-dialog-top-offset));
  max-width: none;
  overflow: hidden;
  padding: var(--hw-dialog-padding);
  pointer-events: auto;
  position: absolute;
  top: var(--hw-dialog-top-offset);
  width: auto;

  &[open] {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  &::backdrop {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 50%, white 50%);
  }
}

.hw-combobox__dialog__label {
  align-self: var(--hw-dialog-label-alignment);
  color: var(--hw-dialog-label-color);
  font-size: var(--hw-dialog-label-size);
  padding: var(--hw-dialog-label-padding);
}

.hw-combobox__dialog__input {
  border: var(--hw-border-width--slim) solid var(--hw-border-color);
  border-radius: var(--hw-border-radius);
  font-size: inherit;
  height: var(--hw-dialog-input-height);
  line-height: var(--hw-dialog-input-height);
  padding: var(--hw-padding--slim) var(--hw-padding--thick);
  text-overflow: ellipsis;
  width: 90%;
}

.hw-combobox__dialog__listbox {
  margin: var(--hw-dialog-listbox-margin);
  overflow: auto;
  padding: 0;
  width: 100%;

  [role="option"] {
    border-radius: var(--hw-border-radius);
    padding: var(--hw-padding--thick);
  }
}

.hw-combobox__chip {
  align-items: center;
  border: var(--hw-border-width--slim) solid var(--hw-border-color);
  border-radius: var(--hw-border-radius);
  display: flex;
  font-size: var(--hw-selection-chip-font-size);
  line-height: var(--hw-line-height);
  padding: var(--hw-padding--slimmer);
  padding-left: var(--hw-padding--slim);
}

.hw-combobox__chip__remover {
  background-image: var(--hw-handle-image--queried);
  background-size: var(--hw-handle-width--queried);
  background-repeat: no-repeat;
  margin-left: var(--hw-padding--slimmer);
  min-height: var(--hw-handle-width--queried);
  min-width: var(--hw-handle-width--queried);
}

.hw-combobox--multiple {
  .hw-combobox__main__wrapper {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--hw-padding--slimmer);
    width: var(--hw-combobox-width--multiple);

    &:has([data-hw-combobox-chip]) .hw-combobox__input::placeholder {
      color: transparent;
    }
  }

  .hw-combobox__input {
    min-width: calc(var(--hw-combobox-width) / 2);
    flex-grow: 1;
    line-height: var(--hw-line-height--multiple);
    max-width: 100%;
    width: 1rem;
  }
}

.hw_combobox__pagination__wrapper {
  background-color: var(--hw-option-bg-color);
}



@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
}

html,
:host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: Inter,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
  font-feature-settings: normal;
  font-variation-settings: normal;
}

body {
  margin: 0;
  line-height: inherit;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr:where([title]) {
  text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

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

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp,
pre {
  font-family: theme('fontFamily.mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
  font-feature-settings: theme('fontFamily.mono[1].fontFeatureSettings', normal);
  font-variation-settings: theme('fontFamily.mono[1].fontVariationSettings', normal);
  font-size: 1em; /* 4 */
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button,
select {
  text-transform: none;
}

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

:-moz-focusring {
  outline: auto;
}

:-moz-ui-invalid {
  box-shadow: none;
}

progress {
  vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

[type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

summary {
  display: list-item;
}

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

dialog {
  padding: 0;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}

button,
[role="button"] {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

*, ::after, ::before {
  border: 0 solid #e5e7eb;
  box-sizing: border-box;
}

[multiple],
[type="date"],
[type="datetime-local"],
[type="email"],
[type="month"],
[type="number"],
[type="password"],
[type="search"],
[type="tel"],
[type="text"],
[type="time"],
[type="url"],
[type="week"],
input:where(:not([type])),
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  border-color: #6b7280;
  border-radius: 0;
  border-width: 1px;
  font-size: 1rem;
  line-height: 1.5rem;
  padding: .5rem .75rem;
}
:root {
  --background-color: #ffffff;
  --color: #000000;
  --background-color-list-item: rgb(243 244 246);
  --input-background-color: white;
  --input-border-color: rgb(209 213 219);
  --input-color: black;
  --heading-color: rgb(15 23 42);
  --receipt-item-background-color: rgb(254 252 232);
  --receipt-item-heading-color: var(--heading-color);
  --table-border-color: rgb(191 219 254);
  --table-header-background-color: rgb(219 234 254);
  --table-header-color: rgb(59 130 246);
  --table-odd-row-background-color: rgb(243 244 246);
  --footer-background-color: rgb(0 0 0);
  --footer-color: rgb(255 255 255);
  --error-color: rgb(127 29 29);
  --error-border-color: rgb(252 165 165);
  --dialog-background-color: rgb(255 255 255);
  --dialog-color: rgb(0 0 0);
  --backdrop-color: rgba(0, 0, 0, 0.75);
  --shadow-color: rgba(0, 0, 0, 0.75);
  --income-background-color: rgb(219 234 254);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #000000;
    --color: #e5e7eb;
    --background-color-list-item: rgb(39 40 42);
    --input-background-color: #312e2e;
    --input-border-color: rgb(209 213 219);
    --input-color: white;
    --heading-color: rgb(100 116 139);
    --receipt-item-background-color: rgb(60, 58, 46);
    --receipt-item-heading-color: rgb(240, 238, 216);
    --table-border-color: rgb(191 219 254);
    --table-header-background-color: rgb(59 130 246);
    --table-header-color: rgb(219 234 254);
    --table-odd-row-background-color: rgb(64, 64, 66);
    --footer-background-color: rgb(255 255 255);
    --footer-color: rgb(0 0 0);
    --error-color: rgb(242, 176, 176);
    --error-border-color: rgb(244, 216, 216);
    --dialog-background-color: rgb(255 255 255);
    --dialog-color: rgb(0 0 0);
    --backdrop-color: rgba(0, 0, 0, 0.75);
    --shadow-color: rgba(255, 255, 255, 0.75);
    --income-background-color: rgb(0 51 102);
  }
}

body {
  background-color: var(--background-color);
  color: var(--color);
}

main#main-app {
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  width: 100%;

  @media (min-width: 640px) {
    max-width: 640px;
  }
  @media (min-width: 768px) {
    max-width: 768px;
  }
  @media (min-width: 1024px) {
    max-width: 1024px;
  }
  @media (min-width: 1280px) {
    max-width: 1280px;
  }
  @media (min-width: 1536px) {
    max-width: 1536px;
  }
}

.bm-list-item {
  display: flex;
  background-color: var(--background-color-list-item);
  padding: 0.75rem;
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
}

h1 {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 2rem;
  margin-bottom: 1.5rem;

  @media (min-width: 640px) {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

h2 {
  font-weight: 800;
  letter-spacing: -.025em;

  @media (min-width: 640px) {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

.flex {
  display: flex;

  &.end {
    justify-content: flex-end;
  }
  &.space {
    justify-content: space-between;
  }
}
.flex-auto {
  flex: 1 1 auto;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-wrap {
  flex-wrap: wrap;
}
.grow {
  flex-grow: 1;
}
.grid {
  display: grid;
}
.grid-cols-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gap-x-3 {
  column-gap: 0.75rem;
}
.h-3 {
  height: 0.75rem;
}
.w-3 {
  width: 0.75rem;
}
.h-4 {
  height: 1rem;
}
.w-4 {
  width: 1rem;
}
.h-6 {
  height: 1.5rem;
}
.w-6 {
  width: 1.5rem;
}
.right {
  text-align: right;
}

@media (min-width: 768px) {
  .md-flex {
    display: flex;
  }
}
.inline {
  display: inline;
}
.pb-0.5 {
  padding-bottom: 0.125rem;
}


turbo-frame#receipt form,
.receipt-item,
.income-item{
  border-radius: .25rem;
  border-width: 1px;
  margin-top: 1rem;
  width: 100%;
  border-color: rgb(254 249 195);
  background-color: var(--receipt-item-background-color);
  padding: 1rem;

  h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.75rem;
    color: var(--receipt-item-heading-color);
  }

  p.ri-total-price {
    font-weight: 700;
  }
  p:last-child {
    text-align: right;
  }

  .edit-button,
  .delete-button {
    font-size: .875rem;
    line-height: 1.25rem;
    padding: .25rem .5rem;
  }
}

dt {
  font-weight: 700;
}
dd {
  margin-left: 1rem;
  margin-bottom: .5rem;
}

ul li ul {
  margin-left: 3rem;
}

.translation_missing {
  background-color: rgb(254 202 202);
  padding: .125rem;
  color: rgb(127 29 29);
}

.chart canvas {
  margin-top: 2rem;

  canvas.bar-graph {
    min-height: 350px;
  }
}
.admin {
  table {
    margin-top: 2rem;
    table-layout: auto;
    width: 100%;

    th {
      background-color: rgb(156 163 175);
      padding: .5rem;
      text-align: left;
      text-transform: uppercase;
      color: rgb(255 255 255);
    }

    tbody td {
      padding: .5rem;
    }

    tbody tr:nth-child(odd) {
      background-color: rgb(229 231 235);
      color: black;
    }

    tbody tr:nth-child(even) {
      background-color: rgb(210 210 210);
      color: black;
    }
  }
}
#budgets-holder {
  margin-top: 1rem;

  .budget-item {
    margin-top: 1rem;
    background-color: var(--background-color-list-item);
    padding: 1rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px outset rgba(0,0,0,0.1);
    background-clip:border-box;
    padding: 1rem 1.25rem;

    h2 {
      margin-bottom: 1rem;
    }
  }
}
.add-button,
.edit-button,
.delete-button,
.back-button {
  border-radius: .25rem;
  padding: .5rem;
  color: white;
  margin: 0.25rem;

  &.smaller {
    font-size: .875rem;
    line-height: 1.5rem;
    padding: .25rem .5rem;
  }

  &.smallest {
    font-size: .75rem;
    line-height: 1rem;
    padding: .25rem .35rem;
  }
  &.blended {
    background-color: rgb(150 150 150) !important;
  }

  svg {
    width: 1.5rem;
    height: 1.5rem;
    padding-bottom: 0.125rem;
    display: inline;
  }
}

.add-button {
  background-color: rgb(34 197 94);
  &:hover {
    background-color: rgb(34 197 94) !important;
  }
}

.edit-button {
  background-color: rgb(59 130 246);
  &:hover {
    background-color: rgb(59 130 246) !important;
  }
}

.delete-button {
  background-color: rgb(239 68 68);
  &:hover {
    background-color: rgb(239 68 68) !important;
  }
}

.back-button {
  background-color: rgb(107 114 128);
  &:hover {
    background-color: rgb(107 114 128) !important;
  }
}
dialog {
  margin: 10% auto;
  width: 90%;
  max-width: 50rem;
  background-color: var(--dialog-background-color);
  color: var(--dialog-color);
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 1rem;

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;

    h2 {
      font-size: 1.5rem;
    }

    button {
      background-color: transparent;
      border: 0;
      font-size: 1.25rem;
      border: none;
    }
  }
  footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
  }
}
::backdrop {
  background-color: var(--backdrop-color);
  opacity: 0.75;
}
footer#page_footer {
  display: flex;
  gap: 3rem;
  margin-top: 20rem;
  background-color: var(--footer-background-color);
  padding: 3rem;
  color: var(--footer-color);

  a:hover {
    text-decoration: underline;
  }

  svg {
    stroke: var(--footer-color);
    fill: var(--footer-color);
  }
}
textarea,
input[type=text],
input[type=email],
input[type=password],
input[type=url],
input[type=date],
input[type="datetime-local"],
input[type=number],
input[type=search],
select,
select[multiple] {
  appearance: none;
  background-color: var(--input-background-color);
  border-color: var(--input-border-color);
  color: var(--input-color);
  border-radius: 5px;
  border-width: 1px;
  font-size: 1rem;
  line-height: 1.5rem;
  padding: .5rem .75rem;
}
select {
  background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor' class='size-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E" );
  background-position: right .5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  print-color-adjust: exact;
  padding-right: 2.5rem;
}
@media (min-width: 640px) {
  textarea,
  input:not([type=date]):not([type="submit"]):not([type="search"]) {
    width: 24rem;
  }
}
input[type="search"] {
  width: 100%;
}

span.field_with_errors > label {
  color: var(--error-color);
}

span.field_with_errors> :is(input, textarea, select) {
  border-color: var(--error-border-color);
  color: var(--error-color);
}

span.field_with_errors> :is(input, textarea, select)::placeholder {
  color: var(--error-border-color);
}

p.form-error-message {
  color: var(--error-color) !important;
}

.receipt-item-form {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1280px) {
  .receipt-item-form {
    flex-direction: row;
  }
}

.hw-combobox__main__wrapper {
  width: inherit;
  input {
    padding: 0;
    width: 21rem !important;
  }
}
header nav {
  border-top-width: 2px;
  border-color: rgb(96 165 250);
  box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(0,0,0,.05);

  a {
    display: block;
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: rgb(96 165 250);
    padding: .75rem 1.25rem;

    &:hover {
      color: rgb(37 99 235);
    }
  }

  &.admin {
    border-color: rgb(248 113 113);

    a {
      color: rgb(248 113 113);

      &:hover {
        color: rgb(220 38 38);
      }
    }
  }

  &::after {
    content: '';
    clear: both;
    display: table;
  }

  .toggle,
  [id^=drop] {
    display: none;
  }
  @media (hover: none) {
    .toggle + a {
      display: none;
    }
    header .toggle {
      display: block;
    }
    header [id^=drop]:checked + ul {
      display: block;
    }
    nav .menu .toggle {
      display: block;
      padding-top: 0.75rem;
      padding-bottom: 0.75rem;
      padding-left: 1.25rem;
      padding-right: 1.25rem;
    }
  }

  #logo {
    display: block;
    float: left;
    width: 20rem;
    background-color: rgb(96 165 250/1);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 2.5rem;
    padding: .5rem 1.25rem .5rem .5rem;
    color: rgb(255 255 255);

    &:after {
      display: block;
      height: 0;
      position: absolute;
      width: 0;
      content: '';
      border-right: 12px solid var(--background-color);
      border-top: 56px solid transparent;
      left: 308px;
      top: 2px;
    }

    svg {
      display: inline;
    }
  }
  @media (max-width: 650px) {
    #logo {
      width: 4rem;

      &:after {
        left: 52px;
      }

      span {
        display: none;
      }
    }
  }

  ul {
    float: right;
    margin: 0;
    padding: 0;
    position: relative;

    li {
      margin: 0;
      display: inline-block;
      float: left;

      &:hover > ul {
        display: inherit;
      }

      &.profile {
        background-color: rgb(96 165 250);
        padding-left: 1rem;

        &:before {
          position: absolute;
          content: '';
          display: block;
          width: 0;
          height: 0;
          border-right: 12px solid transparent;
          border-top: 56px solid var(--background-color);
          right: 76px;
          top: 0;
        }
      }
    }

    ul {
      display: none;
      position: absolute;
      background-color: rgb(96 165 250);
      top: 56px;
      right: 0;

      a {
        color: rgb(255 255 255);

        &:hover {
          background-color: rgb(219 234 254);
          color: rgb(96 165 250);
        }
      }

      li {
        display: list-item;
        float: none;
        position: relative;
        width: 9rem;
      }
    }
  }
}
#notices {
  position: absolute;
  right: 0;

  & > div {
    display: flex;
    padding-bottom: .75rem;
    padding-top: .75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 1rem;
    border-radius: .25rem;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    max-width: 20rem;

    &.closing {
      animation: spin-and-delete 0.7s ease-in forwards;
    }

    &.error {
      color: rgb(185 28 28);
      border: 1px solid rgb(225, 192, 192);
      background-color: rgb(254 226 226);
    }
    &.notice {
      color: rgb(21 128 61);
      border: 1px solid rgb(195, 230, 212);
      background-color: rgb(220 252 231);
    }
    &.info {
      color: rgb(142, 130, 3);
      border: 1px solid rgb(254, 249, 195);
      background-color: rgb(254 252 232);
    }
  }
}


@keyframes spin-and-delete {
  0% {
    transform: rotateY(0);
    filter: hue-rotate(0);
  }
  80% {
    transform: rotateY(360deg);
    filter: hue-rotate(180deg);
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
  }
}
nav.pagination {
  span:not(.gap) {
    border-radius: .25rem;
    border-width: 1px;
    display: inline-block;
    margin-top: .5rem;
    border-color: rgb(29 78 216);
  }

  span.current {
    background-color: rgb(29 78 216);
    padding: .375rem .75rem;
    color: rgb(255 255 255);
  }

  a {
    display: inline-block;
    padding: .375rem .75rem;
    color: rgb(59 130 246);

    &:hover {
      color: rgb(255 255 255);
      background-color: rgb(59 130 246);
    }
  }
}
.receipts {
  padding: 20px 0;
  margin-bottom: 20px;

  .receipt {
    position: absolute;
    background-color: var(--background-color-list-item);
    padding: 20px 10px;
    --mask:
      conic-gradient(from 135deg at top,#0000,#000 1deg 89deg,#0000 90deg) top/6px 51% repeat-x,
      conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/6px 51% repeat-x;
    mask: var(--mask);
    box-shadow: inset 0px 0px 17px -12px var(--shadow-color);

    h2 {
      color: var(--receipt-item-header-color);
      text-align: center;
      padding-bottom: 10px;
    }

    p {
      &.date {
	text-align: center;
      }
      &.item_name{
        padding-top: 10px;
      }
      &.total {
        font-weight: bold;
        position: relative;
        padding-top: 10px;
      }
      &.price_holder {
        position: relative;
        padding-left: 10px;
      }
      .price {
        position:absolute;
        bottom:0;
        right:0;
      }
    }

    &.income {
      background-color: var(--income-background-color);
      mask: none;
    }

    div.flex {
      padding-top: 10px;
    }
  }
}
#shops {
  .shops-list {
    .renames {
      padding: 0.5rem;

      &:has(.sortable-ghost) {
        background-color: var(--receipt-item-heading-color) !important;
	color: var(--background-color);

	.sortable-ghost {
	  display: none;
	}
      }
      tr.shop-tile {
	td:nth-child(1),
	td:nth-child(n+3) {
          display: none;
        }
      }
    }
    &:has(.sortable-chosen) {
      .renames {
        background-color: var(--receipt-item-background-color);
	border-radius: 0.5rem;
	ul:empty {
	  display: none;
	}
      }
    }

    .sortable-chosen {
      background-color: var(--receipt-item-background-color);
      ul,
      .buttons {
        display: none;
      }
    }

    .shop-tile {
      .drag {
        cursor: grab;

        svg {
          width: 1.5rem;
          height: 1.5rem;
        }
      }

      .form-holder {
        display: flex;
        flex: 1 1 auto;
        gap: 0.5rem;

        form {
          display: flex;
          flex: 1 1 auto;

          input[type="text"] {
            width: inherit;
            flex-grow: 1;
            padding-top: 0;
            padding-bottom: 0;
          }
          button {
            margin-top: 0;
            margin-bottom: 0;
            margin-right: 0;
          }
        }
      }

      .buttons {
        flex: none;
      }
    }
  }
}
#main-app table {
  border-width: 1px;
  margin-bottom: 2rem;
  margin-top: 2rem;
  table-layout: auto;
  width: 100%;
  border-color: var(--table-border-color);

  th {
    background-color: var(--table-header-background-color);
    font-weight: 400;
    padding: .5rem;
    text-align: left;
    text-transform: uppercase;
    color: var(--table-header-color);
  }

  tbody td {
    padding: .5rem;
  }

  tbody tr:nth-child(odd) {
    background-color: var(--table-odd-row-background-color);
  }
}

table {
  .add-button,
  .edit-button,
  .delete-button {
    font-size: .875rem;
    line-height: 1.25rem;
    padding-bottom: .25rem;
    padding-top: .25rem;
  }
}
.category-tag, .inventory-tag, .tag {
  padding: 0.12em 0.35em 0.12em 1em;
  border-radius: 0.2em;

  &.tag {
    clip-path: polygon(0.7em 0%, 100% 0%, 100% 100%, 0.7em 100%, 0% 50%);
    box-shadow: inset 0px 0px 17px -12px var(--shadow-color);
    mask-image: radial-gradient(circle 0.1em at 0.6em 50%, rgba(0,0,0,0) 1px, rgba(0,0,0,1) 100%);
    color: #000000;
  }
  &.inventory-tag {
    background-color: #CCC;
    color: #000;
  }

  &:not(.tag) {
    padding-left: 0.35em !important;
  }

  &.smallest {
    font-size: 0.7em;
    padding: 0.1em 0.25em 0.1em 1em;

    svg {
      width: 1em;
      height: 1em;
    }
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */

