@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('./icons.css');

/* Mask text for password-style fields without using DxTextBox Password property */
.password-mask {
    -webkit-text-security: disc;
    text-security: disc;
}

/* Force pointer cursor on vault action icon buttons */
.vault-action-btn,
.vault-action-btn * {
    cursor: pointer !important;
}

.change-request-editor-title,
.change-request-editor-title:hover,
.change-request-editor-title:focus,
.change-request-editor-title:active {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    cursor: default !important;
    font-weight: 600;
    height: 1.75rem !important;
    min-height: 1.75rem !important;
    padding-block: 0 !important;
    pointer-events: none;
}

.change-request-editor-step,
.change-request-editor-step:hover,
.change-request-editor-step:focus,
.change-request-editor-step:active {
    background: var(--dxbl-btn-primary-bg, #fe7109) !important;
    border-color: var(--dxbl-btn-primary-border-color, #fe7109) !important;
    color: var(--dxbl-btn-primary-color, #fff) !important;
    box-shadow: none !important;
    cursor: default !important;
    font-weight: 700;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    margin-block: auto !important;
    height: 1.75rem !important;
    min-height: 1.75rem !important;
    min-width: 1.75rem !important;
    padding-inline: 0.375rem !important;
    padding-block: 0 !important;
    line-height: 1 !important;
    border-radius: 0.25rem !important;
    pointer-events: none;
}

.change-request-editor-step *,
.change-request-editor-step:hover *,
.change-request-editor-step:focus *,
.change-request-editor-step:active * {
    color: var(--dxbl-btn-primary-color, #fff) !important;
}

.compact-titled-html-editor .dxbl-toolbar {
    min-height: 1.875rem !important;
    padding-block: 0 !important;
}

.compact-titled-html-editor .dxbl-toolbar-group,
.compact-titled-html-editor .dxbl-toolbar-item {
    min-height: 1.75rem !important;
    margin-block: 0 !important;
    padding-block: 0 !important;
}

.dxbl-toolbar:has(.change-request-editor-title),
.dxbl-toolbar:has(.change-request-editor-title) > .dxbl-btn-toolbar,
.dxbl-toolbar:has(.change-request-editor-title) .dxbl-toolbar-group,
.dxbl-toolbar:has(.change-request-editor-title) .dxbl-toolbar-item {
    height: 1.625rem !important;
    min-height: 1.625rem !important;
    max-height: 1.625rem !important;
    margin-block: 0 !important;
    padding-block: 0 !important;
}

.dxbl-toolbar:has(.change-request-editor-title) .dxbl-btn,
.dxbl-toolbar:has(.change-request-editor-title) .change-request-editor-title {
    height: 1.5rem !important;
    min-height: 1.5rem !important;
    max-height: 1.5rem !important;
    margin-block: 0 !important;
    padding: 0 0.5rem !important;
    line-height: 1rem !important;
}

.dxbl-toolbar:has(.change-request-editor-title) .change-request-editor-step {
    height: 1.5rem !important;
    min-height: 1.5rem !important;
    max-height: 1.5rem !important;
    margin-block: 0 !important;
}

.richedit-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--dxbl-btn-primary-bg, #1f7fd1);
    color: #fff;
    font-weight: 600;
    height: 1.875rem;
    min-height: 1.875rem;
    padding-inline: 0.5rem;
    border: 1px solid var(--dxbl-btn-primary-border-color, #1f7fd1);
    border-bottom: none;
}

.richedit-header-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    font-weight: 700;
    height: 1.375rem;
    min-width: 1.375rem;
    padding-inline: 0.25rem;
    border-radius: 0.25rem;
    line-height: 1;
}

.richedit-header + .compact-titled-html-editor,
.richedit-header + div > .compact-titled-html-editor {
    border-top: none !important;
}

.change-request-instructions {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    padding: 0.5rem;
    border: 1px solid #000;
}

html, body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    margin: 0;
}

/* Highlight flash animation for scroll-to-element */
@keyframes highlight-flash {
    0% { background-color: var(--dxds-color-surface-primary-default-rest); }
    100% { background-color: transparent; }
}

.highlight-flash {
    animation: highlight-flash 2s ease-out;
}


.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--dxds-color-border-success-default-rest);
}

.invalid {
    outline: 1px solid var(--dxds-color-border-danger-default-rest);
}

.validation-message {
    color: var(--dxds-color-content-danger-default-rest);
}

.button-link {
    text-decoration: unset;
}

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
}

.title.title-secondary {
    padding: 0.313rem 0 0;
    color: var(--dxds-color-content-secondary-default-rest);
}

.title-header-text {
    font-size: var(--dxds-font-size-headline-lg);
    font-weight: var(--dxds-font-weight-headline-default);
    letter-spacing: var(--dxds-letter-spacing-headline-lg);
    line-height: var(--dxds-line-height-headline-lg);
}

.title-content-text {
    font-size: var(--dxds-font-size-base-lg);
    font-weight: var(--dxds-font-weight-base-default);
    letter-spacing: var(--dxds-letter-spacing-base-lg);
    line-height: var(--dxds-line-height-base-lg);
}

.main-content {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.block-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    height: auto;
    max-width: 100%;
    width: 31.25rem;
}

.or {
    align-items: center;
    display: flex;
    flex-direction: row;
    padding: 0.3125rem 0;
}

.or .or-line {
    opacity: 0.2;
    width: 100%;
    border-bottom: 1px solid var(--dxds-color-content-neutral-default-rest);
}

.or .or-text {
    padding: 0 0.625rem 0 0.625rem;
    font-size: var(--dxds-font-size-caption-md);
    line-height: var(--dxds-line-height-caption-md);
    color: var(--dxds-color-content-neutral-subdued-rest);
}

.links-container {
    align-items: center;
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

    .links-container .dot {
        border-radius: 50%;
        height: 0.3125rem;
        margin: 0 0.1875rem;
        opacity: 0.7;
        width: 0.3125rem;
        background-color: var(--dxds-color-surface-success-default-rest);
    }

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-message {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 0.625rem 1rem 0.625rem 1rem;
    position: relative;
    background: var(--dxds-color-surface-info-subdued-rest);
}

.info-message.info-panel {
    margin-bottom: 0.625rem;
}

.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.large-input {
    font-size: 1.875rem;
    height: 4.3125rem;
}

.title-content-text-secondary {
    font-size: var(--dxds-font-size-title-md);
    line-height: var(--dxds-line-height-title-md);
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.vt-50 {
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center; /* vertical */
    height: 100vh; /* full viewport height */
    margin: 0;
}
.my-1 {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

.my-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.my-3 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.d-block {
    display: block !important;
}


.gap-2 {
    gap: .5rem !important;
}


.text-muted {
    --bs-text-opacity: 1;
    color: var(--dxds-color-content-neutral-subdued-rest) !important;
}

/* Red asterisk for required field captions */
.dxbl-fl .dxbl-fl-cpt.required-caption::after {
    content: "\00a0*";
    color: red;
    font-weight: bold;
}
}

.small {
    font-size: 0.875em;
}

.fw-semibold {
    font-weight: 600 !important;
}
    

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--dxds-color-content-neutral-default-rest);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: var(--dxds-color-surface-neutral-default-rest);
    background-color: var(--dxds-color-surface-neutral-default-rest);
    background-clip: padding-box;
    border: var(--dxds-color-border-neutral-default-inverted-rest);
    border-radius: var(--bs-border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-sm {
    min-height: calc(1.5em + 0.5rem + calc(var(--sd-form-border-width) * 2));
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.form-control-lg {
    min-height: calc(1.5em + 1rem + calc(var(--sd-form-border-width) * 2));
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
}

.display-desktop {
    display: block;
}

@media (max-width: 768px) {
    .display-desktop {
        display: none;
    }
}
