/**
 * Custom Namirial style for Outlook theme
 */

body.xelastic.logout-page.task-logout {
    background: #efefee url(../assets/images/login_bg.png) no-repeat !important;
    background-size: cover !important;
}

#message-htmlpart1 {
    word-wrap: break-word;
}

.input-helper {
    font-size: 11px;
    display: none;
}

.input-helper.active {
    display: block;
}

.input-helper.error {
    color: #F06533;
}

.input-helper.warning {
    color: #FFBC11;
}

.input-helper.success {
    color: #AFCC17;
}

input.error,
.xcolor-757575 input.form-control:focus.error {
    border-color: #F06533 !important;
}

input.warning {
    border-color: #FFBC11 !important;
}

input.success {
    border-color: #AFCC17 !important;
}

.input-helper.grey {
    color: #aaa;
}

.quota-widget .value {
    background-color: #35364A;
    opacity: 1;
}

.xinfo {
    display: inline-block;
    position: absolute;
    cursor: pointer;
    font-size: 17px;
    font-weight: normal;
}

.xinfo.right div {
    right: auto;
}

xinfo:hover div {
    display: block;
}

xinfo div {
    position: absolute;
    display: none;
    right: 0;
    text-align: left;
    min-width: 200px;
    max-width: 300px;
    font-size: 12px;
    font-weight: normal;
    top: 20px;
    background: #ffffcc;
    padding: 2px;
    border: 1px solid #aaa;
    border-radius: 5px;
    z-index: 99999;
    white-space: normal;
}

/* The actual popup (appears on top) */
.xinfo .popuptext {
    visibility: hidden;
    width: 194px;
    background-color: #00a69d;
    font-size: 14px;
    color: #212529;
    text-align: center;
    border-radius: 6px;
    padding: 4px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -97px;
}

.xinstallinfo {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.xinstallinfo.right div {
    right: auto;
}

xinstallinfo:hover div {
    display: block;
}

xinstallinfo div {
    position: absolute;
    display: none;
    right: 0;
    text-align: left;
    min-width: 200px;
    max-width: 300px;
    font-size: 12px;
    font-weight: normal;
    top: 20px;
    background: #ffffcc;
    padding: 2px;
    border: 1px solid #aaa;
    border-radius: 5px;
    z-index: 99999;
    white-space: normal;
}

/* The actual popup (appears on top) */
.xinstallinfo .popuptext {
    visibility: hidden;
    width: 300px;
    background-color: #00a69d;
    font-size: 14px;
    color: #212529;
    text-align: left;
    border-radius: 6px;
    padding: 4px;
    position: absolute;
    z-index: 1;
    left: -68%;
    margin-left: -97px;
    top: -75px;
}

.popover .menu li a:not(.disabled):hover {
    color: black;
    background-color: #ccedeb;
}

/* Popup arrow */
.xinfo .popuptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #00a69d transparent transparent transparent;
}

.xinfo .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}

/* Popup arrow */
.xinstallinfo .popuptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #00a69d transparent transparent transparent;
}

.xinstallinfo .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}

body .xinfoAttach:after {
    display: inline-block;
    position: relative;
    font-family: RcpIconFont !important;
    font-weight: normal !important;
    position: relative;
    background-image: none;
    text-indent: 0;
    content: "\EA86";
}

.xinfoAttach {
    display: inline-block;
    position: relative;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
}

#logofull {
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0 auto;
    width: 100%;
    min-width: 1280px !important;
    z-index: 1000;
}

#logonam {
    background: none;
    padding: 3px;
    height: 48px !important;
    margin: 0 auto;
    text-align: left;
}

#button-apps span {
    display: none;
}

#layout {
    overflow: unset;
    padding-bottom: 35px;
}

#compose-plus span {
    position: relative;
    top: 1px;
    line-height: 3.3rem;
    padding-left: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: #7c7c7c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

#compose-plus:before {
    color: #2c363a;
    font-size: 1.2rem;
    font-family: RcpIconFont !important;
    font-weight: bold;
    position: relative;
    background-image: none;
    text-indent: 0;
    content: "\ECF9";
    top: 0.1rem;
}

body>#layout>#layout-menu #taskmenu>#button-apps {
    float: none;
}

#taskmenu>span.action-buttons a.compose {
    display: none !important;
}

#compose-plus {
    text-align: center;
    border-radius: 2em;
    margin: 1rem 1rem 1rem 1rem;
    margin: 0.5rem 1rem 0.5rem 1rem;
    padding: 0 1.5rem 0 3rem;
    box-shadow: 0 1px 2px 0 rgb(60 64 67 / 30%), 0 1px 3px 1px rgb(60 64 67 / 15%);
    transition: box-shadow 0.08s linear, min-width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.nam-inline-box {
    border: 3px solid #0075c8;
    padding: 15px;
    background: #f9f9f9;
    margin: 15px 0;
}

body {
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    color: #111820;
}

tr.message.unread {
    background-color: #CCEDEB;
}

.messagelist tr.unread td.subject span.subject {
    font-weight: 900 !important;
}

.folderlist li.mailbox .unreadcount {
    background: #CCEDEB !important;
    color: #00423F !important;
    font-weight: bolder !important;
}

#layout-menu .popover-header img {
    max-width: 160px !important;
}

/* Rimosso !important per poter sovrascrivere overflow in altre parti ove necessario */
#layout {
    width: 100%;
    overflow: auto;
}

#login-form-nam {
    width: 90% !important;
    height: auto;
}

/*#ads-nam {
	width: 70% !important;
}*/

#ads-nam-mail {
    width: 90%;
}

body.xelastic.login-page #layout-content {
    overflow: hidden !important;
    min-width: 420px;
    width: 30% !important;
}

#ads-nam img {
    width: 100%;
    height: auto;
}

#ads-nam-mail img {
    width: 100%;
    height: auto;
}


.ads-area {
	background: #CDCDD2;
	color:#111820;
	margin-top: 1em;
}
.ads-area span{
	display: block;
	padding: 1em;
}

div#banner-ad {
    background: #F5F5F6;
    border-radius: 4px;
    padding: 1em 0;
    border:1px solid #EBEBED
}

div#banner-ad span{
    margin-left: 5px;
}


#counter-menu-mobile {
    display: none;
}

#_from {
    pointer-events: none;
}

.file-upload .hint,
.attachmentslist li .attachment-size {
    color: #35364A;
}

.file-upload .attachmentslist li a.dropdown,
.file-upload .attachmentslist li a.cancelupload,
.file-upload .attachmentslist li a.delete {
    color: #00857E;
}

.xcolor-757575 .btn.btn-primary,
.xcolor-757575 .btn.btn-success,
.xcolor-757575 div.tox .tox-dialog__footer .tox-button,
.xcolor-757575 .mce-window .mce-foot .mce-btn.mce-primary,
.xcolor-757575 .floating-action-buttons a.button {
    background-color: #00A69D !important;
    border: 1px solid #00A69D !important;
    color: black;
}

.xcolor-757575 .btn.disabled,
.xcolor-757575 .btn.disabled:hover,
.xcolor-757575 .btn:disabled,
.xcolor-757575 .btn:disabled:hover {
    background-color: #00A69D !important;
    border: 1px solid #00A69D !important;
}

#messagestack {
    z-index: 1000000;
}

.username-subtitle {
    font-size: smaller;
    text-align: left;
}

.listing li a,
.xcolor-757575 .listing li.selected>a {
    color: #111820;
}

#rcmquotadisplay {
    text-align: center;
    position: absolute;
    text-indent: 50%;
    left: 26px;
}



body.xelastic.xskin.xicons-material .floating-action-buttons a.button:before {
    content: "\ECF9";
}

.xcolor-757575 a,
.xcolor-757575 div.tox .tox-dialog .tox-dialog__body-nav-item--active,
.xcolor-757575 input.icon-checkbox+label:before,
.xcolor-757575 input.icon-checkbox:checked+label:before {
    color: #00857E;
}

.messagelist td.subject span.date,
.messagelist td.subject span.size {
    color: #35364A;
}

#logonam a {
    float: left;
}

.visually-hidden {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

#security_save {
    float: left;
}

.quota-widget .bar {
    min-width: 125px;
}


/**new Marina**/
#showcase {
    font-family: "Open Sans";
    flex-grow: 1;
    height: 100%;
    overflow-y: scroll;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
#showcase::-webkit-scrollbar {
    display: none;
}

a {
    color: rgb(0, 133, 126);
    /*font-weight: bold;*/
}

.rssfeed-article {
    display: flex;
    flex-direction: row;
    margin: 10px 0;
    float: left;
}

.rssfeed-article__image {
    height: 100%;
}

#showcase .rssfeed-article__image img {
    width: 100px;
    margin-right: 15px;
    height: 100%;
    object-fit: cover;
}

.rssfeed-article__title {
    width: 100%;
    color: #35364A !important;
    font-weight: 500;
    margin-bottom: 1em;
}

.rssfeed-article__category,
.rssfeed-article__publish-date {
    font-size: 0.8em;
    width: auto;
}

.rssfeed-article__category {
    padding: 2px 5px;
    background-color: #35364A;
    border-radius: 50px;
    color: #fff;
    display: inline-block;
    line-height: 2em !important;
    max-width: 100%;
    max-height: 2.2em;
    overflow: hidden;
}


.rssfeed-article__right-content {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    height: 7.8em;
    margin: 0 auto;
    font-size: 1em;
    line-height: 1.3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: block;
}

.rssfeed-article__left-content {
    width: 30%;
    overflow: hidden;
    margin-right: 0.7em;
}

.rssfeed-article__right-content .rssfeed-article__wrapper {
    display: flex;
    flex: 1;
    flex-direction: row;
}


#login-form-nam .ads-nam-container {
    margin: 20vh 1em 0 0 !important;
    padding: 20px;
    align-items: center;
    margin-right: 1em !important;
}

.ins-container {
    width: 300px;
    height: 250px;
    flex: none;
}

.ins-container ins {
    margin: 20vh auto 0 auto !important;
}

#login-form-nam #layout-content {
    min-width: 330px !important;
    padding: 20px !important;
    grid-area: right-col;
}

#logonam a img {
    margin-top: 2px;
}

.gptslot.single {
    height: 250px;
    width: 970px;
    margin: 10px auto 0px auto !important;
    grid-area: left-col-2;
}

.double-slot {
    margin: 10px auto 0 auto;
}

.double-slot .gptslot {
    display: none;
    height: 250px;
    width: 300px;
    margin: 0 1em;
}

#login-form-nam #layout-content,
#login-form-nam #ads-nam {
    border-radius: 5px;
}

#login-form-nam {
    width: 98% !important;
    height: auto;
    max-width: 1400px;
    /*display: grid !important;*/
    grid-template-columns: 70% 30%;
    grid-template-rows: auto auto;
    grid-template-areas: "left-col-1 right-col" "left-col-2 right-col";
}

.left-col-1 {
    grid-area: left-col-1;
    display: flex;
    margin-left: 6px;
    width: 100%
}

.login-info-container {
    margin-bottom: 10px;
    font-weight: bold;
}

.access-to-pec-container {
    color: white;
    margin-top: 10px;
    font-size: 1.5rem;
    float: left;
    margin-left: 10px;
}

.username-subtitle {
    font-size: smaller;
    text-align: left;
}

.visually-hidden {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

#login-form a {
    text-decoration: none;
}

body.xelastic.login-page #layout-content #login-form {
    padding-bottom: 10px;
}

.action-preview #layout-content {
    margin-top: 0px !important;
}

#mailtoolbar,
.action-show #mailtoolbar {
    display: flex !important;
    justify-content: center;
}

.action-show #layout-content #mailtoolbar {
    display: none;
    height: 0px;
    min-height: 0px;
}

/*.header ul.listing .reply,
.header ul.listing .reply-all,
.header ul.listing #replyallmenulink,
.header ul.listing .forward,
.header ul.listing #forwardmenulink,
.header ul.listing .delete,
.header ul.listing #markmessagemenulink,
.header ul.listing #messagemenulink {
    display: none !important;
}*/

.popover .menu li {
    display: block;
}

.action-show .header ul.listing .reply,
.action-show .header ul.listing .reply-all,
.action-show .header ul.listing #replyallmenulink,
.action-show .header ul.listing .forward,
.action-show .header ul.listing #forwardmenulink,
/* Commented by Marina to hide delete button in Strongpec
 * .action-show .header ul.listing .delete,*/
.action-show .header ul.listing #markmessagemenulink,
.action-show .header ul.listing #messagemenulink {
    display: block !important;
}

.task-addressbook .header #toolbar-menu .print,
.task-addressbook .header #toolbar-menu .delete {
    display: block !important;
}

.new-searchbar-container {
    display: flex;
    align-items: center;
}

#layout-list #messagelist-header {
    justify-content: space-between;
}

#searchmenu {
    background: #F8F8F7;
}

.action-preview #layout-content {
    margin-top: 0px !important;
}

#mailtoolbar,
.action-show #mailtoolbar {
    display: flex !important;
    justify-content: center;
}

.action-show #layout-content #mailtoolbar {
    display: none;
    height: 0px;
    min-height: 0px;
}

/*.header ul.listing .reply,
.header ul.listing .reply-all,
.header ul.listing #replyallmenulink,
.header ul.listing .forward,
.header ul.listing #forwardmenulink,
.header ul.listing .delete,
.header ul.listing #markmessagemenulink,
.header ul.listing #messagemenulink {
	display: none !important;
}*/

.popover .menu li {
    display: block;
}

/*.action-show .header ul.listing .reply,
.action-show .header ul.listing .reply-all,
.action-show .header ul.listing #replyallmenulink,
.action-show .header ul.listing .forward,
.action-show .header ul.listing #forwardmenulink,
.action-show .header ul.listing .delete,
.action-show .header ul.listing #markmessagemenulink,
.action-show .header ul.listing #messagemenulink {
	display: block !important;
}*/

.task-addressbook .header #toolbar-menu .print,
.task-addressbook .header #toolbar-menu .delete {
    display: block !important;
}

.new-searchbar-container {
    display: flex;
    align-items: center;
}

#layout-list #messagelist-header {
    justify-content: space-between;
}

#searchmenu {
    background: #F8F8F7;
}

.compose-headers .form-group.row {
    display: grid;
    grid-template-columns: 69px 1fr;
    align-items: center;
}


#mailtoolbar a.disabled {
    display: none;
}

#toolbar-list-menu li a span.inner {
    display: block;
}

#taskmenu .username {
    column-gap: 5px;
    margin-top: 3px;
    max-width: 350px;
}

#messagelist .rcmContactAddress.is-identified {
    position: relative;
}

#messagelist:not(.layout-widescreen) .rcmContactAddress {
    margin-left: 12px;
}


.webmail-nam {
    display: flex !important;
    max-width: 1400px;
}

.webmail-grid {
    display: grid !important;
}

.xcolor-757575 .custom-switch .custom-control-input:checked:disabled~.custom-control-label::before {
    background-color: #58D3CE !important;
    border-color: #58D3CE !important;
}

input#compose-subject::placeholder {
    color: #a4a2a2;
}

.message-htmlpart img {
    max-width: 100% !important;
    height: auto !important;
}

#message-menu a[aria-disabled=true] {
    opacity: 0.5;
}

.attachmentslist li:is(.rfc822.eml, .xml):before {
    content: "\f15c";
}

body.task-settings .floating-action-buttons {
    display: none;
}

#quotadisplay {
    position: relative;
}

#quotadisplay .bar {
    margin-left: 24px;
}

.button.icon.refresh,
.button.icon.toolbar-menu-button {
    position: unset;
}

#menu-buttons-wrapper {
    height: 64px;
}

.menu.toolbar.listing.iconized {
    position: absolute;
    right: 0px;
}

.menu.toolbar.listing.iconized.popupmenu {
    width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
    #messagelist-header #toolbar-list-menu {
        z-index: -100;
    }
}

@media screen and (min-width: 500px) {
    #menu-buttons-wrapper .switch-account-button-wrapper {
        display: none !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
    .button.refresh {
        position: absolute !important;
        right: 32px;
        top: 0;
    }

    .button.icon.toolbar-menu-button {
        position: absolute !important;
        top: 0;
    }

    #toolbar-list-menu {
        right: 130px;
    }

    .popover-body #toolbar-list-menu {
        right: 0px !important;
    }
}

@media screen and (max-width: 480px) {
    #compose_subject {
        grid-template-columns: 1fr;
    }

    #change-layout-container-clone {
        display: none;
    }

    #messagestack {
        width: 100vw !important;
        top: initial !important;
        right: initial !important;
        left: initial !important;
        bottom: 0px !important;
    }

    #messagestack div.alert {
        justify-content: center;
    }

    #messagestack div.loading.content {
        justify-content: center;
        display: flex;
        text-align: center;
        align-items: center;
    }

    .widescreen {
        margin-top: 0px !important;
    }

    #username {
        max-width: unset;
        padding: 0 0.5em;
        margin-top: 1px;
        text-align: left;
        line-height: 47px;
        height: 47px;
        border-bottom: 1px solid #f1f3f4 !important;
        color: #2c363a;
        font-size: 1.2rem;
        display: none;
    }

    .access-to-pec-container {
        display: none;
    }

    .xinstallinfo .popuptext {
        margin-left: -80px;
    }

    #layout-menu #taskmenu #username {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    #listmenulink-clone {
        display: none;
    }

    .quota-widget {
        max-width: 100%;
    }

    #rcmquotadisplay {
        position: inherit;
        text-indent: 5%;
    }

    /*body.xskin.login-page #logo, #copyrightInfo, .login-info-container, #login-footer, form br+br {
        display: none
    }*/

    body.xelastic.login-page #layout-content.selected.no-navbar {
        margin: 7vh auto 0 auto !important;
        width: 100% !important;
        padding: 5px 10px
    }

    p.formbuttons+br+a,
    p.formbuttons+br+a+br+a {
        float: left;
        width: 50%;
    }

    p.formbuttons2 {
        float: right;
        width: 50%;
        margin-top: 10px
    }

    p.formbuttons1 {
        float: left;
        width: 50%;
        margin-top: 10px
    }

    #rcmbuysubmit.button {
        background: none !important;
        color: rgb(0, 133, 126) !important;
        font-weight: bold;
        padding: 0px;
    }

    #ads-nam,
    body.xelastic.login-page #layout-content {
        margin: 0 !important;
        min-width: 100%;
        padding: 60px 10px 0 10px;
    }

    #logofull {
        background: #35364C;
    }

    /*div#logonam::after {
        content: url("https://img.namirial.com/images/logo-sicurezzapostale-mobile.png");
        color: white;
        margin: 2px 0 2px 60px;
        font-size: 1.4em;
        font-style: italic;
        display: block;
        float: left;
        height: 38px;
        width: 170px;
        overflow: hidden;
    }*/

    #ads-nam,
    body.xelastic.login-page #layout-content {
        margin: 3vh auto !important;
    }

    #ads-nam {
        padding: 0;
        margin: 1.5vh auto !important;
        ;
    }

    .gptslot {
        margin: 0 auto
    }

}

@media screen and (min-width: 481px) {
    #username {
        display: none;
    }

    #layout-menu .popover-header {
        text-align: left;
    }

    #login-form-nam {
        background: none;
        display: flex;
        margin: 0 auto !important;
        position: relative;
    }

    #ads-nam {
        display: flex;
        margin: 0vh auto 0 auto !important;
    }

    #ads-nam-mail {
        display: flex;
    }

    #layout-menu {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 58px;
        width: 100%;
        background: #F8F8F7 !important;
    }

    #taskmenu {
        box-shadow: 0 0 5px 2px rgba(0, 0, 0, .1);
        z-index: 10 !important;
    }

    #taskmenu a {
        margin-top: -1px !important;
    }

    #taskmenu,
    #layout-list .scroller:not(#calendar-list-content),
    body.xnormal-header-font #layout>div>#messagelist-header,
    .xcolor-757575 #layout-menu .popover-header {
        background: #F8F8F7 !important;
    }

    #taskmenu .special-buttons {
        position: absolute !important;
        text-align: right;
        bottom: 4px;
        right: 0px;
        left: unset !important;
    }

    body>#layout>#layout-menu #taskmenu>a.selected {
        background: #F8F8F7 !important;
        color: #25474C !important;
        border-bottom: 2px #00BCB4 solid !important;
        font-weight: bolder;
    }

    body>#layout>#layout-menu #taskmenu>a {
        color: #35364A !important;
    }

    body>#layout>#layout-menu #taskmenu {
        text-align: left !important;
        padding-left: 250px;
    }

    body>#layout>#layout-menu #taskmenu>span.special-buttons a.logout {
        color: #35364a !important;
    }

    ul.treelist li.selected>div>a,
    ul.treelist li.selected>a,
    .listing li.selected {
        background: #ccedeb !important;
        color: #111820 !important;
    }

    .listing tr.selected td {
        /*background: #FFF !important;*/
        color: #111820 !important;
    }

    .listing tr.selected.flagged td {
        color: #ff5552 !important;
    }

    .listing li.mailbox {
        border-radius: 30px;
        margin: 5px;
        background: #F8F8F7;
        color: #35364A !important;
    }

    #compose-plus {
        padding: 0 10px;
        background: #00BCB4;
        line-height: 0;
    }

    .compose-plus {
        color: #111820 !important;
        line-height: 0;
    }

    .quota-widget,
    .messagelist td.subject span.fromto {
        color: #35364A;
    }

    /*.listing tbody td a,.menu.pagenav a {
		color: #111820 !important;
	}*/

    #layout-sidebar,
    #layout-content,
    #layout-list,
    #layout #xsidebar {
        box-shadow: none !important;
    }

    body.xelastic.xskin.xicons-material #taskmenu a.about:before {
        display: none;
    }

    body>#layout>#layout-menu #taskmenu>span.special-buttons a.about {
        margin-left: 490px;
        /* da correggere */
        color: #35364A !important;
        text-transform: lowercase;
    }

    body>#layout>div>.header .header-title.username {
        /* font-weight: bold; */
        display: none;
    }

    #layout-sidebar,
    #layout-content,
    #layout-list,
    #layout #xsidebar {
        margin-top: 60px !important;
    }

    .widescreen {
        margin-top: 0px !important;
    }

    .desktop {
        margin-top: 0px !important;
    }
}

@media screen and (max-width: 1200px) {
    .floating-action-buttons {
        display: inline;
    }

    #messagelist-content .floating-action-buttons {
        position: sticky;
        display: flex;
        float: right;
    }

    /* #change-layout-container-clone {
        display: none;
    } */
}

@media screen and (min-width: 777px) and (max-width: 1024px) {
    .widescreen {
        margin-top: 60px !important;
    }
}

@media screen and (min-width: 770px) and (max-width: 1025px) {
    .xcolor-757575 #layout-menu .popover-header {
        width: 0;
        display: inline-block;
        float: left;
    }

    #taskmenu a {
        height: 55px !important;
        padding: 15px 0 !important;
        display: inline-block;
    }
}

@media screen and (min-width: 1025px) {
    body>#layout>#layout-menu #taskmenu {
        padding-left: 300px;
    }

    .username {
        display: block;
        vertical-align: middle;
        line-height: normal;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    #username {
        display: inline-block;
        vertical-align: bottom;
        padding-top: 5px;
        line-height: normal;
        height: 100%;
        position: absolute !important;
        text-align: right;
        right: 85px;
    }

    .header-title.username {
        display: none;
    }

    #taskmenu .special-buttons {
        bottom: 0px;
    }

    .widescreen {
        margin-top: 60px !important;
    }

}

@media screen and (max-width: 770px) {
    #change-layout-container-clone {
        display: none;
    }

    #ads-nam-mail {
        width: 100% !important;
    }

    #login_info {
        display: flow-root;
    }

    /*#ads-nam {
		display: none;
	}*/

    #login-form-nam {
        width: unset !important;
    }

    /*.webmail-nam {
        display: flex;
        flex-direction: column-reverse;
    }*/

    .xcolor-757575 .btn.btn-primary,
    .xcolor-757575 .btn.btn-success,
    .xcolor-757575 div.tox .tox-dialog__footer .tox-button,
    .xcolor-757575 .mce-window .mce-foot .mce-btn.mce-primary,
    .xcolor-757575 .floating-action-buttons a.button,
    .xcolor-757575 .floating-action-buttons a.button,
    .xcolor-757575 .floating-action-buttons a.button {
        background-color: #00BCB4 !important;
        border-color: #00BCB4 !important;
        color: #111820;
    }

    .floating-action-buttons a.button,
    .xcolor-757575 .floating-action-buttons a.button {
        background: #00BCB4;
    }

    #messagelist-content .floating-action-buttons {
        position: fixed;
        display: inline;
        float: right;
        right: 0;
        bottom: 30px;
    }


    #layout>div>.header .header-title {
        text-align: left;
    }

    body.xelastic.login-page #layout-content {
        margin: 10vh auto 0 auto !important;
    }

    body.xelastic.login-page #layout-content {
        margin: 10vh auto 0 auto !important;
        padding-right: 10px;
        padding-left: 10px;
        min-width: unset;
        width: 90% !important;
    }

    body.xelastic.login-page #layout-content #login-form {
        position: static;
        box-sizing: border-box;
    }

    #button-apps {
        display: none !important;
    }

    /*.webmail-nam .gptslot {
        order: 2;
    }*/

    #header-compose #compose-plus {
        display: none;
    }


    #username a:before {
        float: left !important;
        width: 1.2em !important;
        margin-right: 0.5rem !important;
    }

    #ads-nam-mail .gptslot.single {
        max-height: 100px;
    }

    #login-form-nam .gptslot.single {
        max-height: 250px;
        max-width: 300px;
    }

    #layout #login-form-nam #ads-nam {
        display: none;
    }

    #login-form-nam {
        display: block !important;
    }
}

@media screen and (min-width: 481px) and (max-width:1024px) {
    .xcolor-757575 #layout-menu {
        background: #F8F8F7 !important;
    }

    #taskmenu .special-buttons {
        position: relative;
        float: right;
    }

    .xcolor-757575 #layout-menu .popover-header {
        width: 100px !important;
        text-align: left;
        float: left;
    }

    #taskmenu a {
        float: left !important;
        height: 55px !important;
        padding: 15px 0 !important;
        display: inline-block;
    }

    #taskmenu {
        box-shadow: none !important;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1100px) {
    .xinfo {
        right: 28%;
    }
}

@media screen and (min-width: 1100px) and (max-width: 1190px) {
    .xinfo {
        right: 26%;
    }
}

@media screen and (min-width: 1190px) and (max-width: 1290px) {
    .xinfo {
        right: 24%;
    }
}

@media screen and (min-width: 1290px) and (max-width: 1400px) {
    .xinfo {
        right: 22%;
    }
}

@media screen and (min-width: 1401px) {
    .xinfo {
        right: 20%;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1201px) {
    #username {
        width: 20%;
    }
}

@media screen and (max-width: 321px) {
    .xinstallinfo .popuptext {
        width: 250px;
        left: 1%;
    }
}

@media screen and (max-width: 490px) {
    .access-to-pec-container {
        display: none;
    }
}

/*@media screen and (max-width: 1134px) {
    .webmail-nam #showcase {
        display: none;
    }

    .webmail-nam #ads-nam ins {
        margin: 0 1em !important;
    }
}

@media screen and (max-height: 900px) {
    .webmail-nam #ads-nam ins {
        display: none;
    }


/* ? This was commented wrong. Hence I don't know if this should really be commented or not */
@media screen and (max-width: 425px) {
    #layout-menu #taskmenu #username {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
}

@media screen and (max-width: 1390px) {
    div.ins-container {
        display: none;
    }

    #layout-content {
        width: 100%;
    }
}

@media screen and (min-width: 770px) and (max-width: 970px) {
    #login-form-nam #ads-nam.ads-nam-container {
        margin: 10vh auto 0 auto !important;
        height: 270px !important;
    }

    body.xelastic.login-page #layout-content {
        margin: 10vh auto 0 auto !important;
    }
}

@media screen and (min-width: 771px) and (max-width: 1390px) {
    .gptslot.single {
        display: none;
    }

    .double-slot {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    .double-slot .gptslot {
        display: block
    }



    #ads-nam-mail .gptslot.gptslot.single,
    #login-form-nam .gptslot.gptslot.single {
        max-height: 250px;
        max-width: 300px;
    }
}

@media screen and (min-width: 770px) and (max-width: 973px) {
    .double-slot .gptslot+.gptslot {
        display: none
    }
}

@media screen and (min-width: 973px) and (max-width: 1110px) {
    .left-col-1 {
        max-width: 800px;
        margin-left: 0;
    }

    #layout>#login-form-nam {
        max-width: 94% !important;
        margin: 0 !important;
    }
}

@media screen and (min-width: 960px) and (max-width: 1390px) {


    #showcase {
        max-height: 300px;
    }

    #login-form-nam .ads-nam-container {
        margin: 11vh 1em 0 0 !important;
    }

    body.xelastic.login-page #layout-content {
        margin: 11vh 1em 0 auto !important;
    }


}

@media screen and (min-width: 960px) {
    #layout-content p {
        padding: 1em 0;
    }
}

@media screen and (min-width: 770px) and (max-width: 972px) {
    #login-form-nam {
        grid-template-columns: 50%;
    }
}

@media (min-width: 481px) {
    input#compose-subject::placeholder {
        color: transparent;
    }
}

#layout>div>.footer.small:not(.pagenav.menu) {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: max-content;
}

#quotadisplay-bar-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

#textual-quota {
    margin-bottom: -17px;
    font-size: 10.4px;
    text-align: center;
}

@media(min-width: 1200px) {
    #rcmquotadisplay {
        position: static !important;
        text-indent: initial !important;
        left: 0px !important;
    }

    #quotadisplay {
        position: static !important;
        padding-top: 0px;
        padding-bottom: 0px;
        max-width: 60%;
        margin: 0 auto;
        pointer-events: none;
    }

    #quotadisplay .bar {
        margin-left: 0px !important;
    }

    .quota-widget .bar {
        min-width: initial !important;
    }

    .footer.small:not(.pagenav.menu) {
        flex-direction: column;
        height: min-content !important;
    }
}

@media(max-width: 1200px) {
    #quotadisplay-bar-wrapper {
        width: 100%;
    }
}

.footer.small {
    margin-bottom: -15px !important;
}

.pagenav.menu.footer.small {
    margin-bottom: 4px !important;
}

/*timepicker in Daily SMS Report*/
@media screen and (max-width: 480px) {
    .timepicker-ui-wrapper,
    .timepicker-ui-wrapper.mobile {
        height: 520px !important;
    }

    #messagelist-header {
        width: 100% !important;
    }

    #searchmenu{
        margin-left: 0px !important;
        left: 0px !important;
    }
}

.footer-custom {
    position: fixed;
    width: 100%;
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    margin: 0px;
    left: 0px;
    bottom: 0px;
    padding: 8px;
    z-index: 100;
    text-align: center;
}

.footer-custom a {
    color: #00BCB4;
}

.no-mobile {
    display: inline-block;
}
@media screen and (max-width: 480px) {
    .no-mobile {
        display: none;
    }
    #layout{
    padding-bottom: 0px;
    }
}