.container {
  width: 100%;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

.header {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  .right {
    display: block;
  }
  @media (min-width: 768px) {
    .right {
      display: none;
    }
  }
}

.loadingComponent {
  border-radius: 0.375rem;
}

.pannelLeft {
  position: relative;
  display: none;
  width: -moz-fit-content;
  width: fit-content;
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

@media (min-width: 768px) {
  .pannelLeft {
    display: block;
    width: 20%;
  }
}

.pannelLeft {
  .navLink {
    span {
      display: none;
    }
    @media (min-width: 768px) {
      span {
        display: block;
      }
    }
  }
  #buttonClose {
    display: block;
  }
  @media (min-width: 768px) {
    #buttonClose {
      display: none;
    }
  }
}

.pannelRight {
  width: 100%;
}

@media (min-width: 768px) {
  .pannelRight {
    width: 80%;
  }
}

.box {
  width: 100%;
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

@media (min-width: 768px) {
  .box {
    width: calc(100% / 3);
  }
}

.box {
  &:hover {
    --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }
}

#dashboardWidgetEvents {
  width: 100%;
}

@media (min-width: 768px) {
  #dashboardWidgetEvents {
    width: 66.666667%;
  }
}

input,
  textarea,
  select {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.button-primary {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.toast {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.relative {
  position: relative;
}

.right-1 {
  right: 0.25rem;
}

.top-1 {
  top: 0.25rem;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

.flex {
  display: flex;
}

.table {
  display: table;
}

.w-1\/3 {
  width: 33.333333%;
}

.w-fit {
  width: -moz-fit-content;
  width: fit-content;
}

.w-full {
  width: 100%;
}

.cursor-pointer {
  cursor: pointer;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-end {
  align-items: flex-end;
}

.items-center {
  align-items: center;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.border-white {
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
}

.bg-red-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}

.p-2 {
  padding: 0.5rem;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold {
  font-weight: 700;
}

.italic {
  font-style: italic;
}

.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.no-underline {
  text-decoration-line: none;
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

:root {
  --jad-budget-primary: rgb(72 202 228);
  --jad-budget-primary-10: rgba(72, 202, 228, 0.1);
  --jad-budget-primary-30: rgba(72, 202, 228, 0.3);
  --jad-budget-primary-50: rgba(72, 202, 228, 0.5);
  --rounded-md: 0.375rem;
  --bg-slate-200: rgb(226, 232, 240);
  --bg-slate-200-30: rgba(226, 232, 240, 0.9);
  --bg-slate-700: rgb(51, 65, 85);
  --bg-slate-700-30: rgba(51, 65, 85, 0.3);
  --bg-slate-700-50: rgba(51, 65, 85, 0.5);
  --transition-all: all 0.2s ease-in-out;
}

* {
  scrollbar-width: 0px;
  /* Firefox, Safari 18.2+, Chromium 121+ */
  &::-webkit-scrollbar {
    display: none;
    /* Older Safari and Chromium */
  }
}

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  font-family: Figtree, sans-serif !important;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

input,
textarea,
select {
  width: 100%;
  border: solid 1px var(--bg-slate-200);
  background-color: white;
  padding: 0.5rem;
  border-radius: 6px;
  &:disabled {
    background-color: var(--bg-slate-200);
    cursor: not-allowed;
  }
}

.bad {
  border: solid 2px red;
}

.inputContainer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  label {
    font-weight: bold;
    font-size: 0.8rem;
    color: var(--bg-slate-700);
  }
}

.checkboxContainer {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  gap: 0.5rem;
  input {
    width: -moz-fit-content;
    width: fit-content;
    border: none;
    box-shadow: none;
  }
}

label[required] {
  &:after {
    content: " *";
    color: red;
    font-weight: bold;
  }
}

a {
  display: block;
}

table {
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  margin: 1rem 0 1rem 0;
  word-break: break-all;
  th,
  td {
    padding: 0.75rem;
    text-align: left;
  }
  th {
    &:first-child {
      border-top-left-radius: var(--rounded-md);
    }
    &:last-child {
      border-top-right-radius: var(--rounded-md);
    }
  }
  thead {
    background-color: var(--jad-budget-primary);
    tr {
      border: none;
      color: white;
    }
  }
  tbody {
    background-color: white;
    tr {
      border-bottom: 1px solid var(--bg-slate-200);
      &:hover {
        background-color: var(--bg-slate-200-30);
      }
      td {
        &:hover {
          font-weight: bold;
          cursor: pointer;
          background-color: var(--bg-slate-200);
        }
      }
    }
  }
}

img {
  -o-object-fit: scale-down;
     object-fit: scale-down;
}

.img-xs {
  height: 8px;
}

.img-sm {
  height: 16px;
}

.img-md {
  height: 24px;
}

.img-lg {
  height: 48px;
}

.img-xl {
  height: 64px;
}

.img-2xl {
  height: 128px;
}

.invert {
  filter: invert(1);
}

.header {
  background-color: var(--jad-budget-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  color: white;
  .left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
}

.footer {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: var(--jad-budget-primary);
  color: white;
  a {
    color: white;
    text-decoration: none;
    position: relative;
    &:after {
      content: " ";
      position: absolute;
      width: 0;
      border-bottom: solid 1px white;
      left: 0;
      bottom: 0;
      transition: all 0.1s ease-in-out;
    }
    &:hover {
      font-weight: bold;
      &:after {
        width: 100%;
      }
    }
  }
}

.loadingComponent {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  position: absolute;
  top: 0;
  left: 0;
}

#menuMobile {
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: start;
  flex-direction: column;
  gap: 1rem;
  position: fixed;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  transition: var(--transition-all);
  .navLink {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--jad-budget-primary);
  }
  hr {
    width: 50%;
    border-color: var(--jad-budget-primary-50);
  }
}

.displayMenuMobile {
  top: 0px !important;
}

.body {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: start;
  justify-content: start;
  flex-direction: row;
  overflow: hidden;
  .pannelLeft {
    height: 100%;
    background-color: white;
    z-index: 100;
    .pannelLeftMenuContainer {
      height: 100%;
      width: 100%;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 20;
      background-color: white;
      padding: 1rem;
    }
    .addNewMenu {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: -moz-fit-content;
      width: fit-content;
      background-color: white;
      padding: 1rem;
      transition: var(--transition-all);
      z-index: -10;
    }
    #buttonClose {
      font-size: 0.5rem;
      position: absolute;
      top: 0;
      right: 0;
    }
    .navLink {
      width: 100%;
      padding: 0.5rem;
      position: relative;
      z-index: 100;
      margin: 0.25rem 0 0.25rem 0;
      display: flex;
      flex-direction: row;
      gap: 0.5rem;
      align-items: center;
      justify-content: start;
      text-decoration: none;
      color: var(--jad-budget-primary);
      cursor: pointer;
      &:after {
        content: " ";
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 6px;
        height: 100%;
        width: 0;
        background-color: var(--jad-budget-primary);
        z-index: -1;
        transition: all 0.1s ease-in-out;
      }
      &:hover {
        span {
          color: white;
        }
        &:after {
          width: 100%;
        }
      }
    }
    .menuActive {
      color: white;
      &:after {
        width: 100%;
      }
    }
  }
  .pannelRight {
    height: 100%;
    background-color: var(--jad-budget-primary-10);
  }
}

.content {
  width: 100%;
  height: 100%;
  padding: 1rem;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  &::-webkit-scrollbar {
    display: none;
    /* Older Safari and Chromium */
  }
}

.groupComponent {
  display: block;
  width: 100%;
  max-height: 100%;
  background-color: white;
  padding: 1.25rem;
  position: relative;
  overflow: auto;
  .title {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
  }
}

.popupContainer {
  position: fixed;
  top: -100vh;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  z-index: 101;
  display: flex;
  align-items: start;
  justify-content: center;
  transition: all 0.1s ease-in-out;
  overflow-y: auto;
  .box {
    border: none;
    border-radius: var(--rounded-md);
  }
}

.button-primary {
  background-color: var(--jad-budget-primary);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--rounded-md);
  transition: var(--transition-all);
  margin: 0.5rem 0.25rem;
  &:hover {
    background-color: white;
    color: var(--jad-budget-primary);
    cursor: pointer;
    * {
      color: var(--jad-budget-primary);
    }
  }
  * {
    color: white;
    text-decoration: none;
  }
}

.button-light {
  /* background-color: var(--jad-budget-primary); */
  /* color: white; */
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--rounded-md);
  transition: var(--transition-all);
  margin: 0.5rem 0.25rem;
  a {
    color: inherit;
    text-decoration: none;
  }
  &:hover {
    /* background-color: white; */
    /* color: var(--jad-budget-primary); */
    cursor: pointer;
  }
}

.layoutTab {
  width: 100%;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 0.5rem;
  margin: 1rem 0;
  .tab {
    position: relative;
    cursor: pointer;
    &:after {
      transition-property: all;
      transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
      transition-duration: 150ms;
    }
    &:after {
      content: "";
      border-bottom: solid 2px var(--jad-budget-primary);
      width: 0;
      position: absolute;
      bottom: 0;
      left: 0;
    }
    &:hover {
      &:after {
        width: 100%;
      }
    }
  }
  .tabActive {
    font-weight: bold;
    color: var(--jad-budget-primary) !important;
  }
}

.toast {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--rounded-md);
  position: fixed;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1000;
  background-color: white;
  font-size: 0.8rem;
  padding: 0 1rem;
  transition: var(--transition-all);
  border: solid 1x var(--bg-slate-200);
  overflow: hidden;
}

.widgets {
  width: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.box {
  height: auto;
  background-color: white;
  display: flex;
  align-items: start;
  justify-content: start;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--bg-slate-200);
  border-radius: 20px;
  overflow: hidden;
  .title {
    width: 100%;
    background-color: var(--jad-budget-primary);
    text-align: center;
    color: white;
    .boxTitle {
      padding-inline: 1rem;
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
  }
  .body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background-color: white;
    flex-grow: 1;
  }
}

.loginContainer {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  backdrop-filter: blur(20px);
}

.dayCellBadge {
  display: none;
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 0.6rem;
  color: white;
  padding: 10px;
  width: 0px;
  height: 0px;
  background-color: blue;
  border-radius: 100px;
  align-items: center;
  justify-content: center;
}

.displayInvoiceTitle {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 0.5rem;
  width: 100%;
  img {
    border: solid 2px var(--bg-slate-200);
    border-radius: var(--rounded-md);
    padding: 0.25rem;
  }
}

.linkContainer {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  font-size: 0.8rem;
  a {
    width: 100%;
    text-align: center;
  }
}

.badge-primary {
  font-weight: bold;
  color: var(--jad-budget-primary);
  background-color: var(--jad-budget-primary-10);
  border-radius: 6px;
  padding-inline: 0.5rem;
  padding-block: 0.25rem;
  text-align: center;
  border: solid 2px var(--jad-budget-primary-30);
}

.badge-secondary {
  font-weight: bold;
  color: var(--bg-slate-700);
  background-color: var(--bg-slate-200-30);
  border-radius: 6px;
  padding-inline: 0.5rem;
  padding-block: 0.25rem;
  text-align: center;
  border: solid 2px var(--bg-slate-700-30);
}

#totalBudget {
  background-color: var(--jad-budget-primary);
  color: white;
  font-weight: bold;
}

#invoicesFilters,
#expensesFilters,
#incomesFilters {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (min-width: 1024px) {
  .lg\:w-1\/3 {
    width: 33.333333%;
  }
}
