/* No header on wide screens */
@media (min-width: 992px) {
  :root {
    --app-shell-header-offset: 0px !important;
  }
}

/* Body background color based on CSS Variable */
body {
  background-color: var(--background-color);
  color: var(--on-background);
}

/* Bigger padding for wide screens */
@media (min-width: 992px) {
  .page-container {
    padding-top: 36px;
    padding-bottom: 24px;
    width: 95%;
    margin: auto;
  }
}

/* Smaller padding for small screens */
@media (max-width: 992px) {
  .page-container {
    padding: 8px;
    width: 100%;
  }
}

/* AG Grid theme */
.ag-theme-material {
  --ag-font-family: var(--font-global) !important;
  --ag-material-accent-color: var(--primary-color) !important;
  --ag-background-color: var(--background-color) !important;
  --ag-header-background-color: rgba(0, 0, 0, 0) !important;
}
.ag-theme-material .ag-row-focus {
  background-color: rgba(224, 224, 224, 0.753) !important;
}
.ag-theme-material .ag-row-hover {
  --ag-row-hover-color: rgba(239, 239, 239, 0.655) !important;
}

/* Our CSS class for cards */
.card {
  background-color: var(--graph-card-color);
  border: 0px solid rgb(222, 222, 222);
  box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 6px;
  display: flex;
  flex-direction: column;
}

/* Used to properly set dynamic height to graphs */
.graph {
  flex-grow: 1;
}

.button-primary {
  color: white;
  /* text-white */
  font-size: 0.875rem;
  /* text-sm (14px) */
  background-color: #131313;
  /* bg-[#131313] */
  font-weight: 500;
  /* font-medium */
  border-radius: 0.375rem;
  /* rounded-md (6px) */
  padding: 0.625rem 1.25rem;
  /* px-5 (1.25rem) and py-2.5 (0.625rem) */
  margin: 0.75rem 0;
  /* my-3 (0.75rem top and bottom, 0 left and right) */
  transition: background-color 0.2s;
  /* hover effect smooth transition */
}

.button-primary:hover {
  background-color: rgba(19, 19, 19, 0.9);
}

.button-primary:disabled {
  background-color: rgba(19, 19, 19, 0.5);
}

.button-primary:disabled:hover {
  background-color: rgba(19, 19, 19, 0.5);
}

.button-outline {
  color: #131313;
  /* text-[#131313] */
  font-size: 0.875rem;
  /* text-sm (14px) */
  background-color: transparent;
  /* bg-transparent */
  font-weight: 500;
  /* font-medium */
  border: 1px solid #131313;
  /* border-2 border-[#131313] */
  border-radius: 0.375rem;
  /* rounded-md (6px) */
  padding: 0.625rem 1.25rem;
  /* px-5 (1.25rem) and py-2.5 (0.625rem) */
  margin: 0.75rem 0;
  /* my-3 (0.75rem top and bottom, 0 left and right) */
  transition: all 0.2s;
  /* hover effect smooth transition */
}

.button-outline:hover {
  background-color: #131313;
  color: white;
}

.button-outline:disabled {
  border-color: rgba(19, 19, 19, 0.5);
  color: rgba(19, 19, 19, 0.5);
}

.button-outline:disabled:hover {
  background-color: transparent;
  color: rgba(19, 19, 19, 0.5);
}

.indicator-card {
  background-color: white;
  border: 1px solid rgb(229, 231, 235); /* border-gray-200 */
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px; /* shadow-sm */
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem; /* rounded-lg */
  padding: 1rem; /* p-4 */
  gap: 0.5rem;
}
