.Loading {
  display: flex;
  font-size: xx-large;
  z-index: 1000000;
  position: absolute;
  top: calc(50% - 50px);
  left: calc(50% - 50px);
}

.LoadingBackground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000000;
}

.loader {
  transform: rotateZ(45deg);
  perspective: 1000px;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  color: #bbb;
}

.loader:before,
.loader:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  border-radius: 50%;
  transform: rotateX(70deg);
  animation: 1s spin linear infinite;
}

.loader:after {
  color: #FF3D00;
  transform: rotateY(70deg);
  animation-delay: .4s;
}

@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotateZ(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}

@keyframes rotateccw {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes spin {

  0%,
  100% {
    box-shadow: .2em 0px 0 0px currentcolor;
  }

  12% {
    box-shadow: .2em .2em 0 0 currentcolor;
  }

  25% {
    box-shadow: 0 .2em 0 0px currentcolor;
  }

  37% {
    box-shadow: -.2em .2em 0 0 currentcolor;
  }

  50% {
    box-shadow: -.2em 0 0 0 currentcolor;
  }

  62% {
    box-shadow: -.2em -.2em 0 0 currentcolor;
  }

  75% {
    box-shadow: 0px -.2em 0 0 currentcolor;
  }

  87% {
    box-shadow: .2em -.2em 0 0 currentcolor;
  }
}.lease-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
}

h2 {
    margin-bottom: 15px;
}

.lease-card {
    background: #fff;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}



.lease-card button {
    color: white;
    border: none;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px;
}

.delete-sublease-btn {
    margin-left: auto;
}

.delete-lease-btn {
    margin-left: auto;
}

.lease-header {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-items: flex-start;
    gap: 5px;
}

.lease-title {
    font-size: 18px;
    font-weight: bold;
}

.leasecontainer-header {
    display: block;
    justify-content: center;
    width: 100%;
    gap: 10px;
}

.leaseconainer-buttoncontainer {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 10px;
}

.FilterSelect{
    margin: 10px 0px;
    width: 100%;
}


.accept-lease-btn {
    background: green;
}

.accept-lease-btn:hover {
    background: rgb(1, 102, 1);
}


.reject-lease-btn {
    background: red;
}

.reject-lease-btn:hover {
    background: brown;
}

.revoke-lease-btn {
    background: red;
}

.revoke-lease-btn:hover {
    background: brown;
}

.withdraw-lease-btn {
    background: red;
}

.withdraw-lease-btn:hover {
    background: brown;
}

.sort-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px;
    flex-grow: 1;
}

.sort-btn:hover {
    background: #0056b3;
}


.lease-status {
    display: flex;
    font-size: 14px;
    gap: 5px;
    width: 100%;
    align-items: center;
    margin-bottom: 5px;
}

.requested {
    background: #FFC107;
    color: #888;
    align-content: center;
    border-radius: 5px;
    color: white;
    padding: 10px;
}

.accepted {
    background: green;
    color: #888;
    align-content: center;
    border-radius: 5px;
    color: white;
    padding: 10px;
}

.revoked {
    background: rgb(233, 16, 186);
    color: #888;
    align-content: center;
    border-radius: 5px;
    color: white;
    padding: 10px;
}

.rejected {
    background: red;
    color: #888;
    align-content: center;
    border-radius: 5px;
    color: white;
    padding: 10px;
}

.withdrawn {
    background: rgb(230, 161, 12);
    color: #888;
    align-content: center;
    border-radius: 5px;
    color: white;
    padding: 10px;
}


.lease-status :nth-child(1) {
    margin-right: auto;
}

.lease-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.sublease-container {
    margin-top: 10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.SubleaseCard {
    display: flex;
    background: #f9f9f9;
    border-radius: 5px;
    margin-top: 5px;
    gap: 5px;
    min-height: 25px;
}

.MobileSubleaseCard {
    display: block;
    background: #f9f9f9;
    border-radius: 5px;
    margin-top: 5px;
    gap: 5px;
    min-height: 25px;
    /* padding: 5px; */
}

.disabled {
    background: #f0f0f0;
    color: #888;
    align-content: center;
}


.sublease-container .sublease-info {
    margin-right: auto;
    /* margin-bottom: 5px; */
    padding: 5px;
}

.sublease-container .sublease-info span {
    align-self: center;
}

.sublease-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    align-self: center;
}

.no-data {
    text-align: center;
    padding: 10px;
    color: #888;
}

.AdminButtonContainer {
    display: flex;
    justify-content: right;
    gap: 10px;
    margin-left: auto;
}

.ButtonContainer {
    display: flex;
    gap: 10px;
}

.MobileSubleaseCard .ButtonContainer {
    margin-top: 10px;
}

.MobileSubleaseCard .ButtonContainer :first-child {
    margin-left: auto;
}

.showAllLeasesContainer {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
}

.LeaseStatusImg {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}.form-container {
  margin: auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
  align-self: flex-start;
}

input,
select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.sublease-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  padding: 5px;
  border-radius: 5px;
  margin-bottom: 5px;
}

.sublease-entry button {
  background: red;
  color: white;
  border: none;
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
}

.SubleaseForm {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.MobileSubleaseForm {
  display: block;
  gap: 5px;
  margin-top: 10px;
  margin-bottom: 10px;
  justify-items: start;
}



.sublease-form input {
  width: fit-content;
}

.sublease-form :last-child {
  margin-left: auto;
}

.submit-btn {
  /* width: 100%; */
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.submit-btn:hover {
  background: #0056b3;
}

.form-container button {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.form-container button:hover {
  background: #0056b3;
}

.FormRow {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  width: 100%;
}

.MobileFormRow {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  width: 100%;
  /* justify-content: space-between; */
}

.MobileFormRow .form-container button {
  flex-grow: 1;
}

#FormRow2 :first-child {
  margin-left: auto;
}

.ErrorDisplay {
  background-color: red;
  color: white;
  margin: 5px 0px;
  padding: 5px;
  font-weight: bolder;
  border-radius: 5px;
}.AdminPanel {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: 70%;
    width: 50%;
    justify-self: center;
}

.AdminPanelMobile {
    display: block;
    background-color: white;
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    margin-top: 0px;
    padding-top: 10px;
}

.object-menu{
    margin-left: 10px;
}

.menu-body {
    padding: 10px;
    width: 95%;
    overflow-y: scroll;
    align-self: center;
    justify-self: center;
}

.AdminPanel .menu-header {
    display: flex;
    padding: 10px;
    justify-content: space-between;
    width: 100%;
}

.AdminPanelMobile .menu-header {
    display: flex;
    padding: 10px;
    justify-content: space-between;

}

.AdminPanelMobile .menu-header :last-child{
    margin-right: 10px;

}
.category-header {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.category-header :nth-child(2) {
    margin-left: auto;
}

.category-section,
.object-section {
    margin-top: 20px;
}

.add-category,
.add-object {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

.add-category input[type="text"] {
    width: auto;
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.add-category button {
    width: fit-content;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    height: fit-content;
}

button:hover {
    background-color: #0056b3;
}

.add-object input {
    flex-grow: 1;
    /* max-width: 35%; */
}



ul {
    list-style: none;
    padding: 0;
}

li {
    padding: 8px;
    background: #f8f9fa;
    margin: 5px 0;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

li:hover {
    background: #e9ecef;
}

li button {
    background-color: red;
    padding: 4px 8px;
}

li button:hover {
    background-color: darkred;
}

.permissions-row {
    justify-content: space-between;
    display: flex;
    padding: 10px;
}

.permissions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    flex-flow: wrap;
}

.permissions-header input {
    height: fit-content;
}



/* Style for the hide/show button */
.toggle-visibility-btn {
    /* background-color: #f1f1f1; */
    border: 1px solid #ccc;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    display: inline-block;
}

/* Optional: Hide the category when the 'hidden' class is applied */
.hidden {
    display: none;
}

.delete-object-button {
    margin-left: 5px;
}

.object-info {
    display: flex;
    align-items: center;
}

.object-info :nth-child(1) {
    margin-left: auto;
}

.add-object-container-mobile {
    display: block;
}

.add-object-container {
    display: flex;
}

.add-object-container button {
    align-self: end;
    margin-left: auto;
}

.add-object-container-mobile button {
    width: 100%;
    margin-top: 10px;
}

.DeleteConfirmationContent {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: 70%;
    width: 50%;
    justify-self: center;
}

.ConfirmationButtons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    width: 100%;
}

.DeleteBtn {
    background-color: red;
    color: white;
    cursor: pointer;
}

.DeleteBtn:hover {
    background-color: darkred;
}.MenuBackground {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.24);
    justify-content: center;
    align-content: center;
    backdrop-filter: blur(6px);
    z-index: 10000;
    margin-top: 0px;
}

/* .MenuBackground{
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);

    top: 0;
    left: 0px;
  } */

.MenuWindow {
    background-color: white;
    display: grid;
    color: black;
    width: 50%;
    height: fit-content;
    max-height: 60%;
    margin: auto;
    border-radius: 10px;
    padding: 10px;
    overflow: scroll;
    scrollbar-width: none;
}

.MenuWindowHeader {
    display: flex;
    font-size: x-large;
    user-select: none;
}

.CloseMenuBtn {
    color: black;
    margin: auto;
    margin-top: 0px;
    padding-top: 10px;
    margin-right: 20px;
    margin-left: 0px;
    width: fit-content;
    font-weight: bolder;
    font-family: "Nunito", sans-serif;
    user-select: none;
}

.CloseButton {
    top: 10px;
    right: 10px;
    color: black;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
}

.CloseMenuBtn:hover {
    color: var(--notfication_red);
    cursor: pointer;
}

.MenuTitle {
    font-size: larger;
}

/* MOBILE */

.MobileMenuWindow {
    display: block;
    background-color: #fff;
    color: #000;
    width: 80%;
    height: auto;
    /* Changed from fit-content to auto */
    margin: auto;
    border-radius: 10px;
    padding: 10px;
    overflow: scroll;
    max-height: 80%;
}

.MobileCardMenuWindow {
    background-color: white;
    display: grid;
    color: black;
    height: fit-content;
    max-height: calc(100% - 80px);
    padding: 10px;
    overflow: scroll;
    scrollbar-width: none;
}

.menu-header {
    display: flex;
    padding: 10px;
}.RefreshBtn {
    position: fixed;
    width: 50px;
    margin-left: calc(50% - 25px);
    margin-right: auto;
    z-index: 1000;
    background-color: var(--headerblue);
    text-align: center;
    height: 50px;
    border-radius: 50px;
    animation: slideDown 1s forwards;
    justify-items: center;
    align-content: center;
    cursor: pointer;
    /* display: none; */
    -webkit-user-select: none;
}

/* Keyframes for sliding the div down */
@keyframes slideDown {
    from {
        top: -100%;            /* Start off-screen at the top */
    }
    to {
        top: 60px;                /* End at its original position */
    }
}

/* Transition for the image */
.RefreshBtn img {
    transition: transform .5s;
    height: 30px;
    display: flex;
    margin: auto;
}

/* Rotate the image on hover */
.RefreshBtn img:hover {
    transform: rotate(360deg);    /* Rotate the image 360 degrees */
}.LeaseResolveDialog {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: 70%;
    width: 50%;
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
}

.LeaseResolveDialogMobile {
    display: block;
    background-color: white;
    height: 100%;
    width: 100%;
    justify-self: center;
}

.MenuContainer{
    overflow-y: scroll;
    height: 85%;
}

.menu-header {
    display: flex;
    padding: 10px;
    justify-content: space-between;
    width: 95%;
}

.menu-body {
    padding: 10px;
    width: 95%;
    align-self: center;
    justify-self: center;
    overflow-y: scroll;
}

.LeaseResolveDialogItem {
    display: flex;
    justify-content: start;
    padding: 5px;
}

.LeaseResolveDialogRemoveItemButton {
    background-color: red;
    margin-left: 10px;
    width: auto;
    flex-grow: 1;
    margin-left: auto;
    margin-right: 10px;
}

.LeaseResolveDialogRemoveItemButton:hover {
    background-color: darkred !important;
}


.LeaseResolveDialogItemProblemContainer {
    display: block;
    align-items: start;
    justify-items: start;
    margin-bottom: 20px;
}

.LeaseResolveDialogItemProblem {
    padding: 10px;
    align-content: start;
    justify-items: start;
    align-content: start;
    justify-self: start;
    text-align: start;
    margin-right: 10px;
}


/* Main body container */
.LeaseResolveDialogList {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Sublease item container */
.LeaseResolveDialogItem {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Sublease text */
.LeaseResolveDialogItemText {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Problem container */
.LeaseResolveDialogItemProblemContainer {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #856404;
}

/* Individual problem block */
.LeaseResolveDialogItemProblem {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #ffeeba;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Empty state */
.LeaseResolveDialogEmpty {
    text-align: center;
    padding: 2rem;
    color: #777;
    font-style: italic;
    background-color: #f1f1f1;
    border-radius: 12px;
}

/* Optional "Item in use" status */
.LeaseResolveDialogItemText:last-child {
    margin-top: 0.5rem;
    color: #dc3545;
    /* Bootstrap danger red */
    font-weight: bold;
}

.LeaseResolveDialogTD {
    padding-bottom: 10px;
}

.LeaseResolveDialogTable {
    width: 100%;
}

.LeaseResolveDialogRow {
    box-shadow: black 1px 1px 5px -1px;
    border-radius: 5px;
    text-align: left;
    padding: 10px;
    margin-bottom: 15px;
}

.LeaseResolveDialogProblemHeader {
    font-size: larger;
    margin-bottom: 10px;
}

.LeaseResolveDialogProblem {
    margin-bottom: 10px;
    display: grid;
    width: 100%;
}

.LeaseResolveDialogBodyButtonContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    width: 100%;
    gap: 10px;
}#root {
  text-align: center;
  font-family: sans-serif;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}

.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}

.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

button {
  /* width: 100%; */
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  height: fit-content;
}

.ButtonHeader {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ButtonHeader :last-child {
  margin-left: auto;
}

.ButtonHeader :nth-child(2) {
  margin-left: auto;
}

.VersionLabel {
  display: flex;
  padding: 0px 10px;
  justify-self: end;
  text-align: end;
}

select {
  font-size: larger;
}

.form-container input {
  min-height: 1rem;
  font-size: larger;
  text-align: start;
  justify-content: start;
}

.form-group input {
  min-height: 1rem;
  min-width: -webkit-fill-available;
  font-size: larger;
  text-align: start;
  justify-content: start;
}