

::selection {
    color: rgb(252, 252, 252);
    background: #398a71;
}
/* .form-control:-webkit-autofill{
  background-color: #59b99b !important;
} */
body {
  font-family: 'Poppins', sans-serif;
  background-attachment: fixed;
  height: 100%;
  /* background-image: linear-gradient(120deg, #dbdbdb, #f7f7f7); */
}
#tab-rows {
  transform: scaleY(0.6);
  opacity: 0;
  animation: appearRows 0.4s forwards .1s;
}
@keyframes appearRows {
  to {

    transform: scaleY(1);
    opacity: 1;
  }
}
/* #tab-rows.htmx-swapping {
  transform: scaleY(0);
  transition: transform ease-in 0.5s;
} */
.bg-dark, .nav-link.dropdown-toggle {
  background-color: #070b0c !important
}

.btn-success {
  background-color: #398a71;
  border-color: #398a71;
}

.btn-success:hover {
  background-color: #44a083;
  border-color: #44a083;
}

.nav-link, .dropdown-menu .dropdown-item {
  transition: 0.1s;
  color: rgb(255, 255, 255, 0.8) !important;
}
a {
  cursor: pointer;
}
.nav-link:hover, .dropdown-item:hover {
  color: #398a71 !important;
  font-weight: 800 !important;
}

.dropdown-item.active, .dropdown-item:active {
  color: #398a71 !important;
  background-color: transparent !important;
}

.content {
  background-color: #fcfcfc;
  position: relative;
  z-index: 4;
  box-shadow: 0 0 10px 10px #ececec;
  /* background-color: #242424;color: white; */
}

.navbar-dark .navbar-text a {
  color: #fff;
  background-color: black;
  
}
nav{
  z-index: 10;
}
nav a {
  font-size: small;
  font-weight: 550;
}

.dropdown-menu {
  left: -4rem;
}

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

.card {
  border-radius: 10px;
  margin: 10px 10px;
  background-color: #fcfcfc;
  
}
.cart-detail {
  margin-top: 3rem;
  transform: scaleY(0);
  animation: rollY .5s forwards;
  /* border: none; */
  box-shadow: 0 0 10px 5px #ececec;
}
.card-login {
  z-index: 0;
  margin-top: 3em;
  transform: translateY(-700px);
  animation: slideDown .6s forwards;
}
.card-line {
  transform: scaleX(0);
  animation: rollX .6s ease-in-out 0.3s forwards;
}
.flex-card {
  display: flex;
  flex-direction: row;
}

a {
  margin-top: 5px;
  margin-bottom: 5px;
  margin-right: 2px;
}

.btn-primary {
  border-left: black;
}
.arrow-sort {
  color: #398a71;
  
}
.remit-form {
  width: 90%;
  max-width: 700px;
  transform: scaleY(0);
  animation: rollY .4s forwards;
}
.card-login {
  width: 90%;
  max-width: 700px;
}
.arrow-sort:hover, .arrow-sort:hover > .arrow {
  color: #51c9a3;
  border-color: #51c9a3;
}
.arrow-sort, .arrow-sort:active, .arrow-sort:focus {
  outline: none;
  background: none;
  border: none;
}
.card-text {
  font-size: 14px;
  color: #4e4e4e;
}

.table-container {
  width: 95%;
  margin: 2rem auto;
  overflow-x: auto;
  transition: 1s;
  opacity: 0;
  transform: translateY(200px) scaleY(0.3);
  animation: popIn .6s forwards;
  border-radius: 1rem;
  max-height: 500px;
  padding: 0;
}
/* thead {
  display: block;
  width: 90%;
}
thead tr {
  display: flex;
}
tbody {
  display: block;
  max-height: 600px;
  overflow-y: auto;
} */


@keyframes popIn {
  to {
    transform: translateY(0) scaleY(1);
    opacity: 1;

  }
}
@keyframes slideDown {
  to {
    transform: translateY(0);
  }
}
@keyframes rollY {
  to {
    transform: scaleY(1);
  }
}
@keyframes rollX {
  to {
    transform: scaleX(1);
  }
}
.form-control[readonly] {
  background-color: #f5f5f5 !important;
}
.form-control:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}
table {
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid #e4e4e4;
  border-radius: 1rem;
  transition: 0.1s;
  /* table-layout: fixed; */
}
/* table tr:first-child {
  border-top: none;
} */

/* th {
  position: sticky;
  top: 0;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
} */

tbody tr {
  transition: .1s;
  height: 55px;
}
tbody tr:hover {
  background-color: #daf0e8 !important;
  /* border: 1px solid rgb(36, 36, 36);
  box-shadow: 0 0 10px 5px #ececec; */
}

table td {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 900px;
}

@media (max-width: 1700px) {
  table, tbody td .btn {
    font-size: 15px;
  }
  
}

@media (max-width: 1000px) {
  .ppe-list, .ppe-header,
  .ppe-list .btn.btn-success, 
  .ppe-form .btn.btn-success, 
  .ppe-form .form-control {
    font-size: small !important;
  }
}

@media (max-width: 800px) {
  table, tbody td .btn {
    font-size: 10px;
  }
  tbody tr {
    height: 45px;
  }
  .remit-form form,
  .remit-form a,
  .remit-form input,
  .remit-form .btn.btn-success,
  .ppe-label {
    font-size: small !important;
  }
  h3 {
    font-size: x-large;
  }
  h6 {
    font-size: x-large;
  }
}

.messages {
  transform: translate(400px, 400px) scale(0);
  opacity: 0;
  animation: show .4s forwards;
}
@keyframes show {
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #ffffff;

}

::-webkit-scrollbar-thumb {
  background: rgb(155, 155, 155);
  border-radius: 1em;

}

::-webkit-scrollbar-thumb:hover {
  background: rgb(131, 131, 131);

}


/* .ppe-th {
  width: 400px !important;
} */

.card-form {
  margin-bottom: 2rem;
}

/* ::-webkit-datetime-edit-month-field { color: blue !important; }
::-webkit-datetime-edit-day-field { color: green; }
::-webkit-datetime-edit-year-field { color: purple; }
::-webkit-inner-spin-button { display: none; }
::-webkit-calendar-picker-indicator { background: orange; }
::-webkit-datetime-edit-text { color: rgb(0, 255, 128); padding: 0 0.3em; }
::-webkit-datetime-edit-fields-wrapper { background: green; } */

/* input[type='datetime-local']::-webkit-datetime-edit-fields-wrapper {
  background-color: #398a71 !important;
} */
@keyframes grow {
  to {
    transform: scaleY(1) translateX(-10px);
  }
}

@keyframes schrink {
  to {
    transform: scaleY(0) ;
  }
}


.dropdown-menu {
  transform-origin: top center;
  animation: schrink .3s forwards;
}

.dropdown-menu.show {
  transform: scaleY(0) translateX(-10px);
  transform-origin: top center;
  animation: grow .3s forwards;
}


input[name="search"] {
  transition: 0.3s;
}

input[name="search"]:hover {
  letter-spacing: .3px;
}

.close-btn {
  cursor: pointer;
  position: absolute; 
  right: 10px; 
  top: 10px;
  font-size: medium;
  border: none;
  transition: 0.3s;
  background-color: transparent;
  margin-right: 5px;
  font-weight: 900;
}

.close-btn:hover {
  /* font-size: xx-large; */
  color: rgb(160, 0, 0);
}
.close-btn:active {
  outline: none;
}
.close-btn:focus {
  outline: none;
}

#add-modal {
  width: 100%; 
  height: 100%; 
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  animation: appear .7s forwards;
}

.create-form-addfid {
  width: 90%;
  max-width: 600px;
  transform: translateY(500px);
  animation: appearInner .5s forwards;
}

@keyframes appearInner {
  to {
    transform: translateY(0);

  }
}

@keyframes appear {
  to {
    background-color: rgba(0, 0, 0, 0.4);

  }
}

.ppe-list, .ppe-header {
  list-style-type: none;
  border: 1px solid rgb(218, 218, 218);
  margin: 1em auto;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 5px 5px 5px rgb(238, 238, 238);
  border-radius: 10px;
  padding: 0;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  animation: slideCardIn .7s forwards;
}

.ppe-header {
  margin-bottom: 0;
  box-shadow: 0 5px 5px 5px rgb(238, 238, 238);
  transform: translateX(-300px);
}

.ppe-list {
  transform: translateX(300px);
}

.ppe-list > li, .ppe-header > li, .ppe-form {
  margin: .5em auto;
  border: 1px solid rgb(224, 224, 224);
  border-radius: 5px;
  width: 90%;
  padding: .5em 1em;
  display: grid;
  grid-template-columns: 0.4fr 1.5fr 1.2fr 0.5fr;
  text-align: center;
  align-items: center;
  justify-content: center;
  
}

.ppe-name {
  overflow-wrap: break-word;
  word-break: break-all;
  min-width: 0;
  max-width: 100%;
}

.ppe-list > li, .ppe-form {
  opacity: 0;
  transform: translateX(300px);
  animation: slideCardIn .7s forwards;
}

.ppe-header > li {
  border: none;
}

@keyframes slideCardIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}