:root {
    --gp-green: #8cc418;
    --gp-green-dark: #285b2d;
    --gp-green-mid: #4f7f2f;
    --gp-magenta: #c0185b;
    --gp-surface: #f5f8f2;
    --gp-border: #dbe6d2;
    --gp-text: #1f2d22;
    --gp-muted: #5f6f62;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--gp-text);
    background: var(--gp-surface);
}

.bg-light {
    background: var(--gp-surface) !important;
}

.btn-primary,
.btn-custom,
.btn-fixed,
.btn-info {
    background-color: var(--gp-green-mid);
    border-color: var(--gp-green-mid);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-custom:hover,
.btn-fixed:hover,
.btn-info:hover {
    background-color: var(--gp-green-dark);
    border-color: var(--gp-green-dark);
    color: #fff;
}

.card {
    border: 1px solid var(--gp-border);
    border-radius: 8px;
}

.card.shadow-lg {
    box-shadow: 0 18px 45px rgba(31, 45, 34, 0.12) !important;
}

.gp-login-logo {
    display: block;
    width: auto;
    height: 64px;
    max-width: 140px;
    object-fit: contain;
    margin: 0 auto 14px;
}

.gp-login-title {
    color: var(--gp-green-dark);
    font-weight: 650;
}

.gp-login-subtitle {
    color: var(--gp-muted);
    font-size: 0.95rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.navbar,
.gp-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding-left: 22px;
    padding-right: 22px;
    box-shadow: 0 2px 8px rgba(31, 45, 34, 0.16);
    background-color: #ffffff !important;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 64px;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link {
    color: var(--gp-green-dark) !important;
    text-align: center;
    font-weight: 600;
}

.navbar a {
    text-transform: none;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--gp-green-dark) !important;
    font-weight: 700;
    letter-spacing: 0;
    margin-right: 32px;
}

.navbar-brand .gp-nav-logo {
    width: auto !important;
    height: 36px !important;
    max-width: 78px;
    max-height: 36px;
    flex: 0 0 auto;
    object-fit: contain;
}

.gp-brand-title {
    font-size: 1.18rem;
    line-height: 1;
    white-space: nowrap;
}

.fa,
.fas {
    color: var(--gp-green-dark);
    font-family: "Font Awesome 5 Free";
}

.navbar-toggler {
    border-color: rgba(40, 91, 45, 0.28);
}

.navbar-light .navbar-toggler-icon {
    filter: none;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--gp-green-mid) !important;
}

.dropdown-menu {
    border-color: var(--gp-border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(31, 45, 34, 0.14);
    padding: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    color: var(--gp-text);
    font-weight: 500;
    padding: 8px 10px;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(140, 196, 24, 0.16);
    color: var(--gp-green-dark);
}

.gp-user-menu {
    gap: 10px;
}

.gp-user-label,
.gp-account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gp-muted);
    font-weight: 600;
}

.gp-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gp-green-dark);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.gp-avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}

.gp-account-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gp-account-menu {
    width: min(320px, calc(100vw - 24px));
}

.gp-account-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 12px;
}

.gp-account-title {
    color: var(--gp-text);
    font-weight: 700;
    line-height: 1.2;
}

.gp-account-role {
    color: var(--gp-muted);
    font-size: 0.85rem;
}

.gp-account-details {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--gp-border);
    border-bottom: 1px solid var(--gp-border);
}

.gp-account-details div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--gp-muted);
    font-size: 0.84rem;
}

.gp-account-details strong {
    color: var(--gp-text);
    font-weight: 650;
    text-align: right;
    overflow-wrap: anywhere;
}

.gp-logout-link i,
.gp-logout-link span {
    color: var(--gp-magenta);
}

.main-container {
    display: flex;
    flex: 1;
    margin-top: 64px;
    overflow: hidden;
}

.content {
    flex-grow: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.external-frame {
    width: 100%;
    height: calc(100vh - 64px);
    border: none;
}

#content {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;
}

.portal-home {
    width: min(100%, 980px);
    padding: 34px 6px;
}

.portal-kicker {
    color: var(--gp-green-mid);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.portal-home h1 {
    color: var(--gp-green-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.portal-home p:last-child {
    color: var(--gp-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

#reportContainer {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .navbar,
    .gp-topbar {
        align-items: flex-start;
        height: auto;
        min-height: 64px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar-collapse {
        padding-top: 10px;
    }

    .navbar-nav {
        align-items: stretch;
    }

    .gp-user-label,
    .gp-account-toggle {
        padding: 8px 14px;
    }

    .gp-account-menu {
        width: 100%;
    }
}
