body {
    color: #4D356E !important;
    font-family: 'Poppins', serif !important;
    /* position: relative zodat Select2 body als offset-parent gebruikt
       in plaats van <html>. Voorkomt dat de dropdown-left berekend wordt
       als viewport-relatief i.p.v. document-relatief (bug bij horizontale
       scroll / brede schermen). */
    position: relative;
}

.form-select,
.form-control {
    padding-left: 1rem;
}


a {
    text-decoration: none !important;
    /* color: #337ab7 !important;*/
    color: #4D356E !important;
}

label {
    color: #4D356E !important
}

/* Verplaatst uit style=""-attributen in layouts/components/_notification.php
   (momenteel niet gerenderd - zie commentaar in _header.php - maar voor
   CSP/hygiene toch opgeruimd). */
#notification-panel {
    padding: 10px 15px;
    cursor: pointer;
}

#notification-popup {
    display: none;
    position: absolute;
    top: 50px;
    right: 15px;
    width: 300px;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

#notification-popup .popup-header {
    padding: 10px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

#close-popup {
    float: right;
    border: none;
    background: none;
    font-size: 16px;
}

#notification-popup .popup-body {
    max-height: 400px;
    overflow-y: auto;
}

.main-content-container {
    background-color: white !important;
}

.navbar {
    margin-bottom: 0 !important;
}

.fa-ok {
    color: #27F02E;
}

.fa-bell {
    color: #4D356E;
}

.ga-trash {
    color: #4D356E;
}

.circle {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.circle.completed {
    background-color: #27F02E;
}

.circle.failed {
    background-color: #F4227F;
}

.circle.not-completed {
    background-color: #f9f9f9;
    border: 1px solid black;
}

.hover-clickable {
    cursor: pointer;
    pointer-events: auto;
}

.dossier-create th {
    color: #4D356E;
}

table, tr, th, td {
    border: transparent !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9 !important;
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: white !important;
}

td {
    padding: 6px !important;
}

.btn {
    border-radius: 25px !important;
    border: 0 !important;
}

/* .btn-link en .btn-outline-* horen een transparante achtergrond met
   gekleurde tekst te hebben - wit forceren maakt ze onzichtbaar op een
   lichte achtergrond, zoals bij de "klap open"-knoppen in de rapportbouwer,
   het "Wis filter"-linkje bij klantvragen, en de "Detail"-knop (btn-outline-
   primary) op /incasso/index. Geldt voor <a> én <button>, vandaar hier en
   niet alleen bij de a.btn-regel verderop in dit bestand. */
.btn:not(.btn-link):not([class*="btn-outline-"]) {
    color: white;
}

.btn:not(.btn-link):not([class*="btn-outline-"]):hover,
.btn:not(.btn-link):not([class*="btn-outline-"]):active,
.btn:not(.btn-link):not([class*="btn-outline-"]):focus {
    color: white !important;
}

.btn-danger {
    background-color: #F4227F !important;
    color: #FFF !important;
}

.btn-success {
    background-color: #34D82C !important;
}

.btn-blue {
    background-color: #3E82C3 !important;
    color: #FFF !important;

}

.btn-action {
    background-color: #4D356E !important;
    color: #FFF !important;
}


.table-responsive::-webkit-scrollbar {
    width: 15px;
    background-color: #CBCBC9;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: #4D356E;
    border-radius: 10px;
}


.table-responsive thead th {
    position: sticky; /* make the header sticky */
    top: 0; /* fix the header to the top of the scrollable area */
    background-color: #F4F4F4; /* set the background color of the header to white */
    z-index: 1; /* set a higher z-index than the scrollable area to make the header appear on top */
}

.nav-item {
    margin-right: 20px; /* or any other value you prefer */
}

.navbar-header {
    flex: 1;
    min-width: 0;
}

.navbar-brand, .nav-link {
    color: #4D356E !important;
}

svg {
    fill: #4D356E !important;
}

/* Actieve navigatie-link: icoon en tekst oplichten */
.navbar .nav-item .nav-link.active {
    color: #7B52AB !important;
    position: relative;
}
.navbar .nav-item .nav-link.active svg,
.navbar .nav-item .nav-link.active i {
    fill: #7B52AB !important;
    color: #7B52AB !important;
}
.navbar .nav-item .nav-link.active::after {
    content: '';
    display: block;
    width: 20px;
    height: 3px;
    background: #dc3545;
    border-radius: 2px;
    margin: 3px auto 0;
}

.dashboard a {
    text-decoration: none;
    color: #4D356E;
}

.gray-background {
    background-color: #F4F4F4;
    border-radius: 25px;
    height: 100%;
}

.btn-padding {
    padding-left: 3em !important;
    padding-right: 3em !important;
}

.filter-sidebar-panel {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
}

/* Dossier index */
.pagination > .active > li {
    background-color: #4D356E !important;
    border-color: transparent !important;
}

.pagination > .active > a {
    color: white !important;

}

.dossier-index th a, .dossier-index table {
    color: #4D356E;
}

.customer-close-table-index th a, .customer-close-table-index table {
    color: #4D356E;
}

.customer-close-table-index td {
    color: #4D356E !important;
}

.dossier-index table {
    margin-bottom: 40px;
}

.dossier-index .summary {
    text-align: right;
}

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

.dossier-index th, td {
    border-style: solid;
    border-width: 5px;
    border-color: #BCBCBC;
    word-wrap: break-word;
}

/* Dossier import */

.dossier-import th a, .dossier-import table {
    color: #4D356E;
}

.dossier-import table {
    margin-bottom: 40px;
}

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

.dossier-import th, td {
    border-style: solid;
    border-width: 5px;
    border-color: #BCBCBC;
    word-wrap: break-word;
}

/* login */
#login-form, #request-password-reset-form, #reset-password-form {
    background-color: #f9f9f9 !important;
    margin: 0 !important;
}

#login-form a, #request-password-reset-form a, #reset-password-form a {
    text-decoration: none !important;
}

.profile {
    background: transparent !important;;
    color: #4D356E !important;
}

.profile a {
    text-decoration: none !important;
    color: #4D356E !important;
}

tfoot {
    font-weight: bold;
}


.select2-selection__rendered {
    color: #4D356E !important;
}

.kv-editable-link {
    color: #4D356E !important;
    border-bottom: none !important;
}

.btn-primary, .btn-primary:hover {
    background-color: #4D356E !important;
    color: white;
}

.fa-download, .fa-eye-open {
    font-size: 18px;
    color: #4D356E !important;
}

.table-striped .fa-remove {
    font-size: 16px;
    color: #F4227F !important;
}

.nav-link-text {
    color: #4D356E !important;
}

.btn-default {
    background-color: transparent !important;
}

.btn-default:hover, .btn-default:active, .btn-default:focus, .btn-default:focus-visible {
    color: #4D356E !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

.fa-pencil {
    color: #4D356E !important;
}

a:hover, a:focus {
    color: #4D356E !important;
}

.mt-25 {
    margin-top: 25vh !important;
}

/*Backend css*/
.red-background {
    background-color: #CEECC0;
    border-radius: 25px;
    height: 100%;
}

.blue-background {
    background-color: #C0ECD8;
    border-radius: 25px;
    height: 100%;
}


.pink-background {
    background-color: #C0DBEC;
    border-radius: 25px;
    height: 100%;
}

.green-background {
    background-color: #CBC0EC;
    border-radius: 25px;
    height: 100%;
}

.aHref {
    color: #4D356E !important;
}

.btn:hover, .btn:active, .btn:focus {
    text-decoration: none;
}

/*Client management*/
.li-menu-text {
    width: 60%;
}

#companyEmployee, #report, #dossiersOverview, #customerCloseTable, a.hover {
    color: #f9f9f9 !important;
}

#companyEmployee, #report, #dossiersOverview, #customerCloseTable {
    color: #f9f9f9;
}

.sidebar-menu-container {
    margin: 0;
    padding: 0;
}

.sidebar a {
    display: block;
    color: black;
    padding: 16px;
    text-decoration: none;
}

.sidebar-menu-container a.active {
    text-decoration: underline;
    color: #4D356E;
}

.sidebar-menu-container.content {
    margin-left: 200px;
    padding: 1px 16px;
    height: 1000px;
}

#ul-menu {
    list-style: none;
}

/* Niet toepassen op outline-knoppen (btn-outline-*) of btn-link: die hebben
   standaard een transparante achtergrond met gekleurde tekst (btn-link
   wordt pas gevuld op :hover bij outline, en blijft bij btn-link altijd een
   gewone link) - wit forceren maakt ze dan onzichtbaar. */
a.btn:not([class*="btn-outline-"]):not(.btn-link) {
    color: white !important;
}

.float-right, .pull-right {
    float: right;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    color: #4D356E !important;
}

.page-link.active, .active > .page-link {
    background-color: #4D356E;
    border-color: #4D356E;
}

.btn-outline-secondary, .btn-outline-secondary:hover, .btn-outline-secondary:active {
    background-color: #4D356E !important;
    color: white !important;
}

.btn i {
    color: inherit !important;
}

.table > :not(caption) > * > * {
    color: #4D356E;
}

#invoiceOverview{
    font-size: 10pt;
}

/* Uitgeklapte lijst van native selects gelijk trekken met het veld.
   Browsers zonder ondersteuning (nu nog Firefox) tonen de gewone lijst. */
@supports (appearance: base-select) {
    .form-select,
    .form-select::picker(select) {
        appearance: base-select;
    }

    /* Bootstrap tekent het pijltje al via background-image */
    .form-select::picker-icon {
        display: none;
    }

    .form-select::picker(select) {
        min-width: anchor-size(width);
        max-height: 50vh;
        overflow-y: auto;
        margin-top: 2px;
        padding: .25rem 0;
        border: 1px solid var(--bs-border-color);
        border-radius: var(--bs-border-radius);
        background-color: #fff;
        box-shadow: var(--bs-box-shadow-sm);
    }

    .form-select option {
        padding: .375rem .75rem;
        color: #4D356E;
        white-space: normal;
    }

    /* Vinkje weg, anders verspringt de geselecteerde optie naar rechts */
    .form-select option::checkmark {
        display: none;
    }

    .form-select option:hover,
    .form-select option:focus,
    .form-select option:checked {
        background-color: #f3eff8;
    }
}