body.portal {
    background: #f7f7f7;
}
body.portal #ew-head {
    background: white;
    border-bottom: 1px solid #0000001f;
    box-shadow: 0 -1px 10px #0000000f;
}

body.portal #ew-header {
    background: white;
    border: 0;
    box-shadow: none;
    height: 60px;
}
body.portal #ew-header .ew-header-icons {
    height: 60px;
}
body.portal #ew-header .ew-header-icons a:hover {
    transform: scale(1.03);
}
body.portal #ew-header-portal-logo-wrap {
    text-align: left;
    width: 150px;
    min-width: 150px;
    flex-grow: 0;
}
body.portal #ew-header-main-menu #ew-header-portal-logo-wrap {
    text-align: center;
    width: 100%;
}
body.portal #ew-header-main-menu .whitespace {
    display: none;
}
body.portal #ew-header-portal-logo {
    display: inline-block;
    width: 150px;
    min-width: 150px;
    height: 60px;
    background-size: 150px;
    transition: all 200ms ease;
    padding: 10px;
}
body.portal #ew-header-portal-logo div {
    display: inline-block;
    background-size: contain;
    height: 40px;
    width: 130px;
}
#ew-header-bar .portal-name {
    display: inline-block;
    padding-right: 10px;
}
body.portal #ew-header-profile-logo {
    border: none;
    box-shadow: 0 0 6px -2px #000000ad;
}



body.portal input, body.portal textarea {
    background: #ffffffd6;
}
body.portal select {
    background-color: #ffffffd6;
}
body.portal #ew-footer {
    background: #f2f2f2;
    border-top: 1px solid #0000000d;
}



#ew-portal-nav {
    padding: 0;
}
#ew-portal-nav section {
    margin-top: 0;
    margin-bottom: 0;
}
#ew-portal-nav a {
    text-decoration: none;
    border-radius: 5px;
}
#ew-portal-nav a:hover {
    text-decoration: underline;
}
#ew-portal-nav a.highlight {
    background: hsla(var(--ew-hue), 100%, 45%, 0.82);
    border: 1px solid #00000021;
    box-shadow: 3px 3px 7px #00000024;
    color: white;
    font-weight: bold;
    margin-right: 15px;
    margin-top: -2px;
}
#ew-portal-nav a.highlight:enabled:hover, #ew-portal-nav a.highlight:hover {
    background: hsla(var(--ew-hue), 100%, 42%, 0.82);
    color: white;
    border: 1px solid #00000036;
    box-shadow: 3px 3px 9px #00000035;
}
b#ew-portal-nav a.highlight:enabled:active, #ew-portal-nav a.highlight:active {
    background: hsla(var(--ew-hue), 100%, 30%, 0.82);
    color: white;
    border: 1px solid #00000036;
    box-shadow: 3px 3px 12px #00000035;
}

#ew-portal-nav {
    margin-top: 5px;
}
#ew-portal-nav ul {
    list-style: none;
}
#ew-portal-nav li {
    margin: 0;
    padding: 0;
    display: inline-block;
    position: relative;
    text-decoration: none;
}
#ew-portal-nav a {
    display: inline-block;
    opacity: 0.8;
    height: 50px;
    line-height: 30px;
    font-size: 18px;
    padding: 8px 12px 0 12px;
    transition: all 100ms ease-in-out;
    border-radius: 7px 7px 0 0;
    color: #00000091;
    font-weight: bold;
}
#ew-portal-nav a:hover {
    color: #000000bf;
}
#ew-portal-nav a.active {
    color: black;
}
#ew-portal-nav a > span {
    display: inline-block;
    padding: 0 2px 10px 2px;
    margin-bottom: 2px;
}
#ew-portal-nav a.active > span {
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 2px;
    border-bottom: 2px solid #000000f7;
}
#ew-portal-nav a.active {
    opacity: 1;
    background: #00000005;
    /*border: 1px solid #80808026;
    border-bottom: 0;*/
}
#ew-portal-nav:hover a {
    background: none;
}
#ew-portal-nav a:hover {
    opacity: 1;
    background: #00000008;
}
#ew-portal-nav i:first-child {
    padding-right: 7px;
    opacity: 0.9;
}

.ew-tile h1 {
    padding-top: 7px;
}
.ew-tile-cover {
    height: 130px;
    width: 100%;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    margin-bottom: 18px;
}
.ew-tile-headline {
    margin: 15px 25px 10px 25px;
    font-size: 1.2em;
    line-height: 1.4em;
    font-weight: bold;
}
.ew-tile-headline.mid {
    margin: 20px 36px 12px 36px;
    color: #000000b0;
    font-size: 16px;
}
.ew-tile-author + .ew-tile-headline {
    margin-top: 10px;
}
.ew-tile-text, .ew-tile-html {
    margin: 10px 25px;
}
.ew-tile-html.editor-html {
    margin: 5px 5px 15px 5px;
}
.ew-tile-progress-placeholder {
    height: 40px;
}
.ew-tile-progress {
    padding: 10px 25px;
}
.ew-tile-progress.sticky {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
}
.ew-tile-progress .bar {
    position: relative;
    border-radius: 15px;
    background: #7e7e7e1c;
    height: 20px;
}
.ew-tile-progress .progress {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    background: #399939;
    border-radius: 15px;
    height: 20px;
    line-height: 20px;
    padding: 0 10px;
    text-align: right;
    color: white;
    font-size: 12px;
}
.ew-tile-progress .progress.none {
    background: none;
    color: #0000009e;
    text-align: left;
}
.ew-tile-progress.complete .progress {
    top: 0;
    left: initial;
    right: 0;
}
.ew-tile-progress.complete .progress {
    padding-left: 12px;
}
.ew-tile-progress .progress i {
    display: inline-block;
    color: white;
    opacity: 1;
    margin-right: 5px;
}
.ew-tile-stats {
    padding: 5px 25px;
}
.ew-tile-stats > div {
    border-top: 1px solid #0000001a;
    border-bottom: 1px solid #0000001a;
}
.ew-tile-stats > div > div {
    border-right: 1px solid #0000001a;
    margin: 10px 0;
    padding: 3px 2px;
    text-align: center;
}
.ew-tile-stats > div > div:last-child {
    border-right: 0;
}
.ew-tile-stats a {
    text-decoration: none;
}
.ew-tile-stats .number {
    font-size: 1.1em;
    line-height: 1.2em;
    font-weight: bold;
}
.ew-tile-stats .label {
    font-size: 0.8em;
    color: #00000082;
}
.ew-tile-links {
    padding: 5px 25px;
}
.ew-tile-links a {
    display: block;
    font-size: 15px;
    line-height: 22px;
    text-decoration: none;
    color: #000000ab;
    padding: 2px 0;
}
.ew-tile-links a:hover {
    text-decoration: underline;
    color: black;
}
.ew-tile-links a i {
    display: inline-block;
    width: 20px;
    text-align: center;
    font-size: 13px;
    line-height: 22px;
    margin-right: 7px;
}
.ew-tile-nav {
    padding: 23px 15px 25px 15px;
}
.ew-tile-nav.aside {
    padding: 10px 15px 10px 15px;
}
.ew-tile-nav a {
    display: block;
    font-size: 17px;
    line-height: 22px;
    text-decoration: none;
    color: #000000ab;
    padding: 10px 10px;
    border-radius: 15px;
    transition: all 50ms ease-in-out;
}
.ew-tile-nav a.with-count {
    position: relative;
    padding-right: 52px;
}
.ew-tile-nav a.with-count .ew-count {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 20px 10px 5px;
    color: #0000007a;
    font-size: 0.9em;
    letter-spacing: 1px;
}
.ew-tile-nav a:hover {
    text-decoration: underline;
    color: black;
    background: #00000012;
}
.ew-tile-nav a.active {
    background: hsla(var(--ew-hue), 100%, 82%, 0.9);
    color: rgba(0, 0, 0, 0.9);
    font-weight: bold;
}
.ew-tile-nav a.black-label {
    text-decoration-color: rgba(0, 0, 0, 0.76);
}
.ew-tile-nav a.black-label .label {
    color: #000000d6;
}
.ew-tile-nav a.black-label:hover .label {
    color: black;
}
.ew-tile-nav a i {
    display: inline-block;
    width: 30px;
    text-align: center;
    font-size: 17px;
    line-height: 22px;
    margin-right: 7px;
}
.ew-tile-nav .whitespace + .whitespace {
    display: none;
}
.ew-tile-profiles {
    padding: 5px 25px;
    text-align: center;
}
.ew-tile-profiles.one-row > div {
    height: 25px;
    overflow: hidden;
}
.ew-tile-profiles .pic {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 5px;
    display: inline-block;
}
.ew-tile-nav .ew-tile {
    margin: -21px 0 20px 0;
}
.ew-tile-nav .ew-tile .ew-tile-profile {
    padding: 5px;
}
.ew-tile-nav .ew-tile .ew-tile-profile .badge {
    height: 60px;
    width: 70px;
}
.ew-tile-nav .ew-tile .ew-tile-profile .pic {
    width: 60px;
    height: 60px;
}
.ew-tile-nav .ew-tile .ew-tile-profile .desc {
    font-size: 12px;
}
.ew-tile-nav .ew-tile a:hover {
    background: #00000006;
}
.ew-tile-filter {
    margin: 10px 10px 15px 10px;
}
.ew-tile-filter article {
    margin-left: 5px;
}
.ew-tile-filter .filter-buttons {
    display: inline;
}
.ew-tile-filter .filter-buttons button, .ew-tile-filter .filter-buttons .button {
    background: white;
    font-size: 14px;
    line-height: 16px;
    border-radius: 20px;
    box-shadow: 0 0 5px #0000001c;
    padding: 10px 15px;
    border: 0;
}
.ew-tile-filter .r button:last-child, .ew-tile-filter .r .button:last-child {
    margin-right: 5px;
}
.ew-tile-filter .filter-buttons button.active, .ew-tile-filter .filter-buttons .button.active {
    background: #2929297a;
    color: white;
}
.ew-tile-filter .filter-buttons button:hover, .ew-tile-filter .filter-buttons .button:hover {
    background: #29292994;
    box-shadow: 0 0 5px #0000003f;
    color: white;
    border: 0;
    padding: 10px 15px;
    transform: none;
}
.ew-tile-filter .ew-kebab-menu a.kebab-menu.icon-only {
    padding: 5px 10px;
    color: grey;
}

.ew-tile-profile-name {
    padding-top: 11px !important;
    padding-left: 25px;
}
.ew-tile-profile-picture {
    text-align: center;
    width: 175px;
    flex-grow: 0;
    padding-left: 25px;
}
.ew-tile-profile-picture div {
    border-radius: 100px;
    width: 150px;
    height: 150px;
    box-shadow: 0 0 5px #00000059;
    margin: 5px auto 5px auto;
    display: inline-block;
}
.ew-tile-profile-picture button {
    opacity: 0;
    transition: 50ms all ease-in-out;
}
.ew-tile-profile-picture:hover button {
    opacity: 100;
}
.ew-tile-profile-prime {
    font-size: 1.1em;
    line-height: 27px;
    padding: 0 25px 20px 25px;
}
.ew-tile-headline-key {
    padding-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    color: grey;
}
.ew-tile-headline-key i {
    display: inline-block;
    margin-right: 7px;
}
.ew-tile .ew-tile-headline-key:first-child {
    padding-top: 0;
}
.ew-tile-author {
    padding: 10px 25px 5px 25px;
}
.ew-tile-author .badge {
    position: relative;
    height: 45px;
    width: 50px;
    flex-grow: 0;
}
.ew-tile-author .badge .level {
    position: absolute;
    right: 6px;
    bottom: 1px;
    background: #0c519b;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 16px;
    text-align: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}
.ew-tile-author .pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 5px;
    display: inline-block;
}
.ew-tile-author .name {
    padding: 0 5px;
    font-weight: bold;
}
.ew-tile-author .desc {
    padding: 2px 5px;
    color: #00000082;
    font-size: 13px;
    line-height: 1.2em;
}
.ew-tile-author .aside button, .ew-tile-author .aside .button {
    margin-bottom: 0;
    padding: 8px 16px;
}
.ew-tile-author .aside button:last-child, .ew-tile-author .aside .button:last-child {
    margin-right: 0;
}
.ew-tile-profile {
    padding: 10px 25px;
}
.ew-tile-profile .badge {
    position: relative;
    height: 70px;
    width: 85px;
    flex-grow: 0;
}
.ew-tile-profile .badge .level {
    position: absolute;
    right: 6px;
    bottom: 1px;
    background: #0c519b;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 16px;
    text-align: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}
.ew-tile-profile .pic {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 5px;
    margin-left: 5px;
    display: inline-block;
    transition: all 50ms ease-in-out;
    outline: 5px solid #0000000d;
}
.ew-tile-profile:hover .pic {
    transform: scale(1.05);
    outline: 3px solid #0000000f;
}
.ew-tile-profile .body {
    display: flex;
    align-items: center;
    justify-content: left;
}
.ew-tile-profile .name {
    padding: 0 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 2px;
}
.ew-tile-profile:hover .name {
    text-decoration: underline;
}
.ew-tile-profile .desc {
    padding: 2px 5px;
    color: #00000082;
    line-height: 1.2em;
}
.ew-tile-profile .aside button, .ew-tile-profile .aside .button {
    margin-bottom: 0;
    padding: 8px 16px;
}
.ew-tile-profile .aside button:last-child, .ew-tile-profile .aside .button:last-child {
    margin-right: 0;
}

.ew-tile.tile-yellow {
    background: #fffeed;
    color: #121212;
    border: 1px solid #e4d350;
}

.ew-tile-correspondence {
    padding: 10px 25px 0 25px;
}
.ew-tile-correspondence .title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 2px;
}
.ew-tile-correspondence .amount-total {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 2px;
    text-align: right;
}
.ew-tile-correspondence .desc {
    padding: 5px 0;
    color: #00000082;
    line-height: 1.2em;
}
.ew-tile-correspondence .desc .text {
    display: inline;
}
.ew-tile-correspondence .item-row {
    margin: 10px 5px;
}
.ew-tile-correspondence .item-row a {
    display: block;
}
.ew-tile-correspondence .item-row .image {
    display: block;
    width: 30px;
    flex-grow: 0;
}
.ew-tile-correspondence .item-row .image div {
    width: 30px;
    height: 30px;
}
.ew-tile-correspondence .item-row .name {
    margin: 3px 13px;
}
.ew-tile-correspondence .blue {
    margin-right: 5px;
}
.ew-tile-correspondence .ew-correspondence-states {
    margin: 0;
}
.ew-tile-correspondence .ew-state-block {
    padding: 8px 12px;
}

.ew-tile-separator {
    padding: 5px 25px;
}
.ew-tile-correspondence .ew-tile-separator {
    padding: 10px 0;
}
.ew-tile-separator div {
    border-top: 1px solid #0000001a;
}
.ew-box .ew-notification:first-child {
    border-radius: 10px 10px 0 0;
}
.ew-box .ew-notification:last-child {
    border-radius: 0 0 10px 10px;
}
.ew-box .ew-notification:only-child {
    border-radius: 10px;
}
.ew-tile .ew-notification:first-child {
    border-radius: 15px 15px 0 0;
}
.ew-tile .ew-notification:last-child {
    border-radius: 0 0 15px 15px;
}
.ew-tile .ew-notification:only-child {
    border-radius: 15px;
}
.ew-box .ew-tab-page .ew-notification:first-child {
    border-radius: 0;
}

.animated-background {
    font-family: inherit;
    width: 100%;
    border-radius: 4px;
    background-color: transparent;
    padding: 2px;
    background-size: 500% 500%;
    animation: 5s ease-out infinite move-gradient;
    background-image: conic-gradient(at 10% 15%, transparent, rgb(229, 70, 54) 10%, transparent 30%, transparent), conic-gradient(from 90deg at 70% 60%, transparent, rgb(233, 180, 87) 10%, transparent 60%, transparent), conic-gradient(from 180deg at 50% 20%, transparent, rgb(80, 183, 242) 10%, transparent 50%, transparent);
}

@keyframes move-gradient {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0 0;
    }
}

@media only screen and (max-width: 768px) {
    #ew-portal-nav {
        padding-left: 20px;
        padding-right: 20px;
    }
    #ew-portal-nav {
        display: none;
    }
    body.portal #ew-header-menu-opener, body.portal #ew-header-profile {
        width: 70px;
    }

    .ew-tile-profile-picture {
        padding-top: 10px;
        text-align: center;
        width: 100%;
    }

    .ew-tile-profile-prime {
        text-align: center;
    }
    .ew-tile-profile {
        padding: 10px 15px;
    }

    .ew-tile-headline.mid {
        margin: 20px 20px 12px 20px;
    }
}

