:root {
    --mhg-red: #9B111E;
    --mhg-red-dark: #780b16;
    --mhg-blue: #0047AB;
    --mhg-blue-soft: #eaf2ff;
    --mhg-yellow: #FCD116;
    --mhg-ink: #273142;
    --mhg-muted: #657386;
    --mhg-border: #dfe6ee;
    --mhg-surface: #ffffff;
    --mhg-page: #f3f7fa;
    --eu-topbar-height: 52px;
}

body {
    background: var(--mhg-page);
    color: var(--mhg-ink);
}

a {
    color: var(--mhg-blue);
}

a:hover {
    color: var(--mhg-red);
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(0, 71, 171, .25) !important;
    outline-offset: 2px;
}

.eu-login-page {
    min-height: 100vh;
    padding: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 420px);
    gap: 32px;
    align-items: center;
    background:
        linear-gradient(120deg, rgba(0, 71, 171, .08), rgba(155, 17, 30, .05)),
        var(--mhg-page);
}

.eu-investment-panel,
.login-box {
    border: 1px solid rgba(39, 49, 66, .08);
    border-radius: 8px;
    background: var(--mhg-surface);
    box-shadow: 0 18px 45px rgba(24, 39, 75, .10);
}

.eu-investment-panel {
    padding: 28px;
    display: flex;
    min-height: 560px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.eu-logo-line {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--mhg-border);
}

.eu-logo-line img {
    display: block;
    width: min(100%, 806px);
    height: auto;
}

.eu-kicker {
    margin: 26px 0 10px;
    color: var(--mhg-blue);
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.eu-project-copy h1 {
    max-width: 860px;
    margin: 0 0 22px;
    color: var(--mhg-ink);
    font-size: clamp(1.65rem, 3vw, 2.75rem);
    line-height: 1.12;
    font-weight: 700;
}

.eu-beneficiary,
.eu-project-values {
    display: grid;
    gap: 12px;
}

.eu-beneficiary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 22px;
}

.eu-beneficiary div,
.eu-project-values div {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--mhg-border);
    border-radius: 8px;
    background: #fbfdff;
}

.eu-beneficiary dt,
.eu-project-values span {
    display: block;
    margin-bottom: 4px;
    color: var(--mhg-muted);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.eu-beneficiary dd {
    margin: 0;
    font-size: .98rem;
    font-weight: 600;
}

.eu-project-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eu-project-values strong {
    display: block;
    color: var(--mhg-red);
    font-size: 1.1rem;
    line-height: 1.2;
}

.eu-disclaimer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--mhg-border);
    color: var(--mhg-muted);
    font-size: .82rem;
}

.eu-disclaimer p {
    margin: 0 0 6px;
}

.login-box {
    width: 100%;
    margin: 0;
    padding: 30px;
}

.custom-logo {
    width: 240px;
    height: 58px;
    margin-bottom: 18px;
    background: url("imgs/logo_galenus_resize.png") left center / contain no-repeat;
}

.login-box .titlu {
    margin-bottom: 18px;
    color: var(--mhg-ink);
    font-size: 1.85rem;
    line-height: 1.15;
    font-weight: 700;
}

.login-desc {
    color: var(--mhg-muted);
    line-height: 1.55;
}

.login-desc-span,
.pwd-recovery a,
.login-form label {
    color: var(--mhg-red);
}

.login-form label {
    font-size: .9rem;
    font-weight: 700;
}

.form-control {
    min-height: 44px;
    border: 1px solid var(--mhg-border);
    border-radius: 6px;
}

.form-control:focus {
    border-color: var(--mhg-blue);
    box-shadow: 0 0 0 .2rem rgba(0, 71, 171, .14);
}

.btn {
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0;
}

.btn-login {
    background: var(--mhg-red);
    background-image: linear-gradient(90deg, #c90010, var(--mhg-red-dark));
}

.btn-login:hover {
    background: var(--mhg-red-dark);
}

.btn-create {
    border: 1px solid rgba(155, 17, 30, .15);
    background: #f8fbfc;
}

.btn-create:hover {
    background: var(--mhg-blue-soft);
    color: var(--mhg-blue);
}

.eu-compact-strip {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1002;
    height: var(--eu-topbar-height);
    padding: 7px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--mhg-border);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 4px 18px rgba(24, 39, 75, .08);
}

.eu-compact-logos {
    flex: 0 0 auto;
}

.eu-compact-logos img {
    display: block;
    width: 330px;
    max-width: 36vw;
    height: auto;
}

.eu-compact-text {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--mhg-ink);
    font-size: .86rem;
    line-height: 1.25;
}

.eu-compact-text strong,
.eu-compact-text span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eu-compact-text strong {
    color: var(--mhg-red);
}

.skunk-menu-main {
    top: var(--eu-topbar-height);
    z-index: 1001;
    background: #fff;
}

.skunk-menu-wrapper {
    top: calc(60px + var(--eu-topbar-height));
}

.header-placeholder {
    height: calc(3em + var(--eu-topbar-height));
}

.AppContainer>header {
    padding-top: calc(4em + var(--eu-topbar-height));
}

.appLogo {
    background-size: contain;
    background-position: left center;
}

.DataRow.dashboardPage {
    max-width: 1360px;
    margin-right: auto;
    margin-left: auto;
}

.card {
    border: 1px solid var(--mhg-border);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(24, 39, 75, .07);
}

.card-header,
.gradgreen {
    background: var(--mhg-red);
    background-image: linear-gradient(90deg, var(--mhg-red), #b91a2a);
}

.card-header:first-child {
    border-radius: 8px 8px 0 0;
}

.card-body {
    line-height: 1.45;
}

.card-icns,
.card-icns_blue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-icns a,
.card-icns_blue a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.card-icns a:hover,
.card-icns_blue a:hover {
    background: rgba(255, 255, 255, .18);
}

.card-icns_blue a:hover {
    background: var(--mhg-blue-soft);
}

sk-grid {
    display: block;
    max-width: 100%;
}

.dashtable {
    margin-bottom: 0;
}

.dashtable td,
.dashtable th {
    max-width: none;
    white-space: normal;
    line-height: 1.35;
}

.dashtable thead td {
    color: var(--mhg-red);
    font-weight: 700;
    border-bottom: 1px solid var(--mhg-border);
}

.dashtable tbody tr + tr {
    border-top: 1px solid var(--mhg-border);
}

.nav-tabs.primary-tabs {
    display: flex;
    flex-wrap: nowrap;
}

.nav-tabs .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-tabs .nav-link.active {
    color: var(--mhg-blue);
}

@media screen and (max-width: 1100px) {
    .eu-login-page {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .eu-investment-panel {
        min-height: auto;
    }
}

@media screen and (max-width: 767px) {
    :root {
        --eu-topbar-height: 72px;
    }

    .eu-login-page {
        padding: 14px;
        gap: 14px;
    }

    .eu-investment-panel,
    .login-box {
        padding: 16px;
    }

    .eu-logo-line {
        padding-bottom: 16px;
    }

    .eu-kicker {
        margin-top: 16px;
        font-size: .72rem;
    }

    .eu-beneficiary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 14px;
    }

    .eu-beneficiary div:nth-child(3) {
        grid-column: 1 / -1;
    }

    .eu-project-values {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .eu-beneficiary div,
    .eu-project-values div {
        padding: 10px;
    }

    .eu-beneficiary dt,
    .eu-project-values span {
        font-size: .66rem;
    }

    .eu-beneficiary dd {
        font-size: .86rem;
    }

    .eu-project-values strong {
        font-size: .9rem;
    }

    .eu-disclaimer {
        margin-top: 14px;
        padding-top: 12px;
        font-size: .72rem;
    }

    .eu-project-copy h1 {
        margin-bottom: 14px;
        font-size: 1.35rem;
    }

    .login-box .titlu {
        font-size: 1.55rem;
    }

    .custom-logo {
        width: 210px;
        height: 50px;
    }

    .eu-compact-strip {
        padding: 7px 10px;
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .eu-compact-logos img {
        width: 280px;
        max-width: calc(100vw - 20px);
    }

    .eu-compact-text {
        width: 100%;
        font-size: .76rem;
    }

    .eu-compact-text span {
        display: none;
    }

    li.userIcon.userprofile {
        padding: 0 .55em;
    }

    .DataRow {
        padding: 12px !important;
    }

    .DataRow.dashboardPage {
        padding-top: 0 !important;
    }

    .card {
        margin-bottom: 12px;
    }

    .card-body {
        padding: .85rem;
    }

    .card-icns,
    .card-icns_blue {
        position: static;
        float: none;
        margin-top: 8px;
    }

    .nav-tabs.primary-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs .nav-item {
        flex: 0 0 auto;
    }

    sk-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashtable {
        min-width: 620px;
    }

    .pageTitle {
        font-size: 1rem;
    }
}

@media screen and (max-width: 420px) {
    .eu-login-page {
        padding: 0;
    }

    .eu-investment-panel,
    .login-box {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-box {
        padding-bottom: 28px;
    }
}
