.badge {
    margin-left: 1px;
}

    .bg-secondary {
    color: white !important;
}
.bg-danger {
    color: white !important;
}
.scrollable-body {
    display: block; /* allow height and overflow to take effect */
    max-height: 600px; /* pick whatever fixed or max-height you need */
    overflow-y: auto; /* vertical scrollbar only when needed */
    overflow-x: auto; /* prevent a horizontal scrollbar */
}

.badge{
    font-size:100% !important;
}

/* Soft Badge Pattern - Use these instead of solid bg-* badges */
.badge-soft-success {
    background-color: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    padding: 0.35em 0.75em;
}

.badge-soft-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    padding: 0.35em 0.75em;
}

.badge-soft-warning {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeeba;
    border-radius: 12px;
    padding: 0.35em 0.75em;
}

.badge-soft-info {
    background-color: #d1ecf1 !important;
    color: #0c5460 !important;
    border: 1px solid #bee5eb;
    border-radius: 12px;
    padding: 0.35em 0.75em;
}

.badge-soft-secondary {
    background-color: #e9ecef !important;
    color: #495057 !important;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 0.35em 0.75em;
}

@keyframes homeswooshIn {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.homeswoosh-panel {
    opacity: 0;
    animation: homeswooshIn 0.8s ease forwards;
}


.inactive-group-row {
    color: #6c757d;
}

.emailfieldpicker {
    /*  margin-top:6rem;*/
    margin-bottom: .2rem;
    border: 1px solid #fdb913;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
}

.nwcontentcard {
    cursor: move;
    padding-top: 1rem;
}

.talentcontentcontainer {
    cursor: move;
    padding-bottom: 5rem;
}

.nwactionscard{
    margin-top: 1rem;
}
.salesitemcard {
    cursor: move;
    padding-top: 1rem;
    min-height: 8rem !important;
}
.surveyquestioncard {
    cursor: move;
    padding-top: .4rem;
}
.changelogoSA {
    top: -30px;
    text-shadow: 0px 0px 0px white;
}
.wraplong {
    max-width: 200px;
    overflow: auto;
}
.pop-image {
    width: 100%; /* Adjust width as needed */
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for effects */
    border: 1px solid #333; /* Solid border, you can choose any color */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Enhances shadow on hover for 3D effect */
    cursor: pointer; /* Changes the cursor to indicate interactivity */
}

    .pop-image:hover {
        transform: scale(1.05); /* Slightly enlarges the image on hover */
    }


.tab-space {
    margin-left: 40px; /* You can adjust the space to suit your layout */
}
.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

    .video-responsive iframe {
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        position: absolute;
    }

/* Move down content because we have a fixed navbar that is 50px tall */
.nav-tabs {
    margin-left: 2em;
}

.sub-content {
    border-left: 1px #3d1a6f solid;
    border-top: 0px !important;
    min-height: 75vh;
    padding-left: 5px;
    height: 100%;
}

@media screen and (max-width: 480px) {
    .nav-tabs > li {
        float: none;
    }
}
/* for tabs */
.nav-tabs .nav-link {
    /* background: -moz-linear-gradient(top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%); 
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.65)), color-stop(100%,rgba(0,0,0,0))); 
    background: -webkit-linear-gradient(top, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); 
    background: -o-linear-gradient(top, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); 
    background: -ms-linear-gradient(top, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); 
    background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 ); 
    */
    color: #3d1a6f;
    background-color: white;
    border-top: 1px solid #3d1a6f;
    border-bottom: 1px solid #3d1a6f;
    border-left: 1px solid #3d1a6f;
    border-right: 1px solid #3d1a6f;
    display: inline-flex;
    align-items: center;
    vertical-align: top;
}

    .nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
        background-color: #fdb913 !important;
        color: black;
        font-weight: 500;
        border-top: 1px solid #3d1a6f !important;
        border-bottom: 1px solid #fdb913 !important;
        border-left: 1px solid #3d1a6f !important;
        border-right: 1px solid #3d1a6f !important;
    }

    .nav-pills .nav-link.active, .nav-pills .show > .nav-link {
        background-color: #fdb913 !important;
        color: black;
        font-weight: 500;
    }

    /* Vertical Nav Pills - Modern Style */
    .nav.flex-column.nav-pills .nav-link {
        color: #666;
        padding: 0.75rem 1.25rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        transition: all 0.2s ease;
        font-weight: 500;
        border-left: 3px solid transparent;
    }
    .nav.flex-column.nav-pills .nav-link:hover {
        background: #f8f4fc;
        color: #3d1a6f;
        border-left-color: #fdb913;
    }
    .nav.flex-column.nav-pills .nav-link.active {
        background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%) !important;
        color: #fff !important;
        border-left-color: #fdb913;
    }

    .nav-tabs {
       border-bottom: 0px;

}
    .nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {
        border-top: 1px solid #3d1a6f !important;
        border-bottom: 1px solid #fdb913 !important;
        border-left: 1px solid #3d1a6f !important;
        border-right: 1px solid #3d1a6f !important;
    }
    .nav-tabs:active .nav-link:active {
        border-top: 1px solid #3d1a6f !important;
        border-bottom: 1px solid #fdb913 !important;
        border-left: 1px solid #3d1a6f !important;
        border-right: 1px solid #3d1a6f !important;
    }
    .nav-tabs:focus .nav-link:focus {
        border-top: 1px solid #3d1a6f !important;
        border-bottom: 1px solid #fdb913 !important;
        border-left: 1px solid #3d1a6f !important;
        border-right: 1px solid #3d1a6f !important;
    }

/* override bootstrap for active tabs*/
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: white;
    background-color: white;
    border: 0px solid #ed174c;
    border-bottom-color: white;
    font-weight: 500;
}

.nav-tabs > li > a {
    border: 0px solid black;
}


.makemiddle {
    text-align: center !important;
}
/* for preloader */
#preloader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    text-align: center;
    color: #000;
}

    #preloader div {
        width: 30px;
        margin: auto;
        height: 30px;
        text-align: center;
        border: 4px solid #111;
        overflow: hidden;
        border: none;
        font-size: 12px;
    }

#preloader_image {
    position: relative;
    left: 0px;
    top: 0px;
    content: url('/images/loading.svg');
}

/*display fade screen when leaving or loading another link*/
#overlayleaving {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: #000;
    opacity: 0.6;
    filter: alpha(opacity=60);
}

#leaving {
    width: 50px;
    height: 57px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -28px 0 0 -25px;
    z-index: 2000;
    content: url('/images/loading.svg');
}

.pdfblock {
    display: block;
    width: 100%;
    vertical-align: middle;
    background-color: #eeeeee;
    border: 1px solid #cccccc;
    padding: 5px 10px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 3px;
    color: black;
}

.invoicetotal {
    border-top: 1px solid black;
}

.invoicetotalbottom {
    border-bottom: 5px double black;
}

input[type=checkbox] {
    zoom: 1;
}

/* Reset zoom for Bootstrap form checkboxes - they handle their own sizing */
.form-check-input {
    zoom: 1;
}

.invoice {
    margin-bottom: 20px;
    background-color: #ffffff;
    border: 1px solid transparent;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.gridviewboldlarge {
    font-size: 24px;
    font-weight: 500;
}

.gridnumberformat {
    text-align: right;
}

.invoice-body {
    padding: 15px;
    min-height:4cm;
}

    .invoice-body:before,
    .invoice-body:after {
        display: table;
        content: " ";
    }

    .invoice-body:after {
        clear: both;
    }

    .invoice-body:before,
    .invoice-body:after {
        display: table;
        content: " ";
    }

    .invoice-body:after {
        clear: both;
    }

.invoice > .list-group {
    margin-bottom: 0;
}

    .invoice > .list-group .list-group-item {
        border-width: 1px 0;
    }

        .invoice > .list-group .list-group-item:first-child {
            border-top-right-radius: 0;
            border-top-left-radius: 0;
        }

        .invoice > .list-group .list-group-item:last-child {
            border-bottom: 0;
        }

.invoice-heading + .list-group .list-group-item:first-child {
    border-top-width: 0;
}

.invoice > .table {
    margin-bottom: 0;
}

.invoice > .invoice-body + .table {
    border-top: 1px solid #fdb913;
}

.invoice-heading {
    padding: 5px 7px;
    border-bottom: 1px solid transparent;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
    font-size:11pt;
}

.invoice-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
}

    .invoice-title > a {
        color: inherit;
    }

.invoice-footer {
    padding: 5px 7px;
    background-color: #3d1a6f;
    border-top: 1px solid black;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}

.invoice-group .invoice {
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 4px;
}

    .invoice-group .invoice + .invoice {
        margin-top: 5px;
    }

.invoice-group .invoice-heading {
    border-bottom: 0;
}

    .invoice-group .invoice-heading + .invoice-collapse .invoice-body {
        border-top: 1px solid black;
    }

.invoice-group .invoice-footer {
    border-top: 0;
}

    .invoice-group .invoice-footer + .invoice-collapse .invoice-body {
        border-bottom: 1px solid black;
    }

.invoice-default {
    border-color: #ccc;
}

    .invoice-default > .invoice-heading {
        color: black;
        background-color: #FFFFFF;
        border-color: #ccc;
    }

        .invoice-default > .invoice-heading + .invoice-collapse .invoice-body {
            border-top-color: black;
        }

    .invoice-default > .invoice-footer + .invoice-collapse .invoice-body {
        border-bottom-color: black;
    }

.invoice-primary {
    border-color: black;
}

    .invoice-primary > .invoice-heading {
        color: #ffffff;
        background-color: black;
        border-color: black;
    }

        .invoice-primary > .invoice-heading + .invoice-collapse .invoice-body {
            border-top-color: black;
        }

    .invoice-primary > .invoice-footer + .invoice-collapse .invoice-body {
        border-bottom-color: black;
    }

.invoice-success {
    border-color: black;
}

    .invoice-success > .invoice-heading {
        color: #FFFFFF;
        background-color: black;
        border-color: black;
    }

        .invoice-success > .invoice-heading + .invoice-collapse .invoice-body {
            border-top-color: black;
        }

    .invoice-success > .invoice-footer + .invoice-collapse .invoice-body {
        border-bottom-color: black;
    }

.invoice-warning {
    border-color: #fbeed5;
}

    .invoice-warning > .invoice-heading {
        color: #c09853;
        background-color: #fcf8e3;
        border-color: #3d1a6f;
    }

        .invoice-warning > .invoice-heading + .invoice-collapse .invoice-body {
            border-top-color: #3d1a6f;
        }

    .invoice-warning > .invoice-footer + .invoice-collapse .invoice-body {
        border-bottom-color: #3d1a6f;
    }

.invoice-danger {
    border-color: #3d1a6f;
}

    .invoice-danger > .invoice-heading {
        color: #b94a48;
        background-color: #f2dede;
        border-color: #3d1a6f;
    }

        .invoice-danger > .invoice-heading + .invoice-collapse .invoice-body {
            border-top-color: #3d1a6f;
        }

    .invoice-danger > .invoice-footer + .invoice-collapse .invoice-body {
        border-bottom-color: #3d1a6f;
    }

.invoice-info {
    border-color: #3d1a6f;
}

    .invoice-info > .invoice-heading {
        color: #3d1a6f;
        background-color: #FFFFFF;
        border-color: #cccccc;
    }

        .invoice-info > .invoice-heading + .invoice-collapse .invoice-body {
            border-top-color: #cccccc;
        }

    .invoice-info > .invoice-footer + .invoice-collapse .invoice-body {
        border-bottom-color: #cccccc;
    }



    a:hover, a:focus {
        color: rgba(0,0,0,0.65);
        text-decoration: none;
    }

/* update panel refresh screens*/
.overlay {
    height: 100% !important;
    /*background: url('/images/loading.svg') no-repeat 50% 50%;*/
    width: 100% !important;
    position: fixed;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    display: none;
    z-index: 10000001 !important;
    background-color: rgba(0,0,0,0.40);
}

.modalHighLevel {
    z-index: 10000002 !important;
}
/**/

.page-loader {
    position: absolute;
    content: url('/images/loading.svg');
    display: none;
    z-index: 10000001 !important;
    opacity: 1.0;
    left: 50vw !important;
    top: 20vh !important;
    width: 50px;
}

/* Global page loader - single centered overlay (December 2025) */
.page-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000001;
}
.page-loader-spinner {
    width: 50px;
    height: 50px;
    background: url('/images/loading.svg') no-repeat center center;
    background-size: contain;
}

.mybox {
    background-color: #faeeee;
    padding: 5px;
    border: 5px solid darkred;
    margin: 35px;
    -webkit-border-radius: 1px;
    -moz-border-radius: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/*master page notification and calendar styling*/
.nonotification {
    width: 0px;
    height: 0px;
    visibility: hidden;
}

.notifications {
    color: white;
    font-weight: 500;
    font-size: 12px;
    margin-left: -6px;
    font-family: 'Outfit', sans-serif;
    background: red;
    border-color: white;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom: solid 5px;
    border-left: solid 5px;
    border-right: solid 5px;
    border-top: solid 5px;
    border-width: 2px;
    width: 20px;
    height: 20px;
    text-align: center;
}
/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.blink_me {
    -webkit-animation-name: blinker;
    -webkit-animation-duration: 1s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    -moz-animation-name: blinker;
    -moz-animation-duration: 1s;
    -moz-animation-timing-function: linear;
    -moz-animation-iteration-count: infinite;
    animation-name: blinker;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.text-large {
    font-size: 20px;
}

.RRQuestion {
    font-weight: 500;
    color: darkkhaki;
    font-size: 20px;
}

.RRAnswer {
    font-weight: 500;
    color: darkkhaki;
    font-size: 20px;
}

@-moz-keyframes blinker {
    0% {
        opacity: 1.0;
    }

    50% {
        opacity: 0.0;
    }

    100% {
        opacity: 1.0;
    }
}

@-webkit-keyframes blinker {
    0% {
        opacity: 1.0;
    }

    50% {
        opacity: 0.0;
    }

    100% {
        opacity: 1.0;
    }
}

@keyframes blinker {
    0% {
        opacity: 1.0;
    }

    50% {
        opacity: 0.0;
    }

    100% {
        opacity: 1.0;
    }
}
/*working area*/

.body-content {
    padding-top: 60px;
    padding-left: 15px;
    padding-right: 15px;
    color: #3d1a6f;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 14px;
}
.nwbody-content {
    /*padding-top: 90px;*/
    padding-left: 15px;
    padding-right: 15px;
    /*color: #3d1a6f;*/
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 14px;
}
.color-gridheader {
    background-color: azure;
}

.hidden-gridcolumn {
    display: none;
}

input[type='checkbox']:hover {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}


.gvvgridhide {
    display: none;
    color: azure;
    background-color: blue;
}

.text-bold {
    font-weight: 500;
}

.text-total {
    border-bottom: double;
    border-top: solid 1px black;
}

.text-subtotal {
    border-top: solid 1px black;
}

.gvvdisplaynone {
    display: none;
}

.gvvdisplayinline {
    display: inline;
}
/* fix for the Ajax ComboBox issue*/
.WindowsStyle .ajax__combobox_itemlist {
    position: inherit !important;
}
/* change textbox to be white and borderless*/
.form-control[PDFFormat],
fieldset[disabled] .form-control {
    cursor: not-allowed;
    background-color: #ffffff;
    border: none;
}

/* used to enable gridviews to wrap text when there is no spaces*/
.gvvgridwordwrap {
    word-wrap: break-word;
    max-width: 300px;
}
/* end wrap text for grdiview*/

/* testing for styling the ajax dropdown extender*/
.completionList {
    border: solid 1px Gray;
    margin: 0px;
    padding: 3px;
    height: 120px;
    overflow: auto;
    background-color: #FFFFFF;
}

.listItem {
    color: #191919;
}

.itemHighlighted {
    background-color: #ADD6FF;
}
/* end ajax dropdown extender*/

/* used to control scheduling calendar*/
.normal {
    TEXT-ALIGN: center;
    background-color: #4d4d4d;
    border-color: #3d1a6f;
    color: white;
}

.normal2 {
    TEXT-ALIGN: center;
    background-color: #4d4d4d;
    border-color: #3d1a6f;
    color: white;
}

    .normal2 a {
        color: white;
    }

.activecal {
    background-color: #fdb913 !important;
    border-color: #fdb913 !important;
    color: black !important;
}

    .activecal a {
        color: black !important;
    }

    .heading {
        text-align: center;
        font-family: 'Outfit', sans-serif;
        font-weight: 400;
        font-size: 1.2em;
        text-transform: uppercase;
        color: white;
        background-color: #fdb913;
        border-color: #3d1a6f;
        -webkit-border-radius: 0px;
        -moz-border-radius: 0px;
        border-top: 0px;
        border-left: 0px;
        border-right: 0px;
        border-bottom: 0px;
    }

.empty {
    BACKGROUND-COLOR: rgb(246,248,249);
    border-left: 1px dotted grey;
    border-right: 1px dotted grey;
    border-top: 1px dotted grey;
    border-bottom: 1px dotted grey;
}

.datebar {
    text-align: center;
    vertical-align: top;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 1em;
    color: black;
    background-color: rgb(246,248,249);
    border-color: rgba(152,190,222,1);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-top: 3px;
    border-left: 3px;
    border-right: 3px;
    border-bottom: 3px;
    width: 80px;
}

.gvv-fontsmall {
    font-size: xx-small;
}

/* ------------END used to control scheduling calendar*/

label.valid {
    width: 24px;
    height: 24px;
    background: url(/images/valid.png) center center no-repeat;
    display: inline-block;
    text-indent: -9999px;
}

label.error {
    font-weight: 500;
    color: red;
    padding: 2px 8px;
    margin-top: 2px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 100%;
}

.textbox {
    text-align: center;
    padding: 0;
    border: 1px solid #cdcdcd;
    border-color: rgba(0,0,0,.15);
    background-color: #f0f0f0;
}

    .textbox.edit {
        text-align: left;
        padding: 0;
        border: 1px solid #cdcdcd;
        border-color: rgba(0,0,0,.15);
        background-color: #fcf8e3;
    }

    .textbox.bold {
        text-align: left;
        padding: 0;
        border: 1px solid #cdcdcd;
        border-color: rgba(0,0,0,.15);
        background-color: #fcf8e3;
        font-weight: 500;
    }

    .textbox.left {
        text-align: left;
        padding: 0;
        border: 1px solid #cdcdcd;
        border-color: rgba(0,0,0,.15);
        background-color: #f0f0f0;
        width: 80%;
    }

    .textbox.borderless {
        text-align: left;
        padding: 0;
        border: 0px;
        border-color: rgba(0,0,0,0);
        background-color: white;
    }


@charset "utf-8";
/* CSS Document */
body {
    /*background-image: url(/images/background1.jpg);
background-repeat: no-repeat;
 background-position: center center;
 background-attachment: fixed;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;

        --------- main background colour and font weight --- working area
    */
    background: white;
    text-align: left;
    color: black;
    font-weight: 400;
}


.btn-xl {
    height: 200px;
    width: 100%;
    padding-top: 50px;
    padding-right: 1px;
    padding-left: 1px;
}

.maincontainer {
    color: #343136;
    min-height:70vh;
}

.maincolumn {
    color: #343136;
    padding-top: 2px;
    padding-left: 2px;
}

.tab-content {
    background-color: #ffffff;
    border-top: 1px solid #3d1a6f;
    /*min-height: 75vh;
     border-radius: 4px;
    -webkit-box-shadow: 2px 1px 8px 0px rgba(61, 26, 111, 0.5);
    box-shadow: 2px 1px 8px 0px rgba(61, 26, 111, 0.5);
    background: rgba(253,185,19, 0.1);
    border-top-right-radius: 25px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    */
}
.subtab {
    background-color: #ffffff;
    border: 1px solid transparent;
    border-radius: 0px;
    -webkit-box-shadow: 0px 0px 0px 0px ;
    box-shadow: 0px 0px 0px 0px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    min-height: 75vh;
}
.subtabpanel {
    padding-left: 0px;
    padding-right: 0px;
    border-left: 1px solid rgba(61, 26, 111, 0.5);
}
.tab-content-small {
    min-height:70% !important;
}
.tabborder {
    border-top: 1px solid #3d1a6f;
    border-top-right-radius: 0px;
}

.softcorners {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
}

.panel-default > .panel-heading {
    background-color: #ed174c;
    color: white;
    font-weight: 500;
    text-transform: capitalize;
}

.panel-title > a {
    /* background-color: #ed174c;
    color: white;*/
    font-weight: 500;
    text-transform: capitalize;
}

panel-title > a :hover {
    background-color: #ed174c;
    color: white;
    font-weight: 500;
    text-transform: capitalize;
}

.table {
    margin-left: 5px;
    width: 99%;
}

.white-text {
       color: #3d1a6f;
}

.clientlogo {
    background-color: white;
    display:inline-block;
}

.row {
    margin-left: 0px;
    margin-right: 0px;
}
.table-mediapack {
    border: solid 1px #7d1d61 !important;
    border: none;
}

    .table-mediapack > tbody > tr:hover > td,
    .table-mediapack > tbody > tr:hover {
        background-color: #fff !important;
        color: black !important;
        border: none;
    }

    .table-mediapack th a {
        color: #fff !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        border: none;
    }

    .table-mediapack th {
        border: none;
    }

    .table-mediapack > thead > tr > th,
    .table-mediapack > tbody > tr > th,
    .table-mediapack > tfoot > tr > th,
    .table-mediapack > thead > tr > td,
    .table-mediapack > tbody > tr > td,
    .table-mediapack > tfoot > tr > td {
        border: 1px solid white !important;
        border-top-color: rgb(255, 255, 255);
        border-style: none;
        border-top: 1px solid white !important;
        border-right-color: rgb(255, 255, 255);
        border-right-style: solid;
        border-right-width: 1px;
        border-bottom-color: rgb(255, 255, 255);
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-left-color: rgb(255, 255, 255);
        border-left-style: solid;
        border-left-width: 1px;
        border-image-source: initial;
        border-image-slice: initial;
        border-image-width: initial;
        border-image-outset: initial;
        border-image-repeat: initial;
        border: none;
    }

    .table-mediapack thead > tr > th, .table tbody > tr > th, .table tfoot > tr > th, .table thead > tr > td, .table tbody > tr > td, .table tfoot > tr > td {
        border-top: 1px solid white !important;
    }

.table-whiteborder {
    border: solid 1px #7d1d61 !important;
}

    .table-whiteborder > tbody > tr:hover > td,
    .table-whiteborder > tbody > tr:hover {
        background-color: #fff !important;
        color: black !important;
    }

    .table-whiteborder th a {
        color: #fff !important;
        text-decoration: none !important;
        font-weight: 500 !important;
    }

    .table-whiteborder th {
        background-color: white !important;
        color: white !important;
    }

    .table-whiteborder > thead > tr > th,
    .table-whiteborder > tbody > tr > th,
    .table-whiteborder > tfoot > tr > th,
    .table-whiteborder > thead > tr > td,
    .table-whiteborder > tbody > tr > td,
    .table-whiteborder > tfoot > tr > td {
        border: 1px solid white !important;
        border-top-color: rgb(255, 255, 255);
        border-top-style: solid;
        border-top-width: 1px;
        border-right-color: rgb(255, 255, 255);
        border-right-style: solid;
        border-right-width: 1px;
        border-bottom-color: rgb(255, 255, 255);
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-left-color: rgb(255, 255, 255);
        border-left-style: solid;
        border-left-width: 1px;
        border-image-source: initial;
        border-image-slice: initial;
        border-image-width: initial;
        border-image-outset: initial;
        border-image-repeat: initial;
    }


.table-clearborder {
    border: 0px !important;
}

    .table-clearborder > tbody > tr:hover > td,
    .table-clearborder > tbody > tr:hover {
        background-color: transparent !important;
        color: black !important;
    }

    .table-clearborder th a {
        color: transparent !important;
        text-decoration: none !important;
        font-weight: 500 !important;
    }

    .table-clearborder th {
        background-color: transparent !important;
        color: transparent !important;
    }

    .table-clearborder > thead > tr > th,
    .table-clearborder > tbody > tr > th,
    .table-clearborder > tfoot > tr > th,
    .table-clearborder > thead > tr > td,
    .table-clearborder > tbody > tr > td,
    .table-clearborder > tfoot > tr > td {
        border: 0px !important;
        background-color: transparent !important;
        color: black !important;
    }


.table-offwhiteborder {
    border: solid 1px #f5f5f5 !important;
}

    .table-offwhiteborder > tbody > tr:hover > td,
    .table-offwhiteborder > tbody > tr:hover {
        background-color: unset !important;
        color: black !important;
    }

    .table-offwhiteborder th a {
        color: #f5f5f5 !important;
        text-decoration: none !important;
        font-weight: 500 !important;
    }

    .table-offwhiteborder th {
        background-color: #f5f5f5 !important;
        color: #f5f5f5 !important;
    }

    .table-offwhiteborder > thead > tr > th,
    .table-offwhiteborder > tbody > tr > th,
    .table-offwhiteborder > tfoot > tr > th,
    .table-offwhiteborder > thead > tr > td,
    .table-offwhiteborder > tbody > tr > td,
    .table-offwhiteborder > tfoot > tr > td {
        border: 1px solid #f5f5f5 !important;
        border-top-color: #f5f5f5;
        border-top-style: solid;
        border-top-width: 1px;
        border-right-color: #f5f5f5;
        border-right-style: solid;
        border-right-width: 1px;
        border-bottom-color: #f5f5f5;
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-left-color: #f5f5f5;
        border-left-style: solid;
        border-left-width: 1px;
        border-image-source: initial;
        border-image-slice: initial;
        border-image-width: initial;
        border-image-outset: initial;
        border-image-repeat: initial;
        border-top: 1px solid #f5f5f5 !important;
    }


.table-lightpurple {
    border: solid 1px #7d1d61 !important;
}

    .table-lightpurple > tbody > tr:hover > td,
    .table-lightpurple > tbody > tr:hover {
        background-color: unset !important;
        color: black !important;
    }

    .table-lightpurple th a {
        color: #fff !important;
        text-decoration: none !important;
        font-weight: 500 !important;
    }

    .table-lightpurple th {
        background-color: #7d1d61 !important;
        color: #fff !important;
    }

    .table-lightpurple > thead > tr > th,
    .table-lightpurple > tbody > tr > th,
    .table-lightpurple > tfoot > tr > th,
    .table-lightpurple > thead > tr > td,
    .table-lightpurple > tbody > tr > td,
    .table-lightpurple > tfoot > tr > td {
        border: 1px solid #7d1d61 !important;
        border-top-color: #7d1d61;
        border-top-style: solid;
        border-top-width: 1px;
        border-right-color: #7d1d61;
        border-right-style: solid;
        border-right-width: 1px;
        border-bottom-color: #7d1d61;
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-left-color: #7d1d61;
        border-left-style: solid;
        border-left-width: 1px;
        border-image-source: initial;
        border-image-slice: initial;
        border-image-width: initial;
        border-image-outset: initial;
        border-image-repeat: initial;
        border-top: 1px solid #7d1d61 !important;
    }


.table-red {
    border: solid 1px #ed174c !important;
}

    .table-red > tbody > tr:hover > td,
    .table-red > tbody > tr:hover {
        background-color: unset !important;
        color: #fff !important;
    }

    .table-red th a {
        color: #fff !important;
        text-decoration: none !important;
        font-weight: 500 !important;
    }

    .table-red th {
        background-color: #ed174c !important;
        color: #fff !important;
    }

    .table-red > thead > tr > th,
    .table-red > tbody > tr > th,
    .table-red > tfoot > tr > th,
    .table-red > thead > tr > td,
    .table-red > tbody > tr > td,
    .table-red > tfoot > tr > td {
        border: 1px solid #ed174c !important;
        border-top-color: #ed174c;
        border-top-style: solid;
        border-top-width: 1px;
        border-right-color: #ed174c;
        border-right-style: solid;
        border-right-width: 1px;
        border-bottom-color: #ed174c;
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-left-color: #ed174c;
        border-left-style: solid;
        border-left-width: 1px;
        border-image-source: initial;
        border-image-slice: initial;
        border-image-width: initial;
        border-image-outset: initial;
        border-image-repeat: initial;
        border-top: 1px solid #ed174c !important;
    }

.table-pdf {
    border: none !important;
}

.table-pdf th a {
    color: black !important;
    font-weight: 700 !important;
    text-decoration: none;
}

    .table-pdf th {
        background-color: white !important;
        font-weight: 700 !important;
        color: black !important;
        text-decoration: none;
    }

    
    .table-pdf > tfoot > tr > th,
    .table-pdf > tfoot > tr > td {
        border: unset !important;
    }

    .table-pdf > thead > tr > th,
    .table-pdf > tbody > tr > th {
        border-bottom: 1px solid #ccc !important;
    }

.btn {
    margin-left: 5px;
}


/*
a{color: black; text-decoration:none;}
    */

div.ui-datepicker {
    font-size: 62.5%;
}
/*update*/
.container {
    padding-right: 0px;
    padding-left: 0px;
}
/* panel */
.panel, .panelcollapsed {
    background: #fff;
    margin: 5px;
    padding: 0px 0px 0px;
    width: 99%;
    border: 1px solid #3d1a6f;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
}

.panel-title {
    padding-left: 0px;
    padding-top: 0px;
}

/* panel heading */
.panel h2, .panelcollapsed h2 {
    /*
	font-size: 12px;
	font-weight: normal; */
    margin: 0px;
    padding: 4px;
    background: #fff url(/images/arrow-up.gif) no-repeat 99%;
    border-bottom: 1px solid #fff;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-top: 1px solid #FFF;
    border-right: 1px solid #FFF;
    border-left: 1px solid #FFF;
    text-align: left;
}

    /* panel heading on rollover */
    .panel h2:hover, .panelcollapsed h2:hover {
        background-color: #f0f0f0;
        color: #999;
    }

/* heading of a collapsed panel */
.panelcollapsed h2 {
    background: #CCC url(/images/arrow-dn.gif) no-repeat 99%;
    border-color: #CCC;
    color: #fff;
}

/* panel content - do not set borders or paddings */
.panelcontent {
    background: #fff;
    overflow: hidden;
}

/* collapsed panel content */
.panelcollapsed .panelcontent {
    display: none;
}


/*
#footer {
    width:100%;
    height:80px;
    position:fixed;
    bottom:0;
    left:0;
    background:#3da023;  
}*/



div.gvv {
    color: #f0f0f0;
    font-size: 12px;
}

div.gvv2 {
    color: #66ff00;
}

div.gvv3 {
    text-align: center;
}

.div.gvv4 {
    text-align: left;
    color: white;
}

div.gvvleft {
    text-align: left;
}

div.gvvright {
    text-align: left;
}

div.gvvveryright {
    text-align: right;
}

div.gvvcenter {
    text-align: center;
}


p.trigger {
    margin-bottom: 7px;
    margin-top: -5px;
}

.toggle_container {
    margin-bottom: 10px;
}

    .toggle_container p {
        margin: 0px;
    }

.toggle_container {
    background: #f0f0f0;
    clear: both;
    font-size: 100%;
}



/*
.text {
        color: #666666;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
       
    }*/
@media only screen and (max-width : 979px) {
    .gvvright.smm {
        text-align: center;
        padding-right: 10px;
        padding-left: 10px;
    }

    .gvvleft.smm {
        padding-right: 10px;
        padding-left: 10px;
        text-align: center;
    }

    .gvvcenter.smm {
        padding-right: 10px;
        padding-left: 10px;
        text-align: center;
    }

    .gvvprint.smp {
        padding-right: 10px;
        padding-left: 10px;
        text-align: center;
    }
}

@media (max-width: 979px) {
    .hidden-tablet {
        display: none;
    }
}

.flex-cover {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: black;
    /* overall height*/
    height: 500px;
}

.flex-bottomstrip {
    color: white;
    text-align: right;
    text-align: center;
    /* background: rgba(0,0,0, .6);*/
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 18px;
    /* height of the grey overlay*/
    height: 200px;
}

.flex-logos {
    white-space: nowrap;
    display: inline;
    /*    padding: 10px 10px 10px 10px;*/
    min-height: 100px;
    max-height: 100px;
    text-align: center;
}

.flex-text-box {
    /* set the height of the textbox, so that the logo box will appear beneath it*/
    min-height: 490px;
    max-height: 490px;
}

.flex-text-big {
    padding-left: 70px;
    margin-top: 140px;
    font-family: 'Outfit', sans-serif;
    font-size: 80px;
    color: white;
    line-height: 110px;
    font-weight: 300;
    overflow: hidden;
}

.flex-text-small {
    padding-left: 120px;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 45px;
    color: white;
    line-height: 50px;
}

.campaignbox {
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    border: 1px solid #3d1a6f;
}

.campaigninnerbox {
    width: 100%;
    height: 90%;
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: 40px;
    background: rgba(61,26,111, 0.9) 0%;
    color: white;
    text-align: center;
    vertical-align: middle;
}

    .campaigninnerbox:hover a {
        background: rgba(0,0,0,0.3) 0%;
        color: white !important;
    }

.campaigninnerboxtext {
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: white;
}

.retainerinnerbox {
    width: 100%;
    height: 90%;
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: 40px;
    background: rgba(237,23,76, 0.9) 0%;
    color: white;
    text-align: center;
    vertical-align: middle;
}

    .retainerinnerbox:hover a {
        background: rgba(0,0,0,0.3) 0%;
        color: white !important;
    }

.retainerinnerboxtext {
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: white;
}

.gridedittext input {
    width: 100% !important;
}

.mce-tinymce {
    margin-top: 15px !important;
    margin-bottom: 5px !important;
}

.label-control {
    display: block;
    width: 100%;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.428571429;
    color: #555555;
    vertical-align: middle;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    background-color: #f0f0f0;
    min-height: 120px;
}

.label-lg {
    height: 45px;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.33;
    border-radius: 6px;
    background-color: #f0f0f0;
}

.label-control-sm {
    display: block;
    width: 100%;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.428571429;
    color: #555555;
    vertical-align: middle;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    background-color: #f0f0f0;
    min-height: 30px;
}

.mce-panel {
    z-index: 1000007 !important;
}


.highlight {
    background-color: yellow;
}

.table-gvvhover > tbody > tr:hover > td,
.table-gvvhover > tbody > tr:hover > th {
    background-color: yellow;
}

.table-gvv td {
    border: 0px solid rgb(221, 221, 221) !important;
    border-image: none !important;
}

.table-gvv th {
    border: 0px solid rgb(221, 221, 221) !important;
    border-image: none !important;
}

.table-noborder td {
    border: 0px solid white !important;
    border-image: none !important;
}

.table-noborder th {
    border: 0px solid white !important;
    border-image: none !important;
}

.pwa-popup {
    z-index: 2222222 !important;
}



.dm-uploader {
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.uploader {
    position: absolute;
    top: -4px;
    right: 0; 
    line-height: 26px;
    margin: 0;
    border: solid transparent;
    width: 100%;
    opacity: .0;
    filter: alpha(opacity= 0);
    cursor: pointer;
}

a,
area,
button,
[role="button"],
input:not([type="range"]),
label,
select,
summary,
textarea {
    touch-action: manipulation;
}


body {
    font-family: 'Outfit', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


.table-condensed {
    border: solid 1px #7d1d61 !important;
}

    .table-condensed > tbody > tr:hover > td,
    .table-condensed > tbody > tr:hover {
        color: black;
    }

    .table-condensed th a {
        color: #fff !important;
        text-decoration: none !important;
        font-weight: 500 !important;
    }

    .table-condensed th {
        background-color: #ed174c !important;
        color: white !important;
    }

    .table-condensed > thead > tr > th,
    .table-condensed > tbody > tr > th,
    .table-condensed > tfoot > tr > th,
    .table-condensed > thead > tr > td,
    .table-condensed > tbody > tr > td,
    .table-condensed > tfoot > tr > td {
        border: 1px solid #fdb913 !important;
        border-top-color: rgb(221, 221, 221);
        border-top-style: solid;
        border-top-width: 1px;
        border-right-color: rgb(221, 221, 221);
        border-right-style: solid;
        border-right-width: 1px;
        border-bottom-color: rgb(221, 221, 221);
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-left-color: rgb(221, 221, 221);
        border-left-style: solid;
        border-left-width: 1px;
        border-image-source: initial;
        border-image-slice: initial;
        border-image-width: initial;
        border-image-outset: initial;
        border-image-repeat: initial;
    }

    .table-condensed > tbody > tr > th {
        background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%) !important;
        border-left: 4px solid #fdb913 !important;
        border-top: 1px solid #fff5dc !important;
        border-right: 1px solid #fff5dc !important;
        border-bottom: 1px solid #fff5dc !important;
        color: #3d1a6f !important;
        font-weight: 500 !important;
        font-size: 1em !important;
    }
    .table-condensed th a {
        color: #3d1a6f !important;
        font-weight: 500 !important;
        font-size: 1em !important;
    }

.table-purple {
    border: solid 1px #3d1a6f !important;
}

    .table-purple > tbody > tr:hover > td,
    .table-purple > tbody > tr:hover {
        background-color: #f0f0f0 !important;
        color: black !important;
    }

    .table-purple th a {
        color: #fff !important;
        text-decoration: none !important;
        font-weight: 500 !important;
    }

    .table-purple th {
        background-color: #3d1a6f !important;
        color: white !important;
    }

    .table-purple > thead > tr > th,
    .table-purple > tbody > tr > th,
    .table-purple > tfoot > tr > th,
    .table-purple > thead > tr > td,
    .table-purple > tbody > tr > td,
    .table-purple > tfoot > tr > td {
        border: 1px solid #3d1a6f !important;
        border-top-color: rgb(221, 221, 221);
        border-top-style: solid;
        border-top-width: 1px;
        border-right-color: rgb(221, 221, 221);
        border-right-style: solid;
        border-right-width: 1px;
        border-bottom-color: rgb(221, 221, 221);
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-left-color: rgb(221, 221, 221);
        border-left-style: solid;
        border-left-width: 1px;
        border-image-source: initial;
        border-image-slice: initial;
        border-image-width: initial;
        border-image-outset: initial;
        border-image-repeat: initial;
        /* height:60px; */
        padding: 3px;
    }

.gvvorangehover > tbody > tr:hover > td {
    background-color: #ccc !important;
}

.gvvorangegridcheckbox {
    display: none !important;
}

.panel-heading a:hover {
    color: #d2322d !important;
}

a.dropdown-toggle {
    font-weight: 500;
    font-size: 1.3em;
}

.dropdown-menu > li > a {
    font-weight: 500 !important;
}




.blink_me {
    -webkit-animation-name: blinker;
    -webkit-animation-duration: 1s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    -moz-animation-name: blinker;
    -moz-animation-duration: 1s;
    -moz-animation-timing-function: linear;
    -moz-animation-iteration-count: infinite;
    animation-name: blinker;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.mc-red {
    background-color: #ed174c;
    color: white;
}

.mc-purple {
    background-color: white;
    color: #7d1d61;
}


@media (min-width: 1500px) {
    .container {
        max-width: 1470px;
    }
}
/*small grid*/
@media (max-width: 1500px) {
    .gvvsmallgrid {
        zoom: 0.9
    }
}

@media (max-width: 1200px) {
    .gvvsmallgrid {
        zoom: 0.7
    }
}

@media (max-width: 900px) {
    .gvvsmallgrid {
        zoom: 0.5
    }
}

.proposalbox {
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    height: 420px;
    border-radius: 0px;
    border: 1px solid #3d1a6f;
    box-shadow: 5px 10px 18px #888888;
}

.proposalinnerbox {
    background: white;
    /*
    width: 100%;
    height: 90%;
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: 40px;
    background: rgba(61,26,111, 0.9) 0%;
    color: white;
    text-align: left;
    */
    padding-left: 5px;
    vertical-align: top;
}

    .proposalinnerbox:hover a {
        background: #ed174c;
        color: white !important;
    }

.proposalinnerboxtext {
    width: 100%;
    /*font-size: 16px;
    font-weight: 500;
    
    text-align: left;
     */
    color: white;
}

.tabcolourwhite {
    background-color: white;
    color: black;
    font-size: 16px;
    min-width: 240px !important;
    height: 40px;
    text-align: left;
    border: 1px solid #ed174c !important;
}

.ProposalTabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
    color: #ed174c;
}

.proposalsub {
    color: white;
    font-weight: 500;
    font-size: 10px;
    margin-left: -10px;
    font-family: 'Outfit', sans-serif;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(253, 185, 19), rgb(237, 23, 76), rgba(125,29,97))
}

#mainNav .padlock {
    color: #ed174c;
    padding: 10px 15px;
    margin-left: 10px;
    border: 2px solid #ed174c;
    border-radius: 50px;
    font-weight: 500;
}

@media (min-width: 30px) {
    .mcintrotext {
        font-size: 50px;
        letter-spacing: 0px;
        line-height: 55px;
    }

    .mcintrosecondary {
        font-weight: 800;
        letter-spacing: 0px;
    }

    .blogintrotext {
        font-size: 40px;
        letter-spacing: 0px;
        line-height: 45px;
        font-weight: 800;
    }

    .mcblogsecondary {
        font-size: 40px;
        letter-spacing: 0px;
        line-height: 45px;
    }

    .bigtext {
        font-size: 30px;
        letter-spacing: 0px;
        line-height: 35px;
        font-weight: 800;
    }

    .lighttext {
        font-size: 20px;
        letter-spacing: 0px;
        line-height: 25px;
        font-weight: 600;
    }

    .ctheavytext {
        font-size: 20px;
        letter-spacing: 0px;
        line-height: 25px;
        font-weight: 600;
    }
}

@media (min-width: 700px) {
    .mcintrotext {
        font-size: 100px;
        letter-spacing: -4px;
        line-height: 105px;
    }

    .mcintrosecondary {
        font-weight: 800;
        letter-spacing: 0px;
    }

    .blogintrotext {
        font-size: 80px;
        letter-spacing: -4px;
        line-height: 90px;
        font-weight: 800;
    }

    .mcblogsecondary {
        font-size: 50px;
        letter-spacing: -2px;
        line-height: 55px;
    }

    .bigtext {
        font-size: 60px;
        letter-spacing: -4px;
        line-height: 65px;
        font-weight: 800;
    }

    .lighttext {
        font-size: 50px;
        letter-spacing: -4px;
        line-height: 55px;
        font-weight: 600;
    }

    .ctheavytext {
        font-size: 40px;
        letter-spacing: -1px;
        line-height: 45px;
        font-weight: 600;
    }
}

.btn-default {
    color: black !important;
    background-color: white;
    border-color: #fdb913;
}

    .btn-default:hover,
    .btn-default:focus,
    .btn-default:active,
    .btn-default.active,
    .open .dropdown-toggle.btn-default {
        color: #fdb913;
        background-color: #fdb913;
        border-color: #fdb913;
    }

    .btn-default:active,
    .btn-default.active,
    .open .dropdown-toggle.btn-default {
        background-image: none;
    }

    .btn-default.disabled,
    .btn-default[disabled],
    fieldset[disabled] .btn-default,
    .btn-default.disabled:hover,
    .btn-default[disabled]:hover,
    fieldset[disabled] .btn-default:hover,
    .btn-default.disabled:focus,
    .btn-default[disabled]:focus,
    fieldset[disabled] .btn-default:focus,
    .btn-default.disabled:active,
    .btn-default[disabled]:active,
    fieldset[disabled] .btn-default:active,
    .btn-default.disabled.active,
    .btn-default[disabled].active,
    fieldset[disabled] .btn-default.active {
        background-color: #ffffff;
        border-color: #cccccc;
    }
    .btn-default .caret {
        border-top-color: #333333;
    }
.dropup .btn-default .caret {
    border-bottom-color: #333333;
}
.panel-body {
    padding: 15px;
}
.panel {
    margin-bottom: 20px;
    background-color: #ffffff;
    border: 1px solid transparent;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.panel-body {
    padding: 15px;
}

    .panel-body:before,
    .panel-body:after {
        display: table;
        content: " ";
    }

    .panel-body:after {
        clear: both;
    }

    .panel-body:before,
    .panel-body:after {
        display: table;
        content: " ";
    }

    .panel-body:after {
        clear: both;
    }

.panel > .list-group {
    margin-bottom: 0;
}

    .panel > .list-group .list-group-item {
        border-width: 1px 0;
    }

        .panel > .list-group .list-group-item:first-child {
            border-top-right-radius: 0;
            border-top-left-radius: 0;
        }

        .panel > .list-group .list-group-item:last-child {
            border-bottom: 0;
        }

.panel-heading + .list-group .list-group-item:first-child {
    border-top-width: 0;
}

.panel > .table {
    margin-bottom: 0;
}

.panel > .panel-body + .table {
    border-top: 1px solid #dddddd;
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
}

.panel-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
}

    .panel-title > a {
        color: inherit;
    }

.panel-footer {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-top: 1px solid #dddddd;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}

.panel-group .panel {
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 4px;
}

    .panel-group .panel + .panel {
        margin-top: 5px;
    }

.panel-group .panel-heading {
    border-bottom: 0;
}

    .panel-group .panel-heading + .panel-collapse .panel-body {
        border-top: 1px solid #dddddd;
    }

.panel-group .panel-footer {
    border-top: 0;
}

    .panel-group .panel-footer + .panel-collapse .panel-body {
        border-bottom: 1px solid #dddddd;
    }

.panel-default {
    border-color: #fdb913;
    -webkit-box-shadow: 10px 10px 16px -13px rgba(253,185,19, .6);
    -moz-box-shadow: 10px 10px 16px -13px rgba(253,185,19, .6);
    box-shadow: 10px 10px 16px -13px rgba(253,185,19, .6)
}

    .panel-default > .panel-heading {
        color: black;
        background-color: #fdb913;
        border-color: #fdb913;
    }

        .panel-default > .panel-heading + .panel-collapse .panel-body {
            border-top-color: #fdb913;
        }

    .panel-default > .panel-footer + .panel-collapse .panel-body {
        border-bottom-color: #fdb913;
    }

.panel-primary {
    border-color: #428bca;
}

    .panel-primary > .panel-heading {
        color: #ed174c;
        background-color: #428bca;
        border-color: #428bca;
    }

        .panel-primary > .panel-heading + .panel-collapse .panel-body {
            border-top-color: #428bca;
        }

    .panel-primary > .panel-footer + .panel-collapse .panel-body {
        border-bottom-color: #428bca;
    }

.panel-success {
    border-color: #d6e9c6;
}

    .panel-success > .panel-heading {
        color: #468847;
        background-color: #dff0d8;
        border-color: #d6e9c6;
    }

        .panel-success > .panel-heading + .panel-collapse .panel-body {
            border-top-color: #d6e9c6;
        }

    .panel-success > .panel-footer + .panel-collapse .panel-body {
        border-bottom-color: #d6e9c6;
    }

.panel-warning {
    border-color: #fbeed5;
}

    .panel-warning > .panel-heading {
        color: #c09853;
        background-color: #fcf8e3;
        border-color: #fbeed5;
    }

        .panel-warning > .panel-heading + .panel-collapse .panel-body {
            border-top-color: #fbeed5;
        }

    .panel-warning > .panel-footer + .panel-collapse .panel-body {
        border-bottom-color: #fbeed5;
    }

.panel-danger {
    border-color: #ed174c;
}

    .panel-danger > .panel-heading {
        color: #b94a48;
        background-color: #ed174c;
        border-color: #ed174c;
    }

        .panel-danger > .panel-heading + .panel-collapse .panel-body {
            border-top-color: #ed174c;
        }

    .panel-danger > .panel-footer + .panel-collapse .panel-body {
        border-bottom-color: #ed174c;
    }

.panel-info {
    border-color: #bce8f1;
}

    .panel-info > .panel-heading {
        color: #3a87ad;
        background-color: #d9edf7;
        border-color: #bce8f1;
    }

        .panel-info > .panel-heading + .panel-collapse .panel-body {
            border-top-color: #bce8f1;
        }

    .panel-info > .panel-footer + .panel-collapse .panel-body {
        border-bottom-color: #bce8f1;
    }
.btn-sm {
    padding: .25rem .4rem !important;
    font-size: .875rem !important;
    line-height: 1.2 !important;
    border-radius: .2rem !important;
}

/* btn-xs: Extra small button (smaller than btn-sm) */
.btn-xs {
    padding: .15rem .3rem !important;
    font-size: .75rem !important;
    line-height: 1.2 !important;
    border-radius: .15rem !important;
}

/* btn-secondary: Purple text on gold background (brand colors) */
.btn-secondary {
    color: #3d1a6f;
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    color: #3d1a6f;
}

/* btn-outline variants: Consistent with regular buttons */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-danger,
.btn-outline-info,
.btn-outline-dark {
    border-width: 2px !important;
    border-style: solid;
    border-radius: 0.25rem;
    vertical-align: middle;
    box-sizing: border-box;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Remove margin when buttons are in a btn-group */
.btn-group > .btn-outline-primary,
.btn-group > .btn-outline-secondary,
.btn-group > .btn-outline-success,
.btn-group > .btn-outline-warning,
.btn-group > .btn-outline-danger,
.btn-group > .btn-outline-info,
.btn-group > .btn-outline-dark {
    margin-bottom: 0;
}

.btn-outline-primary {
    color: #3d1a6f;
    border-color: #3d1a6f;
    background-color: transparent;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #fff;
    background-color: #3d1a6f;
    border-color: #3d1a6f;
}

.btn-outline-secondary {
    color: #495057;
    border-color: #6c757d;
    background-color: transparent;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-danger {
    color: #ed174c;
    border-color: #ed174c;
    background-color: transparent;
}
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active {
    color: #fff;
    background-color: #ed174c;
    border-color: #ed174c;
}

.btn-outline-success {
    color: #28a745;
    border-color: #28a745;
    background-color: transparent;
}
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-outline-warning {
    color: #3d1a6f;
    border-color: #fdb913;
    background-color: transparent;
}
.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active {
    color: #3d1a6f;
    background-color: #fdb913;
    border-color: #fdb913;
}

.btn-outline-info {
    color: #17a2b8;
    border-color: #17a2b8;
    background-color: transparent;
}
.btn-outline-info:hover,
.btn-outline-info:focus,
.btn-outline-info:active {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-outline-dark {
    color: #343a40;
    border-color: #343a40;
    background-color: transparent;
}
.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active {
    color: #fff;
    background-color: #343a40;
    border-color: #343a40;
}

.dropdown-menu {
    position: absolute;
    /* top: 100%; */
    left: 0;
    z-index: 1001;
    display: none;
    float: left;
    min-width: 220px;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0;
    font-size: 15px;
    list-style: none;
    background-color: #ffffff !important;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background-clip: padding-box;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown item styling - fix white-on-white hover issue */
.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #333 !important;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #fff !important;
    background-color: #3d1a6f !important;
    text-decoration: none;
}

.dropdown-item:active,
.dropdown-item.active {
    color: #fff !important;
    background-color: #3d1a6f !important;
}

.nav-pills .divider {
    height: 1px;
    margin: 9px 0;
    overflow: hidden;
    background-color: #e5e5e5;
}

.dropdown-menu .divider {
    height: 1px;
    margin: 0.5rem 1rem;
    overflow: hidden;
    background: linear-gradient(90deg, transparent 0%, #e5e5e5 20%, #e5e5e5 80%, transparent 100%);
}

    .dropdown-menu > li > a {
        display: block;
        padding: 0.65rem 1.25rem;
        min-height: auto;
        clear: both;
        line-height: 1.5;
        color: #333333;
        white-space: nowrap;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }

    .dropdown-menu > li > a i {
        width: 20px;
        margin-right: 8px;
        color: #3d1a6f;
        transition: color 0.2s ease;
    }

        .dropdown-menu > li > a:hover,
        .dropdown-menu > li > a:focus {
            color: #3d1a6f;
            text-decoration: none;
            background-color: #f8f4fc;
            border-left-color: #fdb913;
        }

        .dropdown-menu > li > a:hover i,
        .dropdown-menu > li > a:focus i {
            color: #fdb913;
        }

    .dropdown-menu > .active > a,
    .dropdown-menu > .active > a:hover,
    .dropdown-menu > .active > a:focus {
        color: #ffffff;
        text-decoration: none;
        background-color: #428bca;
        outline: 0;
    }




    .dropdown-menu > div > li > a {
        display: block;
        padding: 0.65rem 1.25rem;
        min-height: auto;
        clear: both;
        line-height: 1.5;
        color: #333333;
        white-space: nowrap;
        font-weight: 500 !important;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }

    .dropdown-menu > div > li > a i {
        width: 20px;
        margin-right: 8px;
        color: #3d1a6f;
        transition: color 0.2s ease;
    }

        .dropdown-menu > div > li > a:hover,
        .dropdown-menu > div > li > a:focus {
            color: #3d1a6f;
            text-decoration: none;
            background-color: #f8f4fc;
            border-left-color: #fdb913;
        }

        .dropdown-menu > div > li > a:hover i,
        .dropdown-menu > div > li > a:focus i {
            color: #fdb913;
        }

    .dropdown-menu > div > .active > a,
    .dropdown-menu > div > .active > a:hover,
    .dropdown-menu > div > .active > a:focus {
        color: #ffffff;
        text-decoration: none;
        background-color: #428bca;
        outline: 0;
    }




.dropdown-header {
    display: block;
    padding: 3px 20px;
    font-size: 12px;
    line-height: 1.428571429;
    color: #999999;
}
.dropdown-toggle:focus {
    outline: white;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0em;
    vertical-align: 0.255em;
    content: none;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown {
    /*text-transform: uppercase;*/
    font-size: 15px;
}
.table td, .table th {
    padding: 5px;
}

.BUZZHubhome {
    background: rgba(253,185,19, 0.1);
    border-top-right-radius: 25px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
}
.table-bordered th, .table-bordered td {
    height: 0px;
    border: none;
}

.tab-content-sm {
    min-height: 30vh;
}

/*fix bug where modal leaves black line around hover elements*/
a:hover, a:focus{
    outline:none !important;
}

/* rounded edges for  gridviews */
.table-outer-rnd {
    /*apply to surrounding DIV*/
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 15px;
    margin-right: 15px;
}
.table-inner-rnd {
    /*apply to gridview css field*/
    margin-left: 0px;
    width: 100%;
    height: 100%;
}

/*make empty grid views not have a border */
.emptygridview {
    border: 5px solid white !important;

}
.antiquewhitegrid {
    border: 1px solid antiquewhite !important;
    margin-left: 5px;
    width: 99%;
}
.tab-pane{
    padding-top:5px;
}
/*hover naviation bar*/
@media all and (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: none !important;
    }

    .navbar .nav-item:hover .nav-link {
        color: #fff !important;
    }

    .navbar .nav-item:hover .dropdown-menu {
        display: block !important;
    }

    .navbar .nav-item .dropdown-menu {
        margin-top: 0 !important;
    }
}

/* Right-side nav items (notifications + THE HIVE + LOGOUT) */
#mainNav .specials {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    gap: 0.25rem;
}

#mainNav .specials > li {
    display: flex;
    align-items: center;
    list-style: none;
}

/* Nav buttons container (THE HIVE + LOGOUT) */
#mainNav .nav-buttons-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

#mainNav .telephone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.9rem;
    margin-left: 0px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

#mainNav .telephone:hover {
    color: #fdb913;
    background: rgba(253, 185, 19, 0.15);
    border-color: #fdb913;
    text-decoration: none;
}

/* Nav utility toolbar icons */
.navtoolbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    margin: 0 2px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.navtoolbtn:hover {
    color: #fdb913;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.navtoolbtn .actionbutton {
    font-size: 1.1rem;
}

/* Notification badge styling */
.navtoolbtn sub {
    position: relative;
    top: -8px;
    margin-left: -5px;
}

.navtoolbtn sub input[type="text"] {
    width: 18px;
    height: 18px;
    padding: 0;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: #ed174c;
    border: none;
    border-radius: 50%;
}
    /*

    .nav > li > a:focus {
        color: #ed174c;
    }
    */
    .nav-tabs > li {
        float: left;
        margin-bottom: -1px;
    }

    .nav-tabs > li > a {
        margin-right: 2px;
        line-height: 1.428571429;
        border: 1px solid transparent;
        border-radius: 4px 4px 0 0;
    }

        .nav-tabs > li > a:hover {
            border-color: #eeeeee #eeeeee #dddddd;
        }



.nav a:hover {
    color: #ed174c;
}
/*from main*/
#mainNav {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background: linear-gradient(135deg, #3d1a6f 0%, #2d1352 100%);
    box-shadow: 0 2px 12px rgba(61, 26, 111, 0.4);
    border-bottom: 3px solid #fdb913;
}

    #mainNav .navbar-toggler {
        padding: 0.75rem;
        font-family: 'Outfit', sans-serif;
        font-size: 0.75rem;
        color: #fff;
        text-transform: uppercase;
        border: 0;
    }

    #mainNav .navbar-brand {
        color: #fdb913;
        font-family: 'Outfit', sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        max-width: 50%;
    }

        #mainNav .navbar-brand img {
            height: 3rem;
        }

    #mainNav .navbar-nav .nav-item .nav-link.active, #mainNav .navbar-nav .nav-item .nav-link:hover {
        color: #fdb913;
    }

    #mainNav .navbar-nav .nav-item .nav-btn.active, #mainNav .navbar-nav .nav-item .nav-btn:hover {
        color: #fdb913;
        text-decoration: none;
    }

    /* Modernized nav dropdown toggles */
    #mainNav .navbar-nav .nav-item .dropdown-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        font-family: 'Outfit', sans-serif;
        font-size: 0.95rem;
        font-weight: 600;
        color: #fff;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        transition: all 0.2s ease;
        border: none;
        background: transparent;
    }

    #mainNav .navbar-nav .nav-item .dropdown-toggle i {
        font-size: 0.9rem;
        opacity: 0.85;
        transition: all 0.2s ease;
    }

    #mainNav .navbar-nav .nav-item:hover .dropdown-toggle,
    #mainNav .navbar-nav .nav-item.show .dropdown-toggle {
        background: rgba(255, 255, 255, 0.15);
        color: #fdb913;
    }

    #mainNav .navbar-nav .nav-item:hover .dropdown-toggle i,
    #mainNav .navbar-nav .nav-item.show .dropdown-toggle i {
        opacity: 1;
        color: #fdb913;
    }

    /* Remove default caret and use CSS arrow */
    #mainNav .navbar-nav .nav-item .dropdown-toggle::after {
        content: '';
        display: inline-block;
        margin-left: 6px;
        border-top: 5px solid currentColor;
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
        transition: transform 0.2s ease;
    }

    #mainNav .navbar-nav .nav-item.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: #ed174c;
    cursor: default;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-bottom-color: transparent;
}


.respimage {
    width: 100%;
}


@media (min-width: 30px) {
    #mainNav .navbar-nav .nav-item {
        margin-right: 0 !important;
    }
    .specials {
        display: flex !important;
        align-items: center;
    }

    #mainNav .navbar-nav .nav-item .nav-link {
        font-family: 'Outfit', sans-serif;
        font-size: 0.95rem;
        font-weight: 500;
        color: #fff;
        letter-spacing: normal;
    }

    .seperator {
        height: 1em;
    }

    .specials {
        text-align: center;
    }

    .mediacastlogocolour {
        display: none;
    }

    .mediacastlogowhite {
        display: none;
    }

    .mediacastlogoverywhite {
        display: inline !important;
    }


    .welcome {
        display:none;
    }
    .actionbutton {
        padding-bottom: 0.5em;
        font-size: 1.5em;
    }

}

/* MOBILE */
@media (max-width: 990px) {

    .respimage{
        width: 100px;
    }

    .text-right {
        text-align: center !important;
    }

    .filesharecard {
        padding: 0px !important;
        margin-left: 0em !important;
    }

    .filesharecontent {
        padding: 0px !important;
        margin-left: 0em !important;
    }

    .fileshareactionscard {
        margin-left: 0.7em !important;
        text-align:left;
    }

    .surveybuttons {
        zoom: 0.6 !important;
    }

    .surveyactionscard {
        zoom: 0.6 !important;
        padding-top: 0px !important;
        right: 10px !important;
        top: 10px !important;
    }

    .mobilehide {
        display: none;
    }

    .nav-top a {
        color: white !important;
        line-height: 2em !important;
        text-align: center !important;
        padding-top: 5px;
        padding-left: 5px;
        padding-bottom: 5px;
    }

    .nwbody-content {
        padding-top: 40px;
        padding-left: 15px;
        padding-right: 15px;
        color: #3d1a6f;
        font-family: 'Outfit', sans-serif;
        font-weight: 400;
        font-size: 14px;
    }

    .nav-logout {
        padding-top: 1em;
        transition: opacity 0.2s ease-in-out, color 0.2s ease-in-out;
    }

    .nav-logout:hover {
        opacity: 0.8;
        color: #fdb913 !important;
    }

    .nav-tabs .nav-item {
        width: 100%;
    }

    .nav-tabs {
        margin-left: 0em;
    }

    .smallside {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 0;
        margin-bottom: 0;
        width: 100%;
        padding: 0;
        position: sticky;
        top: 0;
        z-index: 1020;
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .smallside h5,
    .smallside > br,
    .smallside > span,
    .smallside > :not(.nav) {
        display: none;
    }

    .smallside .nav.flex-column {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 12px;
        gap: 6px;
    }

    .smallside .nav.flex-column::-webkit-scrollbar {
        display: none;
    }

    .smallside::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, #fff);
        pointer-events: none;
        z-index: 1;
    }

    .smallside .nav.flex-column .nav-item {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .smallside .nav.flex-column .nav-item.navline {
        display: none;
    }

    .smallside .nav.flex-column.nav-pills .nav-link {
        border-left: none;
        border-radius: 20px;
        padding: 0.65rem 1.2rem;
        margin-bottom: 0;
        font-size: 0.875rem;
        line-height: 1.6;
        border: 1px solid #ddd;
    }

    .smallside .nav.flex-column.nav-pills .nav-link:hover {
        background: #f8f4fc;
        color: #3d1a6f;
        border-color: #ccc;
    }

    .smallside .nav.flex-column.nav-pills .nav-link:focus-visible {
        outline: 2px solid #3d1a6f;
        outline-offset: 2px;
    }

    .smallside .nav.flex-column.nav-pills .nav-link.active {
        background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%) !important;
        color: #fff !important;
        border-color: transparent;
    }

    .sub-content {
        border-left: 0px !important;
        min-height: auto;
        padding-top: 14px;
    }

    /* Make wide tables horizontally scrollable on mobile (QW-08) */
    .sub-content .card-body,
    .sub-content .body,
    .subtabpanel .card-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-outer-rnd {
        -webkit-border-radius: 8px;
        -moz-border-radius: 8px;
        border-radius: 8px;
        overflow: hidden;
        margin-top: 1em;
        margin-bottom: 1em;
        margin-left: 0px;
        margin-right: 0px;
        font-size: 8px;
    }



    .mce-toolbar .mce-btn-group {
        zoom: 0.6 !important;
    }

    .talentcard {
        zoom: 0.8 !important;
    }

    .h1 {
        font-size: 2rem;
    }
    /* test to resize for mobile*/
    .col-xl, .col-xl-auto, .col-xl-12, .col-xl-11, .col-xl-10, .col-xl-9, .col-xl-8, .col-xl-7, .col-xl-6, .col-xl-5, .col-xl-4, .col-xl-3, .col-xl-2, .col-xl-1, .col-lg, .col-lg-auto, .col-lg-12, .col-lg-11, .col-lg-10, .col-lg-9, .col-lg-8, .col-lg-7, .col-lg-6, .col-lg-5, .col-lg-4, .col-lg-3, .col-lg-2, .col-lg-1, .col-md, .col-md-auto, .col-md-12, .col-md-11, .col-md-10, .col-md-9, .col-md-8, .col-md-7, .col-md-6, .col-md-5, .col-md-4, .col-md-3, .col-md-2, .col-md-1, .col-sm, .col-sm-auto, .col-sm-12, .col-sm-11, .col-sm-10, .col-sm-9, .col-sm-8, .col-sm-7, .col-sm-6, .col-sm-5, .col-sm-4, .col-sm-3, .col-sm-2, .col-sm-1, .col, .col-auto, .col-12, .col-11, .col-10, .col-9, .col-8, .col-7, .col-6, .col-5, .col-4, .col-3, .col-2, .col-1 {
        padding-left: 1px;
        padding-right: 1px;
    }
    .container-fluid {
        padding-left: 1px;
        padding-right: 1px;
    }
    .container {
        padding-left: 1px;
        padding-right: 1px;
    }

}
@media (min-width: 766px) {
    .seperator {
        height: 1.5em;
    }
}

@media (min-width: 998px) {


    .dropdown .nav-item {
        font-size: 15px;
    }

    @keyframes fadeOut {
        0% {
            opacity: 1;
        }

        90% {
            opacity: 1;
        }

        100% {
            opacity: 0;
        }
    }

    /*Tooltip styling*/
    .mytooltip {
        margin-top: 0px !important;
        display: inline-block !important;
        position: relative !important;
        overflow: unset !important;
    }

        .mytooltip:hover:after {
            background: #333 !important;
            background: rgba(0, 0, 0, .8) !important;
            border-radius: 10px !important;
            top: 3.1em !important;
            left: 1em !important;
            color: #fff !important;
            content: "\2139" "\0020" attr(tooltiptext) !important;
            padding: 7px 15px !important;
            position: absolute !important;
            z-index: 20001 !important;
            font-size: .8em !important;
            line-height: 1.2em !important;
            font-family: 'Outfit', sans-serif;
            font-weight: 400 !important;
            min-width: 150px !important;
            text-align: left !important;
            -webkit-box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0) !important;
            box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0) !important;
            -webkit-animation: fadeOut 8s !important;
            animation: fadeOut 8s !important;
            animation-fill-mode: forwards !important;
        }

    .mytooltipleft:hover:after {
        top: 3.1em !important;
        right: 1em !important;
        left: unset !important;
        text-align: left !important;
        -webkit-box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0) !important;
        box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0) !important;
        font-size: 12px !important;
    }

    .mytooltipright:hover:after {
        top: 0 !important;
        left: 1em !important;
        right: unset !important;
        text-align: left !important;
        -webkit-box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0) !important;
        box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0) !important;
        font-size: 12px !important;
    }


    .mytooltiptop:hover:after {
        font-size: .8em !important;
        top: unset !important;
        bottom: 3.1em !important;
        text-align: left !important;
        -webkit-box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0) !important;
        box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0) !important;
        font-size: 12px !important;
    }

    .mytooltipbottom:hover:after {
        bottom: unset !important;
        top: 3.1em !important;
        text-align: left !important;
        -webkit-box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0) !important;
        box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0) !important;
        font-size: 12px !important;
    }

    .mytooltipcenter:hover:after {
        top: 0em !important;
        right:3em !important;
    }

/* Bootstrap tooltips styled to match mytooltip */
.tooltip {
    font-family: 'Outfit', sans-serif;
    font-size: .8em;
    z-index: 20001;
}
.tooltip-inner {
    background: rgba(0, 0, 0, .8);
    border-radius: 10px;
    padding: 7px 15px;
    min-width: 150px;
    max-width: 300px;
    text-align: left;
    line-height: 1.2em;
    font-weight: 400;
    box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0);
}
.tooltip-inner::before {
    content: "\2139\0020"; /* Info icon like mytooltip */
}
.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: rgba(0, 0, 0, .8);
}
.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: rgba(0, 0, 0, .8);
}
.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
    border-left-color: rgba(0, 0, 0, .8);
}
.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
    border-right-color: rgba(0, 0, 0, .8);
}

    .welcome {
        display: inline;
    }
    .actionbutton {
        padding-bottom: 0.5em;
        font-size: 1.5em;
    }
    .actionbutton-lg {
        padding-bottom: 0.5em;
        font-size: 2em;
    }
    .nav a {
        color: white;
    }


    .seperator {
        height: 1.3em;
    }

    .mediacastlogocolour {
        display: none !important;
    }

    .mediacastlogowhite {
        display: inline !important;
    }

    .mediacastlogoverywhite {
        display: none !important;
    }

    .nav > li > a {
        padding: 10px 15px;
        color: #3d1a6f;
    }

    #mainNav .navbar-nav .nav-item .nav-link {
        font-family: 'Outfit', sans-serif;
        font-size: 0.95rem;
        font-weight: 600;
        color: #fff;
        letter-spacing: 0.5px;
    }

    .seperator {
        height: 3em;
    }

    .specials {
        text-align: right;
    }

    #mainNav {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        border: none;
        background: linear-gradient(135deg, #3d1a6f 0%, #2d1352 100%);
        box-shadow: 0 2px 12px rgba(61, 26, 111, 0.4);
        border-bottom: 3px solid #fdb913;
        transition: padding-top 0.3s ease-in-out, padding-bottom 0.3s ease-in-out;
    }

        #mainNav .navbar-brand {
            font-size: 1em;
            transition: font-size 0.3s ease-in-out;
        }

            #mainNav .navbar-brand img {
                height: 3rem;
                transition: height 0.3s ease-in-out;
            }

        #mainNav.navbar-shrink {
            padding-top: 0.4rem;
            padding-bottom: 0.4rem;
            background: linear-gradient(135deg, #3d1a6f 0%, #2d1352 100%);
            box-shadow: 0 2px 16px rgba(61, 26, 111, 0.5);
        }

            #mainNav.navbar-shrink .navbar-brand {
                font-size: 1em;
            }

                #mainNav.navbar-shrink .navbar-brand svg,
                #mainNav.navbar-shrink .navbar-brand img {
                    height: 2rem;
                }

            #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link,
            #mainNav.navbar-shrink .navbar-nav .nav-item .dropdown-toggle {
                color: #fff !important;
            }

            #mainNav.navbar-shrink .navbar-nav .nav-item:hover .dropdown-toggle {
                color: #fdb913 !important;
            }

        #mainNav .commstool {
            color: #fdb913;
            padding: 0.4rem 0.9rem;
            margin-left: 10px;
            border: 1px solid rgba(253, 185, 19, 0.5);
            border-radius: 6px;
            font-weight: 600;
            background: rgba(253, 185, 19, 0.1);
            transition: all 0.2s ease;
        }

        #mainNav .commstool:hover {
            background: rgba(253, 185, 19, 0.2);
            border-color: #fdb913;
        }

        #mainNav .padlock {
            color: #ed174c;
            padding: 0.4rem 0.9rem;
            margin-left: 10px;
            border: 1px solid rgba(237, 23, 76, 0.5);
            border-radius: 6px;
            font-weight: 600;
            background: rgba(237, 23, 76, 0.1);
        }

        #mainNav .telephone {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #fff;
            padding: 0.4rem 0.9rem;
            margin-left: 10px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.75rem;
            background: rgba(255, 255, 255, 0.1);
            transition: all 0.2s ease;
        }

        #mainNav .telephone:hover {
            color: #fdb913;
            background: rgba(253, 185, 19, 0.15);
            border-color: #fdb913;
        }

        #mainNav.navbar-shrink .mediacastlogocolour {
            display: none !important;
        }

        #mainNav.navbar-shrink .mediacastlogowhite {
            display: inline !important;
        }

        #mainNav.navbar-shrink .mediacastlogoverywhite {
            display: none !important;
        }

        #mainNav .navbar-nav .nav-item {
            margin-right: 1rem;
        }

            #mainNav .navbar-nav .nav-item:last-child {
                margin-right: 0;
            }
}

/* Tablet landscape (992px-1249px) - compact navbar to prevent wrapping */
@media (min-width: 992px) and (max-width: 1249px) {
    /* Main navbar - full width flex */
    #mainNav {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }

    #mainNav > .container,
    #mainNav > .container-fluid {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        max-width: 100% !important;
    }

    /* Force navbar container to spread items */
    #mainNav .navbar-collapse {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-grow: 1 !important;
    }

    /* Main nav menu - don't grow, stay compact */
    #mainNav .navbar-nav:first-child {
        flex-wrap: nowrap !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
    }

    /* Reduce logo area significantly */
    #mainNav .navbar-brand {
        max-width: 160px !important;
        flex-shrink: 0 !important;
    }

    #mainNav .navbar-brand > div {
        padding-right: 0.5rem !important;
        gap: 4px !important;
    }

    #mainNav .navbar-brand img {
        height: 38px !important;
    }

    #mainNav .navbar-brand span:first-child {
        font-size: 1.1rem !important;
    }

    #mainNav .navbar-brand span:last-child {
        font-size: 0.45rem !important;
        display: none !important;
    }

    /* Very compact menu items */
    #mainNav .navbar-nav .nav-item {
        margin-right: 0 !important;
    }

    #mainNav .navbar-nav .nav-item .dropdown-toggle {
        font-size: 0.85rem !important;
        padding: 0.25rem 0.3rem !important;
        gap: 2px !important;
    }

    #mainNav .navbar-nav .nav-item .dropdown-toggle i {
        font-size: 0.9rem !important;
    }

    #mainNav .navbar-nav .nav-item .dropdown-toggle::after {
        margin-left: 2px !important;
        border-top-width: 3px !important;
        border-right-width: 2px !important;
        border-left-width: 2px !important;
    }

    /* Specials/buttons - push to far right */
    #mainNav .specials {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: flex-end !important;
        gap: 0.15rem !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
        padding-left: 0.5rem !important;
    }

    #mainNav .specials > li {
        display: flex !important;
        align-items: center !important;
    }

    /* THE HIVE and LOGOUT side by side, very compact */
    #mainNav .specials .nav-buttons-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.25rem !important;
    }

    #mainNav .telephone {
        font-size: 0.55rem !important;
        padding: 0.2rem 0.35rem !important;
        white-space: nowrap !important;
    }

    /* Compact toolbar buttons */
    #mainNav .navtoolbtn i {
        padding-left: 3px !important;
        font-size: 0.85rem !important;
    }

    /* Remove right padding from navbar to push buttons flush right */
    #mainNav {
        padding-right: 0.5rem !important;
    }

    #mainNav .specials {
        padding-right: 0 !important;
        margin-right: 0 !important;
    }

    /* Reduce brand padding-right on tablet */
    #mainNav .navbar-brand > div {
        padding-right: 1rem !important;
    }
}

/* Narrow tablet (992px-1100px) - extra compact */
@media (min-width: 992px) and (max-width: 1100px) {
    /* Even smaller nav text */
    #mainNav .navbar-nav .nav-item .dropdown-toggle {
        font-size: 0.85rem !important;
        padding: 0.25rem 0.35rem !important;
        gap: 2px !important;
    }

    #mainNav .navbar-nav .nav-item .dropdown-toggle i {
        font-size: 0.9rem !important;
    }

    /* Smaller dropdown caret */
    #mainNav .navbar-nav .nav-item .dropdown-toggle::after {
        margin-left: 2px !important;
        border-top-width: 3px !important;
        border-right-width: 2px !important;
        border-left-width: 2px !important;
    }

    /* Very compact buttons */
    #mainNav .telephone {
        font-size: 0.55rem !important;
        padding: 0.2rem 0.35rem !important;
    }

    /* Smaller logo */
    #mainNav .navbar-brand img {
        height: 35px !important;
    }

    #mainNav .navbar-brand span:first-child {
        font-size: 1rem !important;
    }

    #mainNav .navbar-brand span:last-child {
        display: none !important;
    }

    /* Ensure buttons flush right on narrow tablets too */
    #mainNav {
        padding-right: 0.25rem !important;
    }

    #mainNav .specials {
        padding-right: 0 !important;
        margin-right: 0 !important;
    }

    #mainNav .navbar-brand > div {
        padding-right: 0.5rem !important;
    }
}

@media (min-width: 1250px) {
    /* Keep navbar items and specials on same row */
    #mainNav .navbar-collapse {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    #mainNav .navbar-nav .nav-item {
        margin-right: 1.2rem !important;
    }

    /* Specials (notifications + buttons) stay right-aligned */
    #mainNav .specials {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: flex-end !important;
        margin-left: auto !important;
        gap: 0.25rem;
    }

    #mainNav .specials > li {
        display: flex !important;
        align-items: center !important;
    }

    /* THE HIVE and LOGOUT side by side on larger screens */
    #mainNav .nav-buttons-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.5rem;
    }
}
@media (min-width: 1300px) {
    #mainNav .navbar-nav .nav-item {
        margin-right: 2rem !important;
    }
}
@media (min-width: 1500px) {
    #mainNav .navbar-nav .nav-item {
        margin-right: 2.5rem !important;
    }
}

.required:after {
    color: #ed174c;
    font-family: 'FontAwesome';
    font-weight: normal;
    font-size: 14px;
    content: "\f069";
    padding-left: 2px;
}
/*to manage lost images*/
img {
    display: inline-block;
    /*above cant be sent to important as it changes the nav. 2 bee problem*/
    font-family: Arial, sans-serif;
    font-weight: 300;
    line-height: 2;
    text-align: center;
    /*    min-width: 300px;
    min-height: 50px;*/
    display: block;
    position: relative;
}
    img::before {
        content: '';
        width: 100%;
        min-height: 130px;
        background-color: #ccc;
        border-radius: 0px;
        position: absolute;
        top: 0%;
        left: -0px;
        transform: translateY(-50%);
    }
    img::after {
        /*
        content: "\2639" " " attr(alt);
        font-size: 18px;
            */
        font-family: 'FontAwesome';
        content: "\f03e" " " attr(alt);
        font-size:2em;
        color: rgb(100, 100, 100);
        display: block;
        position: absolute;
        z-index: 2;
        top: 0px;
        left: 0;
        width: 100%;
        height: 100%;
    }
.text-danger{
    color:#ed174c;
}
/* Grid-based pill navigation (used in GridViews as vertical tabs) */
.gridpillouter a {
    display: block;
    color: #666;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
    border-left: 3px solid transparent;
    text-decoration: none;
}
.gridpillouter a:hover {
    background: #f8f4fc;
    color: #3d1a6f;
    border-left-color: #fdb913;
    text-decoration: none;
}
.gridpillouter a.active,
.gridpillouter a.selected {
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%) !important;
    color: #fff !important;
    border-left-color: #fdb913;
}

.gridpills {
    border-radius: 8px;
}
.storybox {
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
    width: 100%;
    /*  max-width: 300px;*/
    background: rgba(0,0,0,0.7) 0%;
    color: white;
    text-align: center;
    vertical-align: middle;
    position: relative;

}
.storyboximage {
    overflow: hidden;
    width: 100%;
    height: 200px;
    border-radius: 3px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    margin-top: 30px;
    margin-left: 10%;
}

    .storybox:hover {
        /*  background: rgba(0,0,0,0.8) 0%;*/
    }
    .storybox a {
        color:white;
    }

.storyboxtitle {
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: white;
    padding-top: 10px;
    height: 80% !important;
    position: relative;
    z-index: 11;
    min-width:40px;
}
.storyboxtitle-bottom {
    position: relative;
    bottom: 5px;
    z-index: 11;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: white;
}
.storyboxtext {
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: white;
    position: relative;
    z-index: 11;
}

.storyboxoverlay {
    content: "open";
    position: absolute;
    height: 200px;
    width: 100%;
    text-align: center;
    top: -200px;
    left: 0px;
    background: rgba(237,23,76, .8);
    transition: top 0.2s;
    -webkit-transition: top 0.2s;
    z-index: 1020;
    border-radius: 0%;
}

.storybox:hover > div {
    top: 0;
}
.fixed-top {
    /* 2/11/2022 z-index: 5000000;*/
    z-index: 1000;
}

/*Talent Card */
.firstinfo, .talentactionscard {
    display: flex;
    justify-content: left;
}

.surveycontent {
    position: relative;
}


.surveycard {
    height: 80px;
    padding: 20px;
    border-radius: 3px;
    background-color: white;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    /* position: relative;
    overflow: hidden;*/
}


.surveycard:hover {
    animation-name: animateprojectcard;
    animation-duration: 0.9s;
    background-color: #f0f0f0;
}
.surveyactionscard {
    top: 20px;
    right: 27px;
    /* padding: 2px 20px; */
    border-radius: 3px;
    background-color: #ECECEC;
    width: 175px;
    box-shadow: 0px 10px 20px rgb(0 0 0 / 20%);
    position: absolute;
    z-index: 0;
    /* left: 286px;
     bottom: 34px;
      
    */
    height: 3em;
    padding-top: 5px;
    text-align: center;
}

    .surveyactionscard span {
        font-size: 1.6em;
        margin: 0px 6px;
        opacity: 0.6;
    }

.talentcontent {
    position: relative;
    /*  animation: animatop 0.9s cubic-bezier(0.425, 1.14, 0.47, 1.125) forwards;*/
}
.talentcontent-animate {
    position: relative;
      animation: animatop 0.9s cubic-bezier(0.425, 1.14, 0.47, 1.125) forwards;
}
.talentcard {
    padding: 20px;
    border-radius: 3px;
    background-color: white;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    /* position: relative;*/
    overflow: hidden;
    height: auto;
    /*width: 700px;*/
    max-width: 615px;
    position:relative;
    z-index: 5 !important;
}

.talentcard-sm {
    min-height: 250px !important;

}
.talentcard-xs {
    height: 250px !important;
}
.talentcardbio, p {
    /*
        this seems to break the media release 'creative preview'
        max-height: 5em;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    */
    /* -webkit-line-clamp: 2;  Number of lines displayed before it truncate */
}

.talentactionscard {
    padding: 2px 20px;
    border-radius: 3px;
    background-color: #ECECEC;
    width: 200px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    z-index: 1 !important;
    left: 10px;
    bottom: 10px;
    height: 3em;
    padding-top: 5px;
    animation: animainfos 0.5s cubic-bezier(0.425, 1.04, 0.47, 1.105) 0.75s forwards;
}
.talentactionscard-wide {
    width: 25rem;
}
    .talentactionscard span {
        font-size: 1.6em;
        margin: 0px 6px;
        opacity: 0.6;
    }

.firstinfo {
    flex-direction: row;
    z-index: 2;
    position: relative;
}

    .firstinfo img {
        width: 30%;
    }

    .firstinfo .profileinfo {
        padding: 0px 20px;
    }

.talentcard h5 {
    color: #3d1a6f;
    margin-bottom: 0em;
}

.talentcard h6 {
    color: #3d1a6f;
    margin-bottom: 0em;
}

.firstinfo .profileinfo p.bio {
    padding: 10px 0px;
    color: #5A5A5A;
    line-height: 1.2;
    font-style: initial;
}

@keyframes animatop {
    0% {
        opacity: 0;
        bottom: -100px;
    }

    100% {
        opacity: 1;
        bottom: 0px;
    }
}

@keyframes animainfos {
    0% {
        bottom: 10px;
    }

    100% {
        bottom: -42px;
    }
}
/* end talent card*/
/* start headshot */
.headshot {
    /* width: 100%;*/
    height: 250px;
    /* overflow: hidden;*/
}

.headshotimg {
    width: 100%;
    text-align:center;
    /*   height: 100%;
    min-width: 100%;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
     */
}
/* end headshot */

.financecontent {
    position: relative;
    margin-bottom: .5em;
}
.financeactionscard {
    display: inline-block;
    align-content: center;
    text-align: center;
    border-radius: 3px;
    background-color: #ECECEC;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 5px;
    height: 6em;
    padding-top: 5px;
    line-height: 0px;
}
.financecard {
    min-height: 80px;
    padding: 20px;
    border-radius: 3px;
    background-color: white;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-left: 2.3em;
}

    .financecard:hover {
        animation-name: animateprojectcard;
        animation-duration: 0.9s;
        background-color: #f0f0f0;
    }
.financeactionscard-sm {
    height: 4em;
}
.financeactionscard-lg {
    height: 9em;
}
.financeactionscard-md {
    height: 7em;
}

.sharefilecontent {
    position: relative;
    margin-bottom: 2.5em;
}

.sharefileactionscard {
    display: inline-block;
    align-content: center;
    text-align: center;
    border-radius: 3px;
    background-color: #ECECEC;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 5px;
    height: 11em;
    padding-top: 5px;
    line-height: 0px;
    min-width:40px;
}

.sharefilecard {
    min-height: 164px;
    padding: 20px;
    border-radius: 3px;
    background-color: white;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-left: 3em;
}






    /*Project Card */
    .projectinfo, .projectactionscard {
    display: flex;
    justify-content: left;
}

.projectcontent {
    position: relative;
    margin-bottom: .5em;
    /*  animation: animaprojecttop 0.9s cubic-bezier(0.425, 1.14, 0.47, 1.125) forwards;*/
}
.projectcontent-sm {
    margin-bottom: .3em;
}

.projectcard {
    min-height: 100px;
    padding: 20px;
    border-radius: 3px;
    background-color: white;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-left:2.3em;
}
    .projectcard:hover {
        animation-name: animateprojectcard;
        animation-duration: 0.9s;
        background-color: #f0f0f0;
    }
@keyframes animateprojectcard {
    from {
        background-color: #ed174c;
    }

    to {
        background-color: #f0f0f0;
    }
}
.projectcard-sm {
    min-height:40px;
    padding:10px;
}
.projectcard-lg {
    min-height: 100px;
    padding: 10px;
}
.projectactionscard {
    display: inline-block;
    align-content: center;
    text-align: center;
    border-radius: 3px;
    background-color: #ECECEC;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 5px;
    height: 6em;
    padding-top: 5px;
    margin-left: 2.7em;
    line-height: 0px;
    animation: animaprojectinfos 0.5s cubic-bezier(0.425, 1.04, 0.47, 1.105) 0.75s forwards;
}
.projectactionscard-xs {
    height: 2em;
}
.projectactionscard-sm {
    height:4em;
}
.projectactionscard-md {
    height: 5em;
}
.projectactionscard-lg {
    height: 8em;
}
.projectactionscard-xl {
    height: 12em;
}

.projectcard span {
    /*
        REMOVED FOR WORD COMPATIBILITY
        margin: 0px 6px;
    */
    /* color: #3d1a6f;*/
}



.newsactionscard {
    display: inline-block;
    align-content: center;
    text-align: center;
    border-radius: 3px;
    background-color: #ECECEC;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 5px;
    height: 6em;
    padding-top: 5px;
    margin-left: 0em;
    line-height: 0px;
    height: 2em;
}
.newscard {
    min-height: 50px;
    padding: 20px;
    border-radius: 3px;
    background-color: white;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-left: 2.3em;
}
.newscontent {
    position: relative;
    margin-bottom: .5em;
    /*  animation: animaprojecttop 0.9s cubic-bezier(0.425, 1.14, 0.47, 1.125) forwards;*/
}
    .newscard:hover {
        animation-name: animateprojectcard;
        animation-duration: 0.9s;
        background-color: #f0f0f0;
    }

.projectinfo {
    flex-direction: row;
    z-index: 2;
    position: relative;
}

/*Project Card */

.nwinfo, .nwactionscard {
    display: flex;
    justify-content: left;
}

.nwcontentcard {
    position: relative;
    margin-bottom: 0em;
}

.nwcard {
    min-height: 40px;
    padding: 1em;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    margin-left: 2.3em;
    border-left: 4px solid #5D3991;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .nwcard:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
        transform: translateY(-1px);
    }

.nw-filename-badge {
    display: inline-block;
    background-color: #f3f0f7;
    color: #5D3991;
    padding: 0.25em 0.6em;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'Consolas', 'Monaco', monospace;
    word-break: break-all;
    max-width: 100%;
    border: 1px solid #e0d8eb;
}

@keyframes animatenwcard {
    from {
        background-color: #ed174c;
    }

    to {
        background-color: #f0f0f0;
    }
}

.nwactionscard {
    display: inline-block;
    align-content: center;
    text-align: center;
    border-radius: 3px;
    background-color: #ECECEC;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 5px;
    height: 6em;
    padding-top: 5px;
    margin-left: 3.2em;
    line-height: 0px;
    animation: animaprojectinfos 0.5s cubic-bezier(0.425, 1.04, 0.47, 1.105) 0.75s forwards;
}


/*Fileshare Card */
.fileshareinfo, .fileshareactionscard {
    display: flex;
    justify-content: left;
    text-align: left;
}

.filesharecontent {
    width: 470px;
    position: relative;
    margin-bottom: .5em;
    margin-top: 30px;
    margin-left: 20%;
    animation: animaprojecttop 0.9s cubic-bezier(0.425, 1.14, 0.47, 1.125) forwards;
}

.filesharecontent-sm {
    margin-bottom: .3em;
}

.filesharecard {
    min-height: 230px;
    padding: 20px;
    border-radius: 3px;
    background-color: white;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-left: 2.3em;
}

    .filesharecard:hover {
        animation-name: animatefilesharecard;
        animation-duration: 0.9s;
        background-color: #f0f0f0;
    }

@keyframes animatefilesharecard {
    from {
        background-color: #ed174c;
    }

    to {
        background-color: #f0f0f0;
    }
}

.filesharecard-sm {
    min-height: 40px;
    padding: 10px;
}

.fileshareactionscard {
    display: inline-block;
    /* align-content: center;
    text-align: center;
       */
    text-align: left;
    border-radius: 3px;
    background-color: #ECECEC;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 25px;
    height: 6em;
    padding-top: 5px;
    margin-left: 2.7em;
    line-height: 0px;
    animation: animaprojectinfos 0.5s cubic-bezier(0.425, 1.04, 0.47, 1.105) 0.75s forwards;
}

.fileshareactionscard-sm {
    height: 4em;
}

.fileshareactionscard-md {
    height: 5em;
}
.fileshareactionscard-lg {
    height: 9em;
}
.filesharecard span {
    margin: 0px 6px;
}

.fileshareinfo {
    flex-direction: row;
    z-index: 2;
    position: relative;
}

/*fileshare Card */
.agreementinfo, .agreementactionscard {
    display: flex;
    justify-content: left;
}


.agreementinfo, .agreementactionscard-bottom {
    display: flex;
    justify-content: left;
}
.agreementactionscard-bottom {
    left: unset !important;
    right: 70px !important;
    text-align:center;
}
.agreementcontent {
    position: relative;
    margin-bottom: 2em;
}
.agreementcontent-sm {
    margin-bottom: .5em;
}
.agreementcard {
    min-height: 13em;
    padding: 20px;
    border-radius: 3px;
    background-color: white;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-left: 2.3em;
}
.agreementcard-lg {
    min-height: 20em;
}
.agreementcard-sm {
    min-height: 7.5em;
}
.agreementactionscard {
    display: inline-block;
    align-content: center;
    text-align: center;
    border-radius: 3px;
    background-color: #ECECEC;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 6px;
    height: 11.5em;
    padding-top: 5px;
    margin-left: 0em;
    line-height: 0px;
    /* animation: animaprojectinfos 0.5s cubic-bezier(0.425, 1.04, 0.47, 1.105) 0.75s forwards;*/
}

.agreementcard span {
    margin: 0px 6px;
    color: #3d1a6f;
}
.agreementactionscard-xs {
    height: 6em;
}
.agreementactionscard-sm {
    height: 9em;
}
.agreementactionscard-lg {
    height: 14em;
}
.agreementinfo {
    flex-direction: row;
    z-index: 2;
    position: relative;
}

.agreementactionscard-bottom {
    padding: 2px 20px;
    border-radius: 3px;
    background-color: #ECECEC;
    width: 780px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    z-index: -1;
    left: 70px;
    bottom: 10px;
    padding-top: 5px;
    animation: animainfos 0.5s cubic-bezier(0.425, 1.04, 0.47, 1.105) 0.75s forwards;
    display: inline-block;
}

    .agreementactionscard-bottom span {
        font-size: 1.6em;
        margin: 0px 6px;
        opacity: 0.6;
    }


.clippingactionscard {
    display: inline-block;
    align-content: center;
    text-align: center;
    border-radius: 3px;
    background-color: #ECECEC;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 5px;
    height: 9em;
    padding-top: 5px;
    margin-left: 2.7em;
    line-height: 0px;
    animation: animaprojectinfos 0.5s cubic-bezier(0.425, 1.04, 0.47, 1.105) 0.75s forwards;
}
@keyframes animaprojecttop {
    0% {
        opacity: 0;
        left: -50px;
    }

    100% {
        opacity: 1;
        left: 0px;
    }
}
@keyframes animaprojectinfos {
    0% {
        left: 10px;
    }

    100% {
        left: -42px;
    }
}

.card-header{
    padding-left:0px;
}
.nav-item a {
    color:#3d1a6f;
}


/* fix menu links*/
.dropdown a {
    color: #fff;
}

/* grey colour for placeholder text*/
::-webkit-input-placeholder { /* Edge */
    font-style: italic;
    color:#b4b4b4 !important;
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
    font-style: italic;
    color: #b4b4b4 !important;
}

::placeholder {
    font-style: italic;
    color: #b4b4b4 !important;
}
/* smaller cards */
.card-header{
    padding-top: 10px;
    padding-bottom: 3px;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #fdb913;
}

input:focus + .slider {
    box-shadow: 0 0 1px #fdb913;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }
.yellow-border-thin {
    border: 1px solid #fdb913;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
}
.yellow-border {
    border: 2px solid #fdb913;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
}
.purple-border {
    border: 2px solid #3d1a6f;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
}
.backgroundlight {
    background-color: #f5f5f5;
    overflow:unset !important;
}

.btn-squared-default-plain {
    width: 70% !important;
    height: 70% !important;
    min-height: 75px;
    min-width: 75px;
    padding-top: 20%;
    font-size: 14px;
    background: rgba(204,204,204, .3);
    border: 3px solid #ccc;
}

    .btn-squared-default-plain:hover {
        border: 3px solid #fdb913;
        background: rgba(253,185,19, .3);
    }
.tablemargin{
    margin-top:10px;
}
.form-inline-block{
    width:unset;
    display:inline-block;
}
.noborder{
    border:none;
}
.btn-notallowed{
    cursor:not-allowed !important;
}
.btn{
    line-height: 15px !important;
}
.surveybuttons {
    box-shadow: 0px 4px 11px rgb(0 0 0 / 30%);
    position: absolute;
    height: 35px;
    margin-top: 5px;
    right: 5px;
    text-align: center;
}

/* custom scrollbar */
::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #d6dee1;
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: content-box;
    color: #fdb913;
    background-color: #fdb913;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #a8bbbf;
    }

.creativepreview {
    width: 90%;
    border-radius: 3px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    min-height:60vh;
    margin-left:5%;
    max-width:1000px;
    padding-top: 1rem;
    padding-bottom: 2rem;
}
.schedulecontent {
    width: 100%;
    min-height: 60vh;
    /*
        this line makes it less pretty in mobile
        margin-left: 5%;

    
    max-width: 1400px;*/
}
.newswirepost {
    width: 90%;
    border-radius: 3px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    padding-bottom: 50px;
    margin-left: 5%;
}
.newswireimage{
    width:100%;
    max-width: 200px;
    display:inline;
}
.BUZZHubbrandlogo {
    border-radius: 3px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    height: 300px;
    width: 600px;
    margin-left: 5%;
}
.BUZZHubsquarelogo {
    border-radius: 3px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    height: 300px;
    width: 300px;
    margin-left: 5%;
}
.BUZZHubbannerlogo {
    border-radius: 3px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    height: 300px;
    width: 1100px;
    margin-left: 5%;
}
.darklink {
    color: black;
}
    .darklink a {
        color: black;
    }
.loadingbee{
    width: 40px;
}
.input-group-text-wide{
    min-width:250px;
}
/*
.input-group-text-unset{
    min-width:unset !important;
}
    */
.table-lineless {
    border: solid 1px #fdb913 !important;
    border: solid 1px white !important;
}
    .table-lineless tbody tr:hover {
        background: white !important;
        background-color: white !important;
    }
    .table-lineless > tbody > tr > td {
        border: none !important;
    }
.table-y-lineless {
    border: solid 1px #fdb913 !important;
}

    .table-y-lineless tbody tr:hover {
        background: white !important;
        background-color: white !important;
    }

    .table-y-lineless > tbody > tr > td {
        border: none !important;
    }
.table-limited {
    max-height:40vh;
    overflow-y: scroll;
    padding: .25rem !important;

}
.accordionhover {
    color: #ed174c;
    font-size:1.25em;
}
.accordionhover :hover {
    cursor:pointer !important;
}
    .accordionhover :focus {
        cursor: pointer !important;
    }






/*fix ajax uploader styles*/
.ajax__fileupload_dropzone {
    color: #ed174c !important;
}

.ajax__fileupload_selectFileContainer {
    height: 50px;
    width: 200px !important;
}

.ajax__fileupload_selectFileButton {
    color: #3d1a6f;
    padding: 0px 18px;
    border: 2px solid #3d1a6f;
    border-radius: 50px;
    font-weight: 500;
    overflow: hidden;
    text-align: center;
    background-color: transparent;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-top: 1em;
    width: 200px !important;
}
.dottedborder {
    color: #ed174c !important;
    border-style: dotted;
    border-width: 1px;
    line-height: 50px;
    margin-bottom: 2px;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
/* Compact variant for gridpills */
.slimpills {
    padding: 0.5rem 1rem !important;
    font-size: 13px !important;
}

.table-sender {
    border: dotted 1px #fdb913 !important;
}
    .table-sender tbody tr:hover {
        border: dotted 1px #fdb913;
    }

    .table-sender > tbody > tr > td {
        border: none !important;
    }

.btn-close {
    position:absolute;
    top: 10px;
    right: 10px;
}
.bh-alert {
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    color: #3d1a6f;
    /* background-color: white;*/
    border-color: #3d1a6f;
    margin-left: 3em;
    padding-left: 2px;
    padding-right: 2px;
}
.bh-new {
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    color: #14eb4d;
    /* background-color: white;*/
    border-color: #14eb4d;
    margin-left: 3em;
    padding-left: 2px;
    padding-right: 2px;
}
/*fix for images embedded in richtext box*/
p > img {
    top:unset !important;
}
.red-border-dashed {
    border: 1px dashed #ed174c;
}
.strategyborder {
    border: 1px solid red;
    padding-left: 10px;
    padding-bottom: 50px;
    padding-top: 10px;
}

.changelogo {
    text-align: right;
    position: absolute;
    right: 33px;
    top: 3px;
    text-shadow: 0px 0px 0px white;
}
.card-header {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-left: 4px solid #fdb913;
}
.card-header-purple {
    background-color: #3d1a6f !important;
    color: white !important;
    min-height: unset !important;
}
.card-header-red {
    background-color: #ed174c;
    color: white !important;
    min-height: unset !important;
}
.subcard {
    background-color: #FDDB86;
}
.card-link {
    color: black !important;
}
.card-body {
    border: solid 1px #fdb913;
}


.modalNoScroll {
    overflow-y: unset;
    padding-bottom: 15px;
}

.modalBackground {
    background-color: Black;
    opacity: 0.4;
}


.modalPopup {
    min-height: 300px;
    max-height: 90vh;
    background-color: #FFFFFF;
    border-width: 1px;
    border-style: solid;
    border-color: black;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: hidden;
    overflow-y: hidden;
    box-shadow: 0px 0px 169px rgb(0 0 0 / 100%);
    z-index: 1031 !important;
    display: flex;
    flex-direction: column;
}

/* Make nested containers work with flex layout */
.modalPopup > .container-fluid {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.modalPopup > .container-fluid > .row {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.modalPopup > .container-fluid > .row > [class*="col"] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
.modalPopupEditor {
    min-height: 100vh;
    max-height: 100vh;
    background-color: #FFFFFF;
    border-width: 1px;
    border-style: solid;
    border-color: black;
    padding-top: 10px;
    padding-left: 10px;
    top: 0rem !important;
    border-radius: 5px;
    border: none;
    overflow-x: hidden;
    overflow-y: hidden !important;
    box-shadow: 0px 0px 169px rgb(0 0 0 / 100%);
    z-index: 1000000 !important;
}

.rrHandle {
    z-index: 20001 !important;
}

.modalBackground {
    z-index: 1030 !important;
}
.modalPopup .body {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 50px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(90vh - 100px); /* Ensures scrollbar appears - accounts for header/padding */
}
.modalPopupEditor .body {
    max-height: 100vh;
    overflow-y: scroll !important;
    overflow-x: hidden;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 50px;
}
    .modalPopup .header {
        padding: 0px 0px 0px;
        margin-bottom: 15px;
        text-align: left;
        color: #ed174c;
        border-bottom: 2px solid #e5e5e5;
        cursor: move;
        touch-action: none; /* Enable touch dragging on tablets */
        -webkit-user-select: none;
        user-select: none;
        flex: 0 0 auto;
    }

    /* Touch support: Pass touch events through header children to the parent drag handle */
    .modalPopup .header > *,
    .resizableModal .header > * {
        pointer-events: none;
        touch-action: none;
    }

    /* Keep close button interactive */
    .modalPopup .header > .btn-close,
    .resizableModal .header > .btn-close,
    .modalPopup .header > .btn,
    .resizableModal .header > .btn {
        pointer-events: auto;
        touch-action: auto;
    }

.modalPopupEditor .header {
    padding: 0px 0px 0px;
    margin-bottom: 15px;
    text-align: left;
    color: #ed174c;
    border-bottom: 2px solid #e5e5e5;
}

    .modalPopup .footer {
        position: absolute;
        bottom: 0%;
        width: 100%;
        background: white;
        padding-top: 20px;
        padding-right: 30px;
        z-index: 10000000;
        padding: 10px 10px 10px;
        margin-top: 15px;
        text-align: right;
        border-top: 1px solid #e5e5e5;
    }

.modalBackground {
    background-color: black;
    opacity: .6;
}

.modalPopup.resizableModal .ui-resizable-handle {
    z-index: 1000 !important;
    position: absolute;
    right: 0;
    bottom: 0;
    cursor: se-resize;
    color: yellow;
    overflow: auto;
}

.resizableModal.modalPopup {
    position: fixed !important;
    /*  visibility: hidden;*/
    transition: none !important;
}

.modalPopup.resizableModal {
    display: flex;
    flex-direction: column;
    /*over ride ajax tool kit, then in modalshown unlock it for dragging*/
    /*  top: 39px !important;*/
}

.modalPopup.resizableModal .body {
    flex: 1 1 auto;
    overflow-y: auto;
}

@keyframes fadeInModal {
    from {
        opacity: 0.8;
    }

    to {
        opacity: 1;
    }
}

/* apply the animation to your popup panel */
.resizableModal.modalPopup {
    animation: fadeInModal .300ms ease-out;
}



/* Base header styling for resizable modals */
.resizableModal .header {
    background: #3d1a6f !important;
    color: white !important;
    min-height: 50px;
    padding: 12px 15px !important;
    margin: -10px -10px 15px -10px !important; /* Counteract .modalPopup padding */
    border-bottom: none !important;
    position: relative;
    cursor: move;
    touch-action: none; /* Enable touch dragging on tablets */
    -webkit-user-select: none;
    user-select: none;
}

/* Fix for wrapped structure (container-fluid > row > col) */
/* Only apply negative margins to direct container-fluid children, not nested ones */
.resizableModal > .container-fluid {
    padding: 0 !important;
    margin: -10px -10px 0 -10px !important; /* Counteract .modalPopup padding */
    width: calc(100% + 20px) !important;
}

/* Container-fluid inside .body should have normal margins and layout */
.resizableModal .body .container-fluid {
    margin: 0 !important;
    padding: 0 15px !important;
    width: 100% !important;
    display: block !important;
}

.resizableModal .body .container-fluid > .row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    flex: none !important;
    margin: 0 -15px !important;
}

    /* Make container-fluid structure work with modal flex layout */
    .resizableModal > .container-fluid {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .resizableModal .container-fluid > .row {
        margin: 0 !important;
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        /* Note: flex-direction defaults to row, preserving multi-column layouts */
    }

        /* Only apply column direction to single-column layouts */
        .resizableModal .container-fluid > .row > .col-md-12 {
            padding: 0 !important;
            background-color: transparent !important;
            display: flex;
            flex-direction: column;
            flex: 1 1 auto;
            min-height: 0;
        }

        /* Multi-column layouts keep normal column behavior */
        .resizableModal .container-fluid > .row > .col-md-8,
        .resizableModal .container-fluid > .row > .col-md-4 {
            overflow-y: auto;
        }

    .resizableModal .container-fluid .header {
        margin: 0 0 15px 0 !important; /* Reset margin for wrapped structure */
        padding: 12px 15px !important;
        flex-shrink: 0;
    }

    .resizableModal .container-fluid .body {
        padding: 0 15px 50px 15px !important;
        flex: 1 1 auto;
        overflow-y: auto;
        min-height: 0;
    }

/* Header text styling */
.resizableModal .header h3,
.resizableModal .header h4 {
    color: white !important;
    margin: 0;
    padding-right: 40px; /* Space for close button */
    line-height: 1.4;
    font-size: 1.25rem;
}

/* Close button positioning in purple header */
.resizableModal .header .btn-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

    .resizableModal .header .btn-close:hover {
        background: rgba(255,255,255,0.3) !important;
    }

    .resizableModal .header .btn-close i {
        color: white !important;
    }



@media (max-width: 990px) {
    .modalPopup {
        width: 100% !important;
        position: fixed !important;
        z-index: 1031 !important;
        top: 0px !important;
        left: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0;
    }
    .modalPopup .body {
        padding-bottom: 80px; /* Space for footer */
    }
}

/* =============================================================================
   Modal Form Cosmetic Styling (2025)
   ============================================================================= */

/* Summary badge row at top of modals */
.modal-summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.modal-summary-badges .badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Modal form section headers */
.modal-section-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-section-header i {
    margin-right: 0.5rem;
    color: #3d1a6f;
}

/* Better form row spacing in modals */
.modal-form-row {
    margin-bottom: 1rem;
}

.modal-form-row label,
.modal-form-row .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.25rem;
}

/* Enhanced yellow-border section in modals */
.modal-section-box {
    background: #fffbf0;
    border: 1px solid #fdb913;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.modal-section-box .modal-section-header {
    margin-top: 0;
    color: #856404;
    border-bottom-color: #fdb913;
}

.transparent-border {
    border: solid transparent !important;
}
.wraplines {
    /* These are technically the same, but use both */
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.nomargin {
    margin: 0cm;
    padding: 0cm;
}

    .nomargin > span > p {
        margin: 0cm;
        padding: 0cm;
    }


.RadWindow_Bootstrap {
    z-index: 10003 !important;
}
img {
    max-width: 100%;
}
.fieldpicker {
    background-color: antiquewhite;
    padding-top: 5px;
}
/* beyondgrammar // prowriting aid disable add to dictionary */
.pwa-add-to-dict-button {
    display: none !important;
}

.pwa-disable-rule-button {
    display: none !important;
}
.pwa-ignore-button {
    display: flex !important;
    font-family:Outfit;
    font-size:14pt;
}
.navline {
    width: 220px;
    height: 1px;
    background-color: #ed174c;
}

@keyframes sparkle-animation {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }

    100% {
        opacity: 0;
        transform: scale(2);
    }
}

.btn-sparkle {
    position: relative;
    overflow: hidden;
}

    .btn-sparkle::before,
    .btn-sparkle::after {
        content: "";
        position: absolute;
        top: 0%;
        left: 40%;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: rgba(253,185,19, 0.5);
        opacity: 0;
        pointer-events: none;
        animation: sparkle-animation 1s infinite alternate;
    }

    .btn-sparkle::before {
        animation-delay: 0.5s;
    }

    .btn-sparkle:hover::before,
    .btn-sparkle:hover::after {
        opacity: 1;
    }


li > a > span[style*="font-family: &quot;Segoe UI&quot;, Arial, sans-serif;"] {
    font-family: 'Outfit', sans-serif !important;
}

li > a > span[style*="font-size: 12pt;"] {
    font-size: 14px !important;
}
/* end try to fix the odd elements */
.table.table-compressed td,
.table.table-compressed th {
    padding: 0px !important;
}
.ddcurrency{
    height: 34px;
}
.inputgroup-currency {
    padding: 5px;
    padding-left: 15px;
    height: 34px;
}
/* mod 27092023*/
/* fix comments so headline comments work (top of screen)*/
.RadEditor .reCommentEdit, .RadEditor .reCommentView {
    top:30px !important;
}
/* end mod 27092023*/
.modalPopupHighZ{
    z-index: 1999 !important;
}
.purpleborder {
    border: 1px solid #7d1d61;
    min-height: 2em;
    text-align: left;
    font-size: 16pt;
}

    .purpleborder > div {
        padding-top: 0.25em;
    }

.purpleheader {
    color: white;
    background-color: #7d1d61;
}

.heavytext {
    font-weight: 500;
}
.invoicebubble {
    width: 120px; /* Adjusted for the text to fit */
    height: 40px;
    border: 1px solid red;
    padding: 5px;
    box-sizing: border-box;
    text-align: center;
    transform: translateX(-50%); /* Center the div horizontally */
    background: white; /* Background color */
    color: black; /* Text color */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s linear, visibility 0s linear 0.5s;
    animation: showInvoiceBubble 5s forwards;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2)
}

@keyframes showInvoiceBubble {
    0%, 30% {
        visibility: hidden;
        opacity: 0;
    }

    30%, 90% {
        visibility: visible;
        opacity: 1;
    }

    90%, 100% {
        opacity: 0;
        visibility: hidden;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed navbar on anchor links */
}

/* Prevent images from overflowing their containers */
img {
    max-width: 100%;
    height: auto;
}
.label-fullsize{
    height:100%;
}
    .label-fullsize > p {
        line-height: 14pt;
        padding: 0 !important;
        margin: 0 !important;
    }
.shadow-one {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2)
}
h1, .h1 > span, h1, .h1 > p {
    font-size: 2.5rem !important;
    font-weight: 500 !important;
}

h2, .h2 > span, h2, .h2 > p {
    font-size: 2rem !important;
    font-weight: 500 !important;
}

h3, .h3 > span, h3, .h3 > p {
    font-size: 1.75rem !important;
    font-weight: 500 !important;
}

h4, .h4 > span, h4, .h4 > p {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
}

h5, .h5 > span, h5, .h5 > p {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
}

h6, .h6 > span, h6, .h6 > p {
    font-size: 1rem !important;
    font-weight: 500 !important;
}
/**/
td > span > p {
    font-size: unset !important;
    font-family: unset !important;
}
.rlbGroup {
    min-height: 200px;
}
.bg-highlightyellow {
    background-color: yellow !important;
}

/* ============================================
   SHARED DASHBOARD STYLES
   Use these classes across all dashboard pages
   (default.aspx, StoryDashboard, BIPlanning, etc.)
   ============================================ */

/* Dashboard Page Header */
.bh-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.bh-page-header h4,
.bh-page-header .bh-page-title {
    margin: 0;
    font-weight: 600;
    color: #333;
}
.bh-page-header .bh-page-title i {
    color: #7d1d61;
    margin-right: 0.5rem;
}

/* Summary KPI Cards Container */
.bh-summary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Individual Summary Card */
.bh-summary-card {
    flex: 1;
    min-width: 140px;
    background: white;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #3d1a6f;
    transition: transform 0.2s, box-shadow 0.2s;
}
.bh-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.bh-summary-card .bh-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}
.bh-summary-card .bh-card-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Summary Card Variants */
.bh-summary-card.primary { border-left-color: #3d1a6f; }
.bh-summary-card.success { border-left-color: #28a745; }
.bh-summary-card.warning { border-left-color: #ffc107; }
.bh-summary-card.danger { border-left-color: #dc3545; }
.bh-summary-card.info { border-left-color: #17a2b8; }
.bh-summary-card.secondary { border-left-color: #6c757d; }

/* Clickable Summary Card */
.bh-summary-card.clickable {
    cursor: pointer;
}
.bh-summary-card.clickable:hover {
    background: #f8f9fa;
}

/* Filter Bar */
.bh-filter-bar {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.bh-filter-bar .form-control,
.bh-filter-bar .form-select,
.bh-filter-bar select {
    border-radius: 6px;
    border: 1px solid #ddd;
    height: 38px;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
}
.bh-filter-bar .form-control:focus,
.bh-filter-bar .form-select:focus,
.bh-filter-bar select:focus {
    border-color: #3d1a6f;
    box-shadow: 0 0 0 0.2rem rgba(61, 26, 111, 0.25);
}
.bh-filter-bar .input-group-text {
    background: #fff;
    border: 1px solid #ddd;
    border-right: none;
    color: #666;
}
.bh-filter-bar .btn-search {
    background: #3d1a6f;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.375rem 1rem;
}
.bh-filter-bar .btn-search:hover {
    background: #2d1352;
}
.bh-filter-bar .btn-clear {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.bh-filter-bar .btn-clear:hover {
    background: #eee;
}

/* Status Badges */
.bh-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}
.bh-status-badge .bh-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.bh-status-badge.on-track {
    background: #d4edda;
    color: #155724;
}
.bh-status-badge.on-track .bh-status-dot {
    background: #28a745;
}
.bh-status-badge.off-track {
    background: #f8d7da;
    color: #721c24;
}
.bh-status-badge.off-track .bh-status-dot {
    background: #dc3545;
}
.bh-status-badge.warning {
    background: #fff3cd;
    color: #856404;
}
.bh-status-badge.warning .bh-status-dot {
    background: #ffc107;
}
.bh-status-badge.neutral {
    background: #f8f9fa;
    color: #666;
}
.bh-status-badge.neutral .bh-status-dot {
    background: #999;
}

/* Alphabet Filter */
.bh-alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
    padding: 0.5rem;
}
.bh-alphabet-filter .bh-letter-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.bh-alphabet-filter .bh-letter-btn:hover {
    background: #f0f0f0;
    border-color: #3d1a6f;
    color: #3d1a6f;
}
.bh-alphabet-filter .bh-letter-btn.active {
    background: #3d1a6f;
    border-color: #3d1a6f;
    color: white;
}

/* Welcome/Page Banner */
.bh-welcome-banner {
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(61, 26, 111, 0.3);
}
.bh-welcome-banner h3,
.bh-welcome-banner h4 {
    color: white;
    font-weight: 600;
}
.bh-welcome-banner .input-group-text {
    border: none;
}
.bh-welcome-banner .form-control {
    border: none;
}

/* Loading Overlay */
.bh-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    z-index: 9999;
}
.bh-loading-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}
.bh-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3d1a6f;
    border-radius: 50%;
    animation: bh-spin 1s linear infinite;
}
@keyframes bh-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.bh-loading-text {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Data Card (for lists/grids) */
.bh-data-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.bh-data-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.bh-data-card-header {
    padding: 0.75rem 1rem;
    border-left: 4px solid #7d1d61;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}
.bh-data-card-header:hover {
    background: #f8f9fa;
}
.bh-data-card-header.success { border-left-color: #28a745; }
.bh-data-card-header.warning { border-left-color: #ffc107; }
.bh-data-card-header.danger { border-left-color: #dc3545; }
.bh-data-card-body {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

/* Action Button Group */
.bh-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Empty State */
.bh-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
}
.bh-empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}
.bh-empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Progress Bar (for KPIs) */
.bh-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}
.bh-progress-bar .bh-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3d1a6f, #7d1d61);
    border-radius: 4px;
    transition: width 0.3s ease;
}
.bh-progress-bar .bh-progress-fill.success { background: #28a745; }
.bh-progress-bar .bh-progress-fill.warning { background: #ffc107; }
.bh-progress-bar .bh-progress-fill.danger { background: #dc3545; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .bh-summary-cards {
        flex-direction: column;
    }
    .bh-summary-card {
        max-width: 100%;
    }
    .bh-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .bh-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* StoryDashboard Agreement Actions - fix button colors */
.agreement-actions {
    position: relative;
}
.agreement-actions .btn {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}
/* Ensure outline button text is visible (not white) */
.agreement-actions .btn-outline-secondary {
    color: #000 !important;
    border-color: #6c757d !important;
}
.agreement-actions .btn-outline-secondary:hover,
.agreement-actions .btn-outline-secondary:focus {
    color: #fff !important;
    background-color: #6c757d !important;
}
.agreement-actions .btn-outline-danger {
    color: #ed174c !important;
    border-color: #ed174c !important;
}
.agreement-actions .btn-outline-danger:hover,
.agreement-actions .btn-outline-danger:focus {
    color: #fff !important;
    background-color: #ed174c !important;
}

/* StoryDashboard Story Action Buttons */
.story-actions {
    flex-shrink: 0;
}
.story-actions .btn-xs {
    padding: .2rem .4rem !important;
}
.story-actions .btn-outline-primary {
    color: #3d1a6f !important;
    border-color: #3d1a6f !important;
}
.story-actions .btn-outline-primary:hover,
.story-actions .btn-outline-primary:focus {
    color: #fff !important;
    background-color: #3d1a6f !important;
}
.story-actions .btn-outline-danger {
    color: #ed174c !important;
    border-color: #ed174c !important;
}
.story-actions .btn-outline-danger:hover,
.story-actions .btn-outline-danger:focus {
    color: #fff !important;
    background-color: #ed174c !important;
}

.table-borderless {
    border: 0 !important;
}
.table-borderless th,
.table-borderless td,
.table-borderless thead th,
.table-borderless tbody + tbody {
    border: 0 !important;
}

/* ========================================
   Survey Forms Styles
   ======================================== */

/* Survey import upload zone */
.survey-import-zone {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border: 2px dashed #fdb913;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
}
.survey-import-zone:hover {
    border-color: #3d1a6f;
    background: #f8f4fc;
}
.survey-import-zone .upload-icon {
    font-size: 3rem;
    color: #999;
    margin-bottom: 1rem;
}

/* Wizard step indicator */
.survey-wizard-steps {
    padding: 1rem 0;
}
.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.wizard-step .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s;
}
.wizard-step.active .step-circle {
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    color: white;
}
.wizard-step.completed .step-circle {
    background: #28a745;
    color: white;
}
.step-connector {
    width: 100px;
    height: 3px;
    background: #e9ecef;
    margin: 0 1rem;
}
.step-label {
    font-size: 0.875rem;
    color: #666;
}
.wizard-step.active .step-label {
    color: #3d1a6f;
    font-weight: 500;
}

/* Survey legend card */
.survey-legend-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e9ecef;
    border-left: 4px solid #fdb913;
    border-radius: 8px;
}
.survey-legend-card .card-body {
    font-size: 0.875rem;
}
.survey-legend {
    font-size: 0.875rem;
}
.survey-legend h6 {
    color: #3d1a6f;
    font-weight: 600;
}

/* Survey table enhancements */
.survey-table th {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%) !important;
    border-left: 4px solid #fdb913 !important;
    font-weight: 600;
    color: #333;
}
.survey-table .survey-name {
    font-weight: 600;
    color: #333;
}
.survey-table .survey-meta {
    font-size: 0.8rem;
    color: #666;
}

/* Survey action buttons */
.survey-actions .btn {
    padding: 0.25rem 0.5rem;
}
.survey-actions .btn-outline-primary {
    color: #3d1a6f !important;
    border-color: #3d1a6f !important;
}
.survey-actions .btn-outline-primary:hover {
    color: #fff !important;
    background-color: #3d1a6f !important;
}

/* Border dashed utility */
.border-dashed {
    border-style: dashed !important;
}

/* ============================================================================
   INTERVIEW COVERAGE - Modern Coverage Management UI
   ============================================================================ */

/* Coverage Stats Bar */
.coverage-stats-bar {
    margin-bottom: 1.5rem;
}

.coverage-stats-bar .kpi-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #3d1a6f;
    text-align: center;
}

.coverage-stats-bar .kpi-card.warning {
    border-left-color: #fdb913;
}

.coverage-stats-bar .kpi-card.success {
    border-left-color: #28a745;
}

.coverage-stats-bar .kpi-card.info {
    border-left-color: #17a2b8;
}

.coverage-stats-bar .kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3d1a6f;
    line-height: 1.2;
}

.coverage-stats-bar .kpi-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Coverage Panel Headers */
.coverage-panel-header {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-left: 4px solid #fdb913;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.coverage-panel-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.coverage-panel-header .badge {
    font-size: 0.85rem;
}

/* Coverage Panel Toolbar */
.coverage-panel-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.coverage-panel-toolbar .search-input {
    flex: 1;
    min-width: 150px;
    max-width: 250px;
}

.coverage-panel-toolbar .search-input input {
    border-radius: 20px;
    padding-left: 2.5rem;
    border: 1px solid #ddd;
}

.coverage-panel-toolbar .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Coverage Items Container */
.coverage-items-container {
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed transparent;
    transition: all 0.2s ease;
}

.coverage-items-container.sortable-ghost-highlight {
    border-color: #3d1a6f;
    background: #f8f4fc;
}

.coverage-items-container .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.coverage-items-container .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Coverage Card */
.coverage-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 0.75rem;
    border-left: 4px solid #3d1a6f;
    transition: all 0.2s ease;
}

.coverage-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.coverage-card.status-coverage {
    border-left-color: #28a745;
}

.coverage-card.status-lead {
    border-left-color: #fdb913;
}

.coverage-card.updating {
    opacity: 0.6;
    pointer-events: none;
}

.coverage-card .card-header {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    gap: 0.5rem;
    background: transparent;
    border-bottom: 1px solid #eee;
}

.coverage-card .drag-handle {
    cursor: grab;
    color: #ccc;
    padding: 0.25rem;
    transition: color 0.2s;
}

.coverage-card .drag-handle:hover {
    color: #3d1a6f;
}

.coverage-card .checkbox-wrapper {
    padding: 0.25rem;
}

.coverage-card .station-logo {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.coverage-card .station-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.coverage-card .station-info {
    flex: 1;
    min-width: 0;
}

.coverage-card .station-name {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coverage-card .contact-details {
    font-size: 0.85rem;
    color: #666;
}

.coverage-card .contact-details .separator {
    margin: 0 0.25rem;
    color: #ccc;
}

.coverage-card .outlet-type {
    font-size: 0.8rem;
    color: #999;
}

.coverage-card .quick-actions {
    display: flex;
    gap: 0.25rem;
}

.coverage-card .quick-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

.coverage-card .card-body {
    padding: 0.5rem 0.75rem;
}

.coverage-card .badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.coverage-card .downloads-toggle {
    padding: 0;
    font-size: 0.85rem;
}

.coverage-card .downloads-accordion {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #eee;
}

.coverage-card .downloads-accordion.collapse:not(.show) {
    display: none;
}

.coverage-card .downloads-accordion.show {
    display: block;
}

.coverage-card .downloads-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.coverage-card .downloads-list-items li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coverage-card .downloads-list-items .filename {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coverage-card .downloads-list-items .date {
    color: #999;
    font-size: 0.8rem;
}

.coverage-card .card-footer {
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
}

/* SortableJS drag states */
.sortable-ghost {
    opacity: 0.4;
}

.sortable-chosen {
    box-shadow: 0 8px 24px rgba(61, 26, 111, 0.2);
}

.sortable-drag {
    opacity: 1 !important;
}

/* Toast Notifications */
.ic-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: #333;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.ic-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.ic-toast.success {
    background: #28a745;
}

.ic-toast.warning {
    background: #fdb913;
    color: #333;
}

.ic-toast.error {
    background: #dc3545;
}

.ic-toast.info {
    background: #17a2b8;
}

/* Audit History Panel */
.audit-history-panel {
    margin-top: 1rem;
}

.audit-history-panel .card-header {
    cursor: pointer;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.audit-history-panel .card-header:hover {
    background: #f0f0f0;
}

.audit-entries {
    max-height: 300px;
    overflow-y: auto;
}

.audit-entry {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.audit-entry:last-child {
    border-bottom: none;
}

.audit-entry .station-name {
    font-weight: 500;
}

.audit-entry .arrow {
    color: #ccc;
}

.audit-entry .new-status {
    color: #28a745;
    font-weight: 500;
}

.audit-entry .audit-meta {
    width: 100%;
    font-size: 0.8rem;
    color: #999;
    display: flex;
    gap: 1rem;
}

.audit-entry .audit-notes {
    width: 100%;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    padding-left: 0.5rem;
    border-left: 2px solid #eee;
}

/* Loading Spinner */
.coverage-items-container .loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #3d1a6f;
}

/* Toggle Switch for Modern/Legacy View */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.view-toggle .custom-switch .custom-control-label::before {
    background-color: #ccc;
}

.view-toggle .custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #3d1a6f;
}

/* ==========================================================================
   Pitch/Booking Stats Bar (reusable KPI cards)
   ========================================================================== */

.pitch-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.pitch-stat-card {
    background: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border-left: 4px solid #3d1a6f;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    min-width: 100px;
    text-align: center;
    flex: 1;
}

.pitch-stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3d1a6f;
    line-height: 1.2;
}

.pitch-stat-card .stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pitch-stat-card.primary { border-left-color: #3d1a6f; }
.pitch-stat-card.warning { border-left-color: #fdb913; }
.pitch-stat-card.success { border-left-color: #28a745; }
.pitch-stat-card.danger { border-left-color: #dc3545; }
.pitch-stat-card.info { border-left-color: #17a2b8; }

.pitch-stats-collapsed {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85rem;
}

.pitch-stats-collapsed a {
    color: #3d1a6f;
    text-decoration: none;
}

.pitch-stats-collapsed a:hover {
    text-decoration: underline;
}

.coverage-stats-collapsed {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.coverage-stats-collapsed a {
    color: #3d1a6f;
    text-decoration: none;
}

.coverage-stats-collapsed a:hover {
    text-decoration: underline;
}

.stats-dismiss-btn {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: auto;
    flex: 0 0 auto;
}

.stats-dismiss-btn:hover {
    color: #666;
}

/* ==========================================================================
   Booking Card Styles
   ========================================================================== */

.booking-stats-bar {
    margin-bottom: 1rem;
}

.booking-toolbar {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.bookings-cards-container {
    min-height: 200px;
}

.bookings-cards-container .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #999;
}

.bookings-cards-container .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #999;
    background: #f8f9fa;
    border-radius: 8px;
}

.bookings-cards-container .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.bookings-cards-container .empty-state.error {
    color: #dc3545;
}

.booking-date-group {
    margin-bottom: 1.5rem;
}

.booking-date-group .date-header {
    font-weight: 600;
    color: #3d1a6f;
    font-size: 1.1rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.booking-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 0.75rem;
    border-left: 4px solid #3d1a6f;
    transition: all 0.2s ease;
    cursor: pointer;
}

.booking-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.booking-card.status-confirmed {
    border-left-color: #28a745;
}

.booking-card.status-tentative {
    border-left-color: #ffc107;
}

.booking-card.status-awaiting {
    border-left-color: #6c757d;
}

.booking-card.status-client-confirmed {
    border-left-color: #17a2b8;
}

.booking-card.updating {
    opacity: 0.6;
    pointer-events: none;
}

/* Unavailable Block - Distinct "blocked out" appearance */
.unavailable-block {
    position: relative;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 2px dashed #999;
}

.unavailable-stripe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(150, 150, 150, 0.1) 10px,
        rgba(150, 150, 150, 0.1) 20px
    );
    pointer-events: none;
}

.unavailable-content {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1.5rem;
}

.unavailable-icon-large {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.unavailable-details {
    flex: 1;
}

.unavailable-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #dc3545;
    margin-bottom: 0.25rem;
}

.unavailable-talent {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.unavailable-time {
    font-size: 0.9rem;
    color: #666;
}

.unavailable-reason {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.25rem;
    font-style: italic;
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid #eee;
    border-radius: 8px 8px 0 0;
}

.booking-datetime {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.booking-datetime .time {
    font-weight: 600;
    color: #3d1a6f;
    font-size: 1rem;
}

.booking-datetime .timezone {
    font-size: 0.8rem;
    color: #999;
}

.booking-card-body {
    padding: 0.75rem 1rem;
}

.outlet-logo {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outlet-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.outlet-info .outlet-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.outlet-info .outlet-meta {
    font-size: 0.85rem;
    color: #666;
}

.outlet-info .outlet-meta .separator {
    margin: 0 0.5rem;
    color: #ccc;
}

.outlet-info .host-info {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.25rem;
}

.talent-info .talent-primary {
    font-weight: 600;
    color: #3d1a6f;
    font-size: 1rem;
}

.secondary-talent-section {
    margin-top: 0.5rem;
}

.secondary-talent-section .toggle-secondary {
    padding: 0;
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
}

.secondary-talent-section .toggle-secondary:hover {
    color: #3d1a6f;
}

.secondary-talent-list {
    display: none;
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid #e9ecef;
}

.secondary-talent-list.show {
    display: block;
}

.secondary-talent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

.method-info .method {
    font-size: 0.9rem;
    color: #333;
}

.method-info .type {
    font-size: 0.8rem;
    color: #999;
}

.booking-notes {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fffbf0;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
}

.booking-card .quick-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.booking-card .quick-actions .btn,
.booking-card .quick-actions .btn-xs {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}

.booking-card .quick-actions .badge {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}

/* Status badges */
.status-badge .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
}

/* Toast notification */
.booking-toast {
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   OFFCANVAS SLIDE-OUT PANEL (Bootstrap 4 Polyfill)
   ============================================ */
.offcanvas {
    position: fixed;
    bottom: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    visibility: hidden;
    background-color: #fff;
    background-clip: padding-box;
    outline: 0;
    transition: transform 0.3s ease-in-out;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
}

.offcanvas-end {
    top: 0;
    right: 0;
    width: 400px;
    border-left: 1px solid rgba(0,0,0,.2);
    transform: translateX(100%);
}

.offcanvas.show {
    visibility: visible;
    transform: none;
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.offcanvas-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.offcanvas-body {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
}

.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    opacity: 0.5;
}

.offcanvas-backdrop.fade {
    opacity: 0;
}

.offcanvas-backdrop.show {
    opacity: 0.5;
}

body.offcanvas-open {
    overflow: hidden;
}

/* =============================================================================
   Portal Access Cards
   ============================================================================= */

.portal-section {
    margin-bottom: 1.5rem;
}

.portal-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-left: 4px solid #fdb913;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}

.portal-section-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.portal-section-header .btn-group {
    display: flex;
    gap: 0.5rem;
}

.portal-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.portal-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.portal-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.portal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.portal-card-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.portal-card-email {
    color: #666;
    font-size: 0.875rem;
}

.portal-card-actions {
    display: flex;
    gap: 0.25rem;
}

.portal-card-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.portal-card-body {
    margin-bottom: 0.75rem;
}

.portal-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.portal-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #666;
}

.portal-card-meta-item i {
    font-size: 0.75rem;
}

.portal-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.portal-status-active {
    color: #28a745;
    font-size: 0.85rem;
}

.portal-status-active i {
    font-size: 0.5rem;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.portal-status-never {
    color: #6c757d;
    font-size: 0.85rem;
}

.portal-status-never i {
    font-size: 0.5rem;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.portal-last-accessed {
    font-size: 0.85rem;
    color: #666;
}

.portal-alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.portal-alert-badge.alert-on {
    background: #d4edda;
    color: #155724;
}

.portal-alert-badge.alert-off {
    background: #f8d7da;
    color: #721c24;
}

/* Empty state for portal sections */
.portal-empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.portal-empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* QR Code Modal */
#qrCodeModal .modal-body {
    text-align: center;
    padding: 1.5rem;
}

#qrCodeContainer {
    display: inline-block;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

#qrCodeContainer img {
    display: block;
}

/* Portal toast notification */
.portal-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 9999;
    color: #fff;
    animation: portalToastIn 0.3s ease;
}

.portal-toast-success {
    background: #28a745;
}

.portal-toast-error {
    background: #dc3545;
}

@keyframes portalToastIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portal-cards-container {
        grid-template-columns: 1fr;
    }

    .portal-section-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .portal-card-header {
        flex-direction: column;
    }

    .portal-card-actions {
        margin-top: 0.5rem;
    }
}

/* ============================================
   SCHEDULE PORTAL STYLES
   ============================================ */

/* Info Section Cards (Background Info, Speaking Tips) */
.info-section-card {
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #3d1a6f;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.info-section-card h4 {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    margin: 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0e6d0;
}

.info-section-card h4 i {
    margin-right: 0.5rem;
    color: #3d1a6f;
}

.info-section-content {
    padding: 1.25rem 1.5rem;
    line-height: 1.7;
    color: #555;
}

/* Generic padding for card body content */
.info-section-card > p,
.info-section-card > div:not(h4) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.info-section-card > p:first-of-type {
    padding-top: 1rem;
}

.info-section-card > div:last-child {
    padding-bottom: 1.5rem;
}

/* Ensure nested content in settings cards has proper left padding */
.info-section-card .pin-security-status,
.info-section-card .pin-security-actions {
    padding-left: 1rem;
    margin-left: 0;
}

/* Q&A Cards (Key Messages) */
.qa-card {
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #3d1a6f;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.qa-card-header {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qa-number {
    background: #3d1a6f;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.qa-card-body {
    padding: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Portal Card Grid (Manage Alerts) */
.portal-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

.portal-card {
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #3d1a6f;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.portal-card-header {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.portal-card-info {
    flex: 1;
}

.portal-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.portal-card-title {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.portal-card-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.portal-card-toggle .toggle-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

.portal-card-body {
    padding: 1rem;
}

.portal-card-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.portal-card-detail i {
    width: 16px;
    color: #3d1a6f;
}

.portal-card-actions {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

/* Media Release Card */
.media-release-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.media-release-header {
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.media-release-image {
    max-height: 150px;
    max-width: 150px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: inline-block;
}

.media-release-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.media-release-notice {
    display: inline-block;
    background: #fdb913;
    color: #333;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.media-release-body {
    padding: 2rem;
}

.media-release-bullets {
    background: #f8f9fa;
    border-left: 4px solid #fdb913;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
}

.media-release-content {
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.media-release-questions {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-radius: 8px;
    padding: 1.5rem;
}

.media-release-questions h5 {
    color: #3d1a6f;
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.media-release-questions h5 i {
    margin-right: 0.5rem;
}

/* Interview Countdown Card */
.schedule-countdown-container {
    margin: 1rem 0;
}

.schedule-countdown-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(61, 26, 111, 0.3);
}

.countdown-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.countdown-info {
    flex: 1;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.countdown-outlet {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.25rem 0;
}

.countdown-time {
    font-size: 0.9rem;
    opacity: 0.9;
}

.countdown-timer {
    text-align: center;
    background: rgba(255,255,255,0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.countdown-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.countdown-unit {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.countdown-actions {
    display: flex;
    gap: 0.5rem;
}

.countdown-actions .btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.countdown-actions .btn:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* Urgent Action Banner */
.schedule-urgent-banner {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    animation: pulse-border 2s infinite;
}

.urgent-banner-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #dc3545;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.urgent-banner-header i {
    font-size: 1.25rem;
}

.urgent-banner-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.urgent-banner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.urgent-banner-item.urgency-urgent {
    border-left-color: #fd7e14;
}

.urgent-item-info {
    display: flex;
    flex-direction: column;
}

.urgent-item-outlet {
    font-weight: 600;
    color: #333;
}

.urgent-item-time {
    font-size: 0.85rem;
    color: #666;
}

.urgent-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* Schedule Interview Card Overrides */
.schedule-interview-card {
    margin-bottom: 1rem;
}

.schedule-interview-card .booking-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.schedule-interview-card .booking-card-header-left {
    flex-shrink: 0;
}

.schedule-interview-card .booking-card-header-center {
    flex: 1;
}

.schedule-interview-card .booking-card-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.schedule-interview-card .booking-outlet-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.schedule-interview-card .booking-interview-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.schedule-interview-card .booking-timezone {
    color: #999;
    font-size: 0.8rem;
}

.schedule-interview-card .booking-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.schedule-interview-card .booking-card-body {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.schedule-interview-card .booking-detail-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.schedule-interview-card .booking-detail-label {
    font-weight: 600;
    color: #666;
    min-width: 70px;
}

.schedule-interview-card .booking-card-footer {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-radius: 0 0 8px 8px;
}

.schedule-interview-card .booking-notes {
    background: #fff5f5;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* Phone link styling */
.schedule-interview-card .booking-phone-link {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.schedule-interview-card .booking-phone-link:hover {
    color: #1e7e34;
    text-decoration: underline;
}

.schedule-interview-card .booking-phone-link i {
    font-size: 0.9em;
}

/* Status-based card styling */
.schedule-interview-card[data-interview-status="Confirmed"],
.schedule-interview-card[data-interview-status="Client Confirmed"] {
    border-left-color: #28a745;
}

.schedule-interview-card[data-interview-status="Tentative"] {
    border-left-color: #ffc107;
}

/* Urgency-based card styling */
.schedule-interview-card.urgency-critical {
    border-left: 4px solid #dc3545 !important;
    animation: pulse-border 1.5s infinite;
}

.schedule-interview-card.urgency-urgent {
    border-left: 4px solid #fd7e14 !important;
    background: #fff8f0;
}

.schedule-interview-card.urgency-warning {
    border-left: 4px solid #ffc107 !important;
}

.schedule-interview-card .booking-urgency-text {
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.schedule-interview-card.urgency-critical .booking-urgency-text,
.schedule-interview-card.urgency-urgent .booking-urgency-text,
.schedule-interview-card.urgency-warning .booking-urgency-text {
    display: block !important;
}

/* Floating Key Messages Button */
.schedule-floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(61, 26, 111, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.schedule-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(61, 26, 111, 0.5);
}

.schedule-floating-btn:active {
    transform: scale(0.95);
}

/* Key Messages Modal */
.key-messages-modal .modal-header {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-left: 4px solid #fdb913;
}

.key-messages-modal .qa-card {
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #3d1a6f;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.key-messages-modal .qa-card-header {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #333;
    border-radius: 0 8px 0 0;
}

.key-messages-modal .qa-card-body {
    padding: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .schedule-countdown-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .countdown-timer {
        width: 100%;
    }

    .countdown-actions {
        width: 100%;
        justify-content: center;
    }

    .schedule-interview-card .booking-card-header {
        flex-direction: column;
        text-align: center;
    }

    .schedule-interview-card .booking-card-header-right {
        align-items: center;
        margin-top: 0.5rem;
    }

    .urgent-banner-item {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .urgent-item-actions {
        width: 100%;
        justify-content: center;
    }

    .schedule-floating-btn {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ========================================
   Schedule Portal - Calendar Sync Bar
   ======================================== */
.schedule-calendar-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.calendar-bar-label {
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.calendar-bar-label i {
    color: #3d1a6f;
    margin-right: 0.5rem;
}

.calendar-bar-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.calendar-bar-buttons .btn {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .schedule-calendar-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-bar-buttons {
        width: 100%;
    }

    .calendar-bar-buttons .btn {
        flex: 1;
        text-align: center;
    }
}

/* ========================================
   Schedule Portal - Calendar Options Panel
   ======================================== */
.schedule-calendar-options {
    margin: 1rem 0;
}

.calendar-options-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.calendar-options-header {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-left: 4px solid #fdb913;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-options-header i {
    margin-right: 0.5rem;
    color: #3d1a6f;
}

.calendar-options-header .btn-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.calendar-options-header .btn-close:hover {
    opacity: 1;
}

.calendar-options-body {
    padding: 1.5rem;
}

.calendar-options-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.calendar-option-section h6 {
    color: #3d1a6f;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calendar-option-section h6 i {
    margin-right: 0.5rem;
}

.calendar-option-divider {
    width: 1px;
    background: #e9ecef;
    min-height: 100px;
    align-self: stretch;
}

.calendar-subscribe-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.calendar-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.calendar-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.calendar-options-footer {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #666;
}

.calendar-options-footer i {
    color: #3d1a6f;
    margin-right: 0.5rem;
}

/* Calendar Toast Notification */
.calendar-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.calendar-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.calendar-toast i {
    color: #4caf50;
    margin-right: 0.5rem;
}

/* Calendar Options Mobile */
@media (max-width: 768px) {
    .calendar-options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .calendar-option-divider {
        width: 100%;
        height: 1px;
        min-height: auto;
    }

    .calendar-subscribe-buttons {
        flex-direction: column;
    }

    .calendar-subscribe-btn {
        justify-content: center;
        width: 100%;
    }
}

/* ========================================
   Schedule Portal - Calendar Setup Banner
   ======================================== */
.calendar-setup-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    color: #fff;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(61, 26, 111, 0.2);
}

.calendar-setup-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-setup-content > i {
    font-size: 2rem;
    color: #fdb913;
}

.calendar-setup-text {
    display: flex;
    flex-direction: column;
}

.calendar-setup-text strong {
    font-size: 1rem;
    font-weight: 600;
}

.calendar-setup-text span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.calendar-setup-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-setup-actions .btn-primary {
    background: #fdb913;
    border-color: #fdb913;
    color: #1a1a1a;
    font-weight: 600;
}

.calendar-setup-actions .btn-primary:hover {
    background: #e5a711;
    border-color: #e5a711;
}

.calendar-setup-actions .btn-link {
    text-decoration: none;
    opacity: 0.8;
}

.calendar-setup-actions .btn-link:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .calendar-setup-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .calendar-setup-content {
        flex-direction: column;
        text-align: center;
    }

    .calendar-setup-actions {
        width: 100%;
        flex-direction: column;
    }

    .calendar-setup-actions .btn {
        width: 100%;
    }
}

/* ========================================
   Schedule Portal - PIN Security
   ======================================== */
.pin-security-card {
    border-left-color: #3d1a6f !important;
}

.pin-security-status {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.pin-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pin-status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.pin-status-icon.pin-disabled {
    background: #e9ecef;
    color: #6c757d;
}

.pin-status-icon.pin-enabled {
    background: #d4edda;
    color: #28a745;
}

.pin-status-text {
    color: #333;
    font-size: 0.95rem;
}

/* PIN Modal Styles */
.pin-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.pin-input {
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
}

.pin-input:focus {
    border-color: #3d1a6f;
    box-shadow: 0 0 0 0.2rem rgba(61, 26, 111, 0.25);
}

.pin-input-container {
    margin-bottom: 1rem;
}

.pin-error-message {
    color: #dc3545;
    background: #f8d7da;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.pin-lockout-message {
    color: #856404;
    background: #fff3cd;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.pin-requirements {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.pin-security-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* PIN Modal Mobile */
@media (max-width: 576px) {
    .pin-input {
        font-size: 1.25rem;
        letter-spacing: 0.3rem;
    }
}

/* ========================================
   Schedule Portal - Toolbar
   ======================================== */
.schedule-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.schedule-toolbar-left {
    flex: 0 0 auto;
}

.schedule-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Settings Dropdown Custom Items */
.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
}

.dropdown-item-custom .switch {
    margin: 0;
}

.dropdown-item-custom .dropdown-item-label {
    font-size: 0.9rem;
    color: #333;
}

.switch-sm {
    transform: scale(0.8);
}

/* ========================================
   Schedule Portal - Contact Popup
   ======================================== */
.schedule-contact-popup {
    position: fixed;
    bottom: 90px;
    right: 1.5rem;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow: hidden;
}

.contact-popup-header {
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-popup-header i {
    margin-right: 0.5rem;
}

.popup-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.popup-close:hover {
    opacity: 1;
}

.contact-popup-body {
    padding: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    color: #3d1a6f;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item a:hover {
    color: #3d1a6f;
}

/* ========================================
   Schedule Portal - Key Messages Slide-out
   ======================================== */
.schedule-slideout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
}

.schedule-slideout-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.schedule-slideout-panel.open {
    right: 0;
}

.slideout-header {
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slideout-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slideout-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.slideout-close:hover {
    opacity: 1;
}

.slideout-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.slideout-body .qa-card {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.slideout-body .qa-card-header {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-left: 4px solid #fdb913;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #333;
}

.slideout-body .qa-card-body {
    padding: 0.75rem 1rem;
    color: #555;
    line-height: 1.6;
}

.slideout-footer {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

/* ========================================
   Schedule Portal - PIN Setup Banner
   ======================================== */
.pin-setup-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    z-index: 1030;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

.pin-setup-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pin-setup-banner-content i {
    font-size: 1.5rem;
    color: #fdb913;
}

.pin-setup-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pin-setup-banner .btn-link {
    color: rgba(255,255,255,0.8);
}

.pin-setup-banner .btn-link:hover {
    color: #fff;
}

/* ========================================
   Portal Logo Background Fix (Schedule/NewsWire)
   ======================================== */
.schedule-portal #mainNav .navbar-brand img,
.newswire-portal #mainNav .navbar-brand img {
    background: rgba(255,255,255,0.9);
    padding: 0.25rem;
    border-radius: 6px;
}

/* Hide individual calendar buttons by default - JS will show if user enabled */
.schedule-portal .individual-calendar-btn {
    display: none;
}

/* Add top padding to non-SCHEDULE tabs */
.schedule-portal .tab-pane:not(#schedule) {
    padding-top: 1.5rem;
}

/* Schedule Portal Welcome Greeting */
.schedule-welcome {
    padding: 0;
    margin: 0;
}

.schedule-welcome h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.schedule-welcome-date {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #666;
}

/* Schedule Toolbar Mobile */
@media (max-width: 768px) {
    .schedule-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-toolbar-left,
    .schedule-toolbar-right {
        width: 100%;
    }

    .schedule-toolbar-right {
        justify-content: center;
    }

    .schedule-toolbar-right .btn-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .schedule-slideout-panel {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }

    .schedule-contact-popup {
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
    }

    .pin-setup-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ================================================
   CRM Outlets Modernization (Phases 1+2)
   Created: 2025-12-27
   ================================================ */

/* CRM Breadcrumb Navigation */
.crm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.crm-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.crm-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.crm-breadcrumb .breadcrumb-item:last-child {
    color: #fdb913;
    font-weight: 600;
}

.crm-breadcrumb .breadcrumb-separator {
    color: rgba(255,255,255,0.5);
    font-weight: 300;
}

/* ================================================
   Brand Detail View (Single Page Layout)
   Replaces nested tab navigation
   ================================================ */

.brand-detail-view {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

/* Brand Header Card */
.brand-header-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-left: 4px solid #fdb913;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.brand-header-card .brand-logo {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.brand-header-card .brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-header-card .brand-logo i {
    color: #ccc;
}

.brand-header-card .brand-title {
    flex: 1;
}

.brand-header-card .brand-title h3 {
    margin: 0 0 0.5rem 0;
    color: #3d1a6f;
    font-size: 1.5rem;
    font-weight: 600;
}

.brand-header-card .brand-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Multi-Parent Display Section (Phase 7) */
.brand-parents-section {
    margin-top: 0.75rem;
}

.brand-parents-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.brand-parents-list .parents-label {
    font-size: 0.85rem;
    color: #666;
    margin-right: 0.25rem;
}

.brand-parents-list .parents-label i {
    color: #3d1a6f;
    margin-right: 0.25rem;
}

.brand-parents-list .parent-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #f8f4fc 0%, #f0e8f8 100%);
    border: 1px solid #e0d0f0;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.brand-parents-list .parent-tag a {
    color: #3d1a6f;
    text-decoration: none;
    font-weight: 500;
}

.brand-parents-list .parent-tag a:hover {
    text-decoration: underline;
}

.brand-parents-list .parent-tag .btn-link {
    font-size: 0.75rem;
    line-height: 1;
}

.brand-parents-list .parent-tag .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

.brand-header-card .brand-quick-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

/* Brand Stats Row */
.brand-stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.brand-stat-item {
    flex: 1;
    min-width: 120px;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border-left: 3px solid #3d1a6f;
}

.brand-stat-item .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3d1a6f;
}

.brand-stat-item .stat-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Accordion Sections */
.brand-sections {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.brand-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.brand-section .section-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.2s;
    gap: 0.75rem;
}

.brand-section .section-header:hover {
    background: #f0f0f0;
}

.brand-section .section-icon {
    color: #3d1a6f;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.brand-section .section-title {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.brand-section .section-count {
    font-size: 0.8rem;
}

.brand-section .section-toggle {
    color: #999;
    transition: transform 0.2s;
}

.brand-section.expanded .section-toggle {
    transform: rotate(180deg);
}

.brand-section .section-content {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e0e0e0;
}

.brand-section .section-toolbar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: center;
}

.brand-section .section-toolbar input[type="text"] {
    flex: 1;
    max-width: 300px;
}

/* Loading Placeholder */
.loading-placeholder {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.loading-placeholder i {
    margin-right: 0.5rem;
}

/* People Grid (contact cards) */
.people-grid {
    /* Container only — grid lives on .people-cards-wrapper */
}

.people-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.people-cards-wrapper .crm-contact-card {
    max-width: 380px;
}

/* Time Report Section (Activity accordion) */
.time-report-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    margin-top: 1rem;
}

.time-report-heading {
    font-weight: 600;
    color: #3d1a6f;
    margin-bottom: 0.75rem;
}

.time-report-table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
}

.time-report-table th {
    background: #f5f0fa;
    color: #3d1a6f;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid #d4c5e8;
}

.time-report-table td {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid #eee;
}

.time-report-table tr:hover td {
    background: #faf8fd;
}

.time-report-table .hours-cell {
    font-weight: 600;
    text-align: right;
}

.time-report-table th.hours-cell {
    text-align: right;
}

.time-report-toggle {
    cursor: pointer;
    color: #6c35a5;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: inline-block;
}

.time-report-toggle:hover {
    text-decoration: underline;
}

/* Sub-brands Grid */
.sub-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

/* Conversations Timeline */
.conversations-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Brand Conversation Items (in brand detail view) */
.brand-conversation-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.brand-conversation-item .conv-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand-conversation-item .conv-type {
    font-weight: 600;
    color: #3d1a6f;
}

.brand-conversation-item .conv-type i {
    margin-right: 0.35rem;
    color: #17a2b8;
}

.brand-conversation-item .conv-date {
    color: #888;
    font-size: 0.85rem;
    margin-left: auto;
}

.brand-conversation-item .conv-notes {
    margin: 0.5rem 0;
    color: #444;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.brand-conversation-item .conv-meta {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.brand-conversation-item .conv-spoke-to {
    color: #28a745;
}

.brand-conversation-item .conv-by {
    color: #6c757d;
}

.brand-conversation-item .conv-meta i {
    margin-right: 0.25rem;
}

/* Reception-based border colors for conversations */
.brand-conversation-item.reception-hot {
    border-left: 3px solid #28a745;
    padding-left: 0.75rem;
}
.brand-conversation-item.reception-warm {
    border-left: 3px solid #ffc107;
    padding-left: 0.75rem;
}
.brand-conversation-item.reception-lukewarm,
.brand-conversation-item.reception-luke-warm {
    border-left: 3px solid #fd7e14;
    padding-left: 0.75rem;
}
.brand-conversation-item.reception-cold {
    border-left: 3px solid #6c757d;
    padding-left: 0.75rem;
}
.brand-conversation-item.reception-ice-cold {
    border-left: 3px solid #dc3545;
    padding-left: 0.75rem;
}

/* Conversation header with type badge and user */
.brand-conversation-item .conv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.brand-conversation-item .conv-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.brand-conversation-item .conv-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.brand-conversation-item .conv-edit-btn,
.brand-conversation-item .conv-delete-btn {
    padding: 0.15rem 0.35rem;
    opacity: 0.4;
    transition: opacity 0.2s;
}
.brand-conversation-item:hover .conv-edit-btn,
.brand-conversation-item:hover .conv-delete-btn {
    opacity: 1;
}
.brand-conversation-item .conv-user {
    font-size: 0.85rem;
    color: #666;
}
.brand-conversation-item .conv-user i {
    color: #3d1a6f;
}

/* Type badges for conversations - no background */
.conv-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}
.conv-type-badge i {
    margin-right: 0.3rem;
}
.conv-type-badge.badge-phone {
    color: #1976d2;
}
.conv-type-badge.badge-email {
    color: #c2185b;
}
.conv-type-badge.badge-meeting {
    color: #388e3c;
}
.conv-type-badge.badge-note {
    color: #7b1fa2;
}

/* Reception badge small indicator - no background */
.conv-reception-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    margin-left: 0.5rem;
    font-weight: 600;
}
.conv-reception-indicator.hot { color: #155724; }
.conv-reception-indicator.warm { color: #856404; }
.conv-reception-indicator.lukewarm,
.conv-reception-indicator.luke-warm { color: #8a4500; }
.conv-reception-indicator.cold { color: #383d41; }
.conv-reception-indicator.ice-cold { color: #721c24; }

/* Spoke to person in conversation */
.brand-conversation-item .conv-spoke-to-line {
    font-size: 0.8rem;
    color: #28a745;
    margin-top: 0.35rem;
}
.brand-conversation-item .conv-spoke-to-line i {
    margin-right: 0.25rem;
}

/* Document Type Stats Filter Buttons */
.doc-type-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.doc-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    background: #f8f9fa;
    color: #495057;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.doc-type-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}
.doc-type-btn.active {
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    color: #fff;
    border-color: #3d1a6f;
}
.doc-type-btn .doc-count {
    display: inline-block;
    min-width: 20px;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    background: rgba(0,0,0,0.1);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}
.doc-type-btn.active .doc-count {
    background: rgba(255,255,255,0.2);
}
.doc-type-btn i {
    color: inherit;
}

/* Documents Grid */
.documents-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Document Cards - Mobile layout */
.doc-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.doc-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.75rem;
}
.doc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}
.doc-card-title {
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}
.doc-card-action {
    flex-shrink: 0;
}
.doc-card-action .btn {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.doc-card-meta {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

/* Reports Links */
.reports-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.report-link-card {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border: 1px solid #fdb913;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.report-link-card:hover {
    box-shadow: 0 4px 12px rgba(253, 185, 19, 0.3);
    transform: translateY(-2px);
}

.report-link-card a {
    color: #3d1a6f;
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.report-link-card a i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fdb913;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-header-card {
        flex-direction: column;
        text-align: center;
    }

    .brand-header-card .brand-logo {
        margin: 0 auto;
    }

    .brand-header-card .brand-quick-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .brand-stats-row {
        flex-wrap: wrap;
    }

    .brand-stat-item {
        min-width: calc(50% - 0.5rem);
    }

    .brand-section .section-toolbar {
        flex-direction: column;
    }

    .brand-section .section-toolbar input[type="text"] {
        max-width: 100%;
        width: 100%;
    }
}

/* CRM Stats Bar */
.crm-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0.5rem;
}

/* Allow dynamic containers to participate in parent flexbox */
.d-contents {
    display: contents;
}

.crm-stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    flex: 1;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #3d1a6f;
    text-align: center;
}

.crm-stat-card.primary { border-left-color: #3d1a6f; }
.crm-stat-card.success { border-left-color: #28a745; }
.crm-stat-card.warning { border-left-color: #fdb913; }
.crm-stat-card.info { border-left-color: #17a2b8; }
.crm-stat-card.danger { border-left-color: #ed174c; }
.crm-stat-card.secondary { border-left-color: #6c757d; }

.crm-stats-divider {
    width: 1px;
    background: #ddd;
    align-self: stretch;
    margin: 0.5rem 0;
}

.crm-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #3d1a6f;
    line-height: 1.2;
}

.crm-stat-card .stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.crm-stat-card .stat-sub {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.15rem;
}

/* CRM Stats Bar Container */
.crm-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 12px;
    position: relative;
}

/* Loading Overlay for AJAX operations */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1020;
    border-radius: inherit;
}

.loading-overlay .loading-spinner {
    color: #3d1a6f;
}

/* Contact Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.contact-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.contact-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid #eee;
}

.contact-card-header .contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #3d1a6f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-card-header .contact-info {
    flex: 1;
}

.contact-card-header .contact-name {
    font-weight: 600;
    color: #333;
}

.contact-card-header .contact-position {
    font-size: 0.85rem;
    color: #666;
}

.contact-card-header .contact-actions {
    display: flex;
    gap: 0.5rem;
}

.contact-card-body {
    padding: 1rem;
}

.contact-card-body .contact-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.contact-card-body .contact-detail i {
    color: #999;
    width: 16px;
}

.contact-card-body .contact-detail a {
    color: #3d1a6f;
    text-decoration: none;
}

.contact-card-body .contact-detail a:hover {
    text-decoration: underline;
}

/* Sub-brand list styles */
.sub-brand-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sub-brand-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sub-brand-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sub-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sub-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sub-brand-logo i {
    font-size: 1.5rem;
    color: #999;
}

.sub-brand-info {
    flex: 1;
}

.sub-brand-name {
    font-weight: 600;
    color: #333;
}

.sub-brand-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* ========================================
   Expandable Sub-Brand Cards
   ======================================== */

/* Override base sub-brand-item for expandable version */
.sub-brand-item.sub-brand-expandable {
    display: flex;
    flex-direction: column;
    padding: 0;
    cursor: default;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sub-brand-item.sub-brand-expandable:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sub-brand-item.sub-brand-expandable.expanded {
    border-color: #3d1a6f;
    box-shadow: 0 4px 16px rgba(61, 26, 111, 0.15);
}

/* Header row - clickable area */
.sub-brand-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-radius: 8px;
}

.sub-brand-header-row:hover {
    background-color: #f8f9fa;
}

.sub-brand-expandable.expanded .sub-brand-header-row {
    background: linear-gradient(135deg, #f8f4fc 0%, #fff 100%);
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
}

/* Expand indicator with chevron */
.sub-brand-expand-indicator {
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-brand-chevron {
    font-size: 0.875rem;
    color: #666;
    transition: transform 0.2s ease;
}

.sub-brand-expandable.expanded .sub-brand-chevron {
    transform: rotate(90deg);
    color: #3d1a6f;
}

/* Stat badges in meta row */
.sub-brand-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #666;
    background: #f5f5f5;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
}

.sub-brand-stat i {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Header actions (external link button) */
.sub-brand-header-actions {
    margin-left: auto;
}

.sub-brand-header-actions .btn {
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.sub-brand-header-row:hover .sub-brand-header-actions .btn,
.sub-brand-header-actions .btn:focus {
    opacity: 1;
}

/* Expandable content area */
.sub-brand-expand-content {
    background: #fcfcfc;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.sub-brand-expand-loading,
.sub-brand-expand-error {
    padding: 2rem;
    text-align: center;
    color: #666;
}

.sub-brand-expand-error {
    color: #dc3545;
}

/* Inline content container */
.sub-brand-inline-content {
    padding: 0;
}

/* Inline toolbar */
.sub-brand-inline-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.sub-brand-inline-toolbar .toolbar-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.sub-brand-inline-toolbar .toolbar-label i {
    margin-right: 0.25rem;
}

.sub-brand-inline-toolbar .toolbar-actions {
    display: flex;
    gap: 0.5rem;
}

/* No contacts state */
.sub-brand-no-contacts {
    padding: 2rem;
    text-align: center;
    color: #666;
}

.sub-brand-no-contacts i {
    display: block;
    margin-bottom: 0.75rem;
}

.sub-brand-no-contacts p {
    margin-bottom: 1rem;
    color: #999;
}

/* Contact list inside expanded sub-brand */
.sub-brand-contacts-list {
    padding: 0.5rem 0;
}

/* Individual contact row */
.sub-brand-contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

.sub-brand-contact-row:last-child {
    border-bottom: none;
}

.sub-brand-contact-row:hover {
    background-color: #fff;
}

/* Status-based left border for contact rows */
.sub-brand-contact-row.status-active {
    border-left: 3px solid #28a745;
}

.sub-brand-contact-row.status-bounced {
    border-left: 3px solid #dc3545;
    background-color: #fff8f8;
}

.sub-brand-contact-row.status-unsubscribed {
    border-left: 3px solid #6c757d;
    background-color: #f9f9f9;
}

/* Contact row main content */
.contact-row-main {
    flex: 1;
    min-width: 0;
}

.contact-row-name {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contact-row-position {
    font-weight: 400;
    color: #888;
    font-size: 0.85rem;
}

.contact-row-position::before {
    content: "·";
    margin-right: 0.5rem;
}

/* Contact status icons */
.contact-status-icon {
    font-size: 0.75rem;
}

.contact-status-icon.bounced {
    color: #dc3545;
}

.contact-status-icon.unsubscribed {
    color: #6c757d;
}

/* Contact details row */
.contact-row-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.contact-detail-item {
    font-size: 0.8rem;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.contact-detail-item i {
    font-size: 0.7rem;
    color: #999;
}

/* Engagement column */
.contact-row-engagement {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: 80px;
}

.engagement-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.engagement-badge i {
    font-size: 0.65rem;
}

.engagement-date {
    font-size: 0.7rem;
    color: #999;
}

/* Contact row actions */
.contact-row-actions {
    display: flex;
    gap: 0.25rem;
}

.contact-row-actions .btn-link {
    color: #666;
    padding: 0.25rem 0.5rem;
}

.contact-row-actions .btn-link:hover {
    color: #3d1a6f;
}

/* Responsive adjustments for sub-brand expandable */
@media (max-width: 768px) {
    .sub-brand-header-row {
        flex-wrap: wrap;
    }

    .sub-brand-info {
        flex-basis: calc(100% - 80px);
    }

    .sub-brand-header-actions {
        margin-left: 0;
        margin-top: 0.5rem;
        flex-basis: 100%;
        text-align: right;
    }

    .sub-brand-contact-row {
        flex-wrap: wrap;
    }

    .contact-row-main {
        flex-basis: 100%;
    }

    .contact-row-engagement {
        flex-direction: row;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }

    .contact-row-actions {
        margin-left: auto;
    }
}

/* Search results grid */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.search-result-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.search-result-card .result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.search-result-card .result-logo,
.search-result-card .result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.search-result-card .result-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.search-result-card .result-info {
    flex: 1;
}

.search-result-card .result-title {
    font-weight: 600;
    color: #333;
}

.search-result-card .result-subtitle {
    font-size: 0.85rem;
    color: #666;
}

.search-result-card .result-details {
    font-size: 0.85rem;
    color: #555;
}

.search-result-card .result-details div {
    margin-bottom: 0.25rem;
}

.search-result-card .result-details i {
    width: 16px;
    color: #999;
    margin-right: 0.5rem;
}

/* Conversation timeline */
.conversation-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.conversation-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 1rem;
    border-left: 4px solid #ccc;
}

.conversation-item.reception-hot { border-left-color: #28a745; }
.conversation-item.reception-warm { border-left-color: #fdb913; }
.conversation-item.reception-lukewarm { border-left-color: #fd7e14; }
.conversation-item.reception-cold { border-left-color: #17a2b8; }
.conversation-item.reception-icecold { border-left-color: #6c757d; }

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.conversation-type {
    font-weight: 600;
    color: #333;
}

.conversation-date {
    font-size: 0.85rem;
    color: #666;
}

.conversation-body {
    color: #555;
    margin-bottom: 0.5rem;
}

.conversation-body p {
    margin: 0;
}

.conversation-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.conversation-reception {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.conversation-reception.reception-hot { background: #d4edda; color: #155724; }
.conversation-reception.reception-warm { background: #fff3cd; color: #856404; }
.conversation-reception.reception-lukewarm { background: #ffe5d0; color: #7d4600; }
.conversation-reception.reception-cold { background: #d1ecf1; color: #0c5460; }
.conversation-reception.reception-icecold { background: #e2e3e5; color: #383d41; }

/* Pagination */
.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.pagination-info {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

.crm-stats-dismiss-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
}

.crm-stats-dismiss-btn:hover { color: #333; }

.crm-stats-collapsed {
    margin-bottom: 1rem;
    text-align: right;
}

.crm-stats-collapsed a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
}

.crm-stats-collapsed a:hover {
    color: #3d1a6f;
}

/* CRM Modern Search */
.crm-modern-search {
    background: transparent;
    padding: 2rem 1rem;
    margin-bottom: 1rem;
}

.crm-search-bar {
    display: flex;
    justify-content: center;
}

.crm-search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.crm-search-input-wrapper .form-control {
    width: 100%;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    box-shadow: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.crm-search-input-wrapper .form-control:hover {
    box-shadow: 0 1px 6px rgba(32,33,36,0.15);
}

.crm-search-input-wrapper .form-control:focus {
    border-color: transparent;
    box-shadow: 0 1px 6px rgba(32,33,36,0.25);
    outline: none;
}

.crm-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0a6;
    font-size: 1rem;
    pointer-events: none;
}

.crm-search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #70757a;
    padding: 0.25rem;
    border-radius: 50%;
}

.crm-search-clear:hover {
    background: #f1f3f4;
    color: #333;
}

.crm-search-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.crm-search-options .btn-link {
    color: #70757a;
    text-decoration: none;
}

.crm-search-options .btn-link:hover {
    color: #3d1a6f;
}

.crm-filter-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.crm-filter-row select {
    min-width: 140px;
}

.crm-filter-row .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #495057;
}

.filter-chip i {
    cursor: pointer;
    color: #6c757d;
}

.filter-chip i:hover {
    color: #dc3545;
}

/* CRM Contact Cards */
.crm-contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

/* Center empty state message in grid */
.crm-contact-cards > .text-center:only-child {
    grid-column: 1 / -1;
    text-align: center;
}

.crm-contact-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.crm-contact-card .card-body {
    flex: 1;
    padding: 1rem;
}

.crm-contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Entire card is clickable (brand cards) */
.crm-contact-card.clickable-card {
    cursor: pointer;
}

.crm-contact-card.status-active {
    border-left: 4px solid #28a745;
}

.crm-contact-card.status-snoozed {
    border-left: 4px solid #fdb913;
}

.crm-contact-card.status-unsubscribed {
    border-left: 4px solid #6c757d;
}

.crm-contact-card.status-bounced {
    border-left: 4px solid #ed174c;
}

/* Contact badge with better contrast */
.crm-contact-card .badge-contact {
    background-color: #e8f4f8;
    color: #0c5460;
    border: 1px solid #bee5eb;
    font-weight: 500;
}

.crm-contact-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-bottom: 1px solid #f0f0f0;
}

.crm-contact-card .contact-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.crm-contact-card .contact-role {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.crm-contact-card .contact-role i {
    width: 16px;
    color: #888;
    margin-right: 0.35rem;
}

.crm-contact-card .outlet-type {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.crm-contact-card .outlet-type i {
    width: 16px;
    color: #888;
    margin-right: 0.35rem;
}

.crm-contact-card .outlet-more {
    font-size: 0.7rem;
    background-color: #6c757d;
    color: #fff;
    padding: 0.15rem 0.35rem;
    margin-left: 0.25rem;
    cursor: help;
}

.crm-contact-card .contact-info {
    font-size: 0.85rem;
    color: #555;
}

.crm-contact-card .contact-info > div {
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crm-contact-card .contact-info i {
    width: 16px;
    color: #888;
    margin-right: 0.35rem;
}

.crm-contact-card .card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    align-items: center;
}

.crm-contact-card .card-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.crm-contact-card .card-actions select {
    flex: 1;
    min-width: 120px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.crm-contact-card .brand-stats {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
}

.crm-contact-card .brand-stats span {
    display: inline-flex;
    align-items: center;
}

.crm-contact-card .brand-stats i {
    color: #888;
    margin-right: 0.4rem;
}

/* CRM Results Header */
.crm-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.crm-results-header .results-count {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* CRM Empty State */
.crm-empty-state {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 3rem;
}

.crm-empty-state i {
    display: block;
    margin-bottom: 1rem;
}

/* CRM Notification Toast */
.crm-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* CRM Responsive */
@media (max-width: 992px) {
    .crm-stats {
        gap: 0.5rem;
    }

    .crm-stat-card {
        min-width: 100px;
        padding: 0.75rem 1rem;
    }

    .crm-stat-card .stat-value {
        font-size: 1.5rem;
    }

    .crm-contact-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 576px) {
    .crm-stat-card {
        min-width: 45%;
        flex: 1 1 45%;
    }

    .crm-search-input-wrapper {
        max-width: 100%;
    }

    .crm-search-options {
        flex-direction: column;
        gap: 0.5rem;
    }

    .crm-filter-row {
        flex-direction: column;
    }

    .crm-filter-row select {
        width: 100%;
    }

    .crm-contact-cards {
        grid-template-columns: 1fr;
    }

    .crm-contact-card .card-actions {
        flex-direction: column;
    }

    .crm-contact-card .card-actions .btn,
    .crm-contact-card .card-actions select {
        width: 100%;
    }
}

/* ============================
   Phase 3: Outlet Contacts with Engagement
   ============================ */

/* Modern outlet view container */
.crm-modern-outlet-view {
    margin-top: 1rem;
}

/* Collapsible sections */
.crm-section {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.crm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-left: 4px solid #fdb913;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.crm-section-header:hover {
    background: linear-gradient(135deg, #fff0c8 0%, #fff8e8 100%);
}

.crm-section-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #3d1a6f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.crm-section-header h5 i {
    color: #fdb913;
}

.crm-section-header h5 .badge {
    font-size: 0.75rem;
    font-weight: 500;
}

.crm-section-toggle {
    color: #666;
    transition: transform 0.2s ease;
}

.crm-section.collapsed .crm-section-toggle {
    transform: rotate(-90deg);
}

.crm-section-content {
    padding: 1rem;
    background: #fff;
}

.crm-section-toolbar {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Top Engaged Section */
.crm-top-engaged-section {
    border-left-color: #ffd700;
}

.top-engaged-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.top-engaged-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s ease;
}

.top-engaged-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.top-engaged-card.gold {
    border-left: 4px solid #ffd700;
    background: linear-gradient(135deg, #fffef0 0%, #fff 100%);
}

.top-engaged-card.silver {
    border-left: 4px solid #c0c0c0;
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
}

.top-engaged-card.bronze {
    border-left: 4px solid #cd7f32;
    background: linear-gradient(135deg, #fdf8f4 0%, #fff 100%);
}

.top-engaged-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3d1a6f;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.top-engaged-card.gold .top-engaged-rank { background: #ffd700; color: #333; }
.top-engaged-card.silver .top-engaged-rank { background: #c0c0c0; color: #333; }
.top-engaged-card.bronze .top-engaged-rank { background: #cd7f32; color: #fff; }

.top-engaged-info {
    flex: 1;
    min-width: 0;
}

.top-engaged-name {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-engaged-position {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Engagement Badges */
.engagement-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.engagement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #e9ecef;
    color: #495057;
}

.engagement-badge i {
    font-size: 0.7rem;
}

.engagement-badge.downloads { background: #cfe2ff; color: #084298; }
.engagement-badge.bookings { background: #d1e7dd; color: #0f5132; }
.engagement-badge.emails { background: #e2d9f3; color: #432874; }

.engagement-badge.high { background: #d4edda; color: #155724; }
.engagement-badge.medium { background: #fff3cd; color: #856404; }
.engagement-badge.low { background: #f8f9fa; color: #6c757d; }

.engagement-badge.clickable { cursor: pointer; transition: opacity 0.15s, border-bottom 0.15s; }
.engagement-badge.clickable:hover { opacity: 0.8; text-decoration: underline; }
.engagement-badge.clickable.active { border-bottom: 2px solid #6f42c1; }

.engagement-history-detail { margin-top: 8px; padding: 0 4px; }
.engagement-history-detail table.engagement-history-table { font-size: 0.85rem; margin-bottom: 0.5rem; }
.engagement-history-detail table.engagement-history-table th { font-weight: 600; font-size: 0.8rem; white-space: nowrap; }
.engagement-history-detail table.engagement-history-table td { vertical-align: middle; }
.engagement-load-more .btn { font-size: 0.8rem; padding: 0.15rem 0.5rem; }

/* Outlet Contact Rows */
.outlet-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.outlet-contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.outlet-contact-row:hover {
    border-color: #3d1a6f;
    box-shadow: 0 2px 8px rgba(61, 26, 111, 0.08);
}

.outlet-contact-row.status-snoozed {
    border-left: 4px solid #ffc107;
}

.outlet-contact-row.status-unsubscribed {
    border-left: 4px solid #6c757d;
    opacity: 0.7;
}

.outlet-contact-row.status-bounced {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
}

.outlet-contact-row.selected {
    border-color: #3d1a6f;
    background: linear-gradient(135deg, #f8f4fc 0%, #fff 100%);
    box-shadow: 0 2px 8px rgba(61, 26, 111, 0.15);
}

/* Compact Contact Cards (Phase 3) */
.outlet-contact-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.outlet-contact-card:hover {
    border-color: #3d1a6f;
}

.outlet-contact-card.expanded {
    border-color: #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #fff 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.outlet-contact-card.status-snoozed {
    border-left: 3px solid #ffc107;
}

.outlet-contact-card.status-unsubscribed {
    border-left: 3px solid #6c757d;
    opacity: 0.7;
}

.outlet-contact-card.status-bounced {
    border-left: 3px solid #dc3545;
    background: #fff8f8;
}

.contact-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    cursor: pointer;
}

.contact-card-header:hover {
    background: #f8f9fa;
}

.contact-card-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.contact-card-name .contact-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.contact-position-inline {
    color: #666;
    font-size: 0.85rem;
}

.contact-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.engagement-mini {
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 500;
}

.contact-card-details {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #e9ecef;
    background: #fafbfc;
}

.contact-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
    margin-bottom: 0.75rem;
}

.contact-detail-col p {
    margin: 0 0 0.35rem 0;
    font-size: 0.85rem;
    color: #555;
}

.contact-detail-col i {
    width: 1rem;
    text-align: center;
    margin-right: 0.5rem;
}

.engagement-detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.contact-interests {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.75rem;
}

/* Interest badges display */
.interest-badges-container {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.interest-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2em 0.6em;
    white-space: nowrap;
}

/* Tag input styling for editable interests */
.tag-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background: #fff;
    min-height: 42px;
    cursor: text;
}

.tag-input-wrapper:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.tag-input-wrapper .tag-item {
    display: inline-flex;
    align-items: center;
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-radius: 12px;
    padding: 0.2em 0.5em;
    font-size: 0.875rem;
}

.tag-input-wrapper .tag-item .tag-remove {
    margin-left: 0.35rem;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.7;
    line-height: 1;
}

.tag-input-wrapper .tag-item .tag-remove:hover {
    opacity: 1;
    color: #721c24;
}

.tag-input-wrapper .tag-input-field {
    border: none;
    outline: none;
    flex: 1;
    min-width: 120px;
    font-size: 0.875rem;
    padding: 0.2em;
}

.tag-input-wrapper .tag-input-field::placeholder {
    color: #6c757d;
}

/* Advanced Selection tag input - taller version for filter panel */
.tag-input-wrapper.advanced-selection-tags {
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    align-content: flex-start;
}

.contact-bio-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid #17a2b8;
}

.contact-bio-section .section-header {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.contact-bio-section .section-header strong {
    font-size: 0.85rem;
}

.contact-bio-text {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 0;
    line-height: 1.5;
    white-space: pre-wrap;
}

.contact-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

.contact-action-buttons .btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

/* Contact Groups Section */
.contact-groups-section,
.contact-outlets-section {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #e9ecef;
}

.contact-groups-section .section-header,
.contact-outlets-section .section-header {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.contact-groups-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.group-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border: 1px solid #fdb913;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
}

.btn-remove-group,
.btn-remove-outlet {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 0.9rem;
    padding: 0 0.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.btn-remove-group:hover,
.btn-remove-outlet:hover {
    opacity: 1;
}

/* Contact Outlets Section */
.contact-outlets-list-items {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.outlet-mapping-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.85rem;
}

.outlet-mapping-item .outlet-info {
    flex: 1;
}

.outlet-mapping-item .badge-sm {
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
}

@media (max-width: 768px) {
    .contact-detail-grid {
        grid-template-columns: 1fr;
    }

    .contact-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .contact-card-meta {
        width: 100%;
        justify-content: flex-start;
    }
}

.contact-main-info {
    flex: 1;
    min-width: 0;
}

.contact-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contact-name-row .contact-name {
    font-weight: 600;
    color: #333;
}

.contact-position {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.contact-details {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.contact-details i {
    margin-right: 0.25rem;
    color: #999;
}

.contact-engagement {
    flex-shrink: 0;
    min-width: 180px;
    text-align: right;
}

.contact-actions {
    flex-shrink: 0;
}

/* Syndication List */
.syndication-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.syndication-item {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #3d1a6f;
}

.syndication-name {
    font-weight: 500;
    color: #333;
}

.syndication-name i {
    color: #3d1a6f;
    margin-right: 0.5rem;
}

.syndication-desc {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.syndication-count {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

/* Conversations List */
.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.conversation-item {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #17a2b8;
}

.conversation-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.conversation-date {
    font-weight: 500;
    color: #333;
    font-size: 0.85rem;
}

.conversation-by {
    font-size: 0.8rem;
    color: #666;
}

.conversation-notes {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .top-engaged-grid {
        grid-template-columns: 1fr;
    }

    .outlet-contact-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-engagement {
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
    }

    .contact-actions {
        width: 100%;
        margin-top: 0.5rem;
    }

    .contact-details {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ============================================
   CRM Modal Styles
   ============================================ */

.crm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.crm-modal-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.crm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-left: 4px solid #fdb913;
    border-radius: 10px 10px 0 0;
}

.crm-modal-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #3d1a6f;
}

.crm-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.crm-modal-close:hover {
    color: #333;
}

.crm-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.outlet-search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.outlet-results-list {
    padding: 0.5rem;
}

.outlet-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.outlet-result-item:last-child {
    border-bottom: none;
}

.outlet-result-item:hover {
    background: #f8f9fa;
}

.outlet-result-info {
    flex: 1;
    min-width: 0;
}

.outlet-result-info strong {
    display: block;
    color: #333;
}

/* ============================================
   Top Contacts Tab Styles
   ============================================ */

.crm-top-contacts-header {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-left: 4px solid #fdb913;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Filter dropdown select/unselect links */
.dropdown-menu .d-flex a.small {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}
.dropdown-menu .d-flex a.small:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Media type and engagement type filter dropdown checkbox alignment */
#mediaTypeCheckboxes .form-check,
#engagementTypeCheckboxes .form-check {
    display: flex;
    align-items: center;
    padding-left: 0;
    margin-bottom: 0.5rem;
}

#mediaTypeCheckboxes .form-check-input,
#engagementTypeCheckboxes .form-check-input {
    margin: 0;
    margin-right: 0.5rem;
    position: relative;
    top: 0;
}

#mediaTypeCheckboxes .form-check-label,
#engagementTypeCheckboxes .form-check-label {
    margin: 0;
    line-height: 1;
}

/* Floating Action Button */
.fab-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* FAB Container and Menu */
.fab-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}
.fab-container .fab-button {
    position: relative;
    bottom: auto;
    left: auto;
}
.fab-menu {
    position: absolute;
    bottom: 70px;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    overflow: hidden;
    min-width: 180px;
}
.fab-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: #fff;
    text-align: left;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.fab-menu-item:hover {
    background: #f0f0f0;
}
.fab-menu-item i {
    width: 20px;
    text-align: center;
    color: #666;
}
.fab-icon {
    transition: transform 0.2s ease;
}
.fab-container.open .fab-icon {
    transform: rotate(45deg);
}

/* Outlet Search Results in Modal */
.outlet-search-results .outlet-search-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.outlet-search-results .outlet-search-item:hover {
    background: #f8f9fa;
}
.outlet-search-results .outlet-search-item:last-child {
    border-bottom: none;
}
.outlet-search-results .outlet-name {
    font-weight: 500;
    color: #333;
}
.outlet-search-results .outlet-details {
    font-size: 0.85rem;
    color: #666;
}

/* Clickable card headers */
.clickable-header {
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.clickable-header:hover {
    background-color: rgba(0,0,0,0.03);
}
.crm-contact-card .clickable-header:hover {
    background: linear-gradient(135deg, #e8f4fc 0%, #f0f8ff 100%);
}

.crm-top-contacts-list {
    min-height: 200px;
}

.top-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.top-contact-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.top-contact-card:hover {
    border-color: #adb5bd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.top-contact-card.expanded {
    border-color: #28a745;
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

/* Top 3 rankings */
.top-contact-card.top-rank-1 {
    border-left: 4px solid #ffd700;
    background: linear-gradient(to right, rgba(255, 215, 0, 0.05), transparent);
}

.top-contact-card.top-rank-2 {
    border-left: 4px solid #c0c0c0;
    background: linear-gradient(to right, rgba(192, 192, 192, 0.05), transparent);
}

.top-contact-card.top-rank-3 {
    border-left: 4px solid #cd7f32;
    background: linear-gradient(to right, rgba(205, 127, 50, 0.05), transparent);
}

.top-contact-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    gap: 1rem;
}

.top-contact-header:hover {
    background: #f8f9fa;
}

.top-contact-rank {
    flex-shrink: 0;
    width: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #666;
    text-align: center;
}

.top-contact-rank i {
    font-size: 1.1rem;
}

.text-bronze {
    color: #cd7f32;
}

.top-contact-info {
    flex: 1;
    min-width: 0;
}

.top-contact-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.top-contact-outlet {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.top-contact-outlet .badge {
    font-size: 0.7rem;
    font-weight: 500;
    vertical-align: middle;
}

.top-contact-engagement {
    flex-shrink: 0;
    text-align: right;
}

.top-contact-engagement .engagement-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.25rem;
}

.top-contact-engagement .engagement-score i {
    font-size: 1rem;
    margin-right: 0.25rem;
}

.engagement-badges-mini {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
}

.engagement-badges-mini .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

.top-contact-expand {
    flex-shrink: 0;
    width: 30px;
    text-align: center;
    color: #999;
}

.top-contact-expand i {
    transition: transform 0.2s ease;
}

.top-contact-details {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid #eee;
    margin-top: 0;
}

/* Mobile responsive for top contacts */
@media (max-width: 768px) {
    .top-contact-header {
        flex-wrap: wrap;
    }

    .top-contact-rank {
        width: 40px;
    }

    .top-contact-engagement {
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .engagement-badges-mini {
        justify-content: flex-start;
    }
}

/* ============================
 * Phase 5: Outreach Groups Modernization
 * ============================ */

.modern-groups-container {
    padding: 1rem;
}

/* Groups List Panel */
.groups-list-panel {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
}

.groups-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Group Cards */
.group-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.group-card:hover {
    border-color: #3d1a6f;
    background: #fafafa;
}

.group-card.selected {
    border-color: #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #fff 100%);
    border-left: 4px solid #28a745;
}

.group-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.group-meta {
    font-size: 0.8rem;
    color: #666;
}

.group-status-dots {
    display: flex;
    gap: 3px;
    margin-top: 0.5rem;
}

.group-status-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.group-status-dots .dot.active {
    background: #28a745;
}

.group-status-dots .dot.snoozed {
    background: #ffc107;
}

.group-status-dots .dot.inactive {
    background: #dc3545;
}

/* Group Members Panel */
.group-members-panel {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.group-members-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-radius: 8px 8px 0 0;
    border-left: 4px solid #fdb913;
}

.group-members-toolbar {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

/* Group Members Panel Table Headers - Yellow Gradient */
.group-members-panel table thead th {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%) !important;
    border-left: 4px solid #fdb913 !important;
    border-top: 1px solid #fff5dc !important;
    border-right: 1px solid #fff5dc !important;
    border-bottom: 1px solid #fff5dc !important;
    color: #3d1a6f !important;
    font-weight: 500 !important;
    font-size: 0.9em !important;
}

.group-members-panel table thead th:first-child {
    border-left: 4px solid #fdb913 !important;
}

.group-members-panel table thead th:not(:first-child) {
    border-left: 1px solid #fff5dc !important;
}

.group-members-list {
    flex: 1;
    overflow-y: auto;
    max-height: 50vh;
}

/* Group Member Row */
.group-member-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.group-member-row:hover {
    background: #f8f9fa;
}

.group-member-row:last-child {
    border-bottom: none;
}

.group-member-row .member-checkbox {
    flex-shrink: 0;
    padding-top: 0.2rem;
}

.group-member-row .member-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.group-member-row .member-info {
    flex: 1;
    min-width: 0;
}

.group-member-row .member-name {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.group-member-row .member-outlet {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.15rem;
}

.group-member-row .member-engagement {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
}

.group-member-row .member-engagement span {
    margin-right: 0.75rem;
}

.group-member-row .member-engagement i {
    color: #999;
    margin-right: 0.2rem;
}

.group-member-row .member-status {
    flex-shrink: 0;
}

/* Selection Footer */
.group-selection-footer {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 8px 8px;
}

/* Empty State */
.empty-state i {
    opacity: 0.4;
}

/* Group Actions Buttons */
.group-actions {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

/* Mobile responsive for groups */
@media (max-width: 992px) {
    .modern-groups-container .row {
        flex-direction: column;
    }

    .modern-groups-container .col-md-4,
    .modern-groups-container .col-lg-3 {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .groups-list {
        max-height: 30vh;
    }

    .group-member-row {
        flex-wrap: wrap;
    }

    .group-member-row .member-engagement {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .modern-groups-container .stats-cards {
        gap: 0.75rem;
    }

    .modern-groups-container .stat-card {
        min-width: 60px;
    }

    .modern-groups-container .stat-value {
        font-size: 1.2rem;
    }

    .group-members-toolbar .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ====================================
   Phase 5B: Syndication Groups
   ==================================== */

/* Syndication member list */
.syndication-member-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.syndication-member-list .group-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

.syndication-member-list .group-member-row:hover {
    background-color: #f8f9fa;
}

.syndication-member-list .member-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.syndication-member-list .member-details {
    display: flex;
    flex-direction: column;
}

.syndication-member-list .member-name {
    font-weight: 600;
    color: #333;
}

.syndication-member-list .member-outlet {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.syndication-member-list .outlet-logo {
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.syndication-member-list .member-actions {
    flex-shrink: 0;
}

/* Add Contacts Modal */
.add-contacts-list {
    display: flex;
    flex-direction: column;
}

.add-contact-row {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.add-contact-row.already-in-group {
    opacity: 0.6;
    background: #f8f9fa !important;
    cursor: not-allowed;
}

.add-contact-row input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    pointer-events: none; /* Let row handle selection via gridselect.js */
}

.add-contact-row .contact-info {
    flex: 1;
    min-width: 0;
}

.add-contact-row .contact-name {
    font-weight: 600;
    color: #333;
}

.add-contact-row .contact-details {
    font-size: 0.85rem;
}

.add-contact-row .contact-outlet {
    margin-top: 0.25rem;
}

/* ============================
   Contact Notes & Conversations Sections
   ============================ */

.contact-notes-section,
.conversation-history-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-notes-section .section-header,
.conversation-history-section .section-header {
    margin-bottom: 0.5rem;
}

.contact-notes-section .section-header strong,
.conversation-history-section .section-header strong {
    font-size: 0.9rem;
    color: #333;
}

.contact-note-content .note-text {
    font-size: 0.9rem;
    color: #555;
    white-space: pre-wrap;
}

.edit-note-form textarea,
.record-interaction-form textarea {
    width: 100%;
    font-size: 0.9rem;
}

/* Conversation Items */
.conversation-items {
    max-height: 150px;
    overflow-y: auto;
}

.conversation-item {
    background: #fff;
    border-radius: 4px;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.35rem;
    border-left: 2px solid #e9ecef;
    font-size: 0.8rem;
}

.conversation-item .conv-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
}

.conversation-item .conv-date {
    color: #888;
}

.conversation-item .conv-by {
    color: #3d1a6f;
    font-weight: 500;
}

.conversation-item .conv-notes {
    font-size: 0.8rem;
    color: #444;
    white-space: pre-wrap;
    max-height: 2.4em;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Reception Badges */
.reception-badge {
    font-size: 0.7rem;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-weight: 500;
}

.reception-hot {
    background: #28a745;
    color: white;
}

.reception-warm {
    background: #ffc107;
    color: #333;
}

.reception-lukewarm {
    background: #fd7e14;
    color: white;
}

.reception-cold {
    background: #6c757d;
    color: white;
}

.reception-icecold {
    background: #dc3545;
    color: white;
}

.reception-default {
    background: #e9ecef;
    color: #666;
}

/* Record Interaction Form */
.record-interaction-form {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.record-interaction-form .form-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3d1a6f;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #fdb913;
}

/* ============================
   Modern Form Styles (Register.aspx pattern)
   ============================ */

.modern-form-group {
    margin-bottom: 1rem;
}

.modern-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #3d1a6f;
    margin-bottom: 0.375rem;
}

.modern-form-group label i {
    margin-right: 0.375rem;
    color: #fdb913;
    width: 16px;
}

.modern-form-group .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fafafa;
    height: auto;
    min-height: 40px;
    line-height: 1.5;
}

.modern-form-group .form-control:focus {
    border-color: #3d1a6f;
    box-shadow: 0 0 0 3px rgba(61, 26, 111, 0.1);
    background-color: #fff;
    outline: none;
}

.modern-form-group .form-control::placeholder {
    color: #aaa;
}

.form-row-split {
    display: flex;
    gap: 0.75rem;
}

.form-row-split > .modern-form-group {
    flex: 1;
}

.form-section {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.25rem;
}

.form-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3d1a6f;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #fdb913;
}

.help-text {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.25rem;
}

/* Extra small button size */
.btn-xs {
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Responsive form layout */
@media (max-width: 576px) {
    .form-row-split {
        flex-direction: column;
        gap: 0;
    }
}

/* ============================================
   Global FormView Modern Styling
   Automatically styles FormViews in modals
   ============================================ */

/* Modal FormView container */
.modalPopup .container,
.modal-body .container,
.form-view-modern {
    /* Keep existing layout but add padding */
}

/* Style label columns in FormViews */
.modalPopup [class*="col-md-2"].text-left,
.modalPopup [class*="col-md-2"].text-right,
.modal-body [class*="col-md-2"].text-left,
.modal-body [class*="col-md-2"].text-right,
.form-view-modern .form-label-col {
    font-size: 0.9rem;
    font-weight: 500;
    color: #3d1a6f;
    padding-top: 0.875rem;
    padding-bottom: 0.5rem;
}

/* Required field indicator */
.modalPopup .required,
.modal-body .required,
.form-view-modern .required {
    position: relative;
}
.modalPopup .required::after,
.modal-body .required::after,
.form-view-modern .required::after {
    content: "*";
    color: #dc3545;
    margin-left: 0.25rem;
    font-weight: bold;
}

/* Modern form controls in modals */
.modalPopup .form-control,
.modalPopup select.form-control,
.modal-body .form-control,
.modal-body select.form-control,
.form-view-modern .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fafafa;
    min-height: 44px;
}

.modalPopup .form-control:focus,
.modalPopup select.form-control:focus,
.modal-body .form-control:focus,
.modal-body select.form-control:focus,
.form-view-modern .form-control:focus {
    border-color: #3d1a6f;
    box-shadow: 0 0 0 3px rgba(61, 26, 111, 0.1);
    background-color: #fff;
    outline: none;
}

.modalPopup .form-control::placeholder,
.modal-body .form-control::placeholder,
.form-view-modern .form-control::placeholder {
    color: #aaa;
}

/* Textarea styling */
.modalPopup textarea.form-control,
.modal-body textarea.form-control,
.form-view-modern textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Input group styling in modals */
.modalPopup .input-group,
.modal-body .input-group,
.form-view-modern .input-group {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: stretch;
}

.modalPopup .input-group .input-group-prepend,
.modal-body .input-group .input-group-prepend,
.form-view-modern .input-group .input-group-prepend {
    display: flex;
    flex: 0 0 auto;
}

.modalPopup .input-group .input-group-text,
.modal-body .input-group .input-group-text,
.form-view-modern .input-group .input-group-text {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border: 1px solid #e0e0e0;
    border-right: none;
    color: #3d1a6f;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
}

.modalPopup .input-group .form-control,
.modal-body .input-group .form-control,
.form-view-modern .input-group .form-control {
    border-radius: 0 8px 8px 0;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

/* Row spacing in FormViews - only apply to form-view-modern to avoid conflicts */
.form-view-modern .row {
    margin-bottom: 0.75rem;
}

/* Checkbox styling */
.modalPopup input[type="checkbox"],
.modal-body input[type="checkbox"],
.form-view-modern input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3d1a6f;
    margin-right: 0.5rem;
}

/* Better validation message styling - only for validator spans, not buttons */
.modalPopup span.text-danger,
.modal-body span.text-danger,
.form-view-modern span.text-danger {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* Keep asterisks inline within labels (override above rule) */
.modalPopup label span.text-danger,
.modal-body label span.text-danger,
.form-view-modern label span.text-danger {
    display: inline;
    margin-top: 0;
    font-size: inherit;
}

/* Primary action button in FormView modals - use specific class to avoid conflicts */
.form-view-modern .btn-danger,
.form-view-modern a.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    color: #fff !important;
    transition: all 0.2s ease;
}

.form-view-modern .btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    color: #fff;
}

.form-view-modern .btn-danger:focus {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
    outline: none;
    color: #fff;
}

/* Secondary/default button in FormView modals */
.form-view-modern .btn-default {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
}

.form-view-modern .btn-default:hover {
    background: #e9ecef;
    color: #333;
}

.form-view-modern .btn-default:focus {
    background: #f8f9fa;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    outline: none;
}

/* Modal header styling - only for FormView modals without existing header styling */
.form-view-modern .header {
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    color: #fff;
    padding: 1rem 1.5rem;
}

.form-view-modern .header h4,
.form-view-modern .header h5 {
    margin: 0;
    font-weight: 500;
}

/* Modal body padding - only apply to form-view-modern class */
.form-view-modern .body {
    padding: 1.5rem;
}

/* Form section dividers - only for form-view-modern */
.form-view-modern hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 1.25rem 0;
}

/* Rich text editor wrapper - only for form-view-modern */
.form-view-modern .richtextwrapper-xs {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

/* Blocked Emails Tab Modern Styling */
.blocked-emails-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blocked-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    flex: 1;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #dc3545;
}

.blocked-stat-card.warning { border-left-color: #ffc107; }
.blocked-stat-card.info { border-left-color: #17a2b8; }

.blocked-stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
}

.blocked-stat-label {
    font-size: 0.85rem;
    color: #666;
}

.blocked-stats-wrapper {
    position: relative;
}

.blocked-stats-dismiss-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #999;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.blocked-stats-dismiss-btn:hover {
    background: rgba(0,0,0,0.05);
    color: #666;
}

/* Blocked emails table improvements */
.table-blocked-emails {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.table-blocked-emails th {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%) !important;
    border-left: 4px solid #fdb913 !important;
    color: #3d1a6f;
    font-weight: 500;
}

.table-blocked-emails .btn-sm {
    border-radius: 6px;
    padding: 0.375rem 0.625rem;
}

.table-blocked-emails .btn-sm.green,
.table-blocked-emails .btn-sm.green:hover,
.table-blocked-emails .btn-sm.green:focus {
    background: #28a745 !important;
    border: none !important;
    color: #fff !important;
}

.table-blocked-emails .btn-sm.red,
.table-blocked-emails .btn-sm.red:hover,
.table-blocked-emails .btn-sm.red:focus {
    background: #dc3545 !important;
    border: none !important;
    color: #fff !important;
}

/* Block reason column */
.table-blocked-emails .wraplong {
    max-width: 200px;
    word-wrap: break-word;
    font-size: 0.85rem;
    color: #666;
}

/* ============================================
   Outlet Details Modern View
   ============================================ */

.outlet-profile {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* Header section with logo and key info */
.outlet-profile-header {
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    padding: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.outlet-profile-logo {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.outlet-profile-logo img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}

.outlet-profile-title {
    flex: 1;
}

.outlet-profile-title h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.outlet-profile-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.outlet-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.outlet-badge.type { background: #fdb913; color: #333; }
.outlet-badge.size { background: rgba(255,255,255,0.3); }
.outlet-badge.reach { background: #28a745; color: #fff; }

/* Profile body sections */
.outlet-profile-body {
    padding: 1.5rem;
}

.outlet-section {
    margin-bottom: 1.5rem;
}

.outlet-section:last-child {
    margin-bottom: 0;
}

.outlet-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3d1a6f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #fdb913;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.outlet-section-title i {
    color: #fdb913;
    width: 20px;
}

/* Field display grid */
.outlet-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .outlet-fields {
        grid-template-columns: 1fr;
    }
}

.outlet-field {
    display: flex;
    flex-direction: column;
}

.outlet-field.full-width {
    grid-column: 1 / -1;
}

.outlet-field-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.25rem;
}

.outlet-field-value {
    font-size: 0.95rem;
    color: #333;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    min-height: 1.5rem;
}

.outlet-field-value:empty::after {
    content: "-";
    color: #ccc;
}

.outlet-field-value a {
    color: #3d1a6f;
    text-decoration: none;
}

.outlet-field-value a:hover {
    text-decoration: underline;
}

/* Contact info with icons */
.outlet-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.outlet-contact-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3d1a6f;
    flex-shrink: 0;
}

.outlet-contact-text {
    flex: 1;
}

.outlet-contact-text .label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.outlet-contact-text .value {
    color: #333;
    font-size: 0.95rem;
}

/* Description/notes area */
.outlet-description {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Footer with metadata */
.outlet-profile-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 0.8rem;
    color: #888;
    display: flex;
    justify-content: space-between;
}

/* Edit button in header */
.outlet-profile-actions {
    flex-shrink: 0;
}

.outlet-profile-actions .btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.outlet-profile-actions .btn:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* Upload Logo button in outlet profile header */
.outlet-profile-actions .dm-uploader {
    display: inline-block;
    margin-right: 0.5rem;
}

.outlet-profile-actions .dm-uploader .btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.outlet-profile-actions .dm-uploader .btn:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* Hide the default file input but keep it functional */
.outlet-profile-actions .dm-uploader .uploader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Loading indicator for upload */
.outlet-profile-actions .loadingbee {
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ============================================
   Form Card Container
   Reusable card-style form container with yellow header
   Use with .form-view-modern for complete styling
   ============================================ */

.form-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

/* Yellow gradient header for form cards */
.form-card h3,
.form-card h4,
.form-card .form-header {
    font-size: 1rem;
    font-weight: 600;
    color: #3d1a6f;
    margin: 0 -1.25rem 1rem -1.25rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-left: 4px solid #fdb913;
    border-radius: 10px 10px 0 0;
}

.form-card h3:first-child,
.form-card h4:first-child,
.form-card .form-header:first-child {
    margin-top: -1.25rem;
}

/* Row spacing in form cards */
.form-card .row {
    margin-bottom: 0.875rem;
}

/* Mobile responsiveness for form cards */
@media (max-width: 768px) {
    .form-card {
        padding: 1rem;
        border-radius: 8px;
    }

    .form-card h3,
    .form-card h4,
    .form-card .form-header {
        margin: 0 -1rem 1rem -1rem;
        padding: 0.625rem 1rem;
        font-size: 0.95rem;
    }

    .form-card h3:first-child,
    .form-card h4:first-child {
        margin-top: -1rem;
    }
}

/* Alias for backwards compatibility */
.storybuilder-form {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.storybuilder-form h3,
.storybuilder-form h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #3d1a6f;
    margin: 0 -1.25rem 1rem -1.25rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-left: 4px solid #fdb913;
    border-radius: 10px 10px 0 0;
}

.storybuilder-form h3:first-child,
.storybuilder-form h4:first-child {
    margin-top: -1.25rem;
}

.storybuilder-form .row {
    margin-bottom: 0.875rem;
}

@media (max-width: 768px) {
    .storybuilder-form {
        padding: 1rem;
    }
    .storybuilder-form h3,
    .storybuilder-form h4 {
        margin: 0 -1rem 1rem -1rem;
        padding: 0.625rem 1rem;
    }
    .storybuilder-form h3:first-child,
    .storybuilder-form h4:first-child {
        margin-top: -1rem;
    }
}

/* ============================================
   PROFILE CARD - Reusable Modern FormView Pattern
   ============================================

   USE THIS PATTERN TO MODERNIZE ANY FORMVIEW

   HTML Structure:
   ---------------
   <div class="profile-card">
       <!-- Optional Header with gradient and title -->
       <div class="profile-card-header">
           <div class="profile-card-title">
               <h3>Title Here</h3>
               <div class="profile-card-badges">
                   <span class="profile-badge type">Badge 1</span>
                   <span class="profile-badge">Badge 2</span>
               </div>
           </div>
           <div class="profile-card-actions">
               <asp:LinkButton CssClass="btn" Text="Edit" />
           </div>
       </div>

       <!-- Body with sections -->
       <div class="profile-card-body">
           <div class="profile-section">
               <div class="profile-section-title">
                   <i class="fa fa-info-circle"></i> Section Title
               </div>
               <div class="profile-fields">
                   <div class="profile-field">
                       <div class="profile-field-label">Field Label</div>
                       <div class="profile-field-value">Field Value</div>
                   </div>
                   <div class="profile-field full-width">
                       <div class="profile-field-label">Full Width Field</div>
                       <div class="profile-field-value">Spans both columns</div>
                   </div>
               </div>
           </div>
       </div>

       <!-- Optional Footer -->
       <div class="profile-card-footer">
           <span>Last Modified: Date</span>
           <span>By: User</span>
       </div>
   </div>

   ============================================ */

/* Main container */
.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Header - Purple gradient */
.profile-card-header {
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    padding: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Header - Yellow gradient variant */
.profile-card-header.yellow {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    color: #3d1a6f;
    border-left: 4px solid #fdb913;
}

.profile-card-header.yellow .profile-badge {
    background: rgba(61,26,111,0.1);
    color: #3d1a6f;
}

.profile-card-header.yellow .profile-card-actions .btn {
    background: #3d1a6f;
    border-color: #3d1a6f;
    color: #fff;
}

.profile-card-title {
    flex: 1;
}

.profile-card-title h3,
.profile-card-title h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: inherit;
}

.profile-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.profile-badge.type { background: #fdb913; color: #333; }
.profile-badge.status { background: #d4edda; color: #155724; }
.profile-badge.success { background: #d4edda; color: #155724; }
.profile-badge.warning { background: #ffc107; color: #333; }
.profile-badge.danger { background: #dc3545; color: #fff; }
.profile-badge.info { background: rgba(255,255,255,0.3); }

/* Light green badge override for Bootstrap bg-success */
.profile-field-value .badge.bg-success,
.badge.bg-success-light { background: #d4edda !important; color: #155724 !important; }

/* Purple badge for Custom Reports */
.badge.bg-purple { background: #3d1a6f !important; color: #fff !important; }

/* Header actions (Edit button) */
.profile-card-actions {
    flex-shrink: 0;
}

.profile-card-actions .btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.profile-card-actions .btn:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* Body */
.profile-card-body {
    padding: 1.5rem;
}

/* Sections within body */
.profile-section {
    margin-bottom: 1.5rem;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3d1a6f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #fdb913;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section-title i {
    color: #fdb913;
    width: 20px;
}

/* Field grid - 2 columns */
.profile-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .profile-fields {
        grid-template-columns: 1fr;
    }
}

/* Individual field */
.profile-field {
    display: flex;
    flex-direction: column;
}

.profile-field.full-width {
    grid-column: 1 / -1;
}

.profile-field-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.profile-field-value {
    font-size: 0.95rem;
    color: #333;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    min-height: 1.5rem;
}

.profile-field-value:empty::after {
    content: "-";
    color: #ccc;
}

.profile-field-value a {
    color: #3d1a6f;
    text-decoration: none;
}

.profile-field-value a:hover {
    text-decoration: underline;
}

/* Override form-control styling inside profile-field-value for read-only display */
.profile-field-value input.form-control,
.profile-field-value textarea.form-control,
.profile-field-value select.form-control,
.profile-field-value input[readonly],
.profile-field-value textarea[readonly] {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    height: auto;
    min-height: unset;
    font-size: 0.95rem;
    color: #333;
    cursor: default;
}

.profile-field-value input.form-control:focus,
.profile-field-value textarea.form-control:focus {
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

/* Contact item with icon (phone, email, website) */
.profile-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-contact-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3d1a6f;
    flex-shrink: 0;
}

.profile-contact-text {
    flex: 1;
}

.profile-contact-text .label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.profile-contact-text .value {
    color: #333;
    font-size: 0.95rem;
}

/* Description/notes box */
.profile-description {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Footer */
.profile-card-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 0.8rem;
    color: #888;
    display: flex;
    justify-content: space-between;
}

/* Simple variant without purple header - just a white card with sections */
.profile-card.simple .profile-card-body {
    padding-top: 0;
}

.profile-card.simple > .profile-section:first-child {
    margin-top: 1.5rem;
}

/* Compact variant for smaller displays */
.profile-card.compact .profile-card-header {
    padding: 1rem;
}

.profile-card.compact .profile-card-body {
    padding: 1rem;
}

.profile-card.compact .profile-section {
    margin-bottom: 1rem;
}

.profile-card.compact .profile-fields {
    gap: 0.75rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .profile-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .profile-card-actions {
        width: 100%;
    }

    .profile-card-actions .btn {
        width: 100%;
        text-align: center;
    }

    .profile-card-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Profile Card - Collapsible Sections */
.profile-section-collapsible {
    border-top: 1px solid #e9ecef;
}

.profile-section-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #3d1a6f;
    transition: background 0.2s ease;
}

.profile-section-header:hover {
    background: linear-gradient(135deg, #f0f1f3 0%, #f8f9fa 100%);
}

.profile-section-header i:first-child {
    color: #fdb913;
}

.profile-section-header .fa-chevron-down {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #888;
}

.profile-section-header[aria-expanded="false"] .fa-chevron-down {
    transform: rotate(-90deg);
}

.profile-section-content {
    padding: 1rem 1.5rem;
}

.profile-section-content .profile-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.profile-section-content .profile-field.full-width {
    grid-column: 1 / -1;
}

.profile-section-content .richtextwrapper {
    margin: 0;
}

@media (max-width: 768px) {
    .profile-section-content .profile-fields {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   EDM Email Groups - Modern View Styles
   ============================================= */

/* Stats Bar */
.edm-stats-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.edm-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    flex: 1;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #3d1a6f;
}

.edm-stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
}

.edm-stat-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
}

/* Groups Sidebar */
.edm-groups-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.edm-groups-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-left: 4px solid #fdb913;
    border-bottom: 1px solid #eee;
}

.edm-groups-header h5 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.edm-groups-header h5 i {
    margin-right: 0.5rem;
    color: #fdb913;
}

.edm-groups-list {
    max-height: 60vh;
    overflow-y: auto;
}

.edm-group-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edm-group-item:hover {
    background: #f8f4fc;
}

.edm-group-item.active {
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    color: #fff;
}

.edm-group-item.active .edm-group-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.edm-group-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.edm-group-count {
    font-size: 0.75rem;
    background: #eee;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    color: #666;
    margin-left: 0.5rem;
}

/* Group Panel */
.edm-group-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.5rem;
}

.edm-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.edm-group-header h4 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.edm-group-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.edm-group-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* No Group Selected State */
#edmNoGroupSelected {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 3rem 2rem;
}

#edmNoGroupSelected i {
    color: #ccc;
}

/* Loading States */
.edm-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.edm-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .edm-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .edm-group-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .edm-stats-bar {
        flex-direction: column;
    }

    .edm-stat-card {
        min-width: auto;
    }
}

/* ============================================
   LiveStoryActivity - New Chart Styles
   ============================================ */

/* KPI Progress Grid */
.kpi-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0.5rem 0;
}

.kpi-progress-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.kpi-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.kpi-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
}

.kpi-values {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.kpi-progress-bar-container {
    background: #e9ecef;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.kpi-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}


/* ============================================
   Unified KPI Card
   Used across CampaignBuilder, StoryDashboard, KPIScoreCard
   ============================================ */
.kpi-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
}

.kpi-card .kpi-type {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.kpi-card .kpi-type i {
    margin-right: 0.35rem;
    color: #666;
}

.kpi-card .kpi-values {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.kpi-card .kpi-values .kpi-actual {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}

.kpi-card .kpi-values .kpi-target {
    color: #888;
}

.kpi-card .kpi-values .kpi-pct {
    font-weight: 600;
    font-size: 0.85rem;
}

.kpi-card .kpi-progress {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.kpi-card .kpi-progress .progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.kpi-card .kpi-progress .progress-bar.kpi-green {
    background-color: #28a745;
}

.kpi-card .kpi-progress .progress-bar.kpi-amber {
    background-color: #ffc107;
}

.kpi-card .kpi-progress .progress-bar.kpi-red {
    background-color: #dc3545;
}

.kpi-card .kpi-progress .progress-bar.kpi-grey {
    background-color: #6c757d;
}

.kpi-card .kpi-pct.kpi-green { color: #28a745; }
.kpi-card .kpi-pct.kpi-amber { color: #856404; }
.kpi-card .kpi-pct.kpi-red { color: #dc3545; }
.kpi-card .kpi-pct.kpi-grey { color: #6c757d; }

/* KPI Card Grid layout for multi-column display */
.kpi-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.kpi-card-grid .kpi-card {
    margin-bottom: 0;
}

/* Compact variant for small containers (e.g. StoryDashboard cards) */
.kpi-card.kpi-card-compact {
    padding: 0.5rem 0.75rem;
}

.kpi-card.kpi-card-compact .kpi-type {
    font-size: 0.75rem;
}

.kpi-card.kpi-card-compact .kpi-values .kpi-actual {
    font-size: 0.85rem;
}

.kpi-card.kpi-card-compact .kpi-values {
    font-size: 0.75rem;
}

.kpi-card.kpi-card-compact .kpi-progress {
    height: 4px;
}

/* Print support for KPI cards */
@media print {
    .kpi-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    .kpi-card .kpi-progress .progress-bar.kpi-green { background-color: #28a745 !important; }
    .kpi-card .kpi-progress .progress-bar.kpi-amber { background-color: #ffc107 !important; }
    .kpi-card .kpi-progress .progress-bar.kpi-red { background-color: #dc3545 !important; }
}
/* Conversion Funnel Styling */
#conversionFunnelContainer .summary-section-title {
    margin-bottom: 1rem;
}

/* Station Size Chart Styling */
#stationSizeContainer .summary-section-title {
    margin-bottom: 1rem;
}

/* Cumulative Reach Chart */
#cumulativeReachContainer h3 {
    color: #3d1a6f;
    margin-bottom: 0.25rem;
}

#cumulativeReachContainer .text-muted {
    font-size: 0.85rem;
}

/* Spokesperson Chart */
#spokespersonContainer h3 {
    color: #3d1a6f;
    margin-bottom: 1rem;
}

/* Email Gauge Styling */
#emailGaugeChart {
    max-height: 100px;
}

#emailGaugeValue {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ================================================
   Contract Portfolio (CRMClients.aspx CONTRACTS tab)
   Created: 2025-12-31
   ================================================ */

/* Ensure contract grid columns stretch */
#contractsGrid .row {
    display: flex;
    flex-wrap: wrap;
}

#contractsGrid .row > [class*="col-"] {
    display: flex;
}

.contract-card {
    border-width: 2px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.contract-card .card-body {
    flex: 1;
    padding: 1rem;
}

.contract-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.contract-card .card-header {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    padding: 0.5rem 1rem;
}

.contract-card .card-footer {
    padding: 0.5rem 1rem;
}

.contract-card.border-danger {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.contract-card.border-warning {
    border-color: #ffc107;
}

.contract-card.border-info {
    border-color: #17a2b8;
}

.contract-card.border-success {
    border-color: #28a745;
}

/* Contract type badges */
.contract-card .badge-secondary {
    background-color: #6c757d;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Expiry badges */
.contract-card .badge-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    padding: 0.35em 0.75em;
}

.contract-card .badge-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 12px;
    padding: 0.35em 0.75em;
}

.contract-card .badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-radius: 12px;
    padding: 0.35em 0.75em;
}

.contract-card .badge-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    padding: 0.35em 0.75em;
}

/* Contract card title */
.contract-card .card-title {
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================
   Talent Directory Modernization
   ============================ */

/* Talent photo thumbnail */
.talent-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.talent-photo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Talent card layout overrides */
.crm-contact-card.talent-card {
    display: flex;
    flex-direction: column;
    height: 100%;  /* Fill grid cell height */
}

.crm-contact-card.talent-card .card-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-shrink: 0;  /* Don't shrink header */
}

.crm-contact-card.talent-card .card-body {
    flex: 1;  /* Grow to fill available space */
}

.crm-contact-card.talent-card .card-actions {
    flex-shrink: 0;  /* Don't shrink actions */
    margin-top: auto;  /* Push to bottom */
}

.crm-contact-card.talent-card .talent-header-info {
    flex: 1;
}

.crm-contact-card.talent-card .talent-header-info .contact-name {
    margin-bottom: 0.25rem;
}

.crm-contact-card.talent-card .talent-header-info .contact-role {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Status indicator on talent cards */
.crm-contact-card.status-published {
    border-left: 4px solid #28a745;
}

.crm-contact-card.status-private {
    border-left: 4px solid #6c757d;
}

.crm-contact-card.status-unlisted {
    border-left: 4px solid #fdb913;
}

/* Inbox stat card color */
.crm-stat-card.inbox-stat {
    border-left-color: #6f42c1;
}

/* Alphabet filter pager */
.alphabet-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    margin: 1rem 0;
}

.alphabet-pager .btn {
    min-width: 36px;
    padding: 0.25rem 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.alphabet-pager .btn.active,
.alphabet-pager .btn-primary {
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    border-color: #3d1a6f;
}

/* ============================
   Inbox Modernization
   ============================ */

/* Inbox cards container */
.inbox-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual inbox message card */
.inbox-message-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.inbox-message-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.inbox-message-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.inbox-message-card .message-from {
    font-weight: 600;
    color: #3d1a6f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inbox-message-card .message-from i {
    color: #6f42c1;
}

.inbox-message-card .message-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.inbox-message-card .card-body {
    margin-bottom: 0.75rem;
}

.inbox-message-card .requested-talent {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.inbox-message-card .requested-talent strong {
    color: #3d1a6f;
}

.inbox-message-card .message-email {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.inbox-message-card .message-email i {
    color: #17a2b8;
    margin-right: 0.25rem;
}

.inbox-message-card .message-text {
    font-size: 0.9rem;
    color: #333;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
}

.inbox-message-card .card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.inbox-message-card .card-actions .btn {
    flex: 1;
}

/* Deleted inbox styling */
.inbox-message-card.deleted {
    opacity: 0.7;
    background: #f8f9fa;
}

.inbox-message-card.deleted:hover {
    opacity: 1;
}

/* Empty state */
.inbox-empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.inbox-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.inbox-empty-state p {
    margin: 0;
    font-size: 1.1rem;
}

/* Pagination container */
.pagination-container {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.pagination-container .btn {
    margin: 0 0.125rem;
}

.pagination-container .btn.active {
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    border-color: #3d1a6f;
    color: #fff;
}

/* Stats collapsed button */
.crm-stats-collapsed {
    margin-bottom: 1rem;
}

/* Responsive adjustments for talent */
@media (max-width: 768px) {
    .talent-photo,
    .talent-photo-placeholder {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .alphabet-pager .btn {
        min-width: 30px;
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }

    .inbox-message-card .card-actions {
        flex-direction: column;
    }

    .inbox-message-card .card-actions .btn {
        width: 100%;
    }
}

/* ==========================================
   Toast Notifications
   ========================================== */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.bg-success {
    background: #28a745;
}

.toast-notification.bg-danger {
    background: #dc3545;
}

.toast-notification.bg-info {
    background: #17a2b8;
}

.toast-notification i {
    font-size: 1.1rem;
}

/* ==========================================
   Email-Style Inbox Rows
   ========================================== */
.inbox-cards-container {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.inbox-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease;
    gap: 12px;
}

.inbox-row:last-child {
    border-bottom: none;
}

.inbox-row:hover {
    background: #f8f9fa;
}

.inbox-row.unread {
    background: #f0f7ff;
}

.inbox-row.unread:hover {
    background: #e5f0fb;
}

.inbox-row-avatar {
    flex-shrink: 0;
    color: #6c757d;
    width: 40px;
    text-align: center;
}

.inbox-row.unread .inbox-row-avatar {
    color: #3d1a6f;
}

.inbox-row-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.inbox-row-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.inbox-from {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inbox-row.unread .inbox-from {
    font-weight: 700;
    color: #1a1a1a;
}

.inbox-date {
    font-size: 0.8rem;
    color: #888;
    flex-shrink: 0;
    margin-left: 12px;
}

.inbox-subject {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inbox-subject i {
    color: #999;
    margin-right: 4px;
    font-size: 0.85rem;
}

.inbox-row.unread .inbox-subject {
    font-weight: 500;
    color: #333;
}

.inbox-preview {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inbox-row-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.inbox-row:hover .inbox-row-actions {
    opacity: 1;
}

.inbox-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.inbox-action-btn:hover {
    background: #e9ecef;
    color: #333;
}

.inbox-action-btn.delete:hover {
    background: #fee;
    color: #dc3545;
}

.inbox-action-btn.restore:hover {
    background: #efe;
    color: #28a745;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .inbox-row {
        padding: 10px 12px;
    }

    .inbox-row-avatar {
        display: none;
    }

    .inbox-row-actions {
        opacity: 1;
        flex-direction: column;
        gap: 2px;
    }

    .inbox-action-btn {
        width: 28px;
        height: 28px;
    }

    .inbox-date {
        display: none;
    }

    .inbox-row-header::after {
        content: attr(data-date);
        font-size: 0.75rem;
        color: #999;
    }
}

/* ============================================================================
   BIPlanning Agreement Card View
   ============================================================================ */

.agreement-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid #e0e0e0;
}

.agreement-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.agreement-card-header {
    background: linear-gradient(135deg, #fff5dc 0%, #fffbf0 100%);
    border-left: 4px solid #fdb913;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.agreement-card .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.agreement-card .card-body {
    padding: 1rem;
}

.agreement-card .card-footer {
    padding: 0.5rem 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.agreement-card .progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

/* View toggle button active state */
#btnGridView.active,
#btnCardView.active {
    background-color: #3d1a6f;
    border-color: #3d1a6f;
    color: #fff;
}

#btnGridView:not(.active):hover,
#btnCardView:not(.active):hover {
    background-color: #f8f4fc;
    color: #3d1a6f;
}

/* Card view loading state */
#agreementCardsGrid .fa-spinner {
    color: #3d1a6f;
}

/* Card view pagination */
#cardViewPagination .page-link {
    color: #3d1a6f;
    border-color: #dee2e6;
}

#cardViewPagination .page-item.active .page-link {
    background-color: #3d1a6f;
    border-color: #3d1a6f;
    color: #fff;
}

#cardViewPagination .page-item.disabled .page-link {
    color: #6c757d;
}

/* ============================================
   Missing Interests Tool
   ============================================ */

.mi-stat-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.mi-stat-card {
    flex: 1;
    min-width: 140px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.mi-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3d1a6f;
    line-height: 1.2;
}

.mi-stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mi-outlet-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.mi-outlet-header {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

.mi-outlet-header:hover {
    background: #f0f0f0;
}

.mi-outlet-body {
    padding: 0;
}

.mi-contact-row {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    gap: 0.75rem;
    transition: background 0.2s;
}

.mi-contact-row:last-child {
    border-bottom: none;
}

.mi-contact-row:hover {
    background: #fafafa;
}

.mi-contact-row.resolved {
    background: #f0fdf4;
    opacity: 0.7;
}

.mi-contact-row.resolved .mi-contact-name {
    text-decoration: line-through;
    color: #999;
}

.mi-contact-name {
    flex: 1;
    font-weight: 500;
}

.mi-contact-email {
    flex: 1;
    color: #888;
    font-size: 0.9em;
}

.mi-contact-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.mi-inline-editor {
    padding: 0.75rem 1rem;
    background: #f8f5ff;
    border-top: 1px solid #e0d5f5;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.mi-inline-editor .tag-input-wrapper {
    flex: 1;
    min-width: 200px;
}

.mi-bulk-panel {
    background: #f8f5ff;
    border: 1px solid #d5c8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.mi-progress-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.mi-progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, #3d1a6f, #7c4dff);
    transition: width 0.3s ease;
}

/* ============================================
   Barcelona Principle Badges
   ============================================ */

.barcelona-bp {
    font-size: 0.55rem;
    vertical-align: super;
    margin-left: 4px;
    background: #6f42c1;
    color: #fff;
    line-height: 1;
    padding: 2px 6px;
}
@media (max-width: 768px) {
    .barcelona-bp { display: none; }
}

/* Barcelona Navigator - Persistent progress bar above tabs */
.barcelona-navigator {
    background: linear-gradient(135deg, #6f42c1 0%, #7e57c2 50%, #9575cd 100%);
    border-radius: 8px 8px 0 0;
    padding: 10px 20px;
    margin-bottom: 0;
    color: #fff;
}
.barcelona-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.barcelona-nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.barcelona-nav-icon {
    font-size: 1.2rem;
    opacity: 0.9;
}
.barcelona-nav-title {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.barcelona-nav-version {
    font-size: 0.6rem;
    opacity: 0.7;
    background: rgba(255,255,255,0.15);
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
}
.barcelona-nav-steps {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.barcelona-nav-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s ease;
}
.barcelona-nav-step:hover {
    background: rgba(255,255,255,0.15);
}
.barcelona-nav-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}
.barcelona-nav-step.complete .barcelona-nav-dot {
    background: #28a745;
    border-color: #28a745;
    box-shadow: 0 0 6px rgba(40,167,69,0.5);
}
.barcelona-nav-step.partial .barcelona-nav-dot {
    background: rgba(40,167,69,0.4);
    border-color: rgba(40,167,69,0.7);
}
.barcelona-nav-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.8;
    font-weight: 600;
    white-space: nowrap;
}
.barcelona-nav-step.complete .barcelona-nav-label {
    opacity: 1;
}
.barcelona-nav-connector {
    width: 12px;
    height: 2px;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
    border-radius: 1px;
    transition: background 0.3s ease;
}
.barcelona-nav-connector.active {
    background: #28a745;
}
.barcelona-nav-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 50px;
}
.barcelona-nav-pct {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
}
.barcelona-nav-pct-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 0.5px;
}
@media (max-width: 768px) {
    .barcelona-nav-inner { flex-wrap: wrap; justify-content: center; }
    .barcelona-nav-brand { width: 100%; justify-content: center; margin-bottom: 4px; }
    .barcelona-nav-label { display: none; }
    .barcelona-nav-connector { width: 8px; }
    .barcelona-nav-step { padding: 2px 4px; }
}

/* Barcelona Educational Intro Panel */
.barcelona-intro {
    background: linear-gradient(135deg, rgba(111,66,193,0.04) 0%, rgba(155,89,182,0.06) 100%);
    border: 1px solid rgba(111,66,193,0.12);
    border-radius: 8px;
    padding: 16px 20px;
    border-left: 4px solid #6f42c1;
}
.barcelona-intro-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.barcelona-intro-icon {
    font-size: 1.8rem;
    color: #6f42c1;
    opacity: 0.7;
}
.barcelona-intro-phase {
    padding: 8px 0;
}
.barcelona-intro-phase-label {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

/* Barcelona Wheel Component */
#barcelonaWheelContainer {
    max-width: 500px;
    margin: 0 auto;
    overflow: visible;
    padding: 20px 10px;
}
.barcelona-wheel {
    width: 100%;
    max-width: 380px;
    height: auto;
}
.barcelona-wheel .segment {
    transition: opacity 0.15s ease;
}
.barcelona-wheel .segment:hover {
    opacity: 0.85;
}
.barcelona-wheel-attribution {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-style: italic;
}
.barcelona-wheel-checklist h6 {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.barcelona-wheel-checklist .small {
    line-height: 1.6;
}
@media (max-width: 768px) {
    #barcelonaWheelContainer { max-width: 300px; }
    .barcelona-wheel { max-width: 280px; }
    .barcelona-wheel-checklist .col-md-3 { margin-bottom: 0.5rem; }
}

/* Impact Tab Wheel Container */
#bp7WheelContainer {
    max-width: 500px;
    overflow: visible;
    padding: 20px 10px;
}
#tabimpact .profile-card-body .row {
    flex-wrap: nowrap;
}
#tabimpact .col-md-5 {
    min-width: 280px;
}

/* ============================================
   AskRalph Slide-Out Help Panel (T.23)
   ============================================ */

/* Trigger button */
#askRalphTrigger {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1030;
    width: 44px;
    height: 88px;
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    border: none;
    border-radius: 44px 0 0 44px;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 4px;
    transition: width 0.2s ease, box-shadow 0.2s ease;
}
#askRalphTrigger:hover {
    width: 52px;
    box-shadow: -3px 3px 12px rgba(0,0,0,0.3);
}
#askRalphTrigger.hidden {
    transform: translateY(-50%) translateX(60px);
    pointer-events: none;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Overlay */
.askralph-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1060;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.askralph-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Panel */
.askralph-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100%;
    z-index: 1070;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
}
.askralph-panel.open {
    right: 0;
}

/* Header */
.askralph-header {
    background: linear-gradient(135deg, #3d1a6f 0%, #5a2d82 100%);
    color: #fff;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.askralph-header-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.askralph-header-actions {
    display: flex;
    gap: 0.5rem;
}
.askralph-header-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.askralph-header-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Messages area */
.askralph-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Welcome screen */
.askralph-welcome {
    text-align: center;
    padding: 2rem 1rem;
    color: #555;
}
.askralph-welcome-icon {
    font-size: 2.5rem;
    color: #5a2d82;
    margin-bottom: 0.75rem;
}
.askralph-welcome h6 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}
.askralph-welcome p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}
.askralph-examples-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem !important;
}
.askralph-example-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: #f8f5fc;
    border: 1px solid #e5ddf0;
    border-radius: 8px;
    padding: 0.6rem 0.875rem;
    margin-bottom: 0.5rem;
    color: #5a2d82;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.askralph-example-btn:hover {
    background: #efe8f8;
    border-color: #c4b0d9;
}

/* Message bubbles */
.askralph-msg {
    display: flex;
    max-width: 85%;
}
.askralph-msg-user {
    align-self: flex-end;
}
.askralph-msg-assistant {
    align-self: flex-start;
}
.askralph-msg-bubble {
    padding: 0.625rem 0.875rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.askralph-msg-user .askralph-msg-bubble {
    background: linear-gradient(135deg, #5a2d82 0%, #7b3fa0 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.askralph-msg-assistant .askralph-msg-bubble {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 4px;
}
.askralph-msg-assistant .askralph-msg-bubble code {
    background: #e9ecef;
    padding: 0.1em 0.35em;
    border-radius: 3px;
    font-size: 0.85em;
}
.askralph-msg-assistant .askralph-msg-bubble ul {
    margin: 0.25rem 0;
    padding-left: 1.25rem;
}
.askralph-msg-assistant .askralph-msg-bubble li {
    margin-bottom: 0.2rem;
}
.askralph-msg-assistant .askralph-msg-bubble strong {
    color: #222;
}

/* Source attribution tags */
.askralph-sources {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.35rem;
    padding: 0 0.25rem;
    line-height: 1.6;
}
.askralph-source-tag {
    display: inline-block;
    background: #eee;
    color: #555;
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    font-size: 0.7rem;
    margin-right: 0.25rem;
    border: 1px solid #ddd;
}

/* Typing indicator */
.askralph-typing {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.askralph-typing-dots {
    display: flex;
    gap: 4px;
}
.askralph-typing-dots span {
    width: 6px;
    height: 6px;
    background: #5a2d82;
    border-radius: 50%;
    opacity: 0.4;
    animation: askralph-bounce 1.4s ease-in-out infinite;
}
.askralph-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}
.askralph-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes askralph-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Input area */
.askralph-input-area {
    padding: 0.75rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    background: #fff;
}
.askralph-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    min-height: 38px;
    max-height: 120px;
    line-height: 1.4;
    font-family: inherit;
    transition: border-color 0.2s;
}
.askralph-input:focus {
    border-color: #5a2d82;
    box-shadow: 0 0 0 2px rgba(90,45,130,0.1);
}
.askralph-send-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #5a2d82 0%, #7b3fa0 100%);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s, transform 0.2s;
}
.askralph-send-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}
.askralph-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .askralph-panel {
        width: 100%;
        right: -100%;
    }
    #askRalphTrigger {
        top: auto;
        bottom: 20px;
        right: 16px;
        transform: none;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        padding: 0;
    }
    #askRalphTrigger.hidden {
        transform: translateX(80px);
    }
}

/* ============================================
   Bootstrap Overrides
   ============================================ */

/* Increase .small font size for better readability (Bootstrap default is 80%) */
small,
.small {
    font-size: 87%;
}

/* ============================================
   Barcelona BP1-BP7 Outcomes Tab
   ============================================ */

.bp-retainer-label {
    min-width: 100px;
    font-weight: 600;
}

.bp-nav-pills .nav-link {
    font-size: 0.85rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0;
    border-left: 3px solid transparent;
}

.bp-nav-pills .nav-link.active {
    border-left-color: var(--primary, #6f42c1);
}

.bp-section-header {
    margin-bottom: 0.25rem;
}

/* Barcelona Funnel */
.bp-funnel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
}

.bp-funnel-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    margin-bottom: 2px;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
}

.bp-funnel-1 { width: 100%; background: #6f42c1; }
.bp-funnel-2 { width: 85%;  background: #007bff; }
.bp-funnel-3 { width: 70%;  background: #17a2b8; }
.bp-funnel-4 { width: 55%;  background: #28a745; }
.bp-funnel-5 { width: 40%;  background: #ffc107; color: #333; }

.bp-funnel-label {
    min-width: 110px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.bp-funnel-value {
    margin-left: auto;
    font-size: 0.9rem;
}

/* Completion Ring */
.bp-completion-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(
        var(--bp-color, #28a745) calc(var(--bp-pct, 0) * 1%),
        #e9ecef calc(var(--bp-pct, 0) * 1%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.bp-ring-inner {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   Journo Intel Tab — CRM Outlets
   ============================================================ */

.ji-stat-card {
    background: #fff;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.ji-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3436;
    line-height: 1.2;
}

.ji-stat-label {
    font-size: 0.75rem;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ji-filter-bar {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.75rem;
}

.ji-bulk-bar {
    background: #ffeaa7;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.ji-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-left: 4px solid #6c5ce7;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.ji-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left-color: #5f3dc4;
}

.ji-card.expanded {
    border-left-color: #5f3dc4;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.ji-card.dismissed {
    opacity: 0.65;
    border-left-color: #b2bec3;
}

.ji-card.dismissed:hover {
    opacity: 0.85;
}

.ji-card-main {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
}

.ji-card-select {
    flex-shrink: 0;
}

.ji-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ji-card-photo {
    flex-shrink: 0;
}

.ji-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.ji-photo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dfe6e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #636e72;
    font-size: 1.2rem;
}

.ji-card-info {
    flex: 1;
    min-width: 0;
}

.ji-card-name {
    font-weight: 600;
    color: #2d3436;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ji-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.ji-pub-badge {
    background: #f0edfc;
    color: #5f3dc4;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    white-space: nowrap;
}

.ji-card.dismissed .ji-pub-badge {
    background: #f1f2f6;
    color: #636e72;
}

.ji-topics {
    font-size: 0.8rem;
    color: #6c5ce7;
    font-weight: 500;
}

.ji-meta-item {
    font-size: 0.8rem;
    color: #636e72;
}

.ji-card-actions {
    flex-shrink: 0;
    white-space: nowrap;
}

.ji-details {
    padding: 1rem 1rem 1rem 4.5rem;
    border-top: 1px solid #f1f2f6;
    background: #fafafa;
}

.ji-outlet-group {
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.ji-outlet-group:hover {
    box-shadow: 0 2px 8px rgba(108,92,231,0.12);
}
.ji-outlet-header {
    padding: 0.75rem 1rem;
    background: #fff;
    border-left: 4px solid #6c5ce7;
    color: #2d3436;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.ji-outlet-header .badge-light {
    background: #f0edfc;
    color: #5f3dc4;
}
.ji-outlet-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.ji-suggestion-hint {
    font-size: 0.8rem;
    color: #6c5ce7;
    font-style: italic;
    white-space: nowrap;
}
.ji-outlet-chevron {
    transition: transform 0.2s;
    width: 14px;
}
.ji-outlet-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}
.ji-outlet-actions .btn {
    border-color: #dfe6e9;
    color: #2d3436;
}
.ji-outlet-actions .btn:hover {
    background: #f5f6fa;
    border-color: #b2bec3;
}
.ji-outlet-actions .btn-success {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}
.ji-outlet-actions .btn-success:hover {
    background: #218838;
    border-color: #1e7e34;
}
.ji-badge-existing {
    background: #d4edda;
    color: #155724;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25em 0.6em;
    border-radius: 12px;
    border: 1px solid #c3e6cb;
    letter-spacing: 0.02em;
}
.ji-badge-new {
    background: #fff3cd;
    color: #856404;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25em 0.6em;
    border-radius: 12px;
    border: 1px solid #ffeeba;
    letter-spacing: 0.02em;
}
/* Shimmer animation for stats bar while loading */
.ji-stats-loading .ji-stat-card {
    position: relative;
    overflow: hidden;
}
.ji-stats-loading .ji-stat-value,
.ji-stats-loading .ji-stat-label {
    color: transparent;
}
.ji-stats-loading .ji-stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent 25%, rgba(108,92,231,0.08) 50%, transparent 75%);
    animation: jiShimmer 1.5s infinite;
}
@keyframes jiShimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

/* Hide pub badges inside expanded outlet groups */
.ji-outlet-body .ji-pub-badge {
    display: none;
}

/* Import decision modal option cards */
.ji-import-option {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.ji-import-option:hover {
    background: #f8f4ff;
    border-color: #6c5ce7;
}
.ji-import-option i {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* Import decision search results */
.ji-import-search-results {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
}
.ji-import-search-result {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}
.ji-import-search-result:hover {
    background: #e8e0f5;
}
.ji-import-search-result:last-child {
    border-bottom: none;
}
.ji-outlet-body {
    background: #fafbfc;
    max-height: 600px;
    overflow-y: auto;
}
.ji-outlet-body .ji-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin: 0;
    border-bottom: 1px solid #e1e4e8;
}
.ji-outlet-body .ji-card:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .ji-card-main {
        flex-wrap: wrap;
    }
    .ji-card-info {
        width: 100%;
        order: 3;
    }
    .ji-card-name {
        white-space: normal;
    }
    .ji-details {
        padding-left: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   MODE CARDS — Wizard & Settings mode selection
   ═══════════════════════════════════════════════════════════ */
.mode-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.mode-card {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
}

.mode-card:hover {
    border-color: #fdb913;
    box-shadow: 0 2px 8px rgba(253, 185, 19, 0.2);
}

.mode-card.selected {
    border-color: #3d1a6f;
    background: #f3edf9;
    box-shadow: 0 2px 12px rgba(61, 26, 111, 0.15);
}

.mode-card.selected::after {
    content: '\f058';
    font-family: 'Font Awesome 7 Pro';
    font-weight: 900;
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    color: #3d1a6f;
    font-size: 1.1rem;
}

.mode-card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #3d1a6f;
    margin-bottom: 0.35rem;
}

.mode-card-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.mode-card-suited {
    font-size: 0.75rem;
    color: #3d1a6f;
    font-style: italic;
    margin-top: 0.5rem;
    line-height: 1.3;
}

.mode-card-badge {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #856404;
    background: #fff3cd;
    padding: 2px 8px;
    border-radius: 10px;
}

@media (max-width: 576px) {
    .mode-card-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   News Agenda Widget
   ============================================================================ */
.news-spiking-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 0;
    margin-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}
.news-spike-pill {
    display: inline-block;
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.news-spike-pill.spiking-hot { background: #fdecea; color: #c0392b; }
.news-spike-pill.spiking-warm { background: #f0ecfc; color: #5b4cbe; }
.news-spike-pill.spiking-cool { background: #f5f6fa; color: #a0a8b4; }
.news-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    align-items: center;
}
.news-tab {
    background: none;
    border: none;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.news-tab:hover { color: #6c5ce7; }
.news-tab.active { color: #6c5ce7; border-bottom-color: #6c5ce7; }
.news-article-count {
    margin-left: auto;
    font-size: 0.65rem;
    color: #b2bec3;
}

/* Story Clusters */
.story-cluster {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}
.story-cluster:last-child { border-bottom: none; }
.story-cluster.multi-outlet {
    background: #fafaff;
    margin: 0 -12px;
    padding: 8px 12px;
    border-left: 3px solid #6c5ce7;
    border-bottom: 1px solid #ededfa;
}
.cluster-main {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.cluster-flag {
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.cluster-content {
    flex: 1;
    min-width: 0;
}
.cluster-headline {
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.3;
    color: #2d3436;
    text-decoration: none;
    display: block;
}
.cluster-headline:hover { color: #6c5ce7; text-decoration: none; }
.cluster-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 3px;
    flex-wrap: wrap;
}
.cluster-outlet-badge {
    background: #f0ecfc;
    color: #5b4cbe;
    font-size: 0.62rem;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
}
.cluster-tier1-badge {
    background: #e6f9f3;
    color: #0d8a6a;
    font-size: 0.62rem;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
}
.cluster-topic {
    font-size: 0.68rem;
    color: #636e72;
    font-style: italic;
}
.cluster-time {
    font-size: 0.68rem;
    color: #b2bec3;
}
.cluster-outlets {
    font-size: 0.68rem;
    color: #999;
    margin-top: 2px;
}
.cluster-expand {
    font-size: 0.68rem;
    color: #6c5ce7;
    cursor: pointer;
    margin-top: 4px;
    user-select: none;
}
.cluster-expand:hover { text-decoration: underline; }
.cluster-articles-list {
    margin-top: 4px;
    padding-left: 8px;
    border-left: 2px solid #dfe6e9;
}
.cluster-sub-article { padding: 3px 0; }
.cluster-sub-article a {
    font-size: 0.75rem;
    color: #2d3436;
    text-decoration: none;
    display: block;
}
.cluster-sub-article a:hover { color: #6c5ce7; }
.cluster-sub-article .sub-pub {
    font-size: 0.62rem;
    color: #b2bec3;
    display: block;
}

/* Outlet Groups (By Outlet tab) */
.outlet-group { margin-bottom: 10px; }
.outlet-name {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: #2d3436;
    padding-bottom: 3px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 3px;
}
.outlet-headline {
    padding: 2px 0;
}
.outlet-headline a {
    font-size: 0.78rem;
    color: #2d3436;
    text-decoration: none;
    line-height: 1.35;
}
.outlet-headline a:hover { color: #6c5ce7; }
.outlet-headline a::before {
    content: "\2022";
    margin-right: 6px;
    color: #b2bec3;
}
