body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  background-color: #f0f2f5;
  color: #333;
  margin: 0;
  padding: 2em;
  font-size: 1.1em;
}

.model-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2em;
  overflow: hidden; /* To contain the border-radius */
}

table {
  width: 100%;
  border-collapse: collapse;
}

.model-header {
  display: flex;
  align-items: center;
  padding: 1em 1.5em;
  background-color: #f7f7f7;
  border-bottom: 1px solid #e0e0e0;
}

.model-header img {
  width: 32px;
  margin-right: 1em;
}

.model-header .model-name {
  font-size: 1.5em;
  font-weight: 600;
}

th.header {
  background-color: #fafafa;
  font-weight: 600;
  text-align: left;
  padding: 1em 1.5em;
}

td {
  padding: 1em 1.5em;
  border-top: 1px solid #e0e0e0;
  text-align: left;
}

td.date,
td.slot,
td.status {
  width: 100px;
  vertical-align: middle;
}

td.progress {
  padding-top: 14px;
}

div.progress_wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

div.progress_component {
  position: relative;
  width: 120px;
  padding: 0.5em 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9em;
  overflow: hidden;
  color: #333;
  background-color: #e9ecef;
}

div.progress_component::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress_percent, 0%);
  background-color: lightgreen;
  transition: width 0.3s ease-in-out;
  z-index: 0;
}

.progress-text {
    position: relative;
    z-index: 1;
    color: #333;
}

div.row_break {
  flex-basis: 100%;
  height: 0;
}

/* Style for --progress_float calculation */
div.progress_component {
  --progress_percent: calc(100% * var(--progress_float, 0));
}
