.form-tabs a,
.form-tabs .btn {
    color: #FFFFFF;
    background-color: #715da0;
    border: none;
    padding: 0.5rem 1rem;
    transition: background 0.3s ease-in-out;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: var(--bs-border-radius-lg);
}

.form-tabs .btn.btn-blue{
    background-color: #00a7bc;
}

/* Change styling when hovering */
.form-tabs .nav > li > a:hover,
.form-tabs .btn:hover {
    background-color: #88997d;
    color: white;
}

/* Active tab styling */
.form-tabs .nav-tabs .active {
    background-color: #88997d;
    color: white;
    font-weight: 600;
}

.form-tabs .nav-tabs{
    border-bottom: 0;
}

.form-tabs.row{
    margin: 0 0 2rem;
    padding: 0 0.5rem;
}

.form-tabs.row li a{
    margin-left: 0;
    margin-right: 0.5rem;
}

.crmEntityFormView .cell .field-label{
    font-size: 1rem;
}

h3.form-subgrid-heading{
    font-family: unset;
    margin: 0;
}

h3.form-subgrid-heading label.field-label{
    float: none !important;
}

legend.section-title:has(> h3:empty){
    display:none;
}

.toolbar-actions .btn-primary.create-action{
    font-size:1rem;
}

.entity-form .msos-option-selected, .entity-form .msos-selected-display-item, .entity-form .msos-quick-delete, .entity-form .msos-quick-delete:hover {
    background-color: #715da0 !important;
    color: #FFFFFF;
}

.entity-form label {
    font-weight: 600;
}

.crmEntityFormView{
    border: 0 !important;
}

.crmEntityFormView .cell{
    padding: 0 0.5rem 0.5rem;
}

.ms-DetailsHeader {
    background-color: color-mix(in oklch, var(--portalThemeColor10), transparent 0%);
    color: #FFFFFF;
}

.ms-DetailsHeader-cell {
    color: #FFFFFF; !important;
}

.ms-DetailsRow-cell a.ms-Link {
    font-weight: 600;
}

.vaf-entity-title {
    margin: 0 0.5rem 2rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid #e5e5e5;
}
input.form-control:enabled:read-write, input.form-control.lookup:enabled{
    border: var(--bs-border-width) solid var(--bs-border-color) !important;
}

.crmEntityFormView .state, .crmEntityFormView .status{
    padding: 0 !important;
}

.msos-container:not(.msos-disabled) {
    border: var(--bs-border-width) solid var(--bs-border-color) !important;
    border-radius: var(--bs-border-radius) !important;
    box-shadow: unset !important;
}

.msos-caret-container{
    padding: 0 12px !important;
}

textarea {
    resize: vertical !important;
}

#create-wizard #breadcrumb{
    padding: 0;
}

    #create-wizard #breadcrumb button.btn:after {
        content: "\f00d";
        font-family: var(--fa-style-family,"Font Awesome 6 Free");
        font-weight: var(--fa-style,900);
        margin-left: 1rem;
    }

.ms-DetailsRow-cell {
    white-space: pre-line !important;
}


.smaller-font .ms-DetailsRow-cell {
    font-size: 0.9rem;
    line-height: normal;
    min-height: 30px !important;
    padding-top: 5px;
    padding-bottom: 5px;
}

.actions{
    margin-bottom: 20px;
}

#subgrid_decisions_bod, #subgrid_commission_requests{
    font-size: 0.8em;
}

#subgrid_commission_requests thead{
    display: none;
}

.pagination>.page-item.active>a.page-link{
    background-color: #715da0 !important;
}

#involvedCommissionMembersContainer textarea.form-control{
    border: var(--bs-border-width) solid var(--bs-border-color);
    padding: .375rem .75rem;
}

.ms-Dialog-main{
    background-color: white;
    border-radius: 16px;
}

#ModalFocusTrapZone6{
    height: 60%;
}

#modalTitle{
    text-align: center;
}

div.tab.tab-pane#Exploitation fieldset[aria-label='Archief voor Onderwijs'] label{
    font-weight: normal;
}

div.control:has(span.boolean-radio){
    padding-top: 10px;
}

table[data-name='section_synopsis'] tbody .form-control{
    margin-bottom: 1.2rem;
}

#synopsis-alert p{
    font-size: 16px;
}

#synopsis-alert{
    background-color: #dce3d7;
    border-color: #dce3d7;
}

.alert.alert-info{
    background-color: #dce3d7 !important;
    color: #000000 !important;
    border-color: #d1d7cd !important;
}

.customControl .msos-container:not(.msos-disabled).msos-active{
border-color: var(--bs-border-color) !important;
}

.msos-caret-container, .input-group-addon{
    border-top-right-radius: var(--bs-border-radius) !important;
    border-bottom-right-radius: var(--bs-border-radius) !important;
}
.msos-caret-button{
    color: #000000 !important;
}

.btn.btn-default.clearlookupfield, .btn.btn-default.launchentitylookup{
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    border-top-right-radius: var(--bs-border-radius);
    border-bottom-right-radius: var(--bs-border-radius);
    height: 38px;
    border: var(--bs-border-width) solid var(--bs-border-color) !important;
    background-color: #eeeeee;
}

.input-group > .lookup.form-control{
  height: 38px;
}


.input-group:has(> input:read-only) > .input-group-text{
    background-color: unset;
    border: unset;
    padding: .375rem;
}

.badge-start .badge{
    float: unset !important;
    font-weight: normal !important;
}

/* ── Document Library ─────────────────────────────────────────────── */

.dl-panels {
    display: flex;
    min-height: 300px;
    max-height: 60vh;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-top: none;
    border-radius: 0 0 var(--bs-border-radius, 0.375rem) var(--bs-border-radius, 0.375rem);
}

/* Left: folder tree */
.dl-tree-panel {
    width: 260px;
    min-width: 200px;
    flex-shrink: 0;
    border-right: 1px solid var(--bs-border-color, #dee2e6);
    padding: 0.5rem;
    overflow-y: auto;
    background: #fafafa;
}

.dl-tree, .dl-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dl-tree ul.dl-tree-children {
    padding-left: 1.2rem !important;
}

.dl-tree-row {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.4rem;
    border-radius: var(--bs-border-radius-sm, 0.25rem);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.dl-tree-row:hover {
    background-color: #eee;
}

.dl-tree-row-selected {
    background-color: #715da0 !important;
    color: #fff;
}

.dl-tree-toggle {
    display: inline-block;
    width: 1.2em;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    cursor: pointer;
}

.dl-tree-toggle-has-children:hover {
    color: #715da0;
}

.dl-tree-row-selected .dl-tree-toggle-has-children:hover {
    color: #fff;
}

.dl-tree-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right: file list */
.dl-file-panel {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.dl-file-table {
    margin-bottom: 0;
}

.dl-file-table thead th {
    font-weight: 600;
    font-size: 0.9rem;
    border-top: none;
}

.dl-file-name {
    cursor: pointer;
}

.dl-file-name:hover {
    text-decoration: underline;
    color: #715da0;
}

.dl-row-folder .dl-file-name {
    font-weight: 600;
}

.dl-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

/* Breadcrumb */
.dl-breadcrumb {
    margin: 0;
    padding: 0.5rem 0.75rem;
    background: #fafafa;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius, 0.375rem) var(--bs-border-radius, 0.375rem) 0 0;
}

.dl-breadcrumb .breadcrumb {
    margin-bottom: 0;
}

.dl-breadcrumb .breadcrumb-item a {
    color: #715da0;
}

.dl-breadcrumb .breadcrumb-item a:hover {
    color: #88997d;
}

/* ── Collapsible section ──────────────────────────────────────────── */

.dl-collapsible-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
    margin-bottom: 0;
    color: #715da0;
    border-bottom: 2px solid #715da0;
    font-size: 1.25rem;
    font-weight: 600;
}

.dl-collapsible-header.disabled {
    cursor: unset;
    color: #666666;
}

.dl-collapsible-header:not(.disabled):hover {
    color: #88997d;
    border-bottom-color: #88997d;
}

.dl-chevron {
    transition: transform 0.2s ease;
    margin-right: 0.5em;
    font-size: 0.75em;
}

[aria-expanded="true"] .dl-chevron {
    transform: rotate(90deg);
}