@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primaryColor: #379f92; /* see $primary in Styles/portal.scss */
    --primaryColorDark: #007a6b;
    --secondaryColor: #606161;
}

.table {
    /* Custom settings for tabular data */
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    font-weight: 400;
}

html, body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.primary-color {
    color: var(--primaryColor);
}

.hidden {
    display: none !important;
}

.clickable {
    cursor: pointer !important;
}

/* The title row of a page: the title on the left, filters and actions on the right. On a narrow
   screen the actions move to the next line instead of running over the title. */
.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 0.5rem;
}

.page-header .d-flex {
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

/* Logo */

.company-logo {
    height: 40px;
}

.nav-link:active {
    color: var(--primaryColor);
}

.nav-link:hover {
    color: var(--primaryColor);
}

.nav-link i {
    padding-right: 5px;
}

/* Tab strips. Bootstrap leaves an idle tab on the link colour, which is the one blue in a palette that has
   none, so the theme names all three states: grey while idle, the primary colour on hover and for the tab
   you are on. The active tab keeps the white surface Bootstrap gives it and gets the primary colour on its
   bottom edge, so it reads as attached to the content below it. */
.nav-tabs .nav-link {
    color: var(--secondaryColor);
    border-color: transparent;
    background-color: transparent;
    font-weight: 500;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    color: var(--primaryColor);
    border-color: transparent transparent #dee2e6;
    background-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primaryColor);
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    box-shadow: inset 0 -2px 0 0 var(--primaryColor);
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.dropdown-menu.show {
    border-radius: 3px;
}

.dropdown-item:hover {
    color: var(--primaryColor);
    background-color: #fff;
    transition: 0.3s all;
}

/* side bar overrides*/
.nav-group-items {
    padding-left: 10px !important;
}

.nav-group-items .nav-icon i {
    font-size: 0.5rem;
    vertical-align: middle;
}

/* DataTables.net styling */

.table.datatable-init > tbody > tr > td {
    padding: 0.25rem 0.25rem !important;
}

table.datatable-init.dataTable > thead > tr > th {
    padding: .25rem .25rem;
}

table.datatable-init.dataTable > tbody > tr > td {
    font-size: 15px;
    vertical-align: middle;
}

tr.group-row td {
    background-color: #e9ecef !important; /* A darker grey than bg-light */
    color: #212529; /* Darker text for contrast */
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

/* Custom table */

table td {
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

tr.tr-hover:hover {
    background-color: rgba(0, 0, 0, .040);
}

/* Keyboard focus. A mouse click shows no ring, the keyboard always does, so whoever tabs through a
   page can see where they are. Form fields keep their own focus border instead. */
:focus-visible {
    outline: 2px solid var(--primaryColorDark);
    outline-offset: 2px;
}

.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible,
.ts-control input:focus-visible {
    outline: none;
}

/* Whoever asked their system for less motion gets no transitions or animations. The !important is what
   lets this one rule reach every transition in this file and in the libraries. */
/* The bar at the top while the next page loads (site.js). It runs most of the way and waits there for the
   page, as the real progress is not known. */
.page-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 0;
    height: 3px;
    background-color: var(--primaryColorDark);
    opacity: 0;
    pointer-events: none;
}

.page-loading .page-loading-bar {
    width: 85%;
    opacity: 1;
    transition: width 4s cubic-bezier(0.1, 0.6, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* Custom Buttons */

.custom-delete-property-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #dc3545;
}

.custom-delete-property-button i {
    font-size: 25px;
}

.custom-delete-property-button i:hover {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.custom-button {
    background-color: var(--primaryColor);
    color: #fff;
    font-weight: bold;
    padding: 10px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-button:hover {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s all;
}

.custom-button:active {
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.05s;
}

/* Busy / locked state set by the double-submit guard in site.js. Covers the
   div-style custom-buttons (which cannot use the disabled attribute) as well as
   any disabled submit button so the theme reflects the in-flight state. */
.custom-button.is-submitting,
.custom-button:disabled,
.custom-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-button i {
    margin-left: 10px;
    font-size: 15px;
}

.custom-button.no-text-button i {
    margin-left: unset;
    text-align: center;
    height: 16px;
    width: 16px;
    font-size: 18px;
}

td button.custom-button.no-text-button i {
    font-size: 14px;
}

.custom-button-delete {
    background-color: #dc3545;
    color: #fff;
}

.custom-table-copy-button {
    background-color: transparent;
    border: none;
    transition: 0.3s all;
    display: inline-block;
    margin-left: auto;
    white-space: nowrap;
}

.custom-table-copy-button i {
    font-size: 14px;
    color: var(--primaryColor) !important;
}

/* Custom Input Fields */

.form-group {
    margin-top: 8px;
}

.form-group .vertical-resize {
    resize: vertical;
}

.form-group label {
    color: var(--primaryColor);
    font-weight: bold;
}

.form-control.custom-input {
    border: none;
    border-bottom: 3px solid var(--primaryColor);
    outline: none;
    padding: 8px 10px 8px 10px;
    font-size: 16px;
    color: #333;
    border-top: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-radius: 3px;
    caret-color: var(--secondaryColor);
    cursor: pointer;
}

.form-control.custom-input:focus {
    color: var(--secondaryColor);
    border-bottom: 3px solid var(--primaryColor);
    border-color: var(--primaryColor) !important;
    box-shadow: none;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.search-container {
    position: relative;
    display: inline-block;
}

.search-input {
    border: none;
    border-bottom: 3px solid var(--primaryColor);
    outline: none;
    padding: 8px 30px 8px 10px;
    font-size: 16px;
    color: #333;
    border-top: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-radius: 3px;
    transition: 0.3s all;
    caret-color: var(--secondaryColor);
}

.search-input:hover {
    transition: 0.3s all;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.search-input::placeholder {
    color: var(--secondaryColor);
}

.search-input:focus {
    border-bottom: 3px solid var(--primaryColor);
}

.search-input:focus::placeholder {
    color: transparent;
}

.search-input:focus + .search-icon,
.search-icon {
    color: var(--primaryColor);
}

.search-icon {
    position: absolute;
    right: 10px;
    bottom: 8px;
    pointer-events: none;
    margin-bottom: 6px;
}

/* Custom dropdown */

.custom-dropdown {
    color: var(--secondaryColor);
    border: none;
    border-bottom: 3px solid var(--primaryColor);
    outline: none;
    font-size: 16px;
    border-top: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-radius: 3px;
    transition: 0.3s all;
    appearance: none;
    background-color: white;
    position: relative;
    height: 44px !important;
    cursor: pointer;
    min-width: min(280px, 100%);
    text-align: left;
    padding-right: 35px;
    width: 100%;
}

.custom-dropdown-container {
    position: relative;
}

/* A filter on the row of a table's search box sizes its dropdowns itself, so the usual minimum
   width would push them over the fields next to them. */
.compact-filter .custom-dropdown {
    min-width: 0;
}

.custom-dropdown-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--secondaryColor);
    font-size: 16px;
    transition: transform 0.2s ease-in-out;
    transform-origin: center center;
    display: inline-block;
}

.form-control.custom-dropdown:focus + .custom-dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
}

.custom-dropdown[aria-expanded="true"] .custom-dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
}

.form-control.custom-dropdown:hover,
.form-control.custom-dropdown:focus {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    outline: none;
}

.form-control.custom-dropdown:focus-visible {
    outline: none;
}

.form-control.custom-dropdown option {
    color: var(--secondaryColor);
}

/* Credentials */

.custom-dropdown-box {
    border-top: 3px solid var(--primaryColor);
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    border-radius: 3px;
    margin-bottom: 16px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.custom-dropdown-box-content {
    display: none;
    padding: 10px;
    background-color: #fff;
    border-radius: 3px;
    overflow-x: auto;
}

.custom-dropdown-box-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--secondaryColor);
    cursor: pointer;
    padding: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px;
    background-color: #fff;
    border-radius: 3px;
}

.custom-dropdown-box-header .fa-caret-down {
    color: var(--secondaryColor);
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    background: var(--primaryColor, #333);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    transition: none;
}

.copy-toast.show {
    animation: toast-in-out 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes toast-in-out {
    0%   { opacity: 0; transform: translateX(-50%) translateY(1rem) scale(0.95); }
    15%  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    85%  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(1rem) scale(0.95); }
}

.modal-body .clipboard-message {
    padding-bottom: 10px;
}

#totpCode {
    font-weight: bold;
}

/* TODO: Fix small buttons icons in credentials table*/

.custom-button small-button i {
}

/* Verlof / Verloven: the leave request form */

.leave-field-error {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-danger);
}

.leave-calendar {
    max-width: 100%;
}

.leave-calendar .flatpickr-calendar.inline {
    box-shadow: none;
    border: 1px solid #dee2e6;
}

/* Days of the neighbouring months keep their cell, so every date stays under its weekday. */
.leave-calendar .flatpickr-day.hidden {
    display: inline-block !important;
    visibility: hidden;
}

.leave-calendar .flatpickr-day.leave-cal-off {
    color: #646b71;
    text-decoration: line-through;
}

.leave-calendar .flatpickr-day.leave-cal-booked {
    position: relative;
}

.leave-calendar .flatpickr-day.leave-cal-booked::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background: #e0a800;
    border-radius: 50%;
}

.leave-calendar .flatpickr-day.selected,
.leave-calendar .flatpickr-day.startRange,
.leave-calendar .flatpickr-day.endRange,
.leave-calendar .flatpickr-day.selected:hover,
.leave-calendar .flatpickr-day.startRange:hover,
.leave-calendar .flatpickr-day.endRange:hover {
    color: #fff;
    background: var(--primaryColor);
    border-color: var(--primaryColor);
}

.leave-calendar .flatpickr-day.inRange {
    background: #e3f3f1;
    border-color: #e3f3f1;
    box-shadow: -5px 0 0 #e3f3f1, 5px 0 0 #e3f3f1;
}

.leave-calendar .flatpickr-day.startRange + .endRange:not(:nth-child(7n+1)),
.leave-calendar .flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)) {
    box-shadow: -10px 0 0 var(--primaryColor);
}

/* Side by side, flatpickr draws only the weeks a month needs (four to six). Room for six keeps the
   calendar the same height in every month. */
.leave-calendar:not(.leave-calendar-single) .dayContainer {
    min-height: 240px;
    align-content: flex-start;
}

/* One month that takes the width of the card instead of flatpickr's fixed 308 pixels. */
.leave-calendar-single .flatpickr-calendar.inline,
.leave-calendar-single .flatpickr-rContainer,
.leave-calendar-single .flatpickr-days,
.leave-calendar-single .dayContainer {
    width: 100% !important;
    min-width: 0;
    max-width: none;
}

.leave-calendar-single .flatpickr-weekdaycontainer,
.leave-calendar-single .dayContainer {
    display: flex;
}

.leave-calendar-single .flatpickr-day {
    flex-basis: 14.2857%;
    max-width: none;
    height: 2.75rem;
    line-height: 2.75rem;
}

.leave-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0.75rem 0 0;
    padding: 0;
    color: var(--bs-secondary-color);
    list-style: none;
}

.leave-calendar-legend li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.leave-legend-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
    border-radius: 50%;
}

.leave-legend-selected {
    background: var(--primaryColor);
}

.leave-legend-off {
    color: #646b71;
    text-decoration: line-through;
    border: 1px solid #dee2e6;
}

.leave-legend-booked {
    width: 0.5rem;
    height: 0.5rem;
    margin: 0 0.375rem;
    background: #e0a800;
}

/* Days: one row per day, grouped by week. */
.leave-week + .leave-week {
    margin-top: 1rem;
}

.leave-week-title {
    margin: 0;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    border-bottom: 1px solid #dee2e6;
}

.leave-day {
    display: grid;
    grid-template-columns: 8.5rem auto auto 4.5rem;
    justify-content: start;
    align-items: center;
    gap: 0.5rem 1.25rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f1f2;
}

.leave-day-controls {
    display: contents;
}

.leave-day-name {
    display: flex;
    flex-direction: column;
    font-weight: 600;
}

.leave-day-note {
    font-size: 0.85rem;
    font-weight: normal;
    color: var(--bs-secondary-color);
}

.leave-day-times {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leave-day-times .leave-time {
    width: 4.75rem;
    text-align: center;
}

.leave-day-hours {
    font-weight: 600;
    white-space: nowrap;
}

.leave-day-switch {
    grid-column: 2 / -1;
    margin: 0;
}

/* Once a day off is switched on, its controls take the first line like any other day. */
.leave-day-off:not(.leave-day-excluded) .leave-day-switch {
    grid-row: 2;
}

.leave-day-excluded .leave-day-name,
.leave-day-holiday .leave-day-name,
.leave-day-message {
    color: var(--bs-secondary-color);
}

.leave-day-holiday .leave-day-name span:first-child,
.leave-day-excluded .leave-day-name span:first-child {
    font-weight: normal;
}

.leave-day-message {
    grid-column: 2 / -1;
    font-size: 0.875rem;
}

.leave-day-error {
    grid-column: 2 / -1;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-danger);
}

.leave-days-empty {
    margin: 0.5rem 0 0;
    color: var(--bs-secondary-color);
}

/* Summary: stays in view next to the form. */
.leave-summary {
    position: sticky;
    top: 1rem;
}

.leave-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f1f2;
}

.leave-summary-row:last-child {
    border-bottom: 0;
}

.leave-summary-row dt {
    font-weight: inherit;
}

.leave-summary-row dd {
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.leave-mobile-bar {
    display: none;
}

/* HR's list of requests: a deviation from the schedule reads under the duration, and the approve and
   reject buttons stay at the right edge when the table is wider than the screen. */
.leave-deviation-note {
    max-width: 15rem;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #8a5300;
    white-space: normal;
}

.leave-requests-table tbody .actions-column {
    position: sticky;
    right: 0;
    z-index: 1;
    background-color: var(--bs-table-bg, #fff);
    border-left: 1px solid #f0f1f2;
}

@media (max-width: 991.98px) {
    .leave-summary {
        position: static;
    }

    .leave-summary-submit {
        display: none;
    }

    /* Stays at the bottom of the screen; the script reserves its height so it never covers the focus. */
    .leave-mobile-bar {
        position: sticky;
        bottom: 0;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.6rem 0.75rem;
        background: #fff;
        border-top: 1px solid #dee2e6;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    }

    .leave-mobile-bar .custom-button {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .leave-day {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "name hours"
            "switch switch"
            "presets presets"
            "times times"
            "message message"
            "error error";
    }

    .leave-day-name {
        grid-area: name;
    }

    .leave-day-hours {
        grid-area: hours;
        text-align: right;
    }

    .leave-day-switch,
    .leave-day-off:not(.leave-day-excluded) .leave-day-switch {
        grid-area: switch;
    }

    .leave-day-presets {
        grid-area: presets;
    }

    .leave-day-times {
        grid-area: times;
    }

    .leave-day-message {
        grid-area: message;
    }

    .leave-day-error {
        grid-area: error;
    }
}

.status-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
}

/* approved */
.status-icon.approved {
    background-color: #28a745;
}

/* pending */
.status-icon.pending {
    background-color: #fd7e14;
}

/* rejected*/
.status-icon.rejected {
    background-color: #dc3545;
}

button.status-icon.approved {
    background-color: #28a745;
    border: none;
}

button.status-icon.rejected {
    background-color: #dc3545;
    border: none;
}

/* --- Tooltip custom styling --- */
.tooltip-inner {
    background-color: #fff !important;
    color: var(--secondaryColor) !important;
    border-radius: 3px !important;
    border-bottom: 3px solid var(--primaryColor) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    max-width: 400px !important;
    padding: 0.4rem 0.6rem !important;
    text-align: left;
}

.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,
.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--primaryColor) !important;
}

.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,
.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: var(--primaryColor) !important;
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--primaryColor) !important;
}

.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--primaryColor) !important;
}

.tooltip.show {
    opacity: 1.0 !important;
}

/* Leave tooltip */

.verlof-tooltip-header,
.verlof-tooltip-dagen-text {
    color: var(--primaryColor);
    font-weight: bold;
}

.verlof-tooltip-dag {
    margin-top: 5px;
}

.budget-container {
    background: #fff;
    border-radius: 3px;
    padding: 10px 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    font-size: 16px;
    min-width: min(380px, calc(100vw - 2rem));
}

.fc-day-other .fc-daygrid-event-harness {
    display: none;
}

.fc-day-other .fc-daygrid-more-link {
    display: none !important;
}

.fc-daygrid-day-frame.fc-scrollgrid-sync-inner {
    min-height: 106px;
}

.budget-header {
    color: var(--primaryColor);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.budget-header .numbers {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.custom-button-tooltip {
    background-color: transparent;
    border: none;
    padding: 0;
    margin-left: 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.custom-button-tooltip .info-icon {
    color: var(--primaryColor);
    font-size: 18px;
}

.accordion-content {
    font-size: 0.85rem;
}

.details-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primaryColor);
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.expiring-item {
    color: var(--secondaryColor);
    margin: 0.25rem 0;
}

/* Verlof / Verloven | Calendar */
#calendar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;
    height: auto;
}

.fc-daygrid-month {
    font-size: 0.65rem;
    border-radius: 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fc .fc-daygrid-event {
    margin-top: 2px;
}

.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end) {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    border-top-left-radius: 3px;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: var(--primaryColor);
}

.fc .fc-daygrid-day.public-holiday {
    background-color: #e4f7ee;
}

.fc-daygrid-day-top:has(.holiday-label) > .fc-daygrid-day-number,
.fc-daygrid-day-top:has(.holiday-label) > .holiday-label {
    color: var(--secondaryColor);
}

.fc-daygrid-day:not(.fc-day-other) {
    background-color: #fff;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: #fff;
    font-weight: bold;
}

.fc .fc-col-header-cell-cushion {
    color: white;
    font-weight: 600;
    font-size: 0.65rem;
}

.fc .fc-button {
    background-color: var(--primaryColor);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 10px;
    box-shadow: none;
}

.fc .fc-button:hover {
    background-color: #008c7a;
}

.fc .fc-daygrid-month-header {
    background-color: var(--secondaryColor);
    color: white;
    text-align: center;
    padding: 4px 0;
    font-weight: bold;
    font-size: 0.95em;
}

.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    min-height: 51px;
}

.fc-daygrid-day a {
    color: var(--secondaryColor);
}

.fc-holiday-event {
    font-size: 9px;
}

.fc-event {
    cursor: pointer;
}

.fc .fc-popover {
    z-index: 998;
}

.fc-popover.fc-more-popover {
    border-radius: 3px;
}

.fc-theme-standard .fc-popover-header {
    background-color: var(--primaryColor);
    border-radius: 3px 3px 0px 0px;
}

.fc-theme-standard .fc-popover {
    border: none;
}

.fc-popover-header span {
    color: #fff;
    font-weight: bold;
    opacity: 1 !important;
}

.fc-popover-body {
    border-bottom: 3px var(--primaryColor) solid;
    border-radius: 0px 0px 3px 3px;
}

.leave-request-pending.my-leave {
    background-color: #3c93e8;
    border-color: #3c93e8;
    color: white !important;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.3) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 75%, transparent 75%, transparent);
    background-size: 10px 10px;
}

a.fc-event.fc-event-start.fc-event-future.leave-request-pending.my-leave.fc-daygrid-event.fc-daygrid-block-event.fc-h-event {
    margin-right: 2px;
}

a.fc-event.fc-event-end.fc-event-future.leave-request-pending.my-leave.fc-daygrid-event.fc-daygrid-block-event.fc-h-event {
    margin-left: 2px;
}

.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start) {
    border-radius: 3px;
}

.fc-direction-ltr .fc-popover-body .fc-daygrid-event.fc-event-start {
    margin-left: 0px !important;
}

.fc-day-today .fc-daygrid-more-link {
    color: #fff !important;
}

.fc .fc-daygrid-day.fc-day-today.public-holiday {
    background-color: var(--primaryColor) !important;
}

.fc .fc-daygrid-day.fc-day-today.public-holiday .fc-daygrid-day-top > .fc-daygrid-day-number,
.fc .fc-daygrid-day.fc-day-today.public-holiday .fc-daygrid-day-top > .holiday-label {
    color: #fff !important;
}

.fc .fc-daygrid-day.fc-day-today.public-holiday .fc-daygrid-more-link {
    color: #fff !important;
}

.leave-request-approved.my-leave {
    background-color: #3c93e8;
    border-color: #3c93e8;
}

.leave-request-approved.colleague-leave {
    background-color: #FFA500;
    border-color: #FFA500;
    color: white !important;
}

.leave-request-pending.colleague-leave {
    background-color: #FFA500;
    border-color: #FFA500;
    color: white !important;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.3) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 75%, transparent 75%, transparent);
    background-size: 10px 10px;
}

.fc-event-title {
    font-weight: bold;
}

.fc-daygrid-day-top {
    align-items: center;
}

span.holiday-label {
    color: #2b6e4f;
    font-size: 7px;
    padding: 4px 4px 4px 4px;
}

.fc .fc-daygrid-day-number {
    margin-left: auto;
}

/* FullCalendar fades the days of the neighbouring months to a grey that is hard to read. They keep a lighter
   colour than the days of the month itself, but one that can be read. */
.fc .fc-day-other .fc-daygrid-day-top {
    opacity: 1;
}

.fc .fc-day-other .fc-daygrid-day-number {
    color: var(--bs-secondary-color);
}

/* Totp modal popup */

div#totpModal {
    padding-right: unset !important;
}

.modal-content {
    border: none;
    border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.modal-header {
    height: 45px;
    justify-content: space-between;
    background-color: var(--primaryColor);
    border-radius: 3px 3px 0 0;
}

.modal-title {
    color: #fff !important;
    font-weight: bold;
    font-size: 22px;
}

.progress-bar {
    background-color: #d7d7d7;
}

.modal-close-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

.modal-close-button i {
    color: #fff
}

.custom-modal-copy-button {
    padding: 1px 7px 1px 7px;
    margin-left: 10px;
}

.custom-modal-copy-button i {
    font-size: 12px;
}

/* Projecten */

select#DomainRoleIds option:checked {
    background-color: var(--primaryColor);
    color: #fff;
}

.form-control:focus,
.form-control.custom-dropdown:focus {
    outline: none;
    box-shadow: none;
}

.form-control:focus {
    border-bottom: 3px solid var(--primaryColor);
    border-top: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

select#UserId option:disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    position: relative;
}

select#UserId {
    cursor: pointer;
}

select#UserId option:hover:disabled {
    background-color: #e0e0e0;
}

/* Custom dropdown */

.form-control.custom-dropdown {
    display: flex;
    align-items: center;
}

ul.dropdown-menu.show {
    padding: 10px;
}

.dropdown-menu input:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

.form-check-input {
    border-color: #dee2e6;
    outline: none;
}

.form-check-input:focus-visible {
    outline: none;
}

.form-check-input:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.form-check-input:checked {
    border-color: #dee2e6;
    background-color: var(--primaryColor);
    color: #fff;
}

/* Validation */

.custom-validation-summary-container {
    display: inline-block;
    padding: 5px 10px 5px 0px;
    border-radius: 3px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.custom-validation-summary-error-message {
    color: var(--secondaryColor);
    margin-left: 5px;
}

.warning-icon-container {
    color: #fff;
    background-color: #f71111;
    padding: 5px 7px 6px 10px;
    border-radius: 3px 0px 0px 3px;
}

/* Status-specific colors */

.badge.submitted {
    background-color: #17a2b8;
}

.badge.pending {
    background-color: #ffc107;
}

.badge.disapproved {
    background-color: #dc3545;
}

.badge.processed {
    background-color: var(--primaryColor);
}

.badge.closed {
    background-color: var(--secondaryColor);
}

.badge.badge-danger {
    background-color: #dc3545;
}

.text-strikethrough,
.text-strikethrough td,
.text-strikethrough .badge {
    text-decoration: line-through;
    color: #767676 !important;
    border-color: #d3d3d3;
}

/* Projecten */

.badge {
    text-overflow: ellipsis;
    cursor: default;
}

.badge-primary {
    color: #fff;
    background-color: #007bff;
}

.badge-pill {
    padding-right: .6em;
    padding-left: .6em;
    border-radius: 10rem;
}

.contact ul {
    list-style: none;
}

.contact ul li {
    clear: both;
    min-height: 20px;
    margin-bottom: 15px;
}

.badge.badge-warning.has-priority {
    background-color: #ff8c00;
    color: #fff;
}

.badge-success {
    background-color: #00af99;
}

.list-group.dashboard {
    float: unset;
    margin: auto auto 40px auto;
    height: unset;
    width: 100%;
    max-width: 1100px;
}

.list-group.support-bundle {
    background: #fff;
    border-radius: 3px !important;
    margin-bottom: 24px;
    min-height: 440px;
}

.list-group {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    box-shadow: 0 0 .875rem 0 rgba(41, 48, 66, .05);
}

.list-group-item {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    display: block;
    padding: .75rem 1.25rem;
    margin-bottom: -1px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .125);
}

.list-group-item:last-child {
    border-radius: 3px;
}

h1.flip-counter {
    display: inline;
    background: #fff !important;
    padding: 10px !important;
    border-radius: 5px;
    border: 1px solid #d3d3d3;
    line-height: 60px !important;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .1);
    position: relative;
}

.list-group.support-bundle p.flip-counter {
    min-width: 75px;
    display: inline-block;
    text-align: center;
    border: none !important;
    box-shadow: none !important;
    border-radius: 5px;
    padding: 5px;
}

.list-group.support-bundle .list-group-item {
    container-type: inline-size;
}

/* Project tiles of the dashboards: as many as fit at 15rem or wider, at most three in a row. They size by the
   space beside the sidebar, not by the window. */
.dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(15rem, calc((100% - 3rem) / 3))), 1fr));
    column-gap: 1.5rem;
}

/* The ticket counts of a project tile: four in a row when the tile has room, two by two when it has not. */
.ticket-counters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.list-group.support-bundle .ticket-counters p.flip-counter {
    min-width: 0;
    margin: 0;
}

@container (max-width: 24rem) {
    .ticket-counters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

p.flip-counter:before {
    position: absolute;
    content: "";
    left: 0;
    top: 50%;
    right: 0;
    border-top: 1px solid;
    border-color: #d3d3d3;
}

p.flip-counter {
    border: 1px solid #d3d3d3 !important;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .1) !important;
    position: relative;
}

.list-group.dashboard .pie-chart {
    text-align: center;
    float: left;
    padding: 30px;
    width: calc(50% - 5px);
}

.list-group.dashboard .pie-chart canvas {
    max-height: 280px;
}

/* The two charts stand side by side while there is room for both, and below each other on a phone. */
.list-group.dashboard {
    container-type: inline-size;
}

@container (max-width: 40rem) {
    .list-group.dashboard .pie-chart {
        float: none;
        width: 100%;
        padding: 1rem 0;
    }
}

.list-group.support-bundle p.flip-counter.count-0 {
    border: 1px solid #d3d3d3;
    color: #767676; /* faded for zero, still readable */
}

.list-group.support-bundle p.flip-counter.active {
    background-color: #eaf6f4;
    border: 2px solid var(--primaryColor) !important;
    color: var(--primaryColor);
    font-weight: bold;
}

div.is-wish .fa-heart {
    color: #28a745;
    margin-left: 5px;
}

div.has-priority .fa-flag {
    color: #dc3545;
    margin-left: 5px;
}

div.on-hold .fa-pause-circle {
    color: #007bff;
    margin-left: 5px;
}

div.has-priority.high {
    border-top: 3px solid #ff8c00 !important;
}

.float-right {
    float: right !important;
}

div.on-hold, div.on-hold:hover, div.on-hold:active, div.on-hold :focus {
    background: repeating-linear-gradient(130deg, #fff, #fff 3px, #f4f7fb 3px, #f4f7fb 6px);
}

.table.table-draggable-cards-tickets {
    --bs-table-bg: transparent;
}

td.draggable-cards.text-center {
    border-bottom: none !important;
}

.badge.is-wish {
    background-color: #28a745;
}

div.on-hold .custom-button:focus {
    background: var(--primaryColor) !important;
}

.list-group .list-group-item {
    border: none;
}

.list-group .list-group-item:hover, .list-group .list-group-item-action:hover {
    background-color: #fff !important;
}

/* Progress */

select.form-control.selectpicker {
    padding: 8px 10px 8px 10px;
    border-bottom: 3px solid var(--primaryColor);
    border-radius: 3px;
}

.disabled {
    cursor: not-allowed !important;
}

.only-icon-button-small {
    color: var(--primaryColor);
    background-color: transparent;
    border: none;
    font-size: 14px;
}

.only-icon-button {
    color: var(--primaryColor);
    background-color: transparent;
    border: none;
    font-size: 20px;
}

.only-icon-button:hover {
    cursor: pointer;
}

.cursor-pointer {
    cursor: pointer !important;
}

.contract-row.expired td {
    background-color: #e8e8e6 !important;
    font-style: italic;
}

.contract-row.future td {
    background-color: rgba(0, 175, 153, 0.5) !important;
    color: #fff;
    font-weight: bold;
}

.btn:first-child:active {
    border: none;
}

.label-text {
    color: var(--primaryColor);
    font-weight: bold;
}

/* Footer */
footer {
    flex-shrink: 0;
    border-top: 3px solid var(--primaryColor);
}

footer p {
    padding: 10px 10px 10px 50px;
    margin: 0px;
    color: var(--secondaryColor);
}

/* The budget list closes the project details block, with a rule to separate it from the facts above. */
/* A detail card carries three kinds of text: a marker for a block or a column, a label for a single field,
   and the content itself. Case, weight and colour separate them, so the card needs two sizes: 0.75rem for
   the markers and 0.875rem for everything a reader actually reads. */
.detail-marker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-weight: 600;
    color: var(--bs-secondary-color);
}

.detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
}

/* A long form stays one card and gets sections instead of a stack of boxes: a hairline and a marker
   separate them, so the whole thing still reads as one thing you submit at once. */
.form-section + .form-section {
    border-top: 1px solid #dee2e6;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.project-budget-zone {
    border-top: 1px solid #dee2e6;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* One row per support bundle. A project can carry ten of them, which as circles would be five rows of
   150px. The list is the grid and the rows hand their cells to it with display: contents, so every figure,
   date and pencil sits in the same column all the way down whatever a row contains. Numbers are tabular
   for the same reason. */
.budget-list {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) 12rem 5rem 5rem 6.5rem 6.5rem 1.5rem;
    align-items: center;
    gap: 0.4rem 0.75rem;
    max-width: 60rem;
}

.budget-row {
    display: contents;
}

/* Column headers are markers, same treatment as the block markers on the card. */
.budget-row-head > div {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--bs-secondary-color);
    font-weight: 600;
}

.budget-cell-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
}

.budget-cell-number {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-size: 0.875rem;
}

.budget-cell-date {
    white-space: nowrap;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    color: var(--bs-secondary-color);
}

/* The cell also carries .actions-column, which owns the colour, the hover and the cursor of an icon-only
   control, including the ones that open a dialog and so have no href. */
.budget-cell-action {
    text-align: right;
}

/* progress.css claims .progress for the circle on the dashboards, so a budget row brings its own bar. */
.budget-bar {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
}

/* Same colour scale as that circle, which also reads the remaining share: green, amber under a quarter
   left, orangered under a tenth. A spent budget fills the bar in red, since an empty grey bar says nothing
   about being over. */
.budget-bar > span {
    display: block;
    height: 100%;
    background-color: rgb(21, 213, 143);
    transition: width 0.4s ease, background-color 0.4s ease;
}

.budget-bar.low > span {
    background-color: #ffb43e;
}

.budget-bar.critical > span {
    background-color: orangered;
}

.budget-bar.over > span {
    background-color: #dc3545;
}

.budget-toggle {
    border: 0;
    padding: 0;
    background: none;
    font-size: 0.875rem;
    color: var(--secondaryColor);
}

.budget-toggle:hover,
.budget-toggle:focus {
    color: var(--primaryColor);
    text-decoration: underline;
}

/* The budget list takes its columns from the width of the project card, which depends on the window
   and on whether the sidebar is folded, not from the window alone. */
.project-budget-zone {
    container-type: inline-size;
}

@container (max-width: 50rem) {
    /* Too narrow for seven columns: the bar and the dates step back and the figures stay. */
    .budget-list {
        grid-template-columns: minmax(6rem, 1fr) 4.5rem 4.5rem 1.5rem;
    }

    .budget-list .budget-bar,
    .budget-list .budget-cell-bar-head,
    .budget-list .budget-cell-date {
        display: none;
    }
}

/* DataTables.net styling*/
/* A table that is wider than its card scrolls inside the card instead of widening the page. Tables with
   scrollX already scroll in their own body. */
.dt-layout-table > .dt-layout-cell {
    overflow-x: auto;
}

.table-responsive {
    min-height: 400px; /* Prevents the footer from jumping up and down */
}

/* Until DataTables has taken the rows over, the browser skips laying them out (with a long list that is most
   of the load time) and keeps the space the table is about to take, so the page does not jump. */
.datatable-init:not(.dataTable) {
    display: block;
    content-visibility: hidden;
    contain-intrinsic-size: auto 600px;
}

.datatable-init.table-ready {
    visibility: visible;
    max-height: none;
    display: table;
    transition: opacity 0.3s ease-in;
}

.table-hyperlink {
    display: inline-block;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-hyperlink:hover {
    color: var(--primaryColor);
    text-decoration: underline;
    transition: 0.3s all;
}

.table-hyperlink i {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-hyperlink:hover i {
    color: var(--primaryColor) !important;
    transition: 0.3s all;
}

.table-hyperlink:active {
    transform: scale(0.95);
    transition: all 0.05s;
}

.actions-column {
    white-space: nowrap;
    vertical-align: middle;
}

.actions-column .btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0 2px;
    color: var(--secondaryColor);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.actions-column .btn-link:hover {
    color: var(--primaryColor);
    background-color: rgba(0, 0, 0, 0.05); /* Subtle background pop */
    transform: translateY(-1px);
}

.actions-column .btn-link i {
    width: 1.25em; /* Forces FA to occupy a consistent width */
    text-align: center;
}

.dt-length .dt-input {
    margin-right: 8px;
    padding: 4px 8px;
    border: 1px solid var(--primaryColor);
    border-radius: 4px;
}

.dt-length {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
}

thead th {
    background-color: var(--primaryColor) !important;
    color: white !important;
    border-bottom: none;
}

.dt-container .dt-layout-table {
    background-color: #f8f9fa;
}

.dt-paging {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.dt-paging-button {
    border: 1px solid #dee2e6 !important;
    background-color: white !important;
    color: var(--secondaryColor) !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

/*.dt-paging-button:hover:not(.current):not(.disabled) {
    background-color: var(--secondaryColor) !important; 
    border-color: var(--primaryColor) !important;
    color: var(--primaryColor) !important;
}*/

.dt-paging-button.current {
    background-color: var(--primaryColor) !important;
    border-color: var(--primaryColor) !important;
    color: white !important;
    font-weight: 600;
}

.dt-paging-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #fcfcfc !important;
    color: black !important;
    border-color: #e9ecef !important;
}

.dt-paging-button:focus:not(:focus-visible) {
    outline: none;
}

/* Change the color of all sort arrows (Inactive state) */
.dt-column-order::before,
.dt-column-order::after {
    color: white !important;
    opacity: 0.5 !important;
}

/* Change the color of the active sort arrow */
th.dt-ordering-asc .dt-column-order::before,
th.dt-ordering-desc .dt-column-order::after {
    color: white !important;
    opacity: 1 !important;
}

/* Keep the sort arrow on the same side (right of the label) for every column. DataTables flips
   numeric/date and right-aligned columns to row-reverse, putting the arrow on the left, which looks
   inconsistent next to text columns. Forcing row gives a uniform arrow position across the header. */
table.dataTable thead > tr > th div.dt-column-header,
table.dataTable thead > tr > td div.dt-column-header,
table.dataTable tfoot > tr > th div.dt-column-footer,
table.dataTable tfoot > tr > td div.dt-column-footer {
    flex-direction: row !important;
}

/* Targets a button inside a form, inside a table cell */
table tr td form button {
    background: none;
    border: none;
    padding: 0.25rem;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    color: var(--secondaryColor);
    transition: color 0.15s ease-in-out;
}

table tr td form button:hover {
    color: var(--primaryColor);
    text-decoration: underline;
}

table tr td form {
    display: inline;
}

/* Hover effect */
.actions-column a.delete-link {
    color: var(--secondaryColor);
}

.actions-column a:hover {
    color: var(--primaryColor);
    opacity: 0.8;
}

.actions-column a.delete-link:hover {
    color: #dc3545;
}

.actions-column a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--secondaryColor);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
    cursor: pointer;
}

/* Bootstrap reboot's a:not([href]):not([class]) (specificity 0,2,1) otherwise wins
   over .actions-column a (0,1,1) and forces color: inherit on icon-only anchors
   that use data-url + onclick (no href, no class). Re-assert our colors with
   higher-specificity selectors so dynamicModal triggers look identical to
   asp-action anchors. */
.actions-column a:not([href]):not([class]) {
    color: var(--secondaryColor);
}

.actions-column a:not([href]):not([class]):hover {
    color: var(--primaryColor);
    opacity: 0.8;
}

.actions-column a i {
    font-size: 14px;
    width: 1.25em;
    text-align: center;
    transition: 0.3s all;
}

.actions-column a i:hover {
    transition: 0.3s all;
}

.actions-column a:active {
    transform: scale(0.95);
    transition: all 0.05s;
}

div.dt-container .dt-length .dt-input {
    border: none;
    border-top: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-bottom: 3px solid var(--primaryColor);
    border-radius: 3px;
    transition: 0.3s all;
}

div.dt-container .dt-length .dt-input:focus-visible {
    outline: none;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transition: 0.3s all;
}

div.dt-paging {
    margin-top: 0px;
}

div.dt-container .dt-search {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

div.dt-container .dt-search input.dt-input {
    border: none;
    border-bottom: 3px solid var(--primaryColor);
    outline: none;
    padding: 8px 10px 8px 10px;
    width: 250px;
    font-size: 16px;
    color: #333;
    border-top: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-radius: 3px;
    transition: 0.3s all;
    caret-color: var(--secondaryColor);
    /* Magnifying glass on the LEFT */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23aaa' d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 14px;
    padding-left: 32px !important;
    padding-right: 32px !important;
}

/* Position thead "X" stop clear search bar text */
div.dt-container .dt-search .search-clear-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #aaa;
    cursor: pointer;
    z-index: 5;
    background: transparent;
}

div.dt-container .dt-search input.dt-input:focus {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

html div.dt-container .dt-paging .dt-paging-button {
    min-width: 35px;
}

html div.dt-container .dt-paging .dt-paging-button.disabled:hover {
    background-color: transparent !important;
}

html div.dt-container .dt-paging .dt-paging-button.current {
    color: #fff !important;
}

html div.dt-container .dt-paging .dt-paging-button.current:hover {
    color: #fff !important;
    background-color: var(--primaryColor) !important;
}

html div.dt-container .dt-paging .dt-paging-button:active {
    box-shadow: none;
    background: none;
}

html div.dt-container .dt-paging .dt-paging-button:hover {
    background: none;
    background-color: rgba(0, 175, 153, 0.7) !important;
}

/*Remove standard "X" from input fields*/
/* Chrome, Safari, Edge, Opera */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
}

div.dt-search i.fa-solid.fa-magnifying-glass {
    color: var(--primaryColor);
    margin-right: 8px;
}

div.dt-container .dt-scroll-head table thead tr th:first-child {
    border-top-left-radius: 3px !important;
}

div.dt-container .dt-scroll-head table thead tr th:last-child {
    border-top-right-radius: 3px !important;
}

div.ts-dropdown-content {
    background-color: #fff;
    border-radius: 3px;
}

.tom-select.single.focus .ts-control.custom-dropdown {
    box-shadow: none !important;
}

.ts-control.custom-dropdown {
    border: 1px solid #ced4da !important;
    border-radius: 3px !important;
    border-bottom: 3px solid var(--primaryColor) !important;
    background-color: white !important;
    min-height: 44px !important;
    box-shadow: none !important;
    background-image: none !important;
    position: relative !important;
    padding-right: 2rem !important;
    transition: border-color 0.15s ease-in-out;
}

.ts-control.custom-dropdown::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    width: 16px;
    height: 12px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 12px;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.ts-wrapper.dropdown-active .ts-control.custom-dropdown::after {
    transform: translateY(-50%) rotate(180deg);
}

.is-invalid {
    border-color: #dc3545 !important;
}

select.ts-hidden-native {
    visibility: hidden !important;
    height: 44px !important;
    overflow: hidden !important;
    position: absolute;
    z-index: -1;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50rem;
    border: 1px solid transparent;
}

    .role-badge.badge-red {
        background-color: #f8d7da;
        color: #842029;
        border-color: #f5c2c7;
    }

    .role-badge.badge-blue {
        background-color: #cfe2ff;
        color: #084298;
        border-color: #b6d4fe;
    }

    .role-badge.badge-green {
        background-color: #d1e7dd;
        color: #0f5132;
        border-color: #badbcc;
    }

    .role-badge.badge-gray {
        background-color: #e2e3e5;
        color: #41464b;
        border-color: #d3d6d8;
    }

    .role-badge.badge-purple {
        background-color: #e2d9f3;
        color: #59359a;
        border-color: #d1c2e9;
    }

    .role-badge.badge-orange {
        background-color: #fff3cd;
        color: #8a4b08;
        border-color: #ffecb5;
    }

    .role-badge.badge-event-blue {
        background-color: #E2EAF4;
        color: #2f5b94;
        border-color: #A4BDDE;
    }

    .role-badge.badge-event-synaxion {
        background-color: #BFE0DC;
        color: #1f5f56;
        border-color: #7EC1B9;
    }

#userAccessTabs .nav-item > .nav-link {
    color: var(--primaryColor);
}

#userAccessTabs .nav-item > .nav-link:hover {
    color: var(--primaryColor);
}

#userAccessTabs .nav-item > .nav-link.active {
    color: var(--secondaryColor);
    font-weight: bold;
}

#leaveRequestTabs .nav-item > .nav-link {
    color: var(--primaryColor);
}

#leaveRequestTabs .nav-item > .nav-link:hover {
    color: var(--primaryColor);
}

#leaveRequestTabs .nav-item > .nav-link.active {
    color: var(--secondaryColor);
    font-weight: bold;
}

tr:target {
    outline: 2px solid var(--primaryColor);
}

.ts-wrapper.dropdown-active .ts-control.custom-dropdown {
    border-color: var(--primaryColor) !important;
}

.ts-wrapper.disabled,
.ts-wrapper.locked {
    cursor: not-allowed !important;
}

.ts-wrapper.disabled *,
.ts-wrapper.locked * {
    pointer-events: none !important;
}

.table tbody tr.tr-inactive td {
    background-color: #dedede !important;
    color: #888 !important;
}

.tr-inactive {
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.tr-inactive a,
.tr-inactive i,
.tr-inactive .badge {
    color: #888 !important;
}

div.card {
    border-radius: 3px;
}

.dt-layout-row {
    margin: 0px 0px 8px 0px !important;
}

.dt-layout-row.dt-layout-table {
    margin-top: 8px !important;
}

p.form-control-plaintext {
    padding: 0px;
}

.ts-wrapper.multi .ts-control > div.item.active {
    color: #343a40;
    background: #efefef
}

.ts-wrapper.tom-select.single .ts-control.custom-dropdown {
    cursor: text;
}

.ts-wrapper.tom-select.single .ts-control input {
    cursor: text;
}

.tom-select.plugin-dropdown_input.focus .ts-dropdown .dropdown-input {
    box-shadow: none;
    border-color: #d0d0d0;
}

.ts-control.custom-dropdown .clear-button {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
    padding: 0 5px;
    line-height: 1;
}

div .ts-control, input.form-control.custom-date-input {
    border-radius: 3px;
    border-bottom: 3px solid var(--primaryColor);
}

.ts-wrapper.focus .ts-control {
    box-shadow: none;
    border: 1px solid var(--primaryColor);
    border-bottom: 3px solid var(--primaryColor);
}

div.ts-control,
input.form-control.custom-date-input {
    min-height: 44px;
}

.ts-dropdown.tom-select.plugin-clear_button.plugin-remove_button.plugin-dropdown_input {
    border-radius: 3px;
}

.search-hidden {
    display: none !important;
}

/* Flatpickr date inputs */
/* Style for the datepicker input */
input.datepicker-display.custom-input,
input.datepicker-display.form-control {
    background-color: #ffffff !important;
    color: #333 !important;
    /* Base64 Icon encoded with #606161 */
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNjQwIj48cGF0aCBmaWxsPSIjNjA2MTYxIiBkPSJNMjE2IDY0QzIyOS4zIDY0IDI0MCA3NC43IDI0MCA4OEwyNDAgMTI4TDQwMCAxMjhMNDAwIDg4QzQwMCA3NC43IDQxMC43IDY0IDQyNCA2NEM0MzcuMyA2NCA0NDggNzQuNyA0NDggODhMNDQ4IDEyOEw0ODAgMTI4QzUxNS4zIDEyOCA1NDQgMTU2LjcgNTQ0IDE5Mkw1NDQgNDgwQzU0NCA1MTUuMyA1MTUuMyA1NDQgNDgwIDU0NEwxNjAgNTQ0QzEyNC43IDU0NCA5NiA1MTUuMyA5NiA0ODBMOTYgMTkyQzk2IDE1Ni43IDEyNC43IDEyOCAxNjAgMTI4TDE5MiAxMjhMMTkyIDg4QzE5MiA3NC43IDIwMi43IDY0IDIxNiA2NHpNMjE2IDE3NkwxNjAgMTc2QzE1MS4yIDE3NiAxNDQgMTgzLjIgMTQ0IDE5MkwxNDQgMjQwTDQ5NiAyNDBMNDk2IDE5MkM0OTYgMTgzLjIgNDg4LjggMTc2IDQ4MCAxNzZMMjE2IDE3NnpNMTQ0IDI4OEwxNDQgNDgwQzE0NCA0ODguOCAxNTEuMiA0OTYgMTYwIDQ5Nkw0ODAgNDk2QzQ4OC44IDQ5NiA0OTYgNDg4LjggNDk2IDQ4MEw0OTYgMjg4TDE0NCAyODh6Ii8+PC9zdmc+") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 12px) center !important;
    /* Increased size */
    background-size: 22px 22px !important;
    padding-right: 45px !important;
}

input.datepicker-display.custom-input:disabled {
    background-image: none !important;
    background-color: #e9ecef !important; /* Grey out when disabled */
    cursor: not-allowed;
}

.flatpickr-prev-month:hover svg path,
.flatpickr-next-month:hover svg path {
    fill: var(--primaryColor) !important;
}

span.flatpickr-day.selected {
    background-color: var(--primaryColor);
    border-color: var(--primaryColor);
}

span.flatpickr-day.today {
    border-color: var(--primaryColor);
    color: var(--primaryColor);
}

span.flatpickr-day.today.selected {
    color: #fff;
}

span.flatpickr-day.today.selected:hover {
    background-color: var(--primaryColor);
    border-color: var(--primaryColor);
}

.flatpickr-prev-month:focus-visible,
.flatpickr-next-month:focus-visible,
.flatpickr-prev-month:focus,
.flatpickr-next-month:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.flatpickr-calendar {
    border-radius: 3px !important;
}

div.alert {
    border-radius: 3px;
}

.custom-button.active {
    background-color: var(--primaryColorDark);
}

.custom-button.disabled {
    background-color: grey;
}

/* Employee project navigation only: between gray and lightgray so the white text stays
   readable. Scoped with .nav-unavailable so the customer-facing navigation is unchanged. */
.custom-button.disabled.nav-unavailable {
    background-color: #b0b0b0;
}

    .btn-white:hover {
        background-color: #f8f9fa;
    }

.table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--bs-secondary-color);
    border-bottom-width: 1px;
}

/* Domain icons arrive from the database as SVG markup with no fixed size, so the page decides how
   large they render. */
.domain-icon svg {
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.15em;
}

/* Rendered markdown, used for source documentation. Sized for a full page while staying contained: a
   long word, a wide table or a pasted json fragment scrolls inside its own block instead of stretching
   the card it sits in. */
.markdown-body {
    overflow-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.6;
}

    .markdown-body > :first-child {
        margin-top: 0;
    }

    .markdown-body > :last-child {
        margin-bottom: 0;
    }

    .markdown-body h1,
    .markdown-body h2,
    .markdown-body h3,
    .markdown-body h4 {
        font-weight: 600;
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--secondaryColor);
    }

    .markdown-body h1 {
        font-size: 1.3rem;
    }

    .markdown-body h2 {
        font-size: 1.15rem;
    }

    .markdown-body h3,
    .markdown-body h4 {
        font-size: 1rem;
    }

    .markdown-body p,
    .markdown-body ul,
    .markdown-body ol {
        margin-bottom: 0.75rem;
    }

    .markdown-body ul,
    .markdown-body ol {
        padding-left: 1.25rem;
    }

    .markdown-body li + li {
        margin-top: 0.15rem;
    }

    .markdown-body a {
        color: var(--primaryColor);
    }

    .markdown-body blockquote {
        border-left: 3px solid #dee2e6;
        color: var(--bs-secondary-color);
        margin: 0 0 0.75rem;
        padding: 0.1rem 0 0.1rem 0.75rem;
    }

    .markdown-body hr {
        margin: 1.25rem 0;
    }

    .markdown-body img {
        max-width: 100%;
    }

    /* Inline code gets a chip; code inside a pre block already sits on the block's background. */
    .markdown-body code {
        background-color: #f1f3f5;
        border-radius: 0.25rem;
        font-size: 0.85em;
        padding: 0.1rem 0.3rem;
    }

    .markdown-body pre {
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 0.25rem;
        margin-bottom: 0.75rem;
        overflow-x: auto;
        padding: 0.75rem;
    }

        .markdown-body pre code {
            background-color: transparent;
            padding: 0;
        }

    .markdown-body table {
        display: block;
        margin-bottom: 0.75rem;
        overflow-x: auto;
        width: 100%;
    }

        .markdown-body table th,
        .markdown-body table td {
            border: 1px solid #dee2e6;
            padding: 0.35rem 0.5rem;
        }

        .markdown-body table th {
            background-color: #f8f9fa;
            font-weight: 600;
        }

/* The access panel of the credential form stays in view while the form beside it scrolls, so the
   effect of every choice on who can see the credential is visible next to that choice. */
@media (min-width: 992px) {
    .credential-access-card {
        position: sticky;
        top: 1rem;
    }
}
