@import 'fonts.css';

:root {
    /*--column-width__1_5: 20%;
    --column-width__1_4: 25%;*/
}
* {
    box-sizing: border-box;
    font-family: 'NanumBarunGothic';
}
body {
    margin: 0;
    background: #f0f0f1;
}

.main-nav {
    background-color: #1d2327;
    width: 130px;
    height: 100vh;
    position: fixed;
}

.main-nav ul {
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    list-style: none;
}
.main-nav li {
    padding-left: 5px;
    list-style: none;
    position: relative;
}
.main-nav li.hover:before {
    content: '';
    width: 5px;
    height: 34px;
    background-color: #72aee6;
    position: absolute;
    left: 0;
    top: 0;
}
.main-nav li.activated.hover:before {
    background-color: white;
}
.main-nav li.activated {
    background-color: #2271b1;
}
.main-nav li.activated:after {
    content: '';
    width: 0;
    height: 0;
    border: solid 8px transparent;
    border-right-color: #f0f0f1;
    margin-top: -8px;
    pointer-events: none;

    position: absolute;
    right: 0;
    top: 50%;
}

.main-nav a {
    display: block;
    padding: 9px 8px;
    color: white;
    font-size: 14px;
    text-decoration: none;
}
.main-nav a:hover,
.main-nav a:active {
    color: #72aee6;
}
.main-nav .activated a:hover,
.main-nav .activated a:active {
    color: white;
}

.main-wrap {
    /*max-width: 1024px;*/
    padding: 20px 20px 20px 10px;
    margin-left: 130px;
}

.btn {
    padding: 6px 8px;
    border: 1px solid #2271b1;
    border-radius: 2px;
    text-decoration: none;
    text-shadow: none;
    font-weight: 600;
    font-size: 14px;
    line-height: normal;
    color: #2271b1;
    background: #f6f7f7;
    cursor: pointer;
}

.btn:hover, .btn:active {
    border-color: #0a4b78;
    background: #f0f0f1;
    color: #0a4b78;
}

.btn-wrap .btn {
    margin-right: 10px;
}
.text-right > .btn {
    margin-left: 10px;
    margin-right: 0;
}

.page-head {
    margin-bottom: 14px;
}

.page-head .page-title {
    display: inline-block;
    vertical-align: middle;
    padding: 12px 0;
    margin: 0 5px 0 0;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.3;
}
.page-head .btn-add-record {
    display: inline-block;
    vertical-align: middle;
}

.btn-color-red {
    color: #b32d2e !important;
    border-color: #b32d2e;
}
.btn-color-red:hover, .btn-color-red:active {
    color: #822021;
    border-color: #822021;
}

.btn-submit {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}
.btn-submit:hover, .btn-submit:active {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.btn-wrap {
    margin-top: 16px;
}

.row__paper-opt.template {
    display: none;
}

/* log in */
.main-wrap.sign-in {
    width: 320px;
    padding: 26px 24px 34px;
    margin: 0 auto;

    font-weight: 400;
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);

    position: relative;
    top: 120px;
}
.main-wrap.sign-in .page-head .page-title {
    margin-bottom: 16px;
}

.main-wrap.sign-in .column-text {
    display: inline-block;
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.5;
}
.main-wrap.sign-in input[type="email"],
.main-wrap.sign-in input[type="password"] {
    width: 100%;
    min-height: 40px;
    max-height: none;
    padding: .1875rem .3125rem;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    box-shadow: 0 0 0 transparent;
    margin: 0 6px 16px 0;
    font-size: 24px;
    line-height: 1.4;
}

.page-content {
    max-width: 720px;
}

.subject-head {
    position: relative;
    padding-left: 10px;
    margin-top: 24px;
    margin-bottom: 16px;
    background-color: rgba(34, 113, 177, .1);
    border-bottom: 3px solid rgba(34, 113, 177, .3);
}

.subject-head h2 {
    display: inline-block;
    vertical-align: middle;
}
.subject-head .btn {
    margin-left: 12px;
    display: inline-block;
    vertical-align: middle;
}

.row {
    display: flex;
    margin-bottom: 16px;
}

.row .column {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
    /*margin-right: 6px;*/
    box-sizing: border-box;
}
/*
.column label {
    width: 100%;
}

.row .column:first-of-type {
    padding-left: initial;
}
.row .column:last-of-type,
.row.one-third .column:nth-of-type(3) {
    padding-right: initial;
}

.row.one-half .column {
    width: calc( 100% / 2 );
}
.row.one-third .column {
    width: calc( 100% / 3 );
}
.row.one-forth .column {
    width: calc( 100% / 4 );
}
*/

.row__contact .column {
    position: relative;
}
.row__contact .column:after {
    content: '-';
    position: absolute;
    right: -4.5px;
    top: 35px;
}
.row__contact .column:last-of-type:after {
    content: '';
}

.row input[type="text"],
.row input[type="email"],
.row input[type="number"],
.row input[type="password"],
.row select,
.row textarea {
    width: 100%;
    min-height: 36px;
    max-height: none;
    padding: 5px 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    box-shadow: 0 0 0 transparent;
    /*margin-right: 0 6px 16px 0;*/
    font-size: 18px;
    line-height: 1.4;
}
.row input[type="number"] {
    text-align: right;
}
.row input[type="radio"] {
    min-height: 36px;
    margin-top: 0;
    vertical-align: middle;
}
.row .radio-text {
    display: inline-block;
    min-height: 36px;
    vertical-align: middle;
    line-height: 36px;
}
.row select {
    padding: 5px 5px;
    background: white;
}
.row textarea {
    min-height: 90px;
    resize: none;
}

.row .multiply-form {
    display: flex;
    justify-content: space-between;
}
.row .multiply-form .inner-column:first-of-type,
.row .multiply-form .inner-column:last-of-type {
    width: calc( (100% - 60px - 20px) / 2 );
}
.row .multiply-form .inner-column:nth-of-type(2) {
    width: 60px;
}


.row .column .ck.ck-editor .ck-toolbar {
    border-top-color: #8c8f94;
    border-left-color: #8c8f94;
    border-right-color: #8c8f94;
    border-radius: 4px 4px 0 0 !important;
}
.row .column .ck.ck-editor .ck-content {
    border-bottom-color: #8c8f94;
    border-left-color: #8c8f94;
    border-right-color: #8c8f94;
    border-radius: 0 0 4px 4px;
}
.row .ck-editor__editable {
    height: 190px;
    overflow-y: scroll !important;
}

.page-content .subject-head h2 {
    font-size: 20px;
    font-weight: normal;
}

.page-content .row-wrap-head,
.page-content .row-wrap h4,
.page-content .row-wrap h5 {
    font-weight: 100;
}
.page-content .row-wrap-head {
    padding: 6px 10px;
    margin-top: 12px;
    margin-bottom: 12px;
    background-color: rgba(34, 113, 177, .1);
    display: inline-block;
}
.page-content .row-wrap h4 {
    margin-top: 12px;
    margin-bottom: 12px;
}
.page-content .row-wrap h4:before {
    content: '[';
}
.page-content .row-wrap h4:after {
    content: ']';
}


*[disabled],
*[readonly] {
    opacity: .6;
}

.column-text {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.5;
}
.column-text.row-title {
    font-size: 16px;
    font-weight: bold;
}

/* paper store */
.row__paper-opt {
    position: relative;
}
.row__paper-opt > .btn-wrap {
    position: absolute;
    right: -70px;
    top: 12px;
}


/* user info */
/*.main-wrap.user-info .column-text {
    display: inline-block;
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.5;
}*/

/* sign up */
.no-main-nav .main-wrap.user-info {
    width: 320px;
    padding: 26px 24px 34px;
    margin: 8% auto 0 auto;

    font-weight: 400;
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.no-main-nav .main-wrap.user-info .page-head .page-title {
    margin-bottom: 16px;
}

.no-main-nav .main-wrap.user-info .column-text {
    display: inline-block;
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.5;
}
.no-main-nav .main-wrap.user-info input[type="text"],
.no-main-nav .main-wrap.user-info input[type="email"],
.no-main-nav .main-wrap.user-info input[type="password"],
.no-main-nav .main-wrap.user-info select {
    min-height: 40px;
    font-size: 24px;
}

/* list */
.store-list, .user-list {
    width: 100%;
    max-width: 864px;
    border: 1px solid #c3c4c7;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}
.store-list th, .store-list td,
.user-list th, .user-list td {
    padding: 16px 10px;
    font-size: 14px;
}
.store-list th, .user-list th {
    text-align: left;
}

.user-list th, .user-list td {
    padding: 10px 10px;
}
.store-list th,
.user-list th {
    border-top: 1px solid #c3c4c7;
    border-bottom: 1px solid #c3c4c7;
    color: #2c3338;
    font-weight: normal;
}
.store-list td,
.user-list td {
    color: #50575e;
}
.store-list td a,
.user-list td a {
    font-size: 14px;
    font-weight: bold;
    color: #2271b1;
    text-decoration: none;
}
.store-list td a:hover, .store-list td a:active,
.user-list td a:hover, .user-list td a:active {
    color: #135e96;
}

.store-list tr:nth-of-type(odd) td,
.user-list tr:nth-of-type(odd) td {
    background-color: #f6f7f7;
}
.store-list .column-datetime {
    width: calc( 25 / 82 * ( 100% - 120px ) );
}
.store-list .column-store-name {
    width: calc( 36 / 82 * ( 100% - 120px ) );
}
.store-list .column-contact {
    width: calc( 21 / 82 * ( 100% - 120px ) );
}
.store-list .column-btn-wrap {
    width: 120px;
}
.user-list .column-email {
    width: calc( 36 / 82 * ( 100% - 120px ) );
}
.user-list .column-user-name {
    width: calc( 21 / 82 * ( 100% - 120px ) );
}
.user-list .column-permission {
    width: calc( 25 / 82 * ( 100% - 120px ) );
}
.user-list .column-btn-wrap {
    width: 120px;
}
.user-list .column-permission select {
    border-color: #8c8f94;
    box-shadow: none;
    font-size: 14px;
    line-height: 2;
    color: #2c3338;
    border-radius: 3px;
    padding: 0 24px 0 8px;
    min-height: 30px;
    background-color: white;
}

/* measure */
.measure {
    position: relative;
}
.measure:after {
    position: absolute;
    right: 7px;
    top: 10px;
}
.measure__page:after {
    content: '쪽';
}
.measure__copy:after {
    content: '부';
}
.measure__percent:after {
    content: '%';
}
.measure__won:after {
    content: '원';
}
.measure__book:after {
    content: '권';
}

.row .measure input {
    padding-right: 20px;
}


/* report section */
.section__report {
    width: 100%;
    max-width: 600px;
    /*height: 800px;*/
    border: 1px solid #c3c4c7;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .4);
    font-size: 14px;
    /*opacity: 0;*/
    /*transition: 1s;*/

    position: fixed;
    left: 870px;
    top: 110px;
}
.section__report.activated {
    /*opacity: 1;*/
}


.section-head {
    padding: 20px;
    border-bottom: 1px solid #c3c4c7;
}
.section__report .section-head h2 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 18px;
    font-weight: bold;
}
.section__report .book-title {
    font-size: 20px;
}
/*.section__report .section-body *:not(.btn, input, .measure) {
    font-family: 'NanumMyeongjo';
}*/
.section__report .book-title .space__book-title {
    font-family: 'NanumMyeongjo';
}
.section__report .book-title .edition {
    margin-left: 14px;
    font-weight: normal;
    font-size: 14px;
}


.section__report .section-body {
    max-height: 575px;
    padding: 20px;
    overflow-y: scroll;
}
.section__report .row {
    margin-bottom: 20px;
}
.section__report .book-title {
    margin-top: 0;
    margin-bottom: 20px;
}

.section__report .custom-price-for-print {
    display: none;
}

.section__report .row-wrap-head {
    padding: 0;
    margin-top: 0;
    margin-bottom: 12px;
    background-color: initial;
    font-weight: bold;
    font-size: 1.17em;
}

.section__report .column-text {
    font-weight: bold;
}
.section__report .column-head {
    display: inline-block;
    margin-right: 6px;
}
.section__report .column-head:after {
    content: ':';
}
.section__report .column-head__blank {
    width: 29px;
}
.section__report .column-head__blank:after {
    display: none;
}
.section__report .detail-content {
    /*height: 0;*/
    overflow: hidden;
    transition: .5s;
/*}
.section__report .detail-content.activated {*/
    height: auto;
    padding-top: 28px;
    border-top: 1px dashed #c3c4c7;
    margin-top: 28px;
}

.section__report .detail-content .row-wrap {
    margin-bottom: 28px;
}
.section__report .detail-content .row-wrap-head:before {
    content: '●';
    transform: scale(.25);
    display: inline-block;
    margin-left: -10px;
}
.section__report .detail-content .row {
    margin-bottom: 14px;
}
.section__report .detail-content .row-head {
    margin-left: 8px;
    margin-bottom: 12px;
}
.section__report .detail-content .separator {
    margin-left: 6px;
    margin-right: 6px;
    display: inline-block;
}


/* calc report info */
.page-content.calc-price-info {
    width: 600px;
}
.calc-price-info .section__report {
    max-width: initial;
    margin-bottom: 20px;
    position: initial;
    left: initial;
    top: initial;
}
.calc-price-info .section__report .section-head {
    position: relative;
}
.calc-price-info .section__report .section-head h2 {
    display: none;
}
.calc-price-info .section__report .section-body {
    max-height: initial;
    overflow: initial;
}
.printing__offset .for-offset {
    display: block;
}
.printing__offset .for-pod {
    display: none;
}
.printing__pod .for-offset {
    display: none;
}
.printing__pod .for-pod {
    display: block;
}




/* snippets */
.u-text-right {
    text-align: right !important;
}
.u-text-center {
    text-align: center !important;
}
.u-bold {
    font-weight: bold !important;
}
.u-clear-fix:after {
    content: '';
    display: block;
    clear: both;
}
.u-relative {
    position: relative !important;
}
.u-centered-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media print {
    body {
        background-color: initial;
    }
    .main-wrap {
        padding: 20px;
        margin-left: 0;
    }
    .page-content,
    .page-content.calc-price-info {
        width: 100%;
        max-width: 100%;
    }
    .main-nav, .page-head, .section__basic, .section__option,
    .section__report .btn {
        display: none;
    }
    .section__report {
        border: none;
        box-shadow: none;
        position: initial;
        max-width: 100%;
    }
    .section__report .section-body {
        padding: 20px;
        overflow-y: initial;
    }
    .section__report .form-wrap.measure__won {
        display: none;
    }
    .section__report .custom-price-for-print {
        display: block;
    }

    .calc-price-info .section__report .section-head h2 {
        display: block;
    }
    .calc-price-info .section__report .datetime {
        position: absolute;
        right: 20px;
        top: calc( 50% - ( 16px / 2 ) );
    }
    .calc-price-info .ck.ck-editor__top {
        display: none;
    }
    .calc-price-info .btn.btn-submit {
        display: none;
    }

}

