/* =========================================================================
   mcn-ui.css
   Muscogee (Creek) Nation — Laserfiche Forms Shared Stylesheet

   Injected globally via ModernFormRenderer.cshtml.
   Safe to inject globally — all brand/layout styles are scoped behind
   .form-container:has(.mcn-form) class. Only MCN-prefixed utility classes apply globally.

   To opt a form into MCN branding, add a hidden HTML canvas field
   with CSS class: mcn-form in the Forms designer.

   Brand Colors (per MCN Brand Guidelines 2016):
     Blue:       #2261AE  (Pantone 7455, RGB 34/97/174)
     Light Blue: #BDC8E6  (Pantone 7455 30% tint, RGB 189/200/230)
     Yellow:     #FEEF2F  (Pantone 3945, RGB 254/239/47)
     Green:      #2BAF49  (Pantone 361, RGB 43/175/73)
     Brown:      #6F2B1D  (Pantone 175, RGB 111/43/29)

   Version: 1.2.3
   Date: 2026-07-28
   ========================================================================= */


/* =========================================================================
   DESIGNER INDICATORS
   Safe globally — only visible in the Forms designer.
   ========================================================================= */

.designer [class*="mcn-"]:not([class*="mcn-form"]) {
    outline: 2px dashed #2261AE88 !important;
    outline-offset: 2px !important;
}

.designer [class*="mcn-"]::before {
    content: "⚙ mcn";
    font-size: 10px;
    color: #2261AE;
    background: #BDC8E655;
    padding: 1px 4px;
    border-radius: 3px;
    float: right;
    margin: 2px;
    font-family: monospace;
}

.designer .mcn-form::before {
    content: "⚙ MCN Form";
    display: block;
    background: #2261AE;
    color: #FEEF2F;
    font-size: 11px;
    font-weight: bold;
    font-family: monospace;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 4px 0;
    letter-spacing: 1px;
    outline: 0px dashed #7ea1cc88 !important;
    outline-offset: 0px !important;
}

.mcn-form {
    display: none !important;
    .designer & {
        display: block !important;
        color: #ffffff00;
    }
}
.custom-html {
    .designer & {
        background-color: #D3D3D333 !important;
        border: 1px dashed #00000033 !important;
    }
}

.mcn-modal-launcher {
    .designer & {
        font-size: 13px;
        padding: 8px 20px !important;
        border-radius: 6px !important;
        border: none;
        background: #0069BA55 !important;
        color: #fff !important;
        cursor: pointer;
        font-family: sans-serif;
    }
}

.mcn-required {
    .designer & {
        border-color: #FF3333 !important;
        border-width: 2px !important;
    }
}

.mcn-section-trigger {
    .designer & {
        font-size: 13px;
        padding: 8px 20px;
        border-radius: 6px;
        border: none;
        background: #0069BA55;
        color: #fff;
        cursor: pointer;
        font-family: sans-serif;
    }
}

.mcn-formula-bridge {
    .designer & {
        background: #fff9e6 !important;
        border: 1px dashed #f0a500 !important;
    }
}


/* =========================================================================
   SECTION MODAL
   Safe globally — only activates on fields with mcn-modal-section class.
   ========================================================================= */

.mcn-modal-section {
    display: none !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 700px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
    z-index: 99999 !important;

    .designer & {
        display: block !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-height: none !important;
        overflow-y: visible !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        z-index: auto !important;
    }
}

.mcn-modal-section.mcn-visible {
    display: block !important;
}


/* =========================================================================
   LISTBOX
   Safe globally — only activates on fields with mcn-listbox class.
   ========================================================================= */

.mcn-listbox .field-body {
    display: block !important;
    border: 1px solid #6d6d6d !important;
    border-radius: 4px !important;
    height: 110px;
    max-height: 300px !important;
    overflow-y: auto !important;
    padding: 0 !important;
    background: #fff !important;
    scrollbar-width: thin !important;
    scrollbar-color: #2261AE #f0f0f0 !important;
    resize: vertical !important;
    min-height: 60px !important;
}

.mcn-listbox .field-body::-webkit-scrollbar { width: 6px !important; }

.mcn-listbox .field-body::-webkit-scrollbar-track {
    background: #f0f0f0 !important;
    border-radius: 0 4px 4px 0 !important;
}

.mcn-listbox .field-body::-webkit-scrollbar-thumb {
    background: #2261AE !important;
    border-radius: 3px !important;
}

.mcn-listbox .field-body::-webkit-scrollbar-thumb:hover {
    background: #1a4d8a !important;
}

.mcn-listbox .option {
    display: block !important;
    padding: 3px 8px !important;
    cursor: pointer !important;
    border-bottom: 1px solid #f0f0f0 !important;
    line-height: 1.4 !important;
}

.mcn-listbox .option:last-child { border-bottom: none !important; }

.mcn-listbox .option input[type="checkbox"] { display: none !important; }

.mcn-listbox .option-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    cursor: pointer !important;
    font-size: 13px !important;
    color: #333 !important;
    margin: 0 !important;

    .designer & {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
}

.mcn-listbox .option-label span {
    font-size: 13px !important;
    color: #333 !important;
}

.mcn-listbox .option:has(input:checked) { background: Highlight !important; }

.mcn-listbox .option:has(input:checked) .option-label { color: HighlightText !important; }

.mcn-listbox .option:has(input:checked) .option-label span { color: HighlightText !important; }

.mcn-listbox .option:hover:not(:has(input:checked)) { background: #f0f0f0 !important; }

.mcn-listbox-striped .option:nth-child(even) { background: #f9f9f9 !important; }

.mcn-listbox-striped .option:nth-child(odd)  { background: #fff !important; }

.mcn-listbox-striped .option:has(input:checked) { background: Highlight !important; }

.mcn-listbox-striped .option:hover:not(:has(input:checked)) { background: #e8e8e8 !important; }

.mcn-listbox-4  .field-body { height: 138px !important; max-height: 238px !important; }
.mcn-listbox-5  .field-body { height: 168px !important; max-height: 268px !important; }
.mcn-listbox-6  .field-body { height: 198px !important; max-height: 298px !important; }

.mcn-listbox .option-label input[type="text"] {
    flex: 1 !important;
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    outline: none !important;
    font-size: 13px !important;
    padding: 0 4px !important;
    background: transparent !important;
    margin-top: -1px !important;
    height: 100% !important;
}

.mcn-listbox .option-label input[type="text"]:focus {
    border-bottom-color: #2261AE !important;
}

.mcn-listbox .option:has(input:checked) .option-label input[type="text"] {
    color: HighlightText !important;
    border-bottom-color: HighlightText !important;
}


/* =========================================================================
   ARTWORK UPLOAD COLLECTION
   Custom upload field styled as an image tile with 3D tilt on hover.
   Paired with a details section for title/description/medium.
   Scoped behind .form-container:has(.mcn-form).
   ========================================================================= */

/* =========================================================================
   MCN IMAGE UPLOAD — Shared tile pattern
   Apply to any file upload field that should render as an image tile with
   a corner-X remove button. Aspect ratio and dimensions are set by the
   specific use-case class (e.g., .mcn-headshot-upload, .mcn-artwork-upload).
   ========================================================================= */

.form-container:has(.mcn-form) .mcn-image-upload {

    /* Hide default Laserfiche chrome */
    .file-upload-help-text,
    .file-upload-text,
    .uploaded-files-label {
        display: none !important;
    }

    /* Only hide the disabled/limit-reached container once a preview exists.
       This avoids the preview-mode bug where the tile disappears entirely. */
    &:has(.uploaded-file-preview-container) .file-upload-container.disable {
        display: none !important;
    }

    /* Keep the file row rendered (needed for the Remove anchor to paint)
       but hide the file-name and file-size cells */
    .uploaded-file {
        display: table-row !important;

        .file-name-td,
        .file-size-td { display: none !important; }
    }

    /* Table becomes the positioning context for the corner-X button */
    .uploaded-files {
        position: relative !important;
        max-width: 240px !important;
        min-width: 120px !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }

    /* Collapse the delete cell — its anchor floats absolutely instead */
    .uploaded-file .delete-file-td {
        display: table-cell !important;
        padding: 0 !important;
        height: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }

    /* Floating corner-X remove button */
    .delete-file {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        z-index: 10 !important;
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(0, 0, 0, 0.55) !important;
        border-radius: 50% !important;
        text-decoration: none !important;
        cursor: pointer !important;
        font-size: 0 !important;
        line-height: 1 !important;
        transition: background 0.2s ease, transform 0.2s ease !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;

        &::after {
            content: "×" !important;
            font-size: 24px !important;
            color: #fff !important;
            font-weight: 300 !important;
            line-height: 1 !important;
        }

        &:hover {
            background: rgba(220, 53, 69, 0.95) !important;
            transform: scale(1.1) !important;
        }
    }

    /* Preview tile — 3D tilt-and-shine hover effect */
    .uploaded-file-preview-container {
        width: 100% !important;
        overflow: hidden !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.08) !important;
        animation: mcnArtworkFadeIn 0.4s ease-out !important;
        --a: 8deg;
        transform: perspective(400px) rotate3d(var(--r,1,-1),0,calc(var(--i,1)*var(--a)));
        transition: transform .4s !important;

        &:hover { --i: -1; }

        button {
            width: 100% !important;
            height: 100% !important;
            padding: 0 !important;
            border: none !important;
            border-radius: 8px !important;
            overflow: hidden !important;
            cursor: pointer !important;
            background: transparent !important;
        }

        img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            border-radius: 8px !important;
            -webkit-mask:
                linear-gradient(135deg,#000c 30%,#000,#000c 90%)
                100% 100%/250% 250%;
            transition: .4s;
            user-select: none;
        }

        &:hover img {
            -webkit-mask-position: 0 0;
        }
    }

    /* Empty-state placeholder button (shown before an image is uploaded) */
    .file-upload-button {
        width: 100% !important;
        min-height: 150px !important;
        max-height: 300px !important;
        border: none !important;
        border-radius: 8px !important;
        background: transparent !important;
        cursor: pointer !important;
        box-shadow: none !important;
        appearance: none !important;
        color: #b5b5b5 !important;
    }
}
/* Headshot — portrait */
.form-container:has(.mcn-form) .mcn-headshot-upload {
    .uploaded-file-preview-container,
    .file-upload-button {
        aspect-ratio: 4/5 !important;
    }
}

/* Artwork — verify the actual ratio you want (1/1? 4/3?) */
.form-container:has(.mcn-form) .mcn-artwork-upload {
    .uploaded-file-preview-container,
    .file-upload-button {
        aspect-ratio: 1/1 !important;
    }
}

@keyframes mcnArtworkFadeIn {
    from {
        opacity: 0;
        transform: perspective(400px) rotate3d(1,-1,0,20deg) scale(0.95);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotate3d(1,-1,0,1deg) scale(1);
    }
}

/* Artwork details section — sits next to the preview tile */
.form-container:has(.mcn-form) .mcn-artwork-details {
    background: #fafafa !important;
    border-radius: 8px !important;
    padding: 16px !important;
    border: 1px solid #e5e5e5 !important;
}

/* Artwork collection — row cards and add button */
.form-container:has(.mcn-form) .mcn-artwork-upload-collection {

    /* Each collection row becomes a card */
    .collection-set {
        padding: 20px !important;
        margin-bottom: 16px !important;
        background: #fff !important;
        border-radius: 12px !important;
        border: 1px solid #ececec !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
        transition: box-shadow 0.2s ease !important;

        &:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
        }

        &:last-of-type {
            margin-bottom: 24px !important;
        }
    }

    /* "+ Add Artwork" button — styled as a call-to-action */
    .collection-set-add {
        display: inline-block !important;
        background: linear-gradient(135deg, #2261AE, #1a4d8a) !important;
        color: #fff !important;
        text-decoration: none !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 12px 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
        cursor: pointer !important;
        box-shadow: 0 4px 12px rgba(34,97,174,0.25), 0 2px 4px rgba(0,0,0,0.08) !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        user-select: none !important;

        &:hover {
            transform: translateY(-2px) !important;
            color: #fff !important;
            text-decoration: none !important;
            box-shadow: 0 6px 16px rgba(34,97,174,0.35), 0 3px 6px rgba(0,0,0,0.12) !important;
        }

        &:active {
            transform: translateY(0) !important;
            box-shadow: 0 2px 6px rgba(34,97,174,0.25), 0 1px 2px rgba(0,0,0,0.08) !important;
        }
    }
}


/* =========================================================================
   UTILITY CLASSES
   Safe globally — all prefixed with mcn-.
   ========================================================================= */

.mcn-hidden   { display: none !important; }

.mcn-disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: default !important;
}

.fade-in {
    opacity: 1;
    animation: mcnFadeIn 0.3s ease-in 1;
}

@keyframes mcnFadeIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

.darkenover:hover { filter: hue-rotate(15deg) brightness(50%); }

.black-and-white  { filter: grayscale(100%); }

.noselect         { user-select: none; }

.rotate-span      { display: inline-block; transform: rotate(90deg); }
.rotate-div       { transform: rotate(-90deg); }

[draggable=true]  { cursor: move; }

.resizable {
    overflow: scroll;
    resize: both;
    max-width: 1400px;
    max-height: 1260px;
    border: 1px solid black;
    min-width: 50px;
    min-height: 50px;
}

.skeleton {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: mcnShimmer 5.5s ease-in infinite;
}

@keyframes mcnShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.password input {
    -webkit-text-security: disc;
    text-security: disc;
}

.debugoptions { opacity: 25%; }
.mcn-debugoptions { opacity: 25%; }

.speech-bubble {
    position: relative;
    background: #ffffff;
    border-radius: 0.4em;
    padding: 3px;
    user-select: none;
}

.speech-bubble::after {
    content: '🙋🏽';
    position: absolute;
    right: 0; top: 50%;
    width: 0; height: 0;
    border: 10px solid transparent;
    border-left-color: #ffffff;
    border-right: 0;
    border-bottom: 0;
    margin-top: -5px;
    margin-right: -8px;
    user-select: none;
}


/* =========================================================================
   MCN BRAND STYLES
   Scoped behind .form-container:has(.mcn-form) — only applies to forms that opt in.
   Add a hidden HTML canvas field with CSS class mcn-form in the Forms designer.
   ========================================================================= */

/* Form header */
.form-container:has(.mcn-form) .lf-form .form-container .form-header,
.form-container:has(.mcn-form).lf-form .form-container .form-header {
    background-color: #2261AE;
    border-bottom: 4px solid #FEEF2F;
}

.form-container:has(.mcn-form) .form-header { padding: 10px !important; }

.form-container:has(.mcn-form) .form-title { color: #ffffff; font-family: Arial, sans-serif; }

.form-container:has(.mcn-form) .form-description { color: #FFFFFFBF; }

.form-container:has(.mcn-form) .form-header { user-select: none; }

/* Section labels */
.form-container:has(.mcn-form) label.section-label {
    color: #2261AE;
    user-select: none;
}

/* User select prevention */
.form-container:has(.mcn-form) label.field-label,
.form-container:has(.mcn-form) .fl-component .error-message,
.form-container:has(.mcn-form) .table-header-cell { user-select: none; }

.form-container:has(.mcn-form) .option-label { user-select: none; }

/* Logo shimmer */
.form-container:has(.mcn-form) .form-logo {
    --a: 8deg;
    border-radius: 0px;
    transform: perspective(400px) rotate3d(var(--r,1,-1),0,calc(var(--i,1)*var(--a)));
    -webkit-mask:
        linear-gradient(135deg,#000c 30%,#000,#000c 90%)
        100% 100%/250% 250%;
    transition: .4s;
    cursor: pointer;
    user-select: none;
}

.form-container:has(.mcn-form) .form-logo:hover {
    --i: -1;
    -webkit-mask-position: 0 0;
}

/* Field labels and inputs — polished defaults for all MCN forms */
.form-container:has(.mcn-form) {

    label.field-label {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #555 !important;
        letter-spacing: 0.2px !important;
        margin-bottom: 4px !important;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    textarea,
    select {
        border: 1px solid #00000030 !important;
        border-radius: 6px !important;
        padding: 8px 12px;
        font-size: 14px !important;
        background: #fff;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;

        &:focus:not(.field-body-dropdown) {
            border-color: #2261AE !important;
            box-shadow: 0 0 0 3px rgba(34,97,174,0.15) !important;
            outline: none !important;
        }
    }
        ng-select.ng-select .ng-select-container .ng-value-container .ng-input, ng-select.ng-select.custom .ng-select-container .ng-value-container .ng-input
            {
                padding-left: 0px !important;
                top: -1px !important;
                width: 100% !important;
            }

}


/* Navigation buttons */
.form-container:has(.mcn-form) .next-btn,
.form-container:has(.mcn-form) .prev-btn {
    border-color: #2261AE;
    color: #fff;
    background-image: linear-gradient(45deg, #2261AE 50%, transparent 50%);
    background-position: 100%;
    background-size: 400%;
    transition: background 300ms ease-in-out;
}

.form-container:has(.mcn-form) .next-btn:hover,
.form-container:has(.mcn-form) .prev-btn:hover { background-position: 0; }

/* Submit button */
.form-container:has(.mcn-form) .action-btn {
    appearance: none;
    background-color: transparent;
    border: 2px solid #2261AE;
    border-radius: 0.6em;
    color: #2261AE;
    cursor: pointer;
    display: flex;
    align-self: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    margin: 20px;
    padding: 1.2em 2.8em;
    text-align: center;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
    background-image: linear-gradient(45deg, #2261AE 50%, transparent 50%);
    background-position: 100%;
    background-size: 400%;
    transition: background 100ms ease-in-out;
}

.form-container:has(.mcn-form) .action-btn:hover,
.form-container:has(.mcn-form) .action-btn:focus {
    color: #fff;
    outline: 0;
    background-position: 0;
}

/* Table styles */
.form-container:has(.mcn-form) .table-row .single-line { border: 0 !important; padding: 0 !important; }

.form-container:has(.mcn-form) .table-row input:not([type="checkbox"]):not([type="radio"]):not(.numInput),
.form-container:has(.mcn-form) .table-row textarea {
    padding: 0 4px !important;
    border: 0 !important;
}

.form-container:has(.mcn-form) .table-row:not(.dropdown):not(.radio):not(.checkbox)
  input:not([type="checkbox"]):not([type="radio"]):not(.numInput)[readonly],
.form-container:has(.mcn-form) .table-row:not(.dropdown):not(.radio):not(.checkbox) textarea[readonly] {
    background-color: #9f9f9f1d;
    color: #000000bf;
}

.form-container:has(.mcn-form) .table-header-cell { color: #a1a1a1 !important; }

.form-container:has(.mcn-form) .table-row .lf-icon-btn { height: 28px !important; }

/* Important section ribbon */
.form-container:has(.mcn-form) .important .section-label {
    --b: 4px;
    --w: 80px;
    --g: 15px;
    --c: #2261AE;
    border-bottom-width: 0 !important;
    width: fit-content !important;
    padding: 0 1em !important;
    line-height: 1.6em !important;
    color: #fff !important;
    background:
        conic-gradient(from   45deg at left,  var(--c) 25%, #0000 0) 0,
        conic-gradient(from -135deg at right, var(--c) 25%, #0000 0) 100% !important;
    background-size: 51% 100% !important;
    background-repeat: no-repeat !important;
    border-image:
        linear-gradient(
            #0000      calc(50% - var(--b)/2),
            var(--c) 0 calc(50% + var(--b)/2),
            #0000    0)
        1/0 var(--w)/calc(var(--w) + var(--g));
    margin-inline: auto !important;
}

.form-container:has(.mcn-form) .important .section-title {
    padding: 0 !important;
    border-bottom-width: 0 !important;
}

/* Employee card */
.form-container:has(.mcn-form) .employeecard .section-title .section-label {
    min-height: 14px;
    font-weight: lighter;
    padding-right: 14px;
    padding-top: 4px;
}

.form-container:has(.mcn-form) .employeecard fl-field-label .label-container { justify-content: right; }

.form-container:has(.mcn-form) .employeecard .fl-section.fl-component > .pane,
.form-container:has(.mcn-form) .employeecard .fl-section.fl-component > div > .pane {
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 2px 10px 3px;
}

.form-container:has(.mcn-form) .employeecard label.section-label {
    min-height: 14px;
    font-weight: unset;
    margin-right: 37px;
    background: #2261AE;
    border-radius: 10px 10px 0 0;
    padding-left: 11px;
    padding-right: 11px;
    margin-bottom: -14px;
    border-width: 2px;
    box-shadow: #00000014 2px 4px 2px 0;
    color: #ffffff;
    font-size: 14px;
}

.form-container:has(.mcn-form) .employeecard .section-title {
    padding: 2px 20px 0;
    background-color: #ffffff;
    border-bottom: none;
    border-top: none;
    border-left: none;
    border-right: none;
    margin-bottom: 0;
}

/* Inbox */
.form-container:has(.mcn-form) .inbox-content-container { height: 500px !important; }

.form-container:has(.mcn-form) .iframe {
    .user-tasks & { height: 500px !important; }
}

.form-container:has(.mcn-form) .InboxNotification {
    .inbox-content-container & { visibility: hidden !important; }
}

/* Layout */
.form-container:has(.mcn-form) .header-hidden { top: -100px; }

.form-container:has(.mcn-form) .action-btn-container.flex .action-btn {
    position: relative;
    margin-top: -40px;
}

/* Search field */
.form-container:has(.mcn-form) .searchfield input:not([type="checkbox"]):not([type="radio"]):not(.numInput),
.form-container:has(.mcn-form) .searchfield textarea {
    border-radius: 12px;
    text-align: center;
    padding: 1px 4px;
    border: 2px solid #6d6d6d5e;
    margin: 0 0 10px 0;
    color: #8d8d8d;
}

.form-container:has(.mcn-form) .searchfield label.field-label {
    font-family: Arial;
    font-size: 14px;
    font-weight: 600;
}

.form-container:has(.mcn-form) .searchfield input { padding-left: 30px; }

.form-container:has(.mcn-form) .roundfield input:not([type="checkbox"]):not([type="radio"]):not(.numInput),
.form-container:has(.mcn-form) .roundfield textarea {
    border-radius: 12px;
    border: 2px solid #6d6d6d5e;
    padding: 12px;
    margin: 4px;
}

.form-container:has(.mcn-form) .errorfield input:not([type="checkbox"]):not([type="radio"]):not(.numInput),
.form-container:has(.mcn-form) .errorfield textarea { background-color: #ffe5e5; }

/* Lookup results glow */
.form-container:has(.mcn-form) .lookup-results {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    z-index: 1;
}

.form-container:has(.mcn-form) .lookup-results::before {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    z-index: -1;
    background: linear-gradient(45deg, #ff00bd, #4444ff, #22ff11, #ff00bd);
    background-size: 400%;
    border-radius: 14px;
    filter: blur(12px);
    opacity: 0.05;
    animation: mcnMoveGlow 8s linear infinite;
}

@keyframes mcnMoveGlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Form background and shadow */
.form-container:has(.mcn-form) {
    background-image: url(https://eforms.mcn-nsn.gov/Forms/Handlers/FileRouter.ashx?guid=3e3c9256-c029-4127-b3ba-b463eef0375d);
    box-shadow: #6b6b6b4d 2px 5px 9px 2px, inset #ffffffc9 1px 0px 8px 0px, inset #a9a9a938 -1px -2px 19px 3px !important;
    margin: 10px auto !important;
}

.form-container:has(.mcn-form) .form-pagination nav.form-tabs-container {
    padding-left: 80px;
    margin-left: 72px;
}

.form-container:has(.mcn-form) #lf-form .fl-form .form-container.fl-component {
    margin-bottom: 10px !important;
}

.form-container:has(.mcn-form) .form-pagination-btn { padding-left: 80px; }

/* Desktop layout */
@media screen and (min-width: 1025px) {
    .form-pages-container:has(.mcn-form) { padding-left: 60px; }
}


/* =========================================================================
   PRINT STYLES
   Scoped behind .form-container:has(.mcn-form) — won't affect other forms.
   Strips ALL animations, transforms, filters, gradients, shadows and masks
   that cause Puppeteer PDF generation or TIFF conversion to hang.
   ========================================================================= */

@media print {

    /* Force white background on root elements */
    html, body { background: white !important; }

    /* Page size */
    @page { size: landscape; }

    /* Nuclear reset — strip everything Puppeteer/TIFF converter chokes on */
    .form-container:has(.mcn-form),
    .form-container:has(.mcn-form) *,
    .form-container:has(.mcn-form) *::before,
    .form-container:has(.mcn-form) *::after {
        background-color: white !important;
        background-image: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
        animation-duration: 0s !important;
        transition: none !important;
        transform: none !important;
        filter: none !important;
        -webkit-filter: none !important;
        -webkit-mask: none !important;
        mask: none !important;
        border-image: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Restore text color after nuclear reset */
    .form-container:has(.mcn-form),
    .form-container:has(.mcn-form) * { color: #000 !important; }

    /* Hide UI elements not relevant in print */
    .form-container:has(.mcn-form) .debugoptions,
    .form-container:has(.mcn-form) .mcn-debugoptions,
    .form-container:has(.mcn-form) .action-btn,
    .form-container:has(.mcn-form) .table-buttons,
    .form-container:has(.mcn-form) .table-row-add,
    .form-container:has(.mcn-form) .mcn-modal-section,
    .form-container:has(.mcn-form) .displaytext,
    .form-container:has(.mcn-form) .skeleton::after,
    .form-container:has(.mcn-form) .lookup-results::before,
    .form-container:has(.mcn-form) .delete-file,
    .form-container:has(.mcn-form) .file-upload-button,
    .form-container:has(.mcn-form) .employeecard .section-title {
        display: none !important;
        opacity: 0 !important;
    }

    /* Keep borders on tables */
    .form-container:has(.mcn-form) .fl-table { border-width: 1px !important; }

    /* Restore important ribbon as simple colored label */
    .form-container:has(.mcn-form) .important .section-label {
        background-color: #2261AE !important;
        color: #fff !important;
        padding: 4px 12px !important;
    }

    /* Restore form header */
    .form-container:has(.mcn-form) .form-header {
        background-color: #2261AE !important;
        border-bottom: 4px solid #FEEF2F !important;
    }

    .form-container:has(.mcn-form) .form-title { color: #fff !important; }

    /* Restore section labels */
    .form-container:has(.mcn-form) label.section-label { color: #2261AE !important; }

    /* Upload preview — keep image visible but strip effects */
    .form-container:has(.mcn-form) .uploaded-file-preview-container {
        border-radius: 4px !important;
        overflow: hidden !important;
    }

    .form-container:has(.mcn-form) .uploaded-file-preview-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}


#pd-designer #pd-detailPane {
    max-width: 1800px !important;
}
/* Artwork upload — strip GPU-intensive properties */
.form-container:has(.mcn-form) .mcn-image-upload .delete-file {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0,0,0,0.55) !important;
}

.form-container:has(.mcn-form) .mcn-image-upload .uploaded-file-preview-container {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

.form-container:has(.mcn-form) .mcn-image-upload .uploaded-file-preview-container img {
    -webkit-mask: none !important;
    mask: none !important;
    transition: none !important;
}
