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;
}

.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: 1.1rem;
}

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;
}
.leadimage-container {
    height: 300px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

    .leadimage-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


/*Global Site Styles Style*/
:root {
    --primary-color: #22456d; /* Default Bootstrap primary color */
    --navbar-background: #22456d; /* Dark background for navbar */
    --secondary-color: #a8c9ef;
    --border-light-grey: #e6e5e5;
    --light-blue: #e1efff;
}
.rz-primary {
    background-color: #ffffff !important;
    color: var(--rz-primary-text) !important;
    border-color: #22456d !important;
}

.rz-button.rz-primary {
    background-color: #ffffff !important;
    border-color: #22456d !important;
    color: var(--rz-primary-text) !important;
}


.stallions-modal-right {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    width: 60vw !important;
    background-color: #e6e5e5;
    /*background-color:#22456d;*/
}
.stallions-modal-right-small {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    width: 10vw !important;
    background-color: #e6e5e5;
    /*background-color:#22456d;*/
}

.offcanvas-backdrop.show {
    opacity: 0 !important;
    visibility: hidden;
    display: none;
}
.main-nav-container {
    width:95vw;
    max-width:1400px;
    margin-left:auto;
    margin-right:auto;

}
.header-container {
    width: 100%;
    background-color: #22456d;
}
.page-container {
    background-color: #fafafa;
    margin-bottom:200px;
}

/*  ---  pedigree grid styles ----- */

.tg-wrap {
    border-radius: 10px;
    overflow: hidden; /* Keeps corners rounded */
    border: 1px solid #e6e5e5;
}
 .tg {
    border-collapse: collapse;
    border-spacing: 0;
}

    .tg td {
        border-color: #e6e5e5;
        border-style: solid;
        border-width: 1px;
        font-family: Arial, sans-serif;
        font-size: 14px;
        overflow: hidden;
        padding: 10px 5px;
        word-break: normal;
    }

    .tg th {
        border-color: #e6e5e5;
        border-style: solid;
        border-width: 1px;
        font-family: Arial, sans-serif;
        font-size: 14px;
        font-weight: normal;
        overflow: hidden;
        padding: 10px 5px;
        word-break: normal;
    }

     .tg .tg-cly1 {
        text-align: left;
        vertical-align: middle
    }

.tgs-wrap {
    border-radius: 10px;
    overflow: hidden; /* Keeps corners rounded */
    border: 1px solid #e6e5e5;
}

.tgs {
    border-collapse: collapse;
    border-spacing: 0;
}

.tgs-cly1-male {
    font-family: Arial, sans-serif;
    font-size: 14px;
    overflow: hidden;
    padding: 2px 5px;
    word-break: normal;
    background-color: #ddffff;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-right: 5px solid #ffffff;
    border-top: 5px solid #ffffff;
}
.tgs-cly1-female {
    border-color: #ffffff;
    border-style: solid;
    border-width: 0px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    overflow: hidden;
    padding: 2px 5px;
    word-break: normal;

}

    .tgs th {
        border-color: #e6e5e5;
        border-style: solid;
        border-width: 0px;
        font-family: Arial, sans-serif;
        font-size: 14px;
        font-weight: normal;
        overflow: hidden;
        padding: 10px 5px;
        word-break: normal;
    }

    .tgs .tg-cly1 {
        text-align: left;
        vertical-align: middle;
        
    }

.form-label-text {
    font-weight:300;
    color:darkslategray;
}



/* Also override the .rz-form-field-content if it's wrapping the input */
.custom-autocomplete .rz-form-field-content {
    outline: none;
    border: none;
    border-bottom: 1px solid #0078D4; /* Use your preferred color */

    box-shadow: none !important;
    outline: none !important;
}

.rz-datalist-data > li {
    padding: 0 !important;
}
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure it stays above other content */
    background-color: white; /* Prevent transparency bleed */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional visual separation */
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* You can keep this if needed */
}

.page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #fafafa;
}

main {
    flex: 1;
    overflow-y: auto;

}


.sticky-sidebar {
    position: sticky;
    top: 80px; /* Match header height */
    z-index: 1000;
    background-color: white;
    align-self: flex-start; /* Prevent stretching */
}


/* Disable sticky on small screens */
@media (max-width: 767.98px) {
    .sticky-sidebar {
        position: static;
        top: auto;
    }
}


@media screen and (max-width: 767px) {
     .tg {
        width: auto !important;
    }

         .tg col {
            width: auto !important;
        }

    .tg-wrap {
        border-radius: 10px;
        overflow: hidden; /* Keeps corners rounded */
        border: 1px solid #ccc;
        -webkit-overflow-scrolling: touch;
    }
}
.stallions-link {
    color: #22456d;
    text-decoration: underline;
    text-decoration-color: #22456d;
}
.stallions-link:hover {
        color: #a8c9ef;
        text-decoration: underline;
        text-decoration-color: #a8c9ef;
        cursor:pointer;
    }
/* Align all dropdown item text to the right */
.rz-dropdown-panel:has(li[aria-label*="Stud Name"]) .rz-dropdown-item {
    justify-content: flex-end;
    white-space: nowrap;
    min-width:500px;
}

.sortorder-dropdown .rz-dropdown-panel .rz-dropdown-item {
    text-align: right;
}

    /* Optional: keep text on one line */
    .sortorder-dropdown .rz-dropdown-panel .rz-dropdown-item span {
        white-space: nowrap;
        padding-right: 8px; /* Adds spacing if needed */
    }

/* controls expanded row*/
.expanded-stats {
    display: flex;
    flex-wrap: wrap;
    width: auto;
}

@media (max-width: 767.98px) {
    .expanded-stats {
        display: none;
    }

        .expanded-stats.show {
            display: flex;
        }
}
.align-expanded {
    justify-content: flex-end;
}

.align-collapsed {
    justify-content: flex-start;
}


.footer-holder {
    margin-top: 3em;
    padding-top: 2em;
    border-top-color: #22456d !important;
    border-top-width: 1px;
    border-top-style: solid;
    background-color:var(--secondary-color);
}


/* Targets RadzenButton with Outlined variant + Primary style */
/* Default state */
button.rz-button.rz-variant-outlined.rz-primary {
    border: 1px solid #22456d !important;
    color: #22456d !important;
    background-color: transparent !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

    /* Hover state */
    button.rz-button.rz-variant-outlined.rz-primary:hover {
        background-color: #22456d !important;
        color: #fff !important;
        border-color: #22456d !important;
    }

/* Targets RadzenButton with Flat variant + Primary style */
/* Default state */
button.rz-button.rz-variant-flat.rz-primary {
    border: 1px solid #22456d !important;
    color: #fff !important;
    background-color: #22456d !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

    /* Hover state */
button.rz-button.rz-variant-flat.rz-primary:hover {
    background-color: #a8c9ef !important;
    color: #22456d !important;
    border-color: #22456d !important;
}

/* Default tab label styling */
.rz-tabs-tab {
    font-size: 0.75rem; /* Smaller font size */
    color: var(--rz-text-color); /* Optional: adjust if needed */
}

    /* Selected tab styling */
    .rz-tabs-tab.rz-state-active {
        color: #22456d !important; /* Selected tab text color */
        border-bottom: 2px solid #22456d !important; /* Underline color */
    }

    /* Optional: hover effect for tabs */
    .rz-tabs-tab:hover {
        color: #22456d;
        border-bottom: 2px solid #a8c9ef; /* Lighter hover underline */
    }

    /* custom tabs */
/* Radzen Tabs reset */
/* Reset outer tabview container */
.rz-tabview {
    all: unset;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Remove default tab navigation styling */
.rz-tabview-nav {
    all: unset;
    display: flex;
    gap: 0.5rem;
}

    /* Reset individual tab item */
    .rz-tabview-nav > li {
        all: unset;
        cursor: pointer;
        padding: 0;
        border: none;
        background: none;
    }

/* Reset active/selected tab styles */
.rz-tabview-selected {
    all: unset;
    font-weight: bold;
    border-bottom: 2px solid transparent;
}

/* Reset tab panels */
.rz-tabview-panels,
.rz-tabview-panel {
    all: unset;
    padding: 1rem;
}
/* loading state override */
.reconnect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#blazor-error-ui {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    z-index: -1 !important;
}
.image-holder {
    position: relative;
    width: 100%;
/*    height: 200px;*/
    overflow: hidden;
}

.image-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    z-index: 1;
}

.stallion-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.3s ease;

    display:block;
}

.stallion-photo-thumb {
    width: 100%;
/*    height: 100%;
    object-fit: cover;*/
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}
.stallion-photo-thumb.hidden {
    opacity: 0;
}

.stallion-photo-thumb.visible {
    opacity: 1;
    z-index: 2;
}

    .stallion-photo.hidden {
        opacity: 0;
    }

    .stallion-photo.visible {
        opacity: 1;
        z-index: 2;
    }
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.rz-tabview-panels {
    overflow:unset !important;
}
.miniSireListFirstCol {
    background-color: #e1efff;
    border-bottom-left-radius: 3px;
    border-top-left-radius: 3px;
    padding-left:10px;
}

.duplicate {
    font-weight: bold;
}

.NewStyleA {
    background-color: #f0f8ff;
    border-left: 3px solid #007acc;
}

.NewStyleB {
    background-color: #EFD0E2;
    border-left: 3px solid #cc0000;
}

.leadingSireList .rz-datalist > li {
    padding: 0 !important;
    background-color:aqua !important;
}
.stud-panel-leader {
    border-radius: 10px;
    padding:1em;
    background-color: #e1efff;
}
.stud-stallion-row {
    border: solid 1px #e6e5e5;
    border-radius:10px;
    margin-bottom:1em;
}

.stallion-page-holder {
    width: 95vw;
    margin-left: auto;
    margin-right: auto;
    max-width: 1360px;
}

.stallionsmain-leader {
    min-height: 20vh;
    max-height: 30vh;
    background-color: var(--secondary-color);
    overflow: hidden; /* Prevent image overflow */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .stallionsmain-leader img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures image fills container without distortion */
    }

.stallionsmain-leadsearch {
    position: relative;
    z-index: 99;
    padding: 2em;
    margin-top: -40px;
    margin-bottom: 2em;
    width: 95vw;
    margin-left: auto;
    margin-right: auto;
    max-width: 1360px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0px 3px 15px 1px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0px 3px 15px 1px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 3px 15px 1px rgba(0,0,0,0.1);
    border: 1px solid rgb(225, 224, 224);
}

.stllionsmain-grid-holder {
    margin-top: 2em;
    padding: 2em;
    margin-bottom: 20em;
    max-width: 1360px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0px 3px 15px 1px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0px 3px 15px 1px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 3px 15px 1px rgba(0,0,0,0.1);
}

.stallionsmain-rightmenu {
    grid-area: _menu;
}

.stallionsmain-content {
    grid-area: _content;
}

.stllionsdetail-content-holder {
    display: grid;
    grid-template-columns: 9fr 3fr;
    grid-template-rows: max-content;
    grid-template-areas:
        '_header _header'
        '_stud _menu'
        '_data _menu';
    padding-top: 1em;
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 1em;
    margin-bottom: 2em;
    max-width: 1360px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0px 3px 15px 1px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0px 3px 15px 1px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 3px 15px 1px rgba(0,0,0,0.1);
}

@media (max-width: 1000px) {
    .stllionsdetail-content-holder {
        display: grid;
        grid-template-columns: 12fr;
        grid-template-rows: max-content;
        grid-template-areas:
            '_header'
            '_stud'
            '_menu'
            '_data';
    }
}

.stallionsdetail-header {
    grid-area: _header;
    margin-bottom: 1em;
}

.stallionsdetail-stud {
    grid-area: _stud;
}

.stallionsdetail-rightmenu {
    grid-area: _menu;
}

.stallionsdetail-data {
    grid-area: _data;
}

.stallion-entry {
    padding: 1em;
    cursor: pointer;
}

.stallion-actions-menu {
    font-size: 12px;
}

.selected-stallion-entry {
    cursor: pointer;
    background-color: #e1efff;
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
    font-weight: 600;
    padding: 1em;
}

.select-holder {
    background-color: #e1efff;
    padding: 1em;
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
}

.stallion-panel {
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: #e6e5e5;
}

.stallion-panel-alt {
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: #e1efff;
}

.stallion-panel-email {
    background-color: #f2f8ff;
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: #e1efff;
    padding: 1em;
    margin-left: 1em;
}

.stallion-panel-white {
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #B6D6F2;
    padding: 1em;
    margin-right: 1em;
    margin-top: 1em;
}

.stallion-panel-secondary {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: #e1efff;
}

.stallion-image-holder {
    margin: 1em;
}

.stallion-sub-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
}

.stallion-details-bio {
    font-size: 12px;
}

.stallion-callouts .icon-holder {
    background-color: #fff;
    padding-top: 6px;
    padding-left: 6px;
    padding-right: 6px;
    padding-bottom: 0px;
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 1em;
    text-align: center;
}

.stallion-callouts .text-holder {
    margin-left: 1em;
}

.stallion-callouts .sub {
    font-size: 10px;
    font-weight: 500;
    color: var(--primary-color);
}

.stallion-callouts .data {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
}
/*stallion card*/
.stallion-card {
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: #e6e5e5;
    min-height:24em;
    background-color: #ffffff;
}

    .stallion-card .image-holder {
        /* min-width:10vw;*/
        min-height: 10em;
        background-repeat: no-repeat;
        background-position: top center;
        background-size: cover;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    .stallion-card .image-holder-smaller {
        /* min-width:10vw;*/
        min-height: 10em;
        background-repeat: no-repeat;
        background-position: top center;
        background-size: cover;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .stallion-card .image-holder-stud {
        /* min-width:10vw;*/
        min-height: 180px;
        background-repeat: no-repeat;
        background-position: top center;
        background-size: cover;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .stallion-card .data-holder {
        background-color: #fff;
        padding: 1em;
        border-bottom: 1px solid #e6e5e5;
    }

    .stallion-card .actions-holder {
        padding: 1em;
        background-color: #ffffff;
    }

.stallions-grid-link {
    text-decoration: underline;
    cursor: pointer;
}
/*pedigree*/
.pedigree-grid {
}

    .pedigree-grid .tg td {
        padding-top: 1px !important;
        padding-left: 4px !important;
        padding-bottom: 1px !important;
        font-size: 11px;
    }
.raceResultRow {
    font-size: 12.4px;
    line-height: 14.2px;
}
    .raceResultRow:hover {
        cursor: pointer;
        background-color: var(--light-blue);
    }
.raceResultFirstCol {
    background-color: #22456d;
    color:#FFFFFF;
    border-radius: 50%; /* true circle if width = height */
    margin: 6px 6px;
    padding: 4px;
    min-width: 30px; /* adjust based on max char width */
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sitelinks :hover {
    text-decoration:underline;
    cursor:pointer;
}


