:root {
  interpolate-size: allow-keywords;
}

body {
  scrollbar-gutter: stable both-edges;
  font-family: "Segoe UI", sans-serif;
  background-color: #eef5ff;
  margin: 0;
  color: #333;
}

h1,
h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

p {
  margin: 0;
  padding: 0;
}

ul,
li {
  margin: 0 10px;
  padding: 0;
}

header {
  background-color: white;
  /* padding: 2em; */

  & .menu-items {
    /* gap: 10px; */
    display: flex;
    justify-content: center;
  }

  & .menu-item {
    font-size: large;
    cursor: pointer;
    padding: 1em;
  }
}

input[type="text"],
input[type="number"],
input[type="date"] {
  height: 100%;
  width: 100%;
  border: 0;
  outline: 0;
  /* padding: 0.5rem; */
  /* border: 1 solid #ccc; */
  /* border-radius: 4px; */
  /* flex: 1; */
  background-color: transparent;
  font-size: medium;
  /* border-bottom: 1px solid #ccc; */

  &:focus {
    outline: none;
  }
}

button {
  padding: 0.5rem 1rem;
  background-color: #3498db;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #2980b9;
}

.table {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tr {
  width: 100%;
  display: flex;
  flex-direction: row;
  /* border-bottom: 1px solid #ccc; */
  position: relative;
  border: 1px solid transparent;
  min-height: 33px;
}


.thead {
  /* padding: 10px 1.5rem; */
  font-size: large;

  & .tr {
    /* width: 90%; */
    justify-content: space-around;
  }
}

.tbody {
  /* background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 1.5rem;
    margin-bottom: 2rem; */

  & .tr {
    border-radius: 5px;
    /* margin: 2px; */
    /* border: 1px solid transparent; */
    /* box-shadow: 0 2px 6px rgba(0,0,0,0.2); */

    /* & .td {
          border: 1px solid transparent;

          &:hover{
            border: 1px solid rgba(0,0,0,0.1);
          }
        } */

    &:nth-child(even) {
      background-color: white;
    }

    &:nth-child(odd) {
      background-color: #eef5ff;
    }
  }
}

.border-hover {
  border: 1px solid transparent;

  &:hover {
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
}

.tr {
  &:hover {
    & .btn-delete {
      opacity: 1;
    }
  }
}

/* .th, .td {
    background-color: white;
    padding: 0;
  } */

/* .th {
    border-bottom: 1px solid #ddd;
  } */

.td {
  padding: 5px;
  flex: 1;
  /* border: 1px solid #ddd; */
  position: relative;
  /* border-left: 1px solid #ddd; */

  /* border-left: 1px solid #ECF0F1;
    border-right: 1px solid #ECF0F1; */
}

.td form input[type="text"],
.td form input[type="password"],
.td form input[type="number"],
.td form input[name="value"] {
  width: 100%;
  /* padding: 0.5rem; */
  border: 0;
  border-bottom: 1px solid #ddd;
  /* font-size: 0.95rem; */
}

.editable-div {
  height: 100%;
}

.editable-div[contenteditable="true"]:focus {
  outline: none;
}

.th-delete__container {
  display: flex;
  width: 100%;
  justify-content: center;
}

.tr-delete__container {
  display: flex;
  align-items: center;
  height: 100%;
  position: absolute;
  right: 0;
  transform: translateX(25px);
}

.btn-delete {
  opacity: 0;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  padding: 2px 4px;
  transition: opacity .25s;
}

.btn-delete:hover {
  background-color: #ce3625;
}

.bg-red {
  background-color: #e74c3c;
}

.bg-red:hover {
  background-color: #ce3625;
}

.bg-green {
  background-color: #1b8b1b;
}

.bg-green:hover {
  background-color: #177417;
}

.bg-grey {
  background-color: #a4a4a4;
}

.bg-grey:hover {
  background-color: #848484;
}

.warning {
  color: #ce3625;
}

.small {
  font-size: small;
}

#toolbar {
  position: absolute;
  display: none;
  flex-wrap: wrap;
  width: 250px;
  gap: 3px;
  transform: translate(0, -89px);
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 15px;
  padding: 10px;
  opacity: .6;
  transition: opacity .15s;

  &:hover {
    opacity: 1;
  }

  & button {
    flex: 1 0 15%;
    padding: 5px;
  }

  & img {
    width: 20px;
  }
}

.login {
  width: 100%;
  margin: auto;
  max-width: 1000px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 5px;

  & input[type="text"],
  & input[type="password"],
  & input[type="email"] {
    height: 100%;
    font-size: medium;
    width: unset;
    background: white;
    outline: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
  }
}

/* 
  #toolbar:hover {
    opacity: 1;
  } */
/* 
@media print {
  #sheets,
  #toolbar{
    display: none !important;
  }

  body .sheet, .table, .tbody, .tr, .td {
    margin: 0;
    padding: 0;
  }

  .sheet {
    max-width: 100%;
    page-break-after: always;
  }
}

@page {
    margin-left: 1.2cm;
    margin-right: 2.1cm;
    size: A4;
    size: portait;
} */

/* Card */

.card {
  display: flex;

  /* padding: 1.5rem; */
  margin-top: 2rem;
  width: 100%;

  /* &.fit {
    width: fit-content;
  }

  &.half {
    width: 50%;
  }

  &.third {
    max-width: 600px;
  } */
}

.card__inner {
  display: flex;
  flex-direction: column;
  padding: 2em;
  margin: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  max-width: 1600px;
  width: 100%;
  gap: 10px;


  h1 {
    /* overflow: hidden; */
    text-overflow: ellipsis;
  }

  &.max-600 {
    max-width: 600px;
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-footer {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 5px;
}

.options:after {
  content: '\2807';
  font-size: 25px;
}

#flash {
  position: absolute;
  width: 100%;
  border-radius: 8px 8px 0 0;
  min-height: 40px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;

  &.success {
    background-color: #35b16b;
  }

  &.error {
    background-color: #e74c3c;
  }
}

.card__content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;

  .card__child {
    border: 2px solid #eee;
    border-radius: 8px;
    flex-grow: 1;
    flex-basis: 0;
    min-width: 600px;
    position: relative;
    overflow: hidden;
  }

  .form__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    /* padding: 10px; */
    gap: 5px;
    margin: 10px;
  }

  .form-body {
    display: flex;
    flex-direction: column;

    .label {
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      border: 1px solid #eee;
      padding: 10px;
      font-size: 16px;

      .time {
        font-size: small;
        font-style: italic;
      }
    }
  }
}

.form-devider {
  border-radius: 5px;
  height: 2px;
  background: linear-gradient(to right, #eee, #aeaeae, #eee);
  margin: 20px 0px;
}


/* Container */
/* #tabs { */
  /* font-family: system-ui, sans-serif;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  overflow: hidden; */
  /* background: #1b1818; */
/* } */

/* Tab list */
/* .tab-list {
  display: flex;
  border-bottom: 1px solid #e2e2e2;
  background: #f7f7f7;
} */

/* Tab buttons */
/* .tab-list button {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  border-right: 1px solid #e2e2e2;
  /* transition: background 0.2s ease, color 0.2s ease; */
/*} */

/* .tab-list button:last-child {
  border-right: none;
} */

/* Hover */
/* .tab-list button:hover {
  background: #ececec;
  color: #333;
} */

/* Selected tab */
/* .tab-list button.selected,
.tab-list button[aria-selected="true"] {
  background: #fff;
  color: #000;
  font-weight: 600;
  border-bottom: 2px solid #0077ff;
} */

/* Tab content area */
/* .tab-content {
  padding: 20px;
  /* animation: fadeIn 0.2s ease-in; */
/* }

/* Fade-in animation for content */
/* @keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
} */

details {
  /* margin: 0; */
  /* background: red; */
  border: 1px solid #e2e2e2;
  padding: 1rem;
  overflow: hidden;
}

details>div {
  padding-block: 1rem;
}

details::details-content {
  block-size: 0;

  transition: block-size .4s, content-visibility .4s;
  transition-behavior: allow-discrete;
}

details[open]::details-content {
  block-size: auto;
}

summary {
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  /* margin-inline-start: 1rem;
  list-style-position: inside; */
}

.slide-in-out {
  animation: slideInOut 5s ease forwards;
  /* 6s = 1s in + 4s stay + 1s out (adjust as you like) */
}

@keyframes slideInOut {
  0% {
    transform: translateY(-100%);
  }

  10% {
    transform: translateY(0);
  }

  90% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}