﻿:root {
    --maene-green: #2f6b59;
    --maene-green-dark: #244f42;
    --maene-green-soft: #eefaf3;
    --maene-green-soft-2: #e5f4eb;
    --maene-border: #dce9e1;
    --maene-text: #1f2a24;
    --maene-text-soft: #66756d;
    --maene-bg: #f7f9f7;
    --maene-card-shadow: 0 10px 30px rgba(31, 42, 36, 0.06);
    --maene-card-shadow-soft: 0 8px 24px rgba(31, 42, 36, 0.05);
    --maene-radius-lg: 1.1rem;
    --maene-radius-md: 1rem;
    --maene-radius-sm: .8rem;
}

/* =========================================================
   BASIS
========================================================= */
html {
    font-size: 16px;
}

body {
    background-color: var(--maene-bg);
    color: var(--maene-text);
}

.page-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-spacing {
    margin-top: 2rem;
}

/* =========================================================
   LAYOUT / HEADER / FOOTER
========================================================= */
.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.page-content {
    background: transparent;
}

.portal-header {
    padding: 1rem 0 0 0;
    margin-bottom: 1.5rem;
}

.portal-navbar-wrap {
    background: #ffffff;
    border: 1px solid var(--maene-border);
    border-radius: var(--maene-radius-lg);
    box-shadow: var(--maene-card-shadow);
    overflow: hidden;
}

.portal-navbar {
    padding: .9rem 1.1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--maene-green-soft) 100%);
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    text-decoration: none;
    color: var(--maene-text);
}

    .portal-brand:hover {
        color: var(--maene-text);
        text-decoration: none;
    }

.portal-brand-logo {
    height: 44px;
    width: auto;
    display: block;
}

.portal-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.portal-brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--maene-text);
    margin: 0;
}

.portal-brand-subtitle {
    font-size: .85rem;
    color: var(--maene-text-soft);
    margin: .2rem 0 0 0;
}

.navbar-toggler {
    border: 1px solid var(--maene-border);
    padding: .45rem .7rem;
    border-radius: .75rem;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 .2rem rgba(47, 107, 89, 0.15);
    }

.portal-nav-right {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.portal-user-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: #ffffff;
    border: 1px solid var(--maene-border);
    color: var(--maene-text);
    text-decoration: none;
    border-radius: 999px;
    padding: .55rem 1rem;
    font-weight: 500;
    transition: all .18s ease;
}

    .portal-user-badge:hover {
        background: var(--maene-green-soft);
        color: var(--maene-text);
        text-decoration: none;
    }

.portal-user-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--maene-green);
    color: #fff;
    font-size: .9rem;
    flex-shrink: 0;
}

.portal-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: 999px;
    padding: .55rem 1rem;
    text-decoration: none;
    border: 1px solid var(--maene-border);
    background: #fff;
    color: var(--maene-text);
    transition: all .18s ease;
}

    .portal-logout-btn:hover {
        background: #f4f7f5;
        color: var(--maene-text);
        border-color: #cfded5;
        text-decoration: none;
    }

.portal-footer {
    margin-top: 2rem;
    padding: 1rem 0 2rem 0;
}

.portal-footer-box {
    background: #fff;
    border: 1px solid var(--maene-border);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    text-align: center;
    color: var(--maene-text-soft);
    box-shadow: 0 6px 20px rgba(31, 42, 36, 0.04);
}

    .portal-footer-box a {
        color: var(--maene-green-dark);
        text-decoration: none;
        font-weight: 500;
    }

        .portal-footer-box a:hover {
            text-decoration: underline;
        }

/* =========================================================
   TAALKEUZE
========================================================= */
.language-switch .dropdown-toggle {
    border: 1px solid #dee2e6;
    border-radius: 999px;
    padding: .55rem 1rem;
    background-color: #fff;
    color: #212529;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
}

    .language-switch .dropdown-toggle::after {
        margin-left: .5rem;
    }

/* =========================================================
   HOME PAGINA
========================================================= */
.portal-hero {
    background: linear-gradient(135deg, #ffffff 0%, var(--maene-green-soft) 100%);
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid var(--maene-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.portal-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--maene-text);
}

.portal-hero-text {
    color: var(--maene-text-soft);
    margin-bottom: 0;
}

.quick-action-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: var(--maene-card-shadow-soft);
    overflow: hidden;
    background: #fff;
}

.quick-action-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--maene-green);
    color: #fff;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.quick-action-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--maene-text);
}

.quick-action-subtitle {
    margin: .15rem 0 0 0;
    color: var(--maene-text-soft);
    font-size: .95rem;
}

.quick-action-body-responsive {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-action-content {
    min-width: 0;
}

.quick-action-button-wrap {
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .quick-action-body-responsive {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .quick-action-icon {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .quick-action-content {
        flex: 1 1 calc(100% - 64px);
    }

    .quick-action-button-wrap {
        width: 100%;
    }

    .quick-action-button {
        width: 100%;
    }

    .quick-action-title {
        font-size: 1rem;
    }

    .quick-action-subtitle {
        font-size: .9rem;
    }
}

.portal-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: var(--maene-card-shadow-soft);
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
    overflow: hidden;
    background: #fff;
}

    .portal-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
    }

.portal-card-header {
    padding: 1.25rem 1.25rem .75rem 1.25rem;
    border-bottom: 0;
    background: #fff;
}

.portal-card-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--maene-text);
}

.portal-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--maene-green);
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

    .portal-card-icon svg {
        width: 22px;
        height: 22px;
        display: block;
    }

.portal-card-body {
    padding: .5rem 1.25rem 1.25rem 1.25rem;
}

.portal-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .portal-links li + li {
        margin-top: .5rem;
    }

    .portal-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .8rem .95rem;
        border-radius: .75rem;
        text-decoration: none;
        color: #212529;
        background: #f8f9fa;
        transition: background-color .15s ease, transform .15s ease;
    }

        .portal-links a:hover {
            background: var(--maene-green-soft);
            transform: translateX(2px);
            text-decoration: none;
        }

        .portal-links a span.link-text {
            display: flex;
            align-items: center;
            gap: .65rem;
        }

        .portal-links a i.link-arrow {
            color: #6c757d;
            font-size: .9rem;
        }

/* =========================================================
   PAGINAKOP
========================================================= */
.page-header-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--maene-green-soft) 100%);
    border: 1px solid var(--maene-border);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(31, 42, 36, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: var(--maene-green);
    font-weight: 600;
    margin-bottom: .75rem;
}

    .back-link:hover {
        color: var(--maene-green-dark);
        text-decoration: none;
    }

.page-title {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--maene-text);
}

.page-subtitle {
    margin: .35rem 0 0 0;
    color: var(--maene-text-soft);
}

/* =========================================================
   KLANTGEGEVENS PAGINA
========================================================= */
.profile-form {
    margin-bottom: 2rem;
}

.profile-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(31, 42, 36, 0.06);
    overflow: hidden;
    background: #fff;
}

.profile-card-header {
    background: #fff;
    border-bottom: 1px solid #edf2ee;
    padding: 1rem 1.25rem;
}

.profile-card-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--maene-text);
}

.profile-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--maene-green);
    color: #fff;
    flex-shrink: 0;
}

.profile-card-body {
    padding: 1.25rem;
    background: #fff;
}

.field-grid {
    display: grid;
    gap: 1rem;
}

.form-label {
    font-weight: 600;
    color: #33413a;
    margin-bottom: .45rem;
}

.form-control,
.form-select {
    border-radius: .8rem;
    border: 1px solid #d9e6de;
    padding: .75rem .95rem;
    min-height: 48px;
    box-shadow: none;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #82b29a;
        box-shadow: 0 0 0 .2rem rgba(47, 107, 89, 0.12);
    }

.readonly-value {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: .75rem .95rem;
    background: #f7faf8;
    border: 1px solid #e3ece6;
    border-radius: .8rem;
    color: #33413a;
    font-weight: 500;
}

.save-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-save {
    border-radius: 999px;
    padding: .8rem 1.4rem;
    font-weight: 600;
    min-width: 150px;
    box-shadow: 0 8px 20px rgba(47, 107, 89, 0.15);
}

.customer-divider {
    margin: 2rem 0;
    border-color: #e7efe9;
}

/* =========================================================
   BESTELLINGEN PAGINA
========================================================= */
.customer-section + .customer-section {
    margin-top: 2rem;
}

.customer-section-header {
    margin-bottom: 1rem;
}

.customer-section-badge {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    background: #ffffff;
    border: 1px solid var(--maene-border);
    border-radius: 999px;
    padding: .65rem 1rem;
    color: var(--maene-text);
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(31, 42, 36, 0.04);
}

    .customer-section-badge i {
        color: var(--maene-green);
    }

.order-card {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 42, 36, 0.06);
}

.order-card-header {
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    border-bottom: 1px solid #edf2ee;
    background: linear-gradient(135deg, #ffffff 0%, var(--maene-green-soft) 100%);
}

.order-card-header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-card-title-wrap {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.order-card-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--maene-text);
}

.order-card-meta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--maene-text-soft);
    font-size: .95rem;
}

.order-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.order-action-btn {
    border-radius: 999px;
    font-weight: 600;
    padding: .55rem 1rem;
}

.order-card-body {
    padding: 1.25rem;
}

.order-lines-header {
    display: grid;
    grid-template-columns: 2fr 5fr 1.5fr;
    gap: 1rem;
    padding: 0 1rem .75rem 1rem;
    font-weight: 700;
    color: #33413a;
    border-bottom: 1px solid #edf2ee;
    margin-bottom: .75rem;
}

.order-lines-list {
    display: grid;
    gap: .85rem;
}

.order-line-item {
    display: grid;
    grid-template-columns: 2fr 5fr 1.5fr;
    gap: 1rem;
    align-items: start;
    background: #f9fbfa;
    border: 1px solid #e7efe9;
    border-radius: .9rem;
    padding: 1rem;
    transition: background-color .15s ease, transform .15s ease;
}

    .order-line-item:hover {
        background: var(--maene-green-soft);
        transform: translateY(-1px);
    }

.order-line-col {
    min-width: 0;
}

.order-line-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--maene-text-soft);
    margin-bottom: .25rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.order-line-value {
    color: var(--maene-text);
    word-break: break-word;
}

.order-line-code {
    font-weight: 600;
}

.order-line-extra-link {
    margin-top: .4rem;
}

    .order-line-extra-link a {
        color: var(--maene-green-dark);
        text-decoration: none;
        font-weight: 500;
    }

        .order-line-extra-link a:hover {
            text-decoration: underline;
        }

.empty-state-card {
    background: #fff;
    border: 1px solid var(--maene-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    color: var(--maene-text-soft);
    box-shadow: 0 8px 24px rgba(31, 42, 36, 0.05);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--maene-green-soft);
    color: var(--maene-green);
    font-size: 1.4rem;
}

.empty-state-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--maene-text);
}

@media (max-width: 1199.98px) {
    .order-line-item {
        grid-template-columns: 1fr;
        gap: .75rem;
    }
}

@media (max-width: 767.98px) {
    .order-card-header {
        padding: 1rem;
    }

    .order-card-body {
        padding: 1rem;
    }

    .order-action-btn {
        width: 100%;
        justify-content: center;
    }

    .order-card-actions {
        width: 100%;
        flex-direction: column;
    }
}

/* =========================================================
   LOGIN PAGINA
========================================================= */
.login-card {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--maene-card-shadow);
}

.login-card-body {
    padding: 3rem 2.5rem;
}

.login-side-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-logo {
    width: 100px;
    height: auto;
}

.login-title {
    font-size: 1.75rem;
}

.login-form {
    max-width: 520px;
}

.login-provider-btn {
    border: 1px solid var(--maene-border);
    border-radius: .8rem;
    padding: .65rem 1rem;
    background: #fff;
}

    .login-provider-btn:hover {
        background: #f8faf9;
        border-color: #cfddd5;
    }

.login-provider-img {
    max-width: 100%;
    height: 38px;
    object-fit: contain;
}

.portal-card-title-simple {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--maene-text);
    margin-bottom: .75rem;
}

.login-features-title {
    font-size: 1.4rem;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .login-card-body {
        padding: 2rem 1.5rem;
    }
}

/* =========================================================
   LOGIN SUCCESS PAGINA
========================================================= */
.login-success-box {
    max-width: 560px;
}

.login-success-icon {
    margin: 0 0 1rem 0;
}

/* =========================================================
   LOGIN ERROR PAGINA
========================================================= */

.login-error-box {
    max-width: 560px;
}

.login-error-icon {
    background: #fff4f4;
    color: #d64545;
}

/* =========================================================
   STEMBEURTEN PAGINA
========================================================= */
.stembeurt-lines-header,
.stembeurt-line-item {
    grid-template-columns: 3fr 3fr 2fr;
}

.stembeurt-line-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.empty-state-compact {
    padding: 1rem 1.25rem;
    text-align: left;
    box-shadow: none;
}

@media (max-width: 1199.98px) {
    .stembeurt-line-item {
        grid-template-columns: 1fr;
    }

    .stembeurt-line-actions {
        justify-content: flex-start;
    }
}

/* =========================================================
   STEMBEURT AANVRAAG
========================================================= */
.location-option {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem 1rem;
    border: 1px solid #e3ece6;
    border-radius: .8rem;
    background: #f9fbfa;
    cursor: pointer;
    transition: all .15s ease;
}

    .location-option:hover {
        background: var(--maene-green-soft);
        border-color: #cfe2d7;
    }

    .location-option input {
        margin-top: .25rem;
    }

.location-option-text {
    display: block;
}

/* =========================================================
   EMBED FORM / JOTFORM
========================================================= */
.embed-form-wrapper {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
}

.embed-form-iframe {
    width: 100%;
    max-width: 100%;
    min-height: 540px;
    height: 540px;
    border: 0;
    display: block;
    background: #fff;
}

/* =========================================================
   VRIJE DATA PAGINA
========================================================= */
.vrije-data-header,
.vrije-data-item {
    grid-template-columns: 2.2fr 2fr 1.2fr 1.2fr 1.8fr;
}

.vrije-data-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

    .vrije-data-actions form {
        margin: 0;
    }

@media (max-width: 1199.98px) {
    .vrije-data-item {
        grid-template-columns: 1fr;
    }

    .vrije-data-actions {
        justify-content: flex-start;
    }
}

/* =========================================================
   STEMBEURT OVERZICHT
========================================================= */
.overview-card {
    max-width: 700px;
    margin: 0 auto;
}

.overview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    background: var(--maene-green-soft);
    color: var(--maene-green);
    font-size: 2rem;
}

.overview-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--maene-text);
    margin-bottom: .75rem;
}

.overview-list {
    display: grid;
    gap: .65rem;
}

.overview-list-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    background: #f9fbfa;
    border: 1px solid #e7efe9;
    border-radius: .85rem;
    color: var(--maene-text);
}

    .overview-list-item strong {
        flex-shrink: 0;
    }

@media (max-width: 767.98px) {
    .overview-list-item {
        flex-direction: column;
        gap: .35rem;
    }

    .overview-icon {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 991.98px) {
    .portal-navbar {
        padding: .9rem;
    }

    .portal-brand-title {
        font-size: 1rem;
    }

    .portal-brand-subtitle {
        display: none;
    }

    .portal-nav-right {
        padding-top: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .portal-user-badge,
    .portal-logout-btn {
        justify-content: center;
    }

    .page-title {
        font-size: 1.55rem;
    }
}

@media (max-width: 767.98px) {
    .portal-hero {
        padding: 1.5rem;
    }

    .portal-hero-title {
        font-size: 1.5rem;
    }
}
