.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: start;
  position: relative;
  overflow: hidden;
  padding: 20px;
  background-color: #f5f5f7;
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-out;
}

.card:hover {
  background-color: #f7f7f7;
  box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.card::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, lightgrey);
}

.card.expanded::before {
  display: none;
}

.card.dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.7);
}

.card.expanded {
  position: relative;
  height: auto;
  min-height: 300px;
  z-index: 2;
}
.card-transition {
  transition: height 0.5s ease-in-out;
}

.card-expand {
  height: auto;
}

.expand-arrow-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0%);
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background-color: #fff;
  box-shadow: inset 0 0 10px lightgrey;
}

th,
td {
  padding: 0.5rem;
  border: 1px solid #ccc;
  text-align: left;
}

th {
  font-weight: bold;
}

td {
  padding: 10px 20px;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

.product-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.product-table td:first-child {
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .product-table td {
    padding: 10px;
  }
}

@media screen and (max-width: 576px) {
  .product-table td {
    font-size: 0.8rem;
  }
}
.total-order {
  padding: 3px;
  margin: 3px 10px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: inset 0 0 10px lightgrey;
}

.expand-arrow-container {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease-in-out;
}

.expand-arrow {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #333;
  transition: transform 0.3s ease-in-out;
}

.card.expanded .expand-arrow {
  transform: rotate(180deg);
}

.order-items {
  max-height: 0;
  /* overflow: hidden; */
  overflow: auto;
  transition: max-height 0.3s ease-in-out;
}

.card.expanded .order-items {
  max-height: 500px; /* adjust this as necessary */
}

.total-color {
  color: #28a745;
  font-weight: 600;
}

.co-color {
  color: rgb(59, 113, 202);
  font-weight: 600;
}

.link-of-show {
  text-decoration: none;
  color: inherit;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.card.green {
  background-color: #0f9d58;
  color: #eafbf9; /* light color for better contrast against green */
  box-shadow: 0px 0px 20px rgba(15, 157, 88, 0.2); /* greenish shadow */
}

.card.green:hover {
  box-shadow: 0px 0px 40px rgba(15, 157, 88, 0.4); /* darker greenish shadow on hover */
}

.card.blue {
  background-color: #1769b2;
  color: #eafbf9; /* light color for better contrast against blue */
  box-shadow: 0px 0px 20px rgba(23, 105, 178, 0.2); /* blueish shadow */
}

.card.blue:hover {
  box-shadow: 0px 0px 40px rgba(23, 105, 178, 0.4); /* darker blueish shadow on hover */
}

.text-muted {
  color: inherit !important; /* force the color to follow the parent's color */
}

.card.green::before {
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.card.blue::before {
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.card-title {
  text-decoration: none;
  font-weight: 600;
  font-size: larger;
}

#loader {
  position: absolute;
  left: 50%;

  /* top: 80%; */
  /* transform: translate(-50%, -50%); */
}

.navbar-brand {
  width: 100px;
}

.logo-img {
  width: 100px;
  height: auto;
}

#revenueChart {
  height: 20rem;
  width: auto;
}

.modal-body {
  max-height: 70vh; /* You can adjust this percentage based on your preference */
  overflow-y: auto;
}

.tooltip-icon {
  font-size: 0.8em;
  vertical-align: top;
  cursor: pointer;
  margin-left: 5px;
}
/* Style for the table container to enable scrolling */
.modal-body {
  position: relative;
  overflow-y: auto;
  max-height: 70vh;
}

/* Style for the table header to make it fixed */
.table-bordered thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f7f7f7; /* A light shade of gray */
  color: #333; /* Slightly darker text for contrast */
  border-bottom: 2px solid #ddd; /* Slightly darker border for distinction */
}

.email-column {
  display: none;
}

.input-wrap {
  display: flex;
  flex-direction: column;
  height: 70px; /* Adjust this value if necessary */
}

.input-wrap label {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.input-wrap input,
.input-wrap select,
.input-wrap button {
  margin-top: auto; /* Pushes the input/select/button to the bottom */
}

.card-header {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

.card-title {
  font-size: 1.2em;
  text-decoration: none;
}

.account-manager {
  font-size: 0.9em;
  font-style: italic;
}

.card {
  transition: box-shadow 0.3s;
  cursor: pointer;
}

.card:hover {
  box-shadow: 0 0 11px rgba(33, 33, 33, 0.2);
}

/* ===== Google Sign-In Button ===== */
:root {
  --g-height: 44px;
  --g-radius: 8px;
  --g-pad-x: 16px;
  --g-bg: #fff;
  --g-text: #1f1f1f;
  --g-border: #dadce0;
  --g-focus: #1a73e8;
  --g-shadow-hover: 0 1px 2px rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --g-shadow-active: 0 1px 2px rgba(60, 64, 67, 0.2);
}

.google-btn {
  --_height: var(--g-height);
  --_radius: var(--g-radius);
  --_padx: var(--g-pad-x);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  height: var(--_height);
  padding: 0 var(--_padx);
  border: 1px solid var(--g-border);
  border-radius: var(--_radius);
  background: var(--g-bg);
  color: var(--g-text);
  text-decoration: none;

  font: 500 15px/1.1 system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans";
  letter-spacing: 0.1px;

  transition: box-shadow 0.12s ease, transform 0.08s ease,
    border-color 0.12s ease, background-color 0.12s ease;
  box-shadow: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.google-btn:hover {
  box-shadow: var(--g-shadow-hover);
  /* color: #fff; */
}

.google-btn:active {
  transform: translateY(0.5px);
  box-shadow: var(--g-shadow-active);
}

.google-btn:focus-visible {
  outline: 2px solid var(--g-focus);
  outline-offset: 2px;
}

.google-btn__logo {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.google-btn__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Block + size variants */
.google-btn--block {
  width: 100%;
}
.google-btn--sm {
  --_height: 40px;
  font-size: 14px;
}
.google-btn--lg {
  --_height: 50px;
  font-size: 16px;
}

/* Disabled / aria-disabled */
.google-btn[disabled],
.google-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Loading state via aria-busy="true" */
.google-btn[aria-busy="true"] {
  position: relative;
  pointer-events: none;
}
.google-btn[aria-busy="true"] .google-btn__label {
  opacity: 0;
}
.google-btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: gspin 0.7s linear infinite;
}
@keyframes gspin {
  to {
    transform: rotate(360deg);
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --g-bg: #121212;
    --g-text: #e3e3e3;
    --g-border: #3c4043;
    --g-shadow-hover: 0 1px 2px rgba(0, 0, 0, 0.6),
      0 1px 3px 1px rgba(0, 0, 0, 0.4);
    --g-shadow-active: 0 1px 2px rgba(0, 0, 0, 0.5);
  }
}

/* Touch: soften hover effects */
@media (hover: none) {
  .google-btn:hover {
    box-shadow: none;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: #374151;
}
.status-pill.done {
  background: #e6faee;
  border-color: #b8f3d0;
  color: #065f46;
}
.status-pill.pending {
  background: #fff6e6;
  border-color: #ffe2ac;
  color: #7a4b00;
}
