:root {
    --cl-0: #fff;
    --cl-1: #f26522;
    --cl-2: #0e0d0d;
}
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
*, p, h1, h2, h3, h4, h5, h6 {
    padding: 0;
    margin: 0;
}
*:focus{outline:0;}
table{border-collapse:collapse;border-spacing:0}
td,th{padding:0}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
:before,:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
html{
    font-size: 1.112vw;
}
body{
    -webkit-font-smoothing: antialiased;
    font-size: 1rem;
    font-family: "Times New Roman", Times, serif; 
}
.cl-0{
    color: var(--cl-0);
}
.cl-1{
    color: var(--cl-1);
}
.cl-2{
    color: var(--cl-2);
}
.bg-0{
    background-color: var(--cl-0);
}
.bg-1{
    background-color: var(--cl-1);
}
.bg-2{
    background-color: var(--cl-2);
}
.sc-wrapper {
    padding: 0 30px;
}
.sc-toos-docs-page {
    font-size: 12.5px;
    display: flex;
    gap: 30px;
}
label.sc-label {
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
}
input.sc-input {
    display: block;
    width: 100%;
    border: 1px solid #cdcdcd;
    padding: 0 5px;
    height: 25px;
    border-radius: 3px;
    background-color: #fff;
    font-size: 11px;
}
select.sc-input{
    display: block;
    width: 100%;
    border: 1px solid #cdcdcd;
    padding: 0 5px;
    height: 25px;
    border-radius: 3px;
    background-color: #fff;
    font-size: 11px;
}
textarea.sc-input {
    display: block;
    width: 100%;
    border: 1px solid #cdcdcd;
    padding: 5px;
    border-radius: 3px;
    background-color: #fff;
    font-size: 11px;
    height: max-content;
}
.form-control {
    margin-top: 5px;
}
.form-control-flex {
    display: flex;
    gap: 5px;
}
.sc-sidebar-tools-doc {
    flex: 0 0 30%;
}
.sc-main-tools-doc{
    flex-grow: 1;
}
.sc-sidebar-tools-item {
    box-shadow: 0px 0px 2px 0px #d0fbf4;
    border-radius: 3px;
    overflow: hidden;
    padding: 0;
    background-color: #d0fbf4;
    margin-top: 10px;
    border: 1px solid #1caf97;
}
.sc-sidebar-tools-item .form-control-title {
    background-color: #1caf97;
    color: #fff;
    padding: 5px 10px;
    position: relative;
    cursor: pointer;
}
.sc-sidebar-tools-item .content{
    padding: 5px;
    padding-top: 0;
}
.form-control-flex > * {
    flex: 1;
}
.form-control-flex > *.sc-flex-small {
    flex: 0 0 30%;
}
.form-control-flex > *.sc-flex-small2 {
    flex: 0 0 20%;
}
.product-field,.payment-field{
    align-items: center;
    padding: 0 5px;
    font-size: 11px;
}
.product-field input,.payment-field input{
    width: 100%;
    border: 1px solid #cdcdcd;
    border-radius: 3px;
    height: 20px;
    padding: 0 5px;
    font-size: 11px;
}
.product-field label,.payment-field label {
    flex: 0 0 40%;
}
.product-item, .payment-item {
    display: grid;
    gap: 5px 0px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: 5px;
    border: 1px solid #1e6c59;
}
.product-item-header,.payment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e6c59;
    padding: 5px;
    border-radius: 3px;
    color: #fff;
    grid-column: span 3;
}
button.sc_btn {
    display: block;
    border: 0;
    border-radius: 5px;
    line-height: 1;
    padding: 10px;
    cursor: pointer;
    background: transparent;
    margin-left: auto;
    margin-right: auto;
    text-decoration: underline;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 11px;
}
button.remove-product,button.remove-payment {
    border: 0;
    background-color: red;
    color: #fff;
    padding: 0 5px;
    font-size: 12px;
    border-radius: 2px;
    cursor: pointer;
}
.form-control.form-control-row {
    display: flex;
    gap: 5px;
    align-items: center;
}
.form-control.form-control-row label {
    flex: 0 0 30%;
    margin-bottom: 0;
}
.docx-wrapper,
.docx-wrapper * {
    font-family: "Times New Roman", Times, serif !important;
}
.sc-tools-action {
    display: flex;
    width: 100%;
    gap: 10px;
    margin-bottom: 15px;
    position: fixed;
    z-index: 100;
    right: 30px;
    top: 10px;
    width: 300px;
}
.sc-tools-action button {
    border: 0;
    flex: 1;
    border-radius: 5px;
    height: 40px;
    color: #fff;
    font-weight: bold;
    background-color: #8d7a1a;
    cursor: pointer;
}
.sc-tools-action button:disabled{
    opacity: 0.4;
    cursor: not-allowed;
}
.payment-field-hidden{
    display: none!important;
}

.product-item{
    grid-template-columns: repeat(4, 1fr);
}
.product-item .product-field:nth-child(2){
    grid-column: span 3;
}
.product-item-header{
    grid-column: span 4;
}
.sc-sidebar-tools-item .form-control-title:after {
    content: "-";
    position: absolute;
    right: 10px;
}
.sc-sidebar-tools-item.dis-active .content{
    display: none;
}
.sc-sidebar-tools-item.dis-active .form-control-title:after {
    content: "+";
}
form.sc-sidebar-tools-form {
    margin-bottom: 30px;
}
div#preview {
    margin-top: 45px;
}
#preview h3 {
    margin-bottom: 10px;
}
.docx-preview_compact {
    text-indent: 10px !important;
}