/* Fit-tab states, history, exports and dialogs. Workspace geometry is in workspace.css. */
#cf-tabbar {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  flex-wrap: nowrap;
  height: 36px;
  box-sizing: border-box;
  padding: 6px 8px 0;
  background: #cccccc;
}
.cf-tab {
  font-family: var(--cf-ui-font, "Open Sans", sans-serif);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  white-space: nowrap;
  padding: 5px 10px;
  background: #e4e4e4;
  border: 1px solid #b9b9b9;
  border-bottom: none;
  color: #616161;
  cursor: pointer;
}
.cf-tab-on {
  background: #f0f0f0;
  color: #000000;
  border-color: #444444;
}
.cf-tab-setup {
  color: #0459b7;
  background: #e4effb;
  border-color: #9cc0ea;
}
.cf-tab-setup.cf-tab-on {
  color: #ffffff;
  background: #0459b7;
  border-color: #093c75;
}
.cf-tab-warn {
  color: #b00020;
  background: #fbe9e9;
  border-color: #dd9999;
}
.cf-tab-warn.cf-tab-on {
  background: #f0f0f0;
  color: #b00020;
  border-color: #b00020;
}
.cf-tab-stale {
  color: #9a9a9a;
  background: #ececec;
  border-color: #d0d0d0;
}
.cf-tab-stale.cf-tab-on {
  background: #fafafa;
  color: #7a7a7a;
}
.cf-tab-when {
  font-family: var(--cf-mono-font, "Droid Sans Mono", monospace);
  font-size: 11px;
  font-weight: 400;
}
#dataholder.cf-table-locked {
  background: #e0e0e0;
}
#dataholder.cf-table-locked #datatable {
  opacity: 0.55;
  filter: grayscale(1);
  border-color: #b9b9b9;
}
#dataholder.cf-table-hidden #datatable {
  visibility: hidden;
}
#optionsholder.cf-showing-fit > #cf-setup-plotbar,
#optionsholder.cf-showing-fit > #quickplot,
#optionsholder.cf-showing-fit > #bottomholder {
  display: none;
}
#cf-fitview {
  width: 844px;
  height: auto;
  min-height: 685px;
  float: left;
  text-align: left;
}
#cf-plotbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 844px;
  height: 24px;
  box-sizing: border-box;
}
.cf-plot-mode {
  display: flex;
  border: 1px solid #a09f9f;
  overflow: hidden;
}
.cf-plot-mode button {
  font-family: var(--cf-ui-font, "Open Sans", sans-serif);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  padding: 2px 14px;
  border: none;
  background: linear-gradient(#f4f4f4, #e2e2e2);
  color: #616161;
  cursor: pointer;
}
.cf-plot-mode button + button {
  border-left: 1px solid #a09f9f;
}
.cf-plot-mode button.cf-plot-mode-on {
  background: #f0f0f0;
  color: #000000;
}
.cf-plot-caption {
  margin-left: 10px;
  font-size: 12px;
  line-height: 16px;
  color: #616161;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#cf-plotbox {
  width: 844px;
  height: 275px;
  background: #f0f0f0;
  box-sizing: border-box;
}
.cf-plot-message {
  padding: 12px;
  font-size: 13px;
  color: #616161;
}
.cf-plot-note {
  margin: 0 0 8px;
  font-size: 12px;
  color: #7a4f00;
}
#cf-result {
  width: 844px;
  height: auto;
  min-height: 380px;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #444444;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
#cf-prevview {
  width: 844px;
  height: auto;
  min-height: 685px;
  float: left;
  text-align: left;
  background: #ffffff;
  border: 1px solid #444444;
  box-sizing: border-box;
}
.cf-res-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid #b9b9b9;
}
.cf-res-head h2 {
  font-size: 14px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cf-chip {
  border: 1px solid #b9b9b9;
  padding: 2px 8px;
  background: #f0f0f0;
  font-family: var(--cf-mono-font, "Droid Sans Mono", monospace);
  font-size: 12px;
}
.cf-pill {
  margin-left: auto;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
  background: #2f7d32;
}
.cf-pill-warn {
  background: #b00020;
}
.cf-res-eq {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: 18px;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.cf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 12px;
  color: #616161;
  margin: 0 0 8px;
}
.cf-meta b {
  color: #000000;
}
.cf-params {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--cf-mono-font, "Droid Sans Mono", monospace);
  font-size: 13px;
}
.cf-params th {
  font-family: var(--cf-ui-font, "Open Sans", sans-serif);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #616161;
  text-align: left;
  padding: 0 6px 4px;
  border-bottom: 1px solid #b9b9b9;
}
.cf-params td {
  padding: 3px 6px;
  border-bottom: 1px solid #eeeeee;
  white-space: nowrap;
}
.cf-params .cf-num {
  text-align: right;
}
.cf-params td.cf-na {
  color: #b00020;
  font-family: var(--cf-ui-font, "Open Sans", sans-serif);
}
.cf-params td.cf-note {
  font-family: var(--cf-ui-font, "Open Sans", sans-serif);
  color: #616161;
  font-size: 12px;
  white-space: normal;
}
.cf-gof {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.cf-warnings {
  margin-top: 8px;
  padding: 6px 10px;
  border-left: 3px solid #b00020;
  background: #fff4f4;
  color: #b00020;
  font-size: 13px;
}
.cf-warnings p {
  margin: 0 0 2px;
}
.cf-loading {
  padding: 12px;
  color: #616161;
}
/* Previous is one panel across the frame. The data column keeps its size
   underneath, hidden, so Setup's grid returns exactly as it was left. */
#cf-app-frame.cf-frame-single > #dataholder {
  grid-column: 1;
  grid-row: 1;
  visibility: hidden;
}
#cf-app-frame.cf-frame-single > #optionsholder {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 1;
}
#cf-prevview:not([hidden]) {
  display: flex;
  flex-direction: column;
}
.cf-prev-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  color: var(--cf-ink, #17212c);
}
.cf-prev-table th,
.cf-prev-table td {
  height: 34px;
  padding: 0 8px;
  border-bottom: 1px solid #e6ebf0;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cf-prev-table thead th {
  height: 30px;
  background: #f4f6f9;
  border-bottom-color: #d5dde6;
  color: #5a6878;
  font-size: 12px;
  font-weight: 600;
}
.cf-prev-table thead th:nth-child(1) { width: 72px; }
.cf-prev-table thead th:nth-child(3) { width: 150px; }
.cf-prev-table thead th:nth-child(4) { width: 60px; }
.cf-prev-table thead th:nth-child(5) { width: 52px; }
.cf-prev-table thead th:nth-child(6) { width: 100px; }
.cf-prev-table thead th:nth-child(7) { width: 80px; }
.cf-prev-table thead th:nth-child(8) { width: 100px; }
.cf-prev-table thead th:nth-child(9) { width: 104px; }
.cf-prev-table thead th:nth-child(10) { width: 136px; }
.cf-prev-table .cf-num {
  text-align: right;
}
.cf-prev-table tbody .cf-num,
.cf-prev-table tbody .cf-prev-when {
  font-family: var(--cf-mono-font, "Droid Sans Mono", monospace);
  font-size: 13px;
}
.cf-prev-table tbody .cf-prev-when {
  color: #33475c;
}
.cf-prev-table tbody .cf-prev-name {
  font-weight: 700;
}
.cf-prev-table .cf-prev-group th {
  height: 28px;
  background: #f9fafb;
  color: #33475c;
  font-size: 12px;
  font-weight: 600;
}
.cf-prev-table .cf-prev-best th,
.cf-prev-table .cf-prev-best td {
  background: #eef6ef;
}
.cf-prev-table .cf-prev-none,
.cf-prev-table .cf-prev-delta-only {
  color: #687482;
}
.cf-prev-table tbody .cf-prev-delta-unranked {
  font-family: var(--cf-ui-font, "Open Sans", sans-serif);
  font-size: 12px;
}
.cf-dset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 4px;
  border: 1px solid #d5dde6;
  border-radius: 4px;
  background: #f4f6f9;
  color: #5a6878;
  font: 700 12px var(--cf-ui-font, "Open Sans", sans-serif);
  vertical-align: middle;
}
.cf-prev-group .cf-dset {
  margin-right: 4px;
}
.cf-dset-0 { background: #dce8f7; color: #0f4a8c; border-color: #9cbbe2; }
.cf-dset-1 { background: #f6e7d6; color: #7a3e05; border-color: #dcb88f; }
.cf-prev-table .cf-prev-action {
  text-align: right;
}
#wrap .cf-prev-button {
  min-height: 0;
  margin: 0;
  padding: 3px 10px;
  border: 1px solid #9fb0c3;
  border-radius: 4px;
  background: #ffffff;
  color: #1d2a39;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.cf-prev-open {
  color: #767676;
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
}
.cf-prev-warn .cf-prev-name,
.cf-prev-warn .cf-prev-model,
.cf-prev-table tbody .cf-prev-warn .cf-prev-when,
.cf-prev-warn .cf-prev-delta-unranked {
  color: #b00020;
}
.cf-prev-note {
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
  color: #616161;
}
.cf-prev-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 7px 12px;
  border-top: 1px solid #d5dde6;
}
.cf-prev-range {
  font-family: var(--cf-mono-font, "Droid Sans Mono", monospace);
  font-size: 12px;
  color: #5a6878;
}
#wrap .cf-prev-page[disabled] {
  color: #8a96a3;
  background: #f4f6f9;
}

.cf-res-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  flex: 0 0 auto;
}
.cf-res-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 0 8px 12px;
}
.cf-res-side {
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 8px 12px;
  border-left: 1px solid #eeeeee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cf-res-exports {
  width: 178px;
}
.cf-res-banner {
  border-top: 1px solid #eeeeee;
  padding: 8px 12px 10px;
  margin-top: auto;
  flex: 0 0 auto;
}
.cf-res-side h3 {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #616161;
  font-weight: 600;
}
.cf-exports {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cf-export {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #616161;
  border: 1px solid #a09f9f;
  background: linear-gradient(#f4f4f4, #e2e2e2);
  padding: 5px 10px;
  cursor: pointer;
  text-align: left;
}
.cf-export[disabled] {
  cursor: default;
  color: #9a9a9a;
}
.cf-export-link,
.cf-export-link:hover,
.cf-export-link:visited {
  text-decoration: none;
  box-sizing: border-box;
}
.cf-export-note {
  margin: 0;
  font-size: 12px;
  color: #b00020;
}
.cf-calc {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 10px;
  font-size: 13px;
}
.cf-calc-title {
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  max-width: 110px;
  font-family: var(--cf-ui-font, "Open Sans", sans-serif);
  font-size: 11px;
  line-height: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #616161;
  font-weight: 600;
}
.cf-calc-field {
  flex: 1 1 0;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cf-calc-field label,
.cf-calc-field span {
  font-size: 11px;
  color: #616161;
  line-height: 13px;
}
.cf-calc input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--cf-mono-font, "Droid Sans Mono", monospace);
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid #b9b9b9;
  background: #ffffff;
  margin-left: 0;
}
.cf-calc-out {
  font-family: var(--cf-mono-font, "Droid Sans Mono", monospace);
  font-size: 12px;
  background: #f0f0f0;
  border: 1px solid #b9b9b9;
  padding: 2px 6px;
  min-height: 22px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
.cf-calc-run {
  flex: 0 0 auto;
  margin-top: 15px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #616161;
  padding: 3px 16px;
  border: 1px solid #a09f9f;
  background: linear-gradient(#f4f4f4, #e2e2e2);
  cursor: pointer;
}
.cf-calc-note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 12px;
  color: #b00020;
}
/* Read by screen readers only. */
.cf-calc-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Model Evaluator list popover: over the Parameters table, inside its panel. */
.cf-popover.cf-eval-popover {
  width: 444px;
  height: 245px;
  margin-left: -11px;
  padding: 10px 12px;
  overflow: hidden;
  font-family: var(--cf-ui-font, "Open Sans", sans-serif);
  font-size: 13px;
}
.cf-eval-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}
.cf-eval-head,
.cf-eval-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cf-eval-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.cf-eval-dir {
  display: flex;
  border: 1px solid #b9c6d4;
  border-radius: 4px;
  overflow: hidden;
}
.cf-eval-dir button {
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 4px 10px;
  background: #f4f6f9;
  color: #5a6878;
  font: 600 12px var(--cf-ui-font, "Open Sans", sans-serif);
  cursor: pointer;
}
.cf-eval-dir button + button {
  border-left: 1px solid #b9c6d4;
}
.cf-eval-dir button[aria-pressed="true"] {
  background: #e3edf9;
  color: #175eae;
}
.cf-eval-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.cf-eval-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font: 13px var(--cf-mono-font, "Droid Sans Mono", monospace);
}
.cf-eval-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 5px 8px;
  background: #eef2f6;
  color: #33475c;
  font: 600 12px var(--cf-ui-font, "Open Sans", sans-serif);
  text-align: center;
}
.cf-eval-table td {
  height: 26px;
  padding: 0;
  border-bottom: 1px solid #e3e9ef;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cf-eval-table td.cf-eval-out {
  padding: 0 8px;
  background: #eef1f5;
  color: #33475c;
}
.cf-eval-table td.cf-eval-note {
  padding: 0 8px;
  color: #865316;
  font: 12px var(--cf-ui-font, "Open Sans", sans-serif);
  text-align: left;
}
.cf-eval-table input {
  display: block;
  width: 100%;
  height: 26px;
  margin: 0;
  padding: 0 8px;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: #1d2a39;
  font: inherit;
  text-align: right;
}
.cf-eval-table input:focus {
  /* Painted inside the cell, which clips anything outside it. */
  outline: 2px solid transparent;
  box-shadow: inset 0 0 0 2px #175eae;
}
.cf-eval-hint {
  min-width: 0;
  font-size: 12px;
  color: #3c4a5a;
}
.cf-eval-hint.cf-eval-error {
  color: #a12d24;
}
.cf-eval-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}
.cf-eval-foot button {
  margin: 0;
  padding: 5px 10px;
  border: 1px solid #9fb0c3;
  border-radius: 4px;
  background: #fff;
  color: #1d2a39;
  font: 600 12px var(--cf-ui-font, "Open Sans", sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.cf-eval-foot button:hover:not([aria-disabled="true"]),
.cf-eval-dir button:hover {
  border-color: #175eae;
}
.cf-eval-foot button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}
.cf-eval-list button:focus-visible {
  outline: 2px solid #0459b7;
  outline-offset: 2px;
}
.cf-spin {
  display: inline-block;
  width: 11px;
  height: 11px;
  vertical-align: -1px;
  border: 2px solid #b9b9b9;
  border-top-color: #444444;
  border-radius: 50%;
  animation: cf-spin 0.8s linear infinite;
}
@keyframes cf-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cf-spin {
    animation-duration: 3s;
  }
}
.cf-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
}
.cf-dialog[hidden] {
  display: none;
}
.cf-dialog-box {
  position: absolute;
  top: 100px;
  left: 50%;
  margin-left: -300px;
  width: 520px;
  box-sizing: content-box;
  background: #eeeeee;
  padding: 30px 40px 34px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  text-align: left;
}
.cf-dialog-box h1 {
  margin: 0 0 12px;
}
.cf-dialog-box p {
  margin: 0;
  white-space: pre-wrap;
}
.cf-dialog-close {
  position: absolute;
  top: 8px;
  right: 11px;
  font-size: 22px;
  line-height: 0.5;
  font-weight: bold;
  color: #aaaaaa;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
