.page-wrapper {
  height: 100%;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}

.page-container {
  margin-right: 16px;
  height: 100%;
  position: relative;
  background-color: var(--secondBackground);
  /* box-shadow: 0 2px 4px var(--secondBackgroundShadow); */
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

/* tab bar  */
.page-header {
  width: 100%;
  border-bottom: 1px solid var(--border);
  display: flex;
  height: 40px;
}

.page-header .tab {
  border: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2px;
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
  background-color: var(--secondBackground);
  color: var(--onSecondBackground);
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-header .tab.active {
  background-color: var(--tertiary);
  color: var(--onTertiary);
  border-bottom: 2px solid var(--onTertiary);
}

.page-header .tab-close {
  background-color: var(--onTertiary);
  margin-left: 8px;
  border-radius: 50%;
  display: flex;
  width: 0.9rem;
  height: 0.9rem;
  justify-content: center;
  align-items: center;
}

.page-header .tab-close svg {
  width: 0.7rem;
  height: 0.7rem;
  fill: var(--secondBackground);
  margin: auto;
}

.page-header .tab-close:hover {
  background-color: var(--onSecondBackgroundHover);
}

.page-header .tab-close:hover svg {
  fill: var(--secondBackgroundHover);
}

/* create search etc... bar  */
.action-bar {
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  background-color: var(--secondBackground);
  display: flex;
  align-items: center;
  height: 50px;
}

/* create  */
.action-bar .create {
  border: none;
  background-color: var(--primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  margin-right: 12px;
  align-items: center;
}

.action-bar .create svg {
  fill: var(--onPrimary);
  width: 20px;
  height: 20px;
  margin: auto;
}

.action-bar .create:hover {
  background-color: var(--primaryHover);
}

.action-bar .create:hover svg {
  fill: var(--onPrimaryHover);
}

/* search  */
.action-bar .search {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-right: 12px;
  position: relative;
  max-width: 200px;
  overflow: hidden;
}

.action-bar .search input {
  font-size: 0.75rem;
  padding: 4px 4px 4px 8px;
  border: none;
  font-weight: 500;
  background-color: transparent;
  width: 100%;
  color: var(--onSecondBackground);
}

.action-bar .search input::placeholder {
  color: var(--placeholder);
}

.action-bar .search input:focus-visible {
  outline: 0;
}

.action-bar .search button {
  width: auto;
  height: 100%;
  display: flex;
  border: none;
  padding: 4px;
  background-color: var(--tertiary);
}

.action-bar .search button svg {
  width: 20px;
  height: 20px;
  margin: auto;
  stroke: var(--onTertiary);
  fill: none;
}

.action-bar .search button:hover {
  background-color: var(--tertiaryHover);
}

.action-bar .search button:hover svg {
  stroke: var(--onTertiaryHover);
}

/* other-actions  */
.action-bar .other-actions .action-btn {
  border: none;
  background-color: var(--tertiary);
  width: 28px;
  height: 28px;
  display: flex;
  border-radius: 6px;
  margin-right: 12px;
}

.action-bar .other-actions .action-btn svg {
  stroke: var(--onTertiary);
  width: 20px;
  height: 20px;
  margin: auto;
}

.action-bar .other-actions .action-btn:hover {
  background-color: var(--tertiaryHover);
}

.action-bar .other-actions .action-btn:hover svg {
  stroke: var(--onTertiaryHover);
}

.filter-container {
  position: relative;
}

.action-bar .filter-menu {
  background-color: var(--secondBackground);
  border: 1px solid var(--border);
  padding: 1.5rem 1.5rem;
  position: absolute;
  top: calc(100% + 8px);
  z-index: 10;
  text-align: left;
  min-width: 400px;
  border-radius: 6px;
  font-size: 0.8rem;
  animation: slide-down 0.3s ease forwards;
}

@keyframes slide-down {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.action-bar .other-actions .filter-menu .label {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--onSecondBackground);
}

.filter-footer {
  display: flex;
  justify-content: end;
  padding: 1rem 0 0rem 0;
}

.filter-footer button {
  padding: 0.4rem 1.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0px 0rem 0px 1rem;
  text-transform: uppercase;
  -webkit-user-select: none;
  user-select: none;
}

.filter-footer .clear {
  background-color: var(--onPrimary);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.filter-footer .clear:hover {
  background-color: var(--onPrimaryHover);
  border: 1px solid var(--primaryHover);
  color: var(--primaryHover);
}

.filter-footer .filter {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: var(--onPrimary);
}

.filter-footer .filter:hover {
  background-color: var(--primaryHover);
  border: 1px solid var(--primaryHover);
  color: var(--onPrimaryHover);
}

/* Grid*/
.grid-container {
  width: 100%;
  overflow: auto;
  height: calc(100% - 90px);
  padding-bottom: 45px;
}

/* Grid  Single Line*/
.grid-sl {
  display: flex;
  flex-direction: column;
  overflow: auto;
  min-width: max-content;
  height: 100%;
}

.grid-sl .grid-head {
  display: flex;
  background-color: var(--tertiary);
  color: var(--onTertiary);
  font-size: 0.9rem;
  padding: 12px 0px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: -0.2px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.grid-sl .grid-head div {
  padding: 0px 8px;
  border-left: 1px solid var(--onTertiary);
}

.grid-sl .grid-head div:first-child {
  padding: 0px 12px;
  border-left: none;
}

.grid-sl .grid-data {
  display: flex;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--onSecondBackground);
}

.grid-sl .grid-data div {
  padding: 12px 8px;
  font-weight: 400;
  letter-spacing: -0.2px;
}
.grid-sl .grid-data .option {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.grid-sl .grid-data .option button {
  background-color: transparent;
  border: none;
}

.grid-sl .grid-data .option button svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: var(--onSecondBackground);
}

.w-sl-no {
  width: 60px;
  min-width: 60px;
  text-align: center;
}

.w-option {
  width: 150px;
  min-width: 150px;
  text-align: center;
}

/* load more  */

.load-more {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--tertiary);
  border-bottom: 2px solid var(--primary);
  border-radius: 0 0 6px 6px;
  -webkit-user-select: none;
  user-select: none;
}

.load-more button {
  background-color: transparent;
  border: none;
  color: var(--onTertiary);
  font-size: 0.9rem;
}

.load-more button svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: var(--onTertiary);
}

/* media query  */

@media (max-width: 700px) {
  .action-bar .filter-menu {
    left: calc(50% - 235px);
  }
}

@media (max-width: 450px) {
  /* .action-bar{ 
        display: block;
        height: 100px
    } */

  /* .action-bar .search{
        margin-top: 8px;
    }

    .action-bar .other-actions{
        display: inline-block;
        margin-top: 8px;
    } */

  .action-bar .filter-menu {
    right: 0;
    min-width: 300px;
  }

  /* .grid-container {
    height: calc(100% - 130px);
    padding-bottom: 50px;
  } */

  .action-bar .search {
    max-width: 160px;
  }
}

/* shimmer */

/* Add to your CSS */
.grid-shimmer-row {
  display: flex;
  position: relative;
  overflow: hidden;
  padding-top:5px;
  border: none;
}

.grid-shimmer-cell {
  position: relative;
  height: 35px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--shimmer-skeleton);
  border-left: 2px solid var(--secondBackground);
  border-right: 2px solid var(--secondBackground);
}

.shimmer {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--shimmer-highlight),
    transparent
  );
  animation: shimmer-animation 1.5s infinite;
}

@keyframes shimmer-animation {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
