body {
  background-color: rgba(225, 223, 221, 0.2);
  min-height: 611px;
  margin: 0;
}

.ms-Nav {
  background-color: white;
}

/* Assign grid instructions to our parent grid container */
.grid-container {
  display: grid;
  grid-template-columns: 20% 80%;
  grid-template-rows: 54px 1fr 45px;
  grid-template-areas: "header header" "sidenav main" "footer footer";
  height: 100vh;
}

/* Give every child element its grid name */
.header {
  grid-area: header;
  background-color: #fff;
  padding: 6px 0px 6px 10px;
  display: flex;
}

.logo {
  height: 44px;
}

.sidenav {
  grid-area: sidenav;
  background-color: #fff;
  padding: 25px;
}

.sidenav > div:nth-child(2) {
  margin-top: -370px;
  height: 100vh;
  padding-top: 370px;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.main {
  grid-area: main;
  background-color: #faf9f8;
  padding-left: 40px;
  padding-right: 32px;
  /*max-width: calc(100vw - 400px);
    max-height: calc(100vh - 100px);*/
  max-width: auto;
  max-height: auto;
  overflow: auto;
}

.footer {
  grid-area: footer;
  background-color: #f3f2f1;
  padding: 12px 20px;
}

.title {
  padding: 0px 14px 0px 14px;
  color: #737373;
  margin: 6px 0px 6px 10px;
  border-left: 1px solid darkgray;
  width: 220px;
}

.page-title {
  padding: 52px 0px;
}

.card {
  background: #fff;
  padding: 28px;
  margin-bottom: 28px;
  border-radius: 2px;
  background-clip: padding-box;
}

.platform_picker {
  padding: 0;
  grid-gap: 12px 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  margin-bottom: 25px;
}

.platform_picker > span {
  display: block;
}

.platform_item {
  width: 100%;
  min-width: 100%;
  height: 40px;
  padding: 8px;
  border: 1px solid #d2d0ce;
  font-size: 12px;
  outline: transparent;
  position: relative;
}

.platform_item .ms-Icon {
  color: #b4b3b1;
}

.ms-Shimmer-container {
  margin: 10px 0;
}

.shiny-notification {
  position: fixed;
  top: 0;
  left: calc(50%);
}

/*MPN Modal CSS code*/
.modal {
  display: block;
  /* Ensure it's displayed as a block element */
  position: fixed;
  /* Ensure it overlays the page content */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  width: 90%;
  /* Maximum width of the modal relative to the viewport */
  max-width: 800px;
  /* Absolute max width */
  overflow: auto;
  /* Allow scrolling for the modal content */
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  padding: 20px;
  /* Add padding for content */
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

.shiny-modal {
  overflow: hidden;
  /* Prevent overflow of modal itself */
  position: relative;
  max-height: 80vh;
  /* Limit height to avoid overflow */
}

.modal-body table.dataTable th:first-child,
.modal-body table.dataTable td:first-child {
  padding: 2px;
  /* Reduce padding for serial numbers */
  text-align: center;
  /* Center-align serial numbers */
  width: 10px;
  /* Set a fixed width for consistency */
  white-space: nowrap;
  /* Prevent wrapping */
}

.modal-body table.dataTable {
  table-layout: fixed;
  /* Fixed layout for better control */
  word-wrap: break-word;
  /* Enable word wrap */
  width: 100%;
  /* Ensure table takes full width */
}

.modal-body table.dataTable th,
.modal-body table.dataTable td {
  padding: 8px;
  /* Add padding for readability */
  text-align: left;
  /* Align text to the left for better readability */
  white-space: normal;
  /* Allow text to wrap */
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 10px;
  /* Add padding for better spacing */
}

.modal-content {
  display: flex;
  flex-direction: column;
  max-height: calc(80vh - 40px);
}

.modal-footer {
  position: sticky;
  bottom: 0;
  background-color: white;
  padding: 10px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  /* Align buttons to the right */
  gap: 10px;
  /* Add space between buttons */
}

.modal-footer .btn {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  border: none;
  transition: background-color 0.3s, color 0.3s;
}

.modal-footer .btn-primary {
  background-color: #007bff;
  color: white;
}

.modal-footer .btn-secondary {
  background-color: #6c757d;
  color: white;
}

.modal-footer .btn:hover {
  background-color: #0056b3;
  color: white;
}

#userPref {
  background-color: #faf9f8;
  width: 100%;
  height: 100%;
  position: fixed;
  padding-left: 40px;
  padding-right: 32px;
  z-index: 997;
}

#permission_denied {
  background-color: #faf9f8;
  width: 100%;
  height: 100%;
  position: fixed;
  padding-left: 40px;
  padding-right: 32px;
  z-index: 998;
}
