@font-face{font-family:"DMVH Poppins";src:url("fonts/Poppins-Regular.ttf") format("truetype");font-display:swap;font-weight:400}
@font-face{font-family:"DMVH Poppins";src:url("fonts/Poppins-SemiBold.ttf") format("truetype");font-display:swap;font-weight:600}
@font-face{font-family:"DMVH Funnel";src:url("fonts/FunnelDisplay-Regular.ttf") format("truetype");font-display:swap;font-weight:400}
@font-face{font-family:"DMVH Funnel";src:url("fonts/FunnelDisplay-SemiBold.ttf") format("truetype");font-display:swap;font-weight:600}
@font-face{font-family:"DMVH Open Sans";src:url("fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype-variations"),url("fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");font-display:swap;font-weight:100 900;font-style:normal}
@font-face{font-family:"DMVH Open Sans";src:url("fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf") format("truetype-variations"),url("fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf") format("truetype");font-display:swap;font-weight:100 900;font-style:italic}
@font-face{font-family:"Open Sans";src:url("fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype-variations"),url("fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");font-display:swap;font-weight:100 900;font-style:normal}
@font-face{font-family:"Open Sans";src:url("fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf") format("truetype-variations"),url("fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf") format("truetype");font-display:swap;font-weight:100 900;font-style:italic}

/* Separate from .dmvh-theme: admin modules retain Bootstrap's normal typography,
   link styles and overflow behavior. The toolbar stays in document flow. */
.dmvh-admin-layout {
    min-height: 100vh;
    color: #293d5b;
    background: #edf6fb;
    font-family: "DMVH Poppins", Arial, sans-serif;
}
.dmvh-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 3vw, 3rem);
    background: #fff;
    border-bottom: 3px solid #f2762f;
}
.dmvh-admin-home {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem;
    color: #293d5b;
    font-weight: 600;
    text-decoration: none;
}
.dmvh-admin-home span { font-size: .875rem; font-weight: 400; }
.dmvh-admin-home:hover { text-decoration: underline; }
.dmvh-admin-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.dmvh-admin-content {
    margin: clamp(.75rem, 2vw, 2rem);
    padding: clamp(1rem, 2vw, 2rem);
    min-width: 0;
    background: #fff;
    border: 1px solid #dce6ee;
    border-radius: .75rem;
}
.dmvh-admin-layout :focus-visible { outline: 3px solid #317fb8; outline-offset: 3px; }
@media (max-width: 575.98px) {
    .dmvh-admin-controls { width: 100%; justify-content: flex-end; }
}

/* WYSIWYG fonts & rich text editor formatting (Radzen & Quill) */
.ql-font-open-sans,
[data-font="open-sans"],
font[face*="Open Sans" i],
font[face*="open-sans" i],
[style*="font-family: Open Sans" i],
[style*="font-family: 'Open Sans'" i],
[style*="font-family: \"Open Sans\"" i],
[style*="font-family: &quot;Open Sans&quot;" i] {
    font-family: "Open Sans", "DMVH Open Sans", Arial, sans-serif !important;
}

.ql-font-poppins,
[data-font="poppins"],
font[face*="Poppins" i],
font[face*="poppins" i],
[style*="font-family: Poppins" i],
[style*="font-family: 'Poppins'" i],
[style*="font-family: \"Poppins\"" i],
[style*="font-family: &quot;Poppins&quot;" i] {
    font-family: "Poppins", "DMVH Poppins", Arial, sans-serif !important;
}

.ql-font-funnel,
[data-font="funnel"],
font[face*="Funnel" i],
font[face*="funnel" i],
[style*="font-family: Funnel Display" i],
[style*="font-family: 'Funnel Display'" i],
[style*="font-family: \"Funnel Display\"" i],
[style*="font-family: &quot;Funnel Display&quot;" i] {
    font-family: "Funnel Display", "DMVH Funnel", Arial, sans-serif !important;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="open-sans"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="open-sans"]::before {
    content: "Open Sans" !important;
    font-family: "Open Sans", "DMVH Open Sans", Arial, sans-serif !important;
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="poppins"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="poppins"]::before {
    content: "Poppins" !important;
    font-family: "DMVH Poppins", Arial, sans-serif !important;
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="funnel"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="funnel"]::before {
    content: "Funnel Display" !important;
    font-family: "DMVH Funnel", Arial, sans-serif !important;
}
.ql-editor {
    font-family: "DMVH Poppins", Arial, sans-serif;
    line-height: 1.68;
}
.ql-editor p {
    margin-bottom: 1.25rem;
}

/* Radzen HTML Editor typography & custom font items */
.rz-html-editor-content {
    font-family: "Poppins", "DMVH Poppins", Arial, sans-serif;
    line-height: 1.68;
}
.rz-dropdown-item.dmvh-font-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.rz-dropdown-item.dmvh-font-item:hover {
    background-color: #f0f4f8;
}
.rz-dropdown-item.dmvh-font-item-poppins {
    font-family: "Poppins", "DMVH Poppins", Arial, sans-serif !important;
    font-weight: 500;
}
.rz-dropdown-item.dmvh-font-item-funnel {
    font-family: "Funnel Display", "DMVH Funnel", Arial, sans-serif !important;
    font-weight: 600;
}
.rz-dropdown-item.dmvh-font-item-opensans {
    font-family: "Open Sans", "DMVH Open Sans", Arial, sans-serif !important;
}

/* DMVH WYSIWYG Image Resizing & Alignment Toolbar */
.dmvh-img-selection-box {
    position: absolute;
    z-index: 9999;
    pointer-events: none;
    border: 2px solid #2680eb;
    box-shadow: 0 0 0 3px rgba(38, 128, 235, 0.25);
    border-radius: 3px;
    box-sizing: border-box;
    display: none;
}

.dmvh-img-floating-toolbar {
    position: absolute;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 3px;
    background: #18395b;
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 11px;
    user-select: none;
    pointer-events: auto;
    white-space: nowrap;
}

.dmvh-img-floating-toolbar button {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.15s ease;
}

.dmvh-img-floating-toolbar button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.dmvh-img-floating-toolbar button.active {
    background: #2680eb;
    border-color: #2680eb;
    color: #fff;
    font-weight: 600;
}

.dmvh-img-floating-toolbar .dmvh-toolbar-separator {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 3px;
}

.dmvh-img-resize-handle {
    position: absolute;
    z-index: 10001;
    width: 14px;
    height: 14px;
    background: #2680eb;
    border: 2px solid #fff;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    user-select: none;
    pointer-events: auto;
}

.rz-html-editor-content img.dmvh-float-left,
.rz-html-editor-content img[align="left"],
.rz-html-editor-content img[style*="float: left"],
.rz-html-editor-content img[style*="float:left"],
.rz-html-editor-content img[data-align="float-left"],
.ql-editor img.dmvh-float-left,
.ql-editor img[align="left"],
.ql-editor img[style*="float: left"],
.ql-editor img[style*="float:left"],
.ql-editor img[data-align="float-left"] {
    float: left !important;
    margin: 0.5rem 1.5rem 1rem 0 !important;
    display: inline-block !important;
}

.rz-html-editor-content img.dmvh-float-right,
.rz-html-editor-content img[align="right"],
.rz-html-editor-content img[style*="float: right"],
.rz-html-editor-content img[style*="float:right"],
.rz-html-editor-content img[data-align="float-right"],
.ql-editor img.dmvh-float-right,
.ql-editor img[align="right"],
.ql-editor img[style*="float: right"],
.ql-editor img[style*="float:right"],
.ql-editor img[data-align="float-right"] {
    float: right !important;
    margin: 0.5rem 0 1rem 1.5rem !important;
    display: inline-block !important;
}

.rz-html-editor-content img.dmvh-align-center,
.rz-html-editor-content img[data-align="center"],
.ql-editor img.dmvh-align-center,
.ql-editor img[data-align="center"] {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

/* Responsive video preview in WYSIWYG editor */
.ql-editor iframe.ql-video,
.ql-editor iframe,
.rz-html-editor-content iframe {
    display: block;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 12px;
    margin: 1.5rem auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}


