.fabric .empimg {
    background-color: #0078d6;
}

.material .empimg {
    background-color: #e3165b;
}

.highcontrast .empimg {
    background-color: #ffd939;
}

.tailwind .empimg {
    background-color: var(--ss-color-brand);
}

.fluent .empimg {
    background-color: #106EBE;
}
.tailwind3 .empimg,
.tailwind3-dark .empimg{
    background-color:rgba(79, 70, 229);
}

_:-ms-fullscreen,
:root .highcontrast .e-userimg.sf-icon-Male::before,
_:-ms-fullscreen,
:root .highcontrast .e-userimg.sf-icon-FeMale::before {
    color: black;
}

.highcontrast .e-userimg.sf-icon-Male::before,
.highcontrast .e-userimg.sf-icon-FeMale::before {
    color: black;
}

.bootstrap .empimg {
    background-color: #0078d6;
}

.bootstrap4 .empimg,
.bootstrap5 .empimg {
    background-color: #0078d6;
}

#Emptext {
    top: -14px;
    left: 41px;
    position: relative;
}

.e-grid.e-rtl #Emptext {
    top: -14px;
    left: -41px;
    position: relative;
}

.empimg {
    height: 27px;
    width: 29px;
    border-radius: 14px;
    background-color: #e3165b;
}


.e-userimg.sf-icon-Male::before,
.e-userimg.sf-icon-FeMale::before {
    font-size: 13px;
}

.e-userimg.sf-icon-Male,
.e-userimg.sf-icon-FeMale {
    margin: 0px 8px;
    line-height: 26px;
    color: white;
    font-size: 13px;
}

.e-userimg.sf-icon-Male::before {
    content: '\e700';
}

.e-userimg.sf-icon-FeMale::before {
    content: '\e701';
}


.highcontrast .e-grid td.e-rowcell.e-selectionbackground.e-active,
.fluent2-highcontrast .e-grid td.e-rowcell.e-selectionbackground.e-active {
    background-color: transparent;
    color: white;
}

.e-bigger .e-grid .statustxt {
    position: relative;
    top: -2px;
}

td.e-rowcell.e-selectionbackground.e-active {
    background-color: transparent;
}

.e-image {
    height: 13px;
    width: 14px;
}

td.e-rowcell .statustxt.e-activecolor {
    color: #00cc00;
    position: relative;
    top: 9px;
}

td.e-rowcell .statustxt.e-inactivecolor {
    color: #e60000;
    position: relative;
    top: 9px;
}

.bootstrap5 td.e-rowcell .statustxt.e-inactivecolor,
.bootstrap5 td.e-rowcell .statustxt.e-activecolor {
    top: 8px;
}

.bootstrap5 .e-checkboxfiltertext .statustemp .statustxt.e-activecolor,
.bootstrap5 .e-checkboxfiltertext .statustemp .statustxt.e-inactivecolor {
    position: relative;
    top: 1.5px;
}

.e-bigger.bootstrap5 .e-checkboxfiltertext .statustemp .statustxt.e-activecolor,
.e-bigger.bootstrap5 .e-checkboxfiltertext .statustemp .statustxt.e-inactivecolor {
    top: -0.5px;
}

.bootstrap5 .e-checkboxfiltertext #Trusttext {
    margin-left: -4px;
}

.statustemp.e-inactivecolor {
    background-color: #ffd7cc;
    width: 64px;
}

.statustemp.e-activecolor {
    background-color: #ccffcc;
    width: 57px;
}

.statustxt.e-activecolor {
    color: #00cc00;
}

.statustxt.e-inactivecolor {
    color: #e60000;
}

.statustemp {
    position: relative;
    height: 19px;
    border-radius: 5px;
    text-align: center
}

.highcontrast #msg {
    color: #FFFFFF
}

#msg {
    font-family: "Segoe UI", "GeezaPro", "DejaVu Serif", sans-serif;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.95;
    color: #333;
    float: right;
    margin-top: 3px;
}

.fabric-dark #msg, .bootstrap-dark #msg, .tailwind-dark #msg, .bootstrap5-dark #msg, .material-dark #msg, .material3-dark #msg, .fluent-dark #msg, .fluent2-dark #msg, .fluent2-highcontrast #msg, .tailwind3-dark #msg {
    color: #ffffff !important;
}

@media only screen and (max-width: 370px) {
    #msg {
        float: left;
        margin-top: 3px;
    }

    #Grid {
        margin-top: 36px;
    }
}

#samplecontainer {
    padding-top: 5px;
}

#myProgress {
    position: relative;
    height: 18px;
    width: 10em;
    text-align: left;
    background-color: white;
}

.highcontrast .e-grid #myProgress {
    background-color: black;
}

#myBar {
    position: absolute;
    width: 10%;
    height: 100%;
    background-color: #00b300;
}

#myBar.progressdisable {
    background-color: #df2222;
}

#pbarlabel {
    position: relative;
    left: 10px;
    line-height: 18px;
    font-size: 11px;
    color: white;
}

.custom-rating.e-rating-container .e-rating-item-container ,
.e-bigger .custom-rating.e-rating-container .e-rating-item-container .e-rating-icon,
.e-bigger.custom-rating.e-rating-container .e-rating-item-container .e-rating-icon {
    font-size: 11px;
}

.custom-rating.e-rating-container .e-rating-item-container .e-rating-icon {
    -webkit-text-fill-color: lightgrey;
    -webkit-text-stroke: 1px lightgrey;
}

.custom-rating.e-rating-container .e-rating-item-container.e-rating-selected .e-rating-icon {
    background: linear-gradient(to right, #ffa600 var(--rating-value), #ffa600 var(--rating-value));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #ffa600;
}

@-moz-document url-prefix() {
    #Grid.e-grid.e-grid-min-height .e-rowcell {
        line-height: 0 !important;
    } }

/* Grid Container */
.control-section {
    max-width: 100%;
    overflow-x: auto;
}

.content-wrapper {
    max-width: 100%;
}

#Grid, #SageGrid {
    max-width: 100%;
}

/* User Actions Icons */
.user-actions,
.sage-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: var(--ss-color-heading);
    text-decoration: none;
}

.action-icon:hover {
    background-color: var(--ss-color-bg-subtle);
    transform: scale(1.1);
}

.action-icon.view-icon:hover {
    color: var(--ss-color-brand);
    background-color: var(--ss-color-bg-subtle);
}

.action-icon.edit-icon:hover {
    color: var(--ss-color-form-accent);
    background-color: rgba(211, 100, 44, 0.1);
}

.action-icon.delete-icon:hover {
    color: var(--ss-notify-error-color);
    background-color: rgba(185, 28, 28, 0.1);
}

.action-icon svg {
    width: 16px;
    height: 16px;
}


/* User Edit Form Styles */
.user-edit-form-container,
.user-create-form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--ss-color-bg);
    border-radius: var(--ss-card-border-radius);
    box-shadow: var(--ss-shadow-card);
    position: relative;
}

/* Sage Create Form Styles */
.sage-create-wrapper {
    padding: 0 60px 20px 0;
}

.sage-create-header {
    margin-bottom: 2rem;
}

.sage-create-header h2 {
    margin-bottom: 1.5rem;
}

/* Progress bar container - always centered */
.step-card .sage-create-progress {
    text-align: center;
}

/* Center h6 titles and text in colored info boxes within step cards */
.step-card .rounded-lg h6,
.step-card .rounded-lg p {
    text-align: center;
}

/* Syncfusion Grid command buttons - make them smaller */
.e-grid .e-unboundcell button.e-flat,
.e-grid .e-unboundcell .e-btn {
    padding: 4px 6px !important;
    min-height: 24px !important;
    font-size: 11px !important;
}

.e-grid .e-unboundcell .e-btn-icon {
    font-size: 12px !important;
}

/* Grid cells - make them editable looking */
.e-grid td.e-editedbatchcell {
    background-color: #fffbeb !important;
}

.e-grid .e-input-group input,
.e-grid .e-input-group.e-control-wrapper input {
    padding: 6px 8px !important;
    font-size: 13px !important;
}

/* Add Candidate button - reasonable size */
#addCandidateRow.e-btn {
    padding: 8px 16px !important;
    min-height: 36px !important;
    font-size: 14px !important;
}

/* Download template button - reasonable size */
#downloadTemplate.e-btn {
    padding: 6px 12px !important;
    min-height: 32px !important;
    font-size: 13px !important;
}

/* CSV Uploader browse button - reasonable size */
.e-upload .e-file-select-wrap .e-btn,
.e-upload .e-upload-actions .e-btn {
    padding: 6px 12px !important;
    min-height: 32px !important;
    font-size: 13px !important;
}

/* Deploy Sage button and similar action buttons - reasonable size */
.step-card .e-btn.e-primary {
    padding: 10px 20px !important;
    min-height: 40px !important;
    font-size: 14px !important;
}

.sage-create-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex: 1;
    z-index: 2;
}

.progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ss-color-border-light);
    border: 3px solid var(--ss-color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--ss-font-weight-semibold);
    font-size: 16px;
    color: var(--ss-color-text-light);
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.progress-step-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--ss-color-text-light);
    text-align: center;
    transition: all 0.3s ease;
}

.progress-step.active .progress-step-circle {
    background: var(--ss-color-brand);
    border-color: var(--ss-color-brand);
    color: var(--ss-color-text-inverse);
    box-shadow: 0 0 0 4px rgba(106, 153, 106, 0.2);
}

.progress-step.active .progress-step-label {
    color: var(--ss-color-brand);
    font-weight: var(--ss-font-weight-semibold);
}

.progress-step.completed .progress-step-circle {
    background: var(--ss-color-bg-subtle);
    border-color: var(--ss-color-bg-subtle);
    color: var(--ss-color-text-inverse);
}

.progress-step.completed .progress-step-label {
    color: var(--ss-color-heading);
}

/* Connector lines between steps */
.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 8px;
    background: var(--ss-color-border-light);
    z-index: 1;
    transition: all 0.3s ease;
}

.progress-step.completed:not(:last-child)::after {
    background: var(--ss-color-bg-subtle);
}

.sage-create-content {
    margin-top: 2rem;
}

.sage-create-content h2 {
    margin-bottom: 0.5rem;
}

.sage-create-content > p {
    color: var(--ss-color-text-light);
    margin-bottom: 2rem;
}

.sage-context-form-container,
.sage-culture-form-container,
.sage-finalize-container {
    /* Forms are now inside step-card, no need for duplicate styling */
    /* Match progress bar width of 1000px */
    margin: 0 auto;
}

/* Pill Checkbox Styles */
.pill-checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.pill-checkbox-container.pill-cloud {
    gap: 10px;
}

.pill-wrapper {
    display: inline-block;
}

.pill-input {
    display: none;
}

.pill-button {
    display: inline-block;
    padding: 8px 16px;
    background: var(--ss-color-bg-hover);
    border: 2px solid var(--ss-color-border-light);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--ss-font-size-website);
    font-weight: 500;
    color: var(--ss-color-text-light);
    text-decoration: none;
    user-select: none;
}

.pill-button:hover {
    background: var(--ss-color-border-light);
    border-color: var(--ss-color-border-light);
    color: var(--ss-color-text);
}

.pill-button.active {
    background: var(--ss-color-brand);
    border-color: var(--ss-color-brand);
    color: var(--ss-color-text-inverse);
}

.pill-input:checked + .pill-button {
    background: var(--ss-color-brand);
    border-color: var(--ss-color-brand);
    color: var(--ss-color-text-inverse);
}

.pill-button.disabled {
    background: var(--ss-color-bg-hover);
    border-color: var(--ss-color-border-light);
    color: var(--ss-color-border-light);
    cursor: not-allowed;
    opacity: 0.5;
}

.pill-button.disabled:hover {
    background: var(--ss-color-bg-hover);
    border-color: var(--ss-color-border-light);
    color: var(--ss-color-border-light);
}

/* Field label for non-input fields */
.field-label {
    display: block;
    font-size: var(--ss-font-size-website);
    font-weight: var(--ss-font-weight-semibold);
    color: var(--ss-color-text);
    margin-bottom: -8px;
    margin-top: 16px;
}

/* Red asterisk for required fields */
.field-label .required {
    color: var(--ss-notify-error-color);
}

/* Clickable grid rows - pointer cursor and enhanced hover */
.e-grid.clickable-rows .e-row {
    cursor: pointer;
}

.e-grid.clickable-rows .e-row:hover .e-rowcell {
    background-color: var(--ss-color-bg-subtle) !important;
}

/* Slider styling adjustments */
.form-field .e-slider-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Slider color - brand green */
.e-control-wrapper.e-slider-container .e-slider .e-range {
    background-color: var(--ss-color-brand) !important;
}

.e-control-wrapper.e-slider-container .e-slider .e-handle {
    background-color: var(--ss-color-brand) !important;
    border-color: var(--ss-color-brand) !important;
}

.e-control-wrapper.e-slider-container.e-slider-hover .e-range {
    background-color: var(--ss-color-brand-hover) !important;
}

.e-control-wrapper.e-slider-container.e-slider-hover .e-handle {
    border-color: var(--ss-color-brand) !important;
}

/* Slider bar height - 6px */
.e-control-wrapper.e-slider-container.e-horizontal .e-slider-track {
    height: 6px !important;
}

.e-control-wrapper.e-slider-container.e-horizontal .e-range {
    height: 6px !important;
    top: calc(50% - 3px) !important;
}

/* Slider handle (circle) - bigger */
.e-control-wrapper.e-slider-container .e-slider .e-handle {
    height: 24px !important;
    width: 24px !important;
    margin-top: -3px !important;
}

/* Slider tick labels - semi-bold */
.e-control-wrapper.e-slider-container .e-scale .e-tick .e-tick-value {
    font-weight: var(--ss-font-weight-semibold) !important;
}

/* Sage Create Landing Page */
.sage-create-landing {
    margin: 0 auto;
}

.sage-create-landing h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.sage-create-landing > p {
    text-align: center;
    color: var(--ss-color-text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Sage Create Content Area - Single card containing everything */
.sage-create-content-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: var(--ss-color-bg-secondary);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Top row: Left column (description + credits) + Level card side by side */
.sage-top-row {
    display: flex;
    gap: 20px;
}

/* Left column containing description and credits */
.sage-left-column {
    flex: 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sage-left-column .sage-description-panel {
    flex: 1;
}

.sage-description-panel {
    min-width: 0;
}

.sage-options-card {
    flex: 1;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    display: flex;
    flex-direction: column;
}

.sage-card-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ss-color-text);
}

/* Vertical level buttons */
.sage-level-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.sage-level-buttons .pill-button {
    width: 100%;
    margin-right: 0;
    cursor: pointer;
}

/* Compact pill button variant */
.pill-button.pill-compact {
    padding: 10px 16px;
    font-size: 14px;
    text-align: center;
}

/* Addon toggles section */
.sage-addon-toggles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 16px;
    border-top: 1px solid var(--ss-color-border-light);
}

.sage-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sage-toggle-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--ss-color-text);
    margin: 0;
}

/* Credits Card - inside main card, horizontal layout */
.sage-credits-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Credits Card - Outline variant (no background), fixed to bottom */
.sage-credits-card.sage-credits-card--outline {
    background: transparent;
    box-shadow: none;
    border: 2px solid var(--ss-color-text);
    margin-top: auto;
}

.sage-credits-card .sage-card-title {
    margin: 0;
    white-space: nowrap;
}

/* Create Sage action button container in level card */
.sage-create-action {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--ss-color-border-light);
    text-align: right;
}

.sage-credits-content {
    display: flex;
    gap: 24px;
}

.sage-credit-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sage-credit-label {
    font-size: 13px;
    color: var(--ss-color-text-light);
    font-weight: 600;
}

.sage-credit-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--ss-color-brand);
}

.sage-credit-unit {
    font-size: 13px;
    font-weight: 400;
    color: var(--ss-color-text-light);
}

.sage-credit-note {
    font-size: 12px;
    color: var(--ss-color-brand);
}

.sage-credits-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

/* Orange form button for Create Sage - compact size */
.e-btn.e-form-accent {
    background-color: var(--ss-color-form-accent) !important;
    border-color: var(--ss-color-form-accent) !important;
    color: #fff !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
}

.e-btn.e-form-accent:hover:not(:disabled):not(.e-disabled) {
    background-color: var(--ss-color-form-accent-hover) !important;
    border-color: var(--ss-color-form-accent-hover) !important;
}

/* Disabled state - grey out */
.e-btn.e-form-accent:disabled,
.e-btn.e-form-accent.e-disabled {
    background-color: var(--ss-color-border-light) !important;
    border-color: var(--ss-color-border-light) !important;
    color: var(--ss-color-text-light) !important;
    cursor: not-allowed;
    opacity: 1 !important;
}

.create-sage-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.step-card {
    background: var(--ss-color-bg);
    padding: 1.5rem;
    border-radius: var(--ss-card-border-radius);
    border: 1px solid var(--ss-color-border-light);
    box-shadow: var(--ss-shadow-card);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* Landing page step items - centered content */
.create-sage-steps > div {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--ss-color-brand);
    color: var(--ss-color-text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--ss-font-weight-bold);
    margin: 0 auto 1rem;
}

.create-sage-steps h3 {
    margin: 0 0 0.5rem 0;
    color: var(--ss-color-heading);
}

.create-sage-steps p {
    margin: 0;
    color: var(--ss-color-text-light);
    font-size: 0.9rem;
}

.create-sage-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    border-top: 2px solid var(--ss-color-border-light);
}

.create-sage-actions .e-btn {
    min-width: 160px;
    padding: 10px 24px !important;
    font-size: var(--ss-font-size-website) !important;
    line-height: 1.4 !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border-radius: 4px !important;
}

.create-sage-actions .e-btn.e-secondary {
    border: 2px solid var(--ss-color-text-light) !important;
}

.syncfusion-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field.half-width {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.form-actions .e-btn {
    min-width: 120px;
    padding: 8px 16px !important;
    font-size: var(--ss-font-size-website) !important;
    line-height: 1.4 !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border-radius: 4px !important;
}

.e-btn.e-primary {
    background-color: var(--ss-btn-form-bg) !important;
    border-color: var(--ss-btn-form-bg) !important;
    color: var(--ss-btn-form-color) !important;
}

.e-btn.e-primary:hover {
    background-color: var(--ss-btn-form-hover-bg) !important;
    border-color: var(--ss-btn-form-hover-bg) !important;
    color: var(--ss-btn-form-color) !important;
}

.e-btn.e-secondary {
    background-color: transparent !important;
    border: none !important;
    color: var(--ss-form-cancel-color) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
}

.e-btn.e-secondary:hover {
    background-color: transparent !important;
    border: none !important;
    color: var(--ss-form-cancel-hover-bg) !important;
    text-decoration: underline !important;
}

/* Form cancel link - plain text link for cancel actions */
.form-cancel-link {
    color: var(--ss-color-form-accent) !important;
    text-decoration: none !important;
    font-weight: var(--ss-font-weight-normal) !important;
    font-size: var(--ss-form-cancel-font-size) !important;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
}

.form-cancel-link:hover {
    color: var(--ss-color-form-accent-hover) !important;
    text-decoration: underline !important;
}

/* Outline button - DEPRECATED - use e-secondary instead */
.e-btn.e-outline {
    background-color: transparent !important;
    border: none !important;
    color: var(--ss-form-cancel-color) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
}

.e-btn.e-outline:hover {
    background-color: transparent !important;
    border: none !important;
    color: var(--ss-form-cancel-hover-bg) !important;
    text-decoration: underline !important;
}

/* Variable Insert Buttons - Light Blue/Grey Styling like Deploy Page */
.variable-insert-btn {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    background-color: var(--ss-color-bg-hover);
    color: var(--ss-color-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: var(--ss-font-size-meta);
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.variable-insert-btn:hover {
    background-color: var(--ss-color-border-light);
    color: var(--ss-color-text);
}

.variable-insert-btn:active {
    background-color: var(--ss-color-border-light);
}

/* Candidates Grid - Full Width */
#candidatesGrid {
    width: 100% !important;
}

#candidatesGrid .e-grid {
    width: 100% !important;
    max-width: none !important;
}

#candidatesGrid .e-grid .e-gridheader,
#candidatesGrid .e-grid .e-gridcontent {
    width: 100% !important;
}

#candidatesGrid .e-grid .e-table {
    width: 100% !important;
    min-width: 100% !important;
}

/* Manual Entry Content - Full Width */
#manualEntryContent {
    width: 100% !important;
}

/* Tab content containers - Full Width */
#candidatesTabs .e-content {
    width: 100% !important;
}

#candidatesTabs .e-content .e-item {
    width: 100% !important;
}

/* Create Sage: title + tagline inline and pill row styles */
.sage-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 12px;
}
.sage-title-line .sage-title {
    font-size: var(--ss-font-size-h4);
    font-weight: var(--ss-font-weight-bold);
    color: var(--ss-color-text);
}
.sage-title-line .sage-title-sep {
    color: var(--ss-color-text-light);
}
.sage-title-line .sage-tagline {
    font-size: var(--ss-font-size-h5);
    font-weight: 500;
    color: var(--ss-color-text);
}

/* Layout when image is present */
.sage-header-with-image {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.sage-header-with-image .sage-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Sage image container with caption */
.sage-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.sage-image-caption {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ss-color-text);
    text-align: center;
}

.sage-description {
    color: var(--ss-color-text);
}

/* Sage description as bulleted list */
.sage-description-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.sage-description-list li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Pills row under description */
.sage-pill-row {
    margin-top: 16px;
    align-items: flex-start;
}

/* Optional state modifiers while keeping existing .pill-button look */
.pill-button.pill--yes {
    background: var(--ss-notify-success-bg);
    border-color: var(--ss-color-brand);
    color: var(--ss-notify-success-color);
}
.pill-button.pill--no {
    background: var(--ss-color-bg-hover);
    border-color: var(--ss-color-border-light);
    color: var(--ss-color-text-light);
}
.pill-button.pill--info {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

/* Screen Level variants - Lite/Core/Advanced */
.pill-button.pill--level-lite,
.pill-button.pill--level-junior {
    background: #f0fdf4;    /* light green */
    border-color: #22c55e;  /* green-500 */
    color: #16a34a;         /* green-600 */
}
.pill-button.pill--level-core,
.pill-button.pill--level-mid {
    background: #eff6ff;    /* light blue */
    border-color: #3b82f6;  /* blue-500 */
    color: #2563eb;         /* blue-600 */
}
.pill-button.pill--level-advanced,
.pill-button.pill--level-senior {
    background: #faf5ff;    /* light purple */
    border-color: #a855f7;  /* purple-500 */
    color: #9333ea;         /* purple-600 */
}

/* Multi-line pill for primary info */
.pill-button.pill-multiline {
    padding: 10px 16px;
    text-align: center;
    line-height: 1.3;
    margin-right: 32px;
}

.pill-button.pill-no-pointer {
    cursor: default;
}

.pill-primary-line {
    font-weight: 600;
    font-size: 14px;
}

.pill-screen-level-label {
    font-weight: 500;
}

.pill-secondary-line {
    font-size: 12px;
    margin-top: 2px;
    opacity: 0.9;
}

/* Feature pills (Audio, Language) */
.pill-button.pill-feature {
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 124px;
    padding: 10px 16px;
    text-align: center;
    line-height: 1.3;
    align-self: flex-start;
}

.pill-feature-title {
    font-weight: var(--ss-font-weight-semibold);
    font-size: var(--ss-font-size-website);
}

.pill-feature-subtitle {
    font-size: var(--ss-font-size-meta);
    margin-top: 2px;
    opacity: 0.9;
}

/* Disabled state - grey, not clickable */
.pill-button.pill-feature-disabled {
    background: var(--ss-color-bg-hover);
    border-color: var(--ss-color-border-light);
    color: var(--ss-color-text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Available but not selected - very pale green, subtle */
.pill-button.pill-feature-available {
    background: var(--ss-color-bg-hover);
    border-color: var(--ss-notify-success-bg);
    color: var(--ss-color-text-light);
    cursor: pointer;
    opacity: 0.7;
}

.pill-button.pill-feature-available:hover {
    background: var(--ss-notify-success-bg);
    border-color: var(--ss-notify-success-border);
    opacity: 0.85;
}

/* Selected - darker green, more prominent */
.pill-button.pill-feature-selected {
    background: var(--ss-notify-success-bg);
    border-color: var(--ss-notify-success-border);
    color: var(--ss-notify-success-color);
    cursor: pointer;
    opacity: 1;
}

.pill-button.pill-feature-selected:hover {
    background: var(--ss-notify-success-bg);
    border-color: var(--ss-notify-success-border);
}

.pill-button.pill-feature-selected .pill-feature-title {
    font-weight: var(--ss-font-weight-semibold);
}

/* Sage selection buttons - override global green button styling but let pill classes work */
body.sagescreen-route button.sage-level-btn.pill-button.pill-multiline,
body.sagescreen-route button.sage-audio-btn,
body.sagescreen-route button.sage-language-btn {
    font-family: var(--ss-font-body) !important;
    font-weight: var(--ss-font-weight-normal) !important;
    font-size: var(--ss-font-size-website) !important;
    line-height: 1.4 !important;
}

/* Level buttons - force the pill--level background colors to override green */
body.sagescreen-route button.sage-level-btn.pill-button.pill--level-lite,
body.sagescreen-route button.sage-level-btn.pill-button.pill--level-junior {
    background: #f0fdf4 !important;    /* light green */
    border-color: #22c55e !important;  /* green-500 */
    color: #16a34a !important;         /* green-600 */
}
body.sagescreen-route button.sage-level-btn.pill-button.pill--level-core,
body.sagescreen-route button.sage-level-btn.pill-button.pill--level-mid {
    background: #eff6ff !important;    /* light blue */
    border-color: #3b82f6 !important;  /* blue-500 */
    color: #2563eb !important;         /* blue-600 */
}
body.sagescreen-route button.sage-level-btn.pill-button.pill--level-advanced,
body.sagescreen-route button.sage-level-btn.pill-button.pill--level-senior {
    background: #faf5ff !important;    /* light purple */
    border-color: #a855f7 !important;  /* purple-500 */
    color: #9333ea !important;         /* purple-600 */
}

body.sagescreen-route button.sage-level-btn.pill-button.pill-multiline:hover {
    /* Keep the same background on hover, don't change */
}

/* Toggle Switch Styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--ss-color-border-light);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--ss-color-bg);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--ss-notify-success-border);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
    background-color: var(--ss-color-border-light);
    cursor: not-allowed;
}

/* Email Preferences Modal - highest priority, shows first */
.ss-email-prefs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.ss-email-prefs-modal {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.email-pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.email-pref-row:last-of-type {
    border-bottom: none;
}

.email-pref-info {
    flex: 1;
    margin-right: 16px;
}

.email-pref-title {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 4px;
}

.email-pref-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Shake animation for TOS validation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}