html {
    scroll-behavior: smooth;
}

.main__content {
    background-color: hsl(0, 0%, 100%);
}
/** Mobile **/
@media screen and (max-width: 640px) {
    .content {
        padding: 1rem;
    }
    .content__section {
        position: relative;
    }
    .title__container {
        padding: 0 0 2rem;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        min-height: 10rem;
    }
    .title__container > img {
        display: none;
    }
    .title__label,
    .title__label.ui-widget.ui-widget {
        color: #000;
        font-family: "UrwDinRegular",sans-serif;
        padding: 2rem 0;
        font-size: 2rem;
        vertical-align: text-top;
        margin-left: 10px;
    }
    .content__panel,
    .content__panel .ui-panel-title {
        display: block;
        font-family: "UrwDinMedium" ,sans-serif;
        font-size: 1.25rem;
        color: #456D2B;
        margin-bottom: 3rem;
    }
    .content__panel .ui-panel-title {
        margin: 0;
        padding: 0.5rem 0.5rem 0.5rem 0;
    }

    .content__panel.panel-grid .ui-panel-title {
        border: none;
    }
    .content__panel.panel-grid > .ui-panel-titlebar {
        border-bottom: 2px solid #737373;
    }

    .panel-grid {
        margin-top: 2rem;
    }

    .content__panel:not(.panel-grid) .ui-panel-title {
        margin-bottom: 3rem;
        border-bottom: 2px solid #737373;
    }

    .panels {
        margin-top: 3rem;
    }

    .panels

    .panels > :first-child,
    .panels > :last-child {
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
        margin: 2rem 0 1rem;
    }
    .content__section--return-button button {
        width: 100%;
    }
}
/** TABLET AND SMALL DESKTOP **/
@media screen and (min-width: 641px) and (max-width: 1024px) {
    .main__content {
        padding-top: 8rem;
    }
    .content__section {
        position: relative;
        padding: 2rem 2rem 0;
    }
    .ui-separator {
        border-bottom: 1px solid hsl(0, 0%, 72%);
    }
}

/** TABLET **/
@media screen and (min-width: 641px) and (max-width: 1024px) {
    .title__container {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        margin-bottom: 1rem;
        justify-content: flex-start;
    }
    .title__label,
    .title__label.ui-widget.ui-widget {
        font-family: "UrwDinLight" ,sans-serif;
        font-size: 2.5rem;
        padding: 1rem 2rem 0;
        color: #000;
    }

    .ui-panel-content .ui-widget-content {
        position: initial;
    }

    .panel-grid__button-new {
        position: absolute;
        right: 2rem;
        bottom: 2rem;
    }
}
/** SMALL DESKTOP **/
@media screen and (min-width: 1025px) {
    .content__section {
        padding: 0 4.3rem;
        position: relative;
    }
    .stopka{
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        padding-top: 12px;
    }
    .content__separator {
        padding: 1rem 4.3rem 13px;
    }
    .ui-separator {
        border-bottom: 1px solid hsl(0, 0%, 72%);
    }
    .title__container {
        padding: 6rem 0 2rem 2.2rem !important;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        justify-content: flex-start;

    }
    .title__label,
    .title__label.ui-widget.ui-widget {
        font-family: "UrwDinLight" ,sans-serif !important;
        font-size: 2.75rem;
        padding-left: 2.5rem;
        color: #000 !important;
    }
    .title__return {
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        text-align: right;
    }

    .content__panel,
    .content .content__panel.ui-panel {
        border: 1px solid hsl(0, 0%, 72%);
        padding: 2rem 2rem 2.18rem;
        margin-bottom: 2.8rem;
    }

    .content__panel,
    .content__panel .ui-panel-title {
        display: block;
        font-family: "UrwDinDemi" ,sans-serif;
        font-size: 1.25rem;
        color: #456D2B;
        padding-bottom: 2rem;
    }
    .content__panel .ui-panel-title {
        margin-right: 0;
        border-bottom: 1px solid hsl(0, 9%, 72%);
    }
    .panel-grid > .ui-panel-content {
        position: relative;
    }
    .panel-grid__button-new {
        position: absolute;
        right: 0.6rem;
        bottom: 0.88rem;
    }
    .panel-grid__button-all {
        text-align: right;
        margin-top: 2rem;
    }
    .content__section--return-button {
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        text-align: right;
    }

    /** LOGIN **/
    .login__slogan {
        background: url("/kontrahent/javax.faces.resource/img/login_slogan_bg.jpg.xhtml") no-repeat hsl(209, 81%, 29%) fixed;
        background-position-x: 100%;
        background-position-y: 115px;
    }
    .login__slogan h1 {
        color: hsl(0, 0%, 100%);
        font-size: 4rem;
        max-width: 30rem;
    }
    .login__slogan .ui-outputpanel {
        color: hsl(0, 0%, 100%);
        margin-top: 2rem;
        font-size: 1.5rem;
    }

    .panels {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        margin: 4rem 0;
    }
    .panels:not(.notpanels) > * {
        padding: 2rem;
        border: 1px solid #737373;
        -ms-flex-preferred-size: 49%;
        flex-basis: 49%;
    }

    .content__subpanel .ui-panel-title {
        color: #000;
        font-family: "UrwDinRegular",sans-serif;
    }
}

/** MEDIUM DESKTOP **/
@media screen and (min-width: 1025px) and (max-width: 1440px) {
    .content__section,
    .header__content{
        padding: 0 3.2rem;
    }
    .panels {
        margin: 1rem 0;
    }

    .panels > :first-child,
    .panels > :last-child {
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
        margin: 2rem 0 1rem;
    }
}
li.ui-widget.ui-menuitem.ui-corner-all.ui-menu-parent {
    margin-right: 2%;

}
.ui-widget {
    font-family: UrwDinRegular,sans-serif;
}
.ui-widget-content {
    color: #000000 !important;
}
.titleImage {
    display: flex;
    display: -webkit-flex;
}
.grafika {
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    justify-content: center;
    -webkit-justify-content: center;
}

span.help-icon {
    background-color: #456D2B !important;
    color: white !important;
    border: 1px solid white !important;
    z-index: 2;
}

@media screen and (min-width: 1025px){
    tr.ui-widget-content:hover > td, tr.ui-widget-content:hover > td label {
        background-color: #456D2B;
        color: white !important;
    }
    tr.ui-widget-content:hover > td, tr.ui-widget-content:hover > td label span.help-icon-text {
        color: black;
    }
    tr.ui-widget-content:hover > td, tr.ui-widget-content:hover > td label span {
        color: white;
    }
    td label.login__help span {
        color: black;
    }
}