﻿body {
    padding: 1em;
    margin: 0;
    font-size: 0.875em;
}

.hidden {
    display:none !important;
}

.loading-state {
    cursor: wait;
}
.loading-state .container {
    visibility:hidden;
}
.loading-state:before {
    content: '';
    position: absolute;
    background-color: #fff;
    opacity: 1;
    height: 100%;
    width: 100%;
    z-index: 9999;
    top: 0;
}
.loading-state:after {
    content: 'Loading...';
    width: 100%;
    color: #111;
    z-index: 999999;
    position: absolute;
    text-align: center;
    margin: 0 auto;
    height: 30px;
    top: 20%;
    bottom: auto;
    left: 0;
    right: 0;
}

.list-group-item:hover {
    background-color: #eee;
}

a.loading .fa {
    -webkit-animation: fa-spin 2s infinite linear;
    animation: fa-spin 2s infinite linear;
}

    a.loading .fa::before {
        content: "\f1ce";
    }

.treeviewjs-custom [data-selected="true"] {
    background-color: transparent !important;
    color: inherit !important;
}

span.tree-appender {
    float: right;
    vertical-align: middle;
    cursor: pointer;
    text-align: right;
}

.hidden {
    display: none !important;
}

.full-content {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    flex: 0 0 100%;
}

.select2-selection {
    min-height: 35px;
    align-self: center;
}

    .select2-selection > span {
        padding-top: 0.2em;
    }

.select2-selection__arrow {
    top: 0.3em !important;
}

.navbar-nf-sidebar {
    padding: 0;
}

    .navbar-nf-sidebar .nav-link {
        width: 100% !important;
        border-bottom: solid 1px #eee;
    }

        .navbar-nf-sidebar .nav-link a {
            font-size: 1em;
            transition: background-color linear 1s;
        }

.nav-link.active {
    background-color: rgba(137, 207, 255, 0.5);
    color: #fff;
}

    .nav-link.active a {
        color: #111;
    }

.form-control {
    border-color: #aaa !important;
}

.table thead tr:last-child th {
    border-bottom: solid 1px #aaa;
}

.table tbody tr {
    cursor: pointer;
}

    .table tbody tr:hover td {
        background: #ccc;
    }

.table a.btn-link {
    padding:0 !important;
}
.table a.btn-link:not(:last-child){
    margin-right:1em;
}
.table th {
    border-top: 0;
}

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

table.nf-table p.text-ellipsis {
    max-width: 20em;
}

.alert-dismissible .close {
    top: -0.15em;
}

.nf-alert-close-postion {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
}

.nf-table tbody:empty {
}

    .nf-table tbody:empty::after {
        content: "No items available.";
        width: 100%;
        position: absolute;
        padding: 0.5em 0;
        text-align: center;
        margin: 0 -20px;
        color: #721c24;
    }

.card-body {
    min-height: 300px;
}

.treeviewjs .gj-list-bootstrap {
    display: grid;
    grid-template-columns: 33.33333333333333% 33.33333333333333% 33.33333333333333%;
}

.list-group-item > [data-role="wrapper"] + ul {
    display: block;
}

.nf-date-picker {
    border: 1px solid #ced4da;
    padding: .375rem .75rem;
    color: #495057;
}

.nf-date-picker {
    padding-right: 40px;
}

    .nf-date-picker + i.gj-icon {
        bottom: 0;
        margin: auto;
        max-height: 24px;
        right: .75rem;
    }

/*Editor Js*/
.ce-example {
    /*font-size: 16.2px;*/
}

.ce-example__header {
    border-bottom: 1px solid #E8E8EB;
    height: 50px;
    line-height: 50px;
    display: flex;
    padding: 0 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

    .ce-example__header a {
        color: inherit;
        text-decoration: none;
    }

.ce-example__header-logo {
    /*font-weight: bold;*/
}

.ce-example__header-menu {
    margin-left: auto;
}


    .ce-example__header-menu a {
        margin-left: 20px;
    }

.ce-example__content {
    max-width: 1100px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ce-example__content--small {
    max-width: 500px;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    padding: 0 15px;
}

.ce-example__output {
    background: #1B202B;
    overflow-x: auto;
    padding: 0 30px;
}

.ce-example__output-content {
    max-width: 650px;
    margin: 30px auto;
    color: #ABADC3;
    /*font-family: 'PT Mono', Menlo, Monaco, Consolas, Courier New, monospace;
    font-size: 13.3px;*/
}

    .ce-example__output-content:empty {
        display: none;
    }

.ce-example__button {
    display: block;
    margin: 50px auto;
    max-width: 180px;
    background: #4A9DF8;
    padding: 17px 30px;
    box-shadow: 0 6px 4px -4px rgba(137, 207, 255, 0.77);
    cursor: pointer;
    border-radius: 31px;
    color: #fff;
    /*font-family: 'PT Mono', Menlo, Monaco, Consolas, Courier New, monospace;*/
    text-align: center;
}

    .ce-example__button:hover {
        background: #3D8DE5;
    }

.ce-example__output-footer {
    padding: 30px 0;
    /*font-size: 14.2px;*/
    letter-spacing: 0.3px;
    text-align: center;
}

    .ce-example__output-footer a {
        color: #fff;
        text-decoration: none;
    }


/**
 * JSON highlighter
 */
.sc_attr {
    color: rgb(148, 162, 192);
}

.sc_key {
    color: rgb(190, 213, 255);
}

.sc_toolname {
    color: rgb(15, 205, 251);
}

.sc_tag {
    color: rgb(4, 131, 216);
}

.sc_bool {
    color: rgb(247, 60, 173);
}

.ce-example .ce-block:first-of-type h2.ce-header {
    /*font-size: 50px;*/
}

.ce-example h2.ce-header {
    /*font-size: 30px;*/
}

.ce-example h3.ce-header {
    /*font-size: 24px;*/
}

.ce-example h4.ce-header {
    /*font-size: 18px;*/
}

.ce-toolbar__actions {
    position: relative;
    top: 0;
}

.ce-toolbar__plus {
    margin-top: 0.1em;
}

.cdx-block {
    cursor: text;
    min-height: 30px;
    padding: 0.6em 0 0.3em;
}

.cdx-input {
    top: 10px;
    position: relative;
}

.codex-editor.readonly .ce-block__content {
    margin: 0;
    max-width: 100%;
}

div[class*="__caption"] {
    min-height: 30px;
    padding: 1.5em 0.50em 0;
}

.cdx-simple-image__caption[contentEditable="true"][data-placeholder]:empty::before {
    top: 0.2em;
}

.codex-editor.readonly > .ce-toolbar,
.codex-editor.readonly > .ce-inline-toolbar,
.codex-editor.readonly > .ce-conversion-toolbar,
.codex-editor.readonly > .codex-editor-overlay {
    display: none !important;
}

.codex-editor.readonly .ce-block--focused, .codex-editor.readonly .ce-block--selected, .codex-editor.readonly .ce-block--selected .ce-block__content {
    background: inherit;
}

.codex-editor.readonly .cdx-input {
    border: 0 !important;
    box-shadow: none !important;
}

.codex-editor.readonly > .codex-editor__redactor {
    padding-bottom: 0 !important;
}

.img-preview-container {
    padding: 15px;
    background-color: #eee;
    border: dashed 1px #ccc;
    min-height: 150px;
    position: relative;
}

    .img-preview-container::before {
        content: "Image Preview";
        color: #fff;
        /*font-weight: bold;*/
        text-transform: uppercase;
        height: 30px;
        position: absolute;
        width: 100%;
        left: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        z-index: 1;
        text-align: center;
    }

    .img-preview-container img {
        position: relative;
        z-index: 9;
        max-width: 100%;
    }

.treeviewjs ul, .treeviewjs ul > li {
    margin-top: 0;
}
/*//Editor Js*/
@media all and (max-width: 730px) {
    .ce-example__header-menu {
        margin-left: 0;
        margin-top: 10px;
        flex-basis: 100%;
        /*font-size: 14px;*/
    }

        .ce-example__header-menu a {
            margin-left: 0;
            margin-right: 15px;
        }

    .gj-list-bootstrap {
        display: block;
    }

    .ce-example__header,
    .ce-example__content {
        padding: 0 20px;
    }
}

@media all and (max-width: 600px) {
    .gj-list-bootstrap {
        display: block;
    }
}

.nf-date-picker + span[role="right-icon"] {
    position: absolute;
    right: 0;
    border: 0;
    outline: none;
    border-radius: 0 0;
    box-shadow: none;
    z-index: 9;
}

    .nf-date-picker + span[role="right-icon"] button {
        box-shadow: none;
        border: 0;
        height: 2.5rem;
        display: table-cell;
        line-height: 1;
    }

.custom-file-button {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-block;
}

.custom-file-button input {
    position: absolute;
    font-size: 50px;
    opacity: 0;
    right: 0;
    top: 0;
    cursor:pointer;
}
.file-item {
    display: inline-flex;
    max-width: 180px;
    margin-top: 0.3em;
    margin-bottom: 0;
    margin-right: 0.3em;
    margin-left:0;
}
.file-item p {
    margin:0;
    font-style:italic;
    font-size:12px;
}
[hover-alt] {
    position:relative;
    cursor:pointer;
}
[hover-alt]:hover::before {
    content: attr(hover-alt);
    position: absolute;
    bottom: 100%;
    color: #fff;
    z-index: 9;
    display: block;
    width:100%;
    font-size: 12px;
    overflow: visible;
    background: #111;
    text-align: center;
    padding: 5px;
}
.d-inline-block {
    display: inline-block !important;
    width: auto !important;
}
.nf-date-picker-wrapper {
    display: inline-block !important;
}
.nf-date-picker-wrapper:not(:last-child){
    margin-right:10px;
}
.input-group.nf-date-picker-wrapper .input-group-append[role="right-icon"] {
    position: absolute;
    right: 0;
    border: 0;
    background: transparent;
    top: 1px;
    box-shadow: none;
    z-index: 9;
}
.nf-date-picker-wrapper input, .no-radius {
    border-radius: 0 !important;
}
.input-group.nf-date-picker-wrapper .input-group-append[role="right-icon"] button {
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
}
.gj-datepicker .fa-calendar {
    color:#999 !important;
}
.news-item.viewed {
    opacity : 0.3;
}
.news-item-container {
    padding:1.5em;
    border:solid 1px #eee;
}
.news-feed-item .media h4 {
    word-wrap: anywhere;
    word-break: break-all;
}
.search-control-container {
    background-color: #eee;
    padding: 15px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
}
.search-control-container .input-group-text{
    background-color:transparent !important;
}
.list-view .news-feed-item .media {
    display: block;
}
.list-view .news-feed-item .media > a, .list-group .news-feed-item .media > .media-body {
    display: inline-block;
    vertical-align: top;
}
.list-view .news-feed-item .media > a {
    margin-bottom: 1em;
}
.border-radius {
    border-radius:6px;
}

#table-post {
    width: 100%;
    border-collapse: collapse;
}

#table-post td:nth-of-type(2) {
    text-align: left;
}

#table-post td:not(:nth-of-type(1)){
    text-align:center;
}
.nf-table .btn-link {
    border: 0 !important;
    box-shadow: none;
    font-weight: normal;
    font-style: normal;
}
.table_pagination .btn {
    color: #fff !important;
    font-weight: normal;
    font-style: normal;
    padding: .25rem .5rem !important;
}
.table_pagination .btn-secondary {
    background: #6c757d !important;
}
#table-post td:nth-of-type(2) {
    text-align:left;
}
.form-fixed-label > div[class*="col"]:first-child .col-form-label, .form-fixed-label .btn-control {
    max-width: 125px;
    min-width: 125px;
    width: 125px;
}
.form-fixed-label > div[class^=col] {
    margin-bottom:5px;
}
.form-control {
    border-radius: 0;
}
#search.form-row {
    margin-right: -5px !important;
    margin-left: -5px !important;
    width:100%;
}
[data-role="control"] {
    padding: 0px 10px;
    align-items: center;
    display: flex;
    align-self: center;
    margin: 10px 0 0 0;
}
[data-role="control"] a {
    padding: 5px;
}
.navbar-nf-sidebar > li {
    width: 100% !important;
}
/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media only screen and (max-width: 768px), (min-device-width: 768px) and (max-device-width: 1024px) {
    /* Force table to not be like tables anymore */
    #table-post, #table-post thead, #table-post tbody, #table-post th, #table-post td, #table-post tr {
        display: block;
        border-bottom: solid 1px #eee;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    #table-post thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }


    #table-post td {
        /* Behave  like a "row" */
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: center !important;
    }

    #table-post td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: center;
    }
   
    /*
Label the data
*/
    #table-post td:nth-of-type(1):before {
        content: "ID";
    }

        #table-post td:nth-of-type(2):before {
            content: "Subject";
        }

        #table-post td:nth-of-type(3):before {
            content: "Status";
        }

        #table-post td:nth-of-type(4):before {
            content: "Posted Date";
        }

        #table-post td:nth-of-type(5):before {
            content: "Posted By";
        }

        #table-post td:nth-of-type(6):before {
            content: "Is Archived";
        }

        #table-post td:nth-of-type(7):before {
            content: " ";
        }
        #table-post .text-ellipsis{
            overflow:visible;
            text-overflow:clip;
            word-wrap:break-word;
            word-spacing:normal;
            word-break:break-all;
            white-space:pre-wrap;
        }
    .search-control-container .input-group > .d-inline-block {
        margin-bottom: 0.5em;
        min-width: 100px;
    }
    #listOfPost > .col-md-3 {
        max-width: 20%;
        -ms-flex: 0 0 20%;
        -webkit-flex: 0 0 20%;
        flex: 0 0 20%;
    }
    .form-fixed-label .col-form-label, .form-fixed-label .btn-control {
        max-width: 100%;
        min-width: 100%;
        width: 100%;
    }
}