﻿/*
 * SfSchedule EventTemplate fill
 * Timeline theme: .e-appointment is flex row + absolute; details has flex:auto
 * but no height — template h-full collapses to content. Pin details to fill box.
 */
.e-schedule .e-appointment {
    box-sizing: border-box !important;
    overflow: hidden !important;
    /* Do not wipe all borders — status color is applied as left border via EventRendered */
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Fallback when EventRendered set --appt-status-color but border style was cleared */
.e-schedule .e-appointment[style*="--appt-status-color"] {
    border-left-width: 3px !important;
    border-left-style: solid !important;
    border-left-color: var(--appt-status-color, #94a3b8) !important;
}

.e-schedule .e-appointment .appointment-one {
    /* Keep status stripe visible; template sets border-left with !important */
    box-sizing: border-box !important;
}

.e-schedule .e-timeline-view .e-appointment,
.e-schedule .e-timeline-month-view .e-appointment,
.e-schedule .e-vertical-view .e-day-wrapper .e-appointment {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

.e-schedule .e-vertical-view .e-content-wrap .e-appointment .e-appointment-details,
.e-schedule .e-vertical-view .e-day-wrapper .e-appointment .e-appointment-details,
.e-schedule .e-timeline-view .e-appointment .e-appointment-details,
.e-schedule .e-timeline-month-view .e-appointment .e-appointment-details,
.e-schedule .e-month-view .e-appointment .e-appointment-details,
.e-schedule .e-appointment .e-appointment-details {
    position: absolute !important;
    inset: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    align-self: stretch !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    line-height: normal !important;
    white-space: normal !important;
    background: transparent !important;
}

.e-schedule .e-appointment .e-appointment-details > .appointment-one,
.e-schedule .appointment-one {
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
    align-self: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    white-space: normal !important;
    /* Background / border-left come from EventTemplate (status ApptColor) — do not force here */
}

/* Align Syncfusion control base size with app typography (14px / Inter). */
.e-control,
.e-css {
    font-family: var(--font-sans, "Inter", ui-sans-serif, system-ui, sans-serif) !important;
    font-size: 14px !important;
}

/*
 * App-wide card hover — appended to Tailwind @layer utilities (site-custom loads last in _Host).
 * Matches panels with: rounded-lg|xl|2xl + border + border-slate-200 + bg-white|slate-50.
 * Same cascade slot as ServiceRequestEdit hover:border-primary. Opt out: card-static.
 */
@layer utilities {
    html body :is(.rounded-lg, .rounded-xl, .rounded-2xl).border.border-slate-200:is(.bg-white, .bg-slate-50):not(.card-static):not(button):not(a):not([class*="hover:border"]),
    html body .card:not(.card-static):not(button):not(a):not([class*="hover:border"]) {
        transition-property: border-color, box-shadow !important;
        transition-duration: 150ms !important;
        transition-timing-function: ease !important;
    }

    html body :is(.rounded-lg, .rounded-xl, .rounded-2xl).border.border-slate-200:is(.bg-white, .bg-slate-50):not(.card-static):not(button):not(a):not([class*="hover:border"]):hover,
    html body .card:not(.card-static):not(button):not(a):not([class*="hover:border"]):hover {
        border-color: var(--color-primary, var(--color-sf-primary, #4f46e5)) !important;
        border-top-color: var(--color-primary, var(--color-sf-primary, #4f46e5)) !important;
        border-right-color: var(--color-primary, var(--color-sf-primary, #4f46e5)) !important;
        border-bottom-color: var(--color-primary, var(--color-sf-primary, #4f46e5)) !important;
        border-left-color: var(--color-primary, var(--color-sf-primary, #4f46e5)) !important;
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
    }
}

/* Font Awesome in Syncfusion tab header icon slots (IconCss on TabHeader). */
.e-tab .e-tab-header .e-icons.fa-solid,
.e-tab .e-tab-header .e-icons.fa-regular,
.e-tab .e-tab-header .e-icons.fa-sharp,
.e-tab .e-tab-header .e-icons.fas,
.e-tab .e-tab-header .e-icons.far {
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Sharp" !important;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.e-tab .e-tab-header .e-icons.fa-solid,
.e-tab .e-tab-header .e-icons.fas {
    font-weight: 900;
}

.e-tab .e-tab-header .e-icons.fa-regular,
.e-tab .e-tab-header .e-icons.far {
    font-weight: 400;
}
