/* Grid container */
.bill-grid__items, .bill-grid__items frame {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

/* Card base */
.bill-grid__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: var(--radius, 8px);
  background: var(--color-white, #fff);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  /* local var fallback */
  --bill-accent: var(--color-cobalt);
  border-bottom: var(--radius, 2px) solid var(--bill-accent);
}

/* Thin accent bar at top using the bill color */
.bill-grid__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: var(--bill-accent);
}

/* Typography */
.bill-grid__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0.25rem 0 0.5rem;
  color: var(--color-black, #222);
}

.bill-grid__desc {
  font-size: 0.9rem;
  color: var(--color-gray, #666);
  margin: 0 0 0.5rem;
}

.bill-grid__due {
  font-size: 0.85rem;
  color: var(--color-gray-dark, #444);
  margin-bottom: 1rem;
}

/* Actions footer sticks to bottom */
.bill-grid__actions {
  margin-top: auto;
}

/* Option 2 hover behavior:
   Lift the entire card ONLY when the action button is hovered. 
   Uses :has() (Chrome/Safari/Edge). */
.bill-grid__card:has(.bill-grid__actions .button:hover) {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}


.skeleton {
  background-color: #ccc; /* Medium grey base */
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
}

.shimmer {
  background: linear-gradient(
    90deg,
    #ccc 0%,
    #e0e0e0 50%,
    #ccc 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
  height: 100%;
  width: 100%;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}