body {
    background: #f6f8f8;
    color: #17313b;
}

.navbar {
    background: #ffffff;
    border-bottom: 3px solid #9ad7c2;
    box-shadow: 0 2px 10px rgb(18 91 107 / 8%);
}

.navbar-brand {
    color: #0f766e;
}

.nav-link {
    color: #31515b;
}

.nav-link:hover,
.nav-link:focus {
    color: #0f766e;
}

.card,
.metric,
.empty-state {
    border-radius: 8px;
}

.metric {
    background: #ffffff;
    border: 1px solid #cce9df;
    border-top: 4px solid #38bdf8;
    box-shadow: 0 8px 20px rgb(20 83 45 / 7%);
    padding: 0.85rem;
    min-height: 102px;
}

.metric span,
.metric small {
    display: block;
    color: #55717a;
}

.metric strong {
    display: block;
    font-size: 1.65rem;
    line-height: 1.1;
    margin: 0.25rem 0;
}

.empty-state {
    background: #ffffff;
    border: 1px solid #cce9df;
    padding: 2rem;
    text-align: center;
}

.public-portal {
    align-items: center;
    display: flex;
    min-height: min(70vh, 620px);
}

.public-portal-content {
    max-width: 720px;
}

.portal-header {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
}

.portal-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.portal-tile {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #d7e5e3;
    border-radius: 8px;
    color: #17313b;
    display: flex;
    gap: 1rem;
    min-height: 138px;
    padding: 1.1rem;
    text-decoration: none;
}

.portal-tile:hover,
.portal-tile:focus {
    border-color: #0f766e;
    box-shadow: 0 8px 22px rgb(15 118 110 / 12%);
    color: #17313b;
}

.portal-tile:focus {
    outline: 3px solid rgb(14 165 164 / 35%);
    outline-offset: 2px;
}

.portal-tile-icon {
    align-items: center;
    background: #e7f4f1;
    border-radius: 8px;
    color: #0f766e;
    display: inline-flex;
    flex: 0 0 46px;
    font-size: 1.35rem;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.portal-tile-title,
.portal-tile-description {
    display: block;
}

.portal-tile-title {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.portal-tile-description {
    color: #55717a;
}

.access-denied {
    max-width: 680px;
}

.info-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
}

.info-sidebar,
.info-panel,
.info-page {
    background: #ffffff;
    border: 1px solid #d7e5e3;
    border-radius: 8px;
    padding: 1rem;
}

.info-sidebar {
    align-self: start;
    position: sticky;
    top: 86px;
}

.info-tree-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.info-tree-list .info-tree-list {
    border-left: 1px solid #d7e5e3;
    margin-left: 0.45rem;
    padding-left: 0.75rem;
}

.info-tree-list a {
    border-radius: 6px;
    color: #31515b;
    display: block;
    padding: 0.35rem 0.45rem;
    text-decoration: none;
}

.info-tree-list a:hover,
.info-tree-list a:focus,
.info-tree-list a.active {
    background: #eef8f6;
    color: #0f766e;
}

.info-content {
    min-width: 0;
}

.info-body {
    max-width: 860px;
}

.info-body p {
    margin-bottom: 1rem;
}

.info-code-block {
    background: #16242a;
    border-radius: 8px;
    color: #f6f8f8;
    margin: 1rem 0;
    overflow: hidden;
    position: relative;
}

.info-code-block pre {
    margin: 0;
    overflow-x: auto;
    padding: 1rem;
    white-space: pre;
}

.info-code-block code {
    color: inherit;
    font-size: 0.92rem;
}

.info-code-block [data-copy-code] {
    position: absolute;
    right: 0.55rem;
    top: 0.55rem;
}

.info-version-snapshot {
    background: #f6f8f8;
    border: 1px solid #d7e5e3;
    border-radius: 8px;
    color: #17313b;
    max-height: 360px;
    overflow: auto;
    padding: 1rem;
    white-space: pre-wrap;
}

.btn-primary {
    --bs-btn-bg: #0f766e;
    --bs-btn-border-color: #0f766e;
    --bs-btn-hover-bg: #115e59;
    --bs-btn-hover-border-color: #115e59;
    --bs-btn-active-bg: #134e4a;
    --bs-btn-active-border-color: #134e4a;
}

.btn-outline-primary {
    --bs-btn-color: #0f766e;
    --bs-btn-border-color: #0f766e;
    --bs-btn-hover-bg: #0f766e;
    --bs-btn-hover-border-color: #0f766e;
}

.progress {
    background-color: #d8f0ea;
}

.progress-bar {
    background-color: #0ea5a4;
}

.progress-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.progress-item {
    min-width: 0;
}

.nav-tabs {
    border-bottom-color: #b7ddd2;
}

.nav-tabs .nav-link {
    color: #31515b;
}

.nav-tabs .nav-link.active {
    color: #0f766e;
    border-color: #b7ddd2 #b7ddd2 #ffffff;
}

.tab-content {
    border-color: #b7ddd2 !important;
}

.list-group-item,
.table {
    --bs-table-hover-bg: #eef8f6;
}

.badge.text-bg-light {
    background-color: #dff4ee !important;
    color: #17463f !important;
    border: 1px solid #b7ddd2;
}

.duplicate-item-alert {
    background: #e5f6f8;
    border-color: #9bd8e2;
    color: #174251;
}

.print-only {
    display: none;
}

.form-control,
.form-select,
.card input[type="text"],
.card input[type="password"],
.card input[type="date"],
.card input[type="number"],
.btn {
    min-height: 42px;
}

.card input[type="text"],
.card input[type="password"],
.card input[type="date"],
.card input[type="number"] {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.checkbox-grid ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.checkbox-grid label {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    min-height: 42px;
    padding: 0.4rem 0.6rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #ffffff;
}

.participant-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.participant-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0.35rem 0.65rem;
    border: 1px solid #b7ddd2;
    border-radius: 8px;
    background: #ffffff;
    color: #17463f;
}

.participant-chip input {
    margin: 0;
}

.personal-item-fields,
.card-body:has(input[name$="persoonlijk"]:checked) .general-item-fields,
.card-body:has(input[name$="persoonlijk"]:checked) .bulk-deelnemers-help {
    display: none;
}

.card-body:has(input[name$="persoonlijk"]:checked) .personal-item-fields {
    display: block;
}

.print-table {
    font-size: 0.95rem;
}

.print-col-check {
    width: 12%;
}

.print-col-item {
    width: 52%;
}

.print-col-aantal {
    width: 14%;
}

.print-col-voor-wie {
    width: 30%;
}

.print-col-klus {
    width: 52%;
}

.print-col-status {
    width: 18%;
}

.print-category-row th {
    background: #eef8f6;
    color: #17463f;
    padding-top: 0.75rem;
}

.print-check {
    height: 1.1rem;
    width: 1.1rem;
}

.item-category-block .table-responsive {
    border-bottom: 1px solid #d7ece5;
}

.item-overview-table th:first-child,
.item-overview-table td:first-child {
    width: 38%;
}

.item-overview-table td {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

[data-href] {
    cursor: pointer;
}

[data-href]:hover {
    background-color: #f0faf7;
}

@media print {
    .navbar,
    .messages,
    .no-print,
    .btn,
    .nav,
    form {
        display: none !important;
    }

    body {
        background: #ffffff;
    }

    .container {
        max-width: none;
        width: 100%;
    }

    .tab-content,
    .tab-pane {
        display: block !important;
        opacity: 1 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .printable-section {
        break-inside: avoid;
        margin-bottom: 2rem;
    }

    .print-only {
        display: block;
    }

    .print-table {
        table-layout: fixed;
        width: 100%;
    }

    .print-category-row th {
        background: #ffffff !important;
        border-top: 2px solid #111827;
    }
}

@media (max-width: 767.98px) {
    .info-layout {
        grid-template-columns: 1fr;
    }

    .info-sidebar {
        position: static;
    }

    main.container {
        padding-top: 0.75rem !important;
        padding-bottom: 1rem !important;
    }

    h1.h2 {
        font-size: 1.35rem;
    }

    .row.g-3 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    .metric {
        min-height: 86px;
        padding: 0.65rem;
    }

    .metric strong {
        font-size: 1.45rem;
        margin: 0.15rem 0;
    }

    .progress,
    .mb-4 {
        margin-bottom: 0.75rem !important;
    }

    .progress-overview {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .tab-content {
        padding: 0.75rem !important;
    }

    .nav-tabs {
        gap: 0.25rem;
    }

    .nav-tabs .nav-link {
        padding: 0.45rem 0.55rem;
        font-size: 0.92rem;
    }

    .item-category-block {
        margin-bottom: 1rem !important;
    }

    .item-category-block h3 {
        padding-bottom: 0.35rem !important;
        font-size: 1rem;
    }

    .item-overview-table td {
        padding: 0.45rem 0.35rem;
    }

    .badge.text-bg-light {
        margin-bottom: 0.2rem;
    }

    .card-body {
        padding: 0.85rem;
    }

    .card-footer {
        padding: 0.75rem 0.85rem;
    }

    .form-control,
    .form-select,
    .card input[type="text"],
    .card input[type="password"],
    .card input[type="date"],
    .card input[type="number"],
    .btn {
        min-height: 38px;
    }

    .participant-chip-list {
        gap: 0.35rem;
    }

    .participant-chip {
        min-height: 34px;
        padding: 0.25rem 0.5rem;
    }
}
