#pdf {
    font-family: 'Times New Roman', Times, serif;
}

#pdf h1{
    font-size: 14px;
    text-align: center;
    letter-spacing: 1px;
    margin: 0 0 15px;
    font-family: 'Times New Roman', Times, serif;
}
#pdf h2{
    font-size: 12px;
    text-align: center;
    letter-spacing: 1px;
    font-weight: normal;
    margin: 0px;
    font-family: 'Times New Roman', Times, serif;
}
#pdf p{
    font-size: 12px;
    margin: 5px 0px;
    display: inline;
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: 0px;
}
#pdf ul{
    font-size: 12px;
    font-family: 'Times New Roman', Times, serif;
}
.printConteiner {
    width: 660px;
    height: 930.6px;
    background: #fff;
    padding: 1cm 22px;
    box-shadow: 0px 0px 5px 0px #000;
    margin-bottom: 20px;
    position: relative;
}
#pdf p.right{
    float: right;
    margin: 0;
    height: 14px;
}
#pdf p.just{
    text-align: justify;
    display: block;
    line-height: 1.2;
    margin: 5px 0;
    padding: 0;
}
#pdf p.half-l{
    margin: -7px 11% 10px;
    float: left;
    width: 120px;
    text-align: center;
}
#pdf p.half-r{
    margin: -7px 12% 10px;
    float: right;
    width: 120px;
    text-align: center;
}
.clear{
    clear: both;
    display: block;
    overflow: hidden;
    visibility: hidden;
    width: 0;
    height: 0;
}
.selectType{
    border: none;
    outline: none;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    font-family: inherit;
    background-color: inherit;
    margin-left: 4px;
    cursor: pointer;
}
.buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: sticky;
    bottom: 25px;
    align-items: flex-end;
}
#pdf input{
    position: absolute;
    background: rgba(238, 238, 238, 0);
    height: 14px;
    font-family: times new roman;
    border: none;
}
button{
    padding: 10px;
    background: #bda;
    color: #5D372E;
    border: none;
    border-radius: 20px;
    width: 140px;
    font-size: 14px;
    margin: 0px;
    transition: box-shadow .2s;
    cursor: pointer;
    text-wrap: nowrap;
}
button a{
    text-decoration: none;
    color: #5D372E;
}

button:hover{
    box-shadow: 0 0px 3px 0px #5D372E;
    transition: box-shadow .2s;
}

@media screen and (max-width: 1315px) {
    #pdf body{
        margin: auto;
        display: flex;
        flex-direction: column;
    }
    .noPrint{
        position: relative;
        padding: 10px 10px;
        background: #fdfdfd;
        margin: 0;
        width: 728px;
    }
}

#pdf .warningBorder {
    border: 1px solid red;
}

/* from DNOU */
#pdf #props {
  display: flex;
}
#pdf #props p {
  display: flex;
  justify-content: space-between;
  margin: 2px 0;
  padding: 0;
}
#pdf #props input {
  border-bottom: 1px solid #000;
  position: relative;
  padding: 1px 4px 0;
  display: inline;
}
.right-props {
  width: 49%;
  margin: 0 0 0 2%
}
.left-props {
  width: 49%;
}
/* /from DNOU */
/* dp */
#pdf input.with-border {
    display: inline;
    border-bottom: 1px solid #000;
    margin-top: 0px;
    padding: 0 5px;
    position: relative;
    font-size: 12px;
}
.blankShadow {
    box-shadow: 0px 0px 15px 2px #000;
}
/* Селект выбора параметра договора */
.selector {
    padding: 10px 0px 0px 0px;
    width: 260px;
}
.selectorHeader {
    margin-bottom: 10px;
    color: #fff;
    background-color: #bda;
    padding-right: 10px;
    border-radius: 20px;
}
.selector select {
    background-color: #bda;
    color: #5D372E;
    outline: none;
    border: none;
    padding: 10px;
    width: 250px;
    border-radius: 20px;
}
.selector option {
    font-weight: 900;
    width: 250px;
}
.selectorLine, .selectorRing {
    display: none;
}
/* /Селект выбора параметра договора */


@media print {
    /* 1. Скрываем ВСЁ на странице */
    body * {
        display: none;
    }
    /* .selector {
        display: none;
    } */

    /* 2. Показываем цепочку родителей #pdf (body > .content > main > #pdf) */
    body > .content,
    body > .content > main,
    body > .content > main > #pdf, 
    body > .content > main > .printConteiner {
        display: block !important;
    }

    sides,
    sidesrequisites,
    .firstSideFz,
    .firstSideUr,
    .firstSideSz,
    .firstSideIp,
    .secondSideFz,
    .secondSideUr,
    .secondSideSz,
    .secondSideIp {
        display: block;
    }

    .printConteiner, main, .content {
        width: 660px;
        height: 930.6px;
        background: #fff;
        box-shadow: none;
        margin: 0;
        page-break-inside: avoid;
        padding: 1cm;
    }
    #pdf {
        position: absolute;
        top: 0;
        left: 0;
    }
    #pdf select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        display: inline;
        vertical-align: baseline;
    }
    #pdf h1, #pdf h2, #pdf br, #pdf option {
        display: block;
    }
    #pdf div:not(.selector) {
        display: block;
    }
    #pdf b {
        display: inline;
        font-weight: 600;
    }
    body {
        margin: 0;
        padding: 0;
        background-color: #fff;
        width: 736px;
    }
    .content {
        margin: 0;
        padding: 0;
        background-color: #fff;
    }
    main {
        margin: 0;
        padding: 0;
        background-color: #fff;
    }
    #pdf .warningBorder {
        border: none;
    }
}
