﻿.container[role=main] {
    padding-bottom:200px;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

h1, h2  {
    font-weight:700;
}

.external-link {
    color: #6c757d !important;
}


video {
    width: 640px;
    height: 360px;
    background-color: #f1f3f5;
}

footer .logo {
    max-height: 20px;
    width: auto;
}


#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    text-align: center;
    line-height: 50px;
    background: #f5f5f5;
    color: #444;
    cursor: pointer;
    border: 0;
    border-radius: 2px;
    text-decoration: none;
    transition: opacity 0.2s ease-out;
    opacity: 0;
}

    #back-to-top:hover {
        background: #e9ebec;
    }

    #back-to-top.show {
        opacity: 1;
    }


ol.casting-overview {
    list-style: none;
    margin-bottom: 0;
    padding: 0;
}

    ol.casting-overview li {
        /*border-bottom: 1px dotted #999;*/
    }


.breadcrumb {
    padding: 0 !important;
    background-color: transparent !important;
}

.report-problem-link {
    color: rgba(220,53,69,1) !important;
}

.modal {
    overflow-y: auto;
}
ul.new-features li {
    margin-bottom:1em;
}


/* Preloader
-------------------------------------------------- */
body.preloader-site {
    overflow: hidden;
}

.preloader-wrapper {
    height: 100%;
    width: 100%;
    background: #FFF;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999999;
}

    .preloader-wrapper .preloader {
        position: absolute;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        width: 120px;
    }


/* Tables
-------------------------------------------------- */

.clickable-row, .clickable-row-checkbox {
    transition: all 0.1s;
}

    .clickable-row:hover, .clickable-row-checkbox:hover {
        cursor: pointer;
        background-color: rgba(0,123,255,.05) !important;
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
        /*border-left: 2px solid #007bff !important;*/
    }

    .clickable-row td:first-child, .clickable-row-checkbox td:first-child {
        border-left: 2px solid transparent !important;
    }
    .clickable-row:hover td:first-child, .clickable-row-checkbox:hover td:first-child {
        border-left: 2px solid #007bff !important;
    }


/* Speech bubble
-------------------------------------------------- */

.box {
    width: 50%;
    /*margin: 50px auto;*/
    margin: 1em 0;
    background: #00CDBE;
    padding: 20px;
    text-align: center;
    font-weight: 900;
    color: #fff;
    position: relative;
}

.speech-bubble-question:before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    border-left: 10px solid transparent;
    border-right: 10px solid #00CDBE;
    border-top: 10px solid #00CDBE;
    border-bottom: 10px solid transparent;
    left: -19px;
    top: 6px;
}


.speech-bubble-answer:before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    border-left: 10px solid #00CDBE;
    border-right: 10px solid transparent;
    border-top: 10px solid #00CDBE;
    border-bottom: 10px solid transparent;
    right: -19px;
    top: 6px;
}



/* Cards
-------------------------------------------------- */
.card {
    box-shadow: 0 4px 2px 0 hsla(0,0%,74%,.5); /*0 1px 3px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);*/
    transition: box-shadow .25s;
}

    /*
    .card:hover {
        box-shadow: 0 2px 5px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    }
    */

.card-body {
    padding:1.25rem 1.25rem 0;
    /*min-height:200px;*/
}


.card-img-top {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;
    overflow: auto;
}

    .card-img-top img {
        max-height: 100%;
        max-width: 200px;
    }

.card-image-link span {
    position: absolute;
    display: inline-block;
    top: 5px;
    right: 5px;
}

 .card-read-more a {
        text-decoration: none !important;
        padding: 10px;
        font-weight: 600;
        text-transform: uppercase;
        position: absolute;
        bottom: 0;
        left: 0;
        border-top: 1px solid #d4d4d4 !important;
    }



/* Forms
-------------------------------------------------- */

label  {
    font-weight:600;
}

#MultipleApplicants {
    border-left: 1px solid #e0e0e0;
    padding-left: 0.75em;
}



/* Comments
-------------------------------------------------- */


blockquote {
    font-style:italic;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 50px;
    padding-left: 15px;
    padding-right:4rem;
    border-left: 3px solid #ccc;
} 

.dr-comment {
    padding: 1em;
    background-color: rgba(255,255,255,1);
    margin-bottom: 1em;
}


/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px; /* Margin bottom by footer height */
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px; /* Set the fixed height of the footer here */
    line-height: 60px; /* Vertically center the text there */
    background-color: #f5f5f5;
}

    .footer .logo {
        width: 75px;
        height: 16px;
    }


.dataTableHome-filter .active {
    font-weight:bold;
}
.dataTableOld-filter .active {
    font-weight: bold;
}


/* Switches
-------------------------------------------------- */
.switch {
    font-size: 1rem;
    position: relative;
}

    .switch input {
        position: absolute;
        height: 1px;
        width: 1px;
        background: none;
        border: 0;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        overflow: hidden;
        padding: 0;
    }

        .switch input + label {
            position: relative;
            min-width: calc(calc(2.375rem * .8) * 2);
            border-radius: calc(2.375rem * .8);
            height: calc(2.375rem * .8);
            line-height: calc(2.375rem * .8);
            display: inline-block;
            cursor: pointer;
            outline: none;
            user-select: none;
            vertical-align: middle;
            text-indent: calc(calc(calc(2.375rem * .8) * 2) + .5rem);
        }

            .switch input + label::before,
            .switch input + label::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: calc(calc(2.375rem * .8) * 2);
                bottom: 0;
                display: block;
            }

            .switch input + label::before {
                right: 0;
                background-color: #dee2e6;
                border-radius: calc(2.375rem * .8);
                transition: 0.2s all;
            }

            .switch input + label::after {
                top: 2px;
                left: 2px;
                width: calc(calc(2.375rem * .8) - calc(2px * 2));
                height: calc(calc(2.375rem * .8) - calc(2px * 2));
                border-radius: 50%;
                background-color: white;
                transition: 0.2s all;
            }

        .switch input:checked + label::before {
            background-color: #08d;
        }

        .switch input:checked + label::after {
            margin-left: calc(2.375rem * .8);
        }

        .switch input:focus + label::before {
            outline: none;
            box-shadow: 0 0 0 0.2rem rgba(0, 136, 221, 0.25);
        }

        .switch input:disabled + label {
            color: #868e96;
            cursor: not-allowed;
        }

            .switch input:disabled + label::before {
                background-color: #e9ecef;
            }

    .switch.switch-sm {
        font-size: 0.875rem;
    }
    .switch.switch-sm label {
        font-size: 1rem;
    }

        .switch.switch-sm input + label {
            min-width: calc(calc(1.9375rem * .8) * 2);
            height: calc(1.9375rem * .8);
            line-height: calc(1.9375rem * .8);
            text-indent: calc(calc(calc(1.9375rem * .8) * 2) + .5rem);
        }

            .switch.switch-sm input + label::before {
                width: calc(calc(1.9375rem * .8) * 2);
            }

            .switch.switch-sm input + label::after {
                width: calc(calc(1.9375rem * .8) - calc(2px * 2));
                height: calc(calc(1.9375rem * .8) - calc(2px * 2));
            }

        .switch.switch-sm input:checked + label::after {
            margin-left: calc(1.9375rem * .8);
        }

    .switch.switch-lg {
        font-size: 1.25rem;
    }

        .switch.switch-lg input + label {
            min-width: calc(calc(3rem * .8) * 2);
            height: calc(3rem * .8);
            line-height: calc(3rem * .8);
            text-indent: calc(calc(calc(3rem * .8) * 2) + .5rem);
        }

            .switch.switch-lg input + label::before {
                width: calc(calc(3rem * .8) * 2);
            }

            .switch.switch-lg input + label::after {
                width: calc(calc(3rem * .8) - calc(2px * 2));
                height: calc(calc(3rem * .8) - calc(2px * 2));
            }

        .switch.switch-lg input:checked + label::after {
            margin-left: calc(3rem * .8);
        }

    .switch + .switch {
        margin-left: 1rem;
    }


.card-input-element {
    display: none;
}

.card-input {
    text-align: center;
    width: 180px;
    height: 100px;
    margin: 10px;
    padding: 10px;
    background-color: #FFF;
    border-radius: 4px;
    border-color: #e7f0fa;
}

.card-input-element + .card-input {
    box-shadow: 0 0 1px 1px #707070;
    background-color: #fff;
}


.card-input-element:checked + .card-input {
    box-shadow: 0 0 1px 1px rgba(0,123,255,1);
    background-color: #E7F0FA;
}


/* Quill Editor
-------------------------------------------------- */
.quill-editor {
    background-color: #fff;
    min-height: 200px;
}
.quill-editor .ql-editor {
    min-height: 180px;
}


/* ==========================================================================
   DR Analyse Portal – application shell & horizontal navigation
   ========================================================================== */
:root {
    /* Primary actions use a calm DR blue / muted indigo instead of red, so the
       main CTAs no longer read as "danger". Red is reserved for validation and
       destructive actions only (see --dr-danger and Bootstrap's .btn-danger). */
    --dr-primary: #2b4a8b;
    --dr-primary-dark: #223a6e;
    --dr-primary-soft: rgba(43, 74, 139, .1);
    --dr-danger: #cc2a2a;
    --dr-danger-dark: #a11f1f;
    /* Kept for backwards-compatibility with existing rules; now aliased to danger. */
    --dr-red: var(--dr-danger);
    --dr-red-dark: var(--dr-danger-dark);
    --dr-ink: #1d1d1f;
    --dr-muted: #6c757d;
    --dr-bg: #f4f5f7;
    --dr-border: #e5e7eb;
}

body {
    background-color: var(--dr-bg);
    color: var(--dr-ink);
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header ------------------------------------------------------------------ */
.app-header {
    background: #ffffff;
    border-bottom: 1px solid var(--dr-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: .5rem 1.25rem;
    max-width: 1600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--dr-ink);
    font-weight: 700;
    white-space: nowrap;
}

.app-brand-logo {
    height: 34px;
    width: auto;
}

.app-brand-text {
    font-size: 1.05rem;
    letter-spacing: .2px;
}

/* Body layout: sidebar + main -------------------------------------------- */
.app-body {
    display: flex;
    align-items: flex-start;
    flex: 1 1 auto;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

.app-sidebar {
    flex: 0 0 234px;
    width: 234px;
    align-self: stretch;
    background: #ffffff;
    border-right: 1px solid var(--dr-border);
    padding: 1rem .75rem;
    position: sticky;
    top: 51px;
    max-height: calc(100vh - 51px);
    overflow-y: auto;
}

/* Grouped side navigation ------------------------------------------------- */
.app-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
}

.app-nav-group {
    margin-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.app-nav-heading {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--dr-muted);
    padding: .25rem .7rem;
    margin-bottom: .1rem;
}

.app-nav-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .7rem;
    border-radius: 8px;
    color: #3a3a3c;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.15;
    transition: background-color .12s ease, color .12s ease;
}

.app-nav-link:hover {
    background: var(--dr-primary-soft);
    color: var(--dr-primary-dark);
}

.app-nav-link.active {
    background: var(--dr-primary-soft);
    color: var(--dr-primary-dark);
    font-weight: 600;
}

.app-nav-icon {
    font-size: 1rem;
    line-height: 1;
}

.app-nav-badge {
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: #ececec;
    color: var(--dr-muted);
    border-radius: 999px;
    padding: .1rem .4rem;
    margin-left: .1rem;
}

/* User area --------------------------------------------------------------- */
.app-header-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    white-space: nowrap;
    margin-left: auto;
}

.app-user-name {
    color: var(--dr-muted);
    font-size: .85rem;
}

.app-user-logout {
    color: var(--dr-red);
    font-size: .85rem;
    text-decoration: none;
    font-weight: 600;
}

.app-user-logout:hover {
    text-decoration: underline;
}

/* Main content ------------------------------------------------------------ */
.app-main {
    flex: 1 1 auto;
    min-width: 0;
}

.app-content {
    max-width: 1360px;
    margin: 0 auto;
    padding: 1.5rem 1.75rem 3rem;
}

.app-content h1 {
    font-size: 1.6rem;
}

/* Cards get a slightly softer look across the portal */
.app-content .card {
    border: 1px solid var(--dr-border);
    border-radius: 12px;
}

.app-content .btn-primary {
    background-color: var(--dr-primary);
    border-color: var(--dr-primary);
}

.app-content .btn-primary:hover,
.app-content .btn-primary:focus {
    background-color: var(--dr-primary-dark);
    border-color: var(--dr-primary-dark);
}

.app-content .btn-outline-primary {
    color: var(--dr-primary);
    border-color: var(--dr-primary);
}

.app-content .btn-outline-primary:hover {
    background-color: var(--dr-primary);
    border-color: var(--dr-primary);
    color: #fff;
}

.app-content .text-primary {
    color: var(--dr-primary) !important;
}

/* Chips and other soft-primary accents share the calm blue. */
.app-content .bg-primary.bg-opacity-10 {
    background-color: var(--dr-primary-soft) !important;
}

.app-content .border-primary {
    border-color: var(--dr-primary) !important;
}

/* Sample builder – lighter filter disclosures (#14) ------------------------ */
/* Replaces the boxed card+card-header accordions with quiet disclosure rows:
   a single divider, a chevron and a label, and generous whitespace. No borders
   around every field. */
.filter-section {
    border-bottom: 1px solid var(--dr-border);
    padding: .25rem 0;
}

.filter-section:last-child {
    border-bottom: 0;
}

.filter-disclosure {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: 0;
    padding: .6rem .1rem;
    color: var(--dr-ink);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
}

.filter-disclosure:hover {
    color: var(--dr-primary-dark);
}

.filter-disclosure .filter-chevron {
    color: var(--dr-muted);
    font-size: .7rem;
    transition: transform .12s ease;
}

.filter-body {
    padding: 0 .1rem .75rem;
}

/* Sample builder – richer, roomier stat card (#5 / #11) --------------------- */
.stat-card .stat-headline {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--dr-primary);
}

.stat-breakdown-label {
    font-size: .75rem;
    color: var(--dr-muted);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.stat-bar-track {
    background: #eef0f3;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.stat-bar-fill {
    background: var(--dr-primary);
    height: 100%;
    border-radius: 999px;
}

.stat-bar-fill.alt {
    background: #6c8fd6;
}

@media (max-width: 991.98px) {
    .app-body {
        flex-direction: column;
    }
    .app-sidebar {
        flex-basis: auto;
        width: 100%;
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--dr-border);
    }
    .app-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: .35rem 1rem;
    }
    .app-nav-group {
        margin-top: 0;
    }
    .app-header-user {
        margin-left: auto;
    }
}

/* Dual-range slider ------------------------------------------------------- */
.range-slider {
    --range-track-h: 4px;
    --range-thumb: 18px;
}

.range-slider-track-wrap {
    position: relative;
    height: var(--range-thumb);
    display: flex;
    align-items: center;
}

.range-slider-rail,
.range-slider-fill {
    position: absolute;
    height: var(--range-track-h);
    border-radius: 999px;
    top: 50%;
    transform: translateY(-50%);
}

.range-slider-rail {
    left: 0;
    right: 0;
    background-color: #d7dbe0;
}

.range-slider-fill {
    background-color: #0d6efd;
}

.range-slider-input {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    height: var(--range-thumb);
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
}

/* The high input is later in the DOM and would otherwise always sit on top and
   capture the low thumb. Raising the low input when the thumbs are close keeps the
   lower bound draggable. */
.range-slider-input.range-slider-input-raised {
    z-index: 3;
}

.range-slider-input:focus {
    outline: none;
}

/* Only the thumbs should receive pointer events so both handles are usable. */
.range-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: var(--range-thumb);
    height: var(--range-thumb);
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #0d6efd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    cursor: pointer;
    margin-top: 0;
}

.range-slider-input::-moz-range-thumb {
    pointer-events: auto;
    width: var(--range-thumb);
    height: var(--range-thumb);
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #0d6efd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    cursor: pointer;
}

.range-slider-input::-webkit-slider-runnable-track {
    background: transparent;
    border: none;
}

.range-slider-input::-moz-range-track {
    background: transparent;
    border: none;
}

.range-slider-input:focus-visible::-webkit-slider-thumb {
    outline: 2px solid #0a58ca;
    outline-offset: 2px;
}

.range-slider-input:focus-visible::-moz-range-thumb {
    outline: 2px solid #0a58ca;
    outline-offset: 2px;
}

.range-slider-endcap {
    max-width: 45%;
}

/* Reusable semantic filter controls ---------------------------------------- */
/* Segmented single-select (SegmentedChoice): boolean / small enumerations.    */
.segmented {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
}

.segmented-option {
    flex: 1 1 auto;
    min-width: fit-content;
    border: 1px solid var(--dr-border);
    background: #fff;
    color: var(--dr-ink);
    border-radius: 999px;
    padding: .3rem .7rem;
    font-size: .8rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

.segmented-option:hover {
    border-color: var(--dr-primary);
    color: var(--dr-primary-dark);
}

.segmented-option.active {
    background: var(--dr-primary);
    border-color: var(--dr-primary);
    color: #fff;
    font-weight: 600;
}

/* Ordinal chips (OrdinalRangeChips): ordered categories as a contiguous span. */
.chip-toggle {
    border: 1px solid var(--dr-border);
    background: #fff;
    color: var(--dr-ink);
    border-radius: 999px;
    padding: .3rem .7rem;
    font-size: .8rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

.chip-toggle:hover {
    border-color: var(--dr-primary);
    color: var(--dr-primary-dark);
}

.chip-toggle.active {
    background: var(--dr-primary);
    border-color: var(--dr-primary);
    color: #fff;
    font-weight: 600;
}

/* Human-readable group summary (#7). */
.group-summary-card {
    border-left: 3px solid var(--dr-primary);
}

.group-summary-text {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--dr-ink);
}
