@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('fontello/css/fontello-embedded.css');
@import url('fonts.css'); /* font files + update guide: css/fonts/_intents.md */
@import url('datepicker.css');
@import url('page-header.css');
@import url('card-row.css');
@import url('modal.css');
@import url('pdf-containers.css');

:root {
    --dashboard-grid-gap: 16px;
    --dashboard-grid-height: 64px;
    --dashboard-panel-title-height: 36px;
    --dashboard-panel-tools-width: 80px;
    /*custom colors*/
    --red: red;
    --green: green;
    --pdf-viewer-bg: #737578;
    --page-header-title-font-size: 24px;
    --calendar-event-minute: 1.25px;
    --calendar-event-spacing: 4px;
    --calendar-month-view-day-height: 180px;
    --bs-btn-focus-shadow-rgb: var(--brand-color-rgb);
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);
    --bs-primary-rgb: var(--brand-color-rgb);
}

html, body {
    font-family: 'Figtree', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    overflow: hidden;
    margin: 0; /* Removes default style */
}

@media screen and (max-width: 575.98px) {
    body {
        overflow: auto;
        /*background-color: lightgreen;*/
    }
}

h1:focus {
    outline: none;
}

/**** BRAND COLORS  */
a, .btn-link {
    color: var(--brand-color);
}

    a:hover, .btn-link:hover {
        color: var(--brand-color-dark-50);
    }


.link-primary {
    color: RGBA(var(--brand-color-rgb),var(--bs-link-opacity,1)) !important;
    -webkit-text-decoration-color: RGBA(var(--brand-color-rgb),var(--bs-link-underline-opacity,1)) !important;
    text-decoration-color: RGBA(var(--brand-color-rgb),var(--bs-link-underline-opacity,1)) !important
}

    .link-primary:focus, .link-primary:hover {
        color: RGBA(10,88,202,var(--bs-link-opacity,1)) !important;
        -webkit-text-decoration-color: RGBA(10,88,202,var(--bs-link-underline-opacity,1)) !important;
        text-decoration-color: RGBA(10,88,202,var(--bs-link-underline-opacity,1)) !important
    }

.btn-primary {
    --bs-btn-color: #fff; /* text */
    --bs-btn-bg: var(--brand-color);
    --bs-btn-border-color: var(--brand-color-dark-50);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-color-dark-50);
    --bs-btn-hover-border-color: var(--brand-color-dark-50);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-color-dark-50);
    --bs-btn-active-border-color: var(--brand-color-dark-50);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--brand-color);
    --bs-btn-disabled-border-color: var(--brand-color-dark-50);
}

.form-check-input:checked {
    background-color: var(--brand-color);
    border: 2px solid var(--bs-gray-900);
}

/* Make unchecked radios and checkboxes more visible */
.form-check-input:not(:checked) {
    border: 1px solid var(--bs-gray-600);
}

/* btn-inline should be used in conjuction with btn ie class="btn btn-inline
    the overall effect is that:
    text is not obviously clickable but is
    related icons are coloured
    Text should be rendered inline. 
    There is a hover effect
    It looks nice when rendered within <p class="form-control-plain-text"></p>
*/
.btn-inline {
    padding: 0;
}

    .btn-inline > .icon {
        color: var(--brand-color);
    }

    .btn-inline:hover > .icon {
        color: var(--brand-color-dark-50);
    }

    .btn-inline:hover {
        text-decoration: underline;
    }
/* page links are the pagination navigators*/
.page-link {
    color: var(--brand-color);
    cursor: pointer;
}

    .page-link:hover {
        color: var(--brand-color-dark-50);
    }

.page-item.active .page-link {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
}

.page-item.disabled .page-link {
    border-color: var(--bs-border-color-translucent);
    color: var(--bs-border-color);
    background-color: white;
}

.nav, .nav-link {
    --bs-nav-link-color: var(--brand-color);
    --bs-nav-link-hover-color: var(--brand-color-light-50);
}

.nav-pills {
}

    .nav-pills .nav-link.active, .nav-pills .show > .nav-link {
        background-color: var(--brand-color);
    }

/* nav-link disabled state */
.nav-link.disabled,
.nav-link:disabled {
    color: var(--bs-secondary-color);
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
}

/**** BRAND COLORS END  */
/* ALERT mods */
.alert > dl,
.alert > ol,
.alert > ul {
    margin-bottom: 0em;
}
/* ALERT mods END*/
/**** PLACEHOLDER   */
.form-control::-moz-placeholder {
    color: var(--bs-secondary-color);
    opacity: 0.5;
}

.form-control::placeholder {
    color: var(--bs-secondary-color);
    opacity: 0.5;
}
/*******/
/***btn-light fix (too light/ not visible) */
.btn-light {
    border-color: var(--bs-border-color);
    background-color: var(--bs-tertiary-bg);
}

.btn-check:checked + .btn-light,
.btn-check:checked + .btn-light:hover {
    color: white;
    background-color: var(--brand-color);
    border-color: var(--brand-color-dark-50);
}

.btn-check:active + .btn-light,
.btn-light.active,
.btn-light:active,
.show > .btn-light.dropdown-toggle {
    background-color: var(--bs-tertiary-bg);
}


.btn-check + .btn-light:hover,
.btn-light:hover {
    background-color: color-mix(in srgb, var(--bs-tertiary-bg) 97%, black 3%);
}

.btn-light.disabled, .btn-light:disabled {
    border-color: var(--bs-border-color);
    color: color-mix(in srgb, var(--bs-btn-color) 30%, white 70%);
    background-color: color-mix(in srgb, var(--bs-tertiary-bg) 50%, white 50%);
    opacity: 1;
}
/**END*/
/* for use in highlighting col cells */
.col-link:hover {
    text-decoration: underline;
}


/** btn-xs */
.btn-group-xs > .btn, .btn-xs {
    padding: .15rem .2rem;
    font-size: 0.7rem;
}
/** END btn-xs */

/** short-code */
.short-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.675em;
    width: 2em;
    height: 2em;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1; /* Ensure text is vertically centered */
}

    .short-code-user {
    border-radius: 50%;
}
/** END short-code */
.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    color: #333;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


.blazor-error-ui-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.blazor-error-detail {
    font-family: monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 6rem;
    overflow-y: auto;
    background: rgba(0,0,0,0.07);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    margin-top: 0.25rem;
}

.blazor-error-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.25rem;
}

    .blazor-error-actions .reload,
    .blazor-error-actions .dismiss,
    .blazor-error-actions .copy-error {
        color: #333;
        cursor: pointer;
        font-size: 0.85rem;
        background: none;
        border: none;
        text-decoration: underline;
        padding: 0;
    }


#loading-progress-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    padding-bottom: 10vh; /* pulls visual centre upward */
}

    #loading-progress-indicator .progress-hero {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        #loading-progress-indicator .progress-hero img {
            display: block;
            width: min(600px, 90vw);
            height: auto;
            background-color: var(--brand-color-background);
        }

        #loading-progress-indicator .progress-hero .progress-text {
            margin-top: 0.5rem;
            text-align: center;
            font-size: 0.9rem;
            color: #666;
        }

.linear-progress {
    background: silver;
    width: min(600px, 90vw);
    height: 1rem;
    border-radius: 10rem;
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
}

    .linear-progress:after {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--brand-color);
        transform: scaleX(var(--blazor-load-percentage, 0%));
        transform-origin: left;
        transition: transform 0.5s ease-out;
    }

.login-container {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 40px;
    /* background-color: #f5f5f5; */
    /* height:100%; */
    width: 100%;
    align-content: center;
}

.login-title {
    align-self: center;
    padding-bottom: 20px;
}

.login-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
/*
.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

    .form-signin .checkbox {
        font-weight: 400;
    }

    .form-signin .form-control {
        position: relative;
        box-sizing: border-box;
        height: auto;
        padding: 10px;
        font-size: 16px;
    }

        .form-signin .form-control:focus {
            z-index: 2;
        }

    .form-signin input {
        margin-bottom: 5px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

        .form-signin input[type="password"] {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }
 */
.is-busy {
    opacity: 0.65;
}

.flex-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    /*see: https://stackoverflow.com/questions/39472747/text-overflow-ellipsis-and-flex
        might need min-width:0
    */
}

.flex-ellipsis-start {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl; /* Right-to-left text direction */
    text-align: left; /* Align text to the left */
    min-width: 0;
}

.col-separator {
    border-left: 1px solid #DDD
}

/* modification so that input-group-text with '£' and '%' are the same size*/
.input-group-text {
    min-width: 1ch;
}

.form-button-bar button,
.form-button-bar a {
    margin-right: 4px;
}

.dashboard-container-bg,
.dashboard-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(24, var(--dashboard-grid-height));
    gap: var(--dashboard-grid-gap);
    position: relative;
    width: 100%;
}

@media (max-width: 1024px) {
    .dashboard-container-bg, .dashboard-container, .dashboard-container-preview {
        display: block;
    }

    .dashboard-panel {
        margin-bottom: 8px;
    }
}

.dashboard-container-preview {
    background-color: whitesmoke;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, var(--dashboard-grid-height));
    gap: var(--dashboard-grid-gap);
    position: relative;
    width: 100%;
}

.dashboard-panel-bg {
    background-color: whitesmoke;
}

.dashboard-panel-bg--over {
    background-color: #cfe2ff;
    border: 1px dashed #6ea8fe;
}

.dashboard-panel {
    position: relative;
    border: 1px solid silver;
    border-radius: 4px;
    background-color: white;
    box-shadow: none;
    transition: box-shadow 0.2s ease-in-out;
    min-width: 0;
    overflow: hidden;
}

    .dashboard-panel:hover {
        box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.15);
    }

.dashboard-panel-title {
    cursor: default;
    align-self: stretch;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    line-height: var(--dashboard-panel-title-height);
    padding-left: 12px;
    padding-right: var(--dashboard-panel-tools-width);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    height: var(--dashboard-panel-title-height);
}

.dashboard-panel-body {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.table-mini > :not(caption) > * > * {
    padding: 0.25rem 0.25rem;
    font-size: 0.8em;
}

.table-mini > thead {
    border-bottom: 1px solid currentColor;
}

.th-col-group {
    text-align: center;
    border-bottom: none !important;
}

.table-mini > tfoot {
    border-top: 2px solid currentColor;
}

.align-text-right {
    text-align: right;
}

/* icons */
.icon-reconcile-status-none:before {
    content: '\e831';
}

.icon-reconcile-status-complete:before {
    color: var(--bs-success);
    content: '\e860';
}

.icon-reconcile-status-error:before {
    color: var(--bs-danger);
    content: '\f0ec';
}

.icon-reconcile-status_partial:before {
    color: var(--bs-warning);
    content: '\e807';
}

/*** badge */
.badge {
    font-weight: 500;
}

/**END*/
/*** blazored typeahead*/

.input-group > .blazored-typeahead {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.blazored-typeahead {
    position: relative;
    min-width: 120px;
    width: 100%;
    border: 1px solid #bfbfbf;
    border-radius: 5px;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}

    .blazored-typeahead.blazored-typeahead-sm {
        /*background-color: lightpink;*/
    }

        .blazored-typeahead.blazored-typeahead-sm .blazored-typeahead__controls {
            font-size: 0.75em;
        }

    .blazored-typeahead.valid.modified {
        outline: none !important;
        border: 1px solid #26b050;
    }

    .blazored-typeahead.invalid {
        outline: none !important;
        border: 1px solid red;
    }

.blazored-typeahead__controls {
    position: relative;
    cursor: text;
    display: flex;
}

.blazored-typeahead__input {
    flex: 1;
    width: 100%;
    margin: 0.25em;
    border: none;
    padding: .5rem;
    border-bottom: 1px solid black;
}

.blazored-typeahead:focus-within {
    box-shadow: 0 0 0 0.2rem rgba(38,143,255,.5);
}

.blazored-typeahead__input:focus {
    outline: none;
}

.blazored-typeahead__input-multi:focus {
    outline: none;
    box-shadow: none;
}

.blazored-typeahead__input-hidden {
    display: none;
}

.invalid {
    border-color: red !important;
}


.blazored-typeahead__input-mask-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    width: 100%;
}

.blazored-typeahead__input-multiselect-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
}

.blazored-typeahead__input-mask-wrapper--disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    border-radius: 5px 0 0 5px;
    color: grey;
}

    .blazored-typeahead__input-mask-wrapper--disabled:focus {
        border: none;
    }

.blazored-typeahead__input-mask {
    flex: 1;
    height: 100%;
    padding: .375rem .75rem;
}

    .blazored-typeahead__input-mask:focus {
        outline: none;
    }

.blazored-typeahead__clear {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-gray);
    cursor: pointer;
    width: 24px;
    margin-left: auto
}

    .blazored-typeahead__clear:hover {
        color: var(--bs-gray-dark);
    }

.blazored-typeahead__input-icon {
    display: flex;
    padding: .375rem .25rem;
    align-items: center;
    justify-content: center;
    color: var(--bs-gray);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    width: 40px;
}

    .blazored-typeahead__input-icon:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(38,143,255,.5);
    }

    .blazored-typeahead__input-icon:hover {
        background-color: #f5f5f5;
        color: var(--bs-gray-dark);
    }

.blazored-typeahead__input-icon--disabled,
.blazored-typeahead__input-icon--disabled:hover {
    background-color: #e9ecef;
    cursor: not-allowed;
    color: var(--bs-gray-light);
}

.blazored-typeahead__multi-value {
    background-color: #dbdbdb;
    display: flex;
    align-items: center;
    min-width: 0px;
    box-sizing: border-box;
    border-radius: 2px;
    margin: .4rem 0 .4rem .4rem;
}

.blazored-typeahead__multi-value-label {
    color: rgb(51, 51, 51);
    font-size: 85%;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
    border-radius: 2px;
    overflow: hidden;
    padding: 3px 3px 3px 6px;
}

.blazored-typeahead__multi-value-clear {
    -webkit-box-align: center;
    align-items: center;
    display: flex;
    padding-left: 4px;
    padding-right: 4px;
    box-sizing: border-box;
    border-radius: 2px;
    background-color: transparent;
    border: 0;
    outline: none;
}

    .blazored-typeahead__multi-value-clear:focus {
        outline: none;
    }

    .blazored-typeahead__multi-value-clear:hover {
        background-color: rgb(212, 212, 212);
        color: rgb(222, 53, 11);
    }

.blazored-typeahead__filter-container {
    width: 100%;
    height: 40px;
    display: flex;
    overflow: hidden;
    flex-shrink: 0;
}

.blazored-typeahead__filter-icon {
    width: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.blazored-typeahead__results-hidden {
    display: none;
}

.blazored-typeahead__results {
    position: absolute;
    box-shadow: 0 5px 10px rgba(0,0,0,.2);
    border: 1px solid #dbdbdb;
    min-height: 2rem;
    max-height: 30rem;
    overflow-y: auto;
    z-index: 10;
    width: 100%;
    background: #fff;
}

.blazored-typeahead__result,
.blazored-typeahead__notfound,
.blazored-typeahead__results-help-template,
.blazored-typeahead__results-header,
.blazored-typeahead__results-footer {
    padding: .5rem;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.blazored-typeahead__selected-item {
    background-color: #dbdbdb;
}


.blazored-typeahead__selected-item-highlighted {
    background-color: var(--brand-color);
    color: #fff;
}

.blazored-typeahead__active-item,
.blazored-typeahead__result:hover,
.blazored-typeahead__result:focus {
    background-color: var(--bs-gray-300);
    border-top: 1px solid var(--bs-gray-400);
    border-bottom: 1px solid var(--bs-gray-400);
    cursor: pointer;
}

.blazored-typeahead__loader {
    width: 24px;
    height: 24px;
    background-color: #333;
    border-radius: 100%;
    -webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
    animation: sk-scaleout 1.0s infinite ease-in-out;
}
/*** end blazored typahead*/

@-webkit-keyframes sk-scaleout {
    0% {
        -webkit-transform: scale(0)
    }

    100% {
        -webkit-transform: scale(1.0);
        opacity: 0;
    }
}

@keyframes sk-scaleout {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    100% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
        opacity: 0;
    }
}

/*tool tip*/

.tooltip-wrapper {
    position: relative;
    /* 
        don't know why this (display: table-cell;) works but it does
        use case: two tool tips next to each each, this ignores white space when laying out
        to test, compare:
        <ToolTip>...</ToolTip><ToolTip>...</ToolTip>
        with:
        <ToolTip>...</ToolTip>
        <ToolTip>...</ToolTip>
    */
    display: inline;
    cursor: help;
}


    .tooltip-wrapper.tooltip-wrapper-underline {
        border-bottom: 1px dotted black;
    }

    .tooltip-wrapper.tooltip-wrapper-no-content {
        cursor: default;
    }

#tooltip {
    box-sizing: border-box;
    visibility: hidden;
    white-space: pre-wrap;
    position: absolute;
    background-color: rgba(26,26,26,0.8);
    font-size: 0.875em;
    min-width: 100px;
    max-width: min(400px, 90vw);
    width: fit-content;
    margin-bottom: 6px;
    color: #fff;
    /* CHANGED: Use justify for multi-line, center for short */
    text-align: center;
    text-align-last: center; /* Keep last line centered */
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 1080;
    font-weight: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    pointer-events: none;
}

    /* When tooltip is wide (hits max-width), switch to left-align */
    #tooltip.tooltip-wrapped {
        text-align: left;
        text-align-last: left;
    }

    /* Arrow styles - UNCHANGED */
    #tooltip.tooltip-arrow-down::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -8px;
        border-width: 8px;
        border-style: solid;
        border-color: rgba(26,26,26,0.8) transparent transparent transparent;
    }

    #tooltip.tooltip-arrow-up::after {
        content: "";
        position: absolute;
        bottom: 100%;
        left: 50%;
        margin-left: -8px;
        border-width: 8px;
        border-style: solid;
        border-color: transparent transparent rgba(26,26,26,0.8) transparent;
    }
/* The Quill editor content area */
.wysiwyg-editor-default .ql-editor {
    min-height: 50px; /* initial small height */
    max-height: 300px; /* maximum expanded height */
    overflow-y: auto; /* scroll when max reached */
    padding: 8px 12px;
    box-sizing: border-box;
    font-size: initial;
}

.wysiwyg-editor .emoji-picker {
    position: relative;
}

.wysiwyg-editor .emoji-menu {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    padding: 4px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    width: 160px;
    z-index: 1000;
}

.wysiwyg-editor .ql-token {
    font-family: Consolas, Monaco, "Courier New", monospace;
    background: #1e1e1e;
    border: 1px solid #3c3c3c;
    border-radius: 4px;
    padding: 2px 4px;
    color: #dcdcaa;
    white-space: nowrap;
    user-select: none;
}

.wysiwyg-editor .hidden {
    display: none;
}

/* SEPARATOR - adds a full-width subtle rule centred on the heading text baseline
       Usage: <h5 class="separator">My Title</h5>
       Works with h1 through h6 only */
h1.separator,
h2.separator,
h3.separator,
h4.separator,
h5.separator,
h6.separator {
    display: flex;
    align-items: center;
    gap: 0.6em;
    white-space: nowrap;
}

    h1.separator::before, h1.separator::after,
    h2.separator::before, h2.separator::after,
    h3.separator::before, h3.separator::after,
    h4.separator::before, h4.separator::after,
    h5.separator::before, h5.separator::after,
    h6.separator::before, h6.separator::after {
        content: '';
        flex: 1;
        border-top: 1px solid var(--bs-border-color-translucent);
    }

    h1.separator::before,
    h2.separator::before,
    h3.separator::before,
    h4.separator::before,
    h5.separator::before,
    h6.separator::before {
        display: none;
    }
/* SEPARATOR END */
.circled-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    border: 1px solid var(--brand-color);
    font-size: 0.875em;
}

    .circled-number.active {
        background-color: var(--brand-color);
        color: white;
    }

.pre-line {
    white-space: pre-line;
}

.form-control-uprn {
    display: inline-block;
    width: calc(12ch + 1.5rem + 2px); /* left + right padding + borders */
}

.form-control-plaintext-sm {
    padding-top: .25rem;
    padding-bottom: .25rem;
    font-size: .875rem;
    line-height: 1.5;
}

.clickable-cell {
    color: var(--bs-link-color);
    text-decoration: var(--bs-link-decoration);
    cursor: pointer;
}

    .clickable-cell:hover {
        color: var(--bs-link-hover-color);
        text-decoration: var(--bs-link-hover-decoration);
    }

    .clickable-cell:focus {
        outline: 2px solid var(--bs-link-hover-color);
        outline-offset: 2px;
    }
