*,
:after,
:before {
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
}

* {
    word-wrap: break-word;
}

body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    font-family: Arial, sans-serif;
    font-size: 12px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

i.mdlCatalogImpExp.material-icons {
    /* TODO! */
    color: inherit;
}

hr {
    margin: initial;
    border-style: solid;
    border-width: 1px 0 0 0;
}

h1,
h2,
h3,
h4 {
    margin: .3rem .2rem;
}

h1 {
    font-size: 1.3rem;
}

h2 {
    font-size: 1.2rem;
}

h3 {
    font-size: 1.1rem;
}

h4 {
    font-size: .9rem;
}

table {
    border-collapse: collapse;
    empty-cells: show;
}

a,
a:hover {
    text-decoration: none;
}

p,
pre,
ul {
    margin: 0;
}

.mdlFormDetailedFillSection pre {
    white-space: wrap;
}

.button,
button,
input,
select,
textarea {
    padding: .25rem .5rem;
    border: 1px solid #dadce0;
    width: 100%;
    border-radius: .5rem;
    color: var(--mdl-default-text-color);
    font-size: 1rem;
    line-height: 1.5rem;
}

input[type=file] {
    padding: 1px .5rem 1px .5rem;
}

textarea {
    margin: 0;
    overflow: hidden;
}

.button,
button,
input[type=button],
input[type=submit] {
    width: auto;
    cursor: pointer;
    border-radius: var(--mdl-default-border-radius);
    -webkit-appearance: none;
    font-weight: bold;
}

input[type=checkbox],
input[type=radio] {
    width: auto;
}

.button:hover,
button:active,
input[type=button]:active,
input[type=submit]:active {
    filter: brightness(.9);
}

select {
    width: 100%;
}

input[readonly] {
    opacity: .3;
}

textarea {
    resize: vertical;
}

label.file {
    border: 1px solid #36505b;
    border-radius: 8px;
    color: #fff;
    display: block;
    padding: .1rem .3rem;
    margin: 0 auto;
}

label.file span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    text-indent: 1.5rem;
    position: relative;
}

label.file span:before {
    content: '';
    background-image: url(../img/file.png);
    background-size: 1rem auto;
    display: block;
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: .1rem;
}

label.file span.empty {
    color: var(--mdl-main-color);
}

pre.debugPre {
    border: solid 1px #ccc;
    text-align: left;
}

.form-container {
    max-width: 770px;
    margin: auto;
}

i.material-icons,
i.fa-solid {
    vertical-align: text-bottom;
}

/*!**************************************   header   **********************************************/
tr.trHeader {
    height: 3rem;
}

tr.trHeader td>div {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 888;
    height: 3rem;
}

#btn-menu i {
    font-size: 2.8rem;
    width: 3rem;
    color: var(--mdl-header-color);
    vertical-align: top;
}

#btn-search i {
    font-size: 2.2rem;
    color: var(--mdl-header-color);
    vertical-align: top;
    padding-top: .4rem;
}

.mdlLogo {
    display: inline-block;
    max-height: 2.4rem;
    max-width: 11rem;
    vertical-align: center;
}

.mdlLogoDefault {
    background-color: var(--mdl-header-color);
    mask: url('/img/logo.svg') no-repeat center / contain;
    -webkit-mask: url('/img/logo.svg') no-repeat center / contain;
    width: 10rem;
    height: 100%;
}

.settings-btn-group {
    float: right;
    display: block;
    position: relative;
    top: 0;
    right: 0;
    padding: .5rem 0;
    height: 100%;
}

.settings-btn-group>button {
    padding: 0;
    background: transparent;
}

.settings-btn-group>button>i {
    height: 1.8rem;
    font-size: 1.8rem;
    line-height: 1.8rem;
    vertical-align: middle;
}

#btn-context-menu i,
#btn-settings-account i {
    color: var(--mdl-header-color);
}

tr td.tdMenu {
    width: 15rem;
    min-width: 15rem;
    background-color: var(--mdl-menu-bg);
    border-right: 1px solid var(--mdl-menu-border);
}

td.tdMenu>div {
    height: calc(100vh - 3rem);
    width: 15rem;
    padding: .5rem .2rem;
    position: fixed;
    z-index: 888;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    background-color: var(--mdl-menu-bg);
}

tr td.tdMenu ul {
    list-style: none;
    padding: 0;
}

tr td.tdMenu ul li {
    box-sizing: border-box;
}

tr td.tdMenu ul li a {
    padding: .2rem 0 .2rem .5rem;
    font-size: 1.1rem;
    display: inline-block;
    width: 12.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
    color: var(--mdl-menu-color);
}

tr td.tdMenu ul li a[id^="sm-root-"] {
    font-size: 1.2rem;
}

.tdBody {
    height: calc(100vh - 5.5rem);
    width: calc(100% - 1rem);
    background-color: var(--mdl-main-box-bg);
    border-radius: 10px;
    padding: 1rem;
    overflow: auto;
}

#tdFooter td {
    font-size: .9rem;
    padding: .75rem .5rem .2rem .5rem;
    color: var(--mdl-menu-color);
}

#tdFooter td a {
    color: var(--mdl-header-color);
}

#tdFooter td p {
    display: inline-block;
}

ul.modList {
    list-style-type: disclosure-closed;
}

.sm-caret {
    cursor: pointer;
    position: absolute;
    top: .1rem;
    /* left: -.2rem; */
    right: .5rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.sm-caret::after {
    content: '▸';
    font-size: 1rem;
    color: var(--mdl-menu-color);
    display: inline-block;
}

.sm-caret-down::after {
    -ms-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

.sm-nested {
    display: none;
    font-size: .9rem;
    margin-left: 5px;
}

.sm-active {
    display: block;
}

.sm-highlight {
    background-color: var(--mdl-menu-hl-bg);
    border-radius: var(--mdl-default-border-radius);
    width: 100%;
    padding: 5px;
}

tr td.tdMenu ul li a.sm-highlight {
    color: var(--mdl-menu-hl-color);
}

ul.smartMenu li {
    position: relative;
    /* text-indent: .3rem; */
}

#msg_div {
    position: fixed;
    pointer-events: none;
    width: 100%;
    max-width: 100%;
    left: 0;
    z-index: 99999;
    display: none;
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 1.5rem;
}

#msg_div a {
    color: #eee;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    top: -.6rem;
}

#msg_div table {
    pointer-events: auto;
    border-radius: .5rem;
    background-color: #9abf18;
    max-width: 80%;
    margin: auto;
}

#msg_div.errorMsg table {
    background-color: #ff00c8;
}

.not-allowed {
    cursor: not-allowed;
}

.not-allowed a {
    pointer-events: none;
}

.highlight a {
    text-decoration: underline;
}

.thumbnail-img {
    max-width: 50px;
}

/**************************************** BREADCRUMB **************************** */
.myBreadcrumb {
    margin: 0;
    position: relative;
    top: -1rem;
    left: -1rem;
    min-height: 2.33rem;
}

.myBreadcrumb>div {
    position: fixed;
    width: calc(100% - 16rem - 4px);
    font-size: 1.2em;
    font-weight: bold;
    z-index: 99;
    white-space: break-spaces;
    /* padding: .3rem 0; */
    background-color: var(--mdl-breadcrumb-bg);
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid var(--mdl-breadcrumb-border);
}

td.breadLeftTd {
    min-width: 37%;
    max-width: 80%;
}

td.breadMiddleTd,
td.breadRightTd {
    font-size: 1rem;
    font-weight: normal;
    vertical-align: middle;
}

td.breadRightTd a {
    padding: .15rem;
}

.myBreadcrumb .add-new {
    position: relative;
    left: .2rem;
    vertical-align: middle;
}

/****************************************   Contextual and right menu  **********************************************/
#context-menu,
#settings-account-menu {
    position: fixed;
    right: 0;
    top: 2rem;
    z-index: 999;
    max-width: 12.5rem;
}

#context-menu a .svg-icon,
#settings-account-menu a .svg-icon {
    margin-right: .3rem;
    vertical-align: top;
    font-size: 1.5rem;
}

#context-menu ul,
#settings-account-menu ul {
    background-color: var(--mdl-context-menu-bg);
    border-bottom: 1px solid var(--mdl-context-menu-border);
    border-left: 1px solid var(--mdl-context-menu-border);
    border-radius: 0 0 0 var(--mdl-default-border-radius);
    margin-top: 1rem;
}

#context-menu ul li,
#settings-account-menu ul li {
    font-weight: bold;
}

#context-menu ul li a,
#settings-account-menu ul li a,
#context-menu ul li a::after,
#settings-account-menu ul li.dl-back::after,
#settings-account-menu ul li a::after {
    color: var(--mdl-context-menu-color);
}

#context-menu ul li a i {
    color: var(--mdl-context-menu-icon);
}

/**************************************** Time filters menu **************************** */
ul.sortableList li {
    position: relative;
}

ul.sortableList li input[type=text] {
    width: calc(100% - 2rem);
}

li.gu-mirror {
    list-style-type: none;
}

li.gu-mirror input[type=text] {
    width: calc(100% - 2rem);
    border-width: 0 0 1px 0;
    border-radius: 0;
}

/*!**************************************   SMART ITEMS  **********************************************/
.smart-item {
    display: inline-block;
    width: 16rem;
    margin: 10px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: -8px -8px 8px rgb(255, 255, 255, .9), 8px 8px 8px rgb(0, 0, 0, .15);
}

.smart-item>tbody>tr:first-child td {
    text-align: center;
    height: 7rem;
    overflow: hidden;
    width: 16rem;
}

.smart-item>tbody>tr:first-child td a {
    color: #fff;
    font-weight: 700;
    display: inline-block;
    padding: 0 1.5rem 0 1.5rem;
    font-size: 1.5rem;
    text-decoration: underline;
    white-space: nowrap;
    max-width: 13rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smart-item>tbody>tr:first-child td div {
    max-width: 16rem;
    max-height: 7rem;
}

.smart-item>tbody>tr:first-child td div img {
    width: 17rem;
    position: relative;
    top: -1rem;
}

.smart-item>tbody>tr:nth-child(2) {
    background-color: #fff;
}

.smart-item>tbody>tr:nth-child(2) td {
    padding: .3rem .4rem .4rem .3rem;
}

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

.smart-item-icon {
    max-width: 1rem;
    max-height: 1rem;
}

.smart-item .form-buttons {
    margin-left: -1rem;
}

/*!**************************************   DATETIMEPICKER  **********************************************/
.dpicker+i,
.tpicker+i,
.dtpicker+i {
    position: absolute;
    padding: .4rem 0 0 0;
    text-indent: -2rem;
    color: var(--mdl-main-color);
}

/*!**************************************  Profile Picture  **********************************************/
.profilePicture {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    /*vertical-align: middle;*/
}

.groupProfilePicture {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    vertical-align: middle;
}

.settingsProfilePicture {
    vertical-align: middle;
    width: 1.8em;
    height: 1.8em;
    border-radius: 50%;
}

#imgDiv {
    text-align: center;
}

#deleteLink {
    white-space: nowrap;
}

/*!**************************************  Summmernote  **********************************************/
.note-editor .note-toolbar .note-btn-group button.note-btn.note-current-color-button {
    margin-right: 0;
}

/*!**************************************  Module specific code  **********************************************/
.iframe-form-rich-text {
    max-width: 100%;
    border: 1px solid #dadce0;
    height: 10rem !important;
}

.tdBody>div:not(.myBreadcrumb):not(.steps),
.tdBody form,
.tdBody center {
    text-align: center;
}

.tdBody>div:not(.myBreadcrumb):not(.steps),
.tdBody center {
    margin: auto;
}

.tdBody>div table,
.tdBody form {
    text-align: initial;
}

/****************************************   HOME PAGE BOXES   **********************************************/
.mdlBox span.material-icons.iconPlaceholder {
    font-size: 8em;
    /* 80% of the parent container's font size */
    color: #aaa;
}

.material-icons.hasYes {
    color: #188532;
    font-weight: bold;
}

.material-icons.hasNot {
    color: red;
    font-weight: bold;
}

@media only screen and (max-width: 1024px) {

    body,
    html {
        font-size: 16px;
    }

    td.tdMenu {
        display: none;
        width: 0 !important;
        min-width: auto !important;
    }

    td.tdMenu>div {
        display: none;
    }

    tr td.tdMenu ul li a {
        width: 150px;
    }

    .myBreadcrumb>div {
        width: calc(100% - 1rem - 4px);
    }

    .smart-item {
        display: table;
        width: calc(80vw);
        margin: 1rem auto;
    }

    table.table-editor tr td.profilePictureCell {
        display: table-cell !important;
    }

    .note-editor .note-toolbar .note-btn-group button.note-btn {
        margin-right: 2px;
    }

    .tdBody {
        width: calc(100vw - 1rem);
        height: calc(100vh - 3.5rem);
        margin: auto;
    }

    .tdBody>div:not(.myBreadcrumb):not(.steps),
    .tdBody center {
        max-width: 100vw;
    }

    #tdFooter {
        display: none;
    }

    td.breadLeftTd {
        min-width: auto;
    }

    #mdlItemFlt {
        margin: 0 0 .5rem 0;
    }

    #mdlFormFill {
        padding: 0 .5rem;
    }

    #mdlFormItems {
        padding: 0;
    }
}