/* Fonts */
/* OPENSANS */
@font-face {
    font-family: 'OpenSans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("/mas/jakarta.faces.resource/fonts/open_sans/OpenSans-Light.woff.xhtml?ln=layout") format('truetype');
}

@font-face {
    font-family: 'OpenSans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/mas/jakarta.faces.resource/fonts/open_sans/OpenSans-Regular.woff.xhtml?ln=layout") format('truetype');
}

@font-face {
    font-family: 'OpenSans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/mas/jakarta.faces.resource/fonts/open_sans/OpenSans-Medium.woff.xhtml?ln=layout") format('truetype');
}

@font-face {
    font-family: 'OpenSans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/mas/jakarta.faces.resource/fonts/open_sans/OpenSans-SemiBold.woff.xhtml?ln=layout") format('truetype');
}

@font-face {
    font-family: 'OpenSans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/mas/jakarta.faces.resource/fonts/open_sans/OpenSans-Bold.woff.xhtml?ln=layout") format('truetype');
}

body{
    margin: 0;
    min-height: 100%;
    min-width: 720px;
    font-size: 14px;
    color: var(--text-color);
    background-color: var(--body-bg);
}

body .ui-tag .ui-tag-value {
    padding: 0;
}

.noshadow{
    .ui-blockui-content{
        box-shadow: none;
    }

}

body .tag-link {
    padding:0;
    height:32px;
    line-height: 32px;
    margin-top: 2px;
    display: inline-block;

    .ui-tag {
        height: 32px;
        vertical-align: top;
    }

    &:hover {
        background: var(--hover-bg);
        border-radius:4px;
    }
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

body .ui-menu.ui-menubar>.ui-menu-list>.ui-menuitem.ui-menubar-end {
    float: right;
    margin-right: .5rem;
    margin-top: .2rem;
}

h1 {
    font-size: 1.3rem;
    margin-left: 1rem;
}

body, body .ui-widget {
    font-family: OpenSans,Verdana,Arial,sans-serif !important;
    font-size: 14px;
}

.description {
    color: #707070;
    line-height: 1.66666666666667;
    display: block;
    font-size: 12px;
}

.footer-content {
    margin: auto;
    padding: 7px 14px;
    box-sizing: border-box;
    text-align: center;
    color: var(--icon-gray);
}

.overflow-dotted{
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.login-body {
    font-size: 1em;

    .user-card {
        padding: 0 !important;
        border-radius: 16px;
        background-color: var(--left-filter-bg);
        min-width: 70%;
        max-width: 400px;

        .ui-card-body{
            padding-bottom: 0;
        }
    }

    .ui-widget {
        font-size:14px;
    }

    .ui-card {
        padding: 2em;
    }

    & .ui-input-icon-left > i{
        z-index: 999;
    }

    .ui-button {
        font-size: 1.1em;
    }

    .ui-inputfield {
        width: 100%;
    }

    .ui-password {
        width: 100%;
        > .ui-inputfield {
            padding-left: 2rem;
        }
    }
}

/* dialog framework */
.df-body {
    min-height:initial;
    min-width:initial;
    margin: .5rem .5rem 0 .5rem;
    background-color: var(--dialog-bg);
    .df-content {
        padding: 0 1rem 4rem 1rem;
    }

    .df-footer {
        border-top: 1px solid rgba(0, 0, 0, 0);
        background-color: var(--dialog-bg);
        padding: 0.5rem 1rem 0.5rem 1rem;
        width: 100%;
        position: fixed;
        bottom: 0;

        .text-left {
            button {
                margin: 0 0.5rem 0 0;
            }
        }
        .text-right {
            button {
                margin: 0 0 0 0.5rem;
            }
        }
    }
}

/* dialog footer divider */
.df-footer,
.ui-dialog-footer {
    position: relative;
    &:before {
        content: "";
        background: var(--divider-color);
        height: 1px;
        width: calc(100% - 40px);
        display: block;
        top: 0;
        left: 20px;
        position: absolute;
    }
}

.col-toggler {
    width: 50px !important;
    padding: 0 !important;
}

.fields {
    box-sizing: border-box;

    &.label-top {
        .field-group {
            > .label, > label {
                float: none;
                margin-left: 0;
                display: block;
                width: 100%;
                padding: 4px 0 4px 0;
            }

            .value {
                display: inline-block;
                max-width: 100%;
                position: relative;
                vertical-align: top;
                word-wrap: break-word;
                word-break: break-word;
                white-space: normal;
            }
        }
    }

    &.label-left {
        .field-group {
            .value {
                &.ui-inputfield {
                    padding: 7.5px;
                }
            }
        }

        .field-group {
            padding-left: 115px;

            > .label, > label {
                float: left;
                margin-left: -115px;
                padding: 3px 0;
                position: relative;
                width: 100px;
            }

            .value {
                display: block;
                padding: 3px 5px;
                word-wrap: break-word;
                word-break: break-word;
                min-height: 27px;
                white-space: normal;
            }
        }
    }

    .field-group {
        box-sizing: border-box;
        clear: both;
        padding: 2px 0;
        position: relative;
        margin: 1px 0;
        width: 100%;


        > .label, > label {
            text-align: left;
            word-wrap: break-word;
            font-weight: 600;
        }

        > .value {
            box-sizing: border-box;

            &.ui-inputtextarea {
                white-space: pre-wrap;
            }
        }
    }

    .max-field {
        max-width: 100% !important;
        width: 100% !important;

        .ui-inputfield {
            width: 100%;
            box-sizing: border-box;
        }
    }

    &.label-w115 {
        .field-group {
            padding-left: 130px;

            > .label, > label {
                margin-left: -130px;
                width: 115px;
            }
        }
    }

    &.label-w150 {
        .field-group {
            padding-left: 165px;

            > .label, > label {
                margin-left: -165px;
                width: 150px;
            }
        }
    }

    &.label-w200 {
        .field-group {
            padding-left: 215px;

            > .label, > label {
                margin-left: -215px;
                width: 200px;
            }
        }
    }
}

.page-title{
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 0;
}

.ui-input-icon-left > .ui-inputfield {
    padding-left: 2rem;
}

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

.justify-center {
    display: flex;
    justify-content: center;
}

body .ui-messages .ui-messages-error ul li {
    display: inline-grid;
}

.ui-linkbutton a {
    text-decoration: none !important;
}