.hide {
    display: none;
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    background: #ffffff;
    color: #0b5ed7;
    border: 2px solid #0b5ed7;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

.skip-link:focus,
.skip-link:active {
    position: absolute;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 3px solid #0b5ed7;
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
    outline: none;
}

.search-input-close {
    background: transparent;
    border: 0;
    padding: 0;
}

/* Staff Panel - Company Admin Dashboard */
.staff-panel-list {
    max-height: 420px;
    overflow-y: auto;
}
.staff-panel-item {
    min-height: 64px;
}
.staff-panel-item .staff-avatar {
    flex-shrink: 0;
}
.staff-panel-item .staff-name {
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.staff-panel-item .staff-schedule,
.staff-panel-item .staff-appts {
    line-height: 1.3;
}
.btn i{
    padding-right:5px;
}

.label-floating{
    will-change:left,top,contents;
}
.label-floating .label-placeholder{
    top: 2.1875rem;
    font-size: 1rem;
    line-height: 1;
}

.width-25 {
    width: 25px !important;
}
.has-tip:after {
    content: '?';
    font-size: 75%;
    font-family: sans-serif;
    vertical-align: top;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    display: inline-block;
    width: 1.8ex;
    height: 1.8ex;
    border-radius: 1ex;
    color: #fff;
    background: #767676;
    border: thin solid #767676;
}

.has-float-label {
    display: block;
    position: relative;
}

    .has-float-label label, .has-float-label > span {
        position: absolute;
        left: 0;
        top: 0;
        cursor: text;
        font-size: 75%;
        opacity: 1;
        -webkit-transition: all .2s;
        transition: all .2s;
        top: -.5em;
        left: 0.75rem;
        z-index: 3;
        line-height: 1;
        padding: 0 1px;
    }

        .has-float-label label::after, .has-float-label > span::after {
            content: " ";
            display: block;
            position: absolute;
            background: white;
            height: 2px;
            top: 50%;
            left: -.2em;
            right: -.2em;
            z-index: -1;
        }

    .has-float-label .form-control::-webkit-input-placeholder {
        opacity: 1;
        -webkit-transition: all .2s;
        transition: all .2s;
    }

    .has-float-label .form-control::-moz-placeholder {
        opacity: 1;
        transition: all .2s;
    }

    .has-float-label .form-control:-ms-input-placeholder {
        opacity: 1;
        transition: all .2s;
    }

    .has-float-label .form-control::placeholder {
        opacity: 1;
        -webkit-transition: all .2s;
        transition: all .2s;
    }

    .has-float-label .form-control:placeholder-shown:not(:focus)::-webkit-input-placeholder {
        opacity: 0;
    }

    .has-float-label .form-control:placeholder-shown:not(:focus)::-moz-placeholder {
        opacity: 0;
    }

    .has-float-label .form-control:placeholder-shown:not(:focus):-ms-input-placeholder {
        opacity: 0;
    }

    .has-float-label .form-control:placeholder-shown:not(:focus)::placeholder {
        opacity: 0;
    }

    .has-float-label .form-control:placeholder-shown:not(:focus) + * {
        font-size: 150%;
        opacity: .5;
        top: .3em;
    }

.input-group .has-float-label {
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    margin-bottom: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

    .input-group .has-float-label .form-control {
        width: 100%;
        border-radius: 0.25rem;
    }

    .input-group .has-float-label:not(:last-child), .input-group .has-float-label:not(:last-child) .form-control {
        border-bottom-right-radius: 0;
        border-top-right-radius: 0;
        border-right: 0;
    }

    .input-group .has-float-label:not(:first-child), .input-group .has-float-label:not(:first-child) .form-control {
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
    }
    
    .padding-left-5{
        padding-left: 5px;
    }
    
    .control-label{
        display:block;
    }

#patient-profile .patient-img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    object-position: center; }

/* Ensure header avatar uses the same object-fit for consistent display */
.avatar img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%; }

#patient-profile .doctor-img {
    width: 35px; }

#patient-profile .patient-name {
    text-align: center; }

#patient-profile .patient-details-row {
    position: absolute; }

#patient-profile .patient-info-heading {
    font-weight: 900;
    display: inline-block;
    width: 100px; }

#patient-profile .diesase-badge {
    margin-right: 5px; }

.patient-wrapper.table td {
    padding: 0.75rem 0.8rem; }

.patient-wrapper .action i.text-success {
    margin-right: 0.3rem; }

.content-header-left{
    margin-bottom: 0 !important;
    padding: 0.7rem 0 0.3rem 4rem;
}
.content-header-light{
    background-color: #fff;
    box-shadow: 0px 1px 15px 1px rgba(62, 57, 107, 0.07);
}
.dataTables_filter {
    float: right;
    text-align: right;
}
table.dataTable td.dataTables_empty {
    text-align: center;
}
.content-header-title{
    border-right: 1px solid #E4E5EC;
    padding: 0.4rem 1.2rem 0.7rem 0;
    margin-top: 0.55rem;
    margin-right: 1rem;
    display: inline-block;
}
.breadcrumbs-top {
    display: inline-block;
}
.content-header-right .btn-group{
    padding: 1.1rem 2rem 0.7rem;
}

.ribbon {
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: absolute;
}
.ribbon::before,
.ribbon::after {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
    border: 5px solid #2980b9;
}
.ribbon span {
    position: absolute;
    display: block;
    width: 225px;
    padding: 15px 0;
    background-color: #2b7cb3;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    color: #fff;
    font: 700 18px/1 'Lato', sans-serif;
    text-shadow: 0 1px 1px rgba(0,0,0,.2);
    text-transform: uppercase;
    text-align: center;
}

/* top left*/
.ribbon-top-left {
    top: -10px;
    left: -10px;
}
.ribbon-top-left::before,
.ribbon-top-left::after {
    border-top-color: transparent;
    border-left-color: transparent;
}
.ribbon-top-left::before {
    top: 0;
    right: 0;
}
.ribbon-top-left::after {
    bottom: 0;
    left: 0;
}
.ribbon-top-left span {
    right: -25px;
    top: 30px;
    transform: rotate(-45deg);
}

/* top right*/
.ribbon-top-right {
    top: -10px;
    right: -10px;
}
.ribbon-top-right::before,
.ribbon-top-right::after {
    border-top-color: transparent;
    border-right-color: transparent;
}
.ribbon-top-right::before {
    top: 0;
    left: 0;
}
.ribbon-top-right::after {
    bottom: 0;
    right: 0;
}
.ribbon-top-right span {
    left: -25px;
    top: 30px;
    transform: rotate(45deg);
}

/* bottom left*/
.ribbon-bottom-left {
    bottom: -10px;
    left: -10px;
}
.ribbon-bottom-left::before,
.ribbon-bottom-left::after {
    border-bottom-color: transparent;
    border-left-color: transparent;
}
.ribbon-bottom-left::before {
    bottom: 0;
    right: 0;
}
.ribbon-bottom-left::after {
    top: 0;
    left: 0;
}
.ribbon-bottom-left span {
    right: -25px;
    bottom: 30px;
    transform: rotate(225deg);
}

/* bottom right*/
.ribbon-bottom-right {
    bottom: -10px;
    right: -10px;
}
.ribbon-bottom-right::before,
.ribbon-bottom-right::after {
    border-bottom-color: transparent;
    border-right-color: transparent;
}
.ribbon-bottom-right::before {
    bottom: 0;
    left: 0;
}
.ribbon-bottom-right::after {
    top: 0;
    right: 0;
}
.ribbon-bottom-right span {
    left: -25px;
    bottom: 30px;
    transform: rotate(-225deg);
}
.font-size-9em{
    font-size: .9em;
}
.font-size-xs{
    font-size: .75em;
}
.signature {
    font-family: 'Allison', cursive; /* Use the Allison font */
    font-size: 1.5rem; /* Adjust size for signature effect */
    color: #333; /* Customize the text color */
}

.font-size-xs {
    font-size: .75em;
}

.signature {
    font-family: 'Allison', cursive; /* Use the Allison font */
    font-size: 1.5rem; /* Adjust size for signature effect */
    color: #333; /* Customize the text color */
}

/* CHAT */
.chat-avatar {
    float: right;
}
.chat-body {
    overflow: hidden;
    margin: 0.67rem 2rem 0 0;
}
.chat-body .chat-message {
    position: relative;
    float: right;
    text-align: right;
    padding: 0.75rem 1rem;
    margin: 0 1.33rem 1.33rem 0.3rem;
    clear: both;
    word-break: break-word;
    color: #fff;
    background: #666ee8;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px 0 rgba(102, 110, 232, 0.6);
}
.chat-body .chat-message .chat-time {
    position: absolute;
    bottom: -20px;
    right: 0px;
    color: #6b6f82;
    font-size: 0.8rem;
    white-space: nowrap;
}


/* Jquery Wizard */
.step {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbbbbb;
    border: none;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.5;
}
.step.active {
    opacity: 1;
}

/* Scheduler */
.event-container{
    line-height: 13px;
    height: 80px;
    padding: 3px 2px 0;
    overflow: hidden;
    position: relative;
    margin-left: 2px;
    border-radius: 4px
}
.event-container p{
    margin: 0;
}
.event-container i, .event-container p, .event-container span{
    color: #fff;
}
.event-container .client-name p{
    font-size: 14px;
    font-family: ProximaNova;
    font-weight: 600
}

.event-container .scheduling-icons-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    text-align: center;
    padding-top: 2px
}

.event-container .scheduling-icons-container .mdi {
    font-size: 16px!important;
    line-height: 16px!important;
    width: 12px!important;
    position: relative;
    right: 2px
}

.event-container .scheduling-icons-container .booking-icon {
    padding: 1px 4px;
    border-radius: 2px;
    border: 1px solid #fff;
    font-family: ProximaNova;
    font-weight: 600;
    margin-right: 4px;
    line-height: 12px;
    font-size: 9px;
    height: 14px;
    margin-top: 1px;
    background: rgba(0, 0, 0, 0);
    color: #fff
}

.event-container .service-name span {
    white-space: nowrap;
    font-size: 10px;
    font-weight: 400
}

.event-container .service-provider-container {
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 100%;
    white-space: nowrap;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end
}

.event-container .service-provider-container p {
    white-space: nowrap;
    font-size: 10px;
    font-weight: 400
}

.event-container .service-provider-container .icons-wrapper {
    margin-left: auto;
    margin-right: 4px
}

.event-container .service-provider-container .service-provider-name {
    margin-right: 5px
}

.event-container .service-provider-container .contra-indications-icon, .event-container .service-provider-container .medications-icon {
    display: inline-block
}

.event-container .service-provider-container .contra-indications-icon span, .event-container .service-provider-container .medications-icon span {
    color: #767676;
    background: #fff;
    width: 19px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    float: right;
    text-align: center;
    font-weight: 500;
    line-height: 1.32em
}

.event-container .client-name-container {
    padding: 3px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center
}

.event-container .client-name-container .client-name {
    margin-right: 5px
}

.event-container .client-name-container .icons {
    margin-left: auto
}

.event-container .client-name-container .icons .appt-type-icon-container, .mb-bs4 .event-container .client-name-container .icons .gift-icon-container, .mb-bs4 .event-container .client-name-container .icons .notes-icon-container {
    float: right;
    font-size: 14px;
    margin-right: 2px
}

.event-container .client-name-container .icons .appt-type-icon-container i {
    height: 12px;
    line-height: 12px
}

.client-membership{
    float: left;
    padding-right:3px;
    color: gold;
}
.client-name{
    font-size: 14px;
    font-family: ProximaNova;
    font-weight: 600;
}
.service-name-container{
    padding-bottom: 10px;
}
.service-name{
    white-space: nowrap;
    font-size:10px;
    font-variant: petite-caps;
    letter-spacing: .025rem;
}
.recurring-service{
    float: left;
    padding-right:3px;
    font-size: 10px;
}
.service-provider-container{
    font-size: 11px;
}
.therapist-name{
    float:left;
}
.room-name{
    float:left;
    padding-left: 3px;
}
.soap-note-status{
    float: right;
}
.input-group > .select2-container--default {
    width: auto;
    flex: 1 1 auto;
}

.input-group > .select2-container--default .select2-selection--single {
    height: 100%;
    line-height: inherit;
    padding: 0.5rem 1rem;
}

/* KENDO CUSTOM */
.k-switch-label-on,
.k-switch-label-off {
    line-height: 24px;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    overflow: hidden;
    left: 6px;
}
.k-switch-label-on{
    color:white;
}
.k-switch-label-off{
    color:black;
}
.k-textbox.form-control {
    height: auto !important;
}
.k-maskedtextbox.form-control .k-textbox {
    height: auto !important;
}
.k-textbox.form-control {
    height: auto !important;
}


/* AVATAR Profile */
.kv-avatar .krajee-default.file-preview-frame,.kv-avatar .krajee-default.file-preview-frame:hover {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    text-align: center;
}
.kv-avatar {
    display: inline-block;
}
.kv-avatar .file-input {
    display: table-cell;
    width: 213px;
}
.kv-reqd {
    color: red;
    font-family: monospace;
    font-weight: normal;
}

/* Bootstrap CardHeader Collapsed Extension */
.card-header .fa {
    transition: .3s transform ease-in-out;
}
.card-header .collapsed .fa {
    transform: rotate(90deg);
}
.pull-right {
    float: right;
}

/* Scheduler Events */
.scheduler-event-template{
    /* Setting the height/width to fill the container for custom colors  */
    height: 100%;
    width: 110%;
}
.scheduler-event-title{
    font-weight: bold;
}
.scheduler-event-time{
    font-weight: normal;
}

/* Template Days */
.calendar-avail-date{
    border-radius: 50%;
    background-color: #5593ff;
    width: 75%;
}
.exhibition,
.party,
.cocktail {
    font-weight: bold;
}

.exhibition {
    color: #a86800;
}

.party {
    color: #d7366d;
}

.cocktail {
    color: #007eb6;
}

.italic{
    font-style: italic;
}
.submodal {
    z-index: 1054 !important;!i;!;
}

@media print {
    .content-header,
    .buy-now,
    .btn-print,
    .footer,
    .open,
    .main-menu {
        display: none; }
    #invoice-template,
    .content-wrapper {
        padding-top: 0; }
    .app-content,
    #invoice-template,
    .navbar-container,
    .navbar-wrapper,
    .header-navbar {
        margin: 0 !important;
        padding: 0 !important; }
    #invoice-footer {
        position: relative;
        top: -80px !important; }
    .table-responsive {
        -ms-overflow-style: none; } }

@page {
    size: auto;
    margin: 0px; }

#soapNoteActions {
    position: absolute;
    top: 20px;
    left: 200px;
}
.select-all-sessions {
    padding-left: 12px!important;
}
.adl-value, .adl-change, .adl-description {
    padding-left:3px!important;
    padding-right:3px!important;
    line-height:3em!important;
}
canvas.soap_imagedetail{
   /* margin-left:79px!important;*/
}
.disabled-overlay {
    pointer-events: none;
    opacity: 0.4;
}

.nav-vertical .nav-left.nav-tabs li.nav-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary {
    color: #fff;
    background: var(--primary);
}

.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info {
    background: var(--info);
    color: #fff;
}

.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success {
    background: var(--success);
    color: #fff;
}

.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning {
    background: var(--warning);
    color: #fff;
}

.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger {
    background: var(--danger);
    color: #fff;
}

.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-secondary,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-secondary {
    background: var(--secondary);
    color: #fff;
}
/* Authorization Hover Info Popover Styling */
.authorization-hover-info {
    min-width: 200px;
    max-width: 300px;
}

.authorization-hover-info .table {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.authorization-hover-info .table td {
    padding: 0.25rem 0.5rem;
    border: none;
}

.authorization-hover-info .table td:first-child {
    color: #6c757d;
}

.authorization-hover-info .table td:last-child {
    font-weight: 500;
}

/* Make client type badge cursor pointer to indicate it's hoverable */
#newappt_clienttype {
    cursor: help;
}
.popover {
    z-index: 99999 !important;
}
.popover {
    max-width: 400px !important; /* make sure it’s wide enough */
    white-space: normal !important; /* allow wrapping inside */
}

    .popover .popover-body {
        white-space: normal !important; /* allow tables & block elements */
        padding: 0.75rem 1rem !important;
    }

    .popover table {
        width: 100%;
        margin-bottom: 0;
    }
    .popover .table {
        display: table !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

.custom-authorization-popover .popover-body {
    padding: 0.75rem;
    background-color: #fff;
    border-radius: 0.5rem;
}

/* =============================================================================
   TABLE NAVIGATION LINK PATTERN (.nav-link-custom)
   -----------------------------------------------
   Preferred pattern for displaying clickable name links in data tables.
   Use this pattern on any table column (typically "Name") that navigates
   to a detail page, instead of adding a separate Actions column with
   icon buttons.

   Single-line usage (no preferred/display name):
     <td>
       <a href="..." class="nav-link-custom">
         <span class="left-bar"></span>
         <span class="name-stack">
           <span class="primary-name">
             Full Name
             <span class="sliding-line"></span>
           </span>
         </span>
         <i class="arrow-icon fas fa-arrow-right fa-xs"></i>
       </a>
     </td>

   Two-line usage (display/preferred name present):
     <td>
       <a href="..." class="nav-link-custom">
         <span class="left-bar"></span>
         <span class="name-stack">
           <span class="primary-name">
             Display Name
             <span class="sliding-line"></span>
           </span>
           <span class="secondary-name">First Last</span>
         </span>
         <i class="arrow-icon fas fa-arrow-right fa-xs"></i>
       </a>
     </td>
   ============================================================================= */

.nav-link-custom {
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    text-decoration: none;
    color: var(--bs-body-color);
    font: inherit;
    text-align: left;
    padding: 8px 12px;
    position: relative;
    transition: color 0.3s ease;
}

/* Vertical name stack — primary line above, optional secondary line below */
.name-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

/* Fixed-size left bar — grey at rest, turns blue on hover; slightly taller to span two lines */
.left-bar {
    width: 3px;
    height: 24px;
    background-color: #dee2e6;
    margin-right: 12px;
    transition: background-color 0.3s ease, height 0.3s ease;
    border-radius: 2px;
}

/* Primary (display) name — bold, carries the animated underline */
.primary-name {
    font-weight: 600;
    position: relative;
    display: inline-block;
}

/* Secondary (legal) name — smaller, sits below the primary name */
.secondary-name {
    font-size: 0.8rem;
    font-weight: 400;
    display: block;
}

/* Animated underline — starts at zero width, slides to full width on hover */
.sliding-line {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0d6efd;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Arrow icon — invisible and offset left at rest, fades in on hover */
.arrow-icon {
    opacity: 0;
    margin-left: 12px;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    color: #0d6efd;
    font-size: 1.2rem;
}

.nav-link-custom:hover .primary-name {
    color: #0d6efd;
}

.nav-link-custom:hover .left-bar {
    background-color: #0d6efd;
}

.nav-link-custom:hover .sliding-line {
    width: 100%;
}

.nav-link-custom:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Vertically center table cells in tables that use .nav-link-custom */
#service-table td,
#service-table th {
    vertical-align: middle;
}

/* =============================================
   Global async loading overlay
   ============================================= */
#global-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* ── Checkout: wizard-circle step indicator ─────────────────── */
.checkout-wizard-steps {
    display: table;
    width: 100%;
    table-layout: fixed;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}
.checkout-wizard-steps .checkout-step {
    display: table-cell;
    text-align: center;
    vertical-align: top;
    position: relative;
}
.checkout-wizard-steps .checkout-step::before {
    content: '';
    display: block;
    position: absolute;
    z-index: 1;
    left: 0; top: 43px;
    width: 50%; height: 5px;
    background: #666ee8;
}
.checkout-wizard-steps .checkout-step::after {
    content: '';
    display: block;
    position: absolute;
    z-index: 1;
    right: 0; top: 43px;
    width: 50%; height: 5px;
    background: #666ee8;
}
.checkout-wizard-steps .checkout-step:first-child::before { content: none; }
.checkout-wizard-steps .checkout-step:last-child::after  { content: none; }
.checkout-wizard-steps .checkout-step.future::before,
.checkout-wizard-steps .checkout-step.future::after { background: #f4f5fa; }
.checkout-wizard-steps .checkout-step.current::after    { background: #f4f5fa; }
.checkout-step-link {
    display: block;
    position: relative;
    padding-top: 60px;
    margin: 16px 0 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6f6f7c;
    text-decoration: none;
}
.checkout-step-link .step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 5px solid #f4f5fa;
    background: #f4f5fa;
    color: #6f6f7c;
    font-size: 20px;
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.checkout-wizard-steps .checkout-step.done .step-icon {
    background: #666ee8; border-color: #f4f5fa; color: #fff;
}
.checkout-wizard-steps .checkout-step.done .checkout-step-link { color: #6f6f7c; }
.checkout-wizard-steps .checkout-step.current .step-icon {
    background: #fff; border-color: #f4f5fa; color: #666ee8;
    outline: 3px solid #666ee8; outline-offset: -3px;
}
.checkout-wizard-steps .checkout-step.current .checkout-step-link { color: #333333; }
.checkout-wizard-steps .checkout-step.future .step-icon {
    background: #f4f5fa; border-color: #f4f5fa; color: #6f6f7c;
}

/* ── Checkout: Step 1 — two-path client selection ───────────── */
.checkout-two-path { display: flex; gap: 10px; margin-bottom: 14px; }
.checkout-path-card {
    flex: 1; border: 2px solid #e4e7ed; border-radius: 8px;
    padding: 14px 12px; text-align: center; cursor: pointer;
    background: #fff; transition: border-color .15s, background .15s;
}
.checkout-path-card:hover { border-color: #666ee8; }
.checkout-path-card.active {
    border-color: #666ee8; background: #eef0fd;
}
.checkout-path-card .path-icon { font-size: 28px; margin-bottom: 5px; color: #6b6f82; }
.checkout-path-card.active .path-icon { color: #666ee8; }
.checkout-path-card .path-title { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.checkout-path-card .path-sub { font-size: 11px; color: #6f6f7c; }

/* Client summary card (shown after selection) */
.checkout-client-card {
    display: flex; align-items: center; gap: 12px;
    border: 2px solid #666ee8; border-radius: 8px;
    background: #eef0fd; padding: 12px 14px; margin-top: 10px;
}
.checkout-client-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: #666ee8; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.checkout-client-info { flex: 1; }
.checkout-client-name { font-weight: 700; font-size: 14px; }
.checkout-client-meta { font-size: 11px; color: #555; line-height: 1.6; }
.checkout-client-tag {
    display: inline-block; font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 8px; margin-top: 3px; margin-right: 3px;
}
.checkout-client-tag-member { background: #e8f8f2; color: #157f59; }
.checkout-client-tag-cash   { background: #e8f8f2; color: #157f59; }
.checkout-client-tag-auth   { background: #fff3e0; color: #b05800; }
.checkout-change-link {
    font-size: 11px; color: #666ee8; cursor: pointer;
    text-decoration: underline; white-space: nowrap;
}

/* Guest card */
.checkout-guest-card {
    display: flex; align-items: center; gap: 12px;
    border: 2px dashed #aaa; border-radius: 8px;
    background: #fafafa; padding: 12px 14px; margin-top: 10px;
}
.checkout-guest-icon { font-size: 28px; color: #6f6f7c; }
.checkout-guest-info { flex: 1; }
.checkout-guest-title { font-weight: 700; font-size: 13px; color: #555; }
.checkout-guest-sub   { font-size: 11px; color: #6f6f7c; }

/* ── Checkout: Step 2 — split layout ────────────────────────── */
.checkout-split-layout {
    display: flex; gap: 14px; align-items: flex-start;
}
.checkout-split-left  { flex: 1.2; min-width: 0; }
.checkout-split-right { flex: 0.8; min-width: 0; }

.checkout-sec-hdr {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 10px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-radius: 4px 4px 0 0;
}
.checkout-sec-body {
    border: 1px solid #e4e7ed;
    border-top: none;
    border-radius: 0 0 4px 4px;
    margin-bottom: 8px;
}
.checkout-sec-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 10px; border-bottom: 1px solid #e4e7ed; font-size: 12px;
}
.checkout-sec-row:last-child { border-bottom: none; }
.checkout-cart-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px; border-bottom: 1px solid #e4e7ed; font-size: 12px;
}
.checkout-cart-item:last-child { border-bottom: none; }
.checkout-cart-item-name { flex: 1; }
.checkout-cart-item-remove {
    color: #ff4961; cursor: pointer; font-size: 14px; line-height: 1;
}
.checkout-running-total { border-top: 2px solid #e4e7ed; background: #fafafa; }
.checkout-running-total .total-row {
    display: flex; justify-content: space-between;
    padding: 3px 10px; font-size: 12px;
}
.checkout-running-total .total-row.grand {
    font-weight: 700; font-size: 14px;
    padding: 6px 10px; border-top: 1px solid #e4e7ed;
}

/* Add-to-cart button grid */
.checkout-add-btn-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.checkout-add-btn {
    display: flex; flex-direction: row; align-items: center;
    justify-content: center; gap: 4px; padding: 6px 4px;
    border: 1.5px solid #e4e7ed; border-radius: 6px;
    background: #fff; cursor: pointer; font-size: 10px; font-weight: 600;
    font-family: inherit;
    color: #464855; transition: border-color .15s, color .15s, background .15s;
}
.checkout-add-btn i { font-size: 14px; }
.checkout-add-btn:hover,
.checkout-add-btn.active-panel { border-color: #666ee8; color: #666ee8; background: #eef0fd; }
.checkout-add-btn-full { grid-column: 1 / -1; flex-direction: row; gap: 8px; padding: 8px; }

/* Notification dropdown close button consistency */
.notification-item .delete-notification {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.notification-item .delete-notification i {
    margin: 0;
    line-height: 1;
}

/* ── Checkout: Step 3 — payment ──────────────────────────────── */
.checkout-stat-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.checkout-stat-card {
    flex: 1; border: 1px solid #e4e7ed; border-radius: 6px;
    padding: 10px 12px; background: #fafafa;
}
.checkout-stat-card.deposit  { border-color: #28d094; background: #e8f8f2; }
.checkout-stat-card.balance  { border-color: #666ee8; background: #eef0fd; }
.checkout-stat-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #6f6f7c; }
.checkout-stat-card.deposit .checkout-stat-label { color: #157f59; }
.checkout-stat-card.balance .checkout-stat-label  { color: #666ee8; }
.checkout-stat-value { font-size: 18px; font-weight: 700; }
.checkout-stat-card.deposit .checkout-stat-value { color: #157f59; }
.checkout-stat-card.balance .checkout-stat-value  { color: #666ee8; }
.checkout-stat-sub   { font-size: 10px; color: #6f6f7c; }
.checkout-stat-card.deposit .checkout-stat-sub { color: #157f59; }

/* Credit boxes */
.checkout-credit-box {
    display: flex; align-items: center; gap: 10px;
    border: 1px solid #e4e7ed; border-radius: 6px;
    padding: 8px 10px; background: #fafafa; margin-bottom: 6px;
}
.checkout-credit-box .credit-icon { font-size: 20px; }
.checkout-credit-box .credit-info { flex: 1; }
.checkout-credit-box .credit-label { font-weight: 700; font-size: 12px; }
.checkout-credit-box .credit-sub   { font-size: 11px; color: #6f6f7c; }
.checkout-credit-box.expired-credit { border-color: #f3a52d; background: #fffbf2; opacity: 0.85; }
.checkout-credit-apply-btn {
    padding: 4px 10px; border-radius: 12px;
    border: 1.5px solid #666ee8; color: #666ee8;
    background: #fff; font-size: 11px; font-weight: 700; cursor: pointer;
}
.checkout-credit-amount-input {
    width: 72px; padding: 3px 6px;
    border: 1.5px solid #28d094; border-radius: 4px;
    font-size: 12px; font-weight: 700; color: #157f59; text-align: right;
}

/* Payment method buttons */
.checkout-pmt-methods { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.checkout-pmt-methods-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.checkout-pmt-btn {
    padding: 8px 4px;
    border: 2px solid #e4e7ed; border-radius: 6px;
    background: #fff; text-align: center; cursor: pointer;
    font-size: 10px; font-weight: 600; color: #464855; transition: all .15s;
    white-space: nowrap;
}
.checkout-pmt-btn i { display: block; font-size: 16px; margin-bottom: 2px; }
.checkout-pmt-btn.active { border-color: #666ee8; background: #eef0fd; color: #666ee8; }

/* Cart Bootstrap table */
.checkout-cart-table { font-size: 11px; margin-bottom: 0; table-layout: fixed; width: 100%; }
.checkout-cart-table thead th { font-size: 10px; font-weight: 600; padding: 4px 4px; border-top: none; overflow: hidden; white-space: nowrap; }
.checkout-cart-table tbody td { padding: 4px 4px; vertical-align: middle; overflow: hidden; white-space: nowrap; }
.checkout-cart-table .checkout-cart-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-cart-table .btn-xs { padding: 2px 4px; font-size: 10px; line-height: 1.4; }

/* Kendo Grid inside checkout entry blocks — fix dark-on-dark headers */
.checkout-entry-block .k-grid-header .k-header,
.checkout-entry-block .k-grid-header th {
    background-color: #f4f5fa !important; color: #464855 !important;
    font-size: 11px; font-weight: 600; padding: 6px 8px;
}
.checkout-entry-block .k-grid td { font-size: 12px; padding: 4px 8px; }
.checkout-entry-block .k-grid { font-size: 12px; }

/* Compact font for add-item tables */
.checkout-entry-block table { font-size: 11px; }
.checkout-entry-block table .form-control-sm { font-size: 11px; padding: 2px 4px; }
.checkout-entry-block table th { font-size: 10px; }

/* ── Checkout: Accordion-style add-item lists ───────────────── */
.checkout-accordion-list { max-height: 300px; overflow-y: auto; }
.checkout-accordion-item { border-bottom: 1px solid #e4e7ed; }
.checkout-accordion-item:last-child { border-bottom: none; }
.checkout-accordion-header {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 8px; font-size: 12px; cursor: default;
}
.checkout-accordion-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-accordion-price-hint { font-size: 11px; color: #6f6f7c; white-space: nowrap; }
.checkout-accordion-toggle-btn { padding: 2px 7px; line-height: 1; font-size: 12px; flex-shrink: 0; }
.checkout-accordion-item.open .checkout-accordion-toggle-btn i::before { content: "\f068"; /* la-minus */ }
.checkout-accordion-detail { background: #f8f9fa; padding: 8px 10px; }
.checkout-accordion-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.checkout-accordion-field { flex: 1; min-width: 70px; }
.checkout-accordion-field label { display: block; font-size: 10px; font-weight: 600; color: #6f6f7c; margin-bottom: 2px; }
.checkout-accordion-field .form-control-sm { font-size: 12px; }
.checkout-accordion-field-btn { flex: 0 0 auto; }

/* Amount input */
.checkout-amt-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.checkout-amt-prefix { font-size: 18px; font-weight: 700; color: #6f6f7c; }
.checkout-amt-input {
    flex: 1; padding: 8px 12px; border: 2px solid #666ee8; border-radius: 6px;
    font-size: 20px; font-weight: 700; color: #666ee8; text-align: right; background: #fff;
}
.checkout-change-due { font-size: 12px; color: #28d094; font-weight: 600; display: none; }

/* Applied payment chips */
.checkout-pmt-chip {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 10px; border-radius: 6px; margin-bottom: 4px; font-size: 12px; font-weight: 600;
}
.checkout-pmt-chip.locked { background: #e8f8f2; border: 1px solid #a8e8d0; color: #157f59; }
.checkout-pmt-chip.applied { background: #eef0fd; border: 1px solid #c5c9f5; color: #666ee8; }
.checkout-pmt-chip .chip-remove { color: #ff4961; cursor: pointer; font-size: 14px; }

/* Remaining balance banner */
.checkout-remaining-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; border-radius: 6px; margin-top: 8px;
    background: #eef0fd; border: 2px solid #666ee8;
    font-weight: 700; font-size: 15px; color: #666ee8;
}
.checkout-remaining-bar.zero { background: #e8f8f2; border-color: #28d094; color: #157f59; }

/* Extra fields (check number, gift card code) */
.checkout-extra-field { margin-bottom: 8px; }
.checkout-extra-field label { font-size: 11px; font-weight: 600; color: #6f6f7c; display: block; margin-bottom: 3px; }
.checkout-extra-field input { width: 100%; padding: 6px 10px; border: 1px solid #e4e7ed; border-radius: 4px; font-size: 13px; }

/* Add payment button */
.checkout-add-pmt-btn {
    width: 100%; padding: 9px; border-radius: 6px; border: none;
    background: #666ee8; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer;
    margin-bottom: 10px;
}

/* ── Checkout: Step 4 — summary ─────────────────────────────── */
.checkout-summary-item-list { border: 1px solid #e4e7ed; border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.checkout-summary-item { display: flex; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid #e4e7ed; font-size: 12px; }
.checkout-summary-item:last-child { border-bottom: none; }
.checkout-totals-box { border: 1px solid #e4e7ed; border-radius: 6px; padding: 8px 10px; background: #fafafa; font-size: 12px; }
.checkout-totals-row { display: flex; justify-content: space-between; padding: 2px 0; }
.checkout-totals-row.muted { color: #6f6f7c; }
.checkout-totals-row.grand { font-weight: 700; font-size: 14px; border-top: 2px solid #e4e7ed; padding-top: 5px; margin-top: 3px; }

.checkout-client-context-card { border: 1px solid #c5c9f5; border-radius: 8px; background: #eef0fd; padding: 10px 12px; margin-bottom: 10px; }
.checkout-selected-client-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px; margin-bottom: 14px; border: 1px solid #c5c9f5; border-radius: 8px;
    background: linear-gradient(90deg, #eef0fd 0%, #f8f9ff 100%);
}
.checkout-selected-client-banner__meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.checkout-selected-client-banner__icon {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #666ee8; color: #fff; font-size: 16px; flex-shrink: 0;
}
.checkout-selected-client-banner__label {
    color: #6f6f7c; font-size: 11px; font-weight: 700; letter-spacing: .4px;
    text-transform: uppercase; line-height: 1.1;
}
.checkout-selected-client-banner__name { font-size: 14px; font-weight: 700; color: #2c303b; }
.checkout-selected-client-banner__details {
    color: #6b6f82; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.checkout-selected-client-banner__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 767.98px) {
    .checkout-selected-client-banner { flex-direction: column; align-items: flex-start; }
    .checkout-selected-client-banner__details { white-space: normal; }
    .checkout-selected-client-banner__tags { justify-content: flex-start; }
}
.checkout-context-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.checkout-context-av { width: 38px; height: 38px; border-radius: 50%; background: #666ee8; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.checkout-context-name { font-weight: 700; font-size: 14px; }
.checkout-context-row { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed #e4e7ed; font-size: 12px; }
.checkout-context-row:last-child { border-bottom: none; }
.checkout-context-lbl { color: #6f6f7c; }
.checkout-context-val { font-weight: 600; }

.checkout-auth-block { border: 1.5px solid #ff9149; border-radius: 6px; background: #fff3e0; padding: 8px 10px; margin-bottom: 8px; }
.checkout-auth-title { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #b05800; margin-bottom: 5px; }
.checkout-auth-warn  { color: #ff9149; }
.checkout-auth-danger { color: #ff4961; font-weight: 700; }

.checkout-appt-box { border: 1px solid #e4e7ed; border-radius: 6px; background: #fff; padding: 8px 10px; margin-bottom: 8px; }
.checkout-appt-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #6f6f7c; margin-bottom: 5px; }
.checkout-appt-link { color: #666ee8; font-size: 11px; font-weight: 700; cursor: pointer; text-decoration: underline; }

.checkout-process-btn {
    width: 100%; padding: 12px; border-radius: 8px; border: none;
    background: #28d094; color: #fff; font-size: 14px; font-weight: 700;
    cursor: pointer; box-shadow: 0 4px 12px rgba(40,208,148,.3); margin-bottom: 4px;
}
.checkout-process-btn.invoice { background: #666ee8; box-shadow: 0 4px 12px rgba(102,110,232,.3); }
.checkout-process-sub { font-size: 11px; text-align: center; color: #6f6f7c; margin-bottom: 10px; }

.checkout-email-row { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 10px; color: #6f6f7c; }
.checkout-email-row input[type=email] { flex: 1; padding: 4px 8px; border: 1px solid #e4e7ed; border-radius: 4px; font-size: 12px; }

/* End of Day Report — expandable row toggle */
td.eod-detail-toggle { cursor: pointer; text-align: center; }
td.eod-detail-toggle::before { content: '\f105'; font-family: 'Line Awesome Free'; font-weight: 900; font-size: 1.2rem; transition: transform .2s; display: inline-block; }
tr.shown td.eod-detail-toggle::before { transform: rotate(90deg); }
/* End of Day Report — child-row drawer */
.eod-child-row { background: #f8f9fa; }
.eod-child-row td { padding: 0 !important; border-top: none; }
.eod-child-detail { padding: 12px 24px; }
.eod-child-detail .detail-item { display: inline-block; min-width: 140px; margin-right: 24px; margin-bottom: 4px; }
.eod-child-detail .detail-label { font-weight: 600; color: #636363; font-size: .85rem; display: block; }
.eod-child-detail .detail-value { font-size: .95rem; }
/* End of Day Report — status badges */
.badge-fully-paid { background-color: #28d094; color: #fff; }
.badge-partial { background-color: #ff9149; color: #fff; }
.badge-unpaid { background-color: #ff4961; color: #fff; }
/* End of Day Report — summary card styling */
.summary-card .summary-value { font-size: 1.25rem; font-weight: 700; margin-bottom: 0; }
.summary-card .summary-label { font-size: .8rem; color: #636363; }

/* ===== Mega Search ===== */
/* Results dropdown — positioned like the template's .search-list.show
   below the full-width .search-input.open bar */
.mega-search-results {
    position: absolute !important;
    top: 100%;
    left: 1%;
    width: 98%;
    max-height: 480px;
    overflow-y: auto;
    background: #fff;
    border-radius: 0.25rem;
    box-shadow: -8px 12px 18px 0 rgba(25, 42, 70, 0.13);
    z-index: 9999;
    display: none;
}
.mega-search-results.show {
    display: block;
}
.mega-search-filters {
    padding: 8px 12px;
    border-bottom: 1px solid #e4e7ed;
    background: #f9fafc;
}
.mega-search-filter-btn {
    font-size: 0.75rem !important;
    padding: 2px 10px !important;
}
.mega-search-filter-btn.active {
    background-color: #008487 !important;
    border-color: #008487 !important;
    color: #fff !important;
}
.mega-search-category {
    margin-bottom: 0;
}
.mega-search-category-header {
    padding: 8px 12px 4px;
    background: #f9fafc;
    border-bottom: 1px solid #e4e7ed;
}
.mega-search-category-header .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
}
.mega-search-result-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #464855;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}
.mega-search-result-item:hover {
    background-color: #f0f7ff;
    text-decoration: none;
    color: #464855;
}
.mega-search-result-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8ecf1;
    margin-right: 10px;
    font-size: 1.1rem;
    color: #606b7f;
}
.mega-search-result-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.mega-search-result-title {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mega-search-result-subtitle {
    font-size: 0.8rem;
    color: #6e7782;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mega-search-result-detail {
    font-size: 0.75rem;
    color: #6f787d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------------------------------------------------------------------------
   Accessible grouping for radio / checkbox sets (#2204, WCAG 1.3.1)
   ---------------------------------------------------------------------------
   A group of radios or checkboxes needs an accessible name for the *group*, not
   just for each control. Without one, a screen reader announces "Acute, radio
   button, 1 of 3" with no indication of which question is being answered. A plain
   <label> above the group cannot supply it — it has no control to point at.

   Two techniques are in use, chosen per site:

     * <fieldset> + <legend> — the canonical fix, used wherever the label being
       replaced was already block-level. This class is for those legends.
     * role="group" + aria-labelledby — WCAG technique ARIA17, used where the
       label sits *inline* beside its controls (e.g. Client/CreateAppointment's
       day/time filters). A <legend> is block-level and would reflow the row.

   Bootstrap 4 styles <legend> as a 1.5rem block heading, which would visibly
   enlarge every label converted to one. This class restores the appearance of
   the <label> it replaces, so the change is semantic only. Pair it with whatever
   weight/spacing classes the original label carried (e.g. font-weight-bold, mb-1).

   Note the ~100 existing <fieldset> elements in the views are Modern Admin
   layout wrappers with no <legend> and no grouping intent; they are unrelated. */
.form-group-legend {
    display: block;
    width: auto;
    max-width: 100%;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}
