﻿/*﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}*/

/*a, .btn-link {
    color: #006bb7;
}*/

/*.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}*/

/* 1) Define your theme tokens (OKLCH) */
:root {
    --bs-success: oklch(0.69 0.16 142);
    --bs-info: oklch(0.8 0.05 230);
    --bs-warning: oklch(0.9 0.12 85);
}

/* 2) Map tokens to the three button variants you mentioned */
:root {
    --btn-primary-base: var(--bs-success);
    --btn-secondary-base: var(--bs-info);
    --btn-warning-base: var(--bs-warning);
}

/* 3) Override Bootstrap button CSS variables (works in BS 5.3+) */
.btn-primary {
    --bs-btn-bg: var(--btn-primary-base);
    --bs-btn-border-color: var(--btn-primary-base);
    --bs-btn-hover-bg: color-mix(in oklab, var(--btn-primary-base) 90%, black);
    --bs-btn-hover-border-color: color-mix(in oklab, var(--btn-primary-base) 85%, black);
    --bs-btn-active-bg: color-mix(in oklab, var(--btn-primary-base) 80%, black);
    --bs-btn-active-border-color: color-mix(in oklab, var(--btn-primary-base) 75%, black);
}

.btn-secondary {
    --bs-btn-bg: var(--btn-secondary-base);
    --bs-btn-border-color: var(--btn-secondary-base);
    --bs-btn-hover-bg: color-mix(in oklab, var(--btn-secondary-base) 90%, black);
    --bs-btn-hover-border-color: color-mix(in oklab, var(--btn-secondary-base) 85%, black);
    --bs-btn-active-bg: color-mix(in oklab, var(--btn-secondary-base) 80%, black);
    --bs-btn-active-border-color: color-mix(in oklab, var(--btn-secondary-base) 75%, black);
}

.btn-warning {
    --bs-btn-bg: var(--btn-warning-base);
    --bs-btn-border-color: var(--btn-warning-base);
    --bs-btn-color: #000; /* maintain readable text on warm/yellow */
    --bs-btn-hover-bg: color-mix(in oklab, var(--btn-warning-base) 92%, black);
    --bs-btn-hover-border-color: color-mix(in oklab, var(--btn-warning-base) 88%, black);
    --bs-btn-active-bg: color-mix(in oklab, var(--btn-warning-base) 85%, black);
    --bs-btn-active-border-color: color-mix(in oklab, var(--btn-warning-base) 80%, black);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 0.5rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
.bg-missing {
    background-color: #E2D2A3;
    color: white;
}
.bg-on-hold {
    background-color: #343a40;
    color: white;
}
.bg-not-applicable {
    background-color: #8e7cc3;
    color: white;
}
.breadcrumb {
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.card {
   /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);*/
}

.card-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.card, .btn, .form-control {
    border-radius: 0.75rem;
}

@media (max-width: 576px) {
  /*  .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }*/

    .card-title {
        font-size: 1rem;
    }
}

/* AppBar-specific override */
@media (max-width: 576px) {
    .e-appbar .btn,
    .e-appbar .e-btn {
        width: auto !important;
        margin-bottom: 0 !important;
    }
}

.cropper-circular .cropper-view-box,
.cropper-circular .cropper-face {
    border-radius: 50% !important;
}

/* BadgetItem component CSS class */
.er-badget-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    background-color: #e0e0e0; /* default gray */
    color: #333;
    font-size: 14px;
    margin: 4px;
    cursor: default;
}
    .er-badget-item .close-icon {
        margin-left: 8px;
        cursor: pointer;
    }

/* Custom Toast Styles */
.er-toast-success-custom {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

    .er-toast-success-custom .e-toast-title {
        color: #155724;
        font-weight: bold;
    }

.er-toast-error-custom {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

    .er-toast-error-custom .e-toast-title {
        color: #721c24;
        font-weight: bold;
    }

.er-toast-warning-custom {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

    .er-toast-warning-custom .e-toast-title {
        color: #856404;
        font-weight: bold;
    }

/* Optional: Add some animation */
.e-toast-container .e-toast {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==== Syncfusion Tab → Bootstrap typography inside content ==== */
/* 1) Normalize the base font inside the tab content to Bootstrap's scale */
.er-tab .e-content {
    font-size: var(--bs-body-font-size, 1rem);
    line-height: var(--bs-body-line-height, 1.5);
    color: var(--bs-body-color);
    background: transparent; /* if e-fill was applying a background */
}

    /* 2) Make .small deterministic (use rem so it's NOT tied to Syncfusion's base) */
    .er-tab .e-content .small {
        font-size: .875rem;
    }

    /* 3) Ensure label tone matches Bootstrap’s secondary */
    .er-tab .e-content .text-secondary {
        color: var(--bs-secondary-color) !important;
    }

    /* 4) Keep your medium weight consistent even if Syncfusion overrides */
    .er-tab .e-content .fw-medium {
        font-weight: 500;
    }

    /* 5) InPlaceEditor in value column: match label size/tone */
    .er-tab .e-content .er-inplace-label .e-inplaceeditor,
    .er-tab .e-content .er-inplace-label .e-inplaceeditor * {
        font-size: .875rem; /* same as .small */
        line-height: 1.5;
    }

        .er-tab .e-content .er-inplace-label .e-inplaceeditor .e-editable-value {
            color: var(--bs-secondary-color);
            font-weight: 500;
            background: transparent;
            border: 0;
            padding: 0;
        }

        /* 6) Edit-mode inputs sized like compact Bootstrap controls */
        .er-tab .e-content .er-inplace-label .e-inplaceeditor .e-editable-component .e-input,
        .er-tab .e-content .er-inplace-label .e-inplaceeditor .e-editable-component input,
        .er-tab .e-content .er-inplace-label .e-inplaceeditor .e-editable-component .e-control,
        .er-tab .e-content .er-inplace-label .e-inplaceeditor .e-editable-component .e-input-group input {
            font-size: .875rem;
            color: var(--bs-body-color);
            background-color: var(--bs-body-bg);
            height: calc(1.5em + .5rem + 2px);
            padding: .25rem .5rem;
            border-radius: var(--bs-border-radius);
            border-color: var(--bs-border-color);
        }

            /* 7) Respect your global accessible focus ring */
            .er-tab .e-content .er-inplace-label .e-inplaceeditor .e-editable-component .e-input:focus,
            .er-tab .e-content .er-inplace-label .e-inplaceeditor .e-editable-component input:focus,
            .er-tab .e-content .er-inplace-label .e-inplaceeditor .e-editable-component .e-control:focus {
                outline: 0;
                box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem var(--er-focus-ring);
                border-color: color-mix(in oklch, var(--er-focus-ring) 50%, black);
            }
/* ==== END Syncfusion Tab → Bootstrap typography inside content ==== */

/* Make SfButton look like Bootstrap .btn-link when you use e-link */
.er-btn-link.e-btn, .e-btn.e-link {
    background: transparent;
    border: 0;
    padding: 0; /* pairs with p-0 */
    color: var(--bs-link-color);
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none; /* Bootstrap link buttons show underline on hover only */
}

    .er-btn-link.e-btn:hover,
    .e-btn.e-link:hover {
        color: var(--bs-link-hover-color);
        text-decoration: underline;
    }

    .er-btn-link.e-btn:disabled,
    .e-btn.e-link:disabled {
        opacity: .65;
        color: var(--bs-secondary-color);
        text-decoration: none;
    }

.e-btn.align-baseline {
    vertical-align: baseline;
}

.e-btn.p-0 {
    padding: 0 !important;
}

/* Match your global focus ring (so the link-style button still has A11y focus) */
.e-btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem var(--er-focus-ring);
}

/* Nice spacing when using IconCss */
.er-btn-link .e-btn-icon {
    margin-right: .25rem;
}
/* END Make SfButton look like Bootstrap .btn-link when you use e-link */

/* Tiny back/contacts link that doesn't change header height */
.er-backlink {
    position: absolute;
    left: 1.5rem; /* matches .px-4 */
    top: .25rem; /* sits at the top edge without adding height */
    color: var(--bs-secondary-color);
    opacity: .9;
}

    .er-backlink:hover {
        color: var(--bs-link-hover-color);
        text-decoration: underline;
        opacity: 1;
    }

/* END Tiny back/contacts link that doesn't change header height */



/* ==== Bridge: make Syncfusion <SfButton> honor Bootstrap .btn styles ==== */

/* Make Bootstrap's rounded-pill apply to SfButton */

/* Base alignment/spacing like Bootstrap .btn */
.e-btn.btn {
    font-size: 1rem;
    line-height: 1.5;
    padding: .375rem .75rem; /* default .btn padding */
    border-radius: var(--bs-border-radius);
    border-width: 1px;
    background: transparent;
}

/* Size variants */
.e-btn.btn-sm {
    padding: .25rem .5rem;
    font-size: .875rem;
}

.e-btn.btn-lg {
    padding: .5rem 1rem;
    font-size: 1.25rem;
}

/* Outline Secondary variant (matches .btn-outline-secondary) */
.e-btn.btn-outline-secondary {
    color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    background-color: transparent;
}

    .e-btn.btn-outline-secondary:hover,
    .e-btn.btn-outline-secondary:active,
    .e-btn.btn-outline-secondary.e-active {
        color: var(--bs-secondary-contrast, #fff);
        background-color: var(--bs-secondary);
        border-color: var(--bs-secondary);
    }

    /* Focus ring – use your global accessible ring */
    .e-btn.btn-outline-secondary:focus,
    .e-btn.btn-outline-secondary.e-focus {
        outline: 0;
        box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem var(--er-focus-ring);
    }

    /* Disabled */
    .e-btn.btn-outline-secondary:disabled,
    .e-btn.btn-outline-secondary.e-disabled {
        opacity: .65;
        pointer-events: none;
        color: var(--bs-secondary);
        background-color: transparent;
    }

/* Icon spacing when using IconCss */
.e-btn .e-btn-icon {
    margin-right: .5rem;
}

/*.e-btn.rounded-pill {
    border-radius: 15rem !important;
}*/

/* ==== END Bridge: make Syncfusion <SfButton> honor Bootstrap .btn styles ==== */



/*=== MOBILEMESSAGE PAGE DESIGN*/
/* Layout heights */
.mm-wrapper {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.mm-container .card {
    min-height: 60vh;
}

/* Inbox list */
.mm-inbox {
    overflow: auto;
    max-height: 70vh;
}

/* Chat area */
.mm-chat {
    overflow: auto;
    max-height: 55vh;
    padding: .25rem .25rem;
    background: var(--bs-light, #f8f9fa);
    border-radius: .5rem;
}

/* Bubbles */
.mm-bubble {
    display: flex;
    margin: .25rem 0;
}

    .mm-bubble.you {
        justify-content: flex-start;
    }

    .mm-bubble.me {
        justify-content: flex-end;
    }

    .mm-bubble > div {
        max-width: 85%;
        padding: .5rem .75rem;
        border-radius: 1rem;
        background: #e9ecef;
    }

    .mm-bubble.me > div {
        background: var(--bs-primary, #0d6efd);
        color: #fff;
    }
    .mm-bubble.me > div span { color:#fff !important; }
.mm-time {
    display: block;
    opacity: .7;
}

.mm-picture {
    max-width: 220px;
    border-radius: .5rem;
    display: block;
    margin-top: .25rem;
}

/* Contact panel */
.mm-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
}

.mm-field {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .375rem 0;
    border-bottom: 1px dashed rgba(0,0,0,.06);
}

.mm-label {
    color: var(--bs-secondary-color, #6c757d);
    font-weight: 500;
}

.mm-value {
    text-align: end;
    word-break: break-word;
}

/* Buttons parity for Syncfusion */
/*.e-btn.er-btn.btn {
    padding: .375rem .75rem;
    border-radius: .375rem;
}*/

/*===END MOBILEMESSAGE PAGE DESIGN*/

/*=== NOTIFICATION CALENDAR — Syncfusion Schedule (Bootstrap 5) ===*/

/* Dark-pink marker background (works for both naming schemes) */
.e-schedule .e-appointment.wknd-marker,
.e-schedule .e-appointment.specific-marker,
.e-schedule .e-appointment.wknd-exception,
.e-schedule .e-appointment.specific-exception {
    background-color: rgb(255, 178, 178) !important; /* dark pink */
    border: 1px solid rgba(220, 53, 69, .35) !important;
    box-shadow: none !important;
    padding: .15rem .25rem;
    min-height: auto;
    border-radius: .35rem;
}

    /* Hide the default left color strip so nothing blue peeks through */
    .e-schedule .e-appointment.wknd-marker::before,
    .e-schedule .e-appointment.specific-marker::before,
    .e-schedule .e-appointment.wknd-exception::before,
    .e-schedule .e-appointment.specific-exception::before {
        display: none !important;
    }

/* Make each appointment a positioning context (so the badge anchors per day) */
.e-schedule .e-month-view .e-appointment,
.e-schedule .e-vertical-view .e-appointment {
    position: relative;
}

/* Trash badge pinned to the TOP-RIGHT of each marker */
.exception-trash {
    position: absolute;
    top: .25rem;
    right: .25rem;
    z-index: 3;
    line-height: 1;
}

/* The tiny red pill (we rely on Bootstrap's text-bg-danger) */
.marker-badge {
    pointer-events: none;
}
/* click is on the button wrapper */


/*=== END NOTIFICATION CALENDAR ===*/
