:root {
    --fv-geel: #F6EC13;
    --fv-donkergrijs: #58565B;
    --fv-middengrijs: #808285;
    --fv-lichtgrijs: #A7A9AC;
    --fv-bg: #f7f7f7;
    --fv-wit: #ffffff;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: var(--fv-donkergrijs);
    background: var(--fv-bg);
    font-size: 16px;
}

.fv-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.fv-header {
    background: var(--fv-donkergrijs);
    border-bottom: 6px solid var(--fv-geel);
}

.fv-header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.fv-logo {
    max-height: 64px;
    display: block;
}

.fv-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.fv-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.fv-nav a:hover {
    color: var(--fv-geel);
}

.fv-main {
    padding-top: 36px;
    padding-bottom: 44px;
}

.fv-page-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 32px;
}

.fv-muted {
    color: var(--fv-middengrijs);
}

.fv-card {
    background: var(--fv-wit);
    border-left: 6px solid var(--fv-geel);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.fv-card h2,
.fv-card h3 {
    margin-top: 0;
}

.fv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.fv-button {
    display: inline-block;
    background: var(--fv-donkergrijs);
    color: #fff;
    padding: 9px 15px;
    border-radius: 6px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 15px;
}

.fv-button:hover {
    background: var(--fv-middengrijs);
}

.fv-button-yellow {
    background: var(--fv-geel);
    color: var(--fv-donkergrijs);
    font-weight: bold;
}

.fv-button-yellow:hover {
    background: #e7de11;
}

.fv-button-light {
    background: #e9e9e9;
    color: var(--fv-donkergrijs);
}

.fv-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 20px;
}

.fv-table th {
    background: var(--fv-donkergrijs);
    color: #fff;
    text-align: left;
    padding: 11px;
}

.fv-table td {
    border-bottom: 1px solid #ddd;
    padding: 11px;
    vertical-align: top;
}

.fv-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 13px;
    background: #e9e9e9;
}

.fv-badge-active {
    background: var(--fv-geel);
    color: var(--fv-donkergrijs);
    font-weight: bold;
}

.fv-footer {
    background: var(--fv-donkergrijs);
    color: #fff;
    padding: 18px 0;
    font-size: 14px;
}

@media (max-width: 700px) {
    .fv-header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .fv-nav {
        gap: 12px;
    }

    .fv-logo {
        max-height: 54px;
    }
}
/* =========================================================
   Duitse schapers: formulieren en zoekresultaten
   ========================================================= */

.fv-logo-link {
    display: inline-block;
}

.fv-page-heading {
    margin-bottom: 24px;
}

.fv-page-heading .fv-muted {
    margin-top: 0;
}

.fv-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.fv-form-field {
    min-width: 0;
}

.fv-form-field-full {
    grid-column: 1 / -1;
}

.fv-form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: var(--fv-donkergrijs);
}

.fv-form-field input,
.fv-form-field select {
    width: 100%;
    min-height: 43px;
    box-sizing: border-box;
    padding: 9px 11px;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 16px;
    color: var(--fv-donkergrijs);
    background: #fff;
    border: 1px solid var(--fv-lichtgrijs);
    border-radius: 6px;
}

.fv-form-field input:focus,
.fv-form-field select:focus {
    outline: 3px solid rgba(246, 236, 19, 0.45);
    border-color: var(--fv-donkergrijs);
}

.fv-results-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.fv-results-heading h2 {
    margin-bottom: 5px;
}

.fv-results-count {
    margin-top: 0;
    margin-bottom: 0;
}

.fv-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

.fv-table-responsive .fv-table {
    margin-top: 0;
    min-width: 920px;
}

.fv-table tbody tr:hover {
    background: #fafafa;
}

.fv-table-action {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.fv-button-small {
    padding: 6px 10px;
    font-size: 14px;
}

.fv-empty-state {
    margin-top: 20px;
    padding: 24px;
    text-align: center;
    background: #f3f3f3;
    border-radius: 8px;
}

.fv-empty-state h3 {
    margin-top: 0;
}

.fv-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.fv-pagination-link {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    color: var(--fv-donkergrijs);
    background: #ececec;
    border-radius: 6px;
    text-decoration: none;
}

a.fv-pagination-link:hover {
    background: var(--fv-middengrijs);
    color: #fff;
}

.fv-pagination-current {
    background: var(--fv-geel);
    font-weight: bold;
}

.fv-pagination-disabled {
    color: var(--fv-lichtgrijs);
    cursor: default;
}

.fv-pagination-ellipsis {
    padding: 0 4px;
}

.fv-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 700px) {
    .fv-form-grid {
        grid-template-columns: 1fr;
    }

    .fv-form-field-full {
        grid-column: auto;
    }

    .fv-results-heading {
        flex-direction: column;
        gap: 10px;
    }

    .fv-card {
        padding: 18px;
    }

    .fv-pagination {
        justify-content: flex-start;
    }
}
/* =========================================================
   Intro Duitse schapers
   ========================================================= */

.fv-intro-card {
    border-left: 6px solid var(--fv-geel);
}

.fv-intro-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 36px;
    align-items: start;
}

.fv-intro-content h2 {
    margin-top: 0;
}

.fv-intro-content p {
    line-height: 1.65;
}

.fv-intro-search-hint {
    margin-bottom: 0;
    font-weight: bold;
}

.fv-intro-summary {
    display: grid;
    gap: 14px;
}

.fv-intro-stat {
    padding: 18px;
    text-align: center;
    background: #f3f3f3;
    border-radius: 8px;
}

.fv-intro-stat-number {
    display: block;
    margin-bottom: 4px;
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    color: var(--fv-donkergrijs);
}

.fv-intro-stat-label {
    display: block;
    font-size: 14px;
    color: var(--fv-middengrijs);
}

@media (max-width: 800px) {
    .fv-intro-content {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .fv-intro-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .fv-intro-summary {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Detailpagina Duitse schapers – genealogische fiche
   ========================================================= */

.fv-detail-container {
    max-width: 1360px;
}

.fv-detail-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.fv-detail-card {
    background: var(--fv-wit);
    border-left: 6px solid var(--fv-geel);
    border-radius: 10px;
    padding: 26px 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.fv-detail-card + .fv-detail-card,
.fv-detail-row + .fv-detail-card,
.fv-detail-card + .fv-detail-row,
.fv-detail-row + .fv-detail-row {
    margin-top: 22px;
}

.fv-detail-identity {
    padding-top: 30px;
    padding-bottom: 30px;
}

.fv-detail-kicker {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--fv-middengrijs);
}

.fv-detail-name {
    margin: 0;
    font-size: clamp(28px, 4.5vw, 42px);
    line-height: 1.08;
    color: var(--fv-donkergrijs);
}

.fv-detail-name strong {
    font-weight: 600;
    letter-spacing: 0.015em;
}

.fv-detail-name ::after {
    content: "";
    display: block;
    width: 180px;
    height: 3px;
    margin-top: 14px;
    background: var(--fv-geel);
    border-radius: 2px;
}

.fv-detail-origin {
    margin: 15px 0 0;
    font-size: 19px;
    line-height: 1.4;
    color: var(--fv-donkergrijs);
}

.fv-detail-origin-label {
    margin-right: 8px;
    font-weight: bold;
}

.fv-detail-origin-code {
    color: var(--fv-middengrijs);
    font-weight: bold;
}

.fv-detail-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.fv-detail-row > .fv-detail-card {
    min-width: 0;
}

.fv-detail-row > .fv-detail-card:only-child {
    grid-column: 1 / -1;
}

.fv-detail-card h2 {
    margin: 0 0 18px;
    padding-bottom: 9px;
    font-size: 22px;
    border-bottom: 2px solid var(--fv-geel);
    color: var(--fv-donkergrijs);
}

.fv-detail-heading-with-count {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--fv-geel);
}

.fv-detail-heading-with-count h2 {
    margin: 0;
    padding: 0;
    border: 0;
}

.fv-detail-data {
    margin: 0;
}

.fv-detail-data-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid #ececec;
}

.fv-detail-data-row:last-child {
    border-bottom: 0;
}

.fv-detail-data dt,
.fv-detail-data dd {
    margin: 0;
}

.fv-detail-data dt {
    font-weight: bold;
    color: var(--fv-donkergrijs);
}

.fv-detail-data dt::after {
    content: ":";
}

.fv-detail-data dd {
    min-width: 0;
    font-size: 17px;
    color: var(--fv-donkergrijs);
}

.fv-detail-value-strong {
    font-weight: 800;
    letter-spacing: 0.015em;
}

.fv-marriage-list {
    display: grid;
    gap: 16px;
}

.fv-marriage-entry {
    padding: 18px 20px;
    border: 1px solid #e1e1e1;
    border-left: 5px solid var(--fv-geel);
    border-radius: 7px;
    background: #fff;
}

.fv-marriage-entry h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--fv-donkergrijs);
}

.fv-marriage-entry .fv-detail-data-row {
    grid-template-columns: 125px minmax(0, 1fr);
    padding: 7px 0;
}

.fv-marriage-note {
    margin: 14px 0 0;
    padding-top: 13px;
    border-top: 1px solid #e2e2e2;
    line-height: 1.65;
}

.fv-detail-text {
    line-height: 1.75;
}

.fv-detail-text p:first-child {
    margin-top: 0;
}

.fv-detail-text p:last-child {
    margin-bottom: 0;
}

.fv-detail-empty {
    margin: 0;
    color: var(--fv-middengrijs);
}

@media (max-width: 820px) {
    .fv-detail-row {
        grid-template-columns: 1fr;
    }

    .fv-detail-row > .fv-detail-card + .fv-detail-card {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .fv-detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .fv-detail-actions .fv-button {
        text-align: center;
    }

    .fv-detail-card {
        padding: 21px 20px;
    }

    .fv-detail-data-row,
    .fv-marriage-entry .fv-detail-data-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .fv-detail-data dt::after {
        content: "";
    }
}

@media print {

    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    body {
        font-size: 11px;
        line-height: 1.25;
        background: #fff;
    }

    .fv-header,
    .fv-footer,
    .fv-detail-topbar,
    .fv-detail-bottom-actions {
        display: none !important;
    }

    .fv-main {
        padding: 0;
    }

    .fv-container,
    .fv-detail-container {
        max-width: none;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .fv-card,
    .fv-detail-card,
    .fv-detail-header-card {
        padding: 10px 12px;
        margin-bottom: 8px;
        border-radius: 0;
        box-shadow: none;
        break-inside: avoid;
    }

    .fv-detail-name {
        margin: 0;
        font-size: 22px;
        line-height: 1.1;
    }

    .fv-detail-name::after {
        width: 100px;
        height: 2px;
        margin-top: 6px;
    }

    .fv-detail-origin {
        margin-top: 6px;
        font-size: 12px;
    }

    .fv-card h2,
    .fv-detail-card h2 {
        margin-top: 0;
        margin-bottom: 7px;
        font-size: 15px;
    }

    .fv-detail-layout {
        gap: 8px;
    }

    .fv-data-list {
        gap: 0;
    }

    .fv-data-row {
        padding: 3px 0;
        gap: 8px;
        grid-template-columns: 115px minmax(0, 1fr);
    }

    .fv-data-label {
        font-size: 10px;
    }

    .fv-data-value {
        font-size: 11px;
    }

    .fv-marriage-list {
        gap: 6px;
    }

    .fv-marriage-item {
        padding: 7px 9px;
        break-inside: avoid;
    }

    .fv-marriage-item h3 {
        margin: 0 0 4px;
        font-size: 12px;
    }

    .fv-marriage-note,
    .fv-detail-text {
        margin-top: 5px;
        line-height: 1.3;
    }

    .fv-badge {
        padding: 1px 6px;
        font-size: 9px;
    }
}
/* =========================================================
   Wachtlijst Duitse schapers
   Toevoegen aan assets/css/fv.css
   ========================================================= */

.fv-waiting-container {
    max-width: 1360px;
}

.fv-waiting-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.fv-waiting-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 18px;
    color: var(--fv-donkergrijs);
    background: var(--fv-wit);
    border-left: 5px solid var(--fv-lichtgrijs);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    text-decoration: none;
}

.fv-waiting-stat:hover,
.fv-waiting-stat.is-active {
    border-left-color: var(--fv-geel);
    background: #fffef0;
}

.fv-waiting-stat-number {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.fv-waiting-stat-label {
    text-align: right;
    color: var(--fv-middengrijs);
}

.fv-waiting-filter-card h2 {
    margin-bottom: 18px;
}

.fv-waiting-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fv-waiting-table {
    min-width: 1160px !important;
}

.fv-waiting-row-new {
    background: #fffef0;
}

.fv-waiting-row-new:hover {
    background: #fffbdc !important;
}

.fv-inline-link {
    color: var(--fv-donkergrijs);
    text-decoration-color: var(--fv-geel);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.fv-inline-link:hover {
    color: var(--fv-middengrijs);
}

.fv-badge-new {
    background: var(--fv-geel);
    color: var(--fv-donkergrijs);
    font-weight: bold;
}

.fv-badge-progress {
    background: #e5eef4;
    color: #31566b;
    font-weight: bold;
}

.fv-badge-approved {
    background: #dceedd;
    color: #2f6334;
    font-weight: bold;
}

.fv-badge-rejected {
    background: #f2dddd;
    color: #7b3333;
    font-weight: bold;
}

@media (max-width: 900px) {
    .fv-waiting-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .fv-waiting-filter-grid,
    .fv-waiting-summary {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Wachtlijst Duitse schapers
   Toevoegen onderaan assets/css/fv.css
   ========================================================= */

.fv-waiting-container {
    max-width: 1360px;
}

.fv-waiting-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.fv-waiting-stat {
    display: block;
    min-width: 0;
    padding: 17px 18px;
    color: var(--fv-donkergrijs);
    text-decoration: none;
    background: var(--fv-wit);
    border: 1px solid #e2e2e2;
    border-left: 5px solid var(--fv-lichtgrijs);
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fv-waiting-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 13px rgba(0,0,0,0.10);
}

.fv-waiting-stat.is-active {
    border-color: var(--fv-geel);
    border-left-color: var(--fv-geel);
    box-shadow: 0 0 0 2px rgba(246,236,19,0.35);
}

.fv-waiting-stat-nieuw {
    border-left-color: var(--fv-geel);
}

.fv-waiting-stat-in-behandeling {
    border-left-color: #4f84a6;
}

.fv-waiting-stat-goedgekeurd {
    border-left-color: #4f8a5b;
}

.fv-waiting-stat-afgewezen {
    border-left-color: #a85a5a;
}

.fv-waiting-stat-number,
.fv-waiting-stat-label {
    display: block;
}

.fv-waiting-stat-number {
    margin-bottom: 4px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.fv-waiting-stat-label {
    font-size: 14px;
    color: var(--fv-middengrijs);
}

.fv-waiting-filter-card h2 {
    margin-bottom: 18px;
}

.fv-waiting-filter-grid {
    grid-template-columns: 220px 240px minmax(280px, 1fr);
}

.fv-waiting-filter-grid .fv-form-field-full {
    grid-column: auto;
}

.fv-waiting-table th,
.fv-waiting-table td {
    vertical-align: middle;
}

.fv-waiting-row-new {
    background: #fffef1;
}

.fv-waiting-row-new td:first-child {
    border-left: 5px solid var(--fv-geel);
}

.fv-waiting-date {
    white-space: nowrap;
}

.fv-waiting-date strong,
.fv-waiting-date span {
    display: block;
}

.fv-form-field fieldset,
fieldset.fv-form-field {
    margin: 8px 0;
    padding: 20px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
}

fieldset.fv-form-field legend {
    padding: 0 8px;
    font-weight: 700;
}

.fv-waiting-date span {
    margin-top: 2px;
    font-size: 14px;
    color: var(--fv-middengrijs);
}

.fv-inline-link {
    color: var(--fv-donkergrijs);
    text-decoration-color: var(--fv-lichtgrijs);
    text-underline-offset: 2px;
}

.fv-inline-link:hover {
    text-decoration-color: var(--fv-donkergrijs);
}

.fv-person-link,
.fv-proposed-person {
    display: block;
    font-weight: bold;
}

.fv-proposed-person + small {
    display: block;
    margin-top: 3px;
}

.fv-type-badge {
    display: inline-block;
    padding: 5px 9px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #f3f3f3;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.fv-type-new-person {
    border-left: 4px solid var(--fv-geel);
}

.fv-type-addition {
    border-left: 4px solid #6e8da0;
}

.fv-type-correction {
    border-left: 4px solid #a98049;
}

.fv-type-source {
    border-left: 4px solid #756795;
}

.fv-badge-new {
    background: var(--fv-geel);
    color: var(--fv-donkergrijs);
    font-weight: bold;
}

.fv-badge-progress {
    background: #dbeaf3;
    color: #365f78;
}

.fv-badge-approved {
    background: #dcebdd;
    color: #35613d;
}

.fv-badge-rejected {
    background: #f0dddd;
    color: #7a3f3f;
}

@media (max-width: 1100px) {
    .fv-waiting-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fv-waiting-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fv-waiting-filter-grid .fv-form-field-full {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .fv-waiting-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fv-waiting-filter-grid {
        grid-template-columns: 1fr;
    }

    .fv-waiting-filter-grid .fv-form-field-full {
        grid-column: auto;
    }
}

@media (max-width: 430px) {
    .fv-waiting-summary {
        grid-template-columns: 1fr;
    }
}
