* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;

    -webkit-box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: #ffffff;
    font-size: 15px;
    height: 100%;
}

body {
    background: #ffffff;
    color: #393e45;
    font-weight: 300;
    line-height: 1.7em;
    margin: 0;
    min-height: 100%;
    width: 100%;
}

body, input, textarea, select {
    font-family: 'Lato', sans-serif;
    transition: 0.2s all;
}

p {
    margin-bottom: 1.3em;
}

h1, h2, h3, h4 {
    font-weight: inherit;
    line-height: 1.2;
    margin: 1.414em 0 0.5em;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child {
    margin-top: 0;
}

h1 {
    font-size: 2.5em;
    margin-top: 0;
}

h2 {
    font-size: 2.1em;
}

h3 {
    font-size: 1.6em;
}

h4 {
    font-size: 1.2em;
}

small, .font_small, .font-small {
    font-size: 0.75em;
}

img {
    max-width: 100%;
}

ul, ol {
    margin-left: 1em;
}

/*************************/
/* hyphenate, word break */
/*************************/
h1, h2, h3, h4, h5, h6 {
    hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    word-break: normal;
    word-break: break-word;
    -ms-word-break: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -ms-hyphens: auto;
}

.word-wrap,
.word-break {
    hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    word-break: normal;
    word-break: break-word;
    -ms-word-break: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -ms-hyphens: auto;
}

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

.text-accent {
    font-weight: normal;
}

/* fix to change the yellow background color on input autofill */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    margin: 0 0 0 10px; /* <-- Apparently some margin are still there even though it's hidden */
    opacity: 0.5;

}

/** helper
 ===================================== */

.grid-children {
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
}

.grid-children-container {
    left: -20px;
    position: relative;
    width: calc(100% + 40px);
}

.hide-on-desktop {
    display: inline-block;
}

.hide-on-mobile {
    display: none;
}

@media (min-width: 767px) {
    .hide-on-desktop {
        display: none;
    }

    .hide-on-mobile {
        display: inline-block;
    }
}

/***********************/
/* sequry custom popup */
/***********************/
.qui-window-popup-title.box {
    display: none;
}

.sequry-customPopup,
.qui-window-popup.box {
    /*max-width: calc(100% - 40px) !important;*/
    /*width: 400px !important;*/
    /*margin: 0 20px;*/
    box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2);
}

/* icon */
.sequry-customPopup .popup-icon,
.qui-window-popup.box .popup-icon {
    border-radius: 50%;
    box-shadow: 0 0 0 4px;
    color: #434545;
    display: block;
    font-size: 30px;
    line-height: 60px;
    margin: 5px auto 20px;
    text-align: center;
    width: 60px;
}

/* content */
.sequry-customPopup .popup-title {
    display: block;
    font-weight: 400;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
}

/* buttons */
.sequry-customPopup .qui-window-popup-buttons,
.qui-window-popup.box .qui-window-popup-buttons {
    align-items: center;
    background: none;
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.sequry-customPopup .qui-window-popup-buttons:after,
.sequry-customPopup .qui-window-popup-sheet-buttons:after,
.qui-window-popup.box .qui-window-popup-buttons:after,
.qui-window-popup.box .qui-window-popup-sheet-buttons:after {
    background: #ddd;
    height: 1px;
    left: 20px;
    opacity: 1;
    width: calc(100% - 40px);
}

.sequry-customPopup .qui-window-popup-buttons .qui-button,
.sequry-customPopup .qui-window-popup-buttons .qui-button:disabled,
.qui-window-popup.box .qui-window-popup-buttons .qui-button,
.qui-window-popup.box .qui-window-popup-buttons .qui-button:disabled {
    background: none;
    border: none;
    box-shadow: none;
    color: #635555;
    width: auto !important;
}

.sequry-customPopup .qui-window-popup-buttons .qui-button,
.qui-window-popup.box .qui-window-popup-buttons .qui-button {
    color: #999999;
}

.sequry-customPopup .qui-window-popup-buttons .qui-button:first-child,
.qui-window-popup.box .qui-window-popup-buttons .qui-button:first-child {
    background: none;
    border: none;
}

/**********/
/* alerts */
/**********/
.sequry-alert-warning {
    background-color: #FAF6D466;
    border: 1px solid #E6C26E66;
    border-radius: 5px;
    color: #000;
    float: left;
    line-height: 20px;
    margin-bottom: 10px;
    margin-top: 20px !important;
    padding: 10px;
    width: 100%;
}

/*******/
/* fix */
/*******/
/* extra Info, dass die öffentliche Kategorien nicht bearbeitet werden können (show password) */
.password-category .pcsg-gpm-tooltip {
    display: none;
}

/************************/
/*  standard table list */
/************************/
.sequry-table-list-entry {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-left: 3px solid #ddd;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    line-height: 120%;
    margin: 5px auto;
    padding: 5px 0;
}

.sequry-table-list-entry:hover {
    border-left-color: #666;
}

.sequry-table-list-entry-icon {
    align-items: center;
    color: #aaa;
    display: flex;
    font-size: 1.3em;
    opacity: 0.5;
    padding: 0 20px;
    width: calc(1rem + 40px);
}

.sequry-table-list-entry-content {
    flex-grow: 1;
}

.sequry-table-list-entry-content-line {
    font-size: 0.9rem;
}

.sequry-table-list-entry-icon-second {
    margin-right: 0;
    padding: 0 20px;
    width: 2.5em;
}

/***********************/
/* user settings panel */
/***********************/
.user-settings-panel .sidebar-panel-content {
    overflow: hidden;
    padding: 0;
}

.user-settings-panel .sidebar-panel-action {
    display: none;
}

.user-settings-panel .sidebar-panel-content > .qui-control {
    display: flex;
    height: 100% !important;
    overflow: hidden;
}

/* sidebar menu */
.user-settings-panel .quiqqer-frontendUsers-controls-profile-categories {
    background: #f5f5f5;
    color: #393e45;
    line-height: 3rem;
    overflow: auto;
    padding: 0;
}

.user-settings-panel .quiqqer-fupc-category {
    margin-top: 2rem;
}

.user-settings-panel .quiqqer-fupc-category-header {
    border-bottom: none !important;
    display: flex;
    font-size: 1.1rem;
    font-weight: normal;
    margin: 0 !important;
    padding: 0 0 0 2rem;
}

.user-settings-panel .quiqqer-fupc-category-header-opener {
    display: none;
    line-height: inherit;
    margin-left: auto;
    position: relative;
    width: 3rem;
}

/* deactive some items */
.user-settings-panel .quiqqer-fupc-category .quiqqer-fupc-category-items-item[data-setting="deleteaccount"],
.user-settings-panel .quiqqer-fupc-category .quiqqer-fupc-category-items-item[data-setting="changepassword"],
.user-settings-panel .quiqqer-fupc-category .quiqqer-fupc-category-items-item[data-setting="address"] {
    display: none;
}

.user-settings-panel .quiqqer-fupc-category .quiqqer-fupc-category-items-item {
    color: #74787e;
    line-height: inherit;
    padding: 0 2rem;
}

.user-settings-panel .quiqqer-fupc-category .quiqqer-fupc-category-items-item--active,
.user-settings-panel .quiqqer-fupc-category .quiqqer-fupc-category-items-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: inherit;
}

.user-settings-panel .quiqqer-fupc-category .quiqqer-fupc-category-items-item-icon {
    line-height: inherit;
    margin-right: 1rem;
    width: 1rem;
}

/* user panel content */
.user-settings-panel .quiqqer-frontendUsers-controls-profile-categoryContent {
    overflow: auto;
    padding: 2rem;
}

.user-settings-panel .quiqqer-frontendUsers-controls-profile-categoryContent h2 {
    margin-top: 0;
}

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

    .user-settings-panel .sidebar-panel-content > .qui-control {
        display: block;
        height: auto !important;
    }

    .user-settings-panel .sidebar-panel-content {
        overflow-x: hidden;
        overflow-y: auto;
        padding: 2rem 0;
    }

    .user-settings-panel .quiqqer-frontendUsers-controls-profile-categoryContent {
        height: auto !important;
        padding: 0 2rem;
    }

    .user-settings-panel select[name="profile-categories"] {
        background: #f5f5f5;
        height: 3rem;
        margin: 0 2rem 2rem;
        outline: none;
        width: calc(100% - 4rem);
    }
}

/* user data */
.quiqqer-frontendUsers-controls-profile-userdata h2 {
    font-size: 1.6em;
}

.quiqqer-frontendUsers-controls-profile-userdata .quiqqer-frontendUsers-userdata-section,
.quiqqer-frontendUsers-controls-profile-userdata .quiqqer-frontendUsers-userdata-address,
.quiqqer-frontendUsers-controls-profile-userdata .quiqqer-frontendUsers-userdata-address-additional {
    margin-bottom: 2rem;
    max-width: 100%;
}

.quiqqer-frontendUsers-controls-profile-userdata .quiqqer-frontendUsers-userdata-label {
    margin-right: 20px;
}

.quiqqer-frontendUsers-controls-profile-userdata input,
.quiqqer-frontendUsers-controls-profile-userdata input[type="text"] {
    border-color: #ddd;
    border-left: none;
    border-radius: 0;
    border-right: none;
    border-top: none;
    outline: none;
    width: calc(70% - 20px) !important;
}

.quiqqer-frontendUsers-controls-profile-userdata input:hover,
.quiqqer-frontendUsers-controls-profile-userdata input:focus,
.quiqqer-frontendUsers-controls-profile-userdata input[type="text"]:hover,
.quiqqer-frontendUsers-controls-profile-userdata input[type="text"]:focus {
    border-color: #aaa;
}

.quiqqer-frontendUsers-controls-profile-userdata .quiqqer-frontendUsers-userdata-address-country-select,
.quiqqer-frontendUsers-controls-profile-userdata .quiqqer-frontendUsers-userdata-email {
    width: calc(70% - 20px);
}

.quiqqer-frontendUsers-controls-profile-userdata .qui-select {
    background: #eee;
    border: none;
}

.package-intranet-profile-birthday select {
    background: #eee;
    border: none;
    padding-bottom: 10px;
    padding-top: 10px;
}

.quiqqer-frontendUsers-controls-profile-userdata .quiqqer-frontendUsers-userdata-email {
    float: left;
}

.quiqqer-frontendUsers-controls-profile-userdata .quiqqer-frontendUsers-userdata-email input {
    width: calc(100% - 60px) !important;
}

.quiqqer-frontendUsers-controls-profile-userdata .quiqqer-frontendUsers-userdata-email-edit {
    border-right: none;
    border-top: none;
    line-height: 40px;
    transition: 0.2s all;
}

.quiqqer-frontendUsers-controls-profile-userdata .quiqqer-frontendUsers-userdata-email:hover .quiqqer-frontendUsers-userdata-email-edit,
.quiqqer-frontendUsers-controls-profile-userdata .quiqqer-frontendUsers-userdata-email input:focus ~ .quiqqer-frontendUsers-userdata-email-edit {
    border-color: #aaa;
}

.quiqqer-frontendUsers-controls-profile-userdata .quiqqer-frontendUsers-userdata-saveButton {
    margin-left: auto;
}

/* avatar */
.quiqqer-frontendUsers-UserAvatar .quiqqer-frontendUsers-userAvatar-gravatar {
    margin: 2rem 0;
}

.quiqqer-frontendUsers-UserAvatar .quiqqer-frontendUsers-userAvatar-saveButton {
    float: right;
}