﻿.page-card-title {
    background-image: url(../lib/falcon/assets/img/icons/spot-illustrations/corner-4.png);
}

/* 解決 TinyMCE 色彩選擇器位移 Bug */
.tox-dialog__disable-scroll {
    position: unset !important;
}

/* 擋到nav bar */
.navbar-top {
    z-index:1010;
}

.d-contents {
    display:contents;
}


.required:after {
    content: "*";
    color: red;
}


.scroll-fixed {
}

.image-frame {
    position: relative;
}

/*客製化scrollbar--------------------------------------------------------*/

::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 8px;
    border: 4px solid transparent;
    background-clip: content-box;
    background-color: #ccc;
}
    ::-webkit-scrollbar-thumb:hover {
        border-radius: 8px;
        border: 4px solid transparent;
        background-clip: content-box;
        background-color: #888;
    }

/*客製化scrollbar--------------------------------------------------------*/

.figure-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: white;
    max-width: 100%;
    padding: 0.5em;
    margin: 0;
    box-shadow: 0px 1px 4px 0px #ccc;
    border-radius: 0.5em;
    cursor: pointer;
    transition: 0.3s;
    z-index: 0;
}
.cancel-image-icon {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    transform: translate(30%, -30%);
    opacity: 0.7;
    cursor: pointer;
    transition: 0.3s;
}
    .cancel-image-icon:hover {
        opacity: 1;
    }

.crop-image-icon {
    position: absolute;
    right: 40px;
    top: 0;
    z-index: 1;
    transform: translate(30%, -30%);
    opacity: 0.7;
    cursor: pointer;
    transition: 0.3s;
}

    .crop-image-icon:hover {
        opacity: 1;
    }

.image-preview {
    max-height: 100%;
    max-width: 100%;
}

.crop-preview {
    width: 100%;
    height: calc(60vh);
    visibility: hidden;
}

/*JqueryDatatable客製化---------------------------------------------Start*/

.table {
    vertical-align: middle;
}
    .table thead {
        vertical-align: middle;
    }
        .table thead tr th.sorting:before {
            transform:scale(1.5);
            bottom: 52% !important;
        }
        .table thead tr th.sorting:after {
            transform: scale(1.5);
            top: 52% !important;
        }
.table tbody tr {
    cursor: pointer;
}

    .table > :not(caption) > * > * {
        padding: 0.5rem 0.75rem;
    }

/*JqueryDatatable客製化-----------------------------------------------End*/

.choices__button {
    margin-right: 0px !important;
    transform: scale(1.3);
}

.function-row {
    display: flex;
    white-space: nowrap;
}
    .function-row a {
        text-decoration: none;
        padding: 0.2em 0.4em;
    }

.form-header-sticky {
    position: sticky;
    top: 4em;
    z-index: 1005;
}

#navbarVerticalCollapse .nav-link.active {
    background-color: var(--falcon-soft-primary) !important;
    --falcon-text-opacity: 1;
    color: rgba(var(--falcon-primary-rgb), var(--falcon-text-opacity)) !important;
    border-radius: 0.4em;
}

.bg-soft-opacity-primary {
    background-color: rgb(230 239 252 / 30%) !important;
}

.bg-hover {
    transition: 0.2s;
}
    .bg-hover:hover {
        box-shadow: 1px 1px 3px 1px #ddd;
        border-radius: 0.3em;
        background-color: rgb(204 204 204 / 20%) !important;
    }

.card-detail {
    padding: 0.7em 1em;
    box-shadow: 1px 2px 5px 0px #ddd;
    border-radius: 0.3em;
}

.menu-area {
    border-radius: 0.4em;
    box-shadow: 0px 1px 2px 0px #ddd;
}

.dragHandle {
    cursor:pointer;
}

.dynamic-form-field {
    position: relative;
    overflow: hidden;
    padding: 0.7em 1em;
    border-radius: 0.4em;
    box-shadow: 0px 1px 2px 1px #ddd;
}

.dynamic-form-functionArea {
    padding: 0.7em 0.5em;
    border-radius: 0.4em;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.layoutEmpty {
    border-radius: 5px;
    height: 100%;
}
    .layoutEmpty.moved {
        box-shadow: inset 0px 1px 4px 0px #999;
    }

.grid-snap {
    width: 40%;
    border-radius: 4px;
    padding: 2%;
    margin: 1rem 0 0 1rem;
    background-color: #29e;
    color: #fff;
    font-size: 1.2em;
    touch-action: none;
}

.FormLayout {
    min-height: 100%;
    max-height: 100%;
    overflow: auto;
}

#form-modal .modal-dialog {
    max-width: 50vw;
}
#form-modal .modal-content {
}

@media (max-width: 576px) {
    #form-modal .modal-dialog {
        max-width: 96vw;
    }
}

.form-field-optionList {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 50vh;
    max-height: 50vh;
    display: block;
}

.form-field-sign {
    position: absolute;
    top: 0;
    left: 0;
    width: 0.4em;
    height: 100%;
    opacity: 0.5;
}
    .form-field-sign.sign-blue {
        background-color: #27bcfd;
    }
    .form-field-sign.sign-green {
        background-color: #00d27a;
    }
    .form-field-sign.sign-red {
        background-color: #e63757;
    }

    .form-field-sign.sign-yellow {
        background-color: #f5d63e;
    }


/*  */
.image-modal-dialog {
    max-width: max-content !important;
}

.image-modal-body {
    display: flex;
}

    .image-modal-body img {
        object-fit: contain;
    }
    
.option-span {
    padding: 0.2em 0.5em;
    box-shadow: 0 1px 2px 1px #ccc;
    border-radius: 0.3em;
    margin-right: 0.5em;
    cursor: default;
    white-space: nowrap;
    line-height: 2.2em;
}

