/* הסרת חיצי מספר בשדות numeric */
    input[type='number']::-webkit-inner-spin-button,
    input[type='number']::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    input[type='number'] {
        -moz-appearance: textfield;
        appearance: textfield;
    }

    /* ═══════════════════════════════════════
       עיצוב מודרני — שדות מוארכים ומעוגלים
       ═══════════════════════════════════════ */

    /* עטיפת input / textarea */
    .fi-input-wrp {
        border-radius: 0.625rem !important;
        transition: box-shadow 0.15s ease, border-color 0.15s ease;
    }

    /* Focus glow עדין בצבע הציאן */
    .fi-input-wrp:focus-within {
        box-shadow: 0 0 0 3px rgb(6 182 212 / 0.18) !important;
    }

    /* Select */
    .fi-select-input-wrp {
        border-radius: 0.625rem !important;
        transition: box-shadow 0.15s ease, border-color 0.15s ease;
    }

    .fi-select-input-wrp:focus-within {
        box-shadow: 0 0 0 3px rgb(6 182 212 / 0.18) !important;
    }

    /* כפתורים — קצת יותר מעוגלים בלבד, ללא override על transition */
    .fi-btn {
        border-radius: 0.5rem !important;
    }

    /* Badges */
    .fi-badge {
        border-radius: 0.4rem !important;
    }

    /* ══════════════════════════════════════════════════
       שפה ויזואלית גלובלית — סגנון הדשבורד על כל המערכת
       ══════════════════════════════════════════════════ */

    :root {
        /*
         * Filament מגדיר --font-family: 'Inter Variable' בלבד. ל־Inter אין עברית,
         * ולכן בלי fallback מפורש עברית עלולה ליפול לגופן סריפי של הדפדפן.
         * העקיפה כאן (נטענת אחרי ה־<style> של Filament) שומרת על Inter ללטינית
         * ולספרות, ומכריחה עברית ליפול ל־Segoe UI — המראה הקיים ברוב המערכת.
         */
        --font-family: 'Inter Variable', 'Segoe UI', 'Noto Sans Hebrew', Rubik, Assistant, Arial, sans-serif;
        --pp-card-surface: #ffffff;
        --pp-card-surface-muted: #f8fafc;
        --pp-card-border: rgba(15, 23, 42, 0.09);
        --pp-card-shadow:
            0 1px 0 rgba(255, 255, 255, 0.6) inset,
            0 8px 24px -10px rgba(15, 23, 42, 0.14);
        --pp-card-radius: 1rem;
    }

    .dark {
        --pp-card-surface: #1e293b;
        --pp-card-surface-muted: #0f172a;
        --pp-card-border: rgba(248, 250, 252, 0.1);
        --pp-card-shadow:
            0 1px 0 rgba(255, 255, 255, 0.05) inset,
            0 10px 28px -12px rgba(0, 0, 0, 0.5);
    }

    /* כותרות — צבע מערכת במקום שחור מודגש */
    .fi-header-heading,
    .fi-section-header-heading,
    .fi-sc-section-header-heading,
    .fi-modal-heading {
        color: #0f766e;
        font-weight: 650;
    }

    .dark .fi-header-heading,
    .dark .fi-section-header-heading,
    .dark .fi-sc-section-header-heading,
    .dark .fi-modal-heading {
        color: #99f6e4;
    }

    /* Cards: sections, tables, stat widgets */
    .fi-section,
    .fi-ta-ctn,
    .fi-wi-stats-overview-stat {
        border-radius: var(--pp-card-radius) !important;
        background: linear-gradient(165deg, var(--pp-card-surface) 0%, var(--pp-card-surface-muted) 100%) !important;
        border: 1px solid var(--pp-card-border) !important;
        box-shadow: var(--pp-card-shadow) !important;
    }

    /*
     * Dropdownי select (לקוח, מוצר…) — לא לחתוך בתוך כרטיסי הטופס.
     * Filament משתמש ב-fi-fixed-positioning-context ל-position:fixed על הרשימה.
     */
    .fi-main,
    .fi-page-main,
    .fi-sc-section,
    .fi-section,
    .fi-section-content-ctn,
    .fi-section-content,
    .fi-grid,
    .fi-fo-field-wrp,
    .pp-order-form {
        overflow: visible !important;
    }

    .fi-select-input-ctn {
        overflow: visible !important;
    }

    .fi-select-input .fi-dropdown-panel {
        z-index: 80 !important;
        max-height: min(16rem, 50vh) !important;
    }

    .fi-ta-ctn,
    .fi-wi-stats-overview-stat {
        overflow: hidden !important;
    }

    /* Topbar — מעל לשוניות דביקות */
    .fi-topbar-ctn {
        z-index: 35 !important;
    }

    .fi-topbar {
        position: relative;
        border-bottom: 1px solid var(--pp-card-border) !important;
        box-shadow: 0 2px 10px -4px rgba(15, 23, 42, 0.08) !important;
        backdrop-filter: blur(8px);
    }

    .fi-topbar .pp-press-topbar-root {
        position: absolute;
        inset-inline: 0;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        justify-content: center;
        pointer-events: none;
        z-index: 6;
        width: 100%;
    }

    .pp-press-topbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
        max-width: min(36rem, calc(100% - 14rem));
        pointer-events: none;
    }

    .pp-press-topbar__item {
        pointer-events: auto;
        display: inline-flex;
        align-items: baseline;
        gap: 0.45rem;
        padding: 0.28rem 0.75rem;
        border-radius: 999px;
        background: #e11d48;
        color: #fff;
        text-decoration: none;
        font-size: 0.78rem;
        font-weight: 800;
        line-height: 1.2;
        box-shadow: 0 1px 8px rgba(225, 29, 72, 0.28);
    }

    .pp-press-topbar__item span {
        font-weight: 650;
        opacity: 0.9;
        font-size: 0.72rem;
    }

    .pp-press-topbar__item:hover {
        filter: brightness(1.08);
    }

    .pp-press-live {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
        width: min(46rem, calc(100% - 16rem));
        max-width: 100%;
        pointer-events: none;
        font-family: var(--font-family), system-ui, sans-serif;
    }

    .pp-press-live__item {
        --pp-live-pct: 0%;
        pointer-events: auto;
        position: relative;
        isolation: isolate;
        display: flex;
        align-items: center;
        min-width: 0;
        width: 100%;
        overflow: hidden;
        padding: 0.38rem 0.9rem;
        border-radius: 999px;
        background: color-mix(in srgb, #12C4BB 8%, #ffffff);
        color: #0f766e;
        border: 1px solid color-mix(in srgb, #12C4BB 18%, #ffffff);
        text-decoration: none;
        line-height: 1.2;
        box-shadow: 0 1px 10px rgba(18, 196, 187, 0.1);
        font-family: var(--font-family), system-ui, sans-serif;
    }

    .pp-press-live__fill {
        position: absolute;
        inset-block: 0;
        left: 0;
        right: auto;
        width: var(--pp-live-pct);
        z-index: 0;
        background: linear-gradient(
            to right,
            color-mix(in srgb, #12C4BB 26%, #ffffff),
            color-mix(in srgb, #06b6d4 22%, #ffffff)
        );
        transition: width 0.6s ease;
    }

    .pp-press-live__body {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 0.7rem;
        min-width: 0;
        width: 100%;
    }

    .dark .pp-press-live__item {
        background: color-mix(in srgb, #12C4BB 12%, #0f172a);
        color: #ccfbf1;
        border-color: rgb(45 212 191 / .28);
    }

    .dark .pp-press-live__fill {
        background: linear-gradient(
            to right,
            color-mix(in srgb, #12C4BB 38%, #0f172a),
            color-mix(in srgb, #06b6d4 32%, #0f172a)
        );
    }

    .pp-press-live__who {
        display: inline-flex;
        align-items: baseline;
        gap: 0.4rem;
        flex: 1 1 auto;
        min-width: 0;
        font-family: inherit;
    }

    .pp-press-live__name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.8rem;
        font-weight: 650;
        letter-spacing: 0;
        color: #115e59;
        font-family: inherit;
    }

    .pp-press-live__customer {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.62rem;
        font-weight: 500;
        color: #0f766e;
        opacity: 0.78;
        font-family: inherit;
    }

    .dark .pp-press-live__name {
        color: #ecfeff;
    }

    .dark .pp-press-live__customer {
        color: #99f6e4;
    }

    .pp-press-live__stats {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .pp-press-live__stat {
        display: inline-flex;
        align-items: baseline;
        gap: 0.15rem;
        padding: 0.12rem 0.45rem;
        border-radius: 999px;
        background: rgb(255 255 255 / .55);
        color: #0f766e;
        font-size: 0.68rem;
        font-weight: 650;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    .pp-press-live__stat b {
        font-weight: 800;
        font-size: 0.8rem;
        color: #134e4a;
    }

    .pp-press-live__now {
        font-weight: 500;
        font-size: 0.64rem;
        opacity: 0.82;
    }

    .pp-press-live__pct {
        font-size: 0.78rem;
        font-weight: 800;
        color: #0f766e;
        background: rgb(255 255 255 / .72);
    }

    .dark .pp-press-live__stat {
        background: rgb(15 23 42 / .35);
        color: #99f6e4;
    }

    .dark .pp-press-live__stat b,
    .dark .pp-press-live__pct {
        color: #ecfeff;
    }

    .pp-press-live__item:hover {
        border-color: color-mix(in srgb, #12C4BB 36%, #ffffff);
        filter: brightness(1.02);
    }

    @media (max-width: 767px) {
        .fi-topbar {
            flex-wrap: wrap !important;
        }

        .fi-topbar .pp-press-topbar-root {
            position: relative;
            inset: auto;
            top: auto;
            transform: none;
            width: 100%;
            order: 30;
            justify-content: stretch;
            padding: 0 0.65rem 0.45rem;
        }

        .pp-press-live,
        .pp-press-topbar {
            width: 100%;
            max-width: none;
        }

        .pp-press-live__item {
            padding: 0.42rem 0.7rem;
            border-radius: 0.9rem;
        }

        .pp-press-live__body {
            flex-wrap: wrap;
            gap: 0.28rem 0.45rem;
        }

        .pp-press-live__who {
            flex: 1 1 100%;
        }

        .pp-press-live__name {
            font-size: 0.74rem;
        }

        .pp-press-live__stats {
            flex-wrap: wrap;
            width: 100%;
            justify-content: flex-start;
        }

        .pp-press-live__stat {
            font-size: 0.64rem;
            padding: 0.1rem 0.4rem;
        }

        .pp-press-topbar {
            max-width: none;
        }

        .pp-press-topbar__item {
            width: 100%;
            justify-content: space-between;
            border-radius: 0.9rem;
            padding: 0.45rem 0.75rem;
        }
    }

    /* חיפוש גלובלי — תוצאות מעל כל תוכן הדף */
    .fi-global-search-results-ctn {
        z-index: 50 !important;
    }

    /* חיפוש גלובלי — כותרות: 60% ציאן מערכת + 40% לבן */
    .fi-global-search-result-group-header {
        background: color-mix(in srgb, #12c4bb 60%, #ffffff) !important;
        color: #0f766e !important;
        font-weight: 700 !important;
        border-bottom: none !important;
    }

    .dark .fi-global-search-result-group-header {
        background: color-mix(in srgb, #12c4bb 60%, #ffffff) !important;
        color: #0f766e !important;
        border-bottom: none !important;
    }

    /* חיפוש גלובלי — הדגשת תוצאה: מילוי בהיר בלי מסגרת */
    .fi-global-search-result {
        transition: background-color 0.15s ease !important;
    }

    .fi-global-search-result:hover,
    .fi-global-search-result:focus-within {
        background: color-mix(in srgb, #12c4bb 15%, #ffffff) !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .dark .fi-global-search-result:hover,
    .dark .fi-global-search-result:focus-within {
        background: color-mix(in srgb, #12c4bb 18%, #0f172a) !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .fi-global-search-result-link:focus,
    .fi-global-search-result-link:focus-visible {
        outline: none !important;
        box-shadow: none !important;
    }

    /* Modal */
    .fi-modal-content {
        border-radius: var(--pp-card-radius) !important;
        box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.06) !important;
        overflow: hidden !important;
    }

    /* Page header — קו הפרדה עדין */
    .fi-page-header {
        border-bottom: 1px solid var(--pp-card-border);
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* סיכום הזמנה — קומפקטי בסגנון SUMIT */
    .pp-order-summary .fi-fo-field-wrp {
        margin-bottom: 0.35rem;
    }

    .pp-order-summary .fi-section-content {
        gap: 0.35rem;
    }

    /*
     * סיכום הזמנה — מסגרת טורקיז אחת על הכרטיס עצמו בלבד.
     * העטיפות החיצוניות בלי גבול/צל (מונע כפל אפור+טורקיז).
     */
    .pp-order-form [wire\:partial]:has(.pp-order-summary--sketch),
    .pp-order-form .fi-sc-component:has(.pp-order-summary--sketch),
    .pp-order-form .fi-sc-component:has(> .pp-order-summary--sketch) {
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
        max-width: 260px;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .pp-order-summary--sketch.fi-section,
    .pp-order-summary--sketch.fi-sc-section,
    section.pp-order-summary--sketch,
    .pp-order-summary--sketch {
        border: 1px solid rgba(18, 196, 187, 0.5) !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        outline: none !important;
        background: #fff !important;
        background-image: none !important;
        max-width: 260px;
        padding: 0 !important;
        overflow: hidden !important;
        --tw-ring-offset-width: 0px !important;
        --tw-ring-offset-shadow: 0 0 #0000 !important;
        --tw-ring-shadow: 0 0 #0000 !important;
    }

    .pp-order-summary--sketch .fi-section-header,
    .pp-order-summary--sketch .fi-section-header-ctn,
    .pp-order-summary--sketch .fi-sc-section-header {
        border: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0.7rem 0.8rem 0.2rem !important;
        margin: 0 !important;
    }

    .pp-order-summary--sketch .fi-section-header-heading,
    .pp-order-summary--sketch .fi-section-header-heading * {
        font-size: 0.8rem !important;
        font-weight: 800 !important;
        margin: 0 !important;
        line-height: 1.25 !important;
        color: #0f172a !important;
    }

    .pp-order-summary--sketch .fi-section-content,
    .pp-order-summary--sketch .fi-sc-section-content,
    .pp-order-summary--sketch .fi-section-content-ctn {
        gap: 0 !important;
        padding: 0.1rem 0.8rem 0.7rem !important;
        border: none !important;
        background: transparent !important;
    }

    .pp-order-summary--sketch .fi-fo-field-wrp {
        margin: 0 !important;
        gap: 0 !important;
    }

    .pp-sumrow {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.22rem 0;
        font-size: 0.78rem;
        color: #64748b;
    }

    .pp-sumrow b {
        color: #0f172a;
        font-weight: 700;
        direction: ltr;
        text-align: left;
        white-space: nowrap;
    }

    .pp-sumrow--total {
        font-weight: 800;
        color: #0f172a;
        margin-top: 0.35rem;
        padding-top: 0.5rem;
        border-top: 1px solid #e2e8f0;
    }

    .pp-sumrow--total b {
        font-size: 1.25rem;
        color: #0f766e;
    }

    .pp-sumrow__neg,
    .pp-sum-discount__value.pp-sumrow__neg {
        color: #dc2626 !important;
    }

    /*
     * שורות הנחה / לתשלום / הערה:
     * Filament עוטף ב-.fi-sc — לכן ה-flex חייב על .fi-sc הפנימי.
     * שורה אחת: [תווית+קלט+%₪ קטן] …… [סכום משמאל]
     */
    .pp-order-summary--sketch .pp-sum-discount,
    .pp-order-summary--sketch .pp-sum-total,
    .pp-order-summary--sketch .pp-sum-note {
        margin: 0 !important;
        padding: 0.22rem 0 !important;
        width: 100%;
    }

    .pp-order-summary--sketch .pp-sum-discount > .fi-sc,
    .pp-order-summary--sketch .pp-sum-total > .fi-sc,
    .pp-order-summary--sketch .pp-sum-note > .fi-sc {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.35rem !important;
        width: 100% !important;
        grid-template-columns: none !important;
    }

    .pp-order-summary--sketch .pp-sum-total > .fi-sc {
        justify-content: space-between !important;
    }

    .pp-order-summary--sketch .pp-sum-discount > .fi-sc > *,
    .pp-order-summary--sketch .pp-sum-total > .fi-sc > *,
    .pp-order-summary--sketch .pp-sum-note > .fi-sc > * {
        grid-column: auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        flex: 0 0 auto;
    }

    /* הנחה: קלט | %/₪ זעיר | סכום בצד השני */
    .pp-order-summary--sketch .pp-sum-discount > .fi-sc > *:nth-child(1) {
        flex: 0 1 auto;
    }

    .pp-order-summary--sketch .pp-sum-discount > .fi-sc > *:nth-child(2) {
        flex: 0 0 auto;
    }

    .pp-order-summary--sketch .pp-sum-discount > .fi-sc > *:nth-child(3) {
        flex: 0 0 auto;
        margin-inline-start: auto;
    }

    .pp-order-summary--sketch .pp-sum-discount .fi-sc-component,
    .pp-order-summary--sketch .pp-sum-discount .fi-fo-field,
    .pp-order-summary--sketch .pp-sum-discount .fi-fo-field-wrp {
        display: contents !important;
    }

    .pp-order-summary--sketch .pp-sum-discount .fi-input-wrp {
        display: inline-flex !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        min-height: 0 !important;
        gap: 0.2rem !important;
        padding: 0 !important;
        align-items: baseline !important;
        width: auto !important;
    }

    .pp-order-summary--sketch .pp-sum-discount .fi-input-wrp:focus-within {
        outline: 1px dashed rgba(100, 116, 139, 0.45);
        border-radius: 0.3rem;
    }

    .pp-order-summary--sketch .pp-sum-discount .fi-input-wrp-prefix {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        font-size: 0.78rem !important;
        color: #64748b !important;
        font-weight: 500 !important;
    }

    .pp-order-summary--sketch .pp-sum-discount input {
        width: 2rem !important;
        min-width: 1.4rem !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
        text-align: center !important;
    }

    /* מתג %/₪ — גודל לחיץ, צמוד למספר, בלי מסגרת כבדה */
    .pp-order-summary--sketch .pp-sum-discount__type,
    .pp-order-summary--sketch .pp-sum-discount .fi-fo-toggle-buttons {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pp-order-summary--sketch .pp-sum-discount .fi-btngroup,
    .pp-order-summary--sketch .pp-sum-discount .fi-fo-toggle-buttons [role='group'],
    .pp-order-summary--sketch .pp-sum-discount [role='group'] {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        width: auto !important;
        max-width: none !important;
        gap: 0 !important;
        border: 1px solid #d1d5db !important;
        background: #f8fafc !important;
        box-shadow: none !important;
        border-radius: 0.4rem !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .pp-order-summary--sketch .pp-sum-discount .fi-btn {
        min-width: 1.35rem !important;
        width: 1.35rem !important;
        min-height: 1.35rem !important;
        height: 1.35rem !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 0.62rem !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        color: #64748b !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }

    .pp-order-summary--sketch .pp-sum-discount .fi-btn + .fi-btn,
    .pp-order-summary--sketch .pp-sum-discount .fi-btn:not(:first-child) {
        border-inline-start: 1px solid #e2e8f0 !important;
    }

    .pp-order-summary--sketch .pp-sum-discount .fi-btn:hover {
        background: #eef2f7 !important;
        color: #334155 !important;
    }

    .pp-order-summary--sketch .pp-sum-discount .fi-btn.fi-selected,
    .pp-order-summary--sketch .pp-sum-discount .fi-fo-toggle-buttons-input:checked + .fi-btn,
    .pp-order-summary--sketch .pp-sum-discount input:checked + .fi-btn {
        background: rgba(18, 196, 187, 0.18) !important;
        color: #0f766e !important;
        font-weight: 800 !important;
        box-shadow: none !important;
    }

    .pp-sum-discount__value {
        font-size: 0.78rem;
        font-weight: 700;
        color: #0f172a;
        direction: ltr;
        white-space: nowrap;
        display: inline-block;
    }

    /* לתשלום — תווית מימין, סכום משמאל באותה שורה */
    .pp-order-summary--sketch .pp-sum-total {
        margin-top: 0.35rem !important;
        padding-top: 0.5rem !important;
        border-top: 1px solid #e2e8f0;
    }

    .pp-order-summary--sketch .pp-sum-total > .fi-sc > *:nth-child(2) {
        margin-inline-start: auto;
    }

    .pp-order-summary--sketch .pp-sum-total .fi-sc-component,
    .pp-order-summary--sketch .pp-sum-total .fi-fo-field,
    .pp-order-summary--sketch .pp-sum-total .fi-fo-field-wrp {
        display: contents !important;
    }

    .pp-sum-total__label {
        font-weight: 800;
        font-size: 0.78rem;
        color: #0f172a;
        white-space: nowrap;
    }

    .pp-order-summary--sketch .pp-sum-total .fi-input-wrp {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        min-height: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }

    .pp-order-summary--sketch .pp-sum-total .fi-input-wrp:focus-within {
        outline: 1px dashed rgba(15, 118, 110, 0.35);
        border-radius: 0.35rem;
    }

    .pp-order-summary--sketch .pp-sum-total input,
    .pp-order-summary--sketch .pp-order-summary-total input {
        color: #0f766e !important;
        font-size: 1.25rem !important;
        font-weight: 800 !important;
        text-align: left !important;
        direction: ltr !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        max-width: 5.5rem;
        width: 4.75rem !important;
    }

    .pp-order-summary--sketch .pp-sum-total .fi-input-wrp-suffix {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 0 0 0.2rem !important;
        color: #0f766e !important;
        font-size: 1rem !important;
        font-weight: 800 !important;
    }

    .pp-order-summary--sketch .pp-sum-note {
        margin-top: 0.4rem !important;
    }

    .pp-order-summary--sketch .pp-sum-note > .fi-sc {
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .pp-order-summary--sketch .pp-sum-note .fi-sc-component,
    .pp-order-summary--sketch .pp-sum-note .fi-fo-field,
    .pp-order-summary--sketch .pp-sum-note .fi-fo-field-wrp {
        display: contents !important;
    }

    .pp-sum-note__text {
        font-size: 0.66rem;
        color: #64748b;
        line-height: 1.35;
    }

    .pp-sum-note__toggle {
        opacity: 0.55;
        transform: scale(0.72);
        transform-origin: center;
    }

    .pp-sum-note__toggle .fi-fo-field-label,
    .pp-sum-note__toggle .fi-fo-field-wrp-label {
        display: none !important;
    }

    .dark .pp-sumrow b,
    .dark .pp-sum-total__label,
    .dark .pp-sum-discount__value {
        color: #e2e8f0;
    }

    .dark .pp-sumrow,
    .dark .pp-sum-note__text,
    .dark .pp-sum-discount .fi-input-wrp-prefix,
    .dark .pp-sum-discount .fi-input-wrp-suffix,
    .dark .pp-sum-discount input {
        color: #94a3b8 !important;
    }

    .pp-order-header-section .fi-grid {
        align-items: start;
    }

    /* שורת לקוח + כותרת — תווית וקלט באותו גובה, בלי מתיחה */
    .pp-order-header-section .pp-order-header-row--primary,
    .pp-order-header-section .pp-order-header-row--primary .fi-grid {
        align-items: start;
    }

    .pp-order-header-section .pp-order-header-primary-field.fi-fo-field {
        display: flex !important;
        flex-direction: column;
        gap: 0.35rem !important;
        margin: 0;
    }

    .pp-order-header-section .pp-order-header-primary-field .fi-fo-field-label-col {
        display: flex !important;
        align-items: center;
        height: 1.375rem;
        min-height: 1.375rem;
        max-height: 1.375rem;
        margin: 0 !important;
        padding: 0;
        grid-template: none;
    }

    .pp-order-header-section .pp-order-header-primary-field .fi-fo-field-label {
        align-items: center;
        margin: 0;
        line-height: 1.25;
    }

    .pp-order-header-section .pp-order-header-primary-field .fi-fo-field-content-col {
        display: block !important;
        position: relative;
        flex: 0 0 2.5rem;
        height: 2.5rem;
        width: 100%;
        margin: 0;
        padding: 0;
        grid-template: none;
    }

    .pp-order-header-section .pp-order-header-primary-field .pp-customer-preview-mount,
    .pp-order-header-section .pp-order-header-primary-field .pp-ordering-unit-preview-mount {
        position: absolute;
        width: 0;
        height: 0;
        overflow: visible;
        pointer-events: none;
    }

    .pp-order-header-section .pp-order-header-primary-field .fi-input-wrp {
        height: 2.5rem !important;
        min-height: 2.5rem !important;
        max-height: 2.5rem !important;
        box-sizing: border-box;
        align-items: center;
    }

    .pp-order-header-section .pp-order-header-primary-field .fi-input-wrp .fi-input,
    .pp-order-header-section .pp-order-header-primary-field .fi-select-input-btn {
        min-height: 0;
    }

    .pp-order-header-section .pp-order-header-row--unit .fi-grid,
    .pp-order-header-section .pp-order-header-row--meta .fi-grid {
        align-items: start;
    }

    .pp-transfer-proof-field,
    .fi-fo-field-wrp:has(.pp-transfer-proof-field) {
        min-width: 3.25rem;
        max-width: 24rem;
        overflow: visible;
    }

    .pp-transfer-proof-field .fi-fo-field-wrp-label,
    .pp-transfer-proof-field .fi-fo-field-label {
        visibility: hidden;
        min-height: 1.25rem;
        pointer-events: none;
    }

    .pp-transfer-proof-wrap {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        min-width: 0;
        width: max-content;
        max-width: 100%;
    }

    .pp-transfer-proof-name {
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1.35;
        color: #334155;
        min-width: 0;
        flex: 1 1 auto;
        overflow-wrap: break-word;
        word-break: normal;
        white-space: normal;
    }

    .pp-transfer-proof-name.is-changed {
        color: #9a5b1f;
    }

    .pp-transfer-proof-thumb.is-pending-drive {
        outline: 2px dashed #d97706;
        outline-offset: 1px;
    }

    .pp-transfer-proof-thumb {
        display: block;
        flex: 0 0 3.25rem;
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 0.55rem;
        overflow: hidden;
        border: 1px solid rgba(15, 23, 42, 0.12);
        background: linear-gradient(145deg, rgba(148, 163, 184, 0.14), rgba(18, 196, 187, 0.08));
        cursor: pointer;
    }

    .pp-transfer-proof-thumb:hover {
        border-color: rgba(15, 118, 110, 0.45);
    }

    .pp-transfer-proof-thumb img,
    .pp-transfer-proof-thumb__icon {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .pp-transfer-proof-thumb__icon {
        display: grid;
        place-items: center;
        font-size: 1.35rem;
        line-height: 1;
    }

    .pp-order-header-section .pp-order-header-row--primary .fi-fo-field-wrp-label,
    .pp-order-header-section .pp-order-header-row--meta .fi-fo-field-wrp-label {
        justify-content: flex-start;
        text-align: start;
    }

    .pp-order-header-section .pp-order-header-row + .pp-order-header-row {
        margin-top: 0;
    }

    /* דחיפות ייצור — מתג תלת־מצבי בצבעי רמזור */
    .pp-production-priority-field .fi-fo-toggle-buttons.fi-btn-group {
        width: 100%;
        display: inline-flex;
        gap: 0;
        overflow: hidden;
        border-radius: 0.65rem;
        border: 1px solid rgba(15, 23, 42, 0.12);
        background: #f8fafc;
    }

    .pp-production-priority-field .fi-fo-toggle-buttons.fi-btn-group > .fi-btn {
        flex: 1 1 0;
        justify-content: center;
        min-height: 2.4rem;
        font-size: 0.8rem;
        font-weight: 800;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
    }

    /* לא נבחר — רקע רמזור חלש */
    .pp-production-priority-field .fi-fo-toggle-buttons-input:not(:checked) + .fi-btn.fi-color-success {
        background: #dcfce7 !important;
        color: #166534 !important;
    }

    .pp-production-priority-field .fi-fo-toggle-buttons-input:not(:checked) + .fi-btn.fi-color-warning {
        background: #ffedd5 !important;
        color: #c2410c !important;
    }

    .pp-production-priority-field .fi-fo-toggle-buttons-input:not(:checked) + .fi-btn.fi-color-danger {
        background: #fee2e2 !important;
        color: #991b1b !important;
    }

    /* נבחר — צבע מלא */
    .pp-production-priority-field .fi-fo-toggle-buttons-input:checked + .fi-btn.fi-color-success {
        background: #16a34a !important;
        color: #ffffff !important;
    }

    .pp-production-priority-field .fi-fo-toggle-buttons-input:checked + .fi-btn.fi-color-warning {
        background: #f97316 !important;
        color: #ffffff !important;
    }

    .pp-production-priority-field .fi-fo-toggle-buttons-input:checked + .fi-btn.fi-color-danger {
        background: #dc2626 !important;
        color: #ffffff !important;
    }

    .pp-order-summary-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.15rem 0;
        font-size: 0.875rem;
    }

    .pp-order-summary-row__label {
        color: #64748b;
        white-space: nowrap;
    }

    .pp-order-summary-row__value {
        font-weight: 600;
        text-align: left;
        direction: ltr;
    }

    .pp-order-summary-total input {
        font-size: 1.125rem !important;
        font-weight: 700 !important;
        text-align: left !important;
        direction: ltr !important;
        max-width: 7rem;
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    .pp-order-work-files-section.fi-section {
        margin-top: 0.5rem;
    }

    .pp-order-work-files-section .fi-section-content {
        padding-top: 0.25rem !important;
        gap: 0.25rem !important;
    }

    .pp-order-work-files-mount {
        max-width: 100%;
    }

    /* שורות מוצר — כותרת קבועה, גלילה רק בתוך השורה הפתוחה */
    .pp-order-form .pp-order-items-section .pp-order-items-repeater > .fi-fo-repeater-items {
        overflow: visible !important;
        max-height: none !important;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item:not(.fi-collapsed) {
        display: flex;
        flex-direction: column;
        max-height: clamp(14rem, 52vh, 36rem);
        overflow: hidden;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item:not(.fi-collapsed) .fi-fo-repeater-item-header {
        position: sticky;
        top: 0;
        z-index: 4;
        flex-shrink: 0;
        background: #fff;
        border-bottom: 1px solid rgb(243 244 246);
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item.fi-collapsed .fi-fo-repeater-item-header {
        background: #fff;
    }

    .dark .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item .fi-fo-repeater-item-header {
        background: rgb(255 255 255 / 0.05);
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item-header-label {
        flex: 1 1 auto;
        min-width: 0;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .pp-order-line-total-slot {
        flex-shrink: 0;
        margin-inline-start: auto;
        margin-inline-end: 0.5rem;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .pp-order-line-total-slot .fi-fo-field-wrp {
        margin-bottom: 0 !important;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .pp-order-line-total-slot .fi-input-wrp {
        min-height: 2rem;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .pp-order-line-total-slot input {
        width: 5.5rem;
        min-width: 5.5rem;
        padding-block: 0.2rem !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        text-align: center;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item-header-end-actions {
        flex-shrink: 0;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .pp-order-line-total-mount--relocated {
        display: none !important;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item-header {
        overflow: visible;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item-header-start-actions {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        margin: 0;
        margin-inline-end: 0.2rem;
        padding: 0;
        overflow: visible;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item-header-start-actions > li {
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item-header-start-actions:empty {
        display: none;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .pp-order-item-drag-handle.fi-icon-btn {
        width: 0.75rem;
        height: 0.85rem;
        min-width: 0.75rem !important;
        min-height: 0.85rem !important;
        padding: 0 !important;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        color: #94a3b8;
        overflow: visible;
        flex-shrink: 0;
        cursor: grab;
        touch-action: none;
        user-select: none;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .pp-order-item-drag-handle.fi-icon-btn::before {
        content: '';
        display: block;
        width: 2px;
        height: 2px;
        margin: 0 auto;
        border-radius: 50%;
        background: currentColor;
        box-shadow:
            3px 0 0 currentColor,
            0 3px 0 currentColor,
            3px 3px 0 currentColor,
            0 6px 0 currentColor,
            3px 6px 0 currentColor;
        pointer-events: none;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .pp-order-item-drag-handle .fi-loading-indicator {
        display: none !important;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .pp-order-item-drag-handle.fi-icon-btn:hover {
        color: #64748b;
        background: transparent;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .pp-order-item-drag-handle.fi-icon-btn:active {
        cursor: grabbing;
        color: #475569;
    }

    .pp-order-form .pp-order-finishes-repeater .fi-fo-repeater-item-header-start-actions [x-sortable-handle],
    .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item-header-start-actions [x-sortable-handle]:not(.pp-order-item-drag-handle) {
        cursor: grab;
        touch-action: none;
    }

    .pp-order-form .pp-order-finishes-repeater .fi-fo-repeater-item-header-start-actions [x-sortable-handle]:active,
    .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item-header-start-actions [x-sortable-handle]:not(.pp-order-item-drag-handle):active {
        cursor: grabbing;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item:not(.fi-collapsed) .fi-fo-repeater-item-content {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        padding-inline-end: 0.15rem;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item:not(.fi-collapsed) .fi-fo-repeater-item-content::-webkit-scrollbar {
        width: 7px;
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item:not(.fi-collapsed) .fi-fo-repeater-item-content::-webkit-scrollbar-thumb {
        border-radius: 9999px;
        background: rgba(15, 23, 42, 0.22);
    }

    .pp-order-form .pp-order-items-section .pp-order-items-repeater .fi-fo-repeater-item:not(.fi-collapsed) .fi-fo-repeater-item-content::-webkit-scrollbar-track {
        background: transparent;
    }

    /*
     * RTL: שורת חיפוש בטבלאות — בצד ימין (ליד כותרת הדף).
     * Filament דוחף את אזור החיפוש לשמאל עם margin-inline-start: auto.
     */
    [dir='rtl'] .fi-ta-header-toolbar > :nth-child(1) {
        order: 2;
        margin-inline-start: auto !important;
    }

    [dir='rtl'] .fi-ta-header-toolbar > :nth-child(2) {
        order: 1;
        margin-inline-start: 0 !important;
    }

    /* סרגל צד — הדגשת קבוצה/פריט פעיל בצבע primary */
    .fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
        background: rgba(18, 196, 187, 0.14) !important;
        color: #0f766e !important;
    }

    .fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-icon,
    .fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-icon {
        color: #12c4bb !important;
    }

    .dark .fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
        background: rgba(18, 196, 187, 0.18) !important;
        color: #99f6e4 !important;
    }

    .dark .fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-icon,
    .dark .fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-icon {
        color: #5eead4 !important;
    }

    /* סרגל צד — קו תוחם דק; פס הגלילה המקורי מוסתר לגמרי */
    .fi-sidebar.fi-sidebar-open {
        border-inline-end: 1px solid #12c4bb;
    }

    .fi-sidebar,
    .fi-sidebar *,
    .fi-sidebar-nav,
    .fi-sidebar-nav-groups {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        scrollbar-gutter: auto !important;
    }

    .fi-sidebar::-webkit-scrollbar,
    .fi-sidebar *::-webkit-scrollbar,
    .fi-sidebar::-webkit-scrollbar-button,
    .fi-sidebar *::-webkit-scrollbar-button,
    .fi-sidebar::-webkit-scrollbar-track,
    .fi-sidebar *::-webkit-scrollbar-track {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .pp-sb-scroll-rail {
        position: absolute;
        inset-inline-end: 3px;
        width: 3.5px;
        pointer-events: none;
        z-index: 40;
        opacity: 0;
        transition: opacity 0.16s ease;
    }

    .fi-sidebar.pp-sb-hover .pp-sb-scroll-rail:not([hidden]) {
        opacity: 1;
    }

    .pp-sb-scroll-thumb {
        width: 3.5px;
        border-radius: 999px;
        background: #12c4bb;
    }

    .fi-sidebar .fi-sidebar-item:has(> .fi-sidebar-item-btn[href*="collection-kanban"]) .fi-badge {
        min-width: 1.2rem;
        height: 1.2rem;
        padding-inline: 0.28rem;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.68rem;
        font-weight: 800;
        line-height: 1;
    }

    @keyframes pp-press-nav-blink {
        0%, 100% { background: rgba(251, 113, 133, 0.22); }
        50% { background: rgba(225, 29, 72, 0.48); }
    }

    html.pp-press-attention .fi-sidebar .fi-sidebar-item:has(> .fi-sidebar-item-btn[href$="/press-monitor"]) > .fi-sidebar-item-btn,
    html.pp-press-attention .fi-sidebar .fi-sidebar-item.is-pp-press-alert > .fi-sidebar-item-btn {
        animation: pp-press-nav-blink 1s ease-in-out infinite;
        color: #be123c !important;
        font-weight: 800;
    }

    html.pp-press-attention .fi-sidebar .fi-sidebar-item:has(> .fi-sidebar-item-btn[href$="/press-monitor"]) > .fi-sidebar-item-btn .fi-sidebar-item-icon,
    html.pp-press-attention .fi-sidebar .fi-sidebar-item:has(> .fi-sidebar-item-btn[href$="/press-monitor"]) > .fi-sidebar-item-btn .fi-icon,
    html.pp-press-attention .fi-sidebar .fi-sidebar-item.is-pp-press-alert > .fi-sidebar-item-btn .fi-sidebar-item-icon,
    html.pp-press-attention .fi-sidebar .fi-sidebar-item.is-pp-press-alert > .fi-sidebar-item-btn .fi-icon {
        color: #e11d48 !important;
    }

    html.pp-press-attention.dark .fi-sidebar .fi-sidebar-item:has(> .fi-sidebar-item-btn[href$="/press-monitor"]) > .fi-sidebar-item-btn,
    html.pp-press-attention.dark .fi-sidebar .fi-sidebar-item.is-pp-press-alert > .fi-sidebar-item-btn {
        color: #fecdd3 !important;
    }

    /* הסתרת כותרת/breadcrumb כפולים כשיש לשוניות cross-page */
    body:has(.pp-cross-page-tabs) .fi-page-header-main-ctn .fi-breadcrumbs,
    body:has(.pp-cross-page-tabs) .fi-page-header-main-ctn .fi-header-heading,
    body:has(.pp-cross-page-tabs) .fi-page-header-main-ctn .fi-header-subheading {
        display: none !important;
    }

    body:has(.pp-cross-page-tabs) .fi-page-header-main-ctn .fi-header {
        padding-top: 0.15rem;
        padding-bottom: 0.15rem;
        min-height: 0;
    }

    body:has(.pp-cross-page-tabs) .fi-page-header-main-ctn .fi-header:not(:has(.fi-header-actions-ctn)) {
        display: none;
    }

    /* חלון אישור הפקת מסמך בשינוי ל"שולם" */
    .pp-paid-billing-confirm .fi-modal-heading {
        text-align: center;
        font-size: 1.05rem;
        line-height: 1.45;
    }

    .pp-paid-billing-confirm .fi-modal-description {
        text-align: center;
        max-width: 26rem;
        margin-inline: auto;
        line-height: 1.55;
    }

    .pp-paid-billing-confirm .fi-modal-footer {
        border-top: 1px solid #e2e8f0;
        padding-top: 0.85rem;
        margin-top: 0.25rem;
    }

    .dark .pp-paid-billing-confirm .fi-modal-footer {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .pp-paid-billing-confirm .fi-modal-footer-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
        direction: ltr;
    }

    .pp-paid-billing-confirm .fi-modal-footer-actions > * {
        min-width: 0;
    }

    .pp-paid-billing-confirm .fi-modal-footer-actions > *:nth-child(3) {
        grid-column: 1 / -1;
    }

    .pp-paid-billing-confirm .fi-modal-footer-actions .fi-btn {
        width: 100%;
        justify-content: center;
        min-height: 2.45rem;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.8125rem;
        padding-inline: 0.5rem;
        white-space: normal;
        line-height: 1.25;
        text-align: center;
    }

    /* חלון הפקה בסאמיט — כפתור סגירה משמאל, תוכן מסודר */
    .pp-sumit-billing-modal .fi-modal-content {
        padding-bottom: 0.35rem;
    }

    .pp-sumit-billing-modal .fi-modal-footer {
        border-top: 1px solid #e2e8f0;
        padding-top: 0.65rem;
        margin-top: 0.15rem;
    }

    .dark .pp-sumit-billing-modal .fi-modal-footer {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .pp-sumit-billing-modal .fi-modal-footer-actions {
        display: flex;
        width: 100%;
        direction: ltr;
        justify-content: flex-start;
    }

    .pp-sumit-billing-modal #sumit-payment-root .sp-btn-pay {
        margin-top: 0.15rem;
        margin-bottom: 0;
    }

      /* תצוגת לקוח — מעבר על אייקון + לחיצה להצמדה */
    .pp-ac-float-portal {
        position: fixed;
        width: 0;
        height: 0;
        overflow: visible;
        pointer-events: none;
    }

    .pp-customer-preview-mount {
        position: absolute;
        width: 0;
        height: 0;
        overflow: visible;
        pointer-events: none;
        z-index: 75;
    }

    .pp-customer-preview-backdrop {
        position: fixed;
        inset: 0;
        pointer-events: auto;
        background: rgba(15, 23, 42, 0.08);
    }

    .pp-customer-preview-pinned-shell {
        position: fixed;
        inset: 0;
        z-index: 119;
        pointer-events: none;
    }

    .pp-customer-preview-card {
        position: fixed;
        z-index: 120;
        box-sizing: border-box;
        overflow: visible;
        padding: 0.85rem;
        border-radius: var(--pp-card-radius);
        border: 1px solid var(--pp-card-border);
        background: linear-gradient(165deg, var(--pp-card-surface) 0%, var(--pp-card-surface-muted) 100%);
        box-shadow: var(--pp-card-shadow), 0 14px 36px -14px rgba(15, 23, 42, 0.18);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        transition:
            opacity 0.16s ease,
            transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0.16s ease,
            box-shadow 0.24s ease;
    }

    .pp-customer-preview-card--hover,
    .pp-customer-preview-card--pinned {
        display: flex;
        flex-direction: column;
        overflow: visible;
        padding: 0;
    }

    .pp-customer-preview-card--hover.pp-customer-preview-card--above::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 10px;
        bottom: -10px;
        pointer-events: auto;
    }

    .pp-customer-preview-card--hover.pp-customer-preview-card--below::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 10px;
        top: -10px;
        pointer-events: auto;
    }

    .pp-customer-field-preview:not(:has(.pp-customer-preview-mount--pinned)):has([data-pp-customer-details-trigger]:hover) .pp-customer-preview-card--hover,
    .pp-customer-field-preview:not(:has(.pp-customer-preview-mount--pinned)):has(.fi-input-wrp-suffix:hover) .pp-customer-preview-card--hover,
    .pp-customer-field-preview:not(:has(.pp-customer-preview-mount--pinned)):has([data-pp-customer-details-trigger]:focus-visible) .pp-customer-preview-card--hover,
    .pp-ordering-unit-field-preview:not(:has(.pp-customer-preview-mount--pinned)):has([data-pp-ordering-unit-details-trigger]:hover) .pp-customer-preview-card--hover,
    .pp-ordering-unit-field-preview:not(:has(.pp-customer-preview-mount--pinned)):has(.fi-input-wrp-suffix:hover) .pp-customer-preview-card--hover,
    .pp-ordering-unit-field-preview:not(:has(.pp-customer-preview-mount--pinned)):has([data-pp-ordering-unit-details-trigger]:focus-visible) .pp-customer-preview-card--hover,
    .pp-customer-preview-card--hover.pp-customer-preview-card--visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .pp-customer-preview-card--pinned {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: var(--pp-card-shadow), 0 18px 40px -14px rgba(15, 23, 42, 0.24);
    }

    .pp-customer-preview-card--hover .pp-customer-preview__content,
    .pp-customer-preview-card--pinned .pp-customer-preview__content {
        padding: 0.85rem 0.85rem 0.35rem;
    }

    .pp-customer-preview-card--hover .pp-customer-preview__actions,
    .pp-customer-preview-card--pinned .pp-customer-preview__actions {
        flex-shrink: 0;
        margin-top: 0;
        padding: 0.65rem 0.85rem 0.85rem;
        border-top: 1px solid var(--pp-card-border);
        background: linear-gradient(165deg, var(--pp-card-surface) 0%, var(--pp-card-surface-muted) 100%);
    }

    .pp-customer-preview-card__close {
        position: absolute;
        top: 0.55rem;
        inset-inline-end: 0.55rem;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.65rem;
        height: 1.65rem;
        border: 0;
        border-radius: 0.45rem;
        background: transparent;
        color: #64748b;
        cursor: pointer;
    }

    .pp-customer-preview-card__close:hover {
        background: rgb(100 116 139 / 0.12);
        color: #0f172a;
    }

    .pp-customer-preview-card__close svg {
        width: 1rem;
        height: 1rem;
    }

    .pp-customer-preview__head {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem;
        margin-bottom: 0.65rem;
        border-radius: 0.75rem;
        border: 1px solid var(--pp-card-border);
        background: var(--pp-card-surface);
        box-shadow: var(--pp-card-shadow);
    }

    .pp-customer-modal .pp-customer-preview__head {
        margin-bottom: 0.75rem;
    }

    .pp-customer-preview__avatar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        flex-shrink: 0;
        border-radius: 0.75rem;
        background: rgb(6 182 212 / 0.12);
        border: 1px solid rgb(6 182 212 / 0.22);
        color: #0891b2;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .dark .pp-customer-preview__avatar {
        background: rgb(6 182 212 / 0.16);
        border-color: rgb(6 182 212 / 0.28);
        color: #67e8f9;
    }

    .pp-customer-preview__title {
        font-size: 0.9375rem;
        font-weight: 700;
        line-height: 1.35;
        color: #0f172a;
        word-break: break-word;
    }

    .dark .pp-customer-preview__title {
        color: #f8fafc;
    }

    .pp-customer-preview__subtitle {
        margin-top: 0.15rem;
        font-size: 0.8125rem;
        color: #64748b;
        word-break: break-word;
    }

    .dark .pp-customer-preview__subtitle {
        color: #94a3b8;
    }

    .pp-customer-preview__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .pp-customer-preview__field {
        padding: 0.65rem 0.75rem;
        border-radius: 0.625rem;
        border: 1px solid var(--pp-card-border);
        background: var(--pp-card-surface);
    }

    .pp-customer-preview__field-label {
        font-size: 0.72rem;
        font-weight: 600;
        color: #64748b;
    }

    .dark .pp-customer-preview__field-label {
        color: #94a3b8;
    }

    .pp-customer-preview__field-value {
        margin-top: 0.2rem;
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.4;
        color: #0f172a;
        word-break: break-word;
        white-space: pre-wrap;
    }

    .pp-customer-preview__field--wide {
        grid-column: 1 / -1;
    }

    .pp-customer-preview__field-value--single-line {
        direction: ltr;
        text-align: left;
        white-space: normal;
        overflow: visible;
        word-break: break-all;
        unicode-bidi: plaintext;
    }

    .pp-customer-preview__field-value-row {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        margin-top: 0.2rem;
        min-width: 0;
    }

    .pp-customer-preview__field-value-row .pp-customer-preview__field-value {
        margin-top: 0;
    }

    .pp-customer-preview__copy {
        display: inline-flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 1.65rem;
        height: 1.65rem;
        padding: 0;
        border: 1px solid var(--pp-card-border);
        border-radius: 0.45rem;
        background: var(--pp-card-surface-muted);
        color: #64748b;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }

    .pp-customer-preview__copy:hover {
        color: #0891b2;
        border-color: rgb(6 182 212 / 0.35);
        background: rgb(6 182 212 / 0.08);
    }

    .pp-customer-preview__copy--success {
        color: #15803d !important;
        border-color: rgb(34 197 94 / 0.45) !important;
        background: rgb(34 197 94 / 0.14) !important;
    }

    .dark .pp-customer-preview__copy--success {
        color: #4ade80 !important;
        border-color: rgb(74 222 128 / 0.45) !important;
        background: rgb(34 197 94 / 0.2) !important;
    }

    .pp-customer-preview__copy svg {
        width: 0.9rem;
        height: 0.9rem;
    }

    .dark .pp-customer-preview__field-value {
        color: #f1f5f9;
    }

    .pp-customer-preview__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding-top: 0.7rem;
        border-top: 1px solid var(--pp-card-border);
    }

    .pp-customer-preview__link {
        display: inline-flex;
        align-items: center;
        border: 0;
        cursor: pointer;
        font-family: inherit;
        padding: 0.4rem 0.75rem;
        border-radius: 0.5rem;
        border: 1px solid var(--pp-card-border);
        background: var(--pp-card-surface);
        color: #334155;
        font-size: 0.8125rem;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.15s ease, border-color 0.15s ease;
    }

    .pp-customer-preview__link:hover {
        background: var(--pp-card-surface-muted);
        border-color: rgb(6 182 212 / 0.35);
        color: #0891b2;
    }

    .dark .pp-customer-preview__link {
        color: #e2e8f0;
    }

    .dark .pp-customer-preview__link:hover {
        color: #67e8f9;
    }

    /* מובייל / טלפון — יעדי מגע ~44px בלי לשנות צפיפות דסקטופ */
    @media (max-width: 900px) {
        .fi-input-wrp,
        .fi-select-input-wrp {
            min-height: 2.75rem !important;
        }

        .fi-input-wrp .fi-input,
        .fi-select-input-btn,
        .fi-select-input-wrp button {
            min-height: 2.75rem !important;
        }

        .fi-btn:not(.fi-size-xs):not(.fi-size-sm) {
            min-height: 2.75rem !important;
        }

        .fi-fo-toggle-buttons .fi-btn,
        .fi-btngroup .fi-btn {
            min-height: 2.75rem !important;
        }

        .pp-order-header-section .pp-order-header-primary-field .fi-fo-field-content-col {
            flex-basis: 2.75rem;
            height: 2.75rem;
        }

        .pp-order-header-section .pp-order-header-primary-field .fi-input-wrp {
            height: 2.75rem !important;
            min-height: 2.75rem !important;
            max-height: none !important;
        }

        .pp-production-priority-field .fi-fo-toggle-buttons.fi-btn-group > .fi-btn {
            min-height: 2.75rem;
            font-size: 0.85rem;
        }

        .pp-customer-preview__link {
            min-height: 2.75rem;
            padding: 0.55rem 0.9rem;
            align-items: center;
        }

        .pp-customer-preview__copy {
            width: 2.5rem;
            height: 2.5rem;
        }
    }
