/*
 * CloudingIT Subscription Control
 * Klantportaal
 *
 * Dit bestand is samengesteld uit de voormalige inline
 * styleblokken van de portalbasistemplate en portalpagina's.
 */


/*
 * PORTAL BASIS
 * Bron: core/templates/core/portal/base.html
 */

:root {
            color-scheme: light;

            --cit-navy: #10243e;
            --cit-navy-soft: #183654;
            --cit-blue: #168ad8;
            --cit-blue-dark: #0873bb;
            --cit-blue-soft: #eaf6fd;
            --cit-cyan: #6dc6e8;

            --background: #f5f8fb;
            --surface: #ffffff;
            --surface-soft: #f8fafc;
            --surface-blue: #eef8fd;

            --border: #dbe5ed;
            --border-strong: #c5d4df;

            --text: #10243e;
            --text-soft: #34475c;
            --muted: #6b7d8f;

            --success: #147a55;
            --success-bg: #e9f8f1;

            --warning: #aa5b13;
            --warning-bg: #fff5e8;

            --danger: #b42318;
            --danger-bg: #fff0ef;

            --neutral-bg: #eef2f5;

            --shadow-sm:
                0 1px 2px rgba(16, 36, 62, 0.04),
                0 4px 14px rgba(16, 36, 62, 0.05);

            --shadow-md:
                0 12px 32px rgba(16, 36, 62, 0.09);

            --radius-sm: 9px;
            --radius: 16px;
            --radius-lg: 24px;

            --content-width: 1220px;
        }

        * {
            box-sizing: border-box;
        }

        html {
            min-height: 100%;
            scroll-behavior: smooth;
        }

        body {
            min-height: 100vh;
            margin: 0;
            display: flex;
            flex-direction: column;
            background:
                radial-gradient(
                    circle at 95% 0%,
                    rgba(109, 198, 232, 0.14),
                    transparent 28%
                ),
                var(--background);
            color: var(--text);
            font-family:
                Inter,
                "Segoe UI",
                Roboto,
                Helvetica,
                Arial,
                sans-serif;
            font-size: 15px;
            line-height: 1.55;
            -webkit-font-smoothing: antialiased;
        }

        a {
            color: var(--cit-blue-dark);
            text-decoration: none;
        }

        a:hover {
            color: var(--cit-blue);
            text-decoration: underline;
        }

        button,
        input,
        select {
            font: inherit;
        }

        .site-header {
            position: relative;
            z-index: 20;
            border-bottom: 1px solid rgba(197, 212, 223, 0.75);
            background: rgba(255, 255, 255, 0.96);
            box-shadow: 0 1px 10px rgba(16, 36, 62, 0.04);
            backdrop-filter: blur(12px);
        }

        .site-header-inner {
            width: min(
                var(--content-width),
                calc(100% - 48px)
            );
            min-height: 86px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 32px;
        }

        .site-logo-link {
            display: inline-flex;
            align-items: center;
            flex: 0 0 auto;
            text-decoration: none;
        }

        .site-logo-link:hover {
            text-decoration: none;
        }

        .site-logo {
            display: block;
            width: auto;
            height: 52px;
            max-width: 235px;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .portal-label {
            color: var(--cit-navy);
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0.025em;
            text-transform: uppercase;
        }

        .user-menu {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .user-name {
            max-width: 240px;
            color: var(--text-soft);
            font-size: 14px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .logout-form {
            margin: 0;
        }

        .logout-button {
            appearance: none;
            min-height: 42px;
            border: 1px solid var(--border-strong);
            border-radius: 999px;
            padding: 8px 18px;
            background: var(--surface);
            color: var(--cit-navy);
            font-weight: 700;
            cursor: pointer;
            transition:
                background 0.18s ease,
                border-color 0.18s ease,
                color 0.18s ease,
                transform 0.18s ease;
        }

        .logout-button:hover {
            border-color: var(--cit-blue);
            background: var(--cit-blue-soft);
            color: var(--cit-blue-dark);
            transform: translateY(-1px);
        }

        .portal-hero {
            position: relative;
            overflow: hidden;
            padding-bottom: 34px;
            background:
                linear-gradient(
                    112deg,
                    #102f4d 0%,
                    #17496f 52%,
                    #205f91 100%
                );
            color: #ffffff;
        }

        .portal-hero-inner {
            position: relative;
            z-index: 4;
            width: min(
                var(--content-width),
                calc(100% - 48px)
            );
            min-height: 132px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            padding: 28px 0 34px;
        }

        .hero-cloud,
        .login-cloud {
            position: absolute;
            z-index: 1;
            height: var(--cloud-height);
            border-radius:
                calc(var(--cloud-height) * 0.48);
            background: rgba(190, 221, 241, 0.16);
            pointer-events: none;
        }

        .hero-cloud::before,
        .hero-cloud::after,
        .login-cloud::before,
        .login-cloud::after {
            position: absolute;
            bottom: 0;
            border-radius: 50%;
            background: inherit;
            content: "";
        }

        .hero-cloud::before,
        .login-cloud::before {
            left: 15%;
            width: calc(var(--cloud-height) * 1.05);
            height: calc(var(--cloud-height) * 1.05);
        }

        .hero-cloud::after,
        .login-cloud::after {
            right: 13%;
            width: calc(var(--cloud-height) * 0.78);
            height: calc(var(--cloud-height) * 0.78);
        }

        .hero-cloud-one {
            --cloud-height: 54px;
            top: 18px;
            right: 7%;
            width: 150px;
            opacity: 0.84;
        }

        .hero-cloud-two {
            --cloud-height: 38px;
            right: 30%;
            bottom: 39px;
            width: 104px;
            opacity: 0.72;
        }

        .hero-cloud-three {
            --cloud-height: 68px;
            left: -38px;
            bottom: 17px;
            width: 190px;
            opacity: 0.55;
        }

        .hero-wave,
        .login-wave {
            position: absolute;
            z-index: 3;
            right: 0;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 44px;
            pointer-events: none;
        }

        .hero-wave path,
        .login-wave path {
            fill: var(--background);
        }

        .portal-hero-title {
            margin: 0 0 4px;
            color: #ffffff;
            font-size: clamp(23px, 3vw, 34px);
            font-weight: 750;
            letter-spacing: -0.035em;
        }

        .portal-hero-subtitle {
            margin: 0;
            color: rgba(255, 255, 255, 0.72);
            font-size: 15px;
        }

        .page {
            width: min(
                var(--content-width),
                calc(100% - 48px)
            );
            flex: 1 0 auto;
            margin: 38px auto 72px;
        }

        .page-heading {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 28px;
            margin-bottom: 28px;
        }

        h1,
        h2,
        h3 {
            color: var(--cit-navy);
            line-height: 1.2;
        }

        h1 {
            margin: 0 0 7px;
            font-size: clamp(28px, 4vw, 38px);
            font-weight: 750;
            letter-spacing: -0.04em;
        }

        h2 {
            margin: 0 0 16px;
            font-size: 21px;
            font-weight: 750;
            letter-spacing: -0.025em;
        }

        h3 {
            font-size: 17px;
        }

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

        .customer-selector {
            min-width: 290px;
        }

        .customer-selector label {
            display: block;
            margin-bottom: 7px;
            color: var(--text-soft);
            font-size: 12px;
            font-weight: 750;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        select,
        input {
            width: 100%;
            min-height: 46px;
            border: 1px solid var(--border-strong);
            border-radius: var(--radius-sm);
            padding: 9px 13px;
            background: var(--surface);
            color: var(--text);
            outline: none;
            transition:
                border-color 0.18s ease,
                box-shadow 0.18s ease;
        }

        select:focus,
        input:focus {
            border-color: var(--cit-blue);
            box-shadow:
                0 0 0 4px rgba(22, 138, 216, 0.13);
        }

        .cards {
            display: grid;
            grid-template-columns:
                repeat(auto-fit, minmax(190px, 1fr));
            gap: 18px;
            margin-bottom: 30px;
        }

        .card,
        .panel {
            border: 1px solid rgba(219, 229, 237, 0.95);
            background: var(--surface);
            box-shadow: var(--shadow-sm);
        }

        .card {
            position: relative;
            overflow: hidden;
            min-height: 126px;
            border-radius: var(--radius);
            padding: 23px 24px;
            transition:
                transform 0.18s ease,
                box-shadow 0.18s ease;
        }

        .card::before {
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background: var(--cit-blue);
            content: "";
        }

        .card:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

        .card-label {
            color: var(--muted);
            font-size: 12px;
            font-weight: 750;
            letter-spacing: 0.055em;
            text-transform: uppercase;
        }

        .card-value {
            margin-top: 7px;
            color: var(--cit-navy);
            font-size: 34px;
            font-weight: 780;
            letter-spacing: -0.045em;
        }

        .panel {
            overflow: hidden;
            border-radius: var(--radius);
        }

        .panel-header {
            padding: 21px 24px;
            border-bottom: 1px solid var(--border);
            background:
                linear-gradient(
                    180deg,
                    #ffffff 0%,
                    #fbfdfe 100%
                );
        }

        .panel-header h2 {
            margin: 0;
        }

        .table-wrap {
            overflow-x: auto;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th,
        td {
            padding: 16px 18px;
            border-bottom: 1px solid var(--border);
            text-align: left;
            vertical-align: top;
        }

        th {
            background: var(--surface-soft);
            color: var(--text-soft);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.065em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        td {
            color: var(--text-soft);
        }

        td strong {
            color: var(--cit-navy);
        }

        tbody tr:last-child td {
            border-bottom: 0;
        }

        tbody tr {
            transition: background 0.15s ease;
        }

        tbody tr:hover {
            background: #f8fcfe;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border-radius: 999px;
            padding: 5px 10px;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.025em;
            white-space: nowrap;
        }

        .badge::before {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: currentColor;
            content: "";
        }

        .badge-active {
            background: var(--success-bg);
            color: var(--success);
        }

        .badge-future {
            background: var(--cit-blue-soft);
            color: var(--cit-blue-dark);
        }

        .badge-cancelled {
            background: var(--warning-bg);
            color: var(--warning);
        }

        .badge-expired {
            background: var(--neutral-bg);
            color: #617080;
        }

        .badge-suspended,
        .badge-draft {
            background: var(--danger-bg);
            color: var(--danger);
        }

        .button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 43px;
            border: 1px solid transparent;
            border-radius: 999px;
            padding: 9px 18px;
            background: var(--cit-blue);
            color: #ffffff;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.015em;
            text-decoration: none;
            cursor: pointer;
            transition:
                background 0.18s ease,
                border-color 0.18s ease,
                color 0.18s ease,
                transform 0.18s ease,
                box-shadow 0.18s ease;
        }

        .button:hover {
            background: var(--cit-blue-dark);
            color: #ffffff;
            text-decoration: none;
            transform: translateY(-1px);
            box-shadow: 0 7px 16px rgba(8, 115, 187, 0.2);
        }

        .button-secondary {
            border-color: var(--border-strong);
            background: var(--surface);
            color: var(--cit-navy);
            box-shadow: none;
        }

        .button-secondary:hover {
            border-color: var(--cit-blue);
            background: var(--cit-blue-soft);
            color: var(--cit-blue-dark);
            box-shadow: none;
        }

        .empty-state {
            padding: 58px 24px;
            text-align: center;
            color: var(--muted);
        }

        .detail-grid {
            display: grid;
            grid-template-columns:
                repeat(auto-fit, minmax(210px, 1fr));
            gap: 0;
            padding: 8px 24px;
        }

        .detail-grid > div {
            min-height: 92px;
            padding: 20px 16px 20px 0;
            border-bottom: 1px solid var(--border);
        }

        .detail-label {
            color: var(--muted);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .detail-value {
            margin-top: 6px;
            color: var(--cit-navy);
            font-size: 15px;
            font-weight: 700;
        }

        .description {
            color: var(--text-soft);
            white-space: pre-wrap;
        }

        .site-footer {
            margin-top: auto;
            background: var(--cit-navy);
            color: rgba(255, 255, 255, 0.76);
        }

        .site-footer-inner {
            width: min(
                var(--content-width),
                calc(100% - 48px)
            );
            margin: 0 auto;
            display: grid;
            grid-template-columns:
                1.2fr 1fr 1fr;
            gap: 42px;
            padding: 48px 0 38px;
        }

        .footer-title {
            margin: 0 0 13px;
            color: #ffffff;
            font-size: 15px;
            font-weight: 800;
        }

        .footer-text {
            max-width: 420px;
            margin: 0;
            font-size: 14px;
        }

        .footer-list {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .footer-list li {
            margin: 7px 0;
        }

        .footer-list a {
            color: rgba(255, 255, 255, 0.8);
        }

        .footer-list a:hover {
            color: #ffffff;
        }

        .site-footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.12);
        }

        .site-footer-bottom-inner {
            width: min(
                var(--content-width),
                calc(100% - 48px)
            );
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            gap: 24px;
            padding: 18px 0 22px;
            color: rgba(255, 255, 255, 0.55);
            font-size: 12px;
        }

        .login-page {
            min-height: 100vh;
            display: grid;
            grid-template-columns:
                minmax(0, 1.08fr)
                minmax(420px, 0.92fr);
            background: var(--surface);
        }

        .login-visual {
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            padding:
                clamp(42px, 7vw, 92px)
                clamp(42px, 7vw, 92px)
                clamp(82px, 10vw, 130px);
            background:
                linear-gradient(
                    118deg,
                    #102f4d 0%,
                    #17496f 53%,
                    #205f91 100%
                );
            color: #ffffff;
        }

        .login-cloud-one {
            --cloud-height: 105px;
            top: 5%;
            right: -40px;
            width: 285px;
            opacity: 0.83;
        }

        .login-cloud-two {
            --cloud-height: 72px;
            top: 37%;
            right: 15%;
            width: 195px;
            opacity: 0.66;
        }

        .login-cloud-three {
            --cloud-height: 126px;
            bottom: 5%;
            left: -72px;
            width: 340px;
            opacity: 0.73;
        }

        .login-cloud-four {
            --cloud-height: 48px;
            top: 20%;
            left: 9%;
            width: 130px;
            opacity: 0.35;
        }

        .login-wave {
            height: clamp(54px, 8vw, 92px);
        }

        .login-wave path {
            fill: #ffffff;
        }

        .login-visual-content {
            position: relative;
            z-index: 1;
            max-width: 620px;
        }

        .login-visual-eyebrow {
            margin-bottom: 18px;
            color: var(--cit-cyan);
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.13em;
            text-transform: uppercase;
        }

        .login-visual-title {
            margin: 0 0 18px;
            color: #ffffff;
            font-size: clamp(38px, 5.5vw, 67px);
            font-weight: 760;
            letter-spacing: -0.055em;
            line-height: 1.03;
        }

        .login-visual-text {
            max-width: 530px;
            margin: 0;
            color: rgba(255, 255, 255, 0.72);
            font-size: 17px;
        }

        .login-form-side {
            display: grid;
            place-items: center;
            padding: 44px;
            background:
                radial-gradient(
                    circle at 100% 0%,
                    rgba(109, 198, 232, 0.16),
                    transparent 28%
                ),
                #ffffff;
        }

        .login-card {
            width: min(440px, 100%);
        }

        .login-logo {
            width: auto;
            height: 64px;
            max-width: 270px;
            margin-bottom: 46px;
        }

        .login-card h1 {
            margin-bottom: 8px;
        }

        .login-intro {
            margin-bottom: 28px;
            color: var(--muted);
        }

        .form-row {
            margin-top: 19px;
        }

        .form-row label {
            display: block;
            margin-bottom: 7px;
            color: var(--text-soft);
            font-size: 13px;
            font-weight: 750;
        }

        .form-errors {
            margin: 0 0 22px;
            border: 1px solid #f2c7c3;
            border-radius: var(--radius-sm);
            padding: 13px 15px;
            background: var(--danger-bg);
            color: var(--danger);
            font-size: 14px;
        }

        .login-card .button {
            width: 100%;
            min-height: 48px;
            margin-top: 25px;
        }

        .login-help {
            margin-top: 24px;
            color: var(--muted);
            font-size: 13px;
            text-align: center;
        }

        @media (max-width: 940px) {
            .login-page {
                grid-template-columns: 1fr;
            }

            .login-visual {
                min-height: 310px;
                padding: 48px 32px;
            }

            .login-visual-title {
                font-size: 42px;
            }

            .login-form-side {
                padding: 48px 24px 64px;
            }

            .site-footer-inner {
                grid-template-columns: 1fr 1fr;
            }

            .site-footer-inner > :first-child {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 760px) {
            .site-header-inner,
            .portal-hero-inner,
            .page,
            .site-footer-inner,
            .site-footer-bottom-inner {
                width: min(
                    100% - 28px,
                    var(--content-width)
                );
            }

            .site-header-inner {
                min-height: 74px;
            }

            .site-logo {
                height: 43px;
                max-width: 190px;
            }

            .portal-label,
            .user-name {
                display: none;
            }

            .header-right {
                gap: 8px;
            }

            .logout-button {
                min-height: 39px;
                padding: 7px 13px;
                font-size: 12px;
            }

            .portal-hero-inner {
                min-height: 96px;
            }

            .page {
                margin-top: 27px;
            }

            .page-heading {
                display: block;
            }

            .customer-selector {
                min-width: 0;
                margin-top: 20px;
            }

            .cards {
                grid-template-columns: 1fr 1fr;
                gap: 12px;
            }

            .card {
                min-height: 108px;
                padding: 19px 18px;
            }

            .card-value {
                font-size: 29px;
            }

            th,
            td {
                padding: 13px;
            }

            .hide-mobile {
                display: none;
            }

            .site-footer-inner {
                grid-template-columns: 1fr;
                gap: 28px;
                padding: 38px 0 30px;
            }

            .site-footer-inner > :first-child {
                grid-column: auto;
            }

            .site-footer-bottom-inner {
                display: block;
            }

            .site-footer-bottom-inner > :last-child {
                margin-top: 5px;
            }
        }

        @media (max-width: 460px) {
            .cards {
                grid-template-columns: 1fr;
            }

            .login-visual {
                min-height: 270px;
                padding: 38px 22px;
            }

            .login-visual-title {
                font-size: 34px;
            }

            .login-form-side {
                padding: 38px 20px 54px;
            }

            .login-logo {
                height: 54px;
                margin-bottom: 36px;
            }
        }
    
        .page-heading-actions {
            display: flex;
            align-items: flex-end;
            justify-content: flex-end;
            gap: 16px;
            flex-wrap: wrap;
        }

        @media (max-width: 720px) {
            .page-heading-actions {
                width: 100%;
                align-items: stretch;
                justify-content: flex-start;
            }

            .page-heading-actions .button {
                text-align: center;
            }
        }


/*
 * BETAALDASHBOARD
 * Bron: core/templates/core/portal/_payment_dashboard.html
 */

.payment-dashboard {
        margin-bottom: 28px;
    }

    .payment-dashboard-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 18px;
        padding: 20px 24px;
        border-bottom: 1px solid var(--border);
    }

    .payment-dashboard-header h2 {
        margin: 0;
    }

    .payment-dashboard-cards {
        display: grid;
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
        border-bottom: 1px solid var(--border);
    }

    .payment-dashboard-card {
        display: block;
        min-height: 120px;
        padding: 22px 24px;
        border-right: 1px solid var(--border);
        color: inherit;
        text-decoration: none;
    }

    a.payment-dashboard-card:hover {
        background: var(--surface-soft);
    }

    .payment-dashboard-card:last-child {
        border-right: 0;
    }

    .payment-dashboard-label {
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .payment-dashboard-value {
        margin-top: 9px;
        color: var(--cit-navy);
        font-size: 25px;
        font-weight: 800;
        letter-spacing: -0.025em;
    }

    .payment-dashboard-subvalue {
        margin-top: 6px;
        color: var(--muted);
        font-size: 12px;
    }

    .payment-dashboard-table td {
        vertical-align: middle;
    }

    .payment-dashboard-table td:last-child {
        text-align: right;
        white-space: nowrap;
    }

    .payment-badge {
        display: inline-flex;
        align-items: center;
        min-height: 26px;
        padding: 5px 10px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        white-space: nowrap;
    }

    .payment-badge-paid {
        background: #e9f7ef;
        color: #17653a;
    }

    .payment-badge-open {
        background: #eef4fb;
        color: #28577e;
    }

    .payment-badge-overdue {
        background: #fff0f0;
        color: #a12b2b;
    }

    .payment-badge-partial {
        background: #fff5df;
        color: #8a5b00;
    }

    .payment-badge-direct_debit_open {
        background: #f2edff;
        color: #5e3b9f;
    }

    .payment-badge-unknown {
        background: var(--surface-soft);
        color: var(--muted);
    }

    @media (max-width: 900px) {
        .payment-dashboard-cards {
            grid-template-columns: 1fr 1fr;
        }

        .payment-dashboard-card:nth-child(2) {
            border-right: 0;
        }

        .payment-dashboard-card:nth-child(-n+2) {
            border-bottom: 1px solid var(--border);
        }
    }

    @media (max-width: 560px) {
        .payment-dashboard-header {
            display: block;
        }

        .payment-dashboard-header .button {
            width: 100%;
            margin-top: 14px;
        }

        .payment-dashboard-cards {
            grid-template-columns: 1fr;
        }

        .payment-dashboard-card,
        .payment-dashboard-card:nth-child(2) {
            min-height: 0;
            border-right: 0;
            border-bottom: 1px solid var(--border);
        }

        .payment-dashboard-card:last-child {
            border-bottom: 0;
        }
    }


/*
 * FACTUURBEHEER
 * Bron: core/templates/core/portal/invoices.html
 */

.invoice-financial-summary {
        display: grid;
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
        margin-bottom: 26px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--surface);
        overflow: hidden;
    }

    .invoice-summary-card {
        display: block;
        min-height: 116px;
        padding: 20px 22px;
        border-right: 1px solid var(--border);
        color: inherit;
        text-decoration: none;
    }

    .invoice-summary-card:last-child {
        border-right: 0;
    }

    a.invoice-summary-card:hover {
        background: var(--surface-soft);
    }

    .invoice-summary-card.is-selected {
        box-shadow:
            inset 0 -3px 0 var(--cit-blue);
        background: var(--surface-soft);
    }

    .invoice-summary-label {
        color: var(--muted);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .invoice-summary-value {
        margin-top: 9px;
        color: var(--cit-navy);
        font-size: 23px;
        font-weight: 800;
        letter-spacing: -0.025em;
    }

    .invoice-summary-subvalue {
        margin-top: 5px;
        color: var(--muted);
        font-size: 12px;
    }

    .invoice-toolbar {
        display: grid;
        grid-template-columns:
            minmax(210px, 1fr)
            minmax(135px, 180px)
            minmax(170px, 220px)
            minmax(175px, 225px);
        gap: 14px;
        align-items: end;
        padding: 20px 24px;
        border-bottom: 1px solid var(--border);
        background: var(--surface-soft);
    }

    .invoice-toolbar-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--text-soft);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .invoice-toolbar-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding: 0 24px 20px;
        background: var(--surface-soft);
        border-bottom: 1px solid var(--border);
    }

    .invoice-toolbar-actions .button {
        min-width: 120px;
        min-height: 44px;
    }

    .invoice-result-summary {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        padding: 14px 24px;
        border-bottom: 1px solid var(--border);
        color: var(--muted);
        font-size: 13px;
    }

    .invoice-table td {
        vertical-align: middle;
    }

    .invoice-table th:last-child,
    .invoice-table td:last-child {
        width: 1%;
        text-align: right;
        white-space: nowrap;
    }

    .invoice-number {
        color: var(--cit-navy);
        font-weight: 800;
        white-space: nowrap;
        text-decoration: none;
    }

    a.invoice-number:hover {
        color: var(--cit-blue);
        text-decoration: underline;
    }

    .invoice-amount {
        color: var(--cit-navy);
        font-weight: 750;
        white-space: nowrap;
    }

    .payment-badge {
        display: inline-flex;
        align-items: center;
        min-height: 26px;
        padding: 5px 10px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        white-space: nowrap;
    }

    .payment-badge-paid {
        background: #e9f7ef;
        color: #17653a;
    }

    .payment-badge-open {
        background: #eef4fb;
        color: #28577e;
    }

    .payment-badge-overdue {
        background: #fff0f0;
        color: #a12b2b;
    }

    .payment-badge-partial {
        background: #fff5df;
        color: #8a5b00;
    }

    .payment-badge-direct_debit_open {
        background: #f2edff;
        color: #5e3b9f;
    }

    .payment-badge-unknown {
        background: var(--surface-soft);
        color: var(--muted);
    }

    .invoice-payment-meta {
        margin-top: 5px;
        color: var(--muted);
        font-size: 11px;
    }

    .invoice-pdf-button {
        min-width: 112px;
        white-space: nowrap;
    }

    .pagination {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 18px;
        padding: 20px 24px;
        border-top: 1px solid var(--border);
        background: var(--surface-soft);
    }

    .pagination-pages {
        color: var(--muted);
        font-size: 13px;
        white-space: nowrap;
    }

    .pagination-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }

    .pagination-actions .button {
        min-width: 44px;
        min-height: 40px;
        padding: 9px 13px;
    }

    .pagination-actions .is-current {
        border-color: var(--cit-blue);
        background: var(--cit-blue);
        color: #ffffff;
        pointer-events: none;
    }

    .invoice-mobile-list {
        display: none;
    }

    .invoice-mobile-card {
        padding: 18px;
        border-bottom: 1px solid var(--border);
    }

    .invoice-mobile-card:last-child {
        border-bottom: 0;
    }

    .invoice-mobile-top {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 14px;
    }

    .invoice-mobile-date {
        color: var(--muted);
        font-size: 13px;
    }

    .invoice-mobile-status {
        margin-top: 8px;
        text-align: right;
    }

    .invoice-mobile-details {
        display: grid;
        grid-template-columns:
            1fr 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }

    .invoice-mobile-label {
        color: var(--muted);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .invoice-mobile-value {
        margin-top: 4px;
        color: var(--cit-navy);
        font-weight: 700;
    }

    .invoice-mobile-card .button {
        width: 100%;
    }

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

        .invoice-summary-card:nth-child(3) {
            border-right: 0;
        }

        .invoice-summary-card:nth-child(-n+3) {
            border-bottom: 1px solid var(--border);
        }

        .invoice-toolbar {
            grid-template-columns:
                1fr 1fr;
        }
    }

    @media (max-width: 760px) {
        .invoice-financial-summary {
            grid-template-columns:
                1fr 1fr;
        }

        .invoice-summary-card,
        .invoice-summary-card:nth-child(3) {
            border-right: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
        }

        .invoice-summary-card:nth-child(2n) {
            border-right: 0;
        }

        .invoice-summary-card:last-child {
            border-bottom: 0;
        }

        .invoice-toolbar {
            grid-template-columns: 1fr;
            padding: 18px;
        }

        .invoice-toolbar-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            padding: 0 18px 18px;
        }

        .invoice-result-summary {
            display: block;
            padding: 13px 18px;
        }

        .invoice-result-summary > :last-child {
            margin-top: 4px;
        }

        .invoice-desktop-table {
            display: none;
        }

        .invoice-mobile-list {
            display: block;
        }

        .pagination {
            display: block;
            padding: 18px;
        }

        .pagination-pages {
            margin-bottom: 13px;
            text-align: center;
        }

        .pagination-actions {
            justify-content: center;
        }

        .page-heading-actions {
            width: 100%;
        }

        .page-heading-actions .button,
        .customer-selector {
            width: 100%;
        }
    }

    @media (max-width: 480px) {
        .invoice-financial-summary {
            grid-template-columns: 1fr;
        }

        .invoice-summary-card,
        .invoice-summary-card:nth-child(2n),
        .invoice-summary-card:nth-child(3) {
            min-height: 0;
            border-right: 0;
            border-bottom: 1px solid var(--border);
        }

        .invoice-mobile-details {
            grid-template-columns: 1fr;
        }
    }


/*
 * BELKOSTEN
 * Bron: core/templates/core/portal/call_costs.html
 */

.call-cost-period {
    font-weight: 700;
}

.call-cost-panel-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    justify-content: space-between;
}

.panel-header-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.call-cost-filter-panel {
    margin-bottom: 22px;
}

.call-cost-scope-note {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.call-cost-filter-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    justify-content: flex-end;
    padding: 4px 24px 18px;
}

.call-cost-filter-footer .invoice-toolbar-actions {
    padding: 0;
    border-top: 0;
}

.invoice-toolbar-field.is-detail-filter label::after {
    display: inline-block;
    margin-left: 7px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--cit-blue-soft);
    color: var(--cit-blue-dark);
    font-size: 10px;
    letter-spacing: 0.03em;
    content: "gesprekken";
}

.call-cost-kpis {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(168px, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.call-cost-kpi {
    padding: 15px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.call-cost-kpi-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.call-cost-kpi-value {
    margin-top: 8px;
    color: var(--cit-navy);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}

.call-cost-kpi-sub {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.call-cost-kpi-sub + .call-cost-kpi-sub {
    margin-top: 2px;
}


/*
 * SYMBOLEN
 *
 * Richting en afloop in een tegel of lijst: een pijl of vinkje in
 * plaats van een woord, want in deze blokken is de ruimte krap. De
 * betekenis staat als `title` op het teken en als onzichtbare tekst
 * ernaast, zodat hij ook zonder kleur en zonder muis over te komt.
 */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.call-cost-facts {
    display: grid;
    gap: 4px 14px;
    margin-top: 8px;
    font-size: 13px;
}

.call-cost-facts.is-pairs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* De drie uitkomsten van een wachtrij op een regel. */
.call-cost-facts.is-triple {
    grid-template-columns: repeat(3, max-content);
}

.call-cost-fact {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.call-cost-fact > b {
    color: var(--cit-navy);
    font-weight: 800;
}

.call-cost-mark {
    width: 1em;
    font-style: normal;
    font-weight: 800;
    text-align: center;
}

.call-cost-mark.is-in,
.call-cost-mark.is-out {
    color: var(--cit-blue);
}

.call-cost-mark.is-overflow {
    color: var(--cit-blue);
}

.call-cost-mark.is-yes {
    color: var(--success);
}

.call-cost-mark.is-no {
    color: var(--danger);
}

.call-cost-mark-table th:first-child,
.call-cost-mark-table td:first-child {
    width: 1%;
    padding-right: 10px;
    white-space: nowrap;
}

.call-cost-mark-legend {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

/*
 * Verhoudingsbalk.
 *
 * Eén balk waarin elk segment exact zijn aandeel breed is.
 * Gedeeld door de kostencategorieën en de gespreksrichting.
 * De segmenten krijgen bewust geen min-width in procenten:
 * alleen een hairline van 3px, zodat een klein aandeel
 * zichtbaar blijft zonder de verhouding merkbaar te vervalsen.
 */

.call-cost-split {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.call-cost-split-bar {
    display: flex;
    width: 100%;
    height: 30px;
    border-radius: var(--radius-sm);
    background: var(--neutral-bg);
    overflow: hidden;
}

.call-cost-split-part {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 0;
    min-width: 3px;
    height: 100%;
    overflow: hidden;
    background: var(--call-cost-color, var(--cit-blue));
}

/*
 * Aandeelbreedtes als klassen, niet als inline style.
 *
 * De CSP van deze applicatie is style-src 'self' zonder
 * 'unsafe-inline', dus de browser verwerpt elk style-attribuut
 * in de HTML. Een breedte die daarvandaan moet komen, komt dus
 * nooit aan: het segment valt terug op 0 en houdt alleen zijn
 * min-width over. Daarom staat elk heel percentage hier als
 * eigen klasse, uit een stylesheet die de CSP wel toestaat.
 */

.call-cost-split-part.is-share-0 {
    width: 0%;
}

.call-cost-split-part.is-share-1 {
    width: 1%;
}

.call-cost-split-part.is-share-2 {
    width: 2%;
}

.call-cost-split-part.is-share-3 {
    width: 3%;
}

.call-cost-split-part.is-share-4 {
    width: 4%;
}

.call-cost-split-part.is-share-5 {
    width: 5%;
}

.call-cost-split-part.is-share-6 {
    width: 6%;
}

.call-cost-split-part.is-share-7 {
    width: 7%;
}

.call-cost-split-part.is-share-8 {
    width: 8%;
}

.call-cost-split-part.is-share-9 {
    width: 9%;
}

.call-cost-split-part.is-share-10 {
    width: 10%;
}

.call-cost-split-part.is-share-11 {
    width: 11%;
}

.call-cost-split-part.is-share-12 {
    width: 12%;
}

.call-cost-split-part.is-share-13 {
    width: 13%;
}

.call-cost-split-part.is-share-14 {
    width: 14%;
}

.call-cost-split-part.is-share-15 {
    width: 15%;
}

.call-cost-split-part.is-share-16 {
    width: 16%;
}

.call-cost-split-part.is-share-17 {
    width: 17%;
}

.call-cost-split-part.is-share-18 {
    width: 18%;
}

.call-cost-split-part.is-share-19 {
    width: 19%;
}

.call-cost-split-part.is-share-20 {
    width: 20%;
}

.call-cost-split-part.is-share-21 {
    width: 21%;
}

.call-cost-split-part.is-share-22 {
    width: 22%;
}

.call-cost-split-part.is-share-23 {
    width: 23%;
}

.call-cost-split-part.is-share-24 {
    width: 24%;
}

.call-cost-split-part.is-share-25 {
    width: 25%;
}

.call-cost-split-part.is-share-26 {
    width: 26%;
}

.call-cost-split-part.is-share-27 {
    width: 27%;
}

.call-cost-split-part.is-share-28 {
    width: 28%;
}

.call-cost-split-part.is-share-29 {
    width: 29%;
}

.call-cost-split-part.is-share-30 {
    width: 30%;
}

.call-cost-split-part.is-share-31 {
    width: 31%;
}

.call-cost-split-part.is-share-32 {
    width: 32%;
}

.call-cost-split-part.is-share-33 {
    width: 33%;
}

.call-cost-split-part.is-share-34 {
    width: 34%;
}

.call-cost-split-part.is-share-35 {
    width: 35%;
}

.call-cost-split-part.is-share-36 {
    width: 36%;
}

.call-cost-split-part.is-share-37 {
    width: 37%;
}

.call-cost-split-part.is-share-38 {
    width: 38%;
}

.call-cost-split-part.is-share-39 {
    width: 39%;
}

.call-cost-split-part.is-share-40 {
    width: 40%;
}

.call-cost-split-part.is-share-41 {
    width: 41%;
}

.call-cost-split-part.is-share-42 {
    width: 42%;
}

.call-cost-split-part.is-share-43 {
    width: 43%;
}

.call-cost-split-part.is-share-44 {
    width: 44%;
}

.call-cost-split-part.is-share-45 {
    width: 45%;
}

.call-cost-split-part.is-share-46 {
    width: 46%;
}

.call-cost-split-part.is-share-47 {
    width: 47%;
}

.call-cost-split-part.is-share-48 {
    width: 48%;
}

.call-cost-split-part.is-share-49 {
    width: 49%;
}

.call-cost-split-part.is-share-50 {
    width: 50%;
}

.call-cost-split-part.is-share-51 {
    width: 51%;
}

.call-cost-split-part.is-share-52 {
    width: 52%;
}

.call-cost-split-part.is-share-53 {
    width: 53%;
}

.call-cost-split-part.is-share-54 {
    width: 54%;
}

.call-cost-split-part.is-share-55 {
    width: 55%;
}

.call-cost-split-part.is-share-56 {
    width: 56%;
}

.call-cost-split-part.is-share-57 {
    width: 57%;
}

.call-cost-split-part.is-share-58 {
    width: 58%;
}

.call-cost-split-part.is-share-59 {
    width: 59%;
}

.call-cost-split-part.is-share-60 {
    width: 60%;
}

.call-cost-split-part.is-share-61 {
    width: 61%;
}

.call-cost-split-part.is-share-62 {
    width: 62%;
}

.call-cost-split-part.is-share-63 {
    width: 63%;
}

.call-cost-split-part.is-share-64 {
    width: 64%;
}

.call-cost-split-part.is-share-65 {
    width: 65%;
}

.call-cost-split-part.is-share-66 {
    width: 66%;
}

.call-cost-split-part.is-share-67 {
    width: 67%;
}

.call-cost-split-part.is-share-68 {
    width: 68%;
}

.call-cost-split-part.is-share-69 {
    width: 69%;
}

.call-cost-split-part.is-share-70 {
    width: 70%;
}

.call-cost-split-part.is-share-71 {
    width: 71%;
}

.call-cost-split-part.is-share-72 {
    width: 72%;
}

.call-cost-split-part.is-share-73 {
    width: 73%;
}

.call-cost-split-part.is-share-74 {
    width: 74%;
}

.call-cost-split-part.is-share-75 {
    width: 75%;
}

.call-cost-split-part.is-share-76 {
    width: 76%;
}

.call-cost-split-part.is-share-77 {
    width: 77%;
}

.call-cost-split-part.is-share-78 {
    width: 78%;
}

.call-cost-split-part.is-share-79 {
    width: 79%;
}

.call-cost-split-part.is-share-80 {
    width: 80%;
}

.call-cost-split-part.is-share-81 {
    width: 81%;
}

.call-cost-split-part.is-share-82 {
    width: 82%;
}

.call-cost-split-part.is-share-83 {
    width: 83%;
}

.call-cost-split-part.is-share-84 {
    width: 84%;
}

.call-cost-split-part.is-share-85 {
    width: 85%;
}

.call-cost-split-part.is-share-86 {
    width: 86%;
}

.call-cost-split-part.is-share-87 {
    width: 87%;
}

.call-cost-split-part.is-share-88 {
    width: 88%;
}

.call-cost-split-part.is-share-89 {
    width: 89%;
}

.call-cost-split-part.is-share-90 {
    width: 90%;
}

.call-cost-split-part.is-share-91 {
    width: 91%;
}

.call-cost-split-part.is-share-92 {
    width: 92%;
}

.call-cost-split-part.is-share-93 {
    width: 93%;
}

.call-cost-split-part.is-share-94 {
    width: 94%;
}

.call-cost-split-part.is-share-95 {
    width: 95%;
}

.call-cost-split-part.is-share-96 {
    width: 96%;
}

.call-cost-split-part.is-share-97 {
    width: 97%;
}

.call-cost-split-part.is-share-98 {
    width: 98%;
}

.call-cost-split-part.is-share-99 {
    width: 99%;
}

.call-cost-split-part.is-share-100 {
    width: 100%;
}

.call-cost-split-value {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.call-cost-split-legend {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(230px, 1fr));
    gap: 6px 22px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.call-cost-split-legend-item {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto
        auto;
    gap: 10px;
    align-items: baseline;
    font-size: 13px;
}

.call-cost-split-swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--call-cost-color, var(--cit-blue));
}

.call-cost-split-label {
    overflow: hidden;
    color: var(--text-soft);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.call-cost-split-share {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    white-space: nowrap;
}

.call-cost-split-amount {
    color: var(--cit-navy);
    font-weight: 800;
    white-space: nowrap;
}

/*
 * Palet. De volgorde volgt CATEGORY_ORDER, dus segment en
 * legendablokje met hetzelfde rangnummer delen hun kleur.
 * Elke kleur haalt minstens 4,5:1 tegen het witte percentage.
 */

.call-cost-split-bar > :nth-child(1),
.call-cost-split-legend > :nth-child(1) {
    --call-cost-color: #0b4a7d;
}

.call-cost-split-bar > :nth-child(2),
.call-cost-split-legend > :nth-child(2) {
    --call-cost-color: #0873bb;
}

.call-cost-split-bar > :nth-child(3),
.call-cost-split-legend > :nth-child(3) {
    --call-cost-color: #116b5e;
}

.call-cost-split-bar > :nth-child(4),
.call-cost-split-legend > :nth-child(4) {
    --call-cost-color: #7a4a9c;
}

.call-cost-split-bar > :nth-child(5),
.call-cost-split-legend > :nth-child(5) {
    --call-cost-color: #16789f;
}

.call-cost-split-bar > :nth-child(6),
.call-cost-split-legend > :nth-child(6) {
    --call-cost-color: #9c5511;
}

.call-cost-split-bar > :nth-child(7),
.call-cost-split-legend > :nth-child(7) {
    --call-cost-color: #4a5f96;
}

.call-cost-split-bar > :nth-child(8),
.call-cost-split-legend > :nth-child(8) {
    --call-cost-color: #a3271d;
}

.call-cost-split-bar > :nth-child(9),
.call-cost-split-legend > :nth-child(9) {
    --call-cost-color: #55636f;
}

.call-cost-split-bar > :nth-child(10),
.call-cost-split-legend > :nth-child(10) {
    --call-cost-color: #34475c;
}

/*
 * Richting houdt een vaste betekenis, los van de volgorde
 * waarin de twee segmenten binnenkomen.
 */

.call-cost-split-bar > .call-cost-split-inkomend,
.call-cost-split-legend > .call-cost-split-inkomend {
    --call-cost-color: #0873bb;
}

.call-cost-split-bar > .call-cost-split-uitgaand,
.call-cost-split-legend > .call-cost-split-uitgaand {
    --call-cost-color: #116b5e;
}

/*
 * De dagbalk van de standaardpagina: inkomend en uitgaand naast
 * elkaar, geschaald op de drukste dag van de maand. De breedtes
 * komen uit de gedeelde is-share-klassen, want de CSP verwerpt een
 * style-attribuut stil.
 */
.call-flow-day-table th.call-cost-day-bar-cell,
.call-flow-day-table td.call-cost-day-bar-cell {
    width: 100%;
    text-align: left;
}

.call-flow-day-table tr.is-weekend td {
    background: var(--surface-soft);
}

.call-cost-day-bar {
    display: flex;
    width: 100%;
    max-width: 340px;
    height: 9px;
    border-radius: 5px;
    background: var(--neutral-bg);
    overflow: hidden;
}

.call-cost-day-bar > .call-cost-split-inkomend {
    --call-cost-color: #0873bb;
}

.call-cost-day-bar > .call-cost-split-uitgaand {
    --call-cost-color: #116b5e;
}

/*
 * Een dag zonder uitgaande gesprekken hoort geen streepje te
 * krijgen; de min-width van de gedeelde klasse zou er anders 3px
 * kleur van maken.
 */
.call-cost-day-bar > .is-share-0 {
    min-width: 0;
}

.call-cost-toolbar {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    align-items: end;
    padding: 20px 24px 16px;
    background: var(--surface-soft);
}

.call-cost-route {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.call-cost-route-arrow {
    color: var(--muted);
}

.call-cost-people {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    padding: 20px 24px;
}

/*
 * Vier lijstjes naast elkaar, en het menublok -- het enige dat er tien
 * heeft -- over de volle breedte eronder in twee kolommen.
 *
 * Met alleen auto-fit viel dat vijfde blok op een tweede rij in de
 * eerste kolom, waarna er rechts drie cellen leeg bleven; tegelijk was
 * het menublok twee keer zo hoog als zijn buren doordat de langere
 * namen afbraken. Een vaste vierkolomsindeling plus een breed blok
 * lost allebei op.
 */
.call-cost-people.is-split {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 22px 26px;
}

/*
 * De standaardpagina heeft geen wachttijdlijstje en dus hooguit drie
 * lijstjes. Het raster krijgt precies zoveel kolommen; met auto-fit
 * zou de legenda (grid-column 1 / -1) de vierde, lege kolom openhouden.
 */
.call-cost-people.is-standard.is-cols-3 {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.call-cost-people.is-standard.is-cols-2 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.call-cost-people.is-standard.is-cols-1 {
    grid-template-columns:
        minmax(0, 1fr);
}

.call-cost-people-wide {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/*
 * De legenda van de tekens hoort bij twee lijstjes tegelijk en staat
 * daarom onder de hele rij, niet onder een van de vier kolommen: daar
 * zou ze dat ene blok hoger maken dan zijn buren.
 */
.call-cost-people-legend {
    grid-column: 1 / -1;
    margin: 0;
}

.call-cost-people-columns {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 0 26px;
}

.call-cost-people-block {
    min-width: 0;
}

.call-cost-people-block h3 {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.call-cost-people-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

/*
 * De koppen dragen deels een symbool en deels een woord. Zonder vaste
 * regelhoogte is een kop met symbool een paar pixels hoger dan een kop
 * zonder, en dan staan de vier lijstjes naast elkaar al vanaf hun
 * eerste regel niet meer gelijk.
 */
.call-cost-people-table th {
    padding: 0 0 6px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-size: 10px;
    line-height: 14px;
    letter-spacing: 0.05em;
}

.call-cost-people-table th .call-cost-mark {
    font-size: 12px;
    line-height: 1;
}

.call-cost-people-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    line-height: 19px;
}

.call-cost-people-table th:not(:first-child),
.call-cost-people-table td:not(:first-child) {
    width: 1%;
    padding-left: 12px;
    text-align: right;
    white-space: nowrap;
}

.call-cost-people-table
    tbody
    tr:last-child
    td {
    border-bottom: 0;
}

/*
 * Elke regel heeft een tweede regel -- ook waar de data er geen levert,
 * want dan staat er een terugvalwoord. Zo is elke rij even hoog en
 * eindigen de kolommen op dezelfde lijn.
 */
.call-cost-people-table small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    line-height: 15px;
    font-weight: 600;
}

/*
 * Wachtrijen: de overloop hangt als ingesprongen regel onder de
 * wachtrij waaruit de gesprekken doorstroomden.
 */

.call-cost-queue-panel {
    padding: 20px 24px;
}

/*
 * De naamkolom mag niet meerekken tot de volle paneelbreedte: dan staat
 * er een leeg gat tussen de wachtrijnaam en haar cijfers. Vandaar een
 * maximum op de tabel in plaats van op het paneel.
 */
.call-cost-queue-table {
    min-width: 520px;
    max-width: 620px;
}

/*
 * De koppen zijn symbolen; hun woorden staan in de legenda eronder,
 * in een title en in tekst die alleen een schermlezer leest. Daardoor
 * is elke getalkolom niet breder dan haar getallen.
 */
.call-cost-queue-table th .call-cost-mark {
    font-size: 12px;
    line-height: 1;
}

.call-cost-queue-bar-cell {
    padding-left: 14px;
}

/*
 * De driedeling van een wachtrij als verhoudingsbalk. De breedtes
 * komen uit de gedeelde is-share-klassen, dus uit de stylesheet en
 * niet uit een style-attribuut dat de CSP zou verwerpen.
 */
.call-cost-queue-bar {
    display: flex;
    width: 108px;
    height: 9px;
    border-radius: 5px;
    background: var(--neutral-bg);
    overflow: hidden;
}

.call-cost-queue-part {
    height: 100%;
}

.call-cost-queue-part.is-answered {
    --call-cost-color: var(--success);
}

.call-cost-queue-part.is-forwarded {
    --call-cost-color: var(--cit-blue);
}

.call-cost-queue-part.is-lost {
    --call-cost-color: var(--danger);
}

.call-cost-queue-table th:first-child,
.call-cost-queue-table td:first-child {
    width: auto;
}

.call-cost-queue-table th:not(:first-child),
.call-cost-queue-table td:not(:first-child) {
    padding-left: 18px;
}

.call-cost-queue-table td.is-depth-1 {
    padding-left: 18px;
}

.call-cost-queue-table td.is-depth-2 {
    padding-left: 36px;
}

.call-cost-queue-table td.is-depth-3 {
    padding-left: 54px;
}

.call-cost-queue-branch {
    margin-right: 4px;
    color: var(--muted);
    font-weight: 800;
}

.call-cost-queue-note {
    max-width: 620px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}


/*
 * GESPREKSSESSIES
 * Bron: core/templates/core/portal/call_costs.html
 *
 * Een sessie is de ankerrij van een gesprek plus de flowstappen die
 * erbij horen. Uitklappen gebeurt met <details>/<summary>, dus zonder
 * script: de CSP van deze applicatie staat geen inline gedrag toe.
 */

.call-cost-session {
    border-bottom: 1px solid var(--border);
}

.call-cost-session:last-child {
    border-bottom: 0;
}

.call-cost-session-head {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    padding: 14px 24px 14px 46px;
    font-size: 13px;
    list-style: none;
}

summary.call-cost-session-head {
    cursor: pointer;
}

summary.call-cost-session-head::-webkit-details-marker {
    display: none;
}

summary.call-cost-session-head::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 25px;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(-45deg);
}

.call-cost-session[open] > summary.call-cost-session-head::before {
    top: 20px;
    left: 23px;
    transform: rotate(45deg);
}

summary.call-cost-session-head:hover,
summary.call-cost-session-head:focus-visible {
    background: var(--surface-soft);
}

.call-cost-session-time {
    min-width: 148px;
    font-weight: 700;
}

.call-cost-session-direction {
    min-width: 70px;
    color: var(--muted);
}

.call-cost-session-head .call-cost-route {
    min-width: 200px;
}

.call-cost-session-meta {
    flex: 1 1 130px;
    color: var(--muted);
}

.call-cost-session-duration {
    min-width: 64px;
    text-align: right;
    white-space: nowrap;
}

.call-cost-session-amount {
    min-width: 86px;
    text-align: right;
    white-space: nowrap;
}

.call-cost-session-steps {
    min-width: 74px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.call-cost-session-flow {
    padding: 0 24px 18px 46px;
}

.call-cost-step-table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
    font-size: 13px;
}

.call-cost-step-table th {
    padding: 0 0 6px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
}

.call-cost-step-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.call-cost-step-table tbody tr:last-child td {
    border-bottom: 0;
}

.call-cost-step-table th:not(:first-child),
.call-cost-step-table td:not(:first-child) {
    padding-left: 14px;
}

.call-cost-step-table th:nth-child(4),
.call-cost-step-table td:nth-child(4),
.call-cost-step-table th:last-child,
.call-cost-step-table td:last-child {
    width: 1%;
    text-align: right;
    white-space: nowrap;
}

.call-cost-step-table small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.extension-config-note {
    margin: 0;
    padding: 16px 24px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.extension-config-table {
    min-width: 1040px;
}

.extension-config-table th:first-child,
.extension-config-table td:first-child {
    width: 120px;
}

.extension-config-table th:nth-child(2),
.extension-config-table td:nth-child(2) {
    width: 190px;
}

.extension-config-table input,
.extension-config-table select {
    min-height: 40px;
}

.field-errors {
    margin-top: 6px;
    color: var(--danger);
    font-size: 12px;
}

.field-errors ul {
    margin: 0;
    padding-left: 18px;
}

.panel-actions {
    display: flex;
    justify-content: flex-end;
    padding: 18px 24px;
    border-top: 1px solid var(--border);
}

.portal-notice {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
}

.portal-notice-success {
    background: var(--success-bg);
    color: var(--success);
}

.portal-notice-info {
    background: var(--neutral-bg);
    color: var(--text-soft);
}

.extension-config-seed {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px 20px;
}

.extension-config-seed p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

/*
 * DOORKLIKKEN
 * Bron: core/templates/core/portal/call_costs.html en de
 * call_cost_*-sjablonen (sessie, beller, agent, wachtrij, menu).
 *
 * Een koppeling is een gewone link; de CSP staat geen inline gedrag
 * toe, dus ook geen onclick op een tabelrij.
 */

.call-cost-link {
    color: var(--cit-blue-dark);
    font-weight: 700;
}

.call-cost-link:hover,
.call-cost-link:focus-visible {
    color: var(--cit-blue);
    text-decoration: underline;
}

.call-cost-session-note {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/*
 * Een gesprek als compacte regel in de overzichten. De hele regel is de
 * link naar de gesprekspagina; de stappen staan daar. Zo blijft een
 * pagina met 50 gesprekken licht, ook bij een klant met 36 regels per
 * gesprek.
 */
.call-cost-session-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
}

.call-cost-session-row:last-child {
    border-bottom: 0;
}

a.call-cost-session-row::after {
    content: "\203A";
    color: var(--muted);
    font-weight: 800;
}

a.call-cost-session-row:hover,
a.call-cost-session-row:focus-visible {
    background: var(--surface-soft);
    color: var(--text);
    text-decoration: none;
}

a.call-cost-session-row:hover .call-cost-session-time,
a.call-cost-session-row:focus-visible .call-cost-session-time {
    color: var(--cit-blue-dark);
    text-decoration: underline;
}

.call-cost-session-row.is-flat {
    padding-right: 38px;
    color: var(--text-soft);
}

.call-cost-breadcrumbs {
    margin: 0 0 14px;
    font-size: 13px;
}

.call-cost-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.call-cost-breadcrumbs li + li::before {
    content: "\203A";
    margin: 0 8px;
    color: var(--muted);
}

.call-cost-breadcrumbs [aria-current] {
    color: var(--text-soft);
    font-weight: 700;
}

.call-cost-overview-nav,
.call-cost-session-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    margin: -6px 0 22px;
}

.call-cost-month-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.call-cost-month-nav-current {
    color: var(--cit-navy);
    font-weight: 800;
}

.call-cost-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.call-cost-switch label {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.call-cost-switch select {
    width: auto;
    min-width: 220px;
}

.call-cost-session-nav-position {
    color: var(--text-soft);
    font-size: 13px;
    text-align: center;
}

.button.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.pagination-ellipsis {
    align-self: center;
    padding: 0 4px;
    color: var(--muted);
}

.call-cost-kicker {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.call-cost-drilldown-note {
    max-width: 760px;
    margin: -8px 0 22px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.call-cost-people.is-pair {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.call-cost-session-facts {
    display: grid;
    grid-template-columns:
        minmax(150px, max-content) minmax(0, 1fr);
    gap: 12px 24px;
    margin: 0;
    padding: 20px 24px;
    font-size: 14px;
}

.call-cost-session-facts dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 21px;
    text-transform: uppercase;
}

.call-cost-session-facts dd {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    align-items: baseline;
    margin: 0;
}

.call-cost-facts-item small {
    margin-left: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.call-cost-facts-link {
    font-size: 13px;
}

.call-cost-outcome-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.call-cost-outcome-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}

.call-cost-outcome-chip:hover {
    border-color: var(--cit-blue);
    color: var(--cit-blue-dark);
    text-decoration: none;
}

.call-cost-outcome-chip.is-selected {
    border-color: var(--cit-blue);
    background: var(--cit-blue-soft);
    color: var(--cit-blue-dark);
}

/*
 * KOSTEN KLIKBAAR
 * Het bedrag in de KPI-tegel, de categorieën in het blok Kosten en de
 * balksegmenten linken naar de gesprekken achter dat bedrag
 * (call_cost_costs.html). De legenda is de toegankelijke weg; de
 * segmenten en het bedrag zijn extra klikdoelen voor de muis.
 */

.call-cost-kpi-link {
    color: inherit;
}

.call-cost-kpi-link:hover,
.call-cost-kpi-link:focus-visible {
    color: var(--cit-blue-dark);
    text-decoration: underline;
}

a.call-cost-split-part {
    text-decoration: none;
}

a.call-cost-split-part:hover {
    filter: brightness(1.18);
}

.call-cost-split-amount-link {
    color: inherit;
}

.call-cost-split-amount-link:hover {
    color: var(--cit-blue-dark);
    text-decoration: underline;
}

.call-cost-panel-note {
    margin: 14px 24px 18px;
}

/*
 * Zoeken op een nummer, met POST: het nummer komt niet in de URL.
 */
.call-cost-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 14px 24px 18px;
    border-top: 1px solid var(--border);
}

.call-cost-search label {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.call-cost-search input {
    width: auto;
    min-width: 220px;
}

.call-cost-search-hint {
    color: var(--muted);
    font-size: 12px;
}

.panel > .call-cost-search:first-child {
    border-top: 0;
}

.call-cost-search-table {
    margin: 0 24px 8px;
    width: calc(100% - 48px);
}

.call-cost-search-note {
    margin: 8px 24px 18px;
}

@media (max-width: 940px) {
    .call-cost-people.is-standard.is-cols-3 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .call-cost-toolbar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .call-cost-people.is-split {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .call-cost-detail-breakdown {
        grid-template-columns: 1fr;
    }

    .call-flow-breakdown {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .call-cost-toolbar {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .call-cost-people.is-split {
        grid-template-columns: 1fr;
    }

    .call-cost-people.is-pair {
        grid-template-columns: 1fr;
    }

    .call-cost-session-facts {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .call-cost-session-facts dd {
        margin-bottom: 10px;
    }

    .call-cost-people-columns {
        grid-template-columns: 1fr;
    }

    /*
     * Op een kolom staat het menublok gewoon onder de rest; de
     * scheidingslijn zou dan een streep tussen twee lijstjes zijn.
     */
    .call-cost-people-wide {
        padding-top: 0;
        border-top: 0;
    }

    .call-cost-session-head {
        padding: 14px 18px 14px 40px;
    }

    .call-cost-session-row {
        padding: 12px 18px;
    }

    .call-cost-search {
        padding: 14px 18px 18px;
    }

    .call-cost-search input {
        flex: 1 1 100%;
        min-width: 0;
    }

    /*
     * Vorige en volgende naast elkaar, de positie in de lijst erboven,
     * zodat de knoppen niet drie regels hoog worden.
     */
    .call-cost-session-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .call-cost-session-nav-position {
        grid-column: 1 / -1;
        order: -1;
    }

    .call-cost-session-time,
    .call-cost-session-meta {
        flex-basis: 100%;
    }

    summary.call-cost-session-head::before {
        left: 19px;
    }

    .call-cost-session[open] > summary.call-cost-session-head::before {
        left: 17px;
    }

    .call-cost-session-flow {
        padding: 0 18px 16px 40px;
    }
}

@media (max-width: 480px) {
    .call-cost-kpis {
        grid-template-columns: 1fr;
    }

    .call-cost-people.is-standard.is-cols-3,
    .call-cost-people.is-standard.is-cols-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    /*
     * Te smal voor tekst in de balk; de legenda noemt
     * elk percentage toch al voluit.
     */
    .call-cost-split-value {
        display: none;
    }
}


/*
 * FACTUURDETAIL
 * Bron: core/templates/core/portal/invoice_detail.html
 */

.invoice-detail-heading {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 24px;
    }

    .invoice-detail-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px;
    }

    .invoice-detail-grid {
        display: grid;
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .invoice-detail-item {
        min-height: 105px;
        padding: 22px 24px;
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .invoice-detail-item:nth-child(3n) {
        border-right: 0;
    }

    .invoice-detail-label {
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .invoice-detail-value {
        margin-top: 7px;
        color: var(--cit-navy);
        font-size: 16px;
        font-weight: 750;
        overflow-wrap: anywhere;
    }

    .invoice-detail-value-large {
        font-size: 24px;
        letter-spacing: -0.025em;
    }

    .invoice-detail-section {
        padding: 24px;
        border-bottom: 1px solid var(--border);
    }

    .invoice-detail-section:last-child {
        border-bottom: 0;
    }

    .invoice-detail-section h2 {
        margin: 0 0 13px;
        font-size: 18px;
    }

    .invoice-detail-description {
        margin: 0;
        color: var(--text-soft);
        line-height: 1.7;
        white-space: pre-wrap;
    }

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

    .invoice-reference {
        padding: 17px 18px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--surface-soft);
    }

    .invoice-lines-wrap {
        overflow-x: auto;
    }

    .invoice-lines-table {
        width: 100%;
        min-width: 900px;
        border-collapse: collapse;
    }

    .invoice-lines-table th,
    .invoice-lines-table td {
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
        vertical-align: top;
    }

    .invoice-lines-table th {
        background: var(--surface-soft);
        color: var(--text-soft);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.055em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .invoice-lines-table td {
        color: var(--text-soft);
    }

    .invoice-lines-table td:first-child {
        width: 58px;
        color: var(--muted);
    }

    .invoice-line-code {
        color: var(--cit-navy);
        font-weight: 750;
        white-space: nowrap;
    }

    .invoice-line-description {
        color: var(--cit-navy);
        font-weight: 700;
    }

    .invoice-line-notes {
        margin-top: 7px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.55;
        white-space: pre-line;
    }

    .invoice-line-period {
        margin-top: 5px;
        color: var(--muted);
        font-size: 12px;
    }

    .invoice-line-number {
        text-align: right;
        white-space: nowrap;
    }

    .invoice-lines-error {
        margin: 20px 24px;
        padding: 14px 16px;
        border: 1px solid #e7b6b6;
        border-radius: var(--radius-sm);
        background: #fff4f4;
        color: #8f2525;
    }

    .invoice-lines-empty {
        padding: 36px 24px;
        color: var(--muted);
        text-align: center;
    }

    .invoice-lines-totals {
        display: flex;
        justify-content: flex-end;
        padding: 18px 24px;
        border-top: 1px solid var(--border);
        background: var(--surface-soft);
    }

    .invoice-lines-totals-grid {
        width: min(100%, 380px);
    }

    .invoice-lines-total {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        padding: 6px 0;
    }

    .invoice-lines-total-final {
        margin-top: 6px;
        padding-top: 12px;
        border-top: 1px solid var(--border-strong);
        color: var(--cit-navy);
        font-size: 17px;
        font-weight: 800;
    }

    .payment-badge {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        padding: 6px 12px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }

    .payment-badge-paid {
        background: #e9f7ef;
        color: #17653a;
    }

    .payment-badge-open {
        background: #eef4fb;
        color: #28577e;
    }

    .payment-badge-overdue {
        background: #fff0f0;
        color: #a12b2b;
    }

    .payment-badge-partial {
        background: #fff5df;
        color: #8a5b00;
    }

    .payment-badge-direct_debit_open {
        background: #f2edff;
        color: #5e3b9f;
    }

    .payment-badge-unknown {
        background: var(--surface-soft);
        color: var(--muted);
    }

    .invoice-payment-section {
        border-bottom: 1px solid var(--border);
    }

    .invoice-payment-heading {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 18px;
        padding: 22px 24px;
        border-bottom: 1px solid var(--border);
        background: var(--surface-soft);
    }

    .invoice-payment-badge-wrap {
        margin-top: 8px;
    }

    .invoice-payment-updated {
        color: var(--muted);
        font-size: 12px;
    }

    .invoice-payment-grid {
        display: grid;
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .invoice-payment-item {
        min-height: 102px;
        padding: 20px 24px;
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .invoice-payment-item:nth-child(3n) {
        border-right: 0;
    }

    .invoice-payment-notice,
    .invoice-payment-warning,
    .invoice-payment-success {
        margin: 20px 24px;
        padding: 14px 16px;
        border-radius: var(--radius-sm);
        line-height: 1.55;
    }

    .invoice-payment-notice {
        border: 1px solid #d8ccef;
        background: #f7f3ff;
        color: #503682;
    }

    .invoice-payment-warning {
        border: 1px solid #e7b6b6;
        background: #fff4f4;
        color: #8f2525;
    }

    .invoice-payment-success {
        border: 1px solid #b9dfc8;
        background: #f1faf5;
        color: #17653a;
    }

    @media (max-width: 800px) {
        .invoice-payment-grid {
            grid-template-columns: 1fr 1fr;
        }

        .invoice-payment-item,
        .invoice-payment-item:nth-child(3n) {
            border-right: 1px solid var(--border);
        }

        .invoice-payment-item:nth-child(2n) {
            border-right: 0;
        }
    }

    @media (max-width: 560px) {
        .invoice-payment-heading {
            display: block;
        }

        .invoice-payment-updated {
            margin-top: 12px;
        }

        .invoice-payment-grid {
            grid-template-columns: 1fr;
        }

        .invoice-payment-item,
        .invoice-payment-item:nth-child(2n),
        .invoice-payment-item:nth-child(3n) {
            min-height: 0;
            border-right: 0;
        }
    }

    .invoice-detail-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 18px;
        padding: 22px 24px;
    }

    .invoice-detail-footer-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    @media (max-width: 800px) {
        .invoice-detail-heading {
            display: block;
        }

        .invoice-detail-actions {
            display: grid;
            grid-template-columns: 1fr;
            margin-top: 20px;
        }

        .invoice-detail-actions .button {
            width: 100%;
        }

        .invoice-detail-grid {
            grid-template-columns: 1fr 1fr;
        }

        .invoice-detail-item,
        .invoice-detail-item:nth-child(3n) {
            border-right: 1px solid var(--border);
        }

        .invoice-detail-item:nth-child(2n) {
            border-right: 0;
        }
    }

    @media (max-width: 560px) {
        .invoice-detail-grid {
            grid-template-columns: 1fr;
        }

        .invoice-detail-item,
        .invoice-detail-item:nth-child(2n),
        .invoice-detail-item:nth-child(3n) {
            min-height: 0;
            border-right: 0;
        }

        .invoice-reference-grid {
            grid-template-columns: 1fr;
        }

        .invoice-detail-footer {
            display: block;
        }

        .invoice-detail-footer-actions {
            display: grid;
            grid-template-columns: 1fr;
            margin-top: 16px;
        }

        .invoice-detail-footer-actions .button {
            width: 100%;
        }
    }

/* BEGIN GENERATED PORTAL ATTRIBUTE CLASSES */

/*
 * Automatisch gegenereerde klassen ter vervanging
 * van voormalige statische style-attributen.
 */

.ci-portal-style-001 {
    max-width: 640px; margin: 0 auto;
}

.ci-portal-style-002 {
    padding: 32px;
}

.ci-portal-style-003 {
    color: #b42318; margin: 20px 0;
}

.ci-portal-style-004 {
    margin-bottom: 20px;
}

.ci-portal-style-005 {
    color: #b42318; margin-top: 6px;
}

.ci-portal-style-006 {
    margin-top: 18px; text-align: center;
}

.ci-portal-style-007 {
    padding: 32px; max-width: 700px;
}

.ci-portal-style-008 {
    margin-top: 24px; font-family: monospace; font-size: 1.05rem; line-height: 1.9;
}

.ci-portal-style-009 {
    margin-top: 24px;
}

.ci-portal-style-010 {
    color: #b42318;
}

.ci-portal-style-011 {
    width: 220px; height: 220px; margin: 24px 0;
}

.ci-portal-style-012 {
    margin-top: 20px;
}

.ci-portal-style-013 {
    padding: 32px; max-width: 500px;
}

.ci-portal-style-014 {
    margin: 32px 0; border: 0; border-top: 1px solid #d8dee8;
}

.ci-portal-style-015 {
    cursor: pointer; font-weight: 600;
}

.ci-portal-style-016 {
    max-width: 680px; margin: 72px auto 0;
}

.ci-portal-style-017 {
    padding: 44px 36px; text-align: center;
}

.ci-portal-style-018 {
    width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--warning-bg); color: var(--warning); font-size: 30px; font-weight: 700;
}

.ci-portal-style-019 {
    margin-top: 28px;
}

.ci-portal-style-020 {
    max-width: 600px; margin: 0 auto;
}

.ci-portal-style-021 {
    margin-top: 6px; color: #667085; font-size: 14px;
}

.ci-portal-style-022 {
    margin-top: 14px;
}

.ci-portal-style-023 {
    margin-bottom: 24px;
}

.ci-portal-style-024 {
    padding: 0 22px 22px;
}

.ci-portal-style-025 {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}

.ci-portal-style-026 {
    margin-bottom: 2px;
}

.ci-portal-style-027 {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}

.ci-portal-style-028 {
    display: flex; align-items: center; gap: 8px; margin: 0;
}

.ci-portal-style-029 {
    width: auto; min-width: 165px;
}

/* END GENERATED PORTAL ATTRIBUTE CLASSES */

.call-flow-daily {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.call-flow-daily-intro {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.call-flow-charts {
    display: grid;
    min-width: 0;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.call-flow-chart {
    min-width: 0;
    padding: 16px 18px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.call-flow-chart h3 {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.call-flow-chart-header p,
.call-flow-menu-header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.call-flow-chart-canvas {
    position: relative;
    margin-top: 12px;
    min-height: 120px;
}

.call-flow-chart-canvas svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.call-flow-chart-axis {
    fill: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.call-flow-chart-grid {
    stroke: var(--border);
    stroke-width: 1;
}

.call-flow-chart-baseline {
    stroke: var(--border-strong);
}

.call-flow-chart-weekend {
    fill: var(--surface-soft);
}

.call-flow-chart-line {
    fill: none;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.call-flow-chart-point {
    stroke: var(--surface);
    stroke-width: 1.5;
}

.call-flow-chart-guide {
    stroke: var(--border-strong);
    stroke-dasharray: 3 3;
}

.call-flow-chart-overlay {
    fill: transparent;
    cursor: crosshair;
    touch-action: pan-y;
}

.call-flow-chart-tooltip {
    position: absolute;
    top: 8px;
    left: 0;
    z-index: 2;
    min-width: 150px;
    max-width: 240px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    color: var(--text-soft);
    font-size: 12px;
    pointer-events: none;
}

.call-flow-chart-tooltip[hidden] {
    display: none;
}

.call-flow-chart-tooltip strong {
    display: block;
    margin-bottom: 6px;
    color: var(--cit-navy);
}

.call-flow-chart-tooltip ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.call-flow-chart-tooltip li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.call-flow-chart-tooltip li > span {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.call-flow-chart-tooltip b {
    color: var(--cit-navy);
    font-weight: 700;
    white-space: nowrap;
}

.call-flow-chart-tooltip-empty {
    color: var(--muted);
}

.call-flow-chart-swatch {
    display: inline-block;
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}

.call-flow-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.call-flow-chart-legend button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-soft);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.call-flow-chart-legend button:hover {
    border-color: var(--border-strong);
}

.call-flow-chart-legend button[aria-pressed="false"] {
    opacity: 0.45;
    text-decoration: line-through;
}

.call-flow-chart-empty {
    margin: 12px 0 0;
    padding: 22px 16px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.call-flow-menu {
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.call-flow-menu > summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.call-flow-menu .table-wrap {
    margin-top: 12px;
    overflow-x: auto;
}

.call-flow-day-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.call-flow-day-table th,
.call-flow-day-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    text-align: right;
    white-space: nowrap;
}

.call-flow-day-table th:first-child,
.call-flow-day-table td:first-child {
    text-align: left;
}

.call-flow-day-table th {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.call-flow-day-table td {
    color: var(--text-soft);
}

.call-flow-day-table td:last-child {
    color: var(--cit-navy);
    font-weight: 700;
}

@media (max-width: 940px) {
    .call-flow-daily {
        padding: 16px;
    }

    .call-flow-charts {
        grid-template-columns: minmax(0, 1fr);
    }
}
