html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.bg-orange {
    background-color: #fd7e14 !important;
    color: #fff !important;
}

.tab-pane canvas {
    min-height: 420px;
}
/* Histogram*/

.show-data-capability-report {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    background: #eeeeee;
    color: #222222;
    box-shadow: 0 0 8px rgba(0, 0, 0, .20);
    overflow-x: auto;
}

    .show-data-capability-report h2 {
        margin-bottom: 22px;
        text-align: center;
        font-size: 24px;
        font-weight: 700;
    }

.show-data-report-grid {
    display: grid;
    grid-template-columns: 250px minmax(420px, 1fr) 240px;
    gap: 18px;
    align-items: start;
    min-width: 950px;
}

.show-data-stats-box {
    padding: 10px;
    background: #ffffff;
    border: 2px solid #d0d0d0;
}

    .show-data-stats-box table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .show-data-stats-box th,
    .show-data-stats-box td {
        padding: 3px 5px;
    }

    .show-data-stats-box th {
        text-align: left;
        font-weight: 700;
    }

    .show-data-stats-box td {
        text-align: right;
        font-weight: 700;
    }

.show-data-capability-chart-box {
    height: 390px;
    padding-bottom: 30px;
    background: #ffffff;
    border: 2px solid #d0d0d0;
}

#showDataCapabilityChart {
    width: 100% !important;
    height: 365px !important;
}

.show-data-capability-legend {
    margin-bottom: 10px;
    padding: 10px 20px;
    background: #ffffff;
    border: 2px solid #d0d0d0;
    font-size: 14px;
    font-weight: 700;
}

.capability-legend-line {
    display: inline-block;
    width: 42px;
    margin-right: 8px;
    vertical-align: middle;
}

.capability-overall-line {
    border-top: 3px solid #8f2d2d;
}

.capability-within-line {
    border-top: 3px dashed #555555;
}

.show-data-capability-box
th[colspan="2"] {
    padding-bottom: 8px;
    text-align: center;
}

.show-data-performance-box {
    width: 620px;
    max-width: 100%;
    margin-top: 28px;
}

    .show-data-performance-box table {
        font-size: 14px;
    }

    .show-data-performance-box th,
    .show-data-performance-box td {
        padding: 3px 8px;
        text-align: right;
    }

        .show-data-performance-box th:first-child {
            text-align: left;
        }

.show-data-sigma-note {
    margin-top: 25px;
    font-size: 17px;
    font-style: italic;
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .show-data-capability-report {
        overflow-x: auto;
    }
}

@media print {
    .show-data-capability-report {
        box-shadow: none;
    }
}

/*run chart*/
.run-chart-report {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 12px;
    background: #eeeeee;
    color: #222222;
}

    .run-chart-report h4 {
        margin-bottom: 10px;
        text-align: center;
        font-size: 18px;
        font-weight: 700;
    }

.run-chart-canvas-box {
    height: 420px;
    padding: 10px;
    background: #ffffff;
    border: 2px solid #cfcfcf;
}

#showDataRunChart {
    width: 100% !important;
    height: 395px !important;
}

.run-chart-statistics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 620px;
    max-width: 100%;
    margin-top: 10px;
    background: #ffffff;
    border: 2px solid #cfcfcf;
}

    .run-chart-statistics table {
        width: 100%;
        border-collapse: collapse;
        font-size: 12px;
    }

        .run-chart-statistics table:first-child {
            border-right: 1px solid #cfcfcf;
        }

    .run-chart-statistics th,
    .run-chart-statistics td {
        padding: 2px 5px;
    }

    .run-chart-statistics th {
        text-align: left;
        font-weight: 600;
    }

    .run-chart-statistics td {
        width: 65px;
        text-align: right;
        font-weight: 700;
    }

@media (max-width: 767.98px) {
    .run-chart-statistics {
        grid-template-columns: 1fr;
    }

        .run-chart-statistics table:first-child {
            border-right: 0;
            border-bottom: 1px solid #cfcfcf;
        }
}

/*XBar-R chart*/
.xbar-r-report {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px;
    background: #eeeeee;
    color: #222;
    overflow: hidden;
}

    .xbar-r-report h4 {
        margin: 0 0 14px;
        text-align: center;
        font-size: 19px;
        font-weight: 700;
    }

.xbar-r-chart-section {
    width: 100%;
    margin-bottom: 18px;
}

.xbar-r-chart-box {
    position: relative;
    width: 100%;
    height: 360px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #cfcfcf;
    overflow: hidden;
}

#showDataXbarChart,
#showDataRangeChart {
    display: block;
    width: 100% !important;
    height: 330px !important;
}

.xbar-r-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 4px;
}

    .xbar-r-summary > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        padding: 9px 12px;
        background: #fff;
        border: 1px solid #cfcfcf;
    }

    .xbar-r-summary span {
        font-weight: 600;
    }

    .xbar-r-summary strong {
        min-width: 70px;
        text-align: right;
    }

@media (max-width: 991.98px) {
    .xbar-r-report {
        overflow-x: auto;
    }

    .xbar-r-chart-section,
    .xbar-r-summary {
        min-width: 900px;
    }
}

/*Moving range chart*/
.moving-range-report {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
    background: #eeeeee;
    color: #222222;
    overflow: hidden;
}

    .moving-range-report h4 {
        margin: 0 0 14px;
        text-align: center;
        font-size: 19px;
        font-weight: 700;
    }

.moving-range-chart-box {
    position: relative;
    width: 100%;
    height: 430px;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #cfcfcf;
    overflow: hidden;
}

#showDataMovingRangeChart {
    display: block;
    width: 100% !important;
    height: 400px !important;
}

.moving-range-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

    .moving-range-summary > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        padding: 9px 12px;
        background: #ffffff;
        border: 1px solid #cfcfcf;
    }

    .moving-range-summary span {
        font-weight: 600;
    }

    .moving-range-summary strong {
        min-width: 70px;
        text-align: right;
    }

@media (max-width: 767.98px) {
    .moving-range-report {
        overflow-x: auto;
    }

    .moving-range-chart-box,
    .moving-range-summary {
        min-width: 850px;
    }
}

/*Moving average chart*/
.moving-average-report {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
    background: #eeeeee;
    color: #222222;
    overflow: hidden;
}

    .moving-average-report h4 {
        margin: 0 0 14px;
        text-align: center;
        font-size: 19px;
        font-weight: 700;
    }

.moving-average-chart-box {
    position: relative;
    width: 100%;
    height: 430px;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #cfcfcf;
    overflow: hidden;
}

#showDataMovingAverageChart {
    display: block;
    width: 100% !important;
    height: 400px !important;
}

.moving-average-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

    .moving-average-summary > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        padding: 9px 12px;
        background: #ffffff;
        border: 1px solid #cfcfcf;
    }

    .moving-average-summary span {
        font-weight: 600;
    }

    .moving-average-summary strong {
        min-width: 65px;
        text-align: right;
    }

@media (max-width: 767.98px) {
    .moving-average-report {
        overflow-x: auto;
    }

    .moving-average-chart-box,
    .moving-average-summary {
        min-width: 850px;
    }
}