html {
    font-family: 'Calibri';
}

.chartwrapper {
    width: 500px;
    height: 800px;
    margin: 30px auto;
    position: relative;
}

.chartwrapper_hidden {
    display: block;
    position: fixed;
    top: -3000em;
}

.export-main {
opacity: 0.1 !important;
}

@media print {
    .amcharts-bg, .amcharts-plot-area, .amcharts-legend-bg {
        display: none;
    }
}

input[type="text"] {
    width: 100%;
}

input[type="text"].wyniki {
    width: 40px;
    margin-bottom: 3px;
}

label.wyniki, input[type="text"].wyniki{
    float:left;
    display:block;
}
label.wyniki
{
    margin-right: 5px;
}
.field{
    width:100%;
    overflow:auto;
    margin:5px 0px;
}

input[type="date"] {
    width: 100%;
}

fieldset  {
    border: 1px solid darkgray;
    margin: auto;
}

.prawa {
    float:left;
    display:block;
    text-align: right;
}

table {
    border: 1;
    table-layout: auto;
    margin-right: 2em
}

thead > tr > th {
   text-align: center;
}

tbody > tr > th {
    text-align: right;
}

a[title="JavaScript charts"] {
   opacity: 0.1 !important;
}

.wyrownaj {
    text-align: justify;
}

/* Without the old "* { margin: 0; padding: 0 }" and "html, body { height: 100%; overflow: hidden }": they printed only
   the first sheet of the results page, the rest was cut off. */
@media print {
  #controls, .footer, .footerarea{ display: none; }
  html, body {
    background: #FFF;
  }

  img { width:100%; }
  li { margin: 0 0 10px 20px !important;}
  
  .grid_1,
  .grid_2,
  .grid_3,
  .grid_4,
  .grid_5,
  .grid_6,
  .grid_7,
  .grid_8,
  .grid_9,
  .grid_10,
  .grid_11,
  .grid_12 {
    display:block;
    position: relative;
    width: auto !important;
  }
}

#komunikat {
    font-size: small;
    border: 1px solid;
    margin: 10px 0px;
    padding: 5px 5px 5px 50px;
    background-repeat: no-repeat;
    background-position: 10px center;
    color: #9F6000;
    background-color: #FEEFB3;
    background-image: url('uwaga.png');
}

.submit-container {
    margin:8px 0;
}
.submit-button {
    border: 1px solid #737373;
    background: #a3a3a3;
    background: -webkit-gradient(linear, left top, left bottom, from(#bfbfbf), to(#a3a3a3));
    background: -webkit-linear-gradient(top, #bfbfbf, #a3a3a3);
    background: -moz-linear-gradient(top, #bfbfbf, #a3a3a3);
    background: -ms-linear-gradient(top, #bfbfbf, #a3a3a3);
    background: -o-linear-gradient(top, #bfbfbf, #a3a3a3);
    background-image: -ms-linear-gradient(top, #bfbfbf 0%, #a3a3a3 100%);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
    -moz-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
    box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
    text-shadow: #dbdbdb 0 1px 0;
    color: #525252;
    font-family: helvetica, serif;
    padding: 8.5px 18px;
    font-size: 14px;
    text-decoration: none;
    vertical-align: middle;
}
.submit-button:hover {
    border: 1px solid #737373;
    text-shadow: #525252 0 1px 0;
    background: #a3a3a3;
    background: -webkit-gradient(linear, left top, left bottom, from(#bfbfbf), to(#a3a3a3));
    background: -webkit-linear-gradient(top, #bfbfbf, #a3a3a3);
    background: -moz-linear-gradient(top, #bfbfbf, #a3a3a3);
    background: -ms-linear-gradient(top, #bfbfbf, #a3a3a3);
    background: -o-linear-gradient(top, #bfbfbf, #a3a3a3);
    background-image: -ms-linear-gradient(top, #bfbfbf 0%, #a3a3a3 100%);
    color: #fff;
}
.submit-button:active {
    text-shadow: #525252 0 1px 0;
    border: 1px solid #737373;
    background: #bfbfbf;
    background: -webkit-gradient(linear, left top, left bottom, from(#a3a3a3), to(#a3a3a3));
    background: -webkit-linear-gradient(top, #a3a3a3, #bfbfbf);
    background: -moz-linear-gradient(top, #a3a3a3, #bfbfbf);
    background: -ms-linear-gradient(top, #a3a3a3, #bfbfbf);
    background: -o-linear-gradient(top, #a3a3a3, #bfbfbf);
    background-image: -ms-linear-gradient(top, #a3a3a3 0%, #bfbfbf 100%);
    color: #fff;
}

.details{
    border: solid 1px lightgray;
}

.chart-container {
    display: inline-block;
}

.form-radio-row {
    padding-top: 7px;
}

/* METRYCZKOWE */
.light-warning {
    color: #8d8d8d;
}

/* SEKCJA WYNIKÓW SB5*/
.sb5-results-image {
    width: 660px;
    border: 1px solid #4c4c4c;
}

.sb5-results-image-wrap {
    width: 100%;
    text-align: center;
}

/* TABELA WYNIKÓW SUROWYCH */
.raw-result-ws {
    padding: 0 0 5px !important;
}

.raw-result-ws div {
    padding: 0 6px 0 0 !important;
}

/* WYKRES PODSKAL */
.subscale-table {
    table-layout: fixed;
    font-weight: bold;
}

.subscale-table td {
    width: 36px;
    border: 1px solid black;
}

.subscale-table td div {
    width: 36px;
    margin: 0;
}

.subscale-points-header td:not(:first-of-type) {
    font-weight: bold;
    background-color: #cdcdcd;
    text-align: center;
    font-size: 20px;
}

.subscale-top-labels td {
    border-bottom: 1px solid black;
    padding: 0;
    font-size: 12px;
    letter-spacing: 0.06em;
    width: 36px;
}

.vertical-text-row td, .vertical-text {
    text-align: center;
    vertical-align: bottom;
    max-height: 200px;
    padding: 0 0 5px;
}

.subscale-table .vertical-text-row div, .subscale-table .vertical-text div {
    writing-mode:vertical-rl;
    text-align: left;
    transform: rotate(180deg);
    width: 35px;
    padding: 0 9px 5px 0;
}

.subscale-top-labels td.subscale-label-two-lines div {
    padding: 0;
    font-size: 12px;
    padding-bottom: 5px;
}

.subscale-value-axis-container {
    height: 400px;
    vertical-align: top;
    border-bottom: 1px solid black;
}

.subscale-value-axis {
    table-layout: fixed;
    text-align: center;
    margin: 0;
}

.subscale-value-axis td {
    border: none;
    height: 38px;
    vertical-align: center;
}

#subscales-chart-cell {
    padding: 0;
    width: 500px;
    height: 400px;
    position: relative;
}

#subscales-chart-wrap {
    position: relative;
    overflow: hidden;
    margin: 0;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 647px;
    height: 400px;
}

#subscales-chart {
    position: relative;
    width: 715px;
    height: 489px;
    left: -47px;
    top: -40px;
    bottom: 0;
    right: 0;
}

.subscale-scale-labels td {
    border: 1px solid black;
    font-size: 20px;
    text-align: center;
}

.subscale-sten-sums td:not(:first-of-type) {
    border: 1px solid black;
    text-align: center;
    font-size: 20px;
}

.subscale-scale-results td {
    border: 1px solid black;
    text-align: center;
    font-size: 20px;
}

/* TABELA PRZEDZIAŁY UFNOŚCI */

.pu-table {
    table-layout: fixed;
    height: 740px;
}

.pu-table td {
    border: 1px solid black;
}

/* WYKRES ZPiUS */

.scale-zpius {
    margin: 0;
}

.scale-zpius td {
    /*border: none;*/
    height: 24px;
    vertical-align: center;
}

.chart-wrap {
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.chart-zpius-cell{
    position: relative;
    vertical-align: top;
}

#chart-zpius-wrap {
    width: 90px;
    height: 560px;
}

#chart-zpius {
    position: relative;
    top: 0px;
    right: -20px;
    bottom: 20px;
    left: -60px;

    width: 170px;
    height: 540px;
}

.scale-zpius {

}

.scale-zpius td {
    border: none;
    font-weight: bold;
    height: 51px;
    padding: 0 5px 0;
}

/* WYKRES STENY */

.chart-steny-cell{
    position: relative;
    vertical-align: top;
}

#chart-steny-wrap {
    width: 365px;
    height: 522px;
    position: relative;
    top: 40px;
    bottom: 0px;
    overflow: hidden;
}

#chart-steny {
    position: relative;
    top: -73px;
    right: -10px;
    bottom: 0;
    left: -21px;
    width: 435px;
    height: 600px;
}

.scale-steny-cell {
    margin: 0;
    padding-top: 17px;
    vertical-align: top;
}

.scale-steny {
    margin: 0;
}

.scale-steny td {
    border: none;
    font-weight: bold;
    height: 52px;
    padding: 0 5px 0;
}

.sten-label {
    width: 33px;
}

.sten-labels td {
    width: 33px;
    font-weight: bold;
    text-align: center;
    border-bottom: none;
}

.sten-scores td {
    font-size: 22px;
    font-weight: bold;
    border-top: none;
    text-align: center;
}

.font-12 {
    font-size: 12px;
}

.sten-graph-spacer {
    border: none !important;
    width: 20px !important;
    padding: 0;
}

/* WYNIKI SUROWE - TYLKO DO PDF */
.subscale-table-print {
    table-layout: fixed;
    font-weight: bold;
    margin: 10px;
}

.subscale-table-print tr td {
    width: 40px;
    border: 1px solid #707070;
    border-top: none !important;
}

.subscale-table-print tr:first-of-type td {
    border: 1px solid black;
    padding: 5px 0px 0;
    border-top: none !important;
}

.subscale-table-print td {
    border: 1px solid black;
    border-left: none !important;
}

.subscale-table-print tr:first-of-type td:last-of-type {
    border: 1px solid black;
}

.subscale-table-print tr:last-of-type td, .subscale-table-print td[rowspan="2"] {
    border-bottom: none !important;
}

.subscale-points-header-print td:not(:first-of-type) {
    font-weight: bold;
    text-align: center;
    font-size: 12px;
}

.subscale-top-labels-print td {
    border-bottom: 1px solid black;
    padding: 5px 0 0;

}

.subscale-scale-row-label div {
    padding: 0px 4px 5px 0 !important;
}

.subscale-table-print .vertical-text-row *, .subscale-table-print .vertical-text{
    writing-mode:vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.06em;
    /*font-weight: normal !important;*/
}


.subscale-top-labels-print td.subscale-label-two-lines {
    padding: 5px 5px 0 !important;
    font-size: 12px;
    line-height: 1em;
}

.subscale-scale-labels-print td {
    border: 1px solid black;
    font-size: 20px;
    text-align: center;
}

.subscale-sten-sums-print td {
    border: 1px solid black;
    text-align: center;
    font-size: 20px;
}

.subscale-scale-results-print td {
    border: 1px solid black;
    text-align: center;
    font-size: 20px;
}

.subscale-scale-row-label-print {
    padding: 5px;
}

.print-cell-text {
    width: 23px;
    height: 30px;
}

/* B36 RESULTS PAGE: tables and charts of the PNG, the chart rows are 10 STEN rows of 40px */
.results-table {
    margin-top: 20px;
}

.results-table th {
    border: 1px solid black;
    padding: 0 5px;
    text-align: center;
    white-space: nowrap;
}

.results-table td {
    text-align: center;
}

/* labels in one line, like the &nbsp; of the SB6-18 labels */
.results-table .vertical-text-row div {
    white-space: nowrap;
}

.results-table th.results-scale-right {
    border: none;
}

.results-scale {
    height: 40px;
    line-height: 40px;
}

.subscale-table td .results-chart {
    width: 100%;
    height: 400px;
}

/* .subscale-table td div gives every div 36px, the chart and its balloon need their own width */
.subscale-table td .results-chart div {
    width: auto;
}

.results-charts {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 20px;
}

/* links in the messages of screen 1 (K14): underlined, the bold text around them would hide them */
.alert .alert-link {
    text-decoration: underline;
}

/* Reports are printed in bulk in shades of grey (Rafał Ambros, 25.11). Bootstrap already prints the text black and
   without backgrounds. The bands of the charts get the greys of the PDF report (export.blade.php), by their brightness,
   so they stay apart; amCharts gives their colour as the attribute fill (their outline is not drawn). On screen nothing
   changes. */
@media print {
    .results-chart [fill="#92bda1"] {
        fill: #adadad;
    }
    .results-chart [fill="#c9dcd1"] {
        fill: #d5d5d5;
    }
    /* pink border of the alerts */
    .alert {
        border-color: #999;
    }
    /* Bootstrap prints the address of every link after it, which put the one of the amCharts link over the chart */
    .results-chart a[href]:after {
        content: none;
    }
    /* The whole results page on A4 in portrait with the default margins of the browser, about 690 px for the content:
       the tests table (25 columns, about 950 px) and the two chart tables side by side (about 790 px) are scaled down,
       each table stays on one sheet, and the buttons of the PDF and the e-mail are not printed. */
    .results-tests {
        zoom: 0.7;
    }
    .results-charts {
        zoom: 0.85;
    }
    .results-table,
    .results-charts {
        break-inside: avoid;
    }
    .results-export {
        display: none;
    }
}
