/*  layout */
    #app {
        position: relative;
        width: 100%;
    }

    .flex-between {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

/*  floating-dock */
    .floating-dock {
        position: fixed;
        bottom: 30px;
        left: 50%;
        z-index: 9;
        background-color: rgba(255,255,255,0.8);
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);

        transform: translate(-50%, 150px);

        -webkit-transition-duration: .75s;
        transition-duration: .75s;

        -webkit-transition-timing-function: cubic-bezier( 0.215, 0.610, 0.355, 1.000 );
        transition-timing-function: cubic-bezier( 0.215, 0.610, 0.355, 1.000 );

        -webkit-transition-property: -webkit-transform, background;
        transition-property: transform, background;
    }

    .floating-dock.on {
        transform: translate(-50%, 0);
    }

/*  chosen */
    .chosen-container-single .chosen-single {
        height: 30px;
        border-radius: 3px;
        border: 1px solid #CCCCCC;
        text-align: left;
    }
    .chosen-container-single .chosen-single span {
        padding-top: 2px;
    }
    .chosen-container-single .chosen-single div b {
        margin-top: 2px;
    }
    .chosen-results {
        text-align: left;
    }
    .chosen-container * {
        font-family: var(--font-gothic);
        font-size: small
    }
    .chosen-single {
        position: static !important
    }

/*  ckeditor custom */
    .ck-content hr, .read hr {
        width: 30px;
        margin: 2rem auto !important;
        border-top: 1px solid var(--red-light) !important;
        clear: both !important;
    }

    .ck-horizontal-line {
        clear: both;
        width: 100%;
    }

    @media (min-width: 768px) {
        .ck-content figure.image.image-style-align-right,
        figure.image.image-style-align-right {
            float: right;
            width: auto !important;
            max-width: 50% !important;
            margin-left: 1rem !important;
            clear: both;
        }

        .ck-content figure.image.image-style-align-left,
        figure.image.image-style-align-left {
            float: left;
            width: auto !important;
            max-width: 50% !important;
            margin-right: 1rem !important;
            clear: both;
        }

        .ck-content figure.image.image-style-align-center,
        .ck-content figure.image.image-style-align-center img,
        figure.image.image-style-align-center img {
            width: auto !important;
            max-width: auto !important;
        }

        figure.image.image-style-align-center {
            max-width: 50%;
            margin-left: auto;
            margin-right: auto;
        }
    }

    /*  default table */
    figure table {
        width: auto !important;
        border: double 1px var(--gray-500)
    }
    figure table th {
        background-color: var(--gray-100);
        border-width: 1px !important
    }
    figure table th,
    figure table td {
        padding: .5rem !important;
        border: solid 1px var(--gray-300);
        vertical-align: middle;
    }

    figure table p {
        margin: 0;
        line-height: 1.3
    }
    figure table figure.image {
        margin: 0;
    }

    .ck-content .image.image_resized img,
    figure.image img {
        width: auto !important;
        max-width: 100%;
        /* max-height: 80vh; */
    }

    /*  custom-table1 - fixed, 100% */
    .custom-table1 table {
        width: 100% !important;
        table-layout: fixed;
    }

    /*  custom-table2 - stripped */
    .custom-table2 table tr:nth-of-type(odd) {
        background-color: rgba(0,0,0,.05);
    }

/*  files */
    .files-upload-form-wrap {
        display: flex;
        flex-wrap: wrap;
    }

    .files-upload-form-wrap input {
        flex: 1 1 auto;
        width: 1%;
        min-width: 24%;
        margin: 1px;
    }

    .files-upload-btn {
        font-size: small;
        display: inline-flex;
        align-items: center;
    }

    .files-upload-btn span {
        margin-right: .25rem;
    }

    .files-edit-form {
        list-style: none;
        padding: 0;
        margin: 0 0 1rem 0;
    }

    .files-edit-form li, .files-list li {
        padding: 0;
        margin: 1rem 0;
        border: none;
        background-color: var(--gray-100);
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
        border-radius: .5rem;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .files-edit-form li ._file_thumb {
        background-color: var(--black);
        text-align: center;
    }

    .files-edit-form li ._file_thumb img,
    .files-edit-form li ._file_thumb video {
        max-width: 100%;
        max-height: 250px;
    }

    .files-edit-form li input[type="text"],
    .files-edit-form li textarea {
        border: none;
        border-bottom: solid 1px var(--gray-200) !important;
        background-color: #fff !important;
        padding: .5rem;
        transition: border .3s;
    }

    .files-edit-form li input[type="text"]:focus,
    .files-edit-form li textarea:focus {
        border: solid 1px var(--blue) !important;
        transition: border .3s;
    }

    ._file_btns {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .5rem;
    }

    ._file_btns ._r {
        white-space: nowrap;
    }

    ._file_btns select {
        border-color: var(--gray-300);
    }

    ._file_btns span {
        margin: 0 .5rem;
        font-size: small;
    }

    ._file_btns .btn {
        border-radius: 50%;
        width: 42px;
        height: 42px;
    }

    .files-list {
        list-style: none;
        margin: 0;
        padding: 0;
        padding-top: 1rem;
    }

    .files-list li {    /* .files-edit-form li */
        word-break: break-all;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .files-list li ._file_thumb {
        background-color: var(--black);
        text-align: center;
    }

    .files-list ._file_thumb img,
    .files-list ._file_thumb video {
        max-width: 100%;
        max-height: 250px;
    }

    .files-list ._description {
        padding: 1rem 1rem 0 1rem;
    }

    .files-list ._file_info a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        line-height: 1.2;
        font-size: small;
        font-weight: 600;
        padding: 0;
        margin: 1rem;
        border: solid 1px var(--gray-300);
        border-radius: 4px;
        color: var(--black);
        transition: all .5s;
    }

    .files-list ._file_info a:hover {
        background-color: var(--black);
        color: #fff;
        transition: all .5s;
    }

    .files-list ._file_info ._name {
        padding: .25rem .5rem;
    }

    .files-list ._file_info ._right {
        padding: .25rem .5rem .25rem 0;
        text-align: center;
    }

    .files-list ._file_info ._right span {
        display: block;
    }

    .files-list ._file_info ._size {
        color: var(--gray-600);
        font-size: x-small;
        font-family: var(--font-monospace);
        font-weight: 300;
        margin: 0 .25rem;
        white-space: nowrap;
    }

    .files-list ._file_info ._down {
        white-space: nowrap;
        font-size: x-small;
        font-weight: 300;
    }

    @media (min-width: 576px) {
        .files-edit-form, .files-list {
            display: grid;
            grid-gap: 1rem;
            grid-template-columns: repeat(2, 1fr);
        }

        .files-edit-form li, .files-list li {
            margin: 0;
        }
    }

    @media (min-width: 768px) {
        .files-edit-form, .files-list {
            grid-template-columns: repeat(3, 1fr);
        }
    }

/*  footnote */
    .footnote, .footnote-right {
        font-family: var(--font-gothic);
        font-size: x-small;
        color: #6c757d;
        position: relative;
        margin: 0;
        margin: 1rem 0;
        padding: .5rem;
        list-style: none;
    }
    .footnote li, .footnote-right li {
        padding: .2rem 0;
        margin: 0;
        line-height: 1em;
    }
    .footnote::before, .footnote-right::before {
        width: 30%;
        border-top: 1px solid #6c757d;
        position: absolute;
        content: '';
        top: 0
    }
    .footnote::before {
        left: 0
    }
    .footnote-right {
        text-align: right;
    }
    .footnote-right::before {
        right: 0
    }
    .footnote label, .footnote-right label {
        color: var(--orange);
        font-weight: 700
    }

/*  system */
    .black-gradient {
        background: -moz-linear-gradient(top, rgba(0,0,0,0) 35%, rgba(0,0,0,0.75) 100%);
        background: -webkit-linear-gradient(top, rgba(0,0,0,0) 35%,rgba(0,0,0,0.75) 100%);
        background: linear-gradient(to bottom, rgba(0,0,0,0) 35%,rgba(0,0,0,0.75) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#a6000000',GradientType=0);
    }

    .black-gradient-topDown {
        background: -moz-linear-gradient(top, rgba(0,0,0,0.35) 25%, rgba(0,0,0,0) 100%);
        background: -webkit-linear-gradient(top, rgba(0,0,0,0.35) 25%,rgba(0,0,0,0) 100%);
        background: linear-gradient(to bottom, rgba(0,0,0,0.35) 25%,rgba(0,0,0,0) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a6000000', endColorstr='#00000000',GradientType=0);
    }

    /*input:focus, textarea:focus, .form-control:focus {
        outline: none !important;
        box-shadow: none;
    }*/

    .overlay {
        position: fixed;
        z-index: 9;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(0,0,0,0.7);
        animation: fadeIn .2s
    }

    .animatable {
        visibility: hidden;
        -webkit-animation-play-state: paused;
        -moz-animation-play-state: paused;
        -ms-animation-play-state: paused;
        -o-animation-play-state: paused;
        animation-play-state: paused;
    }

    .animated {
        visibility: visible;

        -webkit-animation-fill-mode: both;
        -moz-animation-fill-mode: both;
        -ms-animation-fill-mode: both;
        -o-animation-fill-mode: both;
        animation-fill-mode: both;

        -webkit-animation-duration: 2s;
        -moz-animation-duration: 2s;
        -ms-animation-duration: 2s;
        -o-animation-duration: 2s;
        animation-duration: 2s;

        -webkit-animation-play-state: running;
        -moz-animation-play-state: running;
        -ms-animation-play-state: running;
        -o-animation-play-state: running;
        animation-play-state: running;
    }

    span.keyword {
        border-bottom: solid 1px var(--red-light);
        background-color: var(--yellow-light);
        color: #333;
    }

    .between {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .btn, .btn:hover {
        transition: all .5s;
    }

    .btn-light {
        border-color: var(--gray-200);
        background-color: var(--gray-200);
    }

    .btn-light:hover {
        background-color: var(--gray-300);
    }

    .no-transition {
        -webkit-transition: none !important;
        -moz-transition: none !important;
        -o-transition: none !important;
        transition: none !important;
    }

    .alert ul {
        margin: 0;
    }

/*  msg */
    #msg {
        position: fixed;
        z-index: 9996;
        width: calc(100% - 1rem);
        top: .5rem;
        left: .5rem;
        border-radius: .75rem;
        padding: 1.5rem;
        background-color: rgba(0, 0, 0, 0.8);
        color: #fff;
        animation: slideInDown .2s;
        transition: transform .2s linear;
    }

    #msg.off {
        transform: translateY(-150%);
        transition: transform .2s linear;
    }

    @media (min-width: 576px) {
        #msg {
            max-width: 520px;
            left: 50%;
            margin-left: -260px;
        }
    }

/*  popWin */
    .popWin {
        z-index: 9995 !important;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .popWin.warning {
        align-items: center;
    }

    .popWin.off {
        display: none;
    }

    .popWin-content {
        width: 100%;
        height: auto;
        max-height: 90%;
        background-color: rgba(255, 255, 255, 0.9);
        padding: 0;
        border-radius: .5rem .5rem 0 0;
        animation: slideInUp;
        animation-duration: .5s;
        overflow: auto;
    }

    .popWin.warning .popWin-content {
        margin: 1rem;
        border-radius: .5rem;
    }

    .popWin.off .popWin-content {
        animation: slideOutDown .3s;
    }

    .popWin-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .5rem 1rem;
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: .5rem .5rem 0 0;
    }

    .popWin-body {
        line-height: 1.2;
        background-color: #fff;
    }

    .popWin-footer {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .popWin-content button.close {
        border: none;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        background-color: var(--gray-100);
        color: var(--gray-700);
        font-weight: 900;
        padding: 0;
        transition: all 1s ease;
        position: relative;
    }

    .popWin-content button.close:hover {
        background-color: var(--red-dark);
        color: #fff;
    }

    .popWin-content h5 {
        margin: 0;
        font-size: 1.25rem;
        color: var(--black);
        font-weight: 700;
    }

    .popWin-footer {
        padding: .5rem;
    }

    /* image-window */
    .popWin.image-window .popWin-content {
        border-radius: 0;
        position: relative;
        box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
        background-color: transparent;
    }

    .popWin.image-window img {
        max-width: 100%;
        max-height: 90vh;
    }

    .popWin.image-window .popWin-header {
        position: absolute;
        right: 0;
        top: -1.5rem;
    }

    .popWin.image-window .popWin-header,
    .popWin.image-window .popWin-body {
        padding: 0;
    }

    .popWin.image-window .popWin-content button.close {
        color: #fff;
        background-color: rgba(0, 0, 0, 0.9);
        border-color: #fff;
    }

    @media (min-width: 576px) {
        .popWin {
            align-items: center;
        }

        .popWin .popWin-content {
            max-width: 520px;
            width: auto;
            border-radius: .5rem;
            animation: zoomIn;
            animation-duration: .3s;
        }

        .popWin.image-window .popWin-content {
            max-width: 100%;
        }

        .popWin .popWin-body {
            border-radius: .5rem;
        }
    }

    @media (min-width: 768px) {
        .popWin .popWin-content {
            max-width: 720px;
        }
    }

    @media (min-width: 992px) {
        .popWin .popWin-content {
            max-width: 920px;
        }
    }

    @media (min-width: 1200px) {
        .popWin .popWin-content {
            max-width: 1020px;
        }
    }

/*  profile */
    .profile {
        display: flex;
        align-items: center;
        transition: all .5s;
    }

    .profile .profile-icon {
        width: 40px;
        height: 40px;
        font-size: 30px;
        border-radius: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 .25rem 0 0;
    }

    .profile .name {
        font-weight: 400;
    }

    .profile .id {
        color: var(--gray-600);
    }

    /*.profile:hover {
        cursor: pointer;
        transform: scale(1.1);
        transition: all .5s;
    }

    .profile:hover .name {
        color: var(--red-dark);
        transition: all .5s;
    }*/

/*  member-selector */
    .member-selector {
        position: relative;
    }

    .member-selector-result {
        background-color: #fff;
        display: flex;
        flex-wrap: wrap;
    }

    .member-selector-holder {
        border-bottom: dashed 1px var(--gray-300);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        background-color: #fff;
        display: flex;
        flex-wrap: wrap;
    }

    .member-selector-result li {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 1px;
        padding: .25rem;
        white-space: nowrap;
        line-height: 1;
    }

    .member-selector-result li span.group {
        margin-left: .25rem;
        white-space: normal;
    }

    .member-selector-holder li {
        display: flex;
        align-items: center;
        margin: .25rem .25rem .25rem 0;
        box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
        border-radius: 40px;
        padding: 2px 2px 2px 2px;
    }

    .member-selector-holder li a {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: .25rem;
        line-height: 1;
        color: var(--gray-500);
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 50%;
        background-color: var(--gray-100);
    }

    .member-selector-holder li a:hover {
        color: var(--red-dark);
    }

    .member-selector-result li:hover {
        outline: solid 1px var(--red-dark);
        cursor: pointer;
    }

    .member-selector-holder li .profile-icon,
    .member-selector-result li .profile-icon {
        width: 40px;
        height: 40px;
        font-size: 40px;
        background-color: var(--gray-700);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: .5rem;
    }

/*  seo-header */
    header#seo-header {
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 102;
    }

    header#seo-header h2 {
        text-align: center;
        font-family: var(--font-title);
        font-size: calc(1.5rem + 1.5vw);
        margin: 2rem 0;
    }

    header#seo-header button#seo-toggle {
        border-radius: 50%;
        width: 30px;
        height: 30px;
        margin: 0 0 1rem 0.5rem;
        background-color: var(--red);
        font-size: 0.8em;
        line-height: 30px;
        padding: 0;
    }

    header#seo-header section.seo-form {
        overflow-y: auto;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.9);
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        padding: 0;
        color: #fff;
        height: 100%;

        transform: translateY(100%);
        transition: transform .2s linear
    }

    header#seo-header section.seo-form.on {
        transform: translateY(0);
    }

    header#seo-header section.seo-form label {
        display: block;
        font-family: var(--font-gothic);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--gray-700);
        line-height: 1;
        margin-top: 1rem;
        margin-bottom: .25rem;
    }

    header#seo-header section.seo-form label input {
        margin: 0 .5rem;
    }

    header#seo-header section.seo-form input[type=text],
    header#seo-header section.seo-form input[type=file],
    header#seo-header section.seo-form textarea {
        display: block;
        width: 100%;
        background: rgba(0,0,0,0.8);
        color: #fff;
        border: solid 1px rgba(255,255,255,0.15);
        padding: .5rem;
    }

    header#seo-header section.seo-form .input-group input[type=text] {
        flex: 1 1 auto;
        width: 1%;
    }

    header#seo-header section.seo-form .input-group .input-group-text {
        border-radius: 0;
        background-color: rgba(0,0,0,0.8);
        color: var(--gray-700);
        border: solid 1px rgba(255,255,255,0.15);
    }

    header#seo-header section.seo-form .item {
        margin-top: 1rem;
    }

    header#seo-header img.seo-image {
        max-width: 100%;
        max-height: 240px;
        margin: 1rem;
    }

    header#seo-header section.seo-form .canonical {
        margin-bottom: 2rem;
    }

    header#seo-header section.seo-form .btn-group {
        display: flex;
    }

    @media (min-width: 768px) {
        header#seo-header section.seo-form form {
            max-width: 720px;
            margin-left: auto;
            margin-right: auto;
        }

        header#seo-header section.seo-form .btn-group {
            display: inline-flex;
            justify-content: center;
        }
    }

/*  msg-block */
    main.msg-block {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #fff;
        font-size: 1.5rem;
    }

    main.msg-block code {
    }

    main.msg-block p {
        font-size: 1.25rem;
    }

/*  text-row */
    [class^="text-row-"],
    [class*="text-row-"] {
        text-overflow: ellipsis;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical
    }

    .text-row-1 {
        -webkit-line-clamp: 1;
        /*height: 2rem*/
    }

    .text-row-2 {
        -webkit-line-clamp: 2;
        /*height: 3rem*/
    }

    .text-row-3 {
        -webkit-line-clamp: 3;
        /*height: 4.5rem*/
    }

    .text-row-4 {
        -webkit-line-clamp: 4;
        /*height: 6rem*/
    }

    .text-row-5 {
        -webkit-line-clamp: 4;
        /*height: 7.5rem*/
    }

    .text-row-6 {
        -webkit-line-clamp: 6;
        /*height: 9rem*/
    }

/*  manage-lnk */
    button.manage-lnk {
        position: absolute;
        z-index: 9;
        background-color: var(--red-dark-transparent);
        color: #fff;
        background-color: var(--c-point);
        padding: 0 .5rem;
        border-radius: 1rem;
        border: solid 1px var(--c-point);
        transition: all 0.3s ease;
        top: 10px;
        left: 10px;
    }

    button.manage-lnk:hover {
        background-color: var(--c-primary);
        border-color: var(--c-primary);
    }

/*  doc-edit */
    #doc-btn {
        position: fixed;
        z-index: 98;
        bottom: 1.25rem;
        left: 50px;
    }

    #doc-btn a {
        border-radius: 1rem;
        background-color: var(--red);
        color: #fff;
        font-size: 0.7em;
        line-height: 1;
        padding: .5rem;
    }
